@mescius/spread-excelio 17.1.4 → 17.1.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
*
|
3
|
-
* SpreadJS ExcelIO Library 17.1.
|
3
|
+
* SpreadJS ExcelIO Library 17.1.6
|
4
4
|
*
|
5
5
|
* Copyright(c) MESCIUS inc. All rights reserved.
|
6
6
|
*
|
@@ -22,9 +22,9 @@ borderWidth:1,borderStyle:"thin",borderColor:"#999999"}},selectedItemWithNoDataS
|
|
22
22
|
"HYShortSamul-Medium":5,"HYSinMyeongJo-Medium":8,Impact:7,"Imprint MT Shadow":6,"Informal Roman":7,"Ink Free":6,IrisUPC:6,"Iskoola Pota":6,JasmineUPC:6,"Javanese Text":7,Jokerman:9,"Juice ITC":4,KaiTi:6,Kalinga:6,Kartika:6,"Khmer UI":6,KodchiangUPC:6,Kokila:6,"Kristen ITC":7,"Kunstler Script":4,"Lao UI":6,Latha:6,Leelawadee:6,"Leelawadee UI":6,"Leelawadee UI Semilight":7,"Levenim MT":6,LilyUPC:6,"Lucida Bright":7,"Lucida Calligraphy":9,"Lucida Console":8,"Lucida Fax":8,"Lucida Handwriting":9,"Lucida Sans":8,"Lucida Sans Typewriter":7,"Lucida Sans Unicode":9,"Magic R":8,Magneto:9,"Maiandra GD":8,"Malgun Gothic":7,"Malgun Gothic Semilight":8,Mangal:7,Marlett:13,"Matura MT Script Capitals":9,Meiryo:8,"Meiryo UI":8,"Microsoft GothicNeo":7,"Microsoft Himalaya":5,"Microsoft JhengHei":7,"Microsoft JhengHei Light":8,"Microsoft JhengHei UI":7,"Microsoft JhengHei UI Light":8,"Microsoft New Tai Lue":7,"Microsoft PhagsPa":7,"Microsoft Sans Serif":8,"Microsoft Tai Le":7,"Microsoft Uighur":5,"Microsoft YaHei Light":8,"Microsoft YaHei UI":7,"Microsoft YaHei UI Light":8,"Microsoft Yi Baiti":7,MingLiU:7,MingLiU_HKSCS:7,"MingLiU_HKSCS-ExtB":7,"MingLiU-ExtB":7,Miriam:7,"Miriam Fixed":7,Mistral:6,"Modern No. 20":6,"MoeumT R":8,"Mongolian Baiti":7,"Monotype Corsiva":6,MoolBoran:7,"MS Gothic":6,"MS Mincho":7,"MS Outlook":7,"MS PGothic":7,"MS PMincho":7,"MS Reference Sans Serif":9,"MS Reference Specialty":15,"MS UI Gothic":7,"MT Extra":13,"MV Boli":9,"Myanmar Text":7,Narkisim:7,"Neue Haas Grotesk Text Pro":7,"New Gulim":8,"News Gothic MT":7,"Niagara Engraved":5,"Niagara Solid":5,"Nirmala UI":7,"Nirmala UI Semilight":8,Nyala:7,"OCR A Extended":8,OCRB:8,"Old English Text MT":7,Onyx:5,"Palace Script MT":5,"Palatino Linotype":6,Papyrus:8,Parchment:4,Perpetua:6,"Perpetua Titling MT":8,"Plantagenet Cherokee":7,Playbill:5,PMingLiU:7,"PMingLiU-ExtB":7,"Poor Richard":8,Pristina:6,"Pyunji R":7,Raavi:7,"Rage Italic":7,Ravie:12,Rockwell:7,"Rockwell Condensed":5,"Rockwell Extra Bold":8,"Rockwell Light":7,"Rockwell Nova":7,"Rockwell Nova Cond":7,"Rockwell Nova Cond Light":7,"Rockwell Nova Extra Bold":7,"Rockwell Nova Light":7,Rod:7,"Sakkal Majalla":7,"Sanskrit Text":7,"Script MT Bold":6,"Segoe MDL2 Assets":5,"Segoe Print":9,"Segoe Script":9,"Segoe UI":6,"Segoe UI Black":7,"Segoe UI Emoji":6,"Segoe UI Historic":6,"Segoe UI Light":6,"Segoe UI Semibold":7,"Segoe UI Semilight":7,"Segoe UI Symbol":6,Selawik:6,"Selawik Light":6,"Selawik Semibold":6,"Shonar Bangla":6,"Showcard Gothic":8,Shruti:6,"Simplified Arabic":6,"Simplified Arabic Fixed":6,"SimSun-ExtB":6,"Sitka Banner":6,"Sitka Display":6,"Sitka Heading":7,"Sitka Small":8,"Sitka Subheading":7,"Sitka Text":8,"Snap ITC":10,"Source Sans Pro":6,"Source Sans Pro Black":6,"Source Sans Pro ExtraLight":6,"Source Sans Pro Light":6,"Source Sans Pro SemiBold":6,Stencil:7,Sylfaen:6,Symbol:6,Tahoma:7,"Tempus Sans ITC":8,"TH SarabunPSK":6,"Times New Roman":6,"Traditional Arabic":6,"Trebuchet MS":6,Tunga:6,"Tw Cen MT":7,"Tw Cen MT Condensed":4,"Tw Cen MT Condensed Extra Bold":6,"UD Digi Kyokasho N-B":6,"UD Digi Kyokasho NK-B":6,"UD Digi Kyokasho NK-R":6,"UD Digi Kyokasho NP-B":6,"UD Digi Kyokasho NP-R":6,"UD Digi Kyokasho N-R":6,Univers:6,"Univers Condensed":6,"Univers Condensed Light":6,"Univers Light":6,"Urdu Typesetting":6,Utsaah:6,Vani:6,Verdana:8,"Verdana Pro":6,"Verdana Pro Black":6,"Verdana Pro Cond":6,"Verdana Pro Cond Black":6,"Verdana Pro Cond Light":6,"Verdana Pro Cond SemiBold":6,"Verdana Pro Light":6,"Verdana Pro SemiBold":6,Vijaya:6,"Viner Hand ITC":8,Vivaldi:5,"Vladimir Script":6,Vrinda:6,Webdings:12,"Wide Latin":15,Wingdings:16,"Wingdings 2":14,"Wingdings 3":11,"Yet R":6,"Yu Gothic":7,"Yu Gothic Light":6,"Yu Gothic Medium":7,"Yu Gothic UI":6,"Yu Gothic UI Light":6,"Yu Gothic UI Semibold":7,"Yu Gothic UI Semilight":7,"Yu Mincho":7,"Yu Mincho Demibold":6,"Yu Mincho Light":6,"\u4eff\u5b8b":6,"\u534e\u6587\u4e2d\u5b8b":7,"\u534e\u6587\u4eff\u5b8b":6,"\u534e\u6587\u5b8b\u4f53":6,"\u534e\u6587\u5f69\u4e91":7,"\u534e\u6587\u65b0\u9b4f":7,"\u534e\u6587\u6977\u4f53":6,"\u534e\u6587\u7425\u73c0":7,"\u534e\u6587\u7ec6\u9ed1":7,"\u534e\u6587\u884c\u6977":6,"\u534e\u6587\u96b6\u4e66":5,"\u5b8b\u4f53":6,"\u5e7c\u5706":6,"\u5fae\u8f6f\u96c5\u9ed1":7,"\u5fae\u8f6f\u96c5\u9ed1 Light":7,"\u65b0\u5b8b\u4f53":6,"\u65b9\u6b63\u59da\u4f53":6,"\u65b9\u6b63\u8212\u4f53":7,"\u6977\u4f53":6,"\u7b49\u7ebf":6,"\u7b49\u7ebf Light":6,"\u96b6\u4e66":6,"\u9ed1\u4f53":6,"\u6e38\u30b4\u30b7\u30c3\u30af":7,"\uff2d\uff33 \uff30\u660e\u671d":6,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':6,"\u30e1\u30a4\u30ea\u30aa":7,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":6,"HG\u660e\u671dB":6,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":6},10:{"Gill Sans MT":7,Abadi:8,"Abadi Extra Light":7,"Agency FB":5,Aharoni:5,Aldhabi:4,Algerian:8,"Ami R":5,"Angsana New":4,AngsanaUPC:4,Aparajita:5,"Arabic Typesetting":4,Arial:7,"Arial Black":9,"Arial Narrow":6,"Arial Nova":7,"Arial Nova Cond":7,"Arial Nova Cond Light":6,"Arial Nova Light":7,"Arial Rounded MT Bold":8,"Baskerville Old Face":6,Batang:7,BatangChe:7,"Bauhaus 93":7,"Bell MT":7,Bembo:6,"Berlin Sans FB":8,"Berlin Sans FB Demi":8,"Bernard MT Condensed":6,"Blackadder ITC":5,"Bodoni MT":6,"Bodoni MT Black":9,"Bodoni MT Condensed":4,"Bodoni MT Poster Compressed":5,"Book Antiqua":7,"Bookman Old Style":8,"Bookshelf Symbol 7":10,"Bradley Hand ITC":8,"Britannic Bold":8,Broadway:8,"Browallia New":5,BrowalliaUPC:5,"Brush Script MT":7,Calibri:7,"Calibri Light":7,"Californian FB":7,"Calisto MT":7,Cambria:7,"Cambria Math":7,Candara:7,Castellar:9,Centaur:6,Century:7,"Century Gothic":7,"Century Schoolbook":7,Chiller:6,"Colonna MT":7,"Comic Sans MS":8,Consolas:7,Constantia:7,"Cooper Black":8,"Copperplate Gothic Bold":9,"Copperplate Gothic Light":9,Corbel:7,"Cordia New":5,CordiaUPC:5,"Courier New":8,"Curlz MT":7,Dante:6,DaunPenh:4,David:6,DilleniaUPC:4,DokChampa:7,Dotum:6,DotumChe:7,Dubai:7,"Dubai Light":7,"Dubai Medium":7,Ebrima:7,"Edwardian Script ITC":6,Elephant:10,"Engravers MT":8,"Eras Bold ITC":8,"Eras Demi ITC":8,"Eras Light ITC":7,"Eras Medium ITC":7,EucrosiaUPC:5,Euphemia:8,"Expo M":11,FangSong:7,"Felix Titling":8,"Footlight MT Light":7,Forte:7,"Franklin Gothic Book":8,"Franklin Gothic Demi":8,"Franklin Gothic Demi Cond":7,"Franklin Gothic Heavy":8,"Franklin Gothic Medium":8,"Franklin Gothic Medium Cond":7,FrankRuehl:5,FreesiaUPC:6,"Freestyle Script":5,"French Script MT":5,Gabriola:5,Gadugi:7,Garamond:6,Gautami:8,Georgia:9,"Georgia Pro":7,"Georgia Pro Black":9,"Georgia Pro Cond":7,"Georgia Pro Cond Black":8,"Georgia Pro Cond Light":7,"Georgia Pro Cond Semibold":7,"Georgia Pro Light":7,"Georgia Pro Semibold":8,Gigi:7,"Gill Sans MT Condensed":5,"Gill Sans MT Ext Condensed Bold":4,"Gill Sans Nova":7,"Gill Sans Nova Cond":4,"Gill Sans Nova Cond Lt":4,"Gill Sans Nova Cond Ultra Bold":8,"Gill Sans Nova Cond XBd":7,"Gill Sans Nova Light":7,"Gill Sans Nova Ultra Bold":11,"Gill Sans Ultra Bold":11,"Gill Sans Ultra Bold Condensed":8,Gisha:7,"Gloucester MT Extra Condensed":5,"Goudy Old Style":7,"Goudy Stout":11,Grotesque:6,"Grotesque Light":6,Gulim:7,GulimChe:7,Gungsuh:6,GungsuhChe:7,"Hadassah Friedlaender":7,Haettenschweiler:6,"Harlow Solid Italic":6,Harrington:7,"Headline R":9,HGGothicE:7,HGGothicM:7,HGGyoshotai:7,HGKyokashotai:7,HGMaruGothicMPRO:10,HGMinchoB:8,HGMinchoE:8,HGPGothicE:8,HGPGothicM:9,HGPGyoshotai:7,HGPKyokashotai:7,HGPMinchoB:7,HGPMinchoE:8,HGPSoeiKakugothicUB:9,HGPSoeiKakupoptai:9,HGPSoeiPresenceEB:8,HGSeikaishotaiPRO:8,HGSGothicE:7,HGSGothicM:8,HGSGyoshotai:6,HGSKyokashotai:6,HGSMinchoB:7,HGSMinchoE:8,HGSoeiKakugothicUB:8,HGSoeiKakupoptai:8,HGSoeiPresenceEB:8,HGSSoeiKakugothicUB:8,HGSSoeiKakupoptai:8,HGSSoeiPresenceEB:7,"High Tower Text":6,"HYGothic-Extra":8,"HYGothic-Medium":8,"HYGraphic-Medium":8,"HYGungSo-Bold":8,"HYHeadLine-Medium":8,"HYMyeongJo-Extra":9,"HYPMokGak-Bold":9,"HYPost-Light":9,"HYPost-Medium":9,"HYShortSamul-Medium":5,"HYSinMyeongJo-Medium":8,Impact:7,"Imprint MT Shadow":7,"Informal Roman":7,"Ink Free":7,IrisUPC:7,"Iskoola Pota":7,JasmineUPC:7,"Javanese Text":8,Jokerman:9,"Juice ITC":5,KaiTi:7,Kalinga:7,Kartika:7,"Khmer UI":7,KodchiangUPC:4,Kokila:7,"Kristen ITC":8,"Kunstler Script":5,"Lao UI":7,Latha:7,Leelawadee:7,"Leelawadee UI":7,"Leelawadee UI Semilight":7,"Levenim MT":7,LilyUPC:7,"Lucida Bright":8,"Lucida Calligraphy":10,"Lucida Console":9,"Lucida Fax":9,"Lucida Handwriting":10,"Lucida Sans":9,"Lucida Sans Typewriter":8,"Lucida Sans Unicode":9,"Magic R":8,Magneto:10,"Maiandra GD":9,"Malgun Gothic":8,"Malgun Gothic Semilight":8,Mangal:8,Marlett:14,"Matura MT Script Capitals":10,Meiryo:9,"Meiryo UI":9,"Microsoft GothicNeo":8,"Microsoft Himalaya":5,"Microsoft JhengHei":8,"Microsoft JhengHei Light":8,"Microsoft JhengHei UI":8,"Microsoft JhengHei UI Light":8,"Microsoft New Tai Lue":7,"Microsoft PhagsPa":7,"Microsoft Sans Serif":8,"Microsoft Tai Le":7,"Microsoft Uighur":5,"Microsoft YaHei Light":8,"Microsoft YaHei UI":8,"Microsoft YaHei UI Light":8,"Microsoft Yi Baiti":8,MingLiU:8,MingLiU_HKSCS:8,"MingLiU_HKSCS-ExtB":8,"MingLiU-ExtB":8,Miriam:8,"Miriam Fixed":8,Mistral:7,"Modern No. 20":7,"MoeumT R":8,"Mongolian Baiti":8,"Monotype Corsiva":7,MoolBoran:8,"MS Gothic":7,"MS Mincho":8,"MS Outlook":8,"MS PGothic":8,"MS PMincho":8,"MS Reference Sans Serif":9,"MS Reference Specialty":17,"MS UI Gothic":8,"MT Extra":14,"MV Boli":10,"Myanmar Text":7,Narkisim:8,"Neue Haas Grotesk Text Pro":8,"New Gulim":8,"News Gothic MT":8,"Niagara Engraved":5,"Niagara Solid":5,"Nirmala UI":7,"Nirmala UI Semilight":8,Nyala:8,"OCR A Extended":9,OCRB:9,"Old English Text MT":8,Onyx:6,"Palace Script MT":5,"Palatino Linotype":7,Papyrus:9,Parchment:4,Perpetua:6,"Perpetua Titling MT":9,"Plantagenet Cherokee":8,Playbill:6,PMingLiU:7,"PMingLiU-ExtB":7,"Poor Richard":8,Pristina:8,"Pyunji R":7,Raavi:8,"Rage Italic":8,Ravie:13,Rockwell:7,"Rockwell Condensed":6,"Rockwell Extra Bold":9,"Rockwell Light":8,"Rockwell Nova":8,"Rockwell Nova Cond":8,"Rockwell Nova Cond Light":8,"Rockwell Nova Extra Bold":8,"Rockwell Nova Light":8,Rod:8,"Sakkal Majalla":8,"Sanskrit Text":8,"Script MT Bold":7,"Segoe MDL2 Assets":5,"Segoe Print":10,"Segoe Script":10,"Segoe UI":7,"Segoe UI Black":8,"Segoe UI Emoji":7,"Segoe UI Historic":7,"Segoe UI Light":7,"Segoe UI Semibold":7,"Segoe UI Semilight":7,"Segoe UI Symbol":7,Selawik:7,"Selawik Light":7,"Selawik Semibold":7,"Shonar Bangla":7,"Showcard Gothic":8,Shruti:7,"Simplified Arabic":7,"Simplified Arabic Fixed":7,"SimSun-ExtB":7,"Sitka Banner":7,"Sitka Display":7,"Sitka Heading":7,"Sitka Small":9,"Sitka Subheading":8,"Sitka Text":8,"Snap ITC":11,"Source Sans Pro":7,"Source Sans Pro Black":7,"Source Sans Pro ExtraLight":7,"Source Sans Pro Light":7,"Source Sans Pro SemiBold":7,Stencil:7,Sylfaen:7,Symbol:7,Tahoma:7,"Tempus Sans ITC":9,"TH SarabunPSK":7,"Times New Roman":6,"Traditional Arabic":7,"Trebuchet MS":7,Tunga:7,"Tw Cen MT":7,"Tw Cen MT Condensed":5,"Tw Cen MT Condensed Extra Bold":6,"UD Digi Kyokasho N-B":7,"UD Digi Kyokasho NK-B":7,"UD Digi Kyokasho NK-R":7,"UD Digi Kyokasho NP-B":7,"UD Digi Kyokasho NP-R":7,"UD Digi Kyokasho N-R":7,Univers:7,"Univers Condensed":7,"Univers Condensed Light":7,"Univers Light":7,"Urdu Typesetting":7,Utsaah:7,Vani:7,Verdana:8,"Verdana Pro":8,"Verdana Pro Black":7,"Verdana Pro Cond":7,"Verdana Pro Cond Black":7,"Verdana Pro Cond Light":7,"Verdana Pro Cond SemiBold":7,"Verdana Pro Light":7,"Verdana Pro SemiBold":7,Vijaya:7,"Viner Hand ITC":9,Vivaldi:6,"Vladimir Script":6,Vrinda:7,Webdings:13,"Wide Latin":16,Wingdings:17,"Wingdings 2":15,"Wingdings 3":12,"Yet R":7,"Yu Gothic":7,"Yu Gothic Light":7,"Yu Gothic Medium":7,"Yu Gothic UI":7,"Yu Gothic UI Light":7,"Yu Gothic UI Semibold":7,"Yu Gothic UI Semilight":7,"Yu Mincho":7,"Yu Mincho Demibold":7,"Yu Mincho Light":7,"\u4eff\u5b8b":7,"\u534e\u6587\u4e2d\u5b8b":8,"\u534e\u6587\u4eff\u5b8b":6,"\u534e\u6587\u5b8b\u4f53":6,"\u534e\u6587\u5f69\u4e91":7,"\u534e\u6587\u65b0\u9b4f":8,"\u534e\u6587\u6977\u4f53":6,"\u534e\u6587\u7425\u73c0":7,"\u534e\u6587\u7ec6\u9ed1":7,"\u534e\u6587\u884c\u6977":7,"\u534e\u6587\u96b6\u4e66":6,"\u5b8b\u4f53":7,"\u5e7c\u5706":7,"\u5fae\u8f6f\u96c5\u9ed1":8,"\u5fae\u8f6f\u96c5\u9ed1 Light":7,"\u65b0\u5b8b\u4f53":7,"\u65b9\u6b63\u59da\u4f53":7,"\u65b9\u6b63\u8212\u4f53":7,"\u6977\u4f53":7,"\u7b49\u7ebf":7,"\u7b49\u7ebf Light":7,"\u96b6\u4e66":7,"\u9ed1\u4f53":7,"\u6e38\u30b4\u30b7\u30c3\u30af":7,"\uff2d\uff33 \uff30\u660e\u671d":7,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':7,"\u30e1\u30a4\u30ea\u30aa":8,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":7,"HG\u660e\u671dB":7,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":7},11:{"Gill Sans MT":8,Abadi:9,"Abadi Extra Light":8,"Agency FB":6,Aharoni:6,Aldhabi:5,Algerian:9,"Ami R":6,"Angsana New":5,AngsanaUPC:5,Aparajita:6,"Arabic Typesetting":5,Arial:8,"Arial Black":10,"Arial Narrow":7,"Arial Nova":8,"Arial Nova Cond":8,"Arial Nova Cond Light":7,"Arial Nova Light":8,"Arial Rounded MT Bold":9,"Baskerville Old Face":7,Batang:8,BatangChe:8,"Bauhaus 93":9,"Bell MT":8,Bembo:7,"Berlin Sans FB":9,"Berlin Sans FB Demi":9,"Bernard MT Condensed":7,"Blackadder ITC":6,"Bodoni MT":7,"Bodoni MT Black":10,"Bodoni MT Condensed":5,"Bodoni MT Poster Compressed":5,"Book Antiqua":8,"Bookman Old Style":9,"Bookshelf Symbol 7":11,"Bradley Hand ITC":10,"Britannic Bold":9,Broadway:10,"Browallia New":5,BrowalliaUPC:5,"Brush Script MT":8,Calibri:7,"Calibri Light":8,"Californian FB":9,"Calisto MT":8,Cambria:8,"Cambria Math":8,Candara:8,Castellar:11,Centaur:7,Century:8,"Century Gothic":8,"Century Schoolbook":8,Chiller:7,"Colonna MT":8,"Comic Sans MS":9,Consolas:8,Constantia:8,"Cooper Black":9,"Copperplate Gothic Bold":11,"Copperplate Gothic Light":11,Corbel:8,"Cordia New":5,CordiaUPC:5,"Courier New":9,"Curlz MT":8,Dante:7,DaunPenh:5,David:7,DilleniaUPC:5,DokChampa:8,Dotum:9,DotumChe:8,Dubai:8,"Dubai Light":8,"Dubai Medium":8,Ebrima:8,"Edwardian Script ITC":7,Elephant:11,"Engravers MT":10,"Eras Bold ITC":10,"Eras Demi ITC":9,"Eras Light ITC":8,"Eras Medium ITC":9,EucrosiaUPC:6,Euphemia:9,"Expo M":13,FangSong:8,"Felix Titling":9,"Footlight MT Light":8,Forte:8,"Franklin Gothic Book":9,"Franklin Gothic Demi":9,"Franklin Gothic Demi Cond":8,"Franklin Gothic Heavy":9,"Franklin Gothic Medium":9,"Franklin Gothic Medium Cond":8,FrankRuehl:6,FreesiaUPC:7,"Freestyle Script":6,"French Script MT":5,Gabriola:6,Gadugi:8,Garamond:7,Gautami:9,Georgia:9,"Georgia Pro":8,"Georgia Pro Black":11,"Georgia Pro Cond":8,"Georgia Pro Cond Black":10,"Georgia Pro Cond Light":8,"Georgia Pro Cond Semibold":8,"Georgia Pro Light":8,"Georgia Pro Semibold":9,Gigi:7,"Gill Sans MT Condensed":5,"Gill Sans MT Ext Condensed Bold":5,"Gill Sans Nova":8,"Gill Sans Nova Cond":5,"Gill Sans Nova Cond Lt":5,"Gill Sans Nova Cond Ultra Bold":9,"Gill Sans Nova Cond XBd":8,"Gill Sans Nova Light":8,"Gill Sans Nova Ultra Bold":13,"Gill Sans Ultra Bold":13,"Gill Sans Ultra Bold Condensed":9,Gisha:8,"Gloucester MT Extra Condensed":6,"Goudy Old Style":8,"Goudy Stout":12,Grotesque:7,"Grotesque Light":7,Gulim:8,GulimChe:8,Gungsuh:7,GungsuhChe:8,"Hadassah Friedlaender":9,Haettenschweiler:7,"Harlow Solid Italic":7,Harrington:8,"Headline R":11,HGGothicE:8,HGGothicM:8,HGGyoshotai:8,HGKyokashotai:8,HGMaruGothicMPRO:11,HGMinchoB:9,HGMinchoE:9,HGPGothicE:9,HGPGothicM:10,HGPGyoshotai:8,HGPKyokashotai:8,HGPMinchoB:8,HGPMinchoE:9,HGPSoeiKakugothicUB:10,HGPSoeiKakupoptai:11,HGPSoeiPresenceEB:9,HGSeikaishotaiPRO:9,HGSGothicE:8,HGSGothicM:9,HGSGyoshotai:7,HGSKyokashotai:7,HGSMinchoB:8,HGSMinchoE:9,HGSoeiKakugothicUB:9,HGSoeiKakupoptai:9,HGSoeiPresenceEB:9,HGSSoeiKakugothicUB:9,HGSSoeiKakupoptai:10,HGSSoeiPresenceEB:8,"High Tower Text":7,"HYGothic-Extra":9,"HYGothic-Medium":9,"HYGraphic-Medium":9,"HYGungSo-Bold":9,"HYHeadLine-Medium":9,"HYMyeongJo-Extra":10,"HYPMokGak-Bold":11,"HYPost-Light":10,"HYPost-Medium":11,"HYShortSamul-Medium":6,"HYSinMyeongJo-Medium":9,Impact:8,"Imprint MT Shadow":8,"Informal Roman":8,"Ink Free":8,IrisUPC:8,"Iskoola Pota":8,JasmineUPC:8,"Javanese Text":9,Jokerman:11,"Juice ITC":6,KaiTi:8,Kalinga:8,Kartika:8,"Khmer UI":8,KodchiangUPC:5,Kokila:8,"Kristen ITC":9,"Kunstler Script":5,"Lao UI":8,Latha:8,Leelawadee:8,"Leelawadee UI":8,"Leelawadee UI Semilight":8,"Levenim MT":9,LilyUPC:8,"Lucida Bright":9,"Lucida Calligraphy":11,"Lucida Console":10,"Lucida Fax":10,"Lucida Handwriting":11,"Lucida Sans":10,"Lucida Sans Typewriter":9,"Lucida Sans Unicode":10,"Magic R":9,Magneto:12,"Maiandra GD":10,"Malgun Gothic":9,"Malgun Gothic Semilight":9,Mangal:9,Marlett:16,"Matura MT Script Capitals":11,Meiryo:9,"Meiryo UI":10,"Microsoft GothicNeo":9,"Microsoft Himalaya":6,"Microsoft JhengHei":9,"Microsoft JhengHei Light":10,"Microsoft JhengHei UI":9,"Microsoft JhengHei UI Light":10,"Microsoft New Tai Lue":9,"Microsoft PhagsPa":9,"Microsoft Sans Serif":9,"Microsoft Tai Le":9,"Microsoft Uighur":6,"Microsoft YaHei Light":10,"Microsoft YaHei UI":9,"Microsoft YaHei UI Light":10,"Microsoft Yi Baiti":9,MingLiU:9,MingLiU_HKSCS:9,"MingLiU_HKSCS-ExtB":9,"MingLiU-ExtB":9,Miriam:9,"Miriam Fixed":10,Mistral:8,"Modern No. 20":8,"MoeumT R":9,"Mongolian Baiti":9,"Monotype Corsiva":8,MoolBoran:9,"MS Gothic":8,"MS Mincho":9,"MS Outlook":9,"MS PGothic":9,"MS PMincho":9,"MS Reference Sans Serif":11,"MS Reference Specialty":19,"MS UI Gothic":9,"MT Extra":16,"MV Boli":12,"Myanmar Text":9,Narkisim:7,"Neue Haas Grotesk Text Pro":9,"New Gulim":10,"News Gothic MT":9,"Niagara Engraved":5,"Niagara Solid":6,"Nirmala UI":9,"Nirmala UI Semilight":9,Nyala:9,"OCR A Extended":10,OCRB:10,"Old English Text MT":9,Onyx:6,"Palace Script MT":6,"Palatino Linotype":8,Papyrus:10,Parchment:4,Perpetua:7,"Perpetua Titling MT":10,"Plantagenet Cherokee":9,Playbill:6,PMingLiU:8,"PMingLiU-ExtB":8,"Poor Richard":9,Pristina:9,"Pyunji R":8,Raavi:9,"Rage Italic":9,Ravie:15,Rockwell:8,"Rockwell Condensed":6,"Rockwell Extra Bold":10,"Rockwell Light":9,"Rockwell Nova":9,"Rockwell Nova Cond":9,"Rockwell Nova Cond Light":9,"Rockwell Nova Extra Bold":9,"Rockwell Nova Light":9,Rod:9,"Sakkal Majalla":9,"Sanskrit Text":9,"Script MT Bold":8,"Segoe MDL2 Assets":6,"Segoe Print":11,"Segoe Script":11,"Segoe UI":8,"Segoe UI Black":9,"Segoe UI Emoji":8,"Segoe UI Historic":8,"Segoe UI Light":8,"Segoe UI Semibold":9,"Segoe UI Semilight":8,"Segoe UI Symbol":8,Selawik:8,"Selawik Light":8,"Selawik Semibold":8,"Shonar Bangla":8,"Showcard Gothic":9,Shruti:8,"Simplified Arabic":8,"Simplified Arabic Fixed":8,"SimSun-ExtB":8,"Sitka Banner":8,"Sitka Display":8,"Sitka Heading":8,"Sitka Small":10,"Sitka Subheading":9,"Sitka Text":9,"Snap ITC":13,"Source Sans Pro":8,"Source Sans Pro Black":8,"Source Sans Pro ExtraLight":8,"Source Sans Pro Light":8,"Source Sans Pro SemiBold":8,Stencil:9,Sylfaen:8,Symbol:8,Tahoma:8,"Tempus Sans ITC":10,"TH SarabunPSK":8,"Times New Roman":7,"Traditional Arabic":8,"Trebuchet MS":8,Tunga:8,"Tw Cen MT":8,"Tw Cen MT Condensed":5,"Tw Cen MT Condensed Extra Bold":7,"UD Digi Kyokasho N-B":8,"UD Digi Kyokasho NK-B":8,"UD Digi Kyokasho NK-R":8,"UD Digi Kyokasho NP-B":8,"UD Digi Kyokasho NP-R":8,"UD Digi Kyokasho N-R":8,Univers:8,"Univers Condensed":8,"Univers Condensed Light":8,"Univers Light":8,"Urdu Typesetting":8,Utsaah:8,Vani:8,Verdana:10,"Verdana Pro":10,"Verdana Pro Black":8,"Verdana Pro Cond":8,"Verdana Pro Cond Black":8,"Verdana Pro Cond Light":8,"Verdana Pro Cond SemiBold":8,"Verdana Pro Light":8,"Verdana Pro SemiBold":8,Vijaya:8,"Viner Hand ITC":10,Vivaldi:6,"Vladimir Script":7,Vrinda:9,Webdings:15,"Wide Latin":19,Wingdings:20,"Wingdings 2":17,"Wingdings 3":13,"Yet R":8,"Yu Gothic":8,"Yu Gothic Light":8,"Yu Gothic Medium":8,"Yu Gothic UI":8,"Yu Gothic UI Light":8,"Yu Gothic UI Semibold":9,"Yu Gothic UI Semilight":8,"Yu Mincho":8,"Yu Mincho Demibold":8,"Yu Mincho Light":8,"\u4eff\u5b8b":8,"\u534e\u6587\u4e2d\u5b8b":9,"\u534e\u6587\u4eff\u5b8b":7,"\u534e\u6587\u5b8b\u4f53":7,"\u534e\u6587\u5f69\u4e91":9,"\u534e\u6587\u65b0\u9b4f":9,"\u534e\u6587\u6977\u4f53":7,"\u534e\u6587\u7425\u73c0":9,"\u534e\u6587\u7ec6\u9ed1":8,"\u534e\u6587\u884c\u6977":8,"\u534e\u6587\u96b6\u4e66":7,"\u5b8b\u4f53":8,"\u5e7c\u5706":8,"\u5fae\u8f6f\u96c5\u9ed1":9,"\u5fae\u8f6f\u96c5\u9ed1 Light":9,"\u65b0\u5b8b\u4f53":8,"\u65b9\u6b63\u59da\u4f53":8,"\u65b9\u6b63\u8212\u4f53":8,"\u6977\u4f53":8,"\u7b49\u7ebf":8,"\u7b49\u7ebf Light":8,"\u96b6\u4e66":8,"\u9ed1\u4f53":8,"\u6e38\u30b4\u30b7\u30c3\u30af":8,"\uff2d\uff33 \uff30\u660e\u671d":8,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':8,"\u30e1\u30a4\u30ea\u30aa":9,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":8,"HG\u660e\u671dB":8,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":8},12:{"Gill Sans MT":8,Abadi:10,"Abadi Extra Light":9,"Agency FB":6,Aharoni:7,Aldhabi:5,Algerian:10,"Ami R":7,"Angsana New":5,AngsanaUPC:5,Aparajita:6,"Arabic Typesetting":5,Arial:9,"Arial Black":11,"Arial Narrow":7,"Arial Nova":9,"Arial Nova Cond":8,"Arial Nova Cond Light":7,"Arial Nova Light":9,"Arial Rounded MT Bold":10,"Baskerville Old Face":8,Batang:9,BatangChe:8,"Bauhaus 93":9,"Bell MT":8,Bembo:8,"Berlin Sans FB":10,"Berlin Sans FB Demi":10,"Bernard MT Condensed":8,"Blackadder ITC":6,"Bodoni MT":8,"Bodoni MT Black":11,"Bodoni MT Condensed":5,"Bodoni MT Poster Compressed":6,"Book Antiqua":8,"Bookman Old Style":10,"Bookshelf Symbol 7":12,"Bradley Hand ITC":10,"Britannic Bold":10,Broadway:10,"Browallia New":6,BrowalliaUPC:6,"Brush Script MT":8,Calibri:8,"Calibri Light":8,"Californian FB":9,"Calisto MT":8,Cambria:9,"Cambria Math":9,Candara:9,Castellar:12,Centaur:8,Century:9,"Century Gothic":9,"Century Schoolbook":9,Chiller:8,"Colonna MT":8,"Comic Sans MS":10,Consolas:9,Constantia:9,"Cooper Black":10,"Copperplate Gothic Bold":11,"Copperplate Gothic Light":12,Corbel:8,"Cordia New":6,CordiaUPC:6,"Courier New":10,"Curlz MT":9,Dante:7,DaunPenh:5,David:7,DilleniaUPC:5,DokChampa:9,Dotum:8,DotumChe:8,Dubai:9,"Dubai Light":9,"Dubai Medium":9,Ebrima:9,"Edwardian Script ITC":8,Elephant:12,"Engravers MT":10,"Eras Bold ITC":10,"Eras Demi ITC":10,"Eras Light ITC":9,"Eras Medium ITC":9,EucrosiaUPC:6,Euphemia:9,"Expo M":14,FangSong:8,"Felix Titling":9,"Footlight MT Light":9,Forte:8,"Franklin Gothic Book":9,"Franklin Gothic Demi":9,"Franklin Gothic Demi Cond":8,"Franklin Gothic Heavy":9,"Franklin Gothic Medium":9,"Franklin Gothic Medium Cond":8,FrankRuehl:7,FreesiaUPC:7,"Freestyle Script":6,"French Script MT":6,Gabriola:6,Gadugi:9,Garamond:8,Gautami:10,Georgia:10,"Georgia Pro":9,"Georgia Pro Black":11,"Georgia Pro Cond":8,"Georgia Pro Cond Black":10,"Georgia Pro Cond Light":8,"Georgia Pro Cond Semibold":9,"Georgia Pro Light":9,"Georgia Pro Semibold":10,Gigi:7,"Gill Sans MT Condensed":6,"Gill Sans MT Ext Condensed Bold":6,"Gill Sans Nova":8,"Gill Sans Nova Cond":5,"Gill Sans Nova Cond Lt":5,"Gill Sans Nova Cond Ultra Bold":9,"Gill Sans Nova Cond XBd":8,"Gill Sans Nova Light":8,"Gill Sans Nova Ultra Bold":14,"Gill Sans Ultra Bold":14,"Gill Sans Ultra Bold Condensed":9,Gisha:9,"Gloucester MT Extra Condensed":6,"Goudy Old Style":8,"Goudy Stout":13,Grotesque:8,"Grotesque Light":8,Gulim:9,GulimChe:8,Gungsuh:9,GungsuhChe:8,"Hadassah Friedlaender":9,Haettenschweiler:7,"Harlow Solid Italic":7,Harrington:9,"Headline R":11,HGGothicE:8,HGGothicM:8,HGGyoshotai:8,HGKyokashotai:8,HGMaruGothicMPRO:12,HGMinchoB:9,HGMinchoE:9,HGPGothicE:10,HGPGothicM:10,HGPGyoshotai:9,HGPKyokashotai:8,HGPMinchoB:9,HGPMinchoE:9,HGPSoeiKakugothicUB:11,HGPSoeiKakupoptai:11,HGPSoeiPresenceEB:10,HGSeikaishotaiPRO:10,HGSGothicE:9,HGSGothicM:9,HGSGyoshotai:8,HGSKyokashotai:7,HGSMinchoB:9,HGSMinchoE:9,HGSoeiKakugothicUB:9,HGSoeiKakupoptai:9,HGSoeiPresenceEB:9,HGSSoeiKakugothicUB:10,HGSSoeiKakupoptai:10,HGSSoeiPresenceEB:9,"High Tower Text":8,"HYGothic-Extra":10,"HYGothic-Medium":9,"HYGraphic-Medium":9,"HYGungSo-Bold":9,"HYHeadLine-Medium":9,"HYMyeongJo-Extra":11,"HYPMokGak-Bold":11,"HYPost-Light":11,"HYPost-Medium":11,"HYShortSamul-Medium":6,"HYSinMyeongJo-Medium":10,Impact:9,"Imprint MT Shadow":8,"Informal Roman":9,"Ink Free":8,IrisUPC:8,"Iskoola Pota":8,JasmineUPC:8,"Javanese Text":9,Jokerman:11,"Juice ITC":6,KaiTi:8,Kalinga:9,Kartika:8,"Khmer UI":8,KodchiangUPC:5,Kokila:8,"Kristen ITC":10,"Kunstler Script":6,"Lao UI":8,Latha:8,Leelawadee:9,"Leelawadee UI":9,"Leelawadee UI Semilight":9,"Levenim MT":9,LilyUPC:7,"Lucida Bright":10,"Lucida Calligraphy":12,"Lucida Console":11,"Lucida Fax":11,"Lucida Handwriting":12,"Lucida Sans":11,"Lucida Sans Typewriter":10,"Lucida Sans Unicode":11,"Magic R":10,Magneto:12,"Maiandra GD":10,"Malgun Gothic":9,"Malgun Gothic Semilight":10,Mangal:9,Marlett:17,"Matura MT Script Capitals":12,Meiryo:11,"Meiryo UI":11,"Microsoft GothicNeo":9,"Microsoft Himalaya":6,"Microsoft JhengHei":10,"Microsoft JhengHei Light":10,"Microsoft JhengHei UI":10,"Microsoft JhengHei UI Light":10,"Microsoft New Tai Lue":9,"Microsoft PhagsPa":9,"Microsoft Sans Serif":10,"Microsoft Tai Le":9,"Microsoft Uighur":6,"Microsoft YaHei Light":10,"Microsoft YaHei UI":10,"Microsoft YaHei UI Light":10,"Microsoft Yi Baiti":9,MingLiU:9,MingLiU_HKSCS:9,"MingLiU_HKSCS-ExtB":9,"MingLiU-ExtB":9,Miriam:9,"Miriam Fixed":11,Mistral:8,"Modern No. 20":8,"MoeumT R":10,"Mongolian Baiti":9,"Monotype Corsiva":8,MoolBoran:7,"MS Gothic":8,"MS Mincho":9,"MS Outlook":9,"MS PGothic":9,"MS PMincho":9,"MS Reference Sans Serif":11,"MS Reference Specialty":20,"MS UI Gothic":9,"MT Extra":17,"MV Boli":12,"Myanmar Text":9,Narkisim:8,"Neue Haas Grotesk Text Pro":9,"New Gulim":10,"News Gothic MT":9,"Niagara Engraved":6,"Niagara Solid":6,"Nirmala UI":9,"Nirmala UI Semilight":10,Nyala:9,"OCR A Extended":11,OCRB:11,"Old English Text MT":9,Onyx:7,"Palace Script MT":6,"Palatino Linotype":8,Papyrus:10,Parchment:4,Perpetua:7,"Perpetua Titling MT":11,"Plantagenet Cherokee":9,Playbill:7,PMingLiU:9,"PMingLiU-ExtB":9,"Poor Richard":10,Pristina:9,"Pyunji R":9,Raavi:8,"Rage Italic":9,Ravie:16,Rockwell:9,"Rockwell Condensed":7,"Rockwell Extra Bold":11,"Rockwell Light":10,"Rockwell Nova":9,"Rockwell Nova Cond":9,"Rockwell Nova Cond Light":9,"Rockwell Nova Extra Bold":9,"Rockwell Nova Light":9,Rod:9,"Sakkal Majalla":9,"Sanskrit Text":9,"Script MT Bold":8,"Segoe MDL2 Assets":7,"Segoe Print":12,"Segoe Script":12,"Segoe UI":9,"Segoe UI Black":10,"Segoe UI Emoji":9,"Segoe UI Historic":9,"Segoe UI Light":8,"Segoe UI Semibold":9,"Segoe UI Semilight":9,"Segoe UI Symbol":9,Selawik:8,"Selawik Light":8,"Selawik Semibold":8,"Shonar Bangla":8,"Showcard Gothic":9,Shruti:8,"Simplified Arabic":8,"Simplified Arabic Fixed":8,"SimSun-ExtB":8,"Sitka Banner":8,"Sitka Display":8,"Sitka Heading":9,"Sitka Small":11,"Sitka Subheading":9,"Sitka Text":10,"Snap ITC":14,"Source Sans Pro":8,"Source Sans Pro Black":8,"Source Sans Pro ExtraLight":8,"Source Sans Pro Light":8,"Source Sans Pro SemiBold":8,Stencil:9,Sylfaen:8,Symbol:8,Tahoma:9,"Tempus Sans ITC":11,"TH SarabunPSK":8,"Times New Roman":8,"Traditional Arabic":8,"Trebuchet MS":8,Tunga:8,"Tw Cen MT":9,"Tw Cen MT Condensed":6,"Tw Cen MT Condensed Extra Bold":8,"UD Digi Kyokasho N-B":8,"UD Digi Kyokasho NK-B":8,"UD Digi Kyokasho NK-R":8,"UD Digi Kyokasho NP-B":8,"UD Digi Kyokasho NP-R":8,"UD Digi Kyokasho N-R":8,Univers:8,"Univers Condensed":8,"Univers Condensed Light":8,"Univers Light":8,"Urdu Typesetting":8,Utsaah:6,Vani:8,Verdana:10,"Verdana Pro":10,"Verdana Pro Black":8,"Verdana Pro Cond":8,"Verdana Pro Cond Black":8,"Verdana Pro Cond Light":8,"Verdana Pro Cond SemiBold":8,"Verdana Pro Light":8,"Verdana Pro SemiBold":8,Vijaya:8,"Viner Hand ITC":11,Vivaldi:7,"Vladimir Script":7,Vrinda:9,Webdings:16,"Wide Latin":20,Wingdings:22,"Wingdings 2":18,"Wingdings 3":14,"Yet R":9,"Yu Gothic":9,"Yu Gothic Light":9,"Yu Gothic Medium":9,"Yu Gothic UI":9,"Yu Gothic UI Light":9,"Yu Gothic UI Semibold":9,"Yu Gothic UI Semilight":9,"Yu Mincho":9,"Yu Mincho Demibold":8,"Yu Mincho Light":8,"\u4eff\u5b8b":8,"\u534e\u6587\u4e2d\u5b8b":10,"\u534e\u6587\u4eff\u5b8b":8,"\u534e\u6587\u5b8b\u4f53":8,"\u534e\u6587\u5f69\u4e91":9,"\u534e\u6587\u65b0\u9b4f":9,"\u534e\u6587\u6977\u4f53":8,"\u534e\u6587\u7425\u73c0":9,"\u534e\u6587\u7ec6\u9ed1":9,"\u534e\u6587\u884c\u6977":8,"\u534e\u6587\u96b6\u4e66":7,"\u5b8b\u4f53":8,"\u5e7c\u5706":8,"\u5fae\u8f6f\u96c5\u9ed1":9,"\u5fae\u8f6f\u96c5\u9ed1 Light":9,"\u65b0\u5b8b\u4f53":8,"\u65b9\u6b63\u59da\u4f53":8,"\u65b9\u6b63\u8212\u4f53":9,"\u6977\u4f53":8,"\u7b49\u7ebf":8,"\u7b49\u7ebf Light":8,"\u96b6\u4e66":8,"\u9ed1\u4f53":8,"\u6e38\u30b4\u30b7\u30c3\u30af":9,"\uff2d\uff33 \uff30\u660e\u671d":8,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':8,"\u30e1\u30a4\u30ea\u30aa":10,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":8,"HG\u660e\u671dB":8,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":8},14:{"Gill Sans MT":10,Abadi:11,"Abadi Extra Light":11,"Agency FB":8,Aharoni:8,Aldhabi:6,Algerian:11,"Ami R":8,"Angsana New":6,AngsanaUPC:6,Aparajita:8,"Arabic Typesetting":6,Arial:11,"Arial Black":13,"Arial Narrow":9,"Arial Nova":11,"Arial Nova Cond":10,"Arial Nova Cond Light":9,"Arial Nova Light":11,"Arial Rounded MT Bold":11,"Baskerville Old Face":9,Batang:10,BatangChe:10,"Bauhaus 93":11,"Bell MT":10,Bembo:9,"Berlin Sans FB":11,"Berlin Sans FB Demi":12,"Bernard MT Condensed":9,"Blackadder ITC":8,"Bodoni MT":9,"Bodoni MT Black":12,"Bodoni MT Condensed":6,"Bodoni MT Poster Compressed":6,"Book Antiqua":10,"Bookman Old Style":12,"Bookshelf Symbol 7":14,"Bradley Hand ITC":12,"Britannic Bold":12,Broadway:12,"Browallia New":7,BrowalliaUPC:7,"Brush Script MT":10,Calibri:10,"Calibri Light":10,"Californian FB":11,"Calisto MT":10,Cambria:11,"Cambria Math":11,Candara:10,Castellar:14,Centaur:9,Century:11,"Century Gothic":11,"Century Schoolbook":11,Chiller:9,"Colonna MT":10,"Comic Sans MS":12,Consolas:10,Constantia:10,"Cooper Black":11,"Copperplate Gothic Bold":14,"Copperplate Gothic Light":14,Corbel:10,"Cordia New":7,CordiaUPC:7,"Courier New":11,"Curlz MT":10,Dante:9,DaunPenh:6,David:8,DilleniaUPC:6,DokChampa:11,Dotum:10,DotumChe:10,Dubai:10,"Dubai Light":10,"Dubai Medium":10,Ebrima:10,"Edwardian Script ITC":9,Elephant:14,"Engravers MT":12,"Eras Bold ITC":12,"Eras Demi ITC":12,"Eras Light ITC":10,"Eras Medium ITC":11,EucrosiaUPC:8,Euphemia:11,"Expo M":16,FangSong:10,"Felix Titling":11,"Footlight MT Light":11,Forte:10,"Franklin Gothic Book":11,"Franklin Gothic Demi":11,"Franklin Gothic Demi Cond":10,"Franklin Gothic Heavy":11,"Franklin Gothic Medium":11,"Franklin Gothic Medium Cond":10,FrankRuehl:8,FreesiaUPC:8,"Freestyle Script":7,"French Script MT":7,Gabriola:8,Gadugi:10,Garamond:9,Gautami:11,Georgia:12,"Georgia Pro":11,"Georgia Pro Black":13,"Georgia Pro Cond":10,"Georgia Pro Cond Black":12,"Georgia Pro Cond Light":10,"Georgia Pro Cond Semibold":11,"Georgia Pro Light":10,"Georgia Pro Semibold":12,Gigi:10,"Gill Sans MT Condensed":7,"Gill Sans MT Ext Condensed Bold":7,"Gill Sans Nova":10,"Gill Sans Nova Cond":6,"Gill Sans Nova Cond Lt":6,"Gill Sans Nova Cond Ultra Bold":11,"Gill Sans Nova Cond XBd":10,"Gill Sans Nova Light":10,"Gill Sans Nova Ultra Bold":16,"Gill Sans Ultra Bold":16,"Gill Sans Ultra Bold Condensed":11,Gisha:10,"Gloucester MT Extra Condensed":7,"Goudy Old Style":10,"Goudy Stout":16,Grotesque:9,"Grotesque Light":9,Gulim:10,GulimChe:10,Gungsuh:10,GungsuhChe:10,"Hadassah Friedlaender":11,Haettenschweiler:8,"Harlow Solid Italic":9,Harrington:11,"Headline R":14,HGGothicE:10,HGGothicM:10,HGGyoshotai:10,HGKyokashotai:10,HGMaruGothicMPRO:14,HGMinchoB:11,HGMinchoE:11,HGPGothicE:11,HGPGothicM:12,HGPGyoshotai:10,HGPKyokashotai:10,HGPMinchoB:10,HGPMinchoE:11,HGPSoeiKakugothicUB:13,HGPSoeiKakupoptai:13,HGPSoeiPresenceEB:12,HGSeikaishotaiPRO:11,HGSGothicE:10,HGSGothicM:11,HGSGyoshotai:9,HGSKyokashotai:9,HGSMinchoB:10,HGSMinchoE:11,HGSoeiKakugothicUB:11,HGSoeiKakupoptai:11,HGSoeiPresenceEB:11,HGSSoeiKakugothicUB:12,HGSSoeiKakupoptai:12,HGSSoeiPresenceEB:11,"High Tower Text":9,"HYGothic-Extra":12,"HYGothic-Medium":11,"HYGraphic-Medium":11,"HYGungSo-Bold":11,"HYHeadLine-Medium":11,"HYMyeongJo-Extra":13,"HYPMokGak-Bold":13,"HYPost-Light":13,"HYPost-Medium":13,"HYShortSamul-Medium":7,"HYSinMyeongJo-Medium":12,Impact:10,"Imprint MT Shadow":10,"Informal Roman":10,"Ink Free":10,IrisUPC:10,"Iskoola Pota":10,JasmineUPC:10,"Javanese Text":11,Jokerman:14,"Juice ITC":7,KaiTi:10,Kalinga:11,Kartika:11,"Khmer UI":10,KodchiangUPC:7,Kokila:10,"Kristen ITC":11,
|
23
23
|
"Kunstler Script":7,"Lao UI":10,Latha:10,Leelawadee:10,"Leelawadee UI":10,"Leelawadee UI Semilight":10,"Levenim MT":11,LilyUPC:8,"Lucida Bright":12,"Lucida Calligraphy":14,"Lucida Console":12,"Lucida Fax":13,"Lucida Handwriting":14,"Lucida Sans":13,"Lucida Sans Typewriter":11,"Lucida Sans Unicode":13,"Magic R":12,Magneto:15,"Maiandra GD":12,"Malgun Gothic":11,"Malgun Gothic Semilight":12,Mangal:11,Marlett:20,"Matura MT Script Capitals":13,Meiryo:13,"Meiryo UI":13,"Microsoft GothicNeo":11,"Microsoft Himalaya":7,"Microsoft JhengHei":11,"Microsoft JhengHei Light":12,"Microsoft JhengHei UI":11,"Microsoft JhengHei UI Light":12,"Microsoft New Tai Lue":11,"Microsoft PhagsPa":11,"Microsoft Sans Serif":11,"Microsoft Tai Le":11,"Microsoft Uighur":7,"Microsoft YaHei Light":12,"Microsoft YaHei UI":12,"Microsoft YaHei UI Light":12,"Microsoft Yi Baiti":11,MingLiU:11,MingLiU_HKSCS:11,"MingLiU_HKSCS-ExtB":11,"MingLiU-ExtB":11,Miriam:10,"Miriam Fixed":12,Mistral:10,"Modern No. 20":10,"MoeumT R":11,"Mongolian Baiti":11,"Monotype Corsiva":9,MoolBoran:8,"MS Gothic":10,"MS Mincho":11,"MS Outlook":11,"MS PGothic":11,"MS PMincho":11,"MS Reference Sans Serif":13,"MS Reference Specialty":24,"MS UI Gothic":11,"MT Extra":20,"MV Boli":14,"Myanmar Text":11,Narkisim:9,"Neue Haas Grotesk Text Pro":11,"New Gulim":12,"News Gothic MT":12,"Niagara Engraved":7,"Niagara Solid":7,"Nirmala UI":11,"Nirmala UI Semilight":11,Nyala:11,"OCR A Extended":12,OCRB:12,"Old English Text MT":11,Onyx:7,"Palace Script MT":7,"Palatino Linotype":10,Papyrus:12,Parchment:5,Perpetua:9,"Perpetua Titling MT":13,"Plantagenet Cherokee":11,Playbill:8,PMingLiU:10,"PMingLiU-ExtB":10,"Poor Richard":11,Pristina:10,"Pyunji R":10,Raavi:10,"Rage Italic":11,Ravie:19,Rockwell:10,"Rockwell Condensed":8,"Rockwell Extra Bold":13,"Rockwell Light":11,"Rockwell Nova":11,"Rockwell Nova Cond":11,"Rockwell Nova Cond Light":11,"Rockwell Nova Extra Bold":11,"Rockwell Nova Light":11,Rod:11,"Sakkal Majalla":11,"Sanskrit Text":12,"Script MT Bold":10,"Segoe MDL2 Assets":8,"Segoe Print":14,"Segoe Script":14,"Segoe UI":10,"Segoe UI Black":12,"Segoe UI Emoji":10,"Segoe UI Historic":10,"Segoe UI Light":10,"Segoe UI Semibold":11,"Segoe UI Semilight":10,"Segoe UI Symbol":10,Selawik:10,"Selawik Light":10,"Selawik Semibold":10,"Shonar Bangla":10,"Showcard Gothic":11,Shruti:11,"Simplified Arabic":10,"Simplified Arabic Fixed":11,"SimSun-ExtB":10,"Sitka Banner":10,"Sitka Display":10,"Sitka Heading":11,"Sitka Small":13,"Sitka Subheading":11,"Sitka Text":12,"Snap ITC":16,"Source Sans Pro":9,"Source Sans Pro Black":10,"Source Sans Pro ExtraLight":9,"Source Sans Pro Light":10,"Source Sans Pro SemiBold":10,Stencil:11,Sylfaen:10,Symbol:10,Tahoma:10,"Tempus Sans ITC":13,"TH SarabunPSK":7,"Times New Roman":10,"Traditional Arabic":10,"Trebuchet MS":10,Tunga:10,"Tw Cen MT":10,"Tw Cen MT Condensed":7,"Tw Cen MT Condensed Extra Bold":9,"UD Digi Kyokasho N-B":10,"UD Digi Kyokasho NK-B":10,"UD Digi Kyokasho NK-R":10,"UD Digi Kyokasho NP-B":10,"UD Digi Kyokasho NP-R":10,"UD Digi Kyokasho N-R":10,Univers:10,"Univers Condensed":10,"Univers Condensed Light":8,"Univers Light":10,"Urdu Typesetting":10,Utsaah:8,Vani:11,Verdana:12,"Verdana Pro":12,"Verdana Pro Black":10,"Verdana Pro Cond":10,"Verdana Pro Cond Black":10,"Verdana Pro Cond Light":10,"Verdana Pro Cond SemiBold":10,"Verdana Pro Light":10,"Verdana Pro SemiBold":10,Vijaya:10,"Viner Hand ITC":13,Vivaldi:8,"Vladimir Script":9,Vrinda:11,Webdings:19,"Wide Latin":24,Wingdings:26,"Wingdings 2":22,"Wingdings 3":17,"Yet R":10,"Yu Gothic":11,"Yu Gothic Light":10,"Yu Gothic Medium":11,"Yu Gothic UI":10,"Yu Gothic UI Light":10,"Yu Gothic UI Semibold":11,"Yu Gothic UI Semilight":10,"Yu Mincho":10,"Yu Mincho Demibold":10,"Yu Mincho Light":10,"\u4eff\u5b8b":10,"\u534e\u6587\u4e2d\u5b8b":12,"\u534e\u6587\u4eff\u5b8b":9,"\u534e\u6587\u5b8b\u4f53":9,"\u534e\u6587\u5f69\u4e91":11,"\u534e\u6587\u65b0\u9b4f":11,"\u534e\u6587\u6977\u4f53":9,"\u534e\u6587\u7425\u73c0":11,"\u534e\u6587\u7ec6\u9ed1":11,"\u534e\u6587\u884c\u6977":10,"\u534e\u6587\u96b6\u4e66":8,"\u5b8b\u4f53":10,"\u5e7c\u5706":10,"\u5fae\u8f6f\u96c5\u9ed1":11,"\u5fae\u8f6f\u96c5\u9ed1 Light":11,"\u65b0\u5b8b\u4f53":10,"\u65b9\u6b63\u59da\u4f53":10,"\u65b9\u6b63\u8212\u4f53":10,"\u6977\u4f53":10,"\u7b49\u7ebf":10,"\u7b49\u7ebf Light":10,"\u96b6\u4e66":10,"\u9ed1\u4f53":10,"\u6e38\u30b4\u30b7\u30c3\u30af":11,"\uff2d\uff33 \uff30\u660e\u671d":10,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':10,"\u30e1\u30a4\u30ea\u30aa":12,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":10,"HG\u660e\u671dB":10,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":10},16:{"Gill Sans MT":11,Abadi:13,"Abadi Extra Light":12,"Agency FB":9,Aharoni:9,Aldhabi:7,Algerian:13,"Ami R":9,"Angsana New":7,AngsanaUPC:7,Aparajita:8,"Arabic Typesetting":7,Arial:12,"Arial Black":14,"Arial Narrow":10,"Arial Nova":12,"Arial Nova Cond":11,"Arial Nova Cond Light":9,"Arial Nova Light":12,"Arial Rounded MT Bold":12,"Baskerville Old Face":10,Batang:10,BatangChe:11,"Bauhaus 93":12,"Bell MT":11,Bembo:10,"Berlin Sans FB":13,"Berlin Sans FB Demi":13,"Bernard MT Condensed":10,"Blackadder ITC":8,"Bodoni MT":10,"Bodoni MT Black":14,"Bodoni MT Condensed":7,"Bodoni MT Poster Compressed":7,"Book Antiqua":11,"Bookman Old Style":13,"Bookshelf Symbol 7":16,"Bradley Hand ITC":14,"Britannic Bold":13,Broadway:14,"Browallia New":8,BrowalliaUPC:8,"Brush Script MT":11,Calibri:11,"Calibri Light":11,"Californian FB":12,"Calisto MT":11,Cambria:12,"Cambria Math":12,Candara:12,Castellar:15,Centaur:10,Century:12,"Century Gothic":12,"Century Schoolbook":12,Chiller:10,"Colonna MT":11,"Comic Sans MS":13,Consolas:12,Constantia:11,"Cooper Black":13,"Copperplate Gothic Bold":15,"Copperplate Gothic Light":15,Corbel:11,"Cordia New":8,CordiaUPC:8,"Courier New":13,"Curlz MT":11,Dante:9,DaunPenh:7,David:9,DilleniaUPC:7,DokChampa:12,Dotum:11,DotumChe:11,Dubai:11,"Dubai Light":11,"Dubai Medium":11,Ebrima:11,"Edwardian Script ITC":10,Elephant:16,"Engravers MT":14,"Eras Bold ITC":14,"Eras Demi ITC":13,"Eras Light ITC":11,"Eras Medium ITC":12,EucrosiaUPC:9,Euphemia:12,"Expo M":18,FangSong:11,"Felix Titling":12,"Footlight MT Light":12,Forte:11,"Franklin Gothic Book":12,"Franklin Gothic Demi":12,"Franklin Gothic Demi Cond":11,"Franklin Gothic Heavy":12,"Franklin Gothic Medium":12,"Franklin Gothic Medium Cond":11,FrankRuehl:9,FreesiaUPC:9,"Freestyle Script":8,"French Script MT":8,Gabriola:8,Gadugi:11,Garamond:10,Gautami:13,Georgia:13,"Georgia Pro":12,"Georgia Pro Black":15,"Georgia Pro Cond":11,"Georgia Pro Cond Black":13,"Georgia Pro Cond Light":11,"Georgia Pro Cond Semibold":12,"Georgia Pro Light":12,"Georgia Pro Semibold":13,Gigi:12,"Gill Sans MT Condensed":8,"Gill Sans MT Ext Condensed Bold":7,"Gill Sans Nova":11,"Gill Sans Nova Cond":7,"Gill Sans Nova Cond Lt":6,"Gill Sans Nova Cond Ultra Bold":12,"Gill Sans Nova Cond XBd":11,"Gill Sans Nova Light":11,"Gill Sans Nova Ultra Bold":18,"Gill Sans Ultra Bold":18,"Gill Sans Ultra Bold Condensed":12,Gisha:11,"Gloucester MT Extra Condensed":8,"Goudy Old Style":11,"Goudy Stout":17,Grotesque:10,"Grotesque Light":10,Gulim:11,GulimChe:11,Gungsuh:11,GungsuhChe:11,"Hadassah Friedlaender":12,Haettenschweiler:9,"Harlow Solid Italic":10,Harrington:12,"Headline R":15,HGGothicE:11,HGGothicM:11,HGGyoshotai:11,HGKyokashotai:11,HGMaruGothicMPRO:16,HGMinchoB:12,HGMinchoE:12,HGPGothicE:12,HGPGothicM:13,HGPGyoshotai:11,HGPKyokashotai:11,HGPMinchoB:11,HGPMinchoE:12,HGPSoeiKakugothicUB:14,HGPSoeiKakupoptai:15,HGPSoeiPresenceEB:13,HGSeikaishotaiPRO:12,HGSGothicE:11,HGSGothicM:12,HGSGyoshotai:10,HGSKyokashotai:10,HGSMinchoB:11,HGSMinchoE:12,HGSoeiKakugothicUB:12,HGSoeiKakupoptai:12,HGSoeiPresenceEB:12,HGSSoeiKakugothicUB:13,HGSSoeiKakupoptai:14,HGSSoeiPresenceEB:12,"High Tower Text":10,"HYGothic-Extra":13,"HYGothic-Medium":12,"HYGraphic-Medium":12,"HYGungSo-Bold":12,"HYHeadLine-Medium":12,"HYMyeongJo-Extra":14,"HYPMokGak-Bold":15,"HYPost-Light":14,"HYPost-Medium":15,"HYShortSamul-Medium":8,"HYSinMyeongJo-Medium":13,Impact:11,"Imprint MT Shadow":11,"Informal Roman":11,"Ink Free":11,IrisUPC:11,"Iskoola Pota":11,JasmineUPC:10,"Javanese Text":12,Jokerman:15,"Juice ITC":8,KaiTi:11,Kalinga:12,Kartika:12,"Khmer UI":11,KodchiangUPC:7,Kokila:8,"Kristen ITC":13,"Kunstler Script":7,"Lao UI":11,Latha:11,Leelawadee:11,"Leelawadee UI":11,"Leelawadee UI Semilight":12,"Levenim MT":12,LilyUPC:9,"Lucida Bright":13,"Lucida Calligraphy":15,"Lucida Console":14,"Lucida Fax":14,"Lucida Handwriting":15,"Lucida Sans":14,"Lucida Sans Typewriter":13,"Lucida Sans Unicode":14,"Magic R":13,Magneto:16,"Maiandra GD":13,"Malgun Gothic":12,"Malgun Gothic Semilight":13,Mangal:12,Marlett:22,"Matura MT Script Capitals":15,Meiryo:14,"Meiryo UI":14,"Microsoft GothicNeo":12,"Microsoft Himalaya":8,"Microsoft JhengHei":13,"Microsoft JhengHei Light":13,"Microsoft JhengHei UI":13,"Microsoft JhengHei UI Light":13,"Microsoft New Tai Lue":12,"Microsoft PhagsPa":12,"Microsoft Sans Serif":13,"Microsoft Tai Le":12,"Microsoft Uighur":8,"Microsoft YaHei Light":13,"Microsoft YaHei UI":13,"Microsoft YaHei UI Light":13,"Microsoft Yi Baiti":12,MingLiU:12,MingLiU_HKSCS:12,"MingLiU_HKSCS-ExtB":12,"MingLiU-ExtB":12,Miriam:11,"Miriam Fixed":14,Mistral:10,"Modern No. 20":11,"MoeumT R":13,"Mongolian Baiti":12,"Monotype Corsiva":10,MoolBoran:8,"MS Gothic":11,"MS Mincho":12,"MS Outlook":12,"MS PGothic":12,"MS PMincho":12,"MS Reference Sans Serif":14,"MS Reference Specialty":26,"MS UI Gothic":12,"MT Extra":22,"MV Boli":16,"Myanmar Text":12,Narkisim:10,"Neue Haas Grotesk Text Pro":12,"New Gulim":13,"News Gothic MT":14,"Niagara Engraved":8,"Niagara Solid":8,"Nirmala UI":12,"Nirmala UI Semilight":13,Nyala:12,"OCR A Extended":14,OCRB:14,"Old English Text MT":12,Onyx:8,"Palace Script MT":8,"Palatino Linotype":11,Papyrus:14,Parchment:5,Perpetua:10,"Perpetua Titling MT":14,"Plantagenet Cherokee":12,Playbill:8,PMingLiU:11,"PMingLiU-ExtB":11,"Poor Richard":13,Pristina:11,"Pyunji R":11,Raavi:11,"Rage Italic":12,Ravie:21,Rockwell:11,"Rockwell Condensed":9,"Rockwell Extra Bold":14,"Rockwell Light":12,"Rockwell Nova":12,"Rockwell Nova Cond":12,"Rockwell Nova Cond Light":12,"Rockwell Nova Extra Bold":12,"Rockwell Nova Light":12,Rod:12,"Sakkal Majalla":12,"Sanskrit Text":13,"Script MT Bold":11,"Segoe MDL2 Assets":8,"Segoe Print":15,"Segoe Script":15,"Segoe UI":11,"Segoe UI Black":13,"Segoe UI Emoji":11,"Segoe UI Historic":11,"Segoe UI Light":11,"Segoe UI Semibold":12,"Segoe UI Semilight":11,"Segoe UI Symbol":11,Selawik:11,"Selawik Light":11,"Selawik Semibold":12,"Shonar Bangla":11,"Showcard Gothic":12,Shruti:13,"Simplified Arabic":11,"Simplified Arabic Fixed":13,"SimSun-ExtB":11,"Sitka Banner":11,"Sitka Display":11,"Sitka Heading":12,"Sitka Small":14,"Sitka Subheading":12,"Sitka Text":13,"Snap ITC":18,"Source Sans Pro":10,"Source Sans Pro Black":11,"Source Sans Pro ExtraLight":10,"Source Sans Pro Light":11,"Source Sans Pro SemiBold":11,Stencil:12,Sylfaen:11,Symbol:11,Tahoma:11,"Tempus Sans ITC":14,"TH SarabunPSK":8,"Times New Roman":11,"Traditional Arabic":10,"Trebuchet MS":11,Tunga:11,"Tw Cen MT":12,"Tw Cen MT Condensed":8,"Tw Cen MT Condensed Extra Bold":10,"UD Digi Kyokasho N-B":11,"UD Digi Kyokasho NK-B":11,"UD Digi Kyokasho NK-R":11,"UD Digi Kyokasho NP-B":11,"UD Digi Kyokasho NP-R":11,"UD Digi Kyokasho N-R":11,Univers:11,"Univers Condensed":11,"Univers Condensed Light":9,"Univers Light":11,"Urdu Typesetting":11,Utsaah:8,Vani:13,Verdana:13,"Verdana Pro":13,"Verdana Pro Black":11,"Verdana Pro Cond":11,"Verdana Pro Cond Black":11,"Verdana Pro Cond Light":11,"Verdana Pro Cond SemiBold":11,"Verdana Pro Light":11,"Verdana Pro SemiBold":11,Vijaya:11,"Viner Hand ITC":14,Vivaldi:9,"Vladimir Script":10,Vrinda:12,Webdings:21,"Wide Latin":26,Wingdings:28,"Wingdings 2":24,"Wingdings 3":19,"Yet R":11,"Yu Gothic":12,"Yu Gothic Light":11,"Yu Gothic Medium":12,"Yu Gothic UI":11,"Yu Gothic UI Light":11,"Yu Gothic UI Semibold":12,"Yu Gothic UI Semilight":12,"Yu Mincho":11,"Yu Mincho Demibold":11,"Yu Mincho Light":11,"\u4eff\u5b8b":11,"\u534e\u6587\u4e2d\u5b8b":13,"\u534e\u6587\u4eff\u5b8b":10,"\u534e\u6587\u5b8b\u4f53":10,"\u534e\u6587\u5f69\u4e91":12,"\u534e\u6587\u65b0\u9b4f":12,"\u534e\u6587\u6977\u4f53":10,"\u534e\u6587\u7425\u73c0":12,"\u534e\u6587\u7ec6\u9ed1":12,"\u534e\u6587\u884c\u6977":11,"\u534e\u6587\u96b6\u4e66":9,"\u5b8b\u4f53":11,"\u5e7c\u5706":11,"\u5fae\u8f6f\u96c5\u9ed1":12,"\u5fae\u8f6f\u96c5\u9ed1 Light":12,"\u65b0\u5b8b\u4f53":11,"\u65b9\u6b63\u59da\u4f53":11,"\u65b9\u6b63\u8212\u4f53":11,"\u6977\u4f53":11,"\u7b49\u7ebf":11,"\u7b49\u7ebf Light":11,"\u96b6\u4e66":11,"\u9ed1\u4f53":11,"\u6e38\u30b4\u30b7\u30c3\u30af":12,"\uff2d\uff33 \uff30\u660e\u671d":11,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':11,"\u30e1\u30a4\u30ea\u30aa":13,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":11,"HG\u660e\u671dB":11,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":11},18:{"Gill Sans MT":12,Abadi:15,"Abadi Extra Light":13,"Agency FB":10,Aharoni:10,Aldhabi:8,Algerian:14,"Ami R":10,"Angsana New":8,AngsanaUPC:8,Aparajita:10,"Arabic Typesetting":8,Arial:13,"Arial Black":16,"Arial Narrow":11,"Arial Nova":13,"Arial Nova Cond":12,"Arial Nova Cond Light":11,"Arial Nova Light":13,"Arial Rounded MT Bold":14,"Baskerville Old Face":12,Batang:12,BatangChe:12,"Bauhaus 93":14,"Bell MT":12,Bembo:12,"Berlin Sans FB":14,"Berlin Sans FB Demi":15,"Bernard MT Condensed":12,"Blackadder ITC":9,"Bodoni MT":12,"Bodoni MT Black":16,"Bodoni MT Condensed":8,"Bodoni MT Poster Compressed":8,"Book Antiqua":12,"Bookman Old Style":15,"Bookshelf Symbol 7":18,"Bradley Hand ITC":15,"Britannic Bold":15,Broadway:16,"Browallia New":9,BrowalliaUPC:9,"Brush Script MT":12,Calibri:12,"Calibri Light":12,"Californian FB":13,"Calisto MT":12,Cambria:13,"Cambria Math":13,Candara:13,Castellar:17,Centaur:12,Century:13,"Century Gothic":13,"Century Schoolbook":13,Chiller:11,"Colonna MT":12,"Comic Sans MS":15,Consolas:13,Constantia:13,"Cooper Black":14,"Copperplate Gothic Bold":17,"Copperplate Gothic Light":17,Corbel:13,"Cordia New":9,CordiaUPC:9,"Courier New":14,"Curlz MT":13,Dante:11,DaunPenh:8,David:11,DilleniaUPC:7,DokChampa:13,Dotum:13,DotumChe:12,Dubai:13,"Dubai Light":13,"Dubai Medium":13,Ebrima:13,"Edwardian Script ITC":11,Elephant:18,"Engravers MT":16,"Eras Bold ITC":16,"Eras Demi ITC":15,"Eras Light ITC":13,"Eras Medium ITC":14,EucrosiaUPC:10,Euphemia:14,"Expo M":21,FangSong:12,"Felix Titling":14,"Footlight MT Light":13,Forte:13,"Franklin Gothic Book":14,"Franklin Gothic Demi":14,"Franklin Gothic Demi Cond":12,"Franklin Gothic Heavy":14,"Franklin Gothic Medium":14,"Franklin Gothic Medium Cond":12,FrankRuehl:10,FreesiaUPC:11,"Freestyle Script":9,"French Script MT":9,Gabriola:10,Gadugi:13,Garamond:11,Gautami:14,Georgia:15,"Georgia Pro":14,"Georgia Pro Black":17,"Georgia Pro Cond":13,"Georgia Pro Cond Black":15,"Georgia Pro Cond Light":12,"Georgia Pro Cond Semibold":13,"Georgia Pro Light":13,"Georgia Pro Semibold":15,Gigi:12,"Gill Sans MT Condensed":9,"Gill Sans MT Ext Condensed Bold":8,"Gill Sans Nova":12,"Gill Sans Nova Cond":8,"Gill Sans Nova Cond Lt":7,"Gill Sans Nova Cond Ultra Bold":14,"Gill Sans Nova Cond XBd":13,"Gill Sans Nova Light":12,"Gill Sans Nova Ultra Bold":20,"Gill Sans Ultra Bold":21,"Gill Sans Ultra Bold Condensed":14,Gisha:13,"Gloucester MT Extra Condensed":9,"Goudy Old Style":12,"Goudy Stout":20,Grotesque:12,"Grotesque Light":12,Gulim:13,GulimChe:12,Gungsuh:13,GungsuhChe:12,"Hadassah Friedlaender":14,Haettenschweiler:11,"Harlow Solid Italic":11,Harrington:13,"Headline R":17,HGGothicE:12,HGGothicM:12,HGGyoshotai:12,HGKyokashotai:12,HGMaruGothicMPRO:18,HGMinchoB:13,HGMinchoE:13,HGPGothicE:14,HGPGothicM:15,HGPGyoshotai:12,HGPKyokashotai:12,HGPMinchoB:12,HGPMinchoE:13,HGPSoeiKakugothicUB:16,HGPSoeiKakupoptai:17,HGPSoeiPresenceEB:14,HGSeikaishotaiPRO:14,HGSGothicE:13,HGSGothicM:14,HGSGyoshotai:11,HGSKyokashotai:11,HGSMinchoB:12,HGSMinchoE:13,HGSoeiKakugothicUB:13,HGSoeiKakupoptai:13,HGSoeiPresenceEB:13,HGSSoeiKakugothicUB:15,HGSSoeiKakupoptai:16,HGSSoeiPresenceEB:13,"High Tower Text":12,"HYGothic-Extra":15,"HYGothic-Medium":14,"HYGraphic-Medium":14,"HYGungSo-Bold":14,"HYHeadLine-Medium":14,"HYMyeongJo-Extra":16,"HYPMokGak-Bold":17,"HYPost-Light":16,"HYPost-Medium":17,"HYShortSamul-Medium":9,"HYSinMyeongJo-Medium":15,Impact:13,"Imprint MT Shadow":12,"Informal Roman":13,"Ink Free":12,IrisUPC:12,"Iskoola Pota":12,JasmineUPC:11,"Javanese Text":14,Jokerman:17,"Juice ITC":8,KaiTi:12,Kalinga:13,Kartika:14,"Khmer UI":13,KodchiangUPC:8,Kokila:9,"Kristen ITC":14,"Kunstler Script":8,"Lao UI":13,Latha:12,Leelawadee:13,"Leelawadee UI":13,"Leelawadee UI Semilight":13,"Levenim MT":14,LilyUPC:11,"Lucida Bright":15,"Lucida Calligraphy":17,"Lucida Console":15,"Lucida Fax":16,"Lucida Handwriting":17,"Lucida Sans":16,"Lucida Sans Typewriter":14,"Lucida Sans Unicode":16,"Magic R":14,Magneto:19,"Maiandra GD":15,"Malgun Gothic":14,"Malgun Gothic Semilight":14,Mangal:14,Marlett:25,"Matura MT Script Capitals":17,Meiryo:16,"Meiryo UI":16,"Microsoft GothicNeo":13,"Microsoft Himalaya":9,"Microsoft JhengHei":14,"Microsoft JhengHei Light":15,"Microsoft JhengHei UI":14,"Microsoft JhengHei UI Light":15,"Microsoft New Tai Lue":14,"Microsoft PhagsPa":14,"Microsoft Sans Serif":14,"Microsoft Tai Le":14,"Microsoft Uighur":9,"Microsoft YaHei Light":15,"Microsoft YaHei UI":15,"Microsoft YaHei UI Light":15,"Microsoft Yi Baiti":13,MingLiU:13,MingLiU_HKSCS:13,"MingLiU_HKSCS-ExtB":13,"MingLiU-ExtB":13,Miriam:12,"Miriam Fixed":15,Mistral:12,"Modern No. 20":12,"MoeumT R":14,"Mongolian Baiti":13,"Monotype Corsiva":12,MoolBoran:9,"MS Gothic":12,"MS Mincho":13,"MS Outlook":13,"MS PGothic":13,"MS PMincho":13,"MS Reference Sans Serif":16,"MS Reference Specialty":30,"MS UI Gothic":13,"MT Extra":25,"MV Boli":18,"Myanmar Text":14,Narkisim:11,"Neue Haas Grotesk Text Pro":13,"New Gulim":15,"News Gothic MT":16,"Niagara Engraved":9,"Niagara Solid":9,"Nirmala UI":14,"Nirmala UI Semilight":14,Nyala:13,"OCR A Extended":15,OCRB:15,"Old English Text MT":13,Onyx:9,"Palace Script MT":9,"Palatino Linotype":12,Papyrus:15,Parchment:6,Perpetua:11,"Perpetua Titling MT":16,"Plantagenet Cherokee":13,Playbill:10,PMingLiU:12,"PMingLiU-ExtB":12,"Poor Richard":14,Pristina:13,"Pyunji R":13,Raavi:12,"Rage Italic":13,Ravie:24,Rockwell:13,"Rockwell Condensed":10,"Rockwell Extra Bold":17,"Rockwell Light":14,"Rockwell Nova":13,"Rockwell Nova Cond":13,"Rockwell Nova Cond Light":13,"Rockwell Nova Extra Bold":13,"Rockwell Nova Light":13,Rod:15,"Sakkal Majalla":10,"Sanskrit Text":15,"Script MT Bold":13,"Segoe MDL2 Assets":10,"Segoe Print":18,"Segoe Script":18,"Segoe UI":13,"Segoe UI Black":15,"Segoe UI Emoji":13,"Segoe UI Historic":13,"Segoe UI Light":12,"Segoe UI Semibold":14,"Segoe UI Semilight":13,"Segoe UI Symbol":13,Selawik:12,"Selawik Light":13,"Selawik Semibold":14,"Shonar Bangla":12,"Showcard Gothic":14,Shruti:14,"Simplified Arabic":13,"Simplified Arabic Fixed":14,"SimSun-ExtB":12,"Sitka Banner":12,"Sitka Display":13,"Sitka Heading":13,"Sitka Small":16,"Sitka Subheading":14,"Sitka Text":15,"Snap ITC":21,"Source Sans Pro":12,"Source Sans Pro Black":12,"Source Sans Pro ExtraLight":11,"Source Sans Pro Light":12,"Source Sans Pro SemiBold":12,Stencil:14,Sylfaen:12,Symbol:12,Tahoma:13,"Tempus Sans ITC":16,"TH SarabunPSK":9,"Times New Roman":12,"Traditional Arabic":12,"Trebuchet MS":13,Tunga:13,"Tw Cen MT":13,"Tw Cen MT Condensed":9,"Tw Cen MT Condensed Extra Bold":12,"UD Digi Kyokasho N-B":12,"UD Digi Kyokasho NK-B":12,"UD Digi Kyokasho NK-R":12,"UD Digi Kyokasho NP-B":17,"UD Digi Kyokasho NP-R":12,"UD Digi Kyokasho N-R":12,Univers:12,"Univers Condensed":12,"Univers Condensed Light":11,"Univers Light":12,"Urdu Typesetting":12,Utsaah:10,Vani:15,Verdana:15,"Verdana Pro":15,"Verdana Pro Black":12,"Verdana Pro Cond":12,"Verdana Pro Cond Black":12,"Verdana Pro Cond Light":12,"Verdana Pro Cond SemiBold":12,"Verdana Pro Light":12,"Verdana Pro SemiBold":12,Vijaya:12,"Viner Hand ITC":16,Vivaldi:10,"Vladimir Script":11,Vrinda:14,Webdings:24,"Wide Latin":30,Wingdings:32,"Wingdings 2":27,"Wingdings 3":21,"Yet R":13,"Yu Gothic":13,"Yu Gothic Light":13,"Yu Gothic Medium":13,"Yu Gothic UI":13,"Yu Gothic UI Light":13,"Yu Gothic UI Semibold":14,"Yu Gothic UI Semilight":13,"Yu Mincho":13,"Yu Mincho Demibold":13,"Yu Mincho Light":12,"\u4eff\u5b8b":12,"\u534e\u6587\u4e2d\u5b8b":15,"\u534e\u6587\u4eff\u5b8b":11,"\u534e\u6587\u5b8b\u4f53":11,"\u534e\u6587\u5f69\u4e91":14,"\u534e\u6587\u65b0\u9b4f":14,"\u534e\u6587\u6977\u4f53":11,"\u534e\u6587\u7425\u73c0":14,"\u534e\u6587\u7ec6\u9ed1":13,"\u534e\u6587\u884c\u6977":12,"\u534e\u6587\u96b6\u4e66":11,"\u5b8b\u4f53":12,"\u5e7c\u5706":12,"\u5fae\u8f6f\u96c5\u9ed1":14,"\u5fae\u8f6f\u96c5\u9ed1 Light":14,"\u65b0\u5b8b\u4f53":12,"\u65b9\u6b63\u59da\u4f53":12,"\u65b9\u6b63\u8212\u4f53":13,"\u6977\u4f53":12,"\u7b49\u7ebf":13,"\u7b49\u7ebf Light":12,"\u96b6\u4e66":12,"\u9ed1\u4f53":12,"\u6e38\u30b4\u30b7\u30c3\u30af":13,"\uff2d\uff33 \uff30\u660e\u671d":12,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':12,"\u30e1\u30a4\u30ea\u30aa":15,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":12,"HG\u660e\u671dB":12,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":12},20:{"Gill Sans MT":14,Abadi:16,"Abadi Extra Light":15,"Agency FB":11,Aharoni:11,Aldhabi:9,Algerian:16,"Ami R":11,"Angsana New":9,AngsanaUPC:9,Aparajita:11,"Arabic Typesetting":9,Arial:15,"Arial Black":18,"Arial Narrow":12,"Arial Nova":15,"Arial Nova Cond":14,"Arial Nova Cond Light":12,"Arial Nova Light":15,"Arial Rounded MT Bold":16,"Baskerville Old Face":13,Batang:16,BatangChe:14,"Bauhaus 93":15,"Bell MT":14,Bembo:13,"Berlin Sans FB":16,"Berlin Sans FB Demi":17,"Bernard MT Condensed":13,"Blackadder ITC":11,"Bodoni MT":13,"Bodoni MT Black":18,"Bodoni MT Condensed":9,"Bodoni MT Poster Compressed":8,"Book Antiqua":14,"Bookman Old Style":17,"Bookshelf Symbol 7":20,"Bradley Hand ITC":17,"Britannic Bold":17,Broadway:17,"Browallia New":10,BrowalliaUPC:10,"Brush Script MT":14,Calibri:14,"Calibri Light":14,"Californian FB":14,"Calisto MT":14,Cambria:15,"Cambria Math":15,Candara:15,Castellar:19,Centaur:13,Century:15,"Century Gothic":15,"Century Schoolbook":15,Chiller:13,"Colonna MT":14,"Comic Sans MS":16,Consolas:15,Constantia:15,"Cooper Black":16,"Copperplate Gothic Bold":19,"Copperplate Gothic Light":19,Corbel:14,"Cordia New":10,CordiaUPC:10,"Courier New":16,"Curlz MT":15,Dante:12,DaunPenh:9,David:12,DilleniaUPC:8,DokChampa:15,Dotum:16,DotumChe:14,Dubai:15,"Dubai Light":15,"Dubai Medium":15,Ebrima:15,"Edwardian Script ITC":13,Elephant:20,"Engravers MT":17,"Eras Bold ITC":18,"Eras Demi ITC":16,"Eras Light ITC":14,"Eras Medium ITC":15,EucrosiaUPC:11,Euphemia:16,"Expo M":23,FangSong:14,"Felix Titling":16,"Footlight MT Light":15,Forte:14,"Franklin Gothic Book":16,"Franklin Gothic Demi":16,"Franklin Gothic Demi Cond":14,"Franklin Gothic Heavy":16,"Franklin Gothic Medium":16,"Franklin Gothic Medium Cond":14,FrankRuehl:11,FreesiaUPC:12,"Freestyle Script":10,"French Script MT":10,Gabriola:11,Gadugi:15,Garamond:13,Gautami:16,Georgia:17,"Georgia Pro":15,"Georgia Pro Black":19,"Georgia Pro Cond":14,"Georgia Pro Cond Black":17,"Georgia Pro Cond Light":14,"Georgia Pro Cond Semibold":15,"Georgia Pro Light":15,"Georgia Pro Semibold":17,Gigi:14,"Gill Sans MT Condensed":10,"Gill Sans MT Ext Condensed Bold":9,"Gill Sans Nova":14,"Gill Sans Nova Cond":9,"Gill Sans Nova Cond Lt":8,"Gill Sans Nova Cond Ultra Bold":16,"Gill Sans Nova Cond XBd":14,"Gill Sans Nova Light":14,"Gill Sans Nova Ultra Bold":23,"Gill Sans Ultra Bold":23,"Gill Sans Ultra Bold Condensed":16,Gisha:15,"Gloucester MT Extra Condensed":10,"Goudy Old Style":14,"Goudy Stout":22,Grotesque:13,"Grotesque Light":13,Gulim:16,GulimChe:14,Gungsuh:16,GungsuhChe:14,"Hadassah Friedlaender":15,Haettenschweiler:12,"Harlow Solid Italic":13,Harrington:15,"Headline R":19,HGGothicE:14,HGGothicM:14,HGGyoshotai:14,HGKyokashotai:14,HGMaruGothicMPRO:20,HGMinchoB:15,HGMinchoE:15,HGPGothicE:16,HGPGothicM:17,HGPGyoshotai:14,HGPKyokashotai:14,HGPMinchoB:14,HGPMinchoE:15,HGPSoeiKakugothicUB:18,HGPSoeiKakupoptai:19,HGPSoeiPresenceEB:16,HGSeikaishotaiPRO:16,HGSGothicE:15,HGSGothicM:16,HGSGyoshotai:13,HGSKyokashotai:13,HGSMinchoB:14,HGSMinchoE:15,HGSoeiKakugothicUB:15,HGSoeiKakupoptai:15,HGSoeiPresenceEB:15,HGSSoeiKakugothicUB:17,HGSSoeiKakupoptai:18,HGSSoeiPresenceEB:15,"High Tower Text":13,"HYGothic-Extra":17,"HYGothic-Medium":16,"HYGraphic-Medium":16,"HYGungSo-Bold":16,"HYHeadLine-Medium":16,"HYMyeongJo-Extra":18,"HYPMokGak-Bold":19,"HYPost-Light":18,"HYPost-Medium":19,"HYShortSamul-Medium":10,"HYSinMyeongJo-Medium":17,Impact:15,"Imprint MT Shadow":14,"Informal Roman":15,"Ink Free":14,IrisUPC:14,"Iskoola Pota":14,JasmineUPC:12,"Javanese Text":16,Jokerman:19,"Juice ITC":10,KaiTi:14,Kalinga:15,Kartika:16,"Khmer UI":15,KodchiangUPC:9,Kokila:10,"Kristen ITC":16,"Kunstler Script":10,"Lao UI":15,Latha:14,Leelawadee:15,"Leelawadee UI":15,"Leelawadee UI Semilight":15,"Levenim MT":15,LilyUPC:12,"Lucida Bright":16,"Lucida Calligraphy":19,"Lucida Console":17,"Lucida Fax":18,"Lucida Handwriting":19,"Lucida Sans":18,"Lucida Sans Typewriter":16,"Lucida Sans Unicode":18,"Magic R":16,Magneto:21,"Maiandra GD":17,"Malgun Gothic":16,"Malgun Gothic Semilight":16,Mangal:16,Marlett:28,"Matura MT Script Capitals":19,Meiryo:18,"Meiryo UI":18,"Microsoft GothicNeo":15,"Microsoft Himalaya":10,"Microsoft JhengHei":16,"Microsoft JhengHei Light":17,"Microsoft JhengHei UI":16,"Microsoft JhengHei UI Light":17,"Microsoft New Tai Lue":16,"Microsoft PhagsPa":16,"Microsoft Sans Serif":16,"Microsoft Tai Le":16,"Microsoft Uighur":10,"Microsoft YaHei Light":16,"Microsoft YaHei UI":17,"Microsoft YaHei UI Light":16,"Microsoft Yi Baiti":15,MingLiU:15,MingLiU_HKSCS:15,"MingLiU_HKSCS-ExtB":15,"MingLiU-ExtB":15,Miriam:14,"Miriam Fixed":17,Mistral:13,"Modern No. 20":13,"MoeumT R":16,"Mongolian Baiti":15,"Monotype Corsiva":13,MoolBoran:10,"MS Gothic":14,"MS Mincho":15,"MS Outlook":15,"MS PGothic":15,"MS PMincho":15,"MS Reference Sans Serif":18,"MS Reference Specialty":33,"MS UI Gothic":15,"MT Extra":29,"MV Boli":20,"Myanmar Text":16,Narkisim:12,"Neue Haas Grotesk Text Pro":15,"New Gulim":17,"News Gothic MT":18,"Niagara Engraved":9,"Niagara Solid":9,"Nirmala UI":16,"Nirmala UI Semilight":16,Nyala:15,"OCR A Extended":17,OCRB:17,"Old English Text MT":15,Onyx:9,"Palace Script MT":9,"Palatino Linotype":14,Papyrus:16,Parchment:7,Perpetua:12,"Perpetua Titling MT":18,"Plantagenet Cherokee":15,Playbill:11,PMingLiU:14,"PMingLiU-ExtB":14,"Poor Richard":16,Pristina:14,"Pyunji R":14,Raavi:14,"Rage Italic":15,Ravie:27,Rockwell:15,"Rockwell Condensed":12,"Rockwell Extra Bold":19,"Rockwell Light":15,"Rockwell Nova":15,"Rockwell Nova Cond":15,"Rockwell Nova Cond Light":15,"Rockwell Nova Extra Bold":15,"Rockwell Nova Light":15,Rod:17,"Sakkal Majalla":11,"Sanskrit Text":17,"Script MT Bold":14,"Segoe MDL2 Assets":11,"Segoe Print":20,"Segoe Script":20,"Segoe UI":15,"Segoe UI Black":17,"Segoe UI Emoji":15,"Segoe UI Historic":15,"Segoe UI Light":14,"Segoe UI Semibold":15,"Segoe UI Semilight":15,"Segoe UI Symbol":15,Selawik:14,"Selawik Light":14,"Selawik Semibold":15,"Shonar Bangla":14,"Showcard Gothic":16,Shruti:16,"Simplified Arabic":14,"Simplified Arabic Fixed":16,"SimSun-ExtB":14,"Sitka Banner":14,"Sitka Display":14,"Sitka Heading":15,"Sitka Small":18,"Sitka Subheading":16,"Sitka Text":17,"Snap ITC":23,"Source Sans Pro":13,"Source Sans Pro Black":14,"Source Sans Pro ExtraLight":12,"Source Sans Pro Light":12,"Source Sans Pro SemiBold":14,Stencil:16,Sylfaen:14,Symbol:14,Tahoma:15,"Tempus Sans ITC":18,"TH SarabunPSK":10,"Times New Roman":14,"Traditional Arabic":13,"Trebuchet MS":14,Tunga:14,"Tw Cen MT":15,"Tw Cen MT Condensed":10,"Tw Cen MT Condensed Extra Bold":13,"UD Digi Kyokasho N-B":14,"UD Digi Kyokasho NK-B":14,"UD Digi Kyokasho NK-R":14,"UD Digi Kyokasho NP-B":19,"UD Digi Kyokasho NP-R":14,"UD Digi Kyokasho N-R":14,Univers:14,"Univers Condensed":14,"Univers Condensed Light":12,"Univers Light":14,"Urdu Typesetting":14,Utsaah:11,Vani:17,Verdana:17,"Verdana Pro":17,"Verdana Pro Black":14,"Verdana Pro Cond":14,"Verdana Pro Cond Black":14,"Verdana Pro Cond Light":14,"Verdana Pro Cond SemiBold":14,"Verdana Pro Light":14,"Verdana Pro SemiBold":14,Vijaya:14,"Viner Hand ITC":18,Vivaldi:12,"Vladimir Script":13,Vrinda:16,Webdings:27,"Wide Latin":33,Wingdings:36,"Wingdings 2":31,"Wingdings 3":24,"Yet R":14,"Yu Gothic":15,"Yu Gothic Light":14,"Yu Gothic Medium":15,"Yu Gothic UI":15,"Yu Gothic UI Light":14,"Yu Gothic UI Semibold":16,"Yu Gothic UI Semilight":15,"Yu Mincho":15,"Yu Mincho Demibold":14,"Yu Mincho Light":14,"\u4eff\u5b8b":14,"\u534e\u6587\u4e2d\u5b8b":17,"\u534e\u6587\u4eff\u5b8b":13,"\u534e\u6587\u5b8b\u4f53":13,"\u534e\u6587\u5f69\u4e91":15,"\u534e\u6587\u65b0\u9b4f":16,"\u534e\u6587\u6977\u4f53":13,"\u534e\u6587\u7425\u73c0":15,"\u534e\u6587\u7ec6\u9ed1":15,"\u534e\u6587\u884c\u6977":14,"\u534e\u6587\u96b6\u4e66":12,"\u5b8b\u4f53":14,"\u5e7c\u5706":14,"\u5fae\u8f6f\u96c5\u9ed1":16,"\u5fae\u8f6f\u96c5\u9ed1 Light":15,"\u65b0\u5b8b\u4f53":14,"\u65b9\u6b63\u59da\u4f53":14,"\u65b9\u6b63\u8212\u4f53":15,"\u6977\u4f53":14,"\u7b49\u7ebf":14,"\u7b49\u7ebf Light":14,"\u96b6\u4e66":14,"\u9ed1\u4f53":14,"\u6e38\u30b4\u30b7\u30c3\u30af":15,"\uff2d\uff33 \uff30\u660e\u671d":14,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':14,"\u30e1\u30a4\u30ea\u30aa":17,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":14,"HG\u660e\u671dB":14,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":14},22:{"Gill Sans MT":15,Abadi:18,"Abadi Extra Light":16,"Agency FB":11,Aharoni:12,Aldhabi:9,Algerian:17,"Ami R":12,"Angsana New":10,AngsanaUPC:10,Aparajita:12,"Arabic Typesetting":10,Arial:16,"Arial Black":19,"Arial Narrow":13,"Arial Nova":16,"Arial Nova Cond":15,"Arial Nova Cond Light":13,"Arial Nova Light":16,"Arial Rounded MT Bold":17,"Baskerville Old Face":14,Batang:17,BatangChe:15,"Bauhaus 93":16,"Bell MT":15,Bembo:14,"Berlin Sans FB":17,"Berlin Sans FB Demi":18,"Bernard MT Condensed":14,"Blackadder ITC":11,"Bodoni MT":14,"Bodoni MT Black":19,"Bodoni MT Condensed":10,"Bodoni MT Poster Compressed":9,"Book Antiqua":15,"Bookman Old Style":18,"Bookshelf Symbol 7":21,"Bradley Hand ITC":19,"Britannic Bold":18,Broadway:19,"Browallia New":11,BrowalliaUPC:11,"Brush Script MT":15,Calibri:15,"Calibri Light":15,"Californian FB":15,"Calisto MT":15,Cambria:16,"Cambria Math":16,Candara:16,Castellar:21,Centaur:14,Century:16,"Century Gothic":16,"Century Schoolbook":16,Chiller:14,"Colonna MT":15,"Comic Sans MS":18,Consolas:16,Constantia:16,"Cooper Black":17,"Copperplate Gothic Bold":21,"Copperplate Gothic Light":21,Corbel:15,"Cordia New":11,CordiaUPC:11,"Courier New":17,"Curlz MT":16,Dante:13,DaunPenh:10,David:13,DilleniaUPC:9,DokChampa:16,Dotum:17,DotumChe:15,Dubai:16,"Dubai Light":16,"Dubai Medium":16,Ebrima:16,"Edwardian Script ITC":14,Elephant:22,"Engravers MT":19,"Eras Bold ITC":19,"Eras Demi ITC":18,"Eras Light ITC":16,"Eras Medium ITC":17,EucrosiaUPC:12,Euphemia:17,"Expo M":25,FangSong:15,"Felix Titling":17,"Footlight MT Light":16,Forte:15,"Franklin Gothic Book":17,"Franklin Gothic Demi":17,"Franklin Gothic Demi Cond":15,"Franklin Gothic Heavy":17,"Franklin Gothic Medium":17,"Franklin Gothic Medium Cond":15,FrankRuehl:12,FreesiaUPC:13,"Freestyle Script":10,"French Script MT":11,Gabriola:12,Gadugi:16,Garamond:14,Gautami:17,Georgia:18,"Georgia Pro":16,"Georgia Pro Black":21,"Georgia Pro Cond":15,"Georgia Pro Cond Black":18,"Georgia Pro Cond Light":15,"Georgia Pro Cond Semibold":16,"Georgia Pro Light":16,"Georgia Pro Semibold":18,Gigi:14,"Gill Sans MT Condensed":11,"Gill Sans MT Ext Condensed Bold":10,"Gill Sans Nova":15,"Gill Sans Nova Cond":10,"Gill Sans Nova Cond Lt":9,"Gill Sans Nova Cond Ultra Bold":17,"Gill Sans Nova Cond XBd":15,"Gill Sans Nova Light":15,"Gill Sans Nova Ultra Bold":25,"Gill Sans Ultra Bold":25,"Gill Sans Ultra Bold Condensed":17,Gisha:16,"Gloucester MT Extra Condensed":11,"Goudy Old Style":15,"Goudy Stout":24,Grotesque:14,"Grotesque Light":14,Gulim:17,GulimChe:15,Gungsuh:17,GungsuhChe:15,"Hadassah Friedlaender":17,Haettenschweiler:13,"Harlow Solid Italic":14,Harrington:16,"Headline R":21,HGGothicE:15,HGGothicM:15,HGGyoshotai:15,HGKyokashotai:15,HGMaruGothicMPRO:22,
|
24
24
|
HGMinchoB:16,HGMinchoE:16,HGPGothicE:17,HGPGothicM:18,HGPGyoshotai:15,HGPKyokashotai:14,HGPMinchoB:15,HGPMinchoE:16,HGPSoeiKakugothicUB:19,HGPSoeiKakupoptai:20,HGPSoeiPresenceEB:17,HGSeikaishotaiPRO:17,HGSGothicE:16,HGSGothicM:17,HGSGyoshotai:14,HGSKyokashotai:13,HGSMinchoB:15,HGSMinchoE:16,HGSoeiKakugothicUB:16,HGSoeiKakupoptai:16,HGSoeiPresenceEB:16,HGSSoeiKakugothicUB:18,HGSSoeiKakupoptai:19,HGSSoeiPresenceEB:16,"High Tower Text":14,"HYGothic-Extra":18,"HYGothic-Medium":17,"HYGraphic-Medium":17,"HYGungSo-Bold":17,"HYHeadLine-Medium":17,"HYMyeongJo-Extra":19,"HYPMokGak-Bold":21,"HYPost-Light":19,"HYPost-Medium":21,"HYShortSamul-Medium":11,"HYSinMyeongJo-Medium":18,Impact:16,"Imprint MT Shadow":15,"Informal Roman":16,"Ink Free":15,IrisUPC:15,"Iskoola Pota":15,JasmineUPC:13,"Javanese Text":17,Jokerman:21,"Juice ITC":11,KaiTi:15,Kalinga:16,Kartika:17,"Khmer UI":16,KodchiangUPC:10,Kokila:11,"Kristen ITC":17,"Kunstler Script":10,"Lao UI":16,Latha:15,Leelawadee:16,"Leelawadee UI":16,"Leelawadee UI Semilight":16,"Levenim MT":17,LilyUPC:13,"Lucida Bright":18,"Lucida Calligraphy":20,"Lucida Console":18,"Lucida Fax":19,"Lucida Handwriting":21,"Lucida Sans":19,"Lucida Sans Typewriter":17,"Lucida Sans Unicode":19,"Magic R":17,Magneto:22,"Maiandra GD":18,"Malgun Gothic":17,"Malgun Gothic Semilight":17,Mangal:17,Marlett:30,"Matura MT Script Capitals":20,Meiryo:20,"Meiryo UI":20,"Microsoft GothicNeo":16,"Microsoft Himalaya":11,"Microsoft JhengHei":17,"Microsoft JhengHei Light":18,"Microsoft JhengHei UI":17,"Microsoft JhengHei UI Light":18,"Microsoft New Tai Lue":17,"Microsoft PhagsPa":17,"Microsoft Sans Serif":17,"Microsoft Tai Le":17,"Microsoft Uighur":11,"Microsoft YaHei Light":18,"Microsoft YaHei UI":18,"Microsoft YaHei UI Light":18,"Microsoft Yi Baiti":16,MingLiU:16,MingLiU_HKSCS:16,"MingLiU_HKSCS-ExtB":16,"MingLiU-ExtB":16,Miriam:15,"Miriam Fixed":18,Mistral:14,"Modern No. 20":14,"MoeumT R":17,"Mongolian Baiti":16,"Monotype Corsiva":14,MoolBoran:11,"MS Gothic":15,"MS Mincho":16,"MS Outlook":16,"MS PGothic":16,"MS PMincho":16,"MS Reference Sans Serif":19,"MS Reference Specialty":36,"MS UI Gothic":16,"MT Extra":31,"MV Boli":21,"Myanmar Text":17,Narkisim:13,"Neue Haas Grotesk Text Pro":16,"New Gulim":18,"News Gothic MT":19,"Niagara Engraved":10,"Niagara Solid":10,"Nirmala UI":17,"Nirmala UI Semilight":17,Nyala:16,"OCR A Extended":19,OCRB:18,"Old English Text MT":16,Onyx:10,"Palace Script MT":10,"Palatino Linotype":15,Papyrus:18,Parchment:7,Perpetua:13,"Perpetua Titling MT":20,"Plantagenet Cherokee":16,Playbill:11,PMingLiU:15,"PMingLiU-ExtB":15,"Poor Richard":17,Pristina:15,"Pyunji R":15,Raavi:15,"Rage Italic":16,Ravie:29,Rockwell:16,"Rockwell Condensed":12,"Rockwell Extra Bold":20,"Rockwell Light":16,"Rockwell Nova":16,"Rockwell Nova Cond":16,"Rockwell Nova Cond Light":16,"Rockwell Nova Extra Bold":16,"Rockwell Nova Light":16,Rod:18,"Sakkal Majalla":12,"Sanskrit Text":18,"Script MT Bold":15,"Segoe MDL2 Assets":12,"Segoe Print":21,"Segoe Script":21,"Segoe UI":16,"Segoe UI Black":18,"Segoe UI Emoji":16,"Segoe UI Historic":16,"Segoe UI Light":15,"Segoe UI Semibold":17,"Segoe UI Semilight":16,"Segoe UI Symbol":16,Selawik:15,"Selawik Light":15,"Selawik Semibold":16,"Shonar Bangla":15,"Showcard Gothic":17,Shruti:17,"Simplified Arabic":15,"Simplified Arabic Fixed":17,"SimSun-ExtB":15,"Sitka Banner":15,"Sitka Display":15,"Sitka Heading":16,"Sitka Small":20,"Sitka Subheading":17,"Sitka Text":18,"Snap ITC":25,"Source Sans Pro":14,"Source Sans Pro Black":15,"Source Sans Pro ExtraLight":13,"Source Sans Pro Light":13,"Source Sans Pro SemiBold":14,Stencil:17,Sylfaen:15,Symbol:15,Tahoma:16,"Tempus Sans ITC":19,"TH SarabunPSK":11,"Times New Roman":15,"Traditional Arabic":14,"Trebuchet MS":15,Tunga:15,"Tw Cen MT":16,"Tw Cen MT Condensed":11,"Tw Cen MT Condensed Extra Bold":14,"UD Digi Kyokasho N-B":15,"UD Digi Kyokasho NK-B":15,"UD Digi Kyokasho NK-R":15,"UD Digi Kyokasho NP-B":21,"UD Digi Kyokasho NP-R":15,"UD Digi Kyokasho N-R":15,Univers:15,"Univers Condensed":15,"Univers Condensed Light":13,"Univers Light":15,"Urdu Typesetting":15,Utsaah:12,Vani:18,Verdana:18,"Verdana Pro":18,"Verdana Pro Black":15,"Verdana Pro Cond":15,"Verdana Pro Cond Black":15,"Verdana Pro Cond Light":15,"Verdana Pro Cond SemiBold":15,"Verdana Pro Light":15,"Verdana Pro SemiBold":15,Vijaya:12,"Viner Hand ITC":20,Vivaldi:12,"Vladimir Script":13,Vrinda:17,Webdings:29,"Wide Latin":36,Wingdings:39,"Wingdings 2":33,"Wingdings 3":26,"Yet R":16,"Yu Gothic":16,"Yu Gothic Light":16,"Yu Gothic Medium":16,"Yu Gothic UI":16,"Yu Gothic UI Light":15,"Yu Gothic UI Semibold":17,"Yu Gothic UI Semilight":16,"Yu Mincho":16,"Yu Mincho Demibold":15,"Yu Mincho Light":15,"\u4eff\u5b8b":15,"\u534e\u6587\u4e2d\u5b8b":18,"\u534e\u6587\u4eff\u5b8b":14,"\u534e\u6587\u5b8b\u4f53":14,"\u534e\u6587\u5f69\u4e91":16,"\u534e\u6587\u65b0\u9b4f":17,"\u534e\u6587\u6977\u4f53":14,"\u534e\u6587\u7425\u73c0":16,"\u534e\u6587\u7ec6\u9ed1":16,"\u534e\u6587\u884c\u6977":15,"\u534e\u6587\u96b6\u4e66":13,"\u5b8b\u4f53":15,"\u5e7c\u5706":15,"\u5fae\u8f6f\u96c5\u9ed1":17,"\u5fae\u8f6f\u96c5\u9ed1 Light":17,"\u65b0\u5b8b\u4f53":15,"\u65b9\u6b63\u59da\u4f53":15,"\u65b9\u6b63\u8212\u4f53":16,"\u6977\u4f53":15,"\u7b49\u7ebf":15,"\u7b49\u7ebf Light":15,"\u96b6\u4e66":15,"\u9ed1\u4f53":15,"\u6e38\u30b4\u30b7\u30c3\u30af":16,"\uff2d\uff33 \uff30\u660e\u671d":15,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':15,"\u30e1\u30a4\u30ea\u30aa":18,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":15,"HG\u660e\u671dB":15,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":15},24:{"Gill Sans MT":16,Abadi:19,"Abadi Extra Light":18,"Agency FB":14,Aharoni:13,Aldhabi:10,Algerian:19,"Ami R":13,"Angsana New":11,AngsanaUPC:11,Aparajita:13,"Arabic Typesetting":11,Arial:18,"Arial Black":21,"Arial Narrow":15,"Arial Nova":18,"Arial Nova Cond":16,"Arial Nova Cond Light":14,"Arial Nova Light":18,"Arial Rounded MT Bold":19,"Baskerville Old Face":16,Batang:19,BatangChe:16,"Bauhaus 93":18,"Bell MT":16,Bembo:16,"Berlin Sans FB":19,"Berlin Sans FB Demi":20,"Bernard MT Condensed":16,"Blackadder ITC":13,"Bodoni MT":16,"Bodoni MT Black":21,"Bodoni MT Condensed":11,"Bodoni MT Poster Compressed":9,"Book Antiqua":16,"Bookman Old Style":20,"Bookshelf Symbol 7":24,"Bradley Hand ITC":21,"Britannic Bold":20,Broadway:21,"Browallia New":12,BrowalliaUPC:12,"Brush Script MT":16,Calibri:16,"Calibri Light":16,"Californian FB":17,"Calisto MT":16,Cambria:18,"Cambria Math":18,Candara:18,Castellar:23,Centaur:16,Century:18,"Century Gothic":18,"Century Schoolbook":18,Chiller:15,"Colonna MT":16,"Comic Sans MS":20,Consolas:18,Constantia:17,"Cooper Black":19,"Copperplate Gothic Bold":23,"Copperplate Gothic Light":23,Corbel:17,"Cordia New":12,CordiaUPC:12,"Courier New":19,"Curlz MT":17,Dante:14,DaunPenh:11,David:14,DilleniaUPC:10,DokChampa:18,Dotum:19,DotumChe:16,Dubai:17,"Dubai Light":17,"Dubai Medium":17,Ebrima:17,"Edwardian Script ITC":15,Elephant:24,"Engravers MT":21,"Eras Bold ITC":21,"Eras Demi ITC":20,"Eras Light ITC":17,"Eras Medium ITC":18,EucrosiaUPC:13,Euphemia:19,"Expo M":28,FangSong:16,"Felix Titling":19,"Footlight MT Light":18,Forte:17,"Franklin Gothic Book":19,"Franklin Gothic Demi":19,"Franklin Gothic Demi Cond":16,"Franklin Gothic Heavy":19,"Franklin Gothic Medium":19,"Franklin Gothic Medium Cond":16,FrankRuehl:13,FreesiaUPC:14,"Freestyle Script":12,"French Script MT":12,Gabriola:13,Gadugi:17,Garamond:15,Gautami:19,Georgia:20,"Georgia Pro":18,"Georgia Pro Black":23,"Georgia Pro Cond":17,"Georgia Pro Cond Black":20,"Georgia Pro Cond Light":16,"Georgia Pro Cond Semibold":18,"Georgia Pro Light":18,"Georgia Pro Semibold":20,Gigi:17,"Gill Sans MT Condensed":12,"Gill Sans MT Ext Condensed Bold":11,"Gill Sans Nova":16,"Gill Sans Nova Cond":11,"Gill Sans Nova Cond Lt":10,"Gill Sans Nova Cond Ultra Bold":19,"Gill Sans Nova Cond XBd":17,"Gill Sans Nova Light":16,"Gill Sans Nova Ultra Bold":27,"Gill Sans Ultra Bold":27,"Gill Sans Ultra Bold Condensed":19,Gisha:17,"Gloucester MT Extra Condensed":12,"Goudy Old Style":16,"Goudy Stout":26,Grotesque:15,"Grotesque Light":15,Gulim:18,GulimChe:16,Gungsuh:19,GungsuhChe:16,"Hadassah Friedlaender":18,Haettenschweiler:14,"Harlow Solid Italic":15,Harrington:18,"Headline R":23,HGGothicE:16,HGGothicM:16,HGGyoshotai:16,HGKyokashotai:16,HGMaruGothicMPRO:24,HGMinchoB:17,HGMinchoE:17,HGPGothicE:18,HGPGothicM:20,HGPGyoshotai:16,HGPKyokashotai:16,HGPMinchoB:16,HGPMinchoE:18,HGPSoeiKakugothicUB:21,HGPSoeiKakupoptai:22,HGPSoeiPresenceEB:19,HGSeikaishotaiPRO:19,HGSGothicE:17,HGSGothicM:19,HGSGyoshotai:15,HGSKyokashotai:15,HGSMinchoB:16,HGSMinchoE:18,HGSoeiKakugothicUB:17,HGSoeiKakupoptai:17,HGSoeiPresenceEB:17,HGSSoeiKakugothicUB:20,HGSSoeiKakupoptai:21,HGSSoeiPresenceEB:18,"High Tower Text":15,"HYGothic-Extra":20,"HYGothic-Medium":19,"HYGraphic-Medium":19,"HYGungSo-Bold":19,"HYHeadLine-Medium":19,"HYMyeongJo-Extra":21,"HYPMokGak-Bold":23,"HYPost-Light":21,"HYPost-Medium":23,"HYShortSamul-Medium":12,"HYSinMyeongJo-Medium":20,Impact:17,"Imprint MT Shadow":16,"Informal Roman":17,"Ink Free":16,IrisUPC:16,"Iskoola Pota":16,JasmineUPC:15,"Javanese Text":19,Jokerman:23,"Juice ITC":11,KaiTi:16,Kalinga:18,Kartika:18,"Khmer UI":17,KodchiangUPC:11,Kokila:12,"Kristen ITC":19,"Kunstler Script":11,"Lao UI":17,Latha:16,Leelawadee:17,"Leelawadee UI":17,"Leelawadee UI Semilight":18,"Levenim MT":18,LilyUPC:14,"Lucida Bright":19,"Lucida Calligraphy":22,"Lucida Console":20,"Lucida Fax":21,"Lucida Handwriting":23,"Lucida Sans":21,"Lucida Sans Typewriter":19,"Lucida Sans Unicode":21,"Magic R":19,Magneto:25,"Maiandra GD":20,"Malgun Gothic":19,"Malgun Gothic Semilight":19,Mangal:18,Marlett:33,"Matura MT Script Capitals":22,Meiryo:22,"Meiryo UI":22,"Microsoft GothicNeo":17,"Microsoft Himalaya":12,"Microsoft JhengHei":19,"Microsoft JhengHei Light":19,"Microsoft JhengHei UI":19,"Microsoft JhengHei UI Light":19,"Microsoft New Tai Lue":18,"Microsoft PhagsPa":18,"Microsoft Sans Serif":19,"Microsoft Tai Le":18,"Microsoft Uighur":12,"Microsoft YaHei Light":19,"Microsoft YaHei UI":20,"Microsoft YaHei UI Light":19,"Microsoft Yi Baiti":17,MingLiU:17,MingLiU_HKSCS:17,"MingLiU_HKSCS-ExtB":17,"MingLiU-ExtB":17,Miriam:16,"Miriam Fixed":20,Mistral:15,"Modern No. 20":16,"MoeumT R":19,"Mongolian Baiti":17,"Monotype Corsiva":15,MoolBoran:12,"MS Gothic":16,"MS Mincho":17,"MS Outlook":17,"MS PGothic":17,"MS PMincho":17,"MS Reference Sans Serif":21,"MS Reference Specialty":39,"MS UI Gothic":17,"MT Extra":34,"MV Boli":23,"Myanmar Text":18,Narkisim:14,"Neue Haas Grotesk Text Pro":17,"New Gulim":19,"News Gothic MT":21,"Niagara Engraved":11,"Niagara Solid":11,"Nirmala UI":18,"Nirmala UI Semilight":19,Nyala:17,"OCR A Extended":20,OCRB:20,"Old English Text MT":17,Onyx:10,"Palace Script MT":11,"Palatino Linotype":16,Papyrus:20,Parchment:8,Perpetua:15,"Perpetua Titling MT":22,"Plantagenet Cherokee":18,Playbill:12,PMingLiU:16,"PMingLiU-ExtB":16,"Poor Richard":19,Pristina:16,"Pyunji R":17,Raavi:16,"Rage Italic":18,Ravie:31,Rockwell:17,"Rockwell Condensed":14,"Rockwell Extra Bold":22,"Rockwell Light":18,"Rockwell Nova":17,"Rockwell Nova Cond":17,"Rockwell Nova Cond Light":17,"Rockwell Nova Extra Bold":17,"Rockwell Nova Light":17,Rod:20,"Sakkal Majalla":13,"Sanskrit Text":19,"Script MT Bold":17,"Segoe MDL2 Assets":13,"Segoe Print":23,"Segoe Script":23,"Segoe UI":17,"Segoe UI Black":20,"Segoe UI Emoji":17,"Segoe UI Historic":17,"Segoe UI Light":16,"Segoe UI Semibold":18,"Segoe UI Semilight":17,"Segoe UI Symbol":17,Selawik:17,"Selawik Light":17,"Selawik Semibold":18,"Shonar Bangla":13,"Showcard Gothic":19,Shruti:19,"Simplified Arabic":17,"Simplified Arabic Fixed":19,"SimSun-ExtB":16,"Sitka Banner":16,"Sitka Display":17,"Sitka Heading":18,"Sitka Small":22,"Sitka Subheading":19,"Sitka Text":20,"Snap ITC":28,"Source Sans Pro":15,"Source Sans Pro Black":17,"Source Sans Pro ExtraLight":15,"Source Sans Pro Light":15,"Source Sans Pro SemiBold":16,Stencil:18,Sylfaen:16,Symbol:16,Tahoma:17,"Tempus Sans ITC":21,"TH SarabunPSK":12,"Times New Roman":16,"Traditional Arabic":16,"Trebuchet MS":17,Tunga:17,"Tw Cen MT":18,"Tw Cen MT Condensed":12,"Tw Cen MT Condensed Extra Bold":16,"UD Digi Kyokasho N-B":16,"UD Digi Kyokasho NK-B":16,"UD Digi Kyokasho NK-R":16,"UD Digi Kyokasho NP-B":23,"UD Digi Kyokasho NP-R":16,"UD Digi Kyokasho N-R":16,Univers:16,"Univers Condensed":16,"Univers Condensed Light":14,"Univers Light":16,"Urdu Typesetting":16,Utsaah:13,Vani:20,Verdana:20,"Verdana Pro":20,"Verdana Pro Black":16,"Verdana Pro Cond":16,"Verdana Pro Cond Black":16,"Verdana Pro Cond Light":16,"Verdana Pro Cond SemiBold":16,"Verdana Pro Light":16,"Verdana Pro SemiBold":16,Vijaya:13,"Viner Hand ITC":22,Vivaldi:14,"Vladimir Script":15,Vrinda:18,Webdings:32,"Wide Latin":40,Wingdings:43,"Wingdings 2":36,"Wingdings 3":29,"Yet R":17,"Yu Gothic":18,"Yu Gothic Light":17,"Yu Gothic Medium":18,"Yu Gothic UI":17,"Yu Gothic UI Light":17,"Yu Gothic UI Semibold":18,"Yu Gothic UI Semilight":18,"Yu Mincho":17,"Yu Mincho Demibold":17,"Yu Mincho Light":16,"\u4eff\u5b8b":16,"\u534e\u6587\u4e2d\u5b8b":20,"\u534e\u6587\u4eff\u5b8b":15,"\u534e\u6587\u5b8b\u4f53":15,"\u534e\u6587\u5f69\u4e91":18,"\u534e\u6587\u65b0\u9b4f":19,"\u534e\u6587\u6977\u4f53":15,"\u534e\u6587\u7425\u73c0":18,"\u534e\u6587\u7ec6\u9ed1":18,"\u534e\u6587\u884c\u6977":16,"\u534e\u6587\u96b6\u4e66":14,"\u5b8b\u4f53":16,"\u5e7c\u5706":16,"\u5fae\u8f6f\u96c5\u9ed1":19,"\u5fae\u8f6f\u96c5\u9ed1 Light":18,"\u65b0\u5b8b\u4f53":16,"\u65b9\u6b63\u59da\u4f53":16,"\u65b9\u6b63\u8212\u4f53":18,"\u6977\u4f53":16,"\u7b49\u7ebf":17,"\u7b49\u7ebf Light":16,"\u96b6\u4e66":16,"\u9ed1\u4f53":16,"\u6e38\u30b4\u30b7\u30c3\u30af":18,"\uff2d\uff33 \uff30\u660e\u671d":16,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':16,"\u30e1\u30a4\u30ea\u30aa":20,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":16,"HG\u660e\u671dB":16,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":16}},t.unknownFontMaxDigitWidthMap={},a="http://schemas.openxmlformats.org/spreadsheetml/2006/main",t.XFileConstants={Bb:"_rels",Cb:"/xl",Db:"[Content_Types].xml",Eb:"bin",Fb:"application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings",Gb:"rels",Hb:"application/vnd.openxmlformats-package.relationships+xml",Ib:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",Jb:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",Kb:"application/vnd.openxmlformats-officedocument.theme+xml",Lb:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",Mb:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",Ob:"application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml",Pb:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml",Qb:"application/vnd.openxmlformats-officedocument.drawing+xml",Rb:"application/vnd.openxmlformats-officedocument.drawingml.chart+xml",Sb:"application/vnd.ms-office.chartex+xml",Tb:"application/vnd.ms-office.chartstyle+xml",Ub:"application/vnd.ms-office.chartcolorstyle+xml",Vb:"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml",Wb:"application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml",Xb:"application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml",Yb:"application/vnd.ms-office.drawingml.diagramDrawing+xml",Zb:"application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml",$b:"application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml",_b:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",ac:"application/vnd.ms-excel.threadedcomments+xml",bc:"application/vnd.ms-excel.person+xml",cc:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml",dc:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml",ec:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml",fc:"application/vnd.ms-excel.slicer+xml",gc:"application/vnd.ms-excel.slicerCache+xml",hc:"application/vnd.ms-excel.timeline+xml",ic:"application/vnd.ms-excel.timelineCache+xml",jc:"application/vnd.ms-office.vbaProject",kc:"application/vnd.openxmlformats-officedocument.vmlDrawing",lc:"application/vnd.ms-excel.controlproperties+xml",nc:"xml",oc:"vml",pc:"application/xml",qc:"jpg",sc:"image/jpg",tc:"tiff",uc:"image/tiff",vc:"jpeg",wc:"image/jpeg",xc:"svg",yc:"image/svg+xml",zc:"png",Ac:"image/png",Bc:"bmp",Cc:"image/bmp",Dc:"gif",Ec:"image/gif",Fc:"emf",Gc:"image/x-emf",Hc:"wmf",Ic:"image/x-wmf",Jc:"drawings",Kc:"vmlDrawing",Lc:"/xl/charts",Mc:"/xl/drawings",Nc:"/xl/persons",Oc:"/xl/media",Pc:"/xl/ctrlProps",Qc:"/xl/threadedComments",Rc:"/xl/worksheets",Sc:"/xl/tables",Tc:"/xl/slicers",Uc:"/xl/timelines",Vc:"/xl/externalLinks",Wc:"/xl/slicerCaches",Xc:"/xl/timelineCaches",Yc:"/xl/pivotCache",Zc:"/xl/pivotTables",$c:"sheet",_c:"externalLink",ad:"comments",bd:"chart",dd:"chartEx",ed:"style",fd:"person",hd:"colors",jd:"drawing",kd:"threadedComment",ld:"image",md:"ctrlProp",od:"table",pd:"slicer",qd:"timeline",rd:"slicerCache",sd:"timelineCache",td:"pivotCacheDefinition",ud:"pivotCacheRecords",vd:"pivotTable",wd:"/xl/sharedStrings.xml",xd:"/xl/theme/theme1.xml",yd:"/xl/worksheets",zd:"/xl/workbook.xml",Ad:"/docProps/core.xml",Bd:"/docProps/app.xml",Cd:"/docProps/custom.xml",Dd:"/xl/styles.xml",Ed:"/xl/theme/theme1.xml",Fd:"metadata.xml",Gd:"/xl/_rels/workbook.xml.rels",Hd:a,Jd:"http://schemas.openxmlformats.org/markup-compatibility/2006",Kd:"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing",Ld:"http://schemas.openxmlformats.org/drawingml/2006/main",Md:a,Nd:"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac",Od:"x14ac",Pd:"x14ac xr xr2 xr3",Qd:"xr",Rd:"http://schemas.microsoft.com/office/spreadsheetml/2014/revision",Sd:"http://schemas.microsoft.com/office/spreadsheetml/2015/revision2",Td:"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3",Ud:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",Vd:"http://schemas.openxmlformats.org/package/2006/content-types",Wd:"http://schemas.openxmlformats.org/package/2006/relationships",Xd:"http://schemas.openxmlformats.org/drawingml/2006/main",Yd:"http://schemas.microsoft.com/office/drawing/2010/main",Zd:"http://schemas.microsoft.com/office/drawing/2016/SVG/main",$d:"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main",_d:"http://schemas.microsoft.com/office/excel/2006/main",ae:"http://schemas.openxmlformats.org/markup-compatibility/2006",be:a,ce:"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main",de:"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main",ee:"http://schemas.microsoft.com/office/spreadsheetml/2018/calcfeatures",fe:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",ge:"http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray",he:"http://schemas.microsoft.com/office/spreadsheetml/2017/richdata",ie:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",je:a,ke:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",le:a,me:"http://schemas.microsoft.com/office/spreadsheetml/2014/revision",ne:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",oe:"http://purl.org/dc/elements/1.1/",pe:"http://purl.org/dc/terms/",qe:"http://purl.org/dc/dcmitype/",re:"http://www.w3.org/2001/XMLSchema-instance",se:"application/vnd.openxmlformats-package.core-properties+xml",te:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",ue:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",ve:"application/vnd.openxmlformats-officedocument.extended-properties+xml",we:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",xe:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",ye:"application/vnd.openxmlformats-officedocument.custom-properties+xml"},function(e){e[e.latin=0]="latin",e[e.cs=1]="cs",e[e.ea=2]="ea",e[e.sym=3]="sym"}(l=t.FontLanguage||(t.FontLanguage={})),s=function(){function e(e,t){this.row=e,this.col=t}return e}(),t.ExcelCell=s,c=function(){function e(e){this.index=e}return e}(),t.ExcelColumn=c,d=function(){function e(e){this.index=e}return e}(),t.ExcelRow=d,u=function(){function e(e,t,r){this.name=e,this.colorScheme=t,this.fontScheme=r}return e}(),t.ExcelTheme=u,f=function(){function e(e,t){this.name=e,this.schemeColors=t}return e}(),t.ColorScheme=f,b=function(){function e(e,t,r){this.name=e,this.majorFont=t,this.minorFont=r}return e}(),t.FontScheme=b,h=function(){function e(e,t){this.script=e,this.typeface=t}return e}(),t.ThemeFont=h,p=function(){function e(e,t){this.runFormattings=e,this.themesFonts=t}return e}(),t.ThemeFonts=p,m=function(){function e(e,t){this.fontLanguage=e,this.typeface=t}return e}(),t.RunFormatting=m,g=function(){function e(){}return e}(),t.SheetInfo=g,y=function(){function e(){}return e}(),t.DefaultContentType=y,S=function(){function e(){}return e}(),t.OverrideContentType=S,C=function(){function e(){}return e}(),w=function(){function e(e,t){this.fileName=e,this.fileType=t,this.relationFiles={count:0}}return e.prototype.ze=function(e){if(!e)return"";this.relationFiles.count++;var r=t.RelationshipConstants.Ja+this.relationFiles.count;return this.relationFiles[r]=e,r},e.prototype.Ae=function(r){var i,n,a,l,s,c,d,u,f;if(r&&(i=this.Be(this.fileName,r)))for(n=0,a=i.length;n<a;n++)l=i[n],s=l.target,c="hyperlink",d=l.type.substring(l.type.length-c.length,l.type.length)===c,u=l.type===t.RelationshipConstants.rb,d||u||o.isNullOrUndefined(s)||""===s||(s="/"!==s[0]?o.Util.qa(this.fileName,s):s.substr(1)),f=new e(s,l.type),f.targetMode=l.targetMode,f.Ae(r),this.relationFiles[l.id]||this.relationFiles.count++,this.relationFiles[l.id]=f},e.prototype.Be=function(e,t){if(null===e||!t)return null;var r=this.Ce(e);return r?this.De(t[r.toLowerCase()]):null},e.prototype.Ce=function(e){return null===e||void 0===e?"":0===e.length?t.XFileConstants.Bb+"/."+t.XFileConstants.Gb:e.substring("/"===e.charAt(0)?1:0,e.lastIndexOf("/"))+"/"+t.XFileConstants.Bb+"/"+e.substring(e.lastIndexOf("/")+1)+"."+t.XFileConstants.Gb},e.prototype.Ee=function(e){var t,r;if(!this.relationFiles||0===this.relationFiles.count)return null;if(o.StringEx.L(e))return null;for(t in this.relationFiles)if("count"!==t&&(r=this.relationFiles[t],r.fileType===e))return r;return null},e.prototype.Fe=function(e){var t,r,i;if(!this.relationFiles||0===this.relationFiles.count)return null;if(o.StringEx.L(e))return null;t=[];for(r in this.relationFiles)"count"!==r&&(i=this.relationFiles[r],i.fileType===e&&t.push({id:r,file:i}));return t},e.prototype.Ge=function(e){return!this.relationFiles||0===this.relationFiles.count||o.StringEx.O(e)?null:this.relationFiles[e]},e.prototype.De=function(e){var t,r,o,n,a,l,s,c;if(e){if(t=[],r=i.parseXmlToObject(e),o=r.Relationships)for(n=o.Relationship,Array.isArray(n)||(n=[n]),a=0,l=n.length;a<l;a++)s=n[a],s&&(c=new C,s._attr.Id&&(c.id=s._attr.Id),s._attr.Target&&(c.target=s._attr.Target),s._attr.Type&&(c.type=s._attr.Type),s._attr.TargetMode&&(c.targetMode=s._attr.TargetMode),t.push(c));return t}},e}(),t.XFile=w,t.PivotSharedItemType={B:"b",D:"d",E:"e",M:"m",N:"n",S:"s",X:"x"}},"./src/common/range-parser.ts":function(e,t,r){"use strict";var o,i;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/common/excel-types.ts");function n(e,t){var r,o=[];return null===e?o:(r=e.replace(/('.+')/g,"").split(" "),r.forEach(function(e){var r=a(e,t);!r||r.row>i.ExcelConstants.wb||r.col>i.ExcelConstants.vb||r.rowCount>i.ExcelConstants.wb||r.col>i.ExcelConstants.vb||o.push(r)}),o)}t.getRangesFromString=n;function a(e,t){var r,n,a,l,s,c,d,u={},f=e.indexOf("!");if(f>-1&&(e=e.substr(f+1)),r=e.split("$").join(""),r=r.split(":"),1===r.length){if(c=r[0],n=o.IndexHelper.P(c),a=o.IndexHelper.R(c),n===-1&&a===-1)return null;u.row=n,u.col=a,u.rowCount=1,u.colCount=1}else 2===r.length&&(c=r[0],d=r[1],n=o.IndexHelper.P(c),a=o.IndexHelper.R(c),l=o.IndexHelper.P(d),s=o.IndexHelper.R(d),u.row=n,u.col=a,u.rowCount=l-n+1,u.colCount=s-a+1,t||0!==n||u.rowCount!==i.ExcelConstants.wb||(u.row=-1,u.rowCount=-1),t||0!==a||u.colCount!==i.ExcelConstants.vb||(u.col=-1,u.colCount=-1));return u}function l(e){var t,r,n,a,l,s,c,d=[];for(t=0;t<e.length;t++)r=e[t],o.isRangeWholeRow(r)&&(r.col=0,r.colCount=i.ExcelConstants.vb),o.isRangeWholeColumn(r)&&(r.row=0,r.rowCount=i.ExcelConstants.wb),n=r.row,a=r.row+r.rowCount-1,l=r.col,s=r.col+r.colCount-1,c=o.IndexHelper.T(l)+(n+1),(r.rowCount>1||r.colCount>1)&&(c+=":"+o.IndexHelper.T(s)+(a+1)),d.push(c);return d.join(" ")}t.getRangeString=l},"./src/common/tuple.ts":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){var e,t,r,o=[];for(e=0;e<arguments.length;e++)o[e]=arguments[e];for(this.equals=function(e,t){var r,o,i,n;for(r=1,o=this.count;r<=o;r++)if(i=this["item"+r],n=e["item"+r],!(i&&n&&i.equals&&i.equals(n,t)||i===n))return!1;return!0},t=o.length,r=1;r<=t;r++)this["item"+r]=o[r-1];this.count=t}return e}();t.Tuple=o},"./src/datamodel/chart-model.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S,C,w,x,A,T,v,k,F,R,E,I,L,D,B,P,W,_,N,M,O,H,G,U,J,z,V,j,X,K,q,Y,Q,Z,$,ee,te,re,oe,ie,ne,ae,le,se,ce,de,ue,fe,be,he,pe,me,ge,ye,Se,Ce,we,xe,Ae,Te,ve,ke,Fe,Re,Ee,Ie,Le,De,Be,Pe,We,_e,Ne,Me,Oe,He,Ge;Object.defineProperty(t,"__esModule",{value:!0}),o=void 0;function Ue(e){for(var t in e)e[t]!==o&&(e[e[t]]=t)}t.Charts={},i={major:0,minor:1,none:2},Ue(i),t.Charts.ST_FontCollectionIndex=i,n={dk1:0,lt1:1,dk2:2,lt2:3,accent1:4,accent2:5,accent3:6,accent4:7,accent5:8,accent6:9,hlink:10,folHlink:11},Ue(n),t.Charts.ST_ColorSchemeIndex=n,a={scrollBar:0,background:1,activeCaption:2,inactiveCaption:3,menu:4,window:5,windowFrame:6,menuText:7,windowText:8,captionText:9,activeBorder:10,inactiveBorder:11,appWorkspace:12,highlight:13,highlightText:14,btnFace:15,btnShadow:16,grayText:17,btnText:18,inactiveCaptionText:19,btnHighlight:20,Item3dDkShadow:21,Item3dLight:22,infoText:23,infoBk:24,hotLight:25,gradientActiveCaption:26,gradientInactiveCaption:27,menuHighlight:28,menuBar:29},Ue(a),t.Charts.ST_SystemColorVal=a,l={bg1:0,tx1:1,bg2:2,tx2:3,accent1:4,accent2:5,accent3:6,accent4:7,accent5:8,accent6:9,hlink:10,folHlink:11,phClr:12,dk1:13,lt1:14,dk2:15,lt2:16},Ue(l),t.Charts.ST_SchemeColorVal=l,s={aliceBlue:0,antiqueWhite:1,aqua:2,aquamarine:3,azure:4,beige:5,bisque:6,black:7,blanchedAlmond:8,blue:9,blueViolet:10,brown:11,burlyWood:12,cadetBlue:13,chartreuse:14,chocolate:15,coral:16,cornflowerBlue:17,cornsilk:18,crimson:19,cyan:20,darkBlue:21,darkCyan:22,darkGoldenrod:23,darkGray:24,darkGreen:25,darkGrey:26,darkKhaki:27,darkMagenta:28,darkOliveGreen:29,darkOrange:30,darkOrchid:31,darkRed:32,darkSalmon:33,darkSeaGreen:34,darkSlateBlue:35,darkSlateGray:36,darkSlateGrey:37,darkTurquoise:38,darkViolet:39,deepPink:40,deepSkyBlue:41,dimGray:42,dimGrey:43,dkBlue:44,dkCyan:45,dkGoldenrod:46,dkGray:47,dkGreen:48,dkGrey:49,dkKhaki:50,dkMagenta:51,dkOliveGreen:52,dkOrange:53,dkOrchid:54,dkRed:55,dkSalmon:56,dkSeaGreen:57,dkSlateBlue:58,dkSlateGray:59,dkSlateGrey:60,dkTurquoise:61,dkViolet:62,dodgerBlue:63,firebrick:64,floralWhite:65,forestGreen:66,fuchsia:67,gainsboro:68,ghostWhite:69,gold:70,goldenrod:71,gray:72,green:73,greenYellow:74,grey:75,honeydew:76,hotPink:77,indianRed:78,indigo:79,ivory:80,khaki:81,lavender:82,lavenderBlush:83,lawnGreen:84,lemonChiffon:85,lightBlue:86,lightCoral:87,lightCyan:88,lightGoldenrodYellow:89,lightGray:90,lightGreen:91,lightGrey:92,lightPink:93,lightSalmon:94,lightSeaGreen:95,lightSkyBlue:96,lightSlateGray:97,lightSlateGrey:98,lightSteelBlue:99,lightYellow:100,lime:101,limeGreen:102,linen:103,ltBlue:104,ltCoral:105,ltCyan:106,ltGoldenrodYellow:107,ltGray:108,ltGreen:109,ltGrey:110,ltPink:111,ltSalmon:112,ltSeaGreen:113,ltSkyBlue:114,ltSlateGray:115,ltSlateGrey:116,ltSteelBlue:117,ltYellow:118,magenta:119,maroon:120,medAquamarine:121,medBlue:122,mediumAquamarine:123,mediumBlue:124,mediumOrchid:125,mediumPurple:126,mediumSeaGreen:127,mediumSlateBlue:128,mediumSpringGreen:129,mediumTurquoise:130,mediumVioletRed:131,medOrchid:132,medPurple:133,medSeaGreen:134,medSlateBlue:135,medSpringGreen:136,medTurquoise:137,medVioletRed:138,midnightBlue:139,mintCream:140,mistyRose:141,moccasin:142,navajoWhite:143,navy:144,oldLace:145,olive:146,oliveDrab:147,orange:148,orangeRed:149,orchid:150,paleGoldenrod:151,paleGreen:152,paleTurquoise:153,paleVioletRed:154,papayaWhip:155,peachPuff:156,peru:157,pink:158,plum:159,powderBlue:160,purple:161,red:162,rosyBrown:163,royalBlue:164,saddleBrown:165,salmon:166,sandyBrown:167,seaGreen:168,seaShell:169,sienna:170,silver:171,skyBlue:172,slateBlue:173,slateGray:174,slateGrey:175,snow:176,springGreen:177,steelBlue:178,tan:179,teal:180,thistle:181,tomato:182,turquoise:183,violet:184,wheat:185,white:186,whiteSmoke:187,yellow:188,yellowGreen:189},Ue(s),t.Charts.ST_PresetColorVal=s,c={tl:0,t:1,tr:2,l:3,ctr:4,r:5,bl:6,b:7,br:8},Ue(c),t.Charts.ST_RectAlignment=c,d={clr:0,auto:1,gray:2,ltGray:3,invGray:4,grayWhite:5,blackGray:6,blackWhite:7,black:8,white:9,hidden:10},Ue(d),t.Charts.ST_BlackWhiteMode=d,u={inner:0,outer:1},Ue(u),t.Charts.ST_LayoutTarget=u,f={edge:0,factor:1},Ue(f),t.Charts.ST_LayoutMode=f,b={area:0,w:1},Ue(b),t.Charts.ST_SizeRepresents=b,h={auto:0,cust:1,percent:2,pos:3,val:4},Ue(h),t.Charts.ST_SplitType=h,p={ctr:0,l:1,r:2},Ue(p),t.Charts.ST_LblAlgn=p,m={bestFit:0,b:1,ctr:2,inBase:3,inEnd:4,l:5,outEnd:6,r:7,t:8},Ue(m),t.Charts.ST_DLblPos=m,g={circle:0,dash:1,diamond:2,dot:3,none:4,picture:5,plus:6,square:7,star:8,triangle:9,x:10},Ue(g),t.Charts.ST_MarkerStyle=g,y={exp:0,linear:1,log:2,movingAvg:3,poly:4,power:5},Ue(y),t.Charts.ST_TrendlineType=y,S={x:0,y:1},Ue(S),t.Charts.ST_ErrDir=S,C={both:0,minus:1,plus:2},Ue(C),t.Charts.ST_ErrBarType=C,w={cust:0,fixedVal:1,percentage:2,stdDev:3,stdErr:4},Ue(w),t.Charts.ST_ErrValType=w,x={percentStacked:0,standard:1,stacked:2},Ue(x),t.Charts.ST_Grouping=x,A={none:0,line:1,lineMarker:2,marker:3,smooth:4,smoothMarker:5},Ue(A),t.Charts.ST_ScatterStyle=A,T={standard:0,marker:1,filled:2},Ue(T),t.Charts.ST_RadarStyle=T,v={percentStacked:0,clustered:1,standard:2,stacked:3},Ue(v),t.Charts.ST_BarGrouping=v,k={bar:0,col:1},Ue(k),t.Charts.ST_BarDir=k,F={cone:0,coneToMax:1,box:2,cylinder:3,pyramid:4,pyramidToMax:5},Ue(F),t.Charts.ST_Shape=F,R={pie:0,bar:1},Ue(R),t.Charts.ST_OfPieType=R,E={b:0,l:1,r:2,t:3},Ue(E),t.Charts.ST_AxPos=E,I={autoZero:0,max:1,min:2},Ue(I),t.Charts.ST_Crosses=I,L={between:0,midCat:1},Ue(L),t.Charts.ST_CrossBetween=L,D={cross:0,in:1,none:2,out:3},Ue(D),t.Charts.ST_TickMark=D,B={high:0,low:1,nextTo:2,none:3},Ue(B),t.Charts.ST_TickLblPos=B,P={days:0,months:1,years:2},Ue(P),t.Charts.ST_TimeUnit=P,W={hundreds:0,thousands:1,tenThousands:2,hundredThousands:3,millions:4,tenMillions:5,hundredMillions:6,billions:7,trillions:8},Ue(W),t.Charts.ST_BuiltInUnit=W,_={stretch:0,stack:1,stackScale:2},Ue(_),t.Charts.ST_PictureFormat=_,N={maxMin:0,minMax:1},Ue(N),t.Charts.ST_Orientation=N,M={b:0,tr:1,l:2,r:3,t:4},Ue(M),t.Charts.ST_LegendPos=M,O={span:0,gap:1,zero:2},Ue(O),t.Charts.ST_DispBlanksAs=O,H={default:0,portrait:1,landscape:2},Ue(H),t.Charts.ST_PageSetupOrientation=H,G={legacyObliqueTopLeft:0,legacyObliqueTop:1,legacyObliqueTopRight:2,legacyObliqueLeft:3,legacyObliqueFront:4,legacyObliqueRight:5,legacyObliqueBottomLeft:6,legacyObliqueBottom:7,legacyObliqueBottomRight:8,legacyPerspectiveTopLeft:9,legacyPerspectiveTop:10,legacyPerspectiveTopRight:11,legacyPerspectiveLeft:12,legacyPerspectiveFront:13,legacyPerspectiveRight:14,legacyPerspectiveBottomLeft:15,legacyPerspectiveBottom:16,legacyPerspectiveBottomRight:17,orthographicFront:18,isometricTopUp:19,isometricTopDown:20,isometricBottomUp:21,isometricBottomDown:22,isometricLeftUp:23,isometricLeftDown:24,isometricRightUp:25,isometricRightDown:26,isometricOffAxis1Left:27,isometricOffAxis1Right:28,isometricOffAxis1Top:29,isometricOffAxis2Left:30,isometricOffAxis2Right:31,isometricOffAxis2Top:32,isometricOffAxis3Left:33,isometricOffAxis3Right:34,isometricOffAxis3Bottom:35,isometricOffAxis4Left:36,
|
25
|
-
isometricOffAxis4Right:37,isometricOffAxis4Bottom:38,obliqueTopLeft:39,obliqueTop:40,obliqueTopRight:41,obliqueLeft:42,obliqueRight:43,obliqueBottomLeft:44,obliqueBottom:45,obliqueBottomRight:46,perspectiveFront:47,perspectiveLeft:48,perspectiveRight:49,perspectiveAbove:50,perspectiveBelow:51,perspectiveAboveLeftFacing:52,perspectiveAboveRightFacing:53,perspectiveContrastingLeftFacing:54,perspectiveContrastingRightFacing:55,perspectiveHeroicLeftFacing:56,perspectiveHeroicRightFacing:57,perspectiveHeroicExtremeLeftFacing:58,perspectiveHeroicExtremeRightFacing:59,perspectiveRelaxed:60,perspectiveRelaxedModerately:61},Ue(G),t.Charts.ST_PresetCameraType=G,U={tl:0,t:1,tr:2,l:3,r:4,bl:5,b:6,br:7},Ue(U),t.Charts.ST_LightRigDirection=U,J={legacyFlat1:0,legacyFlat2:1,legacyFlat3:2,legacyFlat4:3,legacyNormal1:4,legacyNormal2:5,legacyNormal3:6,legacyNormal4:7,legacyHarsh1:8,legacyHarsh2:9,legacyHarsh3:10,legacyHarsh4:11,threePt:12,balanced:13,soft:14,harsh:15,flood:16,contrasting:17,morning:18,sunrise:19,sunset:20,chilly:21,freezing:22,flat:23,twoPt:24,glow:25,brightRoom:26},Ue(J),t.Charts.ST_LightRigType=J,z={relaxedInset:0,circle:1,slope:2,cross:3,angle:4,softRound:5,convex:6,coolSlant:7,divot:8,riblet:9,hardEdge:10,artDeco:11},Ue(z),t.Charts.ST_BevelPresetType=z,V={legacyMatte:0,legacyPlastic:1,legacyMetal:2,legacyWireframe:3,matte:4,plastic:5,metal:6,warmMatte:7,translucentPowder:8,powder:9,dkEdge:10,softEdge:11,clear:12,flat:13,softmetal:14},Ue(V),t.Charts.ST_PresetMaterialType=V,j={shdw1:0,shdw2:1,shdw3:2,shdw4:3,shdw5:4,shdw6:5,shdw7:6,shdw8:7,shdw9:8,shdw10:9,shdw11:10,shdw12:11,shdw13:12,shdw14:13,shdw15:14,shdw16:15,shdw17:16,shdw18:17,shdw19:18,shdw20:19},Ue(j),t.Charts.ST_PresetShadowVal=j,X={shape:0,circle:1,rect:2},Ue(X),t.Charts.ST_PathShadeType=X,K={none:0,x:1,y:2,xy:3},Ue(K),t.Charts.ST_TileFlipMode=K,q={email:0,screen:1,print:2,hqprint:3,none:4},Ue(q),t.Charts.ST_BlipCompression=q,Y={pct5:0,pct10:1,pct20:2,pct25:3,pct30:4,pct40:5,pct50:6,pct60:7,pct70:8,pct75:9,pct80:10,pct90:11,horz:12,vert:13,ltHorz:14,ltVert:15,dkHorz:16,dkVert:17,narHorz:18,narVert:19,dashHorz:20,dashVert:21,cross:22,dnDiag:23,upDiag:24,ltDnDiag:25,ltUpDiag:26,dkDnDiag:27,dkUpDiag:28,wdDnDiag:29,wdUpDiag:30,dashDnDiag:31,dashUpDiag:32,diagCross:33,smCheck:34,lgCheck:35,smGrid:36,lgGrid:37,dotGrid:38,smConfetti:39,lgConfetti:40,horzBrick:41,diagBrick:42,solidDmnd:43,openDmnd:44,dotDmnd:45,plaid:46,sphere:47,weave:48,divot:49,shingle:50,wave:51,trellis:52,zigZag:53},Ue(Y),t.Charts.ST_PresetPatternVal=Y,Q={png:0,jpg:1,jpeg:2,emf:3},Ue(Q),t.Charts.ST_BobType=Q,Z={over:0,mult:1,screen:2,darken:3,lighten:4},Ue(Z),t.Charts.ST_BlendMode=Z,$={sib:0,tree:1},Ue($),t.Charts.ST_EffectContainerType=$,t.Charts.ST_PathToType={PathLine:0,PathMove:1,PathQuadBez:2,PathCubicBez:3},ee={line:0,lineInv:1,triangle:2,rtTriangle:3,rect:4,diamond:5,parallelogram:6,trapezoid:7,nonIsoscelesTrapezoid:8,pentagon:9,hexagon:10,heptagon:11,octagon:12,decagon:13,dodecagon:14,star4:15,star5:16,star6:17,star7:18,star8:19,star10:20,star12:21,star16:22,star24:23,star32:24,roundRect:25,round1Rect:26,round2SameRect:27,round2DiagRect:28,snipRoundRect:29,snip1Rect:30,snip2SameRect:31,snip2DiagRect:32,plaque:33,ellipse:34,teardrop:35,homePlate:36,chevron:37,pieWedge:38,pie:39,blockArc:40,donut:41,noSmoking:42,rightArrow:43,leftArrow:44,upArrow:45,downArrow:46,stripedRightArrow:47,notchedRightArrow:48,bentUpArrow:49,leftRightArrow:50,upDownArrow:51,leftUpArrow:52,leftRightUpArrow:53,quadArrow:54,leftArrowCallout:55,rightArrowCallout:56,upArrowCallout:57,downArrowCallout:58,leftRightArrowCallout:59,upDownArrowCallout:60,quadArrowCallout:61,bentArrow:62,uturnArrow:63,circularArrow:64,leftCircularArrow:65,leftRightCircularArrow:66,curvedRightArrow:67,curvedLeftArrow:68,curvedUpArrow:69,curvedDownArrow:70,swooshArrow:71,cube:72,can:73,lightningBolt:74,heart:75,sun:76,moon:77,smileyFace:78,irregularSeal1:79,irregularSeal2:80,foldedCorner:81,bevel:82,frame:83,halfFrame:84,corner:85,diagStripe:86,chord:87,arc:88,leftBracket:89,rightBracket:90,leftBrace:91,rightBrace:92,bracketPair:93,bracePair:94,straightConnector1:95,bentConnector2:96,bentConnector3:97,bentConnector4:98,bentConnector5:99,curvedConnector2:100,curvedConnector3:101,curvedConnector4:102,curvedConnector5:103,callout1:104,callout2:105,callout3:106,accentCallout1:107,accentCallout2:108,accentCallout3:109,borderCallout1:110,borderCallout2:111,borderCallout3:112,accentBorderCallout1:113,accentBorderCallout2:114,accentBorderCallout3:115,wedgeRectCallout:116,wedgeRoundRectCallout:117,wedgeEllipseCallout:118,cloudCallout:119,cloud:120,ribbon:121,ribbon2:122,ellipseRibbon:123,ellipseRibbon2:124,leftRightRibbon:125,verticalScroll:126,horizontalScroll:127,wave:128,doubleWave:129,plus:130,flowChartProcess:131,flowChartDecision:132,flowChartInputOutput:133,flowChartPredefinedProcess:134,flowChartInternalStorage:135,flowChartDocument:136,flowChartMultidocument:137,flowChartTerminator:138,flowChartPreparation:139,flowChartManualInput:140,flowChartManualOperation:141,flowChartConnector:142,flowChartPunchedCard:143,flowChartPunchedTape:144,flowChartSummingJunction:145,flowChartOr:146,flowChartCollate:147,flowChartSort:148,flowChartExtract:149,flowChartMerge:150,flowChartOfflineStorage:151,flowChartOnlineStorage:152,flowChartMagneticTape:153,flowChartMagneticDisk:154,flowChartMagneticDrum:155,flowChartDisplay:156,flowChartDelay:157,flowChartAlternateProcess:158,flowChartOffpageConnector:159,actionButtonBlank:160,actionButtonHome:161,actionButtonHelp:162,actionButtonInformation:163,actionButtonForwardNext:164,actionButtonBackPrevious:165,actionButtonEnd:166,actionButtonBeginning:167,actionButtonReturn:168,actionButtonDocument:169,actionButtonSound:170,actionButtonMovie:171,gear6:172,gear9:173,funnel:174,mathPlus:175,mathMinus:176,mathMultiply:177,mathDivide:178,mathEqual:179,mathNotEqual:180,cornerTabs:181,squareTabs:182,plaqueTabs:183,chartX:184,chartStar:185,chartPlus:186},Ue(ee),t.Charts.ST_ShapeType=ee,te={textNoShape:0,textPlain:1,textStop:2,textTriangle:3,textTriangleInverted:4,textChevron:5,textChevronInverted:6,textRingInside:7,textRingOutside:8,textArchUp:9,textArchDown:10,textCircle:11,textButton:12,textArchUpPour:13,textArchDownPour:14,textCirclePour:15,textButtonPour:16,textCurveUp:17,textCurveDown:18,textCanUp:19,textCanDown:20,textWave1:21,textWave2:22,textDoubleWave1:23,textWave4:24,textInflate:25,textDeflate:26,textInflateBottom:27,textDeflateBottom:28,textInflateTop:29,textDeflateTop:30,textDeflateInflate:31,textDeflateInflateDeflate:32,textFadeRight:33,textFadeLeft:34,textFadeUp:35,textFadeDown:36,textSlantUp:37,textSlantDown:38,textCascadeUp:39,textCascadeDown:40},Ue(te),t.Charts.ST_TextShapeType=te,re={none:0,norm:1,lighten:2,lightenLess:3,darken:4,darkenLess:5},Ue(re),t.Charts.ST_PathFillMode=re,oe={none:0,triangle:1,stealth:2,diamond:3,oval:4,arrow:5},Ue(oe),t.Charts.ST_LineEndType=oe,ie={sm:0,med:1,lg:2},Ue(ie),t.Charts.ST_LineEndWidth=ie,ne={sm:0,med:1,lg:2},Ue(ne),t.Charts.ST_LineEndLength=ne,ae={solid:0,dot:1,dash:2,lgDash:3,dashDot:4,lgDashDot:5,lgDashDotDot:6,sysDash:7,sysDot:8,sysDashDot:9,sysDashDotDot:10},Ue(ae),t.Charts.ST_PresetLineDashVal=ae,le={rnd:0,sq:1,flat:2},Ue(le),t.Charts.ST_LineCap=le,se={ctr:0,in:1},Ue(se),t.Charts.ST_PenAlignment=se,ce={sng:0,dbl:1,thickThin:2,thinThick:3,tri:4},Ue(ce),t.Charts.ST_CompoundLine=ce,de={twoCell:0,oneCell:1,absolute:2},Ue(de),t.Charts.ST_EditAs=de,ue={t:0,ctr:1,b:2,just:3,dist:4},Ue(ue),t.Charts.ST_TextAnchoringType=ue,fe={overflow:0,ellipsis:1,clip:2},Ue(fe),t.Charts.ST_TextVertOverflowType=fe,be={overflow:0,clip:1},Ue(be),t.Charts.ST_TextHorzOverflowType=be,he={horz:0,vert:1,vert270:2,wordArtVert:3,eaVert:4,mongolianVert:5,wordArtVertRtl:6},Ue(he),t.Charts.ST_TextVerticalType=he,pe={none:0,square:1},Ue(pe),t.Charts.ST_TextWrappingType=pe;me={alphaLcParenBoth:0,alphaUcParenBoth:1,alphaLcParenR:2,alphaUcParenR:3,alphaLcPeriod:4,alphaUcPeriod:5,arabicParenBoth:6,arabicParenR:7,arabicPeriod:8,arabicPlain:9,romanLcParenBoth:10,romanUcParenBoth:11,romanLcParenR:12,romanUcParenR:13,romanLcPeriod:14,romanUcPeriod:15,circleNumDbPlain:16,circleNumWdBlackPlain:17,circleNumWdWhitePlain:18,arabicDbPeriod:19,arabicDbPlain:20,ea1ChsPeriod:21,ea1ChsPlain:22,ea1ChtPeriod:23,ea1ChtPlain:24,ea1JpnChsDbPeriod:25,ea1JpnKorPlain:26,ea1JpnKorPeriod:27,arabic1Minus:28,arabic2Minus:29,hebrew2Minus:30,thaiAlphaPeriod:31,thaiAlphaParenR:32,thaiAlphaParenBoth:33,thaiNumPeriod:34,thaiNumParenR:35,thaiNumParenBoth:36,hindiAlphaPeriod:37,hindiNumPeriod:38,hindiNumParenR:39,hindiAlpha1Period:40};Ue(me),t.Charts.ST_TextAutonumberScheme=me,ge={none:0,words:1,sng:2,dbl:3,heavy:4,dotted:5,dottedHeavy:6,dash:7,dashHeavy:8,dashLong:9,dashLongHeavy:10,dotDash:11,dotDashHeavy:12,dotDotDash:13,dotDotDashHeavy:14,wavy:15,wavyHeavy:16,wavyDbl:17},Ue(ge),t.Charts.ST_TextUnderlineType=ge,ye={noStrike:0,sngStrike:1,dblStrike:2},Ue(ye),t.Charts.ST_TextStrikeType=ye,Se={none:0,small:1,all:2},Ue(Se),t.Charts.ST_TextCapsType=Se,Ce={l:0,ctr:1,r:2,dec:3},Ue(Ce),t.Charts.ST_TextTabAlignType=Ce,we={l:0,ctr:1,r:2,just:3,justLow:4,dist:5,thaiDist:6},Ue(we),t.Charts.ST_TextAlignType=we,xe={auto:0,t:1,ctr:2,base:3,b:4},Ue(xe),t.Charts.ST_TextFontAlignType=xe,Ae={auto:0},Ue(Ae),t.Charts.ST_StyleColorVal=Ae,t.Charts.CT_PathType={CT_PathToList:0,CT_Path2DArcTo:1,CT_Path2DClose:2},Te={col:0,row:1},Ue(Te),t.Charts.ST_FormulaDirection=Te,ve={cat:0,colorStr:1},Ue(ve),t.Charts.ST_StringDimensionType=ve,ke={val:0,x:1,y:2,size:3,colorVal:4},Ue(ke),t.Charts.ST_NumericDimensionType=ke,Fe={l:0,t:1,r:2,b:3},Ue(Fe),t.Charts.ST_SidePos=Fe,Re={t:1,r:2,l:3,b:4},Ue(Re),t.Charts.ST_2016ChartPosLegend=Re,Ee={min:0,ctr:1,max:2},Ue(Ee),t.Charts.ST_PosAlign=Ee,Ie={hundreds:0,thousands:1,tenThousands:2,hundredThousands:3,millions:4,tenMillions:5,hundredMillions:6,billions:7,trillions:8,percentage:9},Ue(Ie),t.Charts.ST_AxisUnit=Ie,Le={in:1,out:3,cross:0,none:2},Ue(Le),t.Charts.ST_TickMarksType=Le,De={boxWhisker:0,funnel:1,paretoLine:2,regionMap:3,sunburst:4,treemap:5,waterfall:6,clusteredColumn:7},Ue(De),t.Charts.ST_SeriesLayout=De,Be={none:0,banner:1,overlapping:2},Ue(Be),t.Charts.ST_ParentLabelLayout=Be,Pe={none:0,bestFitOnly:1,showAll:2},Ue(Pe),t.Charts.ST_RegionLabelLayout=Pe,We={l:0,r:1},Ue(We),t.Charts.ST_IntervalClosedSide=We,_e={Address:0,AdminDistrict:1,AdminDistrict2:2,AdminDistrict3:3,Continent:4,CountryRegion:5,Locality:6,Ocean:7,Planet:8,PostalCode:9,Region:10,Unsupported:11},Ue(_e),t.Charts.ST_EntityType=_e,Ne={mercator:0,miller:1,robinson:2,albers:3},Ue(Ne),t.Charts.ST_GeoProjectionType=Ne,Me={dataOnly:0,postalCode:1,county:2,state:3,countryRegion:4,countryRegionList:5,world:6},Ue(Me),t.Charts.ST_GeoMappingLevel=Me,Oe={inclusive:0,exclusive:1},Ue(Oe),t.Charts.ST_QuartileMethod=Oe,He={bestFit:0,b:1,ctr:2,inBase:3,inEnd:4,l:5,outEnd:6,r:7,t:8},Ue(He),t.Charts.ST_DataLabelPos=He,Ge={default:0,portrait:1,landscape:2},Ue(Ge),t.Charts.ST_PageOrientation=Ge},"./src/datamodel/datamodel-reader.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/datamodel/excel-style.ts"),a=r("./src/datamodel/excel-helper.ts"),l=r("./src/datamodel/datetime-helper.ts"),s=r("./src/common/range-parser.ts"),c=r("./src/xml-io/node-helper.ts"),d=o.StringEx.O,u=n.ConverterHelper.convertDxfToStyle,f=c.XmlNodeHelper.He,b=null,h=void 0,p="Normal";function S(e,t,r,o,i,n){var a,l,s,c,d=e.itemsData;d&&(a=d[d.length-1],l=d[d.length-2],s=a&&a.info,c=l&&l.info,s&&(o&&i&&1===a.count?c&&l.index===a.index-1&&c.level===s.level-1?c.collapsed=!0:t>0?d.splice(d.length-2,0,{index:a.index-1,count:1,info:{level:s.level-1,collapsed:!0}}):e.head={collapsed:!0,level:r-1}:!o&&n&&(c&&a.index===l.index+1&&s.level===c.level-1?a.collapsed=!0:t>=a.index+a.count&&d.push({index:a.index+a.count,count:1,info:{level:s.level-1,collapsed:!0}}))))}function C(e,t,r,i,n,a,l,s,c,d){var u={};return u.conType=e,o.J(t)||(u.compareType=t),o.J(r)||(u.expected=r),o.J(i)||(u.ignoreBlank=i),o.J(n)||(u.type=n),o.J(a)||(u.isPercent=a),o.J(l)||(u.item1=l),o.J(s)||(u.item2=s),o.J(c)||(u.ranges=c),o.J(d)||(u.expectTypeId=d),2===e&&(u.ignoreCase=!0),u}function w(e,t){var r,o,i=e.cellColor?0:1,a=t.fill;return a&&(0===a.patternType?r="":(o={},n.ConverterHelper.Ie(a,o),r=o.backColor)),C(3,i,r)}function x(e){if(e.length>0){var t=e[0];if("number"==typeof t)return"number";if("string"==typeof t&&0===t.indexOf("/OADate(")&&t.indexOf(")")===t.length-2)return"date";if("boolean"==typeof t)return"boolean"}return""}function A(e,t,r){var o,i,n={none:0,equal:0,lessThan:4,lessThanOrEqual:5,notEqual:1,greaterThan:2,greaterThanOrEqual:3};switch(e){case"string":o=2;break;case"number":o=1,r=parseFloat(r);break;case"date":o=5,"string"==typeof r&&0===r.indexOf("/OADate(")?(i=parseInt(r.replace("/OADate(",""),10),r=l.DateTimeHelper.Je(i)):r=l.DateTimeHelper.Je(parseInt(r,10)),n={none:0,equal:0,lessThan:2,lessThanOrEqual:3,notEqual:1,greaterThan:4,greaterThanOrEqual:5};break;case"boolean":default:o=11}return C(o,n[t],r)}function T(e,t){var r,o;function i(e){var r,o,i,n,a="notEqual"===e.operator,l=e.value,s=l.indexOf("*"),c=l.lastIndexOf("*");return s!==-1?s===l.length-1&&0!==s?(o=a?3:2,r=C(2,o,l.substring(0,l.length-1))):0===s&&s===c?(o=a?5:4,r=C(2,o,l.substring(1))):(i=a?7:6,s!==-1&&c!==-1&&(l=l.substr(1,l.length-2)),r=C(2,i,l)):(n=x(t),r=A(n,e.operator||"none",l)),r}return e.filter1&&(r=i(e.filter1)),e.filter2&&(o=e.and?1:0,r=C(0,o,b,b,b,b,r,i(e.filter2))),r}function v(e,t){function r(e){var r;return o.J(t)||(r=C(t.conType,t.compareType,e.value)),r}var i;return e.filter1&&(i=r(e.filter1)),i=e.filter2?C(t.conType,t.compareType,b,b,b,b,i,r(e.filter2)):C(t.conType,t.compareType,b,b,b,b,i,b)}function k(e,t,r){var i,n=new o.Range(t.row,r,t.rowCount,1),a=e.type;return 100===a||101===a?i=C(10,b,b,b,a-100,b,b,b,n):16===a?i=C(6,b,0,b,b,b,b,b,b,6):a>=17&&a<=20?i=C(6,b,a-17,b,b,b,b,b,b,2):a>=21&&a<=32?i=C(6,b,a-21,b,b,b,b,b,b,3):a>=0&&a<=15&&(i=C(6,b,a)),i}function F(e,t){var r,o=t.conType;return 1===o&&(r=C(1,t.compareType,b)),r}function R(e){var t=e.top?0:1;return C(8,b,e.value,b,t,e.percent)}function E(e,t){var r=e.top?1:-1;return C(3,t.compareType,e.value,b,r,e.percent)}function I(e){return d(e)?e:"="+e}function L(e){return d(e)||e.length<=2?e:e.substr(1,e.length-2)}function D(e,t){var r=null;return t.forEach(function(t){t.id===e&&(r=t.name)}),r}t.getTableName=D;function B(e,t,r){var o=null;return r.forEach(function(r){r.id===e&&r.columns.forEach(function(e){e.id===t&&(o=e.name)})}),o}t.getTableColumnName=B;function P(e,t,r){var o,i,n=null;for(o=0;o<t.length;o++)if(i=t[o],""+r[i.cacheId].pivotCacheId===e){n=i.name;break}return n}function W(e,t){return t=t||" ",e.map(_).join(t)}function _(e){var t,r=e.row,n=e.col,a=e.rowCount,l=e.colCount,s=n+l-1,c=r+a-1;return o.isRangeWholeRow(e)&&o.isRangeWholeColumn(e)?t="$1:$"+i.ExcelConstants.wb:o.isRangeWholeRow(e)?t=r+1+":"+(c+1):o.isRangeWholeColumn(e)?t=o.IndexHelper.T(n)+":"+o.IndexHelper.T(s):(t=o.IndexHelper.T(n)+(r+1),(a>1||l>1)&&(t+=":"+o.IndexHelper.T(s)+(c+1))),t}m=["fillStyleLst","lnStyleLst","effectStyleLst","bgFillStyleLst"],g=["w","cap","cmpd","algn","prstDash","custDash","round","bevel","miter","headEnd","tailEnd"];function N(e,t){g.forEach(function(r){void 0===t[r]&&void 0!==e[r]&&(t[r]=e[r])})}function M(e,t){e&&N(e,t)}function O(e,t){return!!e[t]}function H(e,t,r,i,n,l){var s,c,d,u=e.Ke;if(r[i]&&r[i][n]){if(s=r[i][n].style,!s)return;c=o.ga._(t.namedStyles,s),c&&(d=a.processTableCellStyle(c,u),d.name="__builtInTableStyle"+e.Le+c.name,o.ga.aa(t.namedStyles,e.Me,d),e.Le++,r[i][n].style=d.name,l[s]=d.name)}}function G(e,t){var r=e.filter(function(e){return e._attr.name===t});return r&&r[0]}function U(e,t){var r=f(e.bk);return r[t]}function J(e){return e.filter(function(e){return!(e.pic&&!e.pic.cameraTool)})}function z(e){return e&&e.indexOf(" ")>=0&&("'"!==e[0]||'"'!==e[0])&&(e="'"+e+"'"),e}y=function(){function e(){var e=this;e.Ne={version:"17.1.4"},e.Ke=b,e.Oe=b,e.Pe=[],e.Qe=[],e.Re=[],e.Se=[],e.Te=1,e.Le=0,e.Ue=0,e.Ve=0,e.We=[],e.Xe=[],e.Ye={},e.Ze={},e.$e=!0,e._e=b,e.af=[],e.bf=!1,e.cf=3,e.df=[],e.ef=[],e.ff="Calibri Light",e.gf="Calibri",e.hf=[],e.if=[],e.jf=[],e.Me={},e.kf=[]}return e.prototype.lf=function(e){this.mf=e,this.pf={}},e.prototype.qf=function(e,t){var r,o,i,n,a,l,s,c,d=this;return d.pf||(d.pf={}),r=this.pf,o=e+","+t,(i=r[o])?i:(n=this.mf,l=n&&n.themeElements&&n.themeElements.fmtScheme,l&&(s=m[e],c=s&&l[s],a=c,c&&(1===e?c=c.ln:0===e&&(c=c.items),a=c[t])),r[o]=a,a)},e.prototype.rf=function(e){var t,r,o,i,n,a,l,s,c;if(e){if(t={name:e.name},e.colorScheme&&(r=e.colorScheme,t.themeColor={name:r.name,text1:r.schemeColors[1],text2:r.schemeColors[3],background1:r.schemeColors[0],background2:r.schemeColors[2],accent1:r.schemeColors[4],accent2:r.schemeColors[5],accent3:r.schemeColors[6],accent4:r.schemeColors[7],accent5:r.schemeColors[8],accent6:r.schemeColors[9],hyperlink:r.schemeColors[10],followedHyperlink:r.schemeColors[11]}),e.fontScheme){for(o=e.fontScheme,i=o.majorFont.runFormattings,n=o.minorFont.runFormattings,a=0,l=i.length;a<l;a++)s=i[a],s&&0===s.fontLanguage&&(c=z(s.typeface),t.headingFont=c,this.ff=c);for(a=0,l=n.length;a<l;a++)s=n[a],s&&0===s.fontLanguage&&(c=z(s.typeface),t.bodyFont=c,this.gf=c)}this.sf=t}},e.prototype.tf=function(e){var t,r;e&&(t=this,t.Ke=n.ConverterHelper.toCellStyle(e,t.ff,t.gf),r={},n.ConverterHelper.setStyleInfoFont(e.font,r,h,h),t.Ke.fontForColumnWidth=r.font,t.Oe=e)},e.prototype.uf=function(e,t){var r,i,a,s,c,d,u,f,b,m,g,y;if(e){if(r=this,i=r.Ne,a=n.ConverterHelper.toCellStyle(e,r.ff,r.gf),!o.J(a.formatter)){for(s=RegExp("\\[DBNum\\d+\\]","ig"),c=s.exec(a.formatter),d=a.formatter;null!==c;)u=c[0],f=parseInt(u.substring(u.indexOf("m")+1,u.indexOf("]")),10),(f>4||4===f&&d.indexOf("[$-412]")<0&&"ko-kr"!==o.Fa())&&(d=d.replace(u,"[DBNum3]")),c=s.exec(a.formatter);a.formatter=d}r.Pe.push(a),b=n.ExtendedNumberFormatHelper.getFormatCode(e),r.Qe.push(l.DateTimeHelper.vf(b)),"@"===b?r.Re.push(!0):r.Re.push(!1),e.isStyleFormat?(m=r.wf(t),m===-1&&(m=r.Ve),r.We.length>m?r.Se[r.Se.length]=r.We[m]:(r.Se[r.Se.length]="__builtInStyle"+r.Te,r.Te++)):(g="",e.parentFormatID!==h&&r.Se.length>e.parentFormatID&&(g=r.Se[e.parentFormatID]),(g===p||"__builtInStyle"===g.substring(0,14)||o.StringEx.L(g))&&(g="__builtInStyle"+r.Te,r.Te++),a.name=g,y=r.Ze[g],"__builtInStyle"===g.substring(0,14)||y===h||e.equals(y)||(a.parentName=g,g="__builtInStyle"+r.Te,r.Te++,a.name=g),i.namedStyles||(i.namedStyles=[]),o.ga.aa(i.namedStyles,r.Me,a),r.Se[r.Se.length]=g)}},e.prototype.wf=function(e){return this.Ye[e]?this.Ye[e]:-1},e.prototype.xf=function(e,t){var r,i,a,l,s,c,d,u,f;if(e){if(r=this,i=r.Ne,r.$e&&(r.yf(),r.$e=!1),a=e.name,l=r._e,l&&e.isBuiltInStyle())for(s=0,c=l.length;s<c;s++)if(d=l[s],d.builtInStyle===e.builtInStyle){a=d.name;break}if(o.ga.Z(r.Me,a)){for(s=0,c=r.af.length;s<c;s++)if(f=r.af[s],f.name===a){r.af[s]=e,r.Xe[s]=e.format(),r.Ye[t]=s;break}r.Ze[a]=e.format(),u=n.ConverterHelper.toCellStyle(e.format(),r.ff,r.gf),u.name=a,o.ga.aa(i.namedStyles,r.Me,u)}else r.Ze[a]=e.format(),r.af.push(e),r.Xe.push(e.format()),r.Ye[t]=r.Xe.length-1,r.We.push(a),i.namedStyles||(i.namedStyles=[]),u=n.ConverterHelper.toCellStyle(e.format(),r.ff,r.gf),u.name=a,o.ga.aa(i.namedStyles,r.Me,u)}},e.prototype.yf=function(){var e,t,r,o,i=this,a=i.Ne;if(i.$e)for(a.namedStyles||(a.namedStyles=[]),i._e=n.BuiltInExcelStyles.getBuiltInStyles(),e=0,t=i._e.length;e<t;e++)r=i._e[e],r&&r.name===p&&(i.Ve=i.Xe.length),i.af.push(r),i.Xe.push(r.format()),i.We.push(r.name),i.Ze[r.name]=r.format(),o=n.ConverterHelper.toCellStyle(r.format(),i.ff,i.gf),o.name=r.name},e.prototype.zf=function(e){this.bf=e},e.prototype.Af=function(e,t){var r=this.Ne;e||(r.showHorizontalScrollbar=e),t||(r.showVerticalScrollbar=t)},e.prototype.Bf=function(e,t,r,o){var i=this.Ne;e||(i.tabStripVisible=e),i.startSheetIndex=r,i.activeSheetIndex=t,i.tabStripRatio=o/1e3},e.prototype.Cf=function(e,t,r){var i={},n=this.Ne;i.name=e,i.index=t,1===r?i.visible=0:2===r&&(i.visible=2),i.allowCellOverflow=!0,i.theme=this.sf,i.defaults=o.Ea(),o.J(n.sheetCount)&&(n.sheetCount=0),n.sheetCount++,n.sheets||(n.sheets={}),n.sheets[e]=i},e.prototype.Df=function(e,t,r){var i,n,a=this.Ne;if(e&&(a.referenceStyle=1,a.sheets))for(i in a.sheets)a.sheets.hasOwnProperty(i)&&(n=a.sheets[i],n.referenceStyle=1,n.colHeaderAutoText=1);a.calculationMode=r,a.iterativeCalculation="1"===t.iterate,a.iterativeCalculationMaximumIterations=o.J(t.count)?100:parseInt(t.count,10),a.iterativeCalculationMaximumChange=o.J(t.delta)?.001:parseFloat(t.delta)},e.prototype.Ef=function(e,t,r){var o=this.Ne,i=o.sheets&&o.sheets[e];r===!1&&(i.rowOutlines||(i.rowOutlines={}),i.rowOutlines.direction=0),t===!1&&(i.columnOutlines||(i.columnOutlines={}),i.columnOutlines.direction=0)},e.prototype.Ff=function(e,t){var r=this.Ne,o=r.sheets&&r.sheets[e];t!==n.ExcelColor.EmptyColor&&(t.isThemeColor()?o.sheetTabColor=n.ColorHelper.getThemeColorName(t):o.sheetTabColor=n.ColorHelper.toRGBColor(t))},e.prototype.Gf=function(e,t,r){var o=this.Ne,i=o.sheets&&o.sheets[e];i.rowCount=t,i.columnCount=r},e.prototype.Hf=function(e,t,r,o,i,a,l,s){var c,d=this.Ne,u=d.sheets&&d.sheets[e];o||(u.rowHeaderVisible=o,u.colHeaderVisible=o),a&&(u.showFormulas=!0),l?u.showZeros=!0:u.showZeros=!1,100!==i&&(u.zoomFactor=i/100),t&&t.isIndexedColor()&&64===t.value()&&(t=null),null===t&&r||(c={},null!==t&&(c.color=""+n.ColorHelper.toRGBColor(t)),r||(c.showVerticalGridline=r,c.showHorizontalGridline=r),u.gridline=c),u.isSelected=s},e.prototype.If=function(e,t,r,o,i,n,a,l,s){var c,d,u,f,b,h,p,m,g=this.Ne,y=g.sheets&&g.sheets[e];if(this.cf===t){for(y.rowCount<=r&&(y.rowCount=r+1),y.columnCount<=o&&(y.columnCount=o+1),c=0,d=n.length;c<d;c++)u=n[c],f=a[c],b=l[c],h=s[c],f===-1&&(f=y.rowCount-1),h===-1&&(h=y.columnCount-1),u=u>=0?u:0,f=f>=0?f:0,b=b>=0?b:0,h=h>=0?h:0,u<y.rowCount&&b<y.columnCount&&(p=Math.min(y.rowCount-u,f-u+1),m=Math.min(y.columnCount-b,h-b+1),p>=1&&m>=1&&(y.selections=y.selections||{},y.selections[c]={row:u,rowCount:p,col:b,colCount:m}));y.selections&&(y.selections.length=n.length),y.activeRow=r>=0&&r<y.rowCount?r:0,y.activeCol=o>=0&&o<y.columnCount?o:0}},e.prototype.Jf=function(e,t,r,i,n){var a,l,s,c,d,u,f,b,h;n&&(a=this.Ne,l=a.sheets&&a.sheets[e],s=this.Kf,c=o.IndexHelper.P(s),d=o.IndexHelper.R(s),u=o.IndexHelper.P(i),f=o.IndexHelper.R(i),r&&t?this.Lf(u,f,e):r&&!t?this.Lf(u,d,e):!r&&t&&this.Lf(c,f,e),r&&(b=r+c,l.rowCount<=b&&(l.rowCount=b),l.frozenRowCount=b,l.frozenTopRow=c),t&&(h=t+d,l.columnCount<=h&&(l.columnCount=h),l.frozenColCount=h,l.frozenLeftCol=d))},e.prototype.Mf=function(e,t,r){var o=this.Ne,i=o.sheets&&o.sheets[e];i.defaults={colHeaderRowHeight:20,rowHeaderColWidth:40,rowHeight:t,colWidth:r}},e.prototype.Nf=function(e,t){var r=this.Ne,o=r.sheets&&r.sheets[e];o.defaults.rowHeight=n.UnitHelper.pointToPixel(t)},e.prototype.Of=function(e,t,r){var o,i=this.Ne,n=i.sheets&&i.sheets[e];isNaN(r)?(o=this.Pf(t),n.defaults._isExcelDefaultColumnWidth=!0):o=this.Qf(r),n.defaults.colWidth=o},e.prototype.Pf=function(e){var t=this.Ke,r=this.getMaxiumDigitWidth(t.fontForColumnWidth?t.fontForColumnWidth:t.font),o=2*Math.ceil(r/4)+1,i=this.Qf(e,r)+o;return 8*Math.ceil(i/8)},e.prototype.Qf=function(e,t){if(0===e)return 0;var r=this.Ke,i=r.fontForColumnWidth?r.fontForColumnWidth:r.font;return Math.floor(Math.floor(256*e)/256*(o.J(t)?this.getMaxiumDigitWidth(i):t)+.5)},e.prototype.getMaxiumDigitWidth=function(e){return this.Rf===h&&(this.Rf=n.UnitHelper.getMaxiumDigitWidth(e)),this.Rf},e.prototype.Sf=function(e){var t=this,r=t.Ne,o=r.sheets&&r.sheets[e],i=o.columnCount||0,n=o.rowCount||0,a=t.Tf,l=t.Uf;o.columnCount=Math.max(i,a+1),o.rowCount=Math.max(n,l+1)},e.prototype.Vf=function(e,t,r,o,n,a,l,s){var c,d,u,f,p,m,g,y,C,w,x,A,T,v,k=this.Ne,F=k.sheets&&k.sheets[e],R=F.columnOutlines&&0===F.columnOutlines.direction,E=this.jf,I=this.Qf(n),L=i.ExcelConstants.vb;for(r>=L-1&&(r=L-1),c=!1,d=t;d<=r;d++){if(u=!1,(l>0||s)&&(d+2>F.columnCount&&(f=F.columnOutlines&&F.columnOutlines.items,l<=0&&(!f||!f[d-1]||f[d-1].level<0)&&(c=!0),c||(F.columnCount=d+2)),c||(F.columnOutlines||(F.columnOutlines={}),F.columnOutlines.items||(F.columnOutlines.items=[]),F.columnOutlines.itemsData||(F.columnOutlines.itemsData=[]),p=F.columnOutlines.items,p[d]={level:l-1,collapsed:s},a&&(u=!0),m=F.columnOutlines.itemsData,g=m[m.length-1],g&&d===g.index+g.count&&g.info.level===l-1&&g.info.collapsed===s?g.count++:m.push({index:d,count:1,info:{level:l-1,collapsed:s}}))),F.columnOutlines&&F.columnOutlines.itemsData&&(y=F.columnOutlines.itemsData,S(y,d,l,R,a,E[d-1]&&E[d-1].hidden)),I!==-1||a){for(F.columns||(F.columns=[]),C=F.columns.length,w=C;w<d;w++)F.columns[w]=b,E[w]=b;x={},A={},x.hidden=a,a&&0===l&&(A.visible=x.visible=!1),I!==-1&&(A.size=x.size=I),x.visible!==!1&&u!==!0||0!==x.size||(A.size=x.size=h),E[d]=x,F.columns[d]=A}1!==o&&(T=this.Se[o],T!==h?this.df[d]={style:T}:o<this.Pe.length&&(this.df[d]={style:this.Pe[o]}),v=this.Pe[o],v&&v.isVerticalText===!0&&this.kf.push(d))}F.columnCount>L&&(F.columnCount=L)},e.prototype.Wf=function(e){var t,r,o,i,n,a,l,s,c,d,u=this,f=u.Ne,b=f.sheets&&f.sheets[e],h=b.defaults,p=b.data,m=b.columns,g=b.columnCount,y=h.colWidth;if(m&&(t=m.length,g<t))for(r=g;r<t;r++)if(o=m[r],o&&o.size===y){i=m.slice(0,r),u.jf=i,b.columns=i,p&&p.columnDataArray&&(p.columnDataArray=p.columnDataArray.slice(0,r));break}if(n=b.rows,a=b.rowCount,l=h.rowHeight,n&&(s=n.length,a<s))for(r=a;r<s;r++)if(c=n[r],c&&c.size===l){d=n.slice(0,r),u.if=d,b.rows=d,p&&p.rowDataArray&&(p.rowDataArray=p.rowDataArray.slice(0,r));break}},e.prototype.Xf=function(e,t,r,i,n){var a=this.Ne,l=a.sheets&&a.sheets[e];l.spans||(l.spans=[]),l.spans.push(new o.Range(t,i,r-t+1,n-i+1))},e.prototype.Yf=function(e,t){var r=this.Ne,o=r.sheets&&r.sheets[e];o.isProtected=t},e.prototype.Zf=function(e,t,r){var o,i,n,l,s=this.Ne,c=s.sheets&&s.sheets[e];for(c.protectionOptions=c.protectionOptions||{},o=0;o<t.length;o++)i=t[o].name,n=t[o].value,l=a.toProtectionOptions[i],l?c.protectionOptions[l]=n:c.protectionOptions[i]=n;r&&c.protectionOptions.allowEditObjects===h&&(c.protectionOptions.allowEditObjects=!0)},e.prototype.$f=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e];o.data||(o.data={}),t=o.data,this.ef.length>0&&(t.rowDataArray=this.ef,this.ef=[]),this.df.length>0&&(t.columnDataArray=this.df,this.df=[]),this.Ke&&(t.defaultDataNode={style:this.Ke}),this.sf&&(o.theme=this.sf),this.Sf(e)},e.prototype._f=function(e,t){var r,o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S,C,w,x=this.Ne,A=x.sheets&&x.sheets[e];if(A&&(r=t?A.rowOutlines:A.columnOutlines))for(o=0===r.direction,i=r.items,n=t?A.rows:A.columns,a=t?this.if:this.jf,l=function(){return o?0:n.length-1},s=function(e){return o?e<n.length:e>=0},c=function(e){return o?e+1:e-1},d=function(e){return o?e-1:e+1},u=function(e,t){var r=i[e];if(r)return r.level<=t?r:u(r.parentIndex,t)},f=l(),b=void 0;s(f);f=c(f))h=i[f],h&&h.level!==-1?(p=d(f),m=i[p],g=!m&&"number"==typeof h.level||m&&m.level<h.level,y=m&&m.level>h.level,S=void 0,C=void 0,g?(S=p,C=!!m&&(m.collapsed||m.viewCollapsed)):y?h.level===-1?C=!1:(w=void 0,w=m.parentIndex===b?m:u(m.parentIndex,h.level),w&&(S=w.parentIndex,C=w.viewCollapsed)):(S=m.parentIndex,C=m.viewCollapsed),h.parentIndex=S,h.viewCollapsed=C,!C&&a[f].hidden&&(n[f].visible=!1)):b=f},e.prototype.ag=function(e,t,r,o,i,a,l){var s,c,d,u,f,p,m,g,y=this.Ne,C=y.sheets&&y.sheets[e],w=C.rowOutlines&&0===C.rowOutlines.direction,x=this.if;if((i>0||a)&&(!w&&t+2>C.rowCount&&(C.rowCount=t+2),C.rowOutlines||(C.rowOutlines={}),C.rowOutlines.items||(C.rowOutlines.items=[]),C.rowOutlines.itemsData||(C.rowOutlines.itemsData=[]),s=C.rowOutlines.items,s[t]={level:i-1,collapsed:a},c=C.rowOutlines.itemsData,d=c[c.length-1],d&&t===d.index+d.count&&d.info.level===i-1&&d.info.collapsed===a?d.count++:c.push({index:t,count:1,info:{level:i-1,collapsed:a}})),u=x[t-1]&&x[t-1].hidden,C.rowOutlines&&C.rowOutlines.itemsData&&S(C.rowOutlines,t,i,w,l,u),i<=0&&t+1>C.rowCount&&(C.rowCount=t+1),r!==-1&&t<C.rowCount&&(f=this.Se[r],f!==h?this.ef[t]={style:f}:r<this.Pe.length&&(this.ef[t]={style:this.Pe[r]})),o!==-1||l){for(C.rows||(C.rows=[]),p=C.rows.length;p<t;p++)C.rows.push(b),x.push(b);m={},g={},m.hidden=l,l&&0===i&&(g.visible=m.visible=!1),o!==-1&&(g.size=m.size=Math.round(n.UnitHelper.pointToPixel(o))),m.visible===!1&&0===m.size&&(g.size=m.size=h),x.push(m),C.rows.push(g)}},e.prototype.bg=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e];o.data||(o.data={}),t=o.data,t.dataTable||(t.dataTable={})},e.prototype.cg=function(e,t){var r=this.Ne,o=r.sheets&&r.sheets[e],i=o.data.dataTable;i[t]||(i[t]={})},e.prototype.dg=function(e,t,r,i){var n,a,l,s=this,c=s.Ne,d=c.sheets&&c.sheets[e],u=d.data.dataTable[t];u[r]||(u[r]={}),n=u[r],a=s.Se[i],a!==h?n.style=a:i<s.Pe.length&&(n.style=s.Pe[i]),s.kf.indexOf(r)>-1&&(l=s.Pe[i],l&&o.J(l.isVerticalText)&&(s.Pe[i].isVerticalText=!1))},e.prototype.eg=function(e,t,r,o){var i,n=this,a=n.Ne,l=a.sheets&&a.sheets[e],s=l.data.dataTable[t];s||(l.data.dataTable[t]=s={}),s[r]||(s[r]={}),i=s[r],i.hyperlink=o},e.prototype.fg=function(e,t){if(t[0]){var r=this,o=r.Ne,i=o.sheets&&o.sheets[e];i&&(i.sharedFormulas=t)}},e.prototype.gg=function(e,t,r,o,i,a,l,s){var c,d,u,f=this,b=f.Ne,h=b.sheets&&b.sheets[e],p=h.data.dataTable[t];if(p[r]||(p[r]={}),c=p[r],o<f.Qe.length&&f.Qe[o]&&"number"==typeof i&&(i=f.hg(i)),void 0!==i&&(c.value=i),void 0!==a&&(c.formula=a),l&&(c.arrayInfo=l),s){for(d=[],u=0;u<s.length;u++)s[u].style?d.push({style:n.ConverterHelper.toRichTextStyle(s[u].style,f.ff,f.gf),text:s[u].text}):d.push(s[u]);c.value={richText:d}}},e.prototype.hg=function(e){return this.bf&&(e+=1462),e=l.DateTimeHelper.Je(e),e instanceof Date&&(e=l.DateTimeHelper.ig(e)),l.DateTimeHelper.jg(e)},e.prototype.kg=function(e){var t,r,o;if(e&&e.length>0){for(n.ColorHelper.useCustomPalette=!0,t={},r=0,o=e.length;r<o;r++)t[r]=n.ColorHelper.fromArgb(e[r]);n.ColorHelper.customPalette=t}},e.prototype.mg=function(){this.cf=3},e.prototype.ng=function(e){this.cf=e},e.prototype.Lf=function(e,t,r){var o=this.Ne,i=o.sheets&&o.sheets[r];i.topCellIndex=e,i.leftCellIndex=t},e.prototype.og=function(){this.Ne.names=[];for(var e in this.Ne.sheets)this.Ne.sheets.hasOwnProperty(e)&&(this.Ne.sheets[e].names=[])},e.prototype.pg=function(e,t,r,o){var i,n;if(r===-1)this.Ne.names.push({name:e,formula:t,row:0,col:0,comment:o});else for(i in this.Ne.sheets)this.Ne.sheets.hasOwnProperty(i)&&(n=this.Ne.sheets[i],n.index===r&&n.names.push({name:e,formula:t,row:0,col:0,comment:o}))},e.prototype.qg=function(e){var t=this.rg[e];return u(t,this.ff,this.gf)},e.prototype.sg=function(e){var t=this.tg[e];return u(t,this.ff,this.gf)},e.prototype.ug=function(e){var t=this.hf[e];return u(t,this.ff,this.gf)},e.prototype.vg=function(e,t){return u(e,this.ff,this.gf,t)},e.prototype.wg=function(e,t){var r,i,n,a=this.Ne.sheets[e];for(a.conditionalFormats||(a.conditionalFormats={rules:[]}),r=0;r<t.rules.length;r++)i=t.rules[r],!o.J(i.dxfId)&&i.dxfId>-1&&(n=this.ug(i.dxfId),n.font&&0===n.font.indexOf("normal normal")&&delete n.font,i.style=n,delete i.dxfId),a.conditionalFormats.rules.push(i)},e.prototype.xg=function(e){return this.Ne.sheets[e].conditionalFormats},e.prototype.yg=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t];i.comments=e.map(function(e){return a.convertFromExcelComment(i,e)})},e.prototype.zg=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t];i.pivotTables=e},e.prototype.Ag=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t],n=e.pictures,a=e.charts,l=e.shapes,s=r.Bg&&r.Bg.importPictureAsFloatingObject;n&&s&&this.Cg(n,i),a&&this.Dg(a,i),l&&(s&&(l=J(l)),this.Eg(l,i))},e.prototype.Cg=function(e,t){t.floatingObjects=t.floatingObjects||[];var r=t.floatingObjects;e.forEach(function(e){var o=a.convertFromExcelPicture(t,e,r);o.typeName="1",r.push(o)})},e.prototype.Dg=function(e,t){t.charts=t.charts||[],e.map(function(e){var r=a.convertFromExcelChart(t,e);t.charts.push(r)})},e.prototype.Fg=function(e,t){var r,o=this,i=o.Ne.pivotCaches;
|
25
|
+
isometricOffAxis4Right:37,isometricOffAxis4Bottom:38,obliqueTopLeft:39,obliqueTop:40,obliqueTopRight:41,obliqueLeft:42,obliqueRight:43,obliqueBottomLeft:44,obliqueBottom:45,obliqueBottomRight:46,perspectiveFront:47,perspectiveLeft:48,perspectiveRight:49,perspectiveAbove:50,perspectiveBelow:51,perspectiveAboveLeftFacing:52,perspectiveAboveRightFacing:53,perspectiveContrastingLeftFacing:54,perspectiveContrastingRightFacing:55,perspectiveHeroicLeftFacing:56,perspectiveHeroicRightFacing:57,perspectiveHeroicExtremeLeftFacing:58,perspectiveHeroicExtremeRightFacing:59,perspectiveRelaxed:60,perspectiveRelaxedModerately:61},Ue(G),t.Charts.ST_PresetCameraType=G,U={tl:0,t:1,tr:2,l:3,r:4,bl:5,b:6,br:7},Ue(U),t.Charts.ST_LightRigDirection=U,J={legacyFlat1:0,legacyFlat2:1,legacyFlat3:2,legacyFlat4:3,legacyNormal1:4,legacyNormal2:5,legacyNormal3:6,legacyNormal4:7,legacyHarsh1:8,legacyHarsh2:9,legacyHarsh3:10,legacyHarsh4:11,threePt:12,balanced:13,soft:14,harsh:15,flood:16,contrasting:17,morning:18,sunrise:19,sunset:20,chilly:21,freezing:22,flat:23,twoPt:24,glow:25,brightRoom:26},Ue(J),t.Charts.ST_LightRigType=J,z={relaxedInset:0,circle:1,slope:2,cross:3,angle:4,softRound:5,convex:6,coolSlant:7,divot:8,riblet:9,hardEdge:10,artDeco:11},Ue(z),t.Charts.ST_BevelPresetType=z,V={legacyMatte:0,legacyPlastic:1,legacyMetal:2,legacyWireframe:3,matte:4,plastic:5,metal:6,warmMatte:7,translucentPowder:8,powder:9,dkEdge:10,softEdge:11,clear:12,flat:13,softmetal:14},Ue(V),t.Charts.ST_PresetMaterialType=V,j={shdw1:0,shdw2:1,shdw3:2,shdw4:3,shdw5:4,shdw6:5,shdw7:6,shdw8:7,shdw9:8,shdw10:9,shdw11:10,shdw12:11,shdw13:12,shdw14:13,shdw15:14,shdw16:15,shdw17:16,shdw18:17,shdw19:18,shdw20:19},Ue(j),t.Charts.ST_PresetShadowVal=j,X={shape:0,circle:1,rect:2},Ue(X),t.Charts.ST_PathShadeType=X,K={none:0,x:1,y:2,xy:3},Ue(K),t.Charts.ST_TileFlipMode=K,q={email:0,screen:1,print:2,hqprint:3,none:4},Ue(q),t.Charts.ST_BlipCompression=q,Y={pct5:0,pct10:1,pct20:2,pct25:3,pct30:4,pct40:5,pct50:6,pct60:7,pct70:8,pct75:9,pct80:10,pct90:11,horz:12,vert:13,ltHorz:14,ltVert:15,dkHorz:16,dkVert:17,narHorz:18,narVert:19,dashHorz:20,dashVert:21,cross:22,dnDiag:23,upDiag:24,ltDnDiag:25,ltUpDiag:26,dkDnDiag:27,dkUpDiag:28,wdDnDiag:29,wdUpDiag:30,dashDnDiag:31,dashUpDiag:32,diagCross:33,smCheck:34,lgCheck:35,smGrid:36,lgGrid:37,dotGrid:38,smConfetti:39,lgConfetti:40,horzBrick:41,diagBrick:42,solidDmnd:43,openDmnd:44,dotDmnd:45,plaid:46,sphere:47,weave:48,divot:49,shingle:50,wave:51,trellis:52,zigZag:53},Ue(Y),t.Charts.ST_PresetPatternVal=Y,Q={png:0,jpg:1,jpeg:2,emf:3},Ue(Q),t.Charts.ST_BobType=Q,Z={over:0,mult:1,screen:2,darken:3,lighten:4},Ue(Z),t.Charts.ST_BlendMode=Z,$={sib:0,tree:1},Ue($),t.Charts.ST_EffectContainerType=$,t.Charts.ST_PathToType={PathLine:0,PathMove:1,PathQuadBez:2,PathCubicBez:3},ee={line:0,lineInv:1,triangle:2,rtTriangle:3,rect:4,diamond:5,parallelogram:6,trapezoid:7,nonIsoscelesTrapezoid:8,pentagon:9,hexagon:10,heptagon:11,octagon:12,decagon:13,dodecagon:14,star4:15,star5:16,star6:17,star7:18,star8:19,star10:20,star12:21,star16:22,star24:23,star32:24,roundRect:25,round1Rect:26,round2SameRect:27,round2DiagRect:28,snipRoundRect:29,snip1Rect:30,snip2SameRect:31,snip2DiagRect:32,plaque:33,ellipse:34,teardrop:35,homePlate:36,chevron:37,pieWedge:38,pie:39,blockArc:40,donut:41,noSmoking:42,rightArrow:43,leftArrow:44,upArrow:45,downArrow:46,stripedRightArrow:47,notchedRightArrow:48,bentUpArrow:49,leftRightArrow:50,upDownArrow:51,leftUpArrow:52,leftRightUpArrow:53,quadArrow:54,leftArrowCallout:55,rightArrowCallout:56,upArrowCallout:57,downArrowCallout:58,leftRightArrowCallout:59,upDownArrowCallout:60,quadArrowCallout:61,bentArrow:62,uturnArrow:63,circularArrow:64,leftCircularArrow:65,leftRightCircularArrow:66,curvedRightArrow:67,curvedLeftArrow:68,curvedUpArrow:69,curvedDownArrow:70,swooshArrow:71,cube:72,can:73,lightningBolt:74,heart:75,sun:76,moon:77,smileyFace:78,irregularSeal1:79,irregularSeal2:80,foldedCorner:81,bevel:82,frame:83,halfFrame:84,corner:85,diagStripe:86,chord:87,arc:88,leftBracket:89,rightBracket:90,leftBrace:91,rightBrace:92,bracketPair:93,bracePair:94,straightConnector1:95,bentConnector2:96,bentConnector3:97,bentConnector4:98,bentConnector5:99,curvedConnector2:100,curvedConnector3:101,curvedConnector4:102,curvedConnector5:103,callout1:104,callout2:105,callout3:106,accentCallout1:107,accentCallout2:108,accentCallout3:109,borderCallout1:110,borderCallout2:111,borderCallout3:112,accentBorderCallout1:113,accentBorderCallout2:114,accentBorderCallout3:115,wedgeRectCallout:116,wedgeRoundRectCallout:117,wedgeEllipseCallout:118,cloudCallout:119,cloud:120,ribbon:121,ribbon2:122,ellipseRibbon:123,ellipseRibbon2:124,leftRightRibbon:125,verticalScroll:126,horizontalScroll:127,wave:128,doubleWave:129,plus:130,flowChartProcess:131,flowChartDecision:132,flowChartInputOutput:133,flowChartPredefinedProcess:134,flowChartInternalStorage:135,flowChartDocument:136,flowChartMultidocument:137,flowChartTerminator:138,flowChartPreparation:139,flowChartManualInput:140,flowChartManualOperation:141,flowChartConnector:142,flowChartPunchedCard:143,flowChartPunchedTape:144,flowChartSummingJunction:145,flowChartOr:146,flowChartCollate:147,flowChartSort:148,flowChartExtract:149,flowChartMerge:150,flowChartOfflineStorage:151,flowChartOnlineStorage:152,flowChartMagneticTape:153,flowChartMagneticDisk:154,flowChartMagneticDrum:155,flowChartDisplay:156,flowChartDelay:157,flowChartAlternateProcess:158,flowChartOffpageConnector:159,actionButtonBlank:160,actionButtonHome:161,actionButtonHelp:162,actionButtonInformation:163,actionButtonForwardNext:164,actionButtonBackPrevious:165,actionButtonEnd:166,actionButtonBeginning:167,actionButtonReturn:168,actionButtonDocument:169,actionButtonSound:170,actionButtonMovie:171,gear6:172,gear9:173,funnel:174,mathPlus:175,mathMinus:176,mathMultiply:177,mathDivide:178,mathEqual:179,mathNotEqual:180,cornerTabs:181,squareTabs:182,plaqueTabs:183,chartX:184,chartStar:185,chartPlus:186},Ue(ee),t.Charts.ST_ShapeType=ee,te={textNoShape:0,textPlain:1,textStop:2,textTriangle:3,textTriangleInverted:4,textChevron:5,textChevronInverted:6,textRingInside:7,textRingOutside:8,textArchUp:9,textArchDown:10,textCircle:11,textButton:12,textArchUpPour:13,textArchDownPour:14,textCirclePour:15,textButtonPour:16,textCurveUp:17,textCurveDown:18,textCanUp:19,textCanDown:20,textWave1:21,textWave2:22,textDoubleWave1:23,textWave4:24,textInflate:25,textDeflate:26,textInflateBottom:27,textDeflateBottom:28,textInflateTop:29,textDeflateTop:30,textDeflateInflate:31,textDeflateInflateDeflate:32,textFadeRight:33,textFadeLeft:34,textFadeUp:35,textFadeDown:36,textSlantUp:37,textSlantDown:38,textCascadeUp:39,textCascadeDown:40},Ue(te),t.Charts.ST_TextShapeType=te,re={none:0,norm:1,lighten:2,lightenLess:3,darken:4,darkenLess:5},Ue(re),t.Charts.ST_PathFillMode=re,oe={none:0,triangle:1,stealth:2,diamond:3,oval:4,arrow:5},Ue(oe),t.Charts.ST_LineEndType=oe,ie={sm:0,med:1,lg:2},Ue(ie),t.Charts.ST_LineEndWidth=ie,ne={sm:0,med:1,lg:2},Ue(ne),t.Charts.ST_LineEndLength=ne,ae={solid:0,dot:1,dash:2,lgDash:3,dashDot:4,lgDashDot:5,lgDashDotDot:6,sysDash:7,sysDot:8,sysDashDot:9,sysDashDotDot:10},Ue(ae),t.Charts.ST_PresetLineDashVal=ae,le={rnd:0,sq:1,flat:2},Ue(le),t.Charts.ST_LineCap=le,se={ctr:0,in:1},Ue(se),t.Charts.ST_PenAlignment=se,ce={sng:0,dbl:1,thickThin:2,thinThick:3,tri:4},Ue(ce),t.Charts.ST_CompoundLine=ce,de={twoCell:0,oneCell:1,absolute:2},Ue(de),t.Charts.ST_EditAs=de,ue={t:0,ctr:1,b:2,just:3,dist:4},Ue(ue),t.Charts.ST_TextAnchoringType=ue,fe={overflow:0,ellipsis:1,clip:2},Ue(fe),t.Charts.ST_TextVertOverflowType=fe,be={overflow:0,clip:1},Ue(be),t.Charts.ST_TextHorzOverflowType=be,he={horz:0,vert:1,vert270:2,wordArtVert:3,eaVert:4,mongolianVert:5,wordArtVertRtl:6},Ue(he),t.Charts.ST_TextVerticalType=he,pe={none:0,square:1},Ue(pe),t.Charts.ST_TextWrappingType=pe;me={alphaLcParenBoth:0,alphaUcParenBoth:1,alphaLcParenR:2,alphaUcParenR:3,alphaLcPeriod:4,alphaUcPeriod:5,arabicParenBoth:6,arabicParenR:7,arabicPeriod:8,arabicPlain:9,romanLcParenBoth:10,romanUcParenBoth:11,romanLcParenR:12,romanUcParenR:13,romanLcPeriod:14,romanUcPeriod:15,circleNumDbPlain:16,circleNumWdBlackPlain:17,circleNumWdWhitePlain:18,arabicDbPeriod:19,arabicDbPlain:20,ea1ChsPeriod:21,ea1ChsPlain:22,ea1ChtPeriod:23,ea1ChtPlain:24,ea1JpnChsDbPeriod:25,ea1JpnKorPlain:26,ea1JpnKorPeriod:27,arabic1Minus:28,arabic2Minus:29,hebrew2Minus:30,thaiAlphaPeriod:31,thaiAlphaParenR:32,thaiAlphaParenBoth:33,thaiNumPeriod:34,thaiNumParenR:35,thaiNumParenBoth:36,hindiAlphaPeriod:37,hindiNumPeriod:38,hindiNumParenR:39,hindiAlpha1Period:40};Ue(me),t.Charts.ST_TextAutonumberScheme=me,ge={none:0,words:1,sng:2,dbl:3,heavy:4,dotted:5,dottedHeavy:6,dash:7,dashHeavy:8,dashLong:9,dashLongHeavy:10,dotDash:11,dotDashHeavy:12,dotDotDash:13,dotDotDashHeavy:14,wavy:15,wavyHeavy:16,wavyDbl:17},Ue(ge),t.Charts.ST_TextUnderlineType=ge,ye={noStrike:0,sngStrike:1,dblStrike:2},Ue(ye),t.Charts.ST_TextStrikeType=ye,Se={none:0,small:1,all:2},Ue(Se),t.Charts.ST_TextCapsType=Se,Ce={l:0,ctr:1,r:2,dec:3},Ue(Ce),t.Charts.ST_TextTabAlignType=Ce,we={l:0,ctr:1,r:2,just:3,justLow:4,dist:5,thaiDist:6},Ue(we),t.Charts.ST_TextAlignType=we,xe={auto:0,t:1,ctr:2,base:3,b:4},Ue(xe),t.Charts.ST_TextFontAlignType=xe,Ae={auto:0},Ue(Ae),t.Charts.ST_StyleColorVal=Ae,t.Charts.CT_PathType={CT_PathToList:0,CT_Path2DArcTo:1,CT_Path2DClose:2},Te={col:0,row:1},Ue(Te),t.Charts.ST_FormulaDirection=Te,ve={cat:0,colorStr:1},Ue(ve),t.Charts.ST_StringDimensionType=ve,ke={val:0,x:1,y:2,size:3,colorVal:4},Ue(ke),t.Charts.ST_NumericDimensionType=ke,Fe={l:0,t:1,r:2,b:3},Ue(Fe),t.Charts.ST_SidePos=Fe,Re={t:1,r:2,l:3,b:4},Ue(Re),t.Charts.ST_2016ChartPosLegend=Re,Ee={min:0,ctr:1,max:2},Ue(Ee),t.Charts.ST_PosAlign=Ee,Ie={hundreds:0,thousands:1,tenThousands:2,hundredThousands:3,millions:4,tenMillions:5,hundredMillions:6,billions:7,trillions:8,percentage:9},Ue(Ie),t.Charts.ST_AxisUnit=Ie,Le={in:1,out:3,cross:0,none:2},Ue(Le),t.Charts.ST_TickMarksType=Le,De={boxWhisker:0,funnel:1,paretoLine:2,regionMap:3,sunburst:4,treemap:5,waterfall:6,clusteredColumn:7},Ue(De),t.Charts.ST_SeriesLayout=De,Be={none:0,banner:1,overlapping:2},Ue(Be),t.Charts.ST_ParentLabelLayout=Be,Pe={none:0,bestFitOnly:1,showAll:2},Ue(Pe),t.Charts.ST_RegionLabelLayout=Pe,We={l:0,r:1},Ue(We),t.Charts.ST_IntervalClosedSide=We,_e={Address:0,AdminDistrict:1,AdminDistrict2:2,AdminDistrict3:3,Continent:4,CountryRegion:5,Locality:6,Ocean:7,Planet:8,PostalCode:9,Region:10,Unsupported:11},Ue(_e),t.Charts.ST_EntityType=_e,Ne={mercator:0,miller:1,robinson:2,albers:3},Ue(Ne),t.Charts.ST_GeoProjectionType=Ne,Me={dataOnly:0,postalCode:1,county:2,state:3,countryRegion:4,countryRegionList:5,world:6},Ue(Me),t.Charts.ST_GeoMappingLevel=Me,Oe={inclusive:0,exclusive:1},Ue(Oe),t.Charts.ST_QuartileMethod=Oe,He={bestFit:0,b:1,ctr:2,inBase:3,inEnd:4,l:5,outEnd:6,r:7,t:8},Ue(He),t.Charts.ST_DataLabelPos=He,Ge={default:0,portrait:1,landscape:2},Ue(Ge),t.Charts.ST_PageOrientation=Ge},"./src/datamodel/datamodel-reader.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/datamodel/excel-style.ts"),a=r("./src/datamodel/excel-helper.ts"),l=r("./src/datamodel/datetime-helper.ts"),s=r("./src/common/range-parser.ts"),c=r("./src/xml-io/node-helper.ts"),d=o.StringEx.O,u=n.ConverterHelper.convertDxfToStyle,f=c.XmlNodeHelper.He,b=null,h=void 0,p="Normal";function S(e,t,r,o,i,n){var a,l,s,c,d=e.itemsData;d&&(a=d[d.length-1],l=d[d.length-2],s=a&&a.info,c=l&&l.info,s&&(o&&i&&1===a.count?c&&l.index===a.index-1&&c.level===s.level-1?c.collapsed=!0:t>0?d.splice(d.length-2,0,{index:a.index-1,count:1,info:{level:s.level-1,collapsed:!0}}):e.head={collapsed:!0,level:r-1}:!o&&n&&(c&&a.index===l.index+1&&s.level===c.level-1?a.collapsed=!0:t>=a.index+a.count&&d.push({index:a.index+a.count,count:1,info:{level:s.level-1,collapsed:!0}}))))}function C(e,t,r,i,n,a,l,s,c,d){var u={};return u.conType=e,o.J(t)||(u.compareType=t),o.J(r)||(u.expected=r),o.J(i)||(u.ignoreBlank=i),o.J(n)||(u.type=n),o.J(a)||(u.isPercent=a),o.J(l)||(u.item1=l),o.J(s)||(u.item2=s),o.J(c)||(u.ranges=c),o.J(d)||(u.expectTypeId=d),2===e&&(u.ignoreCase=!0),u}function w(e,t){var r,o,i=e.cellColor?0:1,a=t.fill;return a&&(0===a.patternType?r="":(o={},n.ConverterHelper.Ie(a,o),r=o.backColor)),C(3,i,r)}function x(e){if(e.length>0){var t=e[0];if("number"==typeof t)return"number";if("string"==typeof t&&0===t.indexOf("/OADate(")&&t.indexOf(")")===t.length-2)return"date";if("boolean"==typeof t)return"boolean"}return""}function A(e,t,r){var o,i,n={none:0,equal:0,lessThan:4,lessThanOrEqual:5,notEqual:1,greaterThan:2,greaterThanOrEqual:3};switch(e){case"string":o=2;break;case"number":o=1,r=parseFloat(r);break;case"date":o=5,"string"==typeof r&&0===r.indexOf("/OADate(")?(i=parseInt(r.replace("/OADate(",""),10),r=l.DateTimeHelper.Je(i)):r=l.DateTimeHelper.Je(parseInt(r,10)),n={none:0,equal:0,lessThan:2,lessThanOrEqual:3,notEqual:1,greaterThan:4,greaterThanOrEqual:5};break;case"boolean":default:o=11}return C(o,n[t],r)}function T(e,t){var r,o;function i(e){var r,o,i,n,a="notEqual"===e.operator,l=e.value,s=l.indexOf("*"),c=l.lastIndexOf("*");return s!==-1?s===l.length-1&&0!==s?(o=a?3:2,r=C(2,o,l.substring(0,l.length-1))):0===s&&s===c?(o=a?5:4,r=C(2,o,l.substring(1))):(i=a?7:6,s!==-1&&c!==-1&&(l=l.substr(1,l.length-2)),r=C(2,i,l)):(n=x(t),r=A(n,e.operator||"none",l)),r}return e.filter1&&(r=i(e.filter1)),e.filter2&&(o=e.and?1:0,r=C(0,o,b,b,b,b,r,i(e.filter2))),r}function v(e,t){function r(e){var r;return o.J(t)||(r=C(t.conType,t.compareType,e.value)),r}var i;return e.filter1&&(i=r(e.filter1)),i=e.filter2?C(t.conType,t.compareType,b,b,b,b,i,r(e.filter2)):C(t.conType,t.compareType,b,b,b,b,i,b)}function k(e,t,r){var i,n=new o.Range(t.row,r,t.rowCount,1),a=e.type;return 100===a||101===a?i=C(10,b,b,b,a-100,b,b,b,n):16===a?i=C(6,b,0,b,b,b,b,b,b,6):a>=17&&a<=20?i=C(6,b,a-17,b,b,b,b,b,b,2):a>=21&&a<=32?i=C(6,b,a-21,b,b,b,b,b,b,3):a>=0&&a<=15&&(i=C(6,b,a)),i}function F(e,t){var r,o=t.conType;return 1===o&&(r=C(1,t.compareType,b)),r}function R(e){var t=e.top?0:1;return C(8,b,e.value,b,t,e.percent)}function E(e,t){var r=e.top?1:-1;return C(3,t.compareType,e.value,b,r,e.percent)}function I(e){return d(e)?e:"="+e}function L(e){return d(e)||e.length<=2?e:e.substr(1,e.length-2)}function D(e,t){var r=null;return t.forEach(function(t){t.id===e&&(r=t.name)}),r}t.getTableName=D;function B(e,t,r){var o=null;return r.forEach(function(r){r.id===e&&r.columns.forEach(function(e){e.id===t&&(o=e.name)})}),o}t.getTableColumnName=B;function P(e,t,r){var o,i,n=null;for(o=0;o<t.length;o++)if(i=t[o],""+r[i.cacheId].pivotCacheId===e){n=i.name;break}return n}function W(e,t){return t=t||" ",e.map(_).join(t)}function _(e){var t,r=e.row,n=e.col,a=e.rowCount,l=e.colCount,s=n+l-1,c=r+a-1;return o.isRangeWholeRow(e)&&o.isRangeWholeColumn(e)?t="$1:$"+i.ExcelConstants.wb:o.isRangeWholeRow(e)?t=r+1+":"+(c+1):o.isRangeWholeColumn(e)?t=o.IndexHelper.T(n)+":"+o.IndexHelper.T(s):(t=o.IndexHelper.T(n)+(r+1),(a>1||l>1)&&(t+=":"+o.IndexHelper.T(s)+(c+1))),t}m=["fillStyleLst","lnStyleLst","effectStyleLst","bgFillStyleLst"],g=["w","cap","cmpd","algn","prstDash","custDash","round","bevel","miter","headEnd","tailEnd"];function N(e,t){g.forEach(function(r){void 0===t[r]&&void 0!==e[r]&&(t[r]=e[r])})}function M(e,t){e&&N(e,t)}function O(e,t){return!!e[t]}function H(e,t,r,i,n,l){var s,c,d,u=e.Ke;if(r[i]&&r[i][n]){if(s=r[i][n].style,!s)return;c=o.ga._(t.namedStyles,s),c&&(d=a.processTableCellStyle(c,u),d.name="__builtInTableStyle"+e.Le+c.name,o.ga.aa(t.namedStyles,e.Me,d),e.Le++,r[i][n].style=d.name,l[s]=d.name)}}function G(e,t){var r=e.filter(function(e){return e._attr.name===t});return r&&r[0]}function U(e,t){var r=f(e.bk);return r[t]}function J(e){return e.filter(function(e){return!(e.pic&&!e.pic.cameraTool)})}function z(e){return e&&e.indexOf(" ")>=0&&("'"!==e[0]||'"'!==e[0])&&(e="'"+e+"'"),e}y=function(){function e(){var e=this;e.Ne={version:"17.1.6"},e.Ke=b,e.Oe=b,e.Pe=[],e.Qe=[],e.Re=[],e.Se=[],e.Te=1,e.Le=0,e.Ue=0,e.Ve=0,e.We=[],e.Xe=[],e.Ye={},e.Ze={},e.$e=!0,e._e=b,e.af=[],e.bf=!1,e.cf=3,e.df=[],e.ef=[],e.ff="Calibri Light",e.gf="Calibri",e.hf=[],e.if=[],e.jf=[],e.Me={},e.kf=[]}return e.prototype.lf=function(e){this.mf=e,this.pf={}},e.prototype.qf=function(e,t){var r,o,i,n,a,l,s,c,d=this;return d.pf||(d.pf={}),r=this.pf,o=e+","+t,(i=r[o])?i:(n=this.mf,l=n&&n.themeElements&&n.themeElements.fmtScheme,l&&(s=m[e],c=s&&l[s],a=c,c&&(1===e?c=c.ln:0===e&&(c=c.items),a=c[t])),r[o]=a,a)},e.prototype.rf=function(e){var t,r,o,i,n,a,l,s,c;if(e){if(t={name:e.name},e.colorScheme&&(r=e.colorScheme,t.themeColor={name:r.name,text1:r.schemeColors[1],text2:r.schemeColors[3],background1:r.schemeColors[0],background2:r.schemeColors[2],accent1:r.schemeColors[4],accent2:r.schemeColors[5],accent3:r.schemeColors[6],accent4:r.schemeColors[7],accent5:r.schemeColors[8],accent6:r.schemeColors[9],hyperlink:r.schemeColors[10],followedHyperlink:r.schemeColors[11]}),e.fontScheme){for(o=e.fontScheme,i=o.majorFont.runFormattings,n=o.minorFont.runFormattings,a=0,l=i.length;a<l;a++)s=i[a],s&&0===s.fontLanguage&&(c=z(s.typeface),t.headingFont=c,this.ff=c);for(a=0,l=n.length;a<l;a++)s=n[a],s&&0===s.fontLanguage&&(c=z(s.typeface),t.bodyFont=c,this.gf=c)}this.sf=t}},e.prototype.tf=function(e){var t,r;e&&(t=this,t.Ke=n.ConverterHelper.toCellStyle(e,t.ff,t.gf),r={},n.ConverterHelper.setStyleInfoFont(e.font,r,h,h),t.Ke.fontForColumnWidth=r.font,t.Oe=e)},e.prototype.uf=function(e,t){var r,i,a,s,c,d,u,f,b,m,g,y;if(e){if(r=this,i=r.Ne,a=n.ConverterHelper.toCellStyle(e,r.ff,r.gf),!o.J(a.formatter)){for(s=RegExp("\\[DBNum\\d+\\]","ig"),c=s.exec(a.formatter),d=a.formatter;null!==c;)u=c[0],f=parseInt(u.substring(u.indexOf("m")+1,u.indexOf("]")),10),(f>4||4===f&&d.indexOf("[$-412]")<0&&"ko-kr"!==o.Fa())&&(d=d.replace(u,"[DBNum3]")),c=s.exec(a.formatter);a.formatter=d}r.Pe.push(a),b=n.ExtendedNumberFormatHelper.getFormatCode(e),r.Qe.push(l.DateTimeHelper.vf(b)),"@"===b?r.Re.push(!0):r.Re.push(!1),e.isStyleFormat?(m=r.wf(t),m===-1&&(m=r.Ve),r.We.length>m?r.Se[r.Se.length]=r.We[m]:(r.Se[r.Se.length]="__builtInStyle"+r.Te,r.Te++)):(g="",e.parentFormatID!==h&&r.Se.length>e.parentFormatID&&(g=r.Se[e.parentFormatID]),(g===p||"__builtInStyle"===g.substring(0,14)||o.StringEx.L(g))&&(g="__builtInStyle"+r.Te,r.Te++),a.name=g,y=r.Ze[g],"__builtInStyle"===g.substring(0,14)||y===h||e.equals(y)||(a.parentName=g,g="__builtInStyle"+r.Te,r.Te++,a.name=g),i.namedStyles||(i.namedStyles=[]),o.ga.aa(i.namedStyles,r.Me,a),r.Se[r.Se.length]=g)}},e.prototype.wf=function(e){return this.Ye[e]?this.Ye[e]:-1},e.prototype.xf=function(e,t){var r,i,a,l,s,c,d,u,f;if(e){if(r=this,i=r.Ne,r.$e&&(r.yf(),r.$e=!1),a=e.name,l=r._e,l&&e.isBuiltInStyle())for(s=0,c=l.length;s<c;s++)if(d=l[s],d.builtInStyle===e.builtInStyle){a=d.name;break}if(o.ga.Z(r.Me,a)){for(s=0,c=r.af.length;s<c;s++)if(f=r.af[s],f.name===a){r.af[s]=e,r.Xe[s]=e.format(),r.Ye[t]=s;break}r.Ze[a]=e.format(),u=n.ConverterHelper.toCellStyle(e.format(),r.ff,r.gf),u.name=a,o.ga.aa(i.namedStyles,r.Me,u)}else r.Ze[a]=e.format(),r.af.push(e),r.Xe.push(e.format()),r.Ye[t]=r.Xe.length-1,r.We.push(a),i.namedStyles||(i.namedStyles=[]),u=n.ConverterHelper.toCellStyle(e.format(),r.ff,r.gf),u.name=a,o.ga.aa(i.namedStyles,r.Me,u)}},e.prototype.yf=function(){var e,t,r,o,i=this,a=i.Ne;if(i.$e)for(a.namedStyles||(a.namedStyles=[]),i._e=n.BuiltInExcelStyles.getBuiltInStyles(),e=0,t=i._e.length;e<t;e++)r=i._e[e],r&&r.name===p&&(i.Ve=i.Xe.length),i.af.push(r),i.Xe.push(r.format()),i.We.push(r.name),i.Ze[r.name]=r.format(),o=n.ConverterHelper.toCellStyle(r.format(),i.ff,i.gf),o.name=r.name},e.prototype.zf=function(e){this.bf=e},e.prototype.Af=function(e,t){var r=this.Ne;e||(r.showHorizontalScrollbar=e),t||(r.showVerticalScrollbar=t)},e.prototype.Bf=function(e,t,r,o){var i=this.Ne;e||(i.tabStripVisible=e),i.startSheetIndex=r,i.activeSheetIndex=t,i.tabStripRatio=o/1e3},e.prototype.Cf=function(e,t,r){var i={},n=this.Ne;i.name=e,i.index=t,1===r?i.visible=0:2===r&&(i.visible=2),i.allowCellOverflow=!0,i.theme=this.sf,i.defaults=o.Ea(),o.J(n.sheetCount)&&(n.sheetCount=0),n.sheetCount++,n.sheets||(n.sheets={}),n.sheets[e]=i},e.prototype.Df=function(e,t,r){var i,n,a=this.Ne;if(e&&(a.referenceStyle=1,a.sheets))for(i in a.sheets)a.sheets.hasOwnProperty(i)&&(n=a.sheets[i],n.referenceStyle=1,n.colHeaderAutoText=1);a.calculationMode=r,a.iterativeCalculation="1"===t.iterate,a.iterativeCalculationMaximumIterations=o.J(t.count)?100:parseInt(t.count,10),a.iterativeCalculationMaximumChange=o.J(t.delta)?.001:parseFloat(t.delta)},e.prototype.Ef=function(e,t,r){var o=this.Ne,i=o.sheets&&o.sheets[e];r===!1&&(i.rowOutlines||(i.rowOutlines={}),i.rowOutlines.direction=0),t===!1&&(i.columnOutlines||(i.columnOutlines={}),i.columnOutlines.direction=0)},e.prototype.Ff=function(e,t){var r=this.Ne,o=r.sheets&&r.sheets[e];t!==n.ExcelColor.EmptyColor&&(t.isThemeColor()?o.sheetTabColor=n.ColorHelper.getThemeColorName(t):o.sheetTabColor=n.ColorHelper.toRGBColor(t))},e.prototype.Gf=function(e,t,r){var o=this.Ne,i=o.sheets&&o.sheets[e];i.rowCount=t,i.columnCount=r},e.prototype.Hf=function(e,t,r,o,i,a,l,s){var c,d=this.Ne,u=d.sheets&&d.sheets[e];o||(u.rowHeaderVisible=o,u.colHeaderVisible=o),a&&(u.showFormulas=!0),l?u.showZeros=!0:u.showZeros=!1,100!==i&&(u.zoomFactor=i/100),t&&t.isIndexedColor()&&64===t.value()&&(t=null),null===t&&r||(c={},null!==t&&(c.color=""+n.ColorHelper.toRGBColor(t)),r||(c.showVerticalGridline=r,c.showHorizontalGridline=r),u.gridline=c),u.isSelected=s},e.prototype.If=function(e,t,r,o,i,n,a,l,s){var c,d,u,f,b,h,p,m,g=this.Ne,y=g.sheets&&g.sheets[e];if(this.cf===t){for(y.rowCount<=r&&(y.rowCount=r+1),y.columnCount<=o&&(y.columnCount=o+1),c=0,d=n.length;c<d;c++)u=n[c],f=a[c],b=l[c],h=s[c],f===-1&&(f=y.rowCount-1),h===-1&&(h=y.columnCount-1),u=u>=0?u:0,f=f>=0?f:0,b=b>=0?b:0,h=h>=0?h:0,u<y.rowCount&&b<y.columnCount&&(p=Math.min(y.rowCount-u,f-u+1),m=Math.min(y.columnCount-b,h-b+1),p>=1&&m>=1&&(y.selections=y.selections||{},y.selections[c]={row:u,rowCount:p,col:b,colCount:m}));y.selections&&(y.selections.length=n.length),y.activeRow=r>=0&&r<y.rowCount?r:0,y.activeCol=o>=0&&o<y.columnCount?o:0}},e.prototype.Jf=function(e,t,r,i,n){var a,l,s,c,d,u,f,b,h;n&&(a=this.Ne,l=a.sheets&&a.sheets[e],s=this.Kf,c=o.IndexHelper.P(s),d=o.IndexHelper.R(s),u=o.IndexHelper.P(i),f=o.IndexHelper.R(i),r&&t?this.Lf(u,f,e):r&&!t?this.Lf(u,d,e):!r&&t&&this.Lf(c,f,e),r&&(b=r+c,l.rowCount<=b&&(l.rowCount=b),l.frozenRowCount=b,l.frozenTopRow=c),t&&(h=t+d,l.columnCount<=h&&(l.columnCount=h),l.frozenColCount=h,l.frozenLeftCol=d))},e.prototype.Mf=function(e,t,r){var o=this.Ne,i=o.sheets&&o.sheets[e];i.defaults={colHeaderRowHeight:20,rowHeaderColWidth:40,rowHeight:t,colWidth:r}},e.prototype.Nf=function(e,t){var r=this.Ne,o=r.sheets&&r.sheets[e];o.defaults.rowHeight=n.UnitHelper.pointToPixel(t)},e.prototype.Of=function(e,t,r){var o,i=this.Ne,n=i.sheets&&i.sheets[e];isNaN(r)?(o=this.Pf(t),n.defaults._isExcelDefaultColumnWidth=!0):o=this.Qf(r),n.defaults.colWidth=o},e.prototype.Pf=function(e){var t=this.Ke,r=this.getMaxiumDigitWidth(t.fontForColumnWidth?t.fontForColumnWidth:t.font),o=2*Math.ceil(r/4)+1,i=this.Qf(e,r)+o;return 8*Math.ceil(i/8)},e.prototype.Qf=function(e,t){if(0===e)return 0;var r=this.Ke,i=r.fontForColumnWidth?r.fontForColumnWidth:r.font;return Math.floor(Math.floor(256*e)/256*(o.J(t)?this.getMaxiumDigitWidth(i):t)+.5)},e.prototype.getMaxiumDigitWidth=function(e){return this.Rf===h&&(this.Rf=n.UnitHelper.getMaxiumDigitWidth(e)),this.Rf},e.prototype.Sf=function(e){var t=this,r=t.Ne,o=r.sheets&&r.sheets[e],i=o.columnCount||0,n=o.rowCount||0,a=t.Tf,l=t.Uf;o.columnCount=Math.max(i,a+1),o.rowCount=Math.max(n,l+1)},e.prototype.Vf=function(e,t,r,o,n,a,l,s){var c,d,u,f,p,m,g,y,C,w,x,A,T,v,k=this.Ne,F=k.sheets&&k.sheets[e],R=F.columnOutlines&&0===F.columnOutlines.direction,E=this.jf,I=this.Qf(n),L=i.ExcelConstants.vb;for(r>=L-1&&(r=L-1),c=!1,d=t;d<=r;d++){if(u=!1,(l>0||s)&&(d+2>F.columnCount&&(f=F.columnOutlines&&F.columnOutlines.items,l<=0&&(!f||!f[d-1]||f[d-1].level<0)&&(c=!0),c||(F.columnCount=d+2)),c||(F.columnOutlines||(F.columnOutlines={}),F.columnOutlines.items||(F.columnOutlines.items=[]),F.columnOutlines.itemsData||(F.columnOutlines.itemsData=[]),p=F.columnOutlines.items,p[d]={level:l-1,collapsed:s},a&&(u=!0),m=F.columnOutlines.itemsData,g=m[m.length-1],g&&d===g.index+g.count&&g.info.level===l-1&&g.info.collapsed===s?g.count++:m.push({index:d,count:1,info:{level:l-1,collapsed:s}}))),F.columnOutlines&&F.columnOutlines.itemsData&&(y=F.columnOutlines.itemsData,S(y,d,l,R,a,E[d-1]&&E[d-1].hidden)),I!==-1||a){for(F.columns||(F.columns=[]),C=F.columns.length,w=C;w<d;w++)F.columns[w]=b,E[w]=b;x={},A={},x.hidden=a,a&&0===l&&(A.visible=x.visible=!1),I!==-1&&(A.size=x.size=I),x.visible!==!1&&u!==!0||0!==x.size||(A.size=x.size=h),E[d]=x,F.columns[d]=A}1!==o&&(T=this.Se[o],T!==h?this.df[d]={style:T}:o<this.Pe.length&&(this.df[d]={style:this.Pe[o]}),v=this.Pe[o],v&&v.isVerticalText===!0&&this.kf.push(d))}F.columnCount>L&&(F.columnCount=L)},e.prototype.Wf=function(e){var t,r,o,i,n,a,l,s,c,d,u=this,f=u.Ne,b=f.sheets&&f.sheets[e],h=b.defaults,p=b.data,m=b.columns,g=b.columnCount,y=h.colWidth;if(m&&(t=m.length,g<t))for(r=g;r<t;r++)if(o=m[r],o&&o.size===y){i=m.slice(0,r),u.jf=i,b.columns=i,p&&p.columnDataArray&&(p.columnDataArray=p.columnDataArray.slice(0,r));break}if(n=b.rows,a=b.rowCount,l=h.rowHeight,n&&(s=n.length,a<s))for(r=a;r<s;r++)if(c=n[r],c&&c.size===l){d=n.slice(0,r),u.if=d,b.rows=d,p&&p.rowDataArray&&(p.rowDataArray=p.rowDataArray.slice(0,r));break}},e.prototype.Xf=function(e,t,r,i,n){var a=this.Ne,l=a.sheets&&a.sheets[e];l.spans||(l.spans=[]),l.spans.push(new o.Range(t,i,r-t+1,n-i+1))},e.prototype.Yf=function(e,t){var r=this.Ne,o=r.sheets&&r.sheets[e];o.isProtected=t},e.prototype.Zf=function(e,t,r){var o,i,n,l,s=this.Ne,c=s.sheets&&s.sheets[e];for(c.protectionOptions=c.protectionOptions||{},o=0;o<t.length;o++)i=t[o].name,n=t[o].value,l=a.toProtectionOptions[i],l?c.protectionOptions[l]=n:c.protectionOptions[i]=n;r&&c.protectionOptions.allowEditObjects===h&&(c.protectionOptions.allowEditObjects=!0)},e.prototype.$f=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e];o.data||(o.data={}),t=o.data,this.ef.length>0&&(t.rowDataArray=this.ef,this.ef=[]),this.df.length>0&&(t.columnDataArray=this.df,this.df=[]),this.Ke&&(t.defaultDataNode={style:this.Ke}),this.sf&&(o.theme=this.sf),this.Sf(e)},e.prototype._f=function(e,t){var r,o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S,C,w,x=this.Ne,A=x.sheets&&x.sheets[e];if(A&&(r=t?A.rowOutlines:A.columnOutlines))for(o=0===r.direction,i=r.items,n=t?A.rows:A.columns,a=t?this.if:this.jf,l=function(){return o?0:n.length-1},s=function(e){return o?e<n.length:e>=0},c=function(e){return o?e+1:e-1},d=function(e){return o?e-1:e+1},u=function(e,t){var r=i[e];if(r)return r.level<=t?r:u(r.parentIndex,t)},f=l(),b=void 0;s(f);f=c(f))h=i[f],h&&h.level!==-1?(p=d(f),m=i[p],g=!m&&"number"==typeof h.level||m&&m.level<h.level,y=m&&m.level>h.level,S=void 0,C=void 0,g?(S=p,C=!!m&&(m.collapsed||m.viewCollapsed)):y?h.level===-1?C=!1:(w=void 0,w=m.parentIndex===b?m:u(m.parentIndex,h.level),w&&(S=w.parentIndex,C=w.viewCollapsed)):(S=m.parentIndex,C=m.viewCollapsed),h.parentIndex=S,h.viewCollapsed=C,!C&&a[f].hidden&&(n[f].visible=!1)):b=f},e.prototype.ag=function(e,t,r,o,i,a,l){var s,c,d,u,f,p,m,g,y=this.Ne,C=y.sheets&&y.sheets[e],w=C.rowOutlines&&0===C.rowOutlines.direction,x=this.if;if((i>0||a)&&(!w&&t+2>C.rowCount&&(C.rowCount=t+2),C.rowOutlines||(C.rowOutlines={}),C.rowOutlines.items||(C.rowOutlines.items=[]),C.rowOutlines.itemsData||(C.rowOutlines.itemsData=[]),s=C.rowOutlines.items,s[t]={level:i-1,collapsed:a},c=C.rowOutlines.itemsData,d=c[c.length-1],d&&t===d.index+d.count&&d.info.level===i-1&&d.info.collapsed===a?d.count++:c.push({index:t,count:1,info:{level:i-1,collapsed:a}})),u=x[t-1]&&x[t-1].hidden,C.rowOutlines&&C.rowOutlines.itemsData&&S(C.rowOutlines,t,i,w,l,u),i<=0&&t+1>C.rowCount&&(C.rowCount=t+1),r!==-1&&t<C.rowCount&&(f=this.Se[r],f!==h?this.ef[t]={style:f}:r<this.Pe.length&&(this.ef[t]={style:this.Pe[r]})),o!==-1||l){for(C.rows||(C.rows=[]),p=C.rows.length;p<t;p++)C.rows.push(b),x.push(b);m={},g={},m.hidden=l,l&&0===i&&(g.visible=m.visible=!1),o!==-1&&(g.size=m.size=Math.round(n.UnitHelper.pointToPixel(o))),m.visible===!1&&0===m.size&&(g.size=m.size=h),x.push(m),C.rows.push(g)}},e.prototype.bg=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e];o.data||(o.data={}),t=o.data,t.dataTable||(t.dataTable={})},e.prototype.cg=function(e,t){var r=this.Ne,o=r.sheets&&r.sheets[e],i=o.data.dataTable;i[t]||(i[t]={})},e.prototype.dg=function(e,t,r,i){var n,a,l,s=this,c=s.Ne,d=c.sheets&&c.sheets[e],u=d.data.dataTable[t];u[r]||(u[r]={}),n=u[r],a=s.Se[i],a!==h?n.style=a:i<s.Pe.length&&(n.style=s.Pe[i]),s.kf.indexOf(r)>-1&&(l=s.Pe[i],l&&o.J(l.isVerticalText)&&(s.Pe[i].isVerticalText=!1))},e.prototype.eg=function(e,t,r,o){var i,n=this,a=n.Ne,l=a.sheets&&a.sheets[e],s=l.data.dataTable[t];s||(l.data.dataTable[t]=s={}),s[r]||(s[r]={}),i=s[r],i.hyperlink=o},e.prototype.fg=function(e,t){if(t[0]){var r=this,o=r.Ne,i=o.sheets&&o.sheets[e];i&&(i.sharedFormulas=t)}},e.prototype.gg=function(e,t,r,o,i,a,l,s){var c,d,u,f=this,b=f.Ne,h=b.sheets&&b.sheets[e],p=h.data.dataTable[t];if(p[r]||(p[r]={}),c=p[r],o<f.Qe.length&&f.Qe[o]&&"number"==typeof i&&(i=f.hg(i)),void 0!==i&&(c.value=i),void 0!==a&&(c.formula=a),l&&(c.arrayInfo=l),s){for(d=[],u=0;u<s.length;u++)s[u].style?d.push({style:n.ConverterHelper.toRichTextStyle(s[u].style,f.ff,f.gf),text:s[u].text}):d.push(s[u]);c.value={richText:d}}},e.prototype.hg=function(e){return this.bf&&(e+=1462),e=l.DateTimeHelper.Je(e),e instanceof Date&&(e=l.DateTimeHelper.ig(e)),l.DateTimeHelper.jg(e)},e.prototype.kg=function(e){var t,r,o;if(e&&e.length>0){for(n.ColorHelper.useCustomPalette=!0,t={},r=0,o=e.length;r<o;r++)t[r]=n.ColorHelper.fromArgb(e[r]);n.ColorHelper.customPalette=t}},e.prototype.mg=function(){this.cf=3},e.prototype.ng=function(e){this.cf=e},e.prototype.Lf=function(e,t,r){var o=this.Ne,i=o.sheets&&o.sheets[r];i.topCellIndex=e,i.leftCellIndex=t},e.prototype.og=function(){this.Ne.names=[];for(var e in this.Ne.sheets)this.Ne.sheets.hasOwnProperty(e)&&(this.Ne.sheets[e].names=[])},e.prototype.pg=function(e,t,r,o){var i,n;if(r===-1)this.Ne.names.push({name:e,formula:t,row:0,col:0,comment:o});else for(i in this.Ne.sheets)this.Ne.sheets.hasOwnProperty(i)&&(n=this.Ne.sheets[i],n.index===r&&n.names.push({name:e,formula:t,row:0,col:0,comment:o}))},e.prototype.qg=function(e){var t=this.rg[e];return u(t,this.ff,this.gf)},e.prototype.sg=function(e){var t=this.tg[e];return u(t,this.ff,this.gf)},e.prototype.ug=function(e){var t=this.hf[e];return u(t,this.ff,this.gf)},e.prototype.vg=function(e,t){return u(e,this.ff,this.gf,t)},e.prototype.wg=function(e,t){var r,i,n,a=this.Ne.sheets[e];for(a.conditionalFormats||(a.conditionalFormats={rules:[]}),r=0;r<t.rules.length;r++)i=t.rules[r],!o.J(i.dxfId)&&i.dxfId>-1&&(n=this.ug(i.dxfId),n.font&&0===n.font.indexOf("normal normal")&&delete n.font,i.style=n,delete i.dxfId),a.conditionalFormats.rules.push(i)},e.prototype.xg=function(e){return this.Ne.sheets[e].conditionalFormats},e.prototype.yg=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t];i.comments=e.map(function(e){return a.convertFromExcelComment(i,e)})},e.prototype.zg=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t];i.pivotTables=e},e.prototype.Ag=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t],n=e.pictures,a=e.charts,l=e.shapes,s=r.Bg&&r.Bg.importPictureAsFloatingObject;n&&s&&this.Cg(n,i),a&&this.Dg(a,i),l&&(s&&(l=J(l)),this.Eg(l,i))},e.prototype.Cg=function(e,t){t.floatingObjects=t.floatingObjects||[];var r=t.floatingObjects;e.forEach(function(e){var o=a.convertFromExcelPicture(t,e,r);o.typeName="1",r.push(o)})},e.prototype.Dg=function(e,t){t.charts=t.charts||[],e.map(function(e){var r=a.convertFromExcelChart(t,e);t.charts.push(r)})},e.prototype.Fg=function(e,t){var r,o=this,i=o.Ne.pivotCaches;
|
26
26
|
if(i)for(r in i)if(i.hasOwnProperty(r)&&i[r]&&i[r][e]===t)return i[r]},e.prototype.Gg=function(e){var t,r,o,i,n,a,l=this,s=e.sp||e.cxnSp,c=s&&s.style,d=s&&s.spPr;c&&(t=c.lnRef,r=void 0,o=void 0,i=d.ln,i||(i={}),t&&(r=t.idx,r&&(o=l.qf(1,r-1),M(o,i),d.ln=i))),n=e.grpSp,n&&(a=n.sp,a&&a.length&&a.forEach(function(e){l.Gg({sp:e})}))},e.prototype.Eg=function(e,t){var r=this;t.shapes=t.shapes||[],e.map(function(e){r.Gg(e);var o=a.convertFromExcelShape(t,e);t.shapes.push(o)})},e.prototype.Hg=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t];i.controls=e},e.prototype.Ig=function(e,t){var r=function(e){var t,r,o=e&&e.nvSpPr&&e.nvSpPr.cNvPr,i=o&&o.extLst&&o.extLst.ext||[];for(t=0;t<i.length;t++)if(r=i[t],r.compatExt)return r.compatExt.spid},o=function(e){return r(e)===t},i=function(e){var t,r,n,a=e&&e.sp||[];for(t=0;t<a.length;t++){if(r=a[t],o(r))return r;if(3===r.shapeType&&(n=i(r)))return n}},n=function(e){var t,r,n;for(t=0;t<e.length;t++)if(r=e[t],7===r.shapeType){if(o(r.shapeData&&r.shapeData.sp))return r.shapeData.sp}else if(3===r.shapeType&&(n=i(r.shapeData.grpSp)))return n},a=this,l=a.Ne,s=l.sheets&&l.sheets[e];return s&&s.shapes&&n(s.shapes)},e.prototype.Jg=function(e,t){var r,o,i,n=this,a=n.Ne,l=a.sheets&&a.sheets[t];for(l.sparklineGroups=e,r=0;r<e.length;r++)for(o=e[r].sparklines,i=0;i<o.length;i++)o[i].row>=l.rowCount&&(l.rowCount=o[i].row+1),o[i].col>=l.columnCount&&(l.columnCount=o[i].col+1)},e.prototype.Kg=function(e,t){var r,o,i,a,l,s,c,d,u,f,b,h=this,p=h.Ne,m=p.sheets&&p.sheets[t];for(m.tables=e,r=0;r<e.length;r++){e[r].row+e[r].rowCount>m.rowCount&&(m.rowCount=e[r].row+e[r].rowCount),e[r].col+e[r].colCount>m.columnCount&&(m.columnCount=e[r].col+e[r].colCount),o=m.data&&m.data.dataTable,i=e[r],a=m.data&&m.data.defaultDataNode&&m.data.defaultDataNode.style&&m.data.defaultDataNode.style.font;for(l in i.style)i.style.hasOwnProperty(l)&&i.style[l]&&i.style[l].font&&(i.style[l].font=n.ConverterHelper.composeFontWeightAndFontStyleToDestFont(i.style[l].font,a));for(s={},c=i.row+i.rowCount,d=i.col+i.colCount,u=i.row;u<c;u++)for(f=i.col;f<d;f++)o[u]&&o[u][f]&&(b=o[u][f].style,O(s,b)?o[u][f].style=s[b]:H(h,p,o,u,f,s))}},e.prototype.Lg=function(e,t,r,i){var n=this.Ne.sheets[e],a,l=[],s=0,c;if(n&&n.data&&n.data.dataTable&&(a=n.data.dataTable))for(;i>0&&s<t.rowCount;)a[t.row+s]&&(c=a[t.row+s][r],o.J(c.value)||(l.push(c.value),i--)),s++;return l},e.prototype.Mg=function(e,t){var r,i,a,l,s,c,d,u=this;if(!o.J(e)&&!o.J(e.range))return r={},r.filterItemMap=[],r.filteredColumns=[],i=e.range,i=new o.Range(i.row+1,i.col,i.rowCount-1,i.colCount),r.range=i,e.filterColumns.forEach(function(e){var n,a=e.autoFilterColumnId+i.col,l=[],s=!1,c=e.colorFilter;c&&(l.push(w(c,u.hf[c.dxfId])),s=!0),n=e.filters,n&&(n.blank&&n.filter.push(""),n.filter.forEach(function(e){l.push(C(2,0,e,n.blank))}),n.dateGroupItem.forEach(function(e){var t=new Date(e.year,e.month>0?e.month-1:e.month,e.day,e.hour,e.minute,e.second);l.push(C(5,0,t,!n.blank))}),s=!0),e.customFilters&&(l.push(T(e.customFilters,o.J(t)?i:u.Lg(t,i,a,1))),s=!0),e.dynamicFilter&&(l.push(k(e.dynamicFilter,i,a)),s=!0),e.top10Filter&&(l.push(R(e.top10Filter)),s=!0),s&&(r.filteredColumns.push(a),r.filterItemMap.push({index:a,conditions:l}))}),a=e.sortInfo,a&&a.dxfId===h?r.sortInfo=a:a&&a.dxfId!==h&&(l=void 0,s=e.sortInfo.isBackColor,c=u.hf[a.dxfId]&&u.hf[a.dxfId].fill,c&&(0===c.patternType?l="":(d={},n.ConverterHelper.Ie(c,d),l="object"==typeof d.backColor?JSON.stringify(d.backColor):d.backColor)),r.sortInfo={ascending:a.ascending,index:a.index,isBackColor:s,color:l}),r},e.prototype.Ng=function(e,t){if(!o.J(e)){var r={};return r.filterItemMap=[],e.filterColumns.forEach(function(e){var o=[],i=e.filters;i&&(i.filter.forEach(function(e){o.push(C(t.conType,0,e,i.blank))}),i.dateGroupItem.forEach(function(e){var r=new Date(e.year,e.month>0?e.month-1:e.month,e.day,e.hour,e.minute,e.second);o.push(C(t.conType,0,r,!i.blank))})),e.customFilters&&o.push(v(e.customFilters,t)),e.dynamicFilter&&o.push(F(e.dynamicFilter,t)),e.top10Filter&&o.push(E(e.top10Filter,t)),r.filterItemMap.push({conditions:o})}),r}},e.prototype.Og=function(e,t){if(!o.J(e)){var r=this,i=r.Ne,n=i.sheets&&i.sheets[e];n.rowFilter=r.Mg(t,e),i.allowAutoExtendFilterRange=!0}},e.prototype.Pg=function(e,t){var r,o,i,n,l,s=this,c=s.Ne,d=c.sheets&&c.sheets[t];d.slicers=d.slicers||[],r=d.slicers,o=[];for(i in c.sheets)c.sheets[i].tables&&(o=o.concat(c.sheets[i].tables));n=[];for(l in c.sheets)c.sheets[l].pivotTables&&(n=n.concat(c.sheets[l].pivotTables));e.forEach(function(e){"pivot"===e.type||"timeline"===e.type?e.pivotName=P(e.pivotCacheId,n,c.pivotCaches):(e.tableName=D(e.tableId,o),e.columnName=B(e.tableId,e.columnId,o),delete e.tableId,delete e.columnId),a.inflateWorksheetByAnchor(d,e),r.push(e)})},e.prototype.Qg=function(e,t){var r,i,n,a,l;o.J(e)||(r=this,i=r.Ne,n=i.sheets&&i.sheets[e],a=r.Rg(t),l=n.validations,l||(l=n.validations=[]),a.ranges=W(t.ranges,", "),l.push(a))},e.prototype.Rg=function(e){var t,r,i,n,a,l,s,c;if(o.J(e))return b;switch(t=e.type,r=e.compareOperator,i=e.firstFormula,n=e.secondFormula,a={type:t},t){case 0:break;case 1:case 2:case 6:l={operator:r,value1:I(i),value2:I(n)};break;case 3:s=i,o.J(s)&&(s=n),s&&(l='"'===s[0]&&'"'===s[s.length-1]?{value:L(s)}:{formula:I(s)});break;case 4:case 5:c=void 0,o.J(i)||(c=parseFloat(i),isNaN(c)||(i=this.hg(c))),o.J(n)||(c=parseFloat(n),isNaN(c)||(n=this.hg(c))),l={operator:r,value1:i&&i.indexOf("/OADate(")!==-1?i:I(i),value2:n&&n.indexOf("/OADate(")!==-1?n:I(n)};break;case 7:l={formula:I(i)}}return l&&(a.validatorInfo=l),a!==b&&(a.errorStyle=e.errorType,a.errorMessage=e.error,a.errorTitle=e.errorTitle,a.ignoreBlank=e.allowBlank,a.inCellDropdown=e.showPromptBox,a.inputMessage=e.prompt,a.inputTitle=e.promptTitle,a.showErrorMessage=e.showErrorMessage,a.showInputMessage=e.showInputMessage),a},e.prototype.Sg=function(e,t){var r,i,n,a;function l(e){return e=e||0,parseInt(Math.round(100*e),10)}o.J(e)||(r=this,i=r.Ne,n=i.sheets&&i.sheets[e],n.printInfo||(n.printInfo={}),a=n.printInfo,a.margin={top:l(t.top),bottom:l(t.bottom),left:l(t.left),right:l(t.right),header:l(t.header),footer:l(t.footer)})},e.prototype.Tg=function(e,t){var r,i,n,a,l,s,c,d;o.J(e)||(r=this,i=r.Ne,n=i.sheets&&i.sheets[e],n.printInfo||(n.printInfo={}),a=n.printInfo,a.showGridLine=t.printGridLine,l=t.horizontalCentered,s=t.verticalCentered,c=0,l&&s?c=3:l?c=1:s&&(c=2),a.centering=c,d=t.printRowColumnsHeaders?2:1,a.showColumnHeader=d,a.showRowHeader=d)},e.prototype.Ug=function(e,t,r){e.rows||(e.rows=[]);var o=e.rows[t];o?o.pageBreak=r:e.rows[t]={pageBreak:r}},e.prototype.Vg=function(e,t,r){e.columns||(e.columns=[]);var o=e.columns[t];o?o.pageBreak=r:e.columns[t]={pageBreak:r}},e.prototype.Wg=function(e,t){var r,i,n,a,l,s,c,d,u,f,p,m,g,y,S;function C(e){var t,r,o,i,n;if(e===h)return b;if(t=["","",""],e===b||""===e)return t;for(r=0,o=1,i=e.length;r<i;){if(r<i-1){if(n=e.substr(r,2),"&L"===n){o=0,r+=2;continue}if("&C"===n){o=1,r+=2;continue}if("&R"===n){o=2,r+=2;continue}}t[o]=t[o].concat(e[r]),r++}return t}o.J(e)||(r=this,i=r.Ne,n=i.sheets&&i.sheets[e],n.printInfo||(n.printInfo={}),a=n.printInfo,l=t.paperSizeIndex,0!==l&&(a.paperSize={kind:l}),t.useCustomStartingPage&&(a.firstPageNumber=t.firstPageNumber),o.J(t.showColor)||(a.blackAndWhite=!t.showColor),a.orientation=2===t.orientation?2:1,a.pageOrder=2===t.pageOrder?2:1,t.zoomFactor>0&&(a.zoomFactor=t.zoomFactor),t.useSmartPrint&&(t.smartPrintPagesWidth>=1&&(a.fitPagesWide=t.smartPrintPagesWidth),t.smartPrintPagesHeight>=1&&(a.fitPagesTall=t.smartPrintPagesHeight)),s=t.advancedHeadFooterSetting,s&&(c=a.pageHeaderFooter={},a.differentOddAndEvenPages=s.headerFooterDifferentOddEvenPages,a.differentFirstPage=s.headerFooterDifferentFirstPage,d=C(s.headerOddPage),d&&(s.headerFooterDifferentOddEvenPages?c.odd={header:{left:d[0],center:d[1],right:d[2],leftImage:s.headerLeftImage,centerImage:s.headerCenterImage,rightImage:s.headerRightImage}}:c.normal={header:{left:d[0],center:d[1],right:d[2],leftImage:s.headerLeftImage,centerImage:s.headerCenterImage,rightImage:s.headerRightImage}},a.headerLeft=d[0],a.headerCenter=d[1],a.headerRight=d[2]),u=C(s.footerOddPage),u&&(s.headerFooterDifferentOddEvenPages?(c.odd=c.odd||{},c.odd.footer={left:u[0],center:u[1],right:u[2],leftImage:s.footerLeftImage,centerImage:s.footerCenterImage,rightImage:s.footerRightImage}):(c.normal=c.normal||{},c.normal.footer={left:u[0],center:u[1],right:u[2],leftImage:s.footerLeftImage,centerImage:s.footerCenterImage,rightImage:s.footerRightImage}),a.footerLeft=u[0],a.footerCenter=u[1],a.footerRight=u[2]),f=C(s.headerEvenPage),f&&(c.even={header:{left:f[0],center:f[1],right:f[2],leftImage:s.evenHeaderLeftImage,centerImage:s.evenHeaderCenterImage,rightImage:s.evenHeaderRightImage}}),p=C(s.footerEvenPage),p&&(c.even=c.even||{},c.even.footer={left:p[0],center:p[1],right:p[2],leftImage:s.evenFooterLeftImage,centerImage:s.evenFooterCenterImage,rightImage:s.evenFooterRightImage}),m=C(s.headerFirstPage),m&&(c.first={header:{left:m[0],center:m[1],right:m[2],leftImage:s.firstHeaderLeftImage,centerImage:s.firstHeaderCenterImage,rightImage:s.firstHeaderRightImage}}),g=C(s.footerFirstPage),g&&(c.first=c.first||{},c.first.footer={left:g[0],center:g[1],right:g[2],leftImage:s.firstFooterLeftImage,centerImage:s.firstFooterCenterImage,rightImage:s.firstFooterRightImage}),s.headerLeftImage&&(a.headerLeftImage=s.headerLeftImage),s.headerCenterImage&&(a.headerCenterImage=s.headerCenterImage),s.headerRightImage&&(a.headerRightImage=s.headerRightImage),s.footerLeftImage&&(a.footerLeftImage=s.footerLeftImage),s.footerCenterImage&&(a.footerCenterImage=s.footerCenterImage),s.footerRightImage&&(a.footerRightImage=s.footerRightImage)),y=t.rowBreakLines,y&&y.length>0&&y.forEach(function(e){r.Ug(n,e,!0)}),S=t.columnBreakLines,S&&S.length>0&&S.forEach(function(e){r.Vg(n,e,!0)}))},e.prototype.Xg=function(e,t){var r,o,i,n;e<0||(r=this,o=r.Yg(e),o.printInfo||(o.printInfo={}),i=s.getRangesFromString(t),1===i.length&&(n=i[0],n.row>-1&&(o.printInfo.rowStart=n.row),n.rowCount>0&&(o.printInfo.rowEnd=n.row+n.rowCount-1),n.col>-1&&(o.printInfo.columnStart=n.col),n.colCount>0&&(o.printInfo.columnEnd=n.col+n.colCount-1)))},e.prototype.Zg=function(e,t){var r,i,n,a,l;if(!(e<0))for(r=this,i=r.Yg(e),i.printInfo||(i.printInfo={}),n=s.getRangesFromString(t.replace(","," ")),a=0;a<n.length;a++)l=n[a],o.isRangeWholeRow(l)?(i.printInfo.repeatRowStart=l.row,i.printInfo.repeatRowEnd=l.row+l.rowCount-1):o.isRangeWholeColumn(l)&&(i.printInfo.repeatColumnStart=l.col,i.printInfo.repeatColumnEnd=l.col+l.colCount-1)},e.prototype.Yg=function(e){var t,r,o=this.Ne.sheets;for(t in o)if(o.hasOwnProperty(t)&&(r=o[t],r.index===e))return r;return h},e.prototype.$g=function(e){this._g=e,this.ah={},this.bh={}},e.prototype.dh=function(e,t){var r,o,i,n,a,l,s,c,d,u,b,h,p,m,g=this._g,y=+t-1;if(g&&("cm"===e?(r=g.cellMetadata,o=this.ah):"vm"===e&&(r=g.valueMetadata,o=this.bh)),r){if(i=[e,y].join(","),n=o[i])return n;if(a=U(r,y)){l=a.rc,s=l._attr,c=+s.t-1,d=+s.v;try{if(u=f(g.metadataTypes.metadataType),b=f(g.futureMetadata),h=u[c],p=h&&h._attr.name,m=G(b,p))return n={name:p,detail:U(m,d)},o[i]=n,n}catch(e){}}}},e.prototype.eh=function(e){var t=this.dh("cm",e);return t&&"XLDAPR"===t.name},e.prototype.fh=function(e,t){var r=this;o.J(r.Ne.docProps)&&(r.Ne.docProps={}),o.J(r.Ne.docProps.docPropsCore)&&(r.Ne.docProps.docPropsCore={}),r.Ne.docProps.docPropsCore[e]=t},e.prototype.gh=function(e,t){var r=this;o.J(r.Ne.docProps)&&(r.Ne.docProps={}),o.J(r.Ne.docProps.docPropsApp)&&(r.Ne.docProps.docPropsApp={}),r.Ne.docProps.docPropsApp[e]=t},e.prototype.hh=function(e){var t=this;o.J(t.Ne.docProps)&&(t.Ne.docProps={}),o.J(t.Ne.docProps.docPropsCustom)&&(t.Ne.docProps.docPropsCustom=[]),t.Ne.docProps.docPropsCustom=e},e}(),t.ReaderDataModel=y},"./src/datamodel/datamodel-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S,C,w,x,A;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/datamodel/excel-style.ts"),a=r("./src/common/excel-types.ts"),l=r("./src/datamodel/excel-helper.ts"),s=r("./src/common/tuple.ts"),c=r("./src/datamodel/datetime-helper.ts"),d=r("./src/excel-io.ts"),u=n.ColorHelper.fromColorToExcelColor,f=n.ColorHelper.toExcelColor,b=o.Util.sa,h=o.Util.ta,p=void 0,m=null,g="__builtInStyle",y="__builtInValidatorStyle",S="__builtInTableStyle",C=/^(__builtInTableStyle\d+)?__builtInStyle\d+$/,w=/^__builtInTableStyle\d+__builtInStyle\d+$/;function T(e){return"string"==typeof e}function v(e){return"string"==typeof e||!e}function k(e){return"object"==typeof e}function F(e){return e.substring(0,19)===S}function R(e){return e.substring(0,23)===y}function E(e){var t=e.formula;return o.J(t)&&(t=e.expected,T(t)&&(t='"'+t+'"')),t}function I(e){var t,r,o;return T(e)&&(t=e.indexOf("/OADate(")+1,r=e.indexOf(")"),0!==t&&r>t&&(o=parseFloat(e.substring(t+7,r)),isNaN(o)||(e=""+o))),e}function L(e,t,r){var o,i=e.tables||[];return i.every(function(e){return!(e.row<=t&&t<=e.row+e.rowCount-1&&e.col<=r&&r<=e.col+e.colCount-1)||(o=e,!1)}),o}function D(e,t,r){var o,i=e.spans||[];return i.every(function(e){return!(e.row<=t&&t<=e.row+e.rowCount-1&&e.col<=r&&r<=e.col+e.colCount-1)||(o=e,!1)}),o}function B(e,t){var r,o=e.spans||[];for(r=0;r<o.length;r++)if(t.row===o[r].row&&t.col===o[r].col){o.splice(r,1);break}}function P(e){if("/OADate("===e.substr(0,8)){var t=parseFloat(e.substr(8,e.length-10));return c.DateTimeHelper.Je(t)}}function W(e,t,r){e.ih||(e.ih={}),e.ih[t]=r}function _(e){return e.defaults?e.defaults.rowHeight:i.DefaultSize.Ab}function N(e){return e.defaults?e.defaults.colWidth:i.DefaultSize.zb}function M(e,t,r){var o=e.data.dataTable[t];if(o&&o[r])return o[r].value}function O(e,t,r){void 0===r&&(r=0);var i=t.row,n=t.col,a=t.rowCount,l=t.colCount;return i===-1&&(i=r,a=e.rowCount),n===-1&&(n=0,l=e.columnCount),i<=0?i=0:(i--,a+=1),new o.Range(i,n,a,l)}t.getFilterRange=O;function H(e){return o.J(e)?e:e.length>=2&&"="===e[0]?e.substring(1):"="===e?"":e}function G(e,t,r,i){var n,a,l;if(1===r.colCount){for(n=[],l=r.row;l<r.row+r.rowCount;l++)a=M(e,l,r.col),o.J(a)||n.push(a);return n.sort(function(e,t){return i?t-e:e-t}),n[t-1]}}function U(e,t,r){var i,n={filterType:1};if(n.isBottom=1===t.type,t.percent&&(n.percent=!0),i=t.expected,!o.J(i))return n.value=i,n.percent&&(i=Math.ceil(r.rowCount%i/100)),o.J(r)?n.filterValue=NaN:n.filterValue=G(e,i,r,!n.isBottom),n}function J(e){var t,r={filterType:1};return r.isBottom=e.type===-1,r.percent=1===e.compareType,t=e.expected,o.J(t)||(r.value=t,r.filterValue=t),r}function z(e,t,r){var o,i,n,a,l={filterType:2};if(0===t.type?l.type=100:1===t.type&&(l.type=101),r===m)return m;for(o=0,i=0,n=0;n<r.rowCount;n++)a=parseFloat(M(e,r.row+n,r.col)),isNaN(a)||(o+=a,i++);return i>0&&(l.value=o/i),l}function V(e){var t=new Date,r=t.getDay(),o=t.getDate(),i=new Date(t),n=new Date(t);switch(e){case 3:i.setDate(o-6);break;case 1:i.setDate(o-1);break;case 0:break;case 2:i.setDate(o+1);break;case 8:i.setDate(o-r-7),n.setDate(o-r-1);break;case 7:i.setDate(o-r),n.setDate(o-r+6);break;case 9:i.setDate(o-r+7),n.setDate(o-r+13);break;case 5:i.setDate(1),i.setMonth(i.getMonth()-1),n.setDate(0);break;case 4:i.setDate(1),n.setMonth(n.getMonth()+1),n.setDate(0);break;case 6:i.setDate(1),i.setMonth(i.getMonth()+1),n.setMonth(n.getMonth()+2),n.setDate(0)}return i.setHours(0),i.setMinutes(0),i.setSeconds(0),n.setHours(23),n.setMinutes(59),n.setSeconds(59),{from:i,to:n}}function j(e){var t,r,o,i,n,a,l=new Date,s=l.getDay(),d=l.getDate(),u=new Date(l),f=new Date(l);switch(e){case 11:u.setDate(d-6);break;case 9:u.setDate(d-1);break;case 8:break;case 10:u.setDate(d+1);break;case 16:u.setDate(d-s-7),f.setDate(d-s-1);break;case 15:u.setDate(d-s),f.setDate(d-s+6);break;case 17:u.setDate(d-s+7),f.setDate(d-s+13);break;case 13:u.setDate(1),u.setMonth(u.getMonth()-1),f.setDate(0);break;case 12:u.setDate(1),f.setMonth(f.getMonth()+1),f.setDate(0);break;case 14:u.setDate(1),u.setMonth(u.getMonth()+1),f.setMonth(f.getMonth()+2),f.setDate(0);break;case 18:t=u.getMonth()-u.getMonth()%3+1+3,r=t+3+3,u.setDate(1),u.setMonth(t),f.setMonth(r),f.setDate(0);break;case 19:o=u.getMonth()-u.getMonth()%3+1,i=o+3,u.setDate(1),u.setMonth(o),f.setMonth(i),f.setDate(0);break;case 20:n=u.getMonth()-u.getMonth()%3+1-3,a=o+3-3,u.setDate(1),u.setMonth(n),f.setMonth(a),f.setDate(0);break;case 21:u.setDate(1),u.setMonth(1),u.setFullYear(u.getFullYear()+1),f.setFullYear(f.getFullYear()+2),f.setMonth(0),f.setDate(0);break;case 22:u.setDate(1),u.setMonth(1),f.setFullYear(f.getFullYear()+1),f.setMonth(0),f.setDate(0);break;case 23:u.setDate(1),u.setMonth(1),u.setMonth(u.getFullYear()-1),f.setMonth(0),f.setDate(0);break;case 40:u.setMonth(0,1),u.setHours(0,0,0,0),f.setHours(23,59,59,999)}return u.setHours(0),u.setMinutes(0),u.setSeconds(0),f.setHours(23),f.setMinutes(59),f.setSeconds(59),{from:c.DateTimeHelper.ig(u),to:c.DateTimeHelper.ig(f)}}function X(e){var t,r=e.expected,o={filterType:2,type:r,conType:e.conType,expectTypeId:e.expectTypeId};return r>=0&&r<=15||r>=21&&r<=32?(t=V(r),t.from&&t.to&&(o.value=t.from,o.maxValue=t.to)):o.type=-1,o}function K(e){if(!o.J(e.compareType)){var t={filterType:4};return t.filter1={},t.filter1.operator=e.compareType,o.J(e.expected)?t.filter1.value=H(e.formula):t.filter1.value=e.expected,t}}function q(e){var t,r,i,n;if(!o.J(e.compareType))return t={filterType:4},t.filter1={},r=e.compareType,i=void 0,n=void 0,6===r?(i=5,n=3,t.and=!0):(i=r,n=r),t.filter1.operator=i,e.item1&&!o.J(e.item1.expected)&&(t.filter1.value=e.item1.expected),e.item2&&!o.J(e.item2.expected)&&(t.filter2={},t.filter2.operator=n,t.filter2.value=e.item2.expected),t}function Y(e){var t=e.expected,r=-1;switch(e.compareType){case 0:return{filterType:3,filter:[t]};case 1:r=1;break;case 2:t+="*";break;case 3:r=1,t+="*";break;case 4:t="*"+t;break;case 5:r=1,t="*"+t;break;case 6:t="*"+t+"*";break;case 7:r=1,t="*"+t+"*"}return{filterType:4,filter1:{operator:r,value:t}}}function Q(e){var t,r,i;if(o.J(e.value1)?o.J(e.item1)||(t=e.item1.expected):t=e.value1,o.J(e.value2)?o.J(e.item2)||(r=e.item2.expected):r=e.value2,!r){switch(i=-1,e.compareType){case 0:return{filterType:3,filter:[t]};case 1:i=1;break;case 2:t+="*";break;case 3:i=1,t+="*";break;case 4:t="*"+t;break;case 5:i=1,t="*"+t;break;case 6:t="*"+t+"*";break;case 7:i=1,t="*"+t+"*";break;case 8:i=2;break;case 9:i=5;break;case 10:i=4;break;case 11:i=3}return{filterType:4,filter1:{operator:i,value:t}}}return 12===e.compareType?{filterType:4,filter1:{operator:3,value:t},filter2:{operator:5,value:r}}:13===e.compareType?{filterType:4,filter1:{operator:4,value:t},filter2:{operator:2,value:r}}:void 0}function Z(e,t){var r;r="/OADate"===e.expected.substring(0,7)?P(e.expected):new Date(e.expected),t.dateGroupItem=t.dateGroupItem||[],t.dateGroupItem.push({year:r.getFullYear(),month:r.getMonth()+1,day:r.getDate(),hour:r.getHours(),minute:r.getMinutes(),second:r.getSeconds(),dateTimeGrouping:2})}function $(e,t){var r,i,n,a=o.J(e.compareType)?e.operator:e.compareType;if(a>=8&&a<=23||40===a)r={filterType:2,type:t},i=j(a),i.from&&i.to&&(r.value=i.from,r.maxValue=i.to);else if(a>=24&&a<=39)r={filterType:2,type:t};else if(a>=0&&a<=7)return n=q(e),e.isWholeDay&&(n.isWholeDay=e.isWholeDay),n;return r}t.getPivotDateFilter=$;function ee(e){var t,r,o;if(0===e.compareType)return t={filterType:3},Z(e,t),t;switch(r=-1,e.compareType){case 0:break;case 1:r=1;break;case 2:r=4;break;case 3:r=5;break;case 4:r=2;break;case 5:r=3}return r!==-1?(o=E(e),o=I(o),{filterType:4,filter1:{operator:r,value:o}}):void 0}function te(e){var t,r,i=[],n=[];for(n.push(e);n.length>0;)t=n.shift(),0===t.conType?(r=t,o.J(r.item1)||n.push(r.item1),o.J(r.item2)||n.push(r.item2)):i.push(t);return i}function re(e){var t=-1;switch(e){case 0:case 2:case 4:case 6:t=0;break;case 1:case 3:case 5:case 7:t=1;break;default:t=0}return t}function oe(e,t){switch(t){case 0:case 1:return e;case 2:case 3:return e.concat("*");case 4:case 5:return"*".concat(e);case 6:case 7:return"*".concat(e).concat("*");default:return e}}function ie(e){var t={filterType:3,filter:[]};return e.forEach(function(e){o.J(e.expected)||t.filter.push(e.expected)}),t}function ne(e,t){return e.every(function(e){return e.conType===t})}function ae(e,t,r){var i,n,a,l,s,c,d,u,f,b,h,p,g;if(0===e.compareType){if(i=te(e),ne(i,5))return n={filterType:3},i.forEach(function(e){Z(e,n)}),n;if(ne(i,2)){if(s=!1,i.length<=2)for(c=0;c<i.length;c++)if(0!==i[c].compareType){s=!0;break}return s?(l={filterType:4},d=i[0],a=re(d.compareType),l.filter1={},l.filter1.operator=a,o.J(d.expected)?l.filter1.value=H(d.formula):l.filter1.value=oe(d.expected,d.compareType),2===i.length&&(d=i[1],a=re(d.compareType),l.filter2={},l.filter2.operator=a,o.J(d.expected)?l.filter2.value=H(d.formula):l.filter2.value=oe(d.expected,d.compareType)),l.and=!1,l):ie(i)}if(ne(i,11)){if(u=!0,i.length<=2&&(u=!1),u)return ie(i);if(i.length>0)return f=i[0],l={filterType:4,filter1:{operator:f.compareType}},o.J(f.expected)?l.filter1.value=H(f.formula):l.filter1.value=f.expected,2===i.length&&(f=i[1],l.filter2={operator:f.compareType},o.J(f.expected)?l.filter2.value=H(f.formula):l.filter2.value=f.expected),l.and=!1,l}return l={filterType:4,and:!1},b=le(t,i[0],r),l.filter1=b.filter1,i.length>1&&(h=le(t,i[1],r),l.filter2=h.filter1),l}if(i=te(e),2===i.length)return l={filterType:4},l.and=!0,p=le(t,i[0],r),o.J(p)||!p.filter1?m:(l.filter1=p.filter1,g=le(t,i[1],r),o.J(g)||!g.filter1?m:(l.filter2=g.filter1,l))}function le(e,t,r){if(e===m)return m;var o=t.conType;if(3===o);else{if(8===o)return U(e,t,r);if(10===o)return z(e,t,r);if(6===o)return X(t);if(11===o||1===o)return K(t);if(2===o)return Y(t);if(5===o)return ee(t);if(0===o)return ae(t,e,r)}}function se(e,t){var r=e.conType;return 3===r?J(e):2===r?q(e):0===r?Q(e):1===r?$(e,t):void 0}function ce(e){var t,r,i;return o.J(e)?m:(t=m,r=m,i=0,i=1===e.compareType?6:7,e.item1&&(t=0===e.item1.conType?ce(e.item1):de(e.item1)),e.item2&&(r=0===e.item2.conType?ce(e.item2):de(e.item2)),new s.Tuple(t,r,i))}function de(e){if(!o.J(e)){var t=e.conType,r,i;return 0===t?ce(e):1===t||7===t?(r=e.compareType,i=e.formula,o.J(i)&&(i=e.expected),new s.Tuple(i,m,r)):4===t?new s.Tuple(o.J(e.formula)?e.expected:e.formula,m,1):12===t||5===t||13===t?(i=E(e),new s.Tuple(i,m,1)):m}}function ue(e){if(e instanceof s.Tuple){var t=e;if(!o.J(t.item1))return ue(t.item1)}else if(!o.J(e))return H(""+e);return""}function fe(e,t,r){var i,n,a,l,s;return o.J(e)?m:(i=de(e.condition),n=m,a=m,o.J(i)||(o.J(i.item1)||(n=ue(i.item1)),o.J(i.item2)||(a=ue(i.item2))),l={},(h(n,t,r)||h(a,t,r))&&(l.external=!0),s=e.type,l.type=s,l.firstFormula=n,l.secondFormula=a,4!==s&&5!==s||(o.J(l.firstFormula)||(l.firstFormula=I(l.firstFormula)),o.J(l.secondFormula)||(l.secondFormula=I(l.secondFormula))),l.compareOperator=e.comparisonOperator,l.allowBlank=e.ignoreBlank,l.error=e.errorMessage,l.errorTitle=e.errorTitle,l.errorStyle=e.errorStyle,l.prompt=e.inputMessage,l.showPromptBox=e.inCellDropdown,l.promptTitle=e.inputTitle,l.showErrorBox=e.showErrorMessage,l.showInputMessage=e.showInputMessage,l)}function be(e,t,r){if(r.ih&&r.ih[e])return r.ih[e];var i=o.ga._(r.namedStyles,e);return i?(W(r,e,i),i):t.ih&&t.ih[e]?t.ih[e]:(i=o.ga._(t.namedStyles,e),i&&W(t,e,i),i)}function he(e,t,r,o){e.forEach(function(e){var i=fe(e,r,o);i.ranges=e.ranges.split(", ").join(" "),t.push(i)})}x={empty:0,thin:1,medium:2,dashed:3,dotted:4,thick:5,double:6,hair:7,mediumDashed:8,dashDot:9,mediumDashDot:10,dashDotDot:11,mediumDashDotDot:12,slantedDashDot:13};function pe(e){if(e){var t={};return e.borderColor&&(t.color=e.borderColor),e.borderStyle&&(t.style=x[e.borderStyle]),t}}function me(e,t){var r,o;if(e){for(r in e)e.hasOwnProperty(r)&&r.indexOf("border")>=0&&(o=e[r],o&&(e[r]=pe(o)));return t&&(e.isSlicerHeader=!0),e}}function ge(e){var t,r,i=e.sheets;if(i)for(t in i)i.hasOwnProperty(t)&&(r=i[t],r.defaults=r.defaults||o.Ea())}function ye(e){var t,r;if(o.J(e)||!Array.isArray(e))return m;for(t=[],r=0;r<e.length;r++)t.push(e[r].text?e[r].text:"");return t.join("")}function Se(e,t){var r=null;return t.forEach(function(t){t.name===e&&(r=t.id)}),r}function Ce(e,t,r){for(var o=0;o<e.styleElements.length;o++)e.styleElements[o].type===t&&(e.styleElements[o].size=r)}function we(e,t){return b(e,t,l.isBorderEqual)}function xe(e,t){return e[t.name]&&b(e[t.name],t,we)}function Ae(e,t){for(var r=t,o=1;e[r];)r=t+"_"+o,o++;return r}function Te(e,t){var r=t;return null!==e&&void 0!==e&&(r=e),(r/100).toFixed(2)}function ve(e){var t,r=e.names;if(r)for(t=0;t<r.length;t++)if("@"===r[t].name){r.splice(t,1);break}}function ke(e){var t,r,o,i,n,a=e.jh;if(a&&a.dataSourceOption&&a.dataSourceOption.schema&&a.dataSourceOption.schema.hierarchy)for(t=a.dataSourceOption.schema.hierarchy,r=a.views.filter(function(t){return t.name===e.addition.dataView.name})[0],o=r.columns,i=0;i<o.length;i++)if(n=o[i],n.outlineColumn||n.value===t.outlineColumn||t.outlineColumn&&n.value===t.outlineColumn.value)return!0}function Fe(e){var t,r,i,n,a,l,s,c,d,u,f,b,h=e.colHeaderRowCount||1;if(e.rowCount+=h,t=e.data,ke(e)){for(r=0;r<h;r++)e.rowOutlines.items.unshift(p);for(i=e.rowOutlines.itemsData,r=0;r<i.length;r++)n=i[r],n.index+=h}for(a=t.dataTable,a||(a=t.dataTable={}),l=e.rowCount-h;l>=0;l--)a[l+h]=a[l];for(s=e.colHeaderData.dataTable,l=0;l<h;l++)a[l]=s&&s[l]||{};if(c=e.colHeaderRowInfos,d=e.defaults&&e.defaults.colHeaderRowHeight,!o.J(d))for(c||(c=[]),l=0;l<h;l++)c[l]?o.J(c[l].size)&&(c[l].size=d):c[l]={size:d};if(c&&c.length>0)for(u=e.rows,u||(e.rows=[]),l=0;l<c.length;l++)e.rows.splice(l,0,c[l]);for(f=t.rowDataArray,f||(f=t.rowDataArray={}),l=e.rowCount-h;l>=0;l--)f[l+h]=f[l];for(b=e.colHeaderData.rowDataArray,l=0;l<h;l++)f[l]=b&&b[l]||{};e.frozenRowCount>0&&(e.frozenRowCount+=h,e.topCellIndex+=h)}function Re(e){var t,r,o,i,n,a=e.colHeaderRowCount||1,l=[],s=e.data,c=s.dataTable,d=c[a-1];if(e.columnCount=e.columnCount||e.columns&&e.columns.length||0,0!==e.rowCount&&0!==e.columnCount){if(d)for(t=0;t<e.columnCount;t++)r={id:t+1},o=d[t],r.name=o&&o.value||"Column"+(t+1),l.push(r);for(i={},t=l.length-1;t>=0;t--)n=l[t],i[n.name]?n.name=n.name+" "+t:i[n.name]=!0;e.tables=[{name:e.name,row:a-1,col:0,rowCount:e.rowCount,colCount:e.columnCount,rowFilter:{range:{row:a,col:0,rowCount:e.rowCount-1,colCount:e.columnCount},showFilterButton:!0},columns:l}]}}function Ee(e,t){var r=e;return r.length>255?r=r.slice(-240):(r=t+" "+r,r.length>250&&(r=e+" "+Math.random().toString(36).slice(-6))),r}function Ie(e){Fe(e),delete e.rowFilter,Re(e)}function Le(e,t){var r,i,a,l,s;o.J(e.numberFormat)||(r=e.numberFormat,i={},a=n.ExtendedNumberFormatHelper.getFormatId(r),l=a.id,s=a.isBuiltIn,s?(i.numberFormatIndex=l,e.numberFormatId=l):(i.numberFormat=new n.ExcelNumerFormat(l,r),e.numberFormatId=i.numberFormat.numberFormatId),t.push(i))}function De(e,t){var r={name:e};return l.getPictureInfo(t,r),r}function Be(e,t,r){var i=m,n=p,a=!1;return o.J(e)||(k(e)?Array.isArray(e)?i=e.join(","):(n=e.richText,n?i=ye(n):o.J(e._code)||(i=e),a=e._code>=99,a&&r<3&&(r=t?2:3)):(i=e,t&&r<1&&(r=1))),{value:i,richText:n,isSpillError:a,dynamicArrayLevel:r}}function Pe(e){return e&&"'"===e[0]&&"'"===e[e.length-1]&&(e=e.substring(1,e.length-1)),e}A=function(){function e(e){var t=this;t.kh(e),t.Ne=e,t.lh={},t.mh=[],t.nh={},t.oh=[],t.ph={},t.qh=[],t.rh={},t.sh={},t.af=[],t.th=[],t.uh={},t.vh={},t.wh={},t.xh={},t.yh={},t.Ah={},t.Bh={},t.hf=[],t.Ch=[],t.Dh=[],t.Eh=e.allowDynamicArray?1:0,t.Fh={},t.Gh={},t.Hh={},t.Ih=[]}return e.prototype.kh=function(e){var t,r,o,i,n,a,l,s,c,d=e.sheetCount||0;if(e.sheetCount=d+(e.sheetTabCount||0),t=e.activeSheetIndex,r=e.activeSheetTabIndex,(void 0===t||t<0)&&void 0!==r&&r>=0&&(e.activeSheetIndex=d+r),o=e.sheetTabs){i=function(t){if(o.hasOwnProperty(t)){var r=o[t];e.dataManager&&e.dataManager.tables&&r.addition&&r.addition.dataView&&r.addition.dataView.tableName&&(r.jh=e.dataManager.tables.filter(function(e){return e.name===r.addition.dataView.tableName})[0]),Ie(r),ve(r)}};for(n in o)i(n);if(a=e.sheets){for(l in o)o.hasOwnProperty(l)&&(a[l]=o[l]);for(s in a)a.hasOwnProperty(s)&&(c=a[s],"number"==typeof c.order&&(c.index=c.order))}else e.sheets=o}void 0===e.startSheetIndex&&(e.startSheetIndex=0)},e.prototype.$e=function(){var e=n.DefaultStyle.Jh(this.Ne);this.lh.Normal=0,this.af.push(e),this.th.push(e),this.vh[e.name]=this.af.length-1},e.prototype.Kh=function(e){var t=e.index;this.uh[t]||(this.uh[t]={}),this.wh[t]||(this.wh[t]={}),this.xh[t]||(this.xh[t]={}),this.yh[t]||(this.yh[t]={}),this.Ah[t]||(this.Ah[t]={})},e.prototype.Lh=function(e,t){var r,i,n,l,s,c,d,u;if(!e||!t)return!1;if(r=!0,!o.StringEx.L(t.fileName)&&(i=this.Mh(t.fileType),!o.StringEx.L(i))){for(n=new a.OverrideContentType,n.partName=t.fileName,n.contentType=i,l=!1,s=0,c=e.length;s<c;s++)if(d=e[s],d instanceof a.OverrideContentType&&d.contentType===n.contentType&&d.partName===n.partName){l=!0;break}l||e.push(n)}if(t.relationFiles&&t.relationFiles.count>0)for(u in t.relationFiles)t.relationFiles.hasOwnProperty(u)&&"count"!==u&&(r=r&&this.Lh(e,t.relationFiles[u]));return r},e.prototype.Mh=function(e){if(o.StringEx.L(e))return"";switch(e){case i.RelationshipConstants.Sa:return i.XFileConstants.Ib;case i.RelationshipConstants.Pa:return i.XFileConstants.Jb;case i.RelationshipConstants.Ua:return i.XFileConstants.Kb;case i.RelationshipConstants.Na:return i.XFileConstants.Lb;case i.RelationshipConstants.Ra:return i.XFileConstants.Mb;case i.RelationshipConstants.Za:return i.XFileConstants.Ob;case i.RelationshipConstants.$a:return i.XFileConstants.Pb;case i.RelationshipConstants._a:return i.XFileConstants._b;case i.RelationshipConstants.eb:return i.XFileConstants.Qb;case i.RelationshipConstants.jb:return i.XFileConstants.fc;case i.RelationshipConstants.kb:return i.XFileConstants.gc;case i.RelationshipConstants.lb:return i.XFileConstants.Rb;case i.RelationshipConstants.mb:return i.XFileConstants.Sb;case i.RelationshipConstants.pb:return i.XFileConstants.Ub;case i.RelationshipConstants.qb:return i.XFileConstants.Tb;case i.RelationshipConstants.ob:return i.XFileConstants.Vb;case i.RelationshipConstants.sb:return i.XFileConstants.fe;case i.RelationshipConstants.Ka:return i.XFileConstants.se;case i.RelationshipConstants.La:return i.XFileConstants.ve;case i.RelationshipConstants.Ma:return i.XFileConstants.ye;case i.RelationshipConstants.Wa:return i.XFileConstants.cc;case i.RelationshipConstants.Xa:return i.XFileConstants.dc;case i.RelationshipConstants.Ya:return i.XFileConstants.ec;case i.RelationshipConstants.bb:return i.XFileConstants.lc;case i.RelationshipConstants.ub:return i.XFileConstants.ic;case i.RelationshipConstants.tb:return i.XFileConstants.hc;default:return""}},e.prototype.Nh=function(e,t,r,o,i){var n,a,s,c,d,u,f,b,h,p,m,y,C,w=this,x=w.Ne,A=x.namedStyles;for(n=0;n<e.length;n++)if(a=e[n])for(s=a.row,c=a.col,d=a.rowCount,u=a.colCount,f=0;f<d;f++)if(b=t[s+f])for(h=0;h<u;h++)if(p=b[c+h],p&&p.style){if("string"==typeof p.style){if(i[p.style]){p.style=i[p.style];continue}p.style=r[p.style]}p.style&&(p.style=l.resetTableCellStyle(p.style,o),p.style.name&&(m=p.style.name,y=m.indexOf(g),w.Oh++,C=S+w.Oh+m.substring(y),p.style.name=C,A.push(p.style),p.style=C,i[m]=C))}},e.prototype.Ph=function(){var e,t,r=this,o=r.Ne;r.$e(),r.Qh();for(e in o.sheets)if(o.sheets.hasOwnProperty(e)){if(t=o.sheets[e],!t)continue;r.Rh(t),r.Kh(t),r.Sh(t),r.Th(t),r.Uh(t),r.Vh(t),r.Wh(t)}ge(r.Ne)},e.prototype.Xh=function(){var e=this;e.onCompleted&&e.onCompleted()},e.prototype.Wh=function(e){var t,r,o=e.conditionalFormats&&e.conditionalFormats.rules;if(o)for(t=0;t<o.length;t++)r=o[t],r.style&&(r.style.isPartFontStyle=!0,r.style.isFormatStyle=!0,r.dxfId=this.Yh(r.style));e.Zh=this.$h(e),this._h(e),this.ai(e),this.bi(e),this.ci(e)},e.prototype.Yh=function(e){var t=this,r=t.hf.indexOf(e);return r===-1&&(r=t.hf.length,t.hf.push(e)),r},e.prototype.di=function(e){var t=this,r=t.Ch.indexOf(e);return r===-1&&(r=t.Ch.length,t.Ch.push(e)),r},e.prototype.ei=function(e){var t=this,r=t.Dh.indexOf(e);return r===-1&&(r=t.Dh.length,
|
27
|
-
t.Dh.push(e)),r},e.prototype.ci=function(e){var t=this,r=e.slicers,i=t.fi();r&&r.length>0&&r.forEach(function(e){var r,n,a,l,s,c,u,f,b,h,p,m;if(e&&(r="timeline"===e.type,n=r?d.IO.timelineStyles:d.IO.slicerStyles,"string"==typeof e.style?(a=e.style.toLowerCase().replace(r?/^timeslicerstyle/:/^slicerstyle/,""),n[a]?e.style=n[a]:delete e.style):e.style instanceof Object&&(l=e.style&&e.style.name,s=l&&l.length>11&&n[l.toLowerCase().replace(r?/^timeslicerstyle/:/^slicerstyle/,"")],s&&(e.style.name="CustomSlicerStyle_"+e.name)),c=e.style,!o.J(c&&c.name))){if(u={},!xe(t.nh,c)){u={styleElements:[],name:Ae(t.nh,c.name)},c.name=u.name;for(f in c)if(c.hasOwnProperty(f)&&"name"!==f&&!o.J(c[f]))switch(f){case"headerStyle":case"wholeSlicerStyle":b={},b.type=f,b.dxfId=t.Yh(me(c[f],"headerStyle"===f)),b.tableId=Se(e.tableName,i),u.styleElements.push(b)}t.mh.push(u)}if(r){if(!xe(t.rh,c)){h={styleElements:[],name:Ae(t.rh,c.name)},c.name=u.name;for(p in c)if(c.hasOwnProperty(p)&&"name"!==p&&!o.J(c[p]))switch(p){case"selectionLabelStyle":case"timeLevelStyle":case"periodLabel1Style":case"periodLabel2Style":case"selectedTimeBlockStyle":case"unselectedTimeBlockStyle":case"selectedTimeBlockSpaceStyle":h.styleElements.push({type:p,dxfId:t.ei(me(c[p]))})}t.qh.push(h),t.rh[h.name]=c}}else if(!xe(t.ph,c)){m={styleElements:[],name:Ae(t.nh,c.name)},c.name=u.name;for(p in c)if(c.hasOwnProperty(p)&&"name"!==p&&!o.J(c[p]))switch(p){case"selectedItemWithDataStyle":case"selectedItemWithNoDataStyle":case"unSelectedItemWithDataStyle":case"unSelectedItemWithNoDataStyle":case"hoveredSelectedItemWithDataStyle":case"hoveredSelectedItemWithNoDataStyle":case"hoveredUnSelectedItemWithDataStyle":case"hoveredUnSelectedItemWithNoDataStyle":m.styleElements.push({type:p,dxfId:t.di(me(c[p]))})}t.oh.push(m),t.ph[m.name]=c}}})},e.prototype._h=function(e){var t,r,i=this;function n(e,t){var r,n,a,l,s,c,u,f,b,h;if(e&&(t?(r=e.style&&e.style.name,r&&r.length>10&&d.IO.pivotTableThemes[r.toLowerCase().replace(/^pivotstyle/,"")]&&(e.style.name="CustomPivotTableStyle_"+e.name)):"string"==typeof e.style?d.IO.tableThemes[e.style]?e.style=d.IO.tableThemes[e.style]:delete e.style:e.style instanceof Object&&(n=e.style&&e.style.name,n&&d.IO.tableThemes[n]&&(e.style.name="CustomTableStyle_"+e.name)),a=e.style,!o.J(a&&a.name))){if(xe(i.nh,a))return;l={styleElements:[]},l.name=Ae(i.nh,a.name),a.name=l.name,s=void 0,c=void 0,u=void 0,f=void 0;for(b in a)if(a.hasOwnProperty(b)&&"name"!==b&&void 0!==a[b])switch(b){case"firstRowStripSize":s=a[b];break;case"secondRowStripSize":c=a[b];break;case"firstColumnStripSize":u=a[b];break;case"secondColumnStripSize":f=a[b];break;default:h={},h.type=b,a[b].isPartFontStyle=!0,h.dxfId=i.Yh(a[b]),l.styleElements.push(h)}Ce(l,"firstRowStripStyle",s||1),Ce(l,"secondRowStripStyle",c||1),Ce(l,"firstColumnStripStyle",u||1),Ce(l,"secondColumnStripStyle",f||1),Ce(l,"firstRowStripeStyle",s||1),Ce(l,"secondRowStripeStyle",c||1),Ce(l,"firstColumnStripeStyle",u||1),Ce(l,"secondColumnStripeStyle",f||1),l.isPivot=t,i.mh.push(l),i.nh[l.name]=a}}t=e.pivotTables,t&&t.length>0&&t.forEach(function(e){return n(e,!0)}),r=e.tables,r&&r.length>0&&r.forEach(function(e){return n(e,!1)})},e.prototype.ai=function(e){var t=this,r=e.pivotTables;r&&r.length>0&&r.forEach(function(e){!o.J(e.formats)&&e.formats.length>0&&e.formats.forEach(function(e){var r,i,a,l,s;o.J(e.style)||(e.dxfId=t.Yh(e.style),e.style&&!o.J(e.style.formatter)&&(r=e.style.formatter,i={},a=n.ExtendedNumberFormatHelper.getFormatId(r),l=a.id,s=a.isBuiltIn,s?(i.numberFormatIndex=l,e.style.numberFormatId=l):(i.numberFormat=new n.ExcelNumerFormat(l,r),e.style.numberFormatId=i.numberFormat.numberFormatId),t.Ih.push(i)))}),!o.J(e.fields)&&e.fields.length>0&&e.fields.forEach(function(e){Le(e,t.Ih)}),!o.J(e.dataFields)&&e.dataFields.length>0&&e.dataFields.forEach(function(e){Le(e,t.Ih)})})},e.prototype.bi=function(e){var t,r=e.tables,o=r?r.length:0,i={};for(t=0;t<o;t++)r[t].tableSortInfo=this.gi(r[t].rowFilter);e.hi=i,e.rowFilter&&(e.rowFilter.autoFilterSortInfo=this.gi(e.rowFilter))},e.prototype.Th=function(e){var t,r=this,o=e.rows,i=_(e);for(e.rowsVisibleInfo={},t=0;t<e.rowCount;t++)e.rowsVisibleInfo[t]={},e.rowsVisibleInfo[t].size=o&&o[t]&&o[t].size||i,e.rowsVisibleInfo[t].visible=r.ii(e,t)},e.prototype.Uh=function(e){var t,r,o=e.columns,i=N(e),n=e.columnOutlines;for(e.columnVisibleInfo={},t=0;t<e.columnCount;t++)e.columnVisibleInfo[t]={},r=o&&o[t],e.columnVisibleInfo[t].size=r&&r.size||i,r&&r.visible===!1&&(e.columnVisibleInfo[t].visible=!1),l.isCollapsed(t,n)&&(e.columnVisibleInfo[t].visible=!1)},e.prototype.Rh=function(e){e.rowCount===p&&(e.rowCount=200),e.columnCount===p&&(e.columnCount=20),e.activeRow===p&&(e.activeRow=0),e.activeCol===p&&(e.activeCol=0),e.visible===p&&(e.visible=!0)},e.prototype.Vh=function(e){var t,r,o=e.index,i=this.yh[o],n=e.columnCount,a=e.data&&e.data.defaultDataNode&&e.data.defaultDataNode.style;for(t=0;t<n;t++)r=this.ji(e,-1,t),this.ki(e,i,t,r,a)},e.prototype.Sh=function(e){var t,r,i,n,l,s,c,d,u,f,b,h,g,y,S,C,w,x,A,T,v,k,F,R,E,P,W,_,N,M,O,H,G,U,J,z,V,j,X,K,q,Y,Q,Z,$,ee,te,re=this,oe=e.index,ie=e.data&&e.data.dataTable,ne=e.data&&e.data.rowDataArray,ae=e.defaultData,le=re.Eh,se=re.Hh;if(0!==e.rowCount){if(t=re.li(ie,e,ae)+1,r=re.wh[oe],i=re.xh[oe],n=re.mi(e,t),l=re.Ah[oe],s=57,c=re.ni(e),d=[],u=e.tables,!o.J(u)&&Array.isArray(u))for(f=0;f<u.length;f++)for(b=u[f],h=b.row,g=h+b.rowCount-1,y=h;y<=g;y++)d[y]||(d[y]=!0);for(S={},C=e.data&&e.data.defaultDataNode&&e.data.defaultDataNode.style,w=0;w<=c&&w>=0;w++)if(ie&&ie.hasOwnProperty(w+"")||ne&&ne[w]||d[w]||ae&&ae.hasOwnProperty(w+"")){for(x=re.ki(e,i,w,re.ji(e,w,-1),C),A=s,T=ie&&ie[w],v=ae&&ae[w],k=0;k<t&&k>=0;k++)if(F=L(e,w,k),T&&T.hasOwnProperty(k+"")||F||v&&v.hasOwnProperty(k+"")){if(R=w*t+k,E=void 0,P=void 0,W=m,_=m,N=m,M=T&&T[k],O=v&&v[k],H=p,G=!1,M&&(_=M.formula,N=M.arrayInfo,U=N&&N.isDynamicArray,J=M.value,z=Be(J,U,le),W=z.value,H=z.richText,G=z.isSpillError,le=z.dynamicArrayLevel),!_&&o.J(W)&&O&&(W=Be(O.v,p,le).value),V=!1,F&&(V=!0,j=D(e,w,k),j&&B(e,j)),X=re.oi(e,w,k,r,n[k],x,C,R,W),P=X.styleName,E=X.styleInfo,V){if(F.showHeader!==!1&&w===F.row&&(W=F.columns[k-F.col]&&F.columns[k-F.col].name,W&&W.indexOf("\n")!==-1&&H))for(K=0;K<H.length;K++)H[K].text=o.Util.ua(H[K].text,"\r","");F.showFooter&&w===F.row+F.rowCount-1&&(q=F.columns[k-F.col],o.J(q&&q.footerValue)||(W=""+q.footerValue))}if(Y=re.pi(W,!o.J(H)),Q=Y.value,Q=I(Q),Z=Y.cellType,E||_||Q!==m||!o.StringEx.L(P)){if($=new a.ExcelCell(w,k),$.cellType=Z,$.value=Q,$.richText=H,$.isSpillError=G,$.qi=S[w+","+k],re.dg(r,R,E,P,$),re.ri(_,N,$),N&&N.isDynamicArray&&!$.isSpillError)for(ee=N.row;ee<N.row+N.rowCount;ee++)for(te=N.col;te<N.col+N.colCount;te++)S[ee+","+te]=1;re.ti(oe,w,$),re.ui($,e,w,k,se)}}l[w]=A}re.Eh=le,re.sh={}}},e.prototype.ni=function(e){var t=this.vi(e);return Math.min(e.rowCount-1,t.length>0?t.length:0)},e.prototype.ki=function(e,t,r,i,n){var a,l,s=this;return i&&(a=s.wi(e,i)),a?(a.parentName&&(a.parentName=s.xi(e,a.parentName),l=s.af[s.lh[a.parentName]],o.ga.ca(a,l)),s.yi(e,a,n),o.ga.ba(a)||(t[r]=s.zi(a),a.parentName&&s.isSameStyleInfo(s.af[s.lh[a.parentName]],a,!0)||(a.parentName=m)),i):m},e.prototype.Ai=function(){var t,r,i,n,a,l,s,c,d,u=this,f=u.Ne,b=f.sheets;for(r in b)if(b.hasOwnProperty(r)&&(i=b[r],n=i.namedStyles,n&&n.length>0)){if(!t)if(t={},f.namedStyles)for(a=f.namedStyles,l=0;l<a.length;l++)t[a[l].name]=1;else f.namedStyles=[];for(l=0;l<n.length;l++)if(s=n[l],c=s.name,!R(c)&&!F(c)&&o.J(e.Bi[c])){for(d=s.name;t[d]||d.length>255;)d=Ee(d,i.name);s.name=d,f.namedStyles.push(s),t[d]=1,c!==d&&(i.renamedStyles=i.renamedStyles||{},i.renamedStyles[c]=d)}}},e.prototype.Ci=function(){var t,r,o,i,n,a=this,l=a.Ne,s=l.namedStyles,c={},d={};a.Oh=0,t=e.Jh(l),s?s.forEach(function(e){var t,r,o,i;e&&(t=e.name,c[t]=e,t&&w.test(t)&&(r=19,o=t.indexOf(g),i=parseInt(t.substring(r,o),10),a.Oh=Math.max(i,a.Oh)))}):l.namedStyles=[];for(r in l.sheets)if(l.sheets.hasOwnProperty(r)){if(o=l.sheets[r],!o||!o.data||!o.data.dataTable)continue;if(i=o.tables,n=o.data.dataTable,!i||i.length<=0)continue;a.Nh(i,n,c,t,d)}},e.prototype.Qh=function(){var e,t,r,i,a,l,s,c,d,u,f,b,h,m,g=this,y=g.Ne,S={},C=[];for(S.Normal={},g.Ai(),g.Ci(),g.Di(y.namedStyles,S,C),t=0,r=g.th.length;t<r;t++)e=g.th[t],e&&e.parentName&&o.ga.da(g.th,e);for(i={},a=[],l={},t=0,r=C.length;t<r;t++)s=C[t],c=n.ConverterHelper.toStringStyle(s),i[c]===p?a.push(s):l[s.name]=C[i[c]].name,i[c]=t,s.Ei=c;for(d={},t=0,r=g.af.length;t<r;t++)e=g.af[t],u=n.ConverterHelper.cloneSpreadJSStyle(e),u.parentName=e.name,u.name=p,d[t]=g.lh[e.name]=g.af.length,g.af.push(u),f=n.ConverterHelper.toStringStyle(e),i[f]!==p&&(b=C[i[f]],b&&(g.lh[b.name]=g.lh[e.name],b.added=!0));for(Object.keys(g.vh).forEach(function(e){g.lh[e]===p&&(g.lh[e]=d[g.vh[e]])}),h=o.ga._(y.namedStyles,"Normal"),m=n.ConverterHelper.toStringStyle(h),t=0,r=a.length;t<r;t++)s=a[t],s.added||(s.Ei===m?g.lh[s.name]=0:(g.lh[s.name]=g.af.length,g.af.push(s)));Object.keys(l).forEach(function(e){g.lh[e]=g.lh[l[e]]})},e.prototype.isSameStyleInfo=function(e,t,r,o){if(!e&&!t)return!0;if(!e||!t)return!1;var i,a;return e.Fi||(e.Fi={Gi:n.ConverterHelper.toExtendedFormat(e,this)}),i=e.Fi.Gi,t.Fi||(t.Fi={Gi:n.ConverterHelper.toExtendedFormat(t,this)}),a=t.Fi.Gi,i.equals(a,r,o)},e.prototype.getEqualStyle=function(e,t){var r,o;for(r=0;r<t.length;r++)if(o=t[r],this.isSameStyleInfo(e,o,!0,!0))return o;return m},e.prototype.Di=function(t,r,o){var i,n,a,l,s,c;function d(e){var t,r,o="",i=Object.getOwnPropertyNames(e);for(t=0;t<i.length;t++)r=i[t],k(e[r])?o+=r+":"+JSON.stringify(e[r])+"_":"name"!==r&&(o+=r+":"+e[r]+"_");return o}if(t)for(i={},n=0,a=t.length;n<a;n++)l=t[n],s=l.name,r[s]||(r[s]={},R(s)||F(s)||(s.indexOf(g)>=0?o.push(l):(c=d(l),i.hasOwnProperty(c)?this.vh[l.name]=i[c]:(this.af.push(l),this.th.push(l),this.vh[l.name]=this.af.length-1,e.Bi[l.name]||(i[c]=this.af.length-1)))))},e.prototype.ji=function(e,t,r){var o=e.data,i=m;return o?(t<0&&r>=0?i=o.columnDataArray&&o.columnDataArray[r]?o.columnDataArray[r].style:m:t>=0&&r<0?i=o.rowDataArray&&o.rowDataArray[t]?o.rowDataArray[t].style:m:t>=0&&r>=0&&(i=o.dataTable&&o.dataTable[t]&&o.dataTable[t][r]?e.data.dataTable[t][r].style:m),i):m},e.prototype.Hi=function(){var e,t,r,i=this.Ne,n=m;for(e in i.sheets)if(i.sheets.hasOwnProperty(e)&&(t=i.sheets[e],t&&t.theme)){n=t.theme;break}return n?T(n)?n:(r=n.name,o.StringEx.O(r)?m:("OFFICE"===r.toUpperCase()&&(r="Office Theme"),new a.ExcelTheme(r,this.Ii(n),this.Ji(n)))):m},e.prototype.Ii=function(e){var t=[];return t.push(u(e.themeColor.background1)),t.push(u(e.themeColor.text1)),t.push(u(e.themeColor.background2)),t.push(u(e.themeColor.text2)),t.push(u(e.themeColor.accent1)),t.push(u(e.themeColor.accent2)),t.push(u(e.themeColor.accent3)),t.push(u(e.themeColor.accent4)),t.push(u(e.themeColor.accent5)),t.push(u(e.themeColor.accent6)),t.push(u(e.themeColor.hyperlink)),t.push(u(e.themeColor.followedHyperlink)),new a.ColorScheme(e.themeColor.name,t)},e.prototype.Ji=function(e){var t=Pe(e.headingFont),r=Pe(e.bodyFont),o=new a.ThemeFonts([new a.RunFormatting(0,t)],[]),i=new a.ThemeFonts([new a.RunFormatting(0,r)],[]);return new a.FontScheme(e.name,o,i)},e.prototype.Ki=function(e){return e=Math.min(e,i.ExcelConstants.vb-1),o.IndexHelper.T(e)},e.prototype.Li=function(e,t){var r,o=[],n=new i.DefaultContentType;return n.extension=i.XFileConstants.Eb,n.contentType=i.XFileConstants.Fb,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Gb,n.contentType=i.XFileConstants.Hb,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.nc,n.contentType=i.XFileConstants.pc,o.push(n),t&&(n=new i.DefaultContentType,n.extension=i.XFileConstants.oc,n.contentType=i.XFileConstants.kc,o.push(n)),n=new i.DefaultContentType,n.extension=i.XFileConstants.qc,n.contentType=i.XFileConstants.sc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.tc,n.contentType=i.XFileConstants.uc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.vc,n.contentType=i.XFileConstants.wc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.zc,n.contentType=i.XFileConstants.Ac,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Bc,n.contentType=i.XFileConstants.Cc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Dc,n.contentType=i.XFileConstants.Ec,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.xc,n.contentType=i.XFileConstants.yc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Fc,n.contentType=i.XFileConstants.Gc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Hc,n.contentType=i.XFileConstants.Ic,o.push(n),r=this.Lh(o,e),r?o:m},e.prototype.Mi=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return this.uh[r.index]},e.prototype.Ni=function(e){var t,r,i=this,n=[],l=i.Ne,s=l.sheets&&l.sheets[e],c=i.vi(s),d=Math.min(s.rowCount-1,c.length),u=i.Oi(s.rowOutlines);for(t=0;t<=d;t++)c[t]?(r=i.Pi(s,t,u),(r||r.collapsed||!o.J(r.outLineLevel)&&0!==r.outLineLevel||r.visible===!1||r.formatId>=0)&&(r.customHeight=!isNaN(r.height),n.push(r))):s.rowFilter&&i.Qi(s.rowFilter,t)&&(r=new a.ExcelRow(t),r.visible=!1,n.push(r));return n},e.prototype.Qi=function(e,t){var r,o,i,n=!1;if(e&&(r=e.filteredOutRows))for(o=0;o<r.length;o++)if(i=r[o],t===i){n=!0;break}return n},e.prototype.ii=function(e,t){var r=e.rows,o=e.rowOutlines;return(!r||!r[t]||r[t].visible!==!1)&&!l.isCollapsed(t,o)},e.prototype.Pi=function(e,t,r){var i,l,s=this,c=new a.ExcelRow(t),d=e.rowOutlines,u=e.rows&&e.rows[t];return c.height=n.UnitHelper.pixelToPoint(u&&void 0!==u.size?u.size:_(e)),r>=0&&(c.collapsed=this.Ri(t,d),i=this.Si(t,d),c.outLineLevel=i===-1?0:i),t<e.rowCount&&(c.visible=s.ii(e,t)),o.J(this.xh[e.index])||(l=this.xh[e.index][t],c.formatId=o.J(l)?-1:l),c},e.prototype.vi=function(e){var t,r,o,i,n,a,l,s,c,d,u,f,b,h,p=this.Bh[e.index];if(void 0!==p)return p;if(p=[],t=e.rows,r=e.data&&e.data.rowDataArray,o=e.data&&e.data.dataTable,i=e.defaultData,t)for(n=0,a=t.length;n<a;n++)t[n]&&(p[n]=!0);if(r)for(n=0,a=r.length;n<a;n++)r[n]&&(p[n]=!0);if(o)for(l in o)o[l]&&o.hasOwnProperty(l)&&(p[l]=!0);if(i)for(l in i)i[l]&&i.hasOwnProperty(l)&&(p[l]=!0);if(s=e.tables,s&&s.forEach(function(e){var t,r=e.row,o=e.row+e.rowCount;for(t=r;t<o;t++)p[t]=!0}),c=e.spans)for(a=c.length,d=0;d<a;d++)for(u=c[d],f=u.row;f<u.row+u.rowCount;f++)p[f]=!0;if(b=e.rowOutlines&&e.rowOutlines.itemsData)for(n=0,a=b.length;n<a;n++)for(h=b[n],l=h.index;l<h.index+h.count;l++)p[l]=!0;return this.Bh[e.index]=p,p},e.prototype.Ti=function(e){var t,r,o=[],i=this.Ne,n=i.sheets&&i.sheets[e],a=this.Oi(n.columnOutlines),l=n.columnCount;for(t=0;t<l;t++)r=this.Ui(n,t,a),r&&(Math.abs(r.width-this.Vi(e))>1e-4||r.collapsed||void 0!==r.outLineLevel&&r.outLineLevel!==m&&0!==r.outLineLevel||r.visible===!1||r.formatId>=0)&&o.push(r);return o},e.prototype.Si=function(e,t){var r,o,i,n;if(!t||!t.itemsData)return 0;for(r=t.itemsData,o=0,i=r.length;o<i;o++)if(n=r[o],e>=n.index&&e<n.index+n.count)return n.info?n.info.level+1:1;return 0},e.prototype.Ri=function(e,t){var r,o,i,n;if(!t||!t.itemsData)return!1;for(r=t.itemsData,o=0,i=r.length;o<i;o++)if(n=r[o],e>=n.index&&e<n.index+n.count)return!!n.info&&!!n.info.collapsed;return!1},e.prototype.Ui=function(e,t,r){var i,n,s=new a.ExcelColumn(t),c=e.columnOutlines,d=e.columns&&e.columns[t];return s.width=this.calcColumnWidth(d&&void 0!==d.size?d.size:N(e)),r>=0&&t<e.columnCount&&(s.collapsed=this.Ri(t,c),i=this.Si(t,c),s.outLineLevel=i===-1?0:i),t<e.columnCount&&(d&&d.visible===!1&&(s.visible=!1),l.isCollapsed(t,c)&&(s.visible=!1)),o.J(this.yh[e.index])||(n=this.yh[e.index][t],s.formatId=o.J(n)?-1:n),s},e.prototype.Oi=function(e){var t,r,o,i;if(!e||!e.itemsData)return-1;for(t=-1,r=0,o=e.itemsData.length;r<o;r++)i=e.itemsData[r],i.info&&i.info.level>t&&(t=i.info.level);return t},e.prototype.Wi=function(e){var t,r,o=this.Ne,i=o.sheets&&o.sheets[e],n=0,a=0,l=-1,s=i.rowOutlines;return s&&(l=this.Oi(s)),l!==-1&&(n=l+2),t=-1,r=i.columnOutlines,r&&(t=this.Oi(r)),t!==-1&&(a=t+2),{outlineLevelRow:n,outlineLevelColumn:a}},e.prototype.Xi=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o=n.UnitHelper.pixelToPoint(r.defaults?r.defaults.rowHeight:_(r)),i=!1,a=57;return i=Math.abs(a-o)>=2,{height:o,customHeight:i}},e.prototype.Vi=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return this.calcColumnWidth(r.defaults?r.defaults.colWidth:N(r))},e.prototype.Yi=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e];if(o.defaults&&o.defaults.colWidth&&o.defaults._isExcelDefaultColumnWidth!==!0)return t=o.defaults?o.defaults.colWidth:N(o),this.calcColumnWidth(t)},e.prototype.calcColumnWidth=function(t){var r,o,i;return 0===t?0:(r=e.Jh(this.Ne),o=Math.round(this.Zi(r.fontForColumnWidth?r.fontForColumnWidth:r.font)),i=Math.floor((t-5)/o*100+.5)/100,Math.floor((i*o+5)/o*256)/256)},e.prototype.Zi=function(e){return this.Rf===p&&(this.Rf=n.UnitHelper.getMaxiumDigitWidth(e)),this.Rf},e.prototype.$i=function(e,t,r,n){var a,l,s,c,d,u,f,b=this.Ne,h=b.sheets&&b.sheets[e];if(!h)return!1;if(a=h.frozenRowCount,l=h.frozenColCount,r.col=h.activeCol>=0?h.activeCol:0,r.row=h.activeRow>=0?h.activeRow:0,s=a>0,c=l>0,0===n){if(!s||!c)return!1}else if(1===n){if(!c)return!1;s&&(r.col=l,r.row=0)}else if(2===n){if(!s)return!1;c&&(r.col=0,r.row=a)}if(r.col=Math.min(i.ExcelConstants.vb,r.col),r.row=Math.min(i.ExcelConstants.wb,r.row),t)if(d=void 0,h.selections)for(u=0;u<h.selections.length;u++)f=h.selections[u],k(f)&&(d=new o.Range(f.row>0?f.row:0,f.col>0?f.col:0,f.rowCount>0?f.rowCount:i.ExcelConstants.wb,f.colCount>0?f.colCount:i.ExcelConstants.vb),t.push(d));else t.push(new o.Range(r.row,r.col,1,1));return!0},e.prototype.ti=function(e,t,r){o.J(this.uh[e][t])&&(this.uh[e][t]=[]),this.uh[e][t].push(r)},e.prototype._i=function(e,t){var r,o,i;if(T(e)&&"/OADate"===e.substring(0,7)&&t&&!t.formatter){if(t.autoFormatter)return void(t.formatter=t.autoFormatter.formatCached);r=e.indexOf("("),o=e.indexOf(")"),r!==-1&&o!==-1&&(i=parseInt(e.substring(r+1,o),10),i<1?t.formatter="h:mm:ss":i>1&&(t.formatter="M/d/yyyy"))}},e.prototype.dg=function(e,t,r,i,n){var a;o.StringEx.L(i)?r&&(a=e[t]):a=this.lh[i],void 0!==a?n.formatId=a:n.formatId=-1},e.prototype.ri=function(e,t,r){o.StringEx.O(e)||(r.formula=e,r.arrayFormulaRange=t)},e.prototype.ui=function(e,t,r,i,n){var a,l,s,c,d,u,f,b;if(t.data&&t.data.dataTable&&t.data.dataTable[r]&&(a=t.data.dataTable[r][i]&&t.data.dataTable[r][i].hyperlink)){if(l={},s=this.aj(t.name),c=!1,s)for(d=0;d<s.length;d++)if(u=s[d],u.row===r&&u.col===i){l.ref=o.IndexHelper.T(u.col)+(u.row+1)+":"+o.IndexHelper.T(u.col+u.colCount-1)+(u.row+u.rowCount),c=!0;break}c||(l.ref=o.IndexHelper.T(i)+(r+1)),f="sjs://",a.url&&(a.url.substring(0,f.length)===f?(l.location=o.Util.oa(a.url.replace(f,"")),b=t.data.dataTable[r][i].value,"string"==typeof b&&(l.display=o.Util.oa(b))):l.url=o.Util.oa(a.url)),a.tooltip&&(l.tooltip=o.Util.oa(a.tooltip)),l["xr:uid"]=o.Ha(),n[t.name]||(n[t.name]=[]),n[t.name].push(l)}},e.prototype.pi=function(e,t){var r=0;if(o.J(e))e=m;else{if(e._error||e._calcError)return r=7,{value:e._error||e._calcError,cellType:r};"number"==typeof e?(r=1,isNaN(e)&&(e=0)):"boolean"==typeof e?r=5:T(e)&&"/OADate"===e.substring(0,7)?r=6:t?r=9:T(e)?r=2:(r=2,e=""+e)}return{value:e,cellType:r}},e.prototype.wi=function(e,t){var r,o,i=this;return k(t)?n.ConverterHelper.cloneSpreadJSStyle(t):T(t)?C.test(t)?(r=t.indexOf(g),o=i.xi(e,t.substring(r)),n.ConverterHelper.cloneSpreadJSStyle(i.af[i.lh[o]])):{parentName:t}:void 0},e.prototype.bj=function(e){var t=this;return e&&t.af[t.lh[e]]},e.prototype.yi=function(e,t,r){var i,n=this;r&&(r=n.wi(e,r),o.ga.ca(t,r,!0),r&&r.parentName&&(r.parentName=n.xi(e,r.parentName),i=n.af[n.lh[r.parentName]],o.ga.ca(t,i)))},e.prototype.cj=function(e,t){o.J(t.linkColor)?(t.linkColor!==p||!e.foreColor&&e.foreColor!==m)&&(e.foreColor="hyperlink"):e.foreColor=t.linkColor,o.J(e.textDecoration)?e.textDecoration=1:1!==(1&e.textDecoration)&&(e.textDecoration+=1)},e.prototype.xi=function(e,t){return e.renamedStyles&&e.renamedStyles[t]&&(t=e.renamedStyles[t]),t},e.prototype.oi=function(e,t,r,i,n,a,l,s,c){var d,u,f=this,b=e.data,h=f.ji(e,t,r),g=m,y=m,S=b&&b.dataTable&&b.dataTable[t]&&b.dataTable[t][r]&&b.dataTable[t][r].hyperlink,C=S||T(c)&&"/OADate"===c.substring(0,7)||c!==m&&void 0!==c&&(n||a),w=p;return v(h)&&v(a)&&v(n)&&!C&&(w=""+h+"|"+n+"|"+a),w&&f.sh[w]?(i[s]=f.sh[w].styleIndex,f.sh[w]):(h?g=f.wi(e,h):C&&(g={}),g&&(g.parentName&&(g.parentName=f.xi(e,g.parentName),d=f.af[f.lh[g.parentName]]||f.af[f.vh[g.parentName]],o.ga.ca(g,d)),f.yi(e,g,a),f.yi(e,g,n),f.yi(e,g,l),S&&f.cj(g,S),f._i(c,g),o.ga.ba(g)?g=m:(u=i[s]=f.zi(g),g.parentName&&f.isSameStyleInfo(f.af[f.lh[g.parentName]],g,!0)&&(y=g.parentName),g.name&&f.isSameStyleInfo(f.af[f.lh[g.name]],g,!0)&&(y=g.name),w&&(f.sh[w]={styleIndex:u,styleName:y,styleInfo:g}))),{styleName:y,styleInfo:g})},e.prototype.zi=function(e){var t,r=this.af;if(!e)return 0;for(t=r.length-1;t>=0;t--)if((!r[t].name||r[t].name.indexOf(g)>=0)&&o.ga.fa(r[t],e))return t;return e.name=p,r.push(e),r.length-1},e.prototype.dj=function(e){var t,r;if(!e)return 0;t=0;for(r in e)e.hasOwnProperty(r)&&parseInt(r,10)>t&&(t=parseInt(r,10));return t},e.prototype.li=function(e,t,r){var o,i,n,a=0;if(e)for(o in e)if(e.hasOwnProperty(o))for(i in e[o])parseInt(i,10)>a&&(a=parseInt(i,10));if(r)for(o in r)if(r.hasOwnProperty(o))for(i in r[o])parseInt(i,10)>a&&(a=parseInt(i,10));return n=t.tables,n&&n.forEach(function(e){e.col+e.colCount>a&&(a=e.col+e.colCount)}),a},e.prototype.ej=function(e,t,r){for(r++;r>=0&&r<t&&!e[r];)r++;return r<t?r:-1},e.prototype.fj=function(e,t,r,o,i){var n=m;if(o>=0&&o<t&&(n=e[o]),!n)return-1;for(i++;i>=0&&i<r&&!n[i];)i++;return i<r?i:-1},e.prototype.mi=function(e,t){var r,o,i=[],n=e.columnCount;if(!e.data||!e.data.columnDataArray)return i;for(r=0;r<t;r++)r<n?(o=this.ji(e,-1,r),i.push(o)):i.push(m);return i},e.prototype.gj=function(){var e,t,r,o,i,a,l=this,s=[],c={count:0};for(e=0,t=l.af.length;e<t;e++)r=l.af[e],o=n.ConverterHelper.toExtendedFormat(r,l),r.name&&r.name.indexOf(g)<0?(c[r.name]||(c[r.name]=c.count,c.count++),o.isStyleFormat=!0):(i=0,void 0!==c[r.parentName]&&c[r.parentName]!==m&&(i=c[r.parentName],a=s[i],!o.applyNumberFormat&&a&&(a.numberFormat?o.numberFormat=a.numberFormat:void 0!==a.numberFormatIndex&&(o.numberFormatIndex=a.numberFormatIndex))),o.parentFormatID=i),s.push(o);return s},e.prototype.hj=function(){var t=n.ConverterHelper.cloneSpreadJSStyle(e.Jh(this.Ne)),r=n.ConverterHelper.toExtendedFormat(t,this);return r.parentFormatID=0,r},e.prototype.ij=function(){var t,r,o,i,a,l,s,c=this,d=[],u=m;for(t=0,r=c.th.length;t<r;t++)if(o=c.th[t],"Normal"===o.name){i=new n.ExcelStyle,i.name="Normal",i.format(n.ConverterHelper.toExtendedFormat(o,c)),i.format().isStyleFormat=!0,i.builtInStyle=0,u=i,c.Ke=o;break}for(u||(a=new n.ExcelStyle,a.name="Normal",a.format(n.ConverterHelper.toExtendedFormat(e.Jh(this.Ne),c)),a.format().font.fontSize=14.67,a.format().isStyleFormat=!0,a.builtInStyle=0,d.push(a)),t=0,r=c.th.length;t<r;t++)l=c.th[t],l.name&&(void 0!==e.Bi[l.name]?(i=new n.ExcelStyle,i.name=l.name,i.format(n.ConverterHelper.toExtendedFormat(l,c)),i.format().isStyleFormat=!0,i.builtInStyle=e.Bi[l.name],("RowLevel_"===l.name.substring(0,9)||"ColLevel_"===l.name.substring(0,9))&&l.name.length>9&&(i.outLineLevel=parseInt(l.name.substring(9),10)-1),d.push(i)):(s=new n.CustomExcelStyle,s.name=l.name,s.format(n.ConverterHelper.toExtendedFormat(l,c)),s.format().isStyleFormat=!0,d.push(s)));return d},e.prototype.jj=function(){var e,t,r=[],o=this.Ne.sheets;for(e in o)o.hasOwnProperty(e)&&(t=o[e],r[t.index]=e);return r},e.prototype.kj=function(e){return this.Ne.sheets[e]},e.prototype.lj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?{colsSumRight:!(r.columnOutlines&&0===r.columnOutlines.direction),rowsSumBelow:!(r.rowOutlines&&0===r.rowOutlines.direction)}:{}},e.prototype.mj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?f(r.sheetTabColor):m},e.prototype.nj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?{rowCount:r.rowCount,columnCount:r.columnCount}:{}},e.prototype.oj=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e],i={showGridLine:!0,showRowColHeaders:!0,gridlineColor:m,zoom:1};return o?(!o.gridline||o.gridline.showVerticalGridline!==!1&&o.gridline.showHorizontalGridline!==!1||(i.showGridLine=!1),o.rowHeaderVisible===!1&&o.colHeaderVisible===!1&&(i.showRowColHeaders=!1),o.gridline&&o.gridline.color&&(i.gridlineColor=n.ColorHelper.toExcelIndexedColor(f(o.gridline.color,4291876837))),void 0!==o.topCellIndex&&void 0!==o.leftCellIndex&&(t={row:o.topCellIndex,col:o.leftCellIndex},i.topLeftCell=t),i.zoom=o.zoomFactor,i):i},e.prototype.pj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o={frozenRowCount:0,frozenColCount:0,frozenTopRow:0,frozenLeftCol:0};return r?(o.frozenRowCount=r.frozenRowCount||0,o.frozenColCount=r.frozenColCount||0,o.frozenTopRow=r.frozenTopRow||0,o.frozenLeftCol=r.frozenLeftCol||0,o):o},e.prototype.qj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return!!r&&r.isProtected},e.prototype.rj=function(e,t){var r,o,i=this.Ne,n=i.sheets&&i.sheets[e],a=n.protectionOptions,s={};for(o in a)a.hasOwnProperty(o)&&(r=a[o],r&&"allowSelectLockedCells"===o||r&&"allowSelectUnlockedCells"===o||r&&"allowEditObjects"===o||(s[l.fromProtectionOptions[o]?l.fromProtectionOptions[o]:o]=a[o]));return t&&!a&&(s.objects=!1),s},e.prototype.aj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?r.spans:[]},e.prototype.sj=function(){var e=this.Ne;return{showHorizontalScrollbar:e.showHorizontalScrollbar,showVerticalScrollbar:e.showVerticalScrollbar,tabStripVisible:e.tabStripVisible,tabStripRatio:e.tabStripRatio,startSheetIndex:e.startSheetIndex,activeSheetIndex:e.activeSheetIndex}},e.prototype.tj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return!r||0===r.visible},e.prototype.uj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return!r||2===r.visible},e.prototype.vj=function(){var e,t,r,o,i,n=[];if(this.Ne.names)for(t=0;t<this.Ne.names.length;t++)e=this.Ne.names[t],n.push({name:e.name,localSheetId:-1,formula:e.formula,comment:e.comment});r=this.Ne.sheets;for(o in r)if(r.hasOwnProperty(o)&&(i=r[o],i.names))for(t=0;t<i.names.length;t++)e=i.names[t],n.push({name:e.name,localSheetId:i.index,formula:e.formula,comment:e.comment});return n},e.prototype.xg=function(e){var t=this,r=t.Ne.sheets&&t.Ne.sheets[e];return r.conditionalFormats},e.Jh=function(e){var t,r,i,n,a,l,s={foreColor:"black",font:"normal normal normal 11pt/normal Calibri",locked:!0,name:"Normal",textDecoration:0,hAlign:3,vAlign:0};for(t in e.sheets)if(e.sheets.hasOwnProperty(t)&&(r=e.sheets[t],r.data&&r.data.defaultDataNode&&r.data.defaultDataNode.style)){for(i=r.data.defaultDataNode.style,n=this.prototype.wi(r,i),a=n.parentName;a&&(l=be(a,e,r));)o.ga.ca(n,l),a=l.parentName;return o.ga.ca(n,s),n}return s},e.prototype.wj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r.comments&&r.comments.map(function(e){return l.convertToExcelComment(r,e)})},e.prototype.xj=function(e){var t,r=[],o=this.Ne;if(e)return o.sheets[e].pivotTables;for(t in o.sheets)o.sheets[t].pivotTables&&(r=r.concat(o.sheets[t].pivotTables));return r},e.prototype.yj=function(e){return e.floatingObjects&&e.floatingObjects.filter(function(e){return"1"===e.typeName&&e.src&&e.src.indexOf(";base64,")!==-1}).map(function(t){return l.convertToExcelPicture(e,t)})},e.prototype.zj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r.sparklineGroups},e.prototype.$h=function(e){var t,r,o,i=e.rowFilter,a=this;if(i)return t=[],r=i.filteredColumns,o=i.filterItemMap,o&&r&&r.length>0&&o.forEach(function(o){var l,s;r.indexOf(o.index)<0||(l=o.conditions[0],3===l.conType&&(s=0===l.compareType,t.push({autoFilterColumnId:o.index-O(e,i.range).col,colorFilter:{cellColor:s,dxfId:a.Yh({isColorFilter:!0,fill:n.ColorHelper.toExcelBackColor(l.expected,s)})}})))}),t},e.prototype.gi=function(e){var t,r,i=m;return e&&(t=e.sortInfo,!t||o.J(t.ascending)||o.J(t.index)||(i={range:new o.Range(e.range.row,t.index,e.range.rowCount,1),descending:!t.ascending},t.color!==p&&(r=t.isBackColor,i.isBackColor=r,"{"===t.color[0]&&(t.color=JSON.parse(t.color)),i.dxfid=this.Yh({isColorFilter:!0,fill:n.ColorHelper.toExcelBackColor(t.color,r)})))),i},e.prototype.Aj=function(e,t){var r=e.autoFilter,i={range:"A1",filterColumns:[]},n=r.filterItemMap;return n&&n.forEach(function(e){var r,n,a,l,s;e&&(r=e.conditions,n=r[0],a={autoFilterColumnId:0},l=se(n,t),o.J(l)||(s=l.filterType,1===s?a.top10=l:2===s?a.dynamicFilter=l:4===s?a.customFilters=l:3===s&&(a.filters=l),i.filterColumns.push(a)))}),i},e.prototype.Bj=function(e,t,r){var i,n,a,l,s,c,d,u,f,b,h,p,g,y,S,C,w,x,A,T,v,k,F=this,R=F.Ne,E=R.sheets&&R.sheets[e];if(o.J(t)||o.J(t.range))return m;if(i=t.range,n=t.adjustRangeForFrozen?E.frozenRowCount:0,a={range:O(E,i,n),filterColumns:[]},E.Zh&&E.Zh.length>0&&(a.filterColumns=E.Zh),l=t.filteredColumns,s=t.filterItemMap,s&&l&&l.length>0&&s.forEach(function(e){var t,r,n,s,c,d;if(!(e.index<i.col||e.index>=i.col+i.colCount||l.indexOf(e.index)<0)){for(t=e.conditions,r=t[0],n=1;n<t.length;n++)r={conType:0,compareType:0,item1:r,item2:t[n]};r&&(s={autoFilterColumnId:e.index-a.range.col},c=le(E,r,new o.Range(a.range.row+1,a.range.col,a.range.rowCount-1,1)),o.J(c)||(d=c.filterType,1===d?s.top10=c:2===d?s.dynamicFilter=c:3===d?s.filters=c:4===d&&(s.customFilters=c),a.filterColumns.push(s)))}}),c=F.aj(e),c&&c.length>0){for(d=i.row-1,u=i.col,f=i.colCount,b=a.filterColumns.length>0,h=[],p=0,g=c;p<g.length;p++)if(y=g[p],S=y.row,C=y.rowCount,w=y.col,x=y.colCount,w>=u&&w+x<=f&&(d===S||d===S+C-1))for(A=w;A<w+x-1;A++)T=A-u,b?(v=a.filterColumns[A],v&&v.autoFilterColumnId===T?v.showButton=0:(k={autoFilterColumnId:T,showButton:0},h.push(k))):(k={autoFilterColumnId:T,showButton:0},h.push(k));h.length>0&&(a.filterColumns=a.filterColumns.concat(h))}return a.sortInfo=r,a},e.prototype.Cj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o=m;return r.rowFilter&&(o=r.rowFilter.autoFilterSortInfo),this.Bj(e,r.rowFilter,o)},e.prototype.fi=function(e){var t,r=[],o=this.Ne;if(e)return o.sheets[e].tables;for(t in o.sheets)o.sheets[t].tables&&(r=r.concat(o.sheets[t].tables));return r},e.prototype.Dj=function(e){var t,r,o,i=this.Ne.sheets[e];if(!i.slicers)return[];for(t=[],r=0;r<i.slicers.length;r++)o=i.slicers[r],o.type&&"table"!==o.type||t.push(l.convertToExcelSlicer(i,o));return t},e.prototype.Ej=function(e,t){var r,o,i,n=this.Ne.sheets[e];if(!n.slicers)return[];for(r=[],o=0;o<n.slicers.length;o++)i=n.slicers[o],i.type===t&&r.push(l.convertToExcelSlicer(n,i));return r},e.prototype.Fj=function(e){return e.charts&&e.charts.map(function(t){return l.convertToExcelChart(e,t)})},e.prototype.Gj=function(e){return e.shapes&&e.shapes.map(function(t){return l.convertToExcelShape(e,t)})},e.prototype.Hj=function(e){var t,r=function(e){var t=[],o=e&&e.sp||[];return o.forEach(function(e){e.control?t.push({sp:e}):3===e.shapeType&&t.push.apply(t,r(e))}),t},o=function(e){var t=[];return e.forEach(function(e){e.sp&&e.sp.control?t.push(e):e.grpSp&&t.push.apply(t,r(e.grpSp))}),t},i=o(this.Gj(e)||[]);return i.forEach(function(e){var t=e.sp.control,r=e.sp.nvSpPr.cNvPr;t.id=r.id,t.name=r.name,t.visible=!r.hidden,r.hidden=!0}),t=function(e){return e.sp.control.id},i.sort(function(e,r){return t(e)-t(r)}),i},e.prototype.Ij=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o=this.Dj(e),i=this.Ej(e,"pivot"),n=this.Ej(e,"timeline"),a=o.concat(i).concat(n),l=this.yj(r),s=this.Fj(r),c=this.Gj(r),d=this.Hj(r),u=0;return[a,l,s,c].forEach(function(e){e&&(u+=e.length)}),{slicers:a,pictures:l,charts:s,shapes:c,controlShapes:d,withDrawingObjects:u>0}},e.prototype.Jj=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e],i=[],n=o.validations;return n&&(t=this.jj(),he(n,i,e,t)),i},e.prototype.Kj=function(e){var t={top:75,bottom:75,left:70,right:70,header:30,footer:30},r=this.Ne,o=r.sheets&&r.sheets[e],i=o.printInfo,n=i&&i.margin;return n?{bottom:Te(n.bottom,t.bottom),top:Te(n.top,t.bottom),left:Te(n.left,t.bottom),right:Te(n.right,t.bottom),
|
27
|
+
t.Dh.push(e)),r},e.prototype.ci=function(e){var t=this,r=e.slicers,i=t.fi();r&&r.length>0&&r.forEach(function(e){var r,n,a,l,s,c,u,f,b,h,p,m;if(e&&(r="timeline"===e.type,n=r?d.IO.timelineStyles:d.IO.slicerStyles,"string"==typeof e.style?(a=e.style.toLowerCase().replace(r?/^timeslicerstyle/:/^slicerstyle/,""),n[a]?e.style=n[a]:delete e.style):e.style instanceof Object&&(l=e.style&&e.style.name,s=l&&l.length>11&&n[l.toLowerCase().replace(r?/^timeslicerstyle/:/^slicerstyle/,"")],s&&(e.style.name="CustomSlicerStyle_"+e.name)),c=e.style,!o.J(c&&c.name))){if(u={},!xe(t.nh,c)){u={styleElements:[],name:Ae(t.nh,c.name)},c.name=u.name;for(f in c)if(c.hasOwnProperty(f)&&"name"!==f&&!o.J(c[f]))switch(f){case"headerStyle":case"wholeSlicerStyle":b={},b.type=f,b.dxfId=t.Yh(me(c[f],"headerStyle"===f)),b.tableId=Se(e.tableName,i),u.styleElements.push(b)}t.mh.push(u)}if(r){if(!xe(t.rh,c)){h={styleElements:[],name:Ae(t.rh,c.name)},c.name=u.name;for(p in c)if(c.hasOwnProperty(p)&&"name"!==p&&!o.J(c[p]))switch(p){case"selectionLabelStyle":case"timeLevelStyle":case"periodLabel1Style":case"periodLabel2Style":case"selectedTimeBlockStyle":case"unselectedTimeBlockStyle":case"selectedTimeBlockSpaceStyle":h.styleElements.push({type:p,dxfId:t.ei(me(c[p]))})}t.qh.push(h),t.rh[h.name]=c}}else if(!xe(t.ph,c)){m={styleElements:[],name:Ae(t.nh,c.name)},c.name=u.name;for(p in c)if(c.hasOwnProperty(p)&&"name"!==p&&!o.J(c[p]))switch(p){case"selectedItemWithDataStyle":case"selectedItemWithNoDataStyle":case"unSelectedItemWithDataStyle":case"unSelectedItemWithNoDataStyle":case"hoveredSelectedItemWithDataStyle":case"hoveredSelectedItemWithNoDataStyle":case"hoveredUnSelectedItemWithDataStyle":case"hoveredUnSelectedItemWithNoDataStyle":m.styleElements.push({type:p,dxfId:t.di(me(c[p]))})}t.oh.push(m),t.ph[m.name]=c}}})},e.prototype._h=function(e){var t,r,i=this;function n(e,t){var r,n,a,l,s,c,u,f,b,h;if(e&&(t?(r=e.style&&e.style.name,r&&r.length>10&&d.IO.pivotTableThemes[r.toLowerCase().replace(/^pivotstyle/,"")]&&(e.style.name="CustomPivotTableStyle_"+e.name)):"string"==typeof e.style?d.IO.tableThemes[e.style]?e.style=d.IO.tableThemes[e.style]:delete e.style:e.style instanceof Object&&(n=e.style&&e.style.name,n&&d.IO.tableThemes[n]&&(e.style.name="CustomTableStyle_"+e.name)),a=e.style,!o.J(a&&a.name))){if(xe(i.nh,a))return;l={styleElements:[]},l.name=Ae(i.nh,a.name),a.name=l.name,s=void 0,c=void 0,u=void 0,f=void 0;for(b in a)if(a.hasOwnProperty(b)&&"name"!==b&&void 0!==a[b])switch(b){case"firstRowStripSize":s=a[b];break;case"secondRowStripSize":c=a[b];break;case"firstColumnStripSize":u=a[b];break;case"secondColumnStripSize":f=a[b];break;default:h={},h.type=b,a[b].isPartFontStyle=!0,h.dxfId=i.Yh(a[b]),l.styleElements.push(h)}Ce(l,"firstRowStripStyle",s||1),Ce(l,"secondRowStripStyle",c||1),Ce(l,"firstColumnStripStyle",u||1),Ce(l,"secondColumnStripStyle",f||1),Ce(l,"firstRowStripeStyle",s||1),Ce(l,"secondRowStripeStyle",c||1),Ce(l,"firstColumnStripeStyle",u||1),Ce(l,"secondColumnStripeStyle",f||1),l.isPivot=t,i.mh.push(l),i.nh[l.name]=a}}t=e.pivotTables,t&&t.length>0&&t.forEach(function(e){return n(e,!0)}),r=e.tables,r&&r.length>0&&r.forEach(function(e){return n(e,!1)})},e.prototype.ai=function(e){var t=this,r=e.pivotTables;r&&r.length>0&&r.forEach(function(e){!o.J(e.formats)&&e.formats.length>0&&e.formats.forEach(function(e){var r,i,a,l,s;o.J(e.style)||(e.dxfId=t.Yh(e.style),e.style&&!o.J(e.style.formatter)&&(r=e.style.formatter,i={},a=n.ExtendedNumberFormatHelper.getFormatId(r),l=a.id,s=a.isBuiltIn,s?(i.numberFormatIndex=l,e.style.numberFormatId=l):(i.numberFormat=new n.ExcelNumerFormat(l,r),e.style.numberFormatId=i.numberFormat.numberFormatId),t.Ih.push(i)))}),!o.J(e.fields)&&e.fields.length>0&&e.fields.forEach(function(e){Le(e,t.Ih)}),!o.J(e.dataFields)&&e.dataFields.length>0&&e.dataFields.forEach(function(e){Le(e,t.Ih)})})},e.prototype.bi=function(e){var t,r=e.tables,o=r?r.length:0,i={};for(t=0;t<o;t++)r[t].tableSortInfo=this.gi(r[t].rowFilter);e.hi=i,e.rowFilter&&(e.rowFilter.autoFilterSortInfo=this.gi(e.rowFilter))},e.prototype.Th=function(e){var t,r=this,o=e.rows,i=_(e);for(e.rowsVisibleInfo={},t=0;t<e.rowCount;t++)e.rowsVisibleInfo[t]={},e.rowsVisibleInfo[t].size=o&&o[t]&&o[t].size||i,e.rowsVisibleInfo[t].visible=r.ii(e,t)},e.prototype.Uh=function(e){var t,r,o=e.columns,i=N(e),n=e.columnOutlines;for(e.columnVisibleInfo={},t=0;t<e.columnCount;t++)e.columnVisibleInfo[t]={},r=o&&o[t],e.columnVisibleInfo[t].size=r&&r.size||i,r&&r.visible===!1&&(e.columnVisibleInfo[t].visible=!1),l.isCollapsed(t,n)&&(e.columnVisibleInfo[t].visible=!1)},e.prototype.Rh=function(e){e.rowCount===p&&(e.rowCount=200),e.columnCount===p&&(e.columnCount=20),e.activeRow===p&&(e.activeRow=0),e.activeCol===p&&(e.activeCol=0),e.visible===p&&(e.visible=!0)},e.prototype.Vh=function(e){var t,r,o=e.index,i=this.yh[o],n=e.columnCount,a=e.data&&e.data.defaultDataNode&&e.data.defaultDataNode.style;for(t=0;t<n;t++)r=this.ji(e,-1,t),this.ki(e,i,t,r,a)},e.prototype.Sh=function(e){var t,r,i,n,l,s,c,d,u,f,b,h,g,y,S,C,w,x,A,T,v,k,F,R,E,P,W,_,N,M,O,H,G,U,J,z,V,j,X,K,q,Y,Q,Z,$,ee,te,re=this,oe=e.index,ie=e.data&&e.data.dataTable,ne=e.data&&e.data.rowDataArray,ae=e.defaultData,le=re.Eh,se=re.Hh;if(0!==e.rowCount){if(t=re.li(ie,e,ae)+1,r=re.wh[oe],i=re.xh[oe],n=re.mi(e,t),l=re.Ah[oe],s=57,c=re.ni(e),d=[],u=e.tables,!o.J(u)&&Array.isArray(u))for(f=0;f<u.length;f++)for(b=u[f],h=b.row,g=h+b.rowCount-1,y=h;y<=g;y++)d[y]||(d[y]=!0);for(S={},C=e.data&&e.data.defaultDataNode&&e.data.defaultDataNode.style,w=0;w<=c&&w>=0;w++)if(ie&&ie.hasOwnProperty(w+"")||ne&&ne[w]||d[w]||ae&&ae.hasOwnProperty(w+"")){for(x=re.ki(e,i,w,re.ji(e,w,-1),C),A=s,T=ie&&ie[w],v=ae&&ae[w],k=0;k<t&&k>=0;k++)if(F=L(e,w,k),T&&T.hasOwnProperty(k+"")||F||v&&v.hasOwnProperty(k+"")){if(R=w*t+k,E=void 0,P=void 0,W=m,_=m,N=m,M=T&&T[k],O=v&&v[k],H=p,G=!1,M&&(_=M.formula,N=M.arrayInfo,U=N&&N.isDynamicArray,J=M.value,z=Be(J,U,le),W=z.value,H=z.richText,G=z.isSpillError,le=z.dynamicArrayLevel),!_&&o.J(W)&&O&&(W=Be(O.v,p,le).value),V=!1,F&&(V=!0,j=D(e,w,k),j&&B(e,j)),X=re.oi(e,w,k,r,n[k],x,C,R,W),P=X.styleName,E=X.styleInfo,V){if(F.showHeader!==!1&&w===F.row&&(W=F.columns[k-F.col]&&F.columns[k-F.col].name,W&&W.indexOf("\n")!==-1&&H))for(K=0;K<H.length;K++)H[K].text=o.Util.ua(H[K].text,"\r","");F.showFooter&&w===F.row+F.rowCount-1&&(q=F.columns[k-F.col],o.J(q&&q.footerValue)||(W=""+q.footerValue))}if(Y=re.pi(W,!o.J(H)),Q=Y.value,Q=I(Q),Z=Y.cellType,E||_||Q!==m||!o.StringEx.L(P)){if($=new a.ExcelCell(w,k),$.cellType=Z,$.value=Q,$.richText=H,$.isSpillError=G,$.qi=S[w+","+k],re.dg(r,R,E,P,$),re.ri(_,N,$),N&&N.isDynamicArray&&!$.isSpillError)for(ee=N.row;ee<N.row+N.rowCount;ee++)for(te=N.col;te<N.col+N.colCount;te++)S[ee+","+te]=1;re.ti(oe,w,$),re.ui($,e,w,k,se)}}l[w]=A}re.Eh=le,re.sh={}}},e.prototype.ni=function(e){var t=this.vi(e);return Math.min(e.rowCount-1,t.length>0?t.length:0)},e.prototype.ki=function(e,t,r,i,n){var a,l,s=this;return i&&(a=s.wi(e,i)),a?(a.parentName&&(a.parentName=s.xi(e,a.parentName),l=s.af[s.lh[a.parentName]],o.ga.ca(a,l)),s.yi(e,a,n),o.ga.ba(a)||(t[r]=s.zi(a),a.parentName&&s.isSameStyleInfo(s.af[s.lh[a.parentName]],a,!0)||(a.parentName=m)),i):m},e.prototype.Ai=function(){var t,r,i,n,a,l,s,c,d,u=this,f=u.Ne,b=f.sheets;for(r in b)if(b.hasOwnProperty(r)&&(i=b[r],n=i.namedStyles,n&&n.length>0)){if(!t)if(t={},f.namedStyles)for(a=f.namedStyles,l=0;l<a.length;l++)t[a[l].name]=1;else f.namedStyles=[];for(l=0;l<n.length;l++)if(s=n[l],c=s.name,!R(c)&&!F(c)&&o.J(e.Bi[c])){for(d=s.name;t[d]||d.length>255;)d=Ee(d,i.name);s.name=d,f.namedStyles.push(s),t[d]=1,c!==d&&(i.renamedStyles=i.renamedStyles||{},i.renamedStyles[c]=d)}}},e.prototype.Ci=function(){var t,r,o,i,n,a=this,l=a.Ne,s=l.namedStyles,c={},d={};a.Oh=0,t=e.Jh(l),s?s.forEach(function(e){var t,r,o,i;e&&(t=e.name,c[t]=e,t&&w.test(t)&&(r=19,o=t.indexOf(g),i=parseInt(t.substring(r,o),10),a.Oh=Math.max(i,a.Oh)))}):l.namedStyles=[];for(r in l.sheets)if(l.sheets.hasOwnProperty(r)){if(o=l.sheets[r],!o||!o.data||!o.data.dataTable)continue;if(i=o.tables,n=o.data.dataTable,!i||i.length<=0)continue;a.Nh(i,n,c,t,d)}},e.prototype.Qh=function(){var e,t,r,i,a,l,s,c,d,u,f,b,h,m,g=this,y=g.Ne,S={},C=[];for(S.Normal={},g.Ai(),g.Ci(),g.Di(y.namedStyles,S,C),t=0,r=g.th.length;t<r;t++)e=g.th[t],e&&e.parentName&&o.ga.da(g.th,e);for(i={},a=[],l={},t=0,r=C.length;t<r;t++)s=C[t],c=n.ConverterHelper.toStringStyle(s),i[c]===p?a.push(s):l[s.name]=C[i[c]].name,i[c]=t,s.Ei=c;for(d={},t=0,r=g.af.length;t<r;t++)e=g.af[t],u=n.ConverterHelper.cloneSpreadJSStyle(e),u.parentName=e.name,u.name=p,d[t]=g.lh[e.name]=g.af.length,g.af.push(u),f=n.ConverterHelper.toStringStyle(e),i[f]!==p&&(b=C[i[f]],b&&(g.lh[b.name]=g.lh[e.name],b.added=!0));for(Object.keys(g.vh).forEach(function(e){g.lh[e]===p&&(g.lh[e]=d[g.vh[e]])}),h=o.ga._(y.namedStyles,"Normal"),m=n.ConverterHelper.toStringStyle(h),t=0,r=a.length;t<r;t++)s=a[t],s.added||(s.Ei===m?g.lh[s.name]=0:(g.lh[s.name]=g.af.length,g.af.push(s)));Object.keys(l).forEach(function(e){g.lh[e]=g.lh[l[e]]})},e.prototype.isSameStyleInfo=function(e,t,r,o){if(!e&&!t)return!0;if(!e||!t)return!1;var i,a;return e.Fi||(e.Fi={Gi:n.ConverterHelper.toExtendedFormat(e,this)}),i=e.Fi.Gi,t.Fi||(t.Fi={Gi:n.ConverterHelper.toExtendedFormat(t,this)}),a=t.Fi.Gi,i.equals(a,r,o)},e.prototype.getEqualStyle=function(e,t){var r,o;for(r=0;r<t.length;r++)if(o=t[r],this.isSameStyleInfo(e,o,!0,!0))return o;return m},e.prototype.Di=function(t,r,o){var i,n,a,l,s,c;function d(e){var t,r,o="",i=Object.getOwnPropertyNames(e);for(t=0;t<i.length;t++)r=i[t],k(e[r])?o+=r+":"+JSON.stringify(e[r])+"_":"name"!==r&&(o+=r+":"+e[r]+"_");return o}if(t)for(i={},n=0,a=t.length;n<a;n++)l=t[n],s=l.name,r[s]||(r[s]={},R(s)||F(s)||(s.indexOf(g)>=0?o.push(l):(c=d(l),i.hasOwnProperty(c)?this.vh[l.name]=i[c]:(this.af.push(l),this.th.push(l),this.vh[l.name]=this.af.length-1,e.Bi[l.name]||(i[c]=this.af.length-1)))))},e.prototype.ji=function(e,t,r){var o=e.data,i=m;return o?(t<0&&r>=0?i=o.columnDataArray&&o.columnDataArray[r]?o.columnDataArray[r].style:m:t>=0&&r<0?i=o.rowDataArray&&o.rowDataArray[t]?o.rowDataArray[t].style:m:t>=0&&r>=0&&(i=o.dataTable&&o.dataTable[t]&&o.dataTable[t][r]?e.data.dataTable[t][r].style:m),i):m},e.prototype.Hi=function(){var e,t,r,i=this.Ne,n=m;for(e in i.sheets)if(i.sheets.hasOwnProperty(e)&&(t=i.sheets[e],t&&t.theme)){n=t.theme;break}return n?T(n)?n:(r=n.name,o.StringEx.O(r)?m:("OFFICE"===r.toUpperCase()&&(r="Office Theme"),new a.ExcelTheme(r,this.Ii(n),this.Ji(n)))):m},e.prototype.Ii=function(e){var t=[];return t.push(u(e.themeColor.background1)),t.push(u(e.themeColor.text1)),t.push(u(e.themeColor.background2)),t.push(u(e.themeColor.text2)),t.push(u(e.themeColor.accent1)),t.push(u(e.themeColor.accent2)),t.push(u(e.themeColor.accent3)),t.push(u(e.themeColor.accent4)),t.push(u(e.themeColor.accent5)),t.push(u(e.themeColor.accent6)),t.push(u(e.themeColor.hyperlink)),t.push(u(e.themeColor.followedHyperlink)),new a.ColorScheme(e.themeColor.name,t)},e.prototype.Ji=function(e){var t=Pe(e.headingFont),r=Pe(e.bodyFont),o=new a.ThemeFonts([new a.RunFormatting(0,t)],[]),i=new a.ThemeFonts([new a.RunFormatting(0,r)],[]);return new a.FontScheme(e.name,o,i)},e.prototype.Ki=function(e){return e=Math.min(e,i.ExcelConstants.vb-1),o.IndexHelper.T(e)},e.prototype.Li=function(e,t){var r,o=[],n=new i.DefaultContentType;return n.extension=i.XFileConstants.Eb,n.contentType=i.XFileConstants.Fb,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Gb,n.contentType=i.XFileConstants.Hb,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.nc,n.contentType=i.XFileConstants.pc,o.push(n),t&&(n=new i.DefaultContentType,n.extension=i.XFileConstants.oc,n.contentType=i.XFileConstants.kc,o.push(n)),n=new i.DefaultContentType,n.extension=i.XFileConstants.qc,n.contentType=i.XFileConstants.sc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.tc,n.contentType=i.XFileConstants.uc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.vc,n.contentType=i.XFileConstants.wc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.zc,n.contentType=i.XFileConstants.Ac,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Bc,n.contentType=i.XFileConstants.Cc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Dc,n.contentType=i.XFileConstants.Ec,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.xc,n.contentType=i.XFileConstants.yc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Fc,n.contentType=i.XFileConstants.Gc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Hc,n.contentType=i.XFileConstants.Ic,o.push(n),r=this.Lh(o,e),r?o:m},e.prototype.Mi=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return this.uh[r.index]},e.prototype.Ni=function(e){var t,r,i=this,n=[],l=i.Ne,s=l.sheets&&l.sheets[e],c=i.vi(s),d=Math.min(s.rowCount-1,c.length),u=i.Oi(s.rowOutlines);for(t=0;t<=d;t++)c[t]?(r=i.Pi(s,t,u),(r||r.collapsed||!o.J(r.outLineLevel)&&0!==r.outLineLevel||r.visible===!1||r.formatId>=0)&&(r.customHeight=!isNaN(r.height),n.push(r))):s.rowFilter&&i.Qi(s.rowFilter,t)&&(r=new a.ExcelRow(t),r.visible=!1,n.push(r));return n},e.prototype.Qi=function(e,t){var r,o,i,n=!1;if(e&&(r=e.filteredOutRows))for(o=0;o<r.length;o++)if(i=r[o],t===i){n=!0;break}return n},e.prototype.ii=function(e,t){var r=e.rows,o=e.rowOutlines;return(!r||!r[t]||r[t].visible!==!1)&&!l.isCollapsed(t,o)},e.prototype.Pi=function(e,t,r){var i,l,s=this,c=new a.ExcelRow(t),d=e.rowOutlines,u=e.rows&&e.rows[t];return c.height=n.UnitHelper.pixelToPoint(u&&void 0!==u.size?u.size:_(e)),r>=0&&(c.collapsed=this.Ri(t,d),i=this.Si(t,d),c.outLineLevel=i===-1?0:i),t<e.rowCount&&(c.visible=s.ii(e,t)),o.J(this.xh[e.index])||(l=this.xh[e.index][t],c.formatId=o.J(l)?-1:l),c},e.prototype.vi=function(e){var t,r,o,i,n,a,l,s,c,d,u,f,b,h,p=this.Bh[e.index];if(void 0!==p)return p;if(p=[],t=e.rows,r=e.data&&e.data.rowDataArray,o=e.data&&e.data.dataTable,i=e.defaultData,t)for(n=0,a=t.length;n<a;n++)t[n]&&(p[n]=!0);if(r)for(n=0,a=r.length;n<a;n++)r[n]&&(p[n]=!0);if(o)for(l in o)o[l]&&o.hasOwnProperty(l)&&(p[l]=!0);if(i)for(l in i)i[l]&&i.hasOwnProperty(l)&&(p[l]=!0);if(s=e.tables,s&&s.forEach(function(e){var t,r=e.row,o=e.row+e.rowCount;for(t=r;t<o;t++)p[t]=!0}),c=e.spans)for(a=c.length,d=0;d<a;d++)for(u=c[d],f=u.row;f<u.row+u.rowCount;f++)p[f]=!0;if(b=e.rowOutlines&&e.rowOutlines.itemsData)for(n=0,a=b.length;n<a;n++)for(h=b[n],l=h.index;l<h.index+h.count;l++)p[l]=!0;return this.Bh[e.index]=p,p},e.prototype.Ti=function(e){var t,r,o=[],i=this.Ne,n=i.sheets&&i.sheets[e],a=this.Oi(n.columnOutlines),l=n.columnCount;for(t=0;t<l;t++)r=this.Ui(n,t,a),r&&(Math.abs(r.width-this.Vi(e))>1e-4||r.collapsed||void 0!==r.outLineLevel&&r.outLineLevel!==m&&0!==r.outLineLevel||r.visible===!1||r.formatId>=0)&&o.push(r);return o},e.prototype.Si=function(e,t){var r,o,i,n;if(!t||!t.itemsData)return 0;for(r=t.itemsData,o=0,i=r.length;o<i;o++)if(n=r[o],e>=n.index&&e<n.index+n.count)return n.info?n.info.level+1:1;return 0},e.prototype.Ri=function(e,t){var r,o,i,n;if(!t||!t.itemsData)return!1;for(r=t.itemsData,o=0,i=r.length;o<i;o++)if(n=r[o],e>=n.index&&e<n.index+n.count)return!!n.info&&!!n.info.collapsed;return!1},e.prototype.Ui=function(e,t,r){var i,n,s=new a.ExcelColumn(t),c=e.columnOutlines,d=e.columns&&e.columns[t];return s.width=this.calcColumnWidth(d&&void 0!==d.size?d.size:N(e)),r>=0&&t<e.columnCount&&(s.collapsed=this.Ri(t,c),i=this.Si(t,c),s.outLineLevel=i===-1?0:i),t<e.columnCount&&(d&&d.visible===!1&&(s.visible=!1),l.isCollapsed(t,c)&&(s.visible=!1)),o.J(this.yh[e.index])||(n=this.yh[e.index][t],s.formatId=o.J(n)?-1:n),s},e.prototype.Oi=function(e){var t,r,o,i;if(!e||!e.itemsData)return-1;for(t=-1,r=0,o=e.itemsData.length;r<o;r++)i=e.itemsData[r],i.info&&i.info.level>t&&(t=i.info.level);return t},e.prototype.Wi=function(e){var t,r,o=this.Ne,i=o.sheets&&o.sheets[e],n=0,a=0,l=-1,s=i.rowOutlines;return s&&(l=this.Oi(s)),l!==-1&&(n=l+2),t=-1,r=i.columnOutlines,r&&(t=this.Oi(r)),t!==-1&&(a=t+2),{outlineLevelRow:n,outlineLevelColumn:a}},e.prototype.Xi=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o=n.UnitHelper.pixelToPoint(r.defaults?r.defaults.rowHeight:_(r)),i=!1,a=57;return i=Math.abs(a-o)>=2,{height:o,customHeight:i}},e.prototype.Vi=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return this.calcColumnWidth(r.defaults?r.defaults.colWidth:N(r))},e.prototype.Yi=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e];if(o.defaults&&o.defaults.colWidth&&o.defaults._isExcelDefaultColumnWidth!==!0)return t=o.defaults?o.defaults.colWidth:N(o),this.calcColumnWidth(t)},e.prototype.calcColumnWidth=function(t){var r,o,i;return 0===t?0:(r=e.Jh(this.Ne),o=Math.round(this.Zi(r.fontForColumnWidth?r.fontForColumnWidth:r.font)),i=Math.floor((t-5)/o*100+.5)/100,Math.floor((i*o+5)/o*256)/256)},e.prototype.Zi=function(e){return this.Rf===p&&(this.Rf=n.UnitHelper.getMaxiumDigitWidth(e)),this.Rf},e.prototype.$i=function(e,t,r,n){var a,l,s,c,d,u,f,b=this.Ne,h=b.sheets&&b.sheets[e];if(!h)return!1;if(a=h.frozenRowCount,l=h.frozenColCount,r.col=h.activeCol>=0?h.activeCol:0,r.row=h.activeRow>=0?h.activeRow:0,s=a>0,c=l>0,0===n){if(!s||!c)return!1}else if(1===n){if(!c)return!1;s&&(r.col=l,r.row=0)}else if(2===n){if(!s)return!1;c&&(r.col=0,r.row=a)}if(r.col=Math.min(i.ExcelConstants.vb,r.col),r.row=Math.min(i.ExcelConstants.wb,r.row),t)if(d=void 0,h.selections)for(u=0;u<h.selections.length;u++)f=h.selections[u],k(f)&&(d=new o.Range(f.row>0?f.row:0,f.col>0?f.col:0,f.rowCount>0?f.rowCount:i.ExcelConstants.wb,f.colCount>0?f.colCount:i.ExcelConstants.vb),t.push(d));else t.push(new o.Range(r.row,r.col,1,1));return!0},e.prototype.ti=function(e,t,r){o.J(this.uh[e][t])&&(this.uh[e][t]=[]),this.uh[e][t].push(r)},e.prototype._i=function(e,t){var r,o,i;if(T(e)&&"/OADate"===e.substring(0,7)&&t&&!t.formatter){if(t.autoFormatter)return void(t.formatter=t.autoFormatter.formatCached);r=e.indexOf("("),o=e.indexOf(")"),r!==-1&&o!==-1&&(i=parseInt(e.substring(r+1,o),10),i<1?t.formatter="h:mm:ss":i>1&&(t.formatter="M/d/yyyy"))}},e.prototype.dg=function(e,t,r,i,n){var a;o.StringEx.L(i)?r&&(a=e[t]):a=this.lh[i],void 0!==a?n.formatId=a:n.formatId=-1},e.prototype.ri=function(e,t,r){o.StringEx.O(e)||(r.formula=e,r.arrayFormulaRange=t)},e.prototype.ui=function(e,t,r,i,n){var a,l,s,c,d,u,f,b;if(t.data&&t.data.dataTable&&t.data.dataTable[r]&&(a=t.data.dataTable[r][i]&&t.data.dataTable[r][i].hyperlink)){if(l={},s=this.aj(t.name),c=!1,s)for(d=0;d<s.length;d++)if(u=s[d],u.row===r&&u.col===i){l.ref=o.IndexHelper.T(u.col)+(u.row+1)+":"+o.IndexHelper.T(u.col+u.colCount-1)+(u.row+u.rowCount),c=!0;break}c||(l.ref=o.IndexHelper.T(i)+(r+1)),f="sjs://",a.url&&(a.url.substring(0,f.length)===f?(l.location=o.Util.oa(a.url.replace(f,"")),b=t.data.dataTable[r][i].value,"string"==typeof b&&(l.display=o.Util.oa(b))):l.url=o.Util.oa(a.url)),a.tooltip&&(l.tooltip=o.Util.oa(a.tooltip)),l["xr:uid"]=o.Ha(),n[t.name]||(n[t.name]=[]),n[t.name].push(l)}},e.prototype.pi=function(e,t){var r=0;if(o.J(e))e=m;else{if(e._error||e._calcError)return r=7,{value:e._error||e._calcError,cellType:r};"number"==typeof e?(r=1,isNaN(e)&&(e=0)):"boolean"==typeof e?r=5:T(e)&&"/OADate"===e.substring(0,7)?r=6:t?r=9:T(e)?r=2:(r=2,e=""+e)}return{value:e,cellType:r}},e.prototype.wi=function(e,t){var r,o,i=this;return k(t)?n.ConverterHelper.cloneSpreadJSStyle(t):T(t)?C.test(t)?(r=t.indexOf(g),o=i.xi(e,t.substring(r)),n.ConverterHelper.cloneSpreadJSStyle(i.af[i.lh[o]])):{parentName:t}:void 0},e.prototype.bj=function(e){var t=this;return e&&t.af[t.lh[e]]},e.prototype.yi=function(e,t,r){var i,n=this;r&&(r=n.wi(e,r),o.ga.ca(t,r,!0),r&&r.parentName&&(r.parentName=n.xi(e,r.parentName),i=n.af[n.lh[r.parentName]],o.ga.ca(t,i)))},e.prototype.cj=function(e,t){o.J(t.linkColor)?(t.linkColor!==p||!e.foreColor&&e.foreColor!==m)&&(e.foreColor="hyperlink"):e.foreColor=t.linkColor,o.J(e.textDecoration)?e.textDecoration=1:1!==(1&e.textDecoration)&&(e.textDecoration+=1)},e.prototype.xi=function(e,t){return e.renamedStyles&&e.renamedStyles[t]&&(t=e.renamedStyles[t]),t},e.prototype.oi=function(e,t,r,i,n,a,l,s,c){var d,u,f=this,b=e.data,h=f.ji(e,t,r),g=m,y=m,S=b&&b.dataTable&&b.dataTable[t]&&b.dataTable[t][r]&&b.dataTable[t][r].hyperlink,C=S||T(c)&&"/OADate"===c.substring(0,7)||c!==m&&void 0!==c&&(n||a),w=p;return v(h)&&v(a)&&v(n)&&!C&&(w=""+h+"|"+n+"|"+a),w&&f.sh[w]?(i[s]=f.sh[w].styleIndex,f.sh[w]):(h?g=f.wi(e,h):C&&(g={}),g&&(g.parentName&&(g.parentName=f.xi(e,g.parentName),d=f.af[f.lh[g.parentName]]||f.af[f.vh[g.parentName]],o.ga.ca(g,d)),f.yi(e,g,a),f.yi(e,g,n),f.yi(e,g,l),S&&f.cj(g,S),f._i(c,g),o.ga.ba(g)?g=m:(u=i[s]=f.zi(g),g.parentName&&f.isSameStyleInfo(f.af[f.lh[g.parentName]],g,!0)&&(y=g.parentName),g.name&&f.isSameStyleInfo(f.af[f.lh[g.name]],g,!0)&&(y=g.name),w&&(f.sh[w]={styleIndex:u,styleName:y,styleInfo:g}))),{styleName:y,styleInfo:g})},e.prototype.zi=function(e){var t,r=this.af;if(!e)return 0;for(t=r.length-1;t>=0;t--)if((!r[t].name||r[t].name.indexOf(g)>=0)&&o.ga.fa(r[t],e))return t;return e.name=p,r.push(e),r.length-1},e.prototype.dj=function(e){var t,r;if(!e)return 0;t=0;for(r in e)e.hasOwnProperty(r)&&parseInt(r,10)>t&&(t=parseInt(r,10));return t},e.prototype.li=function(e,t,r){var o,i,n,a=0;if(e)for(o in e)if(e.hasOwnProperty(o))for(i in e[o])parseInt(i,10)>a&&(a=parseInt(i,10));if(r)for(o in r)if(r.hasOwnProperty(o))for(i in r[o])parseInt(i,10)>a&&(a=parseInt(i,10));return n=t.tables,n&&n.forEach(function(e){e.col+e.colCount>a&&(a=e.col+e.colCount)}),a},e.prototype.ej=function(e,t,r){for(r++;r>=0&&r<t&&!e[r];)r++;return r<t?r:-1},e.prototype.fj=function(e,t,r,o,i){var n=m;if(o>=0&&o<t&&(n=e[o]),!n)return-1;for(i++;i>=0&&i<r&&!n[i];)i++;return i<r?i:-1},e.prototype.mi=function(e,t){var r,o,i=[],n=e.columnCount;if(!e.data||!e.data.columnDataArray)return i;for(r=0;r<t;r++)r<n?(o=this.ji(e,-1,r),i.push(o)):i.push(m);return i},e.prototype.gj=function(){var e,t,r,o,i,a,l=this,s=[],c={count:0};for(e=0,t=l.af.length;e<t;e++)r=l.af[e],o=n.ConverterHelper.toExtendedFormat(r,l),r.name&&r.name.indexOf(g)<0?(c[r.name]||(c[r.name]=c.count,c.count++),o.isStyleFormat=!0):(i=0,void 0!==c[r.parentName]&&c[r.parentName]!==m&&(i=c[r.parentName],a=s[i],!o.applyNumberFormat&&a&&(a.numberFormat?o.numberFormat=a.numberFormat:void 0!==a.numberFormatIndex&&(o.numberFormatIndex=a.numberFormatIndex))),o.parentFormatID=i),s.push(o);return s},e.prototype.hj=function(){var t=n.ConverterHelper.cloneSpreadJSStyle(e.Jh(this.Ne)),r=n.ConverterHelper.toExtendedFormat(t,this);return r.parentFormatID=0,r},e.prototype.ij=function(){var t,r,o,i,a,l,s,c=this,d=[],u=m;for(t=0,r=c.th.length;t<r;t++)if(o=c.th[t],"Normal"===o.name){i=new n.ExcelStyle,i.name="Normal",i.format(n.ConverterHelper.toExtendedFormat(o,c)),i.format().isStyleFormat=!0,i.builtInStyle=0,u=i,c.Ke=o;break}for(u||(a=new n.ExcelStyle,a.name="Normal",a.format(n.ConverterHelper.toExtendedFormat(e.Jh(this.Ne),c)),a.format().font.fontSize=14.67,a.format().isStyleFormat=!0,a.builtInStyle=0,d.push(a)),t=0,r=c.th.length;t<r;t++)l=c.th[t],l.name&&(void 0!==e.Bi[l.name]?(i=new n.ExcelStyle,i.name=l.name,i.format(n.ConverterHelper.toExtendedFormat(l,c)),i.format().isStyleFormat=!0,i.builtInStyle=e.Bi[l.name],("RowLevel_"===l.name.substring(0,9)||"ColLevel_"===l.name.substring(0,9))&&l.name.length>9&&(i.outLineLevel=parseInt(l.name.substring(9),10)-1),d.push(i)):(s=new n.CustomExcelStyle,s.name=l.name,s.format(n.ConverterHelper.toExtendedFormat(l,c)),s.format().isStyleFormat=!0,d.push(s)));return d},e.prototype.jj=function(){var e,t,r=[],o=this.Ne.sheets;for(e in o)o.hasOwnProperty(e)&&(t=o[e],r[t.index]=e);return r},e.prototype.kj=function(e){return this.Ne.sheets[e]},e.prototype.lj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?{colsSumRight:!(r.columnOutlines&&0===r.columnOutlines.direction),rowsSumBelow:!(r.rowOutlines&&0===r.rowOutlines.direction)}:{}},e.prototype.mj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?f(r.sheetTabColor):m},e.prototype.nj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?{rowCount:r.rowCount,columnCount:r.columnCount}:{}},e.prototype.oj=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e],i={showGridLine:!0,showRowColHeaders:!0,gridlineColor:m,zoom:1};return o?(!o.gridline||o.gridline.showVerticalGridline!==!1&&o.gridline.showHorizontalGridline!==!1||(i.showGridLine=!1),o.rowHeaderVisible===!1&&o.colHeaderVisible===!1&&(i.showRowColHeaders=!1),o.gridline&&o.gridline.color&&(i.gridlineColor=n.ColorHelper.toExcelIndexedColor(f(o.gridline.color,4291876837))),void 0!==o.topCellIndex&&void 0!==o.leftCellIndex&&(t={row:o.topCellIndex,col:o.leftCellIndex},i.topLeftCell=t),i.zoom=o.zoomFactor,i):i},e.prototype.pj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o={frozenRowCount:0,frozenColCount:0,frozenTopRow:0,frozenLeftCol:0};return r?(o.frozenRowCount=r.frozenRowCount||0,o.frozenColCount=r.frozenColCount||0,o.frozenTopRow=r.frozenTopRow||0,o.frozenLeftCol=r.frozenLeftCol||0,o):o},e.prototype.qj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return!!r&&r.isProtected},e.prototype.rj=function(e,t){var r,o,i=this.Ne,n=i.sheets&&i.sheets[e],a=n.protectionOptions,s={};for(o in a)a.hasOwnProperty(o)&&(r=a[o],r&&"allowSelectLockedCells"===o||r&&"allowSelectUnlockedCells"===o||r&&"allowEditObjects"===o||(s[l.fromProtectionOptions[o]?l.fromProtectionOptions[o]:o]=a[o]));return t&&!a&&(s.objects=!1),s},e.prototype.aj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?r.spans:[]},e.prototype.sj=function(){var e=this.Ne;return{showHorizontalScrollbar:e.showHorizontalScrollbar,showVerticalScrollbar:e.showVerticalScrollbar,tabStripVisible:e.tabStripVisible,tabStripRatio:e.tabStripRatio,startSheetIndex:e.startSheetIndex,activeSheetIndex:e.activeSheetIndex}},e.prototype.tj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return!r||0===r.visible},e.prototype.uj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return!r||2===r.visible},e.prototype.vj=function(){var e,t,r,o,i,n=[];if(this.Ne.names)for(t=0;t<this.Ne.names.length;t++)e=this.Ne.names[t],n.push({name:e.name,localSheetId:-1,formula:e.formula,comment:e.comment});r=this.Ne.sheets;for(o in r)if(r.hasOwnProperty(o)&&(i=r[o],i.names))for(t=0;t<i.names.length;t++)e=i.names[t],n.push({name:e.name,localSheetId:i.index,formula:e.formula,comment:e.comment});return n},e.prototype.xg=function(e){var t=this,r=t.Ne.sheets&&t.Ne.sheets[e];return r.conditionalFormats},e.Jh=function(e){var t,r,i,n,a,l,s={foreColor:"black",font:"normal normal normal 11pt/normal Calibri",locked:!0,name:"Normal",textDecoration:0,hAlign:3,vAlign:0};for(t in e.sheets)if(e.sheets.hasOwnProperty(t)&&(r=e.sheets[t],r.data&&r.data.defaultDataNode&&r.data.defaultDataNode.style)){for(i=r.data.defaultDataNode.style,n=this.prototype.wi(r,i),a=n.parentName;a&&(l=be(a,e,r));)o.ga.ca(n,l),a=l.parentName;return o.ga.ca(n,s),n}return s},e.prototype.wj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r.comments&&r.comments.map(function(e){return l.convertToExcelComment(r,e)})},e.prototype.xj=function(e){var t,r=[],o=this.Ne;if(e)return o.sheets[e].pivotTables;for(t in o.sheets)o.sheets[t].pivotTables&&(r=r.concat(o.sheets[t].pivotTables));return r},e.prototype.yj=function(e){return e.floatingObjects&&e.floatingObjects.filter(function(e){return"1"===e.typeName&&e.src&&e.src.indexOf(";base64,")!==-1}).map(function(t){return l.convertToExcelPicture(e,t)})},e.prototype.zj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r.sparklineGroups},e.prototype.$h=function(e){var t,r,o,i=e.rowFilter,a=this;if(i)return t=[],r=i.filteredColumns,o=i.filterItemMap,o&&r&&r.length>0&&o.forEach(function(o){var l,s;r.indexOf(o.index)<0||(l=o.conditions[0],3===l.conType&&(s=0===l.compareType,t.push({autoFilterColumnId:o.index-O(e,i.range).col,colorFilter:{cellColor:s,dxfId:a.Yh({isColorFilter:!0,fill:n.ColorHelper.toExcelBackColor(l.expected,s)})}})))}),t},e.prototype.gi=function(e){var t,r,i=m;return e&&(t=e.sortInfo,!t||o.J(t.ascending)||o.J(t.index)||(i={range:new o.Range(e.range.row,t.index,e.range.rowCount,1),descending:!t.ascending},t.color!==p&&(r=t.isBackColor,i.isBackColor=r,"{"===t.color[0]&&(t.color=JSON.parse(t.color)),i.dxfid=this.Yh({isColorFilter:!0,fill:n.ColorHelper.toExcelBackColor(t.color,r)})))),i},e.prototype.Aj=function(e,t){var r=e.autoFilter,i={range:"A1",filterColumns:[]},n=r.filterItemMap;return n&&n.forEach(function(e){var r,n,a,l,s;e&&(r=e.conditions,n=r[0],a={autoFilterColumnId:0},l=se(n,t),o.J(l)||(s=l.filterType,1===s?a.top10=l:2===s?a.dynamicFilter=l:4===s?a.customFilters=l:3===s&&(a.filters=l),i.filterColumns.push(a)))}),i},e.prototype.Bj=function(e,t,r){var i,n,a,l,s,c,d,u,f,b,h,p,g,y,S,C,w,x,A,T,v,k,F=this,R=F.Ne,E=R.sheets&&R.sheets[e];if(o.J(t)||o.J(t.range))return m;if(i=t.adjustRangeForFrozen?E.frozenRowCount:0,n=O(E,t.range,i),a={range:n,filterColumns:[]},E.Zh&&E.Zh.length>0&&(a.filterColumns=E.Zh),l=t.filteredColumns,s=t.filterItemMap,s&&l&&l.length>0&&s.forEach(function(e){var t,r,i,s,c,d;if(!(e.index<n.col||e.index>=n.col+n.colCount||l.indexOf(e.index)<0)){for(t=e.conditions,r=t[0],i=1;i<t.length;i++)r={conType:0,compareType:0,item1:r,item2:t[i]};r&&(s={autoFilterColumnId:e.index-a.range.col},c=le(E,r,new o.Range(a.range.row+1,a.range.col,a.range.rowCount-1,1)),o.J(c)||(d=c.filterType,1===d?s.top10=c:2===d?s.dynamicFilter=c:3===d?s.filters=c:4===d&&(s.customFilters=c),a.filterColumns.push(s)))}}),c=F.aj(e),c&&c.length>0){for(d=n.row,u=n.col,f=n.colCount,b=a.filterColumns.length>0,h=[],p=0,g=c;p<g.length;p++)if(y=g[p],S=y.row,C=y.rowCount,w=y.col,x=y.colCount,w>=u&&w+x<=f&&(d===S||d===S+C-1))for(A=w;A<w+x-1;A++)T=A-u,b?(v=a.filterColumns[A],v&&v.autoFilterColumnId===T?v.showButton=0:(k={autoFilterColumnId:T,showButton:0},h.push(k))):(k={autoFilterColumnId:T,showButton:0},h.push(k));h.length>0&&(a.filterColumns=a.filterColumns.concat(h))}return a.sortInfo=r,a},e.prototype.Cj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o=m;return r.rowFilter&&(o=r.rowFilter.autoFilterSortInfo),this.Bj(e,r.rowFilter,o)},e.prototype.fi=function(e){var t,r=[],o=this.Ne;if(e)return o.sheets[e].tables;for(t in o.sheets)o.sheets[t].tables&&(r=r.concat(o.sheets[t].tables));return r},e.prototype.Dj=function(e){var t,r,o,i=this.Ne.sheets[e];if(!i.slicers)return[];for(t=[],r=0;r<i.slicers.length;r++)o=i.slicers[r],o.type&&"table"!==o.type||t.push(l.convertToExcelSlicer(i,o));return t},e.prototype.Ej=function(e,t){var r,o,i,n=this.Ne.sheets[e];if(!n.slicers)return[];for(r=[],o=0;o<n.slicers.length;o++)i=n.slicers[o],i.type===t&&r.push(l.convertToExcelSlicer(n,i));return r},e.prototype.Fj=function(e){return e.charts&&e.charts.map(function(t){return l.convertToExcelChart(e,t)})},e.prototype.Gj=function(e){return e.shapes&&e.shapes.map(function(t){return l.convertToExcelShape(e,t)})},e.prototype.Hj=function(e){var t,r=function(e){var t=[],o=e&&e.sp||[];return o.forEach(function(e){e.control?t.push({sp:e}):3===e.shapeType&&t.push.apply(t,r(e))}),t},o=function(e){var t=[];return e.forEach(function(e){e.sp&&e.sp.control?t.push(e):e.grpSp&&t.push.apply(t,r(e.grpSp))}),t},i=o(this.Gj(e)||[]);return i.forEach(function(e){var t=e.sp.control,r=e.sp.nvSpPr.cNvPr;t.id=r.id,t.name=r.name,t.visible=!r.hidden,r.hidden=!0}),t=function(e){return e.sp.control.id},i.sort(function(e,r){return t(e)-t(r)}),i},e.prototype.Ij=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o=this.Dj(e),i=this.Ej(e,"pivot"),n=this.Ej(e,"timeline"),a=o.concat(i).concat(n),l=this.yj(r),s=this.Fj(r),c=this.Gj(r),d=this.Hj(r),u=0;return[a,l,s,c].forEach(function(e){e&&(u+=e.length)}),{slicers:a,pictures:l,charts:s,shapes:c,controlShapes:d,withDrawingObjects:u>0}},e.prototype.Jj=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e],i=[],n=o.validations;return n&&(t=this.jj(),he(n,i,e,t)),i},e.prototype.Kj=function(e){var t={top:75,bottom:75,left:70,right:70,header:30,footer:30},r=this.Ne,o=r.sheets&&r.sheets[e],i=o.printInfo,n=i&&i.margin;return n?{bottom:Te(n.bottom,t.bottom),top:Te(n.top,t.bottom),left:Te(n.left,t.bottom),right:Te(n.right,t.bottom),
|
28
28
|
header:Te(n.header,t.bottom),footer:Te(n.footer,t.bottom)}:m},e.prototype.Lj=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e],i=o.printInfo;if(i)return t=i.centering,{horizontalCentered:1===t||3===t,verticalCentered:2===t||3===t,printGridLine:i.showGridLine,printRowColumnsHeaders:2===i.showRowHeader&&2===i.showColumnHeader}},e.prototype.Mj=function(e,t){var r,i,n,a,l,s,c,d,u,f,b,h,p,g,y,S,C;function w(e,t,r){return e=e||"",t=t||"",r=r||"","&L"+e+"&C"+t+"&R"+r}function x(e,t,r){if(e[t]&&e[t][r]){var o=e[t][r];return w(o.left,o.center,o.right)}}return r=this.Ne,i=r.sheets&&r.sheets[e],(n=i.printInfo)?(a={},l=n.fitPagesTall,s=n.fitPagesWide,o.J(l)||l===-1||(a.useSmartPrint=!0,a.smartPrintPagesHeight=Math.max(0,l)),o.J(s)||s===-1||(a.useSmartPrint=!0,a.smartPrintPagesWidth=Math.max(0,s)),t||(n.paperSize&&(c=n.paperSize.kind,0!==c&&(a.paperSizeIndex=c)),a.copies=1,o.J(n.firstPageNumber)||(a.useCustomStartingPage=!0,a.firstPageNumber=n.firstPageNumber),a.orientation=2===n.orientation?2:1,a.pageOrder=1===n.pageOrder?1:2,a.zoomFactor=parseFloat(n.zoomFactor),a.showColor=!n.blackAndWhite,a.advancedHeadFooterSetting={},d=a.advancedHeadFooterSetting,u=n.pageHeaderFooter,f=void 0,u?(d.headerFooterDifferentFirstPage=n.differentFirstPage,f=x(u,"first","header"),f&&(d.headerFirstPage=f),f=x(u,"first","footer"),f&&(d.footerFirstPage=f),b=n.differentOddAndEvenPages,d.headerFooterDifferentOddEvenPages=n.differentOddAndEvenPages,f=b?x(u,"odd","header"):x(u,"normal","header"),f&&(d.headerOddPage=f),f=b?x(u,"odd","footer"):x(u,"normal","footer"),f&&(d.footerOddPage=f),f=x(u,"even","header"),f&&(d.headerEvenPage=f),f=x(u,"even","footer"),f&&(d.footerEvenPage=f)):(h=w(n.headerLeft,n.headerCenter,n.headerRight),p=w(n.footerLeft,n.footerCenter,n.footerRight),a.advancedHeadFooterSetting={headerEvenPage:h,headerOddPage:h,footerOddPage:p,footerEvenPage:p}),g=i.rows,y=[],g&&g.length>0&&g.forEach(function(e,t){e&&e.pageBreak&&y.push(t)}),S=i.columns,C=[],S&&S.length>0&&S.forEach(function(e,t){e&&e.pageBreak&&C.push(t)}),y.length>0&&(a.rowBreakLines=y),C.length>0&&(a.columnBreakLines=C)),a):m},e.prototype.Nj=function(e){return this.Ne.sheets&&this.Ne.sheets[e].printInfo},e.prototype.Oj=function(e){return this.Ne.sheets&&this.Ne.sheets[e].rowFilter},e.prototype.Pj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o=r.shapes,i=[];return o&&o.length>0&&this.Qj(o,i),i},e.prototype.Qj=function(e,t){var r=this;e.forEach(function(e,o){var i,n,a,l;1===e.shapeType?(i=void 0,e.shapeData&&e.shapeData.pic&&e.shapeData.pic.cameraTool?i=e.shapeData.pic:e.cameraTool===!0&&(i=e),i&&(n=o+1,a=De("Picture_x0020_"+n,i.src),a.style=i.vmlStyle,a.anchor=i.anchor,a.cellRange=i.cellRange,a.spid="_x0000_s10"+i.spid,t.push(a))):3===e.shapeType&&(l=e.shapeData&&e.shapeData.grpSp&&e.shapeData.grpSp.sp||e.sp,l&&r.Qj(l,t))})},e.prototype.Rj=function(e){var t,r,o,i,n,a,l,s=this.Ne,c=s.sheets&&s.sheets[e],d=c.printInfo,u=[];return d&&(t=d.pageHeaderFooter,t?(r=t.normal,o=t.odd,o?(i=o.header||{},i.leftImage&&u.push(De("LH",i.leftImage)),i.centerImage&&u.push(De("CH",i.centerImage)),i.rightImage&&u.push(De("RH",i.rightImage)),n=o.footer||{},n.leftImage&&u.push(De("LF",n.leftImage)),n.centerImage&&u.push(De("CF",n.centerImage)),n.rightImage&&u.push(De("RF",n.rightImage))):r&&(i=r.header||{},i.leftImage&&u.push(De("LH",i.leftImage)),i.centerImage&&u.push(De("CH",i.centerImage)),i.rightImage&&u.push(De("RH",i.rightImage)),n=r.footer||{},n.leftImage&&u.push(De("LF",n.leftImage)),n.centerImage&&u.push(De("CF",n.centerImage)),n.rightImage&&u.push(De("RF",n.rightImage))),a=t.even,a&&(i=a.header||{},i.leftImage&&u.push(De("LHEVEN",i.leftImage)),i.centerImage&&u.push(De("CHEVEN",i.centerImage)),i.rightImage&&u.push(De("RHEVEN",i.rightImage)),n=a.footer||{},n.leftImage&&u.push(De("LFEVEN",n.leftImage)),n.centerImage&&u.push(De("CFEVEN",n.centerImage)),n.rightImage&&u.push(De("RFEVEN",n.rightImage))),l=t.first,l&&(i=l.header||{},i.leftImage&&u.push(De("LHFIRST",i.leftImage)),i.centerImage&&u.push(De("CHFIRST",i.centerImage)),i.rightImage&&u.push(De("RHFIRST",i.rightImage)),n=l.footer||{},n.leftImage&&u.push(De("LFFIRST",n.leftImage)),n.centerImage&&u.push(De("CFFIRST",n.centerImage)),n.rightImage&&u.push(De("RFFIRST",n.rightImage)))):(d.headerLeftImage&&u.push(De("LH",d.headerLeftImage)),d.headerCenterImage&&u.push(De("CH",d.headerCenterImage)),d.headerRightImage&&u.push(De("RH",d.headerRightImage)),d.footerLeftImage&&u.push(De("LF",d.footerLeftImage)),d.footerCenterImage&&u.push(De("CF",d.footerCenterImage)),d.footerRightImage&&u.push(De("RF",d.footerRightImage)))),u},e.prototype.Sj=function(){return this.vh},e.Bi={"20% - Accent1":30,"20% - Accent2":34,"20% - Accent3":38,"20% - Accent4":42,"20% - Accent5":46,"20% - Accent6":50,"40% - Accent1":31,"40% - Accent2":35,"40% - Accent3":39,"40% - Accent4":43,"40% - Accent5":47,"40% - Accent6":51,"60% - Accent1":32,"60% - Accent2":36,"60% - Accent3":40,"60% - Accent4":44,"60% - Accent5":48,"60% - Accent6":52,Accent1:29,Accent2:33,Accent3:37,Accent4:41,Accent5:45,Accent6:49,Bad:27,Calculation:22,"Check Cell":23,Comma:3,"Comma [0]":6,Currency:4,"Currency [0]":7,"Explanatory Text":53,Good:26,"Heading 1":16,"Heading 2":17,"Heading 3":18,"Heading 4":19,Input:20,"Linked Cell":24,Neutral:28,Normal:0,Note:10,Output:21,Percent:5,Title:15,Total:25,"Warning Text":11,Hyperlink:8,FollowedHyperLink:9,RowLevel_1:1,RowLevel_2:1,RowLevel_3:1,RowLevel_4:1,RowLevel_5:1,RowLevel_6:1,RowLevel_7:1,ColLevel_1:2,ColLevel_2:2,ColLevel_3:2,ColLevel_4:2,ColLevel_5:2,ColLevel_6:2,ColLevel_7:2},e}(),t.WriterDataModel=A},"./src/datamodel/datetime-helper.ts":function(e,t,r){"use strict";var o,i,n,a;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=null,n=void 0;function l(e){var t=e.getTimezoneOffset();return t===-485&&(t=-485-43/60),t===-321&&(t=-321-10/60),t===-507&&(t=-507-52/60),t===-402&&(t=-402-4/60),t}a=function(){function e(){}return e.jg=function(e){return"/OADate("+e+")/"},e.Tj=function(e){return"string"==typeof e&&"/OADate("===e.substr(0,8)?parseInt(e.substr(8,e.length-8-1-1),10):e},e.ig=function(e){return e===n||e===i?0:("number"!=typeof e&&"string"!=typeof e||(e=new Date(e)),e instanceof Date?(1440*e.getTime()+3181192704e6-864e5*l(e))/124416e6:0)},e.Je=function(e){var t,r=e-25569,o=new Date(864e5*r),i=r>=0?1:-1,n=l(o),a=(864e5*e*1440+i-3181192704e6+864e5*n)/1440,s=new Date(a),c=n>=0?1:-1,d=new Date(a+36e5*c),u=l(d);return Math.abs(n-u)>=60?new Date(a+60*(u-n)*1e3):(t=e+"",s=999===s.getMilliseconds()&&"33333333"===t.substr(t.length-8)?new Date(s.valueOf()+1):s)},e.vf=function(t){var r,o,n,a,l,s,c;if(!t||" "===t)return!1;if(0===t.length)return!1;if(t=t.toUpperCase(),t=t.replace(/(\[.*\])+/g," "),t=t.replace(/"[^"]*"/g," "),t=t.replace(/(\*.|_.|\\.)+/g," "),t.indexOf("GENERAL")!==-1)return!1;for(r=-1,o=0,n=!1,a=null,l=0;l<t.length;l++){if(s=t[l],"["===s)do s=t[l],l++;while(l<t.length&&"]"!==s);if("Y"===s||"D"===s||"M"===s||"H"===s||"S"===s||"A"===s)n?o++:(0===l||t.length>0&&"\\"!==t[l-1])&&(n=!0,r=l,o=1);else{if(n=!1," "===s&&a)return!0;0!==o&&(c=t.substring(r,r+o),r=l,o=0,a=a===i?e.Uj(c):a&&e.Uj(c))}}return 0!==o&&l===t.length&&(c=t.substring(r,r+o),a=a===i?e.Uj(c):a&&e.Uj(c)),!!a},e.Uj=function(e){var t,r,i,a,l,s,c,d,u;if(o.StringEx.O(e))return!1;for(t=[],r="",i=0,a=e.length;i<a;i++)l=e[i],r.indexOf(l)===-1&&(t.push({key:l,count:e.match(RegExp(l,"g")).length}),r+=l);for(s={Y:4,D:4,M:5,H:2,S:2,A:4},i=0,c=t.length;i<c;i++){if(d=t[i],u=s[d.key],u===n)return!1;if(d.count>u)return!1}return!0},e}(),t.DateTimeHelper=a},"./src/datamodel/excel-helper.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/datamodel/excel-style.ts"),n=r("./src/datamodel/chart-model.ts"),a=r("./src/common/excel-types.ts"),l=null;function h(e,t,r){var o,i=e.defaults.colWidth,n=e.columns,a=0,s=n?l:i;for(o=t;o<r;o++)a+=s||p(n,o,i,e.columnOutlines);return a}function p(e,t,r,o){var i=e[t];return i?o&&w(t,o)?0:i.visible===!1?0:i.size:r}function m(e,t,r){var o,i=e.defaults.rowHeight,n=e.rows,a=0,s=n?l:i;for(o=t;o<r;o++)a+=s||g(n,o,i,e.rowOutlines);return a}function g(e,t,r,o){var i=e[t];return i?o&&w(t,o)?0:i.visible===!1?0:i.size:r}function y(e,t){for(var r,o,i=e.defaults.colWidth,n=e.columns,s=0,c=0,d=n&&n.length||a.ExcelConstants.vb,u=n?l:i;s<t&&c<d;)r=u||p(n,c,i),s+=r,c++;return o=s-t,o>0?(c--,o=r-o):o=t-s,{col:c,colOffset:o}}function S(e,t){for(var r,o,i=e.defaults.rowHeight,n=e.rowsVisibleInfo||e.rows,s=0,c=0,d=n&&n.length||a.ExcelConstants.wb,u=n?l:i;s<t&&c<d;)r=u||g(n,c,i),s+=r,c++;return o=s-t,o>0?(c--,o=r-o):o=t-s,{row:c,rowOffset:o}}function C(e,t){var r=t.x,o=t.y,i={},n={},a=S(e,o);return A(a,i,["row","rowOffset"]),a=y(e,r),A(a,i,["col","colOffset"]),a=S(e,o+t.height),A(a,n,["row","rowOffset"]),a=y(e,r+t.width),A(a,n,["col","colOffset"]),{startPoint:i,endPoint:n}}function w(e,t){if(!t)return!1;if(t.items)return t.items[e]&&t.items[e].viewCollapsed;if(!t.itemsData)return!1;t.collapseIndexMap||x(t);var r=t.collapseIndexMap;return!!r[e]}t.isCollapsed=w;function x(e){var t,r,o,i,n,a,l,s=e.itemsData,c=e.collapseIndexMap={},d=!1;if(0===e.direction){for(t=s.length-1;t>=0;t--)if(o=s[t],o&&1===o.count&&o.info&&o.info.collapsed){for(i=o.index+o.count,n=t+1;n<s.length;n++)a=s[n],a&&a.info&&a.info.level>o.info.level&&a.index===i&&(i=a.index+a.count);for(l=o.index+1;l<i;l++)c[l]=!0}}else for(r=s.length,t=0;t<r;t++)if(o=s[t],o&&1===o.count&&o.info&&o.info.collapsed){if(i=o.index-1,i<0&&o.info.level===-1)break;for(n=t-1;n>=0;n--)a=s[n],a&&a.info&&a.info.level>o.info.level&&a.index+a.count-1===i&&(i=a.index-1);for(l=i+1;l<o.index;l++)c[l]=!0}}s=7;function A(e,t,r){r.forEach(function(r){void 0!==e[r]&&(t[r]=e[r])})}function T(e,t){var r,n,a,c,d,u,f,b,p,g,y,S,C,w,x,T,v={};return A(t,v,["fontSize","fontStyle","fontFamily","fontWeight","textDecoration","text","autoSize","dynamicMove","dynamicSize","locked","lockText","displayMode"]),r=e.forzenRowCount||0,n=e.forzenColumnCount||0,a=t.row,c=t.col,d=t.anchor,u=h(e,n,c+1),f=m(e,r,a),v.rowIndex=a-r,v.colIndex=c-n,d?(b=h(e,n,d[0])+d[1]-s,p=m(e,r,d[2])+d[3]-s,g=h(e,n,d[4])+d[5]+s,y=m(e,r,d[6])+d[7]+s,v.location={x:b-u,y:p-f},v.width=g-b,v.height=y-p,V(e,d)):(v.location={x:i.UnitHelper.pointToPixel(t.marginLeft)-u-s,y:i.UnitHelper.pointToPixel(t.marginTop)-f-s},v.width=k(t.width)+2*s,v.height=k(t.height)+2*s,V(e,l,{x:v.location.x+u,y:v.location.y+f,width:v.width,height:v.height})),S=t.foreColor,S&&S!==i.ExcelColor.EmptyColor&&(v.foreColor=i.ColorHelper.toRGBColor(S)),S=t.backColor,S&&(v.backColor=S.split(" ")[0]),S=t.borderColor,S&&(v.borderColor=S.split(" ")[0]),C=t.borderWidth,C&&(v.borderWidth=k(C)),v.borderStyle=R(t.dashStyle,t.lineStyle),w=t.zIndex,o.J(w)||(v.zIndex=w),w=t.opacity,o.J(w)||(v.opacity=w),t.autoSize&&(v.autoSize=!0),v.locked=t.locked!==!1,v.lockText=t.lockText!==!1,v.dynamicSize=t.dynamicSize!==!1,v.dynamicMove=t.dynamicMove!==!1,w=t.inset,w&&(x=[0,0,0,0],w.trim().split(",").forEach(function(e,t){var r=e||["0.1in","0.05in"][t%2];x[t]=F(r)}),v.padding={left:x[0],top:x[1],right:x[2],bottom:x[3]}),T=["left","center","right"].indexOf(t.hAlign),T!==-1&&(v.horizontalAlign=T),v}t.convertFromExcelComment=T;function v(e,t){var r,n,a,l,c,d,u=t.rowIndex,f=t.colIndex,b=t.location||{x:9,y:-18},p={row:u,col:f};return o.J(t.width)&&(t.width=160),o.J(t.height)&&(t.height=100),t.fontFamily=t.fontFamily||"Arial",t.borderColor=t.borderColor||"black",t.backColor=t.backColor||"#FFFFE1",A(t,p,["zIndex","opacity","fontStyle","fontFamily","fontWeight","textDecoration","text","autoSize","dynamicMove","dynamicSize","locked","lockText","displayMode","backColor","borderColor"]),r=h(e,0,f+1),n=m(e,0,u),p.marginLeft=i.UnitHelper.pixelToPoint(r+b.x+s),p.marginTop=i.UnitHelper.pixelToPoint(n+b.y+s),p.width=i.UnitHelper.pixelToPoint(t.width-2*s)+"pt",p.height=i.UnitHelper.pixelToPoint(t.height-2*s)+"pt",a=t.fontSize||"9pt",a.indexOf("px")!==-1?p.fontSize=i.UnitHelper.pixelToPoint(parseFloat(a)):p.fontSize=a.replace("pt",""),l=t.foreColor,p.foreColor=l&&i.ColorHelper.toExcelColor(l),p.borderWidth=i.UnitHelper.pixelToPoint(t.borderWidth||1)+"pt",c=E(t.borderStyle),p.dashStyle=c.dashStyle,p.lineStyle=c.lineStyle,d=t.padding,d&&(p.inset=[i.UnitHelper.pixelToPoint(d.left)+"pt",i.UnitHelper.pixelToPoint(d.top)+"pt",i.UnitHelper.pixelToPoint(d.right)+"pt",i.UnitHelper.pixelToPoint(d.bottom)+"pt"].join(",")),p.hAlign=["Left","Center","Right"][t.horizontalAlign||0]||"Left",p.visibility=1===t.displayMode?"visible":"hidden",p}t.convertToExcelComment=v;function k(e){return e?i.UnitHelper.pointToPixel(parseFloat(e.replace("pt",""))):0}function F(e){var t=0;return e.indexOf("in")!==-1?t=72*parseFloat(e.replace("in","").trim()):e.indexOf("cm")!==-1?t=72*parseFloat(e.replace("cm","").trim())/2.54:e.indexOf("mm")!==-1?t=72*parseFloat(e.replace("mm","").trim())/25.4:e.indexOf("pt")!==-1&&(t=parseFloat(e.replace("pt","").trim())),i.UnitHelper.pointToPixel(t)}function R(e,t){if(!o.StringEx.L(t))return"double";if(e)switch(e.toLowerCase()){case"solid":return"solid";case"1 1":return"dotted";case"dash":case"dashdot":case"longdash":case"longdashdot":case"longdashdotdot":return"dashed"}return"solid"}function E(e){var t,r;if(e)switch(e.toLowerCase()){case"solid":t="solid";break;case"dotted":t="1 1";break;case"dashed":t="dash";break;case"double":r="thinThin"}return{dashStyle:t,lineStyle:r}}function I(e,t){if(e){var r=e.startPoint,o=e.endPoint;t.startRow=r.row,t.startRowOffset=r.rowOffset,t.startRowOffsetEmu=r.rowOffsetEmu,t.startColumn=r.col,t.startColumnOffset=r.colOffset,t.startColumnOffsetEmu=r.colOffsetEmu,t.endRow=o.row,t.endRowOffset=o.rowOffset,t.endRowOffsetEmu=o.rowOffsetEmu,t.endColumn=o.col,t.endColumnOffset=o.colOffset,t.endColumnOffsetEmu=o.colOffsetEmu}}c=1e5;function L(e){return{l:e.l/c,t:e.t/c,r:e.r/c,b:e.b/c}}function D(e){return{l:parseInt((e.l||0)*c,10),t:parseInt((e.t||0)*c,10),r:parseInt((e.r||0)*c,10),b:parseInt((e.b||0)*c,10)}}function B(e,t,r){var o,i=G(r,t.name,"picture"),n={name:i,alt:t.descr};return A(t,n,["src","isVisible","locked","rot"]),de(t.anchor,e,n,t.xfrm),U(t.pictureFormat,n),o=t.srcRect,o&&(n.srcRect=L(o)),n}t.convertFromExcelPicture=B;function P(e,t){return t.twoCellAnchor=Z(e,t),t}t.convertToExcelSlicer=P;function W(e,t){switch(e){case"solid":return"dbl"===t?"double":"solid";case"dot":case"sysDot":return"dotted"}return"dashed"}function _(e){return!e||"hidden"===e}function N(e){switch(e){case"dotted":return"dot";case"dashed":return"dash";case"double":return"dbl"}return"solid"}function M(e,t){var r,o={},n=t.src;return O(n,o),A(t,o,["name","locked","rot"]),o.descr=t.alt,o.twoCellAnchor=Z(e,t,!0),o.hidden=t.isVisible===!1,o.fillColor=i.ColorHelper.toExcelColor(t.backColor),o.lineBorder={width:_(t.borderStyle)?0:t.borderWidth,color:i.ColorHelper.toExcelColor(t.borderColor),style:N(t.borderStyle),noFill:t.noFill},r=t.srcRect,r&&(o.srcRect=D(r)),o}t.convertToExcelPicture=M,d=";base64,";function O(e,t){var r,o=e.indexOf(d);o>0&&(t.base64Image=e.substr(o+d.length),r=e.substr(0,o).split("/").pop(),"x-icon"===r&&(r="png"),t.imageType=r)}t.getPictureInfo=O;function H(e){if(!e)return!1;var t={};return O(e,t),"svg+xml"===t.imageType}t.isSVGPicture=H;function G(e,t,r){function o(e){return e.name===this.name}function i(t){var r=o.bind({name:t});return void 0!==e.filter(r)[0]}t=t||r;for(var n=t,a=1;i(n);)n=t+"_"+a,a++;return n}function U(e,t){var r,o,n,a,l;return e?(r=e.fillFormat,r&&1===r.fillFormatType&&(t.backColor=i.ColorHelper.toRGBColor(r.color)),o=e.lineFormat,void(o&&(t.borderWidth=o.width,n=o.fillFormat,n&&1===n.fillFormatType?t.borderColor=i.ColorHelper.toRGBColor(n.color):n&&0===n.fillFormatType&&(t.noFill=!0),a=o.lineDashType,a&&(l=o.compoundLineType,t.borderStyle=W(a,l))))):null}u=2;function J(e,t,r){e.rowCount<t&&(e.rowCount=t),e.columnCount<r&&(e.columnCount=r)}function z(e,t){var r=0,o=0,i=t.endPoint;i&&(r=i.row,o=i.col),r+=u,o+=u,J(e,r,o)}t.inflateWorksheetByAnchor=z;function V(e,t,r){var o,i,n;t?(o=t[6]+1,i=t[4]+1):(n=C(e,r),o=n.endPoint.row+u,i=n.endPoint.col+u),J(e,o,i)}function j(e,t,r){var o,i,n,a;return o=h(e,0,t.col)+t.colOffset,i=m(e,0,t.row)+t.rowOffset,n=h(e,0,r.col)+r.colOffset,a=m(e,0,r.row)+r.rowOffset,{x:o,y:i,width:n-o,height:a-i}}t.getBounds=j;function X(e,t){return j(e,t.startPoint,t.endPoint)}function K(e,t){var r=t.startPoint,o=h(e,0,r.col)+r.colOffset,i=m(e,0,r.row)+r.rowOffset;return{x:o,y:i,width:t.width,height:t.height}}function q(e){return{x:e.x,y:e.y,width:e.width,height:e.height}}function Y(e,t,r){var o=e.startPoint,i=e.endPoint,n=o.x*t,a=o.y*r,l=i.x*t,s=i.y*r;return{x:n,y:a,width:l-n,height:s-a}}function Q(e,t,r){var o=e.startPoint;return{x:o.x*t,y:o.y*r,width:e.width,height:e.height}}function Z(e,t,r){var i,n,a;return o.J(t.startRow)?C(e,{x:t.x||0,y:t.y||0,width:t.width||0,height:t.height||0}):(r&&(t=$(e,t)),i={row:t.startRow,rowOffset:t.startRowOffset||0,col:t.startColumn,colOffset:t.startColumnOffset||0},n={row:t.endRow,rowOffset:t.endRowOffset||0,col:t.endColumn,colOffset:t.endColumnOffset||0},a=ne(t.dynamicMove,t.dynamicSize),{startPoint:i,endPoint:n,editAs:a})}function $(e,t){var r=t.pictureStretch;return 0===r?t:1===r?ee(e,t):2===r?te(e,t):3===r?re(e,t):t}function ee(e,t){var r,o,i,n,a,l,s,c,d,u,f=e.rowCount,b=e.columnCount,p=t.width,g=t.height,y=t.startRow,S=t.startRowOffset||0,C=t.startColumn,w=t.startColumnOffset||0,x=t.endRow,A=t.endRowOffset||0,T=t.endColumn,v=t.endColumnOffset||0,k=t.originalWidth,F=t.originalHeight,R=Math.min(p,k),E=Math.min(g,F),I=F>g?S:S+(g-F)/2,L=k>p?w:w+(p-k)/2;for(p=R,g=E,r=0,o=y,i=I,n=!1;o<f;)if(a=m(e,o,o+1),o++,r+=a,!n&&(i-=a),i<0&&!n&&(y=o-1<0?0:o-1,S=a+i,n=!0),r>g+I){x=o-1<0?0:o-1,A=a-(r-g-I);break}for(l=0,s=C,c=L,d=!1;s<b;)if(u=h(e,s,s+1),s++,l+=u,!d&&(c-=u),c<0&&!d&&(C=s-1<0?0:s-1,w=u+c,d=!0),l>p+L){T=s-1<0?0:s-1,v=u-(l-p-L);break}return t.width=p,t.height=g,t.startRow=y,t.startRowOffset=S,t.endRow=x,t.endRowOffset=A,t.startColumn=C,t.startColumnOffset=w,t.endColumn=T,t.endColumnOffset=v,t}function te(e,t){var r,o,i,n,a,l,s,c,d=e.rowCount,u=e.columnCount,f=t.width,b=t.height,p=t.startRow,g=t.startRowOffset||0,y=t.startColumn,S=t.startColumnOffset||0,C=t.endRow,w=t.endRowOffset||0,x=t.endColumn,A=t.endColumnOffset||0,T=t.originalWidth,v=t.originalHeight,k=f/b,F=T/v,R=0,E=0,I=f,L=b;if(b>0&&v>0&&k>F)I=F*b,R=S+f/2-I/2,f=I,b=1/F*f;else{if(!(f>0&&T>0&&1/k>1/F))return t;L=1/F*f,E=g+b/2-L/2,b=L,f=F*b}if(R>0){for(;y<u;)if(r=h(e,y,y+1),y++,R-=r,R<0){y--,S=R+r;break}for(o=0,i=y;i<u;)if(n=h(e,i,i+1),i++,o+=n,o>I+S){A=n-(o-I-S),x=i-1<0?0:i-1;break}}else if(E>0){for(;p<d;)if(a=m(e,p,p+1),p++,E-=a,E<0){p--,g=E+a;break}for(l=0,s=p;s<d;)if(c=m(e,s,s+1),s++,l+=c,l>L+g){w=c-(l-L-g),C=s-1<0?0:s-1;break}}return t.width=f,t.height=b,t.startRow=p,t.startRowOffset=g,t.endRow=C,t.endRowOffset=w,t.startColumn=y,t.startColumnOffset=S,t.endColumn=x,t.endColumnOffset=A,t}function re(e,t){var r,o,i,n,a,l,s=e.rowCount,c=e.columnCount,d=t.width,u=t.height,f=t.startRow,b=t.startRowOffset||0,p=t.startColumn,g=t.startColumnOffset||0,y=t.endRow,S=t.endRowOffset||0,C=t.endColumn,w=t.endColumnOffset||0,x=t.originalWidth,A=t.originalHeight;for(d=Math.min(d,x),u=Math.min(u,A),r=0,o=f;o<s;)if(i=m(e,o,o+1),o++,r+=i,r>u+b){y=o-1<0?0:o-1,S=i-(r-u-b);break}for(n=0,a=p;a<c;)if(l=h(e,a,a+1),a++,n+=l,n>d+g){C=a-1<0?0:a-1,w=l-(n-d-g);break}return t.width=d,t.height=u,t.startRow=f,t.startRowOffset=b,t.endRow=y,t.endRowOffset=S,t.startColumn=p,t.startColumnOffset=g,t.endColumn=C,t.endColumnOffset=w,t}function oe(e,t,r,o){var i=t.anchorType;return 0===i?X(e,t):1===i?K(e,t):2===i?q(t):3===i?Y(t,r,o):4===i?Q(t,r,o):null}function ie(e){var t=e.anchorType||e.editAs||0,r=!0,o=!0;return 2===t?(r=!1,o=!1):1===t&&(o=!1),{dynamicMove:r,dynamicSize:o}}function ne(e,t){var r;return e===!1&&t===!1?r=2:t===!1&&(r=1),r}function ae(e,t,r){var o={x:e.x||0,y:e.y||0,width:e.width||0,height:e.height||0};return{startPoint:{x:(o.x/t).toFixed(5),y:(o.y/r).toFixed(5)},endPoint:{x:((o.x+o.width)/t).toFixed(5),y:((o.y+o.height)/r).toFixed(5)}}}function le(e){var t,r,o;return e?(t=i.ColorHelper.toExcelColor(e),r=t.colorType(),2===r?(o=i.ColorHelper.getRGBAColorData(t),{srgbClr:{val:o.rgb}}):3===r?{schemeClr:{val:t.value()}}:null):null}function se(e,t,r){return{x:e.x*r-e.y*t,y:e.x*t+e.y*r}}f=Math.PI/180/6e4;function ce(e){var t,r,i,n,a,l,s,c,d,u,b,h,p,m,g,y,S,C,w,x;if(e&&!o.J(e.rot))return t=e.rot,r=e.off,i=e.ext,n=r.x,a=r.y,l=i.cx,s=i.cy,c=l/2,d=s/2,u=t*f,b=Math.sin(u),h=Math.cos(u),p=n+c,m=a+d,g=[],y=[],[{x:-c,y:-d},{x:c,y:-d},{x:-c,y:d},{x:c,y:d}].forEach(function(e){var t=se(e,b,h);g.push(t.x+p),y.push(t.y+m)}),S=Math.min.apply(null,g),C=Math.max.apply(null,g),w=Math.min.apply(null,y),x=Math.max.apply(null,y),{x:S,y:w,width:C-S,height:x-w}}function de(e,t,r,o){var i,n,a=ce(o)||oe(t,e),l=ie(e);r.dynamicMove=l.dynamicMove,r.dynamicSize=l.dynamicSize,A(a,r,["x","y","width","height"]),0===e.anchorType?(i=o?C(t,a):e,I(i,r)):i=C(t,a),z(t,i),n=e.clientData,n&&(r.isLocked=n.fLocksWithSheet,r.canPrint=n.fPrintsWithSheet)}function ue(e,t){var r,i,n,a,l,s,c,d,u,f,b;return z(e,t),n=o.Util.za(t),a=n&&n.layoutId,l=o.Util.Aa(a),r=l?t.AlternateContent&&t.AlternateContent.Choice&&t.AlternateContent.Choice.GraphicalObjectFrame&&t.AlternateContent.Choice.GraphicalObjectFrame.nvGraphicFramePr:2===t.shapeType?t.nvGraphicFramePr:t.graphicFrame&&t.graphicFrame.nvGraphicFramePr,i=r&&r.cNvPr,s=G(e.charts,i.name,"chart"),c=t.chartSpace,d={name:s,chartSpace:c,isVisible:!i.hidden,alt:i.descr,AlternateContent:t.AlternateContent},de(t,e,d,t.xfrm),u=d.width,f=d.height,b=c.userShapes,b&&(c.userShapes=b.map(function(t){return t.pic?me(e,t,u,f):t.graphicFrame?he(e,t,u,f):void 0})),d}t.convertFromExcelChart=ue;function fe(e,t){var r,o=t.shapeData;return o.editAs=ne(t.dynamicMove,t.dynamicSize),o.clientData={fLocksWithSheet:t.isLocked,fPrintsWithSheet:t.canPrint},r=t.alt,r&&(o.sp?o.sp.nvSpPr.cNvPr.descr=r:o.cxnSp?o.cxnSp.nvCxnSpPr.cNvPr.descr=r:o.grpSp?o.grpSp.nvGrpSpPr.cNvPr.descr=r:o.pic&&(o.pic.nvPicPr.cNvPr.descr=r)),o}t.convertToExcelShape=fe;function be(e,t){var r,i=Z(e,t),n=t.isVisible,a=t.chartSpace,l={anchorType:0,startPoint:i.startPoint,endPoint:i.endPoint,editAs:i.editAs,graphicFrame:{nvGraphicFramePr:{cNvPr:{name:t.name,descr:t.alt||"",hidden:!o.J(n)&&!n}}},clientData:{fLocksWithSheet:t.isLocked,fPrintsWithSheet:t.canPrint},chartSpace:a,AlternateContent:t.AlternateContent},s=1,c=a.userShapes;return c&&c.length>0&&(r=c.map(function(e){var r;return"1"===e.typeName?(r=ge(e,s,t.width,t.height),s++):"2"===e.typeName&&(r=pe(e,s,t.width,t.height),s++),r}).filter(function(e){return!!e}),r.length>0?a.userShapes={relSizeAnchor:r}:delete a.userShapes),l}t.convertToExcelChart=be;function he(e,t,r,o){var i=t.graphicFrame&&t.graphicFrame.nvGraphicFramePr&&t.graphicFrame.nvGraphicFramePr.cNvPr&&t.graphicFrame.nvGraphicFramePr.cNvPr,n=G(e.charts,i.name,"chart"),a=oe(e,t,r,o),l={name:n,chartSpace:t.chartSpace,isVisible:!i.hidden,alt:i.descr};return A(a,l,["x","y","width","height"]),l}function pe(e,t,r,i){var n=ae(e,r,i),a=e.isVisible;return{typeName:e.typeName,anchorType:3,startPoint:n.startPoint,endPoint:n.endPoint,graphicFrame:{nvGraphicFramePr:{cNvPr:{name:e.name,descr:e.alt||"",hidden:!o.J(a)&&!a}}},chartSpace:e.chartSpace}}function me(e,t,r,o){var i,n,a,l,s,c=t.pic&&t.pic.nvPicPr&&t.pic.nvPicPr.cNvPr,d=c.name,u=e.floatingObjects;return u&&(d=G(u,d,"picture")),i=t.pic&&t.pic.blipFill,n=i&&i.blip&&i.blip.blipBlob,a=n&&n.blob,l={name:d,alt:c.descr,src:a,isVisible:!c.hidden},s=oe(e,t,r,o),A(s,l,["x","y","width","height"]),U(t.pictureFormat,l),l}function ge(e,t,r,o){var i,a,l=ae(e,r,o),s={typeName:e.typeName,anchorType:3,startPoint:l.startPoint,endPoint:l.endPoint,pic:{nvPicPr:{cNvPr:{name:e.name,descr:e.alt||""},cNvPicPr:{picLocks:{}}},spPr:{ln:{w:_(e.borderStyle)?0:e.borderWidth},prstGeom:{prst:1,avLst:{}}}},src:e.src},c=s.pic.spPr,d=c.ln,u=le(e.backColor);return u&&(c.solidFill=u),i=le(e.borderColor),i&&(d.solidFill=i),a=N(e.borderStyle),"dbl"===a?d.cmpd=n.Charts.ST_CompoundLine[a]:d.prstDash=n.Charts.ST_PresetLineDashVal[a],s}function ye(e,t){return!(!e||!t||e.color!==t.color||e.type!==t.type)||!e&&!t}t.isBorderEqual=ye,b={backColor:2,foreColor:0,borderBottom:1,borderLeft:1,borderRight:1,borderTop:1,font:0,textDecoration:0};function Se(e,t){var r,i={};for(r in e)e.hasOwnProperty(r)&&(0===b[r]?e[r]!==t[r]&&(i[r]=e[r]):1===b[r]?ye(e[r],t[r])||(i[r]=e[r]):2===b[r]?o.Util.Da(e[r],t[r])||(i[r]=e[r]):i[r]=e[r]);return i}t.processTableCellStyle=Se;function Ce(e,t){var r,o={};for(r in e)e.hasOwnProperty(r)&&(o[r]=e[r]);for(r in b)void 0===e[r]&&void 0!==t[r]&&(o[r]=t[r]);return o}t.resetTableCellStyle=Ce;function we(e,t){var r,o="png",i=e.lastIndexOf(".");return i!==-1&&(o=e.substr(i+1)),"svg"===o&&(o="svg+xml"),r=t(e,!0),r?"data:image/"+o+";base64,"+r:l}t.getImageContent=we;function xe(e){return JSON.parse(JSON.stringify(e))}function Ae(e){var t=e.sp||e.cxnSp||e.grpSp;return t&&(t.spPr&&t.spPr.xfrm||t.grpSpPr&&t.grpSpPr.xfrm)}t.getXFrm=Ae;function Te(e,t){if(e&&5===e.shapeType){var r=t[e.nvSpPr.cNvPr.id];r&&(e.shapeType=7,e.control=r)}}function ve(e,t){var r=e&&e.sp||[];r.forEach(function(e){5===e.shapeType?Te(e,t):3===e.shapeType&&ve(e,t)})}function ke(e,t){var r,o,i={},n=e.controls||{};return de(t,e,i),t.sp?(Te(t.sp,n),i.shapeType=t.sp.shapeType,i.name=t.sp.nvSpPr.cNvPr.name,i.alt=t.sp.nvSpPr.cNvPr.descr,i.shapeData=xe(t)):t.cxnSp?(i.shapeType=t.cxnSp.shapeType,i.name=t.cxnSp.nvCxnSpPr.cNvPr.name,i.alt=t.cxnSp.nvCxnSpPr.cNvPr.descr,i.shapeData=xe(t)):t.grpSp?(ve(t.grpSp,n),i.shapeType=t.grpSp.shapeType,i.name=t.grpSp.nvGrpSpPr.cNvPr.name,i.alt=t.grpSp.nvGrpSpPr.cNvPr.descr,i.shapeData=xe(t)):t.pic&&(r=t.pic,i.shapeType=r.shapeType,i.name=r.nvPicPr.cNvPr.name,i.alt=r.nvPicPr.cNvPr.descr,i.shapeData=xe(t)),o=i.shapeData,o&&o.hidden&&(o.isVisible=!1,i.isVisible=!1,delete o.hidden),i}t.convertFromExcelShape=ke,t.toProtectionOptions={selectLockedCells:"allowSelectLockedCells",selectUnlockedCells:"allowSelectUnlockedCells",autoFilter:"allowFilter",sort:"allowSort",insertColumns:"allowInsertColumns",insertRows:"allowInsertRows",deleteColumns:"allowDeleteColumns",deleteRows:"allowDeleteRows",objects:"allowEditObjects"},t.fromProtectionOptions={allowSelectLockedCells:"selectLockedCells",allowSelectUnlockedCells:"selectUnlockedCells",allowFilter:"autoFilter",allowSort:"sort",allowInsertColumns:"insertColumns",allowInsertRows:"insertRows",allowDeleteColumns:"deleteColumns",allowDeleteRows:"deleteRows",allowEditObjects:"objects"},t.excelSupportProtectionOptions={formatCells:!0,formatColumns:!0,formatRows:!0,insertColumns:!0,insertRows:!0,insertHyperlinks:!0,deleteColumns:!0,deleteRows:!0,sort:!0,autoFilter:!0,pivotTables:!0};function Fe(e){return Ee(e)?(e>4294934530&&e<4294967296&&(e-=4294967296),e):e}t.convertFirstPageNumber=Fe;function Re(e){return Ee(e)?(e<0&&(e+=4294967296),e):e}t.convertFirstPageNumberToExcel=Re;function Ee(e){return"string"==typeof e&&(e=+e),!(isNaN(e)||!isFinite(e))}},"./src/datamodel/excel-style.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S,C,w,x,A,T,v,k,F,R,E,I,L,D,B,P,W,_,N,M,O,H,G;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/common/builtIn-resource.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/xml-io/xml-reader.ts"),l=r("./src/xlsx-io/reader/style-reader.ts"),s=null,c=void 0,d="Headings",u="Body",f="Calibri",b="bold",h="italic",function(e){e[e.none=0]="none",e[e.major=1]="major",e[e.minor=2]="minor",e[e.ninched=255]="ninched"}(p=t.FontSchemeCategory||(t.FontSchemeCategory={})),function(e){e[e.top=0]="top",e[e.center=1]="center",e[e.bottom=2]="bottom",e[e.justify=3]="justify",e[e.distributed=4]="distributed"}(m=t.ExcelVerticalAlignment||(t.ExcelVerticalAlignment={})),function(e){e[e.general=0]="general",e[e.left=1]="left",e[e.center=2]="center",e[e.right=3]="right",e[e.fill=4]="fill",e[e.justify=5]="justify",e[e.centerContinuous=6]="centerContinuous",e[e.distributed=7]="distributed"}(g=t.ExcelHorizontalAlignment||(t.ExcelHorizontalAlignment={})),function(e){e[e.accordingToContext=0]="accordingToContext",e[e.leftToRight=1]="leftToRight",e[e.rightToLeft=2]="rightToLeft"}(y=t.TextDirection||(t.TextDirection={})),function(e){e[e.none=0]="none",e[e.single=1]="single",e[e.double=2]="double",e[e.singleaccounting=3]="singleaccounting",e[e.doubleaccounting=4]="doubleaccounting"}(S=t.UnderLineStyle||(t.UnderLineStyle={})),function(e){e[e.baseLine=0]="baseLine",e[e.superscript=1]="superscript",e[e.subscript=2]="subscript"}(C=t.VertAlign||(t.VertAlign={})),function(e){e[e.none=0]="none",e[e.thin=1]="thin",e[e.medium=2]="medium",e[e.dashed=3]="dashed",e[e.dotted=4]="dotted",e[e.thick=5]="thick",e[e.double=6]="double",e[e.hair=7]="hair",e[e.mediumDashed=8]="mediumDashed",e[e.dashDot=9]="dashDot",e[e.mediumDashDot=10]="mediumDashDot",e[e.dashDotDot=11]="dashDotDot",e[e.mediumDashDotDot=12]="mediumDashDotDot",e[e.slantDashDot=13]="slantDashDot"}(w=t.ExcelBorderStyle||(t.ExcelBorderStyle={})),function(e){e[e.none=0]="none",e[e.solid=1]="solid",e[e.darkGray=2]="darkGray",e[e.mediumGray=3]="mediumGray",e[e.lightGray=4]="lightGray",e[e.gray125=5]="gray125",e[e.gray0625=6]="gray0625",e[e.darkHorizontal=7]="darkHorizontal",e[e.darkVertical=8]="darkVertical",e[e.darkDown=9]="darkDown",e[e.darkUp=10]="darkUp",e[e.darkGrid=11]="darkGrid",e[e.darkTrellis=12]="darkTrellis",e[e.lightHorizontal=13]="lightHorizontal",e[e.lightVertical=14]="lightVertical",e[e.lightDown=15]="lightDown",e[e.lightUp=16]="lightUp",e[e.lightGrid=17]="lightGrid",e[e.lightTrellis=18]="lightTrellis"}(x=t.FillPatternType||(t.FillPatternType={})),A=function(){function e(e,t,r){var o=this;if(3===e&&t>11&&241!==t&&242!==t&&243!==t&&244!==t&&255!==t)throw Error("themeColorIndexError");if(r>1||r<-1)throw Error("colorTintError");1===e&&32767===t&&(o.Vj=!0),o.Wj=e||2,o.Xj=t||0,o.Yj=r||0}return e.prototype.colorType=function(){return this.Wj},e.prototype.value=function(){return this.Xj},e.prototype.tint=function(){return this.Yj},e.prototype.isAutoColor=function(e){var t=this;return 0===arguments.length?t.Vj:void("boolean"==typeof e&&e!==t.Vj&&(t.Vj=e))},e.prototype.isIndexedColor=function(){return 1===this.Wj},e.prototype.isRGBColor=function(){return 2===this.Wj},e.prototype.isThemeColor=function(){return 3===this.Wj},e.prototype.equals=function(e){return this===e||!!e&&(this.Wj===e.colorType()&&this.value()===e.value()&&this.tint()===e.tint()&&this.isAutoColor()===e.isAutoColor())},e.EmptyColor=new e,e}(),t.ExcelColor=A,T=function(){function e(e,t){this.color=e||null,this.lineStyle=t||0}return e.prototype.equals=function(e){var t=this;return t===e||!!e&&(t.color?t.color.equals(e.color)&&t.lineStyle===e.lineStyle:!e.color&&t.lineStyle===e.lineStyle)},e.prototype.isDefault=function(){return null===this.color&&0===this.lineStyle},e}(),t.ExcelBorderSide=T,v=function(){function e(){var e=this;e.left=new T,e.top=new T,e.right=new T,e.bottom=new T,e.diagonalUp=new T,e.diagonalDown=new T}return e.prototype.clone=function(){var t=this,r=new e;return r.left=t.left?new T(t.left.color,t.left.lineStyle):t.left,r.right=t.right?new T(t.right.color,t.right.lineStyle):t.right,r.top=t.top?new T(t.top.color,t.top.lineStyle):t.top,r.bottom=t.bottom?new T(t.bottom.color,t.bottom.lineStyle):t.bottom,r.diagonalUp=t.diagonalUp?new T(t.diagonalUp.color,t.diagonalUp.lineStyle):t.diagonalUp,r.diagonalDown=t.diagonalDown?new T(t.diagonalDown.color,t.diagonalDown.lineStyle):t.diagonalDown,r},e.prototype.compose=function(e){var t=this;t.left&&t.left.isDefault()&&(t.left=e.left),t.right&&t.right.isDefault()&&(t.right=e.right),t.top&&t.top.isDefault()&&(t.top=e.top),t.bottom&&t.bottom.isDefault()&&(t.bottom=e.bottom),t.diagonalUp&&t.diagonalUp.isDefault()&&(t.diagonalUp=e.diagonalUp),t.diagonalDown&&t.diagonalDown.isDefault()&&(t.diagonalDown=e.diagonalDown)},e.prototype.equals=function(e){var t=this;return t===e||!!e&&(t.left.equals(e.left)&&t.right.equals(e.right)&&t.top.equals(e.top)&&t.bottom.equals(e.bottom)&&t.diagonalUp.equals(e.diagonalUp)&&t.diagonalDown.equals(e.diagonalDown));
|
29
29
|
},e}(),t.ExcelBorder=v,k=function(){function e(){}return e.prototype.clone=function(){var t=this,r=new e;return r.bgColor=t.bgColor,r.fgColor=t.fgColor,r.patternType=t.patternType,r.stops=t.stops,r.type=t.type,r.degree=t.degree,r.left=t.left,r.right=t.right,r.top=t.top,r.bottom=t.bottom,r},e.prototype.compose=function(e){var t=this;t.bgColor===c&&(t.bgColor=e.bgColor),t.fgColor===c&&(t.fgColor=e.fgColor),t.patternType===c&&(t.patternType=e.patternType),t.stops===c&&(t.stops=e.stops),t.type===c&&(t.type=e.type),t.degree===c&&(t.degree=e.degree),t.left===c&&(t.left=e.left),t.right===c&&(t.right=e.right),t.top===c&&(t.top=e.top),t.bottom===c&&(t.bottom=e.bottom)},e.prototype.equals=function(e){var t=this;return t===e||!!e&&JSON.stringify(t)===JSON.stringify(e)},e.Default=function(){return e.Zj||(e.Zj=new e,e.Zj.bgColor=c,e.Zj.fgColor=c,e.Zj.patternType=0),e.Zj},e}(),t.ExcelFill=k,F=function(){function e(e,t,r){var o=this;void 0!==t?o.fontColor=t:o.fontColor=null,void 0!==e?o.fontName=e:o.fontName=null,void 0!==r?o.fontFamily=r:o.fontFamily=0,o.isAutoColor=!1,o.isBold=!1,o.isItalic=!1,o.isOutlineStyle=!1,o.isShadowStyle=!1,o.isStrikeOut=!1,o.fontScheme=0,o.fontSize=11,o.charSetIndex=0,o.underLineStyle=0,o.vertAlign=0,o.Zj=null}return e.prototype.equals=function(e){var t,r=this;return r===e||!!e&&(t=r.isBold===e.isBold&&r.isItalic===e.isItalic&&this.isOutlineStyle===e.isOutlineStyle&&this.isShadowStyle===e.isShadowStyle&&this.isStrikeOut===e.isStrikeOut&&this.fontName===e.fontName&&this.fontFamily===e.fontFamily&&this.fontSize===e.fontSize&&this.charSetIndex===e.charSetIndex&&this.underLineStyle===e.underLineStyle&&this.vertAlign===e.vertAlign&&this.fontScheme===e.fontScheme,!!t&&(!r.fontColor&&!e.fontColor||!(!r.fontColor&&e.fontColor)&&(!(r.fontColor&&!e.fontColor)&&r.fontColor.equals(e.fontColor))))},e.prototype.clone=function(){var t=this,r=new e(t.fontName,t.fontColor,t.fontFamily);return r.isAutoColor=t.isAutoColor,r.isBold=t.isBold,r.isItalic=t.isItalic,r.isOutlineStyle=t.isOutlineStyle,r.isShadowStyle=t.isShadowStyle,r.isStrikeOut=t.isStrikeOut,r.fontScheme=t.fontScheme,r.fontSize=t.fontSize,r.charSetIndex=t.charSetIndex,r.underLineStyle=t.underLineStyle,r.vertAlign=t.vertAlign,r.fontColor=t.fontColor,r},e.prototype.Default=function(){var t=this;return t.Zj||(t.Zj=new e,t.Zj.fontSize=11,t.Zj.fontFamily=2,t.Zj.fontColor=new A(1,0,0),t.Zj.fontName="Calibri",t.Zj.charSetIndex=0),t.Zj},e.prototype.compose=function(e){var t=this;null===t.fontColor&&(t.fontColor=e.fontColor),null===t.fontName&&(t.fontName=e.fontName),0===t.fontFamily&&(t.fontFamily=e.fontFamily),t.isAutoColor===!1&&(t.isAutoColor=e.isAutoColor),t.isBold===!1&&(t.isBold=e.isBold),t.isItalic===!1&&(t.isItalic=e.isItalic),t.isOutlineStyle===!1&&(t.isOutlineStyle=e.isOutlineStyle),t.isShadowStyle===!1&&(t.isShadowStyle=e.isShadowStyle),t.isStrikeOut===!1&&(t.isStrikeOut=e.isStrikeOut),0===t.fontScheme&&(t.fontScheme=e.fontScheme),11===t.fontSize&&(t.fontSize=e.fontSize),0===t.charSetIndex&&(t.charSetIndex=e.charSetIndex),0===t.underLineStyle&&(t.underLineStyle=e.underLineStyle),0===t.vertAlign&&(t.vertAlign=e.vertAlign),null===t.Zj&&(t.Zj=e.Zj)},e}(),t.ExcelFont=F,R=function(){function e(e,t){this.numberFormatId=e,this.numberFormatCode=t}return e.prototype.equals=function(e){var t=this;return t===e||!!e&&(t.numberFormatId===e.numberFormatId&&t.numberFormatCode===e.numberFormatCode)},e.prototype.compose=function(e){var t=this;t.numberFormatId===c&&(t.numberFormatId=e.numberFormatId),t.numberFormatCode===c&&(t.numberFormatCode=e.numberFormatCode)},e.prototype.clone=function(){var t=this;return new e(t.numberFormatId,t.numberFormatCode)},e}(),t.ExcelNumerFormat=R,E=function(){function e(){var e=this;e.font=(new F).Default(),e.border=new v,e.applyAlignment=c,e.applyBorder=c,e.applyFill=c,e.applyFont=c,e.applyNumberFormat=c,e.applyProtection=c,e.quotePrefix=c,e.fill=k.Default(),e.numberFormatIndex=0,e.numberFormat=c,e.isStyleFormat=!1,e.parentFormatID=c,e.parentName=c,e.horizontalAlign=0,e.verticalAlign=0,e.isLocked=!1,e.rotation=0,e.isWordWrap=!1,e.isJustfyLastLine=!1,e.isShrinkToFit=!1,e.isFirstSymbolApostrophe=!1,e.readingOrder=0,e.isHidden=!1,e.indent=0,e.isVerticalText=!1}return e.Default=function(){var t=new e;return t.numberFormatIndex=0,t.isLocked=!0,t.verticalAlign=2,t.horizontalAlign=0,t},e.prototype.copyFrom=function(e){var t=this;t.applyAlignment=e.applyAlignment,t.applyBorder=e.applyBorder,t.applyFill=e.applyFill,t.applyFont=e.applyFont,t.applyNumberFormat=e.applyNumberFormat,t.applyProtection=e.applyProtection,t.fill=null!==e.fill?e.fill.clone():null,t.border=null!==e.border?e.border.clone():null,t.font=null!==e.font?e.font.clone():null,t.numberFormatIndex=e.numberFormatIndex,t.numberFormat=e.numberFormat,t.isStyleFormat=e.isStyleFormat,t.parentFormatID=e.parentFormatID,t.horizontalAlign=e.horizontalAlign,t.verticalAlign=e.verticalAlign,t.isLocked=e.isLocked,t.rotation=e.rotation,t.isWordWrap=e.isWordWrap,t.isJustfyLastLine=e.isJustfyLastLine,t.isShrinkToFit=e.isShrinkToFit,t.isFirstSymbolApostrophe=e.isFirstSymbolApostrophe,t.readingOrder=e.readingOrder,t.isHidden=e.isHidden,t.indent=e.indent,t.quotePrefix=e.quotePrefix},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.prototype.equals=function(e,t,r){var o,i=this;if(i===e)return!0;if(!e)return!1;if(!i.numberFormat&&e.numberFormat)return!1;if(o=i.numberFormatIndex===e.numberFormatIndex&&i.horizontalAlign===e.horizontalAlign&&i.verticalAlign===e.verticalAlign&&i.isLocked===e.isLocked&&i.rotation===e.rotation&&i.isWordWrap===e.isWordWrap&&i.isJustfyLastLine===e.isJustfyLastLine&&i.isShrinkToFit===e.isShrinkToFit&&i.isFirstSymbolApostrophe===e.isFirstSymbolApostrophe&&i.readingOrder===e.readingOrder&&i.isHidden===e.isHidden&&i.indent===e.indent&&i.parentFormatID===e.parentFormatID&&i.quotePrefix===e.quotePrefix&&i.border.equals(e.border)&&i.isVerticalText===e.isVerticalText,t||(o=o&&i.parentName===e.parentName),r||(o=o&&i.applyAlignment===e.applyAlignment&&i.applyBorder===e.applyBorder&&i.applyFill===e.applyFill&&i.applyFont===e.applyFont&&i.applyNumberFormat===e.applyNumberFormat&&i.applyProtection===e.applyProtection),i.font)o=o&&i.font.equals(e.font);else if(e.font)return!1;if(i.numberFormat&&(o=o&&i.numberFormat.equals(e.numberFormat)),i.fill)o=o&&i.fill.equals(e.fill);else if(e.fill)return!1;return o},e}(),t.ExtendedFormat=E,I=function(){function e(){this.$j=null,this.builtInStyle=0,this.category=0,this.isCustomBuiltin=!1,this.name=null,this.outLineLevel=0}return e.prototype.format=function(e){var t=this;return 0===arguments.length?(null===t.$j&&(t.$j=new E),t.$j):void(t.$j=e)},e.prototype.copy=function(){var t=this,r=new e;return r.builtInStyle=t.builtInStyle,r.outLineLevel=t.outLineLevel,r.isCustomBuiltin=t.isCustomBuiltin,r.category=t.category,r.name=t.name,r.format(t.format().clone()),r},e.prototype.isBuiltInStyle=function(){return!0},e.prototype.getBuiltInStyleCategory=function(){var e=this;if(!e.isBuiltInStyle())return 0;switch(e.builtInStyle){case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 2:case 1:return 4;case 24:return 1;case 19:return 2;case 20:return 2;case 3:case 6:case 4:case 7:return 5;case 49:return 2;case 23:return 1;case 13:case 14:case 15:case 16:return 3;case 17:return 2;case 21:return 2;case 25:return 1;case 0:return 1;case 10:case 18:return 2;case 5:return 5;case 12:case 22:return 3;case 11:return 2;default:return 0}},e}(),t.ExcelStyle=I,L=function(){function e(){this.$j=null,this.name=null}return e.prototype.format=function(e){var t=this;return 0===arguments.length?(null===t.$j&&(t.$j=new E),t.$j):(t.$j=e,this)},e.prototype.copy=function(){var t=new e;return t.name=this.name,t.format(this.format().clone()),t},e.prototype.isBuiltInStyle=function(){return!1},e}(),t.CustomExcelStyle=L,D=function(){function e(){}return e.initBuiltInExcelStyleCollections=function(){var t,r,o,n,s,c,d,u;if(e.builtInStyles.length=0,t=i.BuiltInStylesResource)for(r=new a.XmlReader,r.reset(),r.setXml(t),o=[],n=[],s=[],c=[],d={};r.read();)if(1===r.depth&&2!==r.elementType)switch(r.name()){case"numFmts":l.readNumberFormats(r,d);break;case"fonts":l.readFonts(r,o);break;case"fills":l.readFills(r,n);break;case"borders":l.readBorders(r,s);break;case"cellStyleXfs":l.readXFs(r,c,o,s,d,n,!0);break;case"cellStyles":for(u=r.depth;r.read();){if(r.depth<=u)return;1===r.nodeType()&&"cellStyle"===r.name()&&U(r,c,d)}}},e.getBuiltInStyles=function(){var t,r,o=e.builtInStyles.length;for(47!==o&&e.initBuiltInExcelStyleCollections(),t=[],o=e.builtInStyles.length,r=0;r<o;r++)t.push(e.builtInStyles[r].copy());return t},e.getNormalStyle=function(){var e,t=new E;return t.font=new F,t.font.fontColor=new A(3,1),t.font.fontSize=11,t.font.fontName="Calibri",e=new I,e.format(t),e.name="Normal",e.builtInStyle=0,e},e.builtInStyles=[],e}(),t.BuiltInExcelStyles=D;function U(e,t,r){for(var o,i,n=c,a=0,l=0;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"name":n=e.readContentAsString();break;case"xfId":a=e.readContentAsInt(0);break;case"builtinId":l=e.readContentAsInt(0)}o=t[a],o.isStyleFormat=!0,i=new I,i.name=n,i.format(o.clone()),!i.format().numberFormat&&r[i.format().numberFormatIndex]&&(i.format().numberFormat=r[i.format().numberFormatIndex],i.format().numberFormatIndex=0),i.isCustomBuiltin=!1,i.builtInStyle=l,i.category=i.getBuiltInStyleCategory(),D.builtInStyles.push(i)}B=function(){function e(){}return e.builtInNumberFomrat=function(){return e._j||(e._j={count:0}),0===e._j.count&&e.initBuintNumberFormat(),e._j},e.languageIndepedentNumberFormat=function(){return e.ak||(e.ak={count:0}),0===e.ak.count&&e.initLanguageIndepedentNumberFormat(),e.ak},e.formatCodeTable=function(){return e.ck||(e.ck=[]),e.ck},e.customNumberFormat=function(){return e.dk||(e.dk={count:0}),e.dk},e.getCultureInfo=function(){var e=o.K(),t=e&&e.GC&&e.GC.Spread&&e.GC.Spread.Common&&o.K().GC.Spread.Common.CultureManager.getCultureInfo();return t||o.Ga()},e.initBuintNumberFormat=function(){var t,r,i,n,a,l,s,c=e._j;if(c[0]="General",c[1]="0",c[2]="0.00",c[3]="#,##0",c[4]="#,##0.00",c[9]="0%",c[10]="0.00%",c[11]="0.00E+00",c[12]="# ?/?",c[13]="# ??/??",c[14]="m/d/yyyy",c[15]="d-mmm-yy",c[16]="d-mmm",c[17]="mmm-yy",c[18]="h:mm AM/PM",c[19]="h:mm:ss AM/PM",c[20]="h:mm",c[21]="h:mm:ss",c[22]="m/d/yyyy h:mm",c[37]="#,##0_);(#,##0)",c[38]="#,##0_);[Red](#,##0)",c[39]="#,##0.00_);(#,##0.00)",c[40]="#,##0.00_);[Red](#,##0.00)",c[45]="mm:ss",c[46]="[h]:mm:ss",c[47]="mm:ss.0",c[48]="##0.0E+0",c[49]="@",c.count=49,o.Fa())if(t=o.Fa(),"zh-cn"===t)c[14]="yyyy/m/d",c[17]="mmm-yy",c[22]="yyyy/m/d h:mm",c[27]='yyyy"\u5e74"m"\u6708"',c[28]='m"\u6708"d"\u65e5"',c[29]='m"\u6708"d"\u65e5"',c[30]="m-d-yy",c[31]='yyyy"\u5e74"m"\u6708"d"\u65e5"',c[32]='h"\u65f6"mm"\u5206"',c[33]='h"\u65f6"mm"\u5206"ss"\u79d2"',c[34]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"',c[35]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2"',c[36]='yyyy"\u5e74"m"\u6708"',c[39]="#,##0.00;-#,##0.00",c[40]="#,##0.00;[Red]-#,##0.00",c[50]='yyyy"\u5e74"m"\u6708"',c[51]='m"\u6708"d"\u65e5"',c[52]='yyyy"\u5e74"m"\u6708"',c[53]='m"\u6708"d"\u65e5"',c[54]='m"\u6708"d"\u65e5"',c[55]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"',c[56]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2"',c[57]='yyyy"\u5e74"m"\u6708"',c[58]='m"\u6708"d"\u65e5"',c.count=58;else if("ja-jp"===t)c[14]="yyyy/m/d",c[15]="dd-mmm-yy",c[16]="dd-mmm",c[17]="mmm-yy",c[22]="yyyy/mm/dd h:mm",c[27]="[$-411]ge.m.d",c[28]='[$-411]ggge"\u5e74"m"\u6708"d"',c[29]='[$-411]ggge"\u5e74"m"\u6708"d"',c[30]="m/d/yy",c[31]='yyyy"\u5e74"m"\u6708"d"\u65e5"',c[32]='h"\u6642"mm"\u5206"',c[33]='h"\u6642"mm"\u5206"ss"\u79d2"',c[34]='yyyy"\u5e74"m"\u6708"',c[35]='m"\u6708"d"\u65e5"',c[36]="[$-411]ge.m.d",c[38]="#,##0;[Red]-#,##0",c[39]="#,##0.00;-#,##0.00",c[40]="#,##0.00;[Red]-#,##0.00",c[50]="[$-411]ge.m.d",c[51]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',c[52]='yyyy"\u5e74"m"\u6708"',c[53]='m"\u6708"d"\u65e5"',c[54]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',c[55]='yyyy"\u5e74"m"\u6708"',c[56]='m"\u6708"d"\u65e5"',c[57]="[$-411]ge.m.d",c[58]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',c.count=58;else{if(r=e.getCultureInfo(),i=r&&r.LocalNumberFormat,o.isNullOrUndefined(i)||Array.isArray(i)||"object"!=typeof i)return;for(n in i)isNaN(+n)||(a=i[n],o.Util.Ca(a)&&(c[n]=i[n]));l=0;for(n in c)isNaN(+n)||(s=+n,s>l&&(l=s));c.count=l}},e.initLanguageIndepedentNumberFormat=function(){var t=e.ak;t[27]="m/d/yyyy",t[28]="m/d/yyyy",t[29]="m/d/yyyy",t[30]="m/d/yyyy",t[31]="m/d/yyyy",t[32]="h:mm:ss",t[33]="h:mm:ss",t[34]="m/d/yyyy",t[35]="m/d/yyyy",t[36]="m/d/yyyy",t[50]="m/d/yyyy",t[51]="m/d/yyyy",t[52]="m/d/yyyy",t[53]="m/d/yyyy",t[54]="m/d/yyyy",t[55]="m/d/yyyy",t[56]="m/d/yyyy",t[57]="m/d/yyyy",t[58]="m/d/yyyy"},e.getFormatCode=function(t){var r,o,i,n=e.builtInNumberFomrat(),a=e.customNumberFormat(),l=e.languageIndepedentNumberFormat(),s=t.numberFormatIndex;return t.numberFormat?(r=t.numberFormat,o=r.numberFormatId,i=r.numberFormatCode,n[o]&&n[o]!==i?(n[o]=i,i):(a[i]||(a[i]=o,a.count++),i)):n[s]?n[s]:l[s]?l[s]:"General"},e.getFormatId=function(t){var r,o,i,n,a,l,s,c=e.ek();if(c[t])return c[t];if(o=e.builtInNumberFomrat())for(i in o)if(o[i]===t)return r={isBuiltIn:!0,id:parseInt(i,10)},c[t]=r,r;if(n=e.customNumberFormat(),n&&n[t])return r={isBuiltIn:!1,id:n[t]},c[t]=r,r;if(a=0,n.count>0){l=0;for(s in n)n[s]>l&&(l=n[s]);a=l}return a=Math.max(e.fk,a)+1,e.fk++,n[t]=a,r={isBuiltIn:!1,id:a}},e.ek=function(){return e.gk||(e.gk={}),e.gk},e.ck=null,e.gk=null,e._j={count:0},e.ak={count:0},e.dk={count:0},e.fk=170,e}(),t.ExtendedNumberFormatHelper=B;function J(e,t){var r=Math.pow(10,t);return Math.round(e*r)/r}P=function(){function e(){}return e.pointToPixel=function(e,t){return void 0===t&&(t=2),J(96*e/72,t)},e.pixelToPoint=function(e){return 72*e/96},e.emuToPixles=function(e,t){return J(96*e/914400,t||2)},e.pixelToEMU=function(e){return Math.round(914400*e/96)},e.getMaxiumDigitWidth=function(t){var r,o,i,a,l,s,c=0,d=e.hk();if(d[t])return d[t];try{if(e.ik||(e.ik=document.createElement("span")),r=e.ik,r.style.font=t,o=r.style.fontSize,o.indexOf("px")!==-1?o=Math.round(e.pixelToPoint(parseFloat(o))):o.indexOf("pt")!==-1&&(o=Math.round(parseFloat(o))),!isNaN(o)&&o||(o=Math.round(e.pixelToPoint(parseFloat(t.match(/(\d|\.)+/))))),i=r.style.fontFamily,i||t.split(" ").forEach(function(e){"normal"!==e&&"italic"!==e&&"bold"!==e&&e.indexOf("px")===-1&&e.indexOf("pt")===-1&&isNaN(e)&&(i=e)}),n.unknownFontMaxDigitWidthMap[o]&&n.unknownFontMaxDigitWidthMap[o][i]?c=n.unknownFontMaxDigitWidthMap[o][i]:n.MaxDigitWidthMap[o]&&n.MaxDigitWidthMap[o][i]&&(c=n.MaxDigitWidthMap[o][i]),c>0)return c=Math.round(c),d[t]=c,c}catch(e){}for(a="0123456789",l=0,s=0;s<a.length;s++)l=e.measureText(a.charAt(s),t),l>c&&(c=l);return c>0?(c=Math.round(c),d[t]=c,c):(d[t]=7,d[t])},e.truncate=function(e){return Math.floor(e)},e.hk=function(){return e.jk||(e.jk={}),e.jk},e.measureText=function(t,r){var o,i;function n(){return e.kk||(e.kk=document.createElement("canvas")),e.kk}try{return o=n(),i=o.getContext("2d"),i.font=r,i.measureText(t).width}catch(e){return 8}},e.ik=null,e.jk=null,e.kk=null,e}(),t.UnitHelper=P,W=function(){function e(e,t,r,o){var i=this;i.a=e,i.r=t,i.g=r,i.b=o}return e.prototype.toString=function(){var e=this;return 255===e.a?"#"+e.getColorUnitString(e.r)+e.getColorUnitString(e.g)+e.getColorUnitString(e.b):"rgba("+e.r+","+e.g+","+e.b+","+e.a+")"},e.prototype.getColorUnitString=function(e){var t=e.toString(16);return 1===t.length&&(t="0"+t),t},e.hueToRGB=function(e,t,r){return r<0&&(r+=240),r>240&&(r-=240),r<40?e+((t-e)*r+20)/40:r<120?t:r<160?e+((t-e)*(160-r)+20)/40:e},e.fromHLS=function(t,r,o){var i,n,a,l,s;return 0===o?i=n=a=parseInt(255*r/240,10):(l=void 0,s=void 0,s=r<=120?(r*(240+o)+120)/240:r+o-(r*o+120)/240,l=2*r-s,i=parseInt((255*e.hueToRGB(l,s,t+80)+120)/240,10),n=parseInt((255*e.hueToRGB(l,s,t)+120)/240,10),a=parseInt((255*e.hueToRGB(l,s,t-80)+120)/240,10)),new e(255,i,n,a)},e}(),t.lk=W,_=function(){function e(e){var t,r,o,i,n=this,a=e.r,l=e.g,s=e.b,c=Math.max(Math.max(a,l),s),d=Math.min(Math.min(a,l),s),u=c+d;n.luminosity=parseInt(""+(240*u+255)/510,10),t=c-d,0===t?(n.saturation=0,n.hue=160):(n.luminosity<=120?n.saturation=parseInt(""+(240*t+u/2)/u,10):n.saturation=parseInt(""+(240*t+(510-u)/2)/(510-u),10),r=(40*(c-a)+t/2)/t,o=(40*(c-l)+t/2)/t,i=(40*(c-s)+t/2)/t,a===c?n.hue=parseInt(""+(i-o),10):l===c?n.hue=parseInt(""+(80+r-i),10):n.hue=parseInt(""+(160+o-r),10),n.hue<0&&(n.hue+=240),n.hue>240&&(n.hue-=240))}return e.prototype.toColor=function(){return W.fromHLS(this.hue,this.luminosity,this.saturation)},e}(),N=function(){function e(){}return e.getThemeColorName=function(e){if(!e||3!==e.colorType())return null;var t=Math.round(100*e.tint());return 0===e.value()||243===e.value()?"Background 1 "+t:1===e.value()||241===e.value()?"Text 1 "+t:2===e.value()||244===e.value()?"Background 2 "+t:3===e.value()||242===e.value()?"Text 2 "+t:4===e.value()?"Accent 1 "+t:5===e.value()?"Accent 2 "+t:6===e.value()?"Accent 3 "+t:7===e.value()?"Accent 4 "+t:8===e.value()?"Accent 5 "+t:9===e.value()?"Accent 6 "+t:10===e.value()?"hyperlink":11===e.value()?"followedHyperlink":null},e.getThemeColorIndex=function(e,t){return"Background 1"===e.substring(0,12)?t?243:0:"Text 1"===e.substring(0,6)?t?241:1:"Background 2"===e.substring(0,12)?t?244:2:"Text 2"===e.substring(0,6)?t?242:3:"Accent 1"===e.substring(0,8)?4:"Accent 2"===e.substring(0,8)?5:"Accent 3"===e.substring(0,8)?6:"Accent 4"===e.substring(0,8)?7:"Accent 5"===e.substring(0,8)?8:"Accent 6"===e.substring(0,8)?9:"hyperlink"===e?10:"followedHyperlink"===e?11:void 0},e.mk=function(){return e.nk||(e.nk={}),e.nk},e.getExcelThemeColor=function(t){var r,i,n,a;return o.StringEx.L(t)?A.EmptyColor:(r=e.mk(),r[t]?r[t]:(i=0,n=t.split(" "),n.length>=3&&(i=parseFloat(n[2]),isNaN(i)||(i/=100)),a=new A(3,e.getThemeColorIndex(t),i),r[t]=a,a))},e.toRGBColor=function(t){return t?""+e.getRGBColor(t):null},e.colorFromIndex=function(t,r){var o,i,n,a;return 32767===t?new W(0,0,0,0):t<0||t>=e.palette.length?new W(255,0,0,0):e.useCustomPalette?e.customPalette[t]!==c?e.customPalette[t]:64===t?new W(255,0,0,0):65===t?new W(255,255,255,255):new W(0,255,255,255):(o=e.palette[t],i=o>>16&255,n=o>>8&255,a=255&o,new W(r,i,n,a))},e.updateTint=function(e,t){var r,o,i;return 0===t?e:(r=new _(e),t>0?(o=240-r.luminosity,i=o*t,W.fromHLS(r.hue,r.luminosity+i,r.saturation)):(i=r.luminosity*-t,W.fromHLS(r.hue,r.luminosity-i,r.saturation)))},e.getRGBColor=function(t){var r,o;return null===t||t===c?new W(0,255,255,255):t.isAutoColor()?new W(255,0,0,0):t.isIndexedColor()?(r=e.colorFromIndex(0|t.value(),255),e.updateTint(r,t.tint())):t.isRGBColor()?(o=(16777215&t.value())+4278190080,r=e.fromArgb(o),e.updateTint(r,t.tint())):t.isThemeColor()?e.getThemeColorName(t):new W(0,255,255,255)},e.fromArgb=function(e){return new W(e>>24&255,e>>16&255,e>>8&255,255&e)},e.getRGBAColorData=function(t){var r=e.fromArgb(t.value());return{rgb:r.getColorUnitString(r.r)+r.getColorUnitString(r.g)+r.getColorUnitString(r.b),alpha:r.a}},e.pk=function(){return e.qk||(e.qk={}),e.qk},e.fromHtmlColor=function(t){var r,o,i,n,a,l;if(t)return"string"!=typeof t?t:(r=e.pk(),r[t]?r[t]:(o=t.toLowerCase(),"#"===o.substring(0,1)?(7===o.length?o="#ff"+o.substring(1):4===o.length&&(o="#ff"+o[1]+o[1]+o[2]+o[2]+o[3]+o[3]),i=parseInt(o.substring(1,o.length),16)):"rgb("===o.substring(0,4)?(n=o.indexOf("("),a=o.indexOf(")"),l=o.substring(n+1,a).split(","),i=255*Math.pow(16,6)+parseInt(l[0],10)*Math.pow(16,4)+parseInt(l[1],10)*Math.pow(16,2)+parseInt(l[2],10)):"rgba("===o.substring(0,5)?(n=o.indexOf("("),a=o.indexOf(")"),l=o.substring(n+1,a).split(","),i=parseInt(255*parseFloat(l[3]),10)*Math.pow(16,6)+parseInt(l[0],10)*Math.pow(16,4)+parseInt(l[1],10)*Math.pow(16,2)+parseInt(l[2],10)):i=e.rk[o]?e.rk[o]:parseInt(o,10),r[t]=i,i))},e.isThemeColor=function(e){if(!e||"string"!=typeof e)return!1;e=e.toLowerCase();var t=e[0];switch(t){case"b":return 0===e.indexOf("background ");case"t":return 0===e.indexOf("text ");case"a":return 0===e.indexOf("accent ");case"h":return 0===e.indexOf("hyperlink");case"f":return 0===e.indexOf("followedhyperlink");default:return!1}},e.mixTranslucentColor=function(t,r){var o,i,n,a;return 255===r.a?r:0===r.a?t:(o=Math.round((255-t.a)*r.a/255),i=e.getMaxInt(t.a,r.a,t.r,r.r,o+t.a),n=e.getMaxInt(t.a,r.a,t.g,r.g,o+t.a),a=e.getMaxInt(t.a,r.a,t.b,r.b,o+t.a),new W(Math.round(o+t.a),i,n,a))},e.getMaxInt=function(e,t,r,o,i){return 0===i?0:(t*o+(255-t)*e*r/255)/i},e.toExcelColor=function(t,r){if(t instanceof A)return t;if(r===c&&(r=16777215),!t)return null;if(e.isThemeColor(t))return e.getExcelThemeColor(t);var o=e.fromHtmlColor(t);return o!==r?e.fromColorToExcelColor(e.fromArgb(o)):null},e.toExcelBackColor=function(t,r){var o,i;if(t!==s&&"object"==typeof t)if(t.stops)for(o=t,i=0;i<o.stops.length;i++)o.stops[i].color=e.toExcelColor(o.stops[i].color);else o={patternType:t.type,fgColor:e.toExcelColor(t.patternColor||"#000000"),bgColor:e.toExcelColor(t.backgroundColor||"#FFFFFF")};else o=t?{patternType:1,fgColor:e.toExcelColor(t),bgColor:e.toExcelColor(r?"#000000":"#FFFFFF")}:{patternType:0,fgColor:new A(1,64,0),bgColor:new A(1,65,0)};return o},e.toExcelIndexedColor=function(t){if(t){var r=e.getPaletteColorIndex(t,63);return new A(1,r)}return null},e.fromColorToExcelColor=function(t){var r,o,i,n,a;return t=e.mixTranslucentColor(e.fromArgb(16777215),t),255!==t.a&&(r=e.sk,o=Math.round(r.r-t.a+t.a/255*t.r),i=Math.round(r.g-t.a+t.a/255*t.g),n=Math.round(r.b-t.a+t.a/255*t.b),t=new W(255,o,i,n)),a=t.a*Math.pow(16,6)+t.r*Math.pow(16,4)+t.g*Math.pow(16,2)+t.b,new A(2,a,0)},e.getClosestColorIndex=function(t,r){var o,i,n,a,l,s,d,u;for(r===c&&(r=64),o=-1,i=Number.MAX_VALUE,n=Math.min(e.palette.length-1,r);n>=0;n--)a=e.palette[n],l=(16711680&a)>>16,s=(65280&a)>>8,d=255&a,u=Math.abs(.3*(l-t.r))+Math.abs(.59*(s-t.g))+Math.abs(.11*(d-t.b)),u<i&&(i=u,o=n);return o},e.getPaletteColorIndex=function(t,r){return r===c&&(r=64),t.isThemeColor()?e.getClosestColorIndex(e.getRGBColor(new A(3,t.value(),0))):e.getClosestColorIndex(e.getRGBColor(t),r)},e.toColorSchemeIndex=function(e){return"ACCENT1"===e?4:"ACCENT2"===e?5:"ACCENT3"===e?6:"ACCENT4"===e?7:"ACCENT5"===e?8:"ACCENT6"===e?9:"DK1"===e?1:"DK2"===e?3:"LT1"===e?0:"LT2"===e?2:"HLIK"===e?10:"FOLHLINK"===e?11:"PHCLR"===e?240:"BG1"===e?243:"BG2"===e?244:"TX1"===e?241:"TX2"===e?242:255},e.scRgbTosRgb=function(e){return e<=0?0:e<=.0031308?255*e*12.92+.5:e<1?255*(1.055*Math.pow(e,.4166666666666667)-.055)+.5:255},e.convertHLSToRGB=function(t,r,o){var i,n,a=0,l=0,s=0;return 0===o?(a=255*r/255|0,l=a,s=a):(i=void 0,i=r<=127?(r*(255+o)+127)/255:r+o-(r*o+127)/255,n=2*r-i,a=parseInt(""+(255*e.hueToRGB(n,i,t+85)+127)/255,10),l=parseInt(""+(255*e.hueToRGB(n,i,t)+127)/255,10),s=parseInt(""+(255*e.hueToRGB(n,i,t-85)+127)/255,10)),a=a>0?a:0,l=l>0?l:0,s=s>0?s:0,a=a<255?a:255,l=l<255?l:255,s=s>255?s:255,new W(0,a,l,s)},e.hueToRGB=function(e,t,r){return r<0&&(r+=255),r>255&&(r-=255),r<42?e+((t-e)*r+21)/42:r<127?t:r<170?e+((t-e)*(170-r)+21)/42:e},e.fromPresetColorVal=function(t){var r=e.rk[t];return r!==c?e.fromArgb(r):null},e.nk=null,e.qk=null,e.useCustomPalette=!1,e.customPalette=null,e.palette=[4278190080,4294967295,4294901760,4278255360,4278190335,4294967040,4294902015,4278255615,4278190080,4294967295,4294901760,4278255360,4278190335,4294967040,4294902015,4278255615,4286578688,4278222848,4278190208,4286611456,4286578816,4278222976,4290822336,4286611584,4288256511,4288230246,4294967244,4291624959,4284874854,4294934656,4278216396,4291611903,4278190208,4294902015,4294967040,4278255615,4286578816,4286578688,4278222976,4278190335,4278242559,4291624959,4291624908,4294967193,4288269567,4294941132,4291598847,4294954137,4281558783,4281584844,4288269312,4294953984,4294940928,4294927872,4284901017,4288059030,4278203238,4281571686,4278203136,4281545472,4288230144,4288230246,4281545625,4281545523,4278190080],e.sk=new W(255,255,255,255),e.rk={aliceblue:4293982463,antiquewhite:4294634455,aqua:4278255615,aquamarine:4286578644,azure:4293984255,beige:4294309340,bisque:4294960324,black:4278190080,blanchedalmond:4294962125,blue:4278190335,blueviolet:4287245282,brown:4289014314,burlywood:4292786311,cadetblue:4284456608,chartreuse:4286578432,chocolate:4291979550,coral:4294934352,cornflowerblue:4284782061,cornsilk:4294965468,crimson:4292613180,cyan:4278255615,darkblue:4278190219,darkcyan:4278225803,darkgoldenrod:4290283019,darkgray:4289309097,darkgreen:4278215680,darkkhaki:4290623339,darkmagenta:4287299723,darkolivegreen:4283788079,darkorange:4294937600,darkorchid:4288230092,darkred:4287299584,darksalmon:4293498490,darkseagreen:4287609999,darkslateblue:4282924427,darkslategray:4281290575,darkturquoise:4278243025,darkviolet:4287889619,deeppink:4294907027,deepskyblue:4278239231,dimgray:4285098345,dodgerblue:4280193279,feldspar:4291924597,firebrick:4289864226,floralwhite:4294966e3,forestgreen:4280453922,fuchsia:4294902015,gainsboro:4292664540,ghostwhite:4294506751,gold:4294956800,goldenrod:4292519200,gray:4286611584,green:4278222848,greenyellow:4289593135,honeydew:4293984240,hotpink:4294928820,"indianred ":4291648604,"indigo ":4283105410,ivory:4294967280,khaki:4293977740,lavender:4293322490,lavenderblush:4294963445,lawngreen:4286381056,lemonchiffon:4294965965,lightblue:4289583334,lightcoral:4293951616,lightcyan:4292935679,lightgoldenrodyellow:4294638290,lightgrey:4292072403,lightgreen:4287688336,lightpink:4294948545,lightsalmon:4294942842,lightseagreen:4280332970,lightskyblue:4287090426,lightslateblue:4286869759,lightslategray:4286023833,lightsteelblue:4289774814,lightyellow:4294967264,lime:4278255360,limegreen:4281519410,linen:4294635750,magenta:4294902015,maroon:4286578688,mediumaquamarine:4284927402,mediumblue:4278190285,mediumorchid:4290401747,mediumpurple:4287852760,mediumseagreen:4282168177,mediumslateblue:4286277870,mediumspringgreen:4278254234,mediumturquoise:4282962380,mediumvioletred:4291237253,midnightblue:4279834992,mintcream:4294311930,mistyrose:4294960353,moccasin:4294960309,navajowhite:4294958765,navy:4278190208,oldlace:4294833638,olive:4286611456,olivedrab:4285238819,orange:4294944e3,orangered:4294919424,orchid:4292505814,palegoldenrod:4293847210,palegreen:4288215960,paleturquoise:4289720046,palevioletred:4292374675,papayawhip:4294963157,peachpuff:4294957753,peru:4291659071,pink:4294951115,plum:4292714717,powderblue:4289781990,purple:4286578816,red:4294901760,rosybrown:4290547599,royalblue:4282477025,saddlebrown:4287317267,salmon:4294606962,sandybrown:4294222944,seagreen:4281240407,seashell:4294964718,sienna:4288696877,silver:4290822336,skyblue:4287090411,slateblue:4285160141,slategray:4285563024,snow:4294966010,springgreen:4278255487,steelblue:4282811060,tan:4291998860,teal:4278222976,thistle:4292394968,tomato:4294927175,turquoise:4282441936,violet:4293821166,violetred:4291829904,wheat:4294303411,white:4294967295,whitesmoke:4294309365,yellow:4294967040,yellowgreen:4288335154,transparent:16777215},e}(),t.ColorHelper=N;function z(e){return e===!1}function V(e){return e&&"NORMAL"!==e.toUpperCase()&&e.indexOf("__builtInStyle")<0}M=function(){function e(){}return e.getFontName=function(e){var t,r,o;if(!e)return null;if(t=e,r=",",t.indexOf(r)!==-1&&(t=t.split(r)[0]),t){for(o=t.length-1;o>=0&&"/"!==t[o];)o--;o>=0&&(t=t.substring(o)),t&&"/#"===t.substring(0,2)&&(t=t.substring(2)),'"'===t[0]&&'"'===t[t.length-1]&&(t=t.substring(1,t.length-1))}return t},e.setStyleInfoFont=function(e,t,r,o){var i,n,a,l,s,b,h=e.fontName;h||(h=f),n="",e.fontSize>0&&(n=P.pointToPixel(e.fontSize,4)+"px"),a="",a=e.isItalic?"italic":"normal",l="",l=e.isBold?"bold":"normal",s="",s=e.fontColor?e.fontColor.isThemeColor()?N.getThemeColorName(e.fontColor):N.toRGBColor(e.fontColor):e.fontColor,t.foreColor=s,e.isStrikeOut&&(t.textDecoration=2),e.underLineStyle!==c&&(b=1,2===e.underLineStyle?b=8:0===e.underLineStyle&&(b=0),t.textDecoration===c?t.textDecoration=b:t.textDecoration=t.textDecoration|b),1===e.fontScheme?(t.themeFont=d,r&&(h=r)):2===e.fontScheme&&(t.themeFont=u,o&&(h=o)),i=a+" "+l+" "+n+" "+h,i&&(t.font=i)},e.tk=function(){return e.uk||(e.uk={}),e.uk},e.fromHtmlFont=function(t){var r,i,n,a,l,s,c,d,u,f,p,m,g,y;if(!o.StringEx.L(t)){if(r={},i=e.tk(),i[t])return i[t];if(n=e.splitFontString(t),0!==n.length){for(a=0,l=!1,s=!1,c=!1;a<n.length;){if(d=n[a].toLowerCase(),"normal"===d);else if(l||"italic"!==d&&"oblique"!==d&&"inherit"!==d)if(s||"small-caps"!==d)if(c||"bold"!==d&&"bolder"!==d&&"lighter"!==d&&"100"!==d&&"200"!==d&&"300"!==d&&"400"!==d&&"500"!==d&&"600"!==d&&"700"!==d&&"800"!==d&&"900"!==d&&"inherit"!==d){if("/"===d.substring(0,1)){a++;break}if("xx-small"===d||"x-small"===d||"small"===d||"medium"===d||"large"===d||"x-large"===d||"xx-large"===d||d.indexOf("px")!==-1||d.indexOf("pt")!==-1)break}else c=!0,"bolder"===d||parseInt(d,10)>=700?r.fontWeight=b:"lighter"===d?r.fontWeight="ExtraLight":r.fontWeight=d;else s=!0,r.fontVariant=d;else l=!0,"oblique"===d&&(d=h),r.fontStyle=d;if(a++,l&&s&&c)break}if(a<n.length&&(u=n[a].toLowerCase(),"xx-small"===u||"x-small"===u||"small"===u||"medium"===u||"large"===u||"x-large"===u||"xx-large"===u?(f=10,"xx-small"===u||"x-small"===u?f=6:"small"===u?f=8:"large"===u?f=14:"x-large"===u?f=18:"xx-large"===u&&(f=22),r.fontSize=f):(p=void 0,u.indexOf("px")!==-1?p=parseFloat(u):u.indexOf("pt")!==-1&&(m=parseFloat(u),isNaN(m)||(p=P.pointToPixel(m,4))),isNaN(p)||(r.fontSize=p)),a++),a<n.length&&(g=n[a].toLowerCase(),"/"===g.substring(0,1)&&a++),a<n.length){for(y=n[a],a++;a<n.length;a++)y=y+" "+n[a];r.fontFamily=y}return i[t]=r,r}}},e.composeFontWeightAndFontStyleToDestFont=function(t,r){var o=e.fromHtmlFont(t),i=e.fromHtmlFont(r);return o.fontWeight&&(i.fontWeight=o.fontWeight),o.fontStyle&&(i.fontStyle=o.fontStyle),(i.fontWeight?i.fontWeight:"normal")+" "+(i.fontStyle?i.fontStyle:"normal")+" "+i.fontSize+"px "+i.fontFamily+" "+(i.fontVariant?i.fontVariant:"")},e.splitFontString=function(e){var t,r,i,n,a;if(o.StringEx.L(e))return[];for(e=e.trim(),t=[],r="",i=0,n=e.length;i<n;i++)if(a=e[i]," "===a||"/"===a)t.push(r),r="","/"===a&&(r+="/");else if("'"===a||'"'===a)for(i++;e[i]!==a&&i<n;)r+=e[i],i++;else r+=a;return r.length>0&&t.push(r),t},e.toVerticalAlignment=function(e){return 0===e||1===e||2===e?e:2},e.toExcelVerticalAlignment=function(e){return 0===e||1===e||2===e?e:0},e.toHorizontalAlignment=function(e){switch(e){case 0:return 3;case 1:return 0;case 6:return 4;case 2:return 1;case 3:return 2;case 4:case 5:case 7:return 3;default:return 3}},e.toExcelHorizontalAlignment=function(e){switch(e){case 1:return 2;case 0:return 1;case 2:return 3;case 3:return 0;case 4:return 6;default:return 0}},e.toBorderLine=function(e){if(e){var t=null;return 0===e.lineStyle?null:(e.color||(e.color=new A(1,0,0)),t=e.color.isThemeColor()?{color:N.getThemeColorName(e.color),style:e.lineStyle}:{color:""+N.getRGBColor(e.color),style:e.lineStyle})}},e.toExcelBorderSide=function(e){var t,r,o=new T;return e?(t=e.color,N.isThemeColor(t)?o.color=N.getExcelThemeColor(t):(r=e.color,o.color=new A(2,N.fromHtmlColor(r),0)),o.lineStyle=e.style,o):o},e.setStyleInfoBorders=function(t,r){r.borderLeft=e.toBorderLine(t.left),r.borderRight=e.toBorderLine(t.right),r.borderTop=e.toBorderLine(t.top),r.borderBottom=e.toBorderLine(t.bottom),r.borderVertical=e.toBorderLine(t.vertical),r.borderHorizontal=e.toBorderLine(t.horizontal),r.diagonalUp=e.toBorderLine(t.diagonalUp),r.diagonalDown=e.toBorderLine(t.diagonalDown)},e.toCellStyle=function(t,r,i){var n,a,l,d,u,f,b,h,p,m,g,y={};return t?(n=t.isStyleFormat,a=t.applyFont,l=t.applyFill,d=t.applyBorder,u=t.applyAlignment,f=t.applyProtection,b=t.applyNumberFormat,n&&(z(a)&&(y.applyFont=a),z(l)&&(y.applyFill=l),z(d)&&(y.applyBorder=d),z(u)&&(y.applyAlignment=u),z(f)&&(y.applyProtection=f),z(b)&&(y.applyNumberFormat=b)),(!n&&t.applyFont!==!1||n)&&t.font&&e.setStyleInfoFont(t.font,y,r,i),y.locked=t.isLocked,t.indent!==c&&(y.textIndent=t.indent,
|
30
30
|
y.textIndent>0&&(h=y.textIndent,p=Math.floor(h),h-p===.5&&0===(1&p)?y.textIndent=p:y.textIndent=Math.round(h))),y.wordWrap=t.isWordWrap,y.vAlign=e.toVerticalAlignment(t.verticalAlign),y.hAlign=e.toHorizontalAlignment(t.horizontalAlign),o.J(t.rotation)||(255===t.rotation?y.isVerticalText=!0:y.textOrientation=t.rotation>90?90-t.rotation:t.rotation),t.border&&(m=t.border,m&&e.setStyleInfoBorders(m,y)),t.fill&&0!==t.fill.patternType?e.Ie(t.fill,y):y.backColor=s,t.isShrinkToFit?y.shrinkToFit=!0:y.shrinkToFit=!1,g=B.getFormatCode(t),n&&"General"===g||(y.formatter=g),o.J(t.quotePrefix)||(y.quotePrefix=t.quotePrefix),y):null},e.toRichTextStyle=function(t,r,o){var i={};return e.setStyleInfoFont(t,i,r,o),i.charSetIndex=t.charSetIndex,i.isCondense=t.isCondense,i.isExtend=t.isExtend,i.fontFamily=t.fontFamily,i.isOutlineStyle=t.isOutlineStyle,i.isShadowStyle=t.isShadowStyle,i.vertAlign=t.vertAlign,i},e.fromRichTextStyle=function(t){var r,i,n,a,l;if(!o.J(t))return r=f,i={},t.font&&(n=e.fromHtmlFont(t.font),n.fontFamily&&(r=e.getFontName(n.fontFamily)),o.StringEx.L(r)&&(r=f),i.fontFamily=r,n.fontSize&&(i.fontSize=Math.round(P.pixelToPoint(n.fontSize))),n.fontStyle===h&&(i.isItalic=!0),n.fontWeight===b&&(i.isBold=!0)),t.foreColor&&(N.isThemeColor(t.foreColor)?i.foreColor=N.getExcelThemeColor(t.foreColor):(a=N.fromHtmlColor(t.foreColor),l=N.mixTranslucentColor(N.fromArgb(16777215),N.fromArgb(a)),a=l.a*Math.pow(16,6)+l.r*Math.pow(16,4)+l.g*Math.pow(16,2)+l.b,i.foreColor=new A(2,a,0))),t.themeFont&&(t.themeFont.toUpperCase()==="Headings".toUpperCase()?i.fontScheme=1:t.themeFont.toUpperCase()==="Body".toUpperCase()&&(i.fontScheme=2)),1===(1&t.textDecoration)&&(i.underLineStyle=1),8===(8&t.textDecoration)&&(i.underLineStyle=2),i.isStrikeOut=2===(2&t.textDecoration),i.charSetIndex=t.charSetIndex,i.isCondense=t.isCondense,i.isExtend=t.isExtend,i.fontFamilySet=t.fontFamily,i.isOutlineStyle=t.isOutlineStyle,i.isShadowStyle=t.isShadowStyle,i.vertAlign=t.vertAlign,i},e.toSchemeClrValue=function(e){switch(e){case 255:return"";case 1:return"dk1";case 0:return"lt1";case 3:return"dk2";case 2:return"lt2";case 4:return"accent1";case 5:return"accent2";case 6:return"accent3";case 7:return"accent4";case 8:return"accent5";case 9:return"accent6";case 10:return"hlink";case 11:return"folHlink";case 240:return"phClr";case 241:return"tx1";case 242:return"tx2";case 243:return"bg1";case 244:return"bg2";default:return""}},e.Ie=function(t,r){1===t.patternType?e.vk(t.fgColor,r):t.patternType?e.wk(t.patternType,t.fgColor,t.bgColor,r):t.stops&&e.xk(t,r)},e.vk=function(e,t){if(o.J(e))t.backColor="#000000";else{var r=e.isRGBColor()&&0===e.value();if(e.isRGBColor()&&0===e.value()||e.isIndexedColor()&&64===e.value()||e.isIndexedColor()&&65===e.value())return void(r&&(t.backColor=null));e.isThemeColor()?t.backColor=N.getThemeColorName(e):t.backColor=N.toRGBColor(e)}},e.wk=function(e,t,r,o){o.backColor={type:e,patternColor:null,backgroundColor:null},t&&(t.isThemeColor()?o.backColor.patternColor=N.getThemeColorName(t):o.backColor.patternColor=N.toRGBColor(t)),r&&!r.isAutoColor()&&(r.isThemeColor()?o.backColor.backgroundColor=N.getThemeColorName(r):o.backColor.backgroundColor=N.toRGBColor(r))},e.xk=function(e,t){var r,o;for(t.backColor=e,r=0;r<e.stops.length;r++)o=e.stops[r].color,"string"!=typeof o&&(o.isThemeColor()?e.stops[r].color=N.getThemeColorName(o):e.stops[r].color=N.toRGBColor(o))},e.getStyleFormatter=function(e){var t,r,i=s,n=e.formatter;return"string"==typeof n&&("="===n.charAt(0)||n.indexOf("{{")>=0&&n.indexOf("}}")>=0)?i:("string"==typeof n&&" "!==n?i=n:e.autoFormatter?(t=e.autoFormatter.formatCached,t&&!o.StringEx.O(t)&&(i=t)):n&&(r=n.formatCached,r&&!o.StringEx.O(r)&&(i=r)),i)},e.toExtendedFormat=function(t,r){var i,n,a,l,d,u,p,m,g,y,S,C,w,x,T,I,L,D,P;if(t){if(i=t.parentName,n=t.name,a=V(n),l=new E,d=e.getStyleFormatter(t),d?(u=B.getFormatId(d),p=u.id,m=u.isBuiltIn,m?l.numberFormatIndex=p:l.numberFormat=new R(p,d),g=r.bj(i),y=g&&e.getStyleFormatter(g),!a&&(0!==p||y&&0!==B.getFormatId(y).id)&&(l.applyNumberFormat=!0)):l.numberFormatIndex=0,t.backColor&&0!==t.backColor.type){if(a||(l.applyFill=!0),S=new k,"string"==typeof t.backColor)S.patternType=1,S.fgColor=t.backColor;else if(o.J(t.backColor.type)||"path"===t.backColor.type)for(C in t.backColor)S[C]=t.backColor[C];else S.patternType=t.backColor.type,S.fgColor=t.backColor.patternColor,S.bgColor=t.backColor.backgroundColor;for(o.J(S.fgColor)||(S.fgColor=N.toExcelColor(S.fgColor)),o.J(S.bgColor)||(S.bgColor=N.toExcelColor(S.bgColor)),w=S.stops&&S.stops.length,x=0;x<w;x++)S.stops[x].color=N.toExcelColor(S.stops[x].color);l.fill=S}return(t.borderLeft||t.borderRight||t.borderTop||t.borderBottom||t.diagonalUp||t.diagonalDown)&&(l.border=new v,t.borderLeft&&(l.border.left=e.toExcelBorderSide(t.borderLeft)),t.borderRight&&(l.border.right=e.toExcelBorderSide(t.borderRight)),t.borderTop&&(l.border.top=e.toExcelBorderSide(t.borderTop)),t.borderBottom&&(l.border.bottom=e.toExcelBorderSide(t.borderBottom)),t.diagonalDown&&(l.border.diagonalDown=e.toExcelBorderSide(t.diagonalDown)),t.diagonalUp&&(l.border.diagonalUp=e.toExcelBorderSide(t.diagonalUp)),a||(l.applyBorder=!0)),(t.font||t.fontForColumnWidth||t.foreColor||t.themeFont||t.textDecoration!==c&&null!==t.textDecoration)&&(a||(l.applyFont=!0),T=f,I=t.fontForColumnWidth?t.fontForColumnWidth:t.font,I&&(L=e.fromHtmlFont(I),L.fontFamily&&(T=e.getFontName(L.fontFamily)),o.StringEx.L(T)&&(T=f),l.font=new F(T.trim(),null,0),L.fontSize&&(l.font.fontSize=e.getExcelFontSize(L.fontSize)),L.fontStyle===h&&(l.font.isItalic=!0),L.fontWeight===b&&(l.font.isBold=!0)),1===(1&t.textDecoration)&&(l.font.underLineStyle=1),8===(8&t.textDecoration)&&(l.font.underLineStyle=2),t.foreColor&&(N.isThemeColor(t.foreColor)?l.font.fontColor=N.getExcelThemeColor(t.foreColor):(D=N.fromHtmlColor(t.foreColor),P=N.mixTranslucentColor(N.fromArgb(16777215),N.fromArgb(D)),D=P.a*Math.pow(16,6)+P.r*Math.pow(16,4)+P.g*Math.pow(16,2)+P.b,l.font.fontColor=new A(2,D,0))),l.font.isStrikeOut=2===(2&t.textDecoration)),t.themeFont&&(t.themeFont.toUpperCase()==="Headings".toUpperCase()?l.font.fontScheme=1:t.themeFont.toUpperCase()==="Body".toUpperCase()&&(l.font.fontScheme=2)),t.shrinkToFit&&(l.isShrinkToFit=!0),t.textOrientation&&(l.rotation=t.textOrientation<0?90-t.textOrientation:t.textOrientation),t.locked!==c?l.isLocked=t.locked:l.isLocked=!0,t.wordWrap!==s&&t.wordWrap!==c&&(l.isWordWrap=t.wordWrap),t.textIndent!==s&&t.textIndent!==c&&(l.indent=Math.ceil(t.textIndent)),l.verticalAlign=e.toExcelVerticalAlignment(t.vAlign),l.horizontalAlign=e.toExcelHorizontalAlignment(t.hAlign),t.isVerticalText===!0&&(l.isVerticalText=t.isVerticalText),o.J(t.quotePrefix)||(l.quotePrefix=t.quotePrefix),o.J(i)||(l.parentName=i),a&&(l.applyFont=t.applyFont,l.applyFill=t.applyFill,l.applyAlignment=t.applyAlignment,l.applyBorder=t.applyBorder,l.applyNumberFormat=t.applyNumberFormat,l.applyProtection=t.applyProtection),l}},e.getExcelFontSize=function(e){var t=P.pixelToPoint(e),r=.05,o=Math.round(1e3*t)/1e3,i=Math.round(o%r*1e3)/1e3;return i<r/2?Math.floor(o/r)*r:Math.ceil(o/r)*r},e.toDifferentialFormatting=function(t,r){var i,n,a,l,s,d,u,b,h,p,m,g,y={};return!o.isNullOrUndefined(t.parentName)&&r&&(i=o.ga._(r.th,t.parentName),t=i?i:t),n=t.isSlicerHeader,a=t.isFormatStyle,l=t.formatter,"string"==typeof l&&" "!==l&&(s=B.getFormatId(l),d=s.id,u=s.isBuiltIn,u?(y.numberFormatIndex=d,y.numberFormatCode=l):y.numberFormat=new R(d,l)),t.backColor!==c&&(b=t.backColor,b!==c?y.fill=N.toExcelBackColor(b,!0):y.fill=b),(a||t.borderLeft||t.borderRight||t.borderTop||t.borderBottom||t.borderVertical||t.borderHorizontal)&&(y.border=new v,t.borderLeft?y.border.left=e.toExcelBorderSide(t.borderLeft):(n||t.borderLeft===c&&a)&&(y.border.left=c),t.borderRight?y.border.right=e.toExcelBorderSide(t.borderRight):(n||t.borderRight===c&&a)&&(y.border.right=c),t.borderTop?y.border.top=e.toExcelBorderSide(t.borderTop):(n||t.borderTop===c&&a)&&(y.border.top=c),t.borderBottom?y.border.bottom=e.toExcelBorderSide(t.borderBottom):(n||t.borderBottom===c&&a)&&(y.border.bottom=c),t.borderVertical&&(y.border.vertical=e.toExcelBorderSide(t.borderVertical)),t.borderHorizontal&&(y.border.horizontal=e.toExcelBorderSide(t.borderHorizontal))),(t.font||t.foreColor!==c||t.themeFont||t.textDecoration!==c&&null!==t.textDecoration)&&(h=f,p=void 0,t.font&&(m=e.fromHtmlFont(t.font),m.fontFamily&&(h=e.getFontName(m.fontFamily)),o.StringEx.L(h)&&(h=f),y.font=new F(h.trim(),null,0),m.fontSize&&(y.font.fontSize=Math.round(P.pixelToPoint(m.fontSize))),"italic"===m.fontStyle&&(y.font.isItalic=!0),"bold"===m.fontWeight&&(y.font.isBold=!0)),y.font||(y.font=new F(h.trim(),null,0)),1===(1&t.textDecoration)&&(y.font.underLineStyle=1),8===(8&t.textDecoration)&&(y.font.underLineStyle=2),t.foreColor&&(N.isThemeColor(t.foreColor)?y.font.fontColor=N.getExcelThemeColor(t.foreColor):(p=N.fromHtmlColor(t.foreColor),g=N.mixTranslucentColor(N.fromArgb(16777215),N.fromArgb(p)),p=g.a*Math.pow(16,6)+g.r*Math.pow(16,4)+g.g*Math.pow(16,2)+g.b,y.font.fontColor=new A(2,p,0))),null===t.foreColor&&(y.font.fontColor=null),y.font.isStrikeOut=2===(2&t.textDecoration)),y.isPartFontStyle=t.isPartFontStyle,y.isSlicerHeader=n,y},e.toStringStyle=function(e){if(o.isNullOrUndefined(e))return"";var t="";return o.isNullOrUndefined(e.backColor)||(t+="object"==typeof e.backColor?"backColor:"+JSON.stringify(e.backColor)+",":"backColor:"+e.backColor+","),e.foreColor!==c&&(t+="foreColor:"+e.foreColor+","),e.hAlign!==c&&(t+="hAlign:"+e.hAlign+","),e.vAlign!==c&&(t+="vAlign:"+e.vAlign+","),e.font!==c&&(t+="font:"+e.font+","),e.themeFont!==c&&(t+="themeFont:"+e.themeFont+","),e.formatter!==c&&(t+="formatter:"+e.formatter+","),o.isNullOrUndefined(e.borderLeft)||(t+="borderLeft:"+JSON.stringify(e.borderLeft)+","),o.isNullOrUndefined(e.borderTop)||(t+="borderTop:"+JSON.stringify(e.borderTop)+","),o.isNullOrUndefined(e.borderRight)||(t+="borderRight:"+JSON.stringify(e.borderRight)+","),o.isNullOrUndefined(e.borderBottom)||(t+="borderBottom:"+JSON.stringify(e.borderBottom)+","),o.isNullOrUndefined(e.diagonalDown)||(t+="diagonalDown:"+JSON.stringify(e.diagonalDown)+","),o.isNullOrUndefined(e.diagonalUp)||(t+="diagonalUp:"+JSON.stringify(e.diagonalUp)+","),e.locked!==c&&(t+="locked:"+e.locked+","),e.textIndent!==c&&(t+="textIndent:"+e.textIndent+","),e.wordWrap!==c&&(t+="wordWrap:"+e.wordWrap+","),e.shrinkToFit!==c&&(t+="shrinkToFit:"+e.shrinkToFit+","),e.textDecoration!==c&&(t+="textDecoration:"+e.textDecoration+","),e.textOrientation!==c&&(t+="textOrientation:"+e.textOrientation+","),e.isVerticalText!==c&&(t+="isVerticalText:"+e.isVerticalText+","),e.quotePrefix!==c&&(t+="quotePrefix:"+e.quotePrefix+","),e.autoFormatter!==c&&(t+="autoFormatter:"+e.autoFormatter+","),o.isNullOrUndefined(e.name)||e.name.indexOf("__builtInStyle")!==-1||(t+="name:"+e.name+","),e.parentName!==c&&(t+="parentName:"+e.parentName+","),e.fontForColumnWidth!==c&&(t+="fontForColumnWidth:"+e.fontForColumnWidth+","),V(e.name)&&(e.applyFont!==c&&(t+="applyFont:"+e.applyFont+","),e.applyFill!==c&&(t+="applyFill:"+e.applyFill+","),e.applyAlignment!==c&&(t+="applyAlignment:"+e.applyAlignment+","),e.applyBorder!==c&&(t+="applyBorder:"+e.applyBorder+","),e.applyProtection!==c&&(t+="applyProtection:"+e.applyProtection+","),e.applyNumberFormat!==c&&(t+="applyNumberFormat:"+e.applyNumberFormat+",")),t},e.cloneSpreadJSStyle=function(e){if(!o.isNullOrUndefined(e)){var t={};return t.backColor=e.backColor,t.foreColor=e.foreColor,t.hAlign=e.hAlign,t.vAlign=e.vAlign,t.font=e.font,t.themeFont=e.themeFont,t.formatter=e.formatter,t.borderLeft=e.borderLeft,t.borderTop=e.borderTop,t.borderRight=e.borderRight,t.borderBottom=e.borderBottom,t.diagonalDown=e.diagonalDown,t.diagonalUp=e.diagonalUp,t.locked=e.locked,t.textIndent=e.textIndent,t.wordWrap=e.wordWrap,t.shrinkToFit=e.shrinkToFit,t.textDecoration=e.textDecoration,t.textOrientation=e.textOrientation,t.isVerticalText=e.isVerticalText,t.quotePrefix=e.quotePrefix,t.autoFormatter=e.autoFormatter,t.name=e.name,t.parentName=e.parentName,t.fontForColumnWidth=e.fontForColumnWidth,V(e.name)&&(t.applyFont=e.applyFont,t.applyFill=e.applyFill,t.applyAlignment=e.applyAlignment,t.applyBorder=e.applyBorder,t.applyProtection=e.applyProtection,t.applyNumberFormat=e.applyNumberFormat),t}},e.convertDxfToStyle=function(t,r,i,n){var a,l={};return t.font&&e.setStyleInfoFont(t.font,l,r,i),t.fill&&(o.isNullOrUndefined(t.fill.patternType)&&t.fill.bgColor&&(t.fill.patternType=1),1===t.fill.patternType&&(t.fill.fgColor=t.fill.bgColor),0!==t.fill.patternType?e.Ie(t.fill,l):l.backColor=s),t.border&&e.setStyleInfoBorders(t.border,l),t.numberFormat&&(a=B.getFormatCode(t),"General"!==a&&(l.formatter=a)),n&&t.alignment&&(t.alignment.horizontalAlign!==c&&(l.hAlign=t.alignment.horizontalAlign),t.alignment.verticalAlign!==c&&(l.vAlign=t.alignment.verticalAlign),t.alignment.isWordWrap!==c&&(l.wordWrap=t.alignment.isWordWrap),t.alignment.isShrinkToFit!==c&&(l.shrinkToFit=t.alignment.isShrinkToFit),t.alignment.indent!==c&&(l.textIndent=t.alignment.indent),t.alignment.rotation!==c&&(l.textOrientation=t.alignment.rotation)),n&&t.protection&&t.alignment.isLocked!==c&&(l.locked=t.alignment.isLocked),l},e.uk=null,e}(),t.ConverterHelper=M,O=function(){function e(){}return e.Jh=function(e){var t,r,i,n,a={foreColor:"black",font:"normal normal normal 11pt/normal Calibri",locked:!0,name:"Normal",hAlign:3,vAlign:0};for(t in e.sheets)if(e.sheets.hasOwnProperty(t)&&(r=e.sheets[t],r.data&&r.data.defaultDataNode&&r.data.defaultDataNode.style)){i=r.data.defaultDataNode.style;for(n in i)i.hasOwnProperty(n)&&!o.J(i[n])&&(a[n]=i[n]);break}return a},e}(),t.DefaultStyle=O,H=function(){function e(){}return e.getSystemColor=function(t){return N.fromArgb(e.yk[t])},e.yk=[4290032820,4288263377,4278190080,4289440683,4293980400,4288716960,4285098345,4293125091,4294967295,4278190080,4278190080,4290367978,4292338930,4285361517,4281571839,4294967295,4278216396,4294244348,4290760155,4282601044,4294967265,4278190080,4293980400,4293980400,4281571839,4278190080,4291348680,4294967295,4284769380,4278190080,4288716960,4293125091,4293980400,4294967295,4288716960,4278190080],e}(),G=function(){function e(){}return e.getSystemColor=function(t){return e.systemColors[t.toUpperCase()]},e.systemColors={length:0,"3DDKSHADOW":H.getSystemColor(30),"3DLIGHT":H.getSystemColor(31),ACTIVEBORDER:H.getSystemColor(0),ACTIVECAPTION:H.getSystemColor(1),APPWORKSPACE:H.getSystemColor(3),BACKGROUND:H.getSystemColor(10),BTNFACE:H.getSystemColor(32),BTNHIGHLIGHT:H.getSystemColor(33),BTNSHADOW:H.getSystemColor(34),BTNTEXT:H.getSystemColor(35),CAPTIONTEXT:H.getSystemColor(2),GRAYTEXT:H.getSystemColor(13),HIGHLIGHT:H.getSystemColor(14),HIGHLIGHTTEXT:H.getSystemColor(15),INACTIVEBORDER:H.getSystemColor(17),INACTIVECAPTION:H.getSystemColor(18),INACTIVECAPTIONTEXT:H.getSystemColor(19),INFOBK:H.getSystemColor(20),INFOTEXT:H.getSystemColor(21),MENU:H.getSystemColor(22),GRADIENTACTIVECAPTION:H.getSystemColor(11),HOTLIGHT:H.getSystemColor(16),GRADIENTINACTIVECAPTION:H.getSystemColor(12),MENUBAR:H.getSystemColor(23),MENUHIGHLIGHT:H.getSystemColor(24),MENUTEXT:H.getSystemColor(25),SCROLLBAR:H.getSystemColor(26),WINDOW:H.getSystemColor(27),WINDOWFRAME:H.getSystemColor(28),WINDOWTEXT:H.getSystemColor(29)},e}(),t.ExcelSystemColor=G;function j(){P.jk=c,B.gk=c,B.dk={count:0},B._j={count:0},M.uk=c,N.nk=c,N.qk=c,N.useCustomPalette=!1,N.customPalette=s}t.clearCache=j},"./src/excel-io.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xlsx-io/common/file-loader.ts"),i=r("./src/xlsx-io/reader/xlsx-reader.ts"),n=r("./src/xlsx-io/writer/xlsx-writer.ts"),a=r("./src/xlsx-io/password/xlsxEncryptionHelper.ts"),l=r("./src/xlsx-io/common/errorcode.ts"),s=r("./src/xlsx-io/common/errorMessage.ts"),c=r("./src/common/common.ts"),d=r("./src/common/excel-types.ts"),t.ErrorCode=l.errorCode,u=r("./src/lc/releaseLc.js"),u&&(u.zk&&u.zk(t),f=u.Ak,1===f&&u.Bk()),b=function(){function e(){this.Ck=new o.FileLoader}return e.prototype.open=function(e,t,r,o){var n=this;t||(t=function(){}),r||(r=function(){}),n.Ck.onFileLoad=function(e){try{var n=new i.XlsxReader;n.Dk(e,o,function(e){t(e)})}catch(e){r({errorCode:l.errorCode.fileFormatError,errorMessage:s.sR().EXP_FILE_FORMAT})}},n.Ck.onError=r,n.Ck.loadFile(e,o)},e.prototype.save=function(e,t,r,o){t||(t=function(){}),r||(r=function(){});var i,d;"object"==typeof e&&(i=JSON.parse(JSON.stringify(e))),"string"==typeof e&&(i=JSON.parse(e)),new n.XlsxWriter(i,function(){try{var e=this;e.onZip=function(e){if(o&&o.password)try{e=a.XlsxEncryptionHelper.Ek(e,o.password),d||(e=a.XlsxEncryptionHelper.Fk(e))}catch(e){return void r({errorCode:l.errorCode.fileFormatError,errorMessage:s.sR().EXP_FILE_FORMAT})}t(e)},e.onError=function(){r({errorCode:l.errorCode.fileFormatError,errorMessage:s.sR().EXP_FILE_FORMAT})},c.J(o)&&(o={}),c.J(o.xlsxStrictMode)&&(o.xlsxStrictMode=!0),o&&o.password&&(d=o.useArrayBuffer,o.useArrayBuffer=!0),e.Bg=o,e.Gk()}catch(e){r({errorCode:l.errorCode.fileFormatError,errorMessage:s.sR().EXP_FILE_FORMAT})}})},e.registerMaxDigitWidth=function(e,t,r){!e||c.J(t)||c.J(r)||(d.unknownFontMaxDigitWidthMap[t]||(d.unknownFontMaxDigitWidthMap[t]={}),d.unknownFontMaxDigitWidthMap[t][e]=r)},e.tableThemes=c.buildInTableThemes,e.pivotTableThemes=c.buildInPivotTableThemes,e.slicerStyles=c.buildInSlicerStyles,e.timelineStyles=c.buildInTimelineStyles,e}(),t.IO=b},"./src/lc/common.js":function(e,t,r){!function(){"use strict";var t,o,i,n,a={zk:function(e){t=e}},l=r("./src/xlsx-io/reader/xlsx-reader.ts").XlsxReader,s=r("./src/datamodel/datamodel-writer.ts").WriterDataModel,c=r("./src/common/common.ts").K,d=r("./src/lc/ipaddr.js"),u=r("./src/lc/lcValidator.js"),f=u.Hk,b=u.Ik,h="object"==typeof global&&global&&global.Object===Object&&global,p="object"==typeof self&&self&&self.Object===Object&&self,m=h||p||Function("return this")(),g=/^[0-9.]+$/,y="m",S="n",C="b",w="d",x="e",A="adr",T=b("XRsZ"),v=b("HUkJ"),k=b("T&g"),F=b("Q&w"),R=b("GRz1"),E=b("XSzB"),I=b("XRwh"),L=b("WQs5");function D(e,t){var r,o,i,n,a="",l=0;for(r=0;r<e.length;r++)l=Math.max(l,e[r].length);for(r=0;r<l;r++){for(t&&(o=""),n=0;n<e.length;n++)t?o+=r>=e[n].length?"00":e[n].charAt(r)+e[n].charAt(r+1):r<e[n].length&&(a+=e[n].charAt(r));t&&(i=parseInt(o,16),a+=String.fromCharCode(i),r++)}return a}function B(e){var r=c(),o=r&&r[D(["G","C"])],i=o&&o[D(["Sra","ped"])],n=i&&i[D(["Set","hes"])];return n&&n[e]||t&&t[e]}function P(){var e=c(),t=e&&e[D(["G","C"])],r=t&&t[D(["Sra","ped"])];return r&&r[D(["Cmo","omn"])]}o=function(e){var t,r=D(["Lcnee","iesKy"]),o=B(r),i="QKAU";return f(o,{pK:"l6/zrbWoSbcLFwEetFh38rH3ErBZE9H+Cqix3R+wTlfA1wD5B+lUcCQn+EJ60I4RGrm0x1sFjkiLWwB0jAn6BWZv0W4WbqAKriOdeoivxDp1Wmjs3qkEDhvbsjPtfvwx2BHil6o+/tDrdMJQSGs18WZm2PoQLQuL+9VhZ4FNRHUQU3Jtioke/OZEGHJOdYVwvCGalzBad6QFOiVbDBQPePpS3++GJzOxN8SN/7lyS5/IdKiy3WJRaVGkB370+HbN6hKraDfUgReLX26yxRaKC/5aWnGAJ2NnWLoGyAGRcwT9dVjo4bcAZNrrA0U9JVKQxaSskhdv2p49XzJkltXx5w==",aC:"B1"},function(r){t=W(r,i),t.hl=!!o,M(t,o),e(t)},function(){t=W(),t.hl=!!o,M(t,o),e(t)}),t};function W(e,t){var r,o,i,n,a={isVd:function(e){var t=this,r=B("Workbook");return e=r&&1===r.lm||e,t.s&&!t.e&&(!t.adr||!!t.adr.dsr==!!e)}},l=V(),s=function(){var a,s,c,d,u,f,b;if(!e)return!1;if(a=e[v],!a||!a.length)return!1;for(d=0,u=a.length;d<u;d++)if(s=a[d],c=s&&s[F]===t){r=s[k];break}if(!c)return!1;if(e[L]&&(n=e[L]),e[I]){if(f=new Date,b=_(e[I]),i=Math.ceil((b-f)/864e5),o=i<=0)return!1}else i=void 0;return!!(l||!e[R]&&!e[E]||J(e[R],e[E])||z(e[R],e[E]))};return a[C]=l,a.s=s(),a[y]=e?e[T]?-1:1:0,a[S]=r,a[x]=o,o||(a[w]=i),a[A]=n,a}function _(e){return new Date(N(e.substr(0,4))||0,N(e.substr(4,2))-1||0,N(e.substr(6,2))||0)}function N(e){return parseInt(e,10)}function M(e,t){e.m=t?e.m:-1}function O(e,t){var r,o,i,n,a;if(!e||0!==e.indexOf("//"))return!1;if(r=e.slice(2).split("/"),r.length<1)return!1;for(o=r[0],i=0,n=t.length;i<n;i++)if(a=t[i],a===o)return!0;return!1}function H(e,t){var r,o,i,n,a;for(r=0,o=t.length;r<o;r++){if(i=t[r],n=!1,i&&0===i.lastIndexOf("*.",0)&&(n=!0),i=n?i.slice(2):i,i===e)return!0;if(n&&(a=e.indexOf("."+i),a>0&&a===e.length-i.length-1))return!0}return!1}function G(e,t){var r,o,i,n;if(0===e.indexOf("[")&&e.lastIndexOf("]")===e.length-1&&(e=e.substring(1,e.length-1)),e.indexOf("%")>-1&&(e=e.split("%")[0]),a(e))for(r=d.parse(e),o=0;o<t.length;o++){if(i=t[o],a(i)&&s(i,e))return!0;if(n=l(i),n&&c(r,n))return!0}return!1;function a(e){return d.IPv4.isValidFourPartDecimal(e)||d.IPv6.isValid(e)}function l(e){var t,r;if(e.indexOf("/")===-1)return!1;t=e.split("/"),(t[1].indexOf(":")>-1||t[1].indexOf(".")>-1)&&(r=d.parse(t[1]).prefixLengthFromSubnetMask(),e=[t[0],r].join("/"));try{return d.parseCIDR(e)}catch(e){return!1}}function s(e,t){var r=""+d.parse(e),o=""+d.parse(t);return r===o}function c(e,t){try{return e.match(t)}catch(e){return!1}}}function U(e,t){var r,o,i,n;if(e&&4===e.split(".").length)for(r=0,o=t.length;r<o;r++)if(i=t[r],i&&(n=i.length-2,n>0&&(i===e||".*"===i.substr(n)&&e.substr(0,n)===i.substr(0,n)&&g.test(e))))return!0;return!1}function J(e,t){var r,o,i,n;return!!q()&&(r=b("JYx3Gb#8Pb5R"),o=b("1agFGc#UHbw5"),i=m[r]&&m[r][o],!!i&&(i=i.toLowerCase(),n=e.split(","),!(!e||!O(i,n))))}function z(e,t){var r,o=b("JYx3Gb#8Pb5R"),i=b("Zdg3Ga#UHbw5"),n=m[o]&&m[o][i];return!n||(n=n.toLowerCase(),r=e.split(","),!(!e||!H(n,r))||(!(!e||!U(n,r))||!(!e||!G(n,r))))}function V(){var e=b("JYx3Gb#8Pb5R");return j(m[e])}function j(e){var t=b("VdgJHc#wJb59"),r=b("Zdg3Ga#UHbw5");return e&&(X(e[t])||K(e[t])||Y(e[r]))}function X(e){var t=b("MlSZto#Z");return e&&e===t}function K(e){var t=b("yXbog&w");return e&&e===t}function q(){var e=b("JYx3Gb#8Pb5R"),t=b("VdgJHc#wJb59"),r=b("Udg36Y#oUddV"),o=m[e];return o&&o[t]===r}function Y(e){var t=b("4LJITMx8UMcA"),r=b("Zo9Wv2#M"),o=b("JYw3Gb4NOb6x");return e&&(e===t||e===r||e===o)}function Q(e){var t=B(D(["S","R"])),r=P()&&t&&P().ResourceManager;return r&&new r(t).getResource()[e]}i=function(e,t,r){var o,i,n,a=Q(D([e,"s"])),l=B(D(["Wrbo","okok"])),s=Q(l&&1===l.lm?D(["ld","se"]):D(["lr","su"])),c=Z(a,t);for(s=Z(s,t),c=c.replace("{0}",r.d),c=c.replace("{1}",s).replace("{1}",s),o=[],i=0,n=0;n<c.length;n++)"\r"!==c[n]&&"\n"!==c[n]||(o.push(c.substring(i,n)),"\r"===c[n]&&n<c.length-1&&"\n"===c[n+1]&&n++,i=n+1);return i<c.length&&o.push(c.substring(i,c.length)),o};function Z(e,t){var r,o,i,n=!0,a="";if(e)if("string"==typeof e)e=e.trim(),e&&(r=[e]);else if(Array.isArray(e)){for(o=!0,r=[],i=0;i<e.length;i++)a=e[i].trim(),r.push(a),o&&a&&(o=!1);o&&(r=null)}return r||(n=!1,r=t),D(r,n)}function $(e,t,r){var o,n={name:D(["Eauto eso","vlainVrin"]),index:0,allowCellOverflow:!0,defaults:{colHeaderRowHeight:20,rowHeaderColWidth:40,rowHeight:30,colWidth:60},isSelected:!1,rowCount:20,columnCount:20,data:{dataTable:{}}},a=i(e,t,r),l=n.data.dataTable;for(o=1;o<a.length+1;o++)l[o]={},l[o][1]={value:a[o-1]};return n}function ee(e,t,r){var i=this;o(function(o){var n,a,l,s,c,d,u,f,b,h,p,m,g=["IvldEclI ies e.","nai xe Olcneky"];if(o.hl)if(o.isVd(!1)){if(o.m!==-1)return t.apply(i),void(i.onCompleted&&i.onCompleted());o.d?(n="l2",g=["Pwrdb pedSet.\rYu eprr elyetkyeprsi 0 as","oee ySra.hes \nortmoaydpomn e xie n{}dy."]):(n="l6",g=["Pwrdb pedSet vlainVrin\no iesdfrDsrbto.","oee ySra.hesEauto eso\rNtLcne o itiuin"])}else o.adr&&o.adr.dsr?n=Q(D(["l8","s"]))?"l8":"l4":o.e?(n="l5",g=["Pwrdb pedSet.\rYu eprr elyetkyhseprd","oee ySra.hes \nortmoaydpomn e a xie."]):n=Q(D(["l8","s"]))?"l8":"l4";else o.b?(n="l1",g=["Pwrdb pedSet.\no a nydpo hsEAUTO eso oal.\rTmoaydpomn esaeaalbefrtsig ","oee ySra.hes\rYucnol elyti VLAINvrinlcly \neprr elyetky r vial o etn."]):(n=Q(D(["l7","s"]))?"l7":"l3",g=["EclI ies o on\rYune ai ies e ornSraJ xe O eprr esaeaalbefreauto.I o ucae ies,yu e si orprhs ofraineal ","xe OLcneNtFud\no edavldlcnekyt u pedSEclI.Tmoayky r vial o vlain fyuprhsdalcne orkyi nyu ucaecnimto mi."]);if(a=$(n,g,o),!o.hl&&o.b||o.isVd(!1)){if(r&&t.apply(i),l=e.sheets,s=l[a.name])a.index=s.index;else{for(c in l)l.hasOwnProperty(c)&&(d=l[c],d.index++);if(u=e.slicerCaches)for(f=0;f<u.length;f++)if(b=u[f],h=b.pivotTables,h&&h.length>0)for(p=0;p<h.length;p++)m=h[p],m.tabId+=1;e.sheetCount++,e.activeSheetIndex=e.activeSheetIndex?++e.activeSheetIndex:1}l[a.name]=a,r||t.apply(i)}else e.sheetCount=1,e.sheets={},e.sheets[a.name]=a,r||t.apply(i);i.onCompleted&&i.onCompleted()})}n=function(){var e,t=l.prototype.Jk;l.prototype.Jk=function(){var e=arguments,r=this;ee.call(r,r.Kk.Ne,function(){t.apply(r,e)},!0)},l.prototype.Xh=function(){},e=s.prototype.Ph,s.prototype.Ph=function(){var t=arguments,r=this;ee.call(r,r.Ne,function(){e.apply(r,t)},!1)},s.prototype.Xh=function(){}},a.Bk=n,e.exports=a}()},"./src/lc/ipaddr.js":function(e,t,r){"use strict";!function(t){var r,o="(0?\\d+|0x[a-f0-9]+)",i={fourOctet:RegExp("^".concat(o,"\\.").concat(o,"\\.").concat(o,"\\.").concat(o,"$"),"i"),threeOctet:RegExp("^".concat(o,"\\.").concat(o,"\\.").concat(o,"$"),"i"),twoOctet:RegExp("^".concat(o,"\\.").concat(o,"$"),"i"),longValue:RegExp("^".concat(o,"$"),"i")},n=RegExp("^0[0-7]+$","i"),a=RegExp("^0x[a-f0-9]+$","i"),l="%[0-9a-z]{1,}",s="(?:[0-9a-f]+::?)+",c={zoneIndex:RegExp(l,"i"),native:RegExp("^(::)?(".concat(s,")?([0-9a-f]+)?(::)?(").concat(l,")?$"),"i"),deprecatedTransitional:RegExp("^(?:::)(".concat(o,"\\.").concat(o,"\\.").concat(o,"\\.").concat(o,"(").concat(l,")?)$"),"i"),transitional:RegExp("^((?:".concat(s,")|(?:::)(?:").concat(s,")?)").concat(o,"\\.").concat(o,"\\.").concat(o,"\\.").concat(o,"(").concat(l,")?$"),"i")};function d(e,t){var r,o,i,n,a;if(e.indexOf("::")!==e.lastIndexOf("::"))return null;for(r=0,o=-1,i=(e.match(c.zoneIndex)||[])[0],i&&(i=i.substring(1),e=e.replace(/%.+$/,""));(o=e.indexOf(":",o+1))>=0;)r++;if("::"===e.substr(0,2)&&r--,"::"===e.substr(-2,2)&&r--,r>t)return null;for(a=t-r,n=":";a--;)n+="0:";return e=e.replace("::",n),":"===e[0]&&(e=e.slice(1)),":"===e[e.length-1]&&(e=e.slice(0,-1)),t=function(){var t,r=e.split(":"),o=[];for(t=0;t<r.length;t++)o.push(parseInt(r[t],16));return o}(),{parts:t,zoneId:i}}function u(e,t,r,o){var i,n;if(e.length!==t.length)throw Error("ipaddr: cannot match CIDR for objects with different lengths");for(i=0;o>0;){if(n=r-o,n<0&&(n=0),e[i]>>n!==t[i]>>n)return!1;o-=r,i+=1}return!0}function f(e){if(a.test(e))return parseInt(e,16);if("0"===e[0]&&!isNaN(parseInt(e[1],10))){if(n.test(e))return parseInt(e,8);throw Error("ipaddr: cannot parse ".concat(e," as octal"))}return parseInt(e,10)}function b(e,t){for(;e.length<t;)e="0".concat(e);return e}r={},r.IPv4=function(){function e(e){if(4!==e.length)throw Error("ipaddr: ipv4 octet count should be 4");var t,r;for(t=0;t<e.length;t++)if(r=e[t],!(0<=r&&r<=255))throw Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=e}return e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]]},e.prototype.kind=function(){return"ipv4"},e.prototype.match=function(e,t){var r;if(void 0===t&&(r=e,e=r[0],t=r[1]),"ipv4"!==e.kind())throw Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return u(this.octets,e.octets,8,t)},e.prototype.prefixLengthFromSubnetMask=function(){var e,t,r,o=0,i=!1,n={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};for(e=3;e>=0;e-=1){if(t=this.octets[e],!(t in n))return null;if(r=n[t],i&&0!==r)return null;8!==r&&(i=!0),o+=r}return 32-o},e.prototype.range=function(){return r.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.toIPv4MappedAddress=function(){return r.IPv6.parse("::ffff:".concat(""+this))},e.prototype.toNormalizedString=function(){return""+this},e.prototype.toString=function(){return this.octets.join(".")},e}(),r.IPv4.broadcastAddressFromCIDR=function(e){var t,r,o,i,n;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),o=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<4;)i.push(parseInt(r[n],10)|255^parseInt(o[n],10)),n++;return new this(i)}catch(e){throw Error("ipaddr: the address does not have IPv4 CIDR format")}},r.IPv4.isIPv4=function(e){return null!==this.parser(e)},r.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch(e){return!1}},r.IPv4.isValidFourPartDecimal=function(e){return!(!r.IPv4.isValid(e)||!e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},r.IPv4.networkAddressFromCIDR=function(e){var t,r,o,i,n;try{for(t=this.parseCIDR(e),o=t[0].toByteArray(),n=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],r=0;r<4;)i.push(parseInt(o[r],10)&parseInt(n[r],10)),r++;return new this(i)}catch(e){throw Error("ipaddr: the address does not have IPv4 CIDR format")}},r.IPv4.parse=function(e){var t=this.parser(e);if(null===t)throw Error("ipaddr: string is not formatted like an IPv4 Address");return new this(t)},r.IPv4.parseCIDR=function(e){var t,r,o;if((t=e.match(/^(.+)\/(\d+)$/))&&(r=parseInt(t[2]),r>=0&&r<=32))return o=[this.parse(t[1]),r],Object.defineProperty(o,"toString",{value:function e(){return this.join("/")}}),o;throw Error("ipaddr: string is not formatted like an IPv4 CIDR range")},r.IPv4.parser=function(e){var t,r,o;if(t=e.match(i.fourOctet))return function(){var e,o=t.slice(1,6),i=[];for(e=0;e<o.length;e++)r=o[e],i.push(f(r));return i}();if(t=e.match(i.longValue)){if(o=f(t[1]),o>4294967295||o<0)throw Error("ipaddr: address outside defined range");return function(){var e,t=[];for(e=0;e<=24;e+=8)t.push(o>>e&255);return t}().reverse()}return(t=e.match(i.twoOctet))?function(){var e=t.slice(1,4),r=[];if(o=f(e[1]),o>16777215||o<0)throw Error("ipaddr: address outside defined range");return r.push(f(e[0])),r.push(o>>16&255),r.push(o>>8&255),r.push(255&o),r}():(t=e.match(i.threeOctet))?function(){var e=t.slice(1,5),r=[];if(o=f(e[2]),o>65535||o<0)throw Error("ipaddr: address outside defined range");return r.push(f(e[0])),r.push(f(e[1])),r.push(o>>8&255),r.push(255&o),r}():null},r.IPv4.subnetMaskFromPrefixLength=function(e){var t,r,o;if(e=parseInt(e),e<0||e>32)throw Error("ipaddr: invalid IPv4 prefix length");for(t=[0,0,0,0],r=0,o=Math.floor(e/8);r<o;)t[r]=255,r++;return o<4&&(t[o]=Math.pow(2,e%8)-1<<8-e%8),new this(t)},r.IPv6=function(){function e(e,t){var r,o;if(16===e.length)for(this.parts=[],r=0;r<=14;r+=2)this.parts.push(e[r]<<8|e[r+1]);else{if(8!==e.length)throw Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=e}for(r=0;r<this.parts.length;r++)if(o=this.parts[r],!(0<=o&&o<=65535))throw Error("ipaddr: ipv6 part should fit in 16 bits");t&&(this.zoneId=t)}return e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[new e([100,65435,0,0,0,0,0,0]),96],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],reserved:[[new e([8193,3512,0,0,0,0,0,0]),32]]},e.prototype.isIPv4MappedAddress=function(){return"ipv4Mapped"===this.range()},e.prototype.kind=function(){return"ipv6"},e.prototype.match=function(e,t){var r;if(void 0===t&&(r=e,e=r[0],t=r[1]),"ipv6"!==e.kind())throw Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return u(this.parts,e.parts,16,t)},e.prototype.prefixLengthFromSubnetMask=function(){var e,t,r,o=0,i=!1,n={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0};for(r=7;r>=0;r-=1){if(e=this.parts[r],!(e in n))return null;if(t=n[e],i&&0!==t)return null;16!==t&&(i=!0),o+=t}return 128-o},e.prototype.range=function(){return r.subnetMatch(this,this.SpecialRanges);
|
@@ -48,10 +48,10 @@ i.numDim&&i.numDim.length>0)for(r=0;r<i.numDim.length;r++)l.J(i.numDim[r])||Me.W
|
|
48
48
|
l.J(o.hue1)||e.writeAttributeString("hue",o.hue1),l.J(o.sat1)||e.writeAttributeString("sat",o.sat1),l.J(o.lum1)||e.writeAttributeString("lum",o.lum1)},function(){Ke(e,o)})}t.DrawingWriter.WriteCT_HslColor=cr;function dr(e,t,r,i){e.writeElement(t+":"+r,function(){l.J(i.val)||e.writeAttributeString(f,o.Charts.ST_SystemColorVal[a.ChartHelper.ToST_SystemColorVal(i.val)]),l.J(i.lastClr)||e.writeAttributeString("lastClr",Gt(i.lastClr))},function(){Ke(e,i)})}t.DrawingWriter.WriteCT_SystemColor=dr;function ur(e,t,r,i){e.writeElement(t+":"+r,function(){l.J(i.val)||e.writeAttributeString(f,o.Charts.ST_SchemeColorVal[a.ChartHelper.ToST_SchemeColorVal(i.val)])},function(){Ke(e,i)})}t.DrawingWriter.WriteCT_SchemeColor=ur;function fr(e,t,r,i){e.writeElement(t+":"+r,function(){l.J(i.val)||e.writeAttributeString(f,o.Charts.ST_PresetColorVal[i.val])},function(){Ke(e,i)})}t.DrawingWriter.WriteCT_PresetColor=fr;function br(e,t,r,i){e.writeElement(t+":"+r,function(){l.J(i.val)||e.writeAttributeString(f,o.Charts.ST_StyleColorVal[i.val])},function(){Ke(e,i)})}t.DrawingWriter.WriteCT_StyleColor=br;function hr(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.ext,function(t){l.J(t.uri)&&(t.uri="{96DAC541-7B7A-43D3-8B79-37D633B846F1}"),l.J(t.cameraTool)||(t.uri="{84589F7E-364E-4C9E-8A38-B11213B215E9}"),Ut(e,ve,A,t)})})}t.DrawingWriter.WriteCT_OfficeArtExtensionList=hr;function pr(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.sx)||$t(e,ve,"sx",o.sx),l.J(o.sy)||$t(e,ve,"sy",o.sy)})}t.DrawingWriter.WriteCT_Scale2D=pr;function mr(e,t,r,o,i){e.writeElement(t+":"+r,function(){if(!i){var t=o.rot;l.J(t)||0===t||e.writeAttributeString("rot",parseInt(t,10)),o.flipH===!0&&e.writeAttributeString("flipH","1"),o.flipV===!0&&e.writeAttributeString("flipV","1")}},function(){var t,r;i?(er(e,ve,"off",{x:0,y:0},!0),tr(e,ve,A,{cx:0,cy:0},!0)):(t=o.off,l.J(t)||(l.J(t.x)&&(t.x=0),l.J(t.y)&&(t.y=0),er(e,ve,"off",t,!0)),r=o.ext,l.J(r)||(l.J(r.cx)&&(r.cx=0),l.J(r.cy)&&(r.cy=0),tr(e,ve,A,r,!0)))})}t.DrawingWriter.WriteCT_Transform2D=mr;function gr(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.rot;l.J(t)||0===t||e.writeAttributeString("rot",parseInt(t,10)),o.flipH===!0&&e.writeAttributeString("flipH","1"),o.flipV===!0&&e.writeAttributeString("flipV","1")},function(){var t=o.off,r=o.ext,i=o.chOff,n=o.chExt;l.J(t)||(l.J(t.x)&&(t.x=0),l.J(t.y)&&(t.y=0),er(e,ve,"off",t,!0)),l.J(r)||(l.J(r.cx)&&(r.cx=0),l.J(r.cy)&&(r.cy=0),tr(e,ve,A,r,!0)),l.J(i)||er(e,ve,"chOff",i,!0),l.J(n)||tr(e,ve,"chExt",n,!0)})}t.DrawingWriter.WriteCT_GroupTransform2D=gr;function yr(e,t,r,o){e.writeLeafElement(t+":"+r,function(){l.J(o.x)||e.writeAttributeString("x",o.x),l.J(o.y)||e.writeAttributeString("y",o.y),l.J(o.z)||e.writeAttributeString("z",o.z)})}t.DrawingWriter.WriteCT_Point3D=yr;function Sr(e,t,r,o){e.writeLeafElement(t+":"+r,function(){l.J(o.dx)||e.writeAttributeString("dx",o.dx),l.J(o.dy)||e.writeAttributeString("dy",o.dy),l.J(o.dz)||e.writeAttributeString("dz",o.dz)})}t.DrawingWriter.WriteCT_Vector3D=Sr;function Cr(e,t,r,o){var i=!l.J(o.lat),n=!l.J(o.lon),a=!l.J(o.rev);(i||n||a)&&e.writeLeafElement(t+":"+r,function(){i&&e.writeAttributeString("lat",o.lat),n&&e.writeAttributeString("lon",o.lon),a&&e.writeAttributeString("rev",o.rev)})}t.DrawingWriter.WriteCT_SphereCoords=Cr;function wr(e,t,r,o){e.writeLeafElement(t+":"+r,function(){l.J(o.l)||0===o.l||e.writeAttributeString("l",o.l),l.J(o.t)||0===o.t||e.writeAttributeString("t",o.t),l.J(o.r)||0===o.r||e.writeAttributeString(Fe,o.r),l.J(o.b)||0===o.b||e.writeAttributeString("b",o.b)})}t.DrawingWriter.WriteCT_RelativeRect=wr;function xr(e,t,r,o){e.writeElement(t+":"+r,function(){Ve(e,o)})}t.DrawingWriter.WriteCT_Color=xr;function Ar(e,t,r,o){e.writeElement(t+":"+r,function(){o.scrgbClr?Ze(o.scrgbClr,function(t){lr(e,ve,T,t)}):o.srgbClr?Ze(o.srgbClr,function(t){sr(e,ve,v,t)}):o.hslClr?Ze(o.hslClr,function(t){cr(e,ve,k,t)}):o.sysClr?Ze(o.sysClr,function(t){dr(e,ve,F,t)}):o.schemeClr?Ze(o.schemeClr,function(t){ur(e,ve,R,t)}):o.prstClr&&Ze(o.prstClr,function(t){fr(e,ve,E,t)})})}t.DrawingWriter.WriteCT_ColorMRU=Ar;function Tr(e,t,r,o){e.writeLeafElement(t+":"+r,function(){var t=o.embed,r=o.name;l.J(t)||e.writeAttributeString("embed",t),Oe(r)||e.writeAttributeString(b,r),o.builtIn===!0&&e.writeAttributeString("builtIn","1")})}t.DrawingWriter.WriteCT_EmbeddedWAVAudioFile=Tr;function vr(e,r,o,i){e.writeElement(r+":"+o,function(){var r,o,n,a=i.action,c=i.tgtFrame,d=i.tooltip;Oe(i.url)||(r="",o=new s.XFile(r,s.RelationshipConstants.gb),n="sjs://",i.url.substring(0,n.length)===n?o.target="#"+l.Util.oa(i.url.replace(n,"")):(o.target=l.Util.oa(i.url),o.targetMode="External"),i.rid=e.currentFile.ze(o),e.writeAttributeString("r:id",i.rid)),e.writeAttributeString("xmlns:r",t.DrawingWriter.r),Oe(a)||e.writeAttributeString("action",i.action),Oe(c)||e.writeAttributeString("tgtFrame",c),Oe(d)||e.writeAttributeString("tooltip",d),i.history===!1&&e.writeAttributeString("history","0"),i.highlightClick===!0&&e.writeAttributeString("highlightClick","1"),i.endSnd===!0&&e.writeAttributeString("endSnd","1")},function(){l.J(i.snd)||Tr(e,ve,"snd",i.snd),l.J(i.extLst)||hr(e,ve,m,i.extLst)})}t.DrawingWriter.WriteCT_Hyperlink=vr;function kr(e,t,r,o){e.writeLeafElement(t+":"+r,function(){e.writeAttributeString(f,o?"1":"0")})}t.DrawingWriter.WriteCT_Boolean=kr;function Fr(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_Double=Fr;function Rr(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_UnsignedInt=Rr;function Er(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_Int=Er;function Ir(e,t,r,o){Ge(e,t,r,o.id,"id")}t.DrawingWriter.WriteCT_RelId=Ir;function Lr(e,r,o,i){e.writeElement(r+":"+o,function(){l.J(i.uri)||e.writeAttributeString("uri",i.uri),e.writeAttributeString("xmlns:c14",t.DrawingWriter.c14)},function(){var t=i.dataObject;t&&(0===t.extDataType?sn(e,De,"invertSolidFillFmt",t):1===t.extDataType?An(e,Ie,"datalabelsRange",t):2===t.extDataType&&Vi(e,_e,"dataDisplayOptions16",t))})}t.DrawingWriter.WriteCT_Extension=Lr;function Dr(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.ext,function(t){Lr(e,Ee,A,t)})})}t.DrawingWriter.WriteCT_ExtensionList=Dr;function Br(e,t,r,o,i){e.writeElement(t+":"+r,function(){l.J(i)||e.writeAttributeString("idx",i)},function(){if(!l.J(o)){var t=o.replace(/,/g,"");e.writeElementString("c:v",t)}})}t.DrawingWriter.WriteCT_NumVal=Br;function Pr(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.ptCount,r=o.extLst;l.J(o.formatCode)||e.writeElementString("c:formatCode",d(o.formatCode)),l.J(t)||Rr(e,Ee,"ptCount",t),Ze(o.pt,function(t,r){Br(e,Ee,"pt",t,r)}),l.J(r)||Dr(e,Ee,m,r)})}t.DrawingWriter.WriteCT_NumData=Pr;function Wr(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.numCache,r=o.extLst;l.J(o.f)||e.writeElementString("c:f",d(o.f)),l.J(t)||Pr(e,Ee,"numCache",t),l.J(r)||Dr(e,Ee,m,r)})}t.DrawingWriter.WriteCT_NumRef=Wr;function _r(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.numRef,r=o.numLit;l.J(t)||Wr(e,Ee,"numRef",t),l.J(r)||Pr(e,Ee,"numLit",r)})}t.DrawingWriter.WriteCT_NumDataSource=_r;function Nr(e,t,r,o){e.writeElement(t+":"+r,function(){vt(e,o)},function(){l.J(o.v)||e.writeElementString("c:v",d(o.v))})}t.DrawingWriter.WriteCT_StrVal=Nr;function Mr(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.ptCount,r=o.extLst;l.J(t)||Rr(e,Ee,"ptCount",t),Ze(o.pt,function(t,r){Nr(e,Ee,"pt",{idx:r,v:t})}),l.J(r)||Dr(e,Ee,m,r)})}t.DrawingWriter.WriteCT_StrData=Mr;function Or(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.extLst;l.J(o.f)||e.writeElementString("c:f",d(o.f)),l.J(t)||Dr(e,Ee,m,t)})}t.DrawingWriter.WriteCT_StrRef=Or;function Hr(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.strRef,r=o.rich;l.J(t)||Or(e,Ee,"strRef",t),l.J(r)||Cs(e,Ee,"rich",r)})}t.DrawingWriter.WriteCT_Tx=Hr;function Gr(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_TextLanguageID=Gr;function Ur(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.pt,function(t){Nr(e,Ee,"pt",t)})})}t.DrawingWriter.WriteCT_Lvl=Ur;function Jr(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.ptCount,r=o.extLst;l.J(t)||Rr(e,Ee,"ptCount",t),Ze(o.lvl,function(t){Mr(e,Ee,"lvl",t)}),l.J(r)||Dr(e,Ee,m,r)})}t.DrawingWriter.WriteCT_MultiLvlStrData=Jr;function zr(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.multiLvlStrCache,r=o.extLst;l.J(o.f)||e.writeElementString("c:f",d(o.f)),l.J(t)||Jr(e,Ee,"multiLvlStrCache",t),l.J(r)||Dr(e,Ee,m,r)})}t.DrawingWriter.WriteCT_MultiLvlStrRef=zr;function Vr(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.multiLvlStrRef,r=o.numRef,i=o.numLit,n=o.strRef,a=o.strLit;l.J(t)||zr(e,Ee,"multiLvlStrRef",t),l.J(r)||Wr(e,Ee,"numRef",r),l.J(i)||Pr(e,Ee,"numLit",i),l.J(n)||Or(e,Ee,"strRef",n),l.J(a)||Mr(e,Ee,"strLit",a)})}t.DrawingWriter.WriteCT_AxDataSource=Vr;function jr(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.strRef)||Or(e,Ee,"strRef",o.strRef),l.J(o.v)||e.writeElementString("c:v",o.v)})}t.DrawingWriter.WriteCT_SerTx=jr;function Xr(e,t,r,i){Ge(e,t,r,i,f,1,o.Charts.ST_LayoutTarget)}t.DrawingWriter.WriteCT_LayoutTarget=Xr;function Kr(e,t,r,i){Ge(e,t,r,i,f,1,o.Charts.ST_LayoutMode)}t.DrawingWriter.WriteCT_LayoutMode=Kr;function qr(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.layoutTarget,r=o.xMode,i=o.yMode,n=o.wMode,a=o.hMode,s=o.extLst;l.J(t)||Xr(e,Ee,"layoutTarget",t),l.J(r)||Kr(e,Ee,"xMode",r),l.J(i)||Kr(e,Ee,"yMode",i),l.J(n)||Kr(e,Ee,"wMode",n),l.J(a)||Kr(e,Ee,"hMode",a),l.J(o.x)||Fr(e,Ee,"x",o.x),l.J(o.y)||Fr(e,Ee,"y",o.y),l.J(o.w)||Fr(e,Ee,"w",o.w),l.J(o.h)||Fr(e,Ee,"h",o.h),l.J(s)||Dr(e,Ee,m,s)})}t.DrawingWriter.WriteCT_ManualLayout=qr;function Yr(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.manualLayout,r=o.extLst;l.J(t)||qr(e,Ee,"manualLayout",t),l.J(r)||Dr(e,Ee,m,r)})}t.DrawingWriter.WriteCT_Layout=Yr;function Qr(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.tx,r=o.layout,i=o.overlay,n=o.spPr,a=o.txPr,s=o.extLst;l.J(t)||Hr(e,Ee,"tx",t),l.J(r)||Yr(e,Ee,q,r),l.J(i)||kr(e,Ee,"overlay",i),l.J(n)||Sl(e,Ee,O,n),l.J(a)||Cs(e,Ee,H,a),l.J(s)||Dr(e,Ee,m,s)})}t.DrawingWriter.WriteCT_Title=Qr;function Zr(e,t,r,o){Ge(e,t,r,o,f,0)}t.DrawingWriter.WriteCT_RotX=Zr;function $r(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_HPercent=$r;function eo(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_RotY=eo;function to(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_DepthPercent=to;function ro(e,t,r,o){Ge(e,t,r,o,f,30)}t.DrawingWriter.WriteCT_Perspective=ro;function oo(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.rotX,r=o.hPercent,i=o.rotY,n=o.depthPercent,a=o.rAngAx,s=o.perspective,c=o.extLst;l.J(t)||Zr(e,Ee,"rotX",t),l.J(r)||$r(e,Ee,"hPercent",r),l.J(i)||eo(e,Ee,"rotY",i),l.J(n)||to(e,Ee,"depthPercent",n),l.J(a)||kr(e,Ee,"rAngAx",a),l.J(s)||ro(e,Ee,"perspective",s),l.J(c)||Dr(e,Ee,m,c)})}t.DrawingWriter.WriteCT_View3D=oo;function io(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.thickness,r=o.spPr,i=o.pictureOptions,n=o.extLst;l.J(t)||Rr(e,Ee,"thickness",t),l.J(r)||Sl(e,Ee,O,r),l.J(i)||Fi(e,Ee,Y,i),l.J(n)||Dr(e,Ee,m,n)})}t.DrawingWriter.WriteCT_Surface=io;function no(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.showHorzBorder,r=o.showVertBorder,i=o.showOutline,n=o.showKeys,a=o.spPr,s=o.txPr,c=o.extLst;l.J(t)||kr(e,Ee,"showHorzBorder",t),l.J(r)||kr(e,Ee,"showVertBorder",r),l.J(i)||kr(e,Ee,"showOutline",i),l.J(n)||kr(e,Ee,"showKeys",n),l.J(a)||Sl(e,Ee,O,a),l.J(s)||Cs(e,Ee,H,s),l.J(c)||Dr(e,Ee,m,c)})}t.DrawingWriter.WriteCT_DTable=no;function ao(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_GapAmount=ao;function lo(e,t,r,o){Ge(e,t,r,o,f,0)}t.DrawingWriter.WriteCT_Overlap=lo;function so(e,t,r,o){Ge(e,t,r,o,f,100)}t.DrawingWriter.WriteCT_BubbleScale=so;function co(e,t,r,i){Ge(e,t,r,i,f,0,o.Charts.ST_SizeRepresents)}t.DrawingWriter.WriteCT_SizeRepresents=co;function uo(e,t,r,o){Ge(e,t,r,o,f,0)}t.DrawingWriter.WriteCT_FirstSliceAng=uo;function fo(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_HoleSize=fo;function bo(e,t,r,i){Ge(e,t,r,i,f,0,o.Charts.ST_SplitType,a.ChartHelper.ToST_SplitType)}t.DrawingWriter.WriteCT_SplitType=bo;function ho(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.secondPiePt,function(t){Rr(e,Ee,"secondPiePt",t)})})}t.DrawingWriter.WriteCT_CustSplit=ho;function po(e,t,r,o){Ge(e,t,r,o,f,75)}t.DrawingWriter.WriteCT_SecondPieSize=po;function mo(e,t,r,o){e.writeLeafElement(t+":"+r,function(){l.J(o.formatCode)||e.writeAttributeString("formatCode",d(o.formatCode)),o.sourceLinked===!1&&e.writeAttributeString("sourceLinked","0")})}t.DrawingWriter.WriteCT_NumFmt=mo;function go(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_LblAlgn)}t.DrawingWriter.WriteCT_LblAlgn=go;function yo(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_DLblPos)}t.DrawingWriter.WriteCT_DLblPos=yo;function So(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.idx,r=o.delete,i=o.layout,n=o.tx,a=o.extLst;l.J(t)||Rr(e,Ee,"idx",t),l.J(r)||kr(e,Ee,N,r),l.J(i)||Yr(e,Ee,q,i),l.J(n)||Hr(e,Ee,"tx",n),rt(e,o),l.J(a)||rn(e,Ee,m,a)})}t.DrawingWriter.WriteCT_DLbl=So;function Co(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.delete,r=o.showLeaderLines,i=o.leaderLines,n=o.extLst;Ze(o.dLbl,function(t){So(e,Ee,"dLbl",t)}),l.J(t)||kr(e,Ee,N,t),rt(e,o),l.J(r)||kr(e,Ee,"showLeaderLines",r),l.J(i)||Vo(e,Ee,"leaderLines",i),l.J(n)||nn(e,Ee,m,n)})}t.DrawingWriter.WriteCT_DLbls=Co;function wo(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_MarkerStyle,a.ChartHelper.ToST_MarkerStyle)}t.DrawingWriter.WriteCT_MarkerStyle=wo;function xo(e,t,r,o){var n=Math.min(72,Math.round(i.UnitHelper.pixelToPoint(o)));Ge(e,t,r,n,f)}t.DrawingWriter.WriteCT_MarkerSize=xo;function Ao(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.symbol,r=o.size,i=o.spPr,n=o.extLst;l.J(t)||wo(e,Ee,"symbol",t),l.J(r)||xo(e,Ee,"size",r),l.J(i)||Sl(e,Ee,O,i),l.J(n)||Dr(e,Ee,m,n)})}t.DrawingWriter.WriteCT_Marker=Ao;function To(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.idx,r=o.invertIfNegative,i=o.marker,n=o.bubble3D,a=o.explosion,s=o.spPr,c=o.pictureOptions,d=o.extLst;l.J(t)||Rr(e,Ee,"idx",t),l.J(r)||kr(e,Ee,G,r),l.J(i)||Ao(e,Ee,J,i),l.J(n)||kr(e,Ee,U,n),l.J(a)||Rr(e,Ee,"explosion",a),l.J(s)||Sl(e,Ee,O,s),l.J(c)||Fi(e,Ee,Y,c),l.J(d)||Dr(e,Ee,m,d)})}t.DrawingWriter.WriteCT_DPt=To;function vo(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_TrendlineType)}t.DrawingWriter.WriteCT_TrendlineType=vo;function ko(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_Order=ko;function Fo(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_Period=Fo;function Ro(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.layout,r=o.tx,i=o.numFmt,n=o.spPr,a=o.txPr,s=o.extLst;l.J(t)||Yr(e,Ee,q,t),l.J(r)||Hr(e,Ee,"tx",r),l.J(i)||mo(e,Ee,fe,i),l.J(n)||Sl(e,Ee,O,n),l.J(a)||Cs(e,Ee,H,a),l.J(s)||Dr(e,Ee,m,s)})}t.DrawingWriter.WriteCT_TrendlineLbl=Ro;function Eo(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.spPr,r=o.trendlineType,i=o.order,n=o.period,a=o.forward,s=o.backward,c=o.intercept,d=o.dispRSqr,u=o.dispEq,f=o.trendlineLbl,b=o.extLst;l.J(o.name)||e.writeElementString("c:name",o.name),l.J(t)||Sl(e,Ee,O,t),l.J(r)||vo(e,Ee,"trendlineType",r),l.J(i)||ko(e,Ee,Q,i),l.J(n)||Fo(e,Ee,"period",n),l.J(a)||Fr(e,Ee,"forward",a),l.J(s)||Fr(e,Ee,"backward",s),l.J(c)||Fr(e,Ee,"intercept",c),l.J(d)||kr(e,Ee,"dispRSqr",d),l.J(u)||kr(e,Ee,"dispEq",u),l.J(f)||Ro(e,Ee,"trendlineLbl",f),l.J(b)||Dr(e,Ee,m,b)})}t.DrawingWriter.WriteCT_Trendline=Eo;function Io(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_ErrDir)}t.DrawingWriter.WriteCT_ErrDir=Io;function Lo(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_ErrBarType)}t.DrawingWriter.WriteCT_ErrBarType=Lo;function Do(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_ErrValType)}t.DrawingWriter.WriteCT_ErrValType=Do;function Bo(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.errDir,r=o.errBarType,i=o.errValType,n=o.noEndCap,a=o.plus,s=o.minus,c=o.val,d=o.spPr,u=o.extLst;l.J(t)||Io(e,Ee,"errDir",t),l.J(r)||Lo(e,Ee,"errBarType",r),l.J(i)||Do(e,Ee,"errValType",i),l.J(n)||kr(e,Ee,"noEndCap",n),l.J(a)||_r(e,Ee,"plus",a),l.J(s)||_r(e,Ee,"minus",s),l.J(c)||Fr(e,Ee,f,c),l.J(d)||Sl(e,Ee,O,d),l.J(u)||Dr(e,Ee,m,u)})}t.DrawingWriter.WriteCT_ErrBars=Bo;function Po(e,t,r,o){Ue(e,t,r,o,Sl,Ee,O)}t.DrawingWriter.WriteCT_UpDownBar=Po;function Wo(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.gapWidth,r=o.upBars,i=o.downBars,n=o.extLst;l.J(t)||ao(e,Ee,Z,t),l.J(r)||Po(e,Ee,"upBars",r),l.J(i)||Po(e,Ee,"downBars",i),l.J(n)||Dr(e,Ee,m,n)})}t.DrawingWriter.WriteCT_UpDownBars=Wo;function _o(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.cat,r=o.val;$e(e,o),l.J(t)||Vr(e,Ee,"cat",t),l.J(r)||_r(e,Ee,f,r)})}t.DrawingWriter.WriteCT_LineSer=_o;function No(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.xVal,r=o.yVal;$e(e,o),l.J(t)||Vr(e,Ee,"xVal",t),l.J(r)||_r(e,Ee,"yVal",r)})}t.DrawingWriter.WriteCT_ScatterSer=No;function Mo(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.idx,r=o.order,i=o.tx,n=o.spPr,a=o.marker,s=o.dLbls,c=o.cat,d=o.val,u=o.extLst;l.J(t)||Rr(e,Ee,"idx",t),l.J(r)||Rr(e,Ee,Q,r),l.J(i)||jr(e,Ee,"tx",i),l.J(n)||Sl(e,Ee,O,n),l.J(a)||Ao(e,Ee,J,a),Ze(o.dPt,function(t){To(e,Ee,"dPt",t)}),l.J(s)||Co(e,Ee,$,s),l.J(c)||Vr(e,Ee,"cat",c),l.J(d)||_r(e,Ee,f,d),l.J(u)||Dr(e,Ee,m,u)})}t.DrawingWriter.WriteCT_RadarSer=Mo;function Oo(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.invertIfNegative,r=o.shape;et(e,o),l.J(t)||kr(e,Ee,G,t),l.J(r)||ti(e,Ee,"shape",r)})}t.DrawingWriter.WriteCT_BarSer=Oo;function Ho(e,t,r,o){e.writeElement(t+":"+r,function(){et(e,o)})}t.DrawingWriter.WriteCT_AreaSer=Ho;function Go(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.idx,r=o.order,i=o.tx,n=o.spPr,a=o.explosion,s=o.dLbls,c=o.cat,d=o.val,u=o.extLst;l.J(t)||Rr(e,Ee,"idx",t),l.J(r)||Rr(e,Ee,Q,r),l.J(i)||jr(e,Ee,"tx",i),l.J(n)||Sl(e,Ee,O,n),l.J(a)||Rr(e,Ee,"explosion",a),Ze(o.dPt,function(t){To(e,Ee,"dPt",t)}),l.J(s)||Co(e,Ee,$,s),l.J(c)||Vr(e,Ee,"cat",c),l.J(d)||_r(e,Ee,f,d),l.J(u)||Dr(e,Ee,m,u)})}t.DrawingWriter.WriteCT_PieSer=Go;function Uo(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.idx,r=o.order,i=o.tx,n=o.spPr,a=o.invertIfNegative,s=o.dLbls,c=o.xVal,d=o.yVal,u=o.bubbleSize,f=o.bubble3D,b=o.extLst;l.J(t)||Rr(e,Ee,"idx",t),l.J(r)||Rr(e,Ee,Q,r),l.J(i)||jr(e,Ee,"tx",i),l.J(n)||Sl(e,Ee,O,n),l.J(a)||kr(e,Ee,G,a),Ze(o.dPt,function(t){To(e,Ee,"dPt",t)}),l.J(s)||Co(e,Ee,$,s),Ze(o.trendline,function(t){Eo(e,Ee,ee,t)}),Ze(o.errBars,function(t){Bo(e,Ee,te,t)}),l.J(c)||Vr(e,Ee,"xVal",c),l.J(d)||_r(e,Ee,"yVal",d),l.J(u)||_r(e,Ee,"bubbleSize",u),l.J(f)||kr(e,Ee,U,f),l.J(b)||Dr(e,Ee,m,b)})}t.DrawingWriter.WriteCT_BubbleSer=Uo;function Jo(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.idx,r=o.order,i=o.tx,n=o.spPr,a=o.cat,s=o.val,c=o.extLst;l.J(t)||Rr(e,Ee,"idx",t),l.J(r)||Rr(e,Ee,Q,r),l.J(i)||jr(e,Ee,"tx",i),l.J(n)||Sl(e,Ee,O,n),l.J(a)||Vr(e,Ee,"cat",a),l.J(s)||_r(e,Ee,f,s),l.J(c)||Dr(e,Ee,m,c)})}t.DrawingWriter.WriteCT_SurfaceSer=Jo;function zo(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_Grouping)}t.DrawingWriter.WriteCT_Grouping=zo;function Vo(e,t,r,o){Ue(e,t,r,o,Sl,Ee,O)}t.DrawingWriter.WriteCT_ChartLines=Vo;function jo(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.grouping,r=o.varyColors,i=o.dLbls,n=o.dropLines,a=o.hiLowLines,s=o.upDownBars,c=o.marker,d=o.smooth,u=o.extLst;l.J(t)||zo(e,Ee,ne,t),l.J(r)||kr(e,Ee,ae,r),Ze(o.ser,function(t){_o(e,Ee,re,t)}),l.J(i)||Co(e,Ee,$,i),l.J(n)||Vo(e,Ee,oe,n),l.J(a)||Vo(e,Ee,"hiLowLines",a),l.J(s)||Wo(e,Ee,"upDownBars",s),l.J(c)||kr(e,Ee,J,c),l.J(d)||kr(e,Ee,"smooth",d),Ze(o.axId,function(t){Er(e,Ee,ie,t)}),l.J(u)||Dr(e,Ee,m,u)})}t.DrawingWriter.WriteCT_LineChart=jo;function Xo(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.grouping,r=o.varyColors,i=o.dLbls,n=o.dropLines,a=o.gapDepth,s=o.extLst;l.J(t)||zo(e,Ee,ne,t),l.J(r)||kr(e,Ee,ae,r),Ze(o.ser,function(t){_o(e,Ee,re,t)}),l.J(i)||Co(e,Ee,$,i),l.J(n)||Vo(e,Ee,oe,n),l.J(a)||ao(e,Ee,"gapDepth",a),Ze(o.axId,function(t){Er(e,Ee,ie,t)}),l.J(s)||Dr(e,Ee,m,s)})}t.DrawingWriter.WriteCT_Line3DChart=Xo;function Ko(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.dLbls,r=o.dropLines,i=o.hiLowLines,n=o.upDownBars,a=o.extLst;Ze(o.ser,function(t){_o(e,Ee,re,t)}),l.J(t)||Co(e,Ee,$,t),l.J(r)||Vo(e,Ee,oe,r),l.J(i)||Vo(e,Ee,"hiLowLines",i),l.J(n)||Wo(e,Ee,"upDownBars",n),Ze(o.axId,function(t){Er(e,Ee,ie,t)}),l.J(a)||Dr(e,Ee,m,a)})}t.DrawingWriter.WriteCT_StockChart=Ko;function qo(e,t,r,i){Ge(e,t,r,i,f,3,o.Charts.ST_ScatterStyle)}t.DrawingWriter.WriteCT_ScatterStyle=qo;function Yo(e,t,r,o){e.writeElement(t+":"+r,function(){var t,r=o.scatterStyle,i=o.varyColors,n=o.dLbls,a=o.extLst;l.J(r)||(t=r,1===t||3===t?r=2:4===t&&(r=5),qo(e,Ee,"scatterStyle",r)),l.J(i)||kr(e,Ee,ae,i),Ze(o.ser,function(t){No(e,Ee,re,t)}),l.J(n)||Co(e,Ee,$,n),Ze(o.axId,function(t){Er(e,Ee,ie,t)}),l.J(a)||Dr(e,Ee,m,a)})}t.DrawingWriter.WriteCT_ScatterChart=Yo;function Qo(e,t,r,i){Ge(e,t,r,i,f,0,o.Charts.ST_RadarStyle)}t.DrawingWriter.WriteCT_RadarStyle=Qo;function Zo(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.radarStyle,r=o.varyColors,i=o.dLbls,n=o.extLst;l.J(t)||Qo(e,Ee,"radarStyle",t),l.J(r)||kr(e,Ee,ae,r),Ze(o.ser,function(t){Mo(e,Ee,re,t)}),l.J(i)||Co(e,Ee,$,i),Ze(o.axId,function(t){Er(e,Ee,ie,t)}),l.J(n)||Dr(e,Ee,m,n)})}t.DrawingWriter.WriteCT_RadarChart=Zo;function $o(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_BarGrouping)}t.DrawingWriter.WriteCT_BarGrouping=$o;function ei(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_BarDir)}t.DrawingWriter.WriteCT_BarDir=ei;function ti(e,t,r,i){Ge(e,t,r,i,f,2,o.Charts.ST_Shape)}t.DrawingWriter.WriteCT_ShapeBox=ti;function ri(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.barDir,r=o.grouping,i=o.varyColors,n=o.dLbls,a=o.gapWidth,s=o.overlap,c=o.extLst;l.J(t)||ei(e,Ee,"barDir",t),l.J(r)||$o(e,Ee,ne,r),l.J(i)||kr(e,Ee,ae,i),Ze(o.ser,function(t){Oo(e,Ee,re,t)}),l.J(n)||Co(e,Ee,$,n),l.J(a)||ao(e,Ee,Z,a),l.J(s)||lo(e,Ee,"overlap",s),Ze(o.serLines,function(t){Vo(e,Ee,"serLines",t)}),Ze(o.axId,function(t){Er(e,Ee,ie,t)}),l.J(c)||Dr(e,Ee,m,c)})}t.DrawingWriter.WriteCT_BarChart=ri;function oi(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.barDir,r=o.grouping,i=o.varyColors,n=o.dLbls,a=o.gapWidth,s=o.gapDepth,c=o.shape,d=o.extLst;l.J(t)||ei(e,Ee,"barDir",t),l.J(r)||$o(e,Ee,ne,r),l.J(i)||kr(e,Ee,ae,i),Ze(o.ser,function(t){Oo(e,Ee,re,t)}),l.J(n)||Co(e,Ee,$,n),l.J(a)||ao(e,Ee,Z,a),l.J(s)||ao(e,Ee,"gapDepth",s),l.J(c)||ti(e,Ee,"shape",c),Ze(o.axId,function(t){Er(e,Ee,ie,t)}),l.J(d)||Dr(e,Ee,m,d)})}t.DrawingWriter.WriteCT_Bar3DChart=oi;function ii(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.grouping,r=o.varyColors,i=o.dLbls,n=o.dropLines,a=o.extLst;l.J(t)||zo(e,Ee,ne,t),l.J(r)||kr(e,Ee,ae,r),Ze(o.ser,function(t){Ho(e,Ee,re,t)}),l.J(i)||Co(e,Ee,$,i),l.J(n)||Vo(e,Ee,oe,n),Ze(o.axId,function(t){Er(e,Ee,ie,t)}),l.J(a)||Dr(e,Ee,m,a)})}t.DrawingWriter.WriteCT_AreaChart=ii;function ni(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.grouping,r=o.varyColors,i=o.dLbls,n=o.dropLines,a=o.gapDepth,s=o.extLst;l.J(t)||zo(e,Ee,ne,t),l.J(r)||kr(e,Ee,ae,r),Ze(o.ser,function(t){Ho(e,Ee,re,t)}),l.J(i)||Co(e,Ee,$,i),l.J(n)||Vo(e,Ee,oe,n),l.J(a)||ao(e,Ee,"gapDepth",a),Ze(o.axId,function(t){Er(e,Ee,ie,t)}),l.J(s)||Dr(e,Ee,m,s)})}t.DrawingWriter.WriteCT_Area3DChart=ni;function ai(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.varyColors,r=o.dLbls,i=o.firstSliceAng,n=o.extLst;l.J(t)||kr(e,Ee,ae,t),Ze(o.ser,function(t){Go(e,Ee,re,t)}),l.J(r)||Co(e,Ee,$,r),l.J(i)||uo(e,Ee,"firstSliceAng",i),l.J(n)||Dr(e,Ee,m,n)})}t.DrawingWriter.WriteCT_PieChart=ai;function li(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.varyColors,r=o.dLbls,i=o.extLst;l.J(t)||kr(e,Ee,ae,t),Ze(o.ser,function(t){Go(e,Ee,re,t)}),l.J(r)||Co(e,Ee,$,r),l.J(i)||Dr(e,Ee,m,i)})}t.DrawingWriter.WriteCT_Pie3DChart=li;function si(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.varyColors,r=o.dLbls,i=o.firstSliceAng,n=o.holeSize,a=o.extLst;l.J(t)||kr(e,Ee,ae,t),Ze(o.ser,function(t){Go(e,Ee,re,t)}),l.J(r)||Co(e,Ee,$,r),l.J(i)||uo(e,Ee,"firstSliceAng",i),l.J(n)||fo(e,Ee,"holeSize",n),l.J(a)||Dr(e,Ee,m,a)})}t.DrawingWriter.WriteCT_DoughnutChart=si;function ci(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_OfPieType)}t.DrawingWriter.WriteCT_OfPieType=ci;function di(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.ofPieType,r=o.varyColors,i=o.dLbls,n=o.gapWidth,a=o.splitType,s=o.splitPos,c=o.custSplit,d=o.secondPieSize,u=o.extLst;l.J(t)||ci(e,Ee,"ofPieType",t),l.J(r)||kr(e,Ee,ae,r),Ze(o.ser,function(t){Go(e,Ee,re,t)}),l.J(i)||Co(e,Ee,$,i),l.J(n)||ao(e,Ee,Z,n),l.J(a)||bo(e,Ee,"splitType",a),l.J(s)||Fr(e,Ee,"splitPos",s),l.J(c)||ho(e,Ee,"custSplit",c),l.J(d)||po(e,Ee,"secondPieSize",d),Ze(o.serLines,function(t){Vo(e,Ee,"serLines",t)}),l.J(u)||Dr(e,Ee,m,u)})}t.DrawingWriter.WriteCT_OfPieChart=di;function ui(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.varyColors,r=o.dLbls,i=o.bubble3D,n=o.bubbleScale,a=o.showNegBubbles,s=o.sizeRepresents,c=o.extLst;l.J(t)||kr(e,Ee,ae,t),Ze(o.ser,function(t){Uo(e,Ee,re,t)}),l.J(r)||Co(e,Ee,$,r),l.J(i)||kr(e,Ee,U,i),l.J(n)||so(e,Ee,"bubbleScale",n),l.J(a)||kr(e,Ee,"showNegBubbles",a),l.J(s)||co(e,Ee,"sizeRepresents",s),Ze(o.axId,function(t){Er(e,Ee,ie,t)}),l.J(c)||Dr(e,Ee,m,c)})}t.DrawingWriter.WriteCT_BubbleChart=ui;function fi(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.idx)||Rr(e,Ee,"idx",o.idx),l.J(o.spPr)||Sl(e,Ee,O,o.spPr)})}t.DrawingWriter.WriteCT_BandFmt=fi;function bi(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.bandFmt,function(t){fi(e,Ee,"bandFmt",t)})})}t.DrawingWriter.WriteCT_BandFmts=bi;function hi(e,t,r,o){qe(e,t,r,o)}t.DrawingWriter.WriteCT_SurfaceChart=hi;function pi(e,t,r,o){qe(e,t,r,o)}t.DrawingWriter.WriteCT_Surface3DChart=pi;function mi(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_AxPos)}t.DrawingWriter.WriteCT_AxPos=mi;function gi(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_Crosses,a.ChartHelper.ToST_Crosses)}t.DrawingWriter.WriteCT_Crosses=gi;function yi(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_CrossBetween)}t.DrawingWriter.WriteCT_CrossBetween=yi;function Si(e,t,r,i){Ge(e,t,r,i,f,0,o.Charts.ST_TickMark)}t.DrawingWriter.WriteCT_TickMark=Si;function Ci(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_TickLblPos)}t.DrawingWriter.WriteCT_TickLblPos=Ci;function wi(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_Skip=wi;function xi(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_TimeUnit)}t.DrawingWriter.WriteCT_TimeUnit=xi;function Ai(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_AxisUnit=Ai;function Ti(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_BuiltInUnit,a.ChartHelper.ToST_BuiltInUnit)}t.DrawingWriter.WriteCT_BuiltInUnit=Ti;function vi(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_PictureFormat)}t.DrawingWriter.WriteCT_PictureFormat=vi;function ki(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_PictureStackUnit=ki;function Fi(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.applyToFront,r=o.applyToSides,i=o.applyToEnd,n=o.pictureFormat,a=o.pictureStackUnit;l.J(t)||kr(e,Ee,"applyToFront",t),l.J(r)||kr(e,Ee,"applyToSides",r),l.J(i)||kr(e,Ee,"applyToEnd",i),l.J(n)||vi(e,Ee,"pictureFormat",n),l.J(a)||ki(e,Ee,"pictureStackUnit",a)})}t.DrawingWriter.WriteCT_PictureOptions=Fi;function Ri(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.layout,r=o.tx,i=o.spPr,n=o.txPr;l.J(t)||Yr(e,Ee,q,t),l.J(r)||Hr(e,Ee,"tx",r),l.J(i)||Sl(e,Ee,O,i),l.J(n)||Cs(e,Ee,H,n)})}t.DrawingWriter.WriteCT_DispUnitsLbl=Ri;function Ei(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.custUnit,r=o.builtInUnit,i=o.dispUnitsLbl,n=o.extLst,a=o.visible;l.J(t)?l.J(r)||Ti(e,Ee,"builtInUnit",r):Fr(e,Ee,"custUnit",t),!l.J(i)&&a&&Ri(e,Ee,"dispUnitsLbl",i),l.J(n)||Dr(e,Ee,m,n)})}t.DrawingWriter.WriteCT_DispUnits=Ei;function Ii(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_Orientation)}t.DrawingWriter.WriteCT_Orientation=Ii;function Li(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_LogBase=Li;function Di(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.logBase,r=o.orientation,i=o.max,n=o.min,a=o.extLst;l.J(t)||Li(e,Ee,"logBase",t),l.J(r)||Ii(e,Ee,"orientation",r),l.J(i)||Fr(e,Ee,"max",i),l.J(n)||Fr(e,Ee,"min",n),l.J(a)||Dr(e,Ee,m,a)})}t.DrawingWriter.WriteCT_Scaling=Di;function Bi(e,t,r,o){Ge(e,t,r,o,f,100)}t.DrawingWriter.WriteCT_LblOffset=Bi;function Pi(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.auto,r=o.lblAlgn,i=o.lblOffset,n=o.tickLblSkip,a=o.tickMarkSkip,s=o.noMultiLvlLbl,c=o.extLst;Qe(e,o),l.J(t)||kr(e,Ee,"auto",t),l.J(r)||go(e,Ee,"lblAlgn",r),l.J(i)||Bi(e,Ee,"lblOffset",i),l.J(n)||wi(e,Ee,"tickLblSkip",n),l.J(a)||wi(e,Ee,"tickMarkSkip",a),l.J(s)||kr(e,Ee,"noMultiLvlLbl",s),l.J(c)||Dr(e,Ee,m,c)})}t.DrawingWriter.WriteCT_CatAx=Pi;function Wi(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.auto,r=o.lblOffset,i=o.baseTimeUnit,n=o.majorUnit,a=o.majorTimeUnit,s=o.minorUnit,c=o.minorTimeUnit,d=o.extLst;Qe(e,o),l.J(t)||kr(e,Ee,"auto",t),l.J(r)||Bi(e,Ee,"lblOffset",r),l.J(i)||xi(e,Ee,"baseTimeUnit",i),l.J(n)||Ai(e,Ee,"majorUnit",n),l.J(a)||xi(e,Ee,"majorTimeUnit",a),l.J(s)||Ai(e,Ee,"minorUnit",s),l.J(c)||xi(e,Ee,"minorTimeUnit",c),l.J(d)||Dr(e,Ee,m,d)})}t.DrawingWriter.WriteCT_DateAx=Wi;function _i(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.tickLblSkip,r=o.tickMarkSkip,i=o.extLst;Qe(e,o),l.J(t)||wi(e,Ee,"tickLblSkip",t),l.J(r)||wi(e,Ee,"tickMarkSkip",r),l.J(i)||Dr(e,Ee,m,i)})}t.DrawingWriter.WriteCT_SerAx=_i;function Ni(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.crossBetween,r=o.majorUnit,i=o.minorUnit,n=o.dispUnits,a=o.extLst;Qe(e,o),l.J(t)||yi(e,Ee,"crossBetween",t),l.J(r)||Ai(e,Ee,"majorUnit",r),l.J(i)||Ai(e,Ee,"minorUnit",i),l.J(n)||Ei(e,Ee,"dispUnits",n),l.J(a)||Dr(e,Ee,m,a)})}t.DrawingWriter.WriteCT_ValAx=Ni;function Mi(e,t,r,o){e.writeElement(t+":"+r,function(){var t,r,i,n,a,s,c=o.layout,d=o.dTable,u=o.spPr,f=o.extLst;l.J(c)||Yr(e,Ee,q,c),Ze(o.chartGroups,function(t){var r=t.chartType;4===r?ii(e,Ee,"areaChart",t):5===r?ni(e,Ee,"area3DChart",t):6===r?ri(e,Ee,"barChart",t):7===r?oi(e,Ee,"bar3DChart",t):8===r?jo(e,Ee,"lineChart",t):9===r?Xo(e,Ee,"line3DChart",t):0===r?Ko(e,Ee,"stockChart",t):2===r?Zo(e,Ee,"radarChart",t):1===r?Yo(e,Ee,"scatterChart",t):10===r?ai(e,Ee,"pieChart",t):11===r?li(e,Ee,"pie3DChart",t):12===r?si(e,Ee,"doughnutChart",t):13===r?di(e,Ee,"ofPieChart",t):14===r?hi(e,Ee,"surfaceChart",t):15===r?pi(e,Ee,"surface3DChart",t):3===r&&ui(e,Ee,"bubbleChart",t)}),t=o.axes,t&&(r=t.filter(function(e){return 0===e.AxisGroup&&0===e.AxisType})[0],r&&(0===r.axisType?Pi(e,Ee,"catAx",r):1===r.axisType?Wi(e,Ee,"dateAx",r):3===r.axisType&&Ni(e,Ee,"valAx",r)),i=t.filter(function(e){return 0===e.AxisGroup&&1===e.AxisType})[0],l.J(i)||Ni(e,Ee,"valAx",i),n=t.filter(function(e){return 1===e.AxisGroup&&1===e.AxisType})[0],l.J(n)||Ni(e,Ee,"valAx",n),a=t.filter(function(e){return 1===e.AxisGroup&&0===e.AxisType})[0],a&&(0===a.axisType?Pi(e,Ee,"catAx",a):1===a.axisType?Wi(e,Ee,"dateAx",a):3===a.axisType&&Ni(e,Ee,"valAx",a)),s=t.filter(function(e){return 2===e.axisType}),Ze(s,function(t){_i(e,Ee,"serAx",t)})),l.J(d)||no(e,Ee,"dTable",d),l.J(u)||Sl(e,Ee,O,u),l.J(f)||Dr(e,Ee,m,f)})}t.DrawingWriter.WriteCT_PlotArea=Mi;function Oi(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.idx,r=o.spPr,i=o.txPr,n=o.marker,a=o.dLbl,s=o.extLst;l.J(t)||Rr(e,Ee,"idx",t),l.J(r)||Sl(e,Ee,O,r),l.J(i)||Cs(e,Ee,H,i),l.J(n)||Ao(e,Ee,J,n),l.J(a)||So(e,Ee,"dLbl",a),l.J(s)||Dr(e,Ee,m,s)})}t.DrawingWriter.WriteCT_PivotFmt=Oi;function Hi(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.pivotFmt,function(t){Oi(e,Ee,"pivotFmt",t)})})}t.DrawingWriter.WriteCT_PivotFmts=Hi;function Gi(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_LegendPos,a.ChartHelper.ToST_LegendPos)}t.DrawingWriter.WriteCT_LegendPos=Gi;function Ui(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.idx,r=o.delete,i=o.txPr,n=o.extLst;l.J(t)||Rr(e,Ee,"idx",t),l.J(r)||kr(e,Ee,N,r),l.J(i)||Cs(e,Ee,H,i),l.J(n)||Dr(e,Ee,m,n)})}t.DrawingWriter.WriteCT_LegendEntry=Ui;function Ji(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.legendPos,r=o.layout,i=o.overlay||!1,n=o.spPr,a=o.txPr,s=o.extLst;l.J(t)||Gi(e,Ee,"legendPos",t),Ze(o.legendEntry,function(t){Ui(e,Ee,"legendEntry",t)}),l.J(r)||Yr(e,Ee,q,r),kr(e,Ee,"overlay",i),l.J(n)||Sl(e,Ee,O,n),l.J(a)||Cs(e,Ee,H,a),l.J(s)||Dr(e,Ee,m,s)})}t.DrawingWriter.WriteCT_Legend=Ji;function zi(e,t,r,i){Ge(e,t,r,i,f,null,o.Charts.ST_DispBlanksAs)}t.DrawingWriter.WriteCT_DispBlanksAs=zi;function Vi(e,r,o,i){e.writeElement(r+":"+o,function(){e.writeAttributeString("xmlns:c16r3",t.DrawingWriter.c16)},function(){l.J(i.dispNaAsBlank)||e.writeLeafElement(r+":dispNaAsBlank",function(){
|
49
49
|
e.writeAttributeString(f,i.dispNaAsBlank?"1":"0")})})}t.DrawingWriter.WriteCT_DispNaAsBlank=Vi;function ji(e,t,r,o){e.writeElement(t+":"+r,function(){var t,r=o.title,i=o.autoTitleDeleted,n=o.view3D,a=o.floor,s=o.sideWall,c=o.backWall,d=o.plotArea,u=o.legend,f=o.plotVisOnly,b=o.dispBlanksAs,h=o.showDLblsOverMax,p=o.extLst,g=o.pivotFmts;l.J(r)||Qr(e,Ee,ue,r),l.J(i)||kr(e,Ee,"autoTitleDeleted",i),l.J(g)||(t=g.length,t>0&&e.writeElement("c:pivotFmts",function(){var r,o,i,n;for(r=0;r<t;r++)if(o=g[r].pivotFmt,!l.J(o))for(i=0;i<o.length;i++)n=o[r],l.J(n)||Oi(e,Ee,"pivotFmt",n)})),l.J(n)||oo(e,Ee,"view3D",n),l.J(a)||io(e,Ee,"floor",a),l.J(s)||io(e,Ee,"sideWall",s),l.J(c)||io(e,Ee,"backWall",c),l.J(d)||Mi(e,Ee,"plotArea",d),l.J(u)||Ji(e,Ee,"legend",u),l.J(f)||kr(e,Ee,"plotVisOnly",f),l.J(b)||zi(e,Ee,"dispBlanksAs",b),l.J(h)||kr(e,Ee,"showDLblsOverMax",h),l.J(p)||Dr(e,Ee,m,p)})}t.DrawingWriter.WriteCT_Chart=ji;function Xi(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_Style=Xi;function Ki(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.name)||e.writeElementString("c:name",o.name);var t=o.fmtId;l.J(t)||Rr(e,Ee,"fmtId",t),Ze(o.extLst,function(t){Dr(e,Ee,m,t)})})}t.DrawingWriter.WriteCT_PivotSource=Ki;function qi(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.chartObject,r=o.data,i=o.formatting,n=o.selection,a=o.userInterface;l.J(t)||kr(e,Ee,"chartObject",t),l.J(r)||kr(e,Ee,"data",r),l.J(i)||kr(e,Ee,"formatting",i),l.J(n)||kr(e,Ee,"selection",n),l.J(a)||kr(e,Ee,"userInterface",a)})}t.DrawingWriter.WriteCT_Protection=qi;function Yi(e,t,r,o){e.writeElement(t+":"+r,function(){o.alignWithMargins===!1&&e.writeAttributeString("alignWithMargins","0"),o.differentOddEven===!0&&e.writeAttributeString("differentOddEven","1"),o.differentFirst===!0&&e.writeAttributeString("differentFirst","1")},function(){var t=o.oddHeader,r=o.oddFooter,i=o.evenHeader,n=o.evenFooter,a=o.firstHeader,s=o.firstFooter;l.J(t)||e.writeElementString("c:oddHeader",t),l.J(r)||e.writeElementString("c:oddFooter",r),l.J(i)||e.writeElementString("c:evenHeader",i),l.J(n)||e.writeElementString("c:evenFooter",n),l.J(a)||e.writeElementString("c:firstHeader",a),l.J(s)||e.writeElementString("c:firstFooter",s)})}t.DrawingWriter.WriteCT_HeaderFooter=Yi;function Qi(e,t,r,o){e.writeLeafElement(t+":"+r,function(){var t=o.header,r=o.footer;l.J(o.l)||e.writeAttributeString("l",o.l),l.J(o.r)||e.writeAttributeString(Fe,o.r),l.J(o.t)||e.writeAttributeString("t",o.t),l.J(o.b)||e.writeAttributeString("b",o.b),l.J(t)||e.writeAttributeString("header",t),l.J(r)||e.writeAttributeString("footer",r)})}t.DrawingWriter.WriteCT_PageMargins=Qi;function Zi(e,t,r,o){e.writeElement(t+":"+r,function(){gt(e,o,"id")},function(){var t=o.autoUpdate;l.J(t)||kr(e,Ee,"autoUpdate",t)})}t.DrawingWriter.WriteCT_ExternalData=Zi;function $i(e,t,r,i){e.writeLeafElement(t+":"+r,function(){var t=i.paperSize,r=i.firstPageNumber,n=i.orientation,a=i.horizontalDpi,s=i.verticalDpi,d=i.copies;l.J(t)||1===t||e.writeAttributeString("paperSize",t),l.J(r)||1===r||e.writeAttributeString("firstPageNumber",c.convertFirstPageNumberToExcel(r)),l.J(n)||0===n||e.writeAttributeString("orientation",o.Charts.ST_PageSetupOrientation[n]),i.blackAndWhite===!0&&e.writeAttributeString("blackAndWhite","1"),i.draft===!0&&e.writeAttributeString("draft","1"),i.useFirstPageNumber===!0&&e.writeAttributeString("useFirstPageNumber","1"),l.J(a)||600===a||e.writeAttributeString("horizontalDpi",a),l.J(s)||600===s||e.writeAttributeString("verticalDpi",s),l.J(d)||1===d||e.writeAttributeString("copies",d)})}t.DrawingWriter.WriteCT_PageSetup=$i;function en(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.headerFooter,r=o.pageMargins,i=o.pageSetup,n=o.legacyDrawingHF;l.J(t)||Yi(e,Ee,"headerFooter",t),l.J(r)||Qi(e,Ee,"pageMargins",r),l.J(i)||$i(e,Ee,"pageSetup",i),l.J(n)||Ir(e,Ee,"legacyDrawingHF",n)})}t.DrawingWriter.WriteCT_PrintSettings=en;function tn(e,r,o,i){e.writeElement("c:"+o,function(){e.writeAttributeString("xmlns:c",t.DrawingWriter.c),e.writeAttributeString("xmlns:a",t.DrawingWriter.a),e.writeAttributeString("xmlns:r",t.DrawingWriter.r)},function(){var t=i.roundedCorners,r=i.style,o=i.clrMapOvr,n=i.pivotSource,a=i.protection,s=i.chart,c=i.spPr,d=i.txPr,u=i.externalData,f=i.printSettings,b=i.userShapes,h=i.extLst;l.J(t)||kr(e,Ee,"roundedCorners",t),l.J(r)||Xi(e,Ee,ye,r),l.J(o)||cn(e,ve,"clrMapOvr",o),l.J(n)||Ki(e,Ee,"pivotSource",n),l.J(a)||qi(e,Ee,"protection",a),l.J(s)||ji(e,Ee,"chart",s),l.J(c)||Sl(e,Ee,O,c),l.J(d)||Cs(e,Ee,H,d),l.J(u)||Zi(e,Ee,"externalData",u),l.J(f)||en(e,Ee,"printSettings",f),l.J(b)||ln(e,Ee,"userShapes",b),l.J(h)||Dr(e,Ee,m,h)})}t.DrawingWriter.WriteCT_ChartSpace=tn;function rn(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.ext,function(t){on(e,Ee,A,t)})})}t.DrawingWriter.WriteCT_DLblExtensionList=rn;function on(e,t,r,o){e.writeElement("c:"+r,function(){mt(e,o)},function(){var t=o.layout,r=o.dlblFieldTable,i=o.showDataLabelsRange;l.J(t)||Yr(e,Ie,q,t),l.J(r)||Fn(e,Ie,"dlblFieldTable",r),l.J(i)||kr(e,Ie,"showDataLabelsRange",i)})}t.DrawingWriter.WriteCT_DLblExt=on;function nn(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.ext,function(t){an(e,Ee,A,t)})})}t.DrawingWriter.WriteCT_DLblsExtensionList=nn;function an(e,t,r,o){e.writeElement("c:"+r,function(){mt(e,o)},function(){var t=o.layout,r=o.showLeaderLines,i=o.showDataLabelsRange,n=o.leaderLines,a=o.spPr;l.J(t)||Yr(e,Ie,q,t),l.J(r)||kr(e,Ie,"showLeaderLines",r),l.J(i)||kr(e,Ie,"showDataLabelsRange",i),l.J(n)||Vo(e,Ie,"leaderLines",n),l.J(a)||Sl(e,Ie,O,a)})}t.DrawingWriter.WriteCT_DLblsExt=an;function ln(e,t,r,o){e.writeLeafElement(t+":"+r,function(){gt(e,o,"r:id")})}t.DrawingWriter.WriteCT_UserShapes=ln;function sn(e,t,r,o){Ue(e,t,r,o,Sl,De,O)}t.DrawingWriter.WriteCT_InvertSolidFillFmt=sn;function cn(e,t,r,i){e.writeElement(t+":"+r,function(){var t=o.Charts.ST_ColorSchemeIndex;e.writeAttributeString("bg1",t[i.bg1]),e.writeAttributeString("tx1",t[i.tx1]),e.writeAttributeString("bg2",t[i.bg2]),e.writeAttributeString("tx2",t[i.tx2]),e.writeAttributeString("accent1",t[i.accent1]),e.writeAttributeString("accent2",t[i.accent2]),e.writeAttributeString("accent3",t[i.accent3]),e.writeAttributeString("accent4",t[i.accent4]),e.writeAttributeString("accent5",t[i.accent5]),e.writeAttributeString("accent6",t[i.accent6]),e.writeAttributeString("hlink",t[i.hlink]),e.writeAttributeString("folHlink",t[i.folHlink])},function(){yt(e,i)})}t.DrawingWriter.WriteCT_ColorMapping=cn;function dn(e,t,r,o){Je(e,t,r,o)}t.DrawingWriter.WriteCT_FullRef=dn;function un(e,t,r,o){Je(e,t,r,o)}t.DrawingWriter.WriteCT_LevelRef=un;function fn(e,t,r,o){Je(e,t,r,o)}t.DrawingWriter.WriteCT_FormulaRef=fn;function bn(e,t,r,o){Ue(e,t,r,o,Hr,Ee,"tx")}t.DrawingWriter.WriteCT_FilteredSeriesTitle=bn;function hn(e,t,r,o){Ue(e,t,r,o,Vr,Ee,"cat")}t.DrawingWriter.WriteCT_FilteredCategoryTitle=hn;function pn(e,t,r,o){Ue(e,t,r,o,Oo,Ee,re)}t.DrawingWriter.WriteCT_FilteredBarSer=pn;function mn(e,t,r,o){Ue(e,t,r,o,_o,Ee,re)}t.DrawingWriter.WriteCT_FilteredLineSer=mn;function gn(e,t,r,o){Ue(e,t,r,o,No,Ee,re)}t.DrawingWriter.WriteCT_FilteredScatterSer=gn;function yn(e,t,r,o){Ue(e,t,r,o,Ho,Ee,re)}t.DrawingWriter.WriteCT_FilteredAreaSer=yn;function Sn(e,t,r,o){Ue(e,t,r,o,Go,Ee,re)}t.DrawingWriter.WriteCT_FilteredPieSer=Sn;function Cn(e,t,r,o){Ue(e,t,r,o,Uo,Ee,re)}t.DrawingWriter.WriteCT_FilteredBubbleSer=Cn;function wn(e,t,r,o){Ue(e,t,r,o,Mo,Ee,re)}t.DrawingWriter.WriteCT_FilteredRadarSer=wn;function xn(e,t,r,o){Ue(e,t,r,o,Jo,Ee,re)}t.DrawingWriter.WriteCT_FilteredSurfaceSer=xn;function An(e,r,o,i){e.writeElement(r+":"+o,function(){e.writeAttributeString("xmlns:c15",t.DrawingWriter.c15)},function(){var t=i.dlblRangeCache;l.J(i.f)||e.writeElementString("c15:f",d(i.f)),l.J(t)||Mr(e,Ee,"dlblRangeCache",t)})}t.DrawingWriter.WriteCT_SeriesDataLabelsRange=An;function Tn(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.sqref,r=o.spPr,i=o.explosion,n=o.invertIfNegative,a=o.bubble3D,s=o.marker,c=o.dLbl;l.J(t)||e.writeElementString("c15:sqref",t),l.J(r)||Sl(e,ve,O,r),l.J(i)||Rr(e,Ee,"explosion",i),l.J(n)||kr(e,Ee,G,n),l.J(a)||kr(e,Ee,U,a),l.J(s)||Ao(e,Ee,J,s),l.J(c)||So(e,Ee,"dLbl",c)})}t.DrawingWriter.WriteCT_CategoryFilterException=Tn;function vn(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.categoryFilterException,function(t){Tn(e,Ie,"categoryFilterException",t)})})}t.DrawingWriter.WriteCT_CategoryFilterExceptions=vn;function kn(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.dlblFieldTableCache;l.J(o.txfldGUID)||e.writeElementString("c15:txfldGUID",o.txfldGUID),l.J(o.f)||e.writeElementString("c15:f",d(o.f)),l.J(t)||Mr(e,Ie,"dlblFieldTableCache",t)})}t.DrawingWriter.WriteCT_DataLabelFieldTableEntry=kn;function Fn(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.dlblFTEntry,function(t){kn(e,Ie,"dlblFTEntry",t)})})}t.DrawingWriter.WriteCT_DataLabelFieldTable=Fn;function Rn(e,t,r,o){Ye(e,t,r,o,ve)}t.DrawingWriter.WriteCT_GraphicFrameNonVisual=Rn;function En(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.x)||e.writeElementString("cdr:x",o.x),l.J(o.y)||e.writeElementString("cdr:y",o.y)})}t.DrawingWriter.WriteCT_CdrPosition=En;function In(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.startPoint,r=o.endPoint,i=o.sp,n=o.grpSp;l.J(t)||En(e,ke,"from",t),l.J(r)||En(e,ke,"to",r),l.J(i)||El(e,ke,"sp",i),l.J(n)||Kl(e,ke,z,n),l.J(o.graphicFrame)||jl(e,ke,x,o.graphicFrame),l.J(o.cxnSp)||Pl(e,ke,V,o.cxnSp),l.J(o.pic)||Ol(e,ke,"pic",o.pic)})}t.DrawingWriter.WriteCT_RelSizeAnchor=In;function Ln(e,r,o,i){e.writeElement(r+":"+o,function(){e.writeAttributeString("xmlns:cdr",t.DrawingWriter.cdr)},function(){var t=i.from,r=i.ext,o=i.sp,n=i.grpSp,a=i.cxnSp,s=i.pic;l.J(t)||En(e,ke,"from",t),l.J(r)||tr(e,ve,A,r,!0),l.J(o)||Rl(e,Re,"sp",o),l.J(n)||Kl(e,Re,z,n),l.J(i.graphicFrame)||Vl(e,ke,x,i.graphicFrame),l.J(a)||Bl(e,Re,V,a),l.J(s)||Hl(e,Re,"pic",s)})}t.DrawingWriter.WriteCT_AbsSizeAnchor=Ln;function Dn(e,r,o,i){e.writeElement("c:"+o,function(){e.writeAttributeString("xmlns:c",t.DrawingWriter.c),e.writeAttributeString("xmlns:cdr",t.DrawingWriter.cdr),e.writeAttributeString("xmlns:a",t.DrawingWriter.a)},function(){var t=i.relSizeAnchor,r=i.absSizeAnchor;t&&t.forEach(function(t){t&&In(e,ke,"relSizeAnchor",t)}),r&&r.forEach(function(t){t&&Ln(e,ke,"absSizeAnchor",t)})})}t.DrawingWriter.WriteCT_ChartDrawing=Dn;function Bn(e,t,r,o){e.writeElement(t+":"+r,function(){tt(e,o)},function(){yt(e,o)})}t.DrawingWriter.WriteCT_ConnectorLocking=Bn;function Pn(e,t,r,o){e.writeElement(t+":"+r,function(){tt(e,o),o.noTextEdit===!0&&e.writeAttributeString("noTextEdit","1")},function(){yt(e,o)})}t.DrawingWriter.WriteCT_ShapeLocking=Pn;function Wn(e,t,r,o){e.writeElement(t+":"+r,function(){tt(e,o),o.noCrop===!0&&e.writeAttributeString("noCrop","1")},function(){yt(e,o)})}t.DrawingWriter.WriteCT_PictureLocking=Wn;function _n(e,t,r,o){e.writeElement(t+":"+r,function(){o.noGrp===!0&&e.writeAttributeString("noGrp","1"),o.noUngrp===!0&&e.writeAttributeString("noUngrp","1"),o.noSelect===!0&&e.writeAttributeString("noSelect","1"),o.noRot===!0&&e.writeAttributeString("noRot","1"),o.noChangeAspect===!0&&e.writeAttributeString("noChangeAspect","1"),o.noMove===!0&&e.writeAttributeString("noMove","1"),o.noResize===!0&&e.writeAttributeString("noResize","1")},function(){yt(e,o)})}t.DrawingWriter.WriteCT_GroupLocking=_n;function Nn(e,t,r,o){e.writeElement(t+":"+r,function(){o.noGrp===!0&&e.writeAttributeString("noGrp","1"),o.noDrilldown===!0&&e.writeAttributeString("noDrilldown","1"),o.noSelect===!0&&e.writeAttributeString("noSelect","1"),o.noChangeAspect===!0&&e.writeAttributeString("noChangeAspect","1"),o.noMove===!0&&e.writeAttributeString("noMove","1"),o.noResize===!0&&e.writeAttributeString("noResize","1")},function(){yt(e,o)})}t.DrawingWriter.WriteCT_GraphicalObjectFrameLocking=Nn;function Mn(e,t,r,o){e.writeElement(t+":"+r,function(){var t,r=o.descr,i=o.title;o.id?t=o.id:(t=e.k,e.k++),o.id=t,e.writeAttributeString("id",t),l.J(o.name)||e.writeAttributeString(b,d(o.name)),Oe(r)||e.writeAttributeString("descr",r),Oe(i)||e.writeAttributeString(ue,i),o.hidden===!0&&e.writeAttributeString("hidden","1")},function(){var t=o.hlinkClick,r=o.hlinkHover,i=o.extLst;l.J(t)||vr(e,ve,"hlinkClick",t),l.J(r)||vr(e,ve,"hlinkHover",r),l.J(i)||hr(e,ve,m,i)})}t.DrawingWriter.WriteCT_NonVisualDrawingProps=Mn;function On(e,t,r,o){e.writeElement(t+":"+r,function(){o.txBox===!0&&e.writeAttributeString("txBox","1")},function(){var t=o.spLocks,r=o.extLst;l.J(t)||Pn(e,ve,"spLocks",t),l.J(r)||hr(e,ve,m,r)})}t.DrawingWriter.WriteCT_NonVisualDrawingShapeProps=On;function Hn(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.cxnSpLocks,r=o.stCxn,i=o.endCxn,n=o.extLst;l.J(t)||Bn(e,ve,"cxnSpLocks",t),l.J(r)||Za(e,ve,"stCxn",r),l.J(i)||Za(e,ve,"endCxn",i),l.J(n)||hr(e,ve,m,n)})}t.DrawingWriter.WriteCT_NonVisualConnectorProperties=Hn;function Gn(e,t,r,o){e.writeElement(t+":"+r,function(){o.preferRelativeResize===!1&&e.writeAttributeString("preferRelativeResize","0")},function(){var t=o.picLocks,r=o.extLst;l.J(t)||Wn(e,ve,"picLocks",t),l.J(r)||hr(e,ve,m,r)})}t.DrawingWriter.WriteCT_NonVisualPictureProperties=Gn;function Un(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.grpSpLocks,r=o.extLst;l.J(t)||_n(e,ve,"grpSpLocks",t),l.J(r)||hr(e,ve,m,r)})}t.DrawingWriter.WriteCT_NonVisualGroupDrawingShapeProps=Un;function Jn(e,t,r){e.writeLeafElement(t+":"+r)}t.DrawingWriter.WriteCT_NonVisualGraphicFrameProperties=Jn;function zn(e,r,o,i,n){e.writeLeafElement(r+":"+o,function(){n?e.writeAttributeString("xmlns:"+r,Me.cx):e.writeAttributeString("xmlns:"+r,t.DrawingWriter.c),e.writeAttributeString("xmlns:r",t.DrawingWriter.r),l.J(i.id)||e.writeAttributeString("r:id",i.id)})}t.DrawingWriter.WriteCT_GraphicalObjectDataContent=zn;function Vn(e,r,o,i,n){e.writeElement(r+":"+o,function(){var r=n?Me.cx:t.DrawingWriter.c;e.writeAttributeString("uri",r)},function(){if(!l.J(i.chart)){var t=n?Pe:Ee;zn(e,t,"chart",i.chart,n)}})}t.DrawingWriter.WriteCT_GraphicalObjectData=Vn;function jn(e,t,r,o,i){e.writeElement(t+":"+r,function(){var t=o.graphicData;l.J(t)||Vn(e,ve,"graphicData",t,i)})}t.DrawingWriter.WriteCT_GraphicalObject=jn;function Xn(e,t,r,i){e.writeElement(t+":"+r,function(){l.J(i.prst)||e.writeAttributeString(p,o.Charts.ST_PresetCameraType[a.ChartHelper.ToST_PresetCameraType(i.prst)]),l.J(i.fov)||0===i.fov||e.writeAttributeString("fov",i.fov),l.J(i.zoom)||1e5===i.zoom||e.writeAttributeString("zoom",i.zoom)},function(){St(e,i)})}t.DrawingWriter.WriteCT_Camera=Xn;function Kn(e,t,r,i){e.writeElement(t+":"+r,function(){l.J(i.rig)||e.writeAttributeString("rig",o.Charts.ST_LightRigType[i.rig]),l.J(i.dir)||e.writeAttributeString("dir",o.Charts.ST_LightRigDirection[a.ChartHelper.ToST_LightRigDirection(i.dir)])},function(){St(e,i)})}t.DrawingWriter.WriteCT_LightRig=Kn;function qn(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.camera,r=o.lightRig,i=o.backdrop,n=o.extLst;l.J(t)||Xn(e,ve,"camera",t),l.J(r)||Kn(e,ve,"lightRig",r),l.J(i)||Yn(e,ve,"backdrop",i),l.J(n)||hr(e,ve,m,n)})}t.DrawingWriter.WriteCT_Scene3D=qn;function Yn(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.anchor,r=o.norm,i=o.up,n=o.extLst;l.J(t)||yr(e,ve,"anchor",t),l.J(r)||Sr(e,ve,"norm",r),l.J(i)||Sr(e,ve,"up",i),l.J(n)||hr(e,ve,m,n)})}t.DrawingWriter.WriteCT_Backdrop=Yn;function Qn(e,t,r,i){e.writeLeafElement(t+":"+r,function(){l.J(i.w)||76200===i.w||e.writeAttributeString("w",i.w),l.J(i.h)||76200===i.h||e.writeAttributeString("h",i.h),l.J(i.prst)||1===i.prst||e.writeAttributeString(p,o.Charts.ST_BevelPresetType[i.prst])})}t.DrawingWriter.WriteCT_Bevel=Qn;function Zn(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.z,r=i.extrusionH,a=i.contourW,s=i.prstMaterial;l.J(t)||0===t||e.writeAttributeString("z",n(t)),l.J(r)||0===r||e.writeAttributeString("extrusionH",n(r)),l.J(a)||0===a||e.writeAttributeString("contourW",n(a)),l.J(s)||7===s||e.writeAttributeString("prstMaterial",o.Charts.ST_PresetMaterialType[s])},function(){var t=i.bevelT,r=i.bevelB,o=i.extrusionClr,n=i.contourClr,a=i.extLst;l.J(t)||Qn(e,ve,"bevelT",t),l.J(r)||Qn(e,ve,"bevelB",r),l.J(o)||xr(e,ve,"extrusionClr",o),l.J(n)||xr(e,ve,"contourClr",n),l.J(a)||hr(e,ve,m,a)})}t.DrawingWriter.WriteCT_Shape3D=Zn;function $n(e,t,r,o){Ge(e,t,r,o.z,"z",0)}t.DrawingWriter.WriteCT_FlatText=$n;function ea(e,t,r,o){Ge(e,t,r,o.thresh,"thresh")}t.DrawingWriter.WriteCT_AlphaBiLevelEffect=ea;function ta(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_AlphaCeilingEffect=ta;function ra(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_AlphaFloorEffect=ra,t.DrawingWriter.WriteCT_AlphaInverseEffect=xr;function oa(e,t,r,o){Ge(e,t,r,o.amt,"amt",1e5)}t.DrawingWriter.WriteCT_AlphaModulateFixedEffect=oa;function ia(e,t,r,o){Ge(e,t,r,o.rad,"rad",0)}t.DrawingWriter.WriteCT_AlphaOutsetEffect=ia;function na(e,t,r,o){Ge(e,t,r,o[ve],ve)}t.DrawingWriter.WriteCT_AlphaReplaceEffect=na;function aa(e,t,r,o){Ge(e,t,r,o.thresh,"thresh")}t.DrawingWriter.WriteCT_BiLevelEffect=aa;function la(e,t,r,o){e.writeLeafElement(t+":"+r,function(){l.J(o.rad)||0===o.rad||e.writeAttributeString("rad",o.rad),o.grow===!1&&e.writeAttributeString("grow","0")})}t.DrawingWriter.WriteCT_BlurEffect=la;function sa(e,t,r,o){e.writeElement(t+":"+r,function(){o.useA===!1&&e.writeAttributeString("useA","0")},function(){l.J(o.clrFrom)||xr(e,ve,"clrFrom",o.clrFrom),l.J(o.clrTo)||xr(e,ve,"clrTo",o.clrTo)})}t.DrawingWriter.WriteCT_ColorChangeEffect=sa,t.DrawingWriter.WriteCT_ColorReplaceEffect=xr;function ca(e,t,r,o){Array.isArray(o)&&e.writeElement(t+":"+r,function(){o.forEach(function(t){Ve(e,t)})})}t.DrawingWriter.WriteCT_DuotoneEffect=ca;function da(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.rad)||0===o.rad||e.writeAttributeString("rad",o.rad)},function(){Ve(e,o)})}t.DrawingWriter.WriteCT_GlowEffect=da;function ua(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_GrayscaleEffect=ua;function fa(e,t,r,o){e.writeLeafElement(t+":"+r,function(){var t=o.hue,r=o.sat,i=o.lum;l.J(t)||0===t||e.writeAttributeString("hue",t),l.J(r)||0===r||e.writeAttributeString("sat",r),l.J(i)||0===i||e.writeAttributeString("lum",i)})}t.DrawingWriter.WriteCT_HSLEffect=fa;function ba(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.blurRad,r=o.dist,i=o.dir;l.J(t)||0===t||e.writeAttributeString("blurRad",t),l.J(r)||0===r||e.writeAttributeString("dist",r),l.J(i)||0===i||e.writeAttributeString("dir",i)},function(){Ve(e,o)})}t.DrawingWriter.WriteCT_InnerShadowEffect=ba;function ha(e,t,r,o){e.writeLeafElement(t+":"+r,function(){var t=o.bright,r=o.contrast;l.J(t)||0===t||e.writeAttributeString("bright",t),l.J(r)||0===r||e.writeAttributeString("contrast",r)})}t.DrawingWriter.WriteCT_LuminanceEffect=ha;function pa(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.blurRad,r=o.dist,i=o.dir;l.J(t)||0===t||e.writeAttributeString("blurRad",t),l.J(r)||0===r||e.writeAttributeString("dist",r),l.J(i)||0===i||e.writeAttributeString("dir",i),ot(e,o)},function(){Ve(e,o)})}t.DrawingWriter.WriteCT_OuterShadowEffect=pa;function ma(e,t,r,i){e.writeElement(t+":"+r,function(){l.J(i.prst)||e.writeAttributeString(p,o.Charts.ST_PresetShadowVal[a.ChartHelper.ToST_PresetShadowVal(i.prst)]);var t=i.dist,r=i.dir;l.J(t)||0===t||e.writeAttributeString("dist",t),l.J(r)||0===r||e.writeAttributeString("dir",r)},function(){Ve(e,i)})}t.DrawingWriter.WriteCT_PresetShadowEffect=ma;function ga(e,t,r,o){e.writeLeafElement(t+":"+r,function(){var t=o.blurRad,r=o.stA,i=o.stPos,n=o.endA,a=o.endPos,s=o.dist,c=o.dir,d=o.fadeDir;l.J(t)||0===t||e.writeAttributeString("blurRad",t),l.J(r)||1e5===r||e.writeAttributeString("stA",r),l.J(i)||0===i||e.writeAttributeString("stPos",i),l.J(n)||0===n||e.writeAttributeString("endA",n),l.J(a)||1e5===a||e.writeAttributeString("endPos",a),l.J(s)||0===s||e.writeAttributeString("dist",s),l.J(c)||0===c||e.writeAttributeString("dir",c),l.J(d)||54e5===d||e.writeAttributeString("fadeDir",d),ot(e,o)})}t.DrawingWriter.WriteCT_ReflectionEffect=ga;function ya(e,t,r,o){e.writeLeafElement(t+":"+r,function(){l.J(o.tx)||0===o.tx||e.writeAttributeString("tx",o.tx),l.J(o.ty)||0===o.ty||e.writeAttributeString("ty",o.ty)})}t.DrawingWriter.WriteCT_RelativeOffsetEffect=ya;function Sa(e,t,r,o){Ge(e,t,r,o.rad,"rad")}t.DrawingWriter.WriteCT_SoftEdgesEffect=Sa;function Ca(e,t,r,o){e.writeLeafElement(t+":"+r,function(){l.J(o.hue)||0===o.hue||e.writeAttributeString("hue",o.hue),l.J(o.amt)||0===o.amt||e.writeAttributeString("amt",o.amt)})}t.DrawingWriter.WriteCT_TintEffect=Ca;function wa(e,t,r,o){e.writeLeafElement(t+":"+r,function(){l.J(o.sx)||1e5===o.sx||e.writeAttributeString("sx",o.sx),l.J(o.sy)||1e5===o.sy||e.writeAttributeString("sy",o.sy),l.J(o.kx)||0===o.kx||e.writeAttributeString("kx",o.kx),l.J(o.ky)||0===o.ky||e.writeAttributeString("ky",o.ky),l.J(o.tx)||0===o.tx||e.writeAttributeString("tx",o.tx),l.J(o.ty)||0===o.ty||e.writeAttributeString("ty",o.ty)})}t.DrawingWriter.WriteCT_TransformEffect=wa;function xa(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_NoFillProperties=xa,t.DrawingWriter.WriteCT_SolidColorFillProperties=xr;function Aa(e,t,r,o){e.writeLeafElement(t+":"+r,function(){l.J(o.ang)||e.writeAttributeString("ang",o.ang),l.J(o.scaled)||e.writeAttributeString("scaled",o.scaled?"1":"0")})}t.DrawingWriter.WriteCT_LinearShadeProperties=Aa;function Ta(e,t,r,i){e.writeElement(t+":"+r,function(){l.J(i.path)||e.writeAttributeString("path",o.Charts.ST_PathShadeType[i.path])},function(){l.J(i.fillToRect)||wr(e,ve,"fillToRect",i.fillToRect)})}t.DrawingWriter.WriteCT_PathShadeProperties=Ta;function va(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.pos)||e.writeAttributeString("pos",o.pos.toFixed(0))},function(){Ve(e,o)})}t.DrawingWriter.WriteCT_GradientStop=va;function ka(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.gs,function(t){va(e,ve,"gs",t)})})}t.DrawingWriter.WriteCT_GradientStopList=ka;function Fa(e,t,r,i){e.writeElement(t+":"+r,function(){l.J(i.flip)||e.writeAttributeString("flip",o.Charts.ST_TileFlipMode[i.flip]),i.rotWithShape===!1&&e.writeAttributeString(Se,"0")},function(){var t=i.gsLst,r=i.lin,o=i.path,n=i.tileRect;l.J(t)||ka(e,ve,"gsLst",t),l.J(r)||Aa(e,ve,"lin",r),l.J(o)||Ta(e,ve,"path",o),l.J(n)||wr(e,ve,"tileRect",n)})}t.DrawingWriter.WriteCT_GradientFillProperties=Fa;function Ra(e,t,r,i){e.writeLeafElement(t+":"+r,function(){l.J(i.tx)||e.writeAttributeString("tx",n(i.tx)),l.J(i.ty)||e.writeAttributeString("ty",n(i.ty)),l.J(i.sx)||e.writeAttributeString("sx",i.sx),l.J(i.sy)||e.writeAttributeString("sy",i.sy),l.J(i.flip)||e.writeAttributeString("flip",o.Charts.ST_TileFlipMode[i.flip]),l.J(i.algn)||e.writeAttributeString("algn",o.Charts.ST_RectAlignment[i.algn])})}t.DrawingWriter.WriteCT_TileInfoProperties=Ra;function Ea(e,t,r,o){Ue(e,t,r,o,wr,ve,"fillRect")}t.DrawingWriter.WriteCT_StretchInfoProperties=Ea;function Ia(e,r,i,n){var a,s=n&&n.blipBlob&&n.blipBlob.blob;c.isSVGPicture(s)&&n.embed&&(a=n.extLst||{},a.ext=a.ext||[],a.ext.push({hiddenExtensionType:5,uri:"{96DAC541-7B7A-43D3-8B79-37D633B846F1}",svgBlip:{embed:n.embed}}),n.extLst=a),e.writeElement(r+":"+i,function(){e.writeAttributeString("xmlns:r",t.DrawingWriter.r),l.J(n.embed)||""===n.embed||e.writeAttributeString("r:embed",n.embed);var r=n.link,i=n.cstate;Oe(r)||e.writeAttributeString("link",r),l.J(i)||4===i||e.writeAttributeString("cstate",o.Charts.ST_BlipCompression[i])},function(){var t=n.alphaBiLevel,r=n.alphaCeiling,o=n.alphaFloor,i=n.alphaInv,a=n.alphaMod,s=n.alphaModFix,c=n.alphaRepl,d=n.biLevel,u=n.blur,f=n.clrChange,b=n.clrRepl,h=n.duotone,p=n.fillOverlay,g=n.grayscl,y=n.hsl,S=n.lum,C=n.tint,w=n.extLst;l.J(t)||ea(e,ve,"alphaBiLevel",t),l.J(r)||ta(e,ve,"alphaCeiling"),l.J(o)||ra(e,ve,"alphaFloor"),l.J(i)||xr(e,ve,"alphaInv",i),l.J(a)||Oa(e,ve,"alphaMod",a),l.J(s)||oa(e,ve,"alphaModFix",s),l.J(c)||na(e,ve,"alphaRepl",c),l.J(d)||aa(e,ve,"biLevel",d),l.J(u)||la(e,ve,"blur",u),l.J(f)||sa(e,ve,"clrChange",f),l.J(b)||xr(e,ve,"clrRepl",b),l.J(h)||ca(e,ve,"duotone",h),l.J(p)||_a(e,ve,"fillOverlay",p),l.J(g)||ua(e,ve,"grayscl"),l.J(y)||fa(e,ve,"hsl",y),l.J(S)||ha(e,ve,"lum",S),l.J(C)||Ca(e,ve,"tint",C),!l.J(n.blipBlob),l.J(w)||hr(e,ve,m,w)})}t.DrawingWriter.WriteCT_Blip=Ia;function La(e,t,r,i){e.writeElement(t+":"+r,function(){l.J(i.type)||0===i.type||e.writeAttributeString(h,o.Charts.ST_BobType[i.type])},function(){l.J(i.blob)||e.writeElementString("a:blob",i.blob)})}t.DrawingWriter.WriteCT_BlipBlob=La;function Da(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.dpi)||e.writeAttributeString("dpi",o.dpi),l.J(o.rotWithShape)||e.writeAttributeString(Se,o.rotWithShape?"1":"0")},function(){var t=o.blip,r=o.srcRect,i=o.tile,n=o.stretch;l.J(t)||Ia(e,ve,"blip",t),l.J(r)||wr(e,ve,"srcRect",r),l.J(i)||Ra(e,ve,"tile",i),l.J(n)||Ea(e,ve,"stretch",n)})}t.DrawingWriter.WriteCT_BlipFillProperties=Da;function Ba(e,t,r,i){e.writeElement(t+":"+r,function(){l.J(i.prst)||e.writeAttributeString(p,o.Charts.ST_PresetPatternVal[a.ChartHelper.ToST_PresetPatternVal(parseInt(i.prst,10))])},function(){l.J(i.fgClr)||xr(e,ve,"fgClr",i.fgClr),l.J(i.bgClr)||xr(e,ve,"bgClr",i.bgClr)})}t.DrawingWriter.WriteCT_PatternFillProperties=Ba;function Pa(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_GroupFillProperties=Pa;function Wa(e,r,o,i){e.writeElement(r+":"+o,function(){r===Le&&e.writeAttributeString("xmlns:a14",t.DrawingWriter.a14)},function(){je(e,i)})}t.DrawingWriter.WriteCT_FillProperties=Wa,t.DrawingWriter.WriteCT_FillEffect=Wa;function _a(e,t,r,o){e.writeElement(t+":"+r,function(){Ct(e,o)},function(){je(e,o)})}t.DrawingWriter.WriteCT_FillOverlayEffect=_a;function Na(e,t,r,o){Ge(e,t,r,o.ref,"ref")}t.DrawingWriter.WriteCT_EffectReference=Na;function Ma(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.type,r=i.name;l.J(t)||0===t||e.writeAttributeString(h,o.Charts.ST_EffectContainerType[t]),l.J(r)||e.writeAttributeString(b,r)},function(){var t=i.cont,r=i.effect,o=i.alphaBiLevel,n=i.alphaCeiling,a=i.alphaFloor,s=i.alphaInv,c=i.alphaMod,d=i.alphaModFix,u=i.alphaOutset,f=i.alphaRepl,b=i.biLevel,h=i.blend,p=i.blur,m=i.clrChange,g=i.clrRepl,y=i.duotone,S=i.fill,C=i.fillOverlay,w=i.glow,x=i.grayscl,A=i.hsl,T=i.innerShdw,v=i.lum,k=i.outerShdw,F=i.prstShdw,R=i.reflection,E=i.relOff,I=i.softEdge,L=i.tint,D=i.xfrm;l.J(t)||Ma(e,ve,"cont",t),l.J(r)||Na(e,ve,"effect",r),l.J(o)||ea(e,ve,"alphaBiLevel",o),l.J(n)||ta(e,ve,"alphaCeiling"),l.J(a)||ra(e,ve,"alphaFloor"),l.J(s)||xr(e,ve,"alphaInv",s),l.J(c)||Oa(e,ve,"alphaMod",c),l.J(d)||oa(e,ve,"alphaModFix",d),l.J(u)||ia(e,ve,"alphaOutset",u),l.J(f)||na(e,ve,"alphaRepl",f),l.J(b)||aa(e,ve,"biLevel",b),l.J(h)||Ha(e,ve,"blend",h),l.J(p)||la(e,ve,"blur",p),l.J(m)||sa(e,ve,"clrChange",m),l.J(g)||xr(e,ve,"clrRepl",g),l.J(y)||ca(e,ve,"duotone",y),l.J(S)||Wa(e,ve,"fill",S),l.J(C)||_a(e,ve,"fillOverlay",C),l.J(w)||da(e,ve,"glow",w),l.J(x)||ua(e,ve,"grayscl"),l.J(A)||fa(e,ve,"hsl",A),l.J(T)||ba(e,ve,"innerShdw",T),l.J(v)||ha(e,ve,"lum",v),l.J(k)||pa(e,ve,"outerShdw",k),l.J(F)||ma(e,ve,"prstShdw",F),l.J(R)||ga(e,ve,"reflection",R),l.J(E)||ya(e,ve,"relOff",E),l.J(I)||Sa(e,ve,"softEdge",I),l.J(L)||Ca(e,ve,"tint",L),l.J(D)||wa(e,ve,"xfrm",D)})}t.DrawingWriter.WriteCT_EffectContainer=Ma;function Oa(e,t,r,o){Ue(e,t,r,o,Ma,ve,"cont")}t.DrawingWriter.WriteCT_AlphaModulateEffect=Oa;function Ha(e,t,r,o){e.writeElement(t+":"+r,function(){Ct(e,o)},function(){l.J(o.cont)||Ma(e,ve,"cont",o.cont)})}t.DrawingWriter.WriteCT_BlendEffect=Ha;function Ga(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.blur,r=o.fillOverlay,i=o.glow,n=o.innerShdw,a=o.outerShdw,s=o.prstShdw,c=o.reflection,d=o.softEdge;l.J(t)||la(e,ve,"blur",t),l.J(r)||_a(e,ve,"fillOverlay",r),l.J(i)||da(e,ve,"glow",i),l.J(n)||ba(e,ve,"innerShdw",n),l.J(a)||pa(e,ve,"outerShdw",a),l.J(s)||ma(e,ve,"prstShdw",s),l.J(c)||ga(e,ve,"reflection",c),l.J(d)||Sa(e,ve,"softEdge",d)})}t.DrawingWriter.WriteCT_EffectList=Ga;function Ua(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.effectLst,r=o.effectDag;l.J(t)||Ga(e,ve,S,t),l.J(r)||Ma(e,ve,C,r)})}t.DrawingWriter.WriteCT_EffectProperties=Ua;function Ja(e,t,r,o){ze(e,t,r,o,b,"fmla")}t.DrawingWriter.WriteCT_GeomGuide=Ja;function za(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.gd,function(t){Ja(e,ve,"gd",t)})})}t.DrawingWriter.WriteCT_GeomGuideList=za;function Va(e,t,r,o){ze(e,t,r,o,"x","y")}t.DrawingWriter.WriteCT_AdjPoint2D=Va;function ja(e,t,r,o){e.writeLeafElement(t+":"+r,function(){l.J(o.l)||e.writeAttributeString("l",o.l),l.J(o.t)||e.writeAttributeString("t",o.t),l.J(o.r)||e.writeAttributeString(Fe,o.r),l.J(o.b)||e.writeAttributeString("b",o.b)})}t.DrawingWriter.WriteCT_GeomRect=ja;function Xa(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.gdRefX,r=o.minX,i=o.maxX,n=o.gdRefY,a=o.minY,s=o.maxY;l.J(t)||e.writeAttributeString("gdRefX",t),l.J(r)||e.writeAttributeString("minX",r),l.J(i)||e.writeAttributeString("maxX",i),l.J(n)||e.writeAttributeString("gdRefY",n),l.J(a)||e.writeAttributeString("minY",a),l.J(s)||e.writeAttributeString("maxY",s)},function(){wt(e,o)})}t.DrawingWriter.WriteCT_XYAdjustHandle=Xa;function Ka(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.gdRefR,r=o.minR,i=o.maxR,n=o.gdRefAng,a=o.minAng,s=o.maxAng;l.J(t)||e.writeAttributeString("gdRefR",t),l.J(r)||e.writeAttributeString("minR",r),l.J(i)||e.writeAttributeString("maxR",i),l.J(n)||e.writeAttributeString("gdRefAng",n),l.J(a)||e.writeAttributeString("minAng",a),l.J(s)||e.writeAttributeString("maxAng",s)},function(){wt(e,o)})}t.DrawingWriter.WriteCT_PolarAdjustHandle=Ka;function qa(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.ang)||e.writeAttributeString("ang",o.ang)},function(){wt(e,o)})}t.DrawingWriter.WriteCT_ConnectionSite=qa;function Ya(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.ahXY)||Xa(e,ve,"ahXY",o.ahXY),l.J(o.ahPolar)||Ka(e,ve,"ahPolar",o.ahPolar)})}t.DrawingWriter.WriteCT_AdjustHandleList=Ya;function Qa(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.cxn,function(t){qa(e,ve,"cxn",t)})})}t.DrawingWriter.WriteCT_ConnectionSiteList=Qa;function Za(e,t,r,o){ze(e,t,r,o,"id","idx")}t.DrawingWriter.WriteCT_Connection=Za;function $a(e,t,r,o){Ue(e,t,r,o,Va,ve,"pt")}t.DrawingWriter.WriteCT_Path2DMoveTo=$a;function el(e,t,r,o){Ue(e,t,r,o,Va,ve,"pt")}t.DrawingWriter.WriteCT_Path2DLineTo=el;function tl(e,t,r,o){e.writeLeafElement(t+":"+r,function(){var t=o.wR,r=o.hR,i=o.stAng,n=o.swAng;l.J(t)||e.writeAttributeString("wR",t),l.J(r)||e.writeAttributeString("hR",r),l.J(i)||e.writeAttributeString("stAng",i),l.J(n)||e.writeAttributeString("swAng",n)})}t.DrawingWriter.WriteCT_Path2DArcTo=tl;function rl(e,t,r,o){e.writeElement(t+":"+r,function(){xt(e,o)})}t.DrawingWriter.WriteCT_Path2DQuadBezierTo=rl,t.DrawingWriter.WriteCT_Path2DCubicBezierTo=rl;function ol(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_Path2DClose=ol;function il(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.w,r=i.h,n=i.fill;l.J(t)||0===t||e.writeAttributeString("w",t),l.J(r)||0===r||e.writeAttributeString("h",r),l.J(n)||1===n||e.writeAttributeString("fill",o.Charts.ST_PathFillMode[n]),i.stroke===!1&&e.writeAttributeString("stroke","0"),i.extrusionOk===!1&&e.writeAttributeString("extrusionOk","0")},function(){Ze(i.pathToList,function(t){if(t.typeName===o.Charts.CT_PathType.CT_Path2DClose)ol(e,ve,"close");else if(t.typeName===o.Charts.CT_PathType.CT_PathToList){var r=t;switch(r.pathToType){case 0:nl(e,ve,"lnTo",t);break;case 1:nl(e,ve,"moveTo",t);break;case 2:nl(e,ve,"quadBezTo",t);break;case 3:nl(e,ve,"cubicBezTo",t)}}else t.typeName===o.Charts.CT_PathType.CT_Path2DArcTo&&tl(e,ve,"arcTo",t)})})}t.DrawingWriter.WriteCT_Path2D=il;function nl(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.PtList,function(t){Va(e,ve,"pt",t)})})}t.DrawingWriter.WriteCT_AdjPoint2DList=nl;function al(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o,function(t){il(e,ve,"path",t)})})}t.DrawingWriter.WriteCT_Path2DList=al;function ll(e,t,r,i){e.writeElement(t+":"+r,function(){l.J(i.prst)||e.writeAttributeString(p,o.Charts.ST_ShapeType[i.prst])},function(){At(e,i)})}t.DrawingWriter.WriteCT_PresetGeometry2D=ll;function sl(e,t,r,i){e.writeElement(t+":"+r,function(){l.J(i.prst)||e.writeAttributeString(p,o.Charts.ST_TextShapeType[i.prst])},function(){At(e,i)})}t.DrawingWriter.WriteCT_PresetTextShape=sl;function cl(e,t,r,o){e.writeElement(t+":"+r,function(){
|
50
50
|
var t=o.avLst,r=o.gdLst,i=o.ahLst,n=o.cxnLst,a=o.rect;l.J(t)||za(e,ve,"avLst",t),l.J(r)||za(e,ve,"gdLst",r),l.J(i)||Ya(e,ve,"ahLst",i),l.J(n)||Qa(e,ve,"cxnLst",n),l.J(a)||ja(e,ve,"rect",a),al(e,ve,"pathLst",o.pathLst)})}t.DrawingWriter.WriteCT_CustomGeometry2D=cl;function dl(e,t,r,i){e.writeLeafElement(t+":"+r,function(){l.J(i.type)||e.writeAttributeString(h,o.Charts.ST_LineEndType[i.type]),l.J(i.w)||e.writeAttributeString("w",o.Charts.ST_LineEndWidth[i.w]),l.J(i.len)||e.writeAttributeString("len",o.Charts.ST_LineEndLength[i.len])})}t.DrawingWriter.WriteCT_LineEndProperties=dl;function ul(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_LineJoinBevel=ul;function fl(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_LineJoinRound=fl;function bl(e,t,r,o){Ge(e,t,r,o.lim,"lim")}t.DrawingWriter.WriteCT_LineJoinMiterProperties=bl;function hl(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_PresetLineDashVal,a.ChartHelper.ToST_PresetLineDashVal)}t.DrawingWriter.WriteCT_PresetLineDashProperties=hl;function pl(e,t,r,o){ze(e,t,r,o,"d","sp")}t.DrawingWriter.WriteCT_DashStop=pl;function ml(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.ds,function(t){pl(e,ve,"ds",t)})})}t.DrawingWriter.WriteCT_DashStopList=ml;function gl(e,r,i,a){a.w<=0&&(a.noFill=!0),e.writeElement(r+":"+i,function(){r===Le&&e.writeAttributeString("xmlns:a14",t.DrawingWriter.a14),!l.J(a.w)&&a.w>=0&&e.writeAttributeString("w",n(a.w)),l.J(a.cap)||e.writeAttributeString("cap",o.Charts.ST_LineCap[a.cap]),l.J(a.cmpd)||e.writeAttributeString("cmpd",o.Charts.ST_CompoundLine[a.cmpd]),l.J(a.algn)||e.writeAttributeString("algn",o.Charts.ST_PenAlignment[a.algn])},function(){var t=a.noFill,r=a.solidFill,o=a.gradFill,i=a.pattFill,n=a.prstDash,s=a.custDash,c=a.round,d=a.bevel,u=a.miter,f=a.headEnd,b=a.tailEnd,h=a.extLst;l.J(t)?l.J(r)?l.J(o)?l.J(i)||Ba(e,ve,W,i):Fa(e,ve,B,o):xr(e,ve,D,r):xa(e,ve,L),l.J(n)?l.J(s)||ml(e,ve,"custDash",s):hl(e,ve,"prstDash",n),l.J(c)||fl(e,ve,"round"),l.J(d)||ul(e,ve,"bevel"),l.J(u)||bl(e,ve,"miter",u),l.J(f)||dl(e,ve,"headEnd",f),l.J(b)||dl(e,ve,"tailEnd",b),l.J(h)||hr(e,ve,m,h)})}t.DrawingWriter.WriteCT_LineProperties=gl;function yl(e,t){e.writeLeafElement("asvg:svgBlip",function(){e.writeAttributeString("xmlns:asvg",s.XFileConstants.Zd);var r=t.embed;l.J(r)||e.writeAttributeString("r:embed",r)})}t.DrawingWriter.WriteCT_SvgBlipProperties=yl;function Sl(e,t,r,o,i){e.writeElement(t+":"+r,function(){Tt(e,o)},function(){var t=o.xfrm,r=o.custGeom,n=o.prstGeom,a=o.noFill,s=o.solidFill,c=o.gradFill,d=o.blipFill,u=o.pattFill,f=o.grpFill,b=o.ln,h=o.effectLst,p=o.effectDag,g=o.scene3d,y=o.sp3d,w=o.extLst;l.J(i)&&(i=!0),mr(e,ve,"xfrm",t,i),l.J(r)?l.J(n)||ll(e,ve,"prstGeom",n):cl(e,ve,"custGeom",r),l.J(a)?l.J(s)?l.J(c)?l.J(d)?l.J(u)?l.J(f)||Pa(e,ve,_):Ba(e,ve,W,u):Da(e,ve,P,d):Fa(e,ve,B,c):xr(e,ve,D,s):xa(e,ve,L),l.J(b)||gl(e,ve,"ln",b),l.J(h)||Ga(e,ve,S,h),l.J(p)||Ma(e,ve,C,p),l.J(g)||qn(e,ve,M,g),l.J(y)||Zn(e,ve,"sp3d",y),l.J(w)||hr(e,ve,m,w)})}t.DrawingWriter.WriteCT_ShapeProperties=Sl;function Cl(e,t,r,o){e.writeElement(t+":"+r,function(){Tt(e,o)},function(){var t=o.xfrm,r=o.scene3d,i=o.extLst,n=o.effectLst,a=o.effectDag;l.J(t)||gr(e,ve,"xfrm",t),je(e,o),l.J(n)||Ga(e,ve,S,n),l.J(a)||Ma(e,ve,C,a),l.J(r)||qn(e,ve,M,r),l.J(i)||hr(e,ve,m,i)})}t.DrawingWriter.WriteCT_GroupShapeProperties=Cl;function wl(e,t,r,o){e.writeElement(t+":"+r,function(){vt(e,o)},function(){o.ColorProp&&Ve(e,o.ColorProp)})}t.DrawingWriter.WriteCT_StyleMatrixReference=wl;function xl(e,t,r,i){e.writeElement(t+":"+r,function(){l.J(i.idx)||e.writeAttributeString("idx",o.Charts.ST_FontCollectionIndex[i.idx])},function(){var t=i.TextCharacterProperties&&i.TextCharacterProperties.solidFill;t&&Ve(e,t)})}t.DrawingWriter.WriteCT_FontReference=xl;function Al(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.lnRef,r=o.fillRef,i=o.effectRef,n=o.fontRef;l.J(t)||wl(e,ve,"lnRef",t),l.J(r)||wl(e,ve,"fillRef",r),l.J(i)||wl(e,ve,"effectRef",i),l.J(n)||xl(e,ve,"fontRef",n)})}t.DrawingWriter.WriteCT_ShapeStyle=Al;function Tl(e,t,r,o){e.writeLeafElement(t+":"+r,function(){o.fLocksWithSheet===!1&&e.writeAttributeString("fLocksWithSheet","0"),o.fPrintsWithSheet===!1&&e.writeAttributeString("fPrintsWithSheet","0")})}t.DrawingWriter.WriteCT_AnchorClientData=Tl;function vl(e,t,r,o){nt(e,t,r,o,t)}t.DrawingWriter.WriteCT_ShapeNonVisual=vl;function kl(e,t,r,o){nt(e,t,r,o,ke)}t.DrawingWriter.WriteCT_ShapeNonVisualForCdr=kl;function Fl(e,t,r,o){nt(e,t,r,o,Re)}t.DrawingWriter.WriteCT_ShapeNonVisualForXdr=Fl;function Rl(e,t,r,o){it(e,t,r,o,t,vl)}t.DrawingWriter.WriteCT_Shape=Rl;function El(e,t,r,o){it(e,t,r,o,ke,kl)}t.DrawingWriter.WriteCT_ShapeForCdr=El;function Il(e,t,r,o){it(e,t,r,o,Re,Fl)}t.DrawingWriter.WriteCT_ShapeForXdr=Il;function Ll(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.cNvPr,r=o.cNvCxnSpPr;l.J(t)||Mn(e,Re,g,t),l.J(r)||Hn(e,Re,"cNvCxnSpPr",r)})}t.DrawingWriter.WriteCT_ConnectorNonVisual=Ll;function Dl(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.cNvPr,r=o.cNvCxnSpPr;l.J(t)||Mn(e,ke,g,t),l.J(r)||Hn(e,ke,"cNvCxnSpPr",r)})}t.DrawingWriter.WriteCT_ConnectorNonVisualCdr=Dl;function Bl(e,t,r,o){e.writeElement(t+":"+r,function(){kt(e,o)},function(){var t=o.nvCxnSpPr,r=o.spPr,i=o.style;l.J(t)||Ll(e,Re,"nvCxnSpPr",t),l.J(r)||Sl(e,Re,O,r,!1),l.J(i)||Al(e,Re,ye,i)})}t.DrawingWriter.WriteCT_Connector=Bl;function Pl(e,t,r,o){e.writeElement(t+":"+r,function(){kt(e,o)},function(){var t=o.nvCxnSpPr,r=o.spPr,i=o.style;l.J(t)||Ll(e,ke,"nvCxnSpPr",t),l.J(r)||Sl(e,ke,O,r,!1),l.J(i)||Al(e,ke,ye,i)})}t.DrawingWriter.WriteCT_ConnectorCdr=Pl;function Wl(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.cNvPr,r=o.cNvPicPr;l.J(t)||Mn(e,Re,g,t),l.J(r)||Gn(e,Re,Ce,r)})}t.DrawingWriter.WriteCT_PictureNonVisualGroup=Wl;function _l(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.cNvPr,r=o.cNvPicPr;l.J(t)||Mn(e,ve,g,t),l.J(r)||Gn(e,ve,Ce,r)})}t.DrawingWriter.WriteCT_PictureNonVisual=_l;function Nl(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.cNvPr,r=o.cNvPicPr;l.J(t)||Mn(e,ke,g,t),l.J(r)||Gn(e,ke,Ce,r)})}t.DrawingWriter.WriteCT_PictureNonVisualrelSizeAnchor=Nl,t.DrawingWriter.WriteCT_PictureNonVisualOneCellAnchor=Wl,t.DrawingWriter.WriteCT_PictureNonVisualForXdr=Wl;function Ml(e,t,r,o){e.writeElement(t+":"+r,function(){Ft(e,o)},function(){var t=o.nvPicPr,r=o.blipFill,i=o.spPr,n=o.style;l.J(t)||Wl(e,Re,we,t),l.J(r)||Da(e,Re,P,r),l.J(i)||Sl(e,Re,O,i,!1),l.J(n)||Al(e,ve,ye,n)})}t.DrawingWriter.WriteCT_PictureGroup=Ml;function Ol(e,t,r,o){e.writeElement(t+":"+r,function(){Ft(e,o)},function(){var t=o.nvPicPr,r=o.blipFill,i=o.spPr,n=o.style;l.J(t)||Nl(e,ke,we,t),l.J(r)||Da(e,ke,P,r),l.J(i)||Sl(e,ke,O,i),l.J(n)||Al(e,ke,ye,n)})}t.DrawingWriter.WriteCT_PictureRelSizeAnchor=Ol;function Hl(e,t,r,o){e.writeElement(t+":"+r,function(){Ft(e,o)},function(){var t=o.nvPicPr,r=o.blipFill,i=o.spPr,n=o.style;l.J(t)||_l(e,Re,we,t),l.J(r)||Da(e,ve,P,r),l.J(i)||Sl(e,ve,O,i),l.J(n)||Al(e,ve,ye,n)})}t.DrawingWriter.WriteCT_Picture=Hl;function Gl(e,t,r,o){e.writeElement(t+":"+r,function(){Ft(e,o)},function(){var t=o.nvPicPr,r=o.blipFill,i=o.spPr,n=o.style;l.J(t)||_l(e,Re,we,t),l.J(r)||Da(e,Re,P,r),l.J(i)||Sl(e,Re,O,i),l.J(n)||Al(e,ve,ye,n)})}t.DrawingWriter.WriteCT_PictureOneCellAnchor=Gl;function Ul(e,t,r,o){e.writeElement(t+":"+r,function(){Ft(e,o)},function(){var t=o.nvPicPr,r=o.blipFill,i=o.spPr,n=o.style;l.J(t)||Wl(e,Re,we,t),l.J(r)||Da(e,Re,P,r),l.J(i)||Sl(e,Re,O,i,!1),l.J(n)||Al(e,Re,ye,n)})}t.DrawingWriter.WriteCT_PictureForXdr=Ul;function Jl(e,t,r,o){Ye(e,t,r,o,Re)}t.DrawingWriter.WriteCT_GraphicalObjectFrameNonVisual=Jl;function zl(e,t,r,o){Ye(e,t,r,o,ke)}t.DrawingWriter.WriteCT_GraphicalObjectFrameNonVisual_cdr=zl;function Vl(e,t,r,o,i){e.writeElement(t+":"+r,function(){e.writeAttributeString(y,"")},function(){var t=o.nvGraphicFramePr,r=o.graphic;l.J(t)||Jl(e,Re,"nvGraphicFramePr",t),mr(e,Re,"xfrm",u,!0),l.J(r)||jn(e,ve,"graphic",r,i)})}t.DrawingWriter.WriteCT_GraphicalObjectFrame=Vl;function jl(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.macro)||e.writeAttributeString(y,o.macro),o.fPublished===!0&&e.writeAttributeString(w,"1")},function(){var t=o.nvGraphicFramePr,r=o.xfrm,i=o.graphic;l.J(t)||zl(e,ke,"nvGraphicFramePr",t),mr(e,ke,"xfrm",r,!0),l.J(i)||jn(e,ve,"graphic",i)})}t.DrawingWriter.WriteCT_GraphicalObjectFrame_cdr=jl;function Xl(e,t,r,o){e.writeElement(t+":"+r,function(){var r=o.cNvPr,i=o.cNvGrpSpPr;l.J(r)||Mn(e,t,g,r),l.J(i)||Un(e,t,"cNvGrpSpPr",i)})}t.DrawingWriter.WriteCT_GroupShapeNonVisual=Xl;function Kl(e,r,o,i){e.writeElement(r+":"+o,function(){var o=i.nvGrpSpPr,n=i.grpSpPr;l.J(o)||Xl(e,Re,"nvGrpSpPr",o),l.J(n)||Cl(e,Re,"grpSpPr",n),i.sp.forEach(function(o){var i,n,a,s;5===o.shapeType?Rl(e,r,"sp",o):3===o.shapeType?Kl(e,r,z,o):2===o.shapeType?Vl(e,r,x,o):4===o.shapeType?Bl(e,r,V,o):1===o.shapeType?l.J(o.cellRange)||o.cameraTool!==!0?Ml(e,r,"pic",o):(i={a14:t.DrawingWriter.a14,Requires:"a14",pic:o},n={},o={AlternateContent:t.DrawingWriter.mc,Choice:i,Fallback:n},Ql(e,"mc","AlternateContent",o)):0===o.shapeType||7===o.shapeType&&(a=o.nvSpPr.cNvPr.extLst||{},a.ext=a.ext||[],a.ext.push({uri:"{63B3BB69-23CF-44E3-9099-C40C66FF867C}",compatExt:{spid:o.control.spid}}),o.nvSpPr.cNvPr.extLst=a,i={a14:t.DrawingWriter.a14,Requires:"a14",sp:o},s={AlternateContent:t.DrawingWriter.mc,Choice:i,FallBack:!0},Ql(e,"mc","AlternateContent",s))})})}t.DrawingWriter.WriteCT_GroupShape=Kl;function ql(e,t,r,o){var i=void 0===t?r:t+":"+r;e.writeElement(i,function(){var t,r;l.J(o.col)||e.writeElementString("xdr:col",o.col),t=o.colOffset,l.J(t)||e.writeElementString("xdr:colOff",n(t)),l.J(o.row)||e.writeElementString("xdr:row",o.row),r=o.rowOffset,l.J(r)||e.writeElementString("xdr:rowOff",n(r))})}t.DrawingWriter.WriteCT_Position=ql;function Yl(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.editAs;l.J(t)||0===t||e.writeAttributeString("editAs",o.Charts.ST_EditAs[t])},function(){var t=i.startPoint,r=i.endPoint,o=i.AlternateContent,n=i.sp,a=i.grpSp,s=i.graphicFrame,c=i.cxnSp,d=i.pic,u=i.clientData,f=l.Util.za(i),b=f&&f.layoutId,h=l.Util.Aa(b);l.J(t)||ql(e,Re,"from",t),l.J(r)||ql(e,Re,"to",r),!l.J(o)&&h&&Ql(e,Be,Ae,o,h),l.J(n)||Il(e,Re,"sp",n),l.J(a)||Kl(e,Re,z,a),l.J(s)||h||Vl(e,Re,x,s,h),l.J(c)||Bl(e,Re,V,c),l.J(d)||Ul(e,Re,"pic",d),l.J(u)||Tl(e,Re,Te,u)})}t.DrawingWriter.WriteCT_TwoCellAnchor=Yl;function Ql(e,r,o,i,n){e.writeElement(r+":"+o,function(){e.writeAttributeString("xmlns:mc",i.AlternateContent)},function(){var r=i.Choice,o=i.Fallback;l.J(r)&&Zl(i)&&(r={a14:t.DrawingWriter.a14,Requires:"a14",twoCellAnchor:i},o={}),l.J(r)||$l(e,Be,"Choice",r,n),l.J(o)||es(e,Be,"Fallback",o)})}t.DrawingWriter.WriteCT_AlternateContent=Ql;function Zl(e){return!(!e||!e.pic||e.pic.cameraTool!==!0)}function $l(e,t,r,o,i){e.writeElement(t+":"+r,function(){!i||l.J(o.Requires)||l.J(o.cx)||e.writeAttributeString("xmlns:"+o.Requires,o.cx);var t=o.a14;l.J(t)||e.writeAttributeString("xmlns:a14",o.a14),e.writeAttributeString("Requires",o.Requires)},function(){var t,r,n,a=o.GraphicalObjectFrame;l.J(a)||Vl(e,Re,"graphicFrame",a,i),t=o.twoCellAnchor,l.J(t)||Yl(e,Re,"twoCellAnchor",t),r=o.sp,l.J(r)||Rl(e,Re,"sp",r),n=o.pic,l.J(n)||Ul(e,Re,"pic",n)})}t.DrawingWriter.WriteCT_Choice=$l;function es(e,t,r,o){e.writeElement(t+":"+r,function(){},function(){var t=o.GraphicalObjectFrame;l.J(t)||Vl(e,Re,"graphicFrame",t)})}t.DrawingWriter.WriteCT_FallBack=es;function ts(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.startPoint;l.J(t)||ql(e,Re,"from",t),at(e,o,!0)})}t.DrawingWriter.WriteCT_OneCellAnchor=ts;function rs(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.pos;l.J(t)||er(e,Re,"pos",t,!0),at(e,o)})}t.DrawingWriter.WriteCT_AbsoluteAnchor=rs;function os(e,r,o,i){e.writeElement("xdr:"+o,function(){e.writeAttributeString("xmlns:a",t.DrawingWriter.a),e.writeAttributeString("xmlns:xdr",t.DrawingWriter.xdr)},function(){i.AnchorBaseList.forEach(function(t){1===t.anchorType?ts(e,Re,"oneCellAnchor",t):0===t.anchorType?Yl(e,Re,"twoCellAnchor",t):2===t.anchorType&&rs(e,Re,"absoluteAnchor",t)})})}t.DrawingWriter.WriteCT_Drawing=os;function is(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.spPr,r=o.bodyPr,i=o.lstStyle,n=o.style,a=o.extLst;l.J(t)||Sl(e,ve,O,t),l.J(r)||Ss(e,ve,"bodyPr",r),l.J(i)||hs(e,ve,"lstStyle",i),l.J(n)||Al(e,ve,ye,n),l.J(a)||hr(e,ve,m,a)})}t.DrawingWriter.WriteCT_DefaultShapeDefinition=is;function ns(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.spDef,r=o.lnDef,i=o.txDef,n=o.extLst;l.J(t)||is(e,ve,"spDef",t),l.J(r)||is(e,ve,"lnDef",r),l.J(i)||is(e,ve,"txDef",i),l.J(n)||hr(e,ve,m,n)})}t.DrawingWriter.WriteCT_ObjectStyleDefaults=ns;function as(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_EmptyElement=as;function ls(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.masterClrMapping,r=o.overrideClrMapping;l.J(t)||as(e,ve,"masterClrMapping"),l.J(r)||cn(e,ve,"overrideClrMapping",r)})}t.DrawingWriter.WriteCT_ColorMappingOverride=ls;function ss(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.clrScheme,r=o.clrMap;l.J(t)||Rt(e,ve,j,t),l.J(r)||cn(e,ve,"clrMap",r)})}t.DrawingWriter.WriteCT_ColorSchemeAndMapping=ss;function cs(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.extraClrScheme,function(t){ss(e,ve,"extraClrScheme",t)})})}t.DrawingWriter.WriteCT_ColorSchemeList=cs;function ds(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.name;Oe(t)||e.writeAttributeString(b,t)},function(){var t=o.themeElements,r=o.objectDefaults,i=o.extraClrSchemeLst,n=o.custClrLst,a=o.extLst;l.J(t)||Ht(e,ve,"themeElements",t),l.J(r)||ns(e,ve,"objectDefaults",r),l.J(i)||cs(e,ve,"extraClrSchemeLst",i),l.J(n)||Lt(e,ve,"custClrLst",n),l.J(a)||hr(e,ve,m,a)})}t.DrawingWriter.WriteCT_OfficeStyleSheet=ds;function us(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.clrScheme,r=o.fontScheme,i=o.fmtScheme;l.J(t)||Rt(e,ve,j,t),l.J(r)||Pt(e,ve,X,r),l.J(i)||Ot(e,ve,K,i)})}t.DrawingWriter.WriteCT_BaseStylesOverride=us;function fs(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.themeElements,r=o.clrMap;l.J(t)||Ht(e,ve,"themeElements",t),l.J(r)||cn(e,ve,"clrMap",r)})}t.DrawingWriter.WriteCT_ClipboardStyleSheet=fs;function bs(e,t,r,o){e.writeElement(t+":"+r,function(){var r=o.pPr,i=o.endParaRPr,n=o.elements;l.J(r)||Hs(e,t,"pPr",r),l.J(n)||n.forEach(function(r){0===r.elementType?Us(e,t,Fe,r):1===r.elementType?Ms(e,t,"br",r):2===r.elementType&&Gs(e,t,"fld",r)}),l.J(i)||Bs(e,t,"endParaRPr",i)})}t.DrawingWriter.WriteCT_TextParagraph=bs;function hs(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.defPPr,r=o.lvl1pPr,i=o.lvl2pPr,n=o.lvl3pPr,a=o.lvl4pPr,s=o.lvl5pPr,c=o.lvl6pPr,d=o.lvl7pPr,u=o.lvl8pPr,f=o.lvl9pPr,b=o.extLst;l.J(t)||Hs(e,ve,"defPPr",t),l.J(r)||Hs(e,ve,"lvl1pPr",r),l.J(i)||Hs(e,ve,"lvl2pPr",i),l.J(n)||Hs(e,ve,"lvl3pPr",n),l.J(a)||Hs(e,ve,"lvl4pPr",a),l.J(s)||Hs(e,ve,"lvl5pPr",s),l.J(c)||Hs(e,ve,"lvl6pPr",c),l.J(d)||Hs(e,ve,"lvl7pPr",d),l.J(u)||Hs(e,ve,"lvl8pPr",u),l.J(f)||Hs(e,ve,"lvl9pPr",f),l.J(b)||hr(e,ve,m,b)})}t.DrawingWriter.WriteCT_TextListStyle=hs;function ps(e,t,r,o){e.writeLeafElement(t+":"+r,function(){var t=o.fontScale,r=o.lnSpcReduction;l.J(t)||1e5===t||e.writeAttributeString("fontScale",t),l.J(r)||0===r||e.writeAttributeString("lnSpcReduction",r)})}t.DrawingWriter.WriteCT_TextNormalAutofit=ps;function ms(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextShapeAutofit=ms;function gs(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextNoAutofit=gs;function ys(e){return 6e4*e}t.DrawingWriter.getRotationData=ys;function Ss(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.rot,r=i.vertOverflow,n=i.horzOverflow,a=i.wrap,s=i.lIns,c=i.tIns,d=i.rIns,u=i.bIns,f=i.numCol,b=i.spcCol,h=i.anchor;l.J(t)||e.writeAttributeString("rot",ys(t)),i.spcFirstLastPara===!0&&e.writeAttributeString("spcFirstLastPara","1"),l.J(r)||0===r||e.writeAttributeString("vertOverflow",o.Charts.ST_TextVertOverflowType[r]),l.J(n)||0===n||e.writeAttributeString("horzOverflow",o.Charts.ST_TextHorzOverflowType[n]),l.J(i.vert)||e.writeAttributeString("vert",o.Charts.ST_TextVerticalType[i.vert]),l.J(a)||0===a||e.writeAttributeString("wrap",o.Charts.ST_TextWrappingType[a]),l.J(s)||91440===s||e.writeAttributeString("lIns",s),l.J(c)||45720===c||e.writeAttributeString("tIns",c),l.J(d)||91440===d||e.writeAttributeString("rIns",d),l.J(u)||45720===u||e.writeAttributeString("bIns",u),l.J(f)||0===f||e.writeAttributeString("numCol",f),l.J(b)||0===b||e.writeAttributeString("spcCol",b),i.rtlCol===!0&&e.writeAttributeString("rtlCol","1"),i.fromWordArt===!0&&e.writeAttributeString("fromWordArt","1"),l.J(h)||0===h||e.writeAttributeString("anchor",o.Charts.ST_TextAnchoringType[h]),i.anchorCtr===!0&&e.writeAttributeString("anchorCtr","1"),i.forceAA===!0&&e.writeAttributeString("forceAA","1"),i.upright===!0&&e.writeAttributeString("upright","1"),i.compatLnSpc===!0&&e.writeAttributeString("compatLnSpc","1")},function(){var t=i.prstTxWarp,r=i.noAutofit,o=i.normAutofit,n=i.spAutoFit,a=i.scene3d,s=i.sp3d,c=i.flatTx,d=i.extLst;l.J(t)||sl(e,ve,"prstTxWarp",t),l.J(r)||gs(e,ve,"noAutofit"),l.J(o)||ps(e,ve,"normAutofit",o),l.J(n)||ms(e,ve,"spAutoFit"),l.J(a)||qn(e,ve,M,a),l.J(s)||Zn(e,ve,"sp3d",s),l.J(c)||$n(e,ve,"flatTx",c),l.J(d)||hr(e,ve,m,d)})}t.DrawingWriter.WriteCT_TextBodyProperties=Ss;function Cs(e,t,r,o){e.writeElement(t+":"+r,function(){var t,r,i=o.bodyPr,n=o.lstStyle;Ss(e,ve,"bodyPr",i||{}),l.J(n)||hs(e,ve,"lstStyle",n),t=o.p,l.J(t)?(r={pPr:{defRPr:{}},endParaRPr:{},elements:[]},bs(e,ve,"p",r)):Ze(o.p,function(t){bs(e,ve,"p",t)})})}t.DrawingWriter.WriteCT_TextBody=Cs;function ws(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextBulletColorFollowText=ws;function xs(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextBulletSizeFollowText=xs;function As(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_TextBulletSizePercent=As;function Ts(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_TextBulletSizePoint=Ts;function vs(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextBulletTypefaceFollowText=vs;function ks(e,t,r,i){e.writeLeafElement(t+":"+r,function(){var t=i.startAt;l.J(i.type)||e.writeAttributeString(h,o.Charts.ST_TextAutonumberScheme[i.type]),l.J(t)||1===t||e.writeAttributeString("startAt",t)})}t.DrawingWriter.WriteCT_TextAutonumberBullet=ks;function Fs(e,t,r,o){e.writeLeafElement(t+":"+r,function(){l.J(o.char)||e.writeAttributeString("char",o.char)})}t.DrawingWriter.WriteCT_TextCharBullet=Fs;function Rs(e,t,r,o){Ue(e,t,r,o,Ia,ve,"blip")}t.DrawingWriter.WriteCT_TextBlipBullet=Rs;function Es(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextNoBullet=Es;function Is(e,t,r,o){e.writeLeafElement(t+":"+r,function(){var t=o.typeface,r=o.panose,n=o.pitchFamily,a=o.charset;l.J(t)||e.writeAttributeString("typeface",i.ConverterHelper.getFontName(t)),l.J(r)||e.writeAttributeString("panose",r),l.J(n)||0===n||e.writeAttributeString("pitchFamily",n),l.J(a)||1===a||e.writeAttributeString("charset",a)})}t.DrawingWriter.WriteCT_TextFont=Is;function Ls(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextUnderlineLineFollowText=Ls;function Ds(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextUnderlineFillFollowText=Ds,t.DrawingWriter.WriteCT_TextUnderlineFillGroupWrapper=Wa;function Bs(e,t,r,n){e.writeElement(t+":"+r,function(){var t=n.altLang,r=n.sz,a=n.kern,s=n.cap,c=n.spc,d=n.baseline,u=n.smtId,f=n.bmk;n.kumimoji===!0&&e.writeAttributeString("kumimoji","1"),l.J(t)||e.writeAttributeString("altLang",t),l.J(r)||0===r||e.writeAttributeString("sz",Math.round(100*i.UnitHelper.pixelToPoint(r))),l.J(n.b)||e.writeAttributeString("b",n.b?"1":"0"),l.J(n.i)||e.writeAttributeString("i",n.i?"1":"0"),l.J(n.u)||e.writeAttributeString("u",o.Charts.ST_TextUnderlineType[n.u]),l.J(n.strike)||e.writeAttributeString("strike",o.Charts.ST_TextStrikeType[n.strike]),l.J(a)||0===a||e.writeAttributeString("kern",a),l.J(s)||0===s||e.writeAttributeString("cap",o.Charts.ST_TextCapsType[s]),l.J(c)||e.writeAttributeString("spc",c),n.normalizeH===!0&&e.writeAttributeString("normalizeH","1"),l.J(d)||e.writeAttributeString("baseline",d),n.noProof===!0&&e.writeAttributeString("noProof","1"),n.dirty===!1&&e.writeAttributeString("dirty","0"),n.err===!0&&e.writeAttributeString("err","1"),n.smtClean===!1&&e.writeAttributeString("smtClean","0"),l.J(u)||0===u||e.writeAttributeString("smtId",u),l.J(f)||e.writeAttributeString("bmk",f)},function(){var t=n.ln,r=n.highlight,o=n.uLnTx,i=n.uLn,a=n.uFillTx,s=n.uFill,c=n.latin,d=n.ea,u=n.cs,f=n.sym,b=n.hlinkClick,h=n.hlinkMouseOver,p=n.extLst,g=n.effectLst,y=n.effectDag;l.J(t)||gl(e,ve,"ln",t),je(e,n),l.J(g)||Ga(e,ve,S,g),l.J(y)||Ma(e,ve,C,y),l.J(r)||xr(e,ve,"highlight",r),l.J(o)||Ls(e,ve,"uLnTx"),l.J(i)||gl(e,ve,"uLn",i),l.J(a)||Ds(e,ve,"uFillTx"),l.J(s)||Wa(e,ve,"uFill",s),l.J(c)||Is(e,ve,"latin",c),l.J(d)||Is(e,ve,"ea",d),l.J(u)||Is(e,ve,"cs",u),l.J(f)||Is(e,ve,"sym",f),l.J(b)||vr(e,ve,"hlinkClick",b),l.J(h)||vr(e,ve,"hlinkMouseOver",h),l.J(p)||hr(e,ve,m,p)})}t.DrawingWriter.WriteCT_TextCharacterProperties=Bs;function Ps(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_TextSpacingPercent=Ps;function Ws(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_TextSpacingPoint=Ws;function _s(e,t,r,i){e.writeLeafElement(t+":"+r,function(){l.J(i.pos)||e.writeAttributeString("pos",i.pos),l.J(i.algn)||e.writeAttributeString("algn",o.Charts.ST_TextTabAlignType[i.algn])})}t.DrawingWriter.WriteCT_TextTabStop=_s;function Ns(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.tab,function(t){_s(e,ve,"tab",t)})})}t.DrawingWriter.WriteCT_TextTabStopList=Ns;function Ms(e,t,r,o){Ue(e,t,r,o,Bs,ve,"rPr")}t.DrawingWriter.WriteCT_TextLineBreak=Ms;function Os(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.spcPct)||Ps(e,ve,"spcPct",o.spcPct),l.J(o.spcPts)||Ws(e,ve,"spcPts",o.spcPts)})}t.DrawingWriter.WriteCT_TextSpacing=Os;function Hs(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.marL,r=i.marR,n=i.lvl,a=i.indent,s=i.algn,c=i.defTabSz,d=i.fontAlgn;l.J(t)||0===t||e.writeAttributeString("marL",t),l.J(r)||0===r||e.writeAttributeString("marR",r),l.J(n)||0===n||e.writeAttributeString("lvl",n),l.J(a)||0===a||e.writeAttributeString("indent",a),l.J(s)||0===s||e.writeAttributeString("algn",o.Charts.ST_TextAlignType[s]),l.J(c)||0===c||e.writeAttributeString("defTabSz",c),i.rtl===!0&&e.writeAttributeString("rtl","1"),i.eaLnBrk===!0&&e.writeAttributeString("eaLnBrk","1"),l.J(d)||0===d||e.writeAttributeString("fontAlgn",o.Charts.ST_TextFontAlignType[d]),i.latinLnBrk===!0&&e.writeAttributeString("latinLnBrk","1"),i.hangingPunct===!0&&e.writeAttributeString("hangingPunct","1")},function(){var t=i.lnSpc,r=i.spcBef,o=i.spcAft,n=i.buClrTx,a=i.buClr,s=i.buSzTx,c=i.buSzPct,d=i.buSzPts,u=i.buFontTx,f=i.buFont,b=i.buNone,h=i.buAutoNum,p=i.buChar,g=i.buBlip,y=i.tabLst,S=i.defRPr,C=i.extLst;l.J(t)||Os(e,ve,"lnSpc",t),l.J(r)||Os(e,ve,"spcBef",r),l.J(o)||Os(e,ve,"spcAft",o),l.J(n)||ws(e,ve,"buClrTx"),l.J(a)||xr(e,ve,"buClr",a),l.J(s)||xs(e,ve,"buSzTx"),l.J(c)||As(e,ve,"buSzPct",c),l.J(d)||Ts(e,ve,"buSzPts",d),l.J(u)||vs(e,ve,"buFontTx"),l.J(f)||Is(e,ve,"buFont",f),l.J(b)||Es(e,ve,"buNone"),l.J(h)||ks(e,ve,"buAutoNum",h),l.J(p)||Fs(e,ve,"buChar",p),l.J(g)||Rs(e,ve,"buBlip",g),l.J(y)||Ns(e,ve,"tabLst",y),l.J(S)||Bs(e,ve,"defRPr",S),l.J(C)||hr(e,ve,m,C)})}t.DrawingWriter.WriteCT_TextParagraphProperties=Hs;function Gs(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.id)||e.writeAttributeString("id",o.id),l.J(o.type)||e.writeAttributeString(h,o.type)},function(){l.J(o.rPr)||Bs(e,ve,"rPr",o.rPr),l.J(o.pPr)||Hs(e,ve,"pPr",o.pPr),l.J(o.t)||e.writeElementString("a:t",d(o.t))})}t.DrawingWriter.WriteCT_TextField=Gs;function Us(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.rPr)||Bs(e,ve,"rPr",o.rPr),l.J(o.t)||e.writeElementString("a:t",d(o.t))})}t.DrawingWriter.WriteCT_RegularTextRun=Us},"./src/xlsx-io/writer/comment-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/xlsx-io/common/color-writer.ts"),l=r("./src/datamodel/excel-style.ts"),s=o.Util.oa;function c(e,t){var r=new i.XmlWriter;return r.writeDocument(),r.writeElement("comments",function(){r.writeAttributeString("xmlns",n.XFileConstants.Hd)},function(){u(r),r.writeElement("commentList",function(){t.forEach(function(e){d(r,e)})})}),r.getXmlString()}t.writeComments=c;function d(e,t){function r(e){var t=e;if(t){if("number"==typeof t)return t>400;if("string"==typeof t)return t.toLowerCase().indexOf("bold")!==-1||parseInt(t,10)>400}return!1}function i(e){var t=e;return!!t&&["italic","oblique"].indexOf(t.toLowerCase().trim())!==-1}e.writeElement("comment",function(){e.writeAttributeString("ref",o.IndexHelper.T(t.col)+(t.row+1)),e.writeAttributeString("authorId","0")},function(){e.writeElement("text",function(){e.writeElement("r",function(){var n,c,d;e.writeElement("rPr",function(){var o,n=t.fontWeight;r(n)&&e.writeLeafElement("b"),n=t.fontStyle,i(n)&&e.writeLeafElement("i"),o=t.textDecoration,o&&(1&o&&e.writeLeafElement("u"),8&o&&e.writeLeafElement("u",function(){e.writeAttributeString("val",l.UnderLineStyle[2])}),2&o&&e.writeLeafElement("strike")),n=t.fontSize,n&&e.writeLeafElement("sz",function(){e.writeAttributeString("val",n)}),n=t.foreColor,n?a.writeColor(e,"color",n):e.writeLeafElement("color",function(){e.writeAttributeString("indexed","81")}),n=t.fontFamily,n&&e.writeLeafElement("rFont",function(){e.writeAttributeString("val",n)}),e.writeLeafElement("family",function(){e.writeAttributeString("val","2")})}),n=t.text,c=o.J(n)?"":n,d=c.length!==c.trim().length,e.writeElement("t",function(){d&&e.writeAttributeString("xml:space","preserve")},function(){e.writeValue(s(c))})})})})}function u(e){e.writeElement("authors",void 0,function(){e.writeElement("author",void 0,function(){e.writeValue("Author")})})}function f(e,t,r){var i="_x0000_t",n="202",a="_x0000_s";e.writeElement("v:shapetype",function(){e.writeAttributeString("id",i+n),e.writeAttributeString("coordsize","21600,21600"),e.writeAttributeString("o:spt",n),e.writeAttributeString("path","m,l,21600r21600,l21600,xe")},function(){e.writeLeafElement("v:stroke",function(){e.writeAttributeString("joinstyle","miter")}),e.writeLeafElement("v:path",function(){e.writeAttributeString("gradientshapeok","t"),e.writeAttributeString("o:connecttype","rect")})}),t.forEach(c);function s(e){if(e&&e.indexOf("rgb")>=0){var t=l.ColorHelper.fromHtmlColor(e),r=t.toString(16).substr(-6);return"#"+r}return e}function c(t){var l=t.inset;e.writeElement("v:shape",function(){e.writeAttributeString("id",a+r),r++,e.writeAttributeString("type","#"+i+n),e.writeAttributeString("style",c(t)),e.writeAttributeString("fillcolor",s(t.backColor)),e.writeAttributeString("strokecolor",s(t.borderColor)),e.writeAttributeString("strokeweight",""+t.borderWidth),l||e.writeAttributeString("o:insetmode","auto")},function(){var r=t.dashStyle,i=t.lineStyle;r?e.writeLeafElement("v:stroke",function(){e.writeAttributeString("dashstyle",r)}):i&&e.writeLeafElement("v:stroke",function(){e.writeAttributeString("linestyle",i)}),e.writeLeafElement("v:fill",function(){var r=t.opacity;o.J(r)||1===r||e.writeAttributeString("opacity",Math.floor(65535*r)+"f"),e.writeAttributeString("color2","#ffffe1")}),e.writeLeafElement("v:shadow",function(){e.writeAttributeString("color","black"),e.writeAttributeString("obscured","t")}),e.writeLeafElement("v:path",function(){e.writeAttributeString("o:connecttype","none")}),e.writeElement("v:textbox",function(){e.writeAttributeString("style","mso-direction-alt:auto"+(t.autoSize?";mso-fit-shape-to-text:t":"")),l&&e.writeAttributeString("inset",l)},function(){e.writeElement("div",function(){e.writeAttributeString("style","text-align:"+t.hAlign.toLowerCase())},null)}),e.writeElement("x:ClientData",function(){e.writeAttributeString("ObjectType","Note")},function(){t.dynamicMove===!1&&e.writeLeafElement("x:MoveWithCells"),t.dynamicSize===!1&&e.writeLeafElement("x:SizeWithCells"),t.locked===!1&&e.writeElementString("x:Locked","False"),t.lockText===!1&&e.writeElementString("x:LockText","False"),e.writeElementString("x:AutoFill","False");var r=t.hAlign;"Left"!==r&&e.writeElementString("x:TextHAlign",r),e.writeElementString("x:Row",t.row),e.writeElementString("x:Column",t.col),1===t.displayMode&&e.writeLeafElement("x:Visible")})});function c(e){var t=["position:absolute"],r=e.marginLeft;return r>=0&&t.push("margin-left:"+r+"pt"),r=e.marginTop,r>=0&&t.push("margin-top:"+r+"pt"),r=e.width,r&&t.push("width:"+r),r=e.height,r&&t.push("height:"+r),t.push("z-index:"+e.zIndex),r=e.visibility,r&&t.push("visibility:"+r),t.join(";")}}}t.writeCommentShapes=f},"./src/xlsx-io/writer/conditionalformat-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/range-parser.ts"),i=r("./src/common/common.ts"),n=r("./src/datamodel/excel-style.ts"),a=r("./src/xlsx-io/common/color-writer.ts"),l=r("./src/common/excel-types.ts"),s=r("./src/xlsx-io/writer/style-writer.ts"),c=r("./src/xlsx-io/writer/datavalidation-writer.ts"),function(e){e[e.conditionRuleBase=0]="conditionRuleBase",e[e.cellValueRule=1]="cellValueRule",e[e.specificTextRule=2]="specificTextRule",e[e.formulaRule=3]="formulaRule",e[e.dateOccurringRule=4]="dateOccurringRule",e[e.top10Rule=5]="top10Rule",e[e.uniqueRule=6]="uniqueRule",e[e.duplicateRule=7]="duplicateRule",e[e.averageRule=8]="averageRule",e[e.twoScaleRule=10]="twoScaleRule",e[e.threeScaleRule=11]="threeScaleRule",e[e.dataBarRule=12]="dataBarRule",e[e.iconSetRule=13]="iconSetRule",e[e.rowStateRule=14]="rowStateRule",e[e.columnStateRule=15]="columnStateRule"}(d||(d={})),u={0:"num",1:"min",2:"max",3:"percent",4:"percentile",6:"formula",5:"autoMin",7:"autoMax"},f={0:"3Arrows",1:"3ArrowsGray",4:"3Flags",5:"3TrafficLights1",6:"3TrafficLights2",7:"3Signs",8:"3Symbols",9:"3Symbols2",10:"4Arrows",11:"4ArrowsGray",12:"4RedToBlack",13:"4Rating",14:"4TrafficLights",15:"5Arrows",16:"5ArrowsGray",17:"5Rating",18:"5Quarters",3:"3Stars",2:"3Triangles",19:"5Boxes",20:"NoIcons"},b={1:"num",4:"percent",7:"formula",5:"percentile"},h={0:"equal",1:"notEqual",2:"greaterThan",3:"greaterThanOrEqual",4:"lessThan",5:"lessThanOrEqual",6:"between",7:"notBetween"};function S(e){var t=""+e;return"="===t.charAt(0)?t.substr(1):t}function C(e){return"string"==typeof e?(e="="===e[0]?e.substr(1):e,i.addXLFNPrefix(e)):e}function w(e){return"string"==typeof e}function x(e){return e===u[1]||e===u[2]}function A(e){var t,r,o,i;if(w(e.value1)&&c.isTablesheetColumnFormula(e.value1))return!0;if(w(e.value2)&&c.isTablesheetColumnFormula(e.value2))return!0;if(w(e.minValue)&&c.isTablesheetColumnFormula(e.minValue))return!0;if(w(e.midValue)&&c.isTablesheetColumnFormula(e.midValue))return!0;if(w(e.maxValue)&&c.isTablesheetColumnFormula(e.maxValue))return!0;if(w(e.text)&&c.isTablesheetColumnFormula(e.text))return!0;if(w(e.formula)&&c.isTablesheetColumnFormula(e.formula)&&c.isTablesheetColumnFormula(e.formula))return!0;if(e.iconCriteria&&e.iconCriteria.length>0)for(t=0,r=e.iconCriteria;t<r.length;t++)if(o=r[t],i=o.iconValue,w(i)&&c.isTablesheetColumnFormula(i))return!0;return!1}function T(e,t,r){var n,l,s=r.xg(t),c=s&&s.rules;if(c&&c.length>0)for(n=function(n){var l=c[n];return i.J(l.priority)&&(l.priority=1),N(l)||H(l,t,r.jj())||M(l)||A(l)?"continue":void e.writeElement("conditionalFormatting",function(){e.writeAttributeString("sqref",o.getRangeString(l.ranges)),l.pivot&&e.writeAttributeString("pivot","1")},function(){if(l.ruleType===d.dataBarRule)e.writeElement("cfRule",function(){e.writeAttributeString("type",d[l.ruleType].replace("Rule","")),e.writeAttributeString("priority",l.priority)},function(){e.writeElement("dataBar",function(){l.showBarOnly&&e.writeAttributeString("showValue","0")},function(){var t,r=u[l.minType];(i.J(r)||"autoMin"===r)&&(r="min"),e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",r),x(r)||i.J(l.minValue)||e.writeAttributeString("val",i.Util.oa(S(l.minValue)))}),t=u[l.maxType],(i.J(t)||"autoMax"===t)&&(t="max"),e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",t),x(t)||i.J(l.maxValue)||e.writeAttributeString("val",i.Util.oa(S(l.maxValue)))}),a.writeColor(e,"color",_(l.color))}),e.writeElement("extLst",function(){
|
51
|
-
e.writeElement("ext",function(){e.writeAttributeString("uri","{B025F937-C7B1-47D3-B67F-A62EFF666E3E}"),e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main")},function(){l.id=i.Util.va(),e.writeElement("x14:id",function(){e.writeValue(l.id)})})})});else if(l.ruleType===d.twoScaleRule||l.ruleType===d.threeScaleRule)e.writeElement("cfRule",function(){e.writeAttributeString("type","colorScale"),e.writeAttributeString("priority",l.priority)},function(){e.writeElement("colorScale",function(){e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",u[l.minType]),i.J(l.minValue)||e.writeAttributeString("val",i.Util.oa(S(l.minValue)))});var t=l.ruleType===d.threeScaleRule;t&&e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",u[l.midType]),i.J(l.midValue)?e.writeAttributeString("val","50"):e.writeAttributeString("val",i.Util.oa(S(l.midValue)))}),e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",u[l.maxType]),i.J(l.maxValue)||e.writeAttributeString("val",i.Util.oa(S(l.maxValue)))}),a.writeColor(e,"color",_(l.minColor)),t&&a.writeColor(e,"color",_(l.midColor)),a.writeColor(e,"color",_(l.maxColor))})});else if(l.ruleType===d.iconSetRule){if(N(l))return;e.writeElement("cfRule",function(){e.writeAttributeString("type","iconSet"),e.writeAttributeString("priority",l.priority)},function(){e.writeElement("iconSet",function(){var t=l.iconSetType;i.J(t)&&(t=0),e.writeAttributeString("iconSet",f[t]),l.reverseIconOrder&&e.writeAttributeString("reverse","1"),l.showIconOnly&&e.writeAttributeString("showValue","0")},function(){var t,r;for(e.writeLeafElement("cfvo",function(){e.writeAttributeString("type","percent"),e.writeAttributeString("val","0")}),t=function(t){var r=l.iconCriteria[t];e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",b[r.iconValueType]),e.writeAttributeString("val",i.Util.oa(S(r.iconValue))),r.isGreaterThanOrEqualTo===!1&&e.writeAttributeString("gte","0")})},r=0;r<l.iconCriteria.length;r++)t(r)})})}else if(l.ruleType===d.cellValueRule)e.writeElement("cfRule",function(){e.writeAttributeString("type","cellIs"),l.priority&&e.writeAttributeString("priority",l.priority),l.dxfId>=0&&e.writeAttributeString("dxfId",l.dxfId),l.stopIfTrue&&e.writeAttributeString("stopIfTrue","1"),i.J(l.operator)||e.writeAttributeString("operator",h[l.operator])},function(){i.J(l.value1)||e.writeElement("formula",function(){e.writeValue(L(C(l.value1)))}),i.J(l.value2)||e.writeElement("formula",function(){e.writeValue(L(C(l.value2)))})});else{var t=v(l);e.writeElement("cfRule",function(){4===l.ruleType?e.writeAttributeString("type","timePeriod"):8===l.ruleType?(e.writeAttributeString("type","aboveAverage"),"aboveOrEqualToAverage"!==t.type&&"belowOrEqualToAverage"!==t.type||(t.equalAverage=!0),"belowAverage"!==t.type&&"belowOrEqualToAverage"!==t.type||(t.aboveAverage=!1)):2===l.ruleType&&i.J(t.type)?e.writeAttributeString("type","containsText"):e.writeAttributeString("type",t.type),t.dxfId>=0&&e.writeAttributeString("dxfId",t.dxfId),t.priority>=0&&e.writeAttributeString("priority",t.priority),t.stopIfTrue&&e.writeAttributeString("stopIfTrue","1"),i.J(t.aboveAverage)||(t.aboveAverage?e.writeAttributeString("aboveAverage","1"):e.writeAttributeString("aboveAverage","0")),i.J(t.equalAverage)||(t.equalAverage?e.writeAttributeString("equalAverage","1"):e.writeAttributeString("equalAverage","0")),i.J(t.bottom)||(t.bottom?e.writeAttributeString("bottom","1"):e.writeAttributeString("bottom","0")),t.percent&&e.writeAttributeString("percent","1"),i.J(t.operator)||e.writeAttributeString("operator",t.operator),i.J(t.rank)||e.writeAttributeString("rank",t.rank),i.J(t.stdDev)||e.writeAttributeString("stdDev",t.stdDev),i.J(t.text)||e.writeAttributeString("text",i.Util.oa(t.text)),4===l.ruleType&&e.writeAttributeString("timePeriod",t.type)},function(){var r,o;if(!i.J(t.formulas))for(r=function(r){e.writeElement("formula",function(){e.writeValue(L(C(t.formulas[r])))})},o=0;o<t.formulas.length;o++)r(o)})}})},l=0;l<c.length;l++)n(l)}t.writeConditionalFormating=T;function v(e){switch(e.ruleType){case 2:return B(e);case 3:return I(e);case 4:return E(e);case 5:return R(e);case 6:case 7:return F(e);case 8:return k(e)}}function k(e){var t,r,o=0,i="aboveAverage";switch(e.type){case 1:i="belowAverage";break;case 2:i="aboveOrEqualToAverage";break;case 3:i="belowOrEqualToAverage";break;case 4:o=1;break;case 5:i="belowAverage",o=1;break;case 6:o=2;break;case 7:i="belowAverage",o=2;break;case 8:o=3;break;case 9:i="belowAverage",o=3}return t={type:i,ranges:e.ranges,priority:e.priority,stopIfTrue:e.stopIfTrue,stdDev:o,dxfId:e.dxfId},r=P(t),r&&(t.formulas=[r]),t}function F(e){var t,r,o="uniqueValues";return 7===e.ruleType&&(o="duplicateValues"),t={type:o,ranges:e.ranges,priority:e.priority,stopIfTrue:e.stopIfTrue,dxfId:e.dxfId},r=P(t),r&&(t.formulas=[r]),t}function R(e){var t,r,o=void 0;return 1===e.type&&(o=!0),t={type:"top10",ranges:e.ranges,stopIfTrue:e.stopIfTrue,percent:!1,priority:e.priority,rank:e.rank,dxfId:e.dxfId,bottom:o},r=P(t),r&&(t.formulas=[r]),t}p={0:"today",1:"yesterday",2:"tomorrow",3:"last7Days",4:"thisMonth",5:"lastMonth",6:"nextMonth",7:"thisWeek",8:"lastWeek",9:"nextWeek"};function E(e){var t=p[e.type],r={type:t,ranges:e.ranges,priority:e.priority,stopIfTrue:e.stopIfTrue,dxfId:e.dxfId},o=P(r);return o&&(r.formulas=[o]),r}function I(e){return{type:"expression",ranges:e.ranges,priority:e.priority,stopIfTrue:e.stopIfTrue,dxfId:e.dxfId,formulas:[e.formula]}}function L(e){var t=/&/g,r=/</g,o=/>/g;return"string"==typeof e?e.replace(t,"&").replace(r,"<").replace(o,">"):i.J(e)?e:""+e}function D(e){return"string"==typeof e?e.replace(/"/g,'""'):i.J(e)?e:""+e}function B(e){var t,r,o=e.operator,i="containsText",n="contains";return 2===o?(i="beginsWith",n="beginsWith"):3===o?(i="endsWith",n="endsWith"):1===o?(i="notContainsText",n="notContains"):0===o&&(n="containsText"),t={type:i,priority:e.priority,operator:n,text:e.text,stopIfTrue:e.stopIfTrue,dxfId:e.dxfId,ranges:e.ranges},r=P(t),r&&(t.formulas=[r]),t}function P(e){var t,r,o,n;if(!e||!e.ranges)return null;if(t=e.ranges[0],t.row<0||t.col<0)return null;if(r=i.IndexHelper.T(t.col)+(t.row+1),o="",o=t.rowCount===l.ExcelConstants.wb?W("${0}:${1}",i.IndexHelper.T(t.col),i.IndexHelper.T(t.col+t.colCount-1)):t.colCount===l.ExcelConstants.vb?W("${0}:${1}",t.row+1,t.row+t.rowCount):W("${0}${1}:${2}${3}",i.IndexHelper.T(t.col),t.row+1,i.IndexHelper.T(t.col+t.colCount-1),t.row+t.rowCount),n=D(e.text),"top10"===e.type)return e.bottom?e.percent?W("IF(INT(COUNT({0})*{1}%)>0,SMALL({0},INT(COUNT({0})*{1}%)),MIN({0}))>={2}",o,e.rank,r):W("SMALL(({0}),MIN({1},COUNT({0})))>={2}",o,e.rank,r):e.percent?W("IF(INT(COUNT({0})*{1}%)>0,LARGE({0},INT(COUNT({0})*{1}%)),MIN({0}))<={2}",o,e.rank,r):W("LARGE(({0}),MIN({1},COUNT({0})))<={2}",o,e.rank,r);if("containsText"===e.type)return W('NOT(ISERROR(SEARCH("{0}",{1})))',n,r);if("notContainsText"===e.type)return W('ISERROR(SEARCH("{0}",{1}))',n,r);if("beginsWith"===e.type)return W('LEFT({0},{1}) = "{2}"',r,e.text.length,n);if("endsWith"===e.type)return W('RIGHT({0},{1}) = "{2}"',r,e.text.length,n);if("duplicateValues"===e.type)return W("AND(COUNTIF({0},{1})>1,NOT(ISBLANK({1})))",o,r);if("uniqueValues"===e.type)return W("AND(COUNTIF({0},{1})=1,NOT(ISBLANK({1})))",o,r);if("aboveAverage"===e.type||"belowAverage"===e.type||"aboveOrEqualToAverage"===e.type||"belowOrEqualToAverage"===e.type){if("aboveAverage"===e.type&&i.J(e.stdDev))return W("{0}>AVERAGE({1})",r,o);if(!i.J(e.aboveAverage)){if(!(i.J(e.equalAverage)||e.aboveAverage||i.J(e.equalAverage))&&e.equalAverage&&i.J(e.stdDev))return W("{0}<=AVERAGE({1})",r,o);if(!e.aboveAverage&&i.J(e.stdDev))return W("{0}<AVERAGE({1})",r,o)}if(!i.J(e.equalAverage)&&e.equalAverage&&i.J(e.stdDev))return W("{0}>=AVERAGE({1})",r,o);if(!i.J(e.stdDev))return i.J(e.aboveAverage)||e.aboveAverage?W("({0}-AVERAGE({1}))>=STDEVP({1})*({2})",r,o,e.stdDev):W("({0}-AVERAGE({1}))<=STDEVP({1})*(-{2})",r,o,e.stdDev)}return null}function W(e){var t,r,o=[];for(t=1;t<arguments.length;t++)o[t-1]=arguments[t];return r=Array.prototype.slice.call(arguments,1),e.replace(/{(\d+)}/g,function(e,t){return void 0!==r[t]?r[t]:e})}function _(e){return n.ColorHelper.toExcelColor(e)}function N(e){return e.ruleType===d.iconSetRule&&(3===e.iconSetType||2===e.iconSetType||19===e.iconSetType||j(e.iconSetType,e))}function M(e){return e.ruleType===d.rowStateRule||e.ruleType===d.columnStateRule}function O(e){return e.ruleType===d.dataBarRule}function H(e,t,r){return e.ruleType===d.formulaRule&&i.Util.ta(e.formula,t,r)}function G(e,t,r){var o,i,n=0;for(o=0;o<e.length;o++)i=e[o],(O(i)||N(i)||H(i,t,r))&&n++;return 0!==n}t.needWriteConditionalFormatExtension=G;function U(e,t,r){var o=r.xg(t),n=o&&o.rules;n&&0!==n.length&&G(n,t,r.jj())&&e.writeElement("ext",function(){e.writeAttributeString("uri","{78C0D931-6437-407d-A8EE-F0AAD7539E65}"),e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main")},function(){e.writeElement("x14:conditionalFormattings",function(){var o,a;for(o=0;o<n.length;o++)a=n[o],A(a)||(i.J(a.id)&&(a.id=i.Util.va()),O(a)&&z(e,t,a),N(a)&&V(e,t,a),H(a,t,r.jj())&&J(e,t,a))})})}t.writeExtensionConditionalFormats=U,m="x14:conditionalFormatting",g="http://schemas.microsoft.com/office/excel/2006/main",y="x14:cfRule";function J(e,t,r){e.writeElement(m,function(){r.pivot&&e.writeAttributeString("pivot","1"),e.writeAttributeString("xmlns:xm",g)},function(){e.writeElement(y,function(){e.writeAttributeString("type","expression"),e.writeAttributeString("priority",r.priority),e.writeAttributeString("id",r.id)},function(){e.writeElement("xm:f",function(){e.writeValue(i.Util.oa(C(r.formula)))}),s.writeDxf(e,void 0,r.style,"x14:dxf")}),e.writeElement("xm:sqref",function(){e.writeValue(o.getRangeString(r.ranges))})})}function z(e,t,r){e.writeElement(m,function(){r.pivot&&e.writeAttributeString("pivot","1"),e.writeAttributeString("xmlns:xm",g)},function(){e.writeElement(y,function(){e.writeAttributeString("type",d[r.ruleType].replace("Rule","")),e.writeAttributeString("id",r.id)},function(){e.writeElement("x14:dataBar",function(){e.writeAttributeString("minLength","0"),e.writeAttributeString("maxLength","100"),r.showBarOnly&&e.writeAttributeString("showValue","0"),r.showBorder&&e.writeAttributeString("border","1"),r.gradient===!1&&e.writeAttributeString("gradient","0"),r.useNegativeFillColor===!1&&e.writeAttributeString("negativeBarColorSameAsPositive","1"),r.useNegativeBorderColor&&e.writeAttributeString("negativeBarBorderColorSameAsPositive","0"),e.writeAttributeString("direction",1===r.dataBarDirection?"rightToLeft":"leftToRight"),0!==r.axisPosition&&(1===r.axisPosition&&e.writeAttributeString("axisPosition","middle"),2===r.axisPosition&&e.writeAttributeString("axisPosition","none"))},function(){i.J(r.minType)||5===r.minType?e.writeLeafElement("x14:cfvo",function(){e.writeAttributeString("type","autoMin")}):i.J(r.minValue)?e.writeLeafElement("x14:cfvo",function(){e.writeAttributeString("type",u[r.minType])}):e.writeElement("x14:cfvo",function(){e.writeAttributeString("type",u[r.minType])},function(){e.writeElement("xm:f",function(){e.writeValue(i.Util.oa(C(r.minValue)))})}),i.J(r.maxType)||7===r.maxType?e.writeLeafElement("x14:cfvo",function(){e.writeAttributeString("type","autoMax")}):i.J(r.maxValue)?e.writeLeafElement("x14:cfvo",function(){e.writeAttributeString("type",u[r.maxType])}):e.writeElement("x14:cfvo",function(){e.writeAttributeString("type",u[r.maxType])},function(){e.writeElement("xm:f",function(){e.writeValue(i.Util.oa(C(r.maxValue)))})}),r.showBorder&&r.borderColor&&a.writeColor(e,"x14:borderColor",_(r.borderColor)),i.J(r.negativeFillColor)?a.writeColor(e,"x14:negativeFillColor",_("red")):a.writeColor(e,"x14:negativeFillColor",_(r.negativeFillColor)),i.J(r.negativeBorderColor)?a.writeColor(e,"x14:negativeBorderColor",_("black")):a.writeColor(e,"x14:negativeBorderColor",_(r.negativeBorderColor)),2!==r.axisPosition&&a.writeColor(e,"x14:axisColor",_(r.axisColor))})}),e.writeElement("xm:sqref",function(){e.writeValue(o.getRangeString(r.ranges))})})}function V(e,t,r){e.writeElement(m,function(){r.pivot&&e.writeAttributeString("pivot","1"),e.writeAttributeString("xmlns:xm",g)},function(){e.writeElement(y,function(){e.writeAttributeString("type","iconSet"),r.priority&&e.writeAttributeString("priority",r.priority),e.writeAttributeString("id",r.id)},function(){e.writeElement("x14:iconSet",function(){var t,o=r.iconSetType;i.J(o)&&(o=0),e.writeAttributeString("iconSet",f[o]),t=j(o,r),t&&e.writeAttributeString("custom","1"),r.showIconOnly&&e.writeAttributeString("showValue","0"),r.reverseIconOrder&&(t?r.icons.reverse():e.writeAttributeString("reverse","1"))},function(){var t,o,n,a,l;for(e.writeElement("x14:cfvo",function(){e.writeAttributeString("type","percent")},function(){e.writeElement("xm:f",function(){e.writeValue("0")})}),t=function(t){var o=r.iconCriteria[t];e.writeElement("x14:cfvo",function(){e.writeAttributeString("type",b[o.iconValueType]),o.isGreaterThanOrEqualTo===!1&&e.writeAttributeString("gte","0")},function(){e.writeElement("xm:f",function(){e.writeValue(i.Util.oa(C(o.iconValue)))})})},o=0;o<r.iconCriteria.length;o++)t(o);for(n=r.icons,a=function(t){e.writeLeafElement("x14:cfIcon",function(){var r=n[t].iconSetType,o=n[t].iconIndex,i=X(r,o);e.writeAttributeString("iconSet",f[i.iconSetType]),e.writeAttributeString("iconId",i.iconIndex)})},l=0;l<n.length;l++)a(l)})}),e.writeElement("xm:sqref",function(){e.writeValue(o.getRangeString(r.ranges))})})}function j(e,t){var r,o=!0,i=!0,n=!0,a=t.icons;for(r=0;r<a.length;r++)if(a[r].iconSetType!==e){o=!1;break}for(r=0;r<a.length;r++)if(a[r].iconIndex!==r){i=!1;break}for(r=0;r<a.length;r++)if(a[r].iconIndex!==a.length-1-r){n=!1;break}return!o||!i&&!n||!i&&!t.reverseIconOrder}function X(e,t){if(10===e){if(3===t)return{iconSetType:0,iconIndex:2};if(0===t)return{iconSetType:0,iconIndex:0}}else if(15===e){if(4===t)return{iconSetType:0,iconIndex:2};if(0===t)return{iconSetType:0,iconIndex:0};if(2===t)return{iconSetType:0,iconIndex:1};if(3===t)return{iconSetType:10,iconIndex:2};if(1===t)return{iconSetType:10,iconIndex:1}}else if(11===e){if(3===t)return{iconSetType:1,iconIndex:2};if(0===t)return{iconSetType:1,iconIndex:0}}else if(16===e){if(4===t)return{iconSetType:1,iconIndex:2};if(0===t)return{iconSetType:1,iconIndex:0};if(2===t)return{iconSetType:1,iconIndex:1};if(3===t)return{iconSetType:11,iconIndex:2};if(1===t)return{iconSetType:11,iconIndex:1}}else if(14===e){if(3===t)return{iconSetType:5,iconIndex:2};if(2===t)return{iconSetType:5,iconIndex:1};if(1===t)return{iconSetType:5,iconIndex:0}}else if(13===e){if(0===t)return{iconSetType:17,iconIndex:1};if(1===t)return{iconSetType:17,iconIndex:2};if(2===t)return{iconSetType:17,iconIndex:3};if(3===t)return{iconSetType:17,iconIndex:4}}return{iconSetType:e,iconIndex:t}}},"./src/xlsx-io/writer/control-writer.ts":function(e,t,r){"use strict";var o,i;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/datamodel/excel-style.ts"),i=o.UnitHelper.pixelToEMU;function n(e){e.writeElement("o:shapelayout",function(){e.writeAttributeString("v:ext","edit")},function(){e.writeLeafElement("o:idmap",function(){e.writeAttributeString("v:ext","edit"),e.writeAttributeString("data","1")})})}function a(e){e.writeElement("v:shapetype",function(){e.writeAttributeString("id","_x0000_t201"),e.writeAttributeString("coordsize","21600,21600"),e.writeAttributeString("o:spt","201"),e.writeAttributeString("path","m,l,21600r21600,l21600,xe")},function(){e.writeLeafElement("v:stroke",function(){e.writeAttributeString("joinstyle","miter")}),e.writeLeafElement("v:path",function(){e.writeAttributeString("shadowok","f"),e.writeAttributeString("o:extrusionok","f"),e.writeAttributeString("strokeok","f"),e.writeAttributeString("fillok","f"),e.writeAttributeString("o:connecttype","rect")}),e.writeLeafElement("o:lock",function(){e.writeAttributeString("v:ext","edit"),e.writeAttributeString("shapetype","t")})})}function l(e,t){t&&e.writeLeafElement("v:fill",function(){t.stops?0===t.type?c(e,t):1===t.type&&u(e,t):t.src?f(e,t):e.writeAttributeString("opacity",h(t.transparency))})}function s(e){return e=90-e,e%=360,e<0&&(e+=360),e}function c(e,t){var r,o=t.stops,i="100%",n=h(o[0].transparency),a=h(o[o.length-1].transparency);y(o)&&(o=o.slice(0,Math.floor(o.length/2)+1),o.forEach(function(e){return e.position*=2}),i="50%",a=h(o[o.length-1].transparency),r=n,n=a,a=r),e.writeAttributeString("opacity",n),e.writeAttributeString("color2",o[o.length-1].color),e.writeAttributeString("o:opacity2",a),e.writeAttributeString("recolor","t"),e.writeAttributeString("rotate","t"),e.writeAttributeString("angle",s(t.angle)),e.writeAttributeString("colors",o.map(b).join(";")),e.writeAttributeString("method","none"),e.writeAttributeString("focus",i),e.writeAttributeString("type","gradient")}function d(e){var t="0%,0%";switch(e){case 0:t="50%,50%";break;case 2:t="100%,0%";break;case 3:t="0%,100%";break;case 4:t="100%,100%"}return t}function u(e,t){var r=t.stops,o=r[r.length-1],i=h(o.transparency),n=h(r[0].transparency);e.writeAttributeString("opacity",i),e.writeAttributeString("color2",o.color),e.writeAttributeString("o:opacity2",n),e.writeAttributeString("recolor","t"),e.writeAttributeString("rotate","t"),e.writeAttributeString("colors",r.map(b).join(";")),e.writeAttributeString("method","none"),e.writeAttributeString("focusposition",d(t.direction)),e.writeAttributeString("focus","100%"),e.writeAttributeString("type","gradientradial")}function f(e,t){e.writeAttributeString("o:relid",t.rid),e.writeAttributeString("o:title","picture"),e.writeAttributeString("rotate","t"),e.writeAttributeString("type",t.tilePictureAsTexture?"tile":"frame")}function b(e){var t=e.position,r=e.color;return Math.round(100*t)+"% "+r}function h(e){return 1-e}function p(e){return e&&(e.src||e.stops||e.color)}function m(e){return e.stops?e.stops[0].color:e.color}function g(e){return e&&e.color}function y(e){var t,r=function(e,t){return Math.abs(e-t)<1e-4},o=function(e,t){return e.color===t.color&&r(e.transparency,t.transparency)&&r(e.position,1-t.position)},i=e.length,n=Math.floor(i/2);if(i<3||i%2!==1||!r(e[n].position,.5))return!1;for(t=0;t<n;t++)if(!o(e[t],e[i-1-t]))return!1;return!0}function S(e,t){t&&e.writeLeafElement("v:stroke",function(){t.dashStyle&&e.writeAttributeString("dashstyle",t.dashStyle),t.transparency&&e.writeAttributeString("opacity",1-t.transparency),t.lineStyle&&e.writeAttributeString("linestyle",t.lineStyle),t.joinStyle&&e.writeAttributeString("joinstyle",t.joinStyle)})}function C(e,t){var r=t.sp.control,o=JSON.parse(JSON.stringify(r.props)),i=r.disabled,n=function(e){return"CheckBox"===e&&(e="Checkbox"),e};e.writeElement("x:ClientData",function(){e.writeAttributeString("ObjectType",n(o.objectType))},function(){var r,n;e.writeElementString("x:Anchor",T(t)),i&&e.writeLeafElement("x:Disabled");for(r in o)n=o[r],"checked"===r&&(n=A(n)),"objectType"!==r&&("noThreeD"===r&&n?e.writeLeafElement("x:NoThreeD2"):e.writeElementString("x:"+k(r),n))})}function w(e,t){var r=t.sp.control,o=r.spid,n=r.style,a=n.fill,s=n.line;e.writeElement("v:shape",function(){e.writeAttributeString("id",o),e.writeAttributeString("o:spid",o),e.writeAttributeString("type","#_x0000_t201"),e.writeAttributeString("style",v(t)),p(a)?e.writeAttributeString("fillcolor",m(a)):e.writeAttributeString("filled","f"),g(s)?(e.writeAttributeString("strokecolor",s.color),e.writeAttributeString("strokeweight",i(s.width))):e.writeAttributeString("stroked","f"),e.writeAttributeString("o:insetmode","auto")},function(){l(e,a),S(e,s),e.writeLeafElement("o:lock",function(){e.writeAttributeString("v:ext","edit"),e.writeAttributeString("rotation","t"),e.writeAttributeString("text","t")}),C(e,t)})}function x(e,t,r){0!==t.length&&(n(e),a(e),t.forEach(function(t){t.sp.control.spid="_x0000_s"+r,r++,w(e,t)}))}t.writeControlShapes=x;function A(e){var t={Checked:1,Mixed:2};return t[e]}function T(e){var t=e.sp.control.anchorInfo,r=t.startPoint,o=t.endPoint,i=function(e){return[e.col,e.colOffset,e.row,e.rowOffset]};return i(r).concat(i(o)).join(",")}function v(e){var t="position:absolute;margin-left:0;margin-top:0;width:100%pt;height:100%pt",r=e.sp.control.visible;return r||(t+=";visibility:hidden"),t}function k(e){return e.substr(0,1).toUpperCase()+e.substr(1)}},"./src/xlsx-io/writer/ctrlprops-writer.ts":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("./src/xml-io/xml-writer.ts");function i(e){var t=new o.XmlWriter,r=e.sp.control.props;return t.writeDocument(),t.writeLeafElement("formControlPr",function(){t.writeAttributeString("xmlns","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main");for(var e in r)r.hasOwnProperty(e)&&t.writeAttributeString(e,r[e])}),t.getXmlString()}t.writeCtrlProps=i},"./src/xlsx-io/writer/datavalidation-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=o.StringEx.O,n=o.Util.oa,a=null,l={0:"none",1:"whole",2:"decimal",3:"list",4:"date",5:"time",6:"textLength",7:"custom"},s={0:"stop",1:"warning",2:"information"},c={6:"between",7:"notBetween",0:"equal",1:"notEqual",2:"greaterThan",4:"lessThan",3:"greaterThanOrEqual",5:"lessThanOrEqual"};function d(e){return o.isNullOrUndefined(e)||""===e}function u(e){var t,r,o=/\[[^\]]+\]|@/,i=e.split(/\'|\"/g);if(i&&i.length>0)for(t=0;t<i.length;t++)if(r=i[t],t%2===0&&r.match(o))return!0;return!1}t.isTablesheetColumnFormula=u;function f(e){var t=o.isNullOrUndefined(e.ranges)||""===e.ranges||0===e.ranges.length;return e.firstFormula&&(t=t||u(e.firstFormula)),e.secondFormula&&(t=t||u(e.secondFormula)),t}function b(e,t){o.isNullOrUndefined(t.type)||0===t.type||e.writeAttributeString("type",l[t.type]),o.isNullOrUndefined(t.errorStyle)||0===t.errorStyle||e.writeAttributeString("errorStyle",s[t.errorStyle]),o.isNullOrUndefined(t.compareOperator)||6===t.compareOperator||e.writeAttributeString("operator",c[t.compareOperator]),t.allowBlank!==!1&&e.writeAttributeString("allowBlank","1"),t.showPromptBox===!1&&e.writeAttributeString("showDropDown","1"),t.showInputMessage!==!1&&e.writeAttributeString("showInputMessage","1"),t.showErrorBox!==!1&&e.writeAttributeString("showErrorMessage","1"),d(t.errorTitle)||e.writeAttributeString("errorTitle",n(t.errorTitle)),d(t.error)||e.writeAttributeString("error",n(o.Util.xa(t.error))),d(t.promptTitle)||e.writeAttributeString("promptTitle",n(t.promptTitle)),d(t.prompt)||e.writeAttributeString("prompt",n(o.Util.xa(t.prompt)))}function h(e,t,r){var a=r.Jj(t),l=[];r.On||(r.On=[]),a.length>0&&a.forEach(function(e){e.external?r.On.push(e):l.push(e)}),l.length>0&&e.writeElement("dataValidations",function(){e.writeAttributeString("count",l.length)},function(){l.forEach(function(t){o.isNullOrUndefined(t)||f(t)||e.writeElement("dataValidation",function(){b(e,t),e.writeAttributeString("sqref",t.ranges)},function(){i(t.firstFormula)||e.writeElementString("formula1",n(o.addXLFNPrefix(t.firstFormula))),i(t.secondFormula)||e.writeElementString("formula2",n(o.addXLFNPrefix(t.secondFormula)))})})})}t.writeDataValidations=h;function p(e,t){var r=t.On;r&&0===r.length||(e.writeElement("ext",function(){e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"),e.writeAttributeString("uri","{CCE6A557-97BC-4b89-ADB6-D9C93CAAB3DF}")},function(){e.writeElement("x14:dataValidations",function(){e.writeAttributeString("xmlns:xm","http://schemas.microsoft.com/office/excel/2006/main"),e.writeAttributeString("count",r.length)},function(){r.forEach(function(t){e.writeElement("x14:dataValidation",function(){b(e,t)},function(){i(t.firstFormula)||e.writeElement("x14:formula1",function(){e.writeElementString("xm:f",n(o.addXLFNPrefix(t.firstFormula)))}),i(t.secondFormula)||e.writeElement("x14:formula2",function(){e.writeElementString("xm:f",n(o.addXLFNPrefix(t.secondFormula)))}),e.writeElementString("xm:sqref",t.ranges)})})})}),t.On=a)}t.writeExtensionDataValidations=p},"./src/xlsx-io/writer/docPropsAppWriter.ts":function(e,t,r){"use strict";var o,i;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts");function n(e){var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("Properties",function(){t.writeAttributeString("xmlns",i.XFileConstants.te),t.writeAttributeString("xmlns:vt",i.XFileConstants.ue)},function(){var r,o=e.Ne.docProps.docPropsApp;for(r in o)if(o.hasOwnProperty(r))switch(r){case"HeadingPairs":a(t,o);break;case"TitlesOfParts":l(t,o);break;default:s(r,t,o)}}),t.getXmlString()}t.writeDocPropsApp=n;function a(e,t){e.writeElement("HeadingPairs",function(){},function(){e.writeElement("vt:vector",function(){e.writeAttributeString("size",t.HeadingPairs.size),e.writeAttributeString("baseType",t.HeadingPairs.baseType)},function(){var r,o=t.HeadingPairs.workbookInfoArray,i=function(t){e.writeElement("vt:variant",function(){},function(){e.writeElement(o[t].elementType,function(){},function(){e.writeValue(o[t].value)})})};for(r=0;r<o.length;r++)i(r)})})}function l(e,t){e.writeElement("TitlesOfParts",function(){},function(){e.writeElement("vt:vector",function(){e.writeAttributeString("size",t.TitlesOfParts.size),e.writeAttributeString("baseType",t.TitlesOfParts.baseType)},function(){var r,o=t.TitlesOfParts.sheetsNameArray,i=function(t){e.writeElement("vt:lpstr",function(){},function(){e.writeValue(o[t])})};for(r=0;r<o.length;r++)i(r)})})}function s(e,t,r){var o=e.slice(0,1).toUpperCase()+e.slice(1);t.writeElement(o,function(){},function(){t.writeValue(r[e])})}},"./src/xlsx-io/writer/docPropsCoreWriter.ts":function(e,t,r){"use strict";var o,i;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts");function n(e){var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("cp:coreProperties",function(){t.writeAttributeString("xmlns:cp",i.XFileConstants.ne),t.writeAttributeString("xmlns:dc",i.XFileConstants.oe),t.writeAttributeString("xmlns:dcterms",i.XFileConstants.pe),t.writeAttributeString("xmlns:dcmitype",i.XFileConstants.qe),t.writeAttributeString("xmlns:xsi",i.XFileConstants.re)},function(){var r,o=e.Ne.docProps.docPropsCore,i=function(e){if(o.hasOwnProperty(e))switch(e){case"title":t.writeElement("dc:title",function(){},function(){t.writeValue(o[e])});break;case"subject":t.writeElement("dc:subject",function(){},function(){t.writeValue(o[e])});break;case"creator":t.writeElement("dc:creator",function(){},function(){t.writeValue(o[e])});break;case"keywords":t.writeElement("cp:keywords",function(){},function(){t.writeValue(o[e])});break;case"description":t.writeElement("dc:description",function(){},function(){t.writeValue(o[e])});break;case"lastModifiedBy":t.writeElement("cp:lastModifiedBy",function(){},function(){t.writeValue(o[e])});break;case"created":t.writeElement("dcterms:created",function(){t.writeAttributeString("xsi:type","dcterms:W3CDTF")},function(){t.writeValue(o[e])});break;case"modified":t.writeElement("dcterms:modified",function(){t.writeAttributeString("xsi:type","dcterms:W3CDTF")},function(){t.writeValue(o[e])});break;case"lastPrinted":t.writeElement("cp:lastPrinted",function(){},function(){t.writeValue(o[e])});break;case"category":t.writeElement("cp:category",function(){},function(){t.writeValue(o[e])});break;case"contentStatus":t.writeElement("cp:contentStatus",function(){},function(){t.writeValue(o[e])});break;case"language":t.writeElement("dc:language",function(){},function(){t.writeValue(o[e])});break;case"version":t.writeElement("cp:version",function(){},function(){t.writeValue(o[e])});break;case"revision":t.writeElement("cp:revision",function(){},function(){t.writeValue(o[e])})}};for(r in o)i(r)}),t.getXmlString()}t.writeDocPropsCore=n},"./src/xlsx-io/writer/docPropsCustomWriter.ts":function(e,t,r){"use strict";var o,i;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts");function n(e){var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("Properties",function(){t.writeAttributeString("xmlns",i.XFileConstants.we),t.writeAttributeString("xmlns:vt",i.XFileConstants.xe)},function(){var r,o=e.Ne.docProps.docPropsCustom,i=function(e){var r=o[e];t.writeElement("property",function(){for(var e in r)"propertyItemChildElement"!==e&&t.writeAttributeString(e,r[e])},function(){var e,o=r.propertyItemChildElement,i=function(e){o.hasOwnProperty(e)&&t.writeElement(e,function(){},function(){t.writeValue(o[e])})};for(e in o)i(e)})};for(r=0;r<o.length;r++)i(r)}),t.getXmlString()}t.writeDocPropsCustom=n},"./src/xlsx-io/writer/drawing-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/datamodel/excel-style.ts"),a=r("./src/xlsx-io/writer/slicer-writer.ts"),l=r("./src/xlsx-io/common/color-writer.ts"),s=r("./src/xlsx-io/writer/chart-writer.ts"),c=r("./src/datamodel/chart-model.ts");function d(){return i.XFileConstants}function u(e,t,r){l.writeColorScheme(e,t,r)}function f(e){return n.UnitHelper.pixelToEMU(e)}function b(e,t){e.forEach(function(e){t.push((e.nvSpPr||e.nvCxnSpPr||e.nvGrpSpPr||e.nvPicPr||e.nvGraphicFramePr).cNvPr.id),e.nvGrpSpPr&&b(e.sp,t)})}function h(e){var t=[];return e.forEach(function(e){if(e.sp)t.push(e.sp.nvSpPr.cNvPr.id);else if(e.cxnSp)t.push(e.cxnSp.nvCxnSpPr.cNvPr.id);else if(e.pic)t.push(e.pic.nvPicPr.cNvPr.id);else if(e.graphicFrame)t.push(e.graphicFrame.nvGraphicFramePr.cNvPr.id);else if(e.grpSp){var r=e.grpSp;t.push(r.nvGrpSpPr.cNvPr.id),b(r.sp,t)}}),Math.max.apply(null,t)}function p(e,t,r){var i=new o.XmlWriter;return i.k=1,i.writeDocument(!0),i.currentFile=r,i.writeElement("xdr:wsDr",function(){i.writeAttributeString("xmlns:xdr",d().Kd),i.writeAttributeString("xmlns:a",d().Ld)},function(){var e,r,o,n,l,s=t.shapes;s&&s.length&&(e=!0,r=h(s),i.k=r+1),o=t.pictures,o&&o.length&&S(i,o),n=t.slicers,n&&n.length&&a.writeSlicerDrawings(i,n,w),l=t.charts,l&&l.length&&g(i,l),e&&y(i,s)}),i.getXmlString()}t.writeDrawing=p;function m(e){var t={AnchorBaseList:[]};return e.forEach(function(e){e.graphicFrame||(e.graphicFrame={}),e.graphicFrame.graphic={graphicData:{chart:{id:e.chartId,typeName:"chartSpace"}}},t.AnchorBaseList.push(e)}),t}function g(e,t){var r=m(t);r.AnchorBaseList.forEach(function(t){1===t.anchorType?s.DrawingWriter.WriteCT_OneCellAnchor(e,"xdr","oneCellAnchor",t):0===t.anchorType?s.DrawingWriter.WriteCT_TwoCellAnchor(e,"xdr","twoCellAnchor",t):2===t.anchorType&&s.DrawingWriter.WriteCT_AbsoluteAnchor(e,"xdr","absoluteAnchor",t)})}function y(e,t){var r=function(e){return e.sp&&e.sp.control},o=function(e){return e.graphicFrame&&e.graphicFrame.graphic.graphicData.slicer},i=function(e){return e.graphicFrame&&e.graphicFrame.graphic.graphicData.timeslicer};t.forEach(function(t){o(t)||i(t)||(r(t)?v(e,t):t.pic&&t.pic.cameraTool===!0?(t.AlternateContent=s.DrawingWriter.mc,s.DrawingWriter.WriteCT_AlternateContent(e,"mc","AlternateContent",t)):1===t.anchorType?s.DrawingWriter.WriteCT_OneCellAnchor(e,"xdr","oneCellAnchor",t):0===t.anchorType?s.DrawingWriter.WriteCT_TwoCellAnchor(e,"xdr","twoCellAnchor",t):2===t.anchorType&&s.DrawingWriter.WriteCT_AbsoluteAnchor(e,"xdr","absoluteAnchor",t))})}function S(e,t){t.forEach(function(t){C(e,t)})}function C(e,t){var r=t&&t.twoCellAnchor;r&&e.writeElement("xdr:twoCellAnchor",function(){var t=r.editAs;t&&e.writeAttributeString("editAs",c.Charts.ST_EditAs[t])},function(){w(e,"xdr:from",r.startPoint),w(e,"xdr:to",r.endPoint),x(e,t),T(e,t)})}function w(e,t,r){e.writeElement(t,function(){e.writeElementString("xdr:col",r.col),e.writeElementString("xdr:colOff",f(r.colOffset)),e.writeElementString("xdr:row",r.row),e.writeElementString("xdr:rowOff",f(r.rowOffset))})}function x(e,t){e.writeElement("xdr:pic",function(){e.writeElement("xdr:nvPicPr",function(){
|
52
|
-
e.writeLeafElement("xdr:cNvPr",function(){e.writeAttributeString("id",e.k),e.k++,e.writeAttributeString("name",t.name),t.descr&&e.writeAttributeString("descr",t.descr),t.hidden&&e.writeAttributeString("hidden","1")}),e.writeElement("xdr:cNvPicPr",function(){e.writeLeafElement("a:picLocks",function(){e.writeAttributeString("noChangeAspect","1")})})}),e.writeElement("xdr:blipFill",function(){"svg+xml"===t.imageType?e.writeElement("a:blip",function(){e.writeAttributeString("xmlns:r",d().Ud)},function(){e.writeElement("a:extLst",function(){e.writeElement("a:ext",function(){e.writeAttributeString("uri","{96DAC541-7B7A-43D3-8B79-37D633B846F1}")},function(){e.writeLeafElement("asvg:svgBlip",function(){e.writeAttributeString("xmlns:asvg",d().Zd),e.writeAttributeString("r:embed",t.rid)})})})}):e.writeElement("a:blip",function(){e.writeAttributeString("xmlns:r",d().Ud),e.writeAttributeString("r:embed",t.rid),e.writeAttributeString("cstate","print")},function(){e.writeElement("a:extLst",function(){e.writeElement("a:ext",function(){e.writeAttributeString("uri","{28A0092B-C50C-407E-A947-70E740481C1C}")},function(){e.writeLeafElement("a14:useLocalDpi",function(){e.writeAttributeString("xmlns:a14",d().Yd),e.writeAttributeString("val","0")})})})});var r=t.srcRect;r&&s.DrawingWriter.WriteCT_RelativeRect(e,"a","srcRect",r),e.writeElement("a:stretch",function(){r||e.writeLeafElement("a:fillRect")})}),A(e,t)})}function A(e,t){e.writeElement("xdr:spPr",function(){var r,o,i,n,a,l;e.writeElement("a:xfrm",function(){t.rot&&e.writeAttributeString("rot",s.DrawingWriter.getRotationData(t.rot))},function(){e.writeLeafElement("a:off",function(){e.writeAttributeString("x","0"),e.writeAttributeString("y","0")}),e.writeLeafElement("a:ext",function(){e.writeAttributeString("cx","0"),e.writeAttributeString("cy","0")})}),e.writeElement("a:prstGeom",function(){e.writeAttributeString("prst","rect")},function(){e.writeLeafElement("a:avLst")}),r=t.fillColor,r&&u(e,"a:solidFill",r),o=t.lineBorder,i=o.width,n=o.color,a=o.style,l=o.noFill,e.writeElement("a:ln",function(){null!==i&&void 0!==i&&e.writeAttributeString("w",f(i)),"dbl"===a&&e.writeAttributeString("cmpd","dbl")},function(){l?e.writeLeafElement("a:noFill"):u(e,"a:solidFill",n),"dbl"!==a&&e.writeLeafElement("a:prstDash",function(){e.writeAttributeString("val",a)})})})}function T(e,t){e.writeLeafElement("xdr:clientData",function(){t.locked===!1&&e.writeAttributeString("fLocksWithSheet","0")})}function v(e,t){var r,o,i=t.sp.nvSpPr.cNvPr.extLst||{};i.ext=i.ext||[],i.ext.push({uri:"{63B3BB69-23CF-44E3-9099-C40C66FF867C}",compatExt:{spid:t.sp.control.spid}}),t.sp.nvSpPr.cNvPr.extLst=i,r={a14:s.DrawingWriter.a14,Requires:"a14",twoCellAnchor:t},o={AlternateContent:s.DrawingWriter.mc,Choice:r,FallBack:!0},s.DrawingWriter.WriteCT_AlternateContent(e,"mc","AlternateContent",o)}},"./src/xlsx-io/writer/externalLink-writer.ts":function(e,t,r){"use strict";var o,i,n;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts");function a(e,t){var r=new o.XmlWriter;return r.writeDocument(),r.writeElement("externalLink",function(){r.writeAttributeString("xmlns",i.XFileConstants.Hd),r.writeAttributeString("xmlns:mc",i.XFileConstants.Jd),r.writeAttributeString("xmlns:x14",i.XFileConstants.$d),r.writeAttributeString("mc:Ignorable","x14")},function(){r.writeElement("externalBook",function(){r.writeAttributeString("xmlns:r",i.XFileConstants.Ud),r.writeAttributeString("r:id","rId1")},function(){r.writeElement("sheetNames",void 0,function(){l(r,t.sheetNames)}),t.data&&r.writeElement("sheetDataSet",void 0,function(){var e,o=function(e){var o=t.data[t.sheetNames[e]];o&&r.writeElement("sheetData",function(){r.writeAttributeString("sheetId",e),o.isNew&&r.writeAttributeString("refreshError",1)},function(){s(r,t.data[t.sheetNames[e]])})};for(e=0;e<t.sheetNames.length;e++)o(e)})})}),r.getXmlString()}t.writeExternalLink=a;function l(e,t){t&&t.forEach(function(t){e.writeElement("sheetName",function(){e.writeAttributeString("val",t.replace(/\&/g,"&").replace(/\"/g,""").replace(/\>/g,">").replace(/\</g,"<"))},function(){})})}function s(e,t){var r,o=function(r){var o,i;if(Object.prototype.hasOwnProperty.call(t,r)){if(o=parseInt(r,10)+1,isNaN(o))return"continue";i=t[r],e.writeElement("row",function(){e.writeAttributeString("r",""+o)},function(){var t,r=function(t){var r,a;Object.prototype.hasOwnProperty.call(i,t)&&(r=i[t],"string"==typeof r?a="str":"boolean"==typeof r?(a="b",r=r?"1":"0"):r&&r._code&&(a="e",r=r._calcError||r._error,"#SPILL!"!==r&&"#CALC!"!==r||(r="#VALUE!")),e.writeElement("cell",function(){e.writeAttributeString("r",n.IndexHelper.T(parseInt(t,10))+o),a&&e.writeAttributeString("t",a)},function(){e.writeElement("v",function(){},function(){e.writeValue(r)})}))};for(t in i)r(t)})}};for(r in t)o(r)}},"./src/xlsx-io/writer/metadata-writer.ts":function(e,t,r){"use strict";var o,i;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/excel-types.ts");function n(e,t,r){r&&e.push('\txmlns:xlrd="'+o.XFileConstants.he+'"'),t&&e.push('\txmlns:xda="'+o.XFileConstants.ge+'">')}i='minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1"';function a(e,t,r){var o=(t?1:0)+(r?1:0);e.push('\t<metadataTypes count="'+o+'">'),t&&e.push('\t\t<metadataType name="XLDAPR" '+i+' cellMeta="1"/>'),r&&e.push('\t\t<metadataType name="XLRICHVALUE" '+i+"/>"),e.push("\t</metadataTypes>")}function l(e,t,r,o){if(t&&e.push('\t<futureMetadata name="XLDAPR" count="1"> <bk> <extLst> <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}"> <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/> </ext> </extLst> </bk> </futureMetadata>'),r){var i='<futureMetadata name="XLRICHVALUE" count="'+(o?2:1)+'"> <bk> <extLst> <ext uri="{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}"> <xlrd:rvb i="0"/> </ext> </extLst> </bk>';o&&(i+=' <bk> <extLst> <ext uri="{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}"> <xlrd:rvb i="1"/> </ext> </extLst> </bk>'),e.push("\t"+i+" </futureMetadata>")}}function s(e){var t=[],r=e>0,o=e>1,i=e>2;return t.push('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'),t.push("<metadata"),t.push('\txmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"'),n(t,r,o),a(t,r,o),l(t,r,o,i),r&&t.push('\t<cellMetadata count="1"> <bk> <rc t="1" v="0"/> </bk> </cellMetadata>'),o&&t.push('\t<valueMetadata count="'+(i?2:1)+'"> <bk> <rc t="2" v="0"/> </bk>'+(i?'<bk> <rc t="2" v="1"/> </bk>':"")+" </valueMetadata>"),t.push("</metadata>"),t.join("\r\n")}t.getMetadataContent=s},"./src/xlsx-io/writer/pivot-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/datamodel/datetime-helper.ts"),l=r("./src/xlsx-io/writer/autofilter-writer.ts"),t.captionCompareTypeExcel=[["captionEqual","captionNotEqual","captionBeginsWith","captionNotBeginsWith","captionEndsWith","captionNotEndsWith","captionContains","captionNotContains","captionGreaterThan","captionGreaterThanOrEqual","captionLessThan","captionLessThanOrEqual","captionBetween","captionNotBetween"],["dateEqual","dateNotEqual","dateOlderThan","dateOlderThanOrEqual","dateNewerThan","dateNewerThanOrEqual","dateBetween","dateNotBetween","today","yesterday","tomorrow",void 0,"thisMonth","lastMonth","nextMonth","thisWeek","lastWeek","nextWeek","nextQuarter","thisQuarter","lastQuarter","nextYear","thisYear","lastYear","Q1","Q2","Q3","Q4","M1","M2","M3","M4","M5","M6","M7","M8","M9","M10","M11","M12","yearToDate"],["valueEqual","valueNotEqual","valueGreaterThan","valueGreaterThanOrEqual","valueLessThan","valueLessThanOrEqual","valueBetween","valueNotBetween"],["count","percent","sum"]],s=o.Util.oa,c=o.Util.Ba,d=o.Util.xa,u="mc:Ignorable";function f(e){var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("pivotCacheDefinition",function(){t.writeAttributeString("xmlns",n.XFileConstants.Hd),t.writeAttributeString("xmlns:r",n.XFileConstants.Ud),t.writeAttributeString("xmlns:mc",n.XFileConstants.Jd),t.writeAttributeString(u,n.XFileConstants.Qd),t.writeAttributeString("xmlns:xr",n.XFileConstants.me),t.writeAttributeString("r:id","rId1"),e.saveData===!1&&t.writeAttributeString("saveData","0"),o.isNullOrUndefined(e.refreshedBy)||t.writeAttributeString("refreshedBy",e.refreshedBy),o.isNullOrUndefined(e.refreshedDate)||t.writeAttributeString("refreshedDate",a.DateTimeHelper.ig(e.refreshedDate)),e.backgroundQuery&&t.writeAttributeString("backgroundQuery","1"),o.isNullOrUndefined(e.createdVersion)?t.writeAttributeString("createdVersion","7"):t.writeAttributeString("createdVersion",e.createdVersion),o.isNullOrUndefined(e.refreshedVersion)?t.writeAttributeString("refreshedVersion","7"):t.writeAttributeString("refreshedVersion",e.refreshedVersion),e.enableRefresh===!1&&t.writeAttributeString("enableRefresh","0"),e.invalid&&t.writeAttributeString("invalid","1"),e.minRefreshableVersion>0&&e.minRefreshableVersion<=e.createdVersion&&t.writeAttributeString("minRefreshableVersion",e.minRefreshableVersion),e.missingItemsLimit>0&&t.writeAttributeString("missingItemsLimit",e.missingItemsLimit),e.optimizeMemory&&t.writeAttributeString("optimizeMemory","1"),o.isNullOrUndefined(e.recordCount)||t.writeAttributeString("recordCount",e.recordCount),o.isNullOrUndefined(e.refreshOnLoad)||t.writeAttributeString("refreshOnLoad","1"),e.supportSubquery&&t.writeAttributeString("supportSubquery","1"),e.supportAdvancedDrill&&t.writeAttributeString("supportAdvancedDrill","1"),e.tupleCache&&t.writeAttributeString("tupleCache","1"),e.upgradeOnRefresh&&t.writeAttributeString("upgradeOnRefresh","1")},function(){h(t,e),p(t,e.fields),e.cacheHierarchies&&e.cacheHierarchies.length>0&&A(t,e),e.KPIs&&e.KPIs.length>0&&E(t,e),o.isNullOrUndefined(e.pivotTupleCache)||L(t,e.pivotTupleCache),e.calculatedItems&&e.calculatedItems.length>0&&_(t,e),e.calculatedMembers&&e.calculatedMembers.length>0&&M(t,e),e.dimensions&&e.dimensions.length>0&&H(t,e),e.measureGroups&&e.measureGroups.length>0&&U(t,e),e.measureDimensionMaps&&e.measureDimensionMaps.length>0&&z(t,e),b(t,e.pivotCacheId)}),t.getXmlString()}t.writePivotCacheDefinition=f;function b(e,t){e.writeElement("extLst",function(){},function(){e.writeElement("ext",function(){e.writeAttributeString("uri","{725AE2AE-9491-48be-B2B4-4EB974FC3084}"),e.writeAttributeString("xmlns:x14",n.XFileConstants.$d)},function(){e.writeLeafElement("x14:pivotCacheDefinition",function(){e.writeAttributeString("pivotCacheId",t+"")},function(){})})})}function h(e,t){e.writeElement("cacheSource",function(){e.writeAttributeString("type",t.sourceType)},function(){"worksheet"===t.sourceType&&e.writeLeafElement("worksheetSource",function(){t.sourceName&&e.writeAttributeString("name",t.sourceName),t.ref&&e.writeAttributeString("ref",t.ref),t.sheet&&e.writeAttributeString("sheet",t.sheet)})})}function p(e,t){e.writeElement("cacheFields",function(){e.writeAttributeString("count",t.length)},function(){var r,o;for(r=0;r<t.length;r++)o=t[r],m(e,o)})}function m(e,t){e.writeElement("cacheField",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),o.isNullOrUndefined(t.formula)||e.writeAttributeString("formula",s(t.formula)),o.isNullOrUndefined(t.numFmtId)||e.writeAttributeString("numFmtId",t.numFmtId),t.databaseField===!1&&e.writeAttributeString("databaseField","0"),t.hierarchy>0&&e.writeAttributeString("hierarchy",t.hierarchy),t.level>0&&e.writeAttributeString("level",t.level),t.mappingCount>0&&e.writeAttributeString("mappingCount",t.mappingCount),o.isNullOrUndefined(t.memberPropertyField)||e.writeAttributeString("memberPropertyField","1"),o.isNullOrUndefined(t.propertyName)||e.writeAttributeString("propertyName",t.propertyName),o.isNullOrUndefined(t.serverField)||e.writeAttributeString("serverField","1"),t.sqlType>0&&e.writeAttributeString("sqlType",t.sqlType),t.uniqueList===!1&&e.writeAttributeString("uniqueList","0")},function(){t.databaseField!==!1&&(t.entities&&t.entities.length>0?e.writeElement("sharedItems",function(){g(e,t)},function(){y(e,t)}):e.writeLeafElement("sharedItems",function(){g(e,t)})),x(e,t.fieldGroup)})}function g(e,t){t.containsSemiMixedTypes===!1&&e.writeAttributeString("containsSemiMixedTypes","0"),t.containsNonDate===!1&&e.writeAttributeString("containsNonDate","0"),t.containsDate&&e.writeAttributeString("containsDate","1"),t.containsString===!1&&e.writeAttributeString("containsString","0"),t.containsBlank&&e.writeAttributeString("containsBlank","1"),t.containsMixedTypes&&e.writeAttributeString("containsMixedTypes","1"),t.containsNumber&&!t.containsDate&&e.writeAttributeString("containsNumber","1"),t.containsInteger&&!t.containsDate&&e.writeAttributeString("containsInteger","1"),t.longText&&e.writeAttributeString("longText","1"),t.containsDate?(e.writeAttributeString("minDate",c(new Date(t.minDate))),e.writeAttributeString("maxDate",c(new Date(t.maxDate)))):(t.containsNumber||t.containsInteger)&&(e.writeAttributeString("minValue",""+t.minValue),e.writeAttributeString("maxValue",""+t.maxValue)),t.isShared&&(e.writeAttributeString("minDate",c(new Date(t.minDate))),e.writeAttributeString("maxDate",c(new Date(t.maxDate)))),t.entities&&t.entities.length>0&&e.writeAttributeString("count",t.entities.length)}function y(e,t){var r,o;for(r=0;r<t.entities.length;r++)o=t.entities[r],C(e,o)}function S(e,t){var r=null;o.isNullOrUndefined(t.value)||(r=t.value,w(e,t,r))}function C(e,t){var r=null;switch(t.type){case n.PivotSharedItemType.B:e.writeLeafElement("b",function(){o.isNullOrUndefined(t.value)||(r=t.value?"1":"0",w(e,t,r))});break;case n.PivotSharedItemType.D:e.writeLeafElement("d",function(){o.isNullOrUndefined(t.value)||(r=c(new Date(t.value)),w(e,t,r))});break;case n.PivotSharedItemType.E:e.writeLeafElement("e",function(){S(e,t)});break;case n.PivotSharedItemType.M:e.writeLeafElement("m");break;case n.PivotSharedItemType.N:e.writeLeafElement("n",function(){S(e,t)});break;case n.PivotSharedItemType.S:e.writeLeafElement("s",function(){S(e,t)});break;case n.PivotSharedItemType.X:e.writeLeafElement("x",function(){S(e,t)})}}function w(e,t,r){o.isNullOrUndefined(r)||e.writeAttributeString("v",s(r)),o.isNullOrUndefined(t.caption)||e.writeAttributeString("c",t.caption),t.propertyCount>0&&e.writeAttributeString("cp",t.propertyCount),t.isCalculatedItem&&e.writeAttributeString("f","1"),o.isNullOrUndefined(t.isUnusedItem)||e.writeAttributeString("u","1"),o.isNullOrUndefined(t.isBold)||e.writeAttributeString("b","1"),o.isNullOrUndefined(t.backgroundColor)||e.writeAttributeString("bc",t.backgroundColor),o.isNullOrUndefined(t.foregroundColor)||e.writeAttributeString("fc",t.foregroundColor),o.isNullOrUndefined(t.isItalic)||e.writeAttributeString("i","1"),t.formatIndex>0&&e.writeAttributeString("in",t.formatIndex),o.isNullOrUndefined(t.isStrikethrough)||e.writeAttributeString("st","1"),o.isNullOrUndefined(t.isUnderline)||e.writeAttributeString("un","1")}function x(e,t){o.isNullOrUndefined(t)||e.writeElement("fieldGroup",function(){t.par>=0&&e.writeAttributeString("par",t.par),t.base>=0&&e.writeAttributeString("base",t.base)},function(){var r,i;t.hasRangeGroup&&e.writeLeafElement("rangePr",function(){t.autoStart===!1&&e.writeAttributeString("autoStart","0"),t.autoEnd===!1&&e.writeAttributeString("autoEnd","0"),o.isNullOrUndefined(t.groupInterval)||e.writeAttributeString("groupInterval",t.groupInterval),o.isNullOrUndefined(t.groupBy)||e.writeAttributeString("groupBy",t.groupBy),o.isNullOrUndefined(t.startNum)||e.writeAttributeString("startNum",t.startNum),o.isNullOrUndefined(t.endNum)||e.writeAttributeString("endNum",t.endNum),o.isNullOrUndefined(t.startDate)||e.writeAttributeString("startDate",c(new Date(t.startDate))),o.isNullOrUndefined(t.endDate)||e.writeAttributeString("endDate",c(new Date(t.endDate)))}),r=t.discreteGroup,r&&r.length>0&&e.writeElement("discretePr",function(){e.writeAttributeString("count",r.length)},function(){var t,o=function(t){e.writeLeafElement("x",function(){e.writeAttributeString("v",r[t])})};for(t=0;t<r.length;t++)o(t)}),i=t.groupItems,i&&i.length>0&&e.writeElement("groupItems",function(){e.writeAttributeString("count",i.length)},function(){for(var t=0;t<i.length;t++)C(e,i[t])})})}function A(e,t){t.cacheHierarchies&&t.cacheHierarchies.length>0&&e.writeElement("cacheHierarchies",function(){e.writeAttributeString("count",t.cacheHierarchies.length)},function(){for(var r=0;r<t.cacheHierarchies.length;r++)T(e,t.cacheHierarchies[r])})}function T(e,t){e.writeElement("cacheHierarchy",function(){o.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),t.measure&&e.writeAttributeString("measure","1"),t.set&&e.writeAttributeString("set","1"),t.parentSet>=0&&e.writeAttributeString("parentSet",t.parentSet),t.iconSet>0&&e.writeAttributeString("iconSet",t.iconSet),t.attribute&&e.writeAttributeString("attribute","1"),t.time&&e.writeAttributeString("time","1"),t.keyAttribute&&e.writeAttributeString("keyAttribute","1"),o.isNullOrUndefined(t.defaultMemberUniqueName)||e.writeAttributeString("defaultMemberUniqueName",t.defaultMemberUniqueName),o.isNullOrUndefined(t.allUniqueName)||e.writeAttributeString("allUniqueName",t.allUniqueName),o.isNullOrUndefined(t.allCaption)||e.writeAttributeString("allCaption",t.allCaption),o.isNullOrUndefined(t.dimensionUniqueName)||e.writeAttributeString("dimensionUniqueName",t.dimensionUniqueName),o.isNullOrUndefined(t.displayFolder)||e.writeAttributeString("displayFolder",t.displayFolder),o.isNullOrUndefined(t.measureGroup)||e.writeAttributeString("measureGroup",t.measureGroup),t.measures&&e.writeAttributeString("measures","1"),t.count>=0&&e.writeAttributeString("count",t.count),t.oneField&&e.writeAttributeString("oneField","1"),t.memberValueDatatype>0&&e.writeAttributeString("memberValueDatatype",t.memberValueDatatype),t.unbalanced||e.writeAttributeString("unbalanced","0"),t.unbalancedGroup||e.writeAttributeString("unbalancedGroup","0"),t.hidden&&e.writeAttributeString("hidden","1")},function(){t.fieldsUsage.length>0&&e.writeElement("fieldsUsage",function(){e.writeAttributeString("count",t.fieldsUsage.length)},function(){for(var r=0;r<t.fieldsUsage.length;r++)v(e,t.fieldsUsage[r])}),t.groupLevels.length>0&&e.writeElement("groupLevels",function(){e.writeAttributeString("count",t.groupLevels.length)},function(){for(var r=0;r<t.groupLevels.length;r++)k(e,t.groupLevels[r])})})}function v(e,t){e.writeElement("fieldUsage",function(){e.writeAttributeString("x",t)})}function k(e,t){e.writeElement("groupLevel",function(){o.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),t.user&&e.writeAttributeString("user","1"),t.customRollUp&&e.writeAttributeString("customRollUp","1")},function(){t.groups.length>0&&e.writeElement("groups",function(){e.writeAttributeString("count",t.groups.length)},function(){var r,o;for(r=0;r<t.groups.length;r++)o=t.groups[r],F(e,o)})})}function F(e,t){e.writeElement("group",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.Name))),o.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),o.isNullOrUndefined(t.uniqueParent)||e.writeAttributeString("uniqueParent",t.uniqueParent),t.id>0&&e.writeAttributeString("id",t.id)},function(){t.groupMembers.length>0&&e.writeElement("groupMembers",function(){e.writeAttributeString("count",t.groupMembers.length)},function(){for(var r=0;r<t.groupMembers.length;r++)R(e,t.groupMembers[r])})})}function R(e,t){e.writeLeafElement("groupMember",function(){o.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),t.group&&e.writeAttributeString("group",1)})}function E(e,t){t.KPIs&&t.KPIs.length>0&&e.writeElement("kpis",function(){e.writeAttributeString("count",t.KPIs.length)},function(){var r,o;for(r=0;r<t.KPIs.length;r++)o=t.KPIs[r],I(e,o)})}function I(e,t){e.writeLeafElement("kpi",function(){o.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),o.isNullOrUndefined(t.displayFolder)||e.writeAttributeString("displayFolder",t.displayFolder),o.isNullOrUndefined(t.measureGroup)||e.writeAttributeString("measureGroup",t.measureGroup),o.isNullOrUndefined(t.parent)||e.writeAttributeString("parent",t.parent),o.isNullOrUndefined(t.value)||e.writeAttributeString("value",t.value),o.isNullOrUndefined(t.goal)||e.writeAttributeString("goal",t.goal),o.isNullOrUndefined(t.status)||e.writeAttributeString("status",t.status),o.isNullOrUndefined(t.trend)||e.writeAttributeString("trend",t.trend),o.isNullOrUndefined(t.weight)||e.writeAttributeString("weight",t.weight),o.isNullOrUndefined(t.time)||e.writeAttributeString("time",t.time)})}function L(e,t){e.writeElement("tupleCache",function(){},function(){var r;t.entries&&t.entries.length>0&&e.writeElement("entries",function(){e.writeAttributeString("count",t.entries.length)},function(){for(r=0;r<t.entries.length;r++)e.writePivotCacheDefinitionSharedItem(e,t.entries[r])}),t.sets&&t.sets.length>0&&e.writeElement("sets",function(){e.writeAttributeString("count",t.sets.length)},function(){for(r=0;r<t.sets.length;r++)D(e,t.sets[r])}),t.queryCache&&t.queryCache.length>0&&e.writeElement("queryCache",function(){e.writeAttributeString("count",t.queryCache.length)},function(){for(r=0;r<t.queryCache.length;r++)B(e,t.queryCache[r])}),t.serverFormats&&t.serverFormats.length>0&&e.writeElement("serverFormats",function(){e.writeAttributeString("count",t.serverFormats.length)},function(){for(r=0;r<t.serverFormats.length;r++)W(e,t.serverFormats[r])})})}function D(e,t){}function B(e,t){e.writeElement("query",function(){t.mdx&&e.writeAttributeString("mdx",t.mdx)},function(){t.tpls&&t.tpls.length>0&&e.writeElement("tpls",function(){e.writeAttributeString("c",t.tpls.length)},function(){for(var r=0;r<t.tpls.length;r++)P(e,t.tpls[r])})})}function P(e,t){e.writeElement("tpl",function(){t.fld>=0&&e.writeAttributeString("fld",t.fld),t.hier>=0&&e.writeAttributeString("hier",t.hier),t.item>=0&&e.writeAttributeString("item",t.item)})}function W(e,t){e.writeLeafElement("serverFormat",function(){o.isNullOrUndefined(t.culture)||e.writeAttributeString("culture",t.culture),o.isNullOrUndefined(t.format)||e.writeAttributeString("format",t.format)})}function _(e,t){var r=t.calculatedItems;r&&e.writeElement("calculatedItems",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)N(e,r[t])})}function N(e,t){t&&e.writeElement("calculatedItem",function(){t.field>=0&&e.writeAttributeString("field",t.field),t.formula&&e.writeAttributeString("formula",s(t.formula))},function(){t.pivotArea&&te(e,t.pivotArea)})}function M(e,t){var r=t.calculatedMembers;r&&e.writeElement("calculatedMembers",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)O(e,r[t])})}function O(e,t){e.writeLeafElement("calculatedMember",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(t.name)),o.isNullOrUndefined(t.mdx)||e.writeAttributeString("mdx",t.mdx),o.isNullOrUndefined(t.memberName)||e.writeAttributeString("memberName",t.memberName),o.isNullOrUndefined(t.hierarchy)||e.writeAttributeString("hierarchy",t.hierarchy),o.isNullOrUndefined(t.parent)||e.writeAttributeString("parent",t.parent),t.solveOrder>0&&e.writeAttributeString("solveOrder",t.solveOrder),t.set&&e.writeAttributeString("set","1")})}function H(e,t){!t.dimensions||t.dimensions.length<=0||e.writeElement("dimensions",function(){e.writeAttributeString("count",t.dimensions.length)},function(){for(var r=0;r<t.dimensions.length;r++)G(e,t.dimensions[r])})}function G(e,t){e.writeLeafElement("dimension",function(){t.measure&&e.writeAttributeString("measure","1"),o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),o.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption)})}function U(e,t){!t.measureGroups||t.measureGroups.length<=0||e.writeElement("measureGroups",function(){e.writeAttributeString("count",t.measureGroups.length)},function(){for(var r=0;r<t.measureGroups.length;r++)J(e,t.measureGroups[r])})}function J(e,t){e.writeLeafElement("measureGroup",function(){t.name&&e.writeAttributeString("name",s(d(t.name))),t.caption&&e.writeAttributeString("caption",t.caption)})}function z(e,t){!t.measureDimensionMaps||t.measureDimensionMaps.length<=0||e.writeElement("maps",function(){e.writeAttributeString("count")},function(){for(var r=0;r<t.measureDimensionMaps.length;r++)V(e,t.measureDimensionMaps[r])})}function V(e,t){e.writeLeafElement("measureDimensionMap",function(){t.measureGroup>=0&&e.writeAttributeString("measureGroup",t.measureGroup),t.dimension>=0&&e.writeAttributeString("dimension",t.dimension)})}function j(e){var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("pivotCacheRecords",function(){t.writeAttributeString("xmlns",n.XFileConstants.Hd),t.writeAttributeString("xmlns:r",n.XFileConstants.Ud),t.writeAttributeString("xmlns:mc",n.XFileConstants.Jd),t.writeAttributeString(u,n.XFileConstants.Qd),t.writeAttributeString("xmlns:xr",n.XFileConstants.me),t.writeAttributeString("count",e.length)},function(){for(var r=0;r<e.length;r++)X(t,e[r])}),t.getXmlString()}t.writePivotCacheRecords=j;function X(e,t){e.writeElement("r",function(){},function(){for(var r=0;r<t.length;r++)C(e,t[r])})}function K(e,t){var r=new i.XmlWriter;return r.writeDocument(),r.writeElement("pivotTableDefinition",function(){r.writeAttributeString("xmlns",n.XFileConstants.Hd),r.writeAttributeString("xmlns:mc",n.XFileConstants.Jd),r.writeAttributeString(u,n.XFileConstants.Qd),r.writeAttributeString("xmlns:xr",n.XFileConstants.me),o.isNullOrUndefined(t.name)||r.writeAttributeString("name",s(d(t.name))),r.writeAttributeString("cacheId",t.cacheId),t.applyNumberFormats===!1&&r.writeAttributeString("applyNumberFormats","0"),t.applyBorderFormats===!1&&r.writeAttributeString("applyBorderFormats","0"),t.applyFontFormats===!1&&r.writeAttributeString("applyFontFormats","0"),t.applyPatternFormats===!1&&r.writeAttributeString("applyPatternFormats","0"),t.applyAlignmentFormats===!1&&r.writeAttributeString("applyAlignmentFormats","0"),t.applyWidthHeightFormats&&r.writeAttributeString("applyWidthHeightFormats","1"),o.isNullOrUndefined(t.dataCaption)||r.writeAttributeString("dataCaption",t.dataCaption),o.isNullOrUndefined(t.grandTotalCaption)||r.writeAttributeString("grandTotalCaption",t.grandTotalCaption),o.isNullOrUndefined(t.errorCaption)||r.writeAttributeString("errorCaption",t.errorCaption),t.showError&&r.writeAttributeString("showError","1"),o.isNullOrUndefined(t.missingCaption)||r.writeAttributeString("missingCaption",t.missingCaption),t.showMissing===!1&&r.writeAttributeString("showMissing","0"),t.updatedVersion>0?r.writeAttributeString("updatedVersion",t.updatedVersion):r.writeAttributeString("updatedVersion","7"),t.minRefreshableVersion>0&&t.minRefreshableVersion<=t.createdVersion&&r.writeAttributeString("minRefreshableVersion",t.minRefreshableVersion),t.printDrill&&r.writeAttributeString("printDrill","1"),t.showDrill===!1&&r.writeAttributeString("showDrill","0"),t.showDataTips===!1&&r.writeAttributeString("showDataTips","0"),t.enableDrill===!1&&r.writeAttributeString("enableDrill","0"),t.preserveFormatting===!1&&r.writeAttributeString("preserveFormatting","0"),t.useAutoFormatting&&r.writeAttributeString("useAutoFormatting","1"),t.pageWrap>0&&r.writeAttributeString("pageWrap",t.pageWrap),t.pageOverThenDown&&r.writeAttributeString("pageOverThenDown","1"),t.rowGrandTotals===!1&&r.writeAttributeString("rowGrandTotals","0"),t.colGrandTotals===!1&&r.writeAttributeString("colGrandTotals","0"),t.itemPrintTitles&&r.writeAttributeString("itemPrintTitles","1"),t.fieldPrintTitles&&r.writeAttributeString("fieldPrintTitles","1"),t.mergeItem&&r.writeAttributeString("mergeItem","1"),t.createdVersion>0?r.writeAttributeString("createdVersion",t.createdVersion):r.writeAttributeString("createdVersion","7"),t.indent>=0&&r.writeAttributeString("indent",t.indent),t.asteriskTotals&&r.writeAttributeString("asteriskTotals","1"),t.autoFormatId>0&&r.writeAttributeString("autoFormatId",t.autoFormatId),o.isNullOrUndefined(t.colHeaderCaption)||r.writeAttributeString("colHeaderCaption",t.colHeaderCaption),t.compact===!1&&r.writeAttributeString("compact","0"),t.compactData===!1&&r.writeAttributeString("compactData","0"),t.dataOnRows&&r.writeAttributeString("dataOnRows","1"),t.dataPosition>0&&r.writeAttributeString("dataPosition",t.dataPosition),t.disableFieldList&&r.writeAttributeString("disableFieldList","1"),t.editData&&r.writeAttributeString("editData","1"),t.enableFieldProperties===!1&&r.writeAttributeString("enableFieldProperties","0"),t.enableWizard===!1&&r.writeAttributeString("enableWizard","0"),t.gridDropZones&&r.writeAttributeString("gridDropZones","1"),t.immersive&&r.writeAttributeString("immersive","1"),t.mdxSubqueries&&r.writeAttributeString("mdxSubqueries","1"),t.showHeaders===!1&&r.writeAttributeString("showHeaders","0"),t.outline&&r.writeAttributeString("outline","1"),t.outlineData&&r.writeAttributeString("outlineData","1"),t.multipleFieldFilters===!1&&r.writeAttributeString("multipleFieldFilters","0"),t.chartFormat>0&&r.writeAttributeString("chartFormat",t.chartFormat),t.fieldListSortAscending&&r.writeAttributeString("fieldListSortAscending","1"),t.customListSort===!1&&r.writeAttributeString("customListSort","0"),o.isNullOrUndefined(t.pageStyle)||r.writeAttributeString("pageStyle",t.PageStyle),o.isNullOrUndefined(t.pivotTableStyle)||r.writeAttributeString("pivotTableStyle",t.pivotTableStyle),t.published&&r.writeAttributeString("published","1"),o.isNullOrUndefined(t.rowHeaderCaption)||r.writeAttributeString("rowHeaderCaption",t.rowHeaderCaption),t.showCalcMbrs===!1&&r.writeAttributeString("showCalcMbrs","0"),t.showDataDropDown&&r.writeAttributeString("showDataDropDown","0"),t.showDropZones===!1&&r.writeAttributeString("showDropZones","0"),t.showEmptyCol===!1&&r.writeAttributeString("showEmptyCol","0"),t.showEmptyRow===!1&&r.writeAttributeString("showEmptyRow","0"),t.showItems===!1&&r.writeAttributeString("showItems","0"),t.showMemberPropertyTips===!1&&r.writeAttributeString("showMemberPropertyTips","0"),t.showMultipleLabel===!1&&r.writeAttributeString("showMultipleLabel","0"),t.subtotalHiddenItems&&r.writeAttributeString("subtotalHiddenItems","1"),o.isNullOrUndefined(t.tag)||r.writeAttributeString("tag",t.tag),o.isNullOrUndefined(t.vacatedStyle)||r.writeAttributeString("vacatedStyle",t.vacatedStyle),t.visualTotals===!1&&r.writeAttributeString("visualTotals","0")},function(){q(r,t),Y(r,t),ie(r,t,!0),ae(r,t),ie(r,t,!1),le(r,t),de(r,t),fe(r,t),pe(r,t),ge(r,t),Se(r,t),we(r,t),ve(r,t),ke(e,r,t),Ee(r,t),Ie(r,t),De(r,t)}),r.getXmlString()}t.writePivotTable=K;function q(e,t){e.writeLeafElement("location",function(){e.writeAttributeString("ref",t.ref),t.firstHeaderRow>=0&&e.writeAttributeString("firstHeaderRow",t.firstHeaderRow),t.firstDataRow>=0&&e.writeAttributeString("firstDataRow",t.firstDataRow),t.firstDataCol>=0&&e.writeAttributeString("firstDataCol",t.firstDataCol),t.rowPageCount>0&&e.writeAttributeString("rowPageCount",t.rowPageCount),t.colPageCount>0&&e.writeAttributeString("colPageCount",t.colPageCount)})}function Y(e,t){e.writeElement("pivotFields",function(){e.writeAttributeString("count",t.fields.length)},function(){for(var r=0;r<t.fields.length;r++)Q(e,t.fields[r],t)})}function Q(e,t,r){t.items&&t.items.length>0?e.writeElement("pivotField",function(){
|
53
|
-
Z(e,t)},function(){$(e,t,r)}):r.fillDownLabels?e.writeElement("pivotField",function(){Z(e,t)},function(){e.writeElement("extLst",function(){Be(e,r)})}):e.writeLeafElement("pivotField",function(){Z(e,t)})}function Z(e,t){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),o.isNullOrUndefined(t.axis)||e.writeAttributeString("axis",t.axis),t.allDrilled&&e.writeAttributeString("allDrilled","1"),t.autoShow&&e.writeAttributeString("autoShow","1"),t.dataField&&e.writeAttributeString("dataField","1"),t.compact===!1&&e.writeAttributeString("compact","0"),t.numberFormatId>=0&&e.writeAttributeString("numFmtId",t.numberFormatId),t.outline===!1&&e.writeAttributeString("outline","0"),t.subtotalTop===!1&&e.writeAttributeString("subtotalTop","0"),t.multipleItemSelectionAllowed&&e.writeAttributeString("multipleItemSelectionAllowed","1"),t.showAll===!1&&e.writeAttributeString("showAll","0"),t.insertBlankRow&&e.writeAttributeString("insertBlankRow","1"),t.insertPageBreak&&e.writeAttributeString("insertPageBreak","1"),t.includeNewItemsInFilter&&e.writeAttributeString("includeNewItemsInFilter","1"),t.sumSubtotal&&e.writeAttributeString("sumSubtotal","1"),t.countASubtotal&&e.writeAttributeString("countASubtotal","1"),t.avgSubtotal&&e.writeAttributeString("avgSubtotal","1"),t.maxSubtotal&&e.writeAttributeString("maxSubtotal","1"),t.minSubtotal&&e.writeAttributeString("minSubtotal","1"),t.productSubtotal&&e.writeAttributeString("productSubtotal","1"),t.countSubtotal&&e.writeAttributeString("countSubtotal","1"),t.stdDevSubtotal&&e.writeAttributeString("stdDevSubtotal","1"),t.stdDevPSubtotal&&e.writeAttributeString("stdDevPSubtotal","1"),t.dataSourceSort&&e.writeAttributeString("dataSourceSort","1"),t.defaultAttributeDrillState&&e.writeAttributeString("defaultAttributeDrillState","1"),t.dragOff===!1&&e.writeAttributeString("dragOff","0"),t.dragToCol===!1&&e.writeAttributeString("dragToCol","0"),t.dragToData===!1&&e.writeAttributeString("dragToData","0"),t.dragToPage===!1&&e.writeAttributeString("dragToPage","0"),t.dragToRow===!1&&e.writeAttributeString("dragToRow","0"),t.hiddenLevel&&e.writeAttributeString("hiddenLevel","1"),t.hideNewItems&&e.writeAttributeString("hideNewItems","1"),t.itemPageCount&&10!==t.itemPageCount&&e.writeAttributeString("itemPageCount",t.itemPageCount),t.measureFilter&&e.writeAttributeString("measureFilter","1"),t.nonAutoSortDefault&&e.writeAttributeString("nonAutoSortDefault","1"),t.serverField&&e.writeAttributeString("serverField","1"),t.showDropDowns===!1&&e.writeAttributeString("showDropDowns","0"),t.showPropAsCaption&&e.writeAttributeString("showPropAsCaption","1"),t.showPropCell&&e.writeAttributeString("showPropCell","1"),t.showPropTip&&e.writeAttributeString("showPropTip","1"),o.isNullOrUndefined(t.sortType)||e.writeAttributeString("sortType",t.sortType),t.rankBy>=0&&e.writeAttributeString("rankBy",t.rankBy),t.defaultSubtotal===!1&&e.writeAttributeString("defaultSubtotal","0"),o.isNullOrUndefined(t.subtotalCaption)||e.writeAttributeString("subtotalCaption",t.subtotalCaption),t.topAutoShow===!1&&e.writeAttributeString("topAutoShow","0"),o.isNullOrUndefined(t.uniqueMemberProperty)||e.writeAttributeString("uniqueMemberProperty",t.uniqueMemberProperty),t.varSubtotal&&e.writeAttributeString("varSubtotal","1"),t.varPSubtotal&&e.writeAttributeString("varPSubtotal","1")}function $(e,t,r){t.items&&t.items.length>0&&e.writeElement("items",function(){e.writeAttributeString("count",t.items.length)},function(){for(var r=0;r<t.items.length;r++)ee(e,t.items[r])}),o.isNullOrUndefined(t.autoSortScope)||e.writeElement("autoSortScope",function(){te(e,t.autoSortScope)}),r.fillDownLabels&&e.writeElement("extLst",function(){Be(e,r)})}function ee(e,t){e.writeLeafElement("item",function(){t.childItems&&e.writeAttributeString("c","1"),t.expanded===!1&&e.writeAttributeString("d","0"),t.drillAcross===!1&&e.writeAttributeString("e","0"),t.calculatedMember&&e.writeAttributeString("f","1"),t.hidden&&e.writeAttributeString("h","1"),t.missing&&e.writeAttributeString("m","1"),o.isNullOrUndefined(t.caption)||e.writeAttributeString("n",t.caption),t.character&&e.writeAttributeString("s","1"),t.collapse===!0&&e.writeAttributeString("sd","0"),t.type&&e.writeAttributeString("t",t.type),o.isNullOrUndefined(t.indexValue)||e.writeAttributeString("x",t.indexValue)})}function te(e,t,r){t&&t.missed===!0||e.writeElement("pivotArea",function(){t.field&&t.field!==-1&&e.writeAttributeString("field",t.field),o.isNullOrUndefined(t.type)||"normal"===t.type||e.writeAttributeString("type",t.type),t.dataOnly===!1&&e.writeAttributeString("dataOnly","0"),t.dataOnly===!0&&e.writeAttributeString("dataOnly","1"),t.labelOnly&&e.writeAttributeString("labelOnly","1"),t.grandRow&&e.writeAttributeString("grandRow","1"),t.grandCol&&e.writeAttributeString("grandCol","1"),t.cacheIndex&&e.writeAttributeString("cacheIndex","1"),o.isNullOrUndefined(t.outline)||e.writeAttributeString("outline","0"),t.collapsedLevelsAreSubtotals&&e.writeAttributeString("collapsedLevelsAreSubtotals","1"),t.axis&&(r||"axisValue"!==t.axis)&&e.writeAttributeString("axis",t.axis),t.fieldPosition>=0&&e.writeAttributeString("fieldPosition",t.fieldPosition),o.isNullOrUndefined(t.offset)||e.writeAttributeString("offset",t.offset)},function(){t.references&&t.references.length>0&&e.writeElement("references",function(){e.writeAttributeString("count",t.references.length)},function(){for(var r=0;r<t.references.length;r++)re(e,t.references[r])})})}function re(e,t){e.writeElement("reference",function(){!o.isNullOrUndefined(t.field)&&t.field>=0&&e.writeAttributeString("field",t.field),e.writeAttributeString("count",t.indexes?t.indexes.length:0),t.avgSubtotal&&e.writeAttributeString("avgSubtotal","1"),t.byPosition&&e.writeAttributeString("byPosition","1"),t.countASubtotal&&e.writeAttributeString("countASubtotal","1"),t.countSubtotal&&e.writeAttributeString("countSubtotal","1"),t.defaultSubtotal&&e.writeAttributeString("defaultSubtotal","1"),t.maxSubtotal&&e.writeAttributeString("maxSubtotal","1"),t.minSubtotal&&e.writeAttributeString("minSubtotal","1"),t.productSubtotal&&e.writeAttributeString("productSubtotal","1"),t.relative&&e.writeAttributeString("relative","1"),t.selected===!1&&e.writeAttributeString("selected","0"),t.stdDevPSubtotal&&e.writeAttributeString("stdDevPSubtotal","1"),t.stdDevSubtotal&&e.writeAttributeString("stdDevSubtotal","1"),t.sumSubtotal&&e.writeAttributeString("sumSubtotal","1"),t.varPSubtotal&&e.writeAttributeString("varPSubtotal","1"),t.varSubtotal&&e.writeAttributeString("varSubtotal","1")},function(){if(t.indexes&&t.indexes.length>0)for(var r=0;r<t.indexes.length;r++)oe(e,t.indexes[r])})}function oe(e,t){e.writeLeafElement("x",function(){e.writeAttributeString("v",t)})}function ie(e,t,r){(r&&t.rowFields&&t.rowFields.length>0||!r&&t.columnFields&&t.columnFields.length>0)&&e.writeElement(r?"rowFields":"colFields",function(){e.writeAttributeString("count",r?t.rowFields.length:t.columnFields.length)},function(){var o,i=r?t.rowFields:t.columnFields;for(o=0;o<i.length;o++)ne(e,i[o])})}function ne(e,t){e.writeLeafElement("field",function(){e.writeAttributeString("x",t)})}function ae(e,t){var r=[];r=t.rowItems,r.length<=0||e.writeElement("rowItems",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)se(e,r[t])})}function le(e,t){var r=t.columnItems;!o.isNullOrUndefined(r)&&r.length>0&&e.writeElement("colItems",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)se(e,r[t])})}function se(e,t){e.writeElement("i",function(){o.isNullOrUndefined(t.type)||e.writeAttributeString("t",t.type),t.repeatCount>0&&e.writeAttributeString("r",t.repeatCount),t.dataFieldIndex>0&&e.writeAttributeString("i",t.dataFieldIndex)},function(){if(t.pivotItemIndexes&&t.pivotItemIndexes.length>0)for(var r=0;r<t.pivotItemIndexes.length;r++)ce(e,t.pivotItemIndexes[r])})}function ce(e,t){e.writeLeafElement("x",function(){t&&t>0&&e.writeAttributeString("v",t)})}function de(e,t){t.pageFields&&t.pageFields.length>0&&e.writeElement("pageFields",function(){e.writeAttributeString("count",t.pageFields.length)},function(){for(var r=0;r<t.pageFields.length;r++)ue(e,t.pageFields[r])})}function ue(e,t){e.writeLeafElement("pageField",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),o.isNullOrUndefined(t.fld)||e.writeAttributeString("fld",t.fld),o.isNullOrUndefined(t.cap)||e.writeAttributeString("cap",t.cap),o.isNullOrUndefined(t.item)||e.writeAttributeString("item",t.item),o.isNullOrUndefined(t.hier)||e.writeAttributeString("hier",t.hier)})}function fe(e,t){t.dataFields&&t.dataFields.length>0&&e.writeElement("dataFields",function(){e.writeAttributeString("count",t.dataFields.length)},function(){for(var r=0;r<t.dataFields.length;r++)be(e,t.dataFields[r])})}function be(e,t){var r=["difference","index","normal","percent","percentDiff","percentOfCol","percentOfRow","percentOfTotal","runTotal"].indexOf(t.showDataAs)===-1;e.writeElement("dataField",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),o.isNullOrUndefined(t.fld)||e.writeAttributeString("fld",t.fld),o.isNullOrUndefined(t.subtotal)||e.writeAttributeString("subtotal",t.subtotal),o.isNullOrUndefined(t.showDataAs)||r||e.writeAttributeString("showDataAs",t.showDataAs),o.isNullOrUndefined(t.baseField)||e.writeAttributeString("baseField",t.baseField),o.isNullOrUndefined(t.baseItem)||e.writeAttributeString("baseItem",t.baseItem),o.isNullOrUndefined(t.numberFormatId)||e.writeAttributeString("numFmtId",t.numberFormatId)},function(){!o.isNullOrUndefined(t.showDataAs)&&r&&he(e,t.showDataAs)})}function he(e,t){e.writeElement("extLst",function(){},function(){e.writeElement("ext",function(){e.writeAttributeString("uri","{E15A36E0-9728-4e99-A89B-3F7291B0FE68}"),e.writeAttributeString("xmlns:x14",n.XFileConstants.$d)},function(){e.writeLeafElement("x14:dataField",function(){e.writeAttributeString("pivotShowAs",t)})})})}function pe(e,t){var r=t.formats;r&&r.length>0&&e.writeElement("formats",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)me(e,r[t])})}function me(e,t){t&&t.style&&t.pivotArea&&!t.pivotArea.missed&&e.writeElement("format",function(){"Formatting"===t.action||o.isNullOrUndefined(t.action)||e.writeAttributeString("action",t.action),t.dxfId>=0&&e.writeAttributeString("dxfId",t.dxfId)},function(){te(e,t.pivotArea,!0)})}function ge(e,t){var r=t.pivotTableConditionFormats;r&&r.length>0&&e.writeElement("conditionalFormats",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)ye(e,r[t])})}function ye(e,t){e.writeElement("conditionalFormat",function(){t.scope&&"Selection"!==t.scope&&e.writeAttributeString("scope",t.scope),t.type&&"None"!==t.type&&e.writeAttributeString("type",t.type),e.writeAttributeString("priority",t.rule.priority||0)},function(){t.pivotAreas&&t.pivotAreas.length>0&&e.writeElement("pivotAreas",function(){e.writeAttributeString("count",t.pivotAreas.length)},function(){for(var r=0;r<t.pivotAreas.length;r++)te(e,t.pivotAreas[r])})})}function Se(e,t){t.chartFormats&&t.chartFormats.length>0&&e.writeElement("chartFormats",function(){e.writeAttributeString("count",t.chartFormats.length)},function(){for(var r=0;r<t.chartFormats.length;r++)Ce(e,t.chartFormats[r])})}function Ce(e,t){e.writeElement("chartFormat",function(){t.chart>=0&&e.writeAttributeString("chart",t.chart),t.format>=0&&e.writeAttributeString("format",t.format),t.series&&e.writeAttributeString("series","1")},function(){o.isNullOrUndefined(t.pivotArea)||te(e,t.pivotArea)})}function we(e,t){t.pivotHierarchies&&t.pivotHierarchies.length>0&&e.writeElement("pivotHierarchies",function(){e.writeAttributeString("count",t.pivotHierarchies.length)},function(){for(var r=0;r<t.pivotHierarchies.length;r++)xe(e,t.pivotHierarchies[r])})}function xe(e,t){e.writeElement("pivotHierarchy",function(){o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),t.dragOff||e.writeAttributeString("dragOff","0"),t.dragToRow||e.writeAttributeString("dragToRow","0"),t.dragToCol||e.writeAttributeString("dragToCol","0"),t.dragToPage||e.writeAttributeString("dragToPage","0"),t.dragToData&&e.writeAttributeString("dragToData","1"),t.includeNewItemsInFilter&&e.writeAttributeString("includeNewItemsInFilter","1"),t.multipleItemSelectionAllowed&&e.writeAttributeString("multipleItemSelectionAllowed","1"),t.outline&&e.writeAttributeString("outline","1"),t.showInFieldList&&e.writeAttributeString("showInFieldList","1"),t.subtotalTop&&e.writeAttributeString("subtotalTop","1")},function(){var r;t.memberProperties&&t.memberProperties.length>0&&e.writeElement("mps",function(){e.writeAttributeString("count",t.memberProperties.length)},function(){for(r=0;r<t.memberProperties.length;r++)Ae(e,t.memberProperties[r])}),t.members&&t.members.length>0&&e.writeElement("members",function(){e.writeAttributeString("count",t.members.length)},function(){for(r=0;r<t.members.length;r++)Te(e,t.members[r])})})}function Ae(e,t){e.writeLeafElement("mp",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),t.showCell&&e.writeAttributeString("showCell","1"),t.showTip&&e.writeAttributeString("showTip","1"),t.showAsCaption&&e.writeAttributeString("showAsCaption","1"),t.nameLen>0&&e.writeAttributeString("nameLen",s(t.nameLen)),t.pPos>=0&&e.writeAttributeString("pPos",t.pPos),t.pLen>0&&e.writeAttributeString("pLen",t.pLen),t.level>0&&e.writeAttributeString("level",t.level),t.field>=0&&e.writeAttributeString("field",t.field)})}function Te(e,t){e.writeLeafElement("member",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name)))})}function ve(e,t){e.writeLeafElement("pivotTableStyleInfo",function(){var r=t.styleName||t.style&&t.style.name;o.isNullOrUndefined(r)||e.writeAttributeString("name",s(d(r))),t.showRowHeaders&&e.writeAttributeString("showRowHeaders","1"),t.showColHeaders&&e.writeAttributeString("showColHeaders","1"),t.showRowStripes===!1?e.writeAttributeString("showRowStripes","0"):e.writeAttributeString("showRowStripes","1"),t.showColStripes===!1?e.writeAttributeString("showColStripes","0"):e.writeAttributeString("showColStripes","1"),t.showLastColumn&&e.writeAttributeString("showLastColumn","1")})}function ke(e,t,r){r.pivotFilters&&r.pivotFilters.length>0&&t.writeElement("filters",function(){t.writeAttributeString("count",r.pivotFilters.length)},function(){var o,i;for(o=0;o<r.pivotFilters.length;o++)i=r.pivotFilters[o],41!==i.operator&&42!==i.operator&&Fe(e,t,i)})}function Fe(e,r,i){var n=i.operator,a=i.conType,c=t.captionCompareTypeExcel[a][n];r.writeElement("filter",function(){i.fld>=0&&r.writeAttributeString("fld",i.fld),i.mpFld>=0&&r.writeAttributeString("mpFld",i.mpFld),void 0!==c&&r.writeAttributeString("type",c),o.isNullOrUndefined(i.evalOrder)||r.writeAttributeString("evalOrder",i.evalOrder),i.id>=0&&r.writeAttributeString("id",i.id),i.iMeasureHier>=0&&r.writeAttributeString("iMeasureHier",i.iMeasureHier),i.iMeasureFld>=0&&r.writeAttributeString("iMeasureFld",i.iMeasureFld),o.isNullOrUndefined(i.name)||r.writeAttributeString("name",s(d(i.name))),o.isNullOrUndefined(i.description)||r.writeAttributeString("description",i.description),o.isNullOrUndefined(i.stringValue1)||r.writeAttributeString("stringValue1",i.stringValue1),o.isNullOrUndefined(i.stringValue2)||r.writeAttributeString("stringValue2",i.stringValue2)},function(){var t,n;o.isNullOrUndefined(i.autoFilter)||(t=e.Aj(i,c),l.writePivotAutoFilter(r,t),n=i.autoFilter&&i.autoFilter.filterItemMap&&i.autoFilter.filterItemMap[0]&&i.autoFilter.filterItemMap[0].conditions&&i.autoFilter.filterItemMap[0].conditions[0],n&&n.isWholeDay&&r.writeElement("extLst",function(){Re(r,n)}))})}function Re(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{0605FD5F-26C8-4aeb-8148-2DB25E43C511}"),e.writeAttributeString("xmlns:x15","http://schemas.microsoft.com/office/spreadsheetml/2010/11/main")},function(){e.writeLeafElement("x15:pivotFilter",function(){t.isWholeDay&&e.writeAttributeString("useWholeDay","1")})})}function Ee(e,t){t.rowHierarchies&&t.rowHierarchies.length>0&&e.writeElement("rowHierarchiesUsage",function(){e.writeAttributeString("count",t.rowHierarchies.length)},function(){for(var r=0;r<t.rowHierarchies.length;r++)Le(e,t.rowHierarchies[r],!0)})}function Ie(e,t){t.colHierarchies&&t.colHierarchies.length>0&&e.writeElement("rowHierarchiesUsage",function(){e.writeAttributeString("count",t.colHierarchies.length)},function(){for(var r=0;r<t.colHierarchies.length;r++)Le(e,t.colHierarchies[r],!1)})}function Le(e,t,r){var o=r?"rowHierarchyUsage":"colHierarchyUsage";e.writeLeafElement(o,function(){e.writeAttributeString("hierarchyUsage",t)})}function De(e,t){e.writeElement("extLst",function(){e.writeElement("ext",function(){e.writeAttributeString("uri","{962EF5D1-5CA2-4c93-8EF4-DBF5C05439D2}"),e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main")},function(){e.writeLeafElement("x14:pivotTableDefinition",function(){t.altText&&e.writeAttributeString("altText",t.altText),t.fillDownLabels&&e.writeAttributeString("fillDownLabelsDefault","1"),t.altTextSummary&&e.writeAttributeString("altTextSummary",t.altTextSummary),t.hideValuesRow&&e.writeAttributeString("hideValuesRow","1"),e.writeAttributeString("xmlns:xm","http://schemas.microsoft.com/office/excel/2006/main")})}),e.writeElement("ext",function(){e.writeAttributeString("uri","{747A6164-185A-40DC-8AA5-F01512510D54}"),e.writeAttributeString("xmlns:xpdl","http://schemas.microsoft.com/office/spreadsheetml/2016/pivotdefaultlayout")},function(){e.writeLeafElement("xpdl:pivotTableDefinition16",function(){t.subtotalsOnTopDefault===!1&&e.writeAttributeString("SubtotalsOnTopDefault","0"),t.enabledSubtotalsDefault===!1&&e.writeAttributeString("EnabledSubtotalsDefault","0"),t.insertBlankRowDefault===!0&&e.writeAttributeString("InsertBlankRowDefault","1")})})})}function Be(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{2946ED86-A175-432a-8AC1-64E0C546D7DE}"),e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main")},function(){e.writeLeafElement("x14:pivotField",function(){t.fillDownLabels&&e.writeAttributeString("fillDownLabels","1")})})}},"./src/xlsx-io/writer/print-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=o.StringEx.O,n=o.Util.oa,a=r("./src/xml-io/xml-writer.ts"),l=r("./src/common/excel-types.ts"),s=r("./src/datamodel/excel-helper.ts"),c={0:"auto",1:"downThenOver",2:"overThenDown"},d={0:"auto",1:"portrait",2:"landscape"};function u(e,t,r){var o=r.Kj(t);o&&e.writeLeafElement("pageMargins",function(){e.writeAttributeString("left",o.left),e.writeAttributeString("right",o.right),e.writeAttributeString("top",o.top),e.writeAttributeString("bottom",o.bottom),e.writeAttributeString("header",o.header),e.writeAttributeString("footer",o.footer)})}t.writePageMargins=u;function f(e,t,r){var o=r.Lj(t);o&&(o.printGridLine||o.printRowColumnsHeaders||o.horizontalCentered||o.verticalCentered)&&e.writeLeafElement("printOptions",function(){o.printRowColumnsHeaders&&e.writeAttributeString("headings","1"),o.printGridLine&&e.writeAttributeString("gridLines","1"),o.horizontalCentered&&e.writeAttributeString("horizontalCentered","1"),o.verticalCentered&&e.writeAttributeString("verticalCentered","1")})}t.writePrintOptions=f;function b(e,t,r){var i=r.Mj(t);i&&e.writeLeafElement("pageSetup",function(){var t=i.useSmartPrint,r=i.paperSizeIndex,n=i.zoomFactor,a=i.firstPageNumber,l=i.smartPrintPagesWidth,u=i.smartPrintPagesHeight,f=c[i.pageOrder],b=d[i.orientation],h=i.copies;t&&(void 0===l&&(l=0),void 0===u&&(u=0)),!o.isNullOrUndefined(r)&&r>1&&e.writeAttributeString("paperSize",r),!o.isNullOrUndefined(n)&&Math.abs(n-1)>.01&&e.writeAttributeString("scale",Math.round(100*n)),o.isNullOrUndefined(a)||e.writeAttributeString("firstPageNumber",s.convertFirstPageNumberToExcel(a)),(l>0&&1!==l||0===l)&&e.writeAttributeString("fitToWidth",l),(u>0&&1!==u||0===u)&&e.writeAttributeString("fitToHeight",u),o.isNullOrUndefined(f)||0===f||e.writeAttributeString("pageOrder",f),o.isNullOrUndefined(b)||0===b||e.writeAttributeString("orientation",b),i.showColor===!1&&e.writeAttributeString("blackAndWhite","1"),i.draft===!0&&e.writeAttributeString("draft","1"),i.useCustomStartingPage===!0&&e.writeAttributeString("useFirstPageNumber","1"),h>1&&h<32767&&e.writeAttributeString("copies",h)})}t.writePageSetup=b;function h(e){var t=e.advancedHeadFooterSetting;return t&&(t.headerFooterDifferentOddEvenPages||t.headerFooterDifferentFirstPage||!t.headerFooterScalesWithDocument||!t.headerFooterAlignWithPageMargin||!i(e.header)||!i(e.footer)||!i(t.headerOddPage)||!i(t.footerOddPage)||!i(t.headerEvenPage)||!i(t.footerEvenPage)||!i(t.headerFirstPage)||!i(t.footerFirstPage))}function p(e,t,r){var o,a=r.Mj(t);a&&h(a)&&(o=a.advancedHeadFooterSetting,e.writeElement("headerFooter",function(){o.headerFooterDifferentOddEvenPages===!0&&e.writeAttributeString("differentOddEven","1"),o.headerFooterDifferentFirstPage===!0&&e.writeAttributeString("differentFirst","1"),o.headerFooterScalesWithDocument===!1&&e.writeAttributeString("scaleWithDoc","0"),o.headerFooterAlignWithPageMargin===!1&&e.writeAttributeString("alignWithMargins","0")},function(){i(o.headerOddPage)?i(a.header)||e.writeElementString("oddHeader",n(a.header)):e.writeElementString("oddHeader",n(o.headerOddPage)),i(o.footerOddPage)?i(a.footer)||e.writeElementString("oddFooter",n(a.footer)):e.writeElementString("oddFooter",n(o.footerOddPage)),i(o.headerEvenPage)||e.writeElementString("evenHeader",n(o.headerEvenPage)),i(o.footerEvenPage)||e.writeElementString("evenFooter",n(o.footerEvenPage)),i(o.headerFirstPage)||e.writeElementString("firstHeader",n(o.headerFirstPage)),i(o.footerFirstPage)||e.writeElementString("firstFooter",n(o.footerFirstPage))}))}t.writeHeadFooter=p;function m(e,t,r){t&&t.length>0&&e.writeElement(r,function(){var r=t.length;e.writeAttributeString("count",r),e.writeAttributeString("manualBreakCount",r)},function(){t.forEach(function(t){t>0&&e.writeLeafElement("brk",function(){e.writeAttributeString("id",t),e.writeAttributeString("man","1"),"rowBreaks"===r?e.writeAttributeString("max",l.ExcelConstants.wb):"colBreaks"===r&&e.writeAttributeString("max",l.ExcelConstants.vb)})})})}function g(e,t,r){var o=r.Mj(t);o&&(m(e,o.rowBreakLines,"rowBreaks"),m(e,o.columnBreakLines,"colBreaks"))}t.writeRowColumnBreaks=g;function y(e,t){t.jn&&(e.writeLeafElement("legacyDrawingHF",function(){e.writeAttributeString("r:id",t.jn)}),t.jn="")}t.writeLegacyDrawingHF=y;function S(e,t,r,o){e.writeElement("v:shape",function(){e.writeAttributeString("id",t.name),t.spid?e.writeAttributeString("o:spid",t.spid):e.writeAttributeString("o:spid","_x0000_s10"+r),e.writeAttributeString("type","#_x0000_t75"),t.style?e.writeAttributeString("style",t.style):e.writeAttributeString("style","position:absolute;margin-left:0;margin-top:0;width:100%pt;height:100%pt;z-index:"+o)},function(){e.writeLeafElement("v:imagedata",function(){e.writeAttributeString("o:relid",t.rid),e.writeAttributeString("o:title",t.name)}),t.cellRange||e.writeLeafElement("o:lock",function(){e.writeAttributeString("v:ext","edit"),e.writeAttributeString("rotation","t")}),t.cellRange&&e.writeElement("x:ClientData",function(){e.writeAttributeString("ObjectType","Pict")},function(){e.writeLeafElement("x:SizeWithCells"),e.writeElementString("x:Anchor",t.anchor),e.writeElementString("x:FmlaPict",t.cellRange),e.writeElementString("x:CF","Pict"),e.writeElementString("x:Camera","")})})}function C(e,t,r,o,i,n,a){e.writeAttributeString(t,r),e.writeAttributeString(o,i),e.writeAttributeString(n,a)}t.writeVmlDrawingFile=function(e){var t=new a.XmlWriter;return t.writeElement("xml",function(){C(t,"xmlns:v","urn:schemas-microsoft-com:vml","xmlns:o","urn:schemas-microsoft-com:office:office","xmlns:x","urn:schemas-microsoft-com:office:excel")},function(){t.writeElement("o:shapelayout",function(){t.writeAttributeString("v:ext","edit")},function(){t.writeLeafElement("o:idmap",function(){t.writeAttributeString("v:ext","edit"),t.writeAttributeString("data","1")})}),t.writeElement("v:shapetype",function(){t.writeAttributeString("id","_x0000_t75"),t.writeAttributeString("coordsize","21600,21600"),t.writeAttributeString("o:spt","75"),t.writeAttributeString("o:preferrelative","t"),t.writeAttributeString("path","m@4@5l@4@11@9@11@9@5xe"),t.writeAttributeString("filled","f"),t.writeAttributeString("stroked","f")},function(){t.writeLeafElement("v:stroke",function(){t.writeAttributeString("joinstyle","miter")}),t.writeElement("v:formulas",function(){t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","if lineDrawn pixelLineWidth 0")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @0 1 0")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum 0 0 @1")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @2 1 2")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @3 21600 pixelWidth")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @3 21600 pixelHeight")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @0 0 1")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @6 1 2")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @7 21600 pixelWidth")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @8 21600 0")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @7 21600 pixelHeight")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @10 21600 0")})}),t.writeLeafElement("v:path",function(){C(t,"o:extrusionok","f","gradientshapeok","t","o:connecttype","rect")}),t.writeLeafElement("o:lock",function(){t.writeAttributeString("v:ext","edit"),t.writeAttributeString("aspectratio","t")})});var r=25,o=1;e.forEach(function(e){(["LH","CH","RH","LF","CF","RF","LHEVEN","CHEVEN","RHEVEN","LFEVEN","CFEVEN","RFEVEN","LHFIRST","CHFIRST","RHFIRST","LFFIRST","CFFIRST","RFFIRST"].indexOf(e.name)>=0||e.name.indexOf("Picture_x0020")!==-1)&&(S(t,e,r,o),r++,o++)})}),t.getXmlString()}},"./src/xlsx-io/writer/sharedString-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/xml-io/xml-writer.ts"),a=r("./src/datamodel/excel-style.ts"),l=r("./src/xlsx-io/writer/style-writer.ts"),function(e){e[e.disc=0]="disc",e[e.circle=1]="circle",e[e.square=2]="square",e[e.decimal=3]="decimal",e[e.lowerAlpha=4]="lowerAlpha",e[e.upperAlpha=5]="upperAlpha",e[e.lowerRoman=6]="lowerRoman",e[e.upperRoman=7]="upperRoman",e[e.lowerGreek=8]="lowerGreek"}(s||(s={})),c=void 0;function d(e,t){var r,o,i;if(e+=1,e<1||e>3999)return"i";for(r=[{value:1e3,numeral:t?"m":"M"},{value:900,numeral:t?"cm":"CM"},{value:500,numeral:t?"d":"D"},{value:400,numeral:t?"cd":"CD"},{value:100,numeral:t?"c":"C"},{value:90,numeral:t?"xc":"XC"},{value:50,numeral:t?"l":"L"},{value:40,numeral:t?"xl":"XL"},{value:10,numeral:t?"x":"X"},{value:9,numeral:t?"ix":"IX"},{value:5,numeral:t?"v":"V"},{value:4,numeral:t?"iv":"IV"},{value:1,numeral:t?"i":"I"}],o="",i=0;i<r.length;i++)for(;e>=r[i].value;)o+=r[i].numeral,e-=r[i].value;return o}function u(e,t){var r="",o=t?97:65;if(0===e)return String.fromCharCode(o);for(;e>0;)r+=String.fromCharCode(e%26+o),e=Math.floor(e/26);return r}function f(e){var t,r;if(0===e)return"\u03b1";for(t=["\u03b1","\u03b2","\u03b3","\u03b4","\u03b5","\u03b6","\u03b7","\u03b8","\u03b9","\u03ba","\u03bb","\u03bc","\u03bd","\u03be","\u03bf","\u03c0","\u03c1","\u03c3","\u03c4","\u03c5","\u03c6","\u03c7","\u03c8","\u03c9"],r="";e>0;)r+=t[e%24],e=Math.floor(e/24);return r}function b(e,t){switch(e){case s.lowerRoman:return d(t,!0)+". ";case s.lowerAlpha:return u(t,!0)+". ";case s.upperRoman:return d(t)+". ";case s.upperAlpha:return u(t)+". ";case s.decimal:return t+1+". ";case s.lowerGreek:return f(t)+". "}}function h(e){switch(e){case s.disc:return"\u25cf ";case s.circle:return"\u25cb ";case s.square:return"\u25a0 "}}function p(e){var t,r,o,i=[],n=[];for(t=0,r=e.length;t<r;t++)o=e[t],o.richText?(n.length>0&&(i.push(n),n=[]),i.push(o)):n.push(o);return n.length>0&&i.push(n),i}function m(e){return e!==s.circle&&e!==s.square&&e!==s.disc}function g(e){var t,r,o,i,n,a,l,s=p(e),d={},u={},f=[];for(r=0,o=s.length;r<o;r++)i=s[r],i.richText?(n=i.level||0,a=void 0,m(i.type)?(i.type===u[n]&&n<=t?d[n]++:d[n]=0,a=b(i.type,d[n])):a=h(i.type),t=n,u[n]=i.type,l=Array(4*(n+1)),l.fill(" "),f=f.concat([{text:l.join("")+a}],i.richText)):(f=f.concat(i),u={},t=c,d={}),r!==o-1&&f.push({text:"\r\n"});return f}function y(e){var t,r,o;for(t=0,r=e.richText.length;t<r;t++)if(e.richText[t].richText)return o=g(e.richText),{richText:o};return e}function S(e){var t=new n.XmlWriter;return t.writeDocument(),t.writeElement("sst",function(){t.writeAttributeString("xmlns",i.XFileConstants.Hd),t.writeAttributeString("count",""+e.Pn),t.writeAttributeString("uniqueCount",""+e.Qn.length)},function(){var r,i,n=function(r,i){var n=e.Qn[r],s=n.value,d=s.length!==s.trim().length;t.writeElement("si",c,function(){var e,r,i,u,f=function(){d&&t.writeAttributeString("xml:space","preserve")};if(n.richText)for(e=n.richText,e&&e.length>0&&(r=y(n),e=r.richText),i=function(r){e[r].text!==c&&t.writeElement("r",c,function(){l.writerRichTextStyle(t,a.ConverterHelper.fromRichTextStyle(e[r].style));var i=e[r].text;i&&i.length>32767&&(i=i.slice(0,32767)),i&&(d=i.length!==i.trim().length),t.writeElement("t",function(){f()},function(){t.writeValue(o.Util.oa(o.Util.xa(i,!0)))})})},u=0;u<e.length;u++)i(u);else s&&s.length>32767&&(s=s.slice(0,32767)),t.writeElement("t",function(){f()},function(){t.writeValue(o.Util.oa(o.Util.xa(s,!0)))})})};for(r=0,i=e.Qn.length;r<i;r++)n(r,i)}),t.getXmlString()}t.writeSharedString=S},"./src/xlsx-io/writer/slicer-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/datamodel/excel-style.ts"),l=a.UnitHelper.pixelToEMU,s=n.Util.oa,c=n.Util.ua,d="http://schemas.microsoft.com/office/drawing/2012/timeslicer",u="mc:Ignorable";function f(e){if(n.isNullOrUndefined(e))return null;var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("slicers",function(){t.writeAttributeString("xmlns",i.XFileConstants.ce),t.writeAttributeString("xmlns:mc",i.XFileConstants.ae),t.writeAttributeString(u,"x"),t.writeAttributeString("xmlns:x",i.XFileConstants.be)},function(){e.forEach(function(e){t.writeLeafElement("slicer",function(){t.writeAttributeString("name",s(c(e.name,"\n","_x000a_"))),t.writeAttributeString("cache",s(e.nameInFormula)),t.writeAttributeString("caption",s(e.captionName)),n.isNullOrUndefined(e.columnCount)||t.writeAttributeString("columnCount",e.columnCount),n.isNullOrUndefined(e.showHeader)||e.showHeader||t.writeAttributeString("showCaption","0"),n.isNullOrUndefined(e.style)||n.isNullOrUndefined(e.style.name)||t.writeAttributeString("style",s(e.style.name));var r=241300;e.itemHeight&&(r=l(e.itemHeight+4)),t.writeAttributeString("rowHeight",r),e.disableResizingAndMoving&&t.writeAttributeString("lockedPosition","1")})})}),t.getXmlString()}t.writeSlicer=f;function b(e,t){var r=null;return t.forEach(function(t){t.name===e&&(r=t.id)}),r}function h(e,t,r){var o=null;return r.forEach(function(r){r.name===t&&r.columns.forEach(function(t){t.name===e&&(o=t.id)})}),o}function p(e,t){var r,a,l;return n.isNullOrUndefined(e)?null:(r=b(e.tableName,t),a=h(e.columnName,e.tableName,t),l=new o.XmlWriter,l.writeDocument(),l.writeElement("slicerCacheDefinition",function(){l.writeAttributeString("xmlns",i.XFileConstants.ce),l.writeAttributeString("xmlns:mc",i.XFileConstants.ae),
|
54
|
-
l.writeAttributeString(u,"x"),l.writeAttributeString("xmlns:x",i.XFileConstants.be),l.writeAttributeString("name",c(s(e.name),"\n","_x000a_")),l.writeAttributeString("sourceName",c(s(e.sourceName),"\n","_x000a_"))},function(){l.writeElement("extLst",function(){},function(){l.writeElement("x:ext",function(){l.writeAttributeString("uri","{2F2917AC-EB37-4324-AD4E-5DD8C200BD13}"),l.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){l.writeLeafElement("x15:tableSlicerCache",function(){l.writeAttributeString("tableId",r),l.writeAttributeString("column",a),2===e.sortOrder&&l.writeAttributeString("sortOrder","descending"),e.visuallyNoDataItems===!1?l.writeAttributeString("crossFilter","none"):e.showNoDataItemsInLast===!1&&l.writeAttributeString("crossFilter","showItemsWithNoData")})}),e.showNoDataItems===!1&&l.writeElement("x:ext",function(){l.writeAttributeString("uri","{470722E0-AACD-4C17-9CDC-17EF765DBC7E}"),l.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){l.writeLeafElement("x15:slicerCacheHideItemsWithNoData",function(){})})})}),l.getXmlString())}t.writeTableSlicerCache=p;function m(e){if(n.isNullOrUndefined(e))return null;var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("slicerCacheDefinition",function(){t.writeAttributeString("xmlns",i.XFileConstants.ce),t.writeAttributeString("xmlns:mc",i.XFileConstants.ae),t.writeAttributeString(u,"x"),t.writeAttributeString("xmlns:x",i.XFileConstants.be),t.writeAttributeString("name",c(s(e.name),"\n","_x000a_")),t.writeAttributeString("sourceName",c(s(e.sourceName),"\n","_x000a_"))},function(){t.writeElement("pivotTables",function(){},function(){e.pivotTables.forEach(function(e){t.writeLeafElement("pivotTable",function(){t.writeAttributeString("tabId",e.tabId),t.writeAttributeString("name",s(e.name))})})}),t.writeElement("data",function(){},function(){t.writeElement("tabular",function(){t.writeAttributeString("pivotCacheId",e.pivotCacheId),2===e.sortOrder&&t.writeAttributeString("sortOrder","descending"),e.visuallyNoDataItems===!1?t.writeAttributeString("crossFilter","none"):e.showNoDataItemsInLast===!1&&t.writeAttributeString("crossFilter","showItemsWithNoData")},function(){t.writeElement("items",function(){t.writeAttributeString("count",e.items.length)},function(){e.items.forEach(function(e){t.writeElement("i",function(){t.writeAttributeString("x",e.x),e.nd&&t.writeAttributeString("nd","1"),e.s&&t.writeAttributeString("s","1")},function(){})})})})}),e.showNoDataItems===!1&&t.writeElement("extLst",function(){},function(){t.writeElement("x:ext",function(){t.writeAttributeString("uri","{470722E0-AACD-4C17-9CDC-17EF765DBC7E}"),t.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){t.writeLeafElement("x15:slicerCacheHideItemsWithNoData",function(){})})})}),t.getXmlString()}t.writePivotSlicerCache=m;function g(e,t,r){var o=r.Ej(t,"pivot"),n=r.Ej(t,"timeline"),a=r.Dj(t);o&&o.length>0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{A8765BA9-456A-4dab-B4F3-ACF838C121DE}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){e.writeElement("x14:slicerList",function(){o[0].rid&&e.writeLeafElement("x14:slicer",function(){e.writeAttributeString("r:id",o[0].rid)})})}),n&&n.length>0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{7E03D99C-DC04-49d9-9315-930204A7B6E9}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x15:timelineRefs",function(){n[0].rid&&e.writeLeafElement("x15:timelineRef",function(){e.writeAttributeString("r:id",n[0].rid)})})}),a&&a.length>0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{3A4CF648-6AED-40f4-86FF-DC5316D8AED3}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x14:slicerList",function(){e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){a[0].rid&&e.writeLeafElement("x14:slicer",function(){e.writeAttributeString("r:id",a[0].rid)})})})}t.writeSlicersInWorkSheet=g;function y(e,t,r){var o,n=t&&t.length>0,a=!1,l=!1,s=[],c=[];if(r)for(o=0;o<r.length;o++)r[o].boundsStartDate?(l=!0,c.push(r[o])):(a=!0,s.push(r[o]));e.writeElement("extLst",function(){},function(){a&&e.writeElement("ext",function(){e.writeAttributeString("uri","{BBE1A952-AA13-448e-AADC-164F8A28A991}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){e.writeElement("x14:slicerCaches",function(){},function(){s.forEach(function(t){t.cacheRid&&e.writeLeafElement("x14:slicerCache",function(){e.writeAttributeString("r:id",t.cacheRid)})})})}),n&&(e.writeElement("ext",function(){e.writeAttributeString("uri","{46BE6895-7355-4a93-B00E-2C351335B9C9}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x15:slicerCaches",function(){e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){t.forEach(function(t){t.cacheRid&&e.writeLeafElement("x14:slicerCache",function(){e.writeAttributeString("r:id",t.cacheRid)})})})}),e.writeElement("ext",function(){e.writeAttributeString("uri","{B58B0392-4F1F-4190-BB64-5DF3571DCE5F}"),e.writeAttributeString("xmlns:xcalcf",i.XFileConstants.ee)},function(){e.writeElement("xcalcf:calcFeatures",function(){},function(){var t="xcalcf:feature";e.writeElement(t,function(){e.writeAttributeString("name","microsoft.com:RD")},function(){}),e.writeElement(t,function(){e.writeAttributeString("name","microsoft.com:Single")},function(){}),e.writeElement(t,function(){e.writeAttributeString("name","microsoft.com:FV")},function(){}),e.writeElement(t,function(){e.writeAttributeString("name","microsoft.com:CNMTM")},function(){}),e.writeElement(t,function(){e.writeAttributeString("name","microsoft.com:LET_WF")},function(){})})})),l&&e.writeElement("ext",function(){e.writeAttributeString("uri","{D0CA8CA8-9F24-4464-BF8E-62219DCF47F9}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x15:timelineCacheRefs",function(){},function(){c.forEach(function(t){t.cacheRid&&e.writeLeafElement("x15:timelineCacheRef",function(){e.writeAttributeString("r:id",t.cacheRid)})})})}),(a||l)&&(e.writeElement("ext",function(){e.writeAttributeString("uri","{79F54976-1DA5-4618-B147-4CDE4B953A38}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.de)},function(){e.writeElement("x14:workbookPr",function(){})}),e.writeElement("ext",function(){e.writeAttributeString("uri","{140A7094-0E35-4892-8432-C4D2E57EDEB5}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x15:workbookPr",function(){e.writeAttributeString("chartTrackingRefBase","1")},function(){})}))})}t.writeSlicerCacheInWorkbook=y;function S(e,t,r){t.forEach(function(t){C(e,t,r)})}t.writeSlicerDrawings=S;function C(e,t,r){var o=t&&t.twoCellAnchor;o&&e.writeElement("xdr:twoCellAnchor",function(){t.dynamicMove?t.dynamicSize||e.writeAttributeString("editAs","oneCell"):e.writeAttributeString("editAs","absolute")},function(){r(e,"xdr:from",o.startPoint),r(e,"xdr:to",o.endPoint),x(e,t),w(e,t)})}function w(e,t){e.writeLeafElement("xdr:clientData",function(){t.isLocked||e.writeAttributeString("fLocksWithSheet","0")})}function x(e,t){e.writeElement("mc:AlternateContent",function(){e.writeAttributeString("xmlns:mc",i.XFileConstants.ae)},function(){A(e,t),D(e,t)})}function A(e,t){e.writeElement("mc:Choice",function(){"timeline"===(t&&t.type)?(e.writeAttributeString("xmlns:tsle",d),e.writeAttributeString("Requires","tsle")):(e.writeAttributeString("xmlns:sle15","http://schemas.microsoft.com/office/drawing/2012/slicer"),e.writeAttributeString("Requires","sle15"))},function(){T(e,t)})}function T(e,t){e.writeElement("xdr:graphicFrame",function(){e.writeAttributeString("macro","")},function(){v(e,t),k(e),F(e,t)})}function v(e,t){e.writeElement("xdr:nvGraphicFramePr",function(){},function(){R(e,t),L(e,t)})}function k(e){e.writeElement("xdr:xfrm",function(){},function(){E(e,"a:off","x","0","y","0"),E(e,"a:ext","cx","0","cy","0")})}function F(e,t){e.writeElement("a:graphic",function(){},function(){I(e,t)})}function R(e,t){e.writeElement("xdr:cNvPr",function(){e.writeAttributeString("id","timeline"===(t&&t.type)?"8":"2"),e.writeAttributeString("name",s(c(t.name,"\n","
")))},function(){"timeline"===(t&&t.type)&&e.writeElement("a:extLst",function(){e.writeElement("a:ext",function(){e.writeAttributeString("uri","{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}")},function(){E(e,"a16:creationId","xmlns:a16","http://schemas.microsoft.com/office/drawing/2014/main","id","{729A7851-DBA1-4F10-BB7B-BEC1E3EEDA64}")})})})}function E(e,t,r,o,i,n){e.writeLeafElement(t,function(){e.writeAttributeString(r,o),e.writeAttributeString(i,n)})}function I(e,t){e.writeElement("a:graphicData",function(){"timeline"===(t&&t.type)?e.writeAttributeString("uri",d):e.writeAttributeString("uri","http://schemas.microsoft.com/office/drawing/2010/slicer")},function(){"timeline"===(t&&t.type)?E(e,"tsle:timeslicer","xmlns:tsle",d,"name",c(s(t.name),"\n","
")):E(e,"sle:slicer","xmlns:sle","http://schemas.microsoft.com/office/drawing/2010/slicer","name",c(s(t.name),"\n","
"))})}function L(e,t){e.writeElement("xdr:cNvGraphicFramePr",function(){e.writeLeafElement("a:graphicFrameLocks",function(){t.disableResizingAndMoving&&(e.writeAttributeString("noMove","1"),e.writeAttributeString("noResize","1"))})})}function D(e,t){e.writeElement("mc:Fallback",function(){e.writeAttributeString("xmlns","")},function(){B(e,t)})}function B(e,t){e.writeElement("xdr:sp",function(){e.writeAttributeString("macro",""),e.writeAttributeString("textlink","")},function(){P(e),M(e),V(e,t)})}function P(e){e.writeElement("xdr:nvSpPr",function(){},function(){E(e,"xdr:cNvPr","id","0","name",""),_(e)})}function W(e,t,r){e.writeElement(t,function(){},function(){N(e,r[0],r[1],r[2])})}function _(e){W(e,"xdr:cNvSpPr",["a:spLocks","noTextEdit","1"])}function N(e,t,r,o){e.writeLeafElement(t,function(){e.writeAttributeString(r,o)})}function M(e){e.writeElement("xdr:spPr",function(){},function(){O(e),H(e),U(e),J(e)})}function O(e){e.writeElement("a:xfrm",function(){},function(){E(e,"a:off","x","5486400","y","942975"),E(e,"a:ext","cx","1828800","cy","2524125")})}function H(e){e.writeElement("a:prstGeom",function(){e.writeAttributeString("prst","rect")},function(){G(e)})}function G(e){e.writeLeafElement("a:avLst")}function U(e){W(e,"a:solidFill",["a:prstClr","val","white"])}function J(e){e.writeElement("a:ln",function(){e.writeAttributeString("w","1")},function(){z(e)})}function z(e){W(e,"a:solidFill",["a:prstClr","val","green"])}function V(e,t){e.writeElement("xdr:txBody",function(){},function(){E(e,"a:bodyPr","vertOverflow","clip","horzOverflow","clip"),j(e),X(e,t)})}function j(e){e.writeLeafElement("a:lstStyle")}function X(e,t){e.writeElement("a:p",function(){},function(){K(e,t)})}function K(e,t){e.writeElement("a:r",function(){},function(){E(e,"a:rPr","lang","en-US","sz","1100"),q(e,t)})}function q(e,t){var r;r=t&&"timeline"===t.type?"Timeline: Works in Excel 2013 or higher. Do not move or resize.":"This shape represents a table slicer. Table slicers are supported in Excel or later. If the shape was modified in an earlier version of Excel, or if the workbook was saved in Excel 2007 or earlier, the slicer can't be used.",e.writeElement("a:t",function(){e.writeValue(r)})}},"./src/xlsx-io/writer/sparkline-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/excel-types.ts"),i=r("./src/common/common.ts"),n=r("./src/common/range-parser.ts"),a=r("./src/datamodel/excel-style.ts"),l=r("./src/xlsx-io/common/color-writer.ts"),s=i.IndexHelper.V,c=i.Util.oa;function b(e,t,r){!r.zj(t)||r.zj(t).length<1||e.writeElement("ext",function(){e.writeAttributeString("uri","{05C60535-1F16-4fd2-B633-F4F36F0B64E0}"),e.writeAttributeString("xmlns:x14",o.XFileConstants.$d)},function(){h(e,t,r)})}t.writeSparkline=b;function h(e,t,r){e.writeElement("x14:sparklineGroups",function(){e.writeAttributeString("xmlns:xm",o.XFileConstants._d)},function(){var o=r.zj(t);o.length>0&&o.forEach(function(r){p(e,t,r)})})}t.writeSparklineGroups=h,d={0:"line",1:"column",2:"stacked"},u={2:"span",0:"gap",1:"zero"},f={0:"individual",1:"group",2:"custom"};function p(e,t,r){e.writeElement("x14:sparklineGroup",function(){var t=r&&r.setting;r.sparklineType&&e.writeAttributeString("type",d[r.sparklineType]),r.displayDateAxis&&e.writeAttributeString("dateAxis","1"),i.isNullOrUndefined(t)||(!i.isNullOrUndefined(t.lineWeight)&&3*(""+t.lineWeight)/4-.75>.001&&e.writeAttributeString("lineWeight",3*(""+t.lineWeight)/4),t.displayEmptyCellsAs?e.writeAttributeString("displayEmptyCellsAs",u[t.displayEmptyCellsAs]):e.writeAttributeString("displayEmptyCellsAs",u[0]),t.showMarkers&&e.writeAttributeString("markers","1"),t.showHigh&&e.writeAttributeString("high","1"),t.showLow&&e.writeAttributeString("low","1"),t.showFirst&&e.writeAttributeString("first","1"),t.showLast&&e.writeAttributeString("last","1"),t.showNegative&&e.writeAttributeString("negative","1"),t.displayXAxis&&e.writeAttributeString("displayXAxis","1"),t.displayHidden&&e.writeAttributeString("displayHidden","1"),t.rightToLeft&&e.writeAttributeString("rightToLeft","1"),t.minAxisType&&e.writeAttributeString("minAxisType",f[t.minAxisType]),t.maxAxisType&&e.writeAttributeString("maxAxisType",f[t.maxAxisType]),t.manualMin&&e.writeAttributeString("manualMin",t.manualMin),t.manualMax&&e.writeAttributeString("manualMax",t.manualMax))},function(){var o=r&&r.setting,i=a.ColorHelper.toExcelColor(o.seriesColor||"rgba(36,64,98,1.0)");l.writeColor(e,"x14:colorSeries",i),i=a.ColorHelper.toExcelColor(o.negativeColor||"brown"),l.writeColor(e,"x14:colorNegative",i),i=a.ColorHelper.toExcelColor(o.axisColor||"black"),l.writeColor(e,"x14:colorAxis",i),i=a.ColorHelper.toExcelColor(o.markersColor||"rgba(36,64,98,1.0)"),l.writeColor(e,"x14:colorMarkers",i),i=a.ColorHelper.toExcelColor(o.firstMarkerColor||"rgba(149,179,215,1.0)"),l.writeColor(e,"x14:colorFirst",i),i=a.ColorHelper.toExcelColor(o.lastMarkerColor||"rgba(149,179,215,1.0)"),l.writeColor(e,"x14:colorLast",i),i=a.ColorHelper.toExcelColor(o.highMarkerColor||"blue"),l.writeColor(e,"x14:colorHigh",i),i=a.ColorHelper.toExcelColor(o.lowMarkerColor||"blue"),l.writeColor(e,"x14:colorLow",i),r.displayDateAxis&&r.axisReference&&e.writeElement("xm:f",function(){"string"==typeof r.axisReference?e.writeValue(r.axisReference):e.writeValue(g(r.axisReference.sheetName||t,r.axisReference))}),r.sparklines&&r.sparklines.length>0&&e.writeElement("x14:sparklines",function(){r.sparklines.forEach(function(r){m(e,t,r)})})})}t.writeSparklineGroup=p;function m(e,t,r){e.writeElement("x14:sparkline",function(){i.isNullOrUndefined(r.data)||(e.writeElement("xm:f",function(){},function(){"string"==typeof r.data?e.writeValue(r.data):e.writeValue(g(r.data.sheetName||t,r.data))}),e.writeElement("xm:sqref",function(){},function(){e.writeValue(n.getRangeString([{row:r.row,col:r.col,rowCount:1,colCount:1}]))}))})}function g(e,t){return c(s(e)+"!"+n.getRangeString([t]))}},"./src/xlsx-io/writer/style-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/tuple.ts"),a=r("./src/datamodel/excel-style.ts"),l=r("./src/datamodel/excel-style.ts"),s=r("./src/common/common.ts"),c=r("./src/xlsx-io/common/color-writer.ts"),d=void 0,u={wholeSlicerStyle:"wholeTable",headerStyle:"headerRow",wholeTableStyle:"wholeTable",headerRowStyle:"headerRow",footerRowStyle:"totalRow",highlightFirstColumnStyle:"firstColumn",highlightLastColumnStyle:"lastColumn",firstRowStripStyle:"firstRowStripe",secondRowStripStyle:"secondRowStripe",firstColumnStripStyle:"firstColumnStripe",secondColumnStripStyle:"secondColumnStripe",firstHeaderCellStyle:"firstHeaderCell",lastHeaderCellStyle:"lastHeaderCell",firstFooterCellStyle:"firstTotalCell",lastFooterCellStyle:"lastTotalCell",reportFilterLabelsStyle:"pageFieldLabels",reportFilterValuesStyle:"pageFieldValues",firstRowStripeStyle:"firstRowStripe",secondRowStripeStyle:"secondRowStripe",firstColumnStripeStyle:"firstColumnStripe",secondColumnStripeStyle:"secondColumnStripe",subtotalColumn1Style:"firstSubtotalColumn",subtotalColumn2Style:"secondSubtotalColumn",subtotalColumn3Style:"thirdSubtotalColumn",subtotalRow1Style:"firstSubtotalRow",subtotalRow2Style:"secondSubtotalRow",subtotalRow3Style:"thirdSubtotalRow",columnSubheading1Style:"firstColumnSubheading",columnSubheading2Style:"secondColumnSubheading",columnSubheading3Style:"thirdColumnSubheading",rowSubheading1Style:"firstRowSubheading",rowSubheading2Style:"secondRowSubheading",rowSubheading3Style:"thirdRowSubheading",blankRowStyle:"blankRow",grandTotalColumnStyle:"lastColumn",grandTotalRowStyle:"totalRow",firstHeaderCellStyleL:"firstHeaderCell",firstColumnStyle:"firstColumn"},f={selectedItemWithDataStyle:"selectedItemWithData",selectedItemWithNoDataStyle:"selectedItemWithNoData",unSelectedItemWithDataStyle:"unselectedItemWithData",unSelectedItemWithNoDataStyle:"unselectedItemWithNoData",hoveredSelectedItemWithDataStyle:"hoveredSelectedItemWithData",hoveredSelectedItemWithNoDataStyle:"hoveredSelectedItemWithNoData",hoveredUnSelectedItemWithDataStyle:"hoveredUnselectedItemWithData",hoveredUnSelectedItemWithNoDataStyle:"hoveredUnselectedItemWithNoData"},b={selectionLabelStyle:"selectionLabel",timeLevelStyle:"timeLevel",periodLabel1Style:"periodLabel1",periodLabel2Style:"periodLabel2",selectedTimeBlockStyle:"selectedTimeBlock",unselectedTimeBlockStyle:"unselectedTimeBlock",selectedTimeBlockSpaceStyle:"selectedTimeBlockSpace"};function h(e,t,r,o,i,n,a){e.writeAttributeString(t,r),e.writeAttributeString(o,i),e.writeAttributeString(n,a)}function p(e,t){var r=x(e,t),a=new o.XmlWriter;return a.writeDocument(),a.writeElement("styleSheet",function(){a.writeAttributeString("xmlns",i.XFileConstants.Hd),a.writeAttributeString("xmlns:mc",i.XFileConstants.Jd),a.writeAttributeString("xmlns:x14ac",i.XFileConstants.Nd),a.writeAttributeString("mc:Ignorable",i.XFileConstants.Od)},function(){var t,o,i,l,c,f,b;if(r.gn.count>0&&a.writeElement("numFmts",function(){a.writeAttributeString("count",""+r.gn.count)},function(){for(var e in r.gn)r.gn.hasOwnProperty(e)&&"count"!==e&&A(a,{key:e,value:r.gn[e]})}),a.writeElement("fonts",function(){a.writeAttributeString("count",""+r.Rn.length)},function(){for(var e=0,t=r.Rn.length;e<t;e++)T(a,r.Rn[e])}),a.writeElement("fills",function(){a.writeAttributeString("count",""+r.Sn.length)},function(){var e,t=function(e){a.writeElement("fill",d,function(){a.writeLeafElement("patternFill",function(){a.writeAttributeString("patternType",e)})})};for(t("none"),t("gray125"),e=2;e<r.Sn.length;e++)k(a,r.Sn[e])}),a.writeElement("borders",function(){a.writeAttributeString("count",""+r.Tn.length)},function(){for(var e=0,t=r.Tn.length;e<t;e++)F(a,r.Tn[e])}),E(a,r.Un,"cellStyleXfs",!0),E(a,r.Vn,"cellXfs",!1),0===r.af.length)L(a);else{for(t=[],o=Object.keys(r.Wn),i=o.length,l=0,c=i;l<c;l++)f=o[l],b=r.Wn[f],t.push(new n.Tuple(b,r.af[b],f));0===t.length?L(a):a.writeElement("cellStyles",function(){a.writeAttributeString("count",""+t.length)},function(){var e,r,o=function(e,r){var o=t[e],i=o.item2;i?a.writeLeafElement("cellStyle",function(){a.writeAttributeString("name",s.Util.oa(o.item3)),a.writeAttributeString("xfId",""+o.item1),i.isBuiltInStyle()&&(a.writeAttributeString("builtinId",""+i.builtInStyle),i.isCustomBuiltin&&a.writeAttributeString("customBuiltin","1"),1!==i.builtInStyle&&2!==i.builtInStyle||a.writeAttributeString("iLevel",""+i.outLineLevel))}):a.writeLeafElement("cellStyle",function(){a.writeAttributeString("name",o.item3),a.writeAttributeString("xfId",""+o.item1)})};for(e=0,r=t.length;e<r;e++)o(e,r)})}B(a,e),e.mh.length>0?a.writeElement("tableStyles",function(){a.writeAttributeString("count",e.mh.length),a.writeAttributeString("defaultTableStyle","TableStyleMedium2"),a.writeAttributeString("defaultPivotStyle","PivotStyleMedium9")},function(){var t=e.mh;t&&t.forEach(function(e){a.writeElement("tableStyle",function(){a.writeAttributeString("name",e.name),e.isPivot?a.writeAttributeString("table","0"):(a.writeAttributeString("pivot","0"),s.isNullOrUndefined(e.tableId)||a.writeAttributeString("table",e.tableId)),a.writeAttributeString("count",e.styleElements.length)},function(){e.styleElements&&e.styleElements.length>0&&e.styleElements.forEach(function(e){a.writeLeafElement("tableStyleElement",function(){a.writeAttributeString("type",u[e.type]),a.writeAttributeString("dxfId",e.dxfId),s.isNullOrUndefined(e.size)||a.writeAttributeString("size",e.size)})})})})}):a.writeLeafElement("tableStyles",function(){h(a,"count","0","defaultTableStyle","TableStyleMedium2","defaultPivotStyle","PivotStyleLight16")}),(e.oh.length>0||e.qh.length>0)&&a.writeElement("extLst",function(){e.oh.length>0&&(m(a,e),y(a,e.oh)),e.qh.length>0&&(g(a,e),S(a,e.qh))})}),{xml:a.getXmlString(),styleOffset:r.Xn}}t.writeStyle=p;function m(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{46F421CA-312F-682f-3DD2-61675219B42D}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){P(e,t)})}function g(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{A0A4C193-F2C1-4fcb-8827-314CF55A85BB}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){W(e,t)})}function y(e,t){var r,o="SlicerStyle",n="Light",a="Dark",l=["SlicerStyleOther1","SlicerStyleOther2"];for(r=1;r<7;r++)l.push(o+n+r),l.push(o+a+r);e.writeElement("ext",function(){e.writeAttributeString("uri","{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){e.writeElement("x14:slicerStyles",function(){e.writeAttributeString("defaultSlicerStyle","SlicerStyleLight1")},function(){t&&t.length&&t.forEach(function(t){l.indexOf(t.name)===-1&&e.writeElement("x14:slicerStyle",function(){e.writeAttributeString("name",t.name)},function(){t.styleElements&&t.styleElements.length&&e.writeElement("x14:slicerStyleElements",function(){t.styleElements.forEach(function(t){e.writeLeafElement("x14:slicerStyleElement",function(){e.writeAttributeString("type",f[t.type]),e.writeAttributeString("dxfId",t.dxfId)})})})})})})})}function S(e,t){var r,o="TimeSlicerStyle",n="Light",a="Dark",l=[];for(r=1;r<7;r++)l.push(o+n+r),l.push(o+a+r);e.writeElement("ext",function(){e.writeAttributeString("uri","{9260A510-F301-46a8-8635-F512D64BE5F5}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x15:timelineStyles",function(){e.writeAttributeString("defaultTimelineStyle","TimeSlicerStyleLight1")},function(){t&&t.length&&t.forEach(function(t){l.indexOf(t.name)===-1&&e.writeElement("x15:timelineStyle",function(){e.writeAttributeString("name",t.name)},function(){t.styleElements&&t.styleElements.length&&e.writeElement("x15:timelineStyleElements",function(){t.styleElements.forEach(function(t){e.writeLeafElement("x15:timelineStyleElement",function(){e.writeAttributeString("type",b[t.type]),e.writeAttributeString("dxfId",t.dxfId)})})})})})})})}function C(e){var t=e&&e.fontName;return t&&('"'===t.charAt(0)&&(t=t.substr(1)),'"'===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),e.fontName=t),e}function w(e,t){var r,o=e.length;if(0===o)return-1;for(r=0;r<o;r++)if(e[r].equals(t,!0))return r;return-1}function x(e,t){var r,o,i,c,u,f,b,h,p,m,g,y,S,x,A,T,v,k,F,R,E,I,L,D,B,P={Xn:0,Rn:[],Sn:[],Tn:[],gn:{count:0},Yn:{},Un:d,af:d,Wn:e.Sj()},W=e.gj(),_=e.hj(),N=e.ij();if(N&&0!==N.length||(_?(r=new a.ExcelStyle,r.builtInStyle=0,r.name="Normal",r.format(_),N=[],N.push(r)):(N=[],N.push(a.BuiltInExcelStyles.getNormalStyle()))),o="Normal",N)for(i=0,c=N.length;i<c;i++)u=N[i],u.isBuiltInStyle()&&0===u.builtInStyle&&(o=u.name);for(P.af=N,f=s.Util.ka(N,function(e){return e.name===o},null),b=s.Util.ka(W,function(e){return!e.isStyleFormat},null),h=s.Util.ka(W,function(e){return e.isStyleFormat},null),null!==b&&b.equals(_,!0)||(W.splice(0,0,_),P.Xn+=1),null!==h&&h.equals(f.format())||(W.splice(0,0,f.format()),P.Xn+=1),p=0,m=0,g=0,y=0,S=f.format(),x=C(S.fontForColumnWidth?S.fontForColumnWidth:S.font),P.Rn.push(x),A=new l.ExcelFill,A.patternType=0,A.bgColor=a.ExcelColor.EmptyColor,A.fgColor=a.ExcelColor.EmptyColor,P.Sn.push(A),A=new l.ExcelFill,A.patternType=17,A.bgColor=a.ExcelColor.EmptyColor,A.fgColor=a.ExcelColor.EmptyColor,P.Sn.push(A),P.Tn.push(new a.ExcelBorder),P.Vn=[],P.Un=[],T=0,i=0,c=W.length;i<c;i++)v=W[i],v.font&&(p=s.Util.la(P.Rn,v.font),p===-1&&(P.Rn.push(C(v.font)),p=P.Rn.length-1)),v.numberFormat?(m=v.numberFormat.numberFormatId,void 0===P.gn[m]&&P.gn.count++,P.gn[m]=s.Util.ua(v.numberFormat.numberFormatCode,"\n","_x000a_"),P.Yn[v.numberFormat.numberFormatCode]=m):v.numberFormatIndex>=0&&(m=v.numberFormatIndex),v.border&&(y=s.Util.la(P.Tn,v.border),y===-1&&(P.Tn.push(v.border),y=P.Tn.length-1)),s.isNullOrUndefined(v.fill)||0===v.fill.patternType?g=0:(k=v.fill,g=s.Util.la(P.Sn,k),g===-1&&(P.Sn.push(k),g=P.Sn.length-1)),v.isStyleFormat?(t[T]=""+P.Un.length,T++,P.Un.push(new n.Tuple(m,p,g,y,0,v,new n.Tuple(v.isHidden,v.isLocked)))):(F=new n.Tuple(m,p,g,y,0,v,new n.Tuple(v.isHidden,v.isLocked)),R=w(P.Vn,F),R===-1?(t[T]=""+P.Vn.length,P.Vn.push(F)):t[T]=""+R,T++);if(e.Ih&&e.Ih.length>0)for(E=e.Ih,I=E.length,i=0;i<I;i++)L=E[i],D=void 0,B=void 0,L.numberFormat?(D=L.numberFormat.numberFormatId,B=L.numberFormat.numberFormatCode):(D=L.numberFormatIndex,B=a.ExtendedNumberFormatHelper.getFormatCode(L)),void 0===P.gn[D]&&P.gn.count++,P.gn[D]=B,P.Yn[B]=m;return e.Yn=P.Yn,P}function A(e,t){t.key<0||e.writeLeafElement("numFmt",function(){e.writeAttributeString("numFmtId",""+t.key),e.writeAttributeString("formatCode",s.Util.oa(""+t.value))})}function T(e,t,r){t&&e.writeElement("font",d,function(){if(t.isBold&&e.writeLeafElement("b"),t.isItalic&&e.writeLeafElement("i"),t.isStrikeOut&&e.writeLeafElement("strike"),0!==t.underLineStyle&&(1===t.underLineStyle?e.writeLeafElement("u"):e.writeLeafElement("u",function(){e.writeAttributeString("val",l.UnderLineStyle[t.underLineStyle])})),!r&&(0!==t.fontSize||t.fontSize!==-1)){var o=t.fontSize;o>0&&e.writeLeafElement("sz",function(){e.writeAttributeString("val",""+o)})}void 0!==t.fontColor&&t.fontColor!==a.ExcelColor.EmptyColor&&c.writeColor(e,"color",t.fontColor),r||(0!==t.vertAlign&&e.writeLeafElement("vertAlign",function(){e.writeAttributeString("val",l.VertAlign[t.vertAlign])}),s.StringEx.O(t.fontName)||e.writeLeafElement("name",function(){e.writeAttributeString("val",t.fontName)}),s.isNullOrUndefined(t.fontFamily)||0===t.fontFamily||e.writeLeafElement("family",function(){e.writeAttributeString("val",""+t.fontFamily)}),t.charSetIndex>0&&e.writeLeafElement("charset",function(){e.writeAttributeString("val",""+t.charSetIndex)}),t.isShadowStyle&&e.writeLeafElement("shadow",function(){e.writeAttributeString("val","1")}),t.isOutlineStyle&&e.writeLeafElement("outline",function(){e.writeAttributeString("val","1")}),0!==t.fontScheme&&e.writeLeafElement("scheme",function(){e.writeAttributeString("val",a.FontSchemeCategory[t.fontScheme])}))})}function v(e,t){t&&e.writeElement("rPr",d,function(){if(t.isBold&&e.writeLeafElement("b"),t.charSetIndex>0&&e.writeLeafElement("charset",function(){e.writeAttributeString("val",""+t.charSetIndex)}),t.foreColor&&t.foreColor!==a.ExcelColor.EmptyColor&&c.writeColor(e,"color",t.foreColor),t.isCondense&&e.writeLeafElement("condense"),t.isExtend&&e.writeLeafElement("extend"),s.isNullOrUndefined(t.fontFamilySet)||0===t.fontFamilySet||e.writeLeafElement("family",function(){e.writeAttributeString("val",""+t.fontFamilySet)}),t.isItalic&&e.writeLeafElement("i"),t.isOutlineStyle&&e.writeLeafElement("outline",function(){e.writeAttributeString("val","1")}),s.StringEx.O(t.fontFamily)||e.writeLeafElement("rFont",function(){e.writeAttributeString("val",t.fontFamily)}),t.fontScheme&&0!==t.fontScheme&&e.writeLeafElement("scheme",function(){e.writeAttributeString("val",a.FontSchemeCategory[t.fontScheme])}),t.isShadowStyle&&e.writeLeafElement("shadow",function(){e.writeAttributeString("val","1")}),t.isStrikeOut&&e.writeLeafElement("strike"),t.fontSize&&0!==t.fontSize||t.fontSize!==-1){var r=t.fontSize;r>0&&e.writeLeafElement("sz",function(){e.writeAttributeString("val",""+r)})}t.underLineStyle&&0!==t.underLineStyle&&(1===t.underLineStyle?e.writeLeafElement("u"):e.writeLeafElement("u",function(){e.writeAttributeString("val",l.UnderLineStyle[t.underLineStyle])})),t.vertAlign&&0!==t.vertAlign&&e.writeLeafElement("vertAlign",function(){e.writeAttributeString("val",l.VertAlign[t.vertAlign])})})}t.writerRichTextStyle=v;function k(e,t,r){e.writeElement("fill",d,function(){t.stops?e.writeElement("gradientFill",function(){var r,o,i,n=["degree","left","right","top","bottom"];for(r=0,o=n;r<o.length;r++)i=o[r],s.isNullOrUndefined(t[i])||e.writeAttributeString(i,t[i]);"path"===t.type&&e.writeAttributeString("type","path")},function(){var r,o=function(r){e.writeElement("stop",function(){e.writeAttributeString("position",t.stops[r].position)},function(){c.writeColor(e,"color",t.stops[r].color)})};for(r=0;r<t.stops.length;r++)o(r)}):e.writeElement("patternFill",function(){e.writeAttributeString("patternType",l.FillPatternType[t.patternType])},function(){t.fgColor&&c.writeColor(e,"fgColor",t.fgColor),t.bgColor&&c.writeColor(e,"bgColor",t.bgColor)})})}function F(e,t,r,o){var i=!1;e.writeElement("border",function(){t.diagonalDown&&t.diagonalDown.color&&t.diagonalDown.lineStyle&&(i=!0,e.writeAttributeString("diagonalDown",1)),t.diagonalUp&&t.diagonalUp.color&&t.diagonalUp.lineStyle&&(i=!0,e.writeAttributeString("diagonalUp",1))},function(){(!r||r&&t.left)&&R(e,"left",t.left),(!r||r&&t.right)&&R(e,"right",t.right),(!r||r&&t.top)&&R(e,"top",t.top),(!r||r&&t.bottom)&&R(e,"bottom",t.bottom),!t.vertical||!o&&i||R(e,"vertical",t.vertical),!t.horizontal||!o&&i||R(e,"horizontal",t.horizontal);var n=!1;t.diagonalUp&&t.diagonalUp.color&&t.diagonalUp.lineStyle&&(R(e,"diagonal",t.diagonalUp),n=!0),t.diagonalDown&&t.diagonalDown.color&&t.diagonalDown.lineStyle&&!n&&R(e,"diagonal",t.diagonalDown)})}function R(e,t,r){r&&(0!==r.lineStyle||r.color?e.writeElement(t,function(){0!==r.lineStyle&&e.writeAttributeString("style",l.ExcelBorderStyle[r.lineStyle])},function(){r.color&&c.writeColor(e,"color",r.color)}):e.writeLeafElement(t))}function E(e,t,r,o){0===t.length?e.writeElement(r,function(){e.writeAttributeString("count","1")},function(){e.writeLeafElement("xf",function(){e.writeAttributeString("numFmtId","0"),e.writeAttributeString("fontId","0"),e.writeAttributeString("fillId","0"),e.writeAttributeString("borderId","0"),o||e.writeAttributeString("xfId","0")})}):e.writeElement(r,function(){e.writeAttributeString("count",""+t.length)},function(){var r,i,n=function(r,i){var n=t[r],c=n.item6,d=n.item7,u=0!==c.horizontalAlign||2!==c.verticalAlign||0!==c.rotation||0!==c.readingOrder||c.isWordWrap||c.isShrinkToFit||c.isJustfyLastLine||c.indent>0,f=d&&(d.item1||!d.item2),b="writeElement";u||f||(b="writeLeafElement"),e[b]("xf",function(){if(e.writeAttributeString("numFmtId",""+n.item1),e.writeAttributeString("fontId",""+n.item2),e.writeAttributeString("fillId",""+n.item3),e.writeAttributeString("borderId",""+n.item4),c){if(o)I(e,c,"applyFont",!0),I(e,c,"applyFill",!0),I(e,c,"applyBorder",!0),I(e,c,"applyNumberFormat",!0),I(e,c,"applyAlignment",!0),I(e,c,"applyProtection",!0);else{if(c.isStyleFormat||s.isNullOrUndefined(c.parentFormatID))e.writeAttributeString("xfId","0");else{var t=c.parentFormatID;s.isNullOrUndefined(t)?e.writeAttributeString("xfId","0"):e.writeAttributeString("xfId",""+t)}s.isNullOrUndefined(c.applyFont)&&0===n.item2||I(e,c,"applyFont",!1),s.isNullOrUndefined(c.applyFill)||I(e,c,"applyFill",!1),s.isNullOrUndefined(c.applyBorder)||I(e,c,"applyBorder",!1),s.isNullOrUndefined(c.applyNumberFormat)||I(e,c,"applyNumberFormat",!1),s.isNullOrUndefined(c.applyAlignment)||I(e,c,"applyAlignment",!1),s.isNullOrUndefined(c.applyProtection)||I(e,c,"applyProtection",!1)}s.isNullOrUndefined(c.quotePrefix)||e.writeAttributeString("quotePrefix",c.quotePrefix===!0?"1":"0");
|
55
|
-
}},function(){u&&e.writeLeafElement("alignment",function(){0!==c.horizontalAlign?e.writeAttributeString("horizontal",l.ExcelHorizontalAlignment[c.horizontalAlign]):0===c.horizontalAlign&&c.indent>0&&e.writeAttributeString("horizontal",l.ExcelHorizontalAlignment[1]),2!==c.verticalAlign&&e.writeAttributeString("vertical",a.ExcelVerticalAlignment[c.verticalAlign]),c.isVerticalText===!0?e.writeAttributeString("textRotation",255):0!==c.rotation&&e.writeAttributeString("textRotation",""+c.rotation),0!==c.readingOrder&&e.writeAttributeString("readingOrder",l.TextDirection[c.readingOrder]),c.isWordWrap&&e.writeAttributeString("wrapText","1"),c.isShrinkToFit&&e.writeAttributeString("shrinkToFit","1"),c.isJustfyLastLine&&e.writeAttributeString("justifyLastLine","1"),c.indent>0&&e.writeAttributeString("indent",""+c.indent)}),f&&e.writeLeafElement("protection",function(){d.item2||e.writeAttributeString("locked","0"),d.item1&&e.writeAttributeString("hidden","1")})})};for(r=0,i=t.length;r<i;r++)n(r,i)})}function I(e,t,r,o){var i=t[r],n;o&&i===!1?n="0":o||i!==!0||(n="1"),s.isNullOrUndefined(n)||e.writeAttributeString(r,n)}function L(e){e.writeElement("cellStyles",function(){e.writeAttributeString("count","1")},function(){e.writeLeafElement("cellStyle",function(){h(e,"name","Normal","builtinId","0","xfId","0")})})}function D(e,t,r){for(var o=0;o<r.length;o++)_(e,t,r[o],"dxf")}function B(e,t,r){var o=r?r:t.hf;0===o.length?e.writeLeafElement("dxfs",function(){e.writeAttributeString("count","0")}):e.writeElement("dxfs",function(){e.writeAttributeString("count",o.length)},function(){D(e,t,o)})}function P(e,t){var r=t.Ch;0===r.length?e.writeLeafElement("x14:dxfs",function(){e.writeAttributeString("count","0")}):e.writeElement("x14:dxfs",function(){e.writeAttributeString("count",r.length)},function(){D(e,t,r)})}function W(e,t){var r=t.Dh;0===r.length?e.writeLeafElement("x15:dxfs",function(){e.writeAttributeString("count","0")}):e.writeElement("x15:dxfs",function(){e.writeAttributeString("count",r.length)},function(){for(var o=0;o<r.length;o++)_(e,t,r[o],"dxf")})}function _(e,t,r,o){e.writeElement(o,function(){var o,i,n=r.isColorFilter?r:a.ConverterHelper.toDifferentialFormatting(r,t);n.font&&T(e,n.font,n.isPartFontStyle),(n.numberFormat||n.numberFormatIndex>=0)&&(o=void 0,i=void 0,n.numberFormat?(o=n.numberFormat.numberFormatId,i=n.numberFormat.numberFormatCode):(o=n.numberFormatIndex,i=n.numberFormatCode),A(e,{key:o,value:i})),n.fill&&(1===n.fill.patternType&&(n.fill.bgColor=n.fill.fgColor),k(e,n.fill,!0)),n.border&&F(e,n.border,n.isSlicerHeader,!0)})}t.writeDxf=_},"./src/xlsx-io/writer/table-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/common/range-parser.ts"),l=r("./src/xlsx-io/writer/autofilter-writer.ts");function c(e){return e.indexOf("LET(")>-1}function d(e,t){var r=e;return"number"==typeof t[e]?(t[e]++,r+="_"+t[e]):t[e]=0,r}function u(e,t,r,s){if(n.isNullOrUndefined(e))return null;var u=new o.XmlWriter;return u.writeDocument(),u.writeElement("table",function(){var t,r;u.writeAttributeString("xmlns",i.XFileConstants.Md),u.writeAttributeString("id",e.id),t=e.name.split(" ").join("_"),u.writeAttributeString("name",t),r=d(t.split("-").join("_"),s),u.writeAttributeString("displayName",r),u.writeAttributeString("ref",a.getRangeString([{row:e.row,col:e.col,rowCount:e.rowCount,colCount:e.colCount}])),e.showHeader===!1&&u.writeAttributeString("headerRowCount","0"),e.showFooter&&u.writeAttributeString("totalsRowCount","1")},function(){var o,i;e.rowFilter&&!n.isNullOrUndefined(e.rowFilter)&&(o=void 0,i=t.Bj(r,e.rowFilter,e.tableSortInfo),i&&i.sortInfo&&(o=i.sortInfo,i.sortInfo=null),e.showHeader!==!1&&(f(e.rowFilter)||h(i),l.writeAutoFilter(u,i)),o&&l.writeSortInfo(u,o)),e.columns&&e.columns.length>0&&u.writeElement("tableColumns",function(){u.writeAttributeString("count",e.columns.length)},function(){e.columns.forEach(function(t,r){if(!(r>=e.colCount)){var o=b(t.footerFormula);"custom"!==o?u.writeElement("tableColumn",function(){u.writeAttributeString("id",""+t.id);var e=t.name;e=n.Util.ua(e,"\r",""),u.writeAttributeString("name",n.Util.oa(n.Util.ua(e,"\n","_x000a_"))),n.isNullOrUndefined(t.footerValue)||u.writeAttributeString("totalsRowLabel",n.Util.oa(n.Util.xa(""+t.footerValue,!0))),n.isNullOrUndefined(t.footerFormula)||u.writeAttributeString("totalsRowFunction",o)},function(){var e=t.dataAreaFormula;n.isNullOrUndefined(e)||c(e)||u.writeElement("calculatedColumnFormula",function(){u.writeValue(n.Util.oa(n.addXLFNPrefix(e)))})}):u.writeElement("tableColumn",function(){u.writeAttributeString("id",""+t.id);var e=t.name;e=n.Util.ua(e,"\r",""),u.writeAttributeString("name",n.Util.oa(n.Util.ua(e,"\n","_x000a_"))),u.writeAttributeString("totalsRowFunction","custom")},function(){var e=t.dataAreaFormula;n.isNullOrUndefined(e)||c(e)||u.writeElement("calculatedColumnFormula",function(){u.writeValue(n.Util.oa(n.addXLFNPrefix(e)))}),u.writeElement("totalsRowFormula",function(){u.writeValue(n.Util.oa(t.footerFormula))})})}})}),u.writeLeafElement("tableStyleInfo",function(){if(e.style){var t="";t=n.isNullOrUndefined(e.style.buildInName)?e.style.name:"TableStyle"+e.style.buildInName,u.writeAttributeString("name",t)}e.highlightFirstColumn?u.writeAttributeString("showFirstColumn","1"):u.writeAttributeString("showFirstColumn","0"),e.highlightLastColumn?u.writeAttributeString("showLastColumn","1"):u.writeAttributeString("showLastColumn","0"),n.isNullOrUndefined(e.bandRows)?u.writeAttributeString("showRowStripes","1"):u.writeAttributeString("showRowStripes","0"),e.bandColumns?u.writeAttributeString("showColumnStripes","1"):u.writeAttributeString("showColumnStripes","0")}),e.reservedElement&&u.writeElement("extLst",function(){},function(){u.writeElement("ext",function(){n.isNullOrUndefined(e.reservedElement.ext._attr&&e.reservedElement.ext._attr.uri)||u.writeAttributeString("uri",e.reservedElement.ext._attr.uri),n.isNullOrUndefined(e.reservedElement.ext._attr&&e.reservedElement.ext._attr["xmlns:x14"])||u.writeAttributeString("xmlns:x14",e.reservedElement.ext._attr["xmlns:x14"])},function(){var t,r="vp:columns",o=e.reservedElement.ext[r];n.isNullOrUndefined(o)||u.writeElement(r,function(){n.isNullOrUndefined(o._attr&&o._attr["xmlns:vp"])||u.writeAttributeString("xmlns:vp",o._attr["xmlns:vp"])},function(){n.isNullOrUndefined(o[r])||u.writeValue(o[r])}),t=e.reservedElement.ext["x14:table"],n.isNullOrUndefined(t&&t._attr)||u.writeLeafElement("x14:table",function(){n.isNullOrUndefined(t._attr.altText)||u.writeAttributeString("altText",t._attr.altText),n.isNullOrUndefined(t._attr.altTextSummary)||u.writeAttributeString("altTextSummary",t._attr.altTextSummary)})})})}),u.getXmlString()}t.writeTable=u;function f(e){var t,r;if(!e.showFilterButton)return!1;t=e.filterButtonVisibleInfo;for(r in t)if(t.hasOwnProperty(r)&&!t[r])return!1;return!0}s={101:"average",102:"countNums",103:"count",104:"max",105:"min",107:"stdDev",109:"sum",110:"let"};function b(e){var t,r;if(!n.isNullOrUndefined(e))return t=/\[\S[\S\s]*\S\]/,e=e.trim(),"SUBTOTAL("!==e.substr(0,9)||!t.test(e)||e.indexOf("[[")?"custom":(r=e.substr(9,3),s[r]||"custom")}function h(e){if(0===e.filterColumns.length)for(var t=0;t<e.range.colCount;t++)e.filterColumns.push({autoFilterColumnId:t});e.filterColumns.forEach(function(e){e.hiddenButton="1"})}},"./src/xlsx-io/writer/theme-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/builtIn-resource.ts"),a=r("./src/xlsx-io/common/color-writer.ts");function s(e){var t,r=e.Hi();return r||(r="Office"),t=new o.XmlWriter,t.writeDocument(),t.writeElement("a:theme",function(){t.writeAttributeString("xmlns:a",i.XFileConstants.Xd),r&&r.name?t.writeAttributeString("name",r.name):"Office"===r?t.writeAttributeString("name","Office Theme"):t.writeAttributeString("name",r)},function(){t.writeElement("a:themeElements",void 0,function(){var e,o;r&&r.colorScheme?(e=r.colorScheme,t.writeElement("a:clrScheme",function(){t.writeAttributeString("name",e.name)},function(){a.writeColorScheme(t,"a:dk1",e.schemeColors[1]),a.writeColorScheme(t,"a:lt1",e.schemeColors[0]),a.writeColorScheme(t,"a:dk2",e.schemeColors[3]),a.writeColorScheme(t,"a:lt2",e.schemeColors[2]),a.writeColorScheme(t,"a:accent1",e.schemeColors[4]),a.writeColorScheme(t,"a:accent2",e.schemeColors[5]),a.writeColorScheme(t,"a:accent3",e.schemeColors[6]),a.writeColorScheme(t,"a:accent4",e.schemeColors[7]),a.writeColorScheme(t,"a:accent5",e.schemeColors[8]),a.writeColorScheme(t,"a:accent6",e.schemeColors[9]),a.writeColorScheme(t,"a:hlink",e.schemeColors[10]),a.writeColorScheme(t,"a:folHlink",e.schemeColors[11])})):n.ThemeClrSchemes[r]?t.xml.addString(n.ThemeClrSchemes[r]):t.xml.addString(n.ThemeClrSchemes.Office),r&&r.fontScheme?(o=r.fontScheme,t.writeElement("a:fontScheme",function(){t.writeAttributeString("name",o.name)},function(){t.writeElement("a:majorFont",void 0,function(){c(t,o.majorFont,!0)}),t.writeElement("a:minorFont",void 0,function(){c(t,o.minorFont,!1)})})):n.ThemeFontSchemes[r]?t.xml.addString(n.ThemeFontSchemes[r]):t.xml.addString(n.ThemeFontSchemes.Office),n.ThemeFmtSchemes[r]?t.xml.addString(n.ThemeFmtSchemes[r]):t.xml.addString(n.ThemeFmtSchemes.Office)}),t.writeLeafElement("a:objectDefaults"),t.writeLeafElement("a:extraClrSchemeLst")}),t.getXmlString()}t.writeTheme=s;function c(e,t,r){var o,n,a;if(t)if(t.runFormattings&&(e.writeLeafElement("a:"+i.FontLanguage[0],function(){e.writeAttributeString("typeface",f(t.runFormattings,0))}),e.writeLeafElement("a:"+i.FontLanguage[2],function(){e.writeAttributeString("typeface",f(t.runFormattings,2))}),e.writeLeafElement("a:"+i.FontLanguage[1],function(){e.writeAttributeString("typeface",f(t.runFormattings,1))})),t.themesFonts&&t.themesFonts.length>0)for(o=function(r,o){var i=t.themesFonts[r];e.writeLeafElement("a:font",function(){e.writeAttributeString("script",i.script),e.writeAttributeString("script",i.typeface)})},n=0,a=t.themesFonts.length;n<a;n++)o(n,a);else r?d(e):u(e)}t.writeThemeFonts=c,l="Times New Roman";function d(e){e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Jpan"),e.writeAttributeString("typeface","\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hang"),e.writeAttributeString("typeface","\ub9d1\uc740 \uace0\ub515")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hans"),e.writeAttributeString("typeface","\u5b8b\u4f53")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hant"),e.writeAttributeString("typeface","\u65b0\u7d30\u660e\u9ad4")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Arab"),e.writeAttributeString("typeface",l)}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hebr"),e.writeAttributeString("typeface",l)}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Thai"),e.writeAttributeString("typeface","Tahoma")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Ethi"),e.writeAttributeString("typeface","Nyala")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Beng"),e.writeAttributeString("typeface","Vrinda")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Gujr"),e.writeAttributeString("typeface","Shruti")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Khmr"),e.writeAttributeString("typeface","MoolBoran")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Knda"),e.writeAttributeString("typeface","Tunga")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Guru"),e.writeAttributeString("typeface","Raavi")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Cans"),e.writeAttributeString("typeface","Euphemia")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Cher"),e.writeAttributeString("typeface","Plantagenet Cherokee")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Yiii"),e.writeAttributeString("typeface","Microsoft Yi Baiti")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Tibt"),e.writeAttributeString("typeface","Microsoft Himalaya")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Thaa"),e.writeAttributeString("typeface","MV Boli")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Deva"),e.writeAttributeString("typeface","Mangal")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Telu"),e.writeAttributeString("typeface","Gautami")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Taml"),e.writeAttributeString("typeface","Latha")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Syrc"),e.writeAttributeString("typeface","Estrangelo Edessa")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Orya"),e.writeAttributeString("typeface","Kalinga")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Mlym"),e.writeAttributeString("typeface","Kartika")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Laoo"),e.writeAttributeString("typeface","DokChampa")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Sinh"),e.writeAttributeString("typeface","Iskoola Pota")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Mong"),e.writeAttributeString("typeface","Mongolian Baiti")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Viet"),e.writeAttributeString("typeface",l)}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Uigh"),e.writeAttributeString("typeface","Microsoft Uighur")})}function u(e){e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Jpan"),e.writeAttributeString("typeface","\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hang"),e.writeAttributeString("typeface","\ub9d1\uc740 \uace0\ub515")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hans"),e.writeAttributeString("typeface","\u5b8b\u4f53")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hant"),e.writeAttributeString("typeface","\u65b0\u7d30\u660e\u9ad4")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Arab"),e.writeAttributeString("typeface","Arial")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hebr"),e.writeAttributeString("typeface","Arial")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Thai"),e.writeAttributeString("typeface","Tahoma")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Ethi"),e.writeAttributeString("typeface","Nyala")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Beng"),e.writeAttributeString("typeface","Vrinda")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Gujr"),e.writeAttributeString("typeface","Shruti")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Khmr"),e.writeAttributeString("typeface","DaunPenh")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Knda"),e.writeAttributeString("typeface","Tunga")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Guru"),e.writeAttributeString("typeface","Raavi")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Cans"),e.writeAttributeString("typeface","Euphemia")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Cher"),e.writeAttributeString("typeface","Plantagenet Cherokee")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Yiii"),e.writeAttributeString("typeface","Microsoft Yi Baiti")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Tibt"),e.writeAttributeString("typeface","Microsoft Himalaya")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Thaa"),e.writeAttributeString("typeface","MV Boli")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Deva"),e.writeAttributeString("typeface","Mangal")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Telu"),e.writeAttributeString("typeface","Gautami")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Taml"),e.writeAttributeString("typeface","Latha")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Syrc"),e.writeAttributeString("typeface","Estrangelo Edessa")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Orya"),e.writeAttributeString("typeface","Kalinga")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Mlym"),e.writeAttributeString("typeface","Kartika")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Laoo"),e.writeAttributeString("typeface","DokChampa")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Sinh"),e.writeAttributeString("typeface","Iskoola Pota")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Mong"),e.writeAttributeString("typeface","Mongolian Baiti")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Viet"),e.writeAttributeString("typeface","Arial")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Uigh"),e.writeAttributeString("typeface","Microsoft Uighur")})}function f(e,t){var r,o,i;if(!e)return"";for(r=0,o=e.length;r<o;r++)if(i=e[r],i.fontLanguage===t)return i.typeface;return""}},"./src/xlsx-io/writer/timeline-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/xlsx-io/writer/pivot-writer.ts"),l=r("./src/datamodel/datamodel-writer.ts"),s=r("./src/xlsx-io/writer/autofilter-writer.ts"),c=n.Util.Ba,d=n.Util.oa,u=n.Util.ua,f=[0,6,10,8,9,17,15,16,14,12,13,18,19,20,21,22,23,40];function b(e){if(n.isNullOrUndefined(e))return null;var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("timelines",function(){t.writeAttributeString("xmlns",i.XFileConstants.de),t.writeAttributeString("xmlns:mc",i.XFileConstants.ae),t.writeAttributeString("mc:Ignorable","x"),t.writeAttributeString("xmlns:x",i.XFileConstants.be)},function(){e.forEach(function(e){t.writeLeafElement("timeline",function(){t.writeAttributeString("name",d(u(e.name,"\n","_x000a_"))),t.writeAttributeString("cache",d(e.nameInFormula)),t.writeAttributeString("caption",d(e.captionName)),t.writeAttributeString("level",parseInt(e.level,10)-1),n.isNullOrUndefined(e.style)||n.isNullOrUndefined(e.style.name)||t.writeAttributeString("style",d(e.style.name)),n.isNullOrUndefined(e.selectionLevel)||t.writeAttributeString("selectionLevel",parseInt(e.selectionLevel,10)-1),n.isNullOrUndefined(e.scrollPosition)||t.writeAttributeString("scrollPosition",c(new Date(e.scrollPosition))),n.isNullOrUndefined(e.showHeader)||e.showHeader||t.writeAttributeString("showHeader","0"),n.isNullOrUndefined(e.showSelectionLabel)||e.showSelectionLabel||t.writeAttributeString("showSelectionLabel","0"),n.isNullOrUndefined(e.showTimeLevel)||e.showTimeLevel||t.writeAttributeString("showTimeLevel","0"),n.isNullOrUndefined(e.showHorizontalScrollbar)||e.showHorizontalScrollbar||t.writeAttributeString("showHorizontalScrollbar","0"),e.disableResizingAndMoving&&t.writeAttributeString("lockedPosition","1")})})}),t.getXmlString()}t.writeTimelines=b;function h(e){if(n.isNullOrUndefined(e))return null;var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("timelineCacheDefinition",function(){t.writeAttributeString("xmlns",i.XFileConstants.de),t.writeAttributeString("xmlns:x15",i.XFileConstants.de),t.writeAttributeString("xmlns:mc",i.XFileConstants.ae),t.writeAttributeString("name",u(d(e.name),"\n","_x000a_")),t.writeAttributeString("sourceName",u(d(e.sourceName),"\n","_x000a_"))},function(){if(t.writeElement("pivotTables",function(){},function(){e.pivotTables.forEach(function(e){t.writeLeafElement("pivotTable",function(){t.writeAttributeString("tabId",e.tabId),t.writeAttributeString("name",d(e.name))})})}),t.writeElement("state",function(){t.writeAttributeString("minimalRefreshVersion","6"),t.writeAttributeString("lastRefreshVersion","6"),t.writeAttributeString("pivotCacheId",e.pivotCacheId),n.isNullOrUndefined(e.filterType)||f.indexOf(e.filterType)!==-1||t.writeAttributeString("singleRangeFilterState","0"),n.isNullOrUndefined(e.filterType)||!a.captionCompareTypeExcel[1][e.filterType]?t.writeAttributeString("filterType","unknown"):t.writeAttributeString("filterType",a.captionCompareTypeExcel[1][e.filterType])},function(){!n.isNullOrUndefined(e.filterType)&&f.indexOf(e.filterType)!==-1&&e.selectionStartDate&&e.selectionEndDate&&t.writeLeafElement("selection",function(){t.writeAttributeString("startDate",c(new Date(e.selectionStartDate))),t.writeAttributeString("endDate",c(new Date(e.selectionEndDate)))}),t.writeLeafElement("bounds",function(){t.writeAttributeString("startDate",c(new Date(e.boundsStartDate))),t.writeAttributeString("endDate",c(new Date(e.boundsEndDate)))})}),!n.isNullOrUndefined(e.filterType)&&f.indexOf(e.filterType)===-1){var r=l.getPivotDateFilter(e.filterCondition,a.captionCompareTypeExcel[1][e.filterType]);if(!r)return;t.writeElement("timelinePivotFilter",function(){t.writeAttributeString("useWholeDay",e.filterCondition.isWholeDay?"1":"0"),t.writeAttributeString("fld","1"),t.writeAttributeString("id","1")},function(){t.writeElement("autoFilter",function(){t.writeAttributeString("ref","A1")},function(){t.writeElement("x:filterColumn",function(){t.writeAttributeString("xmlns:x",i.XFileConstants.be),t.writeAttributeString("colId","0")},function(){2===r.filterType?s.writePivotDynamicFilter(t,r):s.writeCustomFilters(t,r,s.PivotComparisonOperators)})})})}}),t.getXmlString()}t.writePivotTimelineCache=h},"./src/xlsx-io/writer/vmlDrawing-writer.ts":function(e,t,r){"use strict";var o,i,n;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/xlsx-io/writer/comment-writer.ts"),n=r("./src/xlsx-io/writer/control-writer.ts");function a(e,t,r){var a=new o.XmlWriter;return a.writeElement("xml",function(){a.writeAttributeString("xmlns:v","urn:schemas-microsoft-com:vml"),a.writeAttributeString("xmlns:o","urn:schemas-microsoft-com:office:office"),a.writeAttributeString("xmlns:x","urn:schemas-microsoft-com:office:excel")},function(){a.writeElement("o:shapelayout",function(){a.writeAttributeString("v:ext","edit")},function(){a.writeLeafElement("o:idmap",function(){a.writeAttributeString("v:ext","edit"),a.writeAttributeString("data","1")})});var o=1024*(e+1)+1;t&&t.length>0&&(i.writeCommentShapes(a,t,o),o+=t.length),r&&r.length>0&&n.writeControlShapes(a,r,o)}),a.getXmlString()}t.writeVmlDrawingForLegacyDrawing=a},"./src/xlsx-io/writer/workbook-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/xlsx-io/writer/slicer-writer.ts"),l=r("./src/datamodel/datamodel-writer.ts"),s=void 0;function c(e,t,r,a,l,s,c){var u=new o.XmlWriter;return u.writeDocument(),u.writeElement("workbook",function(){u.writeAttributeString("xmlns",i.XFileConstants.Hd),u.writeAttributeString("xmlns:r",i.XFileConstants.Ud)},function(){d(u,e),u.writeElement("sheets",void 0,function(){var r,o,i=function(r,o){var i=t[r];i&&u.writeLeafElement("sheet",function(){u.writeAttributeString("name",n.Util.oa(i.name)),u.writeAttributeString("sheetId",""+i.sheetId),e.tj(i.name)?u.writeAttributeString("state","hidden"):e.uj(i.name)&&u.writeAttributeString("state","veryHidden"),u.writeAttributeString("r:id",""+i.rID)})};for(r=0,o=t.length;r<o;r++)i(r,o)});var o=e.Ne.externalReference;o&&u.writeElement("externalReferences",void 0,function(){var e,t=function(e){if(Object.prototype.hasOwnProperty.call(o,e)){var t=o[e];u.writeLeafElement("externalReference",function(){u.writeAttributeString("r:id",t.option.id)})}};for(e in o)t(e)}),f(u,e,a),S(u,r,s,c),C(u,l),x(u,e,t)}),u.getXmlString()}t.writeWorkbook=c;function d(e,t){var r=t.sj();e.writeElement("bookViews",void 0,function(){e.writeLeafElement("workbookView",function(){r.showHorizontalScrollbar===!1&&e.writeAttributeString("showHorizontalScroll","0"),r.showVerticalScrollbar===!1&&e.writeAttributeString("showVerticalScroll","0"),r.tabStripVisible===!1&&e.writeAttributeString("showSheetTabs","0"),"number"==typeof r.tabStripRatio&&.6!==r.tabStripRatio&&e.writeAttributeString("tabRatio",""+1e3*r.tabStripRatio),"number"==typeof r.startSheetIndex&&r.startSheetIndex>0&&e.writeAttributeString("firstSheet",""+r.startSheetIndex),"number"==typeof r.activeSheetIndex&&r.activeSheetIndex>0&&e.writeAttributeString("activeTab",""+r.activeSheetIndex)})})}function u(e){return e.toUpperCase()===n.PRINT_AREA_UPPERCASE?n.BUILT_IN_PRINT_AREA:e}function f(e,t,r){var o,i,a=t.vj(),l=g(t);m(a,l),o=y(t),m(a,o),i=b(t),m(a,i),m(a,r),a.length>0&&e.writeElement("definedNames",s,function(){var t,r=function(t){var r=a[t];e.writeElement("definedName",function(){e.writeAttributeString("name",n.Util.oa(u(r.name))),r.comment&&e.writeAttributeString("comment",n.Util.oa(r.comment)),r.localSheetId>-1&&e.writeAttributeString("localSheetId",r.localSheetId),r.hidden===!0&&e.writeAttributeString("hidden","1")},function(){e.writeValue(n.addXLFNPrefix(r.formula).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"))})};for(t=0;t<a.length;t++)r(t)})}function b(e){var t,r,o,i,n,a,l=[],c=e.jj();for(t=0;t<c.length;t++)r=c[t],r&&(o=e.Nj(r),o&&(i=h(o.repeatRowStart,o.repeatRowEnd,s,s,r),n=h(s,s,o.repeatColumnStart,o.repeatColumnEnd,r),a=void 0,i&&n?a=n+","+i:i?a=i:n&&(a=n),a&&l.push({name:"_xlnm.Print_Titles",localSheetId:t,formula:a})));return l}function h(e,t,r,o,i){if(r===s&&o===s&&e===s&&t===s)return s;var a="";return r!==s&&(a+="$"+n.IndexHelper.T(r)),e!==s&&(a+="$"+(e+1)),a+=":",o!==s&&(a+="$"+n.IndexHelper.T(o)),t!==s&&(a+="$"+(t+1)),i?n.IndexHelper.V(i)+"!"+a:a}function p(e,t){for(var r=0;r<e.length;r++)if(e[r].name===t.name&&e[r].localSheetId===t.localSheetId)return!0;return!1}function m(e,t){for(var r=0;r<t.length;r++)p(e,t[r])||e.push(t[r])}function g(e){var t,r,o,i,n,a,l=[],s=e.jj();for(t=0;t<s.length;t++)if(r=s[t]){if(o=e.Dj(r),i=e.Ej(r,"pivot"),n=e.Ej(r,"timeline"),o)for(a=0;a<o.length;a++)l.push({name:o[a].nameInFormula,formula:"#N/A",localSheetId:-1});if(i)for(a=0;a<i.length;a++)l.push({name:i[a].slicerCacheName,formula:"#N/A",localSheetId:-1});if(n)for(a=0;a<n.length;a++)l.push({name:n[a].slicerCacheName,formula:"#N/A",localSheetId:-1})}return l}function y(e){var t,r,o,i,n,a,s=[],c=e.jj();for(t=0;t<c.length;t++)r=c[t],r&&(o=e.Oj(r),o&&(i=e.kj(r),o.range&&(n=l.getFilterRange(i,o.range),a=h(n.row,n.row+n.rowCount,n.col,n.col+n.colCount,r),a&&s.push({name:"_xlnm._FilterDatabase",localSheetId:t,formula:a}))));return s}function S(e,t,r,o){e.writeLeafElement("calcPr",function(){var i,a,l;e.writeAttributeString("calcId","0"),t&&e.writeAttributeString("refMode","R1C1"),i=n.isNullOrUndefined(r.iterate)||r.iterate?"1":"0",a=n.isNullOrUndefined(r.count)?"1000":r.count,l=n.isNullOrUndefined(r.delta)?"0.01":r.delta,e.writeAttributeString("iterate",i),e.writeAttributeString("iterateCount",a),e.writeAttributeString("iterateDelta",l),1===o&&e.writeAttributeString("calcMode","manual")})}function C(e,t){n.isEmptyObject(t)||e.writeElement("pivotCaches",function(){for(var r in t)t.hasOwnProperty(r)&&w(e,t[r])})}function w(e,t){n.isEmptyObject(t)||e.writeLeafElement("pivotCache",function(){e.writeAttributeString("cacheId",t.cacheId),e.writeAttributeString("r:id",t.rid)})}function x(e,t,r){var o,i=0,n=t.Ne.tableSlicerCaches;n&&n.length&&i++,o=t.Ne.slicerCaches,o&&o.length&&i++,i&&a.writeSlicerCacheInWorkbook(e,n,o)}},"./src/xlsx-io/writer/worksheet-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/xlsx-io/common/color-writer.ts"),l=r("./src/common/tuple.ts"),s=r("./src/xlsx-io/writer/sparkline-writer.ts"),c=r("./src/xlsx-io/writer/conditionalformat-writer.ts"),d=r("./src/xlsx-io/writer/slicer-writer.ts"),u=r("./src/xlsx-io/writer/autofilter-writer.ts"),f=r("./src/xlsx-io/writer/datavalidation-writer.ts"),b=r("./src/datamodel/excel-helper.ts"),h=r("./src/xlsx-io/writer/print-writer.ts"),p=r("./src/xlsx-io/writer/chart-writer.ts"),m=void 0,g=o.Util.sa,y=66316;function C(e,t,r,a,l,s,d,b,p){var m=new i.XmlWriter;return m.writeDocument(),m.writeElement("worksheet",function(){m.writeAttributeString("xmlns",n.XFileConstants.Hd),m.writeAttributeString("xmlns:r",n.XFileConstants.Ud),m.writeAttributeString("xmlns:mc",n.XFileConstants.Jd),d&&d.attributes&&d.attributes.forEach(function(e){m.writeAttributeString(e.key,e.value)}),m.writeAttributeString("xmlns:x14ac",n.XFileConstants.Nd),m.writeAttributeString("xmlns:xr",n.XFileConstants.Rd),m.writeAttributeString("xmlns:xr2",n.XFileConstants.Sd),m.writeAttributeString("xmlns:xr3",n.XFileConstants.Td),m.writeAttributeString("xr:uid",o.Ha()),m.writeAttributeString("mc:Ignorable",n.XFileConstants.Pd)},function(){var o,i,n;if(x(m,t,e),A(m,t,e),T(m,t,e),v(m,t,e),k(m,t,e,r,a),F(m,t,e,l,r,a,s),I(m,t,e),u.writeAutoFilterForSheet(m,t,e),L(m,t,e),c.writeConditionalFormating(m,t,e),f.writeDataValidations(m,t,e),P(m,t,e,b),h.writePrintOptions(m,t,e),h.writePageMargins(m,t,e),h.writePageSetup(m,t,e),h.writeHeadFooter(m,t,e),h.writeRowColumnBreaks(m,t,e),d)for(o=[{name:"drawing",value:d.drawingId},{name:"legacyDrawing",value:d.legacyDrawingId}],i=function(e){var t=o[e],r=t.value;r&&m.writeLeafElement(t.name,function(){m.writeAttributeString("r:id",r)})},n=0;n<2;n++)i(n);h.writeLegacyDrawingHF(m,e),W(m,p),e.fi(t)&&e.fi(t).length>0&&B(m,e.fi(t)),w(e,t)&&D(m,t,e)}),m.getXmlString()}t.writeWorksheet=C;function w(e,t){var r,o,i,n,a=e.Dj(t),l=e.Ej(t,"pivot"),s=e.Ej(t,"timeline");return!!(a&&a.length>0||l&&l.length>0||s&&s.length>0)||(r=e.zj(t),!!(r&&r.length>0)||(o=e.xg(t),i=o&&o.rules,!(!i||!c.needWriteConditionalFormatExtension(i,t,e.jj()))||(n=e.On,!!(n&&n.length>0))))}function x(e,t,r){var o=r.lj(t),i=o.colsSumRight,n=o.rowsSumBelow,l=r.mj(t),s=r.Mj(t,!0),c=s&&s.useSmartPrint;!l&&i&&n&&c!==!0||e.writeElement("sheetPr",function(){null!==l&&a.writeColor(e,"tabColor",l),i&&n||e.writeLeafElement("outlinePr",function(){i||e.writeAttributeString("summaryRight","0"),n||e.writeAttributeString("summaryBelow","0")}),c===!0&&e.writeLeafElement("pageSetUpPr",function(){e.writeAttributeString("fitToPage","1")})})}function A(e,t,r){var o=r.nj(t),i=o.columnCount,n=o.rowCount;i>0&&n>0?e.writeLeafElement("dimension",function(){e.writeAttributeString("ref","A1:"+r.Ki(i-1)+n)}):e.writeLeafElement("dimension",function(){e.writeAttributeString("ref","A1")})}function T(e,t,r){e.writeElement("sheetViews",m,function(){e.writeElement("sheetView",function(){var i,n,a,l,s,c,d,u,f,b,h,p,m=r.oj(t),g=m.gridlineColor;null!==g&&1===g.colorType()&&64!==g.value()&&(e.writeAttributeString("defaultGridColor","0"),e.writeAttributeString("colorId",""+g.value())),i=r.pj(t),n=i.frozenTopRow||0,a=i.frozenLeftCol||0,l=m.topLeftCell,s=i.frozenColCount,c=i.frozenRowCount,l&&void 0!==l.row&&void 0!==l.col&&(n||a?(d=""+r.Ki(a)+(n+1),e.writeAttributeString("topLeftCell",""+d)):s||c?s&&!c?(d="A"+(l.row+1),e.writeAttributeString("topLeftCell",""+d)):!s&&c&&(d=""+r.Ki(l.col)+"1",
|
56
|
-
e.writeAttributeString("topLeftCell",""+d)):(d=""+r.Ki(l.col)+(l.row+1),e.writeAttributeString("topLeftCell",""+d))),m.showGridLine||e.writeAttributeString("showGridLines","0"),m.showRowColHeaders||e.writeAttributeString("showRowColHeaders","0"),o.isNullOrUndefined(m.zoom)||(u=Math.round(100*m.zoom),100!==u&&e.writeAttributeString("zoomScale",""+u)),f=r.kj(t),f.showFormulas&&e.writeAttributeString("showFormulas","1"),f.showZeros===!1&&e.writeAttributeString("showZeros","0"),e.writeAttributeString("workbookViewId","0"),h=r.sj(),h&&(b=h.activeSheetIndex),p=f.index===b,(f.isSelected||p)&&e.writeAttributeString("tabSelected",1)},function(){var i,a,l,s,c,d,u,f=r.pj(t),b=f.frozenColCount,h=f.frozenRowCount,p=0,m=0,g=3,y="1",S="A",C=r.oj(t).topLeftCell;for((b>0||h>0)&&(b>0?(p=b,S=r.Ki(C.col)):p=0,h>0?(m=h,y=C.row+1+""):m=0,b>0&&0===h?g=1:0===b&&h>0?g=2:b>0&&h>0&&(g=0),e.writeLeafElement("pane",function(){var t,o=b-f.frozenLeftCol;o>0&&e.writeAttributeString("xSplit",""+o),t=h-f.frozenTopRow,t>0&&e.writeAttributeString("ySplit",""+t),S+y==="A1"?e.writeAttributeString("topLeftCell",""+r.Ki(p)+(m+1)):e.writeAttributeString("topLeftCell",""+S+y),e.writeAttributeString("activePane",n.PaneType[g]),e.writeAttributeString("state","frozen")})),i=[],a=new o.Range,l=0,s=1,c=-1,d=function(d){var u,f,p,m,g,y,S,C,w,x;if(i.length=0,u=d,r.$i(t,i,a,u)){for(s=i.length,l=0;l<s;l++)f=i[l],f.col!==-1&&f.colCount!==-1||(f=new o.Range(f.row,0,f.rowCount,n.ExcelConstants.vb)),f.row!==-1&&f.rowCount!==-1||(f=new o.Range(0,f.col,n.ExcelConstants.wb,f.colCount)),a.col>=f.col&&a.col<=f.col+f.colCount-1&&a.row>=f.row&&a.row<=f.row+f.rowCount-1&&(c=l);if(c<0&&s>0&&(a.row=i[0].row,a.col=i[0].col),p=""+r.Ki(a.col)+(a.row+1),m="",b>0&&h>0&&(1===u||2===u))m=p;else{for(l=0;l<s;l++)g=i[l],y=Math.min(n.ExcelConstants.wb,g.row+1),S=Math.min(g.col,n.ExcelConstants.vb),m+=""+r.Ki(S)+y,(g.colCount>1||g.rowCount>1)&&(C=Math.min(S+g.colCount-1,n.ExcelConstants.vb),w=Math.min(y+g.rowCount-1,n.ExcelConstants.wb),x=""+r.Ki(C)+w,m+=":"+x),m+=" ";m=m.trim()}o.StringEx.O(m)||3===u&&(b>0||h>0||3!==u)||e.writeLeafElement("selection",function(){3!==u&&e.writeAttributeString("pane",n.PaneType[u]),e.writeAttributeString("activeCell",p),0!==c&&0===u&&e.writeAttributeString("activeCellId",""+c),e.writeAttributeString("sqref",m)})}},u=3;u>=0;u--)d(u)})})}function v(e,t,r){var o=r.Xi(t),i=o.height,n=o.customHeight,a=r.Yi(t);e.writeLeafElement("sheetFormatPr",function(){var o,l,s;isNaN(a)||e.writeAttributeString("defaultColWidth",""+a),n&&e.writeAttributeString("customHeight","1"),e.writeAttributeString("defaultRowHeight",""+i),o=r.Wi(t),l=o.outlineLevelRow-1,s=o.outlineLevelColumn-1,l>0&&e.writeAttributeString("outlineLevelRow",""+l),s>0&&e.writeAttributeString("outlineLevelCol",""+s)})}function k(e,t,r,o,i){var a=r.Ti(t),l=r.Vi(t);0!==a.length&&e.writeElement("cols",m,function(){var t,r,s,c,d=function(r,s){var c,d,u,f=a[r],b=f.index;if(b>=n.ExcelConstants.vb)return t=r,"break";for(c=r+1,d=b;c<a.length&&(u=a[c],u.index===d+1&&u.index<n.ExcelConstants.vb&&u.formatId===f.formatId&&u.visible===f.visible&&u.outLineLevel===f.outLineLevel&&u.collapsed===f.collapsed&&Math.abs(u.width-f.width)<=1e-4);)d=u.index,r=c,c++;e.writeLeafElement("col",function(){if(e.writeAttributeString("min",""+(b+1)),e.writeAttributeString("max",""+(d+1)),f.formatId>=0){var t=o[f.formatId+i];t!==m?e.writeAttributeString("style",t):e.writeAttributeString("style","0")}isNaN(f.width)||f.width===m?e.writeAttributeString("width",""+l):e.writeAttributeString("width",""+f.width),f.visible===!1&&e.writeAttributeString("hidden","1"),f.collapsed&&e.writeAttributeString("collapsed","1"),!isNaN(f.width)&&Math.abs(f.width-l)>1e-4&&e.writeAttributeString("customWidth","1"),"number"==typeof f.outLineLevel&&0!==f.outLineLevel&&e.writeAttributeString("outlineLevel",""+f.outLineLevel)}),t=r};for(r=0,s=a.length;r<s&&(c=d(r,s),r=t,"break"!==c);r++);})}function F(e,t,r,o,i,a,s){var c,d,u,f,b,h,p,g,y,S={},C=r.Ni(t);if(C)for(c=0,d=C.length;c<d;c++)u=C[c],u&&u.index<n.ExcelConstants.wb&&(S[u.index]=new l.Tuple(u,[]));if(f=r.Mi(t))for(b in f)if(f.hasOwnProperty(b))for(h=f[b],c=0,p=h.length;c<p;c++)g=h[c],g&&(S[g.row]?S[g.row].item2.push(g):(S[g.row]=new l.Tuple(null,[]),S[g.row].item2.push(g)));y=r.Ne.sheets[t].sharedFormulas,e.writeElement("sheetData",m,function(){var r,n,l,c=-1;for(r in S)S.hasOwnProperty(r)&&(n=S[r],l=parseInt(r,10),R(e,t,l,c,n.item2,n.item1,o,i,a,s,y),c=l)})}function R(e,t,r,o,i,a,l,s,c,d,u){var f=""+(r+1),b=function(){if(!l.keepRowColIndex&&r===o+1||!a&&!i||e.writeAttributeString("r",f),a){if(a.formatId>=0){var t=s[a.formatId+c];t!==m&&(e.writeAttributeString("s",t),e.writeAttributeString("customFormat","1"))}a.customHeight&&(e.writeAttributeString("customHeight","1"),a.height!==m&&e.writeAttributeString("ht",""+a.height)),a.visible===!1&&e.writeAttributeString("hidden","1"),a.collapsed&&e.writeAttributeString("collapsed","1"),"number"==typeof a.outLineLevel&&0!==a.outLineLevel&&e.writeAttributeString("outlineLevel",""+a.outLineLevel)}};i&&i.length>0?e.writeElement("row",b,function(){var t,r,o,a=-1;for(t=0,r=i.length;t<r;t++)o=i[t],o.col>=n.ExcelConstants.vb||(E(e,o,f,a,l,s,c,d,u),a=o.col)}):e.writeLeafElement("row",b)}S=["#REF!","#NULL!","#DIV/0!","#VALUE!","#NAME?","#NUM!","#N/A","#SPILL!","#CALC!"];function E(e,t,r,i,n,a,l,s,c){var d=t.value,u=t.formula,f=t.cellType,b=t.richText,h=function(){var s,c,u,b;switch((n.xlsxStrictMode||t.col!==i+1)&&e.writeAttributeString("r",o.IndexHelper.T(t.col)+r),t.formatId===-1?e.writeAttributeString("s","0"):(s=t.formatId+l,c=a[s],c!==m&&e.writeAttributeString("s",c)),f){case 0:break;case 9:case 2:u="s";break;case 5:u="b";break;case 7:u="e"}t.formula&&(t.arrayFormulaRange?(b=t.arrayFormulaRange.isDynamicArray,b&&e.writeAttributeString("cm","1"),t.isSpillError&&(u="e",e.writeAttributeString("vm","1"))):o.isNullOrUndefined(d)||"#"!==(""+d).substring(0,1)||S.indexOf((""+d).toUpperCase())===-1?t.isSpillError&&(u="e",e.writeAttributeString("vm","2")):u="e"),(t.formula||t.qi)&&"s"===u&&(u="str"),o.isNullOrUndefined(u)||e.writeAttributeString("t",u)};function p(e){var t,r=s.Zn[e.value],o=s.$n[e.value];return o===m&&(o=s.$n[e.value]=[]),t=C(o,e),r===m||t===m?(r=s.Qn.length,s.Qn.push(e),s.Zn[e.value]=r,o.push({index:r,value:e})):r=t,s.Pn++,r}function C(e,t){for(var r=0,o=e.length;r<o;r++)if(g(e[r].value,t))return e[r].index}d!==m&&null!==d||!o.StringEx.L(u)?e.writeElement("c",h,function(){var r,i;o.StringEx.L(u)||(r=t.arrayFormulaRange,o.isNullOrUndefined(u.si)?r?t.row===r.row&&t.col===r.col&&e.writeElement("f",function(){e.writeAttributeString("t","array");var t=o.IndexHelper.T(r.col)+(r.row+1)+":"+o.IndexHelper.T(r.col+r.colCount-1)+(r.row+r.rowCount);!r.isInvalid&&r.rowCount||(t=t.substr(0,t.indexOf(":"))),e.writeAttributeString("ref",t)},function(){e.writeValue(o.Util.oa(o.addXLFNPrefix(u)))}):e.writeElement("f",m,function(){e.writeValue(o.Util.oa(o.addXLFNPrefix(u)))}):(i=c[u.si],i.baseRow===t.row&&i.baseColumn===t.col?e.writeElement("f",function(){e.writeAttributeString("t","shared"),e.writeAttributeString("si",u.si);var t=o.IndexHelper.T(i.baseColumn)+(i.baseRow+1)+":"+o.IndexHelper.T(i.lastColumn)+(i.lastRow+1);e.writeAttributeString("ref",t)},function(){e.writeValue(o.Util.oa(o.addXLFNPrefix(i.formula)))}):e.writeLeafElement("f",function(){e.writeAttributeString("t","shared"),e.writeAttributeString("si",u.si)}))),d!==m&&null!==d&&e.writeElement("v",m,function(){var r,i;switch("string"==typeof d&&"/OADate"===d.substring(0,7)&&(f=6),r=d,f){case 9:case 2:r=""+p({value:d,richText:b});break;case 7:r=d;break;case 5:i="1",("boolean"==typeof d&&!d||"FALSE"===(""+d).toUpperCase())&&(i="0"),r=i;break;case 6:default:r=o.Util.oa(""+d)}o.isNullOrUndefined(t.formula)&&!t.qi||("boolean"==typeof d&&(d=d?1:0),r=""+d,r&&r.length>y&&(r=""),r=o.Util.oa(r)),"#SPILL!"!==r&&"#CALC!"!==r||7!==f||(r="#VALUE!"),e.writeValue(r)})}):e.writeLeafElement("c",h)}function I(e,t,r){var o,i=r.qj(t),n=r.rj(t,i);(i||Object.keys(n).length>0)&&e.writeLeafElement("sheetProtection",function(){i&&e.writeAttributeString("sheet","1");for(var t in n)n.hasOwnProperty(t)&&(o=n[t],"algorithmName"===t||"hashValue"===t||"saltValue"===t||"spinCount"===t||"password"===t?e.writeAttributeString(t,o):b.excelSupportProtectionOptions[t]&&(o=n[t]?"0":"1",e.writeAttributeString(t,o)))})}function L(e,t,r){var i=r.aj(t);i&&i.length>0&&e.writeElement("mergeCells",function(){e.writeAttributeString("count",""+i.length)},function(){var t,r,n=function(t,r){var n=i[t];e.writeLeafElement("mergeCell",function(){e.writeAttributeString("ref",o.IndexHelper.T(n.col)+(n.row+1)+":"+o.IndexHelper.T(n.col+n.colCount-1)+(n.row+n.rowCount))})};for(t=0,r=i.length;t<r;t++)n(t,r)})}function D(e,t,r){e.writeElement("extLst",m,function(){c.writeExtensionConditionalFormats(e,t,r),s.writeSparkline(e,t,r),d.writeSlicersInWorkSheet(e,t,r),f.writeExtensionDataValidations(e,r)})}function B(e,t){e.writeElement("tableParts",function(){e.writeAttributeString("count",""+t.length)},function(){t.forEach(function(t){e.writeLeafElement("tablePart",function(){e.writeAttributeString("r:id",t.rid)})})})}function P(e,t,r,o){var i=r.Hh[t];i&&i.length>0&&e.writeElement("hyperlinks",function(){var t,r,a=function(t,r){var a=i[t];e.writeLeafElement("hyperlink",function(){var t,r;e.writeAttributeString("ref",a.ref),a.location?e.writeAttributeString("location",a.location):(t="",r=new n.XFile(t,n.RelationshipConstants.gb),r.target=a.url,r.targetMode="External",a.rid=o.ze(r),e.writeAttributeString("r:id",a.rid)),a.display&&e.writeAttributeString("display",a.display),a.tooltip&&e.writeAttributeString("tooltip",a.tooltip),a["xr:uid"]&&e.writeAttributeString("xr:uid",a["xr:uid"])})};for(t=0,r=i.length;t<r;t++)a(t,r)})}function W(e,t){!t||t.length<=0||N(e,function(){_(e,t)})}function _(e,t){e.writeElement("controls",m,function(){t.forEach(function(t){M(e,t)})})}function N(e,t){e.writeElement("mc:AlternateContent",function(){e.writeAttributeString("xmlns:mc","http://schemas.openxmlformats.org/markup-compatibility/2006")},function(){e.writeElement("mc:Choice",function(){e.writeAttributeString("Requires","x14")},t)})}function M(e,t){N(e,function(){O(e,t)})}function O(e,t){var r=t.sp.nvSpPr.cNvPr,o=t.sp.control.rid,i=r.id,n=r.name;e.writeElement("control",function(){e.writeAttributeString("shapeId",i),e.writeAttributeString("r:id",o),e.writeAttributeString("name",n)},function(){H(e,t)})}function H(e,t){var r=t.sp.control.disabled;e.writeElement("controlPr",function(){e.writeAttributeString("defaultSize",0),e.writeAttributeString("autoPict",0),r&&e.writeAttributeString("disabled",1)},function(){G(e,t)})}function G(e,t){var r=t.sp.control.anchorInfo,o=r.startPoint,i=r.endPoint;e.writeElement("anchor",function(){e.writeAttributeString("moveWithCells",1),e.writeAttributeString("sizeWithCells",1)},function(){p.DrawingWriter.WriteCT_Position(e,m,"from",o),p.DrawingWriter.WriteCT_Position(e,m,"to",i)})}},"./src/xlsx-io/writer/xlsx-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S,C,w,x,A,T,v,k,F,R,E,I,L,D,B;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/excel-types.ts"),i=r("./src/common/common.ts"),n=r("./src/xml-io/xml-writer.ts"),a=r("./src/datamodel/datamodel-writer.ts"),l=r("./src/xlsx-io/writer/style-writer.ts"),s=r("./src/xlsx-io/writer/docPropsCoreWriter.ts"),c=r("./src/xlsx-io/writer/docPropsAppWriter.ts"),d=r("./src/xlsx-io/writer/docPropsCustomWriter.ts"),u=r("./src/xlsx-io/writer/worksheet-writer.ts"),f=r("./src/xlsx-io/writer/sharedString-writer.ts"),b=r("./src/xlsx-io/writer/theme-writer.ts"),h=r("./src/xlsx-io/writer/workbook-writer.ts"),p=r("./src/xlsx-io/writer/comment-writer.ts"),m=r("./src/xlsx-io/writer/drawing-writer.ts"),g=r("./src/xlsx-io/writer/table-writer.ts"),y=r("./src/xlsx-io/writer/slicer-writer.ts"),S=r("./src/xlsx-io/writer/print-writer.ts"),C=r("./src/xlsx-io/writer/metadata-writer.ts"),w=r("./src/xlsx-io/writer/chart-writer.ts"),x=r("./src/datamodel/excel-helper.ts"),A=r("./src/datamodel/excel-style.ts"),T=r("./src/xlsx-io/writer/pivot-writer.ts"),v=r("./src/xlsx-io/writer/ctrlprops-writer.ts"),k=r("./src/xlsx-io/writer/vmlDrawing-writer.ts"),F=r("./src/xlsx-io/writer/externalLink-writer.ts"),R=r("./src/xlsx-io/writer/timeline-writer.ts"),E="../charts/",I="../drawings/",L=void 0,D=r("./src/lib/jszip.min.js");function P(e,t,r){var i,n,a,l=e.imageType||"jpg";return"svg+xml"===l&&(l="svg"),i=o.XFileConstants.ld+t+"."+l,n=new o.XFile(o.XFileConstants.Oc+"/"+i,o.RelationshipConstants.hb),n.target="../media/"+i,a=r.ze(n),e.rid=a,n}function W(e,t,r){return{AlternateContent:"http://schemas.openxmlformats.org/markup-compatibility/2006",Choice:{cx:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",Requires:"cx1",GraphicalObjectFrame:{nvGraphicFramePr:{cNvPr:{id:1,name:e,descr:r||""}},graphic:{graphicData:{chart:{id:t}}}}}}}B=function(){function e(e,t){this._n={},this.ao={};var r=this;r.Xn=0,r.bo={},r.un=[],r.co=1===e.referenceStyle,r.do=e.calculationMode,r.eo={iterate:e.iterativeCalculation,count:e.iterativeCalculationMaximumIterations,delta:e.iterativeCalculationMaximumChange},r.Bg={},r.fo=D(),r.ho=0,r.io=0,r.jo=0,r.ko=0,r.lo=0,r.mo=0,r.no=0,r.oo=0,r.po=0,r.qo=0,r.ro=new a.WriterDataModel(e),r.ro.onCompleted=function(){t.call(r)},r.ro.Ph(),r.ro&&r.ro.Xh()}return e.prototype.Gk=function(){var e,t,r,i=this,n=new o.XFile("",""),a=new o.XFile(o.XFileConstants.zd,o.RelationshipConstants.Na);n.ze(a),i.so(n),e={Qn:[],Zn:{},Pn:0,$n:{}},t=i.uo(a),r=[],i.vo(i.ro.Ne.pivotCaches,a),i.wo(i.ro.Ne.slicerCaches,a),i.xo(a,t,e,r),i.yo(i.ro,i.ro.Ne.tableSlicerCaches,a),i.zo(a,e),i.Ao(a),i.Bo(a),i.Co(a),i.Do(r),i.Eo(n),i.Fo(n,i.ho>0),i.wn(),i.fo.generateAsync({type:i.Bg.useArrayBuffer?"arraybuffer":"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",compression:"DEFLATE"}).then(function(e){i.onZip(e)}).catch(function(){i.onError()})},e.prototype.so=function(e){var t,r,n,a=this,l=a.ro.Ne;i.isNullOrUndefined(l.docProps)||(l.docProps.docPropsCore&&(t=new o.XFile(o.XFileConstants.Ad,o.RelationshipConstants.Ka),e.ze(t),a.Go()),l.docProps.docPropsApp&&(r=new o.XFile(o.XFileConstants.Bd,o.RelationshipConstants.La),e.ze(r),a.Ho()),l.docProps.docPropsCustom&&(n=new o.XFile(o.XFileConstants.Cd,o.RelationshipConstants.Ma),e.ze(n),a.Io()))},e.prototype.Eo=function(e){var t,r,a,l,s,c,d,u,f,b;if(!i.isNullOrUndefined(e)&&!i.isNullOrUndefined(e.relationFiles)&&0!==e.relationFiles.count){t=i.Util.ra(e.fileName),r=t.dir,a=t.fileName,l=this,s={};for(c in e.relationFiles)e.relationFiles.hasOwnProperty(c)&&(d=e.relationFiles[c],d&&"count"!==c&&(u=[d.target||d.fileName.replace(r+"/",""),d.fileType],d.targetMode&&u.push(d.targetMode),s[c]=u,this.Eo(d)));f=new n.XmlWriter,f.writeDocument(),f.writeElement("Relationships",function(){f.writeAttributeString("xmlns",o.XFileConstants.Wd)},function(){var e,t=function(e){if(s.hasOwnProperty(e)){var t=s[e];t&&t.length>=2&&f.writeLeafElement("Relationship",function(){f.writeAttributeString("Id",e),f.writeAttributeString("Type",t[1]),f.writeAttributeString("Target",t[0]),t[2]&&f.writeAttributeString("TargetMode",t[2])})}};for(e in s)t(e)}),b=r+"/"+o.XFileConstants.Bb+"/"+a+"."+o.XFileConstants.Gb,l.fo.file(b.substring(1),f.getXmlString())}},e.prototype.Fo=function(e,t){var r=this.ro.Li(e,t),i=new n.XmlWriter;i.writeDocument(),i.writeElement("Types",function(){i.writeAttributeString("xmlns",o.XFileConstants.Vd)},function(){var e,t,n=function(e,t){var n=r[e];n instanceof o.DefaultContentType?i.writeLeafElement("Default",function(){i.writeAttributeString("Extension",n.extension),i.writeAttributeString("ContentType",n.contentType)}):n instanceof o.OverrideContentType&&i.writeLeafElement("Override",function(){i.writeAttributeString("PartName",n.partName),i.writeAttributeString("ContentType",n.contentType)})};for(e=0,t=r.length;e<t;e++)n(e,t)}),this.fo.file(o.XFileConstants.Db,i.getXmlString())},e.prototype.Go=function(){var e=this,t=s.writeDocPropsCore(e.ro);this.fo.file(o.XFileConstants.Ad.substring(1),t)},e.prototype.Ho=function(){var e=this,t=c.writeDocPropsApp(e.ro);this.fo.file(o.XFileConstants.Bd.substring(1),t)},e.prototype.Io=function(){var e=this,t=d.writeDocPropsCustom(e.ro);this.fo.file(o.XFileConstants.Cd.substring(1),t)},e.prototype.uo=function(e){var t,r=this,i=new o.XFile(o.XFileConstants.Dd,o.RelationshipConstants.Pa);return e.ze(i),t=l.writeStyle(r.ro,r.bo),r.fo.file(o.XFileConstants.Dd.substring(1),t.xml),t.styleOffset},e.prototype.xo=function(e,t,r,i){var n,a,l,s,c,d,u,f,b,h,p=this.ro,m=p.jj(),g=m.length,y=0,S=p.fi();for(S&&S.length>0&&S.forEach(function(e){y++,e.id=y}),n={},a={},l=0;l<g;l++)s=m[l],s&&(c=new o.SheetInfo,c.name=s,c.sheetId=l+1,c.index=l,d=new o.XFile(o.XFileConstants.Rc+"/"+o.XFileConstants.$c+c.sheetId+"."+o.XFileConstants.nc,o.RelationshipConstants.Ra),c.rID=e.ze(d),this.un.push(c),u={attributes:[]},f=p.wj(s),b=p.Ij(s),this.Jo(d,l,u,f,b),this.Ko(p,d,f),this.Lo(p,d,b),h=this.Mo(d,u,b.withDrawingObjects),this.No(h,b,i),this.Oo(p,h,b),this.Po(p,d,s,a),this.Qo(p,d,s,e,n),this.Ro(p,d,s,e),this.So(p,d,s),this.To(c,t,r,u,d,b.controlShapes))},e.prototype.zo=function(e,t){var r,i,n=this;t.Qn.length<=0||(r=new o.XFile(o.XFileConstants.wd,o.RelationshipConstants.Sa),e.ze(r),i=f.writeSharedString(t),n.fo.file(o.XFileConstants.wd.substring(1),i))},e.prototype.Ao=function(e){var t,r=new o.XFile(o.XFileConstants.xd,o.RelationshipConstants.Ua);e.ze(r),t=b.writeTheme(this.ro),this.fo.file(o.XFileConstants.Ed.substring(1),t)},e.prototype.Bo=function(e){var t,r,i,n,a,l,s,c,d=this.ro.Ne.externalReference;if(d)for(t in d)Object.prototype.hasOwnProperty.call(d,t)&&(r=d[t],i=o.XFileConstants.Vc+"/"+o.XFileConstants._c+t+"."+o.XFileConstants.nc,n=new o.XFile(i,o.RelationshipConstants.Za),r.option.id=e.ze(n),a=new o.XFile("",o.RelationshipConstants.rb),a.target=r.option.name,l=r.option.path,l&&l.length>0&&(s=l.substr(-1),"/"===s||"\\"===s?a.target=l+a.target:a.target=l+"/"+a.target),a.target=a.target.replace(/\%/g,"%25").replace(/\ /g,"%20").replace(/\#/g,"%23").replace(/\[/g,"%5b").replace(/\]/g,"%5d").replace(/\^/g,"%5e").replace(/\`/g,"%60").replace(/\{/g,"%7b").replace(/\}/g,"%7d").replace(/\&/g,"&").replace(/\"/g,"""),a.targetMode="External",n.ze(a),c=F.writeExternalLink(this.ro,r),this.fo.file(i.substring(1),c))},e.prototype.Do=function(e){var t=this,r=h.writeWorkbook(t.ro,t.un,t.co,e,t.Uo,t.eo,t.do);t.fo.file(o.XFileConstants.zd.substring(1),r)},e.prototype.vo=function(e,t){var r,i,n,a,l,s,c,d;if(e){r=1,i=1,this.Uo={};for(n in e)e.hasOwnProperty(n)&&(a=new o.XFile(o.XFileConstants.Yc+"/"+o.XFileConstants.td+r+"."+o.XFileConstants.nc,o.RelationshipConstants.Wa),l=new o.XFile(o.XFileConstants.Yc+"/"+o.XFileConstants.ud+i+"."+o.XFileConstants.nc,o.RelationshipConstants.Xa),s=t.ze(a),this.Uo[n]={file:a,cacheId:n,rid:s},c=T.writePivotCacheDefinition(e[n]),this.fo.file((o.XFileConstants.Yc+"/"+o.XFileConstants.td+r+"."+o.XFileConstants.nc).substring(1),c),a.ze(l),d=T.writePivotCacheRecords(e[n].pivotCacheRecords),this.fo.file((o.XFileConstants.Yc+"/"+o.XFileConstants.ud+i+"."+o.XFileConstants.nc).substring(1),d),r++,i++)}},e.prototype.To=function(e,t,r,i,n,a){var l=this,s=u.writeWorksheet(l.ro,e.name,l.bo,t,l.Bg,r,i,n,a);this.fo.file(o.XFileConstants.yd.substring(1)+"/sheet"+e.sheetId+"."+o.XFileConstants.nc,s)},e.prototype.Ko=function(e,t,r){var i,n,a;r&&r.length>0&&(this.io++,i=o.XFileConstants.ad+this.io+"."+o.XFileConstants.nc,n=new o.XFile(o.XFileConstants.Cb+"/"+i,o.RelationshipConstants._a),n.target="../"+i,t.ze(n),a=p.writeComments(e,r),this.fo.file(n.fileName.substring(1),a))},e.prototype.Jo=function(e,t,r,i,n){var a,l,s,c,d=n.controlShapes,u=i&&i.length>0,f=d&&d.length>0;(u||f)&&(this.ho++,a=o.XFileConstants.Kc+this.ho+"."+o.XFileConstants.oc,l=new o.XFile(o.XFileConstants.Mc+"/"+a,o.RelationshipConstants.ab),l.target=I+a,s=e.ze(l),r.legacyDrawingId=s,r.attributes.push({key:"xmlns:xdr",value:o.XFileConstants.Kd}),f&&r.attributes.push({key:"xmlns:x14",value:"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.Vo(l,d),c=k.writeVmlDrawingForLegacyDrawing(t,i,d),this.fo.file(l.fileName.substring(1),c))},e.prototype.Vo=function(e,t){var r=this;t.forEach(function(t){var o,i,n=t.sp.control.style,a=n&&n.fill,l=a&&a.src;l&&(o={},x.getPictureInfo(l,o),r.ko++,i=P(o,r.ko,e),r.fo.file(i.fileName.substring(1),o.base64Image,{base64:!0}),e.relationFiles[o.rid]=i,a.rid=o.rid)})},e.prototype.So=function(e,t,r){var i,n,a,l,s,c=e.xj(r);if(c&&c.length>0){this.Wo||(this.Wo=1);for(i in c)c.hasOwnProperty(i)&&(n=o.XFileConstants.vd+this.Wo+"."+o.XFileConstants.nc,a=new o.XFile(o.XFileConstants.Zc+"/"+n,o.RelationshipConstants.Ya),a.target="../pivotTables/"+n,t.ze(a),l=this.Uo&&this.Uo[c[i].cacheId]&&this.Uo[c[i].cacheId].file,l&&a.ze(l),s=T.writePivotTable(e,c[i]),this.fo.file((o.XFileConstants.Zc+"/"+n).substring(1),s),this.Wo++)}},e.prototype.No=function(e,t,r){var o,i=this,n=t.charts;n&&n.forEach(function(t){i.Xo(t,e,r)}),o=t.shapes,o&&o.forEach(function(t){t.graphicFrame&&t.graphicFrame.graphic.graphicData.chart&&(t.chartSpace=t.graphicFrame.graphic.graphicData.chart.chartSpace,delete t.chartSpace.userShapes,i.Xo(t,e,r),t.graphicFrame.graphic.graphicData.chart.id=t.chartId)})},e.prototype.Xo=function(e,t,r){var a,l,s,c,d,u,f,b,h,p,m,g,y=this,S=i.Util.za(e),C=S&&S.layoutId,x=i.Util.Aa(C),A=x?o.RelationshipConstants.mb:o.RelationshipConstants.lb,T=x?o.XFileConstants.dd:o.XFileConstants.bd;y.qo++,a=T+y.qo+"."+o.XFileConstants.nc,l=o.XFileConstants.ed+y.qo+"."+o.XFileConstants.nc,s=o.XFileConstants.hd+y.qo+"."+o.XFileConstants.nc,c=new o.XFile(o.XFileConstants.Lc+"/"+a,A),d=new o.XFile(o.XFileConstants.Lc+"/"+l,o.RelationshipConstants.qb),u=new o.XFile(o.XFileConstants.Lc+"/"+s,o.RelationshipConstants.pb),c.target=E+a,e.chartId=t.ze(c),f=e.graphicFrame.nvGraphicFramePr.cNvPr,e.AlternateContent=W(f.name,e.chartId,f.descr),b=e.chartSpace,b&&(y.Yo(b,e,c),y.Zo(b,c),h=new n.XmlWriter,h.writeDocument(),x?(p=void 0,p=y.ro&&y.ro.Ne&&y.ro.Ne.names?y.ro.Ne.names:[],w.DrawingWriter.chart2016Write.WriteCT_ChartSpace(h,"cx","chartSpace",b,p,r)):w.DrawingWriter.WriteCT_ChartSpace(h,"c","chartSpace",b),y.fo.file(c.fileName.substring(1),h.getXmlString()),x&&(d.target=E+l,i.isNullOrUndefined(e.chartSpace.style)&&(e.chartSpace.style=JSON.parse('{"attribute":{"cs":"http://schemas.microsoft.com/office/drawing/2012/chartStyle","a":"http://schemas.openxmlformats.org/drawingml/2006/main","id":"381"},"axisTitle":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":12}},"categoryAxis":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}},"defRPr":{"sz":12}},"chartArea":{"attribute":{"mods":"allowNoFillOverride allowNoLineOverride"},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":0}},"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}},"defRPr":{"sz":13.33}},"dataLabel":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":14}}},"idx":1},"defRPr":{"sz":12}},"dataLabelCallout":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":13,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":14}},"ln":{"solidFill":{"schemeClr":{"val":13,"lumMod":[25000],"lumOff":[75000]}}}},"defRPr":{"sz":12},"bodyPr":{"rot":0,"spcFirstLastPara":true,"vertOverflow":2,"horzOverflow":1,"vert":0,"wrap":1,"lIns":36576,"tIns":18288,"rIns":36576,"bIns":18288,"anchor":1,"anchorCtr":true,"spAutoFit":true}},"dataPoint":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":12}},"ln":{"w":2,"solidFill":{"schemeClr":{"val":14}}}}},"dataPoint3D":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":12}}}},"dataPointLine":{"attribute":{},"lnRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":3,"cap":0,"solidFill":{"schemeClr":{"val":12}},"round":true}}},"dataPointMarker":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":12}},"ln":{"w":1,"solidFill":{"schemeClr":{"val":14}}}}},"dataPointMarkerLayout":{"attribute":{"symbol":"circle","size":"5"}},"dataPointWireframe":{"attribute":{},"lnRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":3,"cap":0,"solidFill":{"schemeClr":{"val":12}},"round":true}}},"dataTable":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"spPr":{"ln":{"w":1,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}}}},"defRPr":{"sz":12}},"downBar":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":13}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":13,"lumMod":[65000],"lumOff":[35000]}},"ln":{"w":1,"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}}}},"dropLine":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[35000],"lumOff":[65000]}},"round":true}}},"errorBar":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}},"round":true}}},"floor":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1}},"gridlineMajor":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}}},"gridlineMinor":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}}},"hiLoLine":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[75000],"lumOff":[25000]}},"round":true}}},"leaderLine":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[35000],"lumOff":[65000]}},"round":true}}},"legend":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":12}},"plotArea":{"attribute":{"mods":"allowNoFillOverride allowNoLineOverride"},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1}},"plotArea3D":{"attribute":{"mods":"allowNoFillOverride allowNoLineOverride"},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1}},"seriesAxis":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}},"defRPr":{"sz":12}},"seriesLine":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"solidFill":{"srgbClr":{"val":[217,217,217]}},"round":true}}},"title":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":18.67}},"trendline":{"attribute":{},"lnRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":2,"cap":0,"solidFill":{"schemeClr":{"val":12}},"prstDash":7}}},"trendlineLabel":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":12}},"upBar":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":13}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":14}},"ln":{"w":1,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}}}}},"valueAxis":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":12}},"wall":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1}}}')),
|
51
|
+
e.writeElement("ext",function(){e.writeAttributeString("uri","{B025F937-C7B1-47D3-B67F-A62EFF666E3E}"),e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main")},function(){l.id=i.Util.va(),e.writeElement("x14:id",function(){e.writeValue(l.id)})})})});else if(l.ruleType===d.twoScaleRule||l.ruleType===d.threeScaleRule)e.writeElement("cfRule",function(){e.writeAttributeString("type","colorScale"),e.writeAttributeString("priority",l.priority)},function(){e.writeElement("colorScale",function(){e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",u[l.minType]),i.J(l.minValue)||e.writeAttributeString("val",i.Util.oa(S(l.minValue)))});var t=l.ruleType===d.threeScaleRule;t&&e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",u[l.midType]),i.J(l.midValue)?e.writeAttributeString("val","50"):e.writeAttributeString("val",i.Util.oa(S(l.midValue)))}),e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",u[l.maxType]),i.J(l.maxValue)||e.writeAttributeString("val",i.Util.oa(S(l.maxValue)))}),a.writeColor(e,"color",_(l.minColor)),t&&a.writeColor(e,"color",_(l.midColor)),a.writeColor(e,"color",_(l.maxColor))})});else if(l.ruleType===d.iconSetRule){if(N(l))return;e.writeElement("cfRule",function(){e.writeAttributeString("type","iconSet"),e.writeAttributeString("priority",l.priority)},function(){e.writeElement("iconSet",function(){var t=l.iconSetType;i.J(t)&&(t=0),e.writeAttributeString("iconSet",f[t]),l.reverseIconOrder&&e.writeAttributeString("reverse","1"),l.showIconOnly&&e.writeAttributeString("showValue","0")},function(){var t,r;for(e.writeLeafElement("cfvo",function(){e.writeAttributeString("type","percent"),e.writeAttributeString("val","0")}),t=function(t){var r=l.iconCriteria[t];e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",b[r.iconValueType]),e.writeAttributeString("val",i.Util.oa(S(r.iconValue))),r.isGreaterThanOrEqualTo===!1&&e.writeAttributeString("gte","0")})},r=0;r<l.iconCriteria.length;r++)t(r)})})}else if(l.ruleType===d.cellValueRule)e.writeElement("cfRule",function(){e.writeAttributeString("type","cellIs"),l.priority&&e.writeAttributeString("priority",l.priority),l.dxfId>=0&&e.writeAttributeString("dxfId",l.dxfId),l.stopIfTrue&&e.writeAttributeString("stopIfTrue","1"),i.J(l.operator)||e.writeAttributeString("operator",h[l.operator])},function(){i.J(l.value1)||e.writeElement("formula",function(){e.writeValue(L(C(l.value1)))}),i.J(l.value2)||e.writeElement("formula",function(){e.writeValue(L(C(l.value2)))})});else{var t=v(l);e.writeElement("cfRule",function(){4===l.ruleType?e.writeAttributeString("type","timePeriod"):8===l.ruleType?(e.writeAttributeString("type","aboveAverage"),"aboveOrEqualToAverage"!==t.type&&"belowOrEqualToAverage"!==t.type||(t.equalAverage=!0),"belowAverage"!==t.type&&"belowOrEqualToAverage"!==t.type||(t.aboveAverage=!1)):2===l.ruleType&&i.J(t.type)?e.writeAttributeString("type","containsText"):e.writeAttributeString("type",t.type),t.dxfId>=0&&e.writeAttributeString("dxfId",t.dxfId),t.priority>=0&&e.writeAttributeString("priority",t.priority),t.stopIfTrue&&e.writeAttributeString("stopIfTrue","1"),i.J(t.aboveAverage)||(t.aboveAverage?e.writeAttributeString("aboveAverage","1"):e.writeAttributeString("aboveAverage","0")),i.J(t.equalAverage)||(t.equalAverage?e.writeAttributeString("equalAverage","1"):e.writeAttributeString("equalAverage","0")),i.J(t.bottom)||(t.bottom?e.writeAttributeString("bottom","1"):e.writeAttributeString("bottom","0")),t.percent&&e.writeAttributeString("percent","1"),i.J(t.operator)||e.writeAttributeString("operator",t.operator),i.J(t.rank)||e.writeAttributeString("rank",t.rank),i.J(t.stdDev)||e.writeAttributeString("stdDev",t.stdDev),i.J(t.text)||e.writeAttributeString("text",i.Util.oa(t.text)),4===l.ruleType&&e.writeAttributeString("timePeriod",t.type)},function(){var r,o;if(!i.J(t.formulas))for(r=function(r){e.writeElement("formula",function(){e.writeValue(L(C(t.formulas[r])))})},o=0;o<t.formulas.length;o++)r(o)})}})},l=0;l<c.length;l++)n(l)}t.writeConditionalFormating=T;function v(e){switch(e.ruleType){case 2:return B(e);case 3:return I(e);case 4:return E(e);case 5:return R(e);case 6:case 7:return F(e);case 8:return k(e)}}function k(e){var t,r,o=0,i="aboveAverage";switch(e.type){case 1:i="belowAverage";break;case 2:i="aboveOrEqualToAverage";break;case 3:i="belowOrEqualToAverage";break;case 4:o=1;break;case 5:i="belowAverage",o=1;break;case 6:o=2;break;case 7:i="belowAverage",o=2;break;case 8:o=3;break;case 9:i="belowAverage",o=3}return t={type:i,ranges:e.ranges,priority:e.priority,stopIfTrue:e.stopIfTrue,stdDev:o,dxfId:e.dxfId},r=P(t),r&&(t.formulas=[r]),t}function F(e){var t,r,o="uniqueValues";return 7===e.ruleType&&(o="duplicateValues"),t={type:o,ranges:e.ranges,priority:e.priority,stopIfTrue:e.stopIfTrue,dxfId:e.dxfId},r=P(t),r&&(t.formulas=[r]),t}function R(e){var t,r,o=void 0;return 1===e.type&&(o=!0),t={type:"top10",ranges:e.ranges,stopIfTrue:e.stopIfTrue,percent:!1,priority:e.priority,rank:e.rank,dxfId:e.dxfId,bottom:o},r=P(t),r&&(t.formulas=[r]),t}p={0:"today",1:"yesterday",2:"tomorrow",3:"last7Days",4:"thisMonth",5:"lastMonth",6:"nextMonth",7:"thisWeek",8:"lastWeek",9:"nextWeek"};function E(e){var t=p[e.type],r={type:t,ranges:e.ranges,priority:e.priority,stopIfTrue:e.stopIfTrue,dxfId:e.dxfId},o=P(r);return o&&(r.formulas=[o]),r}function I(e){return{type:"expression",ranges:e.ranges,priority:e.priority,stopIfTrue:e.stopIfTrue,dxfId:e.dxfId,formulas:[e.formula]}}function L(e){var t=/&/g,r=/</g,o=/>/g;return"string"==typeof e?e.replace(t,"&").replace(r,"<").replace(o,">"):i.J(e)?e:""+e}function D(e){return"string"==typeof e?e.replace(/"/g,'""'):i.J(e)?e:""+e}function B(e){var t,r,o=e.operator,i="containsText",n="contains";return 2===o?(i="beginsWith",n="beginsWith"):3===o?(i="endsWith",n="endsWith"):1===o?(i="notContainsText",n="notContains"):0===o&&(n="containsText"),t={type:i,priority:e.priority,operator:n,text:e.text,stopIfTrue:e.stopIfTrue,dxfId:e.dxfId,ranges:e.ranges},r=P(t),r&&(t.formulas=[r]),t}function P(e){var t,r,o,n;if(!e||!e.ranges)return null;if(t=e.ranges[0],t.row<0||t.col<0)return null;if(r=i.IndexHelper.T(t.col)+(t.row+1),o="",o=t.rowCount===l.ExcelConstants.wb?W("${0}:${1}",i.IndexHelper.T(t.col),i.IndexHelper.T(t.col+t.colCount-1)):t.colCount===l.ExcelConstants.vb?W("${0}:${1}",t.row+1,t.row+t.rowCount):W("${0}${1}:${2}${3}",i.IndexHelper.T(t.col),t.row+1,i.IndexHelper.T(t.col+t.colCount-1),t.row+t.rowCount),n=D(e.text),"top10"===e.type)return e.bottom?e.percent?W("IF(INT(COUNT({0})*{1}%)>0,SMALL({0},INT(COUNT({0})*{1}%)),MIN({0}))>={2}",o,e.rank,r):W("SMALL(({0}),MIN({1},COUNT({0})))>={2}",o,e.rank,r):e.percent?W("IF(INT(COUNT({0})*{1}%)>0,LARGE({0},INT(COUNT({0})*{1}%)),MIN({0}))<={2}",o,e.rank,r):W("LARGE(({0}),MIN({1},COUNT({0})))<={2}",o,e.rank,r);if("containsText"===e.type)return W('NOT(ISERROR(SEARCH("{0}",{1})))',n,r);if("notContainsText"===e.type)return W('ISERROR(SEARCH("{0}",{1}))',n,r);if("beginsWith"===e.type)return W('LEFT({0},{1}) = "{2}"',r,e.text.length,n);if("endsWith"===e.type)return W('RIGHT({0},{1}) = "{2}"',r,e.text.length,n);if("duplicateValues"===e.type)return W("AND(COUNTIF({0},{1})>1,NOT(ISBLANK({1})))",o,r);if("uniqueValues"===e.type)return W("AND(COUNTIF({0},{1})=1,NOT(ISBLANK({1})))",o,r);if("aboveAverage"===e.type||"belowAverage"===e.type||"aboveOrEqualToAverage"===e.type||"belowOrEqualToAverage"===e.type){if("aboveAverage"===e.type&&i.J(e.stdDev))return W("{0}>AVERAGE({1})",r,o);if(!i.J(e.aboveAverage)){if(!(i.J(e.equalAverage)||e.aboveAverage||i.J(e.equalAverage))&&e.equalAverage&&i.J(e.stdDev))return W("{0}<=AVERAGE({1})",r,o);if(!e.aboveAverage&&i.J(e.stdDev))return W("{0}<AVERAGE({1})",r,o)}if(!i.J(e.equalAverage)&&e.equalAverage&&i.J(e.stdDev))return W("{0}>=AVERAGE({1})",r,o);if(!i.J(e.stdDev))return i.J(e.aboveAverage)||e.aboveAverage?W("({0}-AVERAGE({1}))>=STDEVP({1})*({2})",r,o,e.stdDev):W("({0}-AVERAGE({1}))<=STDEVP({1})*(-{2})",r,o,e.stdDev)}return null}function W(e){var t,r,o=[];for(t=1;t<arguments.length;t++)o[t-1]=arguments[t];return r=Array.prototype.slice.call(arguments,1),e.replace(/{(\d+)}/g,function(e,t){return void 0!==r[t]?r[t]:e})}function _(e){return n.ColorHelper.toExcelColor(e)}function N(e){return e.ruleType===d.iconSetRule&&(3===e.iconSetType||2===e.iconSetType||19===e.iconSetType||j(e.iconSetType,e))}function M(e){return e.ruleType===d.rowStateRule||e.ruleType===d.columnStateRule}function O(e){return e.ruleType===d.dataBarRule}function H(e,t,r){return e.ruleType===d.formulaRule&&i.Util.ta(e.formula,t,r)}function G(e,t,r){var o,i,n=0;for(o=0;o<e.length;o++)i=e[o],(O(i)||N(i)||H(i,t,r))&&n++;return 0!==n}t.needWriteConditionalFormatExtension=G;function U(e,t,r){var o=r.xg(t),n=o&&o.rules;n&&0!==n.length&&G(n,t,r.jj())&&e.writeElement("ext",function(){e.writeAttributeString("uri","{78C0D931-6437-407d-A8EE-F0AAD7539E65}"),e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main")},function(){e.writeElement("x14:conditionalFormattings",function(){var o,a;for(o=0;o<n.length;o++)a=n[o],A(a)||(i.J(a.id)&&(a.id=i.Util.va()),O(a)&&z(e,t,a),N(a)&&V(e,t,a),H(a,t,r.jj())&&J(e,t,a))})})}t.writeExtensionConditionalFormats=U,m="x14:conditionalFormatting",g="http://schemas.microsoft.com/office/excel/2006/main",y="x14:cfRule";function J(e,t,r){e.writeElement(m,function(){r.pivot&&e.writeAttributeString("pivot","1"),e.writeAttributeString("xmlns:xm",g)},function(){e.writeElement(y,function(){e.writeAttributeString("type","expression"),e.writeAttributeString("priority",r.priority),e.writeAttributeString("id",r.id)},function(){e.writeElement("xm:f",function(){e.writeValue(i.Util.oa(C(r.formula)))}),s.writeDxf(e,void 0,r.style,"x14:dxf")}),e.writeElement("xm:sqref",function(){e.writeValue(o.getRangeString(r.ranges))})})}function z(e,t,r){e.writeElement(m,function(){r.pivot&&e.writeAttributeString("pivot","1"),e.writeAttributeString("xmlns:xm",g)},function(){e.writeElement(y,function(){e.writeAttributeString("type",d[r.ruleType].replace("Rule","")),e.writeAttributeString("id",r.id)},function(){e.writeElement("x14:dataBar",function(){e.writeAttributeString("minLength","0"),e.writeAttributeString("maxLength","100"),r.showBarOnly&&e.writeAttributeString("showValue","0"),r.showBorder&&e.writeAttributeString("border","1"),r.gradient===!1&&e.writeAttributeString("gradient","0"),r.useNegativeFillColor===!1&&e.writeAttributeString("negativeBarColorSameAsPositive","1"),r.useNegativeBorderColor&&e.writeAttributeString("negativeBarBorderColorSameAsPositive","0"),e.writeAttributeString("direction",1===r.dataBarDirection?"rightToLeft":"leftToRight"),0!==r.axisPosition&&(1===r.axisPosition&&e.writeAttributeString("axisPosition","middle"),2===r.axisPosition&&e.writeAttributeString("axisPosition","none"))},function(){i.J(r.minType)||5===r.minType?e.writeLeafElement("x14:cfvo",function(){e.writeAttributeString("type","autoMin")}):i.J(r.minValue)?e.writeLeafElement("x14:cfvo",function(){e.writeAttributeString("type",u[r.minType])}):e.writeElement("x14:cfvo",function(){e.writeAttributeString("type",u[r.minType])},function(){e.writeElement("xm:f",function(){e.writeValue(i.Util.oa(C(r.minValue)))})}),i.J(r.maxType)||7===r.maxType?e.writeLeafElement("x14:cfvo",function(){e.writeAttributeString("type","autoMax")}):i.J(r.maxValue)?e.writeLeafElement("x14:cfvo",function(){e.writeAttributeString("type",u[r.maxType])}):e.writeElement("x14:cfvo",function(){e.writeAttributeString("type",u[r.maxType])},function(){e.writeElement("xm:f",function(){e.writeValue(i.Util.oa(C(r.maxValue)))})}),r.showBorder&&r.borderColor&&a.writeColor(e,"x14:borderColor",_(r.borderColor)),i.J(r.negativeFillColor)?a.writeColor(e,"x14:negativeFillColor",_("red")):a.writeColor(e,"x14:negativeFillColor",_(r.negativeFillColor)),i.J(r.negativeBorderColor)?a.writeColor(e,"x14:negativeBorderColor",_("black")):a.writeColor(e,"x14:negativeBorderColor",_(r.negativeBorderColor)),2!==r.axisPosition&&a.writeColor(e,"x14:axisColor",_(r.axisColor))})}),e.writeElement("xm:sqref",function(){e.writeValue(o.getRangeString(r.ranges))})})}function V(e,t,r){e.writeElement(m,function(){r.pivot&&e.writeAttributeString("pivot","1"),e.writeAttributeString("xmlns:xm",g)},function(){e.writeElement(y,function(){e.writeAttributeString("type","iconSet"),r.priority&&e.writeAttributeString("priority",r.priority),e.writeAttributeString("id",r.id)},function(){e.writeElement("x14:iconSet",function(){var t,o=r.iconSetType;i.J(o)&&(o=0),e.writeAttributeString("iconSet",f[o]),t=j(o,r),t&&e.writeAttributeString("custom","1"),r.showIconOnly&&e.writeAttributeString("showValue","0"),r.reverseIconOrder&&(t?r.icons.reverse():e.writeAttributeString("reverse","1"))},function(){var t,o,n,a,l;for(e.writeElement("x14:cfvo",function(){e.writeAttributeString("type","percent")},function(){e.writeElement("xm:f",function(){e.writeValue("0")})}),t=function(t){var o=r.iconCriteria[t];e.writeElement("x14:cfvo",function(){e.writeAttributeString("type",b[o.iconValueType]),o.isGreaterThanOrEqualTo===!1&&e.writeAttributeString("gte","0")},function(){e.writeElement("xm:f",function(){e.writeValue(i.Util.oa(C(o.iconValue)))})})},o=0;o<r.iconCriteria.length;o++)t(o);for(n=r.icons,a=function(t){e.writeLeafElement("x14:cfIcon",function(){var r=n[t].iconSetType,o=n[t].iconIndex,i=X(r,o);e.writeAttributeString("iconSet",f[i.iconSetType]),e.writeAttributeString("iconId",i.iconIndex)})},l=0;l<n.length;l++)a(l)})}),e.writeElement("xm:sqref",function(){e.writeValue(o.getRangeString(r.ranges))})})}function j(e,t){var r,o=!0,i=!0,n=!0,a=t.icons;for(r=0;r<a.length;r++)if(a[r].iconSetType!==e){o=!1;break}for(r=0;r<a.length;r++)if(a[r].iconIndex!==r){i=!1;break}for(r=0;r<a.length;r++)if(a[r].iconIndex!==a.length-1-r){n=!1;break}return!o||!i&&!n||!i&&!t.reverseIconOrder}function X(e,t){if(10===e){if(3===t)return{iconSetType:0,iconIndex:2};if(0===t)return{iconSetType:0,iconIndex:0}}else if(15===e){if(4===t)return{iconSetType:0,iconIndex:2};if(0===t)return{iconSetType:0,iconIndex:0};if(2===t)return{iconSetType:0,iconIndex:1};if(3===t)return{iconSetType:10,iconIndex:2};if(1===t)return{iconSetType:10,iconIndex:1}}else if(11===e){if(3===t)return{iconSetType:1,iconIndex:2};if(0===t)return{iconSetType:1,iconIndex:0}}else if(16===e){if(4===t)return{iconSetType:1,iconIndex:2};if(0===t)return{iconSetType:1,iconIndex:0};if(2===t)return{iconSetType:1,iconIndex:1};if(3===t)return{iconSetType:11,iconIndex:2};if(1===t)return{iconSetType:11,iconIndex:1}}else if(14===e){if(3===t)return{iconSetType:5,iconIndex:2};if(2===t)return{iconSetType:5,iconIndex:1};if(1===t)return{iconSetType:5,iconIndex:0}}else if(13===e){if(0===t)return{iconSetType:17,iconIndex:1};if(1===t)return{iconSetType:17,iconIndex:2};if(2===t)return{iconSetType:17,iconIndex:3};if(3===t)return{iconSetType:17,iconIndex:4}}return{iconSetType:e,iconIndex:t}}},"./src/xlsx-io/writer/control-writer.ts":function(e,t,r){"use strict";var o,i;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/datamodel/excel-style.ts"),i=o.UnitHelper.pixelToEMU;function n(e){e.writeElement("o:shapelayout",function(){e.writeAttributeString("v:ext","edit")},function(){e.writeLeafElement("o:idmap",function(){e.writeAttributeString("v:ext","edit"),e.writeAttributeString("data","1")})})}function a(e){e.writeElement("v:shapetype",function(){e.writeAttributeString("id","_x0000_t201"),e.writeAttributeString("coordsize","21600,21600"),e.writeAttributeString("o:spt","201"),e.writeAttributeString("path","m,l,21600r21600,l21600,xe")},function(){e.writeLeafElement("v:stroke",function(){e.writeAttributeString("joinstyle","miter")}),e.writeLeafElement("v:path",function(){e.writeAttributeString("shadowok","f"),e.writeAttributeString("o:extrusionok","f"),e.writeAttributeString("strokeok","f"),e.writeAttributeString("fillok","f"),e.writeAttributeString("o:connecttype","rect")}),e.writeLeafElement("o:lock",function(){e.writeAttributeString("v:ext","edit"),e.writeAttributeString("shapetype","t")})})}function l(e,t){t&&e.writeLeafElement("v:fill",function(){t.stops?0===t.type?c(e,t):1===t.type&&u(e,t):t.src?f(e,t):e.writeAttributeString("opacity",h(t.transparency))})}function s(e){return e=90-e,e%=360,e<0&&(e+=360),e}function c(e,t){var r,o=t.stops,i="100%",n=h(o[0].transparency),a=h(o[o.length-1].transparency);y(o)&&(o=o.slice(0,Math.floor(o.length/2)+1),o.forEach(function(e){return e.position*=2}),i="50%",a=h(o[o.length-1].transparency),r=n,n=a,a=r),e.writeAttributeString("opacity",n),e.writeAttributeString("color2",o[o.length-1].color),e.writeAttributeString("o:opacity2",a),e.writeAttributeString("recolor","t"),e.writeAttributeString("rotate","t"),e.writeAttributeString("angle",s(t.angle)),e.writeAttributeString("colors",o.map(b).join(";")),e.writeAttributeString("method","none"),e.writeAttributeString("focus",i),e.writeAttributeString("type","gradient")}function d(e){var t="0%,0%";switch(e){case 0:t="50%,50%";break;case 2:t="100%,0%";break;case 3:t="0%,100%";break;case 4:t="100%,100%"}return t}function u(e,t){var r=t.stops,o=r[r.length-1],i=h(o.transparency),n=h(r[0].transparency);e.writeAttributeString("opacity",i),e.writeAttributeString("color2",o.color),e.writeAttributeString("o:opacity2",n),e.writeAttributeString("recolor","t"),e.writeAttributeString("rotate","t"),e.writeAttributeString("colors",r.map(b).join(";")),e.writeAttributeString("method","none"),e.writeAttributeString("focusposition",d(t.direction)),e.writeAttributeString("focus","100%"),e.writeAttributeString("type","gradientradial")}function f(e,t){e.writeAttributeString("o:relid",t.rid),e.writeAttributeString("o:title","picture"),e.writeAttributeString("rotate","t"),e.writeAttributeString("type",t.tilePictureAsTexture?"tile":"frame")}function b(e){var t=e.position,r=e.color;return Math.round(100*t)+"% "+r}function h(e){return 1-e}function p(e){return e&&(e.src||e.stops||e.color)}function m(e){return e.stops?e.stops[0].color:e.color}function g(e){return e&&e.color}function y(e){var t,r=function(e,t){return Math.abs(e-t)<1e-4},o=function(e,t){return e.color===t.color&&r(e.transparency,t.transparency)&&r(e.position,1-t.position)},i=e.length,n=Math.floor(i/2);if(i<3||i%2!==1||!r(e[n].position,.5))return!1;for(t=0;t<n;t++)if(!o(e[t],e[i-1-t]))return!1;return!0}function S(e,t){t&&e.writeLeafElement("v:stroke",function(){t.dashStyle&&e.writeAttributeString("dashstyle",t.dashStyle),t.transparency&&e.writeAttributeString("opacity",1-t.transparency),t.lineStyle&&e.writeAttributeString("linestyle",t.lineStyle),t.joinStyle&&e.writeAttributeString("joinstyle",t.joinStyle)})}function C(e,t){var r=t.sp.control,o=JSON.parse(JSON.stringify(r.props)),i=r.disabled,n=function(e){return"CheckBox"===e&&(e="Checkbox"),e};e.writeElement("x:ClientData",function(){e.writeAttributeString("ObjectType",n(o.objectType))},function(){var r,n;e.writeElementString("x:Anchor",T(t)),i&&e.writeLeafElement("x:Disabled");for(r in o)n=o[r],"checked"===r&&(n=A(n)),"objectType"!==r&&("noThreeD"===r&&n?e.writeLeafElement("x:NoThreeD2"):e.writeElementString("x:"+k(r),n))})}function w(e,t){var r=t.sp.control,o=r.spid,n=r.style,a=n.fill,s=n.line;e.writeElement("v:shape",function(){e.writeAttributeString("id",o),e.writeAttributeString("o:spid",o),e.writeAttributeString("type","#_x0000_t201"),e.writeAttributeString("style",v(t)),p(a)?e.writeAttributeString("fillcolor",m(a)):e.writeAttributeString("filled","f"),g(s)?(e.writeAttributeString("strokecolor",s.color),e.writeAttributeString("strokeweight",i(s.width))):e.writeAttributeString("stroked","f"),e.writeAttributeString("o:insetmode","auto")},function(){l(e,a),S(e,s),e.writeLeafElement("o:lock",function(){e.writeAttributeString("v:ext","edit"),e.writeAttributeString("rotation","t"),e.writeAttributeString("text","t")}),C(e,t)})}function x(e,t,r){0!==t.length&&(n(e),a(e),t.forEach(function(t){t.sp.control.spid="_x0000_s"+r,r++,w(e,t)}))}t.writeControlShapes=x;function A(e){var t={Checked:1,Mixed:2};return t[e]}function T(e){var t=e.sp.control.anchorInfo,r=t.startPoint,o=t.endPoint,i=function(e){return[e.col,e.colOffset,e.row,e.rowOffset]};return i(r).concat(i(o)).join(",")}function v(e){var t="position:absolute;margin-left:0;margin-top:0;width:100%pt;height:100%pt",r=e.sp.control.visible;return r||(t+=";visibility:hidden"),t}function k(e){return e.substr(0,1).toUpperCase()+e.substr(1)}},"./src/xlsx-io/writer/ctrlprops-writer.ts":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("./src/xml-io/xml-writer.ts");function i(e){var t=new o.XmlWriter,r=e.sp.control.props;return t.writeDocument(),t.writeLeafElement("formControlPr",function(){t.writeAttributeString("xmlns","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main");for(var e in r)r.hasOwnProperty(e)&&t.writeAttributeString(e,r[e])}),t.getXmlString()}t.writeCtrlProps=i},"./src/xlsx-io/writer/datavalidation-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=o.StringEx.O,n=o.Util.oa,a=null,l={0:"none",1:"whole",2:"decimal",3:"list",4:"date",5:"time",6:"textLength",7:"custom"},s={0:"stop",1:"warning",2:"information"},c={6:"between",7:"notBetween",0:"equal",1:"notEqual",2:"greaterThan",4:"lessThan",3:"greaterThanOrEqual",5:"lessThanOrEqual"};function d(e){return o.isNullOrUndefined(e)||""===e}function u(e){var t,r,o=/\[[^\]]+\]|@/,i=e.split(/\'|\"/g);if(i&&i.length>0)for(t=0;t<i.length;t++)if(r=i[t],t%2===0&&r.match(o))return!0;return!1}t.isTablesheetColumnFormula=u;function f(e){var t=o.isNullOrUndefined(e.ranges)||""===e.ranges||0===e.ranges.length;return e.firstFormula&&(t=t||u(e.firstFormula)),e.secondFormula&&(t=t||u(e.secondFormula)),t}function b(e,t){o.isNullOrUndefined(t.type)||0===t.type||e.writeAttributeString("type",l[t.type]),o.isNullOrUndefined(t.errorStyle)||0===t.errorStyle||e.writeAttributeString("errorStyle",s[t.errorStyle]),o.isNullOrUndefined(t.compareOperator)||6===t.compareOperator||e.writeAttributeString("operator",c[t.compareOperator]),t.allowBlank!==!1&&e.writeAttributeString("allowBlank","1"),t.showPromptBox===!1&&e.writeAttributeString("showDropDown","1"),t.showInputMessage!==!1&&e.writeAttributeString("showInputMessage","1"),t.showErrorBox!==!1&&e.writeAttributeString("showErrorMessage","1"),d(t.errorTitle)||e.writeAttributeString("errorTitle",n(t.errorTitle)),d(t.error)||e.writeAttributeString("error",n(o.Util.xa(t.error))),d(t.promptTitle)||e.writeAttributeString("promptTitle",n(t.promptTitle)),d(t.prompt)||e.writeAttributeString("prompt",n(o.Util.xa(t.prompt)))}function h(e,t,r){var a=r.Jj(t),l=[];r.On||(r.On=[]),a.length>0&&a.forEach(function(e){e.external?r.On.push(e):l.push(e)}),l.length>0&&e.writeElement("dataValidations",function(){e.writeAttributeString("count",l.length)},function(){l.forEach(function(t){o.isNullOrUndefined(t)||f(t)||e.writeElement("dataValidation",function(){b(e,t),e.writeAttributeString("sqref",t.ranges)},function(){i(t.firstFormula)||e.writeElementString("formula1",n(o.addXLFNPrefix(t.firstFormula))),i(t.secondFormula)||e.writeElementString("formula2",n(o.addXLFNPrefix(t.secondFormula)))})})})}t.writeDataValidations=h;function p(e,t){var r=t.On;r&&0===r.length||(e.writeElement("ext",function(){e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"),e.writeAttributeString("uri","{CCE6A557-97BC-4b89-ADB6-D9C93CAAB3DF}")},function(){e.writeElement("x14:dataValidations",function(){e.writeAttributeString("xmlns:xm","http://schemas.microsoft.com/office/excel/2006/main"),e.writeAttributeString("count",r.length)},function(){r.forEach(function(t){e.writeElement("x14:dataValidation",function(){b(e,t)},function(){i(t.firstFormula)||e.writeElement("x14:formula1",function(){e.writeElementString("xm:f",n(o.addXLFNPrefix(t.firstFormula)))}),i(t.secondFormula)||e.writeElement("x14:formula2",function(){e.writeElementString("xm:f",n(o.addXLFNPrefix(t.secondFormula)))}),e.writeElementString("xm:sqref",t.ranges)})})})}),t.On=a)}t.writeExtensionDataValidations=p},"./src/xlsx-io/writer/docPropsAppWriter.ts":function(e,t,r){"use strict";var o,i,n;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts");function a(e){var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("Properties",function(){t.writeAttributeString("xmlns",i.XFileConstants.te),t.writeAttributeString("xmlns:vt",i.XFileConstants.ue)},function(){var r,o=e.Ne.docProps.docPropsApp;for(r in o)if(o.hasOwnProperty(r))switch(r){case"HeadingPairs":l(t,o);break;case"TitlesOfParts":s(t,o);break;default:c(r,t,o)}}),t.getXmlString()}t.writeDocPropsApp=a;function l(e,t){e.writeElement("HeadingPairs",function(){},function(){e.writeElement("vt:vector",function(){e.writeAttributeString("size",t.HeadingPairs.size),e.writeAttributeString("baseType",t.HeadingPairs.baseType)},function(){var r,o=t.HeadingPairs.workbookInfoArray,i=function(t){e.writeElement("vt:variant",function(){},function(){e.writeElement(o[t].elementType,function(){},function(){e.writeValue(o[t].value)})})};for(r=0;r<o.length;r++)i(r)})})}function s(e,t){e.writeElement("TitlesOfParts",function(){},function(){e.writeElement("vt:vector",function(){e.writeAttributeString("size",t.TitlesOfParts.size),e.writeAttributeString("baseType",t.TitlesOfParts.baseType)},function(){var r,o=t.TitlesOfParts.sheetsNameArray,i=function(t){e.writeElement("vt:lpstr",function(){},function(){e.writeValue(n.Util.oa(o[t]))})};for(r=0;r<o.length;r++)i(r)})})}function c(e,t,r){var o=e.slice(0,1).toUpperCase()+e.slice(1);t.writeElement(o,function(){},function(){t.writeValue(r[e])})}},"./src/xlsx-io/writer/docPropsCoreWriter.ts":function(e,t,r){"use strict";var o,i;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts");function n(e){var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("cp:coreProperties",function(){t.writeAttributeString("xmlns:cp",i.XFileConstants.ne),t.writeAttributeString("xmlns:dc",i.XFileConstants.oe),t.writeAttributeString("xmlns:dcterms",i.XFileConstants.pe),t.writeAttributeString("xmlns:dcmitype",i.XFileConstants.qe),t.writeAttributeString("xmlns:xsi",i.XFileConstants.re)},function(){var r,o=e.Ne.docProps.docPropsCore,i=function(e){if(o.hasOwnProperty(e))switch(e){case"title":t.writeElement("dc:title",function(){},function(){t.writeValue(o[e])});break;case"subject":t.writeElement("dc:subject",function(){},function(){t.writeValue(o[e])});break;case"creator":t.writeElement("dc:creator",function(){},function(){t.writeValue(o[e])});break;case"keywords":t.writeElement("cp:keywords",function(){},function(){t.writeValue(o[e])});break;case"description":t.writeElement("dc:description",function(){},function(){t.writeValue(o[e])});break;case"lastModifiedBy":t.writeElement("cp:lastModifiedBy",function(){},function(){t.writeValue(o[e])});break;case"created":t.writeElement("dcterms:created",function(){t.writeAttributeString("xsi:type","dcterms:W3CDTF")},function(){t.writeValue(o[e])});break;case"modified":t.writeElement("dcterms:modified",function(){t.writeAttributeString("xsi:type","dcterms:W3CDTF")},function(){t.writeValue(o[e])});break;case"lastPrinted":t.writeElement("cp:lastPrinted",function(){},function(){t.writeValue(o[e])});break;case"category":t.writeElement("cp:category",function(){},function(){t.writeValue(o[e])});break;case"contentStatus":t.writeElement("cp:contentStatus",function(){},function(){t.writeValue(o[e])});break;case"language":t.writeElement("dc:language",function(){},function(){t.writeValue(o[e])});break;case"version":t.writeElement("cp:version",function(){},function(){t.writeValue(o[e])});break;case"revision":t.writeElement("cp:revision",function(){},function(){t.writeValue(o[e])})}};for(r in o)i(r)}),t.getXmlString()}t.writeDocPropsCore=n},"./src/xlsx-io/writer/docPropsCustomWriter.ts":function(e,t,r){"use strict";var o,i;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts");function n(e){var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("Properties",function(){t.writeAttributeString("xmlns",i.XFileConstants.we),t.writeAttributeString("xmlns:vt",i.XFileConstants.xe)},function(){var r,o=e.Ne.docProps.docPropsCustom,i=function(e){var r=o[e];t.writeElement("property",function(){for(var e in r)"propertyItemChildElement"!==e&&t.writeAttributeString(e,r[e])},function(){var e,o=r.propertyItemChildElement,i=function(e){o.hasOwnProperty(e)&&t.writeElement(e,function(){},function(){t.writeValue(o[e])})};for(e in o)i(e)})};for(r=0;r<o.length;r++)i(r)}),t.getXmlString()}t.writeDocPropsCustom=n},"./src/xlsx-io/writer/drawing-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/datamodel/excel-style.ts"),a=r("./src/xlsx-io/writer/slicer-writer.ts"),l=r("./src/xlsx-io/common/color-writer.ts"),s=r("./src/xlsx-io/writer/chart-writer.ts"),c=r("./src/datamodel/chart-model.ts");function d(){return i.XFileConstants}function u(e,t,r){l.writeColorScheme(e,t,r)}function f(e){return n.UnitHelper.pixelToEMU(e)}function b(e,t){e.forEach(function(e){t.push((e.nvSpPr||e.nvCxnSpPr||e.nvGrpSpPr||e.nvPicPr||e.nvGraphicFramePr).cNvPr.id),e.nvGrpSpPr&&b(e.sp,t)})}function h(e){var t=[];return e.forEach(function(e){if(e.sp)t.push(e.sp.nvSpPr.cNvPr.id);else if(e.cxnSp)t.push(e.cxnSp.nvCxnSpPr.cNvPr.id);else if(e.pic)t.push(e.pic.nvPicPr.cNvPr.id);else if(e.graphicFrame)t.push(e.graphicFrame.nvGraphicFramePr.cNvPr.id);else if(e.grpSp){var r=e.grpSp;t.push(r.nvGrpSpPr.cNvPr.id),b(r.sp,t)}}),Math.max.apply(null,t)}function p(e,t,r){var i=new o.XmlWriter;return i.k=1,i.writeDocument(!0),i.currentFile=r,i.writeElement("xdr:wsDr",function(){i.writeAttributeString("xmlns:xdr",d().Kd),i.writeAttributeString("xmlns:a",d().Ld)},function(){var e,r,o,n,l,s=t.shapes;s&&s.length&&(e=!0,r=h(s),i.k=r+1),o=t.pictures,o&&o.length&&S(i,o),n=t.slicers,n&&n.length&&a.writeSlicerDrawings(i,n,w),l=t.charts,l&&l.length&&g(i,l),e&&y(i,s)}),i.getXmlString()}t.writeDrawing=p;function m(e){var t={AnchorBaseList:[]};return e.forEach(function(e){e.graphicFrame||(e.graphicFrame={}),e.graphicFrame.graphic={graphicData:{chart:{id:e.chartId,typeName:"chartSpace"}}},t.AnchorBaseList.push(e)}),t}function g(e,t){var r=m(t);r.AnchorBaseList.forEach(function(t){1===t.anchorType?s.DrawingWriter.WriteCT_OneCellAnchor(e,"xdr","oneCellAnchor",t):0===t.anchorType?s.DrawingWriter.WriteCT_TwoCellAnchor(e,"xdr","twoCellAnchor",t):2===t.anchorType&&s.DrawingWriter.WriteCT_AbsoluteAnchor(e,"xdr","absoluteAnchor",t)})}function y(e,t){var r=function(e){return e.sp&&e.sp.control},o=function(e){return e.graphicFrame&&e.graphicFrame.graphic.graphicData.slicer},i=function(e){return e.graphicFrame&&e.graphicFrame.graphic.graphicData.timeslicer};t.forEach(function(t){o(t)||i(t)||(r(t)?v(e,t):t.pic&&t.pic.cameraTool===!0?(t.AlternateContent=s.DrawingWriter.mc,s.DrawingWriter.WriteCT_AlternateContent(e,"mc","AlternateContent",t)):1===t.anchorType?s.DrawingWriter.WriteCT_OneCellAnchor(e,"xdr","oneCellAnchor",t):0===t.anchorType?s.DrawingWriter.WriteCT_TwoCellAnchor(e,"xdr","twoCellAnchor",t):2===t.anchorType&&s.DrawingWriter.WriteCT_AbsoluteAnchor(e,"xdr","absoluteAnchor",t))})}function S(e,t){t.forEach(function(t){C(e,t)})}function C(e,t){var r=t&&t.twoCellAnchor;r&&e.writeElement("xdr:twoCellAnchor",function(){var t=r.editAs;t&&e.writeAttributeString("editAs",c.Charts.ST_EditAs[t])},function(){w(e,"xdr:from",r.startPoint),w(e,"xdr:to",r.endPoint),x(e,t),T(e,t)})}function w(e,t,r){e.writeElement(t,function(){e.writeElementString("xdr:col",r.col),e.writeElementString("xdr:colOff",f(r.colOffset)),e.writeElementString("xdr:row",r.row),e.writeElementString("xdr:rowOff",f(r.rowOffset))})}function x(e,t){e.writeElement("xdr:pic",function(){
|
52
|
+
e.writeElement("xdr:nvPicPr",function(){e.writeLeafElement("xdr:cNvPr",function(){e.writeAttributeString("id",e.k),e.k++,e.writeAttributeString("name",t.name),t.descr&&e.writeAttributeString("descr",t.descr),t.hidden&&e.writeAttributeString("hidden","1")}),e.writeElement("xdr:cNvPicPr",function(){e.writeLeafElement("a:picLocks",function(){e.writeAttributeString("noChangeAspect","1")})})}),e.writeElement("xdr:blipFill",function(){"svg+xml"===t.imageType?e.writeElement("a:blip",function(){e.writeAttributeString("xmlns:r",d().Ud)},function(){e.writeElement("a:extLst",function(){e.writeElement("a:ext",function(){e.writeAttributeString("uri","{96DAC541-7B7A-43D3-8B79-37D633B846F1}")},function(){e.writeLeafElement("asvg:svgBlip",function(){e.writeAttributeString("xmlns:asvg",d().Zd),e.writeAttributeString("r:embed",t.rid)})})})}):e.writeElement("a:blip",function(){e.writeAttributeString("xmlns:r",d().Ud),e.writeAttributeString("r:embed",t.rid),e.writeAttributeString("cstate","print")},function(){e.writeElement("a:extLst",function(){e.writeElement("a:ext",function(){e.writeAttributeString("uri","{28A0092B-C50C-407E-A947-70E740481C1C}")},function(){e.writeLeafElement("a14:useLocalDpi",function(){e.writeAttributeString("xmlns:a14",d().Yd),e.writeAttributeString("val","0")})})})});var r=t.srcRect;r&&s.DrawingWriter.WriteCT_RelativeRect(e,"a","srcRect",r),e.writeElement("a:stretch",function(){r||e.writeLeafElement("a:fillRect")})}),A(e,t)})}function A(e,t){e.writeElement("xdr:spPr",function(){var r,o,i,n,a,l;e.writeElement("a:xfrm",function(){t.rot&&e.writeAttributeString("rot",s.DrawingWriter.getRotationData(t.rot))},function(){e.writeLeafElement("a:off",function(){e.writeAttributeString("x","0"),e.writeAttributeString("y","0")}),e.writeLeafElement("a:ext",function(){e.writeAttributeString("cx","0"),e.writeAttributeString("cy","0")})}),e.writeElement("a:prstGeom",function(){e.writeAttributeString("prst","rect")},function(){e.writeLeafElement("a:avLst")}),r=t.fillColor,r&&u(e,"a:solidFill",r),o=t.lineBorder,i=o.width,n=o.color,a=o.style,l=o.noFill,e.writeElement("a:ln",function(){null!==i&&void 0!==i&&e.writeAttributeString("w",f(i)),"dbl"===a&&e.writeAttributeString("cmpd","dbl")},function(){l?e.writeLeafElement("a:noFill"):u(e,"a:solidFill",n),"dbl"!==a&&e.writeLeafElement("a:prstDash",function(){e.writeAttributeString("val",a)})})})}function T(e,t){e.writeLeafElement("xdr:clientData",function(){t.locked===!1&&e.writeAttributeString("fLocksWithSheet","0")})}function v(e,t){var r,o,i=t.sp.nvSpPr.cNvPr.extLst||{};i.ext=i.ext||[],i.ext.push({uri:"{63B3BB69-23CF-44E3-9099-C40C66FF867C}",compatExt:{spid:t.sp.control.spid}}),t.sp.nvSpPr.cNvPr.extLst=i,r={a14:s.DrawingWriter.a14,Requires:"a14",twoCellAnchor:t},o={AlternateContent:s.DrawingWriter.mc,Choice:r,FallBack:!0},s.DrawingWriter.WriteCT_AlternateContent(e,"mc","AlternateContent",o)}},"./src/xlsx-io/writer/externalLink-writer.ts":function(e,t,r){"use strict";var o,i,n;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts");function a(e,t){var r=new o.XmlWriter;return r.writeDocument(),r.writeElement("externalLink",function(){r.writeAttributeString("xmlns",i.XFileConstants.Hd),r.writeAttributeString("xmlns:mc",i.XFileConstants.Jd),r.writeAttributeString("xmlns:x14",i.XFileConstants.$d),r.writeAttributeString("mc:Ignorable","x14")},function(){r.writeElement("externalBook",function(){r.writeAttributeString("xmlns:r",i.XFileConstants.Ud),r.writeAttributeString("r:id","rId1")},function(){r.writeElement("sheetNames",void 0,function(){l(r,t.sheetNames)}),t.data&&r.writeElement("sheetDataSet",void 0,function(){var e,o=function(e){var o=t.data[t.sheetNames[e]];o&&r.writeElement("sheetData",function(){r.writeAttributeString("sheetId",e),o.isNew&&r.writeAttributeString("refreshError",1)},function(){s(r,t.data[t.sheetNames[e]])})};for(e=0;e<t.sheetNames.length;e++)o(e)})})}),r.getXmlString()}t.writeExternalLink=a;function l(e,t){t&&t.forEach(function(t){e.writeElement("sheetName",function(){e.writeAttributeString("val",t.replace(/\&/g,"&").replace(/\"/g,""").replace(/\>/g,">").replace(/\</g,"<"))},function(){})})}function s(e,t){var r,o=function(r){var o,i;if(Object.prototype.hasOwnProperty.call(t,r)){if(o=parseInt(r,10)+1,isNaN(o))return"continue";i=t[r],e.writeElement("row",function(){e.writeAttributeString("r",""+o)},function(){var t,r=function(t){var r,a;Object.prototype.hasOwnProperty.call(i,t)&&(r=i[t],"string"==typeof r?a="str":"boolean"==typeof r?(a="b",r=r?"1":"0"):r&&r._code&&(a="e",r=r._calcError||r._error,"#SPILL!"!==r&&"#CALC!"!==r||(r="#VALUE!")),e.writeElement("cell",function(){e.writeAttributeString("r",n.IndexHelper.T(parseInt(t,10))+o),a&&e.writeAttributeString("t",a)},function(){e.writeElement("v",function(){},function(){e.writeValue(r)})}))};for(t in i)r(t)})}};for(r in t)o(r)}},"./src/xlsx-io/writer/metadata-writer.ts":function(e,t,r){"use strict";var o,i;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/excel-types.ts");function n(e,t,r){r&&e.push('\txmlns:xlrd="'+o.XFileConstants.he+'"'),t&&e.push('\txmlns:xda="'+o.XFileConstants.ge+'">')}i='minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1"';function a(e,t,r){var o=(t?1:0)+(r?1:0);e.push('\t<metadataTypes count="'+o+'">'),t&&e.push('\t\t<metadataType name="XLDAPR" '+i+' cellMeta="1"/>'),r&&e.push('\t\t<metadataType name="XLRICHVALUE" '+i+"/>"),e.push("\t</metadataTypes>")}function l(e,t,r,o){if(t&&e.push('\t<futureMetadata name="XLDAPR" count="1"> <bk> <extLst> <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}"> <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/> </ext> </extLst> </bk> </futureMetadata>'),r){var i='<futureMetadata name="XLRICHVALUE" count="'+(o?2:1)+'"> <bk> <extLst> <ext uri="{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}"> <xlrd:rvb i="0"/> </ext> </extLst> </bk>';o&&(i+=' <bk> <extLst> <ext uri="{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}"> <xlrd:rvb i="1"/> </ext> </extLst> </bk>'),e.push("\t"+i+" </futureMetadata>")}}function s(e){var t=[],r=e>0,o=e>1,i=e>2;return t.push('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'),t.push("<metadata"),t.push('\txmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"'),n(t,r,o),a(t,r,o),l(t,r,o,i),r&&t.push('\t<cellMetadata count="1"> <bk> <rc t="1" v="0"/> </bk> </cellMetadata>'),o&&t.push('\t<valueMetadata count="'+(i?2:1)+'"> <bk> <rc t="2" v="0"/> </bk>'+(i?'<bk> <rc t="2" v="1"/> </bk>':"")+" </valueMetadata>"),t.push("</metadata>"),t.join("\r\n")}t.getMetadataContent=s},"./src/xlsx-io/writer/pivot-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/datamodel/datetime-helper.ts"),l=r("./src/xlsx-io/writer/autofilter-writer.ts"),t.captionCompareTypeExcel=[["captionEqual","captionNotEqual","captionBeginsWith","captionNotBeginsWith","captionEndsWith","captionNotEndsWith","captionContains","captionNotContains","captionGreaterThan","captionGreaterThanOrEqual","captionLessThan","captionLessThanOrEqual","captionBetween","captionNotBetween"],["dateEqual","dateNotEqual","dateOlderThan","dateOlderThanOrEqual","dateNewerThan","dateNewerThanOrEqual","dateBetween","dateNotBetween","today","yesterday","tomorrow",void 0,"thisMonth","lastMonth","nextMonth","thisWeek","lastWeek","nextWeek","nextQuarter","thisQuarter","lastQuarter","nextYear","thisYear","lastYear","Q1","Q2","Q3","Q4","M1","M2","M3","M4","M5","M6","M7","M8","M9","M10","M11","M12","yearToDate"],["valueEqual","valueNotEqual","valueGreaterThan","valueGreaterThanOrEqual","valueLessThan","valueLessThanOrEqual","valueBetween","valueNotBetween"],["count","percent","sum"]],s=o.Util.oa,c=o.Util.Ba,d=o.Util.xa,u="mc:Ignorable";function f(e){var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("pivotCacheDefinition",function(){t.writeAttributeString("xmlns",n.XFileConstants.Hd),t.writeAttributeString("xmlns:r",n.XFileConstants.Ud),t.writeAttributeString("xmlns:mc",n.XFileConstants.Jd),t.writeAttributeString(u,n.XFileConstants.Qd),t.writeAttributeString("xmlns:xr",n.XFileConstants.me),t.writeAttributeString("r:id","rId1"),e.saveData===!1&&t.writeAttributeString("saveData","0"),o.isNullOrUndefined(e.refreshedBy)||t.writeAttributeString("refreshedBy",e.refreshedBy),o.isNullOrUndefined(e.refreshedDate)||t.writeAttributeString("refreshedDate",a.DateTimeHelper.ig(e.refreshedDate)),e.backgroundQuery&&t.writeAttributeString("backgroundQuery","1"),o.isNullOrUndefined(e.createdVersion)?t.writeAttributeString("createdVersion","7"):t.writeAttributeString("createdVersion",e.createdVersion),o.isNullOrUndefined(e.refreshedVersion)?t.writeAttributeString("refreshedVersion","7"):t.writeAttributeString("refreshedVersion",e.refreshedVersion),e.enableRefresh===!1&&t.writeAttributeString("enableRefresh","0"),e.invalid&&t.writeAttributeString("invalid","1"),e.minRefreshableVersion>0&&e.minRefreshableVersion<=e.createdVersion&&t.writeAttributeString("minRefreshableVersion",e.minRefreshableVersion),e.missingItemsLimit>0&&t.writeAttributeString("missingItemsLimit",e.missingItemsLimit),e.optimizeMemory&&t.writeAttributeString("optimizeMemory","1"),o.isNullOrUndefined(e.recordCount)||t.writeAttributeString("recordCount",e.recordCount),o.isNullOrUndefined(e.refreshOnLoad)||t.writeAttributeString("refreshOnLoad","1"),e.supportSubquery&&t.writeAttributeString("supportSubquery","1"),e.supportAdvancedDrill&&t.writeAttributeString("supportAdvancedDrill","1"),e.tupleCache&&t.writeAttributeString("tupleCache","1"),e.upgradeOnRefresh&&t.writeAttributeString("upgradeOnRefresh","1")},function(){h(t,e),p(t,e.fields),e.cacheHierarchies&&e.cacheHierarchies.length>0&&A(t,e),e.KPIs&&e.KPIs.length>0&&E(t,e),o.isNullOrUndefined(e.pivotTupleCache)||L(t,e.pivotTupleCache),e.calculatedItems&&e.calculatedItems.length>0&&_(t,e),e.calculatedMembers&&e.calculatedMembers.length>0&&M(t,e),e.dimensions&&e.dimensions.length>0&&H(t,e),e.measureGroups&&e.measureGroups.length>0&&U(t,e),e.measureDimensionMaps&&e.measureDimensionMaps.length>0&&z(t,e),b(t,e.pivotCacheId)}),t.getXmlString()}t.writePivotCacheDefinition=f;function b(e,t){e.writeElement("extLst",function(){},function(){e.writeElement("ext",function(){e.writeAttributeString("uri","{725AE2AE-9491-48be-B2B4-4EB974FC3084}"),e.writeAttributeString("xmlns:x14",n.XFileConstants.$d)},function(){e.writeLeafElement("x14:pivotCacheDefinition",function(){e.writeAttributeString("pivotCacheId",t+"")},function(){})})})}function h(e,t){e.writeElement("cacheSource",function(){e.writeAttributeString("type",t.sourceType)},function(){"worksheet"===t.sourceType&&e.writeLeafElement("worksheetSource",function(){t.sourceName&&e.writeAttributeString("name",t.sourceName),t.ref&&e.writeAttributeString("ref",t.ref),t.sheet&&e.writeAttributeString("sheet",t.sheet)})})}function p(e,t){e.writeElement("cacheFields",function(){e.writeAttributeString("count",t.length)},function(){var r,o;for(r=0;r<t.length;r++)o=t[r],m(e,o)})}function m(e,t){e.writeElement("cacheField",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),o.isNullOrUndefined(t.formula)||e.writeAttributeString("formula",s(t.formula)),o.isNullOrUndefined(t.numFmtId)||e.writeAttributeString("numFmtId",t.numFmtId),t.databaseField===!1&&e.writeAttributeString("databaseField","0"),t.hierarchy>0&&e.writeAttributeString("hierarchy",t.hierarchy),t.level>0&&e.writeAttributeString("level",t.level),t.mappingCount>0&&e.writeAttributeString("mappingCount",t.mappingCount),o.isNullOrUndefined(t.memberPropertyField)||e.writeAttributeString("memberPropertyField","1"),o.isNullOrUndefined(t.propertyName)||e.writeAttributeString("propertyName",t.propertyName),o.isNullOrUndefined(t.serverField)||e.writeAttributeString("serverField","1"),t.sqlType>0&&e.writeAttributeString("sqlType",t.sqlType),t.uniqueList===!1&&e.writeAttributeString("uniqueList","0")},function(){t.databaseField!==!1&&(t.entities&&t.entities.length>0?e.writeElement("sharedItems",function(){g(e,t)},function(){y(e,t)}):e.writeLeafElement("sharedItems",function(){g(e,t)})),x(e,t.fieldGroup)})}function g(e,t){t.containsSemiMixedTypes===!1&&e.writeAttributeString("containsSemiMixedTypes","0"),t.containsNonDate===!1&&e.writeAttributeString("containsNonDate","0"),t.containsDate&&e.writeAttributeString("containsDate","1"),t.containsString===!1&&e.writeAttributeString("containsString","0"),t.containsBlank&&e.writeAttributeString("containsBlank","1"),t.containsMixedTypes&&e.writeAttributeString("containsMixedTypes","1"),t.containsNumber&&!t.containsDate&&e.writeAttributeString("containsNumber","1"),t.containsInteger&&!t.containsDate&&e.writeAttributeString("containsInteger","1"),t.longText&&e.writeAttributeString("longText","1"),t.containsDate?(e.writeAttributeString("minDate",c(new Date(t.minDate))),e.writeAttributeString("maxDate",c(new Date(t.maxDate)))):(t.containsNumber||t.containsInteger)&&(e.writeAttributeString("minValue",""+t.minValue),e.writeAttributeString("maxValue",""+t.maxValue)),t.isShared&&(e.writeAttributeString("minDate",c(new Date(t.minDate))),e.writeAttributeString("maxDate",c(new Date(t.maxDate)))),t.entities&&t.entities.length>0&&e.writeAttributeString("count",t.entities.length)}function y(e,t){var r,o;for(r=0;r<t.entities.length;r++)o=t.entities[r],C(e,o)}function S(e,t){var r=null;o.isNullOrUndefined(t.value)||(r=t.value,w(e,t,r))}function C(e,t){var r=null;switch(t.type){case n.PivotSharedItemType.B:e.writeLeafElement("b",function(){o.isNullOrUndefined(t.value)||(r=t.value?"1":"0",w(e,t,r))});break;case n.PivotSharedItemType.D:e.writeLeafElement("d",function(){o.isNullOrUndefined(t.value)||(r=c(new Date(t.value)),w(e,t,r))});break;case n.PivotSharedItemType.E:e.writeLeafElement("e",function(){S(e,t)});break;case n.PivotSharedItemType.M:e.writeLeafElement("m");break;case n.PivotSharedItemType.N:e.writeLeafElement("n",function(){S(e,t)});break;case n.PivotSharedItemType.S:e.writeLeafElement("s",function(){S(e,t)});break;case n.PivotSharedItemType.X:e.writeLeafElement("x",function(){S(e,t)})}}function w(e,t,r){o.isNullOrUndefined(r)||e.writeAttributeString("v",s(r)),o.isNullOrUndefined(t.caption)||e.writeAttributeString("c",t.caption),t.propertyCount>0&&e.writeAttributeString("cp",t.propertyCount),t.isCalculatedItem&&e.writeAttributeString("f","1"),o.isNullOrUndefined(t.isUnusedItem)||e.writeAttributeString("u","1"),o.isNullOrUndefined(t.isBold)||e.writeAttributeString("b","1"),o.isNullOrUndefined(t.backgroundColor)||e.writeAttributeString("bc",t.backgroundColor),o.isNullOrUndefined(t.foregroundColor)||e.writeAttributeString("fc",t.foregroundColor),o.isNullOrUndefined(t.isItalic)||e.writeAttributeString("i","1"),t.formatIndex>0&&e.writeAttributeString("in",t.formatIndex),o.isNullOrUndefined(t.isStrikethrough)||e.writeAttributeString("st","1"),o.isNullOrUndefined(t.isUnderline)||e.writeAttributeString("un","1")}function x(e,t){o.isNullOrUndefined(t)||e.writeElement("fieldGroup",function(){t.par>=0&&e.writeAttributeString("par",t.par),t.base>=0&&e.writeAttributeString("base",t.base)},function(){var r,i;t.hasRangeGroup&&e.writeLeafElement("rangePr",function(){t.autoStart===!1&&e.writeAttributeString("autoStart","0"),t.autoEnd===!1&&e.writeAttributeString("autoEnd","0"),o.isNullOrUndefined(t.groupInterval)||e.writeAttributeString("groupInterval",t.groupInterval),o.isNullOrUndefined(t.groupBy)||e.writeAttributeString("groupBy",t.groupBy),o.isNullOrUndefined(t.startNum)||e.writeAttributeString("startNum",t.startNum),o.isNullOrUndefined(t.endNum)||e.writeAttributeString("endNum",t.endNum),o.isNullOrUndefined(t.startDate)||e.writeAttributeString("startDate",c(new Date(t.startDate))),o.isNullOrUndefined(t.endDate)||e.writeAttributeString("endDate",c(new Date(t.endDate)))}),r=t.discreteGroup,r&&r.length>0&&e.writeElement("discretePr",function(){e.writeAttributeString("count",r.length)},function(){var t,o=function(t){e.writeLeafElement("x",function(){e.writeAttributeString("v",r[t])})};for(t=0;t<r.length;t++)o(t)}),i=t.groupItems,i&&i.length>0&&e.writeElement("groupItems",function(){e.writeAttributeString("count",i.length)},function(){for(var t=0;t<i.length;t++)C(e,i[t])})})}function A(e,t){t.cacheHierarchies&&t.cacheHierarchies.length>0&&e.writeElement("cacheHierarchies",function(){e.writeAttributeString("count",t.cacheHierarchies.length)},function(){for(var r=0;r<t.cacheHierarchies.length;r++)T(e,t.cacheHierarchies[r])})}function T(e,t){e.writeElement("cacheHierarchy",function(){o.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),t.measure&&e.writeAttributeString("measure","1"),t.set&&e.writeAttributeString("set","1"),t.parentSet>=0&&e.writeAttributeString("parentSet",t.parentSet),t.iconSet>0&&e.writeAttributeString("iconSet",t.iconSet),t.attribute&&e.writeAttributeString("attribute","1"),t.time&&e.writeAttributeString("time","1"),t.keyAttribute&&e.writeAttributeString("keyAttribute","1"),o.isNullOrUndefined(t.defaultMemberUniqueName)||e.writeAttributeString("defaultMemberUniqueName",t.defaultMemberUniqueName),o.isNullOrUndefined(t.allUniqueName)||e.writeAttributeString("allUniqueName",t.allUniqueName),o.isNullOrUndefined(t.allCaption)||e.writeAttributeString("allCaption",t.allCaption),o.isNullOrUndefined(t.dimensionUniqueName)||e.writeAttributeString("dimensionUniqueName",t.dimensionUniqueName),o.isNullOrUndefined(t.displayFolder)||e.writeAttributeString("displayFolder",t.displayFolder),o.isNullOrUndefined(t.measureGroup)||e.writeAttributeString("measureGroup",t.measureGroup),t.measures&&e.writeAttributeString("measures","1"),t.count>=0&&e.writeAttributeString("count",t.count),t.oneField&&e.writeAttributeString("oneField","1"),t.memberValueDatatype>0&&e.writeAttributeString("memberValueDatatype",t.memberValueDatatype),t.unbalanced||e.writeAttributeString("unbalanced","0"),t.unbalancedGroup||e.writeAttributeString("unbalancedGroup","0"),t.hidden&&e.writeAttributeString("hidden","1")},function(){t.fieldsUsage.length>0&&e.writeElement("fieldsUsage",function(){e.writeAttributeString("count",t.fieldsUsage.length)},function(){for(var r=0;r<t.fieldsUsage.length;r++)v(e,t.fieldsUsage[r])}),t.groupLevels.length>0&&e.writeElement("groupLevels",function(){e.writeAttributeString("count",t.groupLevels.length)},function(){for(var r=0;r<t.groupLevels.length;r++)k(e,t.groupLevels[r])})})}function v(e,t){e.writeElement("fieldUsage",function(){e.writeAttributeString("x",t)})}function k(e,t){e.writeElement("groupLevel",function(){o.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),t.user&&e.writeAttributeString("user","1"),t.customRollUp&&e.writeAttributeString("customRollUp","1")},function(){t.groups.length>0&&e.writeElement("groups",function(){e.writeAttributeString("count",t.groups.length)},function(){var r,o;for(r=0;r<t.groups.length;r++)o=t.groups[r],F(e,o)})})}function F(e,t){e.writeElement("group",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.Name))),o.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),o.isNullOrUndefined(t.uniqueParent)||e.writeAttributeString("uniqueParent",t.uniqueParent),t.id>0&&e.writeAttributeString("id",t.id)},function(){t.groupMembers.length>0&&e.writeElement("groupMembers",function(){e.writeAttributeString("count",t.groupMembers.length)},function(){for(var r=0;r<t.groupMembers.length;r++)R(e,t.groupMembers[r])})})}function R(e,t){e.writeLeafElement("groupMember",function(){o.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),t.group&&e.writeAttributeString("group",1)})}function E(e,t){t.KPIs&&t.KPIs.length>0&&e.writeElement("kpis",function(){e.writeAttributeString("count",t.KPIs.length)},function(){var r,o;for(r=0;r<t.KPIs.length;r++)o=t.KPIs[r],I(e,o)})}function I(e,t){e.writeLeafElement("kpi",function(){o.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),o.isNullOrUndefined(t.displayFolder)||e.writeAttributeString("displayFolder",t.displayFolder),o.isNullOrUndefined(t.measureGroup)||e.writeAttributeString("measureGroup",t.measureGroup),o.isNullOrUndefined(t.parent)||e.writeAttributeString("parent",t.parent),o.isNullOrUndefined(t.value)||e.writeAttributeString("value",t.value),o.isNullOrUndefined(t.goal)||e.writeAttributeString("goal",t.goal),o.isNullOrUndefined(t.status)||e.writeAttributeString("status",t.status),o.isNullOrUndefined(t.trend)||e.writeAttributeString("trend",t.trend),o.isNullOrUndefined(t.weight)||e.writeAttributeString("weight",t.weight),o.isNullOrUndefined(t.time)||e.writeAttributeString("time",t.time)})}function L(e,t){e.writeElement("tupleCache",function(){},function(){var r;t.entries&&t.entries.length>0&&e.writeElement("entries",function(){e.writeAttributeString("count",t.entries.length)},function(){for(r=0;r<t.entries.length;r++)e.writePivotCacheDefinitionSharedItem(e,t.entries[r])}),t.sets&&t.sets.length>0&&e.writeElement("sets",function(){e.writeAttributeString("count",t.sets.length)},function(){for(r=0;r<t.sets.length;r++)D(e,t.sets[r])}),t.queryCache&&t.queryCache.length>0&&e.writeElement("queryCache",function(){e.writeAttributeString("count",t.queryCache.length)},function(){for(r=0;r<t.queryCache.length;r++)B(e,t.queryCache[r])}),t.serverFormats&&t.serverFormats.length>0&&e.writeElement("serverFormats",function(){e.writeAttributeString("count",t.serverFormats.length)},function(){for(r=0;r<t.serverFormats.length;r++)W(e,t.serverFormats[r])})})}function D(e,t){}function B(e,t){e.writeElement("query",function(){t.mdx&&e.writeAttributeString("mdx",t.mdx)},function(){t.tpls&&t.tpls.length>0&&e.writeElement("tpls",function(){e.writeAttributeString("c",t.tpls.length)},function(){for(var r=0;r<t.tpls.length;r++)P(e,t.tpls[r])})})}function P(e,t){e.writeElement("tpl",function(){t.fld>=0&&e.writeAttributeString("fld",t.fld),t.hier>=0&&e.writeAttributeString("hier",t.hier),t.item>=0&&e.writeAttributeString("item",t.item)})}function W(e,t){e.writeLeafElement("serverFormat",function(){o.isNullOrUndefined(t.culture)||e.writeAttributeString("culture",t.culture),o.isNullOrUndefined(t.format)||e.writeAttributeString("format",t.format)})}function _(e,t){var r=t.calculatedItems;r&&e.writeElement("calculatedItems",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)N(e,r[t])})}function N(e,t){t&&e.writeElement("calculatedItem",function(){t.field>=0&&e.writeAttributeString("field",t.field),t.formula&&e.writeAttributeString("formula",s(t.formula))},function(){t.pivotArea&&te(e,t.pivotArea)})}function M(e,t){var r=t.calculatedMembers;r&&e.writeElement("calculatedMembers",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)O(e,r[t])})}function O(e,t){e.writeLeafElement("calculatedMember",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(t.name)),o.isNullOrUndefined(t.mdx)||e.writeAttributeString("mdx",t.mdx),o.isNullOrUndefined(t.memberName)||e.writeAttributeString("memberName",t.memberName),o.isNullOrUndefined(t.hierarchy)||e.writeAttributeString("hierarchy",t.hierarchy),o.isNullOrUndefined(t.parent)||e.writeAttributeString("parent",t.parent),t.solveOrder>0&&e.writeAttributeString("solveOrder",t.solveOrder),t.set&&e.writeAttributeString("set","1")})}function H(e,t){!t.dimensions||t.dimensions.length<=0||e.writeElement("dimensions",function(){e.writeAttributeString("count",t.dimensions.length)},function(){for(var r=0;r<t.dimensions.length;r++)G(e,t.dimensions[r])})}function G(e,t){e.writeLeafElement("dimension",function(){t.measure&&e.writeAttributeString("measure","1"),o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),o.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption)})}function U(e,t){!t.measureGroups||t.measureGroups.length<=0||e.writeElement("measureGroups",function(){e.writeAttributeString("count",t.measureGroups.length)},function(){for(var r=0;r<t.measureGroups.length;r++)J(e,t.measureGroups[r])})}function J(e,t){e.writeLeafElement("measureGroup",function(){t.name&&e.writeAttributeString("name",s(d(t.name))),t.caption&&e.writeAttributeString("caption",t.caption)})}function z(e,t){!t.measureDimensionMaps||t.measureDimensionMaps.length<=0||e.writeElement("maps",function(){e.writeAttributeString("count")},function(){for(var r=0;r<t.measureDimensionMaps.length;r++)V(e,t.measureDimensionMaps[r])})}function V(e,t){e.writeLeafElement("measureDimensionMap",function(){t.measureGroup>=0&&e.writeAttributeString("measureGroup",t.measureGroup),t.dimension>=0&&e.writeAttributeString("dimension",t.dimension)})}function j(e){var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("pivotCacheRecords",function(){t.writeAttributeString("xmlns",n.XFileConstants.Hd),t.writeAttributeString("xmlns:r",n.XFileConstants.Ud),t.writeAttributeString("xmlns:mc",n.XFileConstants.Jd),t.writeAttributeString(u,n.XFileConstants.Qd),t.writeAttributeString("xmlns:xr",n.XFileConstants.me),t.writeAttributeString("count",e.length)},function(){for(var r=0;r<e.length;r++)X(t,e[r])}),t.getXmlString()}t.writePivotCacheRecords=j;function X(e,t){e.writeElement("r",function(){},function(){for(var r=0;r<t.length;r++)C(e,t[r])})}function K(e,t){var r=new i.XmlWriter;return r.writeDocument(),r.writeElement("pivotTableDefinition",function(){r.writeAttributeString("xmlns",n.XFileConstants.Hd),r.writeAttributeString("xmlns:mc",n.XFileConstants.Jd),r.writeAttributeString(u,n.XFileConstants.Qd),r.writeAttributeString("xmlns:xr",n.XFileConstants.me),o.isNullOrUndefined(t.name)||r.writeAttributeString("name",s(d(t.name))),r.writeAttributeString("cacheId",t.cacheId),t.applyNumberFormats===!1&&r.writeAttributeString("applyNumberFormats","0"),t.applyBorderFormats===!1&&r.writeAttributeString("applyBorderFormats","0"),t.applyFontFormats===!1&&r.writeAttributeString("applyFontFormats","0"),t.applyPatternFormats===!1&&r.writeAttributeString("applyPatternFormats","0"),t.applyAlignmentFormats===!1&&r.writeAttributeString("applyAlignmentFormats","0"),t.applyWidthHeightFormats&&r.writeAttributeString("applyWidthHeightFormats","1"),o.isNullOrUndefined(t.dataCaption)||r.writeAttributeString("dataCaption",t.dataCaption),o.isNullOrUndefined(t.grandTotalCaption)||r.writeAttributeString("grandTotalCaption",t.grandTotalCaption),o.isNullOrUndefined(t.errorCaption)||r.writeAttributeString("errorCaption",t.errorCaption),t.showError&&r.writeAttributeString("showError","1"),o.isNullOrUndefined(t.missingCaption)||r.writeAttributeString("missingCaption",t.missingCaption),t.showMissing===!1&&r.writeAttributeString("showMissing","0"),t.updatedVersion>0?r.writeAttributeString("updatedVersion",t.updatedVersion):r.writeAttributeString("updatedVersion","7"),t.minRefreshableVersion>0&&t.minRefreshableVersion<=t.createdVersion&&r.writeAttributeString("minRefreshableVersion",t.minRefreshableVersion),t.printDrill&&r.writeAttributeString("printDrill","1"),t.showDrill===!1&&r.writeAttributeString("showDrill","0"),t.showDataTips===!1&&r.writeAttributeString("showDataTips","0"),t.enableDrill===!1&&r.writeAttributeString("enableDrill","0"),t.preserveFormatting===!1&&r.writeAttributeString("preserveFormatting","0"),t.useAutoFormatting&&r.writeAttributeString("useAutoFormatting","1"),t.pageWrap>0&&r.writeAttributeString("pageWrap",t.pageWrap),t.pageOverThenDown&&r.writeAttributeString("pageOverThenDown","1"),t.rowGrandTotals===!1&&r.writeAttributeString("rowGrandTotals","0"),t.colGrandTotals===!1&&r.writeAttributeString("colGrandTotals","0"),t.itemPrintTitles&&r.writeAttributeString("itemPrintTitles","1"),t.fieldPrintTitles&&r.writeAttributeString("fieldPrintTitles","1"),t.mergeItem&&r.writeAttributeString("mergeItem","1"),t.createdVersion>0?r.writeAttributeString("createdVersion",t.createdVersion):r.writeAttributeString("createdVersion","7"),t.indent>=0&&r.writeAttributeString("indent",t.indent),t.asteriskTotals&&r.writeAttributeString("asteriskTotals","1"),t.autoFormatId>0&&r.writeAttributeString("autoFormatId",t.autoFormatId),o.isNullOrUndefined(t.colHeaderCaption)||r.writeAttributeString("colHeaderCaption",t.colHeaderCaption),t.compact===!1&&r.writeAttributeString("compact","0"),t.compactData===!1&&r.writeAttributeString("compactData","0"),t.dataOnRows&&r.writeAttributeString("dataOnRows","1"),t.dataPosition>0&&r.writeAttributeString("dataPosition",t.dataPosition),t.disableFieldList&&r.writeAttributeString("disableFieldList","1"),t.editData&&r.writeAttributeString("editData","1"),t.enableFieldProperties===!1&&r.writeAttributeString("enableFieldProperties","0"),t.enableWizard===!1&&r.writeAttributeString("enableWizard","0"),t.gridDropZones&&r.writeAttributeString("gridDropZones","1"),t.immersive&&r.writeAttributeString("immersive","1"),t.mdxSubqueries&&r.writeAttributeString("mdxSubqueries","1"),t.showHeaders===!1&&r.writeAttributeString("showHeaders","0"),t.outline&&r.writeAttributeString("outline","1"),t.outlineData&&r.writeAttributeString("outlineData","1"),t.multipleFieldFilters===!1&&r.writeAttributeString("multipleFieldFilters","0"),t.chartFormat>0&&r.writeAttributeString("chartFormat",t.chartFormat),t.fieldListSortAscending&&r.writeAttributeString("fieldListSortAscending","1"),t.customListSort===!1&&r.writeAttributeString("customListSort","0"),o.isNullOrUndefined(t.pageStyle)||r.writeAttributeString("pageStyle",t.PageStyle),o.isNullOrUndefined(t.pivotTableStyle)||r.writeAttributeString("pivotTableStyle",t.pivotTableStyle),t.published&&r.writeAttributeString("published","1"),o.isNullOrUndefined(t.rowHeaderCaption)||r.writeAttributeString("rowHeaderCaption",t.rowHeaderCaption),t.showCalcMbrs===!1&&r.writeAttributeString("showCalcMbrs","0"),t.showDataDropDown&&r.writeAttributeString("showDataDropDown","0"),t.showDropZones===!1&&r.writeAttributeString("showDropZones","0"),t.showEmptyCol===!1&&r.writeAttributeString("showEmptyCol","0"),t.showEmptyRow===!1&&r.writeAttributeString("showEmptyRow","0"),t.showItems===!1&&r.writeAttributeString("showItems","0"),t.showMemberPropertyTips===!1&&r.writeAttributeString("showMemberPropertyTips","0"),t.showMultipleLabel===!1&&r.writeAttributeString("showMultipleLabel","0"),t.subtotalHiddenItems&&r.writeAttributeString("subtotalHiddenItems","1"),o.isNullOrUndefined(t.tag)||r.writeAttributeString("tag",t.tag),o.isNullOrUndefined(t.vacatedStyle)||r.writeAttributeString("vacatedStyle",t.vacatedStyle),t.visualTotals===!1&&r.writeAttributeString("visualTotals","0")},function(){q(r,t),Y(r,t),ie(r,t,!0),ae(r,t),ie(r,t,!1),le(r,t),de(r,t),fe(r,t),pe(r,t),ge(r,t),Se(r,t),we(r,t),ve(r,t),ke(e,r,t),Ee(r,t),Ie(r,t),De(r,t)}),r.getXmlString()}t.writePivotTable=K;function q(e,t){e.writeLeafElement("location",function(){e.writeAttributeString("ref",t.ref),t.firstHeaderRow>=0&&e.writeAttributeString("firstHeaderRow",t.firstHeaderRow),t.firstDataRow>=0&&e.writeAttributeString("firstDataRow",t.firstDataRow),t.firstDataCol>=0&&e.writeAttributeString("firstDataCol",t.firstDataCol),t.rowPageCount>0&&e.writeAttributeString("rowPageCount",t.rowPageCount),t.colPageCount>0&&e.writeAttributeString("colPageCount",t.colPageCount)})}function Y(e,t){e.writeElement("pivotFields",function(){e.writeAttributeString("count",t.fields.length)},function(){for(var r=0;r<t.fields.length;r++)Q(e,t.fields[r],t)})}function Q(e,t,r){
|
53
|
+
t.items&&t.items.length>0?e.writeElement("pivotField",function(){Z(e,t)},function(){$(e,t,r)}):r.fillDownLabels?e.writeElement("pivotField",function(){Z(e,t)},function(){e.writeElement("extLst",function(){Be(e,r)})}):e.writeLeafElement("pivotField",function(){Z(e,t)})}function Z(e,t){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),o.isNullOrUndefined(t.axis)||e.writeAttributeString("axis",t.axis),t.allDrilled&&e.writeAttributeString("allDrilled","1"),t.autoShow&&e.writeAttributeString("autoShow","1"),t.dataField&&e.writeAttributeString("dataField","1"),t.compact===!1&&e.writeAttributeString("compact","0"),t.numberFormatId>=0&&e.writeAttributeString("numFmtId",t.numberFormatId),t.outline===!1&&e.writeAttributeString("outline","0"),t.subtotalTop===!1&&e.writeAttributeString("subtotalTop","0"),t.multipleItemSelectionAllowed&&e.writeAttributeString("multipleItemSelectionAllowed","1"),t.showAll===!1&&e.writeAttributeString("showAll","0"),t.insertBlankRow&&e.writeAttributeString("insertBlankRow","1"),t.insertPageBreak&&e.writeAttributeString("insertPageBreak","1"),t.includeNewItemsInFilter&&e.writeAttributeString("includeNewItemsInFilter","1"),t.sumSubtotal&&e.writeAttributeString("sumSubtotal","1"),t.countASubtotal&&e.writeAttributeString("countASubtotal","1"),t.avgSubtotal&&e.writeAttributeString("avgSubtotal","1"),t.maxSubtotal&&e.writeAttributeString("maxSubtotal","1"),t.minSubtotal&&e.writeAttributeString("minSubtotal","1"),t.productSubtotal&&e.writeAttributeString("productSubtotal","1"),t.countSubtotal&&e.writeAttributeString("countSubtotal","1"),t.stdDevSubtotal&&e.writeAttributeString("stdDevSubtotal","1"),t.stdDevPSubtotal&&e.writeAttributeString("stdDevPSubtotal","1"),t.dataSourceSort&&e.writeAttributeString("dataSourceSort","1"),t.defaultAttributeDrillState&&e.writeAttributeString("defaultAttributeDrillState","1"),t.dragOff===!1&&e.writeAttributeString("dragOff","0"),t.dragToCol===!1&&e.writeAttributeString("dragToCol","0"),t.dragToData===!1&&e.writeAttributeString("dragToData","0"),t.dragToPage===!1&&e.writeAttributeString("dragToPage","0"),t.dragToRow===!1&&e.writeAttributeString("dragToRow","0"),t.hiddenLevel&&e.writeAttributeString("hiddenLevel","1"),t.hideNewItems&&e.writeAttributeString("hideNewItems","1"),t.itemPageCount&&10!==t.itemPageCount&&e.writeAttributeString("itemPageCount",t.itemPageCount),t.measureFilter&&e.writeAttributeString("measureFilter","1"),t.nonAutoSortDefault&&e.writeAttributeString("nonAutoSortDefault","1"),t.serverField&&e.writeAttributeString("serverField","1"),t.showDropDowns===!1&&e.writeAttributeString("showDropDowns","0"),t.showPropAsCaption&&e.writeAttributeString("showPropAsCaption","1"),t.showPropCell&&e.writeAttributeString("showPropCell","1"),t.showPropTip&&e.writeAttributeString("showPropTip","1"),o.isNullOrUndefined(t.sortType)||e.writeAttributeString("sortType",t.sortType),t.rankBy>=0&&e.writeAttributeString("rankBy",t.rankBy),t.defaultSubtotal===!1&&e.writeAttributeString("defaultSubtotal","0"),o.isNullOrUndefined(t.subtotalCaption)||e.writeAttributeString("subtotalCaption",t.subtotalCaption),t.topAutoShow===!1&&e.writeAttributeString("topAutoShow","0"),o.isNullOrUndefined(t.uniqueMemberProperty)||e.writeAttributeString("uniqueMemberProperty",t.uniqueMemberProperty),t.varSubtotal&&e.writeAttributeString("varSubtotal","1"),t.varPSubtotal&&e.writeAttributeString("varPSubtotal","1")}function $(e,t,r){t.items&&t.items.length>0&&e.writeElement("items",function(){e.writeAttributeString("count",t.items.length)},function(){for(var r=0;r<t.items.length;r++)ee(e,t.items[r])}),o.isNullOrUndefined(t.autoSortScope)||e.writeElement("autoSortScope",function(){te(e,t.autoSortScope)}),r.fillDownLabels&&e.writeElement("extLst",function(){Be(e,r)})}function ee(e,t){e.writeLeafElement("item",function(){t.childItems&&e.writeAttributeString("c","1"),t.expanded===!1&&e.writeAttributeString("d","0"),t.drillAcross===!1&&e.writeAttributeString("e","0"),t.calculatedMember&&e.writeAttributeString("f","1"),t.hidden&&e.writeAttributeString("h","1"),t.missing&&e.writeAttributeString("m","1"),o.isNullOrUndefined(t.caption)||e.writeAttributeString("n",t.caption),t.character&&e.writeAttributeString("s","1"),t.collapse===!0&&e.writeAttributeString("sd","0"),t.type&&e.writeAttributeString("t",t.type),o.isNullOrUndefined(t.indexValue)||e.writeAttributeString("x",t.indexValue)})}function te(e,t,r){t&&t.missed===!0||e.writeElement("pivotArea",function(){t.field&&t.field!==-1&&e.writeAttributeString("field",t.field),o.isNullOrUndefined(t.type)||"normal"===t.type||e.writeAttributeString("type",t.type),t.dataOnly===!1&&e.writeAttributeString("dataOnly","0"),t.dataOnly===!0&&e.writeAttributeString("dataOnly","1"),t.labelOnly&&e.writeAttributeString("labelOnly","1"),t.grandRow&&e.writeAttributeString("grandRow","1"),t.grandCol&&e.writeAttributeString("grandCol","1"),t.cacheIndex&&e.writeAttributeString("cacheIndex","1"),o.isNullOrUndefined(t.outline)||e.writeAttributeString("outline","0"),t.collapsedLevelsAreSubtotals&&e.writeAttributeString("collapsedLevelsAreSubtotals","1"),t.axis&&(r||"axisValue"!==t.axis)&&e.writeAttributeString("axis",t.axis),t.fieldPosition>=0&&e.writeAttributeString("fieldPosition",t.fieldPosition),o.isNullOrUndefined(t.offset)||e.writeAttributeString("offset",t.offset)},function(){t.references&&t.references.length>0&&e.writeElement("references",function(){e.writeAttributeString("count",t.references.length)},function(){for(var r=0;r<t.references.length;r++)re(e,t.references[r])})})}function re(e,t){e.writeElement("reference",function(){!o.isNullOrUndefined(t.field)&&t.field>=0&&e.writeAttributeString("field",t.field),e.writeAttributeString("count",t.indexes?t.indexes.length:0),t.avgSubtotal&&e.writeAttributeString("avgSubtotal","1"),t.byPosition&&e.writeAttributeString("byPosition","1"),t.countASubtotal&&e.writeAttributeString("countASubtotal","1"),t.countSubtotal&&e.writeAttributeString("countSubtotal","1"),t.defaultSubtotal&&e.writeAttributeString("defaultSubtotal","1"),t.maxSubtotal&&e.writeAttributeString("maxSubtotal","1"),t.minSubtotal&&e.writeAttributeString("minSubtotal","1"),t.productSubtotal&&e.writeAttributeString("productSubtotal","1"),t.relative&&e.writeAttributeString("relative","1"),t.selected===!1&&e.writeAttributeString("selected","0"),t.stdDevPSubtotal&&e.writeAttributeString("stdDevPSubtotal","1"),t.stdDevSubtotal&&e.writeAttributeString("stdDevSubtotal","1"),t.sumSubtotal&&e.writeAttributeString("sumSubtotal","1"),t.varPSubtotal&&e.writeAttributeString("varPSubtotal","1"),t.varSubtotal&&e.writeAttributeString("varSubtotal","1")},function(){if(t.indexes&&t.indexes.length>0)for(var r=0;r<t.indexes.length;r++)oe(e,t.indexes[r])})}function oe(e,t){e.writeLeafElement("x",function(){e.writeAttributeString("v",t)})}function ie(e,t,r){(r&&t.rowFields&&t.rowFields.length>0||!r&&t.columnFields&&t.columnFields.length>0)&&e.writeElement(r?"rowFields":"colFields",function(){e.writeAttributeString("count",r?t.rowFields.length:t.columnFields.length)},function(){var o,i=r?t.rowFields:t.columnFields;for(o=0;o<i.length;o++)ne(e,i[o])})}function ne(e,t){e.writeLeafElement("field",function(){e.writeAttributeString("x",t)})}function ae(e,t){var r=[];r=t.rowItems,r.length<=0||e.writeElement("rowItems",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)se(e,r[t])})}function le(e,t){var r=t.columnItems;!o.isNullOrUndefined(r)&&r.length>0&&e.writeElement("colItems",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)se(e,r[t])})}function se(e,t){e.writeElement("i",function(){o.isNullOrUndefined(t.type)||e.writeAttributeString("t",t.type),t.repeatCount>0&&e.writeAttributeString("r",t.repeatCount),t.dataFieldIndex>0&&e.writeAttributeString("i",t.dataFieldIndex)},function(){if(t.pivotItemIndexes&&t.pivotItemIndexes.length>0)for(var r=0;r<t.pivotItemIndexes.length;r++)ce(e,t.pivotItemIndexes[r])})}function ce(e,t){e.writeLeafElement("x",function(){t&&t>0&&e.writeAttributeString("v",t)})}function de(e,t){t.pageFields&&t.pageFields.length>0&&e.writeElement("pageFields",function(){e.writeAttributeString("count",t.pageFields.length)},function(){for(var r=0;r<t.pageFields.length;r++)ue(e,t.pageFields[r])})}function ue(e,t){e.writeLeafElement("pageField",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),o.isNullOrUndefined(t.fld)||e.writeAttributeString("fld",t.fld),o.isNullOrUndefined(t.cap)||e.writeAttributeString("cap",t.cap),o.isNullOrUndefined(t.item)||e.writeAttributeString("item",t.item),o.isNullOrUndefined(t.hier)||e.writeAttributeString("hier",t.hier)})}function fe(e,t){t.dataFields&&t.dataFields.length>0&&e.writeElement("dataFields",function(){e.writeAttributeString("count",t.dataFields.length)},function(){for(var r=0;r<t.dataFields.length;r++)be(e,t.dataFields[r])})}function be(e,t){var r=["difference","index","normal","percent","percentDiff","percentOfCol","percentOfRow","percentOfTotal","runTotal"].indexOf(t.showDataAs)===-1;e.writeElement("dataField",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),o.isNullOrUndefined(t.fld)||e.writeAttributeString("fld",t.fld),o.isNullOrUndefined(t.subtotal)||e.writeAttributeString("subtotal",t.subtotal),o.isNullOrUndefined(t.showDataAs)||r||e.writeAttributeString("showDataAs",t.showDataAs),o.isNullOrUndefined(t.baseField)||e.writeAttributeString("baseField",t.baseField),o.isNullOrUndefined(t.baseItem)||e.writeAttributeString("baseItem",t.baseItem),o.isNullOrUndefined(t.numberFormatId)||e.writeAttributeString("numFmtId",t.numberFormatId)},function(){!o.isNullOrUndefined(t.showDataAs)&&r&&he(e,t.showDataAs)})}function he(e,t){e.writeElement("extLst",function(){},function(){e.writeElement("ext",function(){e.writeAttributeString("uri","{E15A36E0-9728-4e99-A89B-3F7291B0FE68}"),e.writeAttributeString("xmlns:x14",n.XFileConstants.$d)},function(){e.writeLeafElement("x14:dataField",function(){e.writeAttributeString("pivotShowAs",t)})})})}function pe(e,t){var r=t.formats;r&&r.length>0&&e.writeElement("formats",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)me(e,r[t])})}function me(e,t){t&&t.style&&t.pivotArea&&!t.pivotArea.missed&&e.writeElement("format",function(){"Formatting"===t.action||o.isNullOrUndefined(t.action)||e.writeAttributeString("action",t.action),t.dxfId>=0&&e.writeAttributeString("dxfId",t.dxfId)},function(){te(e,t.pivotArea,!0)})}function ge(e,t){var r=t.pivotTableConditionFormats;r&&r.length>0&&e.writeElement("conditionalFormats",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)ye(e,r[t])})}function ye(e,t){e.writeElement("conditionalFormat",function(){t.scope&&"Selection"!==t.scope&&e.writeAttributeString("scope",t.scope),t.type&&"None"!==t.type&&e.writeAttributeString("type",t.type),e.writeAttributeString("priority",t.rule.priority||0)},function(){t.pivotAreas&&t.pivotAreas.length>0&&e.writeElement("pivotAreas",function(){e.writeAttributeString("count",t.pivotAreas.length)},function(){for(var r=0;r<t.pivotAreas.length;r++)te(e,t.pivotAreas[r])})})}function Se(e,t){t.chartFormats&&t.chartFormats.length>0&&e.writeElement("chartFormats",function(){e.writeAttributeString("count",t.chartFormats.length)},function(){for(var r=0;r<t.chartFormats.length;r++)Ce(e,t.chartFormats[r])})}function Ce(e,t){e.writeElement("chartFormat",function(){t.chart>=0&&e.writeAttributeString("chart",t.chart),t.format>=0&&e.writeAttributeString("format",t.format),t.series&&e.writeAttributeString("series","1")},function(){o.isNullOrUndefined(t.pivotArea)||te(e,t.pivotArea)})}function we(e,t){t.pivotHierarchies&&t.pivotHierarchies.length>0&&e.writeElement("pivotHierarchies",function(){e.writeAttributeString("count",t.pivotHierarchies.length)},function(){for(var r=0;r<t.pivotHierarchies.length;r++)xe(e,t.pivotHierarchies[r])})}function xe(e,t){e.writeElement("pivotHierarchy",function(){o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),t.dragOff||e.writeAttributeString("dragOff","0"),t.dragToRow||e.writeAttributeString("dragToRow","0"),t.dragToCol||e.writeAttributeString("dragToCol","0"),t.dragToPage||e.writeAttributeString("dragToPage","0"),t.dragToData&&e.writeAttributeString("dragToData","1"),t.includeNewItemsInFilter&&e.writeAttributeString("includeNewItemsInFilter","1"),t.multipleItemSelectionAllowed&&e.writeAttributeString("multipleItemSelectionAllowed","1"),t.outline&&e.writeAttributeString("outline","1"),t.showInFieldList&&e.writeAttributeString("showInFieldList","1"),t.subtotalTop&&e.writeAttributeString("subtotalTop","1")},function(){var r;t.memberProperties&&t.memberProperties.length>0&&e.writeElement("mps",function(){e.writeAttributeString("count",t.memberProperties.length)},function(){for(r=0;r<t.memberProperties.length;r++)Ae(e,t.memberProperties[r])}),t.members&&t.members.length>0&&e.writeElement("members",function(){e.writeAttributeString("count",t.members.length)},function(){for(r=0;r<t.members.length;r++)Te(e,t.members[r])})})}function Ae(e,t){e.writeLeafElement("mp",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),t.showCell&&e.writeAttributeString("showCell","1"),t.showTip&&e.writeAttributeString("showTip","1"),t.showAsCaption&&e.writeAttributeString("showAsCaption","1"),t.nameLen>0&&e.writeAttributeString("nameLen",s(t.nameLen)),t.pPos>=0&&e.writeAttributeString("pPos",t.pPos),t.pLen>0&&e.writeAttributeString("pLen",t.pLen),t.level>0&&e.writeAttributeString("level",t.level),t.field>=0&&e.writeAttributeString("field",t.field)})}function Te(e,t){e.writeLeafElement("member",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name)))})}function ve(e,t){e.writeLeafElement("pivotTableStyleInfo",function(){var r=t.styleName||t.style&&t.style.name;o.isNullOrUndefined(r)||e.writeAttributeString("name",s(d(r))),t.showRowHeaders&&e.writeAttributeString("showRowHeaders","1"),t.showColHeaders&&e.writeAttributeString("showColHeaders","1"),t.showRowStripes===!1?e.writeAttributeString("showRowStripes","0"):e.writeAttributeString("showRowStripes","1"),t.showColStripes===!1?e.writeAttributeString("showColStripes","0"):e.writeAttributeString("showColStripes","1"),t.showLastColumn&&e.writeAttributeString("showLastColumn","1")})}function ke(e,t,r){r.pivotFilters&&r.pivotFilters.length>0&&t.writeElement("filters",function(){t.writeAttributeString("count",r.pivotFilters.length)},function(){var o,i;for(o=0;o<r.pivotFilters.length;o++)i=r.pivotFilters[o],41!==i.operator&&42!==i.operator&&Fe(e,t,i)})}function Fe(e,r,i){var n=i.operator,a=i.conType,c=t.captionCompareTypeExcel[a][n];r.writeElement("filter",function(){i.fld>=0&&r.writeAttributeString("fld",i.fld),i.mpFld>=0&&r.writeAttributeString("mpFld",i.mpFld),void 0!==c&&r.writeAttributeString("type",c),o.isNullOrUndefined(i.evalOrder)||r.writeAttributeString("evalOrder",i.evalOrder),i.id>=0&&r.writeAttributeString("id",i.id),i.iMeasureHier>=0&&r.writeAttributeString("iMeasureHier",i.iMeasureHier),i.iMeasureFld>=0&&r.writeAttributeString("iMeasureFld",i.iMeasureFld),o.isNullOrUndefined(i.name)||r.writeAttributeString("name",s(d(i.name))),o.isNullOrUndefined(i.description)||r.writeAttributeString("description",i.description),o.isNullOrUndefined(i.stringValue1)||r.writeAttributeString("stringValue1",i.stringValue1),o.isNullOrUndefined(i.stringValue2)||r.writeAttributeString("stringValue2",i.stringValue2)},function(){var t,n;o.isNullOrUndefined(i.autoFilter)||(t=e.Aj(i,c),l.writePivotAutoFilter(r,t),n=i.autoFilter&&i.autoFilter.filterItemMap&&i.autoFilter.filterItemMap[0]&&i.autoFilter.filterItemMap[0].conditions&&i.autoFilter.filterItemMap[0].conditions[0],n&&n.isWholeDay&&r.writeElement("extLst",function(){Re(r,n)}))})}function Re(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{0605FD5F-26C8-4aeb-8148-2DB25E43C511}"),e.writeAttributeString("xmlns:x15","http://schemas.microsoft.com/office/spreadsheetml/2010/11/main")},function(){e.writeLeafElement("x15:pivotFilter",function(){t.isWholeDay&&e.writeAttributeString("useWholeDay","1")})})}function Ee(e,t){t.rowHierarchies&&t.rowHierarchies.length>0&&e.writeElement("rowHierarchiesUsage",function(){e.writeAttributeString("count",t.rowHierarchies.length)},function(){for(var r=0;r<t.rowHierarchies.length;r++)Le(e,t.rowHierarchies[r],!0)})}function Ie(e,t){t.colHierarchies&&t.colHierarchies.length>0&&e.writeElement("rowHierarchiesUsage",function(){e.writeAttributeString("count",t.colHierarchies.length)},function(){for(var r=0;r<t.colHierarchies.length;r++)Le(e,t.colHierarchies[r],!1)})}function Le(e,t,r){var o=r?"rowHierarchyUsage":"colHierarchyUsage";e.writeLeafElement(o,function(){e.writeAttributeString("hierarchyUsage",t)})}function De(e,t){e.writeElement("extLst",function(){e.writeElement("ext",function(){e.writeAttributeString("uri","{962EF5D1-5CA2-4c93-8EF4-DBF5C05439D2}"),e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main")},function(){e.writeLeafElement("x14:pivotTableDefinition",function(){t.altText&&e.writeAttributeString("altText",t.altText),t.fillDownLabels&&e.writeAttributeString("fillDownLabelsDefault","1"),t.altTextSummary&&e.writeAttributeString("altTextSummary",t.altTextSummary),t.hideValuesRow&&e.writeAttributeString("hideValuesRow","1"),e.writeAttributeString("xmlns:xm","http://schemas.microsoft.com/office/excel/2006/main")})}),e.writeElement("ext",function(){e.writeAttributeString("uri","{747A6164-185A-40DC-8AA5-F01512510D54}"),e.writeAttributeString("xmlns:xpdl","http://schemas.microsoft.com/office/spreadsheetml/2016/pivotdefaultlayout")},function(){e.writeLeafElement("xpdl:pivotTableDefinition16",function(){t.subtotalsOnTopDefault===!1&&e.writeAttributeString("SubtotalsOnTopDefault","0"),t.enabledSubtotalsDefault===!1&&e.writeAttributeString("EnabledSubtotalsDefault","0"),t.insertBlankRowDefault===!0&&e.writeAttributeString("InsertBlankRowDefault","1")})})})}function Be(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{2946ED86-A175-432a-8AC1-64E0C546D7DE}"),e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main")},function(){e.writeLeafElement("x14:pivotField",function(){t.fillDownLabels&&e.writeAttributeString("fillDownLabels","1")})})}},"./src/xlsx-io/writer/print-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=o.StringEx.O,n=o.Util.oa,a=r("./src/xml-io/xml-writer.ts"),l=r("./src/common/excel-types.ts"),s=r("./src/datamodel/excel-helper.ts"),c={0:"auto",1:"downThenOver",2:"overThenDown"},d={0:"auto",1:"portrait",2:"landscape"};function u(e,t,r){var o=r.Kj(t);o&&e.writeLeafElement("pageMargins",function(){e.writeAttributeString("left",o.left),e.writeAttributeString("right",o.right),e.writeAttributeString("top",o.top),e.writeAttributeString("bottom",o.bottom),e.writeAttributeString("header",o.header),e.writeAttributeString("footer",o.footer)})}t.writePageMargins=u;function f(e,t,r){var o=r.Lj(t);o&&(o.printGridLine||o.printRowColumnsHeaders||o.horizontalCentered||o.verticalCentered)&&e.writeLeafElement("printOptions",function(){o.printRowColumnsHeaders&&e.writeAttributeString("headings","1"),o.printGridLine&&e.writeAttributeString("gridLines","1"),o.horizontalCentered&&e.writeAttributeString("horizontalCentered","1"),o.verticalCentered&&e.writeAttributeString("verticalCentered","1")})}t.writePrintOptions=f;function b(e,t,r){var i=r.Mj(t);i&&e.writeLeafElement("pageSetup",function(){var t=i.useSmartPrint,r=i.paperSizeIndex,n=i.zoomFactor,a=i.firstPageNumber,l=i.smartPrintPagesWidth,u=i.smartPrintPagesHeight,f=c[i.pageOrder],b=d[i.orientation],h=i.copies;t&&(void 0===l&&(l=0),void 0===u&&(u=0)),!o.isNullOrUndefined(r)&&r>1&&e.writeAttributeString("paperSize",r),!o.isNullOrUndefined(n)&&Math.abs(n-1)>.01&&e.writeAttributeString("scale",Math.round(100*n)),o.isNullOrUndefined(a)||e.writeAttributeString("firstPageNumber",s.convertFirstPageNumberToExcel(a)),(l>0&&1!==l||0===l)&&e.writeAttributeString("fitToWidth",l),(u>0&&1!==u||0===u)&&e.writeAttributeString("fitToHeight",u),o.isNullOrUndefined(f)||0===f||e.writeAttributeString("pageOrder",f),o.isNullOrUndefined(b)||0===b||e.writeAttributeString("orientation",b),i.showColor===!1&&e.writeAttributeString("blackAndWhite","1"),i.draft===!0&&e.writeAttributeString("draft","1"),i.useCustomStartingPage===!0&&e.writeAttributeString("useFirstPageNumber","1"),h>1&&h<32767&&e.writeAttributeString("copies",h)})}t.writePageSetup=b;function h(e){var t=e.advancedHeadFooterSetting;return t&&(t.headerFooterDifferentOddEvenPages||t.headerFooterDifferentFirstPage||!t.headerFooterScalesWithDocument||!t.headerFooterAlignWithPageMargin||!i(e.header)||!i(e.footer)||!i(t.headerOddPage)||!i(t.footerOddPage)||!i(t.headerEvenPage)||!i(t.footerEvenPage)||!i(t.headerFirstPage)||!i(t.footerFirstPage))}function p(e,t,r){var o,a=r.Mj(t);a&&h(a)&&(o=a.advancedHeadFooterSetting,e.writeElement("headerFooter",function(){o.headerFooterDifferentOddEvenPages===!0&&e.writeAttributeString("differentOddEven","1"),o.headerFooterDifferentFirstPage===!0&&e.writeAttributeString("differentFirst","1"),o.headerFooterScalesWithDocument===!1&&e.writeAttributeString("scaleWithDoc","0"),o.headerFooterAlignWithPageMargin===!1&&e.writeAttributeString("alignWithMargins","0")},function(){i(o.headerOddPage)?i(a.header)||e.writeElementString("oddHeader",n(a.header)):e.writeElementString("oddHeader",n(o.headerOddPage)),i(o.footerOddPage)?i(a.footer)||e.writeElementString("oddFooter",n(a.footer)):e.writeElementString("oddFooter",n(o.footerOddPage)),i(o.headerEvenPage)||e.writeElementString("evenHeader",n(o.headerEvenPage)),i(o.footerEvenPage)||e.writeElementString("evenFooter",n(o.footerEvenPage)),i(o.headerFirstPage)||e.writeElementString("firstHeader",n(o.headerFirstPage)),i(o.footerFirstPage)||e.writeElementString("firstFooter",n(o.footerFirstPage))}))}t.writeHeadFooter=p;function m(e,t,r){t&&t.length>0&&e.writeElement(r,function(){var r=t.length;e.writeAttributeString("count",r),e.writeAttributeString("manualBreakCount",r)},function(){t.forEach(function(t){t>0&&e.writeLeafElement("brk",function(){e.writeAttributeString("id",t),e.writeAttributeString("man","1"),"rowBreaks"===r?e.writeAttributeString("max",l.ExcelConstants.wb):"colBreaks"===r&&e.writeAttributeString("max",l.ExcelConstants.vb)})})})}function g(e,t,r){var o=r.Mj(t);o&&(m(e,o.rowBreakLines,"rowBreaks"),m(e,o.columnBreakLines,"colBreaks"))}t.writeRowColumnBreaks=g;function y(e,t){t.jn&&(e.writeLeafElement("legacyDrawingHF",function(){e.writeAttributeString("r:id",t.jn)}),t.jn="")}t.writeLegacyDrawingHF=y;function S(e,t,r,o){e.writeElement("v:shape",function(){e.writeAttributeString("id",t.name),t.spid?e.writeAttributeString("o:spid",t.spid):e.writeAttributeString("o:spid","_x0000_s10"+r),e.writeAttributeString("type","#_x0000_t75"),t.style?e.writeAttributeString("style",t.style):e.writeAttributeString("style","position:absolute;margin-left:0;margin-top:0;width:100%pt;height:100%pt;z-index:"+o)},function(){e.writeLeafElement("v:imagedata",function(){e.writeAttributeString("o:relid",t.rid),e.writeAttributeString("o:title",t.name)}),t.cellRange||e.writeLeafElement("o:lock",function(){e.writeAttributeString("v:ext","edit"),e.writeAttributeString("rotation","t")}),t.cellRange&&e.writeElement("x:ClientData",function(){e.writeAttributeString("ObjectType","Pict")},function(){e.writeLeafElement("x:SizeWithCells"),e.writeElementString("x:Anchor",t.anchor),e.writeElementString("x:FmlaPict",t.cellRange),e.writeElementString("x:CF","Pict"),e.writeElementString("x:Camera","")})})}function C(e,t,r,o,i,n,a){e.writeAttributeString(t,r),e.writeAttributeString(o,i),e.writeAttributeString(n,a)}t.writeVmlDrawingFile=function(e){var t=new a.XmlWriter;return t.writeElement("xml",function(){C(t,"xmlns:v","urn:schemas-microsoft-com:vml","xmlns:o","urn:schemas-microsoft-com:office:office","xmlns:x","urn:schemas-microsoft-com:office:excel")},function(){t.writeElement("o:shapelayout",function(){t.writeAttributeString("v:ext","edit")},function(){t.writeLeafElement("o:idmap",function(){t.writeAttributeString("v:ext","edit"),t.writeAttributeString("data","1")})}),t.writeElement("v:shapetype",function(){t.writeAttributeString("id","_x0000_t75"),t.writeAttributeString("coordsize","21600,21600"),t.writeAttributeString("o:spt","75"),t.writeAttributeString("o:preferrelative","t"),t.writeAttributeString("path","m@4@5l@4@11@9@11@9@5xe"),t.writeAttributeString("filled","f"),t.writeAttributeString("stroked","f")},function(){t.writeLeafElement("v:stroke",function(){t.writeAttributeString("joinstyle","miter")}),t.writeElement("v:formulas",function(){t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","if lineDrawn pixelLineWidth 0")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @0 1 0")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum 0 0 @1")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @2 1 2")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @3 21600 pixelWidth")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @3 21600 pixelHeight")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @0 0 1")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @6 1 2")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @7 21600 pixelWidth")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @8 21600 0")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @7 21600 pixelHeight")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @10 21600 0")})}),t.writeLeafElement("v:path",function(){C(t,"o:extrusionok","f","gradientshapeok","t","o:connecttype","rect")}),t.writeLeafElement("o:lock",function(){t.writeAttributeString("v:ext","edit"),t.writeAttributeString("aspectratio","t")})});var r=25,o=1;e.forEach(function(e){(["LH","CH","RH","LF","CF","RF","LHEVEN","CHEVEN","RHEVEN","LFEVEN","CFEVEN","RFEVEN","LHFIRST","CHFIRST","RHFIRST","LFFIRST","CFFIRST","RFFIRST"].indexOf(e.name)>=0||e.name.indexOf("Picture_x0020")!==-1)&&(S(t,e,r,o),r++,o++)})}),t.getXmlString()}},"./src/xlsx-io/writer/sharedString-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/xml-io/xml-writer.ts"),a=r("./src/datamodel/excel-style.ts"),l=r("./src/xlsx-io/writer/style-writer.ts"),function(e){e[e.disc=0]="disc",e[e.circle=1]="circle",e[e.square=2]="square",e[e.decimal=3]="decimal",e[e.lowerAlpha=4]="lowerAlpha",e[e.upperAlpha=5]="upperAlpha",e[e.lowerRoman=6]="lowerRoman",e[e.upperRoman=7]="upperRoman",e[e.lowerGreek=8]="lowerGreek"}(s||(s={})),c=void 0;function d(e,t){var r,o,i;if(e+=1,e<1||e>3999)return"i";for(r=[{value:1e3,numeral:t?"m":"M"},{value:900,numeral:t?"cm":"CM"},{value:500,numeral:t?"d":"D"},{value:400,numeral:t?"cd":"CD"},{value:100,numeral:t?"c":"C"},{value:90,numeral:t?"xc":"XC"},{value:50,numeral:t?"l":"L"},{value:40,numeral:t?"xl":"XL"},{value:10,numeral:t?"x":"X"},{value:9,numeral:t?"ix":"IX"},{value:5,numeral:t?"v":"V"},{value:4,numeral:t?"iv":"IV"},{value:1,numeral:t?"i":"I"}],o="",i=0;i<r.length;i++)for(;e>=r[i].value;)o+=r[i].numeral,e-=r[i].value;return o}function u(e,t){var r="",o=t?97:65;if(0===e)return String.fromCharCode(o);for(;e>0;)r+=String.fromCharCode(e%26+o),e=Math.floor(e/26);return r}function f(e){var t,r;if(0===e)return"\u03b1";for(t=["\u03b1","\u03b2","\u03b3","\u03b4","\u03b5","\u03b6","\u03b7","\u03b8","\u03b9","\u03ba","\u03bb","\u03bc","\u03bd","\u03be","\u03bf","\u03c0","\u03c1","\u03c3","\u03c4","\u03c5","\u03c6","\u03c7","\u03c8","\u03c9"],r="";e>0;)r+=t[e%24],e=Math.floor(e/24);return r}function b(e,t){switch(e){case s.lowerRoman:return d(t,!0)+". ";case s.lowerAlpha:return u(t,!0)+". ";case s.upperRoman:return d(t)+". ";case s.upperAlpha:return u(t)+". ";case s.decimal:return t+1+". ";case s.lowerGreek:return f(t)+". "}}function h(e){switch(e){case s.disc:return"\u25cf ";case s.circle:return"\u25cb ";case s.square:return"\u25a0 "}}function p(e){var t,r,o,i=[],n=[];for(t=0,r=e.length;t<r;t++)o=e[t],o.richText?(n.length>0&&(i.push(n),n=[]),i.push(o)):n.push(o);return n.length>0&&i.push(n),i}function m(e){return e!==s.circle&&e!==s.square&&e!==s.disc}function g(e){var t,r,o,i,n,a,l,s=p(e),d={},u={},f=[];for(r=0,o=s.length;r<o;r++)i=s[r],i.richText?(n=i.level||0,a=void 0,m(i.type)?(i.type===u[n]&&n<=t?d[n]++:d[n]=0,a=b(i.type,d[n])):a=h(i.type),t=n,u[n]=i.type,l=Array(4*(n+1)),l.fill(" "),f=f.concat([{text:l.join("")+a}],i.richText)):(f=f.concat(i),u={},t=c,d={}),r!==o-1&&f.push({text:"\r\n"});return f}function y(e){var t,r,o;for(t=0,r=e.richText.length;t<r;t++)if(e.richText[t].richText)return o=g(e.richText),{richText:o};return e}function S(e){var t=new n.XmlWriter;return t.writeDocument(),t.writeElement("sst",function(){t.writeAttributeString("xmlns",i.XFileConstants.Hd),t.writeAttributeString("count",""+e.Pn),t.writeAttributeString("uniqueCount",""+e.Qn.length)},function(){var r,i,n=function(r,i){var n=e.Qn[r],s=n.value,d=s.length!==s.trim().length;t.writeElement("si",c,function(){var e,r,i,u,f=function(){d&&t.writeAttributeString("xml:space","preserve")};if(n.richText)for(e=n.richText,e&&e.length>0&&(r=y(n),e=r.richText),i=function(r){e[r].text!==c&&t.writeElement("r",c,function(){l.writerRichTextStyle(t,a.ConverterHelper.fromRichTextStyle(e[r].style));var i=e[r].text;i&&i.length>32767&&(i=i.slice(0,32767)),i&&(d=i.length!==i.trim().length),t.writeElement("t",function(){f()},function(){t.writeValue(o.Util.oa(o.Util.xa(i,!0)))})})},u=0;u<e.length;u++)i(u);else s&&s.length>32767&&(s=s.slice(0,32767)),t.writeElement("t",function(){f()},function(){t.writeValue(o.Util.oa(o.Util.xa(s,!0)))})})};for(r=0,i=e.Qn.length;r<i;r++)n(r,i)}),t.getXmlString()}t.writeSharedString=S},"./src/xlsx-io/writer/slicer-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/datamodel/excel-style.ts"),l=a.UnitHelper.pixelToEMU,s=n.Util.oa,c=n.Util.ua,d="http://schemas.microsoft.com/office/drawing/2012/timeslicer",u="mc:Ignorable";function f(e){if(n.isNullOrUndefined(e))return null;var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("slicers",function(){t.writeAttributeString("xmlns",i.XFileConstants.ce),t.writeAttributeString("xmlns:mc",i.XFileConstants.ae),t.writeAttributeString(u,"x"),t.writeAttributeString("xmlns:x",i.XFileConstants.be)},function(){e.forEach(function(e){t.writeLeafElement("slicer",function(){t.writeAttributeString("name",s(c(e.name,"\n","_x000a_"))),t.writeAttributeString("cache",s(e.nameInFormula)),t.writeAttributeString("caption",s(e.captionName)),n.isNullOrUndefined(e.columnCount)||t.writeAttributeString("columnCount",e.columnCount),n.isNullOrUndefined(e.showHeader)||e.showHeader||t.writeAttributeString("showCaption","0"),n.isNullOrUndefined(e.style)||n.isNullOrUndefined(e.style.name)||t.writeAttributeString("style",s(e.style.name));var r=241300;e.itemHeight&&(r=l(e.itemHeight+4)),t.writeAttributeString("rowHeight",r),e.disableResizingAndMoving&&t.writeAttributeString("lockedPosition","1")})})}),t.getXmlString()}t.writeSlicer=f;function b(e,t){var r=null;return t.forEach(function(t){t.name===e&&(r=t.id)}),r}function h(e,t,r){var o=null;return r.forEach(function(r){r.name===t&&r.columns.forEach(function(t){t.name===e&&(o=t.id)})}),o}function p(e,t){var r,a,l;return n.isNullOrUndefined(e)?null:(r=b(e.tableName,t),a=h(e.columnName,e.tableName,t),l=new o.XmlWriter,l.writeDocument(),l.writeElement("slicerCacheDefinition",function(){
|
54
|
+
l.writeAttributeString("xmlns",i.XFileConstants.ce),l.writeAttributeString("xmlns:mc",i.XFileConstants.ae),l.writeAttributeString(u,"x"),l.writeAttributeString("xmlns:x",i.XFileConstants.be),l.writeAttributeString("name",c(s(e.name),"\n","_x000a_")),l.writeAttributeString("sourceName",c(s(e.sourceName),"\n","_x000a_"))},function(){l.writeElement("extLst",function(){},function(){l.writeElement("x:ext",function(){l.writeAttributeString("uri","{2F2917AC-EB37-4324-AD4E-5DD8C200BD13}"),l.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){l.writeLeafElement("x15:tableSlicerCache",function(){l.writeAttributeString("tableId",r),l.writeAttributeString("column",a),2===e.sortOrder&&l.writeAttributeString("sortOrder","descending"),e.visuallyNoDataItems===!1?l.writeAttributeString("crossFilter","none"):e.showNoDataItemsInLast===!1&&l.writeAttributeString("crossFilter","showItemsWithNoData")})}),e.showNoDataItems===!1&&l.writeElement("x:ext",function(){l.writeAttributeString("uri","{470722E0-AACD-4C17-9CDC-17EF765DBC7E}"),l.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){l.writeLeafElement("x15:slicerCacheHideItemsWithNoData",function(){})})})}),l.getXmlString())}t.writeTableSlicerCache=p;function m(e){if(n.isNullOrUndefined(e))return null;var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("slicerCacheDefinition",function(){t.writeAttributeString("xmlns",i.XFileConstants.ce),t.writeAttributeString("xmlns:mc",i.XFileConstants.ae),t.writeAttributeString(u,"x"),t.writeAttributeString("xmlns:x",i.XFileConstants.be),t.writeAttributeString("name",c(s(e.name),"\n","_x000a_")),t.writeAttributeString("sourceName",c(s(e.sourceName),"\n","_x000a_"))},function(){t.writeElement("pivotTables",function(){},function(){e.pivotTables.forEach(function(e){t.writeLeafElement("pivotTable",function(){t.writeAttributeString("tabId",e.tabId),t.writeAttributeString("name",s(e.name))})})}),t.writeElement("data",function(){},function(){t.writeElement("tabular",function(){t.writeAttributeString("pivotCacheId",e.pivotCacheId),2===e.sortOrder&&t.writeAttributeString("sortOrder","descending"),e.visuallyNoDataItems===!1?t.writeAttributeString("crossFilter","none"):e.showNoDataItemsInLast===!1&&t.writeAttributeString("crossFilter","showItemsWithNoData")},function(){t.writeElement("items",function(){t.writeAttributeString("count",e.items.length)},function(){e.items.forEach(function(e){t.writeElement("i",function(){t.writeAttributeString("x",e.x),e.nd&&t.writeAttributeString("nd","1"),e.s&&t.writeAttributeString("s","1")},function(){})})})})}),e.showNoDataItems===!1&&t.writeElement("extLst",function(){},function(){t.writeElement("x:ext",function(){t.writeAttributeString("uri","{470722E0-AACD-4C17-9CDC-17EF765DBC7E}"),t.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){t.writeLeafElement("x15:slicerCacheHideItemsWithNoData",function(){})})})}),t.getXmlString()}t.writePivotSlicerCache=m;function g(e,t,r){var o=r.Ej(t,"pivot"),n=r.Ej(t,"timeline"),a=r.Dj(t);o&&o.length>0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{A8765BA9-456A-4dab-B4F3-ACF838C121DE}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){e.writeElement("x14:slicerList",function(){o[0].rid&&e.writeLeafElement("x14:slicer",function(){e.writeAttributeString("r:id",o[0].rid)})})}),n&&n.length>0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{7E03D99C-DC04-49d9-9315-930204A7B6E9}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x15:timelineRefs",function(){n[0].rid&&e.writeLeafElement("x15:timelineRef",function(){e.writeAttributeString("r:id",n[0].rid)})})}),a&&a.length>0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{3A4CF648-6AED-40f4-86FF-DC5316D8AED3}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x14:slicerList",function(){e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){a[0].rid&&e.writeLeafElement("x14:slicer",function(){e.writeAttributeString("r:id",a[0].rid)})})})}t.writeSlicersInWorkSheet=g;function y(e,t,r){var o,n=t&&t.length>0,a=!1,l=!1,s=[],c=[];if(r)for(o=0;o<r.length;o++)r[o].boundsStartDate?(l=!0,c.push(r[o])):(a=!0,s.push(r[o]));e.writeElement("extLst",function(){},function(){a&&e.writeElement("ext",function(){e.writeAttributeString("uri","{BBE1A952-AA13-448e-AADC-164F8A28A991}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){e.writeElement("x14:slicerCaches",function(){},function(){s.forEach(function(t){t.cacheRid&&e.writeLeafElement("x14:slicerCache",function(){e.writeAttributeString("r:id",t.cacheRid)})})})}),n&&(e.writeElement("ext",function(){e.writeAttributeString("uri","{46BE6895-7355-4a93-B00E-2C351335B9C9}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x15:slicerCaches",function(){e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){t.forEach(function(t){t.cacheRid&&e.writeLeafElement("x14:slicerCache",function(){e.writeAttributeString("r:id",t.cacheRid)})})})}),e.writeElement("ext",function(){e.writeAttributeString("uri","{B58B0392-4F1F-4190-BB64-5DF3571DCE5F}"),e.writeAttributeString("xmlns:xcalcf",i.XFileConstants.ee)},function(){e.writeElement("xcalcf:calcFeatures",function(){},function(){var t="xcalcf:feature";e.writeElement(t,function(){e.writeAttributeString("name","microsoft.com:RD")},function(){}),e.writeElement(t,function(){e.writeAttributeString("name","microsoft.com:Single")},function(){}),e.writeElement(t,function(){e.writeAttributeString("name","microsoft.com:FV")},function(){}),e.writeElement(t,function(){e.writeAttributeString("name","microsoft.com:CNMTM")},function(){}),e.writeElement(t,function(){e.writeAttributeString("name","microsoft.com:LET_WF")},function(){})})})),l&&e.writeElement("ext",function(){e.writeAttributeString("uri","{D0CA8CA8-9F24-4464-BF8E-62219DCF47F9}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x15:timelineCacheRefs",function(){},function(){c.forEach(function(t){t.cacheRid&&e.writeLeafElement("x15:timelineCacheRef",function(){e.writeAttributeString("r:id",t.cacheRid)})})})}),(a||l)&&(e.writeElement("ext",function(){e.writeAttributeString("uri","{79F54976-1DA5-4618-B147-4CDE4B953A38}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.de)},function(){e.writeElement("x14:workbookPr",function(){})}),e.writeElement("ext",function(){e.writeAttributeString("uri","{140A7094-0E35-4892-8432-C4D2E57EDEB5}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x15:workbookPr",function(){e.writeAttributeString("chartTrackingRefBase","1")},function(){})}))})}t.writeSlicerCacheInWorkbook=y;function S(e,t,r){t.forEach(function(t){C(e,t,r)})}t.writeSlicerDrawings=S;function C(e,t,r){var o=t&&t.twoCellAnchor;o&&e.writeElement("xdr:twoCellAnchor",function(){t.dynamicMove?t.dynamicSize||e.writeAttributeString("editAs","oneCell"):e.writeAttributeString("editAs","absolute")},function(){r(e,"xdr:from",o.startPoint),r(e,"xdr:to",o.endPoint),x(e,t),w(e,t)})}function w(e,t){e.writeLeafElement("xdr:clientData",function(){t.isLocked||e.writeAttributeString("fLocksWithSheet","0")})}function x(e,t){e.writeElement("mc:AlternateContent",function(){e.writeAttributeString("xmlns:mc",i.XFileConstants.ae)},function(){A(e,t),D(e,t)})}function A(e,t){e.writeElement("mc:Choice",function(){"timeline"===(t&&t.type)?(e.writeAttributeString("xmlns:tsle",d),e.writeAttributeString("Requires","tsle")):(e.writeAttributeString("xmlns:sle15","http://schemas.microsoft.com/office/drawing/2012/slicer"),e.writeAttributeString("Requires","sle15"))},function(){T(e,t)})}function T(e,t){e.writeElement("xdr:graphicFrame",function(){e.writeAttributeString("macro","")},function(){v(e,t),k(e),F(e,t)})}function v(e,t){e.writeElement("xdr:nvGraphicFramePr",function(){},function(){R(e,t),L(e,t)})}function k(e){e.writeElement("xdr:xfrm",function(){},function(){E(e,"a:off","x","0","y","0"),E(e,"a:ext","cx","0","cy","0")})}function F(e,t){e.writeElement("a:graphic",function(){},function(){I(e,t)})}function R(e,t){e.writeElement("xdr:cNvPr",function(){e.writeAttributeString("id","timeline"===(t&&t.type)?"8":"2"),e.writeAttributeString("name",s(c(t.name,"\n","
")))},function(){"timeline"===(t&&t.type)&&e.writeElement("a:extLst",function(){e.writeElement("a:ext",function(){e.writeAttributeString("uri","{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}")},function(){E(e,"a16:creationId","xmlns:a16","http://schemas.microsoft.com/office/drawing/2014/main","id","{729A7851-DBA1-4F10-BB7B-BEC1E3EEDA64}")})})})}function E(e,t,r,o,i,n){e.writeLeafElement(t,function(){e.writeAttributeString(r,o),e.writeAttributeString(i,n)})}function I(e,t){e.writeElement("a:graphicData",function(){"timeline"===(t&&t.type)?e.writeAttributeString("uri",d):e.writeAttributeString("uri","http://schemas.microsoft.com/office/drawing/2010/slicer")},function(){"timeline"===(t&&t.type)?E(e,"tsle:timeslicer","xmlns:tsle",d,"name",c(s(t.name),"\n","
")):E(e,"sle:slicer","xmlns:sle","http://schemas.microsoft.com/office/drawing/2010/slicer","name",c(s(t.name),"\n","
"))})}function L(e,t){e.writeElement("xdr:cNvGraphicFramePr",function(){e.writeLeafElement("a:graphicFrameLocks",function(){t.disableResizingAndMoving&&(e.writeAttributeString("noMove","1"),e.writeAttributeString("noResize","1"))})})}function D(e,t){e.writeElement("mc:Fallback",function(){e.writeAttributeString("xmlns","")},function(){B(e,t)})}function B(e,t){e.writeElement("xdr:sp",function(){e.writeAttributeString("macro",""),e.writeAttributeString("textlink","")},function(){P(e),M(e),V(e,t)})}function P(e){e.writeElement("xdr:nvSpPr",function(){},function(){E(e,"xdr:cNvPr","id","0","name",""),_(e)})}function W(e,t,r){e.writeElement(t,function(){},function(){N(e,r[0],r[1],r[2])})}function _(e){W(e,"xdr:cNvSpPr",["a:spLocks","noTextEdit","1"])}function N(e,t,r,o){e.writeLeafElement(t,function(){e.writeAttributeString(r,o)})}function M(e){e.writeElement("xdr:spPr",function(){},function(){O(e),H(e),U(e),J(e)})}function O(e){e.writeElement("a:xfrm",function(){},function(){E(e,"a:off","x","5486400","y","942975"),E(e,"a:ext","cx","1828800","cy","2524125")})}function H(e){e.writeElement("a:prstGeom",function(){e.writeAttributeString("prst","rect")},function(){G(e)})}function G(e){e.writeLeafElement("a:avLst")}function U(e){W(e,"a:solidFill",["a:prstClr","val","white"])}function J(e){e.writeElement("a:ln",function(){e.writeAttributeString("w","1")},function(){z(e)})}function z(e){W(e,"a:solidFill",["a:prstClr","val","green"])}function V(e,t){e.writeElement("xdr:txBody",function(){},function(){E(e,"a:bodyPr","vertOverflow","clip","horzOverflow","clip"),j(e),X(e,t)})}function j(e){e.writeLeafElement("a:lstStyle")}function X(e,t){e.writeElement("a:p",function(){},function(){K(e,t)})}function K(e,t){e.writeElement("a:r",function(){},function(){E(e,"a:rPr","lang","en-US","sz","1100"),q(e,t)})}function q(e,t){var r;r=t&&"timeline"===t.type?"Timeline: Works in Excel 2013 or higher. Do not move or resize.":"This shape represents a table slicer. Table slicers are supported in Excel or later. If the shape was modified in an earlier version of Excel, or if the workbook was saved in Excel 2007 or earlier, the slicer can't be used.",e.writeElement("a:t",function(){e.writeValue(r)})}},"./src/xlsx-io/writer/sparkline-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/excel-types.ts"),i=r("./src/common/common.ts"),n=r("./src/common/range-parser.ts"),a=r("./src/datamodel/excel-style.ts"),l=r("./src/xlsx-io/common/color-writer.ts"),s=i.IndexHelper.V,c=i.Util.oa;function b(e,t,r){!r.zj(t)||r.zj(t).length<1||e.writeElement("ext",function(){e.writeAttributeString("uri","{05C60535-1F16-4fd2-B633-F4F36F0B64E0}"),e.writeAttributeString("xmlns:x14",o.XFileConstants.$d)},function(){h(e,t,r)})}t.writeSparkline=b;function h(e,t,r){e.writeElement("x14:sparklineGroups",function(){e.writeAttributeString("xmlns:xm",o.XFileConstants._d)},function(){var o=r.zj(t);o.length>0&&o.forEach(function(r){p(e,t,r)})})}t.writeSparklineGroups=h,d={0:"line",1:"column",2:"stacked"},u={2:"span",0:"gap",1:"zero"},f={0:"individual",1:"group",2:"custom"};function p(e,t,r){e.writeElement("x14:sparklineGroup",function(){var t=r&&r.setting;r.sparklineType&&e.writeAttributeString("type",d[r.sparklineType]),r.displayDateAxis&&e.writeAttributeString("dateAxis","1"),i.isNullOrUndefined(t)||(!i.isNullOrUndefined(t.lineWeight)&&3*(""+t.lineWeight)/4-.75>.001&&e.writeAttributeString("lineWeight",3*(""+t.lineWeight)/4),t.displayEmptyCellsAs?e.writeAttributeString("displayEmptyCellsAs",u[t.displayEmptyCellsAs]):e.writeAttributeString("displayEmptyCellsAs",u[0]),t.showMarkers&&e.writeAttributeString("markers","1"),t.showHigh&&e.writeAttributeString("high","1"),t.showLow&&e.writeAttributeString("low","1"),t.showFirst&&e.writeAttributeString("first","1"),t.showLast&&e.writeAttributeString("last","1"),t.showNegative&&e.writeAttributeString("negative","1"),t.displayXAxis&&e.writeAttributeString("displayXAxis","1"),t.displayHidden&&e.writeAttributeString("displayHidden","1"),t.rightToLeft&&e.writeAttributeString("rightToLeft","1"),t.minAxisType&&e.writeAttributeString("minAxisType",f[t.minAxisType]),t.maxAxisType&&e.writeAttributeString("maxAxisType",f[t.maxAxisType]),t.manualMin&&e.writeAttributeString("manualMin",t.manualMin),t.manualMax&&e.writeAttributeString("manualMax",t.manualMax))},function(){var o=r&&r.setting,i=a.ColorHelper.toExcelColor(o.seriesColor||"rgba(36,64,98,1.0)");l.writeColor(e,"x14:colorSeries",i),i=a.ColorHelper.toExcelColor(o.negativeColor||"brown"),l.writeColor(e,"x14:colorNegative",i),i=a.ColorHelper.toExcelColor(o.axisColor||"black"),l.writeColor(e,"x14:colorAxis",i),i=a.ColorHelper.toExcelColor(o.markersColor||"rgba(36,64,98,1.0)"),l.writeColor(e,"x14:colorMarkers",i),i=a.ColorHelper.toExcelColor(o.firstMarkerColor||"rgba(149,179,215,1.0)"),l.writeColor(e,"x14:colorFirst",i),i=a.ColorHelper.toExcelColor(o.lastMarkerColor||"rgba(149,179,215,1.0)"),l.writeColor(e,"x14:colorLast",i),i=a.ColorHelper.toExcelColor(o.highMarkerColor||"blue"),l.writeColor(e,"x14:colorHigh",i),i=a.ColorHelper.toExcelColor(o.lowMarkerColor||"blue"),l.writeColor(e,"x14:colorLow",i),r.displayDateAxis&&r.axisReference&&e.writeElement("xm:f",function(){"string"==typeof r.axisReference?e.writeValue(r.axisReference):e.writeValue(g(r.axisReference.sheetName||t,r.axisReference))}),r.sparklines&&r.sparklines.length>0&&e.writeElement("x14:sparklines",function(){r.sparklines.forEach(function(r){m(e,t,r)})})})}t.writeSparklineGroup=p;function m(e,t,r){e.writeElement("x14:sparkline",function(){i.isNullOrUndefined(r.data)||(e.writeElement("xm:f",function(){},function(){"string"==typeof r.data?e.writeValue(r.data):e.writeValue(g(r.data.sheetName||t,r.data))}),e.writeElement("xm:sqref",function(){},function(){e.writeValue(n.getRangeString([{row:r.row,col:r.col,rowCount:1,colCount:1}]))}))})}function g(e,t){return c(s(e)+"!"+n.getRangeString([t]))}},"./src/xlsx-io/writer/style-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/tuple.ts"),a=r("./src/datamodel/excel-style.ts"),l=r("./src/datamodel/excel-style.ts"),s=r("./src/common/common.ts"),c=r("./src/xlsx-io/common/color-writer.ts"),d=void 0,u={wholeSlicerStyle:"wholeTable",headerStyle:"headerRow",wholeTableStyle:"wholeTable",headerRowStyle:"headerRow",footerRowStyle:"totalRow",highlightFirstColumnStyle:"firstColumn",highlightLastColumnStyle:"lastColumn",firstRowStripStyle:"firstRowStripe",secondRowStripStyle:"secondRowStripe",firstColumnStripStyle:"firstColumnStripe",secondColumnStripStyle:"secondColumnStripe",firstHeaderCellStyle:"firstHeaderCell",lastHeaderCellStyle:"lastHeaderCell",firstFooterCellStyle:"firstTotalCell",lastFooterCellStyle:"lastTotalCell",reportFilterLabelsStyle:"pageFieldLabels",reportFilterValuesStyle:"pageFieldValues",firstRowStripeStyle:"firstRowStripe",secondRowStripeStyle:"secondRowStripe",firstColumnStripeStyle:"firstColumnStripe",secondColumnStripeStyle:"secondColumnStripe",subtotalColumn1Style:"firstSubtotalColumn",subtotalColumn2Style:"secondSubtotalColumn",subtotalColumn3Style:"thirdSubtotalColumn",subtotalRow1Style:"firstSubtotalRow",subtotalRow2Style:"secondSubtotalRow",subtotalRow3Style:"thirdSubtotalRow",columnSubheading1Style:"firstColumnSubheading",columnSubheading2Style:"secondColumnSubheading",columnSubheading3Style:"thirdColumnSubheading",rowSubheading1Style:"firstRowSubheading",rowSubheading2Style:"secondRowSubheading",rowSubheading3Style:"thirdRowSubheading",blankRowStyle:"blankRow",grandTotalColumnStyle:"lastColumn",grandTotalRowStyle:"totalRow",firstHeaderCellStyleL:"firstHeaderCell",firstColumnStyle:"firstColumn"},f={selectedItemWithDataStyle:"selectedItemWithData",selectedItemWithNoDataStyle:"selectedItemWithNoData",unSelectedItemWithDataStyle:"unselectedItemWithData",unSelectedItemWithNoDataStyle:"unselectedItemWithNoData",hoveredSelectedItemWithDataStyle:"hoveredSelectedItemWithData",hoveredSelectedItemWithNoDataStyle:"hoveredSelectedItemWithNoData",hoveredUnSelectedItemWithDataStyle:"hoveredUnselectedItemWithData",hoveredUnSelectedItemWithNoDataStyle:"hoveredUnselectedItemWithNoData"},b={selectionLabelStyle:"selectionLabel",timeLevelStyle:"timeLevel",periodLabel1Style:"periodLabel1",periodLabel2Style:"periodLabel2",selectedTimeBlockStyle:"selectedTimeBlock",unselectedTimeBlockStyle:"unselectedTimeBlock",selectedTimeBlockSpaceStyle:"selectedTimeBlockSpace"};function h(e,t,r,o,i,n,a){e.writeAttributeString(t,r),e.writeAttributeString(o,i),e.writeAttributeString(n,a)}function p(e,t){var r=x(e,t),a=new o.XmlWriter;return a.writeDocument(),a.writeElement("styleSheet",function(){a.writeAttributeString("xmlns",i.XFileConstants.Hd),a.writeAttributeString("xmlns:mc",i.XFileConstants.Jd),a.writeAttributeString("xmlns:x14ac",i.XFileConstants.Nd),a.writeAttributeString("mc:Ignorable",i.XFileConstants.Od)},function(){var t,o,i,l,c,f,b;if(r.gn.count>0&&a.writeElement("numFmts",function(){a.writeAttributeString("count",""+r.gn.count)},function(){for(var e in r.gn)r.gn.hasOwnProperty(e)&&"count"!==e&&A(a,{key:e,value:r.gn[e]})}),a.writeElement("fonts",function(){a.writeAttributeString("count",""+r.Rn.length)},function(){for(var e=0,t=r.Rn.length;e<t;e++)T(a,r.Rn[e])}),a.writeElement("fills",function(){a.writeAttributeString("count",""+r.Sn.length)},function(){var e,t=function(e){a.writeElement("fill",d,function(){a.writeLeafElement("patternFill",function(){a.writeAttributeString("patternType",e)})})};for(t("none"),t("gray125"),e=2;e<r.Sn.length;e++)k(a,r.Sn[e])}),a.writeElement("borders",function(){a.writeAttributeString("count",""+r.Tn.length)},function(){for(var e=0,t=r.Tn.length;e<t;e++)F(a,r.Tn[e])}),E(a,r.Un,"cellStyleXfs",!0),E(a,r.Vn,"cellXfs",!1),0===r.af.length)L(a);else{for(t=[],o=Object.keys(r.Wn),i=o.length,l=0,c=i;l<c;l++)f=o[l],b=r.Wn[f],t.push(new n.Tuple(b,r.af[b],f));0===t.length?L(a):a.writeElement("cellStyles",function(){a.writeAttributeString("count",""+t.length)},function(){var e,r,o=function(e,r){var o=t[e],i=o.item2;i?a.writeLeafElement("cellStyle",function(){a.writeAttributeString("name",s.Util.oa(o.item3)),a.writeAttributeString("xfId",""+o.item1),i.isBuiltInStyle()&&(a.writeAttributeString("builtinId",""+i.builtInStyle),i.isCustomBuiltin&&a.writeAttributeString("customBuiltin","1"),1!==i.builtInStyle&&2!==i.builtInStyle||a.writeAttributeString("iLevel",""+i.outLineLevel))}):a.writeLeafElement("cellStyle",function(){a.writeAttributeString("name",o.item3),a.writeAttributeString("xfId",""+o.item1)})};for(e=0,r=t.length;e<r;e++)o(e,r)})}B(a,e),e.mh.length>0?a.writeElement("tableStyles",function(){a.writeAttributeString("count",e.mh.length),a.writeAttributeString("defaultTableStyle","TableStyleMedium2"),a.writeAttributeString("defaultPivotStyle","PivotStyleMedium9")},function(){var t=e.mh;t&&t.forEach(function(e){a.writeElement("tableStyle",function(){a.writeAttributeString("name",e.name),e.isPivot?a.writeAttributeString("table","0"):(a.writeAttributeString("pivot","0"),s.isNullOrUndefined(e.tableId)||a.writeAttributeString("table",e.tableId)),a.writeAttributeString("count",e.styleElements.length)},function(){e.styleElements&&e.styleElements.length>0&&e.styleElements.forEach(function(e){a.writeLeafElement("tableStyleElement",function(){a.writeAttributeString("type",u[e.type]),a.writeAttributeString("dxfId",e.dxfId),s.isNullOrUndefined(e.size)||a.writeAttributeString("size",e.size)})})})})}):a.writeLeafElement("tableStyles",function(){h(a,"count","0","defaultTableStyle","TableStyleMedium2","defaultPivotStyle","PivotStyleLight16")}),(e.oh.length>0||e.qh.length>0)&&a.writeElement("extLst",function(){e.oh.length>0&&(m(a,e),y(a,e.oh)),e.qh.length>0&&(g(a,e),S(a,e.qh))})}),{xml:a.getXmlString(),styleOffset:r.Xn}}t.writeStyle=p;function m(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{46F421CA-312F-682f-3DD2-61675219B42D}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){P(e,t)})}function g(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{A0A4C193-F2C1-4fcb-8827-314CF55A85BB}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){W(e,t)})}function y(e,t){var r,o="SlicerStyle",n="Light",a="Dark",l=["SlicerStyleOther1","SlicerStyleOther2"];for(r=1;r<7;r++)l.push(o+n+r),l.push(o+a+r);e.writeElement("ext",function(){e.writeAttributeString("uri","{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){e.writeElement("x14:slicerStyles",function(){e.writeAttributeString("defaultSlicerStyle","SlicerStyleLight1")},function(){t&&t.length&&t.forEach(function(t){l.indexOf(t.name)===-1&&e.writeElement("x14:slicerStyle",function(){e.writeAttributeString("name",t.name)},function(){t.styleElements&&t.styleElements.length&&e.writeElement("x14:slicerStyleElements",function(){t.styleElements.forEach(function(t){e.writeLeafElement("x14:slicerStyleElement",function(){e.writeAttributeString("type",f[t.type]),e.writeAttributeString("dxfId",t.dxfId)})})})})})})})}function S(e,t){var r,o="TimeSlicerStyle",n="Light",a="Dark",l=[];for(r=1;r<7;r++)l.push(o+n+r),l.push(o+a+r);e.writeElement("ext",function(){e.writeAttributeString("uri","{9260A510-F301-46a8-8635-F512D64BE5F5}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x15:timelineStyles",function(){e.writeAttributeString("defaultTimelineStyle","TimeSlicerStyleLight1")},function(){t&&t.length&&t.forEach(function(t){l.indexOf(t.name)===-1&&e.writeElement("x15:timelineStyle",function(){e.writeAttributeString("name",t.name)},function(){t.styleElements&&t.styleElements.length&&e.writeElement("x15:timelineStyleElements",function(){t.styleElements.forEach(function(t){e.writeLeafElement("x15:timelineStyleElement",function(){e.writeAttributeString("type",b[t.type]),e.writeAttributeString("dxfId",t.dxfId)})})})})})})})}function C(e){var t=e&&e.fontName;return t&&('"'===t.charAt(0)&&(t=t.substr(1)),'"'===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),e.fontName=t),e}function w(e,t){var r,o=e.length;if(0===o)return-1;for(r=0;r<o;r++)if(e[r].equals(t,!0))return r;return-1}function x(e,t){var r,o,i,c,u,f,b,h,p,m,g,y,S,x,A,T,v,k,F,R,E,I,L,D,B,P={Xn:0,Rn:[],Sn:[],Tn:[],gn:{count:0},Yn:{},Un:d,af:d,Wn:e.Sj()},W=e.gj(),_=e.hj(),N=e.ij();if(N&&0!==N.length||(_?(r=new a.ExcelStyle,r.builtInStyle=0,r.name="Normal",r.format(_),N=[],N.push(r)):(N=[],N.push(a.BuiltInExcelStyles.getNormalStyle()))),o="Normal",N)for(i=0,c=N.length;i<c;i++)u=N[i],u.isBuiltInStyle()&&0===u.builtInStyle&&(o=u.name);for(P.af=N,f=s.Util.ka(N,function(e){return e.name===o},null),b=s.Util.ka(W,function(e){return!e.isStyleFormat},null),h=s.Util.ka(W,function(e){return e.isStyleFormat},null),null!==b&&b.equals(_,!0)||(W.splice(0,0,_),P.Xn+=1),null!==h&&h.equals(f.format())||(W.splice(0,0,f.format()),P.Xn+=1),p=0,m=0,g=0,y=0,S=f.format(),x=C(S.fontForColumnWidth?S.fontForColumnWidth:S.font),P.Rn.push(x),A=new l.ExcelFill,A.patternType=0,A.bgColor=a.ExcelColor.EmptyColor,A.fgColor=a.ExcelColor.EmptyColor,P.Sn.push(A),A=new l.ExcelFill,A.patternType=17,A.bgColor=a.ExcelColor.EmptyColor,A.fgColor=a.ExcelColor.EmptyColor,P.Sn.push(A),P.Tn.push(new a.ExcelBorder),P.Vn=[],P.Un=[],T=0,i=0,c=W.length;i<c;i++)v=W[i],v.font&&(p=s.Util.la(P.Rn,v.font),p===-1&&(P.Rn.push(C(v.font)),p=P.Rn.length-1)),v.numberFormat?(m=v.numberFormat.numberFormatId,void 0===P.gn[m]&&P.gn.count++,P.gn[m]=s.Util.ua(v.numberFormat.numberFormatCode,"\n","_x000a_"),P.Yn[v.numberFormat.numberFormatCode]=m):v.numberFormatIndex>=0&&(m=v.numberFormatIndex),v.border&&(y=s.Util.la(P.Tn,v.border),y===-1&&(P.Tn.push(v.border),y=P.Tn.length-1)),s.isNullOrUndefined(v.fill)||0===v.fill.patternType?g=0:(k=v.fill,g=s.Util.la(P.Sn,k),g===-1&&(P.Sn.push(k),g=P.Sn.length-1)),v.isStyleFormat?(t[T]=""+P.Un.length,T++,P.Un.push(new n.Tuple(m,p,g,y,0,v,new n.Tuple(v.isHidden,v.isLocked)))):(F=new n.Tuple(m,p,g,y,0,v,new n.Tuple(v.isHidden,v.isLocked)),R=w(P.Vn,F),R===-1?(t[T]=""+P.Vn.length,P.Vn.push(F)):t[T]=""+R,T++);if(e.Ih&&e.Ih.length>0)for(E=e.Ih,I=E.length,i=0;i<I;i++)L=E[i],D=void 0,B=void 0,L.numberFormat?(D=L.numberFormat.numberFormatId,B=L.numberFormat.numberFormatCode):(D=L.numberFormatIndex,B=a.ExtendedNumberFormatHelper.getFormatCode(L)),void 0===P.gn[D]&&P.gn.count++,P.gn[D]=B,P.Yn[B]=m;return e.Yn=P.Yn,P}function A(e,t){t.key<0||e.writeLeafElement("numFmt",function(){e.writeAttributeString("numFmtId",""+t.key),e.writeAttributeString("formatCode",s.Util.oa(""+t.value))})}function T(e,t,r){t&&e.writeElement("font",d,function(){if(t.isBold&&e.writeLeafElement("b"),t.isItalic&&e.writeLeafElement("i"),t.isStrikeOut&&e.writeLeafElement("strike"),0!==t.underLineStyle&&(1===t.underLineStyle?e.writeLeafElement("u"):e.writeLeafElement("u",function(){e.writeAttributeString("val",l.UnderLineStyle[t.underLineStyle])})),!r&&(0!==t.fontSize||t.fontSize!==-1)){var o=t.fontSize;o>0&&e.writeLeafElement("sz",function(){e.writeAttributeString("val",""+o)})}void 0!==t.fontColor&&t.fontColor!==a.ExcelColor.EmptyColor&&c.writeColor(e,"color",t.fontColor),r||(0!==t.vertAlign&&e.writeLeafElement("vertAlign",function(){e.writeAttributeString("val",l.VertAlign[t.vertAlign])}),s.StringEx.O(t.fontName)||e.writeLeafElement("name",function(){e.writeAttributeString("val",t.fontName)}),s.isNullOrUndefined(t.fontFamily)||0===t.fontFamily||e.writeLeafElement("family",function(){e.writeAttributeString("val",""+t.fontFamily)}),t.charSetIndex>0&&e.writeLeafElement("charset",function(){e.writeAttributeString("val",""+t.charSetIndex)}),t.isShadowStyle&&e.writeLeafElement("shadow",function(){e.writeAttributeString("val","1")}),t.isOutlineStyle&&e.writeLeafElement("outline",function(){e.writeAttributeString("val","1")}),0!==t.fontScheme&&e.writeLeafElement("scheme",function(){e.writeAttributeString("val",a.FontSchemeCategory[t.fontScheme])}))})}function v(e,t){t&&e.writeElement("rPr",d,function(){if(t.isBold&&e.writeLeafElement("b"),t.charSetIndex>0&&e.writeLeafElement("charset",function(){e.writeAttributeString("val",""+t.charSetIndex)}),t.foreColor&&t.foreColor!==a.ExcelColor.EmptyColor&&c.writeColor(e,"color",t.foreColor),t.isCondense&&e.writeLeafElement("condense"),t.isExtend&&e.writeLeafElement("extend"),s.isNullOrUndefined(t.fontFamilySet)||0===t.fontFamilySet||e.writeLeafElement("family",function(){e.writeAttributeString("val",""+t.fontFamilySet)}),t.isItalic&&e.writeLeafElement("i"),t.isOutlineStyle&&e.writeLeafElement("outline",function(){e.writeAttributeString("val","1")}),s.StringEx.O(t.fontFamily)||e.writeLeafElement("rFont",function(){e.writeAttributeString("val",t.fontFamily)}),t.fontScheme&&0!==t.fontScheme&&e.writeLeafElement("scheme",function(){e.writeAttributeString("val",a.FontSchemeCategory[t.fontScheme])}),t.isShadowStyle&&e.writeLeafElement("shadow",function(){e.writeAttributeString("val","1")}),t.isStrikeOut&&e.writeLeafElement("strike"),t.fontSize&&0!==t.fontSize||t.fontSize!==-1){var r=t.fontSize;r>0&&e.writeLeafElement("sz",function(){e.writeAttributeString("val",""+r)})}t.underLineStyle&&0!==t.underLineStyle&&(1===t.underLineStyle?e.writeLeafElement("u"):e.writeLeafElement("u",function(){e.writeAttributeString("val",l.UnderLineStyle[t.underLineStyle])})),t.vertAlign&&0!==t.vertAlign&&e.writeLeafElement("vertAlign",function(){e.writeAttributeString("val",l.VertAlign[t.vertAlign])})})}t.writerRichTextStyle=v;function k(e,t,r){e.writeElement("fill",d,function(){t.stops?e.writeElement("gradientFill",function(){var r,o,i,n=["degree","left","right","top","bottom"];for(r=0,o=n;r<o.length;r++)i=o[r],s.isNullOrUndefined(t[i])||e.writeAttributeString(i,t[i]);"path"===t.type&&e.writeAttributeString("type","path")},function(){var r,o=function(r){e.writeElement("stop",function(){e.writeAttributeString("position",t.stops[r].position)},function(){c.writeColor(e,"color",t.stops[r].color)})};for(r=0;r<t.stops.length;r++)o(r)}):e.writeElement("patternFill",function(){e.writeAttributeString("patternType",l.FillPatternType[t.patternType])},function(){t.fgColor&&c.writeColor(e,"fgColor",t.fgColor),t.bgColor&&c.writeColor(e,"bgColor",t.bgColor)})})}function F(e,t,r,o){var i=!1;e.writeElement("border",function(){t.diagonalDown&&t.diagonalDown.color&&t.diagonalDown.lineStyle&&(i=!0,e.writeAttributeString("diagonalDown",1)),t.diagonalUp&&t.diagonalUp.color&&t.diagonalUp.lineStyle&&(i=!0,e.writeAttributeString("diagonalUp",1))},function(){(!r||r&&t.left)&&R(e,"left",t.left),(!r||r&&t.right)&&R(e,"right",t.right),(!r||r&&t.top)&&R(e,"top",t.top),(!r||r&&t.bottom)&&R(e,"bottom",t.bottom),!t.vertical||!o&&i||R(e,"vertical",t.vertical),!t.horizontal||!o&&i||R(e,"horizontal",t.horizontal);var n=!1;t.diagonalUp&&t.diagonalUp.color&&t.diagonalUp.lineStyle&&(R(e,"diagonal",t.diagonalUp),n=!0),t.diagonalDown&&t.diagonalDown.color&&t.diagonalDown.lineStyle&&!n&&R(e,"diagonal",t.diagonalDown)})}function R(e,t,r){r&&(0!==r.lineStyle||r.color?e.writeElement(t,function(){0!==r.lineStyle&&e.writeAttributeString("style",l.ExcelBorderStyle[r.lineStyle])},function(){r.color&&c.writeColor(e,"color",r.color)}):e.writeLeafElement(t))}function E(e,t,r,o){0===t.length?e.writeElement(r,function(){e.writeAttributeString("count","1")},function(){e.writeLeafElement("xf",function(){e.writeAttributeString("numFmtId","0"),e.writeAttributeString("fontId","0"),e.writeAttributeString("fillId","0"),e.writeAttributeString("borderId","0"),o||e.writeAttributeString("xfId","0")})}):e.writeElement(r,function(){e.writeAttributeString("count",""+t.length)},function(){var r,i,n=function(r,i){var n=t[r],c=n.item6,d=n.item7,u=0!==c.horizontalAlign||2!==c.verticalAlign||0!==c.rotation||0!==c.readingOrder||c.isWordWrap||c.isShrinkToFit||c.isJustfyLastLine||c.indent>0,f=d&&(d.item1||!d.item2),b="writeElement";u||f||(b="writeLeafElement"),e[b]("xf",function(){if(e.writeAttributeString("numFmtId",""+n.item1),e.writeAttributeString("fontId",""+n.item2),e.writeAttributeString("fillId",""+n.item3),e.writeAttributeString("borderId",""+n.item4),c){if(o)I(e,c,"applyFont",!0),I(e,c,"applyFill",!0),I(e,c,"applyBorder",!0),I(e,c,"applyNumberFormat",!0),I(e,c,"applyAlignment",!0),I(e,c,"applyProtection",!0);else{if(c.isStyleFormat||s.isNullOrUndefined(c.parentFormatID))e.writeAttributeString("xfId","0");else{var t=c.parentFormatID;s.isNullOrUndefined(t)?e.writeAttributeString("xfId","0"):e.writeAttributeString("xfId",""+t)}s.isNullOrUndefined(c.applyFont)&&0===n.item2||I(e,c,"applyFont",!1),s.isNullOrUndefined(c.applyFill)||I(e,c,"applyFill",!1),s.isNullOrUndefined(c.applyBorder)||I(e,c,"applyBorder",!1),s.isNullOrUndefined(c.applyNumberFormat)||I(e,c,"applyNumberFormat",!1),s.isNullOrUndefined(c.applyAlignment)||I(e,c,"applyAlignment",!1),
|
55
|
+
s.isNullOrUndefined(c.applyProtection)||I(e,c,"applyProtection",!1)}s.isNullOrUndefined(c.quotePrefix)||e.writeAttributeString("quotePrefix",c.quotePrefix===!0?"1":"0")}},function(){u&&e.writeLeafElement("alignment",function(){0!==c.horizontalAlign?e.writeAttributeString("horizontal",l.ExcelHorizontalAlignment[c.horizontalAlign]):0===c.horizontalAlign&&c.indent>0&&e.writeAttributeString("horizontal",l.ExcelHorizontalAlignment[1]),2!==c.verticalAlign&&e.writeAttributeString("vertical",a.ExcelVerticalAlignment[c.verticalAlign]),c.isVerticalText===!0?e.writeAttributeString("textRotation",255):0!==c.rotation&&e.writeAttributeString("textRotation",""+c.rotation),0!==c.readingOrder&&e.writeAttributeString("readingOrder",l.TextDirection[c.readingOrder]),c.isWordWrap&&e.writeAttributeString("wrapText","1"),c.isShrinkToFit&&e.writeAttributeString("shrinkToFit","1"),c.isJustfyLastLine&&e.writeAttributeString("justifyLastLine","1"),c.indent>0&&e.writeAttributeString("indent",""+c.indent)}),f&&e.writeLeafElement("protection",function(){d.item2||e.writeAttributeString("locked","0"),d.item1&&e.writeAttributeString("hidden","1")})})};for(r=0,i=t.length;r<i;r++)n(r,i)})}function I(e,t,r,o){var i=t[r],n;o&&i===!1?n="0":o||i!==!0||(n="1"),s.isNullOrUndefined(n)||e.writeAttributeString(r,n)}function L(e){e.writeElement("cellStyles",function(){e.writeAttributeString("count","1")},function(){e.writeLeafElement("cellStyle",function(){h(e,"name","Normal","builtinId","0","xfId","0")})})}function D(e,t,r){for(var o=0;o<r.length;o++)_(e,t,r[o],"dxf")}function B(e,t,r){var o=r?r:t.hf;0===o.length?e.writeLeafElement("dxfs",function(){e.writeAttributeString("count","0")}):e.writeElement("dxfs",function(){e.writeAttributeString("count",o.length)},function(){D(e,t,o)})}function P(e,t){var r=t.Ch;0===r.length?e.writeLeafElement("x14:dxfs",function(){e.writeAttributeString("count","0")}):e.writeElement("x14:dxfs",function(){e.writeAttributeString("count",r.length)},function(){D(e,t,r)})}function W(e,t){var r=t.Dh;0===r.length?e.writeLeafElement("x15:dxfs",function(){e.writeAttributeString("count","0")}):e.writeElement("x15:dxfs",function(){e.writeAttributeString("count",r.length)},function(){for(var o=0;o<r.length;o++)_(e,t,r[o],"dxf")})}function _(e,t,r,o){e.writeElement(o,function(){var o,i,n=r.isColorFilter?r:a.ConverterHelper.toDifferentialFormatting(r,t);n.font&&T(e,n.font,n.isPartFontStyle),(n.numberFormat||n.numberFormatIndex>=0)&&(o=void 0,i=void 0,n.numberFormat?(o=n.numberFormat.numberFormatId,i=n.numberFormat.numberFormatCode):(o=n.numberFormatIndex,i=n.numberFormatCode),A(e,{key:o,value:i})),n.fill&&(1===n.fill.patternType&&(n.fill.bgColor=n.fill.fgColor),k(e,n.fill,!0)),n.border&&F(e,n.border,n.isSlicerHeader,!0)})}t.writeDxf=_},"./src/xlsx-io/writer/table-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/common/range-parser.ts"),l=r("./src/xlsx-io/writer/autofilter-writer.ts");function c(e){return e.indexOf("LET(")>-1}function d(e,t){var r=e;return"number"==typeof t[e]?(t[e]++,r+="_"+t[e]):t[e]=0,r}function u(e,t,r,s){if(n.isNullOrUndefined(e))return null;var u=new o.XmlWriter;return u.writeDocument(),u.writeElement("table",function(){var t,r;u.writeAttributeString("xmlns",i.XFileConstants.Md),u.writeAttributeString("id",e.id),t=e.name.split(" ").join("_"),u.writeAttributeString("name",t),r=d(t.split("-").join("_"),s),u.writeAttributeString("displayName",r),u.writeAttributeString("ref",a.getRangeString([{row:e.row,col:e.col,rowCount:e.rowCount,colCount:e.colCount}])),e.showHeader===!1&&u.writeAttributeString("headerRowCount","0"),e.showFooter&&u.writeAttributeString("totalsRowCount","1")},function(){var o,i;e.rowFilter&&!n.isNullOrUndefined(e.rowFilter)&&(o=void 0,i=t.Bj(r,e.rowFilter,e.tableSortInfo),i&&i.sortInfo&&(o=i.sortInfo,i.sortInfo=null),e.showHeader!==!1&&(f(e.rowFilter)||h(i),l.writeAutoFilter(u,i)),o&&l.writeSortInfo(u,o)),e.columns&&e.columns.length>0&&u.writeElement("tableColumns",function(){u.writeAttributeString("count",e.columns.length)},function(){e.columns.forEach(function(t,r){if(!(r>=e.colCount)){var o=b(t.footerFormula);"custom"!==o?u.writeElement("tableColumn",function(){u.writeAttributeString("id",""+t.id);var e=t.name;e=n.Util.ua(e,"\r",""),u.writeAttributeString("name",n.Util.oa(n.Util.ua(e,"\n","_x000a_"))),n.isNullOrUndefined(t.footerValue)||u.writeAttributeString("totalsRowLabel",n.Util.oa(n.Util.xa(""+t.footerValue,!0))),n.isNullOrUndefined(t.footerFormula)||u.writeAttributeString("totalsRowFunction",o)},function(){var e=t.dataAreaFormula;n.isNullOrUndefined(e)||c(e)||u.writeElement("calculatedColumnFormula",function(){u.writeValue(n.Util.oa(n.addXLFNPrefix(e)))})}):u.writeElement("tableColumn",function(){u.writeAttributeString("id",""+t.id);var e=t.name;e=n.Util.ua(e,"\r",""),u.writeAttributeString("name",n.Util.oa(n.Util.ua(e,"\n","_x000a_"))),u.writeAttributeString("totalsRowFunction","custom")},function(){var e=t.dataAreaFormula;n.isNullOrUndefined(e)||c(e)||u.writeElement("calculatedColumnFormula",function(){u.writeValue(n.Util.oa(n.addXLFNPrefix(e)))}),u.writeElement("totalsRowFormula",function(){u.writeValue(n.Util.oa(t.footerFormula))})})}})}),u.writeLeafElement("tableStyleInfo",function(){if(e.style){var t="";t=n.isNullOrUndefined(e.style.buildInName)?e.style.name:"TableStyle"+e.style.buildInName,u.writeAttributeString("name",t)}e.highlightFirstColumn?u.writeAttributeString("showFirstColumn","1"):u.writeAttributeString("showFirstColumn","0"),e.highlightLastColumn?u.writeAttributeString("showLastColumn","1"):u.writeAttributeString("showLastColumn","0"),n.isNullOrUndefined(e.bandRows)?u.writeAttributeString("showRowStripes","1"):u.writeAttributeString("showRowStripes","0"),e.bandColumns?u.writeAttributeString("showColumnStripes","1"):u.writeAttributeString("showColumnStripes","0")}),e.reservedElement&&u.writeElement("extLst",function(){},function(){u.writeElement("ext",function(){n.isNullOrUndefined(e.reservedElement.ext._attr&&e.reservedElement.ext._attr.uri)||u.writeAttributeString("uri",e.reservedElement.ext._attr.uri),n.isNullOrUndefined(e.reservedElement.ext._attr&&e.reservedElement.ext._attr["xmlns:x14"])||u.writeAttributeString("xmlns:x14",e.reservedElement.ext._attr["xmlns:x14"])},function(){var t,r="vp:columns",o=e.reservedElement.ext[r];n.isNullOrUndefined(o)||u.writeElement(r,function(){n.isNullOrUndefined(o._attr&&o._attr["xmlns:vp"])||u.writeAttributeString("xmlns:vp",o._attr["xmlns:vp"])},function(){n.isNullOrUndefined(o[r])||u.writeValue(o[r])}),t=e.reservedElement.ext["x14:table"],n.isNullOrUndefined(t&&t._attr)||u.writeLeafElement("x14:table",function(){n.isNullOrUndefined(t._attr.altText)||u.writeAttributeString("altText",t._attr.altText),n.isNullOrUndefined(t._attr.altTextSummary)||u.writeAttributeString("altTextSummary",t._attr.altTextSummary)})})})}),u.getXmlString()}t.writeTable=u;function f(e){var t,r;if(!e.showFilterButton)return!1;t=e.filterButtonVisibleInfo;for(r in t)if(t.hasOwnProperty(r)&&!t[r])return!1;return!0}s={101:"average",102:"countNums",103:"count",104:"max",105:"min",107:"stdDev",109:"sum",110:"let"};function b(e){var t,r;if(!n.isNullOrUndefined(e))return t=/\[\S[\S\s]*\S\]/,e=e.trim(),"SUBTOTAL("!==e.substr(0,9)||!t.test(e)||e.indexOf("[[")?"custom":(r=e.substr(9,3),s[r]||"custom")}function h(e){if(0===e.filterColumns.length)for(var t=0;t<e.range.colCount;t++)e.filterColumns.push({autoFilterColumnId:t});e.filterColumns.forEach(function(e){e.hiddenButton="1"})}},"./src/xlsx-io/writer/theme-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/builtIn-resource.ts"),a=r("./src/xlsx-io/common/color-writer.ts");function s(e){var t,r=e.Hi();return r||(r="Office"),t=new o.XmlWriter,t.writeDocument(),t.writeElement("a:theme",function(){t.writeAttributeString("xmlns:a",i.XFileConstants.Xd),r&&r.name?t.writeAttributeString("name",r.name):"Office"===r?t.writeAttributeString("name","Office Theme"):t.writeAttributeString("name",r)},function(){t.writeElement("a:themeElements",void 0,function(){var e,o;r&&r.colorScheme?(e=r.colorScheme,t.writeElement("a:clrScheme",function(){t.writeAttributeString("name",e.name)},function(){a.writeColorScheme(t,"a:dk1",e.schemeColors[1]),a.writeColorScheme(t,"a:lt1",e.schemeColors[0]),a.writeColorScheme(t,"a:dk2",e.schemeColors[3]),a.writeColorScheme(t,"a:lt2",e.schemeColors[2]),a.writeColorScheme(t,"a:accent1",e.schemeColors[4]),a.writeColorScheme(t,"a:accent2",e.schemeColors[5]),a.writeColorScheme(t,"a:accent3",e.schemeColors[6]),a.writeColorScheme(t,"a:accent4",e.schemeColors[7]),a.writeColorScheme(t,"a:accent5",e.schemeColors[8]),a.writeColorScheme(t,"a:accent6",e.schemeColors[9]),a.writeColorScheme(t,"a:hlink",e.schemeColors[10]),a.writeColorScheme(t,"a:folHlink",e.schemeColors[11])})):n.ThemeClrSchemes[r]?t.xml.addString(n.ThemeClrSchemes[r]):t.xml.addString(n.ThemeClrSchemes.Office),r&&r.fontScheme?(o=r.fontScheme,t.writeElement("a:fontScheme",function(){t.writeAttributeString("name",o.name)},function(){t.writeElement("a:majorFont",void 0,function(){c(t,o.majorFont,!0)}),t.writeElement("a:minorFont",void 0,function(){c(t,o.minorFont,!1)})})):n.ThemeFontSchemes[r]?t.xml.addString(n.ThemeFontSchemes[r]):t.xml.addString(n.ThemeFontSchemes.Office),n.ThemeFmtSchemes[r]?t.xml.addString(n.ThemeFmtSchemes[r]):t.xml.addString(n.ThemeFmtSchemes.Office)}),t.writeLeafElement("a:objectDefaults"),t.writeLeafElement("a:extraClrSchemeLst")}),t.getXmlString()}t.writeTheme=s;function c(e,t,r){var o,n,a;if(t)if(t.runFormattings&&(e.writeLeafElement("a:"+i.FontLanguage[0],function(){e.writeAttributeString("typeface",f(t.runFormattings,0))}),e.writeLeafElement("a:"+i.FontLanguage[2],function(){e.writeAttributeString("typeface",f(t.runFormattings,2))}),e.writeLeafElement("a:"+i.FontLanguage[1],function(){e.writeAttributeString("typeface",f(t.runFormattings,1))})),t.themesFonts&&t.themesFonts.length>0)for(o=function(r,o){var i=t.themesFonts[r];e.writeLeafElement("a:font",function(){e.writeAttributeString("script",i.script),e.writeAttributeString("script",i.typeface)})},n=0,a=t.themesFonts.length;n<a;n++)o(n,a);else r?d(e):u(e)}t.writeThemeFonts=c,l="Times New Roman";function d(e){e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Jpan"),e.writeAttributeString("typeface","\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hang"),e.writeAttributeString("typeface","\ub9d1\uc740 \uace0\ub515")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hans"),e.writeAttributeString("typeface","\u5b8b\u4f53")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hant"),e.writeAttributeString("typeface","\u65b0\u7d30\u660e\u9ad4")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Arab"),e.writeAttributeString("typeface",l)}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hebr"),e.writeAttributeString("typeface",l)}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Thai"),e.writeAttributeString("typeface","Tahoma")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Ethi"),e.writeAttributeString("typeface","Nyala")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Beng"),e.writeAttributeString("typeface","Vrinda")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Gujr"),e.writeAttributeString("typeface","Shruti")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Khmr"),e.writeAttributeString("typeface","MoolBoran")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Knda"),e.writeAttributeString("typeface","Tunga")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Guru"),e.writeAttributeString("typeface","Raavi")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Cans"),e.writeAttributeString("typeface","Euphemia")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Cher"),e.writeAttributeString("typeface","Plantagenet Cherokee")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Yiii"),e.writeAttributeString("typeface","Microsoft Yi Baiti")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Tibt"),e.writeAttributeString("typeface","Microsoft Himalaya")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Thaa"),e.writeAttributeString("typeface","MV Boli")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Deva"),e.writeAttributeString("typeface","Mangal")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Telu"),e.writeAttributeString("typeface","Gautami")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Taml"),e.writeAttributeString("typeface","Latha")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Syrc"),e.writeAttributeString("typeface","Estrangelo Edessa")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Orya"),e.writeAttributeString("typeface","Kalinga")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Mlym"),e.writeAttributeString("typeface","Kartika")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Laoo"),e.writeAttributeString("typeface","DokChampa")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Sinh"),e.writeAttributeString("typeface","Iskoola Pota")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Mong"),e.writeAttributeString("typeface","Mongolian Baiti")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Viet"),e.writeAttributeString("typeface",l)}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Uigh"),e.writeAttributeString("typeface","Microsoft Uighur")})}function u(e){e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Jpan"),e.writeAttributeString("typeface","\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hang"),e.writeAttributeString("typeface","\ub9d1\uc740 \uace0\ub515")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hans"),e.writeAttributeString("typeface","\u5b8b\u4f53")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hant"),e.writeAttributeString("typeface","\u65b0\u7d30\u660e\u9ad4")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Arab"),e.writeAttributeString("typeface","Arial")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hebr"),e.writeAttributeString("typeface","Arial")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Thai"),e.writeAttributeString("typeface","Tahoma")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Ethi"),e.writeAttributeString("typeface","Nyala")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Beng"),e.writeAttributeString("typeface","Vrinda")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Gujr"),e.writeAttributeString("typeface","Shruti")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Khmr"),e.writeAttributeString("typeface","DaunPenh")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Knda"),e.writeAttributeString("typeface","Tunga")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Guru"),e.writeAttributeString("typeface","Raavi")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Cans"),e.writeAttributeString("typeface","Euphemia")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Cher"),e.writeAttributeString("typeface","Plantagenet Cherokee")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Yiii"),e.writeAttributeString("typeface","Microsoft Yi Baiti")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Tibt"),e.writeAttributeString("typeface","Microsoft Himalaya")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Thaa"),e.writeAttributeString("typeface","MV Boli")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Deva"),e.writeAttributeString("typeface","Mangal")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Telu"),e.writeAttributeString("typeface","Gautami")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Taml"),e.writeAttributeString("typeface","Latha")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Syrc"),e.writeAttributeString("typeface","Estrangelo Edessa")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Orya"),e.writeAttributeString("typeface","Kalinga")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Mlym"),e.writeAttributeString("typeface","Kartika")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Laoo"),e.writeAttributeString("typeface","DokChampa")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Sinh"),e.writeAttributeString("typeface","Iskoola Pota")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Mong"),e.writeAttributeString("typeface","Mongolian Baiti")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Viet"),e.writeAttributeString("typeface","Arial")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Uigh"),e.writeAttributeString("typeface","Microsoft Uighur")})}function f(e,t){var r,o,i;if(!e)return"";for(r=0,o=e.length;r<o;r++)if(i=e[r],i.fontLanguage===t)return i.typeface;return""}},"./src/xlsx-io/writer/timeline-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/xlsx-io/writer/pivot-writer.ts"),l=r("./src/datamodel/datamodel-writer.ts"),s=r("./src/xlsx-io/writer/autofilter-writer.ts"),c=n.Util.Ba,d=n.Util.oa,u=n.Util.ua,f=[0,6,10,8,9,17,15,16,14,12,13,18,19,20,21,22,23,40];function b(e){if(n.isNullOrUndefined(e))return null;var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("timelines",function(){t.writeAttributeString("xmlns",i.XFileConstants.de),t.writeAttributeString("xmlns:mc",i.XFileConstants.ae),t.writeAttributeString("mc:Ignorable","x"),t.writeAttributeString("xmlns:x",i.XFileConstants.be)},function(){e.forEach(function(e){t.writeLeafElement("timeline",function(){t.writeAttributeString("name",d(u(e.name,"\n","_x000a_"))),t.writeAttributeString("cache",d(e.nameInFormula)),t.writeAttributeString("caption",d(e.captionName)),t.writeAttributeString("level",parseInt(e.level,10)-1),n.isNullOrUndefined(e.style)||n.isNullOrUndefined(e.style.name)||t.writeAttributeString("style",d(e.style.name)),n.isNullOrUndefined(e.selectionLevel)||t.writeAttributeString("selectionLevel",parseInt(e.selectionLevel,10)-1),n.isNullOrUndefined(e.scrollPosition)||t.writeAttributeString("scrollPosition",c(new Date(e.scrollPosition))),n.isNullOrUndefined(e.showHeader)||e.showHeader||t.writeAttributeString("showHeader","0"),n.isNullOrUndefined(e.showSelectionLabel)||e.showSelectionLabel||t.writeAttributeString("showSelectionLabel","0"),n.isNullOrUndefined(e.showTimeLevel)||e.showTimeLevel||t.writeAttributeString("showTimeLevel","0"),n.isNullOrUndefined(e.showHorizontalScrollbar)||e.showHorizontalScrollbar||t.writeAttributeString("showHorizontalScrollbar","0"),e.disableResizingAndMoving&&t.writeAttributeString("lockedPosition","1")})})}),t.getXmlString()}t.writeTimelines=b;function h(e){if(n.isNullOrUndefined(e))return null;var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("timelineCacheDefinition",function(){t.writeAttributeString("xmlns",i.XFileConstants.de),t.writeAttributeString("xmlns:x15",i.XFileConstants.de),t.writeAttributeString("xmlns:mc",i.XFileConstants.ae),t.writeAttributeString("name",u(d(e.name),"\n","_x000a_")),t.writeAttributeString("sourceName",u(d(e.sourceName),"\n","_x000a_"))},function(){if(t.writeElement("pivotTables",function(){},function(){e.pivotTables.forEach(function(e){t.writeLeafElement("pivotTable",function(){t.writeAttributeString("tabId",e.tabId),t.writeAttributeString("name",d(e.name))})})}),t.writeElement("state",function(){t.writeAttributeString("minimalRefreshVersion","6"),t.writeAttributeString("lastRefreshVersion","6"),t.writeAttributeString("pivotCacheId",e.pivotCacheId),n.isNullOrUndefined(e.filterType)||f.indexOf(e.filterType)!==-1||t.writeAttributeString("singleRangeFilterState","0"),n.isNullOrUndefined(e.filterType)||!a.captionCompareTypeExcel[1][e.filterType]?t.writeAttributeString("filterType","unknown"):t.writeAttributeString("filterType",a.captionCompareTypeExcel[1][e.filterType])},function(){!n.isNullOrUndefined(e.filterType)&&f.indexOf(e.filterType)!==-1&&e.selectionStartDate&&e.selectionEndDate&&t.writeLeafElement("selection",function(){t.writeAttributeString("startDate",c(new Date(e.selectionStartDate))),t.writeAttributeString("endDate",c(new Date(e.selectionEndDate)))}),t.writeLeafElement("bounds",function(){t.writeAttributeString("startDate",c(new Date(e.boundsStartDate))),t.writeAttributeString("endDate",c(new Date(e.boundsEndDate)))})}),!n.isNullOrUndefined(e.filterType)&&f.indexOf(e.filterType)===-1){var r=l.getPivotDateFilter(e.filterCondition,a.captionCompareTypeExcel[1][e.filterType]);if(!r)return;t.writeElement("timelinePivotFilter",function(){t.writeAttributeString("useWholeDay",e.filterCondition.isWholeDay?"1":"0"),t.writeAttributeString("fld","1"),t.writeAttributeString("id","1")},function(){t.writeElement("autoFilter",function(){t.writeAttributeString("ref","A1")},function(){t.writeElement("x:filterColumn",function(){t.writeAttributeString("xmlns:x",i.XFileConstants.be),t.writeAttributeString("colId","0")},function(){2===r.filterType?s.writePivotDynamicFilter(t,r):s.writeCustomFilters(t,r,s.PivotComparisonOperators)})})})}}),t.getXmlString()}t.writePivotTimelineCache=h},"./src/xlsx-io/writer/vmlDrawing-writer.ts":function(e,t,r){"use strict";var o,i,n;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/xlsx-io/writer/comment-writer.ts"),n=r("./src/xlsx-io/writer/control-writer.ts");function a(e,t,r){var a=new o.XmlWriter;return a.writeElement("xml",function(){a.writeAttributeString("xmlns:v","urn:schemas-microsoft-com:vml"),a.writeAttributeString("xmlns:o","urn:schemas-microsoft-com:office:office"),a.writeAttributeString("xmlns:x","urn:schemas-microsoft-com:office:excel")},function(){a.writeElement("o:shapelayout",function(){a.writeAttributeString("v:ext","edit")},function(){a.writeLeafElement("o:idmap",function(){a.writeAttributeString("v:ext","edit"),a.writeAttributeString("data","1")})});var o=1024*(e+1)+1;t&&t.length>0&&(i.writeCommentShapes(a,t,o),o+=t.length),r&&r.length>0&&n.writeControlShapes(a,r,o)}),a.getXmlString()}t.writeVmlDrawingForLegacyDrawing=a},"./src/xlsx-io/writer/workbook-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/xlsx-io/writer/slicer-writer.ts"),l=r("./src/datamodel/datamodel-writer.ts"),s=void 0;function c(e,t,r,a,l,s,c){var u=new o.XmlWriter;return u.writeDocument(),u.writeElement("workbook",function(){u.writeAttributeString("xmlns",i.XFileConstants.Hd),u.writeAttributeString("xmlns:r",i.XFileConstants.Ud)},function(){d(u,e),u.writeElement("sheets",void 0,function(){var r,o,i=function(r,o){var i=t[r];i&&u.writeLeafElement("sheet",function(){u.writeAttributeString("name",n.Util.oa(i.name)),u.writeAttributeString("sheetId",""+i.sheetId),e.tj(i.name)?u.writeAttributeString("state","hidden"):e.uj(i.name)&&u.writeAttributeString("state","veryHidden"),u.writeAttributeString("r:id",""+i.rID)})};for(r=0,o=t.length;r<o;r++)i(r,o)});var o=e.Ne.externalReference;o&&u.writeElement("externalReferences",void 0,function(){var e,t=function(e){if(Object.prototype.hasOwnProperty.call(o,e)){var t=o[e];u.writeLeafElement("externalReference",function(){u.writeAttributeString("r:id",t.option.id)})}};for(e in o)t(e)}),f(u,e,a),S(u,r,s,c),C(u,l),x(u,e,t)}),u.getXmlString()}t.writeWorkbook=c;function d(e,t){var r=t.sj();e.writeElement("bookViews",void 0,function(){e.writeLeafElement("workbookView",function(){r.showHorizontalScrollbar===!1&&e.writeAttributeString("showHorizontalScroll","0"),r.showVerticalScrollbar===!1&&e.writeAttributeString("showVerticalScroll","0"),r.tabStripVisible===!1&&e.writeAttributeString("showSheetTabs","0"),"number"==typeof r.tabStripRatio&&.6!==r.tabStripRatio&&e.writeAttributeString("tabRatio",""+1e3*r.tabStripRatio),"number"==typeof r.startSheetIndex&&r.startSheetIndex>0&&e.writeAttributeString("firstSheet",""+r.startSheetIndex),"number"==typeof r.activeSheetIndex&&r.activeSheetIndex>0&&e.writeAttributeString("activeTab",""+r.activeSheetIndex)})})}function u(e){return e.toUpperCase()===n.PRINT_AREA_UPPERCASE?n.BUILT_IN_PRINT_AREA:e}function f(e,t,r){var o,i,a=t.vj(),l=g(t);m(a,l),o=y(t),m(a,o),i=b(t),m(a,i),m(a,r),a.length>0&&e.writeElement("definedNames",s,function(){var t,r=function(t){var r=a[t];e.writeElement("definedName",function(){e.writeAttributeString("name",n.Util.oa(u(r.name))),r.comment&&e.writeAttributeString("comment",n.Util.oa(r.comment)),r.localSheetId>-1&&e.writeAttributeString("localSheetId",r.localSheetId),r.hidden===!0&&e.writeAttributeString("hidden","1")},function(){e.writeValue(n.addXLFNPrefix(r.formula).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"))})};for(t=0;t<a.length;t++)r(t)})}function b(e){var t,r,o,i,n,a,l=[],c=e.jj();for(t=0;t<c.length;t++)r=c[t],r&&(o=e.Nj(r),o&&(i=h(o.repeatRowStart,o.repeatRowEnd,s,s,r),n=h(s,s,o.repeatColumnStart,o.repeatColumnEnd,r),a=void 0,i&&n?a=n+","+i:i?a=i:n&&(a=n),a&&l.push({name:"_xlnm.Print_Titles",localSheetId:t,formula:a})));return l}function h(e,t,r,o,i){if(r===s&&o===s&&e===s&&t===s)return s;var a="";return r!==s&&(a+="$"+n.IndexHelper.T(r)),e!==s&&(a+="$"+(e+1)),a+=":",o!==s&&(a+="$"+n.IndexHelper.T(o)),t!==s&&(a+="$"+(t+1)),i?n.IndexHelper.V(i)+"!"+a:a}function p(e,t){for(var r=0;r<e.length;r++)if(e[r].name===t.name&&e[r].localSheetId===t.localSheetId)return!0;return!1}function m(e,t){for(var r=0;r<t.length;r++)p(e,t[r])||e.push(t[r])}function g(e){var t,r,o,i,n,a,l=[],s=e.jj();for(t=0;t<s.length;t++)if(r=s[t]){if(o=e.Dj(r),i=e.Ej(r,"pivot"),n=e.Ej(r,"timeline"),o)for(a=0;a<o.length;a++)l.push({name:o[a].nameInFormula,formula:"#N/A",localSheetId:-1});if(i)for(a=0;a<i.length;a++)l.push({name:i[a].slicerCacheName,formula:"#N/A",localSheetId:-1});if(n)for(a=0;a<n.length;a++)l.push({name:n[a].slicerCacheName,formula:"#N/A",localSheetId:-1})}return l}function y(e){var t,r,o,i,n,a,s=[],c=e.jj();for(t=0;t<c.length;t++)r=c[t],r&&(o=e.Oj(r),o&&(i=e.kj(r),o.range&&(n=l.getFilterRange(i,o.range),a=h(n.row,n.row+n.rowCount,n.col,n.col+n.colCount,r),a&&s.push({name:"_xlnm._FilterDatabase",localSheetId:t,formula:a}))));return s}function S(e,t,r,o){e.writeLeafElement("calcPr",function(){var i,a,l;e.writeAttributeString("calcId","0"),t&&e.writeAttributeString("refMode","R1C1"),i=n.isNullOrUndefined(r.iterate)||r.iterate?"1":"0",a=n.isNullOrUndefined(r.count)?"1000":r.count,l=n.isNullOrUndefined(r.delta)?"0.01":r.delta,e.writeAttributeString("iterate",i),e.writeAttributeString("iterateCount",a),e.writeAttributeString("iterateDelta",l),1===o&&e.writeAttributeString("calcMode","manual")})}function C(e,t){n.isEmptyObject(t)||e.writeElement("pivotCaches",function(){for(var r in t)t.hasOwnProperty(r)&&w(e,t[r])})}function w(e,t){n.isEmptyObject(t)||e.writeLeafElement("pivotCache",function(){e.writeAttributeString("cacheId",t.cacheId),e.writeAttributeString("r:id",t.rid)})}function x(e,t,r){var o,i=0,n=t.Ne.tableSlicerCaches;n&&n.length&&i++,o=t.Ne.slicerCaches,o&&o.length&&i++,i&&a.writeSlicerCacheInWorkbook(e,n,o)}},"./src/xlsx-io/writer/worksheet-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/xlsx-io/common/color-writer.ts"),l=r("./src/common/tuple.ts"),s=r("./src/xlsx-io/writer/sparkline-writer.ts"),c=r("./src/xlsx-io/writer/conditionalformat-writer.ts"),d=r("./src/xlsx-io/writer/slicer-writer.ts"),u=r("./src/xlsx-io/writer/autofilter-writer.ts"),f=r("./src/xlsx-io/writer/datavalidation-writer.ts"),b=r("./src/datamodel/excel-helper.ts"),h=r("./src/xlsx-io/writer/print-writer.ts"),p=r("./src/xlsx-io/writer/chart-writer.ts"),m=void 0,g=o.Util.sa,y=66316;function C(e,t,r,a,l,s,d,b,p){var m=new i.XmlWriter;return m.writeDocument(),m.writeElement("worksheet",function(){m.writeAttributeString("xmlns",n.XFileConstants.Hd),m.writeAttributeString("xmlns:r",n.XFileConstants.Ud),m.writeAttributeString("xmlns:mc",n.XFileConstants.Jd),d&&d.attributes&&d.attributes.forEach(function(e){m.writeAttributeString(e.key,e.value)}),m.writeAttributeString("xmlns:x14ac",n.XFileConstants.Nd),m.writeAttributeString("xmlns:xr",n.XFileConstants.Rd),m.writeAttributeString("xmlns:xr2",n.XFileConstants.Sd),m.writeAttributeString("xmlns:xr3",n.XFileConstants.Td),m.writeAttributeString("xr:uid",o.Ha()),m.writeAttributeString("mc:Ignorable",n.XFileConstants.Pd)},function(){var o,i,n;if(x(m,t,e),A(m,t,e),T(m,t,e),v(m,t,e),k(m,t,e,r,a),F(m,t,e,l,r,a,s),I(m,t,e),u.writeAutoFilterForSheet(m,t,e),L(m,t,e),c.writeConditionalFormating(m,t,e),f.writeDataValidations(m,t,e),P(m,t,e,b),h.writePrintOptions(m,t,e),h.writePageMargins(m,t,e),h.writePageSetup(m,t,e),h.writeHeadFooter(m,t,e),h.writeRowColumnBreaks(m,t,e),d)for(o=[{name:"drawing",value:d.drawingId},{name:"legacyDrawing",value:d.legacyDrawingId}],i=function(e){var t=o[e],r=t.value;r&&m.writeLeafElement(t.name,function(){m.writeAttributeString("r:id",r)})},n=0;n<2;n++)i(n);h.writeLegacyDrawingHF(m,e),W(m,p),e.fi(t)&&e.fi(t).length>0&&B(m,e.fi(t)),w(e,t)&&D(m,t,e)}),m.getXmlString()}t.writeWorksheet=C;function w(e,t){var r,o,i,n,a=e.Dj(t),l=e.Ej(t,"pivot"),s=e.Ej(t,"timeline");return!!(a&&a.length>0||l&&l.length>0||s&&s.length>0)||(r=e.zj(t),!!(r&&r.length>0)||(o=e.xg(t),i=o&&o.rules,!(!i||!c.needWriteConditionalFormatExtension(i,t,e.jj()))||(n=e.On,!!(n&&n.length>0))))}function x(e,t,r){var o=r.lj(t),i=o.colsSumRight,n=o.rowsSumBelow,l=r.mj(t),s=r.Mj(t,!0),c=s&&s.useSmartPrint;!l&&i&&n&&c!==!0||e.writeElement("sheetPr",function(){null!==l&&a.writeColor(e,"tabColor",l),i&&n||e.writeLeafElement("outlinePr",function(){i||e.writeAttributeString("summaryRight","0"),n||e.writeAttributeString("summaryBelow","0")}),c===!0&&e.writeLeafElement("pageSetUpPr",function(){e.writeAttributeString("fitToPage","1")})})}function A(e,t,r){var o=r.nj(t),i=o.columnCount,n=o.rowCount;i>0&&n>0?e.writeLeafElement("dimension",function(){e.writeAttributeString("ref","A1:"+r.Ki(i-1)+n)}):e.writeLeafElement("dimension",function(){e.writeAttributeString("ref","A1")})}function T(e,t,r){e.writeElement("sheetViews",m,function(){e.writeElement("sheetView",function(){var i,n,a,l,s,c,d,u,f,b,h,p,m=r.oj(t),g=m.gridlineColor;null!==g&&1===g.colorType()&&64!==g.value()&&(e.writeAttributeString("defaultGridColor","0"),e.writeAttributeString("colorId",""+g.value())),i=r.pj(t),n=i.frozenTopRow||0,a=i.frozenLeftCol||0,l=m.topLeftCell,s=i.frozenColCount,c=i.frozenRowCount,l&&void 0!==l.row&&void 0!==l.col&&(n||a?(d=""+r.Ki(a)+(n+1),
|
56
|
+
e.writeAttributeString("topLeftCell",""+d)):s||c?s&&!c?(d="A"+(l.row+1),e.writeAttributeString("topLeftCell",""+d)):!s&&c&&(d=""+r.Ki(l.col)+"1",e.writeAttributeString("topLeftCell",""+d)):(d=""+r.Ki(l.col)+(l.row+1),e.writeAttributeString("topLeftCell",""+d))),m.showGridLine||e.writeAttributeString("showGridLines","0"),m.showRowColHeaders||e.writeAttributeString("showRowColHeaders","0"),o.isNullOrUndefined(m.zoom)||(u=Math.round(100*m.zoom),100!==u&&e.writeAttributeString("zoomScale",""+u)),f=r.kj(t),f.showFormulas&&e.writeAttributeString("showFormulas","1"),f.showZeros===!1&&e.writeAttributeString("showZeros","0"),e.writeAttributeString("workbookViewId","0"),h=r.sj(),h&&(b=h.activeSheetIndex),p=f.index===b,(f.isSelected||p)&&e.writeAttributeString("tabSelected",1)},function(){var i,a,l,s,c,d,u,f=r.pj(t),b=f.frozenColCount,h=f.frozenRowCount,p=0,m=0,g=3,y="1",S="A",C=r.oj(t).topLeftCell;for((b>0||h>0)&&(b>0?(p=b,S=r.Ki(C.col)):p=0,h>0?(m=h,y=C.row+1+""):m=0,b>0&&0===h?g=1:0===b&&h>0?g=2:b>0&&h>0&&(g=0),e.writeLeafElement("pane",function(){var t,o=b-f.frozenLeftCol;o>0&&e.writeAttributeString("xSplit",""+o),t=h-f.frozenTopRow,t>0&&e.writeAttributeString("ySplit",""+t),S+y==="A1"?e.writeAttributeString("topLeftCell",""+r.Ki(p)+(m+1)):e.writeAttributeString("topLeftCell",""+S+y),e.writeAttributeString("activePane",n.PaneType[g]),e.writeAttributeString("state","frozen")})),i=[],a=new o.Range,l=0,s=1,c=-1,d=function(d){var u,f,p,m,g,y,S,C,w,x;if(i.length=0,u=d,r.$i(t,i,a,u)){for(s=i.length,l=0;l<s;l++)f=i[l],f.col!==-1&&f.colCount!==-1||(f=new o.Range(f.row,0,f.rowCount,n.ExcelConstants.vb)),f.row!==-1&&f.rowCount!==-1||(f=new o.Range(0,f.col,n.ExcelConstants.wb,f.colCount)),a.col>=f.col&&a.col<=f.col+f.colCount-1&&a.row>=f.row&&a.row<=f.row+f.rowCount-1&&(c=l);if(c<0&&s>0&&(a.row=i[0].row,a.col=i[0].col),p=""+r.Ki(a.col)+(a.row+1),m="",b>0&&h>0&&(1===u||2===u))m=p;else{for(l=0;l<s;l++)g=i[l],y=Math.min(n.ExcelConstants.wb,g.row+1),S=Math.min(g.col,n.ExcelConstants.vb),m+=""+r.Ki(S)+y,(g.colCount>1||g.rowCount>1)&&(C=Math.min(S+g.colCount-1,n.ExcelConstants.vb),w=Math.min(y+g.rowCount-1,n.ExcelConstants.wb),x=""+r.Ki(C)+w,m+=":"+x),m+=" ";m=m.trim()}o.StringEx.O(m)||3===u&&(b>0||h>0||3!==u)||e.writeLeafElement("selection",function(){3!==u&&e.writeAttributeString("pane",n.PaneType[u]),e.writeAttributeString("activeCell",p),0!==c&&0===u&&e.writeAttributeString("activeCellId",""+c),e.writeAttributeString("sqref",m)})}},u=3;u>=0;u--)d(u)})})}function v(e,t,r){var o=r.Xi(t),i=o.height,n=o.customHeight,a=r.Yi(t);e.writeLeafElement("sheetFormatPr",function(){var o,l,s;isNaN(a)||e.writeAttributeString("defaultColWidth",""+a),n&&e.writeAttributeString("customHeight","1"),e.writeAttributeString("defaultRowHeight",""+i),o=r.Wi(t),l=o.outlineLevelRow-1,s=o.outlineLevelColumn-1,l>0&&e.writeAttributeString("outlineLevelRow",""+l),s>0&&e.writeAttributeString("outlineLevelCol",""+s)})}function k(e,t,r,o,i){var a=r.Ti(t),l=r.Vi(t);0!==a.length&&e.writeElement("cols",m,function(){var t,r,s,c,d=function(r,s){var c,d,u,f=a[r],b=f.index;if(b>=n.ExcelConstants.vb)return t=r,"break";for(c=r+1,d=b;c<a.length&&(u=a[c],u.index===d+1&&u.index<n.ExcelConstants.vb&&u.formatId===f.formatId&&u.visible===f.visible&&u.outLineLevel===f.outLineLevel&&u.collapsed===f.collapsed&&Math.abs(u.width-f.width)<=1e-4);)d=u.index,r=c,c++;e.writeLeafElement("col",function(){if(e.writeAttributeString("min",""+(b+1)),e.writeAttributeString("max",""+(d+1)),f.formatId>=0){var t=o[f.formatId+i];t!==m?e.writeAttributeString("style",t):e.writeAttributeString("style","0")}isNaN(f.width)||f.width===m?e.writeAttributeString("width",""+l):e.writeAttributeString("width",""+f.width),f.visible===!1&&e.writeAttributeString("hidden","1"),f.collapsed&&e.writeAttributeString("collapsed","1"),!isNaN(f.width)&&Math.abs(f.width-l)>1e-4&&e.writeAttributeString("customWidth","1"),"number"==typeof f.outLineLevel&&0!==f.outLineLevel&&e.writeAttributeString("outlineLevel",""+f.outLineLevel)}),t=r};for(r=0,s=a.length;r<s&&(c=d(r,s),r=t,"break"!==c);r++);})}function F(e,t,r,o,i,a,s){var c,d,u,f,b,h,p,g,y,S={},C=r.Ni(t);if(C)for(c=0,d=C.length;c<d;c++)u=C[c],u&&u.index<n.ExcelConstants.wb&&(S[u.index]=new l.Tuple(u,[]));if(f=r.Mi(t))for(b in f)if(f.hasOwnProperty(b))for(h=f[b],c=0,p=h.length;c<p;c++)g=h[c],g&&(S[g.row]?S[g.row].item2.push(g):(S[g.row]=new l.Tuple(null,[]),S[g.row].item2.push(g)));y=r.Ne.sheets[t].sharedFormulas,e.writeElement("sheetData",m,function(){var r,n,l,c=-1;for(r in S)S.hasOwnProperty(r)&&(n=S[r],l=parseInt(r,10),R(e,t,l,c,n.item2,n.item1,o,i,a,s,y),c=l)})}function R(e,t,r,o,i,a,l,s,c,d,u){var f=""+(r+1),b=function(){if(!l.keepRowColIndex&&r===o+1||!a&&!i||e.writeAttributeString("r",f),a){if(a.formatId>=0){var t=s[a.formatId+c];t!==m&&(e.writeAttributeString("s",t),e.writeAttributeString("customFormat","1"))}a.customHeight&&(e.writeAttributeString("customHeight","1"),a.height!==m&&e.writeAttributeString("ht",""+a.height)),a.visible===!1&&e.writeAttributeString("hidden","1"),a.collapsed&&e.writeAttributeString("collapsed","1"),"number"==typeof a.outLineLevel&&0!==a.outLineLevel&&e.writeAttributeString("outlineLevel",""+a.outLineLevel)}};i&&i.length>0?e.writeElement("row",b,function(){var t,r,o,a=-1;for(t=0,r=i.length;t<r;t++)o=i[t],o.col>=n.ExcelConstants.vb||(E(e,o,f,a,l,s,c,d,u),a=o.col)}):e.writeLeafElement("row",b)}S=["#REF!","#NULL!","#DIV/0!","#VALUE!","#NAME?","#NUM!","#N/A","#SPILL!","#CALC!"];function E(e,t,r,i,n,a,l,s,c){var d=t.value,u=t.formula,f=t.cellType,b=t.richText,h=function(){var s,c,u,b;switch((n.xlsxStrictMode||t.col!==i+1)&&e.writeAttributeString("r",o.IndexHelper.T(t.col)+r),t.formatId===-1?e.writeAttributeString("s","0"):(s=t.formatId+l,c=a[s],c!==m&&e.writeAttributeString("s",c)),f){case 0:break;case 9:case 2:u="s";break;case 5:u="b";break;case 7:u="e"}t.formula&&(t.arrayFormulaRange?(b=t.arrayFormulaRange.isDynamicArray,b&&e.writeAttributeString("cm","1"),t.isSpillError&&(u="e",e.writeAttributeString("vm","1"))):o.isNullOrUndefined(d)||"#"!==(""+d).substring(0,1)||S.indexOf((""+d).toUpperCase())===-1?t.isSpillError&&(u="e",e.writeAttributeString("vm","2")):u="e"),(t.formula||t.qi)&&"s"===u&&(u="str"),o.isNullOrUndefined(u)||e.writeAttributeString("t",u)};function p(e){var t,r=s.Zn[e.value],o=s.$n[e.value];return o===m&&(o=s.$n[e.value]=[]),t=C(o,e),r===m||t===m?(r=s.Qn.length,s.Qn.push(e),s.Zn[e.value]=r,o.push({index:r,value:e})):r=t,s.Pn++,r}function C(e,t){for(var r=0,o=e.length;r<o;r++)if(g(e[r].value,t))return e[r].index}d!==m&&null!==d||!o.StringEx.L(u)?e.writeElement("c",h,function(){var r,i;o.StringEx.L(u)||(r=t.arrayFormulaRange,o.isNullOrUndefined(u.si)?r?t.row===r.row&&t.col===r.col&&e.writeElement("f",function(){e.writeAttributeString("t","array");var t=o.IndexHelper.T(r.col)+(r.row+1)+":"+o.IndexHelper.T(r.col+r.colCount-1)+(r.row+r.rowCount);!r.isInvalid&&r.rowCount||(t=t.substr(0,t.indexOf(":"))),e.writeAttributeString("ref",t)},function(){e.writeValue(o.Util.oa(o.addXLFNPrefix(u)))}):e.writeElement("f",m,function(){e.writeValue(o.Util.oa(o.addXLFNPrefix(u)))}):(i=c[u.si],i.baseRow===t.row&&i.baseColumn===t.col?e.writeElement("f",function(){e.writeAttributeString("t","shared"),e.writeAttributeString("si",u.si);var t=o.IndexHelper.T(i.baseColumn)+(i.baseRow+1)+":"+o.IndexHelper.T(i.lastColumn)+(i.lastRow+1);e.writeAttributeString("ref",t)},function(){e.writeValue(o.Util.oa(o.addXLFNPrefix(i.formula)))}):e.writeLeafElement("f",function(){e.writeAttributeString("t","shared"),e.writeAttributeString("si",u.si)}))),d!==m&&null!==d&&e.writeElement("v",m,function(){var r,i;switch("string"==typeof d&&"/OADate"===d.substring(0,7)&&(f=6),r=d,f){case 9:case 2:r=""+p({value:d,richText:b});break;case 7:r=d;break;case 5:i="1",("boolean"==typeof d&&!d||"FALSE"===(""+d).toUpperCase())&&(i="0"),r=i;break;case 6:default:r=o.Util.oa(""+d)}o.isNullOrUndefined(t.formula)&&!t.qi||("boolean"==typeof d&&(d=d?1:0),r=""+d,r&&r.length>y&&(r=""),r=o.Util.oa(r)),"#SPILL!"!==r&&"#CALC!"!==r||7!==f||(r="#VALUE!"),e.writeValue(r)})}):e.writeLeafElement("c",h)}function I(e,t,r){var o,i=r.qj(t),n=r.rj(t,i);(i||Object.keys(n).length>0)&&e.writeLeafElement("sheetProtection",function(){i&&e.writeAttributeString("sheet","1");for(var t in n)n.hasOwnProperty(t)&&(o=n[t],"algorithmName"===t||"hashValue"===t||"saltValue"===t||"spinCount"===t||"password"===t?e.writeAttributeString(t,o):b.excelSupportProtectionOptions[t]&&(o=n[t]?"0":"1",e.writeAttributeString(t,o)))})}function L(e,t,r){var i=r.aj(t);i&&i.length>0&&e.writeElement("mergeCells",function(){e.writeAttributeString("count",""+i.length)},function(){var t,r,n=function(t,r){var n=i[t];e.writeLeafElement("mergeCell",function(){e.writeAttributeString("ref",o.IndexHelper.T(n.col)+(n.row+1)+":"+o.IndexHelper.T(n.col+n.colCount-1)+(n.row+n.rowCount))})};for(t=0,r=i.length;t<r;t++)n(t,r)})}function D(e,t,r){e.writeElement("extLst",m,function(){c.writeExtensionConditionalFormats(e,t,r),s.writeSparkline(e,t,r),d.writeSlicersInWorkSheet(e,t,r),f.writeExtensionDataValidations(e,r)})}function B(e,t){e.writeElement("tableParts",function(){e.writeAttributeString("count",""+t.length)},function(){t.forEach(function(t){e.writeLeafElement("tablePart",function(){e.writeAttributeString("r:id",t.rid)})})})}function P(e,t,r,o){var i=r.Hh[t];i&&i.length>0&&e.writeElement("hyperlinks",function(){var t,r,a=function(t,r){var a=i[t];e.writeLeafElement("hyperlink",function(){var t,r;e.writeAttributeString("ref",a.ref),a.location?e.writeAttributeString("location",a.location):(t="",r=new n.XFile(t,n.RelationshipConstants.gb),r.target=a.url,r.targetMode="External",a.rid=o.ze(r),e.writeAttributeString("r:id",a.rid)),a.display&&e.writeAttributeString("display",a.display),a.tooltip&&e.writeAttributeString("tooltip",a.tooltip),a["xr:uid"]&&e.writeAttributeString("xr:uid",a["xr:uid"])})};for(t=0,r=i.length;t<r;t++)a(t,r)})}function W(e,t){!t||t.length<=0||N(e,function(){_(e,t)})}function _(e,t){e.writeElement("controls",m,function(){t.forEach(function(t){M(e,t)})})}function N(e,t){e.writeElement("mc:AlternateContent",function(){e.writeAttributeString("xmlns:mc","http://schemas.openxmlformats.org/markup-compatibility/2006")},function(){e.writeElement("mc:Choice",function(){e.writeAttributeString("Requires","x14")},t)})}function M(e,t){N(e,function(){O(e,t)})}function O(e,t){var r=t.sp.nvSpPr.cNvPr,o=t.sp.control.rid,i=r.id,n=r.name;e.writeElement("control",function(){e.writeAttributeString("shapeId",i),e.writeAttributeString("r:id",o),e.writeAttributeString("name",n)},function(){H(e,t)})}function H(e,t){var r=t.sp.control.disabled;e.writeElement("controlPr",function(){e.writeAttributeString("defaultSize",0),e.writeAttributeString("autoPict",0),r&&e.writeAttributeString("disabled",1)},function(){G(e,t)})}function G(e,t){var r=t.sp.control.anchorInfo,o=r.startPoint,i=r.endPoint;e.writeElement("anchor",function(){e.writeAttributeString("moveWithCells",1),e.writeAttributeString("sizeWithCells",1)},function(){p.DrawingWriter.WriteCT_Position(e,m,"from",o),p.DrawingWriter.WriteCT_Position(e,m,"to",i)})}},"./src/xlsx-io/writer/xlsx-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S,C,w,x,A,T,v,k,F,R,E,I,L,D,B;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/excel-types.ts"),i=r("./src/common/common.ts"),n=r("./src/xml-io/xml-writer.ts"),a=r("./src/datamodel/datamodel-writer.ts"),l=r("./src/xlsx-io/writer/style-writer.ts"),s=r("./src/xlsx-io/writer/docPropsCoreWriter.ts"),c=r("./src/xlsx-io/writer/docPropsAppWriter.ts"),d=r("./src/xlsx-io/writer/docPropsCustomWriter.ts"),u=r("./src/xlsx-io/writer/worksheet-writer.ts"),f=r("./src/xlsx-io/writer/sharedString-writer.ts"),b=r("./src/xlsx-io/writer/theme-writer.ts"),h=r("./src/xlsx-io/writer/workbook-writer.ts"),p=r("./src/xlsx-io/writer/comment-writer.ts"),m=r("./src/xlsx-io/writer/drawing-writer.ts"),g=r("./src/xlsx-io/writer/table-writer.ts"),y=r("./src/xlsx-io/writer/slicer-writer.ts"),S=r("./src/xlsx-io/writer/print-writer.ts"),C=r("./src/xlsx-io/writer/metadata-writer.ts"),w=r("./src/xlsx-io/writer/chart-writer.ts"),x=r("./src/datamodel/excel-helper.ts"),A=r("./src/datamodel/excel-style.ts"),T=r("./src/xlsx-io/writer/pivot-writer.ts"),v=r("./src/xlsx-io/writer/ctrlprops-writer.ts"),k=r("./src/xlsx-io/writer/vmlDrawing-writer.ts"),F=r("./src/xlsx-io/writer/externalLink-writer.ts"),R=r("./src/xlsx-io/writer/timeline-writer.ts"),E="../charts/",I="../drawings/",L=void 0,D=r("./src/lib/jszip.min.js");function P(e,t,r){var i,n,a,l=e.imageType||"jpg";return"svg+xml"===l&&(l="svg"),i=o.XFileConstants.ld+t+"."+l,n=new o.XFile(o.XFileConstants.Oc+"/"+i,o.RelationshipConstants.hb),n.target="../media/"+i,a=r.ze(n),e.rid=a,n}function W(e,t,r){return{AlternateContent:"http://schemas.openxmlformats.org/markup-compatibility/2006",Choice:{cx:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",Requires:"cx1",GraphicalObjectFrame:{nvGraphicFramePr:{cNvPr:{id:1,name:e,descr:r||""}},graphic:{graphicData:{chart:{id:t}}}}}}}B=function(){function e(e,t){this._n={},this.ao={};var r=this;r.Xn=0,r.bo={},r.un=[],r.co=1===e.referenceStyle,r.do=e.calculationMode,r.eo={iterate:e.iterativeCalculation,count:e.iterativeCalculationMaximumIterations,delta:e.iterativeCalculationMaximumChange},r.Bg={},r.fo=D(),r.ho=0,r.io=0,r.jo=0,r.ko=0,r.lo=0,r.mo=0,r.no=0,r.oo=0,r.po=0,r.qo=0,r.ro=new a.WriterDataModel(e),r.ro.onCompleted=function(){t.call(r)},r.ro.Ph(),r.ro&&r.ro.Xh()}return e.prototype.Gk=function(){var e,t,r,i=this,n=new o.XFile("",""),a=new o.XFile(o.XFileConstants.zd,o.RelationshipConstants.Na);n.ze(a),i.so(n),e={Qn:[],Zn:{},Pn:0,$n:{}},t=i.uo(a),r=[],i.vo(i.ro.Ne.pivotCaches,a),i.wo(i.ro.Ne.slicerCaches,a),i.xo(a,t,e,r),i.yo(i.ro,i.ro.Ne.tableSlicerCaches,a),i.zo(a,e),i.Ao(a),i.Bo(a),i.Co(a),i.Do(r),i.Eo(n),i.Fo(n,i.ho>0),i.wn(),i.fo.generateAsync({type:i.Bg.useArrayBuffer?"arraybuffer":"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",compression:"DEFLATE"}).then(function(e){i.onZip(e)}).catch(function(){i.onError()})},e.prototype.so=function(e){var t,r,n,a=this,l=a.ro.Ne;i.isNullOrUndefined(l.docProps)||(l.docProps.docPropsCore&&(t=new o.XFile(o.XFileConstants.Ad,o.RelationshipConstants.Ka),e.ze(t),a.Go()),l.docProps.docPropsApp&&(r=new o.XFile(o.XFileConstants.Bd,o.RelationshipConstants.La),e.ze(r),a.Ho()),l.docProps.docPropsCustom&&(n=new o.XFile(o.XFileConstants.Cd,o.RelationshipConstants.Ma),e.ze(n),a.Io()))},e.prototype.Eo=function(e){var t,r,a,l,s,c,d,u,f,b;if(!i.isNullOrUndefined(e)&&!i.isNullOrUndefined(e.relationFiles)&&0!==e.relationFiles.count){t=i.Util.ra(e.fileName),r=t.dir,a=t.fileName,l=this,s={};for(c in e.relationFiles)e.relationFiles.hasOwnProperty(c)&&(d=e.relationFiles[c],d&&"count"!==c&&(u=[d.target||d.fileName.replace(r+"/",""),d.fileType],d.targetMode&&u.push(d.targetMode),s[c]=u,this.Eo(d)));f=new n.XmlWriter,f.writeDocument(),f.writeElement("Relationships",function(){f.writeAttributeString("xmlns",o.XFileConstants.Wd)},function(){var e,t=function(e){if(s.hasOwnProperty(e)){var t=s[e];t&&t.length>=2&&f.writeLeafElement("Relationship",function(){f.writeAttributeString("Id",e),f.writeAttributeString("Type",t[1]),f.writeAttributeString("Target",t[0]),t[2]&&f.writeAttributeString("TargetMode",t[2])})}};for(e in s)t(e)}),b=r+"/"+o.XFileConstants.Bb+"/"+a+"."+o.XFileConstants.Gb,l.fo.file(b.substring(1),f.getXmlString())}},e.prototype.Fo=function(e,t){var r=this.ro.Li(e,t),i=new n.XmlWriter;i.writeDocument(),i.writeElement("Types",function(){i.writeAttributeString("xmlns",o.XFileConstants.Vd)},function(){var e,t,n=function(e,t){var n=r[e];n instanceof o.DefaultContentType?i.writeLeafElement("Default",function(){i.writeAttributeString("Extension",n.extension),i.writeAttributeString("ContentType",n.contentType)}):n instanceof o.OverrideContentType&&i.writeLeafElement("Override",function(){i.writeAttributeString("PartName",n.partName),i.writeAttributeString("ContentType",n.contentType)})};for(e=0,t=r.length;e<t;e++)n(e,t)}),this.fo.file(o.XFileConstants.Db,i.getXmlString())},e.prototype.Go=function(){var e=this,t=s.writeDocPropsCore(e.ro);this.fo.file(o.XFileConstants.Ad.substring(1),t)},e.prototype.Ho=function(){var e=this,t=c.writeDocPropsApp(e.ro);this.fo.file(o.XFileConstants.Bd.substring(1),t)},e.prototype.Io=function(){var e=this,t=d.writeDocPropsCustom(e.ro);this.fo.file(o.XFileConstants.Cd.substring(1),t)},e.prototype.uo=function(e){var t,r=this,i=new o.XFile(o.XFileConstants.Dd,o.RelationshipConstants.Pa);return e.ze(i),t=l.writeStyle(r.ro,r.bo),r.fo.file(o.XFileConstants.Dd.substring(1),t.xml),t.styleOffset},e.prototype.xo=function(e,t,r,i){var n,a,l,s,c,d,u,f,b,h,p=this.ro,m=p.jj(),g=m.length,y=0,S=p.fi();for(S&&S.length>0&&S.forEach(function(e){y++,e.id=y}),n={},a={},l=0;l<g;l++)s=m[l],s&&(c=new o.SheetInfo,c.name=s,c.sheetId=l+1,c.index=l,d=new o.XFile(o.XFileConstants.Rc+"/"+o.XFileConstants.$c+c.sheetId+"."+o.XFileConstants.nc,o.RelationshipConstants.Ra),c.rID=e.ze(d),this.un.push(c),u={attributes:[]},f=p.wj(s),b=p.Ij(s),this.Jo(d,l,u,f,b),this.Ko(p,d,f),this.Lo(p,d,b),h=this.Mo(d,u,b.withDrawingObjects),this.No(h,b,i),this.Oo(p,h,b),this.Po(p,d,s,a),this.Qo(p,d,s,e,n),this.Ro(p,d,s,e),this.So(p,d,s),this.To(c,t,r,u,d,b.controlShapes))},e.prototype.zo=function(e,t){var r,i,n=this;t.Qn.length<=0||(r=new o.XFile(o.XFileConstants.wd,o.RelationshipConstants.Sa),e.ze(r),i=f.writeSharedString(t),n.fo.file(o.XFileConstants.wd.substring(1),i))},e.prototype.Ao=function(e){var t,r=new o.XFile(o.XFileConstants.xd,o.RelationshipConstants.Ua);e.ze(r),t=b.writeTheme(this.ro),this.fo.file(o.XFileConstants.Ed.substring(1),t)},e.prototype.Bo=function(e){var t,r,i,n,a,l,s,c,d=this.ro.Ne.externalReference;if(d)for(t in d)Object.prototype.hasOwnProperty.call(d,t)&&(r=d[t],i=o.XFileConstants.Vc+"/"+o.XFileConstants._c+t+"."+o.XFileConstants.nc,n=new o.XFile(i,o.RelationshipConstants.Za),r.option.id=e.ze(n),a=new o.XFile("",o.RelationshipConstants.rb),a.target=r.option.name,l=r.option.path,l&&l.length>0&&(s=l.substr(-1),"/"===s||"\\"===s?a.target=l+a.target:a.target=l+"/"+a.target),a.target=a.target.replace(/\%/g,"%25").replace(/\ /g,"%20").replace(/\#/g,"%23").replace(/\[/g,"%5b").replace(/\]/g,"%5d").replace(/\^/g,"%5e").replace(/\`/g,"%60").replace(/\{/g,"%7b").replace(/\}/g,"%7d").replace(/\&/g,"&").replace(/\"/g,"""),a.targetMode="External",n.ze(a),c=F.writeExternalLink(this.ro,r),this.fo.file(i.substring(1),c))},e.prototype.Do=function(e){var t=this,r=h.writeWorkbook(t.ro,t.un,t.co,e,t.Uo,t.eo,t.do);t.fo.file(o.XFileConstants.zd.substring(1),r)},e.prototype.vo=function(e,t){var r,i,n,a,l,s,c,d;if(e){r=1,i=1,this.Uo={};for(n in e)e.hasOwnProperty(n)&&(a=new o.XFile(o.XFileConstants.Yc+"/"+o.XFileConstants.td+r+"."+o.XFileConstants.nc,o.RelationshipConstants.Wa),l=new o.XFile(o.XFileConstants.Yc+"/"+o.XFileConstants.ud+i+"."+o.XFileConstants.nc,o.RelationshipConstants.Xa),s=t.ze(a),this.Uo[n]={file:a,cacheId:n,rid:s},c=T.writePivotCacheDefinition(e[n]),this.fo.file((o.XFileConstants.Yc+"/"+o.XFileConstants.td+r+"."+o.XFileConstants.nc).substring(1),c),a.ze(l),d=T.writePivotCacheRecords(e[n].pivotCacheRecords),this.fo.file((o.XFileConstants.Yc+"/"+o.XFileConstants.ud+i+"."+o.XFileConstants.nc).substring(1),d),r++,i++)}},e.prototype.To=function(e,t,r,i,n,a){var l=this,s=u.writeWorksheet(l.ro,e.name,l.bo,t,l.Bg,r,i,n,a);this.fo.file(o.XFileConstants.yd.substring(1)+"/sheet"+e.sheetId+"."+o.XFileConstants.nc,s)},e.prototype.Ko=function(e,t,r){var i,n,a;r&&r.length>0&&(this.io++,i=o.XFileConstants.ad+this.io+"."+o.XFileConstants.nc,n=new o.XFile(o.XFileConstants.Cb+"/"+i,o.RelationshipConstants._a),n.target="../"+i,t.ze(n),a=p.writeComments(e,r),this.fo.file(n.fileName.substring(1),a))},e.prototype.Jo=function(e,t,r,i,n){var a,l,s,c,d=n.controlShapes,u=i&&i.length>0,f=d&&d.length>0;(u||f)&&(this.ho++,a=o.XFileConstants.Kc+this.ho+"."+o.XFileConstants.oc,l=new o.XFile(o.XFileConstants.Mc+"/"+a,o.RelationshipConstants.ab),l.target=I+a,s=e.ze(l),r.legacyDrawingId=s,r.attributes.push({key:"xmlns:xdr",value:o.XFileConstants.Kd}),f&&r.attributes.push({key:"xmlns:x14",value:"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.Vo(l,d),c=k.writeVmlDrawingForLegacyDrawing(t,i,d),this.fo.file(l.fileName.substring(1),c))},e.prototype.Vo=function(e,t){var r=this;t.forEach(function(t){var o,i,n=t.sp.control.style,a=n&&n.fill,l=a&&a.src;l&&(o={},x.getPictureInfo(l,o),r.ko++,i=P(o,r.ko,e),r.fo.file(i.fileName.substring(1),o.base64Image,{base64:!0}),e.relationFiles[o.rid]=i,a.rid=o.rid)})},e.prototype.So=function(e,t,r){var i,n,a,l,s,c=e.xj(r);if(c&&c.length>0){this.Wo||(this.Wo=1);for(i in c)c.hasOwnProperty(i)&&(n=o.XFileConstants.vd+this.Wo+"."+o.XFileConstants.nc,a=new o.XFile(o.XFileConstants.Zc+"/"+n,o.RelationshipConstants.Ya),a.target="../pivotTables/"+n,t.ze(a),l=this.Uo&&this.Uo[c[i].cacheId]&&this.Uo[c[i].cacheId].file,l&&a.ze(l),s=T.writePivotTable(e,c[i]),this.fo.file((o.XFileConstants.Zc+"/"+n).substring(1),s),this.Wo++)}},e.prototype.No=function(e,t,r){var o,i=this,n=t.charts;n&&n.forEach(function(t){i.Xo(t,e,r)}),o=t.shapes,o&&o.forEach(function(t){t.graphicFrame&&t.graphicFrame.graphic.graphicData.chart&&(t.chartSpace=t.graphicFrame.graphic.graphicData.chart.chartSpace,delete t.chartSpace.userShapes,i.Xo(t,e,r),t.graphicFrame.graphic.graphicData.chart.id=t.chartId)})},e.prototype.Xo=function(e,t,r){var a,l,s,c,d,u,f,b,h,p,m,g,y=this,S=i.Util.za(e),C=S&&S.layoutId,x=i.Util.Aa(C),A=x?o.RelationshipConstants.mb:o.RelationshipConstants.lb,T=x?o.XFileConstants.dd:o.XFileConstants.bd;y.qo++,a=T+y.qo+"."+o.XFileConstants.nc,l=o.XFileConstants.ed+y.qo+"."+o.XFileConstants.nc,s=o.XFileConstants.hd+y.qo+"."+o.XFileConstants.nc,c=new o.XFile(o.XFileConstants.Lc+"/"+a,A),d=new o.XFile(o.XFileConstants.Lc+"/"+l,o.RelationshipConstants.qb),u=new o.XFile(o.XFileConstants.Lc+"/"+s,o.RelationshipConstants.pb),c.target=E+a,e.chartId=t.ze(c),f=e.graphicFrame.nvGraphicFramePr.cNvPr,e.AlternateContent=W(f.name,e.chartId,f.descr),b=e.chartSpace,b&&(y.Yo(b,e,c),y.Zo(b,c),h=new n.XmlWriter,h.writeDocument(),x?(p=void 0,p=y.ro&&y.ro.Ne&&y.ro.Ne.names?y.ro.Ne.names:[],w.DrawingWriter.chart2016Write.WriteCT_ChartSpace(h,"cx","chartSpace",b,p,r)):w.DrawingWriter.WriteCT_ChartSpace(h,"c","chartSpace",b),y.fo.file(c.fileName.substring(1),h.getXmlString()),x&&(d.target=E+l,i.isNullOrUndefined(e.chartSpace.style)&&(e.chartSpace.style=JSON.parse('{"attribute":{"cs":"http://schemas.microsoft.com/office/drawing/2012/chartStyle","a":"http://schemas.openxmlformats.org/drawingml/2006/main","id":"381"},"axisTitle":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":12}},"categoryAxis":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}},"defRPr":{"sz":12}},"chartArea":{"attribute":{"mods":"allowNoFillOverride allowNoLineOverride"},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":0}},"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}},"defRPr":{"sz":13.33}},"dataLabel":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":14}}},"idx":1},"defRPr":{"sz":12}},"dataLabelCallout":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":13,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":14}},"ln":{"solidFill":{"schemeClr":{"val":13,"lumMod":[25000],"lumOff":[75000]}}}},"defRPr":{"sz":12},"bodyPr":{"rot":0,"spcFirstLastPara":true,"vertOverflow":2,"horzOverflow":1,"vert":0,"wrap":1,"lIns":36576,"tIns":18288,"rIns":36576,"bIns":18288,"anchor":1,"anchorCtr":true,"spAutoFit":true}},"dataPoint":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":12}},"ln":{"w":2,"solidFill":{"schemeClr":{"val":14}}}}},"dataPoint3D":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":12}}}},"dataPointLine":{"attribute":{},"lnRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":3,"cap":0,"solidFill":{"schemeClr":{"val":12}},"round":true}}},"dataPointMarker":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":12}},"ln":{"w":1,"solidFill":{"schemeClr":{"val":14}}}}},"dataPointMarkerLayout":{"attribute":{"symbol":"circle","size":"5"}},"dataPointWireframe":{"attribute":{},"lnRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":3,"cap":0,"solidFill":{"schemeClr":{"val":12}},"round":true}}},"dataTable":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"spPr":{"ln":{"w":1,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}}}},"defRPr":{"sz":12}},"downBar":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":13}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":13,"lumMod":[65000],"lumOff":[35000]}},"ln":{"w":1,"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}}}},"dropLine":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[35000],"lumOff":[65000]}},"round":true}}},"errorBar":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}},"round":true}}},"floor":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1}},"gridlineMajor":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}}},"gridlineMinor":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}}},"hiLoLine":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[75000],"lumOff":[25000]}},"round":true}}},"leaderLine":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[35000],"lumOff":[65000]}},"round":true}}},"legend":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":12}},"plotArea":{"attribute":{"mods":"allowNoFillOverride allowNoLineOverride"},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1}},"plotArea3D":{"attribute":{"mods":"allowNoFillOverride allowNoLineOverride"},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1}},"seriesAxis":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}},"defRPr":{"sz":12}},"seriesLine":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"solidFill":{"srgbClr":{"val":[217,217,217]}},"round":true}}},"title":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":18.67}},"trendline":{"attribute":{},"lnRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":2,"cap":0,"solidFill":{"schemeClr":{"val":12}},"prstDash":7}}},"trendlineLabel":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":12}},"upBar":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":13}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":14}},"ln":{"w":1,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}}}}},"valueAxis":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":12}},"wall":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1}}}')),
|
57
57
|
e.chartSpace.style.id=c.ze(d),u.target=E+s,i.isNullOrUndefined(e.chartSpace.colors)&&(e.chartSpace.colors=JSON.parse('{"schemeClr":[{"val":4},{"val":5},{"val":6},{"val":7},{"val":8},{"val":9}],"variation":[{},{"lumMod":60000},{"lumMod":80000,"lumOff":20000},{"lumMod":80000},{"lumMod":60000,"lumOff":40000},{"lumMod":50000},{"lumMod":70000,"lumOff":30000},{"lumMod":70000},{"lumMod":50000,"lumOff":50000}],"attribute":{"cs":"http://schemas.microsoft.com/office/drawing/2012/chartStyle","a":"http://schemas.openxmlformats.org/drawingml/2006/main","meth":"cycle","id":"10"}}')),e.chartSpace.colors.id=c.ze(u),m=new n.XmlWriter,w.DrawingWriter.chart2016Write.WriteCT_ChartStyle(m,"cs","chartStyle",null,b.style),y.fo.file(d.fileName.substring(1),m.getXmlString()),g=new n.XmlWriter,w.DrawingWriter.chart2016Write.WriteCT_ChartColors(g,"cs","colorStyle",null,b.colors),y.fo.file(u.fileName.substring(1),g.getXmlString())))},e.prototype.Yo=function(e,t,r){var i,n,a,l=this,s=e.userShapes,c=s&&s.relSizeAnchor;c&&c.length>0&&(l.jo++,i=o.XFileConstants.jd+l.jo+"."+o.XFileConstants.nc,n=new o.XFile(o.XFileConstants.Mc+"/"+i,o.RelationshipConstants.ob),n.target=I+i,t.drawingFile=n,a=r.ze(n),e.userShapes.id=a,c.forEach(function(e){"1"===e.typeName?l.$o(e,n):"2"===e.typeName&&l._o(e,n)}))},e.prototype.$o=function(e,t){var r,o,i,n=e.src;n&&(r=this,r.ko++,o={},x.getPictureInfo(n,o),i=P(o,r.ko,t),r.fo.file(i.fileName.substring(1),o.base64Image,{base64:!0}),e.pic.blipFill={blip:{embed:o.rid}})},e.prototype.ap=function(e,t){var r,o,i,n,a=this;!e.src&&e.size&&(r=a.bp(e.size.width,e.size.height),r=r.replace("png","emf"),e.src=r),o=e.src,o&&(a.ko++,i={},x.getPictureInfo(o,i),n=P(i,a.ko,t),a.fo.file(n.fileName.substring(1),i.base64Image,{base64:!0}),e.blipFill={blip:{embed:i.rid}})},e.prototype.bp=function(e,t){var r=document.createElement("canvas");return r.width=e,r.height=t,r.toDataURL("image/png")},e.prototype._o=function(e,t){var r,a,l,s,c,d,u,f,b,h=this;h.qo++,r=o.XFileConstants.bd+h.qo+"."+o.XFileConstants.nc,a=new o.XFile(o.XFileConstants.Lc+"/"+r,o.RelationshipConstants.lb),a.target=E+r,l=t.ze(a),s=e.chartSpace,c=i.Util.za(s),d=c&&c.layoutId,u=i.Util.Aa(d),s&&(e.graphicFrame.graphic={graphicData:{chart:{id:l,typeName:"chartSpace"}}},f=new n.XmlWriter,f.writeDocument(),u?(b=void 0,b=h.ro&&h.ro.Ne&&h.ro.Ne.names?h.ro.Ne.names:[],w.DrawingWriter.chart2016Write.WriteCT_ChartSpace(f,"cx","chartSpace",s,b)):w.DrawingWriter.WriteCT_ChartSpace(f,"c","chartSpace",s),h.fo.file(a.fileName.substring(1),f.getXmlString()))},e.prototype.Zo=function(e,t){var r=this,o=e.chart.plotArea;o&&o.chartGroups&&o.chartGroups.forEach(function(e){e&&e.ser&&e.ser.forEach(function(e){e.spPr&&r.cp(t,e.spPr),e.dLbls&&e.dLbls.spPr&&r.cp(t,e.dLbls.spPr)})}),o.spPr&&r.cp(t,o.spPr),e.spPr&&r.cp(t,e.spPr)},e.prototype.dp=function(e,t,r){var o=this;e&&e.forEach(function(e){e.sp||e.cxnSp||e.grpSp?e.sp&&e.sp.spPr?o.cp(t,e.sp.spPr):e.grpSp&&(e.grpSp.sp&&o.ep(e.grpSp.sp,t,r),e.grpSp.grpSpPr&&o.cp(t,e.grpSp.grpSpPr)):e.pic&&(e.pic.cameraTool?(o.fp(e.pic,t,r),r++):(o.cp(t,e.pic),o.cp(t,e.pic.spPr)))})},e.prototype.ep=function(e,t,r){var o=this;e.forEach(function(e){e.spPr&&(i.isNullOrUndefined(e.cellRange)?o.cp(t,e.spPr):(o.fp(e,t,r),r++)),e.blipFill&&o.cp(t,e),3===e.shapeType&&o.ep(e.sp,t,r)})},e.prototype.Lo=function(e,t,r){var i=this,n=r.controlShapes;n.forEach(function(e){var r,n,a,l;i.lo++,r=o.XFileConstants.md+i.lo+".xml",n=new o.XFile(o.XFileConstants.Pc+"/"+r,o.RelationshipConstants.bb),a=t.ze(n),e.sp.control.rid=a,l=v.writeCtrlProps(e),i.fo.file(n.fileName.substring(1),l)})},e.prototype.fp=function(e,t,r){var o=this;e&&(o.ap(e,t),e.blipFill.srcRect={},e.blipFill.stretch={},e.blipFill.stretch.fillRect={},e.spid=r,e.nvPicPr&&e.nvPicPr.cNvPicPr&&e.nvPicPr.cNvPicPr.extLst&&e.nvPicPr.cNvPicPr.extLst.ext&&e.nvPicPr.cNvPicPr.extLst.ext[0]&&e.nvPicPr.cNvPicPr.extLst.ext[0].cameraTool&&(e.nvPicPr.cNvPicPr.extLst.ext[0].cameraTool.spid=e.spid))},e.prototype.cp=function(e,t){var r,o,i,n,a,l,s,c=t&&t.blipFill&&t.blipFill.blip&&t.blipFill.blip.blipBlob&&t.blipFill.blip.blipBlob.blob;if(c){for(r=this,o={},x.getPictureInfo(c,o),i=Object.keys(this.ao),n=0;n<i.length;n++)if(a=i[n],this.ao[a].base64Image===o.base64Image)return l=e.ze(this._n[a]),void(t.blipFill.blip.embed=l);r.ko++,s=P(o,r.ko,e),r.fo.file(s.fileName.substring(1),o.base64Image,{base64:!0}),this.ao[s.fileName]=o,this._n[s.fileName]=s,t.blipFill.blip.embed=o.rid}},e.prototype.Mo=function(e,t,r){var i,n,a;if(r)return this.jo++,i=o.XFileConstants.jd+this.jo+"."+o.XFileConstants.nc,n=new o.XFile(o.XFileConstants.Mc+"/"+i,o.RelationshipConstants.eb),n.target=I+i,a=e.ze(n),t.drawingId=a,n},e.prototype.Oo=function(e,t,r){var o,i,n=this,a=n.fo,l=r.pictures;l&&l.length>0&&l.forEach(function(e){n.ko++;var r=P(e,n.ko,t);a.file(r.fileName.substring(1),e.base64Image,{base64:!0})}),r.withDrawingObjects&&(o=25,n.dp(r.shapes,t,o),i=m.writeDrawing(e,r,t),a.file(t.fileName.substring(1),i),n.gp(r.charts))},e.prototype.gp=function(e){if(e&&e.length>0){var t=this.fo;e.forEach(function(e){var r,o=e.chartSpace,i=o&&o.userShapes,a=i&&i.relSizeAnchor;a&&a.length>0&&(r=new n.XmlWriter,r.writeDocument(!1),w.DrawingWriter.WriteCT_ChartDrawing(r,"","userShapes",i),t.file(e.drawingFile.fileName.substring(1),r.getXmlString()))})}},e.prototype.Po=function(e,t,r,i){var n=this,a=e.fi(r);a&&a.length>0&&a.forEach(function(a){var l,s=o.XFileConstants.od+a.id+"."+o.XFileConstants.nc,c=new o.XFile(o.XFileConstants.Sc+"/"+s,o.RelationshipConstants.$a);c.target="../tables/"+s,l=t.ze(c),a.rid=l,n.hp(a,c.fileName,e,r,i)})},e.prototype.hp=function(e,t,r,o,i){var n=this,a=n.fo,l=g.writeTable(e,r,o,i);a.file(t.substring(1),l)},e.prototype.Qo=function(e,t,r,o,i){var n,a,l=this,s=e.Dj(r);s&&s.length>0&&l.ip(e,t,r,s),n=e.Ej(r,"pivot"),n&&n.length>0&&l.ip(e,t,r,n),a=e.Ej(r,"timeline"),a&&a.length>0&&l.jp(e,t,r,a)},e.prototype.jp=function(e,t,r,i){var n,a,l,s,c,d=this;d.no++,n=o.XFileConstants.qd+d.no+"."+o.XFileConstants.nc,a=new o.XFile(o.XFileConstants.Uc+"/"+n,o.RelationshipConstants.tb),a.target="../timelines/"+n,l=t.ze(a),i[0].rid=l,s=d.fo,c=R.writeTimelines(i),s.file(a.fileName.substring(1),c)},e.prototype.ip=function(e,t,r,i){var n,a,l,s,c,d=this;d.mo++,n=o.XFileConstants.pd+d.mo+"."+o.XFileConstants.nc,a=new o.XFile(o.XFileConstants.Tc+"/"+n,o.RelationshipConstants.jb),a.target="../slicers/"+n,l=t.ze(a),i[0].rid=l,s=d.fo,c=y.writeSlicer(i),s.file(a.fileName.substring(1),c)},e.prototype.yo=function(e,t,r){var i,n,a=this;t&&(i=e.fi(),n={},t.forEach(function(e){var t,l,s,c,d,u=Object.keys(n);0!==u.length&&n[e.name]||(a.oo++,t=o.XFileConstants.rd+a.oo+"."+o.XFileConstants.nc,l=new o.XFile(o.XFileConstants.Wc+"/"+t,o.RelationshipConstants.kb),l.target="slicerCaches/"+t,s=r.ze(l),n[e.name]=s,e.cacheRid=s,c=a.fo,d=y.writeTableSlicerCache(e,i),c.file(l.fileName.substring(1),d))}))},e.prototype.wo=function(e,t){var r,n=this;e&&(r={},e.forEach(function(e){var a,l,s,c,d,u,f,b=Object.keys(r);0!==b.length&&r[e.name]||(i.isNullOrUndefined(e.boundsStartDate)?(n.oo++,u=o.XFileConstants.rd+n.oo+"."+o.XFileConstants.nc,f=new o.XFile(o.XFileConstants.Wc+"/"+u,o.RelationshipConstants.kb),f.target="slicerCaches/"+u,s=t.ze(f),r[e.name]=s,e.cacheRid=s,c=n.fo,d=y.writePivotSlicerCache(e),c.file(f.fileName.substring(1),d)):(n.po++,a=o.XFileConstants.sd+n.po+"."+o.XFileConstants.nc,l=new o.XFile(o.XFileConstants.Xc+"/"+a,o.RelationshipConstants.ub),l.target="timelineCaches/"+a,s=t.ze(l),r[e.name]=s,e.cacheRid=s,c=n.fo,d=R.writePivotTimelineCache(e),c.file(l.fileName.substring(1),d)))}))},e.prototype.Ro=function(e,t,r,o){var i,n=e.Rj(r);n&&n.length>0&&this.kp(e,t,n,!0),i=e.Pj(r),i&&i.length>0&&this.kp(e,t,i,!1)},e.prototype.kp=function(e,t,r,i){var n,a,l,s;this.ho++,n=o.XFileConstants.Kc+this.ho+"."+o.XFileConstants.oc,a=new o.XFile(o.XFileConstants.Mc+"/"+n,o.RelationshipConstants.ab),a.target=I+n,this.lp(r,a),l=t.ze(a),i&&(e.jn=l),s=S.writeVmlDrawingFile(r),this.fo.file(a.fileName.substring(1),s)},e.prototype.lp=function(e,t){var r=this;e.forEach(function(e){r.ko++;var o=P(e,r.ko,t);r.fo.file(o.fileName.substring(1),e.base64Image,{base64:!0}),t.relationFiles[e.rid]=o})},e.prototype.Co=function(e){var t,r,i,n=this,a=n.ro.Eh;a&&(t=o.XFileConstants.Fd,r=new o.XFile(o.XFileConstants.Cb+"/"+t,o.RelationshipConstants.sb),r.target=t,e.ze(r),i=C.getMetadataContent(a),n.fo.file(r.fileName.substring(1),i))},e.prototype.wn=function(){A.clearCache(),this.ro=L},e}(),t.XlsxWriter=B},"./src/xml-io/node-helper.ts":function(e,t,r){"use strict";var o,i,n;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/datamodel/excel-style.ts"),i=o.UnitHelper.emuToPixles,n=function(){function e(){}return e.Vm=function(e,t){return"1"===e||"0"!==e&&t},e.Wm=function(e,t){if(e){var r=parseFloat(e);if(!isNaN(r))return r}return t},e.Xm=function(e,t){if(e){var r=parseInt(e,10);if(!isNaN(r))return r}return t},e.He=function(e){return Array.isArray(e)||(e=e?[e]:[]),e},e.Ym=function(e,t,r){return r=r||t,e[t]&&e[t][r]},e.bn=function(e,t){e&&(t.x=i(parseInt(e._attr.x,10)),t.y=i(parseInt(e._attr.y,10)))},e.cn=function(e,t){e&&(t.width=i(parseInt(e._attr.cx,10)),t.height=i(parseInt(e._attr.cy,10)))},e.dn=function(t){if(t)return{col:parseInt(e.Ym(t,"xdr:col"),10),colOffset:i(parseInt(e.Ym(t,"xdr:colOff"),10)),row:parseInt(e.Ym(t,"xdr:row"),10),rowOffset:i(parseInt(e.Ym(t,"xdr:rowOff"),10))}},e}(),t.XmlNodeHelper=n},"./src/xml-io/xml-parser.ts":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("./src/xml-io/xml-reader.ts");function i(e,t){var r,i,a;if(e){for(r=new o.XmlReader,i={},r.reset(),r.setXml(e),r.keepRootNamespace=t;r.read();)if(2!==r.elementType){for(a={},a._attr={},i[r.name()]=a;r.moveToNextAttribute();)a._attr[r.readAttributeNameAsString()]=r.readContentAsString();3!==r.elementType&&n(r,a)}return i}}t.parseXmlToObject=i;function n(e,t){for(var r,o,i,a=e.depth;e.read()&&!(e.depth<=a);)if(1===e.nodeType()){for(r={},o=e.name(),t[o]?(Array.isArray(t[o])||(t[o]=[t[o]]),t[o].push(r)):t[o]=r,r._attr={};e.moveToNextAttribute();)r._attr[e.readAttributeNameAsString()]=e.readContentAsString();if(3===e.elementType)continue;i=e.readElementContentAsString(),1===(1&e.elementType)&&""!==i&&e.mp>e.rn&&("preserve"===r._attr["xml:space"]&&(i=e.readElementContentAsString(!0)),r[o]=i),n(e,r)}}function a(e,t){var r,o,i,n="<"+t,l=e._attr;if(l)for(r in l)l.hasOwnProperty(r)&&(n+=" "+r+'="'+l[r]+'"');n+=">",o=function(t){e.hasOwnProperty(t)&&l!==e[t]&&(Array.isArray(e[t])?e[t].forEach(function(e){n+=a(e,t)}):n+="object"==typeof e[t]?a(e[t],t):e[t])};for(i in e)o(i);return n+="</"+t+">"}t.convertObjectToXml=a},"./src/xml-io/xml-reader.ts":function(e,t,r){"use strict";var o,i,n,a,l,s;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=o.Util.oa,n="<![CDATA[",a="]]>",l=null,s=function(){function e(){this.np=-1,this.op=0,this.pp=0,this.qp=0,this.buffer="",this.elementType=2,this.depth=0,this.rn=0,this._l=0,this.rp=0,this.tp=0,this.vp=0,this.wp=0,this.mp=0,this.xp=0,this.xmlIndex=0,this.xml="",this.yp=!1,this.zp=1/0,this.reset()}return e.prototype.reset=function(){var e=this;e.np=-1,e.op=0,e.pp=0,e.qp=0,e.buffer="",e.elementType=2,e.depth=0,e.rn=0,e._l=0,e.rp=0,e.tp=0,e.vp=0,e.wp=0,e.mp=0,e.xp=0,e.xmlIndex=0,e.xml="",e.yp=!1,e.zp=1/0,e.Ap=0,e.Bp=""},e.prototype.setXml=function(e){this.xml=e,this.zp=e.length},e.prototype.name=function(){var e,t=this,r=t.buffer.slice(t.rn,t.rn+t._l);return r&&!t.keepRootNamespace?(e=r.lastIndexOf(":")+1,e===t.Ap&&r.substr(0,e)===t.Bp||(e=0),r.substr(e)):r},e.prototype.nodeType=function(){return 2===this.elementType?15:1},e.prototype.fillBuffer=function(){var e=this,t=e.buffer.length;return 0===t&&(e.buffer=e.xml,e.np=0,e.mp=0,e.pp=e.buffer.length,!0)},e.prototype.read=function(){var e,t,r,o,i,l,s,c,d,u,f,b=this,h=b.zp;for(b.op=Number.MAX_VALUE,b.yp=!1;b.np<h;){if(b.np++,b.np>=b.pp&&!b.fillBuffer())return!1;if(e=b.buffer[b.np],"<"===e)break}for(t=["elementStarting","elementStart","elementNameEnd","elementEnd","elementContent","elementContentStart","endElementStart"],r=t.length,o=0,i=!1;o<r;){if(b.np>=h)return!1;switch(t[o]){case"elementStarting":for(i=!1;b.np<h;){if(b.np++,e=b.buffer[b.np],"/"===e){o=6,i=!0;break}if("?"===e){for(b.elementType=3;b.np<h;)if(b.np++,e=b.buffer[b.np],">"===e)return!0}else if(" "!==e&&"\r"!==e&&"\n"!==e&&"\t"!==e){b.rn=b.np;break}}if(i)continue;case"elementStart":for(i=!1,1===b.elementType&&b.depth++;b.np<h;){if(b.np++,e=b.buffer[b.np],">"===e){b._l=b.np-b.rn,o=3,i=!0;break}if(" "===e||"\r"===e||"\n"===e||"\t"===e||"/"===e){b._l=b.np-b.rn,b.op=b.np;break}}if(0===b.depth&&!b.keepRootNamespace&&b._l&&(l=b.buffer.substr(b.rn,b._l),s=l.lastIndexOf(":")+1,s&&(b.Bp=l.substr(0,s),b.Ap=s)),i)continue;case"elementNameEnd":for(c=!1;b.np<h&&(b.np++,e=b.buffer[b.np],'"'===e&&(c=!c),c||">"!==e););for(d=b.np;d>0;){if(d--,e=b.buffer[d],"/"===e)return b.qp=d,b.elementType=3,!0;if(" "!==e&&"\r"!==e&&"\n"!==e&&"\t"!==e){b.qp=d,b.elementType=1,o=4;break}}continue;case"elementEnd":for(d=b.np;d>0;){if(d--,e=b.buffer[d],"/"===e)return b.elementType=3,!0;if(" "!==e&&"\r"!==e&&"\n"!==e&&"\t"!==e){b.elementType=1;break}}case"elementContent":for(u=!1;b.np<h;){if(b.np++,e=b.buffer[b.np],b.buffer.substr(b.np,9)===n)return f=b.buffer.indexOf(a,b.np),b.mp=b.np,b.xp=f+a.length,b.np=b.xp-1,b.yp=!0,!0;if("<"===e)return b.np--,u&&(b.xp=b.np+1),!0;if(b.mp=b.np,u=!0,"\r"!==e&&"\n"!==e&&"\t"!==e)break}case"elementContentStart":for(;b.np<h;)if(b.np++,e=b.buffer[b.np],"<"===e)return b.xp=b.np,b.np--,!0;case"endElementStart":for(2!==b.elementType&&3!==b.elementType||b.depth--,b.elementType=2,b.rn=b.np+1;b.np<h;)if(b.np++,e=b.buffer[b.np],">"===e)return b._l=b.np-b.rn,!0}}},e.prototype.fastRead=function(){var e,t,r,o,i,l,s,c,d,u=this,f=u.zp;for(u.op=Number.MAX_VALUE,u.yp=!1;u.np<f;){if(u.np++,u.np>=u.pp&&!u.fillBuffer())return!1;if(e=u.buffer[u.np],"<"===e)break}for(t=["elementStarting","elementStart","elementNameEnd","elementEnd","elementContent","elementContentStart","endElementStart"],r=0,o=!1;r<t.length;){if(u.np>=f)return!1;switch(t[r]){case"elementStarting":for(o=!1;u.np<f;){if(u.np++,e=u.buffer[u.np],"/"===e){r=6,o=!0;break}if(" "!==e&&"\r"!==e&&"\n"!==e&&"\t"!==e){u.rn=u.np;break}}if(o)continue;case"elementStart":for(o=!1,1===u.elementType&&u.depth++;u.np<f;){if(u.np++,e=u.buffer[u.np],">"===e){u._l=u.np-u.rn,r=3,o=!0;break}if(" "===e||"\r"===e||"\n"===e||"\t"===e){u._l=u.np-u.rn,u.op=u.np;break}}if(0===u.depth&&!u.keepRootNamespace&&u._l&&(i=u.buffer.substr(u.rn,u._l),l=i.lastIndexOf(":")+1,l&&(u.Bp=i.substr(0,l),u.Ap=l)),o)continue;case"elementNameEnd":for(s=!1;u.np<f&&(u.np++,e=u.buffer[u.np],'"'===e&&(s=!s),s||">"!==e););for(c=u.np;c>0;){if(c--,e=u.buffer[c],"/"===e)return u.qp=c,u.elementType=3,!0;if(" "!==e&&"\r"!==e&&"\n"!==e&&"\t"!==e){u.qp=c,u.elementType=1,r=4;break}}continue;case"elementEnd":for(c=u.np;c>0;){if(c--,e=u.buffer[c],"/"===e)return u.elementType=3,!0;if(" "!==e&&"\r"!==e&&"\n"!==e&&"\t"!==e){u.elementType=1;break}}case"elementContent":for(;u.np<f;){if(u.np++,e=u.buffer[u.np],u.buffer.substr(u.np,9)===n)return d=u.buffer.indexOf(a,u.np),u.mp=u.np,u.xp=d+a.length,u.np=u.xp-1,u.yp=!0,!0;if("<"===e)return u.np--,!0;if("\r"!==e&&"\n"!==e&&"\t"!==e){u.mp=u.np;break}}case"elementContentStart":for(;u.np<f;)if(u.np++,e=u.buffer[u.np],"<"===e)return u.xp=u.np,u.np--,!0;case"endElementStart":for(2!==u.elementType&&3!==u.elementType||u.depth--,u.elementType=2;u.np<f;)if(u.np++,e=u.buffer[u.np],">"===e)return!0}}},e.prototype.moveToNextAttribute=function(){for(var e,t,r=this,o=r.zp;r.op<o;){if(r.op>=r.qp-1)return!1;if(r.op++,e=r.buffer[r.op]," "!==e&&"\r"!==e&&"\n"!==e&&"\t"!==e){r.rp=r.op;break}}for(;r.op<o;)if(r.op++,e=r.buffer[r.op],"="===e||" "===e||"\r"===e||"\n"===e||"\t"===e){r.tp=r.op-r.rp;break}for(t='"';r.op<o;)if(r.op++,e=r.buffer[r.op],'"'===e||"'"===e){t=e,r.vp=r.op+1;break}for(;r.op<o;)if(r.op++,e=r.buffer[r.op],e===t)return r.wp=r.op,!0},e.prototype.readContentAsString=function(){var e=this;return e.buffer.slice(e.vp,e.wp)},e.prototype.readContentAsBoolean=function(e){var t=this,r=t.buffer[t.vp];return"1"===r||"t"===r||"0"!==r&&"f"!==r&&e},e.prototype.readContentAsInt=function(e){var t=this,r=parseInt(t.buffer.slice(t.vp,t.wp),10);return isNaN(r)?e:r},e.prototype.readContentAsDouble=function(e){var t=this,r=parseFloat(t.buffer.slice(t.vp,t.wp));return isNaN(r)?e:r},e.prototype.readContentAsError=function(){var e=this.readContentAsString(),t=l;switch(e){case"#DIV/0!":t=7;break;case"#N/A":t=42;break;case"#NAME?":t=29;break;case"#NULL!":t=0;break;case"#NUM!":t=36;break;case"#REF!":t=23;break;case"#VALUE!":t=15;break;case"#SPILL!":t=99}return t!==l?{_error:e,_code:t}:l},e.prototype.readElementContentAsString=function(e){var t,r,o,l=this,s=l.mp;if(this.mp<=this.rn)return"";if(e)for(t=l.buffer,r=t[s-1];s>0&&(" "===r||"\r"===r||"\n"===r||"\t"===r);)s--,r=t[s-1];return o=l.buffer.slice(s,l.xp),l.yp&&(o=i(o.replace(n,"").replace(a,"")),l.yp=!1),o},e.prototype.readElementContentAsInt=function(e){var t=this,r=parseInt(t.buffer.slice(t.mp,t.xp),10);return isNaN(r)?e:r},e.prototype.readElementContentAsDouble=function(e){var t=this,r=parseFloat(t.buffer.slice(t.mp,t.xp));return isNaN(r)?e:r},e.prototype.readElementContentAsBoolean=function(e){var t=this,r=t.buffer[t.mp];return"1"===r||"t"===r||"0"!==r&&"f"!==r&&e},e.prototype.readAttributeNameAsString=function(){var e=this;return e.buffer.slice(e.rp,e.rp+e.tp)},e.prototype.readFullElement=function(){var e,t,r=this;if(2===r.elementType)return"";if(e=r.rn-1,3===r.elementType)return r.buffer.slice(e,r.qp+2);if(t=r.depth,1===r.elementType){for(;r.read()&&!(r.depth<=t););return r.buffer.slice(e,r.rn+r._l+1)}return""},e}(),t.XmlReader=s},"./src/xml-io/xml-writer.ts":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){var t=this;t.size=e||500,t.blockIndex=-1,t.stringIndex=0,t.blocks=[],this.createNewArray()}o.prototype.createNewArray=function(){var e=this,t=Array(e.size);e.blocks.push(t),e.blockIndex++,e.stringIndex=0},o.prototype.addString=function(e){var t=this;t.isFullArray()&&t.createNewArray(),t.blocks[t.blockIndex][t.stringIndex]=e,t.stringIndex++},o.prototype.getAllString=function(){var e,t,r=this;for(e=0;e<r.blocks.length;e++)r.blocks[e]=r.blocks[e].join("");return t=r.blocks.join(""),r.blocks=null,t},o.prototype.isFullArray=function(){var e=this;return e.stringIndex>e.size-2};var i=function(){function e(){this.xml=new o}return e.prototype.writeDocument=function(e){this.xml.addString('<?xml version="1.0" encoding="UTF-8" '+(e?"":'standalone="yes"')+"?>\r\n")},e.prototype.writeElement=function(e,t,r){void 0===r&&(r=t,t=void 0),this.xml.addString("<"+e),"function"==typeof t&&t(),this.xml.addString(">"),"function"==typeof r&&r(),this.xml.addString("</"+e+">")},e.prototype.writeValue=function(e){this.xml.addString(e)},e.prototype.writeLeafElement=function(e,t){this.xml.addString("<"+e),"function"==typeof t&&t(),this.xml.addString("/>")},e.prototype.writeAttributeString=function(e,t){this.xml.addString(" "+e),"style"===e?this.xml.addString("='"+t+"'"):this.xml.addString('="'+t+'"')},e.prototype.writeElementString=function(e,t){this.xml.addString("<"+e+">"+t+"</"+e+">")},e.prototype.getXmlString=function(){return this.xml.getAllString()},e}();t.XmlWriter=i}})});
|