From 80d8247432da20fab01fd5924565b13f45ccfa4d Mon Sep 17 00:00:00 2001 From: myhhub Date: Mon, 15 Jul 2024 15:20:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/static/js/gc.spread.excelio.min.js | 48 +++++++++---------- .../web/static/js/gc.spread.sheets.all.min.js | 6 +-- .../js/gc.spread.sheets.resources.zh.min.js | 4 +- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/instock/web/static/js/gc.spread.excelio.min.js b/instock/web/static/js/gc.spread.excelio.min.js index 9b26fd325..4729db2c8 100644 --- a/instock/web/static/js/gc.spread.excelio.min.js +++ b/instock/web/static/js/gc.spread.excelio.min.js @@ -1,6 +1,6 @@ /*! * - * SpreadJS ExcelIO Library 17.1.0 + * SpreadJS ExcelIO Library 17.1.1 * * Copyright(c) of respective holders. All rights reserved. * @@ -20,16 +20,16 @@ borderWidth:1,borderStyle:"thin",borderColor:"#999999"}},selectedItemWithNoDataS "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, "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, 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;ni.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;t1||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;e0?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,i=e.value,n=i.indexOf("*"),a=i.lastIndexOf("*");return n!==-1?n===i.length-1&&0!==n?r=C(t.conType,t.compareType,i.substring(0,i.length-1)):0===n&&n===a?r=C(t.conType,t.compareType,i.substring(1)):(n!==-1&&a!==-1&&(i=i.substr(1,i.length-2)),r=C(t.conType,t.compareType,i)):o.J(t)||(r=C(t.conType,t.compareType,i)),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;o1||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.0"},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;a4||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=0?u:0,f=f>=0?f:0,b=b>=0?b:0,h=h>=0?h:0,u=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=0&&o=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;wL&&(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,g0&&(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=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.levelh.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-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],o0){for(n.ColorHelper.useCustomPalette=!0,t={},r=0,o=e.length;r-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;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=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;rm.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;u0&&s0?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;r0&&(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;at&&(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=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;l0&&(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=o.J(e.compareType)?e.operator:e.compareType;if(n>=8&&n<=23||40===n)r={filterType:2,type:t},i=j(n),i.from&&i.to&&(r.value=i.from,r.maxValue=i.to);else if(n>=24&&n<=39)r={filterType:2,type:t};else if(n>=0&&n<=7)return q(e);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;c0)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=0;l--)a[l+h]=a[l];for(s=e.colHeaderData.dataTable,l=0;l0)for(u=e.rows,u||(e.rows=[]),l=0;l=0;l--)f[l+h]=f[l];for(b=e.colHeaderData.rowDataArray,l=0;l0&&(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=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;s0)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;n0&&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=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=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;K0?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;l255;)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=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=0&&(c.collapsed=this.Ri(t,d),i=this.Si(t,d),c.outLineLevel=i===-1?0:i),t1e-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=n.index&&e=n.index&&e=0&&tt&&(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;u0?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=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=0&&o=0&&i9&&(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;t0&&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+i.colCount||l.indexOf(e.index)<0)){for(t=e.conditions,r=t[0],n=1;n0){for(d=i.row-1,u=i.col,f=i.colCount,b=a.filterColumns.length>0,h=[],p=0,g=c;p=u&&w+x<=f&&(d===S||d===S+C-1))for(A=w;A0&&(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;r0}},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),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=e-25569,r=new Date(864e5*t),o=t>=0?1:-1,i=l(r),n=(864e5*e*1440+o-3181192704e6+864e5*i)/1440,a=new Date(n),s=i>=0?1:-1,c=new Date(n+36e5*s),d=l(c);return Math.abs(i-d)>=60?new Date(n+60*(d-i)*1e3):a},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;l0&&"\\"!==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;iu)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;o0?(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;s0?(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;no.info.level&&a.index===i&&(i=a.index+a.count);for(l=o.index+1;l=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;l0&&(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.rowCountg?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;og+I){x=o-1<0?0:o-1,A=a-(r-g-I);break}for(l=0,s=C,c=L,d=!1;sp+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(;yI+S){A=n-(o-I-S),x=i-1<0?0:i-1;break}}else if(E>0){for(;pL+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;ou+b){y=o-1<0?0:o-1,S=i-(r-u-b);break}for(n=0,a=p;ad+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)); +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,i=e.value,n=i.indexOf("*"),a=i.lastIndexOf("*");return n!==-1?n===i.length-1&&0!==n?r=C(t.conType,t.compareType,i.substring(0,i.length-1)):0===n&&n===a?r=C(t.conType,t.compareType,i.substring(1)):(n!==-1&&a!==-1&&(i=i.substr(1,i.length-2)),r=C(t.conType,t.compareType,i)):o.J(t)||(r=C(t.conType,t.compareType,i)),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;o1||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.1"},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;a4||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=0?u:0,f=f>=0?f:0,b=b>=0?b:0,h=h>=0?h:0,u=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=0&&o=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;wL&&(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,g0&&(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=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.levelh.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-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],o0){for(n.ColorHelper.useCustomPalette=!0,t={},r=0,o=e.length;r-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;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=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;rm.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;u0&&s0?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;r0&&(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;at&&(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=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;l0&&(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;c0)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=0;l--)a[l+h]=a[l];for(s=e.colHeaderData.dataTable,l=0;l0)for(u=e.rows,u||(e.rows=[]),l=0;l=0;l--)f[l+h]=f[l];for(b=e.colHeaderData.rowDataArray,l=0;l0&&(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=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;s0)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;n0&&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=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=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;K0?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;l255;)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=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=0&&(c.collapsed=this.Ri(t,d),i=this.Si(t,d),c.outLineLevel=i===-1?0:i),t1e-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=n.index&&e=n.index&&e=0&&tt&&(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;u0?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=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=0&&o=0&&i9&&(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;t0&&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+i.colCount||l.indexOf(e.index)<0)){for(t=e.conditions,r=t[0],n=1;n0){for(d=i.row-1,u=i.col,f=i.colCount,b=a.filterColumns.length>0,h=[],p=0,g=c;p=u&&w+x<=f&&(d===S||d===S+C-1))for(A=w;A0&&(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;r0}},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),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=e-25569,r=new Date(864e5*t),o=t>=0?1:-1,i=l(r),n=(864e5*e*1440+o-3181192704e6+864e5*i)/1440,a=new Date(n),s=i>=0?1:-1,c=new Date(n+36e5*s),d=l(c);return Math.abs(i-d)>=60?new Date(n+60*(d-i)*1e3):a},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;l0&&"\\"!==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;iu)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;o0?(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;s0?(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;no.info.level&&a.index===i&&(i=a.index+a.count);for(l=o.index+1;l=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;l0&&(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.rowCountg?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;og+I){x=o-1<0?0:o-1,A=a-(r-g-I);break}for(l=0,s=C,c=L,d=!1;sp+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(;yI+S){A=n-(o-I-S),x=i-1<0?0:i-1;break}}else if(E>0){for(;pL+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;ou+b){y=o-1<0?0:o-1,S=i-(r-u-b);break}for(n=0,a=p;ad+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)); },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;rl&&(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;sc&&(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=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)),u0?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=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(a0&&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, 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=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=e[n].length?"00":e[n].charAt(r)+e[n].charAt(r+1):r0&&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-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;r0&&(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;n0)for(p=0;p=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;t0;){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=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;e4294967295||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=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); -},e.prototype.toByteArray=function(){var e,t,r=[],o=this.parts;for(t=0;t>8),r.push(255&e);return r},e.prototype.toFixedLengthString=function(){var e=function(){var e,t=[];for(e=0;e>8,255&t,o>>8,255&o])},e.prototype.toNormalizedString=function(){var e=function(){var e,t=[];for(e=0;ei&&(o=e.index,i=e[0].length);return i<0?r:"".concat(r.substring(0,o),"::").concat(r.substring(o+i))},e.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},e}(),r.IPv6.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<16;)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 IPv6 CIDR format (".concat(e,")"))}},r.IPv6.isIPv6=function(e){return null!==this.parser(e)},r.IPv6.isValid=function(e){if("string"==typeof e&&e.indexOf(":")===-1)return!1;try{var t=this.parser(e);return new this(t.parts,t.zoneId),!0}catch(e){return!1}},r.IPv6.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<16;)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 IPv6 CIDR format (".concat(e,")"))}},r.IPv6.parse=function(e){var t=this.parser(e);if(null===t.parts)throw Error("ipaddr: string is not formatted like an IPv6 Address");return new this(t.parts,t.zoneId)},r.IPv6.parseCIDR=function(e){var t,r,o;if((r=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(r[2]),t>=0&&t<=128))return o=[this.parse(r[1]),t],Object.defineProperty(o,"toString",{value:function e(){return this.join("/")}}),o;throw Error("ipaddr: string is not formatted like an IPv6 CIDR range")},r.IPv6.parser=function(e){var t,r,o,i,n,a;if(o=e.match(c.deprecatedTransitional))return this.parser("::ffff:".concat(o[1]));if(c.native.test(e))return d(e,8);if((o=e.match(c.transitional))&&(a=o[6]||"",t=d(o[1].slice(0,-1)+a,6),t.parts)){for(n=[parseInt(o[2]),parseInt(o[3]),parseInt(o[4]),parseInt(o[5])],r=0;r128)throw Error("ipaddr: invalid IPv6 prefix length");for(t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=0,o=Math.floor(e/8);r1&&void 0!==arguments[1]?arguments[1]:1,r=e.charCodeAt(0);return r>=65&&r<=90?e.toLowerCase():r>=97&&r<=122?e.toUpperCase():r>=48&&r<=57?i(48+(r-48+10+t)%10):e}function p(e){var t,r=e.split(""),o=function e(t){return h(t,-1)};for(t=r.length-5;t>=0;t--)b(r,t+1,t+3,o),b(r,t,t+2,o);return r.join("")}function m(e){return e.split("").reverse().join("")}function g(e){var t,r,o,i,n,l,s,c,d,u=[],f="",b=a,h=e,p=h.length%3;if(p>0)for(;p++<3;)f+="=",h+="\0";for(p=0;p>18&63,l=i>>12&63,s=i>>6&63,c=63&i,u[p/3]=b.charAt(n)+b.charAt(l)+b.charAt(s)+b.charAt(c);return d=u.join(""),d=d.slice(0,d.length-f.length)+f}function y(e){var t,r,o,n,l,s,c,d,u,f,b=[],h=a,p=e;for(f=0;f>>16&255,r=d>>>8&255,o=255&d,b[f/4]=i(t,r,o),64==c&&(b[f/4]=i(t,r)),64==s&&(b[f/4]=i(t));return u=b.join("")}function S(e){return(o&&window.atob||y)(e)}function C(e){return(o&&window.btoa||g)(e)}function w(e){return decodeURIComponent(Array.prototype.map.call(S(e),function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function x(e){return C(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return i(parseInt(t,16))}))}function A(e){var t,r;return e?(t=p(e),t=m(t),r=Math.ceil(t.length/2),t=t.substr(r)+t.substr(0,r),t=t.replace("#","="),t=t.replace("&","=="),w(t)):""}d=t.iDe=A;function T(e){var t,r=S(e),o=r.length,i=new n(o);for(t=0;t=0;t--)r=e.charCodeAt(t),i=r+(i<<6)+(i<<16)-i,n=r+((n<<5)+n),a=r+((a<<5)-a),a&=a;return o=i^n^a,o<0&&(o=~o),o.toString(16).toUpperCase()}function E(e){return e&&JSON.parse(e)||void 0}function I(e,t){try{t="#"+t;var r=e.indexOf(t);if(r>-1)return{prefix:e.substring(0,r),licData:JSON.parse(A(e.substr(r+t.length)))}}catch(e){}return!1}function L(e){return"oncomplete"in e&&(e.then=function(t,r){e.resolve=t,e.reject=r},e.oncomplete=function(t){e.resolve(e.result)},e.onerror=function(){e.reject()}),e}u=t.attorn=function e(t,r,i,n){var a,l,s,d,u,f,b,h=o?window.msCrypto?window.msCrypto:window.crypto:void 0,p=I(t,r.aC);if(!p)return n();a=p.licData,l=p.prefix+"#"+r.aC,s=k(T(x(l+JSON.stringify(a.D))));function m(){return R(l+JSON.stringify(a.D))===a.H?i(a.D):n()}return d=A("JYx3Gb#8Pb5R"),u=A("VdgJHc#wJb59"),c[d]&&c[d][u]&&!location.protocol.match(/^https/i)?m():h&&h.subtle?(f={alg:"PS256",e:"AQAB",kty:"RSA",n:F(r.pK)},f=window.msCrypto?v(JSON.stringify(f)):f,b={name:"RSA-PSS",saltLength:32,hash:{name:"SHA-256"}},L(h.subtle.importKey("jwk",f,b,!1,["verify"])).then(function(e){L(h.subtle.verify(b,e,T(a.S),v(s))).then(function(e){return e?i(a.D):n()})},function(){return m()}),void 0):m()}}).call(t,function(){return this}())}]);e.exports={Hk:r.attorn,Ik:r.iDe}},"./src/lc/releaseLc.js":function(e,t,r){var o=r("./src/lc/common.js");e.exports={Ak:1,Bk:o.Bk,zk:o.zk}},"./src/lib/jszip.min.js":function(e,t,r){(function(t){var r;!function(t){e.exports=t()}(function(){return function e(t,o,i){function n(l,s){var c,d,u;if(!o[l]){if(!t[l]){if(c="function"==typeof r&&r,!s&&c)return r(l,!0);if(a)return a(l,!0);throw d=Error("Cannot find module '"+l+"'"),d.code="MODULE_NOT_FOUND",d}u=o[l]={exports:{}},t[l][0].call(u.exports,function(e){var r=t[l][1][e];return n(r||e)},u,u.exports,e,t,o,i)}return o[l].exports}for(var a="function"==typeof r&&r,l=0;l>2,l=(3&t)<<4|r>>4,s=1>6:64,c=2>4,r=(15&a)<<4|(l=n.indexOf(e.charAt(u++)))>>2,o=(3&l)<<6|(s=n.indexOf(e.charAt(u++))),c[f++]=t,64!==l&&(c[f++]=r),64!==s&&(c[f++]=o);return c}},{"./support":30,"./utils":32}],2:[function(e,t,r){"use strict";var o=e("./external"),i=e("./stream/DataWorker"),n=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function l(e,t,r,o,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=o,this.compressedContent=i}l.prototype={getContentWorker:function(){var e=new i(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},l.createWorkerFrom=function(e,t,r){return e.pipe(new n).pipe(new a("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=l},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){"use strict";var o=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(e){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){"use strict";var o=e("./utils"),i=function(){var e,t,r,o;for(t=[],r=0;r<256;r++){for(e=r,o=0;o<8;o++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==o.getTypeOf(e)?function(e,t,r,o){var n,a=i,l=o+r;for(e^=-1,n=o;n>>8^a[255&(e^t[n])];return-1^e}(0|t,e,e.length,0):function(e,t,r,o){var n,a=i,l=o+r;for(e^=-1,n=o;n>>8^a[255&(e^t.charCodeAt(n))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){"use strict";var o=null;o="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:o}},{lie:37}],7:[function(e,t,r){"use strict";var o="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),n=e("./utils"),a=e("./stream/GenericWorker"),l=o?"uint8array":"array";function s(e,t){a.call(this,"FlateWorker/"+e),this.Lk=null,this.Mk=e,this.Ok=t,this.meta={}}r.magic="\b\0",n.inherits(s,a),s.prototype.processChunk=function(e){this.meta=e.meta,null===this.Lk&&this.Pk(),this.Lk.push(n.transformTo(l,e.data),!1)},s.prototype.flush=function(){a.prototype.flush.call(this),null===this.Lk&&this.Pk(),this.Lk.push([],!0)},s.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.Lk=null},s.prototype.Pk=function(){this.Lk=new i[this.Mk]({raw:!0,level:this.Ok.level||-1});var e=this;this.Lk.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new s("Deflate",e)},r.uncompressWorker=function(){return new s("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){"use strict";function o(e,t){var r,o="";for(r=0;r>>=8;return o}function i(e,t,r,i,a,d){var u,f,b,h,p,m,g=e.file,y=e.compression,S=d!==l.utf8encode,C=n.transformTo("string",d(g.name)),w=n.transformTo("string",l.utf8encode(g.name)),x=g.comment,A=n.transformTo("string",d(x)),T=n.transformTo("string",l.utf8encode(x)),v=w.length!==g.name.length,k=T.length!==x.length,F="",R="",E="",I=g.dir,L=g.date,D={crc32:0,compressedSize:0,uncompressedSize:0};return t&&!r||(D.crc32=e.crc32,D.compressedSize=e.compressedSize,D.uncompressedSize=e.uncompressedSize),b=0,t&&(b|=8),S||!v&&!k||(b|=2048),h=0,p=0,I&&(h|=16),"UNIX"===a?(p=798,h|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(g.unixPermissions,I)):(p=20,h|=function(e){return 63&(e||0)}(g.dosPermissions)),u=L.getUTCHours(),u<<=6,u|=L.getUTCMinutes(),u<<=5,u|=L.getUTCSeconds()/2,f=L.getUTCFullYear()-1980,f<<=4,f|=L.getUTCMonth()+1,f<<=5,f|=L.getUTCDate(),v&&(R=o(1,1)+o(s(C),4)+w,F+="up"+o(R.length,2)+R),k&&(E=o(1,1)+o(s(A),4)+T,F+="uc"+o(E.length,2)+E),m="",m+="\n\0",m+=o(b,2),m+=y.magic,m+=o(u,2),m+=o(f,2),m+=o(D.crc32,4),m+=o(D.compressedSize,4),m+=o(D.uncompressedSize,4),m+=o(C.length,2),m+=o(F.length,2),{fileRecord:c.LOCAL_FILE_HEADER+m+C+F,dirRecord:c.CENTRAL_FILE_HEADER+o(p,2)+m+o(A.length,2)+"\0\0\0\0"+o(h,4)+o(i,4)+C+F+A}}var n=e("../utils"),a=e("../stream/GenericWorker"),l=e("../utf8"),s=e("../crc32"),c=e("../signature");function d(e,t,r,o){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=o,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this.Qk=[]}n.inherits(d,a),d.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,o=this.Qk.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-o-1))/r:100}}))},d.prototype.openedSource=function(e){var t,r;this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name,t=this.streamFiles&&!e.file.dir,t?(r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName),this.push({data:r.fileRecord,meta:{percent:0}})):this.accumulate=!0},d.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+o(e.crc32,4)+o(e.compressedSize,4)+o(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){var e,t,r,i;for(e=this.bytesWritten,t=0;t=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return o.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){"use strict";var o=e("./Uint8ArrayReader");function i(e){o.call(this,e)}e("../utils").inherits(i,o),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){"use strict";var o=e("./DataReader");function i(e){o.call(this,e)}e("../utils").inherits(i,o),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){"use strict";var o=e("./ArrayReader");function i(e){o.call(this,e)}e("../utils").inherits(i,o),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){"use strict";var o=e("../utils"),i=e("../support"),n=e("./ArrayReader"),a=e("./StringReader"),l=e("./NodeBufferReader"),s=e("./Uint8ArrayReader");t.exports=function(e){var t=o.getTypeOf(e);return o.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new l(e):i.uint8array?new s(o.transformTo("uint8array",e)):new n(o.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK\x03\x04",r.CENTRAL_FILE_HEADER="PK\x01\x02",r.CENTRAL_DIRECTORY_END="PK\x05\x06",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,r){"use strict";var o=e("./GenericWorker"),i=e("../utils");function n(e){o.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(n,o),n.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){"use strict";var o=e("./GenericWorker"),i=e("../crc32");function n(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(n,o),n.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){"use strict";var o=e("../utils"),i=e("./GenericWorker");function n(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}o.inherits(n,i),n.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){"use strict";var o=e("../utils"),i=e("./GenericWorker");function n(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this.Xk=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=o.getTypeOf(e),t.isPaused||t.Yk()},function(e){t.error(e)})}o.inherits(n,i),n.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this.Xk&&this.dataIsReady&&(this.Xk=!0,o.delay(this.Yk,[],this)),!0)},n.prototype.Yk=function(){this.Xk=!1,this.isPaused||this.isFinished||(this.Zk(),this.isFinished||(o.delay(this.Yk,[],this),this.Xk=!0))},n.prototype.Zk=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t); -}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){"use strict";function o(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this.$k={data:[],end:[],error:[]},this.previous=null}o.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this.$k[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this.$k=[]},emit:function(e,t){if(this.$k[e])for(var r=0;r "+e:e}},t.exports=o},{}],29:[function(e,t,r){"use strict";var o=e("../utils"),i=e("./ConvertWorker"),n=e("./GenericWorker"),a=e("../base64"),l=e("../support"),s=e("../external"),c=null;if(l.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function d(e,t){return new s.Promise(function(r,i){var n=[],l=e._k,s=e.al,c=e.cl;e.on("data",function(e,r){n.push(e),t&&t(r)}).on("error",function(e){n=[],i(e)}).on("end",function(){try{var e=function(e,t,r){switch(e){case"blob":return o.newBlob(o.transformTo("arraybuffer",t),r);case"base64":return a.encode(t);default:return o.transformTo(e,t)}}(s,function(e,t){var r,o=0,i=null,n=0;for(r=0;r>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t}(e)},r.utf8decode=function(e){return i.nodebuffer?o.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,n,a=e.length,s=Array(2*a);for(t=r=0;t>10&1023,s[r++]=56320|1023&i)}return s.length!==r&&(s.subarray?s=s.subarray(0,r):s.length=r),o.applyFromCharCode(s)}(e=o.transformTo(i.uint8array?"uint8array":"array",e))},o.inherits(c,a),c.prototype.processChunk=function(e){var t,n,a,s=o.transformTo(i.uint8array?"uint8array":"array",e.data);this.leftOver&&this.leftOver.length&&(i.uint8array?(t=s,(s=new Uint8Array(t.length+this.leftOver.length)).set(this.leftOver,0),s.set(t,this.leftOver.length)):s=this.leftOver.concat(s),this.leftOver=null),n=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+l[e[r]]>t?r:t}(s),a=s,n!==s.length&&(i.uint8array?(a=s.subarray(0,n),this.leftOver=s.subarray(n,s.length)):(a=s.slice(0,n),this.leftOver=s.slice(n,s.length))),this.push({data:r.utf8decode(a),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,o.inherits(d,a),d.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){"use strict";var o,i,n=e("./support"),a=e("./base64"),l=e("./nodejsUtils"),s=e("set-immediate-shim"),c=e("./external");function d(e){return e}function u(e,t){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=o(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,r,o,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t},r.buf2binstring=function(e){return s(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,o=t.length;r>10&1023,c[i++]=56320|1023&n)}return s(c,i)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+o[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){"use strict";t.exports=function(e,t,r,o){for(var i=65535&e|0,n=e>>>16&65535|0,a=0;0!==r;){for(r-=a=2e3>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var n,a=o,l=i+r;for(e^=-1,n=i;n>>8^a[255&(e^t[n])];return-1^e}},{}],46:[function(e,t,r){"use strict";var o,i=e("../utils/common"),n=e("./trees"),a=e("./adler32"),l=e("./crc32"),s=e("./messages"),c=0,d=4,u=0,f=-2,b=-1,h=4,p=2,m=8,g=9,y=286,S=30,C=19,w=2*y+1,x=15,A=3,T=258,v=T+A+1,k=42,F=113,R=1,E=2,I=3,L=4;function D(e,t){return e.msg=s[t],t}function B(e){return(e<<1)-(4e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function _(e,t){n.jl(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,W(e.strm)}function N(e,t){e.pending_buf[e.pending++]=t}function M(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function O(e,t){var r,o,i=e.max_chain_length,n=e.strstart,a=e.prev_length,l=e.nice_match,s=e.strstart>e.w_size-v?e.strstart-(e.w_size-v):0,c=e.window,d=e.w_mask,u=e.prev,f=e.strstart+T,b=c[n+a-1],h=c[n+a];e.prev_length>=e.good_match&&(i>>=2),l>e.lookahead&&(l=e.lookahead);do if(c[(r=t)+a]===h&&c[r+a-1]===b&&c[r]===c[n]&&c[++r]===c[n+1]){n+=2,r++;do;while(c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&ns&&0!=--i);return a<=e.lookahead?a:e.lookahead}function H(e){var t,r,o,n,s,c,d,u,f,b,h=e.w_size;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=h+(h-v)){for(i.arraySet(e.window,e.window,h,h,0),e.match_start-=h,e.strstart-=h,e.block_start-=h,t=r=e.hash_size;o=e.head[--t],e.head[t]=h<=o?o-h:0,--r;);for(t=r=h;o=e.prev[--t],e.prev[t]=h<=o?o-h:0,--r;);n+=h}if(0===e.strm.avail_in)break;if(c=e.strm,d=e.window,u=e.strstart+e.lookahead,f=n,b=void 0,b=c.avail_in,f=A)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<=A&&(e.ins_h=(e.ins_h<=A)if(o=n.kl(e,e.strstart-e.match_start,e.match_length-A),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=A){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=A&&(e.ins_h=(e.ins_h<=A&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-A,o=n.kl(e,e.strstart-1-e.prev_match,e.prev_length-A),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(o=e.pending_buf_size-5);;){if(e.lookahead<=1){if(H(e),0===e.lookahead&&t===c)return R;if(0===e.lookahead)break}if(e.strstart+=e.lookahead,e.lookahead=0,r=e.block_start+o,(0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,_(e,!1),0===e.strm.avail_out))return R;if(e.strstart-e.block_start>=e.w_size-v&&(_(e,!1),0===e.strm.avail_out))return R}return e.insert=0,t===d?(_(e,!0),0===e.strm.avail_out?I:L):(e.strstart>e.block_start&&(_(e,!1),e.strm.avail_out),R)}),new J(4,4,8,4,G),new J(4,5,16,8,G),new J(4,6,32,32,G),new J(4,4,16,16,U),new J(8,16,32,32,U),new J(8,16,128,128,U),new J(8,32,128,256,U),new J(32,128,258,1024,U),new J(32,258,258,4096,U)],r.deflateInit=function(e,t){return X(e,t,m,15,8,0)},r.deflateInit2=X,r.deflateReset=j,r.deflateResetKeep=V,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?f:(e.state.gzhead=t,u):f},r.deflate=function(e,t){var r,i,a,s,b,h;if(!e||!e.state||5>8&255),N(i,i.gzhead.time>>16&255),N(i,i.gzhead.time>>24&255),N(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),N(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(N(i,255&i.gzhead.extra.length),N(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=l(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(N(i,0),N(i,0),N(i,0),N(i,0),N(i,0),N(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),N(i,3),i.status=F)):(b=m+(i.w_bits-8<<4)<<8,b|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(b|=32),b+=31-b%31,i.status=F,M(i,b),0!==i.strstart&&(M(i,e.adler>>>16),M(i,65535&e.adler)),e.adler=1)),69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=l(e.adler,i.pending_buf,i.pending-a,a)),W(e),a=i.pending,i.pending!==i.pending_buf_size));)N(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=l(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=l(e.adler,i.pending_buf,i.pending-a,a)),W(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}s=i.gzindexa&&(e.adler=l(e.adler,i.pending_buf,i.pending-a,a)),0===s&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=l(e.adler,i.pending_buf,i.pending-a,a)),W(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}s=i.gzindexa&&(e.adler=l(e.adler,i.pending_buf,i.pending-a,a)),0===s&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&W(e),i.pending+2<=i.pending_buf_size&&(N(i,255&e.adler),N(i,e.adler>>8&255),e.adler=0,i.status=F)):i.status=F),0!==i.pending){if(W(e),0===e.avail_out)return i.last_flush=-1,u}else if(0===e.avail_in&&B(t)<=B(r)&&t!==d)return D(e,-5);if(666===i.status&&0!==e.avail_in)return D(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==c&&666!==i.status){if(h=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(H(e),0===e.lookahead)){if(t===c)return R;break}if(e.match_length=0,r=n.kl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(_(e,!1),0===e.strm.avail_out))return R}return e.insert=0,t===d?(_(e,!0),0===e.strm.avail_out?I:L):e.last_lit&&(_(e,!1),0===e.strm.avail_out)?R:E}(i,t):3===i.strategy?function(e,t){for(var r,o,i,a,l=e.window;;){if(e.lookahead<=T){if(H(e),e.lookahead<=T&&t===c)return R;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=A&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=A?(r=n.kl(e,1,e.match_length-A),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=n.kl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(_(e,!1),0===e.strm.avail_out))return R}return e.insert=0,t===d?(_(e,!0),0===e.strm.avail_out?I:L):e.last_lit&&(_(e,!1),0===e.strm.avail_out)?R:E}(i,t):o[i.level].func(i,t),h!==I&&h!==L||(i.status=666),h===R||h===I)return 0===e.avail_out&&(i.last_flush=-1),u;if(h===E&&(1===t?n.ml(i):5!==t&&(n.nl(i,0,0,!1),3===t&&(P(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),W(e),0===e.avail_out))return i.last_flush=-1,u}return t!==d?u:i.wrap<=0?1:(2===i.wrap?(N(i,255&e.adler),N(i,e.adler>>8&255),N(i,e.adler>>16&255),N(i,e.adler>>24&255),N(i,255&e.total_in),N(i,e.total_in>>8&255),N(i,e.total_in>>16&255),N(i,e.total_in>>24&255)):(M(i,e.adler>>>16),M(i,65535&e.adler)),W(e),0=r.w_size&&(0===l&&(P(r.head),r.strstart=0,r.block_start=0,r.insert=0),b=new i.Buf8(r.w_size),i.arraySet(b,t,h-r.w_size,r.w_size,0),t=b,h=r.w_size),s=e.avail_in,c=e.next_in,d=e.input,e.avail_in=h,e.next_in=0,e.input=t,H(r);r.lookahead>=A;){for(o=r.strstart,n=r.lookahead-(A-1);r.ins_h=(r.ins_h<>>=C=S>>>24,h-=C,0===(C=S>>>16&255))k[n++]=65535&S;else{if(!(16&C)){if(0==(64&C)){S=p[(65535&S)+(b&(1<>>=C,h-=C),h<15&&(b+=v[o++]<>>=C=S>>>24,h-=C,!(16&(C=S>>>16&255))){if(0==(64&C)){S=m[(65535&S)+(b&(1<>>=C,h-=C,(C=n-a)>3,b&=(1<<(h-=w<<3))-1,e.next_in=o,e.next_out=n,e.avail_in=o>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function S(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new a.Buf16(320),this.work=new a.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function C(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=p,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new a.Buf32(m),t.distcode=t.distdyn=new a.Buf32(g),t.sane=1,t.back=-1,b):h}function w(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,C(e)):h}function x(e,t){var r,o;return e&&e.state?(o=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=n.wsize?(a.arraySet(n.window,t,r-n.wsize,n.wsize,0),n.wnext=0,n.whave=n.wsize):(o<(i=n.wsize-n.wnext)&&(i=o),a.arraySet(n.window,t,r-o,i,n.wnext),(o-=i)?(a.arraySet(n.window,t,r-o,o,0),n.wnext=o,n.whave=n.wsize):(n.wnext+=i,n.wnext===n.wsize&&(n.wnext=0),n.whave>>8&255,r.check=s(r.check,H,2,0),w=C=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&C)<<8)+(C>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&C)){e.msg="unknown compression method",r.mode=30;break}if(w-=4,W=8+(15&(C>>>=4)),0===r.wbits)r.wbits=W;else if(W>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(H[0]=255&C,H[1]=C>>>8&255,r.check=s(r.check,H,2,0)),w=C=0,r.mode=3;case 3:for(;w<32;){if(0===g)break e;g--,C+=o[n++]<>>8&255,H[2]=C>>>16&255,H[3]=C>>>24&255,r.check=s(r.check,H,4,0)),w=C=0,r.mode=4;case 4:for(;w<16;){if(0===g)break e;g--,C+=o[n++]<>8),512&r.flags&&(H[0]=255&C,H[1]=C>>>8&255,r.check=s(r.check,H,2,0)),w=C=0,r.mode=5;case 5:if(1024&r.flags){for(;w<16;){if(0===g)break e;g--,C+=o[n++]<>>8&255,r.check=s(r.check,H,2,0)),w=C=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(g<(k=r.length)&&(k=g),k&&(r.head&&(W=r.head.extra_len-r.length,r.head.extra||(r.head.extra=Array(r.head.extra_len)),a.arraySet(r.head.extra,o,n,k,W)),512&r.flags&&(r.check=s(r.check,o,k,n)),g-=k,n+=k,r.length-=k),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===g)break e;for(k=0;W=o[n+k++],r.head&&W&&r.length<65536&&(r.head.name+=String.fromCharCode(W)),W&&k>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;w<32;){if(0===g)break e;g--,C+=o[n++]<>>=7&w,w-=7&w,r.mode=27;break}for(;w<3;){if(0===g)break e;g--,C+=o[n++]<>>=1)){case 0:r.mode=14;break;case 1:if(T(r),r.mode=20,6!==t)break;C>>>=2,w-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}C>>>=2,w-=2;break;case 14:for(C>>>=7&w,w-=7&w;w<32;){if(0===g)break e;g--,C+=o[n++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&C,w=C=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(k=r.length){if(g>>=5,w-=5,r.ndist=1+(31&C),C>>>=5,w-=5,r.ncode=4+(15&C),C>>>=4,w-=4,286>>=3,w-=3}for(;r.have<19;)r.lens[G[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,N={bits:r.lenbits},_=d(0,r.lens,0,19,r.lencode,0,r.work,N),r.lenbits=N.bits,_){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,L=65535&O,!((E=O>>>24)<=w);){if(0===g)break e;g--,C+=o[n++]<>>=E,w-=E,r.lens[r.have++]=L;else{if(16===L){for(M=E+2;w>>=E,w-=E,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}W=r.lens[r.have-1],k=3+(3&C),C>>>=2,w-=2}else if(17===L){for(M=E+3;w>>=E)),C>>>=3,w-=3}else{for(M=E+7;w>>=E)),C>>>=7,w-=7}if(r.have+k>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;k--;)r.lens[r.have++]=W}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,N={bits:r.lenbits},_=d(u,r.lens,0,r.nlen,r.lencode,0,r.work,N),r.lenbits=N.bits,_){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,N={bits:r.distbits},_=d(f,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,N),r.distbits=N.bits,_){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=g&&258<=S){e.next_out=m,e.avail_out=S,e.next_in=n,e.avail_in=g,r.hold=C,r.bits=w,c(e,A),m=e.next_out,i=e.output,S=e.avail_out,n=e.next_in,o=e.input,g=e.avail_in,C=r.hold,w=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;I=(O=r.lencode[C&(1<>>16&255,L=65535&O,!((E=O>>>24)<=w);){if(0===g)break e;g--,C+=o[n++]<>D)])>>>16&255,L=65535&O,!(D+(E=O>>>24)<=w);){if(0===g)break e;g--,C+=o[n++]<>>=D,w-=D,r.back+=D}if(C>>>=E,w-=E,r.back+=E,r.length=L,0===I){r.mode=26;break}if(32&I){r.back=-1,r.mode=12;break}if(64&I){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&I,r.mode=22;case 22:if(r.extra){for(M=r.extra;w>>=r.extra,w-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;I=(O=r.distcode[C&(1<>>16&255,L=65535&O,!((E=O>>>24)<=w);){if(0===g)break e;g--,C+=o[n++]<>D)])>>>16&255,L=65535&O,!(D+(E=O>>>24)<=w);){if(0===g)break e;g--,C+=o[n++]<>>=D,w-=D,r.back+=D}if(C>>>=E,w-=E,r.back+=E,64&I){e.msg="invalid distance code",r.mode=30;break}r.offset=L,r.extra=15&I,r.mode=24;case 24:if(r.extra){for(M=r.extra;w>>=r.extra,w-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===S)break e;if(k=A-S,r.offset>k){if((k=r.offset-k)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}F=k>r.wnext?(k-=r.wnext,r.wsize-k):r.wnext-k,k>r.length&&(k=r.length),R=r.window}else R=i,F=m-r.offset,k=r.length;for(Sy?(C=N[M+u[T]],B[P+u[T]]):(C=96,0),b=1<>E)+(h-=b)]=S<<24|C<<16|w|0,0!==h;);for(b=1<>=1;if(0!==b?(D&=b-1,D+=b):D=0,T++,0==--W[A]){if(A===k)break;A=t[r+u[T]]}if(F>>7)]}function M(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function O(e,t,r){e.bi_valid>u-r?(e.bi_buf|=t<>u-e.bi_valid,e.bi_valid+=r-u):(e.bi_buf|=t<>>=1,r<<=1,0<--t;);return r>>>1}function U(e,t,r){var o,i,n,a=Array(d+1),l=0;for(o=1;o<=d;o++)a[o]=l=l+r[o-1]<<1;for(i=0;i<=t;i++)n=e[2*i+1],0!==n&&(e[2*i]=G(a[n]++,n))}function J(e){var t;for(t=0;t>1;1<=r;r--)j(e,n,r);for(i=s;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],j(e,n,1),o=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=o,n[2*i]=n[2*r]+n[2*o],e.depth[i]=(e.depth[r]>=e.depth[o]?e.depth[r]:e.depth[o])+1,n[2*r+1]=n[2*o+1]=i,e.heap[1]=i++,j(e,n,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,o,i,n,a,l,s=t.dyn_tree,u=t.max_code,f=t.stat_desc.static_tree,b=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,m=t.stat_desc.max_length,g=0;for(n=0;n<=d;n++)e.bl_count[n]=0;for(s[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r>=7;o>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return D;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return B;for(t=32;t>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==t?Q(e,t,r,o):4===e.strategy||a===i?(O(e,2+(o?1:0),3),X(e,w,x)):(O(e,4+(o?1:0),3),function(e,t,r,o){var i;for(O(e,t-257,5),O(e,r-1,5),O(e,o-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(T[r]+n+1)]++,e.dyn_dtree[2*N(t)]++),e.last_lit===e.lit_bufsize-1},r.ml=function(e){O(e,2,3),H(e,b,w),function(e){16===e.bi_valid?(M(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,r,o){"use strict";r.exports="function"==typeof t?t:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)})}).call(this,r("./node_modules/timers-browserify/main.js").setImmediate)},"./src/xlsx-io/common/chart-helper.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/datamodel/chart-model.ts"),i=o.Charts.ST_SystemColorVal,n=o.Charts.ST_SchemeColorVal,a=o.Charts.ST_SplitType,l=o.Charts.ST_MarkerStyle,s=o.Charts.ST_SeriesLayout;function d(e,t,r){return e===t&&(e=r),e}c=function(){function e(){}return e.ToKnownColor=function(e){var t=null;switch(e){case i.scrollBar:t=23;break;case i.activeCaption:t=2;break;case i.inactiveCaption:t=17;break;case i.menu:t=21;break;case i.window:t=24;break;case i.windowFrame:t=25;break;case i.menuText:t=22;break;case i.windowText:t=26;break;case i.activeBorder:t=1;break;case i.inactiveBorder:t=16;break;case i.appWorkspace:t=4;break;case i.highlight:t=13;break;case i.highlightText:t=14;break;case i.btnFace:t=168;break;case i.btnShadow:t=170;break;case i.grayText:t=12;break;case i.inactiveCaptionText:t=18;break;case i.btnHighlight:t=169;break;case i.infoText:t=20;break;case i.infoBk:t=19;break;case i.gradientActiveCaption:t=171;break;case i.gradientInactiveCaption:t=172;break;case i.menuHighlight:t=174;break;case i.menuBar:t=173}return t},e.ToST_SystemColorVal=function(e){var t=null;switch(e){case 1:t=i.activeBorder;break;case 2:t=i.activeCaption;break;case 168:t=i.btnFace;break;case 169:t=i.btnHighlight;break;case 170:t=i.btnShadow;break;case 171:t=i.gradientActiveCaption;break;case 172:t=i.gradientInactiveCaption;break;case 12:t=i.grayText;break;case 13:t=i.highlight;break;case 14:t=i.highlightText;break;case 16:t=i.inactiveBorder;break;case 17:t=i.inactiveCaption;break;case 18:t=i.inactiveCaptionText;break;case 20:t=i.infoText;break;case 21:t=i.menu;break;case 173:t=i.menuBar;break;case 174:t=i.menuHighlight;break;case 22:t=i.menuText;break;case 24:t=i.window;break;case 25:t=i.windowFrame;break;case 26:t=i.windowText}return t},e.ToST_SchemeColorVal=function(e){var t=n.accent1;switch(e){case 4:t=n.accent1;break;case 5:t=n.accent2;break;case 6:t=n.accent3;break;case 7:t=n.accent4;break;case 8:t=n.accent5;break;case 9:t=n.accent6;break;case 0:t=n.bg1;break;case 2:t=n.bg2;break;case 11:t=n.folHlink;break;case 10:t=n.hlink;break;case 12:t=n.phClr;break;case 13:t=n.dk1;break;case 14:t=n.lt1;break;case 15:t=n.dk2;break;case 16:t=n.lt2;break;case 1:t=n.tx1;break;case 3:t=n.tx2}return t},e.ToColorSchemeIndex=function(e){var t=4;switch(e){case n.bg1:t=0;break;case n.tx1:t=1;break;case n.bg2:t=2;break;case n.tx2:t=3;break;case n.accent2:t=5;break;case n.accent3:t=6;break;case n.accent4:t=7;break;case n.accent5:t=8;break;case n.accent6:t=9;break;case n.hlink:t=10;break;case n.folHlink:t=11;break;case n.phClr:t=12;break;case n.dk1:t=13;break;case n.lt1:t=14;break;case n.dk2:t=15;break;case n.lt2:t=16}return t},e.ToST_PresetLineDashVal=function(e){return d(e,11,1)},e.ToPatternType=function(e){var t,r=0;return"number"==typeof e&&(t={0:1,1:2,2:3,3:4,4:5,5:6,6:7,7:8,8:9,9:10,10:11,11:12,16:13,17:14,27:15,28:16,34:17,52:18,14:19,15:20,25:21,26:22,36:23,45:24,29:25,30:26,32:27,31:28,19:29,18:30,21:31,20:32,40:33,37:34,41:35,35:36,39:37,53:38,43:39,42:40,44:41,46:42,47:43,48:44,38:45,49:46,50:47,51:48,12:49,13:50,22:51,23:52,24:53,33:54},"number"==typeof t[e]&&(r=t[e])),r},e.ToST_PresetPatternVal=function(e){var t,r=0;return"number"==typeof e&&(t={1:0,2:1,3:2,4:3,5:4,6:5,7:6,8:7,9:8,10:9,11:10,12:11,13:16,14:17,15:27,16:28,17:34,18:52,19:14,20:15,21:25,22:26,23:36,24:45,25:29,26:30,27:32,28:31,29:19,30:18,31:21,32:20,33:40,34:37,35:41,36:35,37:39,38:53,39:43,40:42,41:44,42:46,43:47,44:48,45:38,46:49,47:50,48:51,49:12,50:13,51:22,52:23,53:24,54:33},"number"==typeof t[e]&&(r=t[e])),r},e.ToST_PresetShadowVal=function(e){return e>19?0:e},e.ToST_SplitType=function(e){var t=a.pos;switch(e){case 0:t=a.pos;break;case 1:t=a.val;break;case 2:t=a.percent;break;case 3:t=a.cust}return t},e.ToChartSplitType=function(e){var t=0;switch(e){case a.cust:t=3;break;case a.percent:t=2;break;case a.val:t=1}return t},e.ToST_LightRigDirection=function(e){var t=1;switch(e){case 1:t=4;break;case 2:t=6;break;case 5:t=6;break;case 7:t=3;break;case 8:t=6}return t},e.ToST_MarkerStyle=function(e){return 11===e&&(e=l.circle),e},e.ToST_LegendPos=function(e){var t=0;switch(e){case 0:break;case 1:t=4;break;case 2:t=3;break;case 3:t=2;break;case 5:t=1}return t},e.ToLegendPosition=function(e){var t=4;switch(e){case 1:t=5;break;case 2:t=3;break;case 3:t=2;break;case 4:t=1}return t},e.ToST_PresetCameraType=function(e){return d(e,62,0)},e.ToST_BuiltInUnit=function(e){return e>8&&(e=0),e},e.ToST_Crosses=function(e){var t=0;switch(e){case 2:t=1;break;case 3:t=2}return t},e.ToAxisCrosses=function(e){var t=1;switch(e){case 1:t=2;break;case 2:t=3}return t},e.ToCT_ChartType=function(e){var t=16;switch(e){case s.funnel:t=17;break;case s.paretoLine:t=18;break;case s.regionMap:t=19;break;case s.sunburst:t=20;break;case s.treemap:t=21;break;case s.waterfall:t=22;break;case s.clusteredColumn:t=23}return t},e.ToST_SeriesLayout=function(e){var t=0;switch(e){case 16:t=s.boxWhisker;break;case 17:t=s.funnel;break;case 18:t=s.paretoLine;break;case 19:t=s.regionMap;break;case 20:t=s.sunburst;break;case 21:t=s.treemap;break;case 22:t=s.waterfall;break;case 23:t=s.clusteredColumn}return t},e}(),t.ChartHelper=c},"./src/xlsx-io/common/color-reader.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=r("./src/common/common.ts"),n=r("./src/xml-io/xml-reader.ts");function a(e){var t,r,a=o.ExcelColor.EmptyColor,l=!1,s=-1,c=0,d="",u=-1;if(e&&e instanceof n.XmlReader)for(t=e;t.moveToNextAttribute();)switch(t.readAttributeNameAsString()){case"auto":l=t.readContentAsBoolean(!1);break;case"theme":s=t.readContentAsInt(-1);break;case"tint":c=t.readContentAsDouble(0);break;case"rgb":d=t.readContentAsString();break;case"indexed":u=t.readContentAsInt(-1)}else e&&(l=!!e._attr.auto,e._attr.theme&&(s=parseInt(e._attr.theme,10)),e._attr.tint&&(c=parseFloat(e._attr.tint)),d=e._attr.rgb||"",e._attr.indexed&&(u=parseInt(e._attr.indexed,10)));return l?(a.isAutoColor(!0),a):s!==-1?a=new o.ExcelColor(3,s,c):i.StringEx.L(d)?u>=0?a=new o.ExcelColor(1,u,0):a:(r=parseInt(d,16),a=new o.ExcelColor(2,r,c))}t.readColor=a},"./src/xlsx-io/common/color-writer.ts":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("./src/datamodel/excel-style.ts");function i(e,t,r){void 0!==r&&e.writeLeafElement(t,function(){if(null===r||r.isAutoColor())return void e.writeAttributeString("auto","1");if(r.isIndexedColor())e.writeAttributeString("indexed",""+r.value());else if(r.isThemeColor())e.writeAttributeString("theme",""+r.value()),0!==r.tint()&&e.writeAttributeString("tint",""+r.tint());else if(r.isRGBColor()){var t=r.value().toString(16);e.writeAttributeString("rgb",t.toUpperCase()),0!==r.tint()&&e.writeAttributeString("tint",""+r.tint())}})}t.writeColor=i;function n(e,t,r){r&&e.writeElement(t,void 0,function(){if("a:dk1"===t)4278190080===r.value()?e.writeLeafElement("a:sysClr",function(){e.writeAttributeString("val","windowText"),e.writeAttributeString("lastClr","000000")}):e.writeLeafElement("a:srgbClr",function(){e.writeAttributeString("val",r.value().toString(16).substring(2))});else if("a:lt1"===t)4294967295===r.value()?e.writeLeafElement("a:sysClr",function(){e.writeAttributeString("val","window"),e.writeAttributeString("lastClr","FFFFFF")}):e.writeLeafElement("a:srgbClr",function(){e.writeAttributeString("val",r.value().toString(16).substring(2))});else if(2===r.colorType())e.writeLeafElement("a:srgbClr",function(){e.writeAttributeString("val",r.value().toString(16).substring(2))});else if(3===r.colorType())e.writeLeafElement("a:schemeClr",function(){e.writeAttributeString("val",o.ConverterHelper.toSchemeClrValue(r.value()))});else if(1===r.colorType()){var i=o.ColorHelper.toExcelIndexedColor(r);e.writeLeafElement("a:srgbClr",function(){e.writeAttributeString("val",i&&i.value?i.value().toString(16):"0")})}})}t.writeColorScheme=n},"./src/xlsx-io/common/errorMessage.ts":function(e,t,r){"use strict";var o,i;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i={en:{EXP_IO:"File read and write exception.",EXP_FILE_FORMAT:"Incorrect file format.",EXP_NO_PASSWORD:"The Excel file cannot be opened because the workbook/worksheet is password protected.",EXP_INVALID_PASSWORD:"The specified password is incorrect."},ja:{EXP_IO:"\u30d5\u30a1\u30a4\u30ebIO\u306b\u95a2\u3059\u308b\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002",EXP_FILE_FORMAT:"\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306b\u8aa4\u308a\u304c\u3042\u308a\u307e\u3059\u3002",EXP_NO_PASSWORD:"\u30ef\u30fc\u30af\u30d6\u30c3\u30af/\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u4fdd\u8b77\u3055\u308c\u3066\u3044\u307e\u3059\u3002Excel\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002",EXP_INVALID_PASSWORD:"\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u4e0d\u6b63\u3067\u3059\u3002"},zh:{EXP_IO:"\u6587\u4ef6\u8bfb\u5199\u5f02\u5e38",EXP_FILE_FORMAT:"\u6587\u4ef6\u683c\u5f0f\u9519\u8bef",EXP_NO_PASSWORD:"Excel\u6587\u4ef6\u53d7\u5bc6\u7801\u4fdd\u62a4\uff0c\u65e0\u6cd5\u88ab\u6253\u5f00",EXP_INVALID_PASSWORD:"\u5bc6\u7801\u9519\u8bef"}};function n(){var e=o.Fa()||"en",t=i[e.split("-")[0]];return t?t:i.en}t.sR=n},"./src/xlsx-io/common/errorcode.ts":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorCode={fileIOError:0,fileFormatError:1,noPassword:2,invalidPassword:3}},"./src/xlsx-io/common/file-loader.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/xlsx-io/password/compoundFile.ts"),i=r("./src/xlsx-io/password/xlsxEncryptionHelper.ts"),n=r("./src/xlsx-io/common/errorcode.ts"),a=r("./src/xlsx-io/common/errorMessage.ts"),l=r("./src/lib/jszip.min.js"),s=void 0,c="undefined",d=function(){function e(e){var t=this;if(e===s?t.loadType=1:t.loadType=e,typeof FileReader===c)throw Error("The browser doesn't support FileReader!");t.fileReader=new FileReader,t.passwordFileReader=new FileReader,t.compoundFile=new o.CompoundFile}return e.prototype.loadFile=function(e,t){var r=this,o=r.fileReader;return e instanceof ArrayBuffer?void r.fileLoad(e,t):void(e&&o&&(o.onload=function(e){r.fileLoad(e.target.result,t)},o.onerror=function(){r.ol()},1===r.loadType?o.readAsArrayBuffer?o.readAsArrayBuffer(e):r.loadType=0:o.readAsDataURL&&o.readAsDataURL(e)))},e.prototype.ol=function(){this.onError({errorCode:n.errorCode.fileIOError,errorMessage:a.sR().EXP_IO})},e.prototype.pl=function(){this.onError({errorCode:n.errorCode.fileFormatError,errorMessage:a.sR().EXP_FILE_FORMAT})},e.prototype.ql=function(){this.onError({errorCode:n.errorCode.noPassword,errorMessage:a.sR().EXP_NO_PASSWORD})},e.prototype.rl=function(){this.onError({errorCode:n.errorCode.invalidPassword,errorMessage:a.sR().EXP_INVALID_PASSWORD})},e.prototype.fileLoad=function(e,t){var r,o,n,a,c=this;if(t&&t.password)try{if(e=i.XlsxEncryptionHelper.sl(e,t.password),!e)return void c.rl()}catch(e){return void c.rl()}else if(i.XlsxEncryptionHelper.ul(e))return void c.ql();switch(r=new l,c.loadType){case 1:r.loadAsync(e).then(d).catch(function(){c.pl()});break;case 0:default:o="base64,",n=e.indexOf(o),n!==-1&&(a=e.substring(n+o.length),r.loadAsync(a,{base64:!0}).then(d).catch(function(){c.pl()}))}function d(){var e,t,o,i=r.files,n={};for(e in i)i[e]&&(t=void 0,o=e.substring(e.lastIndexOf(".")),t=".xml"===o||".rels"===o?"text":e.indexOf("/media/")===-1?"binarystring":"base64",i[e].async(t).then(function(e){return function(t){n[e.toLowerCase()]=t;for(var r in i)if(n[r.toLowerCase()]===s)return;c.onFileLoad(n)}}(e)).catch(function(){c.pl()}))}},e}(),t.FileLoader=d},"./src/xlsx-io/password/aes.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;Object.defineProperty(t,"__esModule",{value:!0}),o=null,i=null,n="AES must be instanitated with `new`",a=function(e){var t,r=[];if("number"==typeof e){for(t=0;t=256||"number"!=typeof e[t])throw Error("invalid byte ("+e[t]+":"+t+")");if(e.slice)return e.slice(0);for(t=0;t>8),r.push(255&e);return r},e.prototype.toFixedLengthString=function(){var e=function(){var e,t=[];for(e=0;e>8,255&t,o>>8,255&o])},e.prototype.toNormalizedString=function(){var e=function(){var e,t=[];for(e=0;ei&&(o=e.index,i=e[0].length);return i<0?r:"".concat(r.substring(0,o),"::").concat(r.substring(o+i))},e.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},e}(),r.IPv6.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<16;)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 IPv6 CIDR format (".concat(e,")"))}},r.IPv6.isIPv6=function(e){return null!==this.parser(e)},r.IPv6.isValid=function(e){if("string"==typeof e&&e.indexOf(":")===-1)return!1;try{var t=this.parser(e);return new this(t.parts,t.zoneId),!0}catch(e){return!1}},r.IPv6.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<16;)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 IPv6 CIDR format (".concat(e,")"))}},r.IPv6.parse=function(e){var t=this.parser(e);if(null===t.parts)throw Error("ipaddr: string is not formatted like an IPv6 Address");return new this(t.parts,t.zoneId)},r.IPv6.parseCIDR=function(e){var t,r,o;if((r=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(r[2]),t>=0&&t<=128))return o=[this.parse(r[1]),t],Object.defineProperty(o,"toString",{value:function e(){return this.join("/")}}),o;throw Error("ipaddr: string is not formatted like an IPv6 CIDR range")},r.IPv6.parser=function(e){var t,r,o,i,n,a;if(o=e.match(c.deprecatedTransitional))return this.parser("::ffff:".concat(o[1]));if(c.native.test(e))return d(e,8);if((o=e.match(c.transitional))&&(a=o[6]||"",t=d(o[1].slice(0,-1)+a,6),t.parts)){for(n=[parseInt(o[2]),parseInt(o[3]),parseInt(o[4]),parseInt(o[5])],r=0;r128)throw Error("ipaddr: invalid IPv6 prefix length");for(t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=0,o=Math.floor(e/8);r1&&void 0!==arguments[1]?arguments[1]:1,r=e.charCodeAt(0);return r>=65&&r<=90?e.toLowerCase():r>=97&&r<=122?e.toUpperCase():r>=48&&r<=57?i(48+(r-48+10+t)%10):e}function p(e){var t,r=e.split(""),o=function e(t){return h(t,-1)};for(t=r.length-5;t>=0;t--)b(r,t+1,t+3,o),b(r,t,t+2,o);return r.join("")}function m(e){return e.split("").reverse().join("")}function g(e){var t,r,o,i,n,l,s,c,d,u=[],f="",b=a,h=e,p=h.length%3;if(p>0)for(;p++<3;)f+="=",h+="\0";for(p=0;p>18&63,l=i>>12&63,s=i>>6&63,c=63&i,u[p/3]=b.charAt(n)+b.charAt(l)+b.charAt(s)+b.charAt(c);return d=u.join(""),d=d.slice(0,d.length-f.length)+f}function y(e){var t,r,o,n,l,s,c,d,u,f,b=[],h=a,p=e;for(f=0;f>>16&255,r=d>>>8&255,o=255&d,b[f/4]=i(t,r,o),64==c&&(b[f/4]=i(t,r)),64==s&&(b[f/4]=i(t));return u=b.join("")}function S(e){return(o&&window.atob||y)(e)}function C(e){return(o&&window.btoa||g)(e)}function w(e){return decodeURIComponent(Array.prototype.map.call(S(e),function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function x(e){return C(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return i(parseInt(t,16))}))}function A(e){var t,r;return e?(t=p(e),t=m(t),r=Math.ceil(t.length/2),t=t.substr(r)+t.substr(0,r),t=t.replace("#","="),t=t.replace("&","=="),w(t)):""}d=t.iDe=A;function T(e){var t,r=S(e),o=r.length,i=new n(o);for(t=0;t=0;t--)r=e.charCodeAt(t),i=r+(i<<6)+(i<<16)-i,n=r+((n<<5)+n),a=r+((a<<5)-a),a&=a;return o=i^n^a,o<0&&(o=~o),o.toString(16).toUpperCase()}function E(e){return e&&JSON.parse(e)||void 0}function I(e,t){try{t="#"+t;var r=e.indexOf(t);if(r>-1)return{prefix:e.substring(0,r),licData:JSON.parse(A(e.substr(r+t.length)))}}catch(e){}return!1}function L(e){return"oncomplete"in e&&(e.then=function(t,r){e.resolve=t,e.reject=r},e.oncomplete=function(t){e.resolve(e.result)},e.onerror=function(){e.reject()}),e}u=t.attorn=function e(t,r,i,n){var a,l,s,d,u,f,b,h=o?window.msCrypto?window.msCrypto:window.crypto:void 0,p=I(t,r.aC);if(!p)return n();a=p.licData,l=p.prefix+"#"+r.aC,s=k(T(x(l+JSON.stringify(a.D))));function m(){return R(l+JSON.stringify(a.D))===a.H?i(a.D):n()}return d=A("JYx3Gb#8Pb5R"),u=A("VdgJHc#wJb59"),c[d]&&c[d][u]&&!location.protocol.match(/^https/i)?m():h&&h.subtle?(f={alg:"PS256",e:"AQAB",kty:"RSA",n:F(r.pK)},f=window.msCrypto?v(JSON.stringify(f)):f,b={name:"RSA-PSS",saltLength:32,hash:{name:"SHA-256"}},L(h.subtle.importKey("jwk",f,b,!1,["verify"])).then(function(e){L(h.subtle.verify(b,e,T(a.S),v(s))).then(function(e){return e?i(a.D):n()})},function(){return m()}),void 0):m()}}).call(t,function(){return this}())}]);e.exports={Hk:r.attorn,Ik:r.iDe}},"./src/lc/releaseLc.js":function(e,t,r){var o=r("./src/lc/common.js");e.exports={Ak:1,Bk:o.Bk,zk:o.zk}},"./src/lib/jszip.min.js":function(e,t,r){(function(t,r){var o;!function(t){e.exports=t()}(function(){return function e(t,r,i){function n(l,s){var c,d,u;if(!r[l]){if(!t[l]){if(c="function"==typeof o&&o,!s&&c)return o(l,!0);if(a)return a(l,!0);throw d=Error("Cannot find module '"+l+"'"),d.code="MODULE_NOT_FOUND",d}u=r[l]={exports:{}},t[l][0].call(u.exports,function(e){var r=t[l][1][e];return n(r||e)},u,u.exports,e,t,r,i)}return r[l].exports}for(var a="function"==typeof o&&o,l=0;l>2,l=(3&t)<<4|r>>4,s=1>6:64,c=2>4,r=(15&a)<<4|(l=n.indexOf(e.charAt(u++)))>>2,o=(3&l)<<6|(s=n.indexOf(e.charAt(u++))),c[f++]=t,64!==l&&(c[f++]=r),64!==s&&(c[f++]=o);return c}},{"./support":30,"./utils":32}],2:[function(e,t,r){"use strict";var o=e("./external"),i=e("./stream/DataWorker"),n=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function l(e,t,r,o,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=o,this.compressedContent=i}l.prototype={getContentWorker:function(){var e=new i(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},l.createWorkerFrom=function(e,t,r){return e.pipe(new n).pipe(new a("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=l},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){"use strict";var o=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){"use strict";var o=e("./utils"),i=function(){var e,t,r,o;for(t=[],r=0;r<256;r++){for(e=r,o=0;o<8;o++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==o.getTypeOf(e)?function(e,t,r,o){var n,a=i,l=o+r;for(e^=-1,n=o;n>>8^a[255&(e^t[n])];return-1^e}(0|t,e,e.length,0):function(e,t,r,o){var n,a=i,l=o+r;for(e^=-1,n=o;n>>8^a[255&(e^t.charCodeAt(n))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){"use strict";var o=null;o="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:o}},{lie:37}],7:[function(e,t,r){"use strict";var o="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),n=e("./utils"),a=e("./stream/GenericWorker"),l=o?"uint8array":"array";function s(e,t){a.call(this,"FlateWorker/"+e),this.Lk=null,this.Mk=e,this.Ok=t,this.meta={}}r.magic="\b\0",n.inherits(s,a),s.prototype.processChunk=function(e){this.meta=e.meta,null===this.Lk&&this.Pk(),this.Lk.push(n.transformTo(l,e.data),!1)},s.prototype.flush=function(){a.prototype.flush.call(this),null===this.Lk&&this.Pk(),this.Lk.push([],!0)},s.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.Lk=null},s.prototype.Pk=function(){this.Lk=new i[this.Mk]({raw:!0,level:this.Ok.level||-1});var e=this;this.Lk.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new s("Deflate",e)},r.uncompressWorker=function(){return new s("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){"use strict";function o(e,t){var r,o="";for(r=0;r>>=8;return o}function i(e,t,r,i,a,d){var u,f,b,h,p,m,g=e.file,y=e.compression,S=d!==l.utf8encode,C=n.transformTo("string",d(g.name)),w=n.transformTo("string",l.utf8encode(g.name)),x=g.comment,A=n.transformTo("string",d(x)),T=n.transformTo("string",l.utf8encode(x)),v=w.length!==g.name.length,k=T.length!==x.length,F="",R="",E="",I=g.dir,L=g.date,D={crc32:0,compressedSize:0,uncompressedSize:0};return t&&!r||(D.crc32=e.crc32,D.compressedSize=e.compressedSize,D.uncompressedSize=e.uncompressedSize),b=0,t&&(b|=8),S||!v&&!k||(b|=2048),h=0,p=0,I&&(h|=16),"UNIX"===a?(p=798,h|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(g.unixPermissions,I)):(p=20,h|=function(e){return 63&(e||0)}(g.dosPermissions)),u=L.getUTCHours(),u<<=6,u|=L.getUTCMinutes(),u<<=5,u|=L.getUTCSeconds()/2,f=L.getUTCFullYear()-1980,f<<=4,f|=L.getUTCMonth()+1,f<<=5,f|=L.getUTCDate(),v&&(R=o(1,1)+o(s(C),4)+w,F+="up"+o(R.length,2)+R),k&&(E=o(1,1)+o(s(A),4)+T,F+="uc"+o(E.length,2)+E),m="",m+="\n\0",m+=o(b,2),m+=y.magic,m+=o(u,2),m+=o(f,2),m+=o(D.crc32,4),m+=o(D.compressedSize,4),m+=o(D.uncompressedSize,4),m+=o(C.length,2),m+=o(F.length,2),{fileRecord:c.LOCAL_FILE_HEADER+m+C+F,dirRecord:c.CENTRAL_FILE_HEADER+o(p,2)+m+o(A.length,2)+"\0\0\0\0"+o(h,4)+o(i,4)+C+F+A}}var n=e("../utils"),a=e("../stream/GenericWorker"),l=e("../utf8"),s=e("../crc32"),c=e("../signature");function d(e,t,r,o){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=o,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this.Qk=[]}n.inherits(d,a),d.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,o=this.Qk.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-o-1))/r:100}}))},d.prototype.openedSource=function(e){var t,r;this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name,t=this.streamFiles&&!e.file.dir,t?(r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName),this.push({data:r.fileRecord,meta:{percent:0}})):this.accumulate=!0},d.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+o(e.crc32,4)+o(e.compressedSize,4)+o(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){var e,t,r,i;for(e=this.bytesWritten,t=0;t=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return o.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){"use strict";var o=e("./Uint8ArrayReader");function i(e){o.call(this,e)}e("../utils").inherits(i,o),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){"use strict";var o=e("./DataReader");function i(e){o.call(this,e)}e("../utils").inherits(i,o),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){"use strict";var o=e("./ArrayReader");function i(e){o.call(this,e)}e("../utils").inherits(i,o),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){"use strict";var o=e("../utils"),i=e("../support"),n=e("./ArrayReader"),a=e("./StringReader"),l=e("./NodeBufferReader"),s=e("./Uint8ArrayReader");t.exports=function(e){var t=o.getTypeOf(e);return o.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new l(e):i.uint8array?new s(o.transformTo("uint8array",e)):new n(o.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK\x03\x04",r.CENTRAL_FILE_HEADER="PK\x01\x02",r.CENTRAL_DIRECTORY_END="PK\x05\x06",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,r){"use strict";var o=e("./GenericWorker"),i=e("../utils");function n(e){o.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(n,o),n.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){"use strict";var o=e("./GenericWorker"),i=e("../crc32");function n(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(n,o),n.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){"use strict";var o=e("../utils"),i=e("./GenericWorker");function n(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}o.inherits(n,i),n.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){"use strict";var o=e("../utils"),i=e("./GenericWorker");function n(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this.Xk=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=o.getTypeOf(e),t.isPaused||t.Yk()},function(e){t.error(e)})}o.inherits(n,i),n.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this.Xk&&this.dataIsReady&&(this.Xk=!0,o.delay(this.Yk,[],this)),!0)},n.prototype.Yk=function(){this.Xk=!1,this.isPaused||this.isFinished||(this.Zk(),this.isFinished||(o.delay(this.Yk,[],this),this.Xk=!0))},n.prototype.Zk=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array": +e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){"use strict";function o(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this.$k={data:[],end:[],error:[]},this.previous=null}o.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this.$k[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this.$k=[]},emit:function(e,t){if(this.$k[e])for(var r=0;r "+e:e}},t.exports=o},{}],29:[function(e,t,r){"use strict";var o=e("../utils"),i=e("./ConvertWorker"),n=e("./GenericWorker"),a=e("../base64"),l=e("../support"),s=e("../external"),c=null;if(l.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function d(e,t){return new s.Promise(function(r,i){var n=[],l=e._k,s=e.al,c=e.cl;e.on("data",function(e,r){n.push(e),t&&t(r)}).on("error",function(e){n=[],i(e)}).on("end",function(){try{var e=function(e,t,r){switch(e){case"blob":return o.newBlob(o.transformTo("arraybuffer",t),r);case"base64":return a.encode(t);default:return o.transformTo(e,t)}}(s,function(e,t){var r,o=0,i=null,n=0;for(r=0;r>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t}(e)},r.utf8decode=function(e){return i.nodebuffer?o.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,n,a=e.length,s=Array(2*a);for(t=r=0;t>10&1023,s[r++]=56320|1023&i)}return s.length!==r&&(s.subarray?s=s.subarray(0,r):s.length=r),o.applyFromCharCode(s)}(e=o.transformTo(i.uint8array?"uint8array":"array",e))},o.inherits(c,a),c.prototype.processChunk=function(e){var t,n,a,s=o.transformTo(i.uint8array?"uint8array":"array",e.data);this.leftOver&&this.leftOver.length&&(i.uint8array?(t=s,(s=new Uint8Array(t.length+this.leftOver.length)).set(this.leftOver,0),s.set(t,this.leftOver.length)):s=this.leftOver.concat(s),this.leftOver=null),n=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+l[e[r]]>t?r:t}(s),a=s,n!==s.length&&(i.uint8array?(a=s.subarray(0,n),this.leftOver=s.subarray(n,s.length)):(a=s.slice(0,n),this.leftOver=s.slice(n,s.length))),this.push({data:r.utf8decode(a),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,o.inherits(d,a),d.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,r,o){"use strict";var i,n,a=e("./support"),l=e("./base64"),s=e("./nodejsUtils"),c=e("./external");function d(e){return e}function u(e,t){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=o(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,o,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t},r.buf2binstring=function(e){return s(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,o=t.length;r>10&1023,c[i++]=56320|1023&n)}return s(c,i)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+o[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){"use strict";t.exports=function(e,t,r,o){for(var i=65535&e|0,n=e>>>16&65535|0,a=0;0!==r;){for(r-=a=2e3>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var n,a=o,l=i+r;for(e^=-1,n=i;n>>8^a[255&(e^t[n])];return-1^e}},{}],46:[function(e,t,r){"use strict";var o,i=e("../utils/common"),n=e("./trees"),a=e("./adler32"),l=e("./crc32"),s=e("./messages"),c=0,d=4,u=0,f=-2,b=-1,h=4,p=2,m=8,g=9,y=286,S=30,C=19,w=2*y+1,x=15,A=3,T=258,v=T+A+1,k=42,F=113,R=1,E=2,I=3,L=4;function D(e,t){return e.msg=s[t],t}function B(e){return(e<<1)-(4e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function _(e,t){n.jl(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,W(e.strm)}function N(e,t){e.pending_buf[e.pending++]=t}function M(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function O(e,t){var r,o,i=e.max_chain_length,n=e.strstart,a=e.prev_length,l=e.nice_match,s=e.strstart>e.w_size-v?e.strstart-(e.w_size-v):0,c=e.window,d=e.w_mask,u=e.prev,f=e.strstart+T,b=c[n+a-1],h=c[n+a];e.prev_length>=e.good_match&&(i>>=2),l>e.lookahead&&(l=e.lookahead);do if(c[(r=t)+a]===h&&c[r+a-1]===b&&c[r]===c[n]&&c[++r]===c[n+1]){n+=2,r++;do;while(c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&ns&&0!=--i);return a<=e.lookahead?a:e.lookahead}function H(e){var t,r,o,n,s,c,d,u,f,b,h=e.w_size;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=h+(h-v)){for(i.arraySet(e.window,e.window,h,h,0),e.match_start-=h,e.strstart-=h,e.block_start-=h,t=r=e.hash_size;o=e.head[--t],e.head[t]=h<=o?o-h:0,--r;);for(t=r=h;o=e.prev[--t],e.prev[t]=h<=o?o-h:0,--r;);n+=h}if(0===e.strm.avail_in)break;if(c=e.strm,d=e.window,u=e.strstart+e.lookahead,f=n,b=void 0,b=c.avail_in,f=A)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<=A&&(e.ins_h=(e.ins_h<=A)if(o=n.kl(e,e.strstart-e.match_start,e.match_length-A),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=A){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=A&&(e.ins_h=(e.ins_h<=A&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-A,o=n.kl(e,e.strstart-1-e.prev_match,e.prev_length-A),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(o=e.pending_buf_size-5);;){if(e.lookahead<=1){if(H(e),0===e.lookahead&&t===c)return R;if(0===e.lookahead)break}if(e.strstart+=e.lookahead,e.lookahead=0,r=e.block_start+o,(0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,_(e,!1),0===e.strm.avail_out))return R;if(e.strstart-e.block_start>=e.w_size-v&&(_(e,!1),0===e.strm.avail_out))return R}return e.insert=0,t===d?(_(e,!0),0===e.strm.avail_out?I:L):(e.strstart>e.block_start&&(_(e,!1),e.strm.avail_out),R)}),new J(4,4,8,4,G),new J(4,5,16,8,G),new J(4,6,32,32,G),new J(4,4,16,16,U),new J(8,16,32,32,U),new J(8,16,128,128,U),new J(8,32,128,256,U),new J(32,128,258,1024,U),new J(32,258,258,4096,U)],r.deflateInit=function(e,t){return X(e,t,m,15,8,0)},r.deflateInit2=X,r.deflateReset=j,r.deflateResetKeep=V,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?f:(e.state.gzhead=t,u):f},r.deflate=function(e,t){var r,i,a,s,b,h;if(!e||!e.state||5>8&255),N(i,i.gzhead.time>>16&255),N(i,i.gzhead.time>>24&255),N(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),N(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(N(i,255&i.gzhead.extra.length),N(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=l(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(N(i,0),N(i,0),N(i,0),N(i,0),N(i,0),N(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),N(i,3),i.status=F)):(b=m+(i.w_bits-8<<4)<<8,b|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(b|=32),b+=31-b%31,i.status=F,M(i,b),0!==i.strstart&&(M(i,e.adler>>>16),M(i,65535&e.adler)),e.adler=1)),69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=l(e.adler,i.pending_buf,i.pending-a,a)),W(e),a=i.pending,i.pending!==i.pending_buf_size));)N(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=l(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=l(e.adler,i.pending_buf,i.pending-a,a)),W(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}s=i.gzindexa&&(e.adler=l(e.adler,i.pending_buf,i.pending-a,a)),0===s&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=l(e.adler,i.pending_buf,i.pending-a,a)),W(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}s=i.gzindexa&&(e.adler=l(e.adler,i.pending_buf,i.pending-a,a)),0===s&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&W(e),i.pending+2<=i.pending_buf_size&&(N(i,255&e.adler),N(i,e.adler>>8&255),e.adler=0,i.status=F)):i.status=F),0!==i.pending){if(W(e),0===e.avail_out)return i.last_flush=-1,u}else if(0===e.avail_in&&B(t)<=B(r)&&t!==d)return D(e,-5);if(666===i.status&&0!==e.avail_in)return D(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==c&&666!==i.status){if(h=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(H(e),0===e.lookahead)){if(t===c)return R;break}if(e.match_length=0,r=n.kl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(_(e,!1),0===e.strm.avail_out))return R}return e.insert=0,t===d?(_(e,!0),0===e.strm.avail_out?I:L):e.last_lit&&(_(e,!1),0===e.strm.avail_out)?R:E}(i,t):3===i.strategy?function(e,t){for(var r,o,i,a,l=e.window;;){if(e.lookahead<=T){if(H(e),e.lookahead<=T&&t===c)return R;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=A&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=A?(r=n.kl(e,1,e.match_length-A),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=n.kl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(_(e,!1),0===e.strm.avail_out))return R}return e.insert=0,t===d?(_(e,!0),0===e.strm.avail_out?I:L):e.last_lit&&(_(e,!1),0===e.strm.avail_out)?R:E}(i,t):o[i.level].func(i,t),h!==I&&h!==L||(i.status=666),h===R||h===I)return 0===e.avail_out&&(i.last_flush=-1),u;if(h===E&&(1===t?n.ml(i):5!==t&&(n.nl(i,0,0,!1),3===t&&(P(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),W(e),0===e.avail_out))return i.last_flush=-1,u}return t!==d?u:i.wrap<=0?1:(2===i.wrap?(N(i,255&e.adler),N(i,e.adler>>8&255),N(i,e.adler>>16&255),N(i,e.adler>>24&255),N(i,255&e.total_in),N(i,e.total_in>>8&255),N(i,e.total_in>>16&255),N(i,e.total_in>>24&255)):(M(i,e.adler>>>16),M(i,65535&e.adler)),W(e),0=r.w_size&&(0===l&&(P(r.head),r.strstart=0,r.block_start=0,r.insert=0),b=new i.Buf8(r.w_size),i.arraySet(b,t,h-r.w_size,r.w_size,0),t=b,h=r.w_size),s=e.avail_in,c=e.next_in,d=e.input,e.avail_in=h,e.next_in=0,e.input=t,H(r);r.lookahead>=A;){for(o=r.strstart,n=r.lookahead-(A-1);r.ins_h=(r.ins_h<>>=C=S>>>24,h-=C,0===(C=S>>>16&255))k[n++]=65535&S;else{if(!(16&C)){if(0==(64&C)){S=p[(65535&S)+(b&(1<>>=C,h-=C),h<15&&(b+=v[o++]<>>=C=S>>>24,h-=C,!(16&(C=S>>>16&255))){if(0==(64&C)){S=m[(65535&S)+(b&(1<>>=C,h-=C,(C=n-a)>3,b&=(1<<(h-=w<<3))-1,e.next_in=o,e.next_out=n,e.avail_in=o>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function S(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new a.Buf16(320),this.work=new a.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function C(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=p,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new a.Buf32(m),t.distcode=t.distdyn=new a.Buf32(g),t.sane=1,t.back=-1,b):h}function w(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,C(e)):h}function x(e,t){var r,o;return e&&e.state?(o=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=n.wsize?(a.arraySet(n.window,t,r-n.wsize,n.wsize,0),n.wnext=0,n.whave=n.wsize):(o<(i=n.wsize-n.wnext)&&(i=o),a.arraySet(n.window,t,r-o,i,n.wnext),(o-=i)?(a.arraySet(n.window,t,r-o,o,0),n.wnext=o,n.whave=n.wsize):(n.wnext+=i,n.wnext===n.wsize&&(n.wnext=0),n.whave>>8&255,r.check=s(r.check,H,2,0),w=C=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&C)<<8)+(C>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&C)){e.msg="unknown compression method",r.mode=30;break}if(w-=4,W=8+(15&(C>>>=4)),0===r.wbits)r.wbits=W;else if(W>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(H[0]=255&C,H[1]=C>>>8&255,r.check=s(r.check,H,2,0)),w=C=0,r.mode=3;case 3:for(;w<32;){if(0===g)break e;g--,C+=o[n++]<>>8&255,H[2]=C>>>16&255,H[3]=C>>>24&255,r.check=s(r.check,H,4,0)),w=C=0,r.mode=4;case 4:for(;w<16;){if(0===g)break e;g--,C+=o[n++]<>8),512&r.flags&&(H[0]=255&C,H[1]=C>>>8&255,r.check=s(r.check,H,2,0)),w=C=0,r.mode=5;case 5:if(1024&r.flags){for(;w<16;){if(0===g)break e;g--,C+=o[n++]<>>8&255,r.check=s(r.check,H,2,0)),w=C=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(g<(k=r.length)&&(k=g),k&&(r.head&&(W=r.head.extra_len-r.length,r.head.extra||(r.head.extra=Array(r.head.extra_len)),a.arraySet(r.head.extra,o,n,k,W)),512&r.flags&&(r.check=s(r.check,o,k,n)),g-=k,n+=k,r.length-=k),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===g)break e;for(k=0;W=o[n+k++],r.head&&W&&r.length<65536&&(r.head.name+=String.fromCharCode(W)),W&&k>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;w<32;){if(0===g)break e;g--,C+=o[n++]<>>=7&w,w-=7&w,r.mode=27;break}for(;w<3;){if(0===g)break e;g--,C+=o[n++]<>>=1)){case 0:r.mode=14;break;case 1:if(T(r),r.mode=20,6!==t)break;C>>>=2,w-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}C>>>=2,w-=2;break;case 14:for(C>>>=7&w,w-=7&w;w<32;){if(0===g)break e;g--,C+=o[n++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&C,w=C=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(k=r.length){if(g>>=5,w-=5,r.ndist=1+(31&C),C>>>=5,w-=5,r.ncode=4+(15&C),C>>>=4,w-=4,286>>=3,w-=3}for(;r.have<19;)r.lens[G[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,N={bits:r.lenbits},_=d(0,r.lens,0,19,r.lencode,0,r.work,N),r.lenbits=N.bits,_){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,L=65535&O,!((E=O>>>24)<=w);){if(0===g)break e;g--,C+=o[n++]<>>=E,w-=E,r.lens[r.have++]=L;else{if(16===L){for(M=E+2;w>>=E,w-=E,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}W=r.lens[r.have-1],k=3+(3&C),C>>>=2,w-=2}else if(17===L){for(M=E+3;w>>=E)),C>>>=3,w-=3}else{for(M=E+7;w>>=E)),C>>>=7,w-=7}if(r.have+k>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;k--;)r.lens[r.have++]=W}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,N={bits:r.lenbits},_=d(u,r.lens,0,r.nlen,r.lencode,0,r.work,N),r.lenbits=N.bits,_){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,N={bits:r.distbits},_=d(f,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,N),r.distbits=N.bits,_){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=g&&258<=S){e.next_out=m,e.avail_out=S,e.next_in=n,e.avail_in=g,r.hold=C,r.bits=w,c(e,A),m=e.next_out,i=e.output,S=e.avail_out,n=e.next_in,o=e.input,g=e.avail_in,C=r.hold,w=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;I=(O=r.lencode[C&(1<>>16&255,L=65535&O,!((E=O>>>24)<=w);){if(0===g)break e;g--,C+=o[n++]<>D)])>>>16&255,L=65535&O,!(D+(E=O>>>24)<=w);){if(0===g)break e;g--,C+=o[n++]<>>=D,w-=D,r.back+=D}if(C>>>=E,w-=E,r.back+=E,r.length=L,0===I){r.mode=26;break}if(32&I){r.back=-1,r.mode=12;break}if(64&I){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&I,r.mode=22;case 22:if(r.extra){for(M=r.extra;w>>=r.extra,w-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;I=(O=r.distcode[C&(1<>>16&255,L=65535&O,!((E=O>>>24)<=w);){if(0===g)break e;g--,C+=o[n++]<>D)])>>>16&255,L=65535&O,!(D+(E=O>>>24)<=w);){if(0===g)break e;g--,C+=o[n++]<>>=D,w-=D,r.back+=D}if(C>>>=E,w-=E,r.back+=E,64&I){e.msg="invalid distance code",r.mode=30;break}r.offset=L,r.extra=15&I,r.mode=24;case 24:if(r.extra){for(M=r.extra;w>>=r.extra,w-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===S)break e;if(k=A-S,r.offset>k){if((k=r.offset-k)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}F=k>r.wnext?(k-=r.wnext,r.wsize-k):r.wnext-k,k>r.length&&(k=r.length),R=r.window}else R=i,F=m-r.offset,k=r.length;for(Sy?(C=N[M+u[T]],B[P+u[T]]):(C=96,0),b=1<>E)+(h-=b)]=S<<24|C<<16|w|0,0!==h;);for(b=1<>=1;if(0!==b?(D&=b-1,D+=b):D=0,T++,0==--W[A]){if(A===k)break;A=t[r+u[T]]}if(F>>7)]}function M(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function O(e,t,r){e.bi_valid>u-r?(e.bi_buf|=t<>u-e.bi_valid,e.bi_valid+=r-u):(e.bi_buf|=t<>>=1,r<<=1,0<--t;);return r>>>1}function U(e,t,r){var o,i,n,a=Array(d+1),l=0;for(o=1;o<=d;o++)a[o]=l=l+r[o-1]<<1;for(i=0;i<=t;i++)n=e[2*i+1],0!==n&&(e[2*i]=G(a[n]++,n))}function J(e){var t;for(t=0;t>1;1<=r;r--)j(e,n,r);for(i=s;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],j(e,n,1),o=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=o,n[2*i]=n[2*r]+n[2*o],e.depth[i]=(e.depth[r]>=e.depth[o]?e.depth[r]:e.depth[o])+1,n[2*r+1]=n[2*o+1]=i,e.heap[1]=i++,j(e,n,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,o,i,n,a,l,s=t.dyn_tree,u=t.max_code,f=t.stat_desc.static_tree,b=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,m=t.stat_desc.max_length,g=0;for(n=0;n<=d;n++)e.bl_count[n]=0;for(s[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r>=7;o>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return D;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return B;for(t=32;t>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==t?Q(e,t,r,o):4===e.strategy||a===i?(O(e,2+(o?1:0),3),X(e,w,x)):(O(e,4+(o?1:0),3),function(e,t,r,o){var i;for(O(e,t-257,5),O(e,r-1,5),O(e,o-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(T[r]+n+1)]++,e.dyn_dtree[2*N(t)]++),e.last_lit===e.lit_bufsize-1},r.ml=function(e){O(e,2,3),H(e,b,w),function(e){16===e.bi_valid?(M(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,o){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var o,i,n,a,l=1,s={},c=!1,d=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,o="[object process]"==={}.toString.call(e.process)?function(e){r.nextTick(function(){b(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(a="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",h,!1):e.attachEvent("onmessage",h),function(t){e.postMessage(a+t,"*")}):e.MessageChannel?((n=new MessageChannel).port1.onmessage=function(e){b(e.data)},function(e){n.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,function(e){var t=d.createElement("script");t.onreadystatechange=function(){b(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):function(e){setTimeout(b,0,e)},u.setImmediate=function(e){var t,r,i;for("function"!=typeof e&&(e=Function(""+e)),t=Array(arguments.length-1),r=0;r19?0:e},e.ToST_SplitType=function(e){var t=a.pos;switch(e){case 0:t=a.pos;break;case 1:t=a.val;break;case 2:t=a.percent;break;case 3:t=a.cust}return t},e.ToChartSplitType=function(e){var t=0;switch(e){case a.cust:t=3;break;case a.percent:t=2;break;case a.val:t=1}return t},e.ToST_LightRigDirection=function(e){var t=1;switch(e){case 1:t=4;break;case 2:t=6;break;case 5:t=6;break;case 7:t=3;break;case 8:t=6}return t},e.ToST_MarkerStyle=function(e){return 11===e&&(e=l.circle),e},e.ToST_LegendPos=function(e){var t=0;switch(e){case 0:break;case 1:t=4;break;case 2:t=3;break;case 3:t=2;break;case 5:t=1}return t},e.ToLegendPosition=function(e){var t=4;switch(e){case 1:t=5;break;case 2:t=3;break;case 3:t=2;break;case 4:t=1}return t},e.ToST_PresetCameraType=function(e){return d(e,62,0)},e.ToST_BuiltInUnit=function(e){return e>8&&(e=0),e},e.ToST_Crosses=function(e){var t=0;switch(e){case 2:t=1;break;case 3:t=2}return t},e.ToAxisCrosses=function(e){var t=1;switch(e){case 1:t=2;break;case 2:t=3}return t},e.ToCT_ChartType=function(e){var t=16;switch(e){case s.funnel:t=17;break;case s.paretoLine:t=18;break;case s.regionMap:t=19;break;case s.sunburst:t=20;break;case s.treemap:t=21;break;case s.waterfall:t=22;break;case s.clusteredColumn:t=23}return t},e.ToST_SeriesLayout=function(e){var t=0;switch(e){case 16:t=s.boxWhisker;break;case 17:t=s.funnel;break;case 18:t=s.paretoLine;break;case 19:t=s.regionMap;break;case 20:t=s.sunburst;break;case 21:t=s.treemap;break;case 22:t=s.waterfall;break;case 23:t=s.clusteredColumn}return t},e}(),t.ChartHelper=c},"./src/xlsx-io/common/color-reader.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=r("./src/common/common.ts"),n=r("./src/xml-io/xml-reader.ts");function a(e){var t,r,a=o.ExcelColor.EmptyColor,l=!1,s=-1,c=0,d="",u=-1;if(e&&e instanceof n.XmlReader)for(t=e;t.moveToNextAttribute();)switch(t.readAttributeNameAsString()){case"auto":l=t.readContentAsBoolean(!1);break;case"theme":s=t.readContentAsInt(-1);break;case"tint":c=t.readContentAsDouble(0);break;case"rgb":d=t.readContentAsString();break;case"indexed":u=t.readContentAsInt(-1)}else e&&(l=!!e._attr.auto,e._attr.theme&&(s=parseInt(e._attr.theme,10)),e._attr.tint&&(c=parseFloat(e._attr.tint)),d=e._attr.rgb||"",e._attr.indexed&&(u=parseInt(e._attr.indexed,10)));return l?(a.isAutoColor(!0),a):s!==-1?a=new o.ExcelColor(3,s,c):i.StringEx.L(d)?u>=0?a=new o.ExcelColor(1,u,0):a:(r=parseInt(d,16),a=new o.ExcelColor(2,r,c))}t.readColor=a},"./src/xlsx-io/common/color-writer.ts":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("./src/datamodel/excel-style.ts");function i(e,t,r){void 0!==r&&e.writeLeafElement(t,function(){if(null===r||r.isAutoColor())return void e.writeAttributeString("auto","1");if(r.isIndexedColor())e.writeAttributeString("indexed",""+r.value());else if(r.isThemeColor())e.writeAttributeString("theme",""+r.value()),0!==r.tint()&&e.writeAttributeString("tint",""+r.tint());else if(r.isRGBColor()){var t=r.value().toString(16);e.writeAttributeString("rgb",t.toUpperCase()),0!==r.tint()&&e.writeAttributeString("tint",""+r.tint())}})}t.writeColor=i;function n(e,t,r){r&&e.writeElement(t,void 0,function(){if("a:dk1"===t)4278190080===r.value()?e.writeLeafElement("a:sysClr",function(){e.writeAttributeString("val","windowText"),e.writeAttributeString("lastClr","000000")}):e.writeLeafElement("a:srgbClr",function(){e.writeAttributeString("val",r.value().toString(16).substring(2))});else if("a:lt1"===t)4294967295===r.value()?e.writeLeafElement("a:sysClr",function(){e.writeAttributeString("val","window"),e.writeAttributeString("lastClr","FFFFFF")}):e.writeLeafElement("a:srgbClr",function(){e.writeAttributeString("val",r.value().toString(16).substring(2))});else if(2===r.colorType())e.writeLeafElement("a:srgbClr",function(){e.writeAttributeString("val",r.value().toString(16).substring(2))});else if(3===r.colorType())e.writeLeafElement("a:schemeClr",function(){e.writeAttributeString("val",o.ConverterHelper.toSchemeClrValue(r.value()))});else if(1===r.colorType()){var i=o.ColorHelper.toExcelIndexedColor(r);e.writeLeafElement("a:srgbClr",function(){e.writeAttributeString("val",i&&i.value?i.value().toString(16):"0")})}})}t.writeColorScheme=n},"./src/xlsx-io/common/errorMessage.ts":function(e,t,r){"use strict";var o,i;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i={en:{EXP_IO:"File read and write exception.",EXP_FILE_FORMAT:"Incorrect file format.",EXP_NO_PASSWORD:"The Excel file cannot be opened because the workbook/worksheet is password protected.",EXP_INVALID_PASSWORD:"The specified password is incorrect."},ja:{EXP_IO:"\u30d5\u30a1\u30a4\u30ebIO\u306b\u95a2\u3059\u308b\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002",EXP_FILE_FORMAT:"\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306b\u8aa4\u308a\u304c\u3042\u308a\u307e\u3059\u3002",EXP_NO_PASSWORD:"\u30ef\u30fc\u30af\u30d6\u30c3\u30af/\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u4fdd\u8b77\u3055\u308c\u3066\u3044\u307e\u3059\u3002Excel\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002",EXP_INVALID_PASSWORD:"\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u4e0d\u6b63\u3067\u3059\u3002"},zh:{EXP_IO:"\u6587\u4ef6\u8bfb\u5199\u5f02\u5e38",EXP_FILE_FORMAT:"\u6587\u4ef6\u683c\u5f0f\u9519\u8bef",EXP_NO_PASSWORD:"Excel\u6587\u4ef6\u53d7\u5bc6\u7801\u4fdd\u62a4\uff0c\u65e0\u6cd5\u88ab\u6253\u5f00",EXP_INVALID_PASSWORD:"\u5bc6\u7801\u9519\u8bef"}};function n(){var e=o.Fa()||"en",t=i[e.split("-")[0]];return t?t:i.en}t.sR=n},"./src/xlsx-io/common/errorcode.ts":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorCode={fileIOError:0,fileFormatError:1,noPassword:2,invalidPassword:3}},"./src/xlsx-io/common/file-loader.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/xlsx-io/password/compoundFile.ts"),i=r("./src/xlsx-io/password/xlsxEncryptionHelper.ts"),n=r("./src/xlsx-io/common/errorcode.ts"),a=r("./src/xlsx-io/common/errorMessage.ts"),l=r("./src/lib/jszip.min.js"),s=void 0,c="undefined",d=function(){function e(e){var t=this;if(e===s?t.loadType=1:t.loadType=e,typeof FileReader===c)throw Error("The browser doesn't support FileReader!");t.fileReader=new FileReader,t.passwordFileReader=new FileReader,t.compoundFile=new o.CompoundFile}return e.prototype.loadFile=function(e,t){var r=this,o=r.fileReader;return e instanceof ArrayBuffer?void r.fileLoad(e,t):void(e&&o&&(o.onload=function(e){r.fileLoad(e.target.result,t)},o.onerror=function(){r.ol()},1===r.loadType?o.readAsArrayBuffer?o.readAsArrayBuffer(e):r.loadType=0:o.readAsDataURL&&o.readAsDataURL(e)))},e.prototype.ol=function(){this.onError({errorCode:n.errorCode.fileIOError,errorMessage:a.sR().EXP_IO})},e.prototype.pl=function(){this.onError({errorCode:n.errorCode.fileFormatError,errorMessage:a.sR().EXP_FILE_FORMAT})},e.prototype.ql=function(){this.onError({errorCode:n.errorCode.noPassword,errorMessage:a.sR().EXP_NO_PASSWORD})},e.prototype.rl=function(){this.onError({errorCode:n.errorCode.invalidPassword,errorMessage:a.sR().EXP_INVALID_PASSWORD})},e.prototype.fileLoad=function(e,t){var r,o,n,a,c=this;if(t&&t.password)try{if(e=i.XlsxEncryptionHelper.sl(e,t.password),!e)return void c.rl()}catch(e){return void c.rl()}else if(i.XlsxEncryptionHelper.ul(e))return void c.ql();switch(r=new l,c.loadType){case 1:r.loadAsync(e).then(d).catch(function(){c.pl()});break;case 0:default:o="base64,",n=e.indexOf(o),n!==-1&&(a=e.substring(n+o.length),r.loadAsync(a,{base64:!0}).then(d).catch(function(){c.pl()}))}function d(){var e,t,o,i=r.files,n={};for(e in i)i[e]&&(t=void 0,o=e.substring(e.lastIndexOf(".")),t=".xml"===o||".rels"===o?"text":e.indexOf("/media/")===-1?"binarystring":"base64",i[e].async(t).then(function(e){return function(t){n[e.toLowerCase()]=t;for(var r in i)if(n[r.toLowerCase()]===s)return;c.onFileLoad(n)}}(e)).catch(function(){c.pl()}))}},e}(),t.FileLoader=d},"./src/xlsx-io/password/aes.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;Object.defineProperty(t,"__esModule",{value:!0}),o=null,i=null,n="AES must be instanitated with `new`",a=function(e){var t,r=[];if("number"==typeof e){for(t=0;t=256||"number"!=typeof e[t])throw Error("invalid byte ("+e[t]+":"+t+")");if(e.slice)return e.slice(0);for(t=0;t>2,this.wl[i][e%4]=o[e],this.xl[b-i][e%4]=o[e];for(n=0,a=r;a>16&255]<<24^c[d>>8&255]<<16^c[255&d]<<8^c[d>>24&255]^s[n]<<24,n+=1,8!==r)for(e=1;e>8&255]<<8^c[d>>16&255]<<16^c[d>>24&255]<<24,e=r/2+1;e>2,f=a%4,this.wl[u][f]=o[e],this.xl[b-u][f]=o[e],e++,a++}for(u=1;u>24&255]^C[d>>16&255]^w[d>>8&255]^x[255&d]},A.prototype.encrypt=function(e){var t,r,i,n,a,l,s;if(16!==e.length)throw Error("invalid plaintext size (must be 16 bytes)");for(t=this.wl.length-1,r=[0,0,0,0],i=F(e),n=0;n<4;n++)i[n]^=this.wl[0][n];for(a=1;a>24&255]^f[i[(n+1)%4]>>16&255]^b[i[(n+2)%4]>>8&255]^h[255&i[(n+3)%4]]^this.wl[a][n];i=r.slice(0)}for(l=o(16),n=0;n<4;n++)s=this.wl[t][n],l[4*n]=255&(c[i[n]>>24&255]^s>>24),l[4*n+1]=255&(c[i[(n+1)%4]>>16&255]^s>>16),l[4*n+2]=255&(c[i[(n+2)%4]>>8&255]^s>>8),l[4*n+3]=255&(c[255&i[(n+3)%4]]^s);return l},A.prototype.decrypt=function(e){var t,r,i,n,a,l,s;if(16!==e.length)throw Error("invalid ciphertext size (must be 16 bytes)");for(t=this.xl.length-1,r=[0,0,0,0],i=F(e),n=0;n<4;n++)i[n]^=this.xl[0][n];for(a=1;a>24&255]^m[i[(n+3)%4]>>16&255]^g[i[(n+2)%4]>>8&255]^y[255&i[(n+1)%4]]^this.xl[a][n];i=r.slice(0)}for(l=o(16),n=0;n<4;n++)s=this.xl[t][n],l[4*n]=255&(d[i[n]>>24&255]^s>>24),l[4*n+1]=255&(d[i[(n+3)%4]>>16&255]^s>>16),l[4*n+2]=255&(d[i[(n+2)%4]>>8&255]^s>>8),l[4*n+3]=255&(d[255&i[(n+1)%4]]^s);return l},T=function(e){if(!(this instanceof T))throw Error(n);this.description="Electronic Code Block",this.name="ecb",this.yl=new A(e)},T.prototype.encrypt=function(e){var t,r,n;if(e.length%16!==0)throw Error("invalid plaintext size (must be multiple of 16 bytes)");for(t=o(e.length),r=o(16),n=0;n>>0]);return o}function m(e,t){var r=[];do e--,r[e]=255&t,t>>=8;while(e);return r.reverse()}function g(e){var t,r,o=[];for(r=0;r>8);return o}function y(e,t,r){var o,i,n=l;for("SHA1"===r&&(n=s),o=[],i=0;i6&&a%r===4&&(l=F(l)),c[a][0]=(c[a-r][0]^l[0])%256,c[a][1]=(c[a-r][1]^l[1])%256,c[a][2]=(c[a-r][2]^l[2])%256,c[a][3]=(c[a-r][3]^l[3])%256;return c}function F(e,t){var r=[];return r[0]=t[e[0]>>4][15&e[0]],r[1]=t[e[1]>>4][15&e[1]],r[2]=t[e[2]>>4][15&e[2]],r[3]=t[e[3]>>4][15&e[3]],r}function R(e){var t=[];return t[0]=e[1],t[1]=e[2],t[2]=e[3],t[3]=e[0],t}function E(e){return e}function I(e){return e<128?(e<<1)%256:(e<<1^27)%256}function L(e){return(I(e)^e)%256}function D(e){return(I(I(I(e)))^e)%256}function B(e){return(I(I(I(e)))^I(e)^e)%256}function P(e){return(I(I(I(e)))^I(I(e))^e)%256}function W(e){return(I(I(I(e)))^I(I(e))^I(e))%256}function _(e){var t,r,o=[];for(t=0;t<128;t++)o[t]=0;return o.Bl=0,r=w(o),r.writeBytes(p("Root Entry")),r.seek(64,d.Begin),r.writeShort(22),r.writeByte(5),r.writeByte(0),r.writeInt(-1),r.writeInt(-1),r.writeInt(1),r.seek(100,d.Begin),r.writeInt(0),r.writeInt(0),r.writeInt(0),r.writeInt(0),r.writeInt(e),r.writeInt(832),r.getView()}function N(){var e,t,r=[];for(e=0;e<128;e++)r[e]=0;return r.Bl=0,t=w(r),t.writeBytes(p("EncryptionInfo")),t.seek(64,d.Begin),t.writeShort(30),t.writeByte(2),t.writeByte(1),t.writeInt(3),t.writeInt(2),t.writeInt(-1),t.seek(100,d.Begin),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(248),t.getView()}function M(e,t){var r,o,i=[];for(r=0;r<128;r++)i[r]=0;return i.Bl=0,o=w(i),o.writeBytes(p("EncryptedPackage")),o.seek(64,d.Begin),o.writeShort(34),o.writeByte(2),o.writeByte(0),o.writeInt(-1),o.writeInt(-1),o.writeInt(-1),o.seek(100,d.Begin),o.writeInt(0),o.writeInt(0), o.writeInt(0),o.writeInt(0),o.writeInt(e),o.writeInt(t),o.getView()}function O(){var e,t,r=[];for(e=0;e<128;e++)r[e]=0;return r.Bl=0,t=w(r),t.writeShort(6),t.writeBytes(p("DataSpaces")),t.seek(64,d.Begin),t.writeShort(24),t.writeByte(1),t.writeByte(0),t.writeInt(-1),t.writeInt(-1),t.writeInt(5),t.seek(100,d.Begin),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.getView()}function H(){var e,t,r=[];for(e=0;e<128;e++)r[e]=0;return r.Bl=0,t=w(r),t.writeBytes(p("Version")),t.seek(64,d.Begin),t.writeShort(16),t.writeByte(2),t.writeByte(1),t.writeInt(-1),t.writeInt(-1),t.writeInt(-1),t.seek(100,d.Begin),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(4),t.writeInt(76),t.getView()}function G(){var e,t,r=[];for(e=0;e<128;e++)r[e]=0;return r.Bl=0,t=w(r),t.writeBytes(p("DataSpaceMap")),t.seek(64,d.Begin),t.writeShort(26),t.writeByte(2),t.writeByte(1),t.writeInt(4),t.writeInt(6),t.writeInt(-1),t.seek(100,d.Begin),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(6),t.writeInt(112),t.getView()}function U(){var e,t,r=[];for(e=0;e<128;e++)r[e]=0;return r.Bl=0,t=w(r),t.writeBytes(p("DataSpaceInfo")),t.seek(64,d.Begin),t.writeShort(28),t.writeByte(1),t.writeByte(1),t.writeInt(-1),t.writeInt(8),t.writeInt(7),t.seek(100,d.Begin),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.getView()}function J(){var e,t,r=[];for(e=0;e<128;e++)r[e]=0;return r.Bl=0,t=w(r),t.writeBytes(p("StrongEncryptionDataSpace")),t.seek(64,d.Begin),t.writeShort(52),t.writeByte(2),t.writeByte(1),t.writeInt(-1),t.writeInt(-1),t.writeInt(-1),t.seek(100,d.Begin),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(8),t.writeInt(64),t.getView()}function z(){var e,t,r=[];for(e=0;e<128;e++)r[e]=0;return r.Bl=0,t=w(r),t.writeBytes(p("TransformInfo")),t.seek(64,d.Begin),t.writeShort(28),t.writeByte(1),t.writeByte(0),t.writeInt(-1),t.writeInt(-1),t.writeInt(9),t.seek(100,d.Begin),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.getView()}function V(){var e,t,r=[];for(e=0;e<128;e++)r[e]=0;return r.Bl=0,t=w(r),t.writeBytes(p("StrongEncryptionTransform")),t.seek(64,d.Begin),t.writeShort(52),t.writeByte(1),t.writeByte(1),t.writeInt(-1),t.writeInt(-1),t.writeInt(10),t.seek(100,d.Begin),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.getView()}function j(){var e,t,r=[];for(e=0;e<128;e++)r[e]=0;return r.Bl=0,t=w(r),t.writeShort(6),t.writeBytes(p("Primary")),t.seek(64,d.Begin),t.writeShort(18),t.writeByte(2),t.writeByte(1),t.writeInt(-1),t.writeInt(-1),t.writeInt(-1),t.seek(100,d.Begin),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(0),t.writeInt(9),t.writeInt(208),t.getView()}function X(){var e,t,r=[];for(e=0;e<128;e++)r[e]=0;return r.Bl=0,t=w(r),t.seek(64,d.Begin),t.writeShort(0),t.writeShort(0),t.writeInt(-1),t.writeInt(-1),t.writeInt(-1),t.getView()}function K(e,t,r){var o,i,n,a,l,s,c,d,u,f,b,h,p,m=[];return m.Bl=0,o=w(m),r<0&&(r=0),i=_(t),o.writeBytes(i),n=N(),o.writeBytes(n),a=M(e,r),o.writeBytes(a),l=O(),o.writeBytes(l),s=H(),o.writeBytes(s),c=G(),o.writeBytes(c),d=U(),o.writeBytes(d),u=J(),o.writeBytes(u),f=z(),o.writeBytes(f),b=V(),o.writeBytes(b),h=j(),o.writeBytes(h),p=X(),o.writeBytes(p),o.getView()}function q(){var e,t=[];return t.Bl=0,e=w(t),e.writeInt(60),e.writeBytes(p("Microsoft.Container.DataSpaces")),e.writeInt(1),e.writeInt(1),e.writeInt(1),e.getView()}function Y(){var e,t=[];return t.Bl=0,e=w(t),e.writeUint(8),e.writeUint(1),e.writeUint(104),e.writeUint(1),e.writeUint(0),e.writeUint(32),e.writeBytes(p("EncryptedPackage")),e.writeUint(50),e.writeBytes(p("StrongEncryptionDataSpace")),e.writeShort(0),e.getView()}function Q(){var e,t=[];return t.Bl=0,e=w(t),e.writeUint(8),e.writeUint(1),e.writeUint(50),e.writeBytes(p("StrongEncryptionTransform")),e.writeShort(0),e.getView()}function Z(){var e,t=[];return t.Bl=0,e=w(t),e.writeUint(108),e.writeUint(1),e.writeInt(76),e.writeBytes(p("{FF9A3F03-56EF-4613-BDD5-5A41C1D07246}")),e.writeInt(78),e.writeBytes(p("Microsoft.Container.EncryptionTransform")),e.writeShort(0),e.writeInt(1),e.writeInt(1),e.writeInt(1),e.writeInt(7),e.writeBytes(p("AES128")),e.writeByte(0),e.writeInt(16),e.writeInt(0),e.writeInt(4),e.getView()}function $(e,t){var r,o,i,n,a,l,s,c,u,f,b,p,m,g,y,S,C=[];for(C.Bl=0,r=w(C),o=0,i=Array(256),null!==e&&h(e,0,i,0,e.length),r.writeBytes(i),n=parseInt(i.length/64,10),i.length%64>0&&n++,a=1;a0&&c++,a=1;a0&&b++,a=1;a0&&m++,a=1;a0&&S++,a=1;a>4][15&e[r][o]];return e}u={Bits128:"Bits128",Bits192:"Bits192",Bits256:"Bits256"},f=function(){function e(){this.salt=Array(16),this.pwdVerifier=Array(16),this.pwdVerifierHash=Array(32),this.blockLen=16,this.Cl=!1,this.hashAlgorithm="SHA1",this.cipherChaining="ChainingModeCBC",this.cipherAlgorithm="AES",this.iterator=1e5,this.blockSize=16,this.keyBits=128,this.saltSize=16,this.hashSize=20,this.encryptedKeyValueBlockKey=[20,110,11,231,171,172,208,214],this.encryptedVerifierHashInputBlockKey=[254,167,210,118,59,75,158,121],this.encryptedVerifierHashValueBlockKey=[215,170,15,109,48,97,52,78]}return e.prototype.Dl=function(e){var t,r,o,n,a,l,s,f,h,p,m,g,y,S,w,x,A,T,v,k;return e.Bl=0,t=C(e),r=t.readInt16(),o=t.readInt16(),3!==r&&4!==r||2!==o?4===r&&4===o&&(s=t.readUInt32(),64===s&&(f=t.readBytes(e.length-8),null!==f))&&(h=i.parseXmlToObject(String.fromCharCode.apply(null,f)),p={},m=h.encryption,g=[],y=m.keyData,S={},S.SaltSize=y._attr.saltSize?y._attr.saltSize:16,S.BlockSize=y._attr.blockSize?y._attr.blockSize:16,S.KeyBits=y._attr.keyBits?y._attr.keyBits:128,S.HashSize=y._attr.hashSize?y._attr.hashSize:20,S.CipherAlgorithm=y._attr.cipherAlgorithm?y._attr.cipherAlgorithm:"AES",S.CipherChaining=y._attr.cipherChaining?y._attr.cipherChaining:"ChainingModeCBC",S.HashAlgorithm=y._attr.hashAlgorithm?y._attr.hashAlgorithm:"SHA1",S.SaltValue=b(y._attr.saltValue),p.KeyData=S,w=m.dataIntegrity,x={},x.EncryptedHmacKey=w._attr.encryptedHmacKey,x.EncryptedHmacValue=w._attr.encryptedHmacValue,p.DataIntegrity=x,A=m.keyEncryptors,T={},T.Uri=A._attr.uri?A._attr.uri:"http://schemas.microsoft.com/office/2006/keyEncryptor/password",T.Any={},v=c(A.keyEncryptor),v&&v.length&&v.forEach(function(e){var t=e["p:encryptedKey"];T.Any.SpinCount=t._attr.spinCount?t._attr.spinCount:1e5,T.Any.SaltSize=t._attr.saltSize?t._attr.saltSize:16,T.Any.BlockSize=t._attr.blockSize?t._attr.blockSize:16,T.Any.KeyBits=t._attr.keyBits?t._attr.keyBits:128,T.Any.HashSize=t._attr.hashSize?t._attr.hashSize:20,T.Any.CipherAlgorithm=t._attr.cipherAlgorithm?t._attr.cipherAlgorithm:"AES",T.Any.CipherChaining=t._attr.cipherChaining?t._attr.cipherChaining:"ChainingModeCBC",T.Any.HashAlgorithm=t._attr.hashAlgorithm?t._attr.hashAlgorithm:"SHA1",T.Any.SaltValue=b(t._attr.saltValue),T.Any.EncryptedVerifierHashInput=b(t._attr.encryptedVerifierHashInput),T.Any.EncryptedVerifierHashValue=b(t._attr.encryptedVerifierHashValue),T.Any.EncryptedKeyValue=b(t._attr.encryptedKeyValue),g.push(T),p.KeyEncryptors=g}),k=p.KeyEncryptors[0].Any,this.iterator=parseInt(k.SpinCount,10),this.blockSize=k.BlockSize,this.saltSize=k.SaltSize,this.hashSize=k.HashSize,this.keyBits=k.KeyBits,this.hashAlgorithm=k.HashAlgorithm,this.cipherAlgorithm=k.CipherAlgorithm,this.cipherChaining=k.CipherChaining,this.encryptedKeyValue=k.EncryptedKeyValue,this.encryptedVerifierHashInput=k.EncryptedVerifierHashInput,this.encryptedVerifierHashValue=k.EncryptedVerifierHashValue,this.salt=k.SaltValue,this.saltForIV=p.KeyData.SaltValue,this.Cl=!0,"AES"===this.cipherAlgorithm):(t.seek(8,d.Begin),n=t.readUInt32()+12,t.seek(28,d.Begin),a=t.readInt32(),128===a?this.keySize=u.Bits128:192===a?this.keySize=u.Bits192:256===a&&(this.keySize=u.Bits256),t.seek(n,d.Begin),l=t.readInt32(),n+=4,t.seek(n,d.Begin),this.salt=t.readBytes(l),n+=l,t.seek(n,d.Begin),this.pwdVerifier=t.readBytes(l),n+=l,t.seek(n,d.Begin),t.readInt32(),n+=4,t.seek(n,d.Begin),this.pwdVerifierHash=t.readBytes(2*l),!0)},e.prototype.El=function(e){var t,r,o,i,n,a,c;for(this.userPassWord=e,t=this.Fl(this.salt,null,this.blockSize),r=this.Gl(e,this.encryptedVerifierHashInputBlockKey,this.salt),o=this.Hl(this.saltSize,r,this.encryptedVerifierHashInput,t),o="SHA1"===this.hashAlgorithm?s.hash(o):l.hash(o),i=Array(this.saltSize),h(o,0,i,0,this.saltSize),r=this.Gl(e,this.encryptedVerifierHashValueBlockKey,this.salt),n=this.Il(i,r,t),a=this.encryptedVerifierHashValue.length,a>n.length&&(a=n.length),c=0;c0&&(l=i?i:this.Fl(this.saltForIV,m(4,g),this.blockSize),c=new n.aesJS.ModeOfOperation.cbc(t,l),a=c.decrypt(o.BufferHelper.ia(r,b,b+d)),h(a,0,f,b,d)),u=Array(e),h(f,0,u,0,e),u},e.prototype.Fl=function(e,t,r){var o,i,n,a=e;for(null!==t&&(a=y(a,t,this.hashAlgorithm)),r=+r,o=new Uint8Array(r),i=a.length,h(a,0,o,0,Math.min(r,i)),n=i;n256))return t=[],t.Bl=0,r=w(t),r.writeUshort(3),r.writeUshort(2),r.writeInt(36),r.writeUint(164),r.writeInt(36),r.writeInt(0),r.writeInt(26126),r.writeInt(32772),r.writeUint(128),r.writeInt(24),r.writeLong(0),o="Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)",r.writeBytes(p(o)),r.writeShort(0),r.writeInt(16),this.Ol(e),this.Pl()&&(r.writeBytes(this.salt),r.writeBytes(this.pwdVerifier),r.writeUint(20),r.writeBytes(this.pwdVerifierHash)),r.seek(0,d.Begin),r.getView()},e.prototype.Ol=function(e){var t,r,o=[],i=[];for(t=0;te.length)){for(r=[],o=[],i=[],n=0;n0?this.blockLen-a:this.blockLen);return r}},e.prototype.Ul=function(e,t){var r,o;for(this.State=x(4,this.Nb),r=0;r<4*this.Nb;++r)this.State[r%4][parseInt(r/4,10)]=e[r];for(this.State=ee(this.Nr,this.State,this.w),o=this.Nr-1;o>=1;--o)this.Vl(),this.Wl(),this.State=ee(o,this.State,this.w),this.Xl();for(this.Vl(),this.Wl(),this.State=ee(0,this.State,this.w),r=0;r<4*this.Nb;++r)t[r]=this.State[r%4][parseInt(r/4,10)]},e.prototype.Vl=function(){var e,t,r=x(4,4);for(e=0;e<4;++e)for(t=0;t<4;++t)r[e][t]=this.State[e][t];for(e=1;e<4;++e)for(t=0;t<4;++t)this.State[e][(t+e)%this.Nb]=r[e][t]},e.prototype.Wl=function(){var e,t;for(e=0;e<4;++e)for(t=0;t<4;++t)this.State[e][t]=this.iSbox[this.State[e][t]>>4][15&this.State[e][t]]},e.prototype.Xl=function(){var e,t,r=x(4,4);for(e=0;e<4;++e)for(t=0;t<4;++t)r[e][t]=this.State[e][t];for(t=0;t<4;++t)this.State[0][t]=(W(r[0][t])^B(r[1][t])^P(r[2][t])^D(r[3][t]))%256,this.State[1][t]=(D(r[0][t])^W(r[1][t])^B(r[2][t])^P(r[3][t]))%256,this.State[2][t]=(P(r[0][t])^D(r[1][t])^W(r[2][t])^B(r[3][t]))%256,this.State[3][t]=(B(r[0][t])^P(r[1][t])^D(r[2][t])^W(r[3][t]))%256},e.prototype.Yl=function(e){var t,r,o,i,n,a=new Uint8Array(e);return a.Bl=0,t=C(a),r=a.length,o=t.readBytes(r),i=this.Rl(o),n=[],h(m(8,r),0,n,0,8),h(i,0,n,8,i.length),t.seek(0,d.Begin),n},e.prototype.Zl=function(e,t){var r,o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S,C,x,A,T,v,k,F,R,E=[];for(E.Bl=0,r=w(E),o=0,i=3,n=2,a=1,l=[],s=[],c=[],d=Math.max(t.length,4096),u=parseInt(t.length/512,10),t.length%512>0&&u++,f=i+n+a,b=4*(u+f),h=parseInt(b/512,10),b%512>0&&h++,p=0,m=!0;m;)g=0,y=0,m=!1,b=4*(u+f+h+p),g=parseInt(b/512,10),b%512>0&&g++,g>h?(h=g,m=!0):h>109&&(S=4*(h-109),y=parseInt(S/512,10),C=S%512,C>0&&y++,C+4*y>512&&y++,y>p&&(p=y,m=!0));if(p>0)for(x=128*p+109,A=0;o0&&T%128===0&&(A++,l.push(A)),l.push(o+p)):l.push(-1);else for(;o<109;o++)o0){for(o=1;o<=p;o++)s.push(-4);for(v=p,o=1;o<=h;o++)s.push(-3);for(v+=h,o=1;o0?(r.writeInt(0),r.writeInt(p)):(r.writeInt(-2),r.writeInt(0)),l.forEach(function(e){r.writeInt(e)}),k=0;k<128*h;k++)k0&&0===e[e.length-1];)e=e.substring(0,e.length-2);return e},setName:function(e){for(var t=0;t3)return!1;for(this.km=e.readUInt16(),this.mm=e.readInt16(),this.nm=e.readInt32(),this.om=e.readInt32(),this.pm=e.readInt16(),this.qm=e.readInt16(),this.rm=e.readInt32(),this.tm=e.readInt32(),this.um=e.readInt32(),this.vm=e.readInt32(),this.wm=e.readInt32(),this.xm=e.readInt32(),this.ym=e.readInt32(),this.zm=e.readInt32(),t=Math.min(this.rm,h),this.Am=[],r=0;rd;)t.push(r),r=this.Bm[r];return t},e.prototype.addRange=function(e){var t=this;e&&e.length&&e.forEach(function(e){t.Bm.push(e)})},e.prototype.read=function(e,t){for(var r=0;r0;)this.Qm(r),this.Em.read(e,Math.min(o,t)),t-=Math.min(o,t),t>0&&(r=e.readInt32());for(i=0;i>2]|=e[p]<>2]|=o[3&a],++p),b=n[16],p>y&&a<56&&(n[15]=g<<3,h=!0),l=16;l<80;++l)t=n[l-3]^n[l-8]^n[l-14]^n[l-16],n[l]=t<<1|t>>>31;for(s=S,c=C,d=w,u=x,f=A,l=0;l<20;l+=5)r=c&d|~c&u,t=s<<5|s>>>27,f=t+r+f+1518500249+n[l]<<0,c=c<<30|c>>>2,r=s&c|~s&d,t=f<<5|f>>>27,u=t+r+u+1518500249+n[l+1]<<0,s=s<<30|s>>>2,r=f&s|~f&c,t=u<<5|u>>>27,d=t+r+d+1518500249+n[l+2]<<0,f=f<<30|f>>>2,r=u&f|~u&s,t=d<<5|d>>>27,c=t+r+c+1518500249+n[l+3]<<0,u=u<<30|u>>>2,r=d&u|~d&f,t=c<<5|c>>>27,s=t+r+s+1518500249+n[l+4]<<0,d=d<<30|d>>>2;for(;l<40;l+=5)r=c^d^u,t=s<<5|s>>>27,f=t+r+f+1859775393+n[l]<<0,c=c<<30|c>>>2,r=s^c^d,t=f<<5|f>>>27,u=t+r+u+1859775393+n[l+1]<<0,s=s<<30|s>>>2,r=f^s^c,t=u<<5|u>>>27,d=t+r+d+1859775393+n[l+2]<<0,f=f<<30|f>>>2,r=u^f^s,t=d<<5|d>>>27,c=t+r+c+1859775393+n[l+3]<<0,u=u<<30|u>>>2,r=d^u^f,t=c<<5|c>>>27,s=t+r+s+1859775393+n[l+4]<<0,d=d<<30|d>>>2;for(;l<60;l+=5)r=c&d|c&u|d&u,t=s<<5|s>>>27,f=t+r+f-1894007588+n[l]<<0,c=c<<30|c>>>2,r=s&c|s&d|c&d,t=f<<5|f>>>27,u=t+r+u-1894007588+n[l+1]<<0,s=s<<30|s>>>2,r=f&s|f&c|s&c,t=u<<5|u>>>27,d=t+r+d-1894007588+n[l+2]<<0,f=f<<30|f>>>2,r=u&f|u&s|f&s,t=d<<5|d>>>27,c=t+r+c-1894007588+n[l+3]<<0,u=u<<30|u>>>2,r=d&u|d&f|u&f,t=c<<5|c>>>27,s=t+r+s-1894007588+n[l+4]<<0,d=d<<30|d>>>2;for(;l<80;l+=5)r=c^d^u,t=s<<5|s>>>27,f=t+r+f-899497514+n[l]<<0,c=c<<30|c>>>2,r=s^c^d,t=f<<5|f>>>27,u=t+r+u-899497514+n[l+1]<<0,s=s<<30|s>>>2,r=f^s^c,t=u<<5|u>>>27,d=t+r+d-899497514+n[l+2]<<0,f=f<<30|f>>>2,r=u^f^s,t=d<<5|d>>>27,c=t+r+c-899497514+n[l+3]<<0,u=u<<30|u>>>2,r=d^u^f,t=c<<5|c>>>27,s=t+r+s-899497514+n[l+4]<<0,d=d<<30|d>>>2;S=S+s<<0,C=C+c<<0,w=w+d<<0,x=x+u<<0,A=A+f<<0}while(!h);return[16*(S>>28&15)+(S>>24&15),16*(S>>20&15)+(S>>16&15),16*(S>>12&15)+(S>>8&15),16*(S>>4&15)+(15&S),16*(C>>28&15)+(C>>24&15),16*(C>>20&15)+(C>>16&15),16*(C>>12&15)+(C>>8&15),16*(C>>4&15)+(15&C),16*(w>>28&15)+(w>>24&15),16*(w>>20&15)+(w>>16&15),16*(w>>12&15)+(w>>8&15),16*(w>>4&15)+(15&w),16*(x>>28&15)+(x>>24&15),16*(x>>20&15)+(x>>16&15),16*(x>>12&15)+(x>>8&15),16*(x>>4&15)+(15&x),16*(A>>28&15)+(A>>24&15),16*(A>>20&15)+(A>>16&15),16*(A>>12&15)+(A>>8&15),16*(A>>4&15)+(15&A)]};t.sha1=a,r.hash=a,e.exports=r}(this)},"./src/xlsx-io/password/sha512.js":function(e,t){!function(t){"use strict";var r={},o=[-2147483648,8388608,32768,128],i=[24,16,8,0],n=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=[],l=function(e){var t,r,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=!1,K=0,q=0,Y=0,Q=e.length,Z=1779033703,$=4089235720,ee=3144134277,te=2227873595,re=1013904242,oe=4271175723,ie=2773480762,ne=1595750129,ae=1359893119,le=2917565137,se=2600822924,ce=725511199,de=528734635,ue=4215389547,fe=1541459225,be=327033209,he=0;do{for(a[0]=he,a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=a[16]=a[17]=a[18]=a[19]=a[20]=a[21]=a[22]=a[23]=a[24]=a[25]=a[26]=a[27]=a[28]=a[29]=a[30]=a[31]=a[32]=0,t=q;K>2]|=e[K]<>2]|=o[3&t],++K),he=a[32],K>Q&&t<112&&(a[31]=Y<<3,X=!0),r=32;r<160;r+=2)v=a[r-30],k=a[r-29],l=(v>>>1|k<<31)^(v>>>8|k<<24)^v>>>7,s=(k>>>1|v<<31)^(k>>>8|v<<24)^(k>>>7|v<<25),v=a[r-4],k=a[r-3],c=(v>>>19|k<<13)^(k>>>29|v<<3)^v>>>6,d=(k>>>19|v<<13)^(v>>>29|k<<3)^(k>>>6|v<<26),v=a[r-32],k=a[r-31],F=a[r-14],R=a[r-13],u=(65535&R)+(65535&k)+(65535&s)+(65535&d),f=(R>>>16)+(k>>>16)+(s>>>16)+(d>>>16)+(u>>>16),b=(65535&F)+(65535&v)+(65535&l)+(65535&c)+(f>>>16),h=(F>>>16)+(v>>>16)+(l>>>16)+(c>>>16)+(b>>>16),a[r]=h<<16|65535&b,a[r+1]=f<<16|65535&u;for(L=Z,D=$,B=ee,P=te,W=re,_=oe,N=ie,M=ne,O=ae,H=le,G=se,U=ce,J=de,z=ue,V=fe,j=be,w=B&W,x=P&_,r=0;r<160;r+=8)l=(L>>>28|D<<4)^(D>>>2|L<<30)^(D>>>7|L<<25),s=(D>>>28|L<<4)^(L>>>2|D<<30)^(L>>>7|D<<25),c=(O>>>14|H<<18)^(O>>>18|H<<14)^(H>>>9|O<<23),d=(H>>>14|O<<18)^(H>>>18|O<<14)^(O>>>9|H<<23),p=L&B,m=D&P,A=p^L&W^w,T=m^D&_^x,E=O&G^~O&J,I=H&U^~H&z,v=a[r],k=a[r+1],F=n[r],R=n[r+1],u=(65535&R)+(65535&k)+(65535&I)+(65535&d)+(65535&j),f=(R>>>16)+(k>>>16)+(I>>>16)+(d>>>16)+(j>>>16)+(u>>>16),b=(65535&F)+(65535&v)+(65535&E)+(65535&c)+(65535&V)+(f>>>16),h=(F>>>16)+(v>>>16)+(E>>>16)+(c>>>16)+(V>>>16)+(b>>>16),v=h<<16|65535&b,k=f<<16|65535&u,u=(65535&T)+(65535&s),f=(T>>>16)+(s>>>16)+(u>>>16),b=(65535&A)+(65535&l)+(f>>>16),h=(A>>>16)+(l>>>16)+(b>>>16),F=h<<16|65535&b,R=f<<16|65535&u,u=(65535&M)+(65535&k),f=(M>>>16)+(k>>>16)+(u>>>16),b=(65535&N)+(65535&v)+(f>>>16),h=(N>>>16)+(v>>>16)+(b>>>16),V=h<<16|65535&b,j=f<<16|65535&u,u=(65535&R)+(65535&k),f=(R>>>16)+(k>>>16)+(u>>>16),b=(65535&F)+(65535&v)+(f>>>16),h=(F>>>16)+(v>>>16)+(b>>>16),N=h<<16|65535&b,M=f<<16|65535&u,l=(N>>>28|M<<4)^(M>>>2|N<<30)^(M>>>7|N<<25),s=(M>>>28|N<<4)^(N>>>2|M<<30)^(N>>>7|M<<25),c=(V>>>14|j<<18)^(V>>>18|j<<14)^(j>>>9|V<<23),d=(j>>>14|V<<18)^(j>>>18|V<<14)^(V>>>9|j<<23),g=N&L,y=M&D,A=g^N&B^p,T=y^M&P^m,E=V&O^~V&G,I=j&H^~j&U,v=a[r+2],k=a[r+3],F=n[r+2],R=n[r+3],u=(65535&R)+(65535&k)+(65535&I)+(65535&d)+(65535&z),f=(R>>>16)+(k>>>16)+(I>>>16)+(d>>>16)+(z>>>16)+(u>>>16),b=(65535&F)+(65535&v)+(65535&E)+(65535&c)+(65535&J)+(f>>>16),h=(F>>>16)+(v>>>16)+(E>>>16)+(c>>>16)+(J>>>16)+(b>>>16),v=h<<16|65535&b,k=f<<16|65535&u,u=(65535&T)+(65535&s),f=(T>>>16)+(s>>>16)+(u>>>16),b=(65535&A)+(65535&l)+(f>>>16),h=(A>>>16)+(l>>>16)+(b>>>16),F=h<<16|65535&b,R=f<<16|65535&u,u=(65535&_)+(65535&k),f=(_>>>16)+(k>>>16)+(u>>>16),b=(65535&W)+(65535&v)+(f>>>16),h=(W>>>16)+(v>>>16)+(b>>>16),J=h<<16|65535&b,z=f<<16|65535&u,u=(65535&R)+(65535&k),f=(R>>>16)+(k>>>16)+(u>>>16),b=(65535&F)+(65535&v)+(f>>>16),h=(F>>>16)+(v>>>16)+(b>>>16),W=h<<16|65535&b,_=f<<16|65535&u,l=(W>>>28|_<<4)^(_>>>2|W<<30)^(_>>>7|W<<25),s=(_>>>28|W<<4)^(W>>>2|_<<30)^(W>>>7|_<<25),c=(J>>>14|z<<18)^(J>>>18|z<<14)^(z>>>9|J<<23),d=(z>>>14|J<<18)^(z>>>18|J<<14)^(J>>>9|z<<23),S=W&N,C=_&M,A=S^W&L^g,T=C^_&D^y,E=J&V^~J&O,I=z&j^~z&H,v=a[r+4],k=a[r+5],F=n[r+4],R=n[r+5],u=(65535&R)+(65535&k)+(65535&I)+(65535&d)+(65535&U),f=(R>>>16)+(k>>>16)+(I>>>16)+(d>>>16)+(U>>>16)+(u>>>16),b=(65535&F)+(65535&v)+(65535&E)+(65535&c)+(65535&G)+(f>>>16),h=(F>>>16)+(v>>>16)+(E>>>16)+(c>>>16)+(G>>>16)+(b>>>16),v=h<<16|65535&b,k=f<<16|65535&u,u=(65535&T)+(65535&s),f=(T>>>16)+(s>>>16)+(u>>>16),b=(65535&A)+(65535&l)+(f>>>16),h=(A>>>16)+(l>>>16)+(b>>>16),F=h<<16|65535&b,R=f<<16|65535&u,u=(65535&P)+(65535&k),f=(P>>>16)+(k>>>16)+(u>>>16),b=(65535&B)+(65535&v)+(f>>>16),h=(B>>>16)+(v>>>16)+(b>>>16),G=h<<16|65535&b,U=f<<16|65535&u,u=(65535&R)+(65535&k),f=(R>>>16)+(k>>>16)+(u>>>16),b=(65535&F)+(65535&v)+(f>>>16),h=(F>>>16)+(v>>>16)+(b>>>16),B=h<<16|65535&b,P=f<<16|65535&u, l=(B>>>28|P<<4)^(P>>>2|B<<30)^(P>>>7|B<<25),s=(P>>>28|B<<4)^(B>>>2|P<<30)^(B>>>7|P<<25),c=(G>>>14|U<<18)^(G>>>18|U<<14)^(U>>>9|G<<23),d=(U>>>14|G<<18)^(U>>>18|G<<14)^(G>>>9|U<<23),w=B&W,x=P&_,A=w^B&N^S,T=x^P&M^C,E=G&J^~G&V,I=U&z^~U&j,v=a[r+6],k=a[r+7],F=n[r+6],R=n[r+7],u=(65535&R)+(65535&k)+(65535&I)+(65535&d)+(65535&H),f=(R>>>16)+(k>>>16)+(I>>>16)+(d>>>16)+(H>>>16)+(u>>>16),b=(65535&F)+(65535&v)+(65535&E)+(65535&c)+(65535&O)+(f>>>16),h=(F>>>16)+(v>>>16)+(E>>>16)+(c>>>16)+(O>>>16)+(b>>>16),v=h<<16|65535&b,k=f<<16|65535&u,u=(65535&T)+(65535&s),f=(T>>>16)+(s>>>16)+(u>>>16),b=(65535&A)+(65535&l)+(f>>>16),h=(A>>>16)+(l>>>16)+(b>>>16),F=h<<16|65535&b,R=f<<16|65535&u,u=(65535&D)+(65535&k),f=(D>>>16)+(k>>>16)+(u>>>16),b=(65535&L)+(65535&v)+(f>>>16),h=(L>>>16)+(v>>>16)+(b>>>16),O=h<<16|65535&b,H=f<<16|65535&u,u=(65535&R)+(65535&k),f=(R>>>16)+(k>>>16)+(u>>>16),b=(65535&F)+(65535&v)+(f>>>16),h=(F>>>16)+(v>>>16)+(b>>>16),L=h<<16|65535&b,D=f<<16|65535&u;u=(65535&$)+(65535&D),f=($>>>16)+(D>>>16)+(u>>>16),b=(65535&Z)+(65535&L)+(f>>>16),h=(Z>>>16)+(L>>>16)+(b>>>16),Z=h<<16|65535&b,$=f<<16|65535&u,u=(65535&te)+(65535&P),f=(te>>>16)+(P>>>16)+(u>>>16),b=(65535&ee)+(65535&B)+(f>>>16),h=(ee>>>16)+(B>>>16)+(b>>>16),ee=h<<16|65535&b,te=f<<16|65535&u,u=(65535&oe)+(65535&_),f=(oe>>>16)+(_>>>16)+(u>>>16),b=(65535&re)+(65535&W)+(f>>>16),h=(re>>>16)+(W>>>16)+(b>>>16),re=h<<16|65535&b,oe=f<<16|65535&u,u=(65535&ne)+(65535&M),f=(ne>>>16)+(M>>>16)+(u>>>16),b=(65535&ie)+(65535&N)+(f>>>16),h=(ie>>>16)+(N>>>16)+(b>>>16),ie=h<<16|65535&b,ne=f<<16|65535&u,u=(65535&le)+(65535&H),f=(le>>>16)+(H>>>16)+(u>>>16),b=(65535&ae)+(65535&O)+(f>>>16),h=(ae>>>16)+(O>>>16)+(b>>>16),ae=h<<16|65535&b,le=f<<16|65535&u,u=(65535&ce)+(65535&U),f=(ce>>>16)+(U>>>16)+(u>>>16),b=(65535&se)+(65535&G)+(f>>>16),h=(se>>>16)+(G>>>16)+(b>>>16),se=h<<16|65535&b,ce=f<<16|65535&u,u=(65535&ue)+(65535&z),f=(ue>>>16)+(z>>>16)+(u>>>16),b=(65535&de)+(65535&J)+(f>>>16),h=(de>>>16)+(J>>>16)+(b>>>16),de=h<<16|65535&b,ue=f<<16|65535&u,u=(65535&be)+(65535&j),f=(be>>>16)+(j>>>16)+(u>>>16),b=(65535&fe)+(65535&V)+(f>>>16),h=(fe>>>16)+(V>>>16)+(b>>>16),fe=h<<16|65535&b,be=f<<16|65535&u}while(!X);return[16*(Z>>28&15)+(Z>>24&15),16*(Z>>20&15)+(Z>>16&15),16*(Z>>12&15)+(Z>>8&15),16*(Z>>4&15)+(15&Z),16*($>>28&15)+($>>24&15),16*($>>20&15)+($>>16&15),16*($>>12&15)+($>>8&15),16*($>>4&15)+(15&$),16*(ee>>28&15)+(ee>>24&15),16*(ee>>20&15)+(ee>>16&15),16*(ee>>12&15)+(ee>>8&15),16*(ee>>4&15)+(15&ee),16*(te>>28&15)+(te>>24&15),16*(te>>20&15)+(te>>16&15),16*(te>>12&15)+(te>>8&15),16*(te>>4&15)+(15&te),16*(re>>28&15)+(re>>24&15),16*(re>>20&15)+(re>>16&15),16*(re>>12&15)+(re>>8&15),16*(re>>4&15)+(15&re),16*(oe>>28&15)+(oe>>24&15),16*(oe>>20&15)+(oe>>16&15),16*(oe>>12&15)+(oe>>8&15),16*(oe>>4&15)+(15&oe),16*(ie>>28&15)+(ie>>24&15),16*(ie>>20&15)+(ie>>16&15),16*(ie>>12&15)+(ie>>8&15),16*(ie>>4&15)+(15&ie),16*(ne>>28&15)+(ne>>24&15),16*(ne>>20&15)+(ne>>16&15),16*(ne>>12&15)+(ne>>8&15),16*(ne>>4&15)+(15&ne),16*(ae>>28&15)+(ae>>24&15),16*(ae>>20&15)+(ae>>16&15),16*(ae>>12&15)+(ae>>8&15),16*(ae>>4&15)+(15&ae),16*(le>>28&15)+(le>>24&15),16*(le>>20&15)+(le>>16&15),16*(le>>12&15)+(le>>8&15),16*(le>>4&15)+(15&le),16*(se>>28&15)+(se>>24&15),16*(se>>20&15)+(se>>16&15),16*(se>>12&15)+(se>>8&15),16*(se>>4&15)+(15&se),16*(ce>>28&15)+(ce>>24&15),16*(ce>>20&15)+(ce>>16&15),16*(ce>>12&15)+(ce>>8&15),16*(ce>>4&15)+(15&ce),16*(de>>28&15)+(de>>24&15),16*(de>>20&15)+(de>>16&15),16*(de>>12&15)+(de>>8&15),16*(de>>4&15)+(15&de),16*(ue>>28&15)+(ue>>24&15),16*(ue>>20&15)+(ue>>16&15),16*(ue>>12&15)+(ue>>8&15),16*(ue>>4&15)+(15&ue),16*(fe>>28&15)+(fe>>24&15),16*(fe>>20&15)+(fe>>16&15),16*(fe>>12&15)+(fe>>8&15),16*(fe>>4&15)+(15&fe),16*(be>>28&15)+(be>>24&15),16*(be>>20&15)+(be>>16&15),16*(be>>12&15)+(be>>8&15),16*(be>>4&15)+(15&be)]};t.sha512=l,r.hash=l,e.exports=r}(this)},"./src/xlsx-io/password/xlsxEncryptionHelper.ts":function(e,t,r){"use strict";var o,i,n,a;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xlsx-io/password/compoundFile.ts"),i=r("./src/xlsx-io/password/aesEngine.ts"),n=r("./src/common/common.ts");function l(e){var t,r,i={success:!1,encryptionInfoStream:null,encryptPagStream:null},n=new o.CompoundFile,a=new Uint8Array(e);return n.Wk(a),t=n.Km("EncryptionInfo"),r=n.Km("EncryptedPackage"),null===t||null===r?i:(i.success=!0,i.encryptionInfoStream=t,i.encryptPagStream=r,i)}function s(e,t){var r,o,n,a={success:!1},s=l(e);return s.success?(r=s.encryptionInfoStream,o=s.encryptPagStream,null!==r&&null!==o&&(n=new i.AesEngine,n.Dl(r)&&(n.Cl?n.El(t)&&(a=n.Jl(o)):(n.key=n.Ml(t,n.salt,n.hashAlgorithm),n.Ql(n.keySize,n.key),n.Pl()&&(a=n.Ll(o))))),a):a}function c(e,t){var r,o,i,n,a,l,s=1024,c=atob(e),d=c.length,u=Math.ceil(d/s),f=Array(u);for(r=0;r0&&(r=i.filter1={},r.operator=t[0]._attr.operator,r.value=t[0]._attr.val),t.length>1&&(o=i.filter2={},o.operator=t[1]._attr.operator,o.value=t[1]._attr.val),i}function g(e){var t,r,o={};return o.type=b[e._attr.type],t=e._attr.val,r=e._attr.maxVal,f(t)||(o.value=t),f(r)||(o.maxValue=r),o}function y(e){var t={};return t.value=c(e._attr.val,NaN),t.percent=s(e._attr.percent,!1),t.top=s(e._attr.top,!0),t}function S(e){var t={},r=e.sortCondition._attr;return r&&(t.ascending=!r.descending,t.index=n.getRangesFromString(r.ref)[0].col,"fontColor"!==r.sortBy&&"cellColor"!==r.sortBy||(t.isBackColor="cellColor"===r.sortBy,t.dxfId=d(r.dxfId,0))),t}t.readSortInfo=S;function C(e){var t,r,o={},i=e._attr.ref.toUpperCase();return i&&"#REF!"!==i?(t=n.getRangesFromString(i),t[0]&&(o.range=t[0]),o.filterColumns=[],r=u(e.filterColumn),r.forEach(function(e){var t={},r=e._attr.colId;t.hiddenButton=a.XmlNodeHelper.Vm(e._attr.hiddenButton,!1),f(r)||(t.autoFilterColumnId=parseInt(r,10)),e.colorFilter&&(t.colorFilter=h(e.colorFilter)),e.filters&&(t.filters=p(e.filters)),e.customFilters&&(t.customFilters=m(e.customFilters)),e.dynamicFilter&&(t.dynamicFilter=g(e.dynamicFilter)),e.top10&&(t.top10Filter=y(e.top10)),o.filterColumns.push(t)}),o):null}t.readAutoFilter=C;function w(e,t,r){var o=i.parseXmlToObject(e.readFullElement()).autoFilter,n=C(o);o.sortState&&(n.sortInfo=S(o.sortState)),r.Og(t,n)}t.readAutoFilterForSheet=w},"./src/xlsx-io/reader/chart-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,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;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/datamodel/chart-model.ts"),i=r("./src/datamodel/excel-style.ts"),n=r("./src/xlsx-io/common/chart-helper.ts"),a=r("./src/common/common.ts"),l=r("./src/xml-io/node-helper.ts"),s=r("./src/datamodel/excel-helper.ts"),c=i.UnitHelper.emuToPixles,d=a.Util.pa,u=l.XmlNodeHelper.Vm,f=l.XmlNodeHelper.Wm,b=l.XmlNodeHelper.Xm,h=null,p="val",m="name",g="type",y="prst",S="extLst",C="cNvPr",w="macro",x="effectLst",A="effectDag",T="fPublished",v="graphicFrame",k="dumy",F="ext",R="scrgbClr",E="srgbClr",I="hslClr",L="sysClr",D="schemeClr",B="prstClr",P="styleClr",W="noFill",_="solidFill",N="gradFill",M="blipFill",O="pattFill",H="grpFill",G="delete",U="idx",J="scene3d",z="spPr",V="txPr",j="sqref",X="invertIfNegative",K="bubble3D",q="marker",Y="grpSp",Q="cxnSp",Z="clrScheme",$="fontScheme",ee="fmtScheme",te="layout",re="pictureOptions",oe="order",ie="gapWidth",ne="dLbls",ae="trendline",le="errBars",se="ser",ce="dropLines",de="axId",ue="grouping",fe="varyColors",be="scaling",he="axPos",pe="majorGridlines",me="minorGridlines",ge="title",ye="numFmt",Se="majorTickMark",Ce="minorTickMark",we="tickLblPos",xe="crossAx",Ae="crosses",Te="crossesAt",ve="style",ke="rotWithShape",Fe="Requires";function Le(e,t){return a.J(e)?t:e}function De(e){var t=e.readAttributeNameAsString().split(":");return t.length>1?t[1]:t[0]}function Be(e){var t=e.name().split(":");return t.length>1?t[1]:t[0]}function Pe(e,t,r){for(var o,i;e.moveToNextAttribute();)if(o=De(e),o===t)return i=e.readContentAsString(),r&&(i=r(i)),i}function We(e,t,r,o){var i,n,a,l,s=o||{};if(3===e.elementType)return s;for(i=e.depth;e.read()&&(n=e.depth,a=e.elementType,n!==i||2!==a);)n>i+1||2===a||(l=Be(e),l===t&&(s[t]=r(e)));return s}function _e(e,t){for(var r,o,i,n,a=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==a||2!==o);)if(!(r>a+1||2===o)){switch(i=Be(e),n={},i){case R:n.scrgbClr=It(e);break;case E:n.srgbClr=Dt(e);break;case I:n.hslClr=Bt(e);break;case L:n.sysClr=Pt(e);break;case D:n.schemeClr=Wt(e);break;case B:n.prstClr=_t(e)}t.push(n)}return t}function Ne(e,t){for(var r,o,i,n=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==n||2!==o);)if(!(r>n+1||2===o))switch(i=Be(e)){case R:t.scrgbClr=It(e);break;case E:t.srgbClr=Dt(e);break;case I:t.hslClr=Bt(e);break;case L:t.sysClr=Pt(e);break;case D:t.schemeClr=Wt(e);break;case B:t.prstClr=_t(e)}return t}function Me(e,t){for(var r,o,i,n=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==n||2!==o);)if(!(r>n+1||2===o))switch(i=Be(e)){case W:t.noFill=ra();break;case _:t.solidFill=oa(e);break;case N:t.gradFill=sa(e);break;case M:t.blipFill=ba(e);break;case O:t.pattFill=ha(e);break;case H:t.grpFill=pa()}return t}t.DrawingReader={};function Oe(e,r){for(var o,i,n,a=e.depth;e.read()&&(o=e.depth,i=e.elementType,o!==a||2!==i);)if(!(o>a+1||2===i))switch(n=Be(e)){case W:r.items.push(t.DrawingReader.ReadCT_NoFillProperties(e));break;case _:r.items.push(t.DrawingReader.ReadCT_SolidColorFillProperties(e));break;case N:r.items.push(t.DrawingReader.ReadCT_GradientFillProperties(e));break;case M:r.items.push(t.DrawingReader.ReadCT_BlipFillProperties(e));break;case O:r.items.push(t.DrawingReader.ReadCT_PatternFillProperties(e));break;case H:r.items.push(t.DrawingReader.ReadCT_GroupFillProperties(e))}return r}function He(e,t){for(var r,o,i,n=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==n||2!==o);)if(!(r>n+1||2===o))switch(i=Be(e)){case"tint":t.tint=[yt(e)];break;case"shade":t.shade=[yt(e)];break;case"comp":t.comp=[Tt()];break;case"inv":t.inv=[vt()];break;case"gray":t.gray=[kt()];break;case"alpha":t.alpha=[yt(e)];break;case"alphaMod":t.alphaMod=[mt(e)];break;case"alphaOff":t.alphaOff=[gt(e)];break;case"hue":t.hue=[ht(e)];break;case"hueMod":t.hueMod=[mt(e)];break;case"hueOff":t.hueOff=[ut(e)];break;case"sat":t.sat=[pt(e)];break;case"satMod":t.satMod=[pt(e)];break;case"satOff":t.satOff=[pt(e)];break;case"lum":t.lum=[pt(e)];break;case"lumMod":t.lumMod=[pt(e)];break;case"lumOff":t.lumOff=[pt(e)];break;case"red":t.red=[pt(e)];break;case"redMod":t.redMod=[pt(e)];break;case"redOff":t.redOff=[pt(e)];break;case"green":t.green=[pt(e)];break;case"greenMod":t.greenMod=[pt(e)];break;case"greenOff":t.greenOff=[pt(e)];break;case"blue":t.blue=[pt(e)];break;case"blueMod":t.blueMod=[pt(e)];break;case"blueOff":t.blueOff=[pt(e)];break;case"gamma":t.gamma=[Ft()];break;case"invGamma":t.invGamma=[Rt()]}return t}function Ge(e,t){for(var r,o,i,n=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==n||2!==o);)if(!(r>n+1||2===o))switch(i=Be(e)){case"wireframe":t.wireframe=$t(e);break;case se:t.ser.push(go(e));break;case"bandFmts":t.bandFmts=Go(e);break;case de:t.axId.push(rr(e));break;case S:t.extLst=nr(e)}return t}function Ue(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),i===C&&(n.cNvPr=bn(e)));return n}function Je(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),i===j&&(n.sqref=e.readElementContentAsString()));return n}function ze(e){for(var t,r={};e.moveToNextAttribute();)t=De(e),"val"===t&&(r.val=parseInt(e.readContentAsString(),10));return r}function Ve(e){for(var t,r={};e.moveToNextAttribute();)switch(t=De(e)){case"entityType":r.entityType=o.Charts.ST_EntityType[e.readContentAsString()];break;case"entityId":r.entityId=e.readContentAsString()}return r}function je(e){for(var t,r={};e.moveToNextAttribute();)t=De(e),"val"===t&&(r.val=e.readContentAsDouble());return r}Re={},Re.ReadContentValueAsString=function(e){for(var t,r="";e.moveToNextAttribute();)t=De(e),"val"===t&&(r=e.readContentAsString());return r};function Xe(e){var t,r,o={};if(3===e.elementType)return o;for(t=e.depth;e.read()&&!(e.depth<=t);){switch(r=Be(e)){case"spPr":o.spPr=el(e);break;case"extLst":o.extLst=Re.ReadCT_ExtensionList(e)}if(e.depth<=t)break}return o}function Ke(e){var t,r,o={};if(3===e.elementType)return o;for(t=e.depth;e.read()&&!(e.depth<=t);){switch(r=Be(e)){case"tx":o.tx=Re.ReadCT_Text(e);break;case"spPr":o.spPr=el(e);break;case"txPr":o.txPr=zl(e);break;case"extLst":o.extLst=Re.ReadCT_ExtensionList(e)}if(e.depth<=t)break}return o}function qe(e){for(var t,r,o={};e.moveToNextAttribute();)t=De(e),"idx"===t&&(o.idx=parseInt(e.readContentAsString(),10));if(3===e.elementType)return o;for(r=e.depth;e.read()&&!(e.depth<=r);){switch(t=Be(e)){case"spPr":o.spPr=el(e);break;case"extLst":o.extLst=Re.ReadCT_ExtensionList(e)}if(e.depth<=r)break}return o}Re.ReadElementContentAsString=function(e){var t="";if(3===e.elementType)return t;for(1===e.elementType&&(t=e.readElementContentAsString());e.read()&&2!==e.elementType;);return t},Re.ReadCT_ChartStyle=function(e){for(var t,r,o,i={attribute:{}};e.moveToNextAttribute();)t=De(e),i.attribute[t]=e.readContentAsString();for(r=e.depth;e.read()&&!(e.depth<=r)&&(o=Be(e),"dataPointMarkerLayout"===o?i.dataPointMarkerLayout=Re.ReadCT_DataPointMarkerLayout(e):"extLst"===o?i.extLst=Mt(e):i[o]=Re.ReadCT_ChartStyleElement(e),!(e.depth<=r)););return i},Re.ReadCT_ChartStyleElement=function(e){for(var t,r,o={attribute:{}},i=e.depth;e.moveToNextAttribute();)t=De(e),"mods"===t&&(o.attribute[t]=e.readContentAsString());if(3===e.elementType)return o;for(;e.read()&&!(e.depth<=i)&&(r=Be(e),"lnRef"===r||"fillRef"===r||"effectRef"===r?o[r]=rl(e):"fontRef"===r?o.fontRef=ol(e):r===z?o.spPr=el(e):"defRPr"===r?o.defRPr=is(e):"bodyPr"===r&&(o.bodyPr=Jl(e)),!(e.depth<=i)););return o},Re.ReadCT_DataPointMarkerLayout=function(e){for(var t,r={attribute:{}};e.moveToNextAttribute();)t=De(e),r.attribute[t]=e.readContentAsString();return r},Re.ReadCT_Extension=function(e){for(var t,r={};e.moveToNextAttribute();)t=De(e),"uri"===t&&(r.uri=e.readContentAsString());return 3===e.elementType?r:r},Re.ReadCT_chartColors=function(e){for(var t,r,o={schemeClr:[],variation:[],attribute:{}},i=e.depth;e.moveToNextAttribute();)t=De(e),o.attribute[t]=e.readContentAsString();if(3===e.elementType)return o;for(;e.read()&&!(e.depth<=i)&&(r=Be(e),"schemeClr"===r?o.schemeClr.push(Wt(e)):"variation"===r&&o.variation.push(Re.ReadCT_Variation(e)),!(e.depth<=i)););return o},Re.ReadCT_Variation=function(e){var t,r={},o=e.depth;if(3===e.elementType)return r;for(;e.read()&&!(e.depth<=o)&&(t=Be(e),"lumMod"===t?r.lumMod=pt(e):"lumOff"===t&&(r.lumOff=pt(e)),!(e.depth<=o)););return r},Re.ReadCT_ExtensionList=function(e){var t,r,o={ext:[]};if(3===e.elementType)return o;for(t=e.depth;e.read()&&!(e.depth<=t)&&(r=Be(e),"ext"===r&&o.ext.push(Re.ReadCT_Extension(e)),!(e.depth<=t)););return o},Re.ReadCT_NumberFormat=function(e){for(var t,r={};e.moveToNextAttribute();)switch(t=De(e)){case"formatCode":r.formatCode=d(e.readContentAsString());break;case"sourceLinked":r.sourceLinked=e.readContentAsBoolean()}return r},Re.ReadCT_ValueColors=function(e){var t,r,o={};if(3===e.elementType)return o;for(t=e.depth;e.read()&&!(e.depth<=t);){switch(r=Be(e)){case"minColor":o.minColor=oa(e);break;case"midColor":o.midColor=oa(e);break;case"maxColor":o.maxColor=oa(e)}if(e.depth<=t)break}return o},Re.ReadCT_ExternalData=function(e){for(var t,r={};e.moveToNextAttribute();)switch(t=De(e)){case"id":r.id=e.readContentAsString();break;case"autoUpdate":r.autoUpdate=e.readContentAsBoolean()}return r},Re.ReadCT_Formula=function(e){for(var t,r={};e.moveToNextAttribute();)t=De(e),"dir"===t&&(r.dir=o.Charts.ST_FormulaDirection[e.readContentAsString()]);if(3===e.elementType)return r;for(1===e.elementType&&(r.formula=e.readElementContentAsString());e.read()&&2!==e.elementType;);return r},Re.ReadCT_Value=function(e){var t={};if(3===e.elementType)return t;for(1===e.elementType&&(t.value=e.readElementContentAsString());e.read()&&2!==e.elementType;);return t},Re.ReadCT_DataId=function(e){return ze(e)},Re.ReadST_AxisId=function(e){return ze(e)},Re.ReadCT_StringValue=function(e){for(var t,r={};e.moveToNextAttribute();)t=De(e),"idx"===t&&(r.idx=e.readContentAsInt());if(3===e.elementType)return r;for(1===e.elementType&&(r.value=e.readElementContentAsString());e.read()&&2!==e.elementType;);return r},Re.ReadCT_StringLevel=function(e){for(var t,r,o={};e.moveToNextAttribute();)switch(t=De(e)){case"ptCount":o.ptCount=parseInt(e.readContentAsString(),10);break;case"name":o.name=e.readContentAsString()}if(3===e.elementType)return o;for(r=e.depth;e.read()&&!(e.depth<=r)&&(t=Be(e),"pt"===t&&o.pt.push(Re.ReadCT_StringValue(e)),!(e.depth<=r)););return o},Re.ReadCT_StringDimension=function(e){for(var t,r,i={};e.moveToNextAttribute();)t=De(e),"type"===t&&(i.type=o.Charts.ST_StringDimensionType[e.readContentAsString()]);if(3===e.elementType)return i;for(r=e.depth;e.read()&&!(e.depth<=r);){switch(t=Be(e)){case"lvl":i.lvl.push(Re.ReadCT_StringLevel(e));break;case"nf":i.nf=Re.ReadCT_Formula(e);break;case"f":i.f=Re.ReadCT_Formula(e)}if(e.depth<=r)break}return i},Re.ReadCT_NumericValue=function(e){for(var t,r={};e.moveToNextAttribute();)t=De(e),"idx"===t&&(r.idx=e.readContentAsInt());if(3===e.elementType)return r;for(1===e.elementType&&(r.value=e.readElementContentAsDouble());e.read()&&2!==e.elementType;);return r},Re.ReadCT_NumericLevel=function(e){for(var t,r,o={};e.moveToNextAttribute();)switch(t=De(e)){case"ptCount":o.ptCount=parseInt(e.readContentAsString(),10);break;case"formatCode":o.formatCode=e.readContentAsString();break;case"name":o.name=e.readContentAsString()}if(3===e.elementType)return o;for(r=e.depth;e.read()&&!(e.depth<=r)&&(t=Be(e),"pt"===t&&o.pt.push(Re.ReadCT_NumericValue(e)),!(e.depth<=r)););return o},Re.ReadCT_NumericDimension=function(e){for(var t,r,i={lvl:[]};e.moveToNextAttribute();)t=De(e),"type"===t&&(i.type=o.Charts.ST_NumericDimensionType[e.readContentAsString()]);if(3===e.elementType)return i;for(r=e.depth;e.read()&&!(e.depth<=r);){switch(t=Be(e)){case"lvl":i.lvl.push(Re.ReadCT_NumericLevel(e));break;case"nf":i.nf=Re.ReadCT_Formula(e);break;case"f":i.f=Re.ReadCT_Formula(e)}if(e.depth<=r)break}return i},Re.ReadCT_Data=function(e){for(var t,r,o={numDim:[],strDim:[]};e.moveToNextAttribute();)t=De(e),"id"===t&&(o.id=parseInt(e.readContentAsString(),10));if(3===e.elementType)return o;for(r=e.depth;e.read()&&!(e.depth<=r);){switch(t=Be(e)){case"extLst":o.extLst=Re.ReadCT_ExtensionList(e);break;case"numDim":o.numDim.push(Re.ReadCT_NumericDimension(e));break;case"strDim":o.strDim.push(Re.ReadCT_StringDimension(e))}if(e.depth<=r)break}return o},Re.ReadCT_ChartData=function(e){var t,r,o={data:[]};if(3===e.elementType)return o;for(t=e.depth;e.read()&&!(e.depth<=t);){switch(r=Be(e)){case"externalData":o.externalData=Re.ReadCT_ExternalData(e);break;case"data":o.data.push(Re.ReadCT_Data(e));break;case"extLst":o.extLst=Re.ReadCT_ExtensionList(e)}if(e.depth<=t)break}return o},Re.ReadCT_TextData=function(e){var t,r,o={};if(3===e.elementType)return o;for(t=e.depth;e.read()&&!(e.depth<=t);){switch(r=Be(e)){case"f":o.f=Re.ReadCT_Formula(e);break;case"v":o.v=Re.ReadCT_Value(e)}if(e.depth<=t)break}return o},Re.ReadCT_Text=function(e){var t,r,o={};if(3===e.elementType)return o;for(t=e.depth;e.read()&&!(e.depth<=t);){switch(r=Be(e)){case"txData":o.txData=Re.ReadCT_TextData(e);break;case"rich":o.rich=zl(e)}if(e.depth<=t)break}return o},Re.ReadCT_ChartTitle=function(e){for(var t,r,i={};e.moveToNextAttribute();)switch(t=De(e)){case"pos":i.pos=o.Charts.ST_SidePos[e.readContentAsString()];break;case"align":i.align=o.Charts.ST_PosAlign[e.readContentAsString()];break;case"overlay":i.overlay=e.readContentAsBoolean()}if(3===e.elementType)return i;for(r=e.depth;e.read()&&!(e.depth<=r);){switch(t=Be(e)){case"tx":i.tx=Re.ReadCT_Text(e);break;case"spPr":i.spPr=el(e);break;case"txPr":i.txPr=zl(e);break;case"extLst":i.extLst=Re.ReadCT_ExtensionList(e)}if(e.depth<=r)break}return i},Re.ReadCT_CategoryAxisScaling=function(e){for(var t,r={};e.moveToNextAttribute();)t=De(e),"gapWidth"===t&&(r.gapWidth=e.readContentAsString());return r},Re.ReadCT_ValueAxisScaling=function(e){for(var t,r={};e.moveToNextAttribute();)switch(t=De(e)){case"max":r.max=e.readContentAsString();break;case"min":r.min=e.readContentAsString();break;case"majorUnit":r.majorUnit=e.readContentAsString();break;case"minorUnit":r.minorUnit=e.readContentAsString()}return r},Re.ReadCT_AxisTitle=function(e){return Ke(e)},Re.ReadCT_AxisUnitsLabel=function(e){return Ke(e)},Re.ReadCT_AxisUnits=function(e){for(var t,r,i={};e.moveToNextAttribute();)t=De(e),"unit"===t&&(i.unit=o.Charts.ST_AxisUnit[e.readContentAsString()]);if(3===e.elementType)return i;for(r=e.depth;e.read()&&!(e.depth<=r);){switch(t=Be(e)){case"unitsLabel":i.unitsLabel=Re.ReadCT_AxisUnitsLabel(e);break;case"extLst":i.extLst=Re.ReadCT_ExtensionList(e)}if(e.depth<=r)break}return i},Re.ReadCT_Gridlines=function(e){return Xe(e)},Re.ReadCT_TickMarks=function(e){for(var t,r,i={};e.moveToNextAttribute();)t=De(e),"type"===t&&(i=o.Charts.ST_TickMarksType[e.readContentAsString()]);if(3===e.elementType)return i;for(r=e.depth;e.read()&&!(e.depth<=r)&&(t=Be(e),"extLst"===t&&(i.extLst=Re.ReadCT_ExtensionList(e)),!(e.depth<=r)););return i},Re.ReadCT_TickLabels=function(e){var t,r,o={};if(3===e.elementType)return o;for(t=e.depth;e.read()&&!(e.depth<=t)&&(r=Be(e),"extLst"===r&&(o.extLst=Re.ReadCT_ExtensionList(e)),!(e.depth<=t)););return o},Re.ReadCT_Axis=function(e){for(var t,r,o={};e.moveToNextAttribute();)switch(t=De(e)){case"id":o.id=parseInt(e.readContentAsString(),10);break;case"hidden":o.hidden=e.readContentAsBoolean()}if(3===e.elementType)return o;for(r=e.depth;e.read()&&!(e.depth<=r);){switch(t=Be(e)){case"title":o.title=Re.ReadCT_AxisTitle(e);break;case"units":o.units=Re.ReadCT_AxisUnits(e);break;case"majorGridlines":o.majorGridlines=Re.ReadCT_Gridlines(e);break;case"minorGridlines":o.minorGridlines=Re.ReadCT_Gridlines(e);break;case"majorTickMarks":o.majorTickMarks=Re.ReadCT_TickMarks(e);break;case"minorTickMarks":o.minorTickMarks=Re.ReadCT_TickMarks(e);break;case"tickLabels":o.tickLabels=Re.ReadCT_TickLabels(e);break;case"numFmt":o.numFmt=Re.ReadCT_NumberFormat(e);break;case"spPr":o.spPr=el(e);break;case"txPr":o.txPr=zl(e);break;case"extLst":o.extLst=Re.ReadCT_ExtensionList(e);break;case"catScaling":o.catScaling=Re.ReadCT_CategoryAxisScaling(e);break;case"valScaling":o.valScaling=Re.ReadCT_ValueAxisScaling(e)}if(e.depth<=r)break}return o},Re.ReadCT_ParentLabelLayout=function(e){for(var t,r={};e.moveToNextAttribute();)t=De(e),"val"===t&&(r.val=o.Charts.ST_ParentLabelLayout[e.readContentAsString()]);return r},Re.ReadCT_RegionLabelLayout=function(e){for(var t,r={};e.moveToNextAttribute();)t=De(e),"val"===t&&(r.val=o.Charts.ST_RegionLabelLayout[e.readContentAsString()]);return r},Re.ReadCT_SeriesElementVisibilities=function(e){for(var t,r={};e.moveToNextAttribute();)switch(t=De(e)){case"connectorLines":r.connectorLines=e.readContentAsBoolean();break;case"meanLine":r.meanLine=e.readContentAsBoolean();break;case"meanMarker":r.meanMarker=e.readContentAsBoolean();break;case"nonoutliers":r.nonoutliers=e.readContentAsBoolean();break;case"outliers":r.outliers=e.readContentAsBoolean()}return r},Re.ReadCT_Aggregation=function(){return{}},Re.ReadCT_Binning=function(e){for(var t,r,i={};e.moveToNextAttribute();)switch(t=De(e)){case"intervalClosed":i.intervalClosed=o.Charts.ST_IntervalClosedSide[e.readContentAsString()];break;case"underflow":i.underflow=e.readContentAsString();break;case"overflow":i.overflow=e.readContentAsString()}if(3===e.elementType)return i;for(r=e.depth;e.read()&&!(e.depth<=r);){switch(t=Be(e)){case"binSize":i.binSize=Re.ReadBinSize(e);break;case"binCount":i.binCount=Re.ReadBinCount(e)}if(e.depth<=r)break}return i},Re.ReadBinSize=function(e){return je(e)},Re.ReadBinCount=function(e){for(var t,r={};e.moveToNextAttribute();)t=De(e),"val"===t&&(r.val=e.readContentAsInt());return r},Re.ReadCT_GeoLocationQuery=function(e){for(var t,r={};e.moveToNextAttribute();)switch(t=De(e)){case"countryRegion":r.countryRegion=e.readContentAsString();break;case"adminDistrict1":r.adminDistrict1=e.readContentAsString();break;case"adminDistrict2":r.adminDistrict2=e.readContentAsString();break;case"postalCode":r.postalCode=e.readContentAsString();break;case"entityType":r.entityType=o.Charts.ST_EntityType[e.readContentAsString()]}return r},Re.ReadCT_Address=function(e){for(var t,r={};e.moveToNextAttribute();)switch(t=De(e)){case"address1":r.address1=e.readContentAsString();break;case"countryRegion":r.countryRegion=e.readContentAsString();break;case"adminDistrict1":r.adminDistrict1=e.readContentAsString();break;case"adminDistrict2":r.adminDistrict2=e.readContentAsString();break;case"postalCode":r.postalCode=e.readContentAsString();break;case"locality":r.locality=e.readContentAsString();break;case"isoCountryCode":r.isoCountryCode=e.readContentAsString()}return r},Re.ReadCT_GeoLocation=function(e){for(var t,r,i={};e.moveToNextAttribute();)switch(t=De(e)){case"latitude":i.latitude=e.readContentAsDouble();break;case"longitude":i.longitude=e.readContentAsDouble();break;case"entityName":i.entityName=e.readContentAsString();break;case"entityType":i.entityType=o.Charts.ST_EntityType[e.readContentAsString()]}if(3===e.elementType)return i;for(r=e.depth;e.read()&&!(e.depth<=r)&&(t=Be(e),"address"===t&&(i.address=Re.ReadCT_Address(e)),!(e.depth<=r)););return i},Re.ReadCT_GeoLocations=function(e){var t,r,o={};if(3===e.elementType)return o;for(t=e.depth;e.read()&&!(e.depth<=t)&&(r=Be(e),"geoLocation"===r&&(o.geoLocation=Re.ReadCT_GeoLocation(e)),!(e.depth<=t)););return o},Re.ReadCT_GeoLocationQueryResult=function(e){var t,r,o={};if(3===e.elementType)return o;for(t=e.depth;e.read()&&!(e.depth<=t);){switch(r=Be(e)){case"geoLocationQuery":o.geoLocationQuery=Re.ReadCT_GeoLocationQuery(e);break;case"geoLocations":o.geoLocations=Re.ReadCT_GeoLocations(e)}if(e.depth<=t)break}return o},Re.ReadCT_GeoLocationQueryResults=function(e){var t,r,o={geoLocationQueryResult:[]};if(3===e.elementType)return o;for(t=e.depth;e.read()&&!(e.depth<=t)&&(r=Be(e),"geoLocationQueryResult"===r&&o.geoLocationQueryResult.push(Re.ReadCT_GeoLocationQueryResult(e)),!(e.depth<=t)););return o},Re.ReadCT_GeoPolygon=function(e){for(var t,r={};e.moveToNextAttribute();)switch(t=De(e)){case"polygonId":r.polygonId=e.readContentAsString();break;case"numPoints":break;case"pcaRings":r.pcaRings=e.readContentAsString()}return r},Re.ReadCT_GeoPolygons=function(e){var t,r,o={geoPolygon:[]};if(3===e.elementType)return o;for(t=e.depth;e.read()&&!(e.depth<=t)&&(r=Be(e),"geoPolygon"===r&&o.geoPolygon.push(Re.ReadCT_GeoPolygon(e)),!(e.depth<=t)););return o},Re.ReadCT_Copyrights=function(e){var t,r,o={copyright:[]};if(3===e.elementType)return o;for(t=e.depth;e.read()&&!(e.depth<=t)&&(r=Be(e),"copyright"===r&&o.copyright.push(Re.ReadElementContentAsString(e)),!(e.depth<=t)););return o},Re.ReadCT_GeoData=function(e){for(var t,r,o={geoPolygons:[],copyrights:[]};e.moveToNextAttribute();)switch(t=De(e)){case"entityName":o.entityName=e.readContentAsString();break;case"entityId":o.entityId=e.readContentAsString();break;case"east":o.east=e.readContentAsDouble();break;case"west":o.west=e.readContentAsDouble();break;case"north":o.north=e.readContentAsDouble();break;case"south":o.south=e.readContentAsDouble()}if(3===e.elementType)return o;for(r=e.depth;e.read()&&!(e.depth<=r);){switch(t=Be(e)){case"geoPolygons":o.geoPolygons.push(Re.ReadCT_GeoPolygon(e));break;case"copyrights":o.copyrights=Re.ReadCT_Copyrights(e)}if(e.depth<=r)break}return o},Re.ReadCT_GeoDataEntityQuery=function(e){return Ve(e)},Re.ReadCT_GeoDataEntityQueryResult=function(e){var t,r,o={};if(3===e.elementType)return o;for(t=e.depth;e.read()&&!(e.depth<=t);){switch(r=Be(e)){case"geoDataEntityQuery":o.geoDataEntityQuery=Re.ReadCT_GeoDataEntityQuery(e);break;case"geoData":o.geoData=Re.ReadCT_GeoData(e)}if(e.depth<=t)break}return o},Re.ReadCT_GeoDataEntityQueryResults=function(e){var t,r,o={geoDataEntityQueryResult:[]};if(3===e.elementType)return o;for(t=e.depth;e.read()&&!(e.depth<=t)&&(r=Be(e),"geoDataEntityQueryResult"===r&&o.geoDataEntityQueryResult.push(Re.ReadCT_GeoDataEntityQueryResult(e)),!(e.depth<=t)););return o},Re.ReadCT_GeoDataPointQuery=function(e){for(var t,r={};e.moveToNextAttribute();)switch(t=De(e)){case"entityType":r.entityType=o.Charts.ST_EntityType[e.readContentAsString()];break;case"latitude":r.latitude=e.readContentAsDouble();break;case"longitude":r.longitude=e.readContentAsDouble()}return r},Re.ReadCT_GeoDataPointToEntityQuery=function(e){return Ve(e)},Re.ReadCT_GeoDataPointToEntityQueryResult=function(e){var t,r,o={};if(3===e.elementType)return o;for(t=e.depth;e.read()&&!(e.depth<=t);){switch(r=Be(e)){case"geoDataPointQuery":o.geoDataPointQuery=Re.ReadCT_GeoDataPointQuery(e);break;case"geoDataPointToEntityQuery":o.geoDataPointToEntityQuery=Re.ReadCT_GeoDataPointToEntityQuery(e)}if(e.depth<=t)break}return o},Re.ReadCT_GeoDataPointToEntityQueryResults=function(e){var t,r,o={geoDataPointToEntityQueryResult:[]};if(3===e.elementType)return o;for(t=e.depth;e.read()&&!(e.depth<=t)&&(r=Be(e),"geoDataPointToEntityQueryResult"===r&&o.geoDataPointToEntityQueryResult.push(Re.ReadCT_GeoDataPointToEntityQueryResult(e)),!(e.depth<=t)););return o},Re.ReadCT_GeoChildTypes=function(e){var t,r,o={entityType:[]};if(3===e.elementType)return o;for(t=e.depth;e.read()&&!(e.depth<=t)&&(r=Be(e),"entityType"===r&&o.entityType.push(Re.ReadElementContentAsString(e)),!(e.depth<=t));); @@ -38,18 +38,18 @@ return o},Re.ReadCT_GeoChildEntitiesQuery=function(e){for(var t,r,o={geoChildTyp a}t.DrawingReader.ReadCT_Legend=Si;function Ci(e){var t=Pe(e,p);if(!a.J(t))return o.Charts.ST_DispBlanksAs[t]}t.DrawingReader.ReadCT_DispBlanksAs=Ci;function wi(e){var t,r,o,i,n={extDataType:2};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"dispNaAsBlank"===i&&(n.dispNaAsBlank=Pe(e,p)));return n}t.DrawingReader.ReadCT_DispNaAsBlank=wi;function xi(e){var t,r,o,i,n={pivotFmts:[]};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)if(!(r>t+1||2===o))switch(i=Be(e)){case ge:n.title=Tr(e);break;case"autoTitleDeleted":n.autoTitleDeleted=$t(e);break;case"pivotFmts":n.pivotFmts.push(mi(e));break;case"view3D":n.view3D=Ir(e);break;case"floor":n.floor=Lr(e);break;case"sideWall":n.sideWall=Lr(e);break;case"backWall":n.backWall=Lr(e);break;case"plotArea":n.plotArea=hi(e);break;case"legend":n.legend=Si(e);break;case"plotVisOnly":n.plotVisOnly=$t(e);break;case"dispBlanksAs":n.dispBlanksAs=Ci(e);break;case"showDLblsOverMax":n.showDLblsOverMax=$t(e);break;case S:n.extLst=nr(e)}return n}t.DrawingReader.ReadCT_Chart=xi;function Ai(e){return Pe(e,p)}t.DrawingReader.ReadCT_Style=Ai;function Ti(e){var t,r,o,i,n={extLst:[]};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)if(!(r>t+1||2===o))switch(i=Be(e)){case m:n.name=e.readElementContentAsString();break;case"fmtId":n.fmtId=tr(e);break;case S:n.extLst.push(nr(e))}return n}t.DrawingReader.ReadCT_PivotSource=Ti;function vi(e){var t,r,o,i,n,a={};if(3===e.elementType)return a;for(t=e.depth,r={chartObject:!0,data:!0,formatting:!0,selection:!0,userInterface:!0};e.read()&&(o=e.depth,i=e.elementType,o!==t||2!==i);)o>t+1||2===i||(n=Be(e),r[n]&&(a[n]=$t(e)));return a}t.DrawingReader.ReadCT_Protection=vi;function ki(e){for(var t,r,o,i,n,a,l={alignWithMargins:!0};e.moveToNextAttribute();)t=De(e),"alignWithMargins"!==t&&"differentOddEven"!==t&&"differentFirst"!==t||(l[t]=e.readContentAsBoolean());if(3===e.elementType)return l;for(r=e.depth,o={oddHeader:!0,oddFooter:!0,evenHeader:!0,evenFooter:!0,firstHeader:!0,firstFooter:!0};e.read()&&(i=e.depth,n=e.elementType,i!==r||2!==n);)i>r+1||2===n||(a=Be(e),o[a]&&(l[a]=e.readElementContentAsString()));return l}t.DrawingReader.ReadCT_HeaderFooter=ki;function Fi(e){for(var t,r={},o={l:!0,r:!0,t:!0,b:!0,header:!0,footer:!0};e.moveToNextAttribute();)t=De(e),o[t]&&(r[t]=e.readContentAsDouble());return r}t.DrawingReader.ReadCT_PageMargins=Fi;function Ri(e){var t={};return t.id=Pe(e,"id"),We(e,"autoUpdate",$t,t)}t.DrawingReader.ReadCT_ExternalData=Ri;function Ei(e){for(var t,r={paperSize:1,firstPageNumber:1,orientation:0,blackAndWhite:!1,draft:!1,useFirstPageNumber:!1,horizontalDpi:600,verticalDpi:600,copies:1},i={paperSize:!0,firstPageNumber:!0,horizontalDpi:!0,verticalDpi:!0,copies:!0},n={blackAndWhite:!0,draft:!0,useFirstPageNumber:!0};e.moveToNextAttribute();)t=De(e),i[t]?r[t]=e.readContentAsInt():n[t]?r[t]=e.readContentAsBoolean():"orientation"===t&&(r.orientation=o.Charts.ST_PageSetupOrientation[e.readContentAsString()]);return r}t.DrawingReader.ReadCT_PageSetup=Ei;function Ii(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)if(!(r>t+1||2===o))switch(i=Be(e)){case"headerFooter":n.headerFooter=ki(e);break;case"pageMargins":n.pageMargins=Fi(e);break;case"pageSetup":n.pageSetup=Ei(e);break;case"legacyDrawingHF":n.legacyDrawingHF=or(e)}return n}t.DrawingReader.ReadCT_PrintSettings=Ii;function Li(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)if(!(r>t+1||2===o))switch(i=Be(e)){case"roundedCorners":n.roundedCorners=$t(e);break;case ve:n.style=Ai(e);break;case"clrMapOvr":n.clrMapOvr=Il(e);break;case"pivotSource":n.pivotSource=Ti(e);break;case"protection":n.protection=vi(e);break;case"chart":n.chart=xi(e);break;case z:n.spPr=el(e);break;case V:n.txPr=zl(e);break;case"externalData":n.externalData=Ri(e);break;case"printSettings":n.printSettings=Ii(e);break;case"userShapes":n.userShapes=_i(e);break;case S:n.extLst=nr(e)}return n}t.DrawingReader.ReadCT_ChartSpace=Li;function Di(e){var t,r,o,i,n={ext:[]};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),i===F?n.ext.push(Bi(e)):i===k&&(n.dumy=e.readElementContentAsBoolean()));return n}t.DrawingReader.ReadCT_DLblExtensionList=Di;function Bi(e){var t,r,o,i,n={};if(n.uri=Pe(e,"uri"),3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)if(!(r>t+1||2===o))switch(i=Be(e)){case te:n.layout=Ar(e);break;case"dlblFieldTable":n.dlblFieldTable=tn(e);break;case"showDataLabelsRange":n.showDataLabelsRange=$t(e)}return n}t.DrawingReader.ReadCT_DLblExt=Bi;function Pi(e){var t,r,o,i,n={ext:[]};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),i===F?n.ext.push(Wi(e)):i===k&&(n.dumy=e.readElementContentAsBoolean()));return n}t.DrawingReader.ReadCT_DLblsExtensionList=Pi;function Wi(e){var t,r,o,i,n={};if(n.uri=Le(Pe(e,"uri"),"{CE6537A1-D6FC-4f65-9D91-7224C49458BB}"),3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)if(!(r>t+1||2===o))switch(i=Be(e)){case te:n.layout=Ar(e);break;case"showLeaderLines":n.showLeaderLines=$t(e);break;case"showDataLabelsRange":n.showDataLabelsRange=$t(e);break;case"leaderLines":n.leaderLines=So(e);break;case z:n.spPr=el(e)}return n}t.DrawingReader.ReadCT_DLblsExt=Wi;function _i(e){var t={};return t.id=Pe(e,"id"),We(e,"userShapes",ln,t)}t.DrawingReader.ReadCT_UserShapes=_i;function Ni(e){var t={extDataType:0};return We(e,z,el,t)}t.DrawingReader.ReadCT_InvertSolidFillFmt=Ni;function Mi(e){return Je(e)}t.DrawingReader.ReadCT_FullRef=Mi;function Oi(e){return Je(e)}t.DrawingReader.ReadCT_LevelRef=Oi;function Hi(e){return Je(e)}t.DrawingReader.ReadCT_FormulaRef=Hi;function Gi(e){return We(e,"tx",br)}t.DrawingReader.ReadCT_FilteredSeriesTitle=Gi;function Ui(e){return We(e,"cat",yr)}t.DrawingReader.ReadCT_FilteredCategoryTitle=Ui;function Ji(e){return We(e,se,bo)}t.DrawingReader.ReadCT_FilteredBarSer=Ji;function zi(e){return We(e,se,co)}t.DrawingReader.ReadCT_FilteredLineSer=zi;function Vi(e){return We(e,se,uo)}t.DrawingReader.ReadCT_FilteredScatterSer=Vi;function ji(e){return We(e,se,ho)}t.DrawingReader.ReadCT_FilteredAreaSer=ji;function Xi(e){return We(e,se,po)}t.DrawingReader.ReadCT_FilteredPieSer=Xi;function Ki(e){return We(e,se,mo)}t.DrawingReader.ReadCT_FilteredBubbleSer=Ki;function qi(e){return We(e,se,fo)}t.DrawingReader.ReadCT_FilteredRadarSer=qi;function Yi(e){return We(e,se,go)}t.DrawingReader.ReadCT_FilteredSurfaceSer=Yi;function Qi(e){var t,r,o,i,n={extDataType:1};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"f"===i?n.f=d(e.readElementContentAsString()):"dlblRangeCache"===i&&(n.dlblRangeCache=ur(e)));return n}t.DrawingReader.ReadCT_SeriesDataLabelsRange=Qi;function Zi(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)if(!(r>t+1||2===o))switch(i=Be(e)){case j:n.sqref=e.readElementContentAsString();break;case z:n.spPr=el(e);break;case"explosion":n.explosion=tr(e);break;case X:n.invertIfNegative=$t(e);break;case K:n.bubble3D=$t(e);break;case q:n.marker=qr(e);break;case"dLbl":n.dLbl=Vr(e)}return n}t.DrawingReader.ReadCT_CategoryFilterException=Zi;function $i(e){var t,r,o,i,n={categoryFilterException:[]};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"categoryFilterException"===i&&n.categoryFilterException.push(Zi(e)));return n}t.DrawingReader.ReadCT_CategoryFilterExceptions=$i;function en(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)if(!(r>t+1||2===o))switch(i=Be(e)){case"txfldGUID":n.txfldGUID=e.readElementContentAsString();break;case"f":n.f=d(e.readElementContentAsString());break;case"dlblFieldTableCache":n.dlblFieldTableCache=ur(e)}return n}t.DrawingReader.ReadCT_DataLabelFieldTableEntry=en;function tn(e){var t,r,o,i,n={dlblFTEntry:[]};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"dlblFTEntry"===i?n.dlblFTEntry.push(en(e)):i===k&&(n.dumy=e.readElementContentAsBoolean()));return n}t.DrawingReader.ReadCT_DataLabelFieldTable=tn;function rn(e){return Ue(e)}t.DrawingReader.ReadCT_GraphicFrameNonVisual=rn;function on(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"x"!==i&&"y"!==i||(n[i]=e.readElementContentAsDouble()));return n}t.DrawingReader.ReadCT_CdrPosition=on;function nn(e){var t,r,o,i,n={anchorType:3};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)if(!(r>t+1||2===o))switch(i=Be(e)){case"from":n.startPoint=on(e);break;case"to":n.endPoint=on(e);break;case"sp":n.sp=ll(e);break;case Y:n.grpSp=pl(e);break;case v:n.graphicFrame=bl(e);break;case Q:n.cxnSp=cl(e);break;case"pic":n.pic=ul(e)}return n}t.DrawingReader.ReadCT_RelSizeAnchor=nn;function an(e){var t,r,o,i,n,a={anchorType:4};if(3===e.elementType)return a;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)if(!(r>t+1||2===o))switch(i=Be(e)){case"from":a.startPoint=on(e);break;case F:n=At(e,!0),a.width=n.cx,a.height=n.cy;break;case"sp":a.sp=ll(e);break;case Y:a.grpSp=pl(e);break;case v:a.graphicFrame=bl(e);break;case Q:a.cxnSp=cl(e);break;case"pic":a.pic=ul(e)}return a}t.DrawingReader.ReadCT_AbsSizeAnchor=an;function ln(e){var t,r,o,i,n={relSizeAnchor:[],absSizeAnchor:[]};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"relSizeAnchor"===i?n.relSizeAnchor.push(nn(e)):"absSizeAnchor"===i&&n.absSizeAnchor.push(an(e)));return n}t.DrawingReader.ReadCT_ChartDrawing=ln;function sn(e){for(var t,r={noGrp:!1,noSelect:!1,noRot:!1,noChangeAspect:!1,noMove:!1,noResize:!1,noEditPoints:!1,noAdjustHandles:!1,noChangeArrowheads:!1,noChangeShapeType:!1},o={noGrp:!0,noSelect:!0,noRot:!0,noChangeAspect:!0,noMove:!0,noResize:!0,noEditPoints:!0,noAdjustHandles:!0,noChangeArrowheads:!0,noChangeShapeType:!0};e.moveToNextAttribute();)t=De(e),o[t]&&(r[t]=e.readContentAsBoolean());return We(e,S,Mt,r)}t.DrawingReader.ReadCT_ConnectorLocking=sn;function cn(e){for(var t,r={noGrp:!1,noSelect:!1,noRot:!1,noChangeAspect:!1,noMove:!1,noResize:!1,noEditPoints:!1,noAdjustHandles:!1,noChangeArrowheads:!1,noChangeShapeType:!1,noTextEdit:!1},o={noGrp:!0,noSelect:!0,noRot:!0,noChangeAspect:!0,noMove:!0,noResize:!0,noEditPoints:!0,noAdjustHandles:!0,noChangeArrowheads:!0,noChangeShapeType:!0,noTextEdit:!0};e.moveToNextAttribute();)t=De(e),o[t]&&(r[t]=e.readContentAsBoolean());return We(e,S,Mt,r)}t.DrawingReader.ReadCT_ShapeLocking=cn;function dn(e){for(var t,r={},o={noGrp:!0,noSelect:!0,noRot:!0,noChangeAspect:!0,noMove:!0,noResize:!0,noEditPoints:!0,noAdjustHandles:!0,noChangeArrowheads:!0,noChangeShapeType:!0,noCrop:!0};e.moveToNextAttribute();)t=De(e),o[t]&&(r[t]=e.readContentAsBoolean());return We(e,S,Mt,r)}t.DrawingReader.ReadCT_PictureLocking=dn;function un(e){for(var t,r={noGrp:!1,noUngrp:!1,noSelect:!1,noRot:!1,noChangeAspect:!1,noMove:!1,noResize:!1},o={noGrp:!0,noUngrp:!0,noSelect:!0,noRot:!0,noChangeAspect:!0,noMove:!0,noResize:!0};e.moveToNextAttribute();)t=De(e),o[t]&&(r[t]=e.readContentAsBoolean());return We(e,S,Mt,r)}t.DrawingReader.ReadCT_GroupLocking=un;function fn(e){for(var t,r={noGrp:!1,noDrilldown:!1,noSelect:!1,noChangeAspect:!1,noMove:!1,noResize:!1},o={noGrp:!0,noDrilldown:!0,noSelect:!0,noChangeAspect:!0,noMove:!0,noResize:!0};e.moveToNextAttribute();)t=De(e),o[t]&&(r[t]=e.readContentAsBoolean());return We(e,S,Mt,r)}t.DrawingReader.ReadCT_GraphicalObjectFrameLocking=fn;function bn(e){for(var t,r,o,i,n,a={};e.moveToNextAttribute();)switch(t=De(e)){case"id":a.id=e.readContentAsInt();break;case m:a.name=d(e.readContentAsString());break;case ge:a.title=e.readContentAsString();break;case"descr":a.descr=e.readContentAsString();break;case"hidden":a.hidden=e.readContentAsBoolean()}if(3===e.elementType)return a;for(r=e.depth;e.read()&&(o=e.depth,i=e.elementType,o!==r||2!==i);)o>r+1||2===i||(n=Be(e),"hlinkClick"===n||"hlinkHover"===n?a[n]=Zt(e):n===S&&(a.extLst=Mt(e)));return a}t.DrawingReader.ReadCT_NonVisualDrawingProps=bn;function hn(e){var t,r,o,i,n={};if(n.txBox=Le(Pe(e,"txBox",u),!1),3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"spLocks"===i?n.spLocks=cn(e):i===S&&(n.extLst=Mt(e)));return n}t.DrawingReader.ReadCT_NonVisualDrawingShapeProps=hn;function pn(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)if(!(r>t+1||2===o))switch(i=Be(e)){case"cxnSpLocks":n.cxnSpLocks=sn(e);break;case"stCxn":n.stCxn=_a(e);break;case"endCxn":n.endCxn=_a(e);break;case S:n.extLst=Mt(e)}return n}t.DrawingReader.ReadCT_NonVisualConnectorProperties=pn;function mn(e){var t,r,o,i,n={};if(n.preferRelativeResize=Pe(e,"preferRelativeResize",u),3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"picLocks"===i?n.picLocks=dn(e):i===S&&(n.extLst=Mt(e)));return n}t.DrawingReader.ReadCT_NonVisualPictureProperties=mn;function gn(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"grpSpLocks"===i?n.grpSpLocks=un(e):i===S&&(n.extLst=Mt(e)));return n}t.DrawingReader.ReadCT_NonVisualGroupDrawingShapeProps=gn;function yn(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"graphicFrameLocks"===i?n.graphicFrameLocks=fn(e):i===S&&(n.extLst=Mt(e)));return n}t.DrawingReader.ReadCT_NonVisualGraphicFrameProperties=yn;function Sn(e){var t={};return t.id=Pe(e,"id"),t}t.DrawingReader.ReadCT_GraphicalObjectDataContent=Sn;function Cn(e){for(var t,r,o,i={},n=e.depth;e.read()&&(t=e.depth,r=e.elementType,t!==n||2!==r);)t>n+1||2===r||(o=Be(e),"chart"===o&&(i.chart=Sn(e)));return i}t.DrawingReader.ReadCT_GraphicalObjectData=Cn;function wn(e){return We(e,"graphicData",Cn)}t.DrawingReader.ReadCT_GraphicalObject=wn;function xn(e){return e.replace(/ /g,"\n").replace(/ /g,"\r")}t.DrawingReader.NormalizeSignificantWhitespaceFromXml=xn;function An(e){var t,r,o,i,n={name:""};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),i===m&&(n.name=xn(e.readContentAsString())));return n}t.DrawingReader.ReadCT_Slicer=An;function Tn(e){for(var t,r={zoom:1e5};e.moveToNextAttribute();)t=De(e),"fov"===t||"zoom"===t?r[t]=e.readContentAsInt():t===y&&(r.prst=o.Charts.ST_PresetCameraType[e.readContentAsString()]);return We(e,"rot",Vt,r)}t.DrawingReader.ReadCT_Camera=Tn;function vn(e){for(var t,r={};e.moveToNextAttribute();)t=De(e),"rig"===t?r.rig=o.Charts.ST_LightRigType[e.readContentAsString()]:"dir"===t&&(r.dir=o.Charts.ST_LightRigDirection[e.readContentAsString()]);return We(e,"rot",Vt,r)}t.DrawingReader.ReadCT_LightRig=vn;function kn(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)if(!(r>t+1||2===o))switch(i=Be(e)){case"camera":n.camera=Tn(e);break;case"lightRig":n.lightRig=vn(e);break;case"backdrop":n.backdrop=Fn(e);break;case S:n.extLst=Mt(e)}return n}t.DrawingReader.ReadCT_Scene3D=kn;function Fn(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)if(!(r>t+1||2===o))switch(i=Be(e)){case"anchor":n.anchor=Jt(e);break;case"norm":n.norm=zt(e);break;case"up":n.up=zt(e);break;case S:n.extLst=Mt(e)}return n}t.DrawingReader.ReadCT_Backdrop=Fn;function Rn(e){for(var t,r={w:76200,h:76200,prst:1};e.moveToNextAttribute();)t=De(e),"w"===t||"h"===t?r[t]=e.readContentAsInt():t===y&&(r.prst=o.Charts.ST_BevelPresetType[e.readContentAsString()]);return r}t.DrawingReader.ReadCT_Bevel=Rn;function En(e){for(var t,r,i,n,a,l,s={};e.moveToNextAttribute();)r=De(e),"z"===r||"extrusionH"===r||"contourW"===r?(t=e.readContentAsInt(),s[r]=c(t)):"prstMaterial"===r&&(s.prstMaterial=o.Charts.ST_PresetMaterialType[e.readContentAsString()]);if(3===e.elementType)return s;for(i=e.depth;e.read()&&(n=e.depth,a=e.elementType,n!==i||2!==a);)n>i+1||2===a||(l=Be(e),"bevelT"===l||"bevelB"===l?s[l]=Rn(e):"extrusionClr"===l||"contourClr"===l?s[l]=qt(e):l===S&&(s.extLst=Mt(e)));return s}t.DrawingReader.ReadCT_Shape3D=En;function In(e){var t={};return t.z=Le(Pe(e,"z",b),0),t}t.DrawingReader.ReadCT_FlatText=In;function Ln(e){var t={};return t.thresh=Pe(e,"thresh",b),t}function Dn(e){return Ln(e)}t.DrawingReader.ReadCT_AlphaBiLevelEffect=Dn;function Bn(){return{}}t.DrawingReader.ReadCT_AlphaCeilingEffect=Bn;function Pn(){return{}}t.DrawingReader.ReadCT_AlphaFloorEffect=Pn;function Wn(e){return jt(e)}t.DrawingReader.ReadCT_AlphaInverseEffect=Wn;function _n(e){var t={};return t.amt=Le(Pe(e,"amt",b),1e5),t}t.DrawingReader.ReadCT_AlphaModulateFixedEffect=_n;function Nn(e){var t={};return t.rad=Le(Pe(e,"rad",b),0),t}t.DrawingReader.ReadCT_AlphaOutsetEffect=Nn;function Mn(e){var t={};return t.a=Pe(e,"a",b),t}t.DrawingReader.ReadCT_AlphaReplaceEffect=Mn;function On(e){return Ln(e)}t.DrawingReader.ReadCT_BiLevelEffect=On;function Hn(e){for(var t,r={rad:0,grow:!0};e.moveToNextAttribute();)t=De(e),"rad"===t?r.rad=e.readContentAsInt():"grow"===t&&(r.grow=e.readContentAsBoolean());return r}t.DrawingReader.ReadCT_BlurEffect=Hn;function Gn(e){var t,r,o,i,n={};if(n.useA=Le(Pe(e,"useA",u),!0),3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"clrFrom"!==i&&"clrTo"!==i||(n[i]=qt(e)));return n}t.DrawingReader.ReadCT_ColorChangeEffect=Gn;function Un(e){return Kt(e)}t.DrawingReader.ReadCT_ColorReplaceEffect=Un;function Jn(e){var t=[];return 3===e.elementType?t:_e(e,t)}t.DrawingReader.ReadCT_DuotoneEffect=Jn;function zn(e){var t={};return t.rad=Le(Pe(e,"rad",b),0),3===e.elementType?t:Ne(e,t)}t.DrawingReader.ReadCT_GlowEffect=zn;function Vn(){return{}}t.DrawingReader.ReadCT_GrayscaleEffect=Vn;function jn(e){for(var t,r={hue:0,sat:0,lum:0};e.moveToNextAttribute();)t=De(e),"hue"!==t&&"sat"!==t&&"lum"!==t||(r[t]=e.readContentAsInt());return r}t.DrawingReader.ReadCT_HSLEffect=jn;function Xn(e){var t,r={blurRad:0,dist:0,dir:0};for(r.shadowEffectType=1;e.moveToNextAttribute();)t=De(e),"blurRad"!==t&&"dist"!==t&&"dir"!==t||(r[t]=e.readContentAsInt());return 3===e.elementType?r:Ne(e,r)}t.DrawingReader.ReadCT_InnerShadowEffect=Xn;function Kn(e){for(var t,r={bright:0,contrast:0};e.moveToNextAttribute();)t=De(e),"bright"!==t&&"contrast"!==t||(r[t]=e.readContentAsInt());return r}t.DrawingReader.ReadCT_LuminanceEffect=Kn;function qn(e){var t,r,i={blurRad:0,dist:0,dir:0,sx:1e5,sy:1e5,kx:0,ky:0,algn:7,rotWithShape:!0};for(i.shadowEffectType=0,t={blurRad:!0,dist:!0,dir:!0,sx:!0,sy:!0,kx:!0,ky:!0};e.moveToNextAttribute();)r=De(e),t[r]?i[r]=e.readContentAsInt():"algn"===r?i.algn=o.Charts.ST_RectAlignment[e.readContentAsString()]:r===ke&&(i.rotWithShape=e.readContentAsBoolean());return 3===e.elementType?i:Ne(e,i)}t.DrawingReader.ReadCT_OuterShadowEffect=qn;function Yn(e){for(var t,r={dist:0,dir:0,shadowEffectType:2};e.moveToNextAttribute();)t=De(e),"dist"===t||"dir"===t?r[t]=e.readContentAsInt():t===y&&(r.prst=o.Charts.ST_PresetShadowVal[e.readContentAsString()]);return 3===e.elementType?r:Ne(e,r)}t.DrawingReader.ReadCT_PresetShadowEffect=Yn;function Qn(e){for(var t,r={blurRad:0,stA:1e5,stPos:0,endA:0,endPos:1e5,dist:0,dir:0,fadeDir:54e5,sx:1e5,sy:1e5,kx:0,ky:0,algn:7,rotWithShape:!0},i={blurRad:!0,stA:!0,stPos:!0,endA:!0,endPos:!0,dist:!0,dir:!0,fadeDir:!0,sx:!0,sy:!0,kx:!0,ky:!0};e.moveToNextAttribute();)t=De(e),i[t]?r[t]=e.readContentAsInt():"algn"===t?r.algn=o.Charts.ST_RectAlignment[e.readContentAsString()]:t===ke&&(r.rotWithShape=e.readContentAsBoolean());return r}t.DrawingReader.ReadCT_ReflectionEffect=Qn;function Zn(e){for(var t,r={tx:0,ty:0};e.moveToNextAttribute();)t=De(e),"tx"!==t&&"ty"!==t||(r[t]=e.readContentAsInt());return r}t.DrawingReader.ReadCT_RelativeOffsetEffect=Zn;function $n(e){var t={};return t.rad=Pe(e,"rad",b),t}t.DrawingReader.ReadCT_SoftEdgesEffect=$n;function ea(e){for(var t,r={hue:0,amt:0};e.moveToNextAttribute();)t=De(e),"hue"!==t&&"amt"!==t||(r[t]=e.readContentAsInt());return r}t.DrawingReader.ReadCT_TintEffect=ea;function ta(e){for(var t,r={sx:1e5,sy:1e5,kx:0,ky:0,tx:0,ty:0},o={sx:!0,sy:!0,kx:!0,ky:!0,tx:!0,ty:!0};e.moveToNextAttribute();)t=De(e),o[t]&&(r[t]=e.readContentAsInt());return r}t.DrawingReader.ReadCT_TransformEffect=ta;function ra(){return!0}t.DrawingReader.ReadCT_NoFillProperties=ra;function oa(e){return Kt(e)}t.DrawingReader.ReadCT_SolidColorFillProperties=oa;function ia(e){for(var t,r={};e.moveToNextAttribute();)t=De(e),"ang"===t?r.ang=e.readContentAsInt():"scaled"===t&&(r.scaled=e.readContentAsBoolean());return r}t.DrawingReader.ReadCT_LinearShadeProperties=ia;function na(e){var t={},r=Pe(e,"path");return a.J(r)||(t.path=o.Charts.ST_PathShadeType[r]),We(e,"fillToRect",Xt,t)}t.DrawingReader.ReadCT_PathShadeProperties=na;function aa(e){var t={};return t.pos=Pe(e,"pos",b),3===e.elementType?t:Ne(e,t)}t.DrawingReader.ReadCT_GradientStop=aa;function la(e){var t,r,o,i,n={gs:[]};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"gs"===i?n.gs.push(aa(e)):i===k&&(n.dumy=e.readElementContentAsBoolean()));return n}t.DrawingReader.ReadCT_GradientStopList=la;function sa(e){for(var t,r,i,n,a,l={rotWithShape:!0};e.moveToNextAttribute();)t=De(e),"flip"===t?l.flip=o.Charts.ST_TileFlipMode[e.readContentAsString()]:t===ke&&(l.rotWithShape=e.readContentAsBoolean());if(3===e.elementType)return l;for(r=e.depth;e.read()&&(i=e.depth,n=e.elementType,i!==r||2!==n);)if(!(i>r+1||2===n))switch(a=Be(e)){case"gsLst":l.gsLst=la(e);break;case"lin":l.lin=ia(e);break;case"path":l.path=na(e);break;case"tileRect":l.tileRect=Xt(e)}return l}t.DrawingReader.ReadCT_GradientFillProperties=sa;function ca(e){for(var t,r,i={},n={tx:!0,ty:!0,sx:!0,sy:!0},a={tx:!0,ty:!0};e.moveToNextAttribute();)r=De(e),n[r]?(t=e.readContentAsInt(),a[r]&&(t=c(t)),i[r]=t):"flip"===r?i.flip=o.Charts.ST_TileFlipMode[e.readContentAsString()]:"algn"===r&&(i.algn=o.Charts.ST_RectAlignment[e.readContentAsString()]);return i}t.DrawingReader.ReadCT_TileInfoProperties=ca;function da(e){return We(e,"fillRect",Xt)}t.DrawingReader.ReadCT_StretchInfoProperties=da;function ua(e){for(var t,r,i,n,a,l,s,c,d={cstate:4};e.moveToNextAttribute();)t=De(e),"embed"===t||"link"===t?d[t]=e.readContentAsString():"cstate"===t&&(d.cstate=o.Charts.ST_BlipCompression[e.readContentAsString()]);if(3===e.elementType)return d;for(r=e.depth;e.read()&&(i=e.depth,n=e.elementType,i!==r||2!==n);)if(!(i>r+1||2===n))switch(a=Be(e)){case"alphaBiLevel":d.alphaBiLevel=Dn(e);break;case"alphaCeiling":d.alphaCeiling=Bn();break;case"alphaFloor":d.alphaFloor=Pn();break;case"alphaInv":d.alphaInv=Wn(e);break;case"alphaMod":d.alphaMod=xa(e);break;case"alphaModFix":d.alphaModFix=_n(e);break;case"alphaRepl":d.alphaRepl=Mn(e);break;case"biLevel":d.biLevel=On(e);break;case"blur":d.blur=Hn(e);break;case"clrChange":d.clrChange=Gn(e);break;case"clrRepl":d.clrRepl=Un(e);break;case"duotone":d.duotone=Jn(e);break;case"fillOverlay":d.fillOverlay=Sa(e);break;case"grayscl":d.grayscl=Vn();break;case"hsl":d.hsl=jn(e);break;case"lum":d.lum=Kn(e);break;case"tint":d.tint=ea(e);break;case"blipBlob":d.blipBlob=fa(e);break;case S:d.extLst=Mt(e)}if(l=d.extLst&&d.extLst.ext,Array.isArray(l)&&d.embed){for(s=-1,c=0;ct+1||2===i||(n=Be(e),"blob"===n&&(l.blob=e.readElementContentAsString()));return l}t.DrawingReader.ReadCT_BlipBlob=fa;function ba(e){for(var t,r,o,i,n,a={};e.moveToNextAttribute();)t=De(e),"dpi"===t?a.dpi=e.readContentAsInt():t===ke&&(a.rotWithShape=e.readContentAsBoolean());if(3===e.elementType)return a;for(r=e.depth;e.read()&&(o=e.depth,i=e.elementType,o!==r||2!==i);)if(!(o>r+1||2===i))switch(n=Be(e)){case"blip":a.blip=ua(e);break;case"srcRect":a.srcRect=Xt(e);break;case"tile":a.tile=ca(e);break;case"stretch":a.stretch=da(e)}return a}t.DrawingReader.ReadCT_BlipFillProperties=ba;function ha(e){var t,r,i,l,s={},c=Pe(e,y);if(a.J(c)||(s.prst=n.ChartHelper.ToPatternType(o.Charts.ST_PresetPatternVal[c])),3===e.elementType)return s;for(t=e.depth;e.read()&&(r=e.depth,i=e.elementType,r!==t||2!==i);)r>t+1||2===i||(l=Be(e),"fgClr"!==l&&"bgClr"!==l||(s[l]=qt(e)));return s}t.DrawingReader.ReadCT_PatternFillProperties=ha;function pa(){return{}}t.DrawingReader.ReadCT_GroupFillProperties=pa;function ma(e){var t={};return 3===e.elementType?t:Me(e,t)}function ga(e){return ma(e)}t.DrawingReader.ReadCT_FillProperties=ga;function ya(e){return Kt(e)}t.DrawingReader.ReadCT_FillEffect=ya;function Sa(e){var t={},r=Pe(e,"blend");return a.J(r)||(t.blend=o.Charts.ST_BlendMode[r]),3===e.elementType?t:Me(e,t)}t.DrawingReader.ReadCT_FillOverlayEffect=Sa;function Ca(e){var t={};return t.ref=Pe(e,"ref"),t}t.DrawingReader.ReadCT_EffectReference=Ca;function wa(e){for(var t,r,i,n,a,l={type:0};e.moveToNextAttribute();)t=De(e),t===g?l.type=o.Charts.ST_EffectContainerType[e.readContentAsString()]:t===m&&(l.name=e.readContentAsString());if(3===e.elementType)return l;for(r=e.depth;e.read()&&(i=e.depth,n=e.elementType,i!==r||2!==n);)if(!(i>r+1||2===n))switch(a=Be(e)){case"cont":l.cont=wa(e);break;case"effect":l.effect=Ca(e);break;case"alphaBiLevel":l.alphaBiLevel=Dn(e);break;case"alphaCeiling":l.alphaCeiling=Bn();break;case"alphaFloor":l.alphaFloor=Pn();break;case"alphaInv":l.alphaInv=Wn(e);break;case"alphaMod":l.alphaMod=xa(e);break;case"alphaModFix":l.alphaModFix=_n(e);break;case"alphaOutset":l.alphaOutset=Nn(e);break;case"alphaRepl":l.alphaRepl=Mn(e);break;case"biLevel":l.biLevel=On(e);break;case"blend":l.blend=Aa(e);break;case"blur":l.blur=Hn(e);break;case"clrChange":l.clrChange=Gn(e);break;case"clrRepl":l.clrRepl=Un(e);break;case"duotone":l.duotone=Jn(e);break;case"fill":l.fill=ya(e);break;case"fillOverlay":l.fillOverlay=Sa(e);break;case"glow":l.glow=zn(e);break;case"grayscl":l.grayscl=Vn();break;case"hsl":l.hsl=jn(e);break;case"innerShdw":l.innerShdw=Xn(e);break;case"lum":l.lum=Kn(e);break;case"outerShdw":l.outerShdw=qn(e);break;case"prstShdw":l.prstShdw=Yn(e);break;case"reflection":l.reflection=Qn(e);break;case"relOff":l.relOff=Zn(e);break;case"softEdge":l.softEdge=$n(e);break;case"tint":l.tint=ea(e);break;case"xfrm":l.xfrm=ta(e)}return l}t.DrawingReader.ReadCT_EffectContainer=wa;function xa(e){return We(e,"cont",wa)}t.DrawingReader.ReadCT_AlphaModulateEffect=xa;function Aa(e){var t={},r=Pe(e,"blend");return a.J(r)||(t.blend=o.Charts.ST_BlendMode[r]),We(e,"cont",wa,t)}t.DrawingReader.ReadCT_BlendEffect=Aa;function Ta(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)if(!(r>t+1||2===o))switch(i=Be(e)){case"blur":n.blur=Hn(e);break;case"fillOverlay":n.fillOverlay=Sa(e);break;case"glow":n.glow=zn(e);break;case"innerShdw":n.innerShdw=Xn(e);break;case"outerShdw":n.outerShdw=qn(e);break;case"prstShdw":n.prstShdw=Yn(e);break;case"reflection":n.reflection=Qn(e);break;case"softEdge":n.softEdge=$n(e)}return n}t.DrawingReader.ReadCT_EffectList=Ta;function va(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),i===x?n.effectLst=Ta(e):i===A&&(n.effectDag=wa(e)));return n}t.DrawingReader.ReadCT_EffectProperties=va;function ka(e){for(var t,r={};e.moveToNextAttribute();)t=De(e),t!==m&&"fmla"!==t||(r[t]=e.readContentAsString());return r}t.DrawingReader.ReadCT_GeomGuide=ka;function Fa(e){var t,r,o,i,n={gd:[]};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"gd"===i?n.gd.push(ka(e)):i===k&&(n.dumy=e.readElementContentAsBoolean()));return n}t.DrawingReader.ReadCT_GeomGuideList=Fa;function Ra(e){return Ze(e,["x","y"])}t.DrawingReader.ReadCT_AdjPoint2D=Ra;function Ea(e){for(var t,r={},o={l:!0,t:!0,r:!0,b:!0};e.moveToNextAttribute();)t=De(e),o[t]&&(r[t]=e.readContentAsString());return r}t.DrawingReader.ReadCT_GeomRect=Ea;function Ia(e,t){for(var r,o={};e.moveToNextAttribute();)r=De(e),r!==t[0]&&r!==t[1]||(o[r]=e.readContentAsString());return We(e,"pos",Ra,o)}function La(e){return Ia(e,["gdRefX","gdRefY"])}t.DrawingReader.ReadCT_XYAdjustHandle=La;function Da(e){return Ia(e,["gdRefR","gdRefAng"])}t.DrawingReader.ReadCT_PolarAdjustHandle=Da;function Ba(e){var t={};return t.ang=Pe(e,"ang"),We(e,"pos",Ra,t)}t.DrawingReader.ReadCT_ConnectionSite=Ba;function Pa(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"ahXY"===i?n.ahXY=La(e):"ahPolar"===i&&(n.ahPolar=Da(e)));return n}t.DrawingReader.ReadCT_AdjustHandleList=Pa;function Wa(e){var t,r,o,i,n={cxn:[]};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"cxn"===i?n.cxn.push(Ba(e)):i===k&&(n.dumy=e.readElementContentAsBoolean()));return n}t.DrawingReader.ReadCT_ConnectionSiteList=Wa;function _a(e){for(var t,r={};e.moveToNextAttribute();)t=De(e),"id"!==t&&t!==U||(r[t]=e.readContentAsInt());return r}t.DrawingReader.ReadCT_Connection=_a;function Na(e,t){var r,i,n,a,l={PtList:[],typeName:o.Charts.CT_PathType.CT_PathToList};if(l.pathToType=t,3===e.elementType)return l;for(r=e.depth;e.read()&&(i=e.depth,n=e.elementType,i!==r||2!==n);)i>r+1||2===n||(a=Be(e),"pt"===a&&l.PtList.push(Ra(e)));return l}function Ma(){return{typeName:o.Charts.CT_PathType.CT_Path2DArcTo}}t.DrawingReader.ReadCT_Path2DArcTo=Ma;function Oa(){return{typeName:o.Charts.CT_PathType.CT_Path2DClose}}t.DrawingReader.ReadCT_Path2DClose=Oa;function Ha(e){for(var t,r,i,n,a,l={quadBezTo:[],cubicBezTo:[],w:0,h:0,fill:1,stroke:!0,extrusionOk:!0,pathToList:[]};e.moveToNextAttribute();)t=De(e),"w"===t||"h"===t?l[t]=e.readContentAsInt():"stroke"===t||"extrusionOk"===t?l[t]=e.readContentAsBoolean():"fill"===t&&(l.fill=o.Charts.ST_PathFillMode[e.readContentAsString()]);if(3===e.elementType)return l;for(r=e.depth;e.read()&&(i=e.depth,n=e.elementType,i!==r||2!==n);)if(!(i>r+1||2===n))switch(a=Be(e)){case"close":l.pathToList.push(Oa());break;case"moveTo":l.pathToList.push(Na(e,1));break;case"lnTo":l.pathToList.push(Na(e,0));break;case"arcTo":l.pathToList.push(Ma());break;case"quadBezTo":l.pathToList.push(Na(e,2));break;case"cubicBezTo":l.pathToList.push(Na(e,3))}return l}t.DrawingReader.ReadCT_Path2D=Ha;function Ga(e){var t,r,o,i,n=[];if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"path"===i&&n.push(Ha(e)));return n}t.DrawingReader.ReadCT_Path2DList=Ga;function Ua(e){var t={},r=Pe(e,y);return a.J(r)||(t.prst=o.Charts.ST_ShapeType[r]),We(e,"avLst",Fa,t)}t.DrawingReader.ReadCT_PresetGeometry2D=Ua;function Ja(e){var t={},r=Pe(e,y);return a.J(r)||(t.prst=o.Charts.ST_TextShapeType[r]),We(e,"avLst",Fa,t)}t.DrawingReader.ReadCT_PresetTextShape=Ja;function za(e){var t,r,o,i,n={pathLst:[]};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)if(!(r>t+1||2===o))switch(i=Be(e)){case"avLst": n.avLst=Fa(e);break;case"gdLst":n.gdLst=Fa(e);break;case"ahLst":n.ahLst=Pa(e);break;case"cxnLst":n.cxnLst=Wa(e);break;case"rect":n.rect=Ea(e);break;case"pathLst":n.pathLst=Ga(e)}return n}t.DrawingReader.ReadCT_CustomGeometry2D=za;function Va(e){for(var t,r={w:1,len:1};e.moveToNextAttribute();)switch(t=De(e)){case g:r.type=o.Charts.ST_LineEndType[e.readContentAsString()];break;case"w":r.w=o.Charts.ST_LineEndWidth[e.readContentAsString()];break;case"len":r.len=o.Charts.ST_LineEndLength[e.readContentAsString()]}return r}t.DrawingReader.ReadCT_LineEndProperties=Va;function ja(){return{}}t.DrawingReader.ReadCT_LineJoinBevel=ja;function Xa(){return!0}t.DrawingReader.ReadCT_LineJoinRound=Xa;function Ka(e){var t={};return t.lim=Pe(e,"lim",b),t}t.DrawingReader.ReadCT_LineJoinMiterProperties=Ka;function qa(e){var t=Pe(e,p);if(!a.J(t))return o.Charts.ST_PresetLineDashVal[t]}t.DrawingReader.ReadCT_PresetLineDashProperties=qa;function Ya(e){return St(e,["d","sp"])}t.DrawingReader.ReadCT_DashStop=Ya;function Qa(e){var t,r,o,i,n={ds:[]};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"ds"===i?n.ds.push(Ya(e)):i===k&&(n.dumy=e.readElementContentAsBoolean()));return n}t.DrawingReader.ReadCT_DashStopList=Qa;function Za(e){for(var t,r,i,n,a,l={};e.moveToNextAttribute();)switch(t=De(e)){case"w":l.w=c(e.readContentAsInt());break;case"cap":l.cap=o.Charts.ST_LineCap[e.readContentAsString()];break;case"cmpd":l.cmpd=o.Charts.ST_CompoundLine[e.readContentAsString()];break;case"algn":l.algn=o.Charts.ST_PenAlignment[e.readContentAsString()]}if(3===e.elementType)return l;for(r=e.depth;e.read()&&(i=e.depth,n=e.elementType,i!==r||2!==n);)if(!(i>r+1||2===n))switch(a=Be(e)){case W:l.noFill=ra();break;case _:l.solidFill=oa(e);break;case N:l.gradFill=sa(e);break;case O:l.pattFill=ha(e);break;case"prstDash":l.prstDash=qa(e);break;case"custDash":l.custDash=Qa(e);break;case"round":l.round=Xa();break;case"bevel":l.bevel=ja();break;case"miter":l.miter=Ka(e);break;case"headEnd":l.headEnd=Va(e);break;case"tailEnd":l.tailEnd=Va(e);break;case S:l.extLst=Mt(e)}return 0!==l.w||l.noFill||(l.w=1),l}t.DrawingReader.ReadCT_LineProperties=Za;function $a(e){for(var t,r={};e.moveToNextAttribute();)switch(t=De(e)){case"asvg":r.asvg=e.readContentAsString();break;case"embed":r.embed=e.readContentAsString()}return r}t.DrawingReader.ReadCT_SvgBlip=$a;function el(e){var t,r,i,n,l={},s=Pe(e,"bwMode");if(a.J(s)||(l.bwMode=o.Charts.ST_BlackWhiteMode[s]),3===e.elementType)return l;for(t=e.depth;e.read()&&(r=e.depth,i=e.elementType,r!==t||2!==i);)if(!(r>t+1||2===i))switch(n=Be(e)){case"xfrm":l.xfrm=Ht(e);break;case"custGeom":l.custGeom=za(e);break;case"prstGeom":l.prstGeom=Ua(e);break;case W:l.noFill=ra();break;case _:l.solidFill=oa(e);break;case N:l.gradFill=sa(e);break;case M:l.blipFill=ba(e);break;case O:l.pattFill=ha(e);break;case H:l.grpFill=pa();break;case"ln":l.ln=Za(e);break;case x:l.effectLst=Ta(e);break;case A:l.effectDag=wa(e);break;case J:l.scene3d=kn(e);break;case"sp3d":l.sp3d=En(e);break;case S:l.extLst=Mt(e)}return l}t.DrawingReader.ReadCT_ShapeProperties=el;function tl(e){var t,r,i,n,l={},s=Pe(e,"bwMode");if(a.J(s)||(l.bwMode=o.Charts.ST_BlackWhiteMode[s]),3===e.elementType)return l;for(t=e.depth;e.read()&&(r=e.depth,i=e.elementType,r!==t||2!==i);)if(!(r>t+1||2===i))switch(n=Be(e)){case"xfrm":l.xfrm=Gt(e);break;case W:l.noFill=ra();break;case _:l.solidFill=oa(e);break;case N:l.gradFill=sa(e);break;case M:l.blipFill=ba(e);break;case O:l.pattFill=ha(e);break;case H:l.grpFill=pa();break;case x:l.effectLst=Ta(e);break;case A:l.effectDag=wa(e);break;case J:l.scene3d=kn(e);break;case S:l.extLst=Mt(e)}return l}t.DrawingReader.ReadCT_GroupShapeProperties=tl;function rl(e){var t,r,o,i,n={ColorProp:{}};if(n[U]=Pe(e,U,b),3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)if(!(r>t+1||2===o))switch(i=Be(e)){case R:n.ColorProp.scrgbClr=It(e);break;case E:n.ColorProp.srgbClr=Dt(e);break;case I:n.ColorProp.hslClr=Bt(e);break;case L:n.ColorProp.sysClr=Pt(e);break;case D:n.ColorProp.schemeClr=Wt(e);break;case B:n.ColorProp.prstClr=_t(e);break;case P:n.ColorProp.styleClr=Nt(e)}return n}t.DrawingReader.ReadCT_StyleMatrixReference=rl;function ol(e){var t,r,i,n,a,l={TextCharacterProperties:{}};if(l[U]=Pe(e,U),l.idx&&(l.idx=o.Charts.ST_FontCollectionIndex[l.idx]),3===e.elementType)return l;for(t=l.TextCharacterProperties.solidFill={},r=e.depth;e.read()&&(i=e.depth,n=e.elementType,i!==r||2!==n);)if(!(i>r+1||2===n))switch(a=Be(e)){case R:t.scrgbClr=It(e);break;case E:t.srgbClr=Dt(e);break;case I:t.hslClr=Bt(e);break;case L:t.sysClr=Pt(e);break;case D:t.schemeClr=Wt(e);break;case B:t.prstClr=_t(e)}return l}t.DrawingReader.ReadCT_FontReference=ol;function il(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"lnRef"===i||"fillRef"===i||"effectRef"===i?n[i]=rl(e):"fontRef"===i&&(n.fontRef=ol(e)));return n}t.DrawingReader.ReadCT_ShapeStyle=il;function nl(e){for(var t,r={fLocksWithSheet:!0,fPrintsWithSheet:!0};e.moveToNextAttribute();)t=De(e),"fLocksWithSheet"!==t&&"fPrintsWithSheet"!==t||(r[t]=e.readContentAsBoolean());return r}t.DrawingReader.ReadCT_AnchorClientData=nl;function al(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),i===C?n.cNvPr=bn(e):"cNvSpPr"===i&&(n.cNvSpPr=hn(e)));return n}t.DrawingReader.ReadCT_ShapeNonVisual=al;function ll(e){for(var t,r,o,i,n,a={shapeType:5};e.moveToNextAttribute();)t=De(e),t===w||"textlink"===t?a[t]=d(e.readContentAsString()):"fLocksText"!==t&&t!==T||(a[t]=e.readContentAsBoolean());if(3===e.elementType)return a;for(r=e.depth;e.read()&&(o=e.depth,i=e.elementType,o!==r||2!==i);)if(!(o>r+1||2===i))switch(n=Be(e)){case"nvSpPr":a.nvSpPr=al(e);break;case z:a.spPr=el(e);break;case ve:a.style=il(e);break;case"txBody":a.txBody=zl(e)}return a}t.DrawingReader.ReadCT_Shape=ll;function sl(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),i===C?n.cNvPr=bn(e):"cNvCxnSpPr"===i&&(n.cNvCxnSpPr=pn(e)));return n}t.DrawingReader.ReadCT_ConnectorNonVisual=sl;function cl(e){for(var t,r,o,i,n,a={shapeType:4};e.moveToNextAttribute();)t=De(e),t===w?a.macro=e.readContentAsString():t===T&&(a.fPublished=e.readContentAsBoolean());if(3===e.elementType)return a;for(r=e.depth;e.read()&&(o=e.depth,i=e.elementType,o!==r||2!==i);)if(!(o>r+1||2===i))switch(n=Be(e)){case"nvCxnSpPr":a.nvCxnSpPr=sl(e);break;case z:a.spPr=el(e);break;case ve:a.style=il(e)}return a}t.DrawingReader.ReadCT_Connector=cl;function dl(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),i===C?n.cNvPr=bn(e):"cNvPicPr"===i&&(n.cNvPicPr=mn(e)));return n}t.DrawingReader.ReadCT_PictureNonVisual=dl;function ul(e){for(var t,r,o,i,n,a={shapeType:1};e.moveToNextAttribute();)t=De(e),t===w?a.macro=e.readContentAsString():t===T&&(a.fPublished=e.readContentAsBoolean());if(3===e.elementType)return a;for(r=e.depth;e.read()&&(o=e.depth,i=e.elementType,o!==r||2!==i);)if(!(o>r+1||2===i))switch(n=Be(e)){case"nvPicPr":a.nvPicPr=dl(e);break;case M:a.blipFill=ba(e);break;case z:a.spPr=el(e);break;case ve:a.style=il(e)}return gl(a)&&(a.cameraTool=!0),a}t.DrawingReader.ReadCT_Picture=ul;function fl(e){return Ue(e)}t.DrawingReader.ReadCT_GraphicalObjectFrameNonVisual=fl;function bl(e){for(var t,r,o,i,n,a={shapeType:2};e.moveToNextAttribute();)t=De(e),t===w?a.macro=e.readContentAsString():t===T&&(a.fPublished=e.readContentAsBoolean());if(3===e.elementType)return a;for(r=e.depth;e.read()&&(o=e.depth,i=e.elementType,o!==r||2!==i);)if(!(o>r+1||2===i))switch(n=Be(e)){case"nvGraphicFramePr":a.nvGraphicFramePr=fl(e);break;case"xfrm":a.xfrm=Ht(e);break;case"graphic":a.graphic=wn(e)}return a}t.DrawingReader.ReadCT_GraphicalObjectFrame=bl;function hl(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),i===C?n.cNvPr=bn(e):"cNvGrpSpPr"===i&&(n.cNvGrpSpPr=gn(e)));return n}t.DrawingReader.ReadCT_GroupShapeNonVisual=hl;function pl(e){var t,r,o,i,n,a,l={shapeType:3,sp:[]};if(3===e.elementType)return l;for(t=e.depth,r=!1;(r||e.read())&&(r=!1,o=e.depth,i=e.elementType,o!==t||2!==i);)if(!(o>t+1||2===i))switch(n=Be(e)){case"nvGrpSpPr":l.nvGrpSpPr=hl(e);break;case"grpSpPr":l.grpSpPr=tl(e);break;case"sp":l.sp.push(ll(e));break;case Y:l.sp.push(pl(e));break;case v:l.sp.push(bl(e));break;case Q:l.sp.push(cl(e));break;case"pic":l.sp.push(ul(e));break;case"AlternateContent":a=wl(e),ml(a)?l.sp.push(a):a&&a.Choice&&a.Choice.pic&&gl(a.Choice.pic)?l.sp.push(a.Choice.pic):a&&a.Choice&&a.Choice.sp&&l.sp.push(a.Choice.sp),r=!0}return l}t.DrawingReader.ReadCT_GroupShape=pl;function ml(e){return!!(e&&e.Choice&&e.Choice.GraphicalObjectFrame&&e.Choice.GraphicalObjectFrame.graphic&&e.Choice.GraphicalObjectFrame.graphic.graphicData&&e.Choice.GraphicalObjectFrame.graphic.graphicData.slicer)}function gl(e){return!!(e&&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)}t.DrawingReader.IsCameraTool=gl;function yl(e){var t,r,o,i,n,a={};if(3===e.elementType)return a;for(t=e.depth,r={col:!0,row:!0};e.read()&&(o=e.depth,i=e.elementType,o!==t||2!==i);)o>t+1||2===i||(n=Be(e),r[n]?a[n]=e.readElementContentAsInt():"rowOff"===n?(a.rowOffsetEmu=e.readElementContentAsInt(),a.rowOffset=c(a.rowOffsetEmu)):"colOff"===n&&(a.colOffsetEmu=e.readElementContentAsInt(),a.colOffset=c(a.colOffsetEmu)));return a}t.DrawingReader.ReadCT_Position=yl;function Sl(e){var t,r,i,n,l,s={anchorType:0},c=Pe(e,"editAs");if(a.J(c)||(s.editAs=o.Charts.ST_EditAs[c]),3===e.elementType)return s;for(t=e.depth,r=!1;(r||e.read())&&(r=!1,i=e.depth,n=e.elementType,i!==t||2!==n);)if(!(i>t+1||2===n))switch(l=Be(e)){case"from":s.startPoint=yl(e);break;case"to":s.endPoint=yl(e);break;case"sp":s.sp=ll(e);break;case Y:s.grpSp=pl(e);break;case v:s.graphicFrame=bl(e);break;case Q:s.cxnSp=cl(e);break;case"pic":s.pic=ul(e);break;case"AlternateContent":s.AlternateContent=wl(e),r=!0;break;case"clientData":s.clientData=nl(e)}return s}t.DrawingReader.ReadCT_TwoCellAnchor=Sl;function Cl(e){return e.replace(/\n/g," ").replace(/\r/g," ")}function wl(e){for(var t,r,o,i,n={shapeType:0};e.moveToNextAttribute();)n.AlternateContent=Cl(e.readContentAsString());if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"Choice"===i?n.Choice=xl(e):"Fallback"===i&&(n.Fallback={},n.Fallback.Shape=ll(e)));return n}t.DrawingReader.ReadCT_AlternateContent=wl;function xl(e){for(var t,r,o,i,n,a,l={};e.moveToNextAttribute();)t=De(e),t===Fe?(r=e.readContentAsString(),0!==r&&1!==r?l.Requires=r:l.Requires=u(r)):l.cx=e.readContentAsString();if(3===e.elementType)return l;for(o=e.depth;e.read()&&(i=e.depth,n=e.elementType,i!==o||2!==n);)i>o+1||2===n||(a=Be(e),a===v?l.GraphicalObjectFrame=bl(e):"sp"===a?l.sp=ll(e):a===Y?l.grpSp=pl(e):a===Q?l.cxnSp=cl(e):"twoCellAnchor"===a?l.twoCellAnchor=Sl(e):"oneCellAnchor"===a?l.oneCellAnchor=Al(e):"absoluteAnchor"===a?l.absoluteAnchor=Tl(e):"pic"===a&&(l.pic=ul(e)));return l}t.DrawingReader.ReadCT_Choice=xl;function Al(e){var t,r,o,i,n,a,l={anchorType:1};if(3===e.elementType)return l;for(t=e.depth,r=!1;(r||e.read())&&(r=!1,o=e.depth,i=e.elementType,o!==t||2!==i);)if(!(o>t+1||2===i))switch(n=Be(e)){case"from":l.startPoint=yl(e);break;case F:a=At(e,!0),l.width=a.cx,l.height=a.cy;break;case"sp":l.sp=ll(e);break;case Y:l.grpSp=pl(e);break;case v:l.graphicFrame=bl(e);break;case Q:l.cxnSp=cl(e);break;case"pic":l.pic=ul(e);break;case"AlternateContent":l.AlternateContent=wl(e),r=!0;break;case"clientData":l.clientData=nl(e)}return l}t.DrawingReader.ReadCT_OneCellAnchor=Al;function Tl(e){var t,r,o,i,n,a,l,s={anchorType:2};if(3===e.elementType)return s;for(t=e.depth,r=!1;(r||e.read())&&(r=!1,o=e.depth,i=e.elementType,o!==t||2!==i);)if(!(o>t+1||2===i))switch(n=Be(e)){case"pos":a=xt(e,!0),s.x=a.x,s.y=a.y;break;case F:l=At(e,!0),s.width=l.cx,s.height=l.cy;break;case"sp":s.sp=ll(e);break;case Y:s.grpSp=pl(e);break;case v:s.graphicFrame=bl(e);break;case Q:s.cxnSp=cl(e);break;case"pic":s.pic=ul(e);break;case"AlternateContent":s.AlternateContent=wl(e),r=!0;break;case"clientData":s.clientData=nl(e)}return s}t.DrawingReader.ReadCT_AbsoluteAnchor=Tl;function vl(e){var t,r,o,i,n,l,s,c,d={twoCellAnchor:[],oneCellAnchor:[],absoluteAnchor:[],AnchorBaseList:[]};if(3===e.elementType)return d;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)if(!(r>t+1||2===o)){switch(i=Be(e),n=h,l=h,i){case"twoCellAnchor":n=Sl(e);break;case"oneCellAnchor":n=Al(e);break;case"absoluteAnchor":n=Tl(e);break;case"AlternateContent":l=wl(e)}n&&(n.sp||kl(n))&&(s=a.Util.ya(n.AlternateContent),d.AnchorBaseList.push(n),n.AlternateContent&&!s&&delete n.AlternateContent),n&&n.AlternateContent&&n.AlternateContent.Choice&&(n.AlternateContent.Choice.sp||n.AlternateContent.Choice.grpSp||n.AlternateContent.Choice.cxnSp)&&(n.AlternateContent.Choice.sp&&(n.sp=n.AlternateContent.Choice.sp),n.AlternateContent.Choice.grpSp&&(n.grpSp=n.AlternateContent.Choice.grpSp),n.AlternateContent.Choice.cxnSp&&(n.cxnSp=n.AlternateContent.Choice.cxnSp),d.AnchorBaseList.push(n)),c=l&&l.Choice,c&&(c.twoCellAnchor?d.AnchorBaseList.push(c.twoCellAnchor):c.oneCellAnchor?d.AnchorBaseList.push(c.oneCellAnchor):c.absoluteAnchor&&d.AnchorBaseList.push(c.absoluteAnchor))}return d}t.DrawingReader.ReadCT_Drawing=vl;function kl(e){var t,r,o=e.AlternateContent,i=a.Util.ya(o);return!(o&&!ml(o)&&!i)&&!(!i&&(t=e.graphicFrame,r=t&&t.graphic&&t.graphic.graphicData,r&&!r.chart&&!r.slicer))}function Fl(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)if(!(r>t+1||2===o))switch(i=Be(e)){case z:n.spPr=el(e);break;case"bodyPr":n.bodyPr=Jl(e);break;case"lstStyle":n.lstStyle=Ml(e);break;case ve:n.style=il(e);break;case S:n.extLst=Mt(e)}return n}t.DrawingReader.ReadCT_DefaultShapeDefinition=Fl;function Rl(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"spDef"===i||"lnDef"===i||"txDef"===i?n[i]=Fl(e):i===S&&(n.extLst=Mt(e)));return n}t.DrawingReader.ReadCT_ObjectStyleDefaults=Rl;function El(){return{}}t.DrawingReader.ReadCT_EmptyElement=El;function Il(e){for(var t,r={},i={bg1:!0,tx1:!0,bg2:!0,tx2:!0,accent1:!0,accent2:!0,accent3:!0,accent4:!0,accent5:!0,accent6:!0,hlink:!0,folHlink:!0};e.moveToNextAttribute();)t=De(e),i[t]&&(r[t]=o.Charts.ST_ColorSchemeIndex[e.readContentAsString()]);return We(e,S,Mt,r)}t.DrawingReader.ReadCT_ColorMapping=Il;function Ll(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"masterClrMapping"===i?n.masterClrMapping=El():"overrideClrMapping"===i&&(n.overrideClrMapping=Il(e)));return n}t.DrawingReader.ReadCT_ColorMappingOverride=Ll;function Dl(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),i===Z?n.clrScheme=Ye(e):"clrMap"===i&&(n.clrMap=Il(e)));return n}t.DrawingReader.ReadCT_ColorSchemeAndMapping=Dl;function Bl(e){var t,r,o,i,n={extraClrScheme:[]};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"extraClrScheme"===i?n.extraClrScheme.push(Dl(e)):i===k&&(n.dumy=e.readElementContentAsBoolean()));return n}t.DrawingReader.ReadCT_ColorSchemeList=Bl;function Pl(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)if(!(r>t+1||2===o))switch(i=Be(e)){case"theme":n[m]=Pe(e,m);break;case"themeElements":n.themeElements=st(e);break;case"objectDefaults":n.objectDefaults=Rl(e);break;case"extraClrSchemeLst":n.extraClrSchemeLst=Bl(e);break;case"custClrLst":n.custClrLst=et(e);break;case S:n.extLst=Mt(e)}return n}t.DrawingReader.ReadCT_OfficeStyleSheet=Pl;function Wl(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)if(!(r>t+1||2===o))switch(i=Be(e)){case Z:n.clrScheme=Ye(e);break;case $:n.fontScheme=ot(e);break;case ee:n.fmtScheme=lt(e)}return n}t.DrawingReader.ReadCT_BaseStylesOverride=Wl;function _l(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"themeElements"===i?n.themeElements=st(e):"clrMap"===i&&(n.clrMap=Il(e)));return n}t.DrawingReader.ReadCT_ClipboardStyleSheet=_l;function Nl(e){var r,o,i,n,a,l={};if(3===e.elementType)return l;for(r=e.depth,o=[];e.read()&&(i=e.depth,n=e.elementType,i!==r||2!==n);)if(!(i>r+1||2===n))switch(a=Be(e)){case"pPr":l.pPr=us(e);break;case"r":o.push(t.DrawingReader.ReadCT_RegularTextRun(e));break;case"br":o.push(t.DrawingReader.ReadCT_TextLineBreak(e));break;case"fld":o.push(t.DrawingReader.ReadCT_TextField(e));break;case"endParaRPr":l.endParaRPr=is(e)}return o.length>0&&(l.elements=o),l}t.DrawingReader.ReadCT_TextParagraph=Nl;function Ml(e){var t,r,o,i,n,a={};if(3===e.elementType)return a;for(t=e.depth,r={defPPr:!0,lvl1pPr:!0,lvl2pPr:!0,lvl3pPr:!0,lvl4pPr:!0,lvl5pPr:!0,lvl6pPr:!0,lvl7pPr:!0,lvl8pPr:!0,lvl9pPr:!0};e.read()&&(o=e.depth,i=e.elementType,o!==t||2!==i);)o>t+1||2===i||(n=Be(e),r[n]?a[n]=us(e):n===S&&(a.extLst=Mt(e)));return a}t.DrawingReader.ReadCT_TextListStyle=Ml;function Ol(e){for(var t,r={fontScale:1e5,lnSpcReduction:0};e.moveToNextAttribute();)t=De(e),"fontScale"!==t&&"lnSpcReduction"!==t||(r[t]=e.readContentAsInt());return r}t.DrawingReader.ReadCT_TextNormalAutofit=Ol;function Hl(){return!0}t.DrawingReader.ReadCT_TextShapeAutofit=Hl;function Gl(){return{}}t.DrawingReader.ReadCT_TextNoAutofit=Gl;function Ul(e){return e/6e4}t.DrawingReader.getRotationDegree=Ul;function Jl(e){for(var t,r,i,n,l,s,c={},d={lIns:!0,tIns:!0,rIns:!0,bIns:!0,numCol:!0,spcCol:!0},u={spcFirstLastPara:!0,rtlCol:!0,fromWordArt:!0,anchorCtr:!0,forceAA:!0,upright:!0,compatLnSpc:!0};e.moveToNextAttribute();)r=De(e),d[r]?c[r]=e.readContentAsInt():u[r]?c[r]=e.readContentAsBoolean():"rot"===r?t=e.readContentAsInt():"vertOverflow"===r?c.vertOverflow=o.Charts.ST_TextVertOverflowType[e.readContentAsString()]:"horzOverflow"===r?c.horzOverflow=o.Charts.ST_TextHorzOverflowType[e.readContentAsString()]:"vert"===r?c.vert=o.Charts.ST_TextVerticalType[e.readContentAsString()]:"wrap"===r?c.wrap=o.Charts.ST_TextWrappingType[e.readContentAsString()]:"anchor"===r&&(c.anchor=o.Charts.ST_TextAnchoringType[e.readContentAsString()]);if(a.J(t)?c.vert===o.Charts.ST_TextVerticalType.horz&&(c.rot=0):t!==-6e7&&(c.rot=Ul(t)),3===e.elementType)return c;for(i=e.depth;e.read()&&(n=e.depth,l=e.elementType,n!==i||2!==l);)if(!(n>i+1||2===l))switch(s=Be(e)){case"prstTxWarp":c.prstTxWarp=Ja(e);break;case"noAutofit":c.noAutofit=Gl();break;case"normAutofit":c.normAutofit=Ol(e);break;case"spAutoFit":c.spAutoFit=Hl();break;case J:c.scene3d=kn(e);break;case"sp3d":c.sp3d=En(e);break;case"flatTx":c.flatTx=In(e);break;case S:c.extLst=Mt(e)}return c}t.DrawingReader.ReadCT_TextBodyProperties=Jl;function zl(e){var t,r,o,i,n,a={};if(3===e.elementType)return a;for(t=e.depth,r=[];e.read()&&(o=e.depth,i=e.elementType,o!==t||2!==i);)if(!(o>t+1||2===i))switch(n=Be(e)){case"bodyPr":a.bodyPr=Jl(e);break;case"lstStyle":a.lstStyle=Ml(e);break;case"p":r.push(Nl(e))}return r.length>0&&(a.p=r),a}t.DrawingReader.ReadCT_TextBody=zl;function Vl(){return{}}t.DrawingReader.ReadCT_TextBulletColorFollowText=Vl;function jl(){return{}}t.DrawingReader.ReadCT_TextBulletSizeFollowText=jl;function Xl(e){return Pe(e,p,b)}t.DrawingReader.ReadCT_TextBulletSizePercent=Xl;function Kl(e){return Pe(e,p,b)}t.DrawingReader.ReadCT_TextBulletSizePoint=Kl;function ql(){return{}}t.DrawingReader.ReadCT_TextBulletTypefaceFollowText=ql;function Yl(e){for(var t,r={startAt:1};e.moveToNextAttribute();)t=De(e),t===g?r.type=o.Charts.ST_TextAutonumberScheme[e.readContentAsString()]:"startAt"===t&&(r.startAt=e.readContentAsInt());return r}t.DrawingReader.ReadCT_TextAutonumberBullet=Yl;function Ql(e){var t={};return t.char=Pe(e,"char"),t}t.DrawingReader.ReadCT_TextCharBullet=Ql;function Zl(e){return We(e,"blip",ua)}t.DrawingReader.ReadCT_TextBlipBullet=Zl;function $l(){return{}}t.DrawingReader.ReadCT_TextNoBullet=$l;function es(e){for(var t,r={pitchFamily:0,charset:1},o={typeface:!0,panose:!0,pitchFamily:!0,charset:!0};e.moveToNextAttribute();)t=De(e),o[t]&&(r[t]=e.readContentAsString());return r}t.DrawingReader.ReadCT_TextFont=es;function ts(){return{}}t.DrawingReader.ReadCT_TextUnderlineLineFollowText=ts;function rs(){return{}}t.DrawingReader.ReadCT_TextUnderlineFillFollowText=rs;function os(e){return ma(e)}t.DrawingReader.ReadCT_TextUnderlineFillGroupWrapper=os;function is(e){for(var t,r,n,a,l,s={},c={kern:!0,spc:!0,baseline:!0,smtId:!0},d={kumimoji:!0,normalizeH:!0,noProof:!0,dirty:!0,err:!0,smtClean:!0},u={altLang:!0,bmk:!0};e.moveToNextAttribute();)t=De(e),c[t]?s[t]=e.readContentAsInt():d[t]?s[t]=e.readContentAsBoolean():u[t]?s[t]=e.readContentAsString():"sz"===t?s.sz=i.UnitHelper.pointToPixel(e.readContentAsInt()/100):"b"===t?s.b=e.readContentAsBoolean():"i"===t?s.i=e.readContentAsBoolean():"u"===t?s.u=o.Charts.ST_TextUnderlineType[e.readContentAsString()]:"strike"===t?s.strike=o.Charts.ST_TextStrikeType[e.readContentAsString()]:"cap"===t&&(s.cap=o.Charts.ST_TextCapsType[e.readContentAsString()]);if(3===e.elementType)return s;for(r=e.depth;e.read()&&(n=e.depth,a=e.elementType,n!==r||2!==a);)if(!(n>r+1||2===a))switch(l=Be(e)){case"ln":s.ln=Za(e);break;case W:s.noFill=ra();break;case _:s.solidFill=oa(e);break;case N:s.gradFill=sa(e);break;case M:s.blipFill=ba(e);break;case O:s.pattFill=ha(e);break;case H:s.grpFill=pa();break;case x:s.effectLst=Ta(e);break;case A:s.effectDag=wa(e);break;case"highlight":s.highlight=qt(e);break;case"uLnTx":s.uLnTx=ts();break;case"uLn":s.uLn=Za(e);break;case"uFillTx":s.uFillTx=rs();break;case"uFill":s.uFill=os(e);break;case"latin":s.latin=es(e);break;case"ea":s.ea=es(e);break;case"cs":s.cs=es(e);break;case"sym":s.sym=es(e);break;case"hlinkClick":s.hlinkClick=Zt(e);break;case"hlinkMouseOver":s.hlinkMouseOver=Zt(e);break;case S:s.extLst=Mt(e)}return s}t.DrawingReader.ReadCT_TextCharacterProperties=is;function ns(e){return Pe(e,p,b)}t.DrawingReader.ReadCT_TextSpacingPercent=ns;function as(e){return Pe(e,p,b)}t.DrawingReader.ReadCT_TextSpacingPoint=as;function ls(e){for(var t,r={};e.moveToNextAttribute();)t=De(e),"pos"===t?r.pos=e.readContentAsInt():"algn"===t&&(r.algn=o.Charts.ST_TextTabAlignType[e.readContentAsString()]);return r}t.DrawingReader.ReadCT_TextTabStop=ls;function ss(e){var t,r,o,i,n={tab:[]};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"tab"===i?n.tab.push(ls(e)):i===k&&(n.dumy=e.readElementContentAsBoolean()));return n}t.DrawingReader.ReadCT_TextTabStopList=ss;function cs(e){var t={elementType:1};return We(e,"rPr",is,t)}t.DrawingReader.ReadCT_TextLineBreak=cs;function ds(e){var t,r,o,i,n={};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"spcPct"===i?n.spcPct=ns(e):"spcPts"===i&&(n.spcPts=as(e)));return n}t.DrawingReader.ReadCT_TextSpacing=ds;function us(e){for(var t,r,i,n,a,l={},s={marL:!0,marR:!0,lvl:!0,indent:!0,defTabSz:!0},c={rtl:!0,eaLnBrk:!0,latinLnBrk:!0,hangingPunct:!0};e.moveToNextAttribute();)t=De(e),s[t]?l[t]=e.readContentAsInt():c[t]?l[t]=e.readContentAsBoolean():"fontAlgn"===t?l.fontAlgn=o.Charts.ST_TextFontAlignType[e.readContentAsString()]:"algn"===t&&(l.algn=o.Charts.ST_TextAlignType[e.readContentAsString()]);if(3===e.elementType)return l;for(r=e.depth;e.read()&&(i=e.depth,n=e.elementType,i!==r||2!==n);)if(!(i>r+1||2===n))switch(a=Be(e)){case"lnSpc":l.lnSpc=ds(e);break;case"spcBef":l.spcBef=ds(e);break;case"spcAft":l.spcAft=ds(e);break;case"buClrTx":l.buClrTx=Vl();break;case"buClr":l.buClr=qt(e);break;case"buSzTx":l.buSzTx=jl();break;case"buSzPct":l.buSzPct=Xl(e);break;case"buSzPts":l.buSzPts=Kl(e);break;case"buFontTx":l.buFontTx=ql();break;case"buFont":l.buFont=es(e);break;case"buNone":l.buNone=$l();break;case"buAutoNum":l.buAutoNum=Yl(e);break;case"buChar":l.buChar=Ql(e);break;case"buBlip":l.buBlip=Zl(e);break;case"tabLst":l.tabLst=ss(e);break;case"defRPr":l.defRPr=is(e);break;case S:l.extLst=Mt(e)}return l}t.DrawingReader.ReadCT_TextParagraphProperties=us;function fs(e){for(var t,r,o,i,n,a={elementType:2};e.moveToNextAttribute();)t=De(e),"id"!==t&&t!==g||(a[t]=e.readContentAsString());if(3===e.elementType)return a;for(r=e.depth;e.read()&&(o=e.depth,i=e.elementType,o!==r||2!==i);)if(!(o>r+1||2===i))switch(n=Be(e)){case"rPr":a.rPr=is(e);break;case"pPr":a.pPr=us(e);break;case"t":a.t=e.readElementContentAsString()}return a}t.DrawingReader.ReadCT_TextField=fs;function bs(e){var t,r,o,i,n={elementType:0};if(3===e.elementType)return n;for(t=e.depth;e.read()&&(r=e.depth,o=e.elementType,r!==t||2!==o);)r>t+1||2===o||(i=Be(e),"rPr"===i?n.rPr=is(e):"t"===i&&(n.t=d(e.readElementContentAsString())));return n}t.DrawingReader.ReadCT_RegularTextRun=bs},"./src/xlsx-io/reader/comment-reader.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/excel-types.ts"),i=r("./src/common/common.ts"),n=r("./src/xml-io/node-helper.ts"),a=r("./src/datamodel/excel-style.ts"),l=r("./src/xml-io/xml-parser.ts"),s=r("./src/xlsx-io/common/color-reader.ts"),c=n.XmlNodeHelper.He,d=n.XmlNodeHelper.Ym,u=i.Util.pa;function f(e,t,r,i){var n,a,l,s,c,d;if(e){n=void 0,a=void 0;for(l in e)if("count"!==l&&(s=e[l],s&&(c=s.fileType,c===o.RelationshipConstants._a?n=s:c===o.RelationshipConstants.ab&&(a=s),n&&a)))break;n&&a&&(d=b(n,a,i),r.yg(d,t))}}t.readComments=f;function b(e,t,r){var o=[],i=r(e.fileName);return i&&(g(i,o,l.parseXmlToObject),i=r(t.fileName,!0),p(i,o,l.parseXmlToObject)),o}t.readCommentsFromFile=b;function h(e,t,r){function o(e){return e.row===t&&e.col===r}return e.filter(o)[0]}function p(e,t,r){var o=r(e,!0),n=o.xml,a=c(n["v:shape"]);a&&a.forEach(function(e){var r,o,i,n,a,s,c,f,b=e["x:ClientData"];if(b){if(r=parseInt(d(b,"x:Row"),10),o=parseInt(d(b,"x:Column"),10),isNaN(r)||isNaN(o))return;if(i=h(t,r,o),!i)return;a=e._attr,n=a.fillcolor,n&&(i.backColor=n),n=a.strokecolor,n&&(i.borderColor=n),n=a.strokeweight,n&&(i.borderWidth=n),n=a.style,n&&u(i,n),n=e["v:fill"],n&&(s=n._attr.opacity,s&&("f"===s.substr(-1)?i.opacity=parseFloat(s.substr(0,s.length-1))/65535:i.opacity=parseFloat(s))),n=e["v:stroke"],n&&(i.dashStyle=n._attr.dashstyle,i.lineStyle=n._attr.linestyle),n=e["v:textbox"],n&&(c=n._attr.style,c&&c.indexOf("mso-fit-shape-to-text:t")!==-1&&(i.autoSize=!0),i.inset=n._attr.inset),b["x:SizeWithCells"]&&(i.dynamicSize=!1),b["x:MoveWithCells"]&&(i.dynamicMove=!1),n=d(b,"x:Anchor"),n&&(f=n.split(",").map(function(e){return parseInt(e,10)}),i.anchor=f),n=d(b,"x:Locked"),n&&(i.locked=l(n,!0)),n=d(b,"x:LockText"),n&&(i.lockText=l(n,!0)),n=d(b,"x:TextHAlign"),n&&(i.hAlign=n.toLowerCase()),b["x:Visible"]&&(i.displayMode=1)}});function l(e,t){if(e){var r=e.trim().toLowerCase();if(["false"].indexOf(r)!==-1)return!1;if(["true"].indexOf(r)!==-1)return!0}return t}function s(e,t){var r=(e||"").trim().split(t);return{key:r[0],value:r[1]}}function u(e,t){var r=t.split(";");r.forEach(function(t){var r=s(t,":"),o=r.key,n=r.value;if(!i.J(n))switch(o){case"margin-left":e.marginLeft=m(n);break;case"margin-top":e.marginTop=m(n);break;case"width":e.width=n;break;case"height":e.height=n;break;case"z-index":e.zIndex=parseInt(n,10)}})}}function m(e){var t=96,r=72,o=37.7952755905512;try{return e.indexOf("pt")!==-1?parseFloat(e.replace("pt","")):e.indexOf("in")!==-1?parseFloat(e.replace("in",""))*r:e.indexOf("cm")!==-1?parseFloat(e.replace("cm",""))*o*r/t:parseFloat(e)}catch(e){return 0}}function g(e,t,r){var o,n=r(e),a=n.comments&&n.comments.commentList;a&&(o=c(a.comment),o.forEach(function(e){var r={},o=e._attr.ref;r.row=i.IndexHelper.P(o),r.col=i.IndexHelper.R(o),y(r,e.text),t.push(r)}))}function y(e,t){var r,o,i;t&&(r=void 0,r=c(t.r?t.r:[{t:t.t}]),o=1===r.length,i=[],r.forEach(function(t){var r,n,l,c,u,f=t.rPr;f&&o&&(r=f.rFont&&f.rFont._attr.val,r&&(e.fontFamily=r),n=0,f.u&&(l=f.u&&f.u._attr.val,c=1,l&&(c=a.UnderLineStyle[l]),n|=2===c?8:1),f.strike&&(n|=2),n&&(e.textDecoration=n),f.b&&(e.fontWeight="bold"),f.i&&(e.fontStyle="italic"),r=f.color,r&&(u=s.readColor(r),1===u.colorType()&&81===u.value()||(e.foreColor=u)),r=f.sz&&f.sz._attr.val,r&&(e.fontSize=r+"pt")),i.push(d(t,"t"))}),e.text=u(i.join("")))}},"./src/xlsx-io/reader/conditionalformat-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,S,C,w;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/range-parser.ts"),i=r("./src/xlsx-io/common/color-reader.ts"),n=r("./src/datamodel/excel-style.ts"),a=r("./src/xml-io/xml-parser.ts"),l=r("./src/common/common.ts"),s=r("./src/xml-io/node-helper.ts"),c=r("./src/xlsx-io/reader/style-reader.ts"),d=r("./src/xml-io/xml-reader.ts"),u=r("./src/common/excel-types.ts"),f=s.XmlNodeHelper.He,b=s.XmlNodeHelper.Ym,h=n.ConverterHelper.convertDxfToStyle,p="x14:conditionalFormattings";function x(e,t,r){return l.Util.pa(b(e,t,r))}function A(e){return e.filter(function(e){return e&&e.formula})}function T(e,t,r){var i,n,l,s,c,d,b,h,p,m,g;if(3!==e.elementType&&(i=a.parseXmlToObject(e.readFullElement()).conditionalFormatting,n={rules:[]},l=[],i._attr.sqref&&(l=o.getRangesFromString(i._attr.sqref)),s=i.cfRule,s&&s.formula&&Array.isArray(s.formula)&&(i.cfRule.formula=A(s.formula)),0!==l.length)){for(c=!1,i._attr.pivot&&(c=!0),d=f(i.cfRule),b=0;b0&&(r.Uf=Math.max(r.Uf,g.row+g.rowCount-1)),g.colCount>0&&(r.Tf=Math.max(r.Tf,g.col+g.colCount-1));r.wg(t,n)}}t.readConditionalFormatting=T,m={beginsWith:2,endsWith:2,notContainsText:2,containsText:2,expression:3,containsBlanks:3,notContainsBlanks:3,containsErrors:3,notContainsErrors:3,timePeriod:4,today:4,tomorrow:4,yesterday:4,last7Days:4,lastMonth:4,nextMonth:4,thisWeek:4,nextWeek:4,lastWeek:4,thisMonth:4,top10:5,uniqueValues:6,duplicateValues:7,aboveAverage:8,belowAverage:8,aboveOrEqualToAverage:8,belowOrEqualToAverage:8},g={num:0,min:1,max:2,percent:3,percentile:4,stddev:0,formula:6,autoMin:5,autoMax:7},y={$3Arrows:0,$3ArrowsGray:1,$3Flags:4,$3TrafficLights1:5,$3TrafficLights2:6,$3Signs:7,$3Symbols:8,$3Symbols2:9,$4Arrows:10,$4ArrowsGray:11,$4RedToBlack:12,$4Rating:13,$4TrafficLights:14,$5Arrows:15,$5ArrowsGray:16,$5Rating:17,$5Quarters:18,$3Stars:3,$3Triangles:2,$5Boxes:19,$NoIcons:20},S={num:1,percent:4,formula:7,percentile:5},C={equal:0,notEqual:1,greaterThan:2,greaterThanOrEqual:3,lessThan:4,lessThanOrEqual:5,between:6,notBetween:7};function v(e){return e&&(e=l.Util.pa(e),"="!==e.charAt(0))?"="+e:e}function k(e,t,r){var o,i,n,a,c,d,u,b,h,p={priority:0,ranges:t,pivot:r},S=e._attr;switch(l.J(S.type)||(o=S.type),l.J(S.priority)||(p.priority=s.XmlNodeHelper.Xm(S.priority,0)),o){case"colorScale":i=D(e.colorScale),p.minType=g[i.Zm[0].type],p.minValue=v(i.Zm[0].val),p.minColor=i.$m[0],3===i.Zm.length?(p.ruleType=11,p.midType=g[i.Zm[1].type],p.midValue=v(i.Zm[1].val),p.midColor=i.$m[1],p.maxType=g[i.Zm[2].type],p.maxValue=v(i.Zm[2].val),p.maxColor=i.$m[2]):(p.ruleType=10,p.maxType=g[i.Zm[1].type],p.maxValue=v(i.Zm[1].val),p.maxColor=i.$m[1]);break;case"dataBar":p.ruleType=12,n=e.dataBar,l.J(n._attr.showValue)||(p.showBarOnly=!s.XmlNodeHelper.Vm(n._attr.showValue,!0)),i=D(n),p.minType=g[i.Zm[0].type],p.minValue=v(i.Zm[0].val),p.maxType=g[i.Zm[1].type],p.maxValue=v(i.Zm[1].val), p.color=i.$m[0];break;case"iconSet":p.ruleType=13,p.iconSetType=y.$3TrafficLights1,a=e.iconSet,c=a._attr,l.J(c.iconSet)||(p.iconSetType=y["$"+c.iconSet]),l.J(c.showValue)||(p.showIconOnly=!s.XmlNodeHelper.Vm(c.showValue,!0)),l.J(c.reverse)||(p.reverseIconOrder=s.XmlNodeHelper.Vm(c.reverse,!1)),p.iconCriteria=R(a);break;case"cellIs":p.ruleType=1,d=e._attr,l.J(d.stopIfTrue)||(p.stopIfTrue=s.XmlNodeHelper.Vm(d.stopIfTrue,!1)),l.J(d.dxfId)||(p.dxfId=s.XmlNodeHelper.Xm(d.dxfId,-1)),l.J(d.operator)||(p.operator=C[d.operator]),u=f(e.formula),p.value1="="+l.Util.pa(u[0].formula),2===u.length&&(p.value2="="+l.Util.pa(u[1].formula));break;default:p.ruleType=m[o],l.J(S.dxfId)||(p.dxfId=s.XmlNodeHelper.Xm(S.dxfId,-1)),l.J(S.aboveAverage)||(p.aboveAverage=s.XmlNodeHelper.Vm(S.aboveAverage,!0),p.aboveAverage||"aboveAverage"!==o||(o="belowAverage")),l.J(S.bottom)||(p.bottom=s.XmlNodeHelper.Vm(S.bottom,!1)),l.J(S.equalAverage)||(b=s.XmlNodeHelper.Vm(S.equalAverage,!1),b&&("aboveAverage"===o&&(o="aboveOrEqualToAverage"),"belowAverage"===o&&(o="belowOrEqualToAverage"))),l.J(S.operator)||(p.operator=S.operator),l.J(S.percent)||(p.percent=s.XmlNodeHelper.Vm(S.percent,!1)),l.J(S.rank)||(p.rank=s.XmlNodeHelper.Xm(S.rank,0)),l.J(S.stdDev)||(p.stdDev=s.XmlNodeHelper.Xm(S.stdDev,0)),l.J(S.stopIfTrue)||(p.stopIfTrue=s.XmlNodeHelper.Vm(S.stopIfTrue,!1)),l.J(S.text)||(p.text=l.Util.pa(S.text)),l.J(S.timePeriod)||(o=S.timePeriod),h=e.formula,l.J(h)||(Array.isArray(h)&&(e.formula=h[0]),p.formula=l.processFunction(x(e,"formula"))),p=F(p,o)}return e.extLst&&e.extLst.ext&&e.extLst.ext["x14:id"]&&(p.id=x(e.extLst.ext,"x14:id")),p}function F(e,t){var r,o,i,n,a,s,c;switch(t){case"expression":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return e;case"top10":return r=e.ranges[0],o={ruleType:e.ruleType,dxfId:e.dxfId,rank:e.rank,stopIfTrue:e.stopIfTrue,priority:e.priority,ranges:e.ranges,pivot:e.pivot},o.type=0,e.bottom&&(o.type=1),e.percent&&(i=Math.floor(r.rowCount*r.colCount*e.rank/100),0===i&&(i=1),o.rank=i),o;case"uniqueValues":case"duplicateValues":return e;case"containsText":return e.operator=0,e;case"aboveAverage":case"belowAverage":case"aboveOrEqualToAverage":case"belowOrEqualToAverage":return n=0,a=!0,"belowAverage"===t&&(a=!1,n=1),"belowOrEqualToAverage"===t&&(a=!1,n=3),"aboveOrEqualToAverage"===t&&(n=2),l.J(e.stdDev)||(s=e.stdDev,a?1===s?n=4:2===s?n=6:3===s&&(n=8):1===s?n=5:2===s?n=7:3===s&&(n=9)),e.type=n,e;case"beginsWith":return e.operator=2,e;case"endsWith":return e.operator=3,e;case"notContainsText":return e.operator=1,e;case"timePeriod":case"today":case"tomorrow":case"yesterday":case"last7Days":case"lastMonth":case"nextMonth":case"thisWeek":case"nextWeek":case"lastWeek":case"thisMonth":return c={today:0,yesterday:1,tomorrow:2,last7Days:3,thisMonth:4,lastMonth:5,nextMonth:6,thisWeek:7,lastWeek:8,nextWeek:9},e.type=0,c[t]&&(e.type=c[t]),e;default:return e}}function R(e){var t,r,o=[],i=D(e);for(t=1;t0))for(i=0;i(?!<\/br>)/g,"
"),c=i.parseXmlToObject(s).xml,b=l(c["v:shape"]),b.forEach(function(e){var o=d(e,t,r);o&&(f(e,o),u(o))})),r.an="")}t.readControlVmlDrawing=c;function d(e,t,r){var o=e._attr["o:spid"]||e._attr.id;if(!n.isNullOrUndefined(o))return r.Ig(t,o)}function u(e){var t,r,o=e&&e.nvSpPr&&e.nvSpPr.cNvPr,i=o&&o.extLst&&o.extLst.ext||[];for(t=0;t=3&&"x:"===t.slice(0,2)&&l(t)&&(r=m(t),n[r]=o[t][t]);return n}function h(e){var t=e._attr.style;return t.indexOf("visibility:hidden")===-1}function p(e){return!!e["x:ClientData"]["x:Disabled"]}function m(e){return g(e.substring(2))}function g(e){return e.substring(0,1).toLowerCase()+e.substring(1)}},"./src/xlsx-io/reader/ctrlprops-reader.ts":function(e,t,r){"use strict";var o,i;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/excel-types.ts"),i=r("./src/xml-io/xml-parser.ts");function n(e,t,r){var n,l,s,c=t[e];if((c.fileType===o.RelationshipConstants.bb||c.fileType===o.RelationshipConstants.cb)&&(n=r(c.fileName),l=i.parseXmlToObject(n).formControlPr,a(l)))return s=l._attr,delete s.xmlns,s}t.readCtrlProps=n;function a(e){var t=e&&e._attr;return t&&"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"===t.xmlns}},"./src/xlsx-io/reader/datavalidation-reader.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-parser.ts"),n=r("./src/xml-io/node-helper.ts"),a=r("./src/common/range-parser.ts"),l=n.XmlNodeHelper.Vm,s=o.Util.pa;function f(e,t,r){return s(n.XmlNodeHelper.Ym(e,t,r))}c={none:0,whole:1,decimal:2,list:3,date:4,time:5,textLength:6,custom:7},d={stop:0,warning:1,information:2},u={between:6,notBetween:7,equal:0,notEqual:1,greaterThan:2,lessThan:4,greaterThanOrEqual:3,lessThanOrEqual:5};function b(e,t,r){var o,i,n,a,l,s=t.Ne,c=s.sheets&&s.sheets[e];for(o=0,i=r.length;oa&&(c.rowCount=n.row+n.rowCount),n.col+n.colCount>l&&(c.columnCount=n.col+n.colCount)}function h(e,t,r,i){var n,h,p,m,g,y,S,C;o.isNullOrUndefined(e)||o.isNullOrUndefined(t)||(n=e._attr,h={type:c[n.type]||0,errorType:d[n.errorStyle]||0,compareOperator:o.isNullOrUndefined(u[n.operator])?6:u[n.operator],allowBlank:l(n.allowBlank,!1),showPromptBox:!l(n.showDropDown,!1),showInputMessage:l(n.showInputMessage,!1),showErrorMessage:l(n.showErrorMessage,!1),errorTitle:s(n.errorTitle),error:s(n.error),promptTitle:s(n.promptTitle),prompt:s(n.prompt)},h.error=o.Util.wa(h.error),h.prompt=o.Util.wa(h.prompt),i?(p=f(e,"xm:sqref"),y=e["x14:formula1"],S=e["x14:formula2"],y&&(m=o.processFunction(f(y,"xm:f"))),S&&(g=o.processFunction(f(S,"xm:f")))):(p=n.sqref,m=o.processFunction(f(e,"formula1")),g=o.processFunction(f(e,"formula2"))),C=a.getRangesFromString(p),h.firstFormula=m,h.secondFormula=g,h.ranges=C,b(t,r,C),r.Qg(t,h))}function p(e,t,r){var o,a,l=i.parseXmlToObject(e.readFullElement()).dataValidations,s=n.XmlNodeHelper.He(l.dataValidation);for(o=s.length-1;o>=0;o--)a=s[o],h(a,t,r)}t.readDataValidations=p;function m(e,t,r){var o,a,l=i.parseXmlToObject(e.readFullElement()).ext,s=l["x14:dataValidations"],c=n.XmlNodeHelper.He(s["x14:dataValidation"]);for(o=c.length-1;o>=0;o--)a=c[o],h(a,t,r,!0)}t.readExtensionDataValidation=m},"./src/xlsx-io/reader/docpropsapp-reader.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=new o.XmlReader;for(i.setXml(e);i.read();)if(1===i.depth&&2!==i.elementType)switch(r=i.name()){case"HeadingPairs":a(i,t,r);break;case"TitlesOfParts":l(i,t,r);break;default:n(i,t,r)}}t.readDocPropsAppFile=i;function n(e,t,r){if(1===e.nodeType()){var o=e.readElementContentAsString(!0);t.gh(r,o)}}function a(e,t,r){var o,i,n,a,l,c;if(3!==e.elementType){for(o={},i=[],n=e.depth;e.read()&&!(e.depth<=n);)if(1===e.nodeType()&&"vt:vector"===e.name()){if(s(e,o),3===e.elementType)continue;for(a=e.depth;e.read()&&!(e.depth<=a);)if(1===e.nodeType()){if(3===e.elementType)continue;for(l=e.depth;e.read()&&!(e.depth<=l);)1===e.nodeType()&&(c={},c.elementType=e.name(),c.value=e.readElementContentAsString(!0),i.push(c));o.workbookInfoArray=i}}t.gh(r,o)}}function l(e,t,r){var o,i,n,a,l;if(3!==e.elementType){for(o={},i=[],n=e.depth;e.read()&&!(e.depth<=n);)if(1===e.nodeType()&&"vt:vector"===e.name()){if(s(e,o),3===e.elementType)continue;for(a=e.depth;e.read()&&!(e.depth<=a);)1===e.nodeType()&&(l=e.readElementContentAsString(!0),i.push(l));o.sheetsNameArray=i}t.gh(r,o)}}function s(e,t){for(;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"size":t.size=e.readContentAsInt(1);break;case"baseType":t.baseType=e.readContentAsString()}}},"./src/xlsx-io/reader/docpropscore-reader.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=new o.XmlReader;for(i.setXml(e);i.read();)1===i.depth&&2!==i.elementType&&(r=i.name(),r.indexOf(":")!==-1&&(r=i.name().split(":")[1]),n(i,t,r))}t.readDocPropsCoreFile=i;function n(e,t,r){if(1===e.nodeType()){var o=e.readElementContentAsString(!0);t.fh(r,o)}}},"./src/xlsx-io/reader/docpropscustom-reader.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=new o.XmlReader;for(i.setXml(e),r=[];i.read();)1===i.depth&&2!==i.elementType&&n(i,r);t.hh(r)}t.readDocPropsCustomFile=i;function n(e,t){var r,o,i,n,a;if(3!==e.elementType&&1===e.nodeType()&&"property"===e.name()){for(r={};e.moveToNextAttribute();)o=e.readAttributeNameAsString(),i=e.readContentAsString(),r[o]=i;for(n=e.depth;e.read()&&!(e.depth<=n);)1===e.nodeType()&&(a={},o=e.name(),i=e.readElementContentAsString(!0),a[o]=i,r.propertyItemChildElement=a);t.push(r)}}},"./src/xlsx-io/reader/drawing-reader.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/xml-io/node-helper.ts"),a=r("./src/xml-io/xml-parser.ts"),l=r("./src/datamodel/excel-style.ts"),s=r("./src/datamodel/excel-helper.ts"),c=r("./src/xml-io/xml-reader.ts"),d=r("./src/xlsx-io/reader/chart-reader.ts"),u=n.XmlNodeHelper.He,f=n.XmlNodeHelper.bn,b=n.XmlNodeHelper.cn,h=n.XmlNodeHelper.dn,p=o.Util.ya,m=r("./src/datamodel/chart-model.ts");function y(e,t,r,o){var n,a,l,s,c,d;if(e){n=[];for(a in e)"count"!==a&&(l=e[a],l&&(s=l.fileType,s!==i.RelationshipConstants.eb&&s!==i.RelationshipConstants.fb||n.push(l)));n.length&&(c={names:r.Ne.names||[]},d=S(n,o,c),r.Ag(d,t))}}t.readDrawings=y;function S(e,t,r){var o={},n;return e.forEach(function(e){var a,l,s,c,d=e.relationFiles;if(d)for(a in d)"count"!==a&&(l=d[a],l&&(s=l.fileType,s!==i.RelationshipConstants.hb&&s!==i.RelationshipConstants.ib&&s!==i.RelationshipConstants.lb&&s!==i.RelationshipConstants.mb&&s!==i.RelationshipConstants.nb&&s!==i.RelationshipConstants.gb||(o[a]=l)));c=t(e.fileName,!0),c&&(n=T(c,o,t,r))}),n}function C(e,t,r){var o,i,n,a,l,c=e&&e.blipFill&&e.blipFill.blip&&e.blipFill.blip.embed;c&&(o=t[c],o&&(i=o.fileName,n=i.lastIndexOf("."),n>=0&&(a=s.getImageContent(i,r),a&&(l=e.blipFill.blip.blipBlob={},l.blob=a,l.type=i.substr(n+1)))))}g=function(){function e(e){var t=e.off,r=e.ext,o=r.cx,i=r.cy;this.left=t.x,this.top=t.y,this.right=this.left+o,this.bottom=this.top+i}return e}();function w(){this.cache={},this.get=function(e,t){var r=this.cache[e];return!r&&t&&(r=this.cache[e]=new g(t)),r}}function x(e,t){return e.left>=t.left&&e.top>=t.top&&e.right<=t.right&&e.bottom<=t.bottom}function A(e,t,r){var o,i,n,a,l=r.get(t,e[t].pic.spPr.xfrm);if(l)for(o=0;o0&&(b.pictures=i),n=D(e,t),l=n&&n.AnchorBaseList,s=F(l,t,r,o),s.length>0&&(b.charts=s),c=L(l,t,r),c.length>0&&(b.shapes=c),d=new w,l.forEach(function(e,t){var r=e.pic;r&&!r.nvPicPr.cNvPr.hidden&&A(l,t,d)})),b}function v(e,t,r,o){var i={};return X(r,t["xdr:pic"],i,o),j(t["xdr:clientData"],i),i.src&&e.push(i),i}function k(e,t,r){var o,i,n;return e?(o=[],n=u(e["xdr:oneCellAnchor"]),n.forEach(function(e){if(e&&e["xdr:pic"]){var n={startPoint:h(e["xdr:from"])};b(e["xdr:ext"],n),i=v(o,e,t,r),n.anchorType=1,i.anchor=n}}),n=u(e["xdr:twoCellAnchor"]),n.forEach(function(e){var n,a;e&&e["xdr:pic"]&&(n={startPoint:h(e["xdr:from"]),endPoint:h(e["xdr:to"])},a=e._attr.editAs,a&&(n.editAs=m.Charts.ST_EditAs[a]),i=v(o,e,t,r),n.anchorType=0,i.anchor=n)}),n=u(e["xdr:absoluteAnchor"]),n.forEach(function(e){if(e&&e["xdr:pic"]){var n={};f(e["xdr:pos"],n),b(e["xdr:ext"],n),i=v(o,e,t,r),n.anchorType=2,i.anchor=n}}),o):[]}function F(e,t,r,o){var i=[];return e&&e.length>0&&e.forEach(function(e){var n,a,l=e.AlternateContent;return e.grpSp?void E(e.grpSp,i,e,t,r,o):(n=p(l)?l.Choice.GraphicalObjectFrame:e.graphicFrame,a=n&&n.graphic&&n.graphic.graphicData&&n.graphic.graphicData.chart&&n.graphic.graphicData.chart.id,void(a&&R(i,e,a,t,r,o)))}),i}function R(e,t,r,o,n,a){var l,s,c,d,u,f,b=o[r],h=B(b,n,a);if(h){l={},s=b.relationFiles;for(c in s)"count"!==c&&(d=s[c],d&&(u=d.fileType,u!==i.RelationshipConstants.ob&&u!==i.RelationshipConstants.hb||(l[c]=d)));f=_(h.userShapes,l,n),f&&(h.userShapes=f),G(h,l,n),t.chartSpace=h,e.push(t)}}function E(e,t,r,o,i,n){var a=e&&e.sp||[];a.forEach(function(a){if(3===a.shapeType)I(e.grpSpPr.xfrm,a.grpSpPr.xfrm),E(a,t,r,o,i,n);else if(2===a.shapeType&&a.nvGraphicFramePr){var l=a.graphic&&a.graphic.graphicData&&a.graphic.graphicData.chart&&a.graphic.graphicData.chart.id;l&&(R(t,a,l,o,i,n),I(e.grpSpPr.xfrm,a.xfrm))}})}function I(e,t){var r,o=t.off,i=t.ext,n=(o.x-e.chOff.x)/(e.chExt.cx||1)*e.ext.cx;t.off.x=e.off.x+n,r=(o.y-e.chOff.y)/(e.chExt.cy||1)*e.ext.cy,t.off.y=e.off.y+r,t.ext.cx=i.cx/(e.chExt.cx||1)*e.ext.cx,t.ext.cy=i.cy/(e.chExt.cy||1)*e.ext.cy}function L(e,t,r){var o=[];return e&&e.length>0&&e.forEach(function(e){(e.sp||e.cxnSp||e.grpSp||e.pic)&&(U(e,t,r),o.push(e))}),o}function D(e,t){var r=new c.XmlReader;for(r.relationFiles=t,r.reset(),r.setXml(e),r.keepRootNamespace=!0;r.read();)if(0===r.depth&&2!==r.elementType&&"xdr:wsDr"===r.name())return d.DrawingReader.ReadCT_Drawing(r);return null}function B(e,t,r){var o,n,a,l,s,u,f,b,h,p;if(!e)return null;for(o=e.fileName,n=t(o,!0),a=new c.XmlReader,a.reset(),a.setXml(n),a.keepRootNamespace=!0;a.read();)if(0===a.depth&&2!==a.elementType){if("c:chartSpace"===a.name()){l=d.DrawingReader.ReadCT_ChartSpace(a),s=!1;break}if("cx:chartSpace"===a.name()){u=r&&r.names?r.names:[],l=d.DrawingReader.Chart2016Reader.ReadCT_ChartSpace(a,u),s=!0;break}}if(s){f=e.relationFiles;for(b in f)"count"!==b&&(h=f[b],p=h&&h.fileType,p===i.RelationshipConstants.qb?l.style=P(h,t):p===i.RelationshipConstants.pb&&(l.colors=W(h,t)))}return l}function P(e,t){var r=t(e.fileName,!0),o=new c.XmlReader;for(o.reset(),o.setXml(r);o.read();)if(0===o.depth&&2!==o.elementType)return d.DrawingReader.Chart2016Reader.ReadCT_ChartStyle(o)}function W(e,t){var r=t(e.fileName,!0),o=new c.XmlReader;for(o.reset(),o.setXml(r);o.read();)if(0===o.depth&&2!==o.elementType)return d.DrawingReader.Chart2016Reader.ReadCT_chartColors(o)}function _(e,t,r){var o,n,a,l,s,c,d;if(!e||!e.id)return null;o=t[e.id],n={},a=o.relationFiles;for(l in a)"count"!==l&&(s=a[l],s&&(c=s.fileType,c!==i.RelationshipConstants.hb&&c!==i.RelationshipConstants.lb||(n[l]=s)));return d=M(o,r),d&&d.length>0?d.map(function(e){return e.pic?H(e,n,r):e.graphicFrame&&O(e,n,r),e}):void 0}function N(e){var t,r,o=e&&e["c:userShapes"];if(o){if(t=o["cdr:absSizeAnchor"],r=o["cdr:relSizeAnchor"],t)return t["cdr:pic"]&&t["cdr:pic"]["cdr:spPr"];if(r)return r["cdr:pic"]&&r["cdr:pic"]["cdr:spPr"]}return null}function M(e,t){var r,o,i,n,l;if(!e)return null;for(r=e.fileName,o=t(r,!0),i=new c.XmlReader,i.reset(),i.setXml(o),i.keepRootNamespace=!0;i.read();)if(0===i.depth&&2!==i.elementType&&"c:userShapes"===i.name()&&(n=d.DrawingReader.ReadCT_ChartDrawing(i)))return l=n.relSizeAnchor.concat(n.absSizeAnchor),l.forEach(function(e){if(e.pic){var t=a.parseXmlToObject(o);e.pictureStyleInfo=N(t)}}),l;return null}function O(e,t,r){var o=e.graphicFrame.graphic&&e.graphicFrame.graphic.graphicData&&e.graphicFrame.graphic.graphicData.chart&&e.graphicFrame.graphic.graphicData.chart.id,i=t[o];i&&(e.chartSpace=B(i,r))}function H(e,t,r){C(e.pic,t,r);var o=e.pictureStyleInfo;o&&(e.pictureFormat=le(o),delete e.pictureStyleInfo)}function G(e,t,r){var o=e.chart.plotArea;o&&o.chartGroups&&o.chartGroups.forEach(function(e){e&&e.ser&&e.ser.forEach(function(e){e.spPr&&C(e.spPr,t,r),e.dLbls&&e.dLbls.spPr&&C(e.dLbls.spPr,t,r)})}),o&&o.spPr&&C(o.spPr,t,r),e.spPr&&C(e.spPr,t,r)}function U(e,t,r){e.sp&&e.sp.spPr?C(e.sp.spPr,t,r):e.pic?(C(e.pic,t,r),C(e.pic.spPr,t,r)):e.grpSp&&(e.grpSp.sp&&J(e.grpSp.sp,t,r),e.grpSp.grpSpPr&&C(e.grpSp.grpSpPr,t,r))}function J(e,t,r){e.forEach(function(e){e.spPr&&C(e.spPr,t,r),e.blipFill&&C(e,t,r),3===e.shapeType&&e.sp&&J(e.sp,t,r)})}function z(e){var t=e.ln;t&&t.solidFill&&t.solidFill.schemeClr&&void 0===t.solidFill.schemeClr.tint}function V(e){e.sp&&e.sp.spPr?z(e.sp.spPr):e.grpSp&&(e.grpSp.sp&&e.grpSp.sp.forEach(function(e){e.spPr&&z(e.spPr)}),e.grpSp.grpSpPr&&z(e.grpSp.grpSpPr))}function j(e,t){e&&(t.locked=n.XmlNodeHelper.Vm(e._attr.fLocksWithSheet,!0))}function X(e,t,r,o){var i,a,l,c,u,f,b,h,p,m,g,y,S,C,w,x,A;if(t){if(i=t["xdr:nvPicPr"],i&&(a=i["xdr:cNvPr"],r.name=a&&a._attr.name,r.descr=a&&a._attr.descr,r.isVisible=!n.XmlNodeHelper.Vm(a&&a._attr.hidden,!1)),i=t["xdr:blipFill"]){l=i["a:blip"],c=l&&l._attr["r:embed"],u=l&&l["a:extLst"]&&l["a:extLst"]["a:ext"],u instanceof Array||(u=[u]);for(f in u)u.hasOwnProperty(f)&&(b=u[f]&&u[f]["asvg:svgBlip"],b&&(c=b._attr["r:embed"]));c&&(h=e[c],h&&(p=s.getImageContent(h.fileName,o),p&&(r.src=p))),m=i["a:srcRect"],g=m&&m._attr,g&&(y=+g.l||0,S=+g.t||0,C=+g.r||0,w=+g.b||0,(y||S||C||w)&&(r.srcRect={l:y,t:S,r:C,b:w}))}i=t["xdr:spPr"],i&&(r.pictureFormat=le(i),x=i["a:xfrm"],x&&(A=parseInt(x._attr.rot,10),A&&(r.rot=d.DrawingReader.getRotationDegree(A))))}}function K(e){var t,r,o,i;if(e)return t={},r=e._attr,o=parseInt(r.w||"0",10),t.width=l.UnitHelper.emuToPixles(o),t.compoundLineType=r.compd||"sng",t.lineEndingCap=r.cap||"sq",t.penAlignment=r.align||"ctr",t.fillFormat=q(e),t.headLineEndStyle=$(e["a:headEnd"]),t.tailLineEndStyle=$(e["a:tailEnd"]),e["a:bevel"]&&(t.joinType="bevel"),e["a:miter"]&&(t.joinType="miter"),e["a:round"]&&(t.joinType="round"),i=e["a:prstDash"],t.lineDashType=i&&i._attr.val||"solid",t}function q(e){var t=e["a:solidFill"];return t?Y(t):(t=e["a:pattFill"])?ee(t):(t=e["a:noFill"])?te():(t=e["a:gradFill"])?re(t):(t=e["a:blipFill"],t?ie(t):void 0)}function Y(e){var t={},r=Z(e,t);return{fillFormatType:1,color:r,drawingColorSettings:t}}function Q(e,t,r){r.forEach(function(r){var o=t["a:"+r];o&&(e[r]=parseInt(o._attr.val||"0",10))})}function Z(e,t){var r,o,i,n,a,s,c,d,u,f,b,h=e["a:schemeClr"];return h&&(r=(h._attr.val||"").toUpperCase(),Q(t,h,["alpha","shade","tint","hue","hueOff","hueMod","sat","satOff","satMod","lum","lumOff","lumMod"]),r)?new l.ExcelColor(3,l.ColorHelper.toColorSchemeIndex(r),0):(h=e["a:hslClr"])?(i=h._attr,n=parseInt(i.hue||"0",10),a=parseInt(i.sat||"0",10),s=parseInt(i.lum||"0",10),Q(t,h,["alpha","shade","tint"]),l.ColorHelper.fromColorToExcelColor(l.ColorHelper.convertHLSToRGB(n,s,a))):(h=e["a:prstClr"],h&&(r=h._attr.val||"",Q(t,h,["alpha","shade","tint"]),r)?l.ColorHelper.fromColorToExcelColor(l.ColorHelper.fromPresetColorVal(r)):(h=e["a:scrgbClr"])?(i=h._attr,c=parseInt(i.r||"0",10),d=parseInt(i.g||"0",10),u=parseInt(i.b||"0",10),Q(t,h,["alpha","shade","tint"]),l.ColorHelper.fromColorToExcelColor(new l.lk(255,l.ColorHelper.scRgbTosRgb(c),l.ColorHelper.scRgbTosRgb(d),l.ColorHelper.scRgbTosRgb(u)))):(h=e["a:srgbClr"],h&&(o=h._attr.val,Q(t,h,["alpha","shade","tint"]),o&&(r=parseInt(o,16),!isNaN(r)))?new l.ExcelColor(2,r,0):(h=e["a:sysClr"],h&&(f=h._attr.val,b=l.ExcelSystemColor.getSystemColor(f),Q(t,h,["alpha","shade","tint","lumMode"]),b)?l.ColorHelper.fromColorToExcelColor(b):null)))}function $(e){if(e){var t=e._attr;return{length:t.len||"lg",type:t.type||"none",width:t.w||"lg"}}}function ee(e){var t,r,o,i,n=e._attr.prst||"pct5",a=e["a:bgClr"];return a&&(t={},r=Z(a,t)),a=e["a:fgClr"],a&&(o={},i=Z(a,o)),{fillFormatType:4,fillPattern:n,backgroundDrawingColorSettings:t,backgroundColor:r,foregroundDrawingColorSettings:o,foregroundColor:i}}function te(){return{fillFormatType:0}}function re(e){var t,r=[],o=e._attr,i={fillFomatType:2,gradientStops:r};return i.flipMode=o.flip||"none",i.rotateWithShape=n.XmlNodeHelper.Vm(o.rotWithShape,!1),t=e["a:gsLst"],t&&u(t["a:gs"]).forEach(function(e){r.push(oe(e))}),t=e["a:lin"],t&&(i.gradientFillType="linear",i.angle=parseFloat(t._attr.ang||"0")/6e4,i.scaled=n.XmlNodeHelper.Vm(t._attr.scaled,!1)),t=e["a:path"],t&&(i.gradientFillType=t._attr.path||"shape",i.fillToRect=ae(t["a:fillToRect"])),i.tileRect=ae(e["a:tileRect"]),i}function oe(e){var t={},r=Z(e,t),o=parseFloat(e._attr.pos||"100000")/1e5;return{position:o,color:r,drawingColorSettings:t}}function ie(e){var t,r,o={transparency:1};return o.rotateWithShape=n.XmlNodeHelper.Vm(e._attr.rotWithShape,!1),t=e["a:blip"],t&&(o.imageID=t._attr["r:embed"],r=t["a:alphaModFix"],r&&(o.transparency=1-parseFloat(r._attr.amt||"0")/1e5)),t=e["a:tile"],t&&(o.tile=ne(t)),t=e["a:stretch"],t&&(o.stretch=ae(t["a:fillRect"])),o}function ne(e){var t=e._attr,r=t.sx,o=t.sy,i=t.tx,n=t.ty;return{alignment:t.algn||"tl",flipping:t.flip||"none",horizontalRatio:r&&parseFloat(r)/1e5||1,verticalRatio:o&&parseFloat(o)/1e5||1,horizontalOffset:i&&parseFloat(i)/1e5||0,verticalOffset:n&&parseFloat(n)/1e5||0}}function ae(e){if(e){var t=e._attr;return[t.l,t.t,t.r,t.b].map(function(e){return parseFloat(e||"0")/1e5})}}function le(e){var t,r={};return r.lineFormat=K(e["a:ln"]),t=q(e),t&&(r.fillFormat=t),r}},"./src/xlsx-io/reader/externallink-reader.ts":function(e,t,r){"use strict";var o,i,n;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/xml-io/xml-reader.ts"),n=null;function a(e){var t,r=new i.XmlReader;for(r.setXml(e),t={data:{}};r.read();)1===r.depth&&2!==r.elementType&&"externalBook"===r.name()&&l(r,t);return t}t.readExternalLinkFile=a;function l(e,t){if(3!==e.elementType)for(var r=e.depth;e.read();){if(e.depth<=r)return;switch(e.name()){case"sheetNames":t.sheetNames=s(e);break;case"sheetDataSet":c(e,t)}}}function s(e){var t,r,o;if(3===e.elementType)return[];for(t=e.depth,r=[];e.read()&&!(e.depth<=t);)if(1===e.nodeType()&&"sheetName"===e.name())for(;e.moveToNextAttribute();)o=e.readAttributeNameAsString(),"val"===o&&r.push(e.readContentAsString().replace(/&/g,"&").replace(/"/g,'"').replace(/>/g,">").replace(/</g,"<"));return r}function c(e,t){var r,o,i,n,a;if(3!==e.elementType)for(r=e.depth;e.read();){if(e.depth<=r)return;if(1===e.nodeType()&&"sheetData"===e.name()){for(o=void 0,i=void 0;e.moveToNextAttribute();)n=e.readAttributeNameAsString(),"sheetId"===n&&(o=e.readContentAsInt()),"refreshError"===n&&(i=e.readContentAsInt());a=t.sheetNames[o],t.data[a]={},i&&(t.data[a].isNew=!0),d(e,t.data[a])}}}function d(e,t){var r,o,i,n;if(3!==e.elementType)for(r=e.depth;e.read();){if(e.depth<=r)return;if(1===e.nodeType()&&"row"===e.name()){for(o={},i=void 0;e.moveToNextAttribute();)n=e.readAttributeNameAsString(),"r"===n&&(i=e.readContentAsString());t[i-1]={},u(e,i,t[i-1])}}}function u(e,t,r){var i,n,a,l;if(3!==e.elementType)for(i=e.depth;e.read();){if(e.depth<=i)return;if(1===e.nodeType()&&"cell"===e.name()){for(n=void 0,a=void 0;e.moveToNextAttribute();)l=e.readAttributeNameAsString(),"r"===l?(n=e.readContentAsString(),n=n.substr(0,n.length-t.length),n=o.IndexHelper.R(n)):"t"===l&&(a=e.readContentAsString());r[n]=f(e,a)}}}function f(e,t){var r,o,i,a;if(3!==e.elementType){for(o=e.depth;e.read();){if(e.depth<=o)return r;if(1===e.nodeType()&&"v"===e.name())if("str"===t)r=e.readElementContentAsString();else if("b"===t)r="1"===e.readElementContentAsString();else if("e"===t){switch(i=e.readElementContentAsString(),a=n,i){case"#DIV/0!":a=7;break;case"#N/A":a=42;break;case"#NAME?":a=29;break;case"#NULL!":a=0;break;case"#NUM!":a=36;break;case"#REF!":a=23;break;case"#VALUE!":a=15}r=a!==n?{_error:i,_code:a}:n}else r=parseFloat(e.readElementContentAsString())}return r}}},"./src/xlsx-io/reader/metadata-reader.ts":function(e,t,r){"use strict";var o,i,n;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-parser.ts"),i=r("./src/xml-io/node-helper.ts"),n=i.XmlNodeHelper.He;function a(e){return e._attr.name}function l(e,t){var r,i=o.parseXmlToObject(e),l=i.metadata;l&&(r=n(l.metadataTypes.metadataType).map(a),l.typeNames=r,t.$g(l))}t.readSheetMetadata=l},"./src/xlsx-io/reader/pivot-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,S,C;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/excel-types.ts"),i=r("./src/xml-io/xml-reader.ts"),n=r("./src/common/common.ts"),a=r("./src/datamodel/datetime-helper.ts"),l=r("./src/xml-io/xml-parser.ts"),s=r("./src/xlsx-io/reader/autofilter-reader.ts"),c=r("./src/datamodel/excel-style.ts"),d=r("./src/xml-io/node-helper.ts"),u={captionEqual:0,captionNotEqual:1,captionBeginsWith:2,captionNotBeginsWith:3,captionEndsWith:4,captionNotEndsWith:5,captionContains:6,captionNotContains:7,captionGreaterThan:8,captionGreaterThanOrEqual:9,captionLessThan:10,captionLessThanOrEqual:11,captionBetween:12,captionNotBetween:13},f={valueEqual:0,valueNotEqual:1,valueGreaterThan:2,valueGreaterThanOrEqual:3,valueLessThan:4,valueLessThanOrEqual:5,valueBetween:6,valueNotBetween:7},b={dateEqual:0,dateNotEqual:1,dateOlderThan:2,dateOlderThanOrEqual:3,dateNewerThan:4,dateNewerThanOrEqual:5,dateBetween:6,dateNotBetween:7,tomorrow:10,today:8,yesterday:9,nextWeek:17,thisWeek:15,lastWeek:16,nextMonth:14,thisMonth:12,lastMonth:13,nextQuarter:18,thisQuarter:19,lastQuarter:20,nextYear:21,thisYear:22,lastYear:23,yearToDate:40,Q1:24,Q2:25,Q3:26,Q4:27,M1:28,M2:29,M3:30,M4:31,M5:32,M6:33,M7:34,M8:35,M9:36,M10:37,M11:38,M12:39},h={count:0,percent:1,sum:2},p=void 0,m=n.Util.pa,g=n.Util.wa;function w(e,t,r){var o=new i.XmlReader;for(o.setXml(e);o.read();)0===o.depth&&2!==o.elementType&&"pivotCacheDefinition"===o.name()&&(A(o,r),x(o,r))}t.readPivotCacheDefinitions=w;function x(e,t){for(var r=e.depth;e.read()&&!(e.depth<=r);)switch(e.name()){case"cacheSource":v(e,t);break;case"cacheFields":k(e,t);break;case"cacheHierarchy":D(e,t);break;case"kpi":W(e,t);break;case"tupleCache":_(e,t);break;case"calculatedItem":N(e,t);break;case"calculatedMember":M(e,t);break;case"dimension":O(e,t);break;case"measureGroup":H(e,t);break;case"map":G(e,t);break;case"extLst":U(e,t)}}function A(e,t){for(;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"backgroundQuery":t.backgroundQuery=e.readContentAsBoolean();break;case"createdVersion":t.createdVersion=e.readContentAsInt();break;case"enableRefresh":t.enableRefresh=e.readContentAsBoolean();break;case"r:id":t.rid=e.readContentAsString();break;case"invalid":t.invalid=e.readContentAsBoolean();break;case"minRefreshableVersion":t.minRefreshableVersion=e.readContentAsInt();break;case"missingItemsLimit":t.missingItemsLimit=e.readContentAsInt();break;case"recordCount":t.recordCount=e.readContentAsInt(); -break;case"optimizeMemory":t.optimizeMemory=e.readContentAsBoolean();break;case"refreshedBy":t.refreshedBy=e.readContentAsString();break;case"refreshedDate":t.refreshedDate=a.DateTimeHelper.Je(e.readContentAsDouble());break;case"refreshedVersion":t.refreshedVersion=e.readContentAsInt();break;case"refreshOnLoad":t.refreshOnLoad=e.readContentAsBoolean();break;case"saveData":t.saveData=e.readContentAsBoolean();break;case"supportAdvancedDrill":t.supportAdvancedDrill=e.readContentAsBoolean();break;case"supportSubquery":t.supportSubquery=e.readContentAsBoolean();break;case"tupleCache":t.tupleCache=e.readContentAsBoolean();break;case"upgradeOnRefresh":t.upgradeOnRefresh=e.readContentAsBoolean()}}function T(e,t){for(;e.moveToNextAttribute();){var r=e.readAttributeNameAsString();switch(r){case"ref":t.ref=e.readContentAsString();break;case"sheet":t.sheet=e.readContentAsString();break;case"name":t.sourceName=e.readContentAsString()}}}function v(e,t){for(;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"type":t.sourceType=e.readContentAsString();break;case"connectionId":t.sourceConnectionId=e.readContentAsInt()}var r=e.depth;if(3!==e.elementType)for(;e.read()&&!(e.depth<=r);)"worksheetSource"===e.name()&&T(e,t)}function k(e,t){var r,o,i,a;for(t.fields=[],r=e.depth;e.read()&&!(e.depth<=r);){for(o={};e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"caption":o.caption=e.readContentAsString();break;case"databaseField":o.databaseField=e.readContentAsBoolean();break;case"formula":o.formula=g(m(e.readContentAsString()));break;case"hierarchy":o.hierarchy=e.readContentAsInt();break;case"level":o.level=e.readContentAsInt();break;case"mappingCount":o.mappingCount=e.readContentAsInt();break;case"memberPropertyField":o.memberPropertyField=e.readContentAsBoolean();break;case"name":o.name=m(g(e.readContentAsString()));break;case"numFmtId":o.numFmtId=e.readContentAsInt();break;case"propertyName":o.propertyName=e.readContentAsString();break;case"serverField":o.serverField=e.readContentAsBoolean();break;case"sqlType":o.sqlType=e.readContentAsInt();break;case"uniqueList":o.uniqueList=e.readContentAsBoolean()}if(3!==e.elementType)for(i=e.depth;e.read()&&!(e.depth<=i);)switch(e.name()){case"sharedItems":E(e,o),I(e,o);break;case"fieldGroup":a={},F(e,a),n.isNullOrUndefined(a.base)||R(e,a),o.fieldGroup=o.fieldGroup||a;break;case"mpMap":for(o.mpMap=[];e.moveToNextAttribute();)"v"===e.readAttributeNameAsString()&&o.mpMap.push(e.readContentAsInt())}t.fields.push(o)}}function F(e,t){for(;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"par":t.parent=e.readContentAsInt();break;case"base":t.base=e.readContentAsInt()}}function R(e,t){for(var r,o,i,n=e.depth;e.read()&&!(e.depth<=n);)if(r=e.name(),"rangePr"===r)for(t.hasRangeGroup=!0;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"autoStart":t.autoStart=e.readContentAsBoolean();break;case"autoEnd":t.autoEnd=e.readContentAsBoolean();break;case"groupBy":t.groupBy=e.readContentAsString();break;case"startNum":t.startNum=e.readContentAsDouble();break;case"endNum":t.endNum=e.readContentAsDouble();break;case"startDate":t.startDate=Date.parse(e.readContentAsString());break;case"endDate":t.endDate=Date.parse(e.readContentAsString());break;case"groupInterval":t.groupInterval=e.readContentAsDouble()}else if("discretePr"===r){for(t.discreteGroup=[],o=e.depth;e.read()&&!(e.depth<=o);)if("x"===e.name())for(;e.moveToNextAttribute();)"v"===e.readAttributeNameAsString()&&t.discreteGroup.push(e.readContentAsInt())}else if("groupItems"===r)for(t.groupItems=[],i=e.depth;e.read()&&!(e.depth<=i);)t.groupItems.push(L(e))}function E(e,t){for(;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"containsBlank":t.containsBlank=e.readContentAsBoolean();break;case"containsDate":t.containsDate=e.readContentAsBoolean();break;case"containsInteger":t.containsInteger=e.readContentAsBoolean();break;case"containsMixedTypes":t.containsMixedTypes=e.readContentAsBoolean();break;case"containsNonDate":t.containsNonDate=e.readContentAsBoolean();break;case"containsNumber":t.containsNumber=e.readContentAsBoolean();break;case"containsSemiMixedTypes":t.containsSemiMixedTypes=e.readContentAsBoolean();break;case"containsString":t.containsString=e.readContentAsBoolean();break;case"longText":t.longText=e.readContentAsBoolean();break;case"maxDate":t.maxDate=Date.parse(e.readContentAsString());break;case"maxValue":t.maxValue=e.readContentAsDouble();break;case"minDate":t.minDate=Date.parse(e.readContentAsString());break;case"minValue":t.minValue=e.readContentAsDouble()}}function I(e,t){t.entities=[];var r=e.depth;if(3!==e.elementType)for(;e.read()&&!(e.depth<=r);)t.entities.push(L(e))}function L(e){var t={},r=e.name();switch(r){case"b":t.type="b";break;case"d":t.type="d";break;case"e":t.type="e";break;case"m":t.type="m";break;case"n":t.type="n";break;case"s":t.type="s"}for(;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"c":t.caption=e.readContentAsString();break;case"cp":t.propertyCount=e.readContentAsInt();break;case"f":t.isCalculatedItem=e.readContentAsBoolean();break;case"u":t.isUnusedItem=e.readContentAsBoolean();break;case"b":t.isBold=e.readContentAsBoolean();break;case"bc":t.backgroundColor=e.readContentAsInt();break;case"fc":t.foregroundColor=e.readContentAsInt();break;case"i":t.isItalic=e.readContentAsBoolean();break;case"in":t.formatIndex=e.readContentAsInt();break;case"st":t.isStrikethrough=e.readContentAsBoolean();break;case"un":t.isUnderline=e.readContentAsBoolean();break;case"v":"b"===r?t.value=e.readContentAsBoolean():"d"===r?t.value=g(e.readContentAsString()):"e"===r?t.value=e.readContentAsError():"n"===r?t.value=e.readContentAsDouble():"s"===r?t.value=e.readContentAsString():"x"===r&&(t.value=e.readContentAsString())}return t}function D(e,t){var r,o;for(t.cacheHierarchies=[];e.read();){for(r={fieldsUsages:[],groupLevels:[]};e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"uniqueName":r.uniqueName=e.readContentAsString();break;case"caption":r.caption=e.readContentAsString();break;case"measure":r.measure=e.readContentAsBoolean();break;case"set":r.set=e.readContentAsBoolean();break;case"parentSet":r.parentSet=e.readContentAsInt();break;case"iconSet":r.iconSet=e.readContentAsInt();break;case"attribute":r.attribute=e.readContentAsBoolean();break;case"time":r.time=e.readContentAsBoolean();break;case"keyAttribute":r.keyAttribute=e.readContentAsBoolean();break;case"defaultMemberUniqueName":r.defaultMemberUniqueName=e.readContentAsString();break;case"allUniqueName":r.allUniqueName=e.readContentAsString();break;case"allCaption":r.allCaption=e.readContentAsString();break;case"dimensionUniqueName":r.dimensionUniqueName=e.readContentAsString();break;case"displayFolder":r.displayFolder=e.readContentAsString();break;case"measureGroup":r.measureGroup=e.readContentAsString();break;case"measures":r.measures=e.readContentAsBoolean();break;case"count":r.count=e.readContentAsInt();break;case"oneField":r.oneField=e.readContentAsBoolean();break;case"memberValueDatatype":r.memberValueDatatype=e.readContentAsInt();break;case"unbalanced":r.unbalanced=e.readContentAsBoolean();break;case"unbalancedGroup":r.unbalancedGroup=e.readContentAsBoolean();break;case"hidden":r.hidden=e.readContentAsBoolean()}for(o=e.depth;e.read()&&!(e.depth<=o);)switch(e.name()){case"fieldUsage":r.fieldsUsages.push(e.readContentAsInt());break;case"groupLevel":r.groupLevels.push(B(e))}t.cacheHierarchies.push(r)}}function B(e){for(var t,r={};e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"uniqueName":r.uniqueName=e.readContentAsString();break;case"caption":r.caption=e.readContentAsString();break;case"user":r.user=e.readContentAsBoolean();break;case"customRollUp":r.customRollUp=e.readContentAsBoolean()}for(t=e.depth;e.read()&&!(e.depth<=t);)e.name()&&r.groups.push(P(e));return r}function P(e){for(var t,r,o={groupMembers:[]};e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"name":o.Name=e.readContentAsString();break;case"uniqueName":o.UniqueName=e.readContentAsString();break;case"caption":o.Caption=e.readContentAsString();break;case"uniqueParent":o.UniqueParent=e.readContentAsString();break;case"id":o.Id=e.readContentAsInt()}for(t=e.depth;e.read()&&!(e.depth<=t);)if("groupMember"===e.name()){for(r={};e.moveToNextAttribute();)switch(e.name()){case"uniqueName":r.uniqueName=e.readContentAsString();break;case"group":r.group=e.readContentAsBoolean()}o.groupMembers.push(r)}return o}function W(e,t){for(t.KPIs=[];e.moveToNextAttribute();){var r={};switch(e.readAttributeNameAsString()){case"uniqueName":r.uniqueName=e.readContentAsString();break;case"caption":r.caption=e.readContentAsString();break;case"displayFolder":r.displayFolder=e.readContentAsString();break;case"measureGroup":r.measureGroup=e.readContentAsString();break;case"parent":r.parent=e.readContentAsString();break;case"value":r.value=e.readContentAsString();break;case"goal":r.goal=e.readContentAsString();break;case"status":r.status=e.readContentAsString();break;case"trend":r.trend=e.readContentAsString();break;case"weight":r.weight=e.readContentAsString();break;case"time":r.time=e.readContentAsString()}t.KPIs.push(r)}}y=function(){function e(){}return e.readPivotCacheSet=function(e){},e.readPivotCacheQuery=function(e){},e.readPivotCacheServerFormat=function(e){},e}();function _(e,t){for(var r,o={entries:[]};e.read();)switch(e.name()){case"entries":for(r=e.depth;e.read()&&e.depth>r;)o.entries.push(L(e));break;case"set":break;case"query":break;case"serverFormats":}t.pivotCacheTupleCache=o}function N(e,t){var r,o={};for(t.calculatedItems=t.calculatedItems||[];e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"field":o.field=e.readContentAsInt();break;case"formula":o.formula=m(e.readContentAsString())}for(r=e.depth;e.read()&&!(e.depth<=r);)"pivotArea"===e.name()&&(o.pivotArea=se(e));t.calculatedItems.push(o)}function M(e,t){for(var r={};e.moveToNextAttribute();)switch(e.name()){case"name":r.name=m(g(e.readContentAsString()));break;case"mdx":r.mdx=e.readContentAsString();break;case"memberName":r.memberName=e.readContentAsString();break;case"hierarchy":r.hierarchy=e.readContentAsString();break;case"parent":r.parent=e.readContentAsString();break;case"solveOrder":r.solveOrder=e.readContentAsInt();break;case"set":r.set=e.readContentAsBoolean()}t.calculatedMembers.push(r)}function O(e,t){for(var r={};e.moveToNextAttribute();)switch(e.name()){case"measure":r.measure=e.readContentAsBoolean();break;case"name":r.name=m(g(e.readContentAsString()));break;case"uniqueName":r.uniqueName=e.readContentAsString();break;case"caption":r.caption=e.readContentAsString()}t.dimensions.push(r)}function H(e,t){for(var r={};e.moveToNextAttribute();)switch(e.name()){case"name":r.name=m(g(e.readContentAsString()));break;case"caption":r.caption=e.readContentAsString()}t.measureGroups.push(r)}function G(e,t){for(var r={};e.moveToNextAttribute();)switch(e.name()){case"measureGroup":r.name=e.readContentAsInt();break;case"dimension":r.caption=e.readContentAsInt()}t.measureDimensionMap.push(r)}function U(e,t){for(var r,o=e.depth;e.read()&&!(e.depth<=o);)if("ext"===e.name())for(r=e.depth;e.read()&&!(e.depth<=r);)if("x14:pivotCacheDefinition"===e.name())for(;e.moveToNextAttribute();)"pivotCacheId"===e.readAttributeNameAsString()&&(t.pivotCacheId=e.readContentAsInt())}function J(e,t){var r,n,a,l,s,c,d=new i.XmlReader;for(d.setXml(e),r=[];d.read();)if(0===d.depth&&2!==d.elementType&&"pivotCacheRecords"===d.name())for(n=d.depth;d.read()&&!(d.depth<=n);)if("r"===d.name()){for(a=[],l=d.depth;d.read()&&!(d.depth<=l);){for(s=d.name(),c={};d.moveToNextAttribute();)switch(d.readAttributeNameAsString()){case"v":"b"===s?(c.type=o.PivotSharedItemType.B,c.value=d.readContentAsBoolean()):"d"===s?(c.type=o.PivotSharedItemType.D,c.value=g(d.readContentAsString())):"e"===s?(c.type=o.PivotSharedItemType.E,c.value=d.readContentAsError()):"m"===s?(c.type=o.PivotSharedItemType.M,c.value=null):"n"===s?(c.type=o.PivotSharedItemType.N,c.value=d.readContentAsDouble()):"s"===s?(c.type=o.PivotSharedItemType.S,c.value=g(d.readContentAsString())):"x"===s&&(c.type=o.PivotSharedItemType.X,c.value=d.readContentAsInt());break;case"c":c.caption=d.readContentAsString();break;case"cp":c.propertyCount=d.readContentAsInt();break;case"f":c.isCalculatedItem=d.readContentAsBoolean();break;case"u":c.isUnusedItem=d.readContentAsBoolean();break;case"b":c.isBold=d.readContentAsBoolean();break;case"bc":c.backgroundColor=d.readContentAsInt();break;case"fc":c.foregroundColor=d.readContentAsInt();break;case"i":c.isItalic=d.readContentAsBoolean();break;case"in":c.formatIndex=d.readContentAsInt();break;case"st":c.isStrikethrough=d.readContentAsBoolean();break;case"un":c.isUnderline=d.readContentAsBoolean()}a.push(c)}r.push(a)}t.pivotCacheRecords=r}t.readPivotCacheRecords=J;function z(e,t,r,i){var n,a,l,s,c,d=[],u=[];if(e)for(n in e)"count"!==n&&(a=e[n],a&&(l=a.fileType,l===o.RelationshipConstants.Ya&&d.push(a)));for(s=0;s-1&&!n.isNullOrUndefined(u[e])?{conType:0,compareType:u[e]}:e.indexOf("value")>-1&&!n.isNullOrUndefined(f[e])?{conType:2,compareType:f[e]}:n.isNullOrUndefined(b[e])?n.isNullOrUndefined(h[e])?void 0:{conType:3,compareType:h[e]}:{conType:1,compareType:b[e]}}function oe(e,t,r){var o,i=e.depth;for(n.isNullOrUndefined(r)&&(r=[]),n.isNullOrUndefined(t.pivotTableConditionFormats)&&(t.pivotTableConditionFormats=[]);e.read()&&!(e.depth<=i);)o=e.name(),"conditionalFormat"!==o&&"x14:conditionalFormat"!==o||ie(e,t,r)}function ie(e,t,r){for(var o,i={pivotAreas:[]},n=function(){switch(e.readAttributeNameAsString()){case"scope":i.scope=e.readContentAsString();break;case"type":i.type=e.readContentAsString();break;case"priority":var t=e.readContentAsInt();r.forEach(function(e){e.priority===t&&(i.rule=e)})}};e.moveToNextAttribute();)n();for(o=e.depth;e.read()&&!(e.depth<=o);)"pivotArea"===e.name()&&i.pivotAreas.push(se(e));t.pivotTableConditionFormats.push(i)}function ne(e,t){for(var r,o={};e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"chart":o.chart=e.readContentAsInt();break;case"format":o.format=e.readContentAsInt();break;case"series":o.series=e.readContentAsBoolean()}for(r=e.depth;e.read()&&!(e.depth<=r);)"pivotArea"===e.name()&&(o.pivotArea=se(e));t.chartFormats.push(o)}function ae(e,t){for(;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"ref":t.ref=e.readContentAsString();break;case"firstHeaderRow":t.firstHeaderRow=e.readContentAsInt();break;case"firstDataRow":t.firstDataRow=e.readContentAsInt();break;case"firstDataCol":t.firstDataCol=e.readContentAsInt();break;case"rowPageCount":t.rowPageCount=e.readContentAsInt();break;case"colPageCount":t.colPageCount=e.readContentAsInt()}}function le(e,t){var r,o,i,n,a,l,s,d={items:[]};for(d.isOnRead=!0,d.showAll=!0,d.defaultSubtotal=!0;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"allDrilled":d.allDrilled=e.readContentAsBoolean();break;case"autoShow":d.autoShow=e.readContentAsBoolean();break;case"avgSubtotal":d.avgSubtotal=e.readContentAsBoolean();break;case"axis":d.axis=e.readContentAsString();break;case"compact":d.compact=e.readContentAsBoolean();break;case"countASubtotal":d.countASubtotal=e.readContentAsBoolean();break;case"countSubtotal":d.countSubtotal=e.readContentAsBoolean();break;case"dataField":d.dataField=e.readContentAsBoolean();break;case"dataSourceSort":d.dataSourceSort=e.readContentAsBoolean();break;case"defaultAttributeDrillState":d.defaultAttributeDrillState=e.readContentAsBoolean();break;case"defaultSubtotal":d.defaultSubtotal=e.readContentAsBoolean();break;case"dragOff":d.dragOff=e.readContentAsBoolean();break;case"dragToCol":d.dragToCol=e.readContentAsBoolean();break;case"dragToData":d.dragToData=e.readContentAsBoolean();break;case"dragToPage":d.dragToPage=e.readContentAsBoolean();break;case"dragToRow":d.dragToRow=e.readContentAsBoolean();break;case"hiddenLevel":d.hiddenLevel=e.readContentAsBoolean();break;case"hideNewItems":d.hideNewItems=e.readContentAsBoolean();break;case"includeNewItemsInFilter":d.includeNewItemsInFilter=e.readContentAsBoolean();break;case"insertBlankRow":d.insertBlankRow=e.readContentAsBoolean();break;case"insertPageBreak":d.insertPageBreak=e.readContentAsBoolean();break;case"itemPageCount":d.itemPageCount=e.readContentAsInt();break;case"maxSubtotal":d.maxSubtotal=e.readContentAsBoolean();break;case"measureFilter":d.measureFilter=e.readContentAsBoolean();break;case"minSubtotal":d.minSubtotal=e.readContentAsBoolean();break;case"multipleItemSelectionAllowed":d.multipleItemSelectionAllowed=e.readContentAsBoolean();break;case"name":d.name=m(g(e.readContentAsString()));break;case"nonAutoSortDefault":d.nonAutoSortDefault=e.readContentAsBoolean();break;case"numFmtId":r=e.readContentAsInt(),o=c.ExtendedNumberFormatHelper.builtInNumberFomrat(),t.gn&&t.gn[r]?d.numberFormat=c.ExtendedNumberFormatHelper.getFormatCode({numberFormat:t.gn[r]}):o[r]&&(d.numberFormat=o[r]);break;case"outline":d.outline=e.readContentAsBoolean();break;case"productSubtotal":d.productSubtotal=e.readContentAsBoolean();break;case"rankBy":d.rankBy=e.readContentAsInt();break;case"serverField":d.serverField=e.readContentAsBoolean();break;case"showAll":d.showAll=e.readContentAsBoolean();break;case"showDropDowns":d.showDropDowns=e.readContentAsBoolean();break;case"showPropAsCaption":d.showPropAsCaption=e.readContentAsBoolean();break;case"showPropCell":d.showPropCell=e.readContentAsBoolean();break;case"showPropTip":d.showPropTip=e.readContentAsBoolean();break;case"sortType":d.sortType=e.readContentAsString();break;case"stdDevPSubtotal":d.stdDevPSubtotal=e.readContentAsBoolean();break;case"stdDevSubtotal":d.stdDevSubtotal=e.readContentAsBoolean();break;case"subtotalCaption":d.subtotalCaption=e.readContentAsString();break;case"subtotalTop":d.subtotalTop=e.readContentAsBoolean();break;case"sumSubtotal":d.sumSubtotal=e.readContentAsBoolean();break;case"topAutoShow":d.topAutoShow=e.readContentAsBoolean();break;case"uniqueMemberProperty":d.uniqueMemberProperty=e.readContentAsString();break;case"varPSubtotal":d.varPSubtotal=e.readContentAsBoolean();break;case"varSubtotal":d.varSubtotal=e.readContentAsBoolean()}if(3===e.elementType)return d.isOnRead=!1,d;for(i=e.depth;e.read()&&!(e.depth<=i);)if(n=e.name(),"items"===n){for(a=e.depth;e.read()&&!(e.depth<=a);){for(l={};e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"c":l.childItems=e.readContentAsBoolean();break;case"d":l.expanded=e.readContentAsBoolean();break;case"e":l.drillAcross=e.readContentAsBoolean();break;case"f":l.calculatedMember=e.readContentAsBoolean();break;case"h":l.hidden=e.readContentAsBoolean();break;case"m":l.missing=e.readContentAsBoolean();break;case"n":l.caption=e.readContentAsString();break;case"s":l.character=e.readContentAsBoolean();break;case"sd":l.collapse=!e.readContentAsBoolean();break;case"t":l.type=e.readContentAsString();break;case"x":l.indexValue=e.readContentAsInt()}d.items.push(l)}d.items.length>0&&(d.isShared=!0)}else if("autoSortScope"===n)for(s=e.depth;e.read()&&!(e.depth<=s);)"pivotArea"===e.name()&&(d.autoSortScope=se(e));return d.isOnRead=!1,d}function se(e){for(var t,r,o,i={references:[]};e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"axis":i.axis=e.readContentAsString();break;case"cacheIndex":i.cacheIndex=e.readContentAsBoolean();break;case"collapsedLevelsAreSubtotals":i.collapsedLevelsAreSubtotals=e.readContentAsBoolean();break;case"dataOnly":i.dataOnly=e.readContentAsBoolean();break;case"field":i.field=e.readContentAsInt();break;case"fieldPosition":i.fieldPosition=e.readContentAsInt();break;case"grandCol":i.grandCol=e.readContentAsBoolean();break;case"grandRow":i.grandRow=e.readContentAsBoolean();break;case"labelOnly":i.labelOnly=e.readContentAsBoolean();break;case"offset":i.offset=e.readContentAsString();break;case"outline":i.outline=e.readContentAsBoolean();break;case"type":i.type=e.readContentAsString()}if(3===e.elementType)return i;for(t=e.depth;e.read()&&!(e.depth<=t);)if("reference"===e.name()){for(r={indexes:[]};e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"avgSubtotal":r.avgSubtotal=e.readContentAsBoolean();break;case"byPosition":r.byPosition=e.readContentAsBoolean();break;case"countASubtotal": -r.countASubtotal=e.readContentAsBoolean();break;case"countSubtotal":r.countSubtotal=e.readContentAsBoolean();break;case"defaultSubtotal":r.defaultSubtotal=e.readContentAsBoolean();break;case"field":r.field=e.readContentAsDouble();break;case"maxSubtotal":r.maxSubtotal=e.readContentAsBoolean();break;case"minSubtotal":r.minSubtotal=e.readContentAsBoolean();break;case"productSubtotal":r.productSubtotal=e.readContentAsBoolean();break;case"relative":r.relative=e.readContentAsBoolean();break;case"selected":r.selected=e.readContentAsBoolean();break;case"stdDevPSubtotal":r.stdDevPSubtotal=e.readContentAsBoolean();break;case"stdDevSubtotal":r.stdDevSubtotal=e.readContentAsBoolean();break;case"sumSubtotal":r.sumSubtotal=e.readContentAsBoolean();break;case"varPSubtotal":r.varPSubtotal=e.readContentAsBoolean();break;case"varSubtotal":r.varSubtotal=e.readContentAsBoolean()}if(3===e.elementType){i.references.push(r);continue}for(o=e.depth;e.read()&&!(e.depth<=o);)if("x"===e.name())for(;e.moveToNextAttribute();)"v"===e.readAttributeNameAsString()&&r.indexes.push(e.readContentAsInt());i.references.push(r)}return i}function ce(e,t){if(!e||!t)return!1;if(e.field===t.field&&e.defaultSubtotal===t.defaultSubtotal){if(!e.indexes&&!t.indexes)return!0;if(!e.indexes||!t.indexes)return!1;if(e.indexes.length===t.indexes.length){e.indexes.sort(),t.indexes.sort();for(var r=0;r1){for(o=0,i=e.length;o-1&&(a.dxf=fe(r.hf[o]))}for(i=e.depth;e.read()&&!(e.depth<=i);)"pivotArea"===e.name()&&(a.pivotArea=se(e));t.formats.push(a)}function me(){var e,t={};for(e=1;e<=28;e++)t["PIVOTSTYLELIGHT"+e]=!0,t["PIVOTSTYLEMEDIUM"+e]=!0,t["PIVOTSTYLEDARK"+e]=!0;return t}S=me();function ge(e,t,r){for(var o,i,a,l,s,c,u,f,b,h;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"name":t.styleName=e.readContentAsString();break;case"showColHeaders":t.showColHeaders=e.readContentAsBoolean();break;case"showColStripes":t.showColStripes=e.readContentAsBoolean();break;case"showLastColumn":t.showLastColumn=e.readContentAsBoolean();break;case"showRowHeaders":t.showRowHeaders=e.readContentAsBoolean();break;case"showRowStripes":t.showRowStripes=e.readContentAsBoolean()}if(n.isNullOrUndefined(t.styleName))t.styleName="PivotStyleLight0";else if(o=S[t.styleName.toUpperCase()],!o&&(i=r.tableStylesObj,a=t.styleName,!n.isNullOrUndefined(i)&&(l=i._attr,!n.isNullOrUndefined(l)))){if(s=d.XmlNodeHelper.Xm(l.count,0),c=void 0,(s>0||i.tableStyle)&&(u=d.XmlNodeHelper.He(i.tableStyle),!n.isNullOrUndefined(u)))for(f=0;f0&&Se(e,t,r,o)}C={wholeTable:"wholeTableStyle",pageFieldLabels:"reportFilterLabelsStyle",pageFieldValues:"reportFilterValuesStyle",firstRowStripe:"firstRowStripeStyle",secondRowStripe:"secondRowStripeStyle",firstColumnStripe:"firstColumnStripeStyle",secondColumnStripe:"secondColumnStripeStyle",firstColumn:"firstColumnStyle",headerRow:"headerRowStyle",firstHeaderCell:"firstHeaderCellStyle",firstSubtotalColumn:"subtotalColumn1Style",secondSubtotalColumn:"subtotalColumn2Style",thirdSubtotalColumn:"subtotalColumn3Style",blankRow:"blankRowStyle",firstSubtotalRow:"subtotalRow1Style",secondSubtotalRow:"subtotalRow2Style",thirdSubtotalRow:"subtotalRow3Style",firstColumnSubheading:"columnSubheading1Style",secondColumnSubheading:"columnSubheading2Style",thirdColumnSubheading:"columnSubheading3Style",firstRowSubheading:"rowSubheading1Style",secondRowSubheading:"rowSubheading2Style",thirdRowSubheading:"rowSubheading3Style",lastColumn:"grandTotalColumnStyle",totalRow:"grandTotalRowStyle"};function Se(e,t,r,o){var i=d.XmlNodeHelper.He(r.tableStyleElement);n.isNullOrUndefined(i)||i.forEach(function(e){var r,i,a,l,s=e._attr;n.isNullOrUndefined(s)||(r=s.type||"wholePivotTable",i=d.XmlNodeHelper.Xm(s.dxfId)||0,a=d.XmlNodeHelper.Xm(s.size)||1,l=o.ug(i),t[C[r]]=l,"firstRowStripe"!==r&&"secondRowStripe"!==r&&"firstColumnStripe"!==r&&"secondColumnStripe"!==r||(t[r.substr(0,r.length-1)+"Size"]=a))}),e.style=t}function Ce(e){for(var t=[],r=e.depth;e.read()&&!(e.depth<=r);)if("field"===e.name())for(;e.moveToNextAttribute();)"x"===e.readAttributeNameAsString()&&t.push(e.readContentAsInt());return t}function we(e){for(var t=[],r=e.depth;e.read()&&!(e.depth<=r);)t.push(xe(e));return t}function xe(e){for(var t,r={pivotItemIndexes:[]};e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"t":r.type=e.readContentAsString();break;case"r":r.repeatCount=e.readContentAsInt();break;case"i":r.dataFieldIndex=e.readContentAsInt()}if(3===e.elementType)return r;for(t=e.depth;e.read()&&!(e.depth<=t);)if("x"===e.name()){if(!e.moveToNextAttribute()){r.pivotItemIndexes.push(0);continue}if("v"===e.readAttributeNameAsString()){r.pivotItemIndexes.push(e.readContentAsInt());continue}for(;e.moveToNextAttribute();)if("v"===e.readAttributeNameAsString()){r.pivotItemIndexes.push(e.readContentAsInt());break}}return r}},"./src/xlsx-io/reader/print-reader.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m;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-parser.ts"),a=r("./src/xml-io/node-helper.ts"),l=r("./src/datamodel/excel-helper.ts"),s=a.XmlNodeHelper.Vm,c=a.XmlNodeHelper.Xm,d=a.XmlNodeHelper.Ym,u=a.XmlNodeHelper.He,f=o.Util.pa,b=parseFloat,h={auto:0,downThenOver:1,overThenDown:2},p={auto:0,portrait:1,landscape:2},m={LH:0,CH:1,RH:2,LF:3,CF:4,RF:5,LHEVEN:6,CHEVEN:7,RHEVEN:8,LFEVEN:9,CFEVEN:10,RFEVEN:11,LHFIRST:12,CHFIRST:13,RHFIRST:14,LFFIRST:15,CFFIRST:16,RFFIRST:17};function g(e,t,r){var o,i=n.parseXmlToObject(e.readFullElement()).pageMargins;i&&(o=i._attr,r.Sg(t,{left:b(o.left),right:b(o.right),top:b(o.top),bottom:b(o.bottom),header:b(o.header),footer:b(o.footer)}))}t.readPageMargins=g;function y(e,t,r){var o,i=n.parseXmlToObject(e.readFullElement()).printOptions;i&&(o=i._attr,r.Tg(t,{printGridLine:s(o.gridLines,!1)&&s(o.gridLinesSet,!0),horizontalCentered:s(o.horizontalCentered,!1),verticalCentered:s(o.verticalCentered,!1),printRowColumnsHeaders:s(o.headings,!1)}))}t.readPrintOptions=y;function S(e,t){var r,o,i,d=n.parseXmlToObject(e.readFullElement()).pageSetup;d&&(r=d._attr,o=t.hn,i=void 0,void 0!==r.paperSize&&(i=parseInt(r.paperSize,10)),o.showColor=!s(r.blackAndWhite,!1),o.copies=c(r.copies,1),o.draft=s(r.draft,!1),o.useCustomStartingPage=s(r.useFirstPageNumber,!1),o.firstPageNumber=l.convertFirstPageNumber(c(r.firstPageNumber,1)),o.smartPrintPagesHeight=c(r.fitToHeight,1),o.smartPrintPagesWidth=c(r.fitToWidth,1),o.pageOrder=h[r.pageOrder]||0,o.paperSizeIndex="number"==typeof i?i:1,o.zoomFactor=a.XmlNodeHelper.Wm(r.scale,100)/100,o.orientation=p[r.orientation]||0)}t.readPageSetup=S;function C(e,t){var r=n.parseXmlToObject(e.readFullElement()).pageSetUpPr;r&&(t.hn.useSmartPrint=s(r._attr.fitToPage,!1))}t.readPageSetupAdditionalProperty=C;function w(e,t){var r,o,i=n.parseXmlToObject(e.readFullElement()).headerFooter;i&&(r=i._attr,o=t.hn.advancedHeadFooterSetting={headerFooterAlignWithPageMargin:s(r.alignWithMargins,!0),headerFooterDifferentFirstPage:s(r.differentFirst,!1)},o.headerFirstPage=f(d(i,"firstHeader")),o.footerFirstPage=f(d(i,"firstFooter")),o.headerFooterDifferentOddEvenPages=s(r.differentOddEven,!1),o.headerEvenPage=f(d(i,"evenHeader")),o.footerEvenPage=f(d(i,"evenFooter")),o.headerOddPage=f(d(i,"oddHeader")),o.footerOddPage=f(d(i,"oddFooter")),o.headerFooterScalesWithDocument=s("scaleWithDoc",!0))}t.readHeaderFooter=w;function x(e,t,r){var o=n.parseXmlToObject(e.readFullElement()),i=r?o.rowBreaks:o.colBreaks,a=[],l=u(i.brk);l.forEach(function(e){if(e){var t=c(e._attr.id,0);t>0&&a.push(t)}}),r?t.hn.rowBreakLines=a:t.hn.columnBreakLines=a}t.readRowColumnBreaks=x;function A(e,t){var r=n.parseXmlToObject(e.readFullElement()).legacyDrawingHF;r&&(t.jn=r._attr["r:id"])}t.readLegacyDrawingHF=A;function T(e){var t,r,o,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],o=r.fileType,o!==i.RelationshipConstants.hb&&o!==i.RelationshipConstants.ib||(n[t]=r.fileName));return n}function v(e,t,r){var o,i;if(r)switch(o=e.hn,o.advancedHeadFooterSetting||(o.advancedHeadFooterSetting={}),i=o.advancedHeadFooterSetting,t){case m.CHEVEN:i.evenHeaderCenterImage=r;break;case m.RHEVEN:i.evenHeaderRightImage=r;break;case m.LFEVEN:i.evenFooterLeftImage=r;break;case m.CFEVEN:i.evenFooterCenterImage=r;break;case m.RFEVEN:i.evenFooterRightImage=r;break;case m.LHEVEN:i.evenHeaderLeftImage=r;break;case m.CHFIRST:i.firstHeaderCenterImage=r;break;case m.RHFIRST:i.firstHeaderRightImage=r;break;case m.LFFIRST:i.firstFooterLeftImage=r;break;case m.CFFIRST:i.firstFooterCenterImage=r;break;case m.RFFIRST:i.firstFooterRightImage=r;break;case m.LHFIRST:i.firstHeaderLeftImage=r;break;case m.CH:i.headerCenterImage=r;break;case m.RH:i.headerRightImage=r;break;case m.LF:i.footerLeftImage=r;break;case m.CF:i.footerCenterImage=r;break;case m.RF:i.footerRightImage=r;break;case m.LH:default:i.headerLeftImage=r}}t.readHeaderFooterImage=v;function k(e,t,r){var o,a,s,c,d;e&&t.jn&&(o=e[t.jn],o&&o.fileType===i.RelationshipConstants.ab&&(a=T(o.relationFiles),s=r(o.fileName),c=n.parseXmlToObject(s).xml,d=u(c["v:shape"]),d.forEach(function(e){var o,i=e._attr.id,n=e["v:imagedata"]._attr["o:relid"],s=a[n];s&&(o=l.getImageContent(s,r),o&&v(t,m[i],o))})),t.jn="")}t.readVmlDrawing=k},"./src/xlsx-io/reader/sharedstring-reader.ts":function(e,t,r){"use strict";var o,i,n;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-reader.ts"),i=r("./src/xlsx-io/reader/style-reader.ts"),n=r("./src/common/common.ts");function a(e){var t,r,a,l,s,c,d,u,f=new o.XmlReader;for(f.setXml(e),t=[];f.read();)if(1===f.depth&&2!==f.elementType&&"si"===f.name()){for(r=f.depth,a="",l=[];f.read()&&!(f.depth<=r);)if(1===f.nodeType())if(s=f.name(),"t"===s&&1===f.elementType&&f.depth===r+1){for(c=void 0;f.moveToNextAttribute();)if("xml:space"===f.readAttributeNameAsString()&&"preserve"===f.readContentAsString()){c=!0;break}a=n.Util.wa(f.readElementContentAsString(c))}else if("r"===s){for(d=f.depth,u={};f.read()&&!(f.depth<=d);)1===f.elementType&&"t"===f.name()?(u.text=n.Util.pa(n.Util.wa(f.readElementContentAsString(!0))),a+=u.text):1===f.elementType&&"rPr"===f.name()&&(u.style=i.readRichTextFont(f));l.push(u)}0===l.length&&(l=void 0),t.push({value:n.Util.pa(a),richText:l})}return t}t.readSharedString=a},"./src/xlsx-io/reader/slicer-reader.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/excel-types.ts"),i=r("./src/xml-io/node-helper.ts"),n=r("./src/xml-io/xml-parser.ts"),a=r("./src/common/common.ts"),l=i.XmlNodeHelper.He,s=r("./src/datamodel/excel-style.ts"),c=s.UnitHelper.emuToPixles,d=i.XmlNodeHelper.dn,u=a.Util.pa,f=a.Util.ua,b=r("./src/datamodel/excel-helper.ts"),h=r("./src/datamodel/datamodel-reader.ts"),p={selectedItemWithData:"selectedItemWithDataStyle",selectedItemWithNoData:"selectedItemWithNoDataStyle",unselectedItemWithData:"unSelectedItemWithDataStyle",unselectedItemWithNoData:"unSelectedItemWithNoDataStyle",hoveredSelectedItemWithData:"hoveredSelectedItemWithDataStyle",hoveredSelectedItemWithNoData:"hoveredSelectedItemWithNoDataStyle",hoveredUnselectedItemWithData:"hoveredUnSelectedItemWithDataStyle",hoveredUnselectedItemWithNoData:"hoveredUnSelectedItemWithNoDataStyle",wholeTable:"wholeSlicerStyle",headerRow:"headerStyle"},m={9:1,1:1,3:1,4:1,7:1,11:1,2:2,10:2,12:2,8:2,13:2,5:3,6:3},g={0:"empty",1:"thin",2:"medium",3:"dashed",4:"dotted",5:"thick",6:"double",7:"hair",8:"mediumDashed",9:"dashDot",10:"mediumDashDot",11:"dashDotDot",12:"mediumDashDotDot",13:"slantedDashDot"};function y(e){if(e){var t={};return e.style&&(t.borderWidth=m[e.style]||1,t.borderStyle=g[e.style]||"thin"),e.color&&(t.borderColor=e.color),t}}function S(e){var t,r;if(e){for(t in e)e.hasOwnProperty(t)&&t.indexOf("border")>=0&&(r=e[t],r?e[t]=y(r):null===r&&(e[t]=void 0));return e}}t.getConvertedSlicerStyle=S;function C(e,t,r,i,n){var a,l,s,c,d,u,f,b,h;if(e){a=[],l=[];for(s in e)"count"!==s&&(c=e[s],c&&(d=c.fileType,d===o.RelationshipConstants.jb?a.push(c):d!==o.RelationshipConstants.eb&&d!==o.RelationshipConstants.fb||l.push(c)));u=D(n),f=L(n),a.length&&(b=x(a,i),h=r.Ne.sheets[t],k(b,f,i,r),I(b,l,i,h),F(b,u,i,r),r.Pg(b,t))}}t.readSlicers=C;function w(e,t){var r,o=n.parseXmlToObject(e),s=o.slicers;s&&(r=l(s.slicer),a.isNullOrUndefined(r)||r.forEach(function(e){var r={},o=e._attr;a.isNullOrUndefined(o)||(a.isNullOrUndefined(o.name)||(r.name=u(f(o.name,"_x000a_","\n"))),a.isNullOrUndefined(o.cache)||(r.nameInFormula=u(o.cache)),a.isNullOrUndefined(o.caption)||(r.captionName=u(o.caption)),a.isNullOrUndefined(o.columnCount)||(r.columnCount=i.XmlNodeHelper.Xm(o.columnCount,1)),a.isNullOrUndefined(o.showCaption)||(r.showHeader="0"!==o.showCaption),r.style={name:o.style},a.isNullOrUndefined(o.lockedPosition)||(r.disableResizingAndMoving="1"===o.lockedPosition),a.isNullOrUndefined(o.rowHeight)||(r.itemHeight=Math.max(c(parseInt(o.rowHeight,10))-4,0))),t.push(r)}))}function x(e,t){var r=[];return e.forEach(function(e){var o=t(e.fileName);o&&w(o,r)}),r}t.readSlicersFromFile=x;function A(e,t){var r,o,i,n,a,s,c,d,b,h,p,m,g=e.data;if(g&&g.tabular&&g.tabular.items){switch(r=g.tabular._attr&&+g.tabular._attr.pivotCacheId,o=g.tabular._attr&&g.tabular._attr.sortState,i=g.tabular._attr&&g.tabular._attr.crossFilter,n=!0,a=!0,s=!0,i){case"none":a=!1;break;case"showItemsWithNoData":s=!1}c=g.tabular.items.i,Array.isArray(c)||"1"!==g.tabular.items._attr.count||(c=[c]),d=c.map(function(e){var t=e._attr;return{x:+t.x,s:"1"===t.s,nd:"1"===t.nd}}),b=e.pivotTables,h=[],b&&(p=b.pivotTable,Array.isArray(p)||(p=[p]),p.forEach(function(e){h.push({tabId:e._attr.tabId,name:u(e._attr.name)})})),e.extLst&&(m=l(e.extLst["x:ext"]),m.forEach(function(e){var t,r=e._attr,o=r.uri;"{470722E0-AACD-4C17-9CDC-17EF765DBC7E}"===o&&(t=l(e["x15:slicerCacheHideItemsWithNoData"]),t&&t.length>0&&(n=!1))})),t.pivotSlicerCachesBeenRead||(t.Ne.slicerCaches||(t.Ne.slicerCaches=[]),t.Ne.slicerCaches.push({pivotCacheId:r,sourceName:f(u(e._attr.sourceName),"_x000a_","\n"),name:f(u(e._attr.name),"_x000a_","\n"),pivotTables:h,items:d,sortOrder:"descending"===o?2:1,showNoDataItems:n,showNoDataItemsInLast:s,visuallyNoDataItems:a}))}}function T(e,t,r){var o,n,a,s,c,d,b,p,m;if(!e.data&&(o=e.extLst,d=!0,b=!0,p=!0,o)){switch(m=l(o["x:ext"]),m.forEach(function(e){var t,r,o=e._attr,u=o.uri;"{2F2917AC-EB37-4324-AD4E-5DD8C200BD13}"===u?(t=l(e["x15:tableSlicerCache"]),t.forEach(function(e){var t=e._attr;n=i.XmlNodeHelper.Xm(t.tableId,0),a=i.XmlNodeHelper.Xm(t.column,0),s=t.sortOrder,c=t.crossFilter})):"{470722E0-AACD-4C17-9CDC-17EF765DBC7E}"===u&&(r=l(e["x15:slicerCacheHideItemsWithNoData"]),r&&r.length>0&&(d=!1))}),c){case"none":b=!1;break;case"showItemsWithNoData":p=!1}t.tableSlicerCachesBeenRead||(t.Ne.tableSlicerCaches||(t.Ne.tableSlicerCaches=[]),t.Ne.tableSlicerCaches.push({name:f(u(e._attr.name),"_x000a_","\n"),sourceName:f(u(e._attr.sourceName),"_x000a_","\n"),tableName:u(h.getTableName(n,r)),columnName:h.getTableColumnName(n,a,r),sortOrder:"descending"===s?2:1,showNoDataItems:d,showNoDataItemsInLast:p,visuallyNoDataItems:b}))}}function v(e,t,r,o){var i,a,l,s,c=n.parseXmlToObject(t),d=c.slicerCacheDefinition;if(d){if(i=d._attr,a=i.name,l=[],A(d,r),T(d,r,o),e.forEach(function(e){e.nameInFormula===a&&l.push(e)}),!l.length)return;s="",s=d.data&&d.data.tabular?"pivot":"table",l.forEach(function(e){e.slicerCacheName=f(u(a),"_x000a_","\n"),e.type=s})}}function k(e,t,r,o){var i,n=[],a=o.Ne;for(i in a.sheets)a.sheets[i].tables&&(n=n.concat(a.sheets[i].tables));t.forEach(function(t){var i=r(t.fileName,!0);i&&v(e,i,o,n)}),o.pivotSlicerCachesBeenRead=!0,o.tableSlicerCachesBeenRead=!0}function F(e,t,r,o){var i,s,c,d,u,f,b,h,m=r(t.fileName,!0);m&&(i=n.parseXmlToObject(m),s=i.styleSheet,c={},d=o.kn,a.isNullOrUndefined(d)||(u=l(d["x14:slicerStyle"]),u.forEach(function(e){var t=e._attr,r=t.name,i={name:r},n=l(e["x14:slicerStyleElements"]);n.forEach(function(e){var t=l(e["x14:slicerStyleElement"]);t.forEach(function(e){var t,r=e._attr,n=r.type,l=r.dxfId,s=p[n];!a.isNullOrUndefined(l)&&s&&(t=o.qg(l),i[s]=S(t))})}),c[r]=i})),f=s.tableStyles,a.isNullOrUndefined(f)||(b=l(f.tableStyle),b.forEach(function(e){var t,r=e._attr,i=r.name,n=c[i];n&&(t=l(e.tableStyleElement),t.forEach(function(e){var t=e._attr,r=t.type,i=t.dxfId,l=o.ug(i),s=p[r];!a.isNullOrUndefined(i)&&s&&(n[s]=S(l))}))})),h=d._attr.defaultSlicerStyle,e.forEach(function(e){var t=e.style.name;t||(e.style.name=h,t=h),c[t]&&(e.style=c[t])}))}function R(e,t){var r=null;return e.forEach(function(e){e.name===t&&(r=e)}),r}function E(e,t,r){var o=n.parseXmlToObject(t,!0),i=o["xdr:wsDr"],s=B(l(i["xdr:twoCellAnchor"]));s.forEach(function(t){var o,i,n,l,s,c,h,p,m=t._attr,g=!0,y=!0,S=m.editAs;"absolute"===S?(g=!1,y=!1):"oneCell"===S&&(y=!1),o=!0,i=t.clientData,n=d(t["xdr:from"]),l=d(t["xdr:to"]),s=b.getBounds(r,n,l),i&&(c=i._attr.fLocksWithSheet,"0"===c&&(o=!1)),h=u(f(t.slicerName," ","\n")),p=R(e,h),a.isNullOrUndefined(p)||(p.dynamicMove=g,p.dynamicSize=y,p.x=s.x,p.y=s.y,p.width=s.width,p.height=s.height,p.isLocked=o,p.endPoint=l)})}function I(e,t,r,o){t.forEach(function(t){var i=r(t.fileName,!0);i&&E(e,i,o)})}function L(e){var t,r,i,n=e.relationFiles,a=[];for(t in n)"count"!==t&&(r=n[t],r&&(i=r.fileType,i===o.RelationshipConstants.kb&&a.push(r)));return a}function D(e){var t=e.Ee(o.RelationshipConstants.Pa);if(t||(t=e.Ee(o.RelationshipConstants.Qa)),t)return t}function B(e){var t=["mc:AlternateContent","mc:Choice","xdr:graphicFrame","a:graphic","a:graphicData"],r=[];return e.forEach(function(e){var o,i,n,a,s,c=e;for(i=0;i0&&o.push(a));r.Jg(o,t)}}t.readSparklineGroups=h,u={span:2,gap:0,zero:1},f={line:0,column:1,stacked:2},b={individual:0,group:1,custom:2};function p(e,t){var r,i,s,c,d;if(!a.isNullOrUndefined(e))return r={setting:{}},r.sparklineType=0,i=e._attr,a.isNullOrUndefined(i)||(a.isNullOrUndefined(i.manualMax)||(r.setting.manualMax=o.XmlNodeHelper.Wm(i.manualMax,0)),a.isNullOrUndefined(i.manualMin)||(r.setting.manualMin=o.XmlNodeHelper.Wm(i.manualMin,0)),a.isNullOrUndefined(i.lineWeight)||(r.setting.lineWeight=4*o.XmlNodeHelper.Wm(i.lineWeight,1)/3),a.isNullOrUndefined(i.type)||(r.sparklineType=f[i.type]||0),a.isNullOrUndefined(i.dateAxis)||(r.displayDateAxis=o.XmlNodeHelper.Vm(i.dateAxis,!1)),a.isNullOrUndefined(i.displayEmptyCellsAs)||(r.setting.displayEmptyCellsAs=u[i.displayEmptyCellsAs]||0),a.isNullOrUndefined(i.markers)||(r.setting.showMarkers=o.XmlNodeHelper.Vm(i.markers,!1)),a.isNullOrUndefined(i.high)||(r.setting.showHigh=o.XmlNodeHelper.Vm(i.high,!1)),a.isNullOrUndefined(i.low)||(r.setting.showLow=o.XmlNodeHelper.Vm(i.low,!1)),a.isNullOrUndefined(i.first)||(r.setting.showFirst=o.XmlNodeHelper.Vm(i.first,!1)),a.isNullOrUndefined(i.last)||(r.setting.showLast=o.XmlNodeHelper.Vm(i.last,!1)),a.isNullOrUndefined(i.negative)||(r.setting.showNegative=o.XmlNodeHelper.Vm(i.negative,!1)),a.isNullOrUndefined(i.displayXAxis)||(r.setting.displayXAxis=o.XmlNodeHelper.Vm(i.displayXAxis,!1)),a.isNullOrUndefined(i.displayHidden)||(r.setting.displayHidden=o.XmlNodeHelper.Vm(i.displayHidden,!1)),a.isNullOrUndefined(i.rightToLeft)||(r.setting.rightToLeft=o.XmlNodeHelper.Vm(i.rightToLeft,!1)),a.isNullOrUndefined(i.minAxisType)||(r.setting.minAxisType=b[i.minAxisType]||0),a.isNullOrUndefined(i.maxAxisType)||(r.setting.maxAxisType=b[i.maxAxisType]||0)),a.isNullOrUndefined(e["x14:colorSeries"])||(r.setting.seriesColor=g(n.readColor(e["x14:colorSeries"]))||"rgba(36,64,98,255)"),a.isNullOrUndefined(e["x14:colorNegative"])||(r.setting.negativeColor=g(n.readColor(e["x14:colorNegative"]))||"Brown"),a.isNullOrUndefined(e["x14:colorAxis"])||(r.setting.axisColor=g(n.readColor(e["x14:colorAxis"]))||"Black"),a.isNullOrUndefined(e["x14:colorMarkers"])||(r.setting.markersColor=g(n.readColor(e["x14:colorMarkers"]))||"rgba(36,64,98,255)"),a.isNullOrUndefined(e["x14:colorFirst"])||(r.setting.firstMarkerColor=g(n.readColor(e["x14:colorFirst"]))||"rgba(149,179,215,255)"),a.isNullOrUndefined(e["x14:colorLast"])||(r.setting.lastMarkerColor=g(n.readColor(e["x14:colorLast"]))||"rgba(149,179,215,255)"),a.isNullOrUndefined(e["x14:colorHigh"])||(r.setting.highMarkerColor=g(n.readColor(e["x14:colorHigh"]))||"Blue"),a.isNullOrUndefined(e["x14:colorLow"])||(r.setting.lowMarkerColor=g(n.readColor(e["x14:colorLow"]))||"Blue"),a.isNullOrUndefined(e["xm:f"])||(s=e["xm:f"],c=s["xm:f"].split("!"),1===c.length?r.axisReference=c[0]:r.axisReference=l.getRangesFromString(c[1])[0]||null,c[0]!==t&&1!==c.length&&(r.axisReference.sheetName=c[0])),a.isNullOrUndefined(e["x14:sparklines"])||(r.sparklines=m(e["x14:sparklines"],t)),d=r.axisReference,r.displayDateAxis&&d&&(r.axisOrientation=1===d.rowCount?1:0),r}function m(e,t){var r=[],o=e&&e["x14:sparkline"],i=c(o);return i.forEach(function(e){var o,i,n,s,c,u,f;a.isNullOrUndefined(e["xm:f"])||(c=e["xm:f"],n=d(c["xm:f"]).split("!"),1===n.length?s=n[0]:o=l.getRangesFromString(n[1])[0]||null),a.isNullOrUndefined(e["xm:sqref"])||(u=e["xm:sqref"],i=l.getRangesFromString(u["xm:sqref"])[0]||null),a.isNullOrUndefined(o)||a.isNullOrUndefined(i)?a.isNullOrUndefined(s)||a.isNullOrUndefined(i)||(f={},f.row=i.row,f.col=i.col,f.data=s,r.push(f)):(f={},f.row=i.row,f.col=i.col,f.orientation=1===o.rowCount?1:0,f.data=o,n&&n[0]!==t&&(f.data.sheetName=n[0]),r.push(f))}),r}function g(e){var t;return t=e.isThemeColor()?s.ColorHelper.getThemeColorName(e):s.ColorHelper.toRGBColor(e)}},"./src/xlsx-io/reader/style-reader.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/xml-io/xml-reader.ts"),n=r("./src/datamodel/excel-style.ts"),a=r("./src/datamodel/excel-style.ts"),l=r("./src/xlsx-io/common/color-reader.ts"),s=r("./src/xml-io/xml-parser.ts"),c=void 0;function d(e,t){var r,o,n,a,l,s,c,d,f,h,p,m=new i.XmlReader;for(m.setXml(e),r=[],o=[],n={},a=[],l=[],s=[];m.read();)if(1===m.depth&&2!==m.elementType)switch(m.name()){case"numFmts":u(m,n);break;case"fonts":c=t.gf,d=t.ff,b(m,o,c,d);break;case"fills":g(m,a);break;case"borders":S(m,l);break;case"cellStyleXfs":x(m,r,o,l,n,a,!0);break;case"cellXfs":x(m,s,o,l,n,a,!1);break;case"cellStyles":k(m,t,r);break;case"colors":F(m,t);break;case"dxfs":L(m,t);break;case"tableStyles":P(m,t);break;case"extLst":R(m,t)}if(t.gn=n,f=r.length,f>0){for(t.tf(r[0]),h=0,p=f;h0&&(t[o.numberFormatId]=o))}}t.readNumberFormats=u;function f(e){for(var t,r=-1,i="",n="";e.moveToNextAttribute();)t=e.readAttributeNameAsString(),"numFmtId"===t?r=e.readContentAsInt(-1):"formatCode"===t?i=e.readContentAsString():t.indexOf("formatCode16")>-1&&(n=e.readContentAsString(),n.indexOf("[$-ja-JP-x-gannen]")>-1&&(i=n));return i=o.Util.pa(o.Util.ua(i,"_x000a_","\n")),new a.ExcelNumerFormat(r,i)}function b(e,t,r,o){if(3!==e.elementType)for(var i=e.depth;e.read();){if(e.depth<=i)return;1===e.nodeType()&&"font"===e.name()&&t.push(h(e,!1,r,o))}}t.readFonts=b;function h(e,t,r,i){var s,c,d,u,f,b,h,m,g,y;if(3!==e.elementType){for(s=new a.ExcelFont,t&&(s.fontColor=void 0,s.underLineStyle=void 0),c=e.depth;e.read()&&!(e.depth<=c);)if(1===e.nodeType())switch(e.name()){case"b":for(s.isBold=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(s.isBold=e.readContentAsBoolean(-1));break;case"charset":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(s.charSetIndex=e.readContentAsInt(-1));break;case"family":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(s.fontFamily=e.readContentAsInt(0));break;case"name":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(d=e.readContentAsString(),d.indexOf(" ")>=0&&(d="'"+d+"'"),s.fontName=d);break;case"scheme":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u=e.readContentAsString(),o.StringEx.O(u)||void 0===n.FontSchemeCategory[u.toLocaleLowerCase()]||(s.fontScheme=n.FontSchemeCategory[u.toLocaleLowerCase()]));break;case"u":for(f=1;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(b=e.readContentAsString(),o.StringEx.O(b)||void 0===a.UnderLineStyle[b]||(f=a.UnderLineStyle[b]));s.underLineStyle=f;break;case"i":for(s.isItalic=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(s.isItalic=e.readContentAsBoolean(-1));break;case"outline":for(s.isOutlineStyle=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(s.isOutlineStyle=e.readContentAsBoolean(-1));break;case"shadow":for(s.isShadowStyle=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(s.isShadowStyle=e.readContentAsBoolean(-1));break;case"strike":for(s.isStrikeOut=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(s.isStrikeOut=e.readContentAsBoolean(-1));break;case"sz":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(s.fontSize=e.readContentAsDouble(0));break;case"vertAlign":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(h=e.readContentAsString(),h&&void 0!==a.VertAlign[h.toLocaleLowerCase()]&&(s.vertAlign=a.VertAlign[h.toLocaleLowerCase()]));break;case"color":m=l.readColor(e),m!==n.ExcelColor.EmptyColor?s.fontColor=m:t&&(s.fontColor=null)}return g=s.fontScheme,(1===g&&r||2===g&&i)&&(y=p(g,r,i),s.fontName=y),s}}function p(e,t,r){var o;return 1===e?o=r:2===e&&(o=t),o}function m(e){for(var t,r,i,s,c,d,u=new a.ExcelFont,f=e.depth;e.read()&&!(e.depth<=f);)if(1===e.nodeType())switch(e.name()){case"b":for(u.isBold=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u.isBold=e.readContentAsBoolean(-1));break;case"charset":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u.charSetIndex=e.readContentAsInt(-1));break;case"color":t=l.readColor(e),t!==n.ExcelColor.EmptyColor&&(u.fontColor=t);break;case"condense":for(u.isCondense=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u.isCondense=e.readContentAsBoolean(-1));break;case"extend":for(u.isExtend=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u.isExtend=e.readContentAsBoolean(-1));break;case"family":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u.fontFamily=e.readContentAsInt(0));break;case"i":for(u.isItalic=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u.isItalic=e.readContentAsBoolean(-1));break;case"outline":for(u.isOutlineStyle=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u.isOutlineStyle=e.readContentAsBoolean(-1));break;case"rFont":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(r=e.readContentAsString(),r.indexOf(" ")>=0&&(r="'"+r+"'"),u.fontName=r);break;case"scheme":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(i=e.readContentAsString(),o.StringEx.O(i)||void 0===n.FontSchemeCategory[i.toLocaleLowerCase()]||(u.fontScheme=n.FontSchemeCategory[i.toLocaleLowerCase()]));break;case"shadow":for(u.isShadowStyle=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u.isShadowStyle=e.readContentAsBoolean(-1));break;case"strike":for(u.isStrikeOut=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u.isStrikeOut=e.readContentAsBoolean(-1));break;case"sz":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u.fontSize=e.readContentAsDouble(0));break;case"u":for(s=1;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(c=e.readContentAsString(),o.StringEx.O(c)||void 0===a.UnderLineStyle[c]||(s=a.UnderLineStyle[c]));u.underLineStyle=s;break;case"vertAlign":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(d=e.readContentAsString(),d&&void 0!==a.VertAlign[d.toLocaleLowerCase()]&&(u.vertAlign=a.VertAlign[d.toLocaleLowerCase()]))}return u}t.readRichTextFont=m;function g(e,t){if(3!==e.elementType)for(var r=e.depth;e.read();){if(e.depth<=r)return;1===e.nodeType()&&"fill"===e.name()&&(t.push(y(e)),0===t.length&&t.push({patternType:0,fgColor:n.ExcelColor.EmptyColor,bgColor:n.ExcelColor.EmptyColor}))}}t.readFills=g;function y(e){for(var t,r,o,i,n,s=new a.ExcelFill,c=e.depth;e.read()&&!(e.depth<=c);)if(1===e.nodeType()&&"patternFill"===e.name()){for(;e.moveToNextAttribute();)"patternType"===e.readAttributeNameAsString()&&(t=e.readContentAsString(),t&&void 0!==a.FillPatternType[t]&&(s.patternType=a.FillPatternType[t]));if(3===e.elementType)break;for(r=e.depth;e.read()&&!(e.depth<=r);)1===e.nodeType()&&("fgColor"===e.name()?s.fgColor=l.readColor(e):"bgColor"===e.name()&&(s.bgColor=l.readColor(e)))}else if(1===e.nodeType()&&"gradientFill"===e.name()){for(s.stops=[];e.moveToNextAttribute();)o=e.readAttributeNameAsString(),"type"===o?s[o]=e.readContentAsString():"degree"===o?s[o]=e.readContentAsInt():s[o]=e.readContentAsDouble();if(3===e.elementType)break;for(r=e.depth;e.read()&&!(e.depth<=r);)if("stop"===e.name()){for(i={},e.moveToNextAttribute()&&"position"===e.readAttributeNameAsString()&&(i.position=e.readContentAsDouble()),n=e.depth;e.read()&&!(e.depth<=n);)i.color=l.readColor(e); -s.stops.push(i)}}return s}function S(e,t){if(3!==e.elementType)for(var r=e.depth;e.read();){if(e.depth<=r)return;1===e.nodeType()&&"border"===e.name()&&t.push(C(e))}}t.readBorders=S;function C(e){for(var t,r,o=e.depth,i=new a.ExcelBorder,n=!1,l=!1;e.moveToNextAttribute();)t=e.readAttributeNameAsString(),"diagonalUp"===t?n=!0:"diagonalDown"===t&&(l=!0);if(3===e.elementType&&!n&&!l)return i;for(i.top=void 0,i.right=void 0,i.bottom=void 0,i.left=void 0;e.read()&&!(e.depth<=o);)if(1===e.nodeType())switch(e.name()){case"top":i.top=w(e);break;case"right":case"end":i.right=w(e);break;case"bottom":i.bottom=w(e);break;case"left":case"start":i.left=w(e);break;case"vertical":i.vertical=w(e);break;case"horizontal":i.horizontal=w(e);break;case"diagonal":r=w(e),n&&(i.diagonalUp=r),l&&(i.diagonalDown=r)}return i}function w(e){var t,r,o=new a.ExcelBorderSide;for(o.lineStyle=0;e.moveToNextAttribute();)"style"===e.readAttributeNameAsString()&&(t=e.readContentAsString(),t&&void 0!==a.ExcelBorderStyle[t]&&(o.lineStyle=a.ExcelBorderStyle[t]));if(3===e.elementType)return o;for(r=e.depth;e.read()&&!(e.depth<=r);)1===e.nodeType()&&"color"===e.name()&&(o.color=l.readColor(e));return o}function x(e,t,r,o,i,n,l){var s,c,d;if(3!==e.elementType)for(s=e.depth;e.read();){if(e.depth<=s)return;if(1===e.nodeType()&&"xf"===e.name()){if(c=new a.ExtendedFormat,c.isStyleFormat=l,A(e,c,r,o,i,n),t.push(c),3===e.elementType)continue;for(d=e.depth;e.read()&&!(e.depth<=d);)1===e.nodeType()&&("alignment"===e.name()?T(e,c):"protection"===e.name()&&v(e,c))}}}t.readXFs=x;function A(e,t,r,o,i,n){for(var a,l,s,c,d,u,f,b,h,p=0,m=0,g=0,y=0;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"numFmtId":p=e.readContentAsInt(0);break;case"fontId":m=e.readContentAsInt(0);break;case"fillId":g=e.readContentAsInt(0);break;case"borderId":y=e.readContentAsInt(0);break;case"applyAlignment":a=e.readContentAsInt(-1),0!==a&&1!==a||(t.applyAlignment=1===a);break;case"applyBorder":l=e.readContentAsInt(-1),0!==l&&1!==l||(t.applyBorder=1===l);break;case"applyFill":s=e.readContentAsInt(-1),0!==s&&1!==s||(t.applyFill=1===s);break;case"applyFont":c=e.readContentAsInt(-1),0!==c&&1!==c||(t.applyFont=1===c);break;case"applyProtection":d=e.readContentAsInt(-1),0!==d&&1!==d||(t.applyProtection=1===d);break;case"applyNumberFormat":u=e.readContentAsInt(-1),0!==u&&1!==u||(t.applyNumberFormat=1===u);break;case"xfId":f=e.readContentAsInt(-1),f>=0&&(t.parentFormatID=f);break;case"quotePrefix":b=e.readContentAsBoolean(),t.quotePrefix=b}t.font=r[m],t.border=o[y],i[p]?t.numberFormat=i[p]:t.numberFormatIndex=p,h=n[g],h&&(t.fill=h),t.isLocked=!0,t.isHidden=!1,t.horizontalAlign=0,t.verticalAlign=2}function T(e,t,r){for(var i,l,s,d=null,u=null,f=!!r&&c,b=!!r&&c,h=!!r&&c;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"horizontal":d=e.readContentAsString();break;case"vertical":u=e.readContentAsString();break;case"textRotation":i=e.readContentAsString(),o.StringEx.O(i)||(t.rotation=parseInt(i,10));break;case"readingOrder":l=e.readContentAsString(),o.StringEx.O(l)||(t.readingOrder=parseInt(l,10));break;case"indent":s=e.readContentAsString(),o.StringEx.O(s)||(t.indent=parseInt(s,10));break;case"justifyLastLine":f=e.readContentAsBoolean(!1);break;case"shrinkToFit":b=e.readContentAsBoolean(!1);break;case"wrapText":h=e.readContentAsBoolean(!1)}t.isJustfyLastLine=f,t.isShrinkToFit=b,t.isWordWrap=h,o.StringEx.O(d)&&!r&&(d="general"),o.StringEx.O(u)&&!r&&(u="bottom"),d&&(t.horizontalAlign=a.ExcelHorizontalAlignment[d]),u&&(t.verticalAlign=n.ExcelVerticalAlignment[u])}function v(e,t){for(var r,i;e.moveToNextAttribute();)r=e.readAttributeNameAsString(),"hidden"===r?t.isHidden=e.readContentAsBoolean(!1):"locked"===r&&(i=e.readContentAsString(),o.StringEx.L(i)||"0"!==i&&"false"!==i||(t.isLocked=!1))}function k(e,t,r){var i,n,l,s,c,d,u,f,b;if(3!==e.elementType)for(i=e.depth;e.read();){if(e.depth<=i)return;if(1===e.nodeType()&&"cellStyle"===e.name()){for(n=void 0,l=0,s=-1,c=!1,d=0;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"name":n=o.Util.pa(e.readContentAsString());break;case"xfId":l=e.readContentAsInt(0);break;case"builtinId":s=e.readContentAsInt(-1);break;case"customBuiltin":c=e.readContentAsBoolean(!1);break;case"iLevel":d=e.readContentAsInt(0)}u=r[l],s!==-1?(f=new a.ExcelStyle,f.name=n,f.format(u.clone()),f.isCustomBuiltin=c,f.builtInStyle=s,2!==f.builtInStyle&&1!==f.builtInStyle||(f.outLineLevel=d),t.xf(f,l)):(b=new a.CustomExcelStyle,b.name=n,b.format(u.clone()),t.xf(b,l))}}}function F(e,t){var r,o,i,n;if(3!==e.elementType)for(r=e.depth,o=[];e.read();){if(e.depth<=r)return;if(1===e.nodeType()&&"indexedColors"===e.name())for(i=e.depth;e.read();){if(e.depth<=i)return void t.kg(o);if(1===e.nodeType()){for(n=0;e.moveToNextAttribute();)"rgb"===e.readAttributeNameAsString()&&(n=parseInt(e.readContentAsString(),16));o.push((16777215&n)+4278190080)}}}}function R(e,t){var r,i,n=null,a=null,l=null,c=null;if(3!==e.elementType){for(;e.read();)if(1===e.nodeType()&&"ext"===e.name())for(;e.moveToNextAttribute();)if("uri"===e.readAttributeNameAsString())switch(r=e.readContentAsString()){case"{46F421CA-312F-682f-3DD2-61675219B42D}":n=E(e);break;case"{A0A4C193-F2C1-4fcb-8827-314CF55A85BB}":a=I(e);break;case"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}":i=s.parseXmlToObject(e.readFullElement(),!0).ext,o.isNullOrUndefined(i)||(l=i["x14:slicerStyles"]);break;case"{9260A510-F301-46a8-8635-F512D64BE5F5}":i=s.parseXmlToObject(e.readFullElement(),!0).ext,o.isNullOrUndefined(i)||(c=i["x15:timelineStyles"])}t.rg=n,t.tg=a,t.kn=l,t.mn=c}}function E(e){var t,r=[];if(3!==e.elementType){for(t=e.depth;e.read()&&!(e.depth<=t);)1===e.nodeType()&&"x14:dxfs"===e.name()&&(r=D(e));return r}}function I(e){var t,r=[];if(3!==e.elementType){for(t=e.depth;e.read()&&!(e.depth<=t);)1===e.nodeType()&&"x15:dxfs"===e.name()&&(r=D(e));return r}}function L(e,t){var r=D(e);t.hf=r}function D(e){var t,r;if(3!==e.elementType){for(t=e.depth,r=[];e.read()&&!(e.depth<=t);)1===e.nodeType()&&"dxf"===e.name()&&r.push(B(e));return r}}t.readDifferentialFormattingRecords=D;function B(e){var t,r,o,i={};if(3===e.elementType)return i;for(t=e.depth;e.read()&&!(e.depth<=t);)if(1===e.nodeType())switch(e.name()){case"font":i.font=h(e,!0);break;case"border":i.border=C(e);break;case"fill":i.fill=y(e);break;case"numFmt":i.numberFormat=f(e);break;case"alignment":r={},T(e,r,!0),i.alignment=r;break;case"protection":o={},v(e,o),i.protection=o}return i}t.readDifferentialFormattingRecord=B;function P(e,t){3!==e.elementType&&(t.tableStylesObj=s.parseXmlToObject(e.readFullElement()).tableStyles)}},"./src/xlsx-io/reader/table-reader.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/xml-io/xml-parser.ts"),a=r("./src/xml-io/node-helper.ts"),l=r("./src/common/range-parser.ts"),s=r("./src/xlsx-io/reader/autofilter-reader.ts"),c=a.XmlNodeHelper.He,d=a.XmlNodeHelper.Ym;function b(e,t,r){return i.Util.pa(d(e,t,r))}u={wholeTable:"wholeTableStyle",headerRow:"headerRowStyle",totalRow:"footerRowStyle",firstColumn:"highlightFirstColumnStyle",lastColumn:"highlightLastColumnStyle",firstRowStripe:"firstRowStripStyle",secondRowStripe:"secondRowStripStyle",firstColumnStripe:"firstColumnStripStyle",secondColumnStripe:"secondColumnStripStyle",firstHeaderCell:"firstHeaderCellStyle",lastHeaderCell:"lastHeaderCellStyle",firstTotalCell:"firstFooterCellStyle",lastTotalCell:"lastFooterCellStyle"};function h(){var e,t={};for(e=1;e<=28;e++)e<=21&&(t["TABLESTYLELIGHT"+e]=!0),e<=11&&(t["TABLESTYLEDARK"+e]=!0),t["TABLESTYLEMEDIUM"+e]=!0;return t}f=h();function p(e,t,r,n){var a,l,s,c,d,u;if(e){a=void 0,l=[];for(s in e)"count"!==s&&(c=e[s],c&&(d=c.fileType,d===o.RelationshipConstants.$a&&(a=c),a&&(u=m(a,n,r,t),i.isNullOrUndefined(u)||l.push(u))));r.Kg(l,t)}}t.readTables=p;function m(e,t,r,o){var i=t(e.fileName);if(i)return g(i,r,o)}t.readTablesFromFile=m;function g(e,t,r){var o,c,d,u,f,b,h,p,m,g,C=n.parseXmlToObject(e),w={},x=C&&C.table&&C.table._attr;if(!i.isNullOrUndefined(x)){if(w.id=a.XmlNodeHelper.Xm(x.id,0),w.name=x.name,o=x.ref,i.isNullOrUndefined(o)||(c=l.getRangesFromString(o,!0)[0],w.row=c.row,w.col=c.col,w.rowCount=c.rowCount,w.colCount=c.colCount),d=a.XmlNodeHelper.Xm(x.headerRowCount,1),d>=1?w.showHeader=!0:w.showHeader=!1,w.showFooter=a.XmlNodeHelper.Vm(x.totalsRowShown,!0),u=a.XmlNodeHelper.Xm(x.totalsRowCount,-1),u<1?w.showFooter=!1:w.showFooter=!0,f=C&&C.table,b=void 0,h=void 0,!i.isNullOrUndefined(f))for(p in f)if(f.hasOwnProperty(p)&&!i.isNullOrUndefined(f[p]))switch(p){case"autoFilter":b=s.readAutoFilter(f[p]);break;case"sortState":h=s.readSortInfo(f[p]);break;case"tableColumns":w.columns=y(f[p]);break;case"tableStyleInfo":S(f[p],w,t);break;case"extLst":w.reservedElement=f[p]}for(m=b||{},w.rowFilter=t.Mg(m,r)||{},w.rowFilter.sortInfo=h,w.rowFilter.showFilterButton=!0,w.rowFilter.filterButtonVisibleInfo={},g=0;g0&&m.filterColumns[0].hiddenButton||w.rowFilter.showFilterButton===!1)for(w.rowFilter.showFilterButton=!1,w.rowFilter.filterButtonVisibleInfo={},g=0;g0&&(u=c(n.tableStyle),!i.isNullOrUndefined(u)))for(b=0;b0&&A(e,t,r,o))}function x(e){return e.substr(10)}function A(e,t,r,o){var n=c(r.tableStyleElement);i.isNullOrUndefined(n)||n.forEach(function(e){var r,n,l,s,c=e._attr;i.isNullOrUndefined(c)||(r=c.type||"wholeTable",n=a.XmlNodeHelper.Xm(c.dxfId)||0,l=a.XmlNodeHelper.Xm(c.size)||1,s=o.ug(n),t[u[r]]=s,"firstRowStripe"!==r&&"secondRowStripe"!==r&&"firstColumnStripe"!==r&&"secondColumnStripe"!==r||(t[r.substr(0,r.length-1)+"Size"]=l))}),e.style=t}},"./src/xlsx-io/reader/theme-reader.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=r("./src/xml-io/xml-parser.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/datamodel/excel-style.ts"),l=r("./src/xml-io/xml-reader.ts"),s=r("./src/xlsx-io/reader/chart-reader.ts"),c=s.DrawingReader.ReadCT_OfficeStyleSheet,d="a:scrgbClr";function u(e,t){var r,o,a,s,d,u,h,p=i.parseXmlToObject(e,!0),m=p["a:theme"];m&&(r=m._attr.name,r&&"OFFICE"===r.toUpperCase().trim()&&(r="Office"),o=m["a:themeElements"],o&&(a=f(o),s=b(o),d=new n.ExcelTheme(r,a,s),t.rf(d)),u=new l.XmlReader,u.setXml(e),h=c(u),t.lf(h))}t.readTheme=u;function f(e){var t,r,o,i,a,l,s,c,d,u,f,b,h=[],m=e["a:clrScheme"];if(m)return t=p(m["a:lt1"]),t&&h.push(t),r=p(m["a:dk1"]),r&&h.push(r),o=p(m["a:lt2"]),o&&h.push(o),i=p(m["a:dk2"]),i&&h.push(i),a=p(m["a:accent1"]),a&&h.push(a),l=p(m["a:accent2"]),l&&h.push(l),s=p(m["a:accent3"]),s&&h.push(s),c=p(m["a:accent4"]),c&&h.push(c),d=p(m["a:accent5"]),d&&h.push(d),u=p(m["a:accent6"]),u&&h.push(u),f=p(m["a:hlink"]),f&&h.push(f),b=p(m["a:folHlink"]),b&&h.push(b),new n.ColorScheme(m._attr.name,h)}function b(e){var t,r,o=e["a:fontScheme"];return o?(t=h(o["a:majorFont"]),r=h(o["a:minorFont"]),new n.FontScheme(o._attr.name,t,r)):null}function h(e){var t,r,i,a,l=[],s=[];if(e)if(e["a:latin"])l.push(new n.RunFormatting(0,o.isNullOrUndefined(e["a:latin"]._attr.typeface)?"":e["a:latin"]._attr.typeface));else if(e["a:ea"])l.push(new n.RunFormatting(2,o.isNullOrUndefined(e["a:ea"]._attr.typeface)?"":e["a:ea"]._attr.typeface));else if(e["a:cs"])l.push(new n.RunFormatting(1,o.isNullOrUndefined(e["a:cs"]._attr.typeface)?"":e["a:cs"]._attr.typeface));else if(e["a:sym"])l.push(new n.RunFormatting(3,o.isNullOrUndefined(e["a:sym"]._attr.typeface)?"":e["a:sym"]._attr.typeface));else if(e["a:font"])for(t=e["a:font"],Array.isArray(t)||(t=[t]),r=0,i=t.length;r0&&(t.Ne.allowDynamicArray=!0)}return y}t.readWorkbook=s;function c(e,t){var r=i.XmlNodeHelper.Vm(e._attr.dateCompatibility,!0);r&&t.zf(i.XmlNodeHelper.Vm(e._attr.date1904,!1))}t.readWorkbookProperties=c;function d(e){var t={};return t.cacheId=e._attr.cacheId,t.rid=e._attr["r:id"],t}t.readPivotCache=d;function u(e){var t={};return t.rid=e._attr["r:id"],t}t.readExternalReference=u;function f(e,t){var r=i.XmlNodeHelper.Vm(e._attr.showHorizontalScroll,!0),o=i.XmlNodeHelper.Vm(e._attr.showVerticalScroll,!0),n=i.XmlNodeHelper.Vm(e._attr.showSheetTabs,!0),a=i.XmlNodeHelper.Xm(e._attr.firstSheet,0),l=i.XmlNodeHelper.Xm(e._attr.activeTab,0),s=i.XmlNodeHelper.Xm(e._attr.tabRatio,600);t.Af(r,o),t.Bf(n,l,a,s)}t.readWorkbookView=f;function b(e){var t,r,o,i,n=Object.keys(e);for(t=0,r=n;t0)for(t.og(),r=void 0,o=0;o=0&&l===a.BUILT_IN_PRINT_AREA_UPPERCASE?t.pg(a.PRINT_AREA,a.processFunction(c),d,s):"_xlnm.Print_Titles"===n?t.Zg(d,c):t.pg(n,a.processFunction(c),d,s))}function m(e,t){var r,o,i=e._attr.refMode,n=!1;i&&"R1C1"===i&&(n=!0),r={iterate:e._attr.iterate,count:e._attr.iterateCount,delta:e._attr.iterateDelta},o=0,"manual"===e._attr.calcMode&&(o=1),t.Df(n,r,o)}t.readWorkbookCalcProperties=m},"./src/xlsx-io/reader/worksheet-reader.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xlsx-io/common/color-reader.ts"),i=r("./src/xml-io/xml-reader.ts"),n=r("./src/common/common.ts"),a=r("./src/common/excel-types.ts"),l=r("./src/datamodel/excel-style.ts"),s=r("./src/datamodel/excel-helper.ts"),c=r("./src/xlsx-io/reader/conditionalformat-reader.ts"),d=r("./src/xlsx-io/reader/sparkline-reader.ts"),u=r("./src/xlsx-io/reader/autofilter-reader.ts"),f=r("./src/xlsx-io/reader/datavalidation-reader.ts"),b=r("./src/xlsx-io/reader/print-reader.ts"),h=r("./src/xlsx-io/reader/ctrlprops-reader.ts"),p=r("./src/xlsx-io/reader/control-reader.ts"),m=null,g="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main";function y(e,t,r,o,n,a,l){var s,d,h=new i.XmlReader;for(h.reset(),h.setXml(e),s=15,d={},o.if=[],o.jf=[],o.Uf=0,o.Tf=0;h.read();)if(1===h.depth&&2!==h.elementType)try{switch(h.name()){case"sheetPr":S(h,r,o);break;case"dimension":C(h,r,o);break;case"sheetViews":w(h,r,o);break;case"sheetFormatPr":s=A(h,r,o);break;case"cols":T(h,r,o,n);break;case"mergeCells":k(h,r,o);break;case"sheetData":F(h,r,o,d,s,n,a);break;case"sheetProtection":L(h,r,o);break;case"conditionalFormatting":c.readConditionalFormatting(h,r,o);break;case"extLst":D(h,r,o);break;case"autoFilter":u.readAutoFilterForSheet(h,r,o);break;case"dataValidations":f.readDataValidations(h,r,o);break;case"pageMargins":b.readPageMargins(h,r,o);break;case"printOptions":b.readPrintOptions(h,r,o);break;case"pageSetup":b.readPageSetup(h,o);break;case"headerFooter":b.readHeaderFooter(h,o);break;case"rowBreaks":b.readRowColumnBreaks(h,o,!0);break;case"colBreaks":b.readRowColumnBreaks(h,o,!1);break;case"legacyDrawing":p.readLegacyDrawing(h,o);break;case"legacyDrawingHF":b.readLegacyDrawingHF(h,o);break;case"hyperlinks":B(h,r,o,t);break;case"controls":P(h,r,o,t,l);break;case"mc:AlternateContent":W(h,r,o,t,l)}}catch(e){}o.fg(r,d),o.Sf(r)}t.readWorksheets=y;function S(e,t,r){for(var i,n,a,l;e.moveToNextAttribute();)i=e.readAttributeNameAsString(),"filterMode"===i&&e.readContentAsString();if(3!==e.elementType)for(n=e.depth;e.read()&&!(e.depth<=n);)if(1===e.nodeType())switch(e.name()){case"tabColor":r.Ff(t,o.readColor(e));break;case"outlinePr":for(a=!0,l=!0;e.moveToNextAttribute();)"summaryBelow"===e.readAttributeNameAsString()?a=e.readContentAsBoolean():"summaryRight"===e.readAttributeNameAsString()&&(l=e.readContentAsBoolean());r.Ef(t,l,a);break;case"pageSetUpPr":b.readPageSetupAdditionalProperty(e,r)}}function C(e,t,r){for(var o,i,a,l,s,c,d,u;e.moveToNextAttribute();)"ref"===e.readAttributeNameAsString()&&(o=e.readContentAsString(),i=o.split(":"),a=void 0,l=void 0,2===i.length?(s=n.IndexHelper.P(i[0]),c=n.IndexHelper.P(i[1]),d=n.IndexHelper.R(i[0]),u=n.IndexHelper.R(i[1]),a=Math.max(s,c)+1,l=Math.max(d,u)+1):1===i.length&&(s=n.IndexHelper.P(i[0]),d=n.IndexHelper.R(i[0]),a=s+1,l=d+1),r.Gf(t,a,l))}function w(e,t,r){var o,i,l,s,c,d,u,f,b,h,p,m,g,y,S,C,w,A,T,v,k,F,R,E,I,L;if(r.mg(),3!==e.elementType)for(o=e.depth;e.read()&&!(e.depth<=o);)if(1===e.nodeType()&&"sheetView"===e.name()){if(x(e,t,r),i=r.Kf,l=void 0,s=void 0,i&&(l=n.IndexHelper.P(i),s=n.IndexHelper.R(i)),void 0!==l&&void 0!==s&&r.Lf(l,s,t),3===e.elementType)continue;for(c=e.depth;e.read()&&!(e.depth<=c);)if(1===e.nodeType())if("selection"===e.name()){for(d=-1,u=-1,f=0,b=[],h=[],p=[],m=[],g=[],y="",S=3;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"sqref":g=e.readContentAsString().split(" ");break;case"activeCellId":break;case"activeCell":y=e.readContentAsString();break;case"pane":C=e.readContentAsString(),C&&void 0!==a.PaneType[C]&&(S=a.PaneType[C])}for(w=0,A=g.length;w=0&&(n=new l.ExcelColor(1,o,0));break;case"showGridLines":a=e.readContentAsBoolean();break;case"showRowColHeaders":s=e.readContentAsBoolean();break;case"showFormulas":d=e.readContentAsBoolean();break;case"showZeros":u=e.readContentAsBoolean();break;case"zoomScale":c=e.readContentAsDouble(100);break;case"topLeftCell":f=e.readContentAsString();break;case"tabSelected":i=e.readContentAsBoolean()}r.Hf(t,n,a,s,c,d,u,i),r.Kf=f}function A(e,t,r){for(var o=NaN,i=NaN,n=8,a=15;e.moveToNextAttribute();)"defaultRowHeight"===e.readAttributeNameAsString()?o=e.readContentAsDouble(NaN):"defaultColWidth"===e.readAttributeNameAsString()?i=e.readContentAsDouble(NaN):"baseColWidth"===e.readAttributeNameAsString()&&(n=e.readContentAsDouble(8));return isNaN(o)||(r.Nf(t,o),a=o),r.Of(t,n,i),a}function T(e,t,r,o){var i,n,a,l,s,c,d,u;if(3!==e.elementType){for(i=e.depth;e.read()&&!(e.depth<=i);)if(1===e.nodeType()&&"col"===e.name()){for(n=0,a=0,l=0,s=0,c=0,d=!1,u=!1;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"min":n=e.readContentAsInt(0)-1;break;case"max":a=e.readContentAsInt(0)-1;break;case"style":l=e.readContentAsInt(0);break;case"width":s=e.readContentAsDouble(8);break;case"hidden":d=e.readContentAsBoolean(!1);break;case"collapsed":u=e.readContentAsBoolean(!1);break;case"outlineLevel":c=e.readContentAsInt(0)}n>=0&&a>=0&&r.Vf(t,n,a,l+o,s,d,c,u)}r._f(t,!1),v(r.Ne.sheets&&r.Ne.sheets[t])}}function v(e){var t,r,o,i;if(e&&e.columns)for(t=e.columns,r=e.columnOutlines,o=0;ol);r.Ufd);return i.Tf=0&&Ab);return d&&g&&g.isDynamicArray&&(g.isInvalid=!0),a.gg(t,o,_,f,h,p,g,y),_}function L(e,t,r){for(var o,i=[],n=!1;e.moveToNextAttribute();)o=e.readAttributeNameAsString(),"sheet"===o?(n=e.readContentAsBoolean(!1),r.Yf(t,n)):"algorithmName"===o||"hashValue"===o||"saltValue"===o||"spinCount"===o||"password"===o?i.push({name:o,value:"spinCount"===o?e.readContentAsInt():e.readContentAsString()}):i.push({name:o,value:!e.readContentAsBoolean(!1)});r.Zf(t,i,n)}function D(e,t,r){var o,i,n;if(3!==e.elementType)for(o=e.depth;e.read()&&!(e.depth<=o);)if(1===e.nodeType()){if(i=void 0,n=void 0,"ext"===e.name())for(;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"uri":i=e.readContentAsString();break;case"xmlns:x14":n=e.readContentAsString()}N(i,n)&&c.readExtensionConditionalFormating(e,t,r),M(i,n)&&d.readSparklineGroups(e,t,r),O(i,n)&&f.readExtensionDataValidation(e,t,r)}}function B(e,t,r,o){var i,a,l,s,c,d;if(3!==e.elementType)for(i=e.depth;e.read()&&!(e.depth<=i);)if(1===e.nodeType()&&"hyperlink"===e.name()){for(a={url:"",tooltip:"",target:0,drawUnderline:!0,command:""},l={row:0,col:0};e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"ref":s=e.readContentAsString(),c=s.split(":"),l.row=n.IndexHelper.P(c[0]),l.col=n.IndexHelper.R(c[0]);break;case"r:id":a.url=n.Util.pa(o[e.readContentAsString()].fileName);break;case"location":a.url?a.url=a.url+"#"+n.Util.pa(e.readContentAsString()):(d=n.Util.pa(e.readContentAsString()),"#"===d[0]&&(d=d.substr(1)),a.url="sjs://"+d);break;case"tooltip":a.tooltip=n.Util.pa(e.readContentAsString())}r.eg(t,l.row,l.col,a)}}function P(e,t,r,o,i){var a,l,s,c,d,u;if(3!==e.elementType){for(a=e.depth,l={};e.read()&&!(e.depth<=a);)if(1===e.nodeType()&&(s=void 0,c=void 0,d=void 0,"control"===e.name())){for(;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"shapeId":s=e.readContentAsString();break;case"r:id":c=e.readContentAsString();break;case"name":d=e.readContentAsString()}u=h.readCtrlProps(c,o,i),u&&n.Util.isSupportedExcelObjectType(u.objectType)&&(l[s]={rid:c,name:d,props:u})}l&&r.Hg(l,t)}}function W(e,t,r,o,i){if(3!==e.elementType)for(var n=e.depth;e.read()&&!(e.depth<=n);)1===e.nodeType()&&"controls"===e.name()&&P(e,t,r,o,i)}function _(e,t,r){var o=e===r,i=t===g;return o&&i}function N(e,t){return _(e,t,"{78C0D931-6437-407d-A8EE-F0AAD7539E65}")}function M(e,t){return _(e,t,"{05C60535-1F16-4fd2-B633-F4F36F0B64E0}")}function O(e,t){return _(e,t,"{CCE6A557-97BC-4b89-ADB6-D9C93CAAB3DF}")}},"./src/xlsx-io/reader/xlsx-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,S,C,w,x,A,T,v,k;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/excel-types.ts"),i=r("./src/datamodel/datamodel-reader.ts"),n=r("./src/xlsx-io/reader/docpropscore-reader.ts"),a=r("./src/xlsx-io/reader/docpropsapp-reader.ts"),l=r("./src/xlsx-io/reader/docpropscustom-reader.ts"),s=r("./src/xlsx-io/reader/sharedstring-reader.ts"),c=r("./src/xlsx-io/reader/theme-reader.ts"),d=r("./src/xlsx-io/reader/workbook-reader.ts"),u=r("./src/xlsx-io/reader/style-reader.ts"),f=r("./src/xlsx-io/reader/worksheet-reader.ts"),b=r("./src/xlsx-io/reader/comment-reader.ts"),h=r("./src/xlsx-io/reader/drawing-reader.ts"),p=r("./src/xlsx-io/reader/slicer-reader.ts"),m=r("./src/xlsx-io/reader/table-reader.ts"),g=r("./src/xlsx-io/reader/print-reader.ts"),y=r("./src/datamodel/excel-style.ts"),S=r("./src/xlsx-io/reader/metadata-reader.ts"),C=r("./src/xlsx-io/reader/pivot-reader.ts"),w=r("./src/xlsx-io/reader/control-reader.ts"),x=r("./src/xlsx-io/reader/timeline-reader.ts"),A=r("./src/xlsx-io/reader/externallink-reader.ts"),T=r("./src/common/common.ts"),v=null,k=function(){function e(){var e=this;e.sn={},e.tn=0,e.un=[],e.Kk=new i.ReaderDataModel}return e.prototype.Dk=function(e,t,r){var i,n,a;e&&(i=this,i.sn=e,i.Kk.Bg=t,n=new o.XFile("",""),n.Ae(e),a=n.Ee(o.RelationshipConstants.Na),a||(a=n.Ee(o.RelationshipConstants.Oa)),i.onCompleted=function(){i.vn(),i.wn(),r(i.Kk.Ne)},i.xn(n),i.yn(a))},e.prototype.xn=function(e){var t=this,r=e.Ee(o.RelationshipConstants.Ka),i=e.Ee(o.RelationshipConstants.La),n=e.Ee(o.RelationshipConstants.Ma);r&&t.zn(r),i&&t.An(i),n&&t.Bn(n)},e.prototype.zn=function(e){var t=this,r=t.Cn(e.fileName,!0);if(r)try{n.readDocPropsCoreFile(r,t.Kk)}catch(e){}},e.prototype.An=function(e){var t=this,r=t.Cn(e.fileName,!0);if(r)try{a.readDocPropsAppFile(r,t.Kk)}catch(e){}},e.prototype.Bn=function(e){var t=this,r=t.Cn(e.fileName,!0);if(r)try{l.readDocPropsCustomFile(r,t.Kk)}catch(e){}},e.prototype.yn=function(e){if(!e)throw Error("Incorrect file format.");if(this.Dn(e),this.En(e),this.Fn(e),this.Gn(e),this.Hn(e),this.In(e),this.Jn(e),0===this.un.length)throw Error("Incorrect file format.");this.Jk(e),this.Xh()},e.prototype.Dn=function(e){var t,r,i=e.Ee(o.RelationshipConstants.Sa);if(i||(i=e.Ee(o.RelationshipConstants.Ta)),i&&(t=this,r=t.Cn(i.fileName)))try{t.sharedString=s.readSharedString(r)}catch(e){}},e.prototype.En=function(e){var t,r,i=e.Ee(o.RelationshipConstants.Ua);if(i||(i=e.Ee(o.RelationshipConstants.Va)),i&&(t=this,r=t.Cn(i.fileName)))try{c.readTheme(r,this.Kk)}catch(e){}},e.prototype.Fn=function(e){var t,r,i,n,a,l,s,c,d,u=e.Fe(o.RelationshipConstants.Za);if(u)for(t=this,r=t.Kk,r.qn={},i=0;i0&&i&&i.length>0)for(n=r.row;n0&&e.writeAttributeString("year",t.year),t.month>=0&&t.month<12&&e.writeAttributeString("month",t.month),t.day>0&&t.day<32&&e.writeAttributeString("day",t.day),t.hour<24&&e.writeAttributeString("hour",t.hour),t.minute<60&&e.writeAttributeString("minute",t.minute),t.second<60&&e.writeAttributeString("second",t.second),e.writeAttributeString("dateTimeGrouping","day")})})})}function b(e,t){o.J(t.type)||e.writeLeafElement("dynamicFilter",function(){var r=s[t.type],i=t.conType,n=t.expectTypeId||0;6===i&&(r=c[n][t.type]),r&&"null"!==r?e.writeAttributeString("type",r):e.writeAttributeString("type","null"),"Q"!==r[0]&&"M"!==r[0]&&(o.J(t.value)||e.writeAttributeString("val",t.value),o.J(t.maxValue)||e.writeAttributeString("maxVal",t.maxValue))})}function h(e,t){o.J(t.type)||e.writeLeafElement("dynamicFilter",function(){var r=t.type,i=0;r&&"null"!==r?e.writeAttributeString("type",r):e.writeAttributeString("type","null"),o.J(t.value)||e.writeAttributeString("val",t.value),o.J(t.maxValue)||e.writeAttributeString("maxVal",t.maxValue)})}t.writePivotDynamicFilter=h;function p(e,t,r){o.J(t.filter1)&&o.J(t.filter2)||e.writeElement("customFilters",function(){t.and&&e.writeAttributeString("and","1")},function(){o.J(t.filter1)||e.writeLeafElement("customFilter",function(){var o=r[t.filter1.operator];"none"!==o&&e.writeAttributeString("operator",o),e.writeAttributeString("val",t.filter1.value)}),o.J(t.filter2)||e.writeLeafElement("customFilter",function(){var o=r[t.filter2.operator];"none"!==o&&e.writeAttributeString("operator",o),e.writeAttributeString("val",t.filter2.value)})})}t.writeCustomFilters=p;function m(e,t){e.writeElement("sortState",function(){e.writeAttributeString("ref",i.getRangeString([t.range]))},function(){e.writeLeafElement("sortCondition",function(){if(e.writeAttributeString("ref",i.getRangeString([t.range])),t.descending&&e.writeAttributeString("descending","1"),t.isBackColor!==l){var r=t.isBackColor?"cellColor":"fontColor";e.writeAttributeString("sortBy",r),e.writeAttributeString("dxfId",t.dxfid)}})})}t.writeSortInfo=m;function g(e,t,r){e.writeAttributeString("colId",t.autoFilterColumnId),o.J(t.hiddenButton)||e.writeAttributeString("hiddenButton",t.hiddenButton),r||o.J(t.showButton)||e.writeAttributeString("showButton",t.showButton)}function y(e,r){r&&r.range&&(r.filterColumns.length>0||r.sortInfo?e.writeElement("autoFilter",function(){e.writeAttributeString("ref",i.getRangeString([r.range]))},function(){r.filterColumns&&r.filterColumns.forEach(function(r){r.colorFilter||r.top10||r.filters||r.dynamicFilter||r.customFilters?e.writeElement("filterColumn",function(){g(e,r)},function(){o.J(r.colorFilter)?o.J(r.top10)?o.J(r.filters)?o.J(r.dynamicFilter)?o.J(r.customFilters)||p(e,r.customFilters,t.ComparisonOperators):b(e,r.dynamicFilter):f(e,r.filters):u(e,r.top10):d(e,r.colorFilter)}):e.writeLeafElement("filterColumn",function(){g(e,r)})}),r.sortInfo&&m(e,r.sortInfo)}):e.writeLeafElement("autoFilter",function(){e.writeAttributeString("ref",i.getRangeString([r.range]))}),r.sortInfo&&m(e,r.sortInfo))}t.writeAutoFilter=y;function S(e,r){r&&r.range&&(r.filterColumns.length>0||r.sortInfo?e.writeElement("autoFilter",function(){e.writeAttributeString("ref",r.range)},function(){r.filterColumns&&r.filterColumns.forEach(function(r){r.colorFilter||r.top10||r.filters||r.dynamicFilter||r.customFilters?e.writeElement("filterColumn",function(){g(e,r,!0)},function(){o.J(r.top10)?o.J(r.dynamicFilter)?o.J(r.customFilters)?o.J(r.filters)||f(e,r.filters):p(e,r.customFilters,t.PivotComparisonOperators):h(e,r.dynamicFilter):u(e,r.top10)}):e.writeLeafElement("filterColumn",function(){g(e,r,!0)})})}):e.writeLeafElement("autoFilter",function(){e.writeAttributeString("ref",i.getRangeString([r.range]))}))}t.writePivotAutoFilter=S;function C(e,t,r){var o=r.Cj(t);o&&y(e,o)}t.writeAutoFilterForSheet=C},"./src/xlsx-io/writer/chart-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,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;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/datamodel/chart-model.ts"),i=r("./src/datamodel/excel-style.ts"),n=i.UnitHelper.pixelToEMU,a=r("./src/xlsx-io/common/chart-helper.ts"),l=r("./src/common/common.ts"),s=r("./src/common/excel-types.ts"),c=r("./src/datamodel/excel-helper.ts"),d=l.Util.oa,u=null,f="val",b="name",h="type",p="prst",m="extLst",g="cNvPr",y="macro",S="effectLst",C="effectDag",w="fPublished",x="graphicFrame",A="ext",T="scrgbClr",v="srgbClr",k="hslClr",F="sysClr",R="schemeClr",E="prstClr",I="styleClr",L="noFill",D="solidFill",B="gradFill",P="blipFill",W="pattFill",_="grpFill",N="delete",M="scene3d",O="spPr",H="txPr",G="invertIfNegative",U="bubble3D",J="marker",z="grpSp",V="cxnSp",j="clrScheme",X="fontScheme",K="fmtScheme",q="layout",Y="pictureOptions",Q="order",Z="gapWidth",$="dLbls",ee="trendline",te="errBars",re="ser",oe="dropLines",ie="axId",ne="grouping",ae="varyColors",le="scaling",se="axPos",ce="majorGridlines",de="minorGridlines",ue="title",fe="numFmt",be="majorTickMark",he="minorTickMark",pe="tickLblPos",me="crossAx",ge="crosses",ye="style",Se="rotWithShape",Ce="cNvPicPr",we="nvPicPr",xe="cNvGraphicFramePr",Ae="AlternateContent",Te="clientData",ve="a",ke="cdr",Fe="r",Re="xdr",Ee="c",Ie="c15",Le="a14",De="c14",Be="mc",Pe="cx",We="cs",_e="c16r3",Ne="_xlchart.v1.",Me={},t.DrawingWriter={a:"http://schemas.openxmlformats.org/drawingml/2006/main",cdr:"http://schemas.openxmlformats.org/drawingml/2006/chartDrawing",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",xdr:"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing",c:"http://schemas.openxmlformats.org/drawingml/2006/chart",c15:"http://schemas.microsoft.com/office/drawing/2012/chart",a14:"http://schemas.microsoft.com/office/drawing/2010/main",c14:"http://schemas.microsoft.com/office/drawing/2007/8/2/chart",c16:"http://schemas.microsoft.com/office/drawing/2017/03/chart",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex"};function Oe(e){return l.J(e)||""===e}function He(e,t,r){e.writeLeafElement(t+":"+r)}function Ge(e,t,r,o,i,n,a,s){e.writeLeafElement(t+":"+r,function(){l.J(o)||!l.J(n)&&o===n||(s&&(o=s(o)),a&&(o=a[o]),e.writeAttributeString(i,o))})}function Ue(e,t,r,o,i,n,a){e.writeElement(t+":"+r,function(){var t=o[a];l.J(t)||i(e,n,a,t)})}function Je(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.sqref)||e.writeElementString("c15:sqref",o.sqref)})}function ze(e,t,r,o,i,n){e.writeLeafElement(t+":"+r,function(){var t=o[i],r=o[n];l.J(t)||e.writeAttributeString(i,t),l.J(r)||e.writeAttributeString(n,r)})}function Ve(e,t){if(!l.J(t)){var r=t.scrgbClr,o=t.srgbClr,i=t.hslClr,n=t.sysClr,a=t.schemeClr,s=t.prstClr,c=t.styleClr;l.J(r)?l.J(o)?l.J(i)?l.J(n)?l.J(a)?l.J(s)?l.J(c)||br(e,We,I,c):fr(e,ve,E,s):ur(e,ve,R,a):dr(e,ve,F,n):cr(e,ve,k,i):sr(e,ve,v,o):lr(e,ve,T,r)}}function je(e,t){var r=t.noFill,o=t.solidFill,i=t.gradFill,n=t.blipFill,a=t.pattFill,s=t.grpFill;l.J(r)?l.J(o)?l.J(i)?l.J(n)?l.J(a)?l.J(s)||Pa(e,ve,_):Ba(e,ve,W,a):Da(e,ve,P,n):Fa(e,ve,B,i):xr(e,ve,D,o):xa(e,ve,L)}function Xe(e,t,r,o){e.writeElement(t+":"+r,function(){o.noFill?Ze(o.noFill,function(){xa(e,ve,L)}):o.solidFill?Ze(o.solidFill,function(t){xr(e,ve,D,t)}):o.gradFill?Ze(o.gradFill,function(t){Fa(e,ve,B,t)}):o.blipFill?Ze(o.blipFill,function(t){Da(e,ve,P,t)}):o.pattFill?Ze(o.pattFill,function(t){Ba(e,ve,W,t)}):o.grpFill&&Ze(o.grpFill,function(){Pa(e,ve,_)})})}function Ke(e,t){Ze(t.tint,function(t){Qt(e,ve,"tint",t)}),Ze(t.shade,function(t){Qt(e,ve,"shade",t)}),Ze(t.comp,function(){rr(e,ve,"comp")}),Ze(t.inv,function(){or(e,ve,"inv")}),Ze(t.gray,function(){ir(e,ve,"gray")}),Ze(t.alpha,function(t){Qt(e,ve,"alpha",t)}),Ze(t.alphaMod,function(t){qt(e,ve,"alphaMod",t)}),Ze(t.alphaOff,function(t){Yt(e,ve,"alphaOff",t)}),Ze(t.hue,function(t){Xt(e,ve,"hue",t)}),Ze(t.hueMod,function(t){qt(e,ve,"hueMod",t)}),Ze(t.hueOff,function(t){jt(e,ve,"hueOff",t)}),Ze(t.sat,function(t){Kt(e,ve,"sat",t)}),Ze(t.satMod,function(t){Kt(e,ve,"satMod",t)}),Ze(t.satOff,function(t){Kt(e,ve,"satOff",t)}),Ze(t.lum,function(t){Kt(e,ve,"lum",t)}),Ze(t.lumMod,function(t){Kt(e,ve,"lumMod",t)}),Ze(t.lumOff,function(t){Kt(e,ve,"lumOff",t)}),Ze(t.red,function(t){Kt(e,ve,"red",t)}),Ze(t.redMod,function(t){Kt(e,ve,"redMod",t)}),Ze(t.redOff,function(t){Kt(e,ve,"redOff",t)}),Ze(t.green,function(t){Kt(e,ve,"green",t)}),Ze(t.greenMod,function(t){Kt(e,ve,"greenMod",t)}),Ze(t.greenOff,function(t){Kt(e,ve,"greenOff",t)}),Ze(t.blue,function(t){Kt(e,ve,"blue",t)}),Ze(t.blueMod,function(t){Kt(e,ve,"blueMod",t)}),Ze(t.blueOff,function(t){Kt(e,ve,"blueOff",t)}),Ze(t.gamma,function(){nr(e,ve,"gamma")}),Ze(t.invGamma,function(){ar(e,ve,"invGamma")})}function qe(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.wireframe,r=o.bandFmts,i=o.extLst;l.J(t)||kr(e,Ee,"wireframe",t),Ze(o.ser,function(t){Jo(e,Ee,re,t)}),l.J(r)||bi(e,Ee,"bandFmts",r),Ze(o.axId,function(t){Er(e,Ee,ie,t)}),l.J(i)||Dr(e,Ee,m,i)})}function Ye(e,t,r,o,i){e.writeElement(t+":"+r,function(){var t=o.cNvPr;l.J(t)||Mn(e,i,g,t),Jn(e,i,xe)})}function Qe(e,t){var r=t.axId,o=t.scaling,i=t.delete,n=t.axPos,a=t.majorGridlines,s=t.minorGridlines,c=t.title,d=t.numFmt,u=t.majorTickMark,f=t.minorTickMark,b=t.tickLblPos,h=t.spPr,p=t.txPr,m=t.crossAx,g=t.crosses,y=t.crossesAt;l.J(r)||Er(e,Ee,ie,r),l.J(o)||Di(e,Ee,le,o),l.J(i)||kr(e,Ee,N,i),l.J(n)||mi(e,Ee,se,n),l.J(a)||Vo(e,Ee,ce,a),l.J(s)||Vo(e,Ee,de,s),l.J(c)||Qr(e,Ee,ue,c),l.J(d)||mo(e,Ee,fe,d),l.J(u)||Si(e,Ee,be,u),l.J(f)||Si(e,Ee,he,f),l.J(b)||Ci(e,Ee,pe,b),l.J(h)||Sl(e,Ee,O,h),l.J(p)||Cs(e,Ee,H,p),l.J(m)||Er(e,Ee,me,m),l.J(g)||gi(e,Ee,ge,g),l.J(y)||Fr(e,Ee,"crossesAt",y)}function Ze(e,t){var r,o,i;if(!l.J(e))for(r=0,o=e.length;r0)for(var r=0;r0)for(var r=0;r0)for(var r=0;r0)for(r=0;r0)for(r=0;r0)for(r=0;r0)for(r=0;r0)for(r=0;r0)for(r=0;r0&&(i.chart.plotArea.plotAreaRegion.series=Me.TranstateSeriesDataToId(s,n,a,c)),e.writeElement(r+":"+o,function(){e.writeAttributeString("xmlns:a",t.DrawingWriter.a),e.writeAttributeString("xmlns:r",t.DrawingWriter.r),e.writeAttributeString("xmlns:cx",Me.cx)},function(){var t=i.chartData||{};t.data=c,l.J(t)||Me.WriteCT_ChartData(e,r,"chartData","",t),l.J(i.chart)||Me.WriteCT_Chart(e,r,"chart","",i.chart),l.J(i.spPr)||Sl(e,r,"spPr",i.spPr),l.J(i.txPr)||Cs(e,r,"txPr",i.txPr),l.J(i.clrMapOvr)||cn(e,r,"clrMapOvr",i.clrMapOvr),l.J(i.fmtOvrs)||Me.WriteCT_FormatOverrides(e,r,"fmtOvrs","",i.fmtOvrs),l.J(i.printSettings)||Me.WriteCT_PrintSettings(e,r,"printSettings","",i.printSettings),l.J(i.extLst)||Me.WriteCT_ExtensionList(e,r,"extLst","",i.extLst)})},Me.TranstateSeriesDataToId=function(e,t,r,i){var n,a,s,c,d,u,f,b,h=Me.TranslateNameSpace(t);for(n=0;n0?r[r.length-1].name:null,u=this.CreateNameByLastName(b),r.push({name:u,formula:d.numDim,hidden:!0}),f.id=n,f.numDim=[],e[0]&&17===e[0].layoutId?f.numDim.push({type:o.Charts.ST_NumericDimensionType.val,f:{formula:u,dir:d.numDimDir}}):f.numDim.push({type:o.Charts.ST_NumericDimensionType.size,f:{formula:u,dir:d.numDimDir}})),d.strDim&&(b=r.length>0?r[r.length-1].name:null,u=this.CreateNameByLastName(b),r.push({name:u,formula:d.strDim,hidden:!0}),f.id=f.id||n,f.strDim=[],f.strDim.push({type:o.Charts.ST_StringDimensionType.cat,f:{formula:u,dir:d.strDimDir}})),l.J(f.id)||i.push(f);return e},Me.CreateNameByLastName=function(e){e||(e="0"),e=e.replace(Ne,"");var t=parseInt(e,10)+1;return Ne+t},Me.TranslateNameSpace=function(e){var t,r,o,i={};for(t=0;t0)for(var t=0;tr+3&&(t=Zt(i)),e.writeAttributeString(f,t))})}function Zt(e){var t,r=e.toFixed(2),o=r.substr(-2);return"0"===o[1]&&(t=1,"0"===o[0]&&(t=3),r=r.substr(0,r.length-t)),r}t.DrawingWriter.WriteCT_PositiveFixedPercentage=Qt;function $t(e,t,r,o){ze(e,t,r,o,"n","d")}t.DrawingWriter.WriteCT_Ratio=$t;function er(e,t,r,o,i){e.writeLeafElement(t+":"+r,function(){l.J(i)&&(i=!0);var t=o.x,r=o.y;l.J(t)||(i&&(t=n(t)),e.writeAttributeString("x",t)),l.J(r)||(i&&(r=n(r)),e.writeAttributeString("y",r))})}t.DrawingWriter.WriteCT_Point2D=er;function tr(e,t,r,o,i){e.writeLeafElement(t+":"+r,function(){l.J(i)&&(i=!0);var t=o.cx,r=o.cy;l.J(t)||(i&&(t=n(t)),e.writeAttributeString("cx",t)),l.J(r)||(i&&(r=n(r)),e.writeAttributeString("cy",r))})}t.DrawingWriter.WriteCT_PositiveSize2D=tr;function rr(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_ComplementTransform=rr;function or(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_InverseTransform=or;function ir(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_GrayscaleTransform=ir;function nr(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_GammaTransform=nr;function ar(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_InverseGammaTransform=ar;function lr(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.r)||e.writeAttributeString(Fe,o.r),l.J(o.g)||e.writeAttributeString("g",o.g),l.J(o.b)||e.writeAttributeString("b",o.b)},function(){Ke(e,o)})}t.DrawingWriter.WriteCT_ScRgbColor=lr;function sr(e,t,r,o){e.writeElement(t+":"+r,function(){var t,r=o.val;l.J(r)||(t="string"==typeof r?r:Gt(r),e.writeAttributeString(f,t))},function(){Ke(e,o)})}t.DrawingWriter.WriteCT_SRgbColor=sr;function cr(e,t,r,o){e.writeElement(t+":"+r,function(){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(){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=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;t0)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(){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=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/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.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;t0)for(t=0;t0&&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/g,">").replace(/\')}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'),t&&e.push('\t\t'),r&&e.push('\t\t"),e.push("\t")}function l(e,t,r,o){if(t&&e.push('\t '),r){var i=' ';o&&(i+=' '),e.push("\t"+i+" ")}}function s(e){var t=[],r=e>0,o=e>1,i=e>2;return t.push(''),t.push(" '),o&&t.push('\t '+(i?' ':"")+" "),t.push(""),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","valueNotBetwee"],["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;r0&&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;r0&&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;t0&&e.writeElement("groupItems",function(){e.writeAttributeString("count",i.length)},function(){for(var t=0;t0&&e.writeElement("cacheHierarchies",function(){e.writeAttributeString("count",t.cacheHierarchies.length)},function(){for(var r=0;r=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;r0&&e.writeElement("groupLevels",function(){e.writeAttributeString("count",t.groupLevels.length)},function(){for(var r=0;r0&&e.writeElement("groups",function(){e.writeAttributeString("count",t.groups.length)},function(){var r,o;for(r=0;r0&&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;r0&&e.writeElement("kpis",function(){e.writeAttributeString("count",t.KPIs.length)},function(){var r,o;for(r=0;r0&&e.writeElement("entries",function(){e.writeAttributeString("count",t.entries.length)},function(){for(r=0;r0&&e.writeElement("sets",function(){e.writeAttributeString("count",t.sets.length)},function(){for(r=0;r0&&e.writeElement("queryCache",function(){e.writeAttributeString("count",t.queryCache.length)},function(){for(r=0;r0&&e.writeElement("serverFormats",function(){e.writeAttributeString("count",t.serverFormats.length)},function(){for(r=0;r0&&e.writeElement("tpls",function(){e.writeAttributeString("c",t.tpls.length)},function(){for(var r=0;r=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=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;t0&&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=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;r0?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),Re(r,t),Ee(r,t),Le(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;r0?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(){De(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=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=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;r0||!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;o0&&e.writeElement("colItems",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t0&&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;r0&&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;r0&&e.writeElement("dataFields",function(){e.writeAttributeString("count",t.dataFields.length)},function(){for(var r=0;r0&&e.writeElement("formats",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t=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;t0&&e.writeElement("pivotAreas",function(){e.writeAttributeString("count",t.pivotAreas.length)},function(){for(var r=0;r0&&e.writeElement("chartFormats",function(){e.writeAttributeString("count",t.chartFormats.length)},function(){for(var r=0;r=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;r0&&e.writeElement("mps",function(){e.writeAttributeString("count",t.memberProperties.length)},function(){for(r=0;r0&&e.writeElement("members",function(){e.writeAttributeString("count",t.members.length)},function(){for(r=0;r0&&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=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(){if(!o.isNullOrUndefined(i.autoFilter)){var t=e.Aj(i,c);l.writePivotAutoFilter(r,t)}})}function Re(e,t){t.rowHierarchies&&t.rowHierarchies.length>0&&e.writeElement("rowHierarchiesUsage",function(){e.writeAttributeString("count",t.rowHierarchies.length)},function(){for(var r=0;r0&&e.writeElement("rowHierarchiesUsage",function(){e.writeAttributeString("count",t.colHierarchies.length)},function(){for(var r=0;r1&&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[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;t0&&(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;r0&&(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;u32767&&(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;r0&&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;o0&&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;e0?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=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;i0&&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;r0,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")}},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=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;t0)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;n0&&(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;r0&&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,">"))})};for(t=0;t0&&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",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=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;l1||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=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=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=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;ry&&(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;t0&&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;t0),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;e0&&S.forEach(function(e){y++,e.id=y}),n={},a={},l=0;l0&&(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}}}')),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;n0&&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.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="",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=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=h)return!1;switch(t[o]){case"elementStarting":for(i=!1;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"===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"!==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"===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=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=f)return!1;switch(t[r]){case"elementStarting":for(o=!1;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"!==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"===e)return!0}}},e.prototype.moveToNextAttribute=function(){for(var e,t,r=this,o=r.zp;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.op0&&(" "===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;ee.size-2};var i=function(){function e(){this.xml=new o}return e.prototype.writeDocument=function(e){this.xml.addString('\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.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.prototype.getXmlString=function(){return this.xml.getAllString()},e}();t.XmlWriter=i}})}); \ No newline at end of file +break;case"optimizeMemory":t.optimizeMemory=e.readContentAsBoolean();break;case"refreshedBy":t.refreshedBy=e.readContentAsString();break;case"refreshedDate":t.refreshedDate=a.DateTimeHelper.Je(e.readContentAsDouble());break;case"refreshedVersion":t.refreshedVersion=e.readContentAsInt();break;case"refreshOnLoad":t.refreshOnLoad=e.readContentAsBoolean();break;case"saveData":t.saveData=e.readContentAsBoolean();break;case"supportAdvancedDrill":t.supportAdvancedDrill=e.readContentAsBoolean();break;case"supportSubquery":t.supportSubquery=e.readContentAsBoolean();break;case"tupleCache":t.tupleCache=e.readContentAsBoolean();break;case"upgradeOnRefresh":t.upgradeOnRefresh=e.readContentAsBoolean()}}function T(e,t){for(;e.moveToNextAttribute();){var r=e.readAttributeNameAsString();switch(r){case"ref":t.ref=e.readContentAsString();break;case"sheet":t.sheet=e.readContentAsString();break;case"name":t.sourceName=e.readContentAsString()}}}function v(e,t){for(;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"type":t.sourceType=e.readContentAsString();break;case"connectionId":t.sourceConnectionId=e.readContentAsInt()}var r=e.depth;if(3!==e.elementType)for(;e.read()&&!(e.depth<=r);)"worksheetSource"===e.name()&&T(e,t)}function k(e,t){var r,o,i,a;for(t.fields=[],r=e.depth;e.read()&&!(e.depth<=r);){for(o={};e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"caption":o.caption=e.readContentAsString();break;case"databaseField":o.databaseField=e.readContentAsBoolean();break;case"formula":o.formula=g(m(e.readContentAsString()));break;case"hierarchy":o.hierarchy=e.readContentAsInt();break;case"level":o.level=e.readContentAsInt();break;case"mappingCount":o.mappingCount=e.readContentAsInt();break;case"memberPropertyField":o.memberPropertyField=e.readContentAsBoolean();break;case"name":o.name=m(g(e.readContentAsString()));break;case"numFmtId":o.numFmtId=e.readContentAsInt();break;case"propertyName":o.propertyName=e.readContentAsString();break;case"serverField":o.serverField=e.readContentAsBoolean();break;case"sqlType":o.sqlType=e.readContentAsInt();break;case"uniqueList":o.uniqueList=e.readContentAsBoolean()}if(3!==e.elementType)for(i=e.depth;e.read()&&!(e.depth<=i);)switch(e.name()){case"sharedItems":E(e,o),I(e,o);break;case"fieldGroup":a={},F(e,a),n.isNullOrUndefined(a.base)||R(e,a),o.fieldGroup=o.fieldGroup||a;break;case"mpMap":for(o.mpMap=[];e.moveToNextAttribute();)"v"===e.readAttributeNameAsString()&&o.mpMap.push(e.readContentAsInt())}t.fields.push(o)}}function F(e,t){for(;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"par":t.parent=e.readContentAsInt();break;case"base":t.base=e.readContentAsInt()}}function R(e,t){for(var r,o,i,n=e.depth;e.read()&&!(e.depth<=n);)if(r=e.name(),"rangePr"===r)for(t.hasRangeGroup=!0;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"autoStart":t.autoStart=e.readContentAsBoolean();break;case"autoEnd":t.autoEnd=e.readContentAsBoolean();break;case"groupBy":t.groupBy=e.readContentAsString();break;case"startNum":t.startNum=e.readContentAsDouble();break;case"endNum":t.endNum=e.readContentAsDouble();break;case"startDate":t.startDate=Date.parse(e.readContentAsString());break;case"endDate":t.endDate=Date.parse(e.readContentAsString());break;case"groupInterval":t.groupInterval=e.readContentAsDouble()}else if("discretePr"===r){for(t.discreteGroup=[],o=e.depth;e.read()&&!(e.depth<=o);)if("x"===e.name())for(;e.moveToNextAttribute();)"v"===e.readAttributeNameAsString()&&t.discreteGroup.push(e.readContentAsInt())}else if("groupItems"===r)for(t.groupItems=[],i=e.depth;e.read()&&!(e.depth<=i);)t.groupItems.push(L(e))}function E(e,t){for(;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"containsBlank":t.containsBlank=e.readContentAsBoolean();break;case"containsDate":t.containsDate=e.readContentAsBoolean();break;case"containsInteger":t.containsInteger=e.readContentAsBoolean();break;case"containsMixedTypes":t.containsMixedTypes=e.readContentAsBoolean();break;case"containsNonDate":t.containsNonDate=e.readContentAsBoolean();break;case"containsNumber":t.containsNumber=e.readContentAsBoolean();break;case"containsSemiMixedTypes":t.containsSemiMixedTypes=e.readContentAsBoolean();break;case"containsString":t.containsString=e.readContentAsBoolean();break;case"longText":t.longText=e.readContentAsBoolean();break;case"maxDate":t.maxDate=Date.parse(e.readContentAsString());break;case"maxValue":t.maxValue=e.readContentAsDouble();break;case"minDate":t.minDate=Date.parse(e.readContentAsString());break;case"minValue":t.minValue=e.readContentAsDouble()}}function I(e,t){t.entities=[];var r=e.depth;if(3!==e.elementType)for(;e.read()&&!(e.depth<=r);)t.entities.push(L(e))}function L(e){var t={},r=e.name();switch(r){case"b":t.type="b";break;case"d":t.type="d";break;case"e":t.type="e";break;case"m":t.type="m";break;case"n":t.type="n";break;case"s":t.type="s"}for(;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"c":t.caption=e.readContentAsString();break;case"cp":t.propertyCount=e.readContentAsInt();break;case"f":t.isCalculatedItem=e.readContentAsBoolean();break;case"u":t.isUnusedItem=e.readContentAsBoolean();break;case"b":t.isBold=e.readContentAsBoolean();break;case"bc":t.backgroundColor=e.readContentAsInt();break;case"fc":t.foregroundColor=e.readContentAsInt();break;case"i":t.isItalic=e.readContentAsBoolean();break;case"in":t.formatIndex=e.readContentAsInt();break;case"st":t.isStrikethrough=e.readContentAsBoolean();break;case"un":t.isUnderline=e.readContentAsBoolean();break;case"v":"b"===r?t.value=e.readContentAsBoolean():"d"===r?t.value=g(e.readContentAsString()):"e"===r?t.value=e.readContentAsError():"n"===r?t.value=e.readContentAsDouble():"s"===r?t.value=e.readContentAsString():"x"===r&&(t.value=e.readContentAsString())}return t}function D(e,t){var r,o;for(t.cacheHierarchies=[];e.read();){for(r={fieldsUsages:[],groupLevels:[]};e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"uniqueName":r.uniqueName=e.readContentAsString();break;case"caption":r.caption=e.readContentAsString();break;case"measure":r.measure=e.readContentAsBoolean();break;case"set":r.set=e.readContentAsBoolean();break;case"parentSet":r.parentSet=e.readContentAsInt();break;case"iconSet":r.iconSet=e.readContentAsInt();break;case"attribute":r.attribute=e.readContentAsBoolean();break;case"time":r.time=e.readContentAsBoolean();break;case"keyAttribute":r.keyAttribute=e.readContentAsBoolean();break;case"defaultMemberUniqueName":r.defaultMemberUniqueName=e.readContentAsString();break;case"allUniqueName":r.allUniqueName=e.readContentAsString();break;case"allCaption":r.allCaption=e.readContentAsString();break;case"dimensionUniqueName":r.dimensionUniqueName=e.readContentAsString();break;case"displayFolder":r.displayFolder=e.readContentAsString();break;case"measureGroup":r.measureGroup=e.readContentAsString();break;case"measures":r.measures=e.readContentAsBoolean();break;case"count":r.count=e.readContentAsInt();break;case"oneField":r.oneField=e.readContentAsBoolean();break;case"memberValueDatatype":r.memberValueDatatype=e.readContentAsInt();break;case"unbalanced":r.unbalanced=e.readContentAsBoolean();break;case"unbalancedGroup":r.unbalancedGroup=e.readContentAsBoolean();break;case"hidden":r.hidden=e.readContentAsBoolean()}for(o=e.depth;e.read()&&!(e.depth<=o);)switch(e.name()){case"fieldUsage":r.fieldsUsages.push(e.readContentAsInt());break;case"groupLevel":r.groupLevels.push(B(e))}t.cacheHierarchies.push(r)}}function B(e){for(var t,r={};e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"uniqueName":r.uniqueName=e.readContentAsString();break;case"caption":r.caption=e.readContentAsString();break;case"user":r.user=e.readContentAsBoolean();break;case"customRollUp":r.customRollUp=e.readContentAsBoolean()}for(t=e.depth;e.read()&&!(e.depth<=t);)e.name()&&r.groups.push(P(e));return r}function P(e){for(var t,r,o={groupMembers:[]};e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"name":o.Name=e.readContentAsString();break;case"uniqueName":o.UniqueName=e.readContentAsString();break;case"caption":o.Caption=e.readContentAsString();break;case"uniqueParent":o.UniqueParent=e.readContentAsString();break;case"id":o.Id=e.readContentAsInt()}for(t=e.depth;e.read()&&!(e.depth<=t);)if("groupMember"===e.name()){for(r={};e.moveToNextAttribute();)switch(e.name()){case"uniqueName":r.uniqueName=e.readContentAsString();break;case"group":r.group=e.readContentAsBoolean()}o.groupMembers.push(r)}return o}function W(e,t){for(t.KPIs=[];e.moveToNextAttribute();){var r={};switch(e.readAttributeNameAsString()){case"uniqueName":r.uniqueName=e.readContentAsString();break;case"caption":r.caption=e.readContentAsString();break;case"displayFolder":r.displayFolder=e.readContentAsString();break;case"measureGroup":r.measureGroup=e.readContentAsString();break;case"parent":r.parent=e.readContentAsString();break;case"value":r.value=e.readContentAsString();break;case"goal":r.goal=e.readContentAsString();break;case"status":r.status=e.readContentAsString();break;case"trend":r.trend=e.readContentAsString();break;case"weight":r.weight=e.readContentAsString();break;case"time":r.time=e.readContentAsString()}t.KPIs.push(r)}}y=function(){function e(){}return e.readPivotCacheSet=function(e){},e.readPivotCacheQuery=function(e){},e.readPivotCacheServerFormat=function(e){},e}();function _(e,t){for(var r,o={entries:[]};e.read();)switch(e.name()){case"entries":for(r=e.depth;e.read()&&e.depth>r;)o.entries.push(L(e));break;case"set":break;case"query":break;case"serverFormats":}t.pivotCacheTupleCache=o}function N(e,t){var r,o={};for(t.calculatedItems=t.calculatedItems||[];e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"field":o.field=e.readContentAsInt();break;case"formula":o.formula=m(e.readContentAsString())}for(r=e.depth;e.read()&&!(e.depth<=r);)"pivotArea"===e.name()&&(o.pivotArea=ce(e));t.calculatedItems.push(o)}function M(e,t){for(var r={};e.moveToNextAttribute();)switch(e.name()){case"name":r.name=m(g(e.readContentAsString()));break;case"mdx":r.mdx=e.readContentAsString();break;case"memberName":r.memberName=e.readContentAsString();break;case"hierarchy":r.hierarchy=e.readContentAsString();break;case"parent":r.parent=e.readContentAsString();break;case"solveOrder":r.solveOrder=e.readContentAsInt();break;case"set":r.set=e.readContentAsBoolean()}t.calculatedMembers.push(r)}function O(e,t){for(var r={};e.moveToNextAttribute();)switch(e.name()){case"measure":r.measure=e.readContentAsBoolean();break;case"name":r.name=m(g(e.readContentAsString()));break;case"uniqueName":r.uniqueName=e.readContentAsString();break;case"caption":r.caption=e.readContentAsString()}t.dimensions.push(r)}function H(e,t){for(var r={};e.moveToNextAttribute();)switch(e.name()){case"name":r.name=m(g(e.readContentAsString()));break;case"caption":r.caption=e.readContentAsString()}t.measureGroups.push(r)}function G(e,t){for(var r={};e.moveToNextAttribute();)switch(e.name()){case"measureGroup":r.name=e.readContentAsInt();break;case"dimension":r.caption=e.readContentAsInt()}t.measureDimensionMap.push(r)}function U(e,t){for(var r,o=e.depth;e.read()&&!(e.depth<=o);)if("ext"===e.name())for(r=e.depth;e.read()&&!(e.depth<=r);)if("x14:pivotCacheDefinition"===e.name())for(;e.moveToNextAttribute();)"pivotCacheId"===e.readAttributeNameAsString()&&(t.pivotCacheId=e.readContentAsInt())}function J(e,t){var r,n,a,l,s,c,d=new i.XmlReader;for(d.setXml(e),r=[];d.read();)if(0===d.depth&&2!==d.elementType&&"pivotCacheRecords"===d.name())for(n=d.depth;d.read()&&!(d.depth<=n);)if("r"===d.name()){for(a=[],l=d.depth;d.read()&&!(d.depth<=l);){for(s=d.name(),c={};d.moveToNextAttribute();)switch(d.readAttributeNameAsString()){case"v":"b"===s?(c.type=o.PivotSharedItemType.B,c.value=d.readContentAsBoolean()):"d"===s?(c.type=o.PivotSharedItemType.D,c.value=g(d.readContentAsString())):"e"===s?(c.type=o.PivotSharedItemType.E,c.value=d.readContentAsError()):"m"===s?(c.type=o.PivotSharedItemType.M,c.value=null):"n"===s?(c.type=o.PivotSharedItemType.N,c.value=d.readContentAsDouble()):"s"===s?(c.type=o.PivotSharedItemType.S,c.value=g(d.readContentAsString())):"x"===s&&(c.type=o.PivotSharedItemType.X,c.value=d.readContentAsInt());break;case"c":c.caption=d.readContentAsString();break;case"cp":c.propertyCount=d.readContentAsInt();break;case"f":c.isCalculatedItem=d.readContentAsBoolean();break;case"u":c.isUnusedItem=d.readContentAsBoolean();break;case"b":c.isBold=d.readContentAsBoolean();break;case"bc":c.backgroundColor=d.readContentAsInt();break;case"fc":c.foregroundColor=d.readContentAsInt();break;case"i":c.isItalic=d.readContentAsBoolean();break;case"in":c.formatIndex=d.readContentAsInt();break;case"st":c.isStrikethrough=d.readContentAsBoolean();break;case"un":c.isUnderline=d.readContentAsBoolean()}a.push(c)}r.push(a)}t.pivotCacheRecords=r}t.readPivotCacheRecords=J;function z(e,t,r,i){var n,a,l,s,c,d=[],u=[];if(e)for(n in e)"count"!==n&&(a=e[n],a&&(l=a.fileType,l===o.RelationshipConstants.Ya&&d.push(a)));for(s=0;s-1&&!n.isNullOrUndefined(u[e])?{conType:0,compareType:u[e]}:e.indexOf("value")>-1&&!n.isNullOrUndefined(f[e])?{conType:2,compareType:f[e]}:n.isNullOrUndefined(b[e])?n.isNullOrUndefined(h[e])?void 0:{conType:3,compareType:h[e]}:{conType:1,compareType:b[e]}}function ie(e,t,r){var o,i=e.depth;for(n.isNullOrUndefined(r)&&(r=[]),n.isNullOrUndefined(t.pivotTableConditionFormats)&&(t.pivotTableConditionFormats=[]);e.read()&&!(e.depth<=i);)o=e.name(),"conditionalFormat"!==o&&"x14:conditionalFormat"!==o||ne(e,t,r)}function ne(e,t,r){for(var o,i={pivotAreas:[]},n=function(){switch(e.readAttributeNameAsString()){case"scope":i.scope=e.readContentAsString();break;case"type":i.type=e.readContentAsString();break;case"priority":var t=e.readContentAsInt();r.forEach(function(e){e.priority===t&&(i.rule=e)})}};e.moveToNextAttribute();)n();for(o=e.depth;e.read()&&!(e.depth<=o);)"pivotArea"===e.name()&&i.pivotAreas.push(ce(e));t.pivotTableConditionFormats.push(i)}function ae(e,t){for(var r,o={};e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"chart":o.chart=e.readContentAsInt();break;case"format":o.format=e.readContentAsInt();break;case"series":o.series=e.readContentAsBoolean()}for(r=e.depth;e.read()&&!(e.depth<=r);)"pivotArea"===e.name()&&(o.pivotArea=ce(e));t.chartFormats.push(o)}function le(e,t){for(;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"ref":t.ref=e.readContentAsString();break;case"firstHeaderRow":t.firstHeaderRow=e.readContentAsInt();break;case"firstDataRow":t.firstDataRow=e.readContentAsInt();break;case"firstDataCol":t.firstDataCol=e.readContentAsInt();break;case"rowPageCount":t.rowPageCount=e.readContentAsInt();break;case"colPageCount":t.colPageCount=e.readContentAsInt()}}function se(e,t){var r,o,i,n,a,l,s,d={items:[]};for(d.isOnRead=!0,d.showAll=!0,d.defaultSubtotal=!0;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"allDrilled":d.allDrilled=e.readContentAsBoolean();break;case"autoShow":d.autoShow=e.readContentAsBoolean();break;case"avgSubtotal":d.avgSubtotal=e.readContentAsBoolean();break;case"axis":d.axis=e.readContentAsString();break;case"compact":d.compact=e.readContentAsBoolean();break;case"countASubtotal":d.countASubtotal=e.readContentAsBoolean();break;case"countSubtotal":d.countSubtotal=e.readContentAsBoolean();break;case"dataField":d.dataField=e.readContentAsBoolean();break;case"dataSourceSort":d.dataSourceSort=e.readContentAsBoolean();break;case"defaultAttributeDrillState":d.defaultAttributeDrillState=e.readContentAsBoolean();break;case"defaultSubtotal":d.defaultSubtotal=e.readContentAsBoolean();break;case"dragOff":d.dragOff=e.readContentAsBoolean();break;case"dragToCol":d.dragToCol=e.readContentAsBoolean();break;case"dragToData":d.dragToData=e.readContentAsBoolean();break;case"dragToPage":d.dragToPage=e.readContentAsBoolean();break;case"dragToRow":d.dragToRow=e.readContentAsBoolean();break;case"hiddenLevel":d.hiddenLevel=e.readContentAsBoolean();break;case"hideNewItems":d.hideNewItems=e.readContentAsBoolean();break;case"includeNewItemsInFilter":d.includeNewItemsInFilter=e.readContentAsBoolean();break;case"insertBlankRow":d.insertBlankRow=e.readContentAsBoolean();break;case"insertPageBreak":d.insertPageBreak=e.readContentAsBoolean();break;case"itemPageCount":d.itemPageCount=e.readContentAsInt();break;case"maxSubtotal":d.maxSubtotal=e.readContentAsBoolean();break;case"measureFilter":d.measureFilter=e.readContentAsBoolean();break;case"minSubtotal":d.minSubtotal=e.readContentAsBoolean();break;case"multipleItemSelectionAllowed":d.multipleItemSelectionAllowed=e.readContentAsBoolean();break;case"name":d.name=m(g(e.readContentAsString()));break;case"nonAutoSortDefault":d.nonAutoSortDefault=e.readContentAsBoolean();break;case"numFmtId":r=e.readContentAsInt(),o=c.ExtendedNumberFormatHelper.builtInNumberFomrat(),t.gn&&t.gn[r]?d.numberFormat=c.ExtendedNumberFormatHelper.getFormatCode({numberFormat:t.gn[r]}):o[r]&&(d.numberFormat=o[r]);break;case"outline":d.outline=e.readContentAsBoolean();break;case"productSubtotal":d.productSubtotal=e.readContentAsBoolean();break;case"rankBy":d.rankBy=e.readContentAsInt();break;case"serverField":d.serverField=e.readContentAsBoolean();break;case"showAll":d.showAll=e.readContentAsBoolean();break;case"showDropDowns":d.showDropDowns=e.readContentAsBoolean();break;case"showPropAsCaption":d.showPropAsCaption=e.readContentAsBoolean();break;case"showPropCell":d.showPropCell=e.readContentAsBoolean();break;case"showPropTip":d.showPropTip=e.readContentAsBoolean();break;case"sortType":d.sortType=e.readContentAsString();break;case"stdDevPSubtotal":d.stdDevPSubtotal=e.readContentAsBoolean();break;case"stdDevSubtotal":d.stdDevSubtotal=e.readContentAsBoolean();break;case"subtotalCaption":d.subtotalCaption=e.readContentAsString();break;case"subtotalTop":d.subtotalTop=e.readContentAsBoolean();break;case"sumSubtotal":d.sumSubtotal=e.readContentAsBoolean();break;case"topAutoShow":d.topAutoShow=e.readContentAsBoolean();break;case"uniqueMemberProperty":d.uniqueMemberProperty=e.readContentAsString();break;case"varPSubtotal":d.varPSubtotal=e.readContentAsBoolean();break;case"varSubtotal":d.varSubtotal=e.readContentAsBoolean()}if(3===e.elementType)return d.isOnRead=!1,d;for(i=e.depth;e.read()&&!(e.depth<=i);)if(n=e.name(),"items"===n){for(a=e.depth;e.read()&&!(e.depth<=a);){for(l={};e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"c":l.childItems=e.readContentAsBoolean();break;case"d":l.expanded=e.readContentAsBoolean();break;case"e":l.drillAcross=e.readContentAsBoolean();break;case"f":l.calculatedMember=e.readContentAsBoolean();break;case"h":l.hidden=e.readContentAsBoolean();break;case"m":l.missing=e.readContentAsBoolean();break;case"n":l.caption=e.readContentAsString();break;case"s":l.character=e.readContentAsBoolean();break;case"sd":l.collapse=!e.readContentAsBoolean();break;case"t":l.type=e.readContentAsString();break;case"x":l.indexValue=e.readContentAsInt()}d.items.push(l)}d.items.length>0&&(d.isShared=!0)}else if("autoSortScope"===n)for(s=e.depth;e.read()&&!(e.depth<=s);)"pivotArea"===e.name()&&(d.autoSortScope=ce(e));return d.isOnRead=!1,d}function ce(e){for(var t,r,o,i={references:[]};e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"axis":i.axis=e.readContentAsString();break;case"cacheIndex":i.cacheIndex=e.readContentAsBoolean();break;case"collapsedLevelsAreSubtotals":i.collapsedLevelsAreSubtotals=e.readContentAsBoolean();break;case"dataOnly":i.dataOnly=e.readContentAsBoolean();break;case"field":i.field=e.readContentAsInt();break;case"fieldPosition":i.fieldPosition=e.readContentAsInt();break;case"grandCol":i.grandCol=e.readContentAsBoolean();break;case"grandRow":i.grandRow=e.readContentAsBoolean();break;case"labelOnly":i.labelOnly=e.readContentAsBoolean(); +break;case"offset":i.offset=e.readContentAsString();break;case"outline":i.outline=e.readContentAsBoolean();break;case"type":i.type=e.readContentAsString()}if(3===e.elementType)return i;for(t=e.depth;e.read()&&!(e.depth<=t);)if("reference"===e.name()){for(r={indexes:[]};e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"avgSubtotal":r.avgSubtotal=e.readContentAsBoolean();break;case"byPosition":r.byPosition=e.readContentAsBoolean();break;case"countASubtotal":r.countASubtotal=e.readContentAsBoolean();break;case"countSubtotal":r.countSubtotal=e.readContentAsBoolean();break;case"defaultSubtotal":r.defaultSubtotal=e.readContentAsBoolean();break;case"field":r.field=e.readContentAsDouble();break;case"maxSubtotal":r.maxSubtotal=e.readContentAsBoolean();break;case"minSubtotal":r.minSubtotal=e.readContentAsBoolean();break;case"productSubtotal":r.productSubtotal=e.readContentAsBoolean();break;case"relative":r.relative=e.readContentAsBoolean();break;case"selected":r.selected=e.readContentAsBoolean();break;case"stdDevPSubtotal":r.stdDevPSubtotal=e.readContentAsBoolean();break;case"stdDevSubtotal":r.stdDevSubtotal=e.readContentAsBoolean();break;case"sumSubtotal":r.sumSubtotal=e.readContentAsBoolean();break;case"varPSubtotal":r.varPSubtotal=e.readContentAsBoolean();break;case"varSubtotal":r.varSubtotal=e.readContentAsBoolean()}if(3===e.elementType){i.references.push(r);continue}for(o=e.depth;e.read()&&!(e.depth<=o);)if("x"===e.name())for(;e.moveToNextAttribute();)"v"===e.readAttributeNameAsString()&&r.indexes.push(e.readContentAsInt());i.references.push(r)}return i}function de(e,t){if(!e||!t)return!1;if(e.field===t.field&&e.defaultSubtotal===t.defaultSubtotal){if(!e.indexes&&!t.indexes)return!0;if(!e.indexes||!t.indexes)return!1;if(e.indexes.length===t.indexes.length){e.indexes.sort(),t.indexes.sort();for(var r=0;r1){for(o=0,i=e.length;o-1&&(a.dxf=be(r.hf[o]))}for(i=e.depth;e.read()&&!(e.depth<=i);)"pivotArea"===e.name()&&(a.pivotArea=ce(e));t.formats.push(a)}function ge(){var e,t={};for(e=1;e<=28;e++)t["PIVOTSTYLELIGHT"+e]=!0,t["PIVOTSTYLEMEDIUM"+e]=!0,t["PIVOTSTYLEDARK"+e]=!0;return t}S=ge();function ye(e,t,r){for(var o,i,a,l,s,c,u,f,b,h;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"name":t.styleName=e.readContentAsString();break;case"showColHeaders":t.showColHeaders=e.readContentAsBoolean();break;case"showColStripes":t.showColStripes=e.readContentAsBoolean();break;case"showLastColumn":t.showLastColumn=e.readContentAsBoolean();break;case"showRowHeaders":t.showRowHeaders=e.readContentAsBoolean();break;case"showRowStripes":t.showRowStripes=e.readContentAsBoolean()}if(n.isNullOrUndefined(t.styleName))t.styleName="PivotStyleLight0";else if(o=S[t.styleName.toUpperCase()],!o&&(i=r.tableStylesObj,a=t.styleName,!n.isNullOrUndefined(i)&&(l=i._attr,!n.isNullOrUndefined(l)))){if(s=d.XmlNodeHelper.Xm(l.count,0),c=void 0,(s>0||i.tableStyle)&&(u=d.XmlNodeHelper.He(i.tableStyle),!n.isNullOrUndefined(u)))for(f=0;f0&&Ce(e,t,r,o)}C={wholeTable:"wholeTableStyle",pageFieldLabels:"reportFilterLabelsStyle",pageFieldValues:"reportFilterValuesStyle",firstRowStripe:"firstRowStripeStyle",secondRowStripe:"secondRowStripeStyle",firstColumnStripe:"firstColumnStripeStyle",secondColumnStripe:"secondColumnStripeStyle",firstColumn:"firstColumnStyle",headerRow:"headerRowStyle",firstHeaderCell:"firstHeaderCellStyle",firstSubtotalColumn:"subtotalColumn1Style",secondSubtotalColumn:"subtotalColumn2Style",thirdSubtotalColumn:"subtotalColumn3Style",blankRow:"blankRowStyle",firstSubtotalRow:"subtotalRow1Style",secondSubtotalRow:"subtotalRow2Style",thirdSubtotalRow:"subtotalRow3Style",firstColumnSubheading:"columnSubheading1Style",secondColumnSubheading:"columnSubheading2Style",thirdColumnSubheading:"columnSubheading3Style",firstRowSubheading:"rowSubheading1Style",secondRowSubheading:"rowSubheading2Style",thirdRowSubheading:"rowSubheading3Style",lastColumn:"grandTotalColumnStyle",totalRow:"grandTotalRowStyle"};function Ce(e,t,r,o){var i=d.XmlNodeHelper.He(r.tableStyleElement);n.isNullOrUndefined(i)||i.forEach(function(e){var r,i,a,l,s=e._attr;n.isNullOrUndefined(s)||(r=s.type||"wholePivotTable",i=d.XmlNodeHelper.Xm(s.dxfId)||0,a=d.XmlNodeHelper.Xm(s.size)||1,l=o.ug(i),t[C[r]]=l,"firstRowStripe"!==r&&"secondRowStripe"!==r&&"firstColumnStripe"!==r&&"secondColumnStripe"!==r||(t[r.substr(0,r.length-1)+"Size"]=a))}),e.style=t}function we(e){for(var t=[],r=e.depth;e.read()&&!(e.depth<=r);)if("field"===e.name())for(;e.moveToNextAttribute();)"x"===e.readAttributeNameAsString()&&t.push(e.readContentAsInt());return t}function xe(e){for(var t=[],r=e.depth;e.read()&&!(e.depth<=r);)t.push(Ae(e));return t}function Ae(e){for(var t,r={pivotItemIndexes:[]};e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"t":r.type=e.readContentAsString();break;case"r":r.repeatCount=e.readContentAsInt();break;case"i":r.dataFieldIndex=e.readContentAsInt()}if(3===e.elementType)return r;for(t=e.depth;e.read()&&!(e.depth<=t);)if("x"===e.name()){if(!e.moveToNextAttribute()){r.pivotItemIndexes.push(0);continue}if("v"===e.readAttributeNameAsString()){r.pivotItemIndexes.push(e.readContentAsInt());continue}for(;e.moveToNextAttribute();)if("v"===e.readAttributeNameAsString()){r.pivotItemIndexes.push(e.readContentAsInt());break}}return r}},"./src/xlsx-io/reader/print-reader.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m;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-parser.ts"),a=r("./src/xml-io/node-helper.ts"),l=r("./src/datamodel/excel-helper.ts"),s=a.XmlNodeHelper.Vm,c=a.XmlNodeHelper.Xm,d=a.XmlNodeHelper.Ym,u=a.XmlNodeHelper.He,f=o.Util.pa,b=parseFloat,h={auto:0,downThenOver:1,overThenDown:2},p={auto:0,portrait:1,landscape:2},m={LH:0,CH:1,RH:2,LF:3,CF:4,RF:5,LHEVEN:6,CHEVEN:7,RHEVEN:8,LFEVEN:9,CFEVEN:10,RFEVEN:11,LHFIRST:12,CHFIRST:13,RHFIRST:14,LFFIRST:15,CFFIRST:16,RFFIRST:17};function g(e,t,r){var o,i=n.parseXmlToObject(e.readFullElement()).pageMargins;i&&(o=i._attr,r.Sg(t,{left:b(o.left),right:b(o.right),top:b(o.top),bottom:b(o.bottom),header:b(o.header),footer:b(o.footer)}))}t.readPageMargins=g;function y(e,t,r){var o,i=n.parseXmlToObject(e.readFullElement()).printOptions;i&&(o=i._attr,r.Tg(t,{printGridLine:s(o.gridLines,!1)&&s(o.gridLinesSet,!0),horizontalCentered:s(o.horizontalCentered,!1),verticalCentered:s(o.verticalCentered,!1),printRowColumnsHeaders:s(o.headings,!1)}))}t.readPrintOptions=y;function S(e,t){var r,o,i,d=n.parseXmlToObject(e.readFullElement()).pageSetup;d&&(r=d._attr,o=t.hn,i=void 0,void 0!==r.paperSize&&(i=parseInt(r.paperSize,10)),o.showColor=!s(r.blackAndWhite,!1),o.copies=c(r.copies,1),o.draft=s(r.draft,!1),o.useCustomStartingPage=s(r.useFirstPageNumber,!1),o.firstPageNumber=l.convertFirstPageNumber(c(r.firstPageNumber,1)),o.smartPrintPagesHeight=c(r.fitToHeight,1),o.smartPrintPagesWidth=c(r.fitToWidth,1),o.pageOrder=h[r.pageOrder]||0,o.paperSizeIndex="number"==typeof i?i:1,o.zoomFactor=a.XmlNodeHelper.Wm(r.scale,100)/100,o.orientation=p[r.orientation]||0)}t.readPageSetup=S;function C(e,t){var r=n.parseXmlToObject(e.readFullElement()).pageSetUpPr;r&&(t.hn.useSmartPrint=s(r._attr.fitToPage,!1))}t.readPageSetupAdditionalProperty=C;function w(e,t){var r,o,i=n.parseXmlToObject(e.readFullElement()).headerFooter;i&&(r=i._attr,o=t.hn.advancedHeadFooterSetting={headerFooterAlignWithPageMargin:s(r.alignWithMargins,!0),headerFooterDifferentFirstPage:s(r.differentFirst,!1)},o.headerFirstPage=f(d(i,"firstHeader")),o.footerFirstPage=f(d(i,"firstFooter")),o.headerFooterDifferentOddEvenPages=s(r.differentOddEven,!1),o.headerEvenPage=f(d(i,"evenHeader")),o.footerEvenPage=f(d(i,"evenFooter")),o.headerOddPage=f(d(i,"oddHeader")),o.footerOddPage=f(d(i,"oddFooter")),o.headerFooterScalesWithDocument=s("scaleWithDoc",!0))}t.readHeaderFooter=w;function x(e,t,r){var o=n.parseXmlToObject(e.readFullElement()),i=r?o.rowBreaks:o.colBreaks,a=[],l=u(i.brk);l.forEach(function(e){if(e){var t=c(e._attr.id,0);t>0&&a.push(t)}}),r?t.hn.rowBreakLines=a:t.hn.columnBreakLines=a}t.readRowColumnBreaks=x;function A(e,t){var r=n.parseXmlToObject(e.readFullElement()).legacyDrawingHF;r&&(t.jn=r._attr["r:id"])}t.readLegacyDrawingHF=A;function T(e){var t,r,o,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],o=r.fileType,o!==i.RelationshipConstants.hb&&o!==i.RelationshipConstants.ib||(n[t]=r.fileName));return n}function v(e,t,r){var o,i;if(r)switch(o=e.hn,o.advancedHeadFooterSetting||(o.advancedHeadFooterSetting={}),i=o.advancedHeadFooterSetting,t){case m.CHEVEN:i.evenHeaderCenterImage=r;break;case m.RHEVEN:i.evenHeaderRightImage=r;break;case m.LFEVEN:i.evenFooterLeftImage=r;break;case m.CFEVEN:i.evenFooterCenterImage=r;break;case m.RFEVEN:i.evenFooterRightImage=r;break;case m.LHEVEN:i.evenHeaderLeftImage=r;break;case m.CHFIRST:i.firstHeaderCenterImage=r;break;case m.RHFIRST:i.firstHeaderRightImage=r;break;case m.LFFIRST:i.firstFooterLeftImage=r;break;case m.CFFIRST:i.firstFooterCenterImage=r;break;case m.RFFIRST:i.firstFooterRightImage=r;break;case m.LHFIRST:i.firstHeaderLeftImage=r;break;case m.CH:i.headerCenterImage=r;break;case m.RH:i.headerRightImage=r;break;case m.LF:i.footerLeftImage=r;break;case m.CF:i.footerCenterImage=r;break;case m.RF:i.footerRightImage=r;break;case m.LH:default:i.headerLeftImage=r}}t.readHeaderFooterImage=v;function k(e,t,r){var o,a,s,c,d;e&&t.jn&&(o=e[t.jn],o&&o.fileType===i.RelationshipConstants.ab&&(a=T(o.relationFiles),s=r(o.fileName),c=n.parseXmlToObject(s).xml,d=u(c["v:shape"]),d.forEach(function(e){var o,i=e._attr.id,n=e["v:imagedata"]._attr["o:relid"],s=a[n];s&&(o=l.getImageContent(s,r),o&&v(t,m[i],o))})),t.jn="")}t.readVmlDrawing=k},"./src/xlsx-io/reader/sharedstring-reader.ts":function(e,t,r){"use strict";var o,i,n;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-reader.ts"),i=r("./src/xlsx-io/reader/style-reader.ts"),n=r("./src/common/common.ts");function a(e){var t,r,a,l,s,c,d,u,f=new o.XmlReader;for(f.setXml(e),t=[];f.read();)if(1===f.depth&&2!==f.elementType&&"si"===f.name()){for(r=f.depth,a="",l=[];f.read()&&!(f.depth<=r);)if(1===f.nodeType())if(s=f.name(),"t"===s&&1===f.elementType&&f.depth===r+1){for(c=void 0;f.moveToNextAttribute();)if("xml:space"===f.readAttributeNameAsString()&&"preserve"===f.readContentAsString()){c=!0;break}a=n.Util.wa(f.readElementContentAsString(c))}else if("r"===s){for(d=f.depth,u={};f.read()&&!(f.depth<=d);)1===f.elementType&&"t"===f.name()?(u.text=n.Util.pa(n.Util.wa(f.readElementContentAsString(!0))),a+=u.text):1===f.elementType&&"rPr"===f.name()&&(u.style=i.readRichTextFont(f));l.push(u)}0===l.length&&(l=void 0),t.push({value:n.Util.pa(a),richText:l})}return t}t.readSharedString=a},"./src/xlsx-io/reader/slicer-reader.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/excel-types.ts"),i=r("./src/xml-io/node-helper.ts"),n=r("./src/xml-io/xml-parser.ts"),a=r("./src/common/common.ts"),l=i.XmlNodeHelper.He,s=r("./src/datamodel/excel-style.ts"),c=s.UnitHelper.emuToPixles,d=i.XmlNodeHelper.dn,u=a.Util.pa,f=a.Util.ua,b=r("./src/datamodel/excel-helper.ts"),h=r("./src/datamodel/datamodel-reader.ts"),p={selectedItemWithData:"selectedItemWithDataStyle",selectedItemWithNoData:"selectedItemWithNoDataStyle",unselectedItemWithData:"unSelectedItemWithDataStyle",unselectedItemWithNoData:"unSelectedItemWithNoDataStyle",hoveredSelectedItemWithData:"hoveredSelectedItemWithDataStyle",hoveredSelectedItemWithNoData:"hoveredSelectedItemWithNoDataStyle",hoveredUnselectedItemWithData:"hoveredUnSelectedItemWithDataStyle",hoveredUnselectedItemWithNoData:"hoveredUnSelectedItemWithNoDataStyle",wholeTable:"wholeSlicerStyle",headerRow:"headerStyle"},m={9:1,1:1,3:1,4:1,7:1,11:1,2:2,10:2,12:2,8:2,13:2,5:3,6:3},g={0:"empty",1:"thin",2:"medium",3:"dashed",4:"dotted",5:"thick",6:"double",7:"hair",8:"mediumDashed",9:"dashDot",10:"mediumDashDot",11:"dashDotDot",12:"mediumDashDotDot",13:"slantedDashDot"};function y(e){if(e){var t={};return e.style&&(t.borderWidth=m[e.style]||1,t.borderStyle=g[e.style]||"thin"),e.color&&(t.borderColor=e.color),t}}function S(e){var t,r;if(e){for(t in e)e.hasOwnProperty(t)&&t.indexOf("border")>=0&&(r=e[t],r?e[t]=y(r):null===r&&(e[t]=void 0));return e}}t.getConvertedSlicerStyle=S;function C(e,t,r,i,n){var a,l,s,c,d,u,f,b,h;if(e){a=[],l=[];for(s in e)"count"!==s&&(c=e[s],c&&(d=c.fileType,d===o.RelationshipConstants.jb?a.push(c):d!==o.RelationshipConstants.eb&&d!==o.RelationshipConstants.fb||l.push(c)));u=D(n),f=L(n),a.length&&(b=x(a,i),h=r.Ne.sheets[t],k(b,f,i,r),I(b,l,i,h),F(b,u,i,r),r.Pg(b,t))}}t.readSlicers=C;function w(e,t){var r,o=n.parseXmlToObject(e),s=o.slicers;s&&(r=l(s.slicer),a.isNullOrUndefined(r)||r.forEach(function(e){var r={},o=e._attr;a.isNullOrUndefined(o)||(a.isNullOrUndefined(o.name)||(r.name=u(f(o.name,"_x000a_","\n"))),a.isNullOrUndefined(o.cache)||(r.nameInFormula=u(o.cache)),a.isNullOrUndefined(o.caption)||(r.captionName=u(o.caption)),a.isNullOrUndefined(o.columnCount)||(r.columnCount=i.XmlNodeHelper.Xm(o.columnCount,1)),a.isNullOrUndefined(o.showCaption)||(r.showHeader="0"!==o.showCaption),r.style={name:o.style},a.isNullOrUndefined(o.lockedPosition)||(r.disableResizingAndMoving="1"===o.lockedPosition),a.isNullOrUndefined(o.rowHeight)||(r.itemHeight=Math.max(c(parseInt(o.rowHeight,10))-4,0))),t.push(r)}))}function x(e,t){var r=[];return e.forEach(function(e){var o=t(e.fileName);o&&w(o,r)}),r}t.readSlicersFromFile=x;function A(e,t){var r,o,i,n,a,s,c,d,b,h,p,m,g=e.data;if(g&&g.tabular&&g.tabular.items){switch(r=g.tabular._attr&&+g.tabular._attr.pivotCacheId,o=g.tabular._attr&&g.tabular._attr.sortState,i=g.tabular._attr&&g.tabular._attr.crossFilter,n=!0,a=!0,s=!0,i){case"none":a=!1;break;case"showItemsWithNoData":s=!1}c=g.tabular.items.i,Array.isArray(c)||"1"!==g.tabular.items._attr.count||(c=[c]),d=c.map(function(e){var t=e._attr;return{x:+t.x,s:"1"===t.s,nd:"1"===t.nd}}),b=e.pivotTables,h=[],b&&(p=b.pivotTable,Array.isArray(p)||(p=[p]),p.forEach(function(e){h.push({tabId:e._attr.tabId,name:u(e._attr.name)})})),e.extLst&&(m=l(e.extLst["x:ext"]),m.forEach(function(e){var t,r=e._attr,o=r.uri;"{470722E0-AACD-4C17-9CDC-17EF765DBC7E}"===o&&(t=l(e["x15:slicerCacheHideItemsWithNoData"]),t&&t.length>0&&(n=!1))})),t.pivotSlicerCachesBeenRead||(t.Ne.slicerCaches||(t.Ne.slicerCaches=[]),t.Ne.slicerCaches.push({pivotCacheId:r,sourceName:f(u(e._attr.sourceName),"_x000a_","\n"),name:f(u(e._attr.name),"_x000a_","\n"),pivotTables:h,items:d,sortOrder:"descending"===o?2:1,showNoDataItems:n,showNoDataItemsInLast:s,visuallyNoDataItems:a}))}}function T(e,t,r){var o,n,a,s,c,d,b,p,m;if(!e.data&&(o=e.extLst,d=!0,b=!0,p=!0,o)){switch(m=l(o["x:ext"]),m.forEach(function(e){var t,r,o=e._attr,u=o.uri;"{2F2917AC-EB37-4324-AD4E-5DD8C200BD13}"===u?(t=l(e["x15:tableSlicerCache"]),t.forEach(function(e){var t=e._attr;n=i.XmlNodeHelper.Xm(t.tableId,0),a=i.XmlNodeHelper.Xm(t.column,0),s=t.sortOrder,c=t.crossFilter})):"{470722E0-AACD-4C17-9CDC-17EF765DBC7E}"===u&&(r=l(e["x15:slicerCacheHideItemsWithNoData"]),r&&r.length>0&&(d=!1))}),c){case"none":b=!1;break;case"showItemsWithNoData":p=!1}t.tableSlicerCachesBeenRead||(t.Ne.tableSlicerCaches||(t.Ne.tableSlicerCaches=[]),t.Ne.tableSlicerCaches.push({name:f(u(e._attr.name),"_x000a_","\n"),sourceName:f(u(e._attr.sourceName),"_x000a_","\n"),tableName:u(h.getTableName(n,r)),columnName:h.getTableColumnName(n,a,r),sortOrder:"descending"===s?2:1,showNoDataItems:d,showNoDataItemsInLast:p,visuallyNoDataItems:b}))}}function v(e,t,r,o){var i,a,l,s,c=n.parseXmlToObject(t),d=c.slicerCacheDefinition;if(d){if(i=d._attr,a=i.name,l=[],A(d,r),T(d,r,o),e.forEach(function(e){e.nameInFormula===a&&l.push(e)}),!l.length)return;s="",s=d.data&&d.data.tabular?"pivot":"table",l.forEach(function(e){e.slicerCacheName=f(u(a),"_x000a_","\n"),e.type=s})}}function k(e,t,r,o){var i,n=[],a=o.Ne;for(i in a.sheets)a.sheets[i].tables&&(n=n.concat(a.sheets[i].tables));t.forEach(function(t){var i=r(t.fileName,!0);i&&v(e,i,o,n)}),o.pivotSlicerCachesBeenRead=!0,o.tableSlicerCachesBeenRead=!0}function F(e,t,r,o){var i,s,c,d,u,f,b,h,m=r(t.fileName,!0);m&&(i=n.parseXmlToObject(m),s=i.styleSheet,c={},d=o.kn,a.isNullOrUndefined(d)||(u=l(d["x14:slicerStyle"]),u.forEach(function(e){var t=e._attr,r=t.name,i={name:r},n=l(e["x14:slicerStyleElements"]);n.forEach(function(e){var t=l(e["x14:slicerStyleElement"]);t.forEach(function(e){var t,r=e._attr,n=r.type,l=r.dxfId,s=p[n];!a.isNullOrUndefined(l)&&s&&(t=o.qg(l),i[s]=S(t))})}),c[r]=i})),f=s.tableStyles,a.isNullOrUndefined(f)||(b=l(f.tableStyle),b.forEach(function(e){var t,r=e._attr,i=r.name,n=c[i];n&&(t=l(e.tableStyleElement),t.forEach(function(e){var t=e._attr,r=t.type,i=t.dxfId,l=o.ug(i),s=p[r];!a.isNullOrUndefined(i)&&s&&(n[s]=S(l))}))})),h=d._attr.defaultSlicerStyle,e.forEach(function(e){var t=e.style.name;t||(e.style.name=h,t=h),c[t]&&(e.style=c[t])}))}function R(e,t){var r=null;return e.forEach(function(e){e.name===t&&(r=e)}),r}function E(e,t,r){var o=n.parseXmlToObject(t,!0),i=o["xdr:wsDr"],s=B(l(i["xdr:twoCellAnchor"]));s.forEach(function(t){var o,i,n,l,s,c,h,p,m=t._attr,g=!0,y=!0,S=m.editAs;"absolute"===S?(g=!1,y=!1):"oneCell"===S&&(y=!1),o=!0,i=t.clientData,n=d(t["xdr:from"]),l=d(t["xdr:to"]),s=b.getBounds(r,n,l),i&&(c=i._attr.fLocksWithSheet,"0"===c&&(o=!1)),h=u(f(t.slicerName," ","\n")),p=R(e,h),a.isNullOrUndefined(p)||(p.dynamicMove=g,p.dynamicSize=y,p.x=s.x,p.y=s.y,p.width=s.width,p.height=s.height,p.isLocked=o,p.endPoint=l)})}function I(e,t,r,o){t.forEach(function(t){var i=r(t.fileName,!0);i&&E(e,i,o)})}function L(e){var t,r,i,n=e.relationFiles,a=[];for(t in n)"count"!==t&&(r=n[t],r&&(i=r.fileType,i===o.RelationshipConstants.kb&&a.push(r)));return a}function D(e){var t=e.Ee(o.RelationshipConstants.Pa);if(t||(t=e.Ee(o.RelationshipConstants.Qa)),t)return t}function B(e){var t=["mc:AlternateContent","mc:Choice","xdr:graphicFrame","a:graphic","a:graphicData"],r=[];return e.forEach(function(e){var o,i,n,a,s,c=e;for(i=0;i0&&o.push(a));r.Jg(o,t)}}t.readSparklineGroups=h,u={span:2,gap:0,zero:1},f={line:0,column:1,stacked:2},b={individual:0,group:1,custom:2};function p(e,t){var r,i,s,c,d;if(!a.isNullOrUndefined(e))return r={setting:{}},r.sparklineType=0,i=e._attr,a.isNullOrUndefined(i)||(a.isNullOrUndefined(i.manualMax)||(r.setting.manualMax=o.XmlNodeHelper.Wm(i.manualMax,0)),a.isNullOrUndefined(i.manualMin)||(r.setting.manualMin=o.XmlNodeHelper.Wm(i.manualMin,0)),a.isNullOrUndefined(i.lineWeight)||(r.setting.lineWeight=4*o.XmlNodeHelper.Wm(i.lineWeight,1)/3),a.isNullOrUndefined(i.type)||(r.sparklineType=f[i.type]||0),a.isNullOrUndefined(i.dateAxis)||(r.displayDateAxis=o.XmlNodeHelper.Vm(i.dateAxis,!1)),a.isNullOrUndefined(i.displayEmptyCellsAs)||(r.setting.displayEmptyCellsAs=u[i.displayEmptyCellsAs]||0),a.isNullOrUndefined(i.markers)||(r.setting.showMarkers=o.XmlNodeHelper.Vm(i.markers,!1)),a.isNullOrUndefined(i.high)||(r.setting.showHigh=o.XmlNodeHelper.Vm(i.high,!1)),a.isNullOrUndefined(i.low)||(r.setting.showLow=o.XmlNodeHelper.Vm(i.low,!1)),a.isNullOrUndefined(i.first)||(r.setting.showFirst=o.XmlNodeHelper.Vm(i.first,!1)),a.isNullOrUndefined(i.last)||(r.setting.showLast=o.XmlNodeHelper.Vm(i.last,!1)),a.isNullOrUndefined(i.negative)||(r.setting.showNegative=o.XmlNodeHelper.Vm(i.negative,!1)),a.isNullOrUndefined(i.displayXAxis)||(r.setting.displayXAxis=o.XmlNodeHelper.Vm(i.displayXAxis,!1)),a.isNullOrUndefined(i.displayHidden)||(r.setting.displayHidden=o.XmlNodeHelper.Vm(i.displayHidden,!1)),a.isNullOrUndefined(i.rightToLeft)||(r.setting.rightToLeft=o.XmlNodeHelper.Vm(i.rightToLeft,!1)),a.isNullOrUndefined(i.minAxisType)||(r.setting.minAxisType=b[i.minAxisType]||0),a.isNullOrUndefined(i.maxAxisType)||(r.setting.maxAxisType=b[i.maxAxisType]||0)),a.isNullOrUndefined(e["x14:colorSeries"])||(r.setting.seriesColor=g(n.readColor(e["x14:colorSeries"]))||"rgba(36,64,98,255)"),a.isNullOrUndefined(e["x14:colorNegative"])||(r.setting.negativeColor=g(n.readColor(e["x14:colorNegative"]))||"Brown"),a.isNullOrUndefined(e["x14:colorAxis"])||(r.setting.axisColor=g(n.readColor(e["x14:colorAxis"]))||"Black"),a.isNullOrUndefined(e["x14:colorMarkers"])||(r.setting.markersColor=g(n.readColor(e["x14:colorMarkers"]))||"rgba(36,64,98,255)"),a.isNullOrUndefined(e["x14:colorFirst"])||(r.setting.firstMarkerColor=g(n.readColor(e["x14:colorFirst"]))||"rgba(149,179,215,255)"),a.isNullOrUndefined(e["x14:colorLast"])||(r.setting.lastMarkerColor=g(n.readColor(e["x14:colorLast"]))||"rgba(149,179,215,255)"),a.isNullOrUndefined(e["x14:colorHigh"])||(r.setting.highMarkerColor=g(n.readColor(e["x14:colorHigh"]))||"Blue"),a.isNullOrUndefined(e["x14:colorLow"])||(r.setting.lowMarkerColor=g(n.readColor(e["x14:colorLow"]))||"Blue"),a.isNullOrUndefined(e["xm:f"])||(s=e["xm:f"],c=s["xm:f"].split("!"),1===c.length?r.axisReference=c[0]:r.axisReference=l.getRangesFromString(c[1])[0]||null,c[0]!==t&&1!==c.length&&(r.axisReference.sheetName=c[0])),a.isNullOrUndefined(e["x14:sparklines"])||(r.sparklines=m(e["x14:sparklines"],t)),d=r.axisReference,r.displayDateAxis&&d&&(r.axisOrientation=1===d.rowCount?1:0),r}function m(e,t){var r=[],o=e&&e["x14:sparkline"],i=c(o);return i.forEach(function(e){var o,i,n,s,c,u,f;a.isNullOrUndefined(e["xm:f"])||(c=e["xm:f"],n=d(c["xm:f"]).split("!"),1===n.length?s=n[0]:o=l.getRangesFromString(n[1])[0]||null),a.isNullOrUndefined(e["xm:sqref"])||(u=e["xm:sqref"],i=l.getRangesFromString(u["xm:sqref"])[0]||null),a.isNullOrUndefined(o)||a.isNullOrUndefined(i)?a.isNullOrUndefined(s)||a.isNullOrUndefined(i)||(f={},f.row=i.row,f.col=i.col,f.data=s,r.push(f)):(f={},f.row=i.row,f.col=i.col,f.orientation=1===o.rowCount?1:0,f.data=o,n&&n[0]!==t&&(f.data.sheetName=n[0]),r.push(f))}),r}function g(e){var t;return t=e.isThemeColor()?s.ColorHelper.getThemeColorName(e):s.ColorHelper.toRGBColor(e)}},"./src/xlsx-io/reader/style-reader.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/xml-io/xml-reader.ts"),n=r("./src/datamodel/excel-style.ts"),a=r("./src/datamodel/excel-style.ts"),l=r("./src/xlsx-io/common/color-reader.ts"),s=r("./src/xml-io/xml-parser.ts"),c=void 0;function d(e,t){var r,o,n,a,l,s,c,d,f,h,p,m=new i.XmlReader;for(m.setXml(e),r=[],o=[],n={},a=[],l=[],s=[];m.read();)if(1===m.depth&&2!==m.elementType)switch(m.name()){case"numFmts":u(m,n);break;case"fonts":c=t.gf,d=t.ff,b(m,o,c,d);break;case"fills":g(m,a);break;case"borders":S(m,l);break;case"cellStyleXfs":x(m,r,o,l,n,a,!0);break;case"cellXfs":x(m,s,o,l,n,a,!1);break;case"cellStyles":k(m,t,r);break;case"colors":F(m,t);break;case"dxfs":L(m,t);break;case"tableStyles":P(m,t);break;case"extLst":R(m,t)}if(t.gn=n,f=r.length,f>0){for(t.tf(r[0]),h=0,p=f;h0&&(t[o.numberFormatId]=o))}}t.readNumberFormats=u;function f(e){for(var t,r=-1,i="",n="";e.moveToNextAttribute();)t=e.readAttributeNameAsString(),"numFmtId"===t?r=e.readContentAsInt(-1):"formatCode"===t?i=e.readContentAsString():t.indexOf("formatCode16")>-1&&(n=e.readContentAsString(),n.indexOf("[$-ja-JP-x-gannen]")>-1&&(i=n));return i=o.Util.pa(o.Util.ua(i,"_x000a_","\n")),new a.ExcelNumerFormat(r,i)}function b(e,t,r,o){if(3!==e.elementType)for(var i=e.depth;e.read();){if(e.depth<=i)return;1===e.nodeType()&&"font"===e.name()&&t.push(h(e,!1,r,o))}}t.readFonts=b;function h(e,t,r,i){var s,c,d,u,f,b,h,m,g,y;if(3!==e.elementType){for(s=new a.ExcelFont,t&&(s.fontColor=void 0,s.underLineStyle=void 0),c=e.depth;e.read()&&!(e.depth<=c);)if(1===e.nodeType())switch(e.name()){case"b":for(s.isBold=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(s.isBold=e.readContentAsBoolean(-1));break;case"charset":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(s.charSetIndex=e.readContentAsInt(-1));break;case"family":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(s.fontFamily=e.readContentAsInt(0));break;case"name":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(d=e.readContentAsString(),d.indexOf(" ")>=0&&(d="'"+d+"'"),s.fontName=d);break;case"scheme":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u=e.readContentAsString(),o.StringEx.O(u)||void 0===n.FontSchemeCategory[u.toLocaleLowerCase()]||(s.fontScheme=n.FontSchemeCategory[u.toLocaleLowerCase()]));break;case"u":for(f=1;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(b=e.readContentAsString(),o.StringEx.O(b)||void 0===a.UnderLineStyle[b]||(f=a.UnderLineStyle[b]));s.underLineStyle=f;break;case"i":for(s.isItalic=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(s.isItalic=e.readContentAsBoolean(-1));break;case"outline":for(s.isOutlineStyle=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(s.isOutlineStyle=e.readContentAsBoolean(-1));break;case"shadow":for(s.isShadowStyle=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(s.isShadowStyle=e.readContentAsBoolean(-1));break;case"strike":for(s.isStrikeOut=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(s.isStrikeOut=e.readContentAsBoolean(-1));break;case"sz":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(s.fontSize=e.readContentAsDouble(0));break;case"vertAlign":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(h=e.readContentAsString(),h&&void 0!==a.VertAlign[h.toLocaleLowerCase()]&&(s.vertAlign=a.VertAlign[h.toLocaleLowerCase()]));break;case"color":m=l.readColor(e),m!==n.ExcelColor.EmptyColor?s.fontColor=m:t&&(s.fontColor=null)}return g=s.fontScheme,(1===g&&r||2===g&&i)&&(y=p(g,r,i),s.fontName=y),s}}function p(e,t,r){var o;return 1===e?o=r:2===e&&(o=t),o}function m(e){for(var t,r,i,s,c,d,u=new a.ExcelFont,f=e.depth;e.read()&&!(e.depth<=f);)if(1===e.nodeType())switch(e.name()){case"b":for(u.isBold=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u.isBold=e.readContentAsBoolean(-1));break;case"charset":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u.charSetIndex=e.readContentAsInt(-1));break;case"color":t=l.readColor(e),t!==n.ExcelColor.EmptyColor&&(u.fontColor=t);break;case"condense":for(u.isCondense=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u.isCondense=e.readContentAsBoolean(-1));break;case"extend":for(u.isExtend=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u.isExtend=e.readContentAsBoolean(-1));break;case"family":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u.fontFamily=e.readContentAsInt(0));break;case"i":for(u.isItalic=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u.isItalic=e.readContentAsBoolean(-1));break;case"outline":for(u.isOutlineStyle=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u.isOutlineStyle=e.readContentAsBoolean(-1));break;case"rFont":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(r=e.readContentAsString(),r.indexOf(" ")>=0&&(r="'"+r+"'"),u.fontName=r);break;case"scheme":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(i=e.readContentAsString(),o.StringEx.O(i)||void 0===n.FontSchemeCategory[i.toLocaleLowerCase()]||(u.fontScheme=n.FontSchemeCategory[i.toLocaleLowerCase()]));break;case"shadow":for(u.isShadowStyle=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u.isShadowStyle=e.readContentAsBoolean(-1));break;case"strike":for(u.isStrikeOut=!0;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u.isStrikeOut=e.readContentAsBoolean(-1));break;case"sz":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(u.fontSize=e.readContentAsDouble(0));break;case"u":for(s=1;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(c=e.readContentAsString(),o.StringEx.O(c)||void 0===a.UnderLineStyle[c]||(s=a.UnderLineStyle[c]));u.underLineStyle=s;break;case"vertAlign":for(;e.moveToNextAttribute();)"val"===e.readAttributeNameAsString()&&(d=e.readContentAsString(),d&&void 0!==a.VertAlign[d.toLocaleLowerCase()]&&(u.vertAlign=a.VertAlign[d.toLocaleLowerCase()]))}return u}t.readRichTextFont=m;function g(e,t){if(3!==e.elementType)for(var r=e.depth;e.read();){if(e.depth<=r)return;1===e.nodeType()&&"fill"===e.name()&&(t.push(y(e)),0===t.length&&t.push({patternType:0,fgColor:n.ExcelColor.EmptyColor,bgColor:n.ExcelColor.EmptyColor}))}}t.readFills=g;function y(e){for(var t,r,o,i,n,s=new a.ExcelFill,c=e.depth;e.read()&&!(e.depth<=c);)if(1===e.nodeType()&&"patternFill"===e.name()){for(;e.moveToNextAttribute();)"patternType"===e.readAttributeNameAsString()&&(t=e.readContentAsString(),t&&void 0!==a.FillPatternType[t]&&(s.patternType=a.FillPatternType[t]));if(3===e.elementType)break;for(r=e.depth;e.read()&&!(e.depth<=r);)1===e.nodeType()&&("fgColor"===e.name()?s.fgColor=l.readColor(e):"bgColor"===e.name()&&(s.bgColor=l.readColor(e))); +}else if(1===e.nodeType()&&"gradientFill"===e.name()){for(s.stops=[];e.moveToNextAttribute();)o=e.readAttributeNameAsString(),"type"===o?s[o]=e.readContentAsString():"degree"===o?s[o]=e.readContentAsInt():s[o]=e.readContentAsDouble();if(3===e.elementType)break;for(r=e.depth;e.read()&&!(e.depth<=r);)if("stop"===e.name()){for(i={},e.moveToNextAttribute()&&"position"===e.readAttributeNameAsString()&&(i.position=e.readContentAsDouble()),n=e.depth;e.read()&&!(e.depth<=n);)i.color=l.readColor(e);s.stops.push(i)}}return s}function S(e,t){if(3!==e.elementType)for(var r=e.depth;e.read();){if(e.depth<=r)return;1===e.nodeType()&&"border"===e.name()&&t.push(C(e))}}t.readBorders=S;function C(e){for(var t,r,o=e.depth,i=new a.ExcelBorder,n=!1,l=!1;e.moveToNextAttribute();)t=e.readAttributeNameAsString(),"diagonalUp"===t?n=!0:"diagonalDown"===t&&(l=!0);if(3===e.elementType&&!n&&!l)return i;for(i.top=void 0,i.right=void 0,i.bottom=void 0,i.left=void 0;e.read()&&!(e.depth<=o);)if(1===e.nodeType())switch(e.name()){case"top":i.top=w(e);break;case"right":case"end":i.right=w(e);break;case"bottom":i.bottom=w(e);break;case"left":case"start":i.left=w(e);break;case"vertical":i.vertical=w(e);break;case"horizontal":i.horizontal=w(e);break;case"diagonal":r=w(e),n&&(i.diagonalUp=r),l&&(i.diagonalDown=r)}return i}function w(e){var t,r,o=new a.ExcelBorderSide;for(o.lineStyle=0;e.moveToNextAttribute();)"style"===e.readAttributeNameAsString()&&(t=e.readContentAsString(),t&&void 0!==a.ExcelBorderStyle[t]&&(o.lineStyle=a.ExcelBorderStyle[t]));if(3===e.elementType)return o;for(r=e.depth;e.read()&&!(e.depth<=r);)1===e.nodeType()&&"color"===e.name()&&(o.color=l.readColor(e));return o}function x(e,t,r,o,i,n,l){var s,c,d;if(3!==e.elementType)for(s=e.depth;e.read();){if(e.depth<=s)return;if(1===e.nodeType()&&"xf"===e.name()){if(c=new a.ExtendedFormat,c.isStyleFormat=l,A(e,c,r,o,i,n),t.push(c),3===e.elementType)continue;for(d=e.depth;e.read()&&!(e.depth<=d);)1===e.nodeType()&&("alignment"===e.name()?T(e,c):"protection"===e.name()&&v(e,c))}}}t.readXFs=x;function A(e,t,r,o,i,n){for(var a,l,s,c,d,u,f,b,h,p=0,m=0,g=0,y=0;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"numFmtId":p=e.readContentAsInt(0);break;case"fontId":m=e.readContentAsInt(0);break;case"fillId":g=e.readContentAsInt(0);break;case"borderId":y=e.readContentAsInt(0);break;case"applyAlignment":a=e.readContentAsInt(-1),0!==a&&1!==a||(t.applyAlignment=1===a);break;case"applyBorder":l=e.readContentAsInt(-1),0!==l&&1!==l||(t.applyBorder=1===l);break;case"applyFill":s=e.readContentAsInt(-1),0!==s&&1!==s||(t.applyFill=1===s);break;case"applyFont":c=e.readContentAsInt(-1),0!==c&&1!==c||(t.applyFont=1===c);break;case"applyProtection":d=e.readContentAsInt(-1),0!==d&&1!==d||(t.applyProtection=1===d);break;case"applyNumberFormat":u=e.readContentAsInt(-1),0!==u&&1!==u||(t.applyNumberFormat=1===u);break;case"xfId":f=e.readContentAsInt(-1),f>=0&&(t.parentFormatID=f);break;case"quotePrefix":b=e.readContentAsBoolean(),t.quotePrefix=b}t.font=r[m],t.border=o[y],i[p]?t.numberFormat=i[p]:t.numberFormatIndex=p,h=n[g],h&&(t.fill=h),t.isLocked=!0,t.isHidden=!1,t.horizontalAlign=0,t.verticalAlign=2}function T(e,t,r){for(var i,l,s,d=null,u=null,f=!!r&&c,b=!!r&&c,h=!!r&&c;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"horizontal":d=e.readContentAsString();break;case"vertical":u=e.readContentAsString();break;case"textRotation":i=e.readContentAsString(),o.StringEx.O(i)||(t.rotation=parseInt(i,10));break;case"readingOrder":l=e.readContentAsString(),o.StringEx.O(l)||(t.readingOrder=parseInt(l,10));break;case"indent":s=e.readContentAsString(),o.StringEx.O(s)||(t.indent=parseInt(s,10));break;case"justifyLastLine":f=e.readContentAsBoolean(!1);break;case"shrinkToFit":b=e.readContentAsBoolean(!1);break;case"wrapText":h=e.readContentAsBoolean(!1)}t.isJustfyLastLine=f,t.isShrinkToFit=b,t.isWordWrap=h,o.StringEx.O(d)&&!r&&(d="general"),o.StringEx.O(u)&&!r&&(u="bottom"),d&&(t.horizontalAlign=a.ExcelHorizontalAlignment[d]),u&&(t.verticalAlign=n.ExcelVerticalAlignment[u])}function v(e,t){for(var r,i;e.moveToNextAttribute();)r=e.readAttributeNameAsString(),"hidden"===r?t.isHidden=e.readContentAsBoolean(!1):"locked"===r&&(i=e.readContentAsString(),o.StringEx.L(i)||"0"!==i&&"false"!==i||(t.isLocked=!1))}function k(e,t,r){var i,n,l,s,c,d,u,f,b;if(3!==e.elementType)for(i=e.depth;e.read();){if(e.depth<=i)return;if(1===e.nodeType()&&"cellStyle"===e.name()){for(n=void 0,l=0,s=-1,c=!1,d=0;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"name":n=o.Util.pa(e.readContentAsString());break;case"xfId":l=e.readContentAsInt(0);break;case"builtinId":s=e.readContentAsInt(-1);break;case"customBuiltin":c=e.readContentAsBoolean(!1);break;case"iLevel":d=e.readContentAsInt(0)}u=r[l],s!==-1?(f=new a.ExcelStyle,f.name=n,f.format(u.clone()),f.isCustomBuiltin=c,f.builtInStyle=s,2!==f.builtInStyle&&1!==f.builtInStyle||(f.outLineLevel=d),t.xf(f,l)):(b=new a.CustomExcelStyle,b.name=n,b.format(u.clone()),t.xf(b,l))}}}function F(e,t){var r,o,i,n;if(3!==e.elementType)for(r=e.depth,o=[];e.read();){if(e.depth<=r)return;if(1===e.nodeType()&&"indexedColors"===e.name())for(i=e.depth;e.read();){if(e.depth<=i)return void t.kg(o);if(1===e.nodeType()){for(n=0;e.moveToNextAttribute();)"rgb"===e.readAttributeNameAsString()&&(n=parseInt(e.readContentAsString(),16));o.push((16777215&n)+4278190080)}}}}function R(e,t){var r,i,n=null,a=null,l=null,c=null;if(3!==e.elementType){for(;e.read();)if(1===e.nodeType()&&"ext"===e.name())for(;e.moveToNextAttribute();)if("uri"===e.readAttributeNameAsString())switch(r=e.readContentAsString()){case"{46F421CA-312F-682f-3DD2-61675219B42D}":n=E(e);break;case"{A0A4C193-F2C1-4fcb-8827-314CF55A85BB}":a=I(e);break;case"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}":i=s.parseXmlToObject(e.readFullElement(),!0).ext,o.isNullOrUndefined(i)||(l=i["x14:slicerStyles"]);break;case"{9260A510-F301-46a8-8635-F512D64BE5F5}":i=s.parseXmlToObject(e.readFullElement(),!0).ext,o.isNullOrUndefined(i)||(c=i["x15:timelineStyles"])}t.rg=n,t.tg=a,t.kn=l,t.mn=c}}function E(e){var t,r=[];if(3!==e.elementType){for(t=e.depth;e.read()&&!(e.depth<=t);)1===e.nodeType()&&"x14:dxfs"===e.name()&&(r=D(e));return r}}function I(e){var t,r=[];if(3!==e.elementType){for(t=e.depth;e.read()&&!(e.depth<=t);)1===e.nodeType()&&"x15:dxfs"===e.name()&&(r=D(e));return r}}function L(e,t){var r=D(e);t.hf=r}function D(e){var t,r;if(3!==e.elementType){for(t=e.depth,r=[];e.read()&&!(e.depth<=t);)1===e.nodeType()&&"dxf"===e.name()&&r.push(B(e));return r}}t.readDifferentialFormattingRecords=D;function B(e){var t,r,o,i={};if(3===e.elementType)return i;for(t=e.depth;e.read()&&!(e.depth<=t);)if(1===e.nodeType())switch(e.name()){case"font":i.font=h(e,!0);break;case"border":i.border=C(e);break;case"fill":i.fill=y(e);break;case"numFmt":i.numberFormat=f(e);break;case"alignment":r={},T(e,r,!0),i.alignment=r;break;case"protection":o={},v(e,o),i.protection=o}return i}t.readDifferentialFormattingRecord=B;function P(e,t){3!==e.elementType&&(t.tableStylesObj=s.parseXmlToObject(e.readFullElement()).tableStyles)}},"./src/xlsx-io/reader/table-reader.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/xml-io/xml-parser.ts"),a=r("./src/xml-io/node-helper.ts"),l=r("./src/common/range-parser.ts"),s=r("./src/xlsx-io/reader/autofilter-reader.ts"),c=a.XmlNodeHelper.He,d=a.XmlNodeHelper.Ym;function b(e,t,r){return i.Util.pa(d(e,t,r))}u={wholeTable:"wholeTableStyle",headerRow:"headerRowStyle",totalRow:"footerRowStyle",firstColumn:"highlightFirstColumnStyle",lastColumn:"highlightLastColumnStyle",firstRowStripe:"firstRowStripStyle",secondRowStripe:"secondRowStripStyle",firstColumnStripe:"firstColumnStripStyle",secondColumnStripe:"secondColumnStripStyle",firstHeaderCell:"firstHeaderCellStyle",lastHeaderCell:"lastHeaderCellStyle",firstTotalCell:"firstFooterCellStyle",lastTotalCell:"lastFooterCellStyle"};function h(){var e,t={};for(e=1;e<=28;e++)e<=21&&(t["TABLESTYLELIGHT"+e]=!0),e<=11&&(t["TABLESTYLEDARK"+e]=!0),t["TABLESTYLEMEDIUM"+e]=!0;return t}f=h();function p(e,t,r,n){var a,l,s,c,d,u;if(e){a=void 0,l=[];for(s in e)"count"!==s&&(c=e[s],c&&(d=c.fileType,d===o.RelationshipConstants.$a&&(a=c),a&&(u=m(a,n,r,t),i.isNullOrUndefined(u)||l.push(u))));r.Kg(l,t)}}t.readTables=p;function m(e,t,r,o){var i=t(e.fileName);if(i)return g(i,r,o)}t.readTablesFromFile=m;function g(e,t,r){var o,c,d,u,f,b,h,p,m,g,C=n.parseXmlToObject(e),w={},x=C&&C.table&&C.table._attr;if(!i.isNullOrUndefined(x)){if(w.id=a.XmlNodeHelper.Xm(x.id,0),w.name=x.name,o=x.ref,i.isNullOrUndefined(o)||(c=l.getRangesFromString(o,!0)[0],w.row=c.row,w.col=c.col,w.rowCount=c.rowCount,w.colCount=c.colCount),d=a.XmlNodeHelper.Xm(x.headerRowCount,1),d>=1?w.showHeader=!0:w.showHeader=!1,w.showFooter=a.XmlNodeHelper.Vm(x.totalsRowShown,!0),u=a.XmlNodeHelper.Xm(x.totalsRowCount,-1),u<1?w.showFooter=!1:w.showFooter=!0,f=C&&C.table,b=void 0,h=void 0,!i.isNullOrUndefined(f))for(p in f)if(f.hasOwnProperty(p)&&!i.isNullOrUndefined(f[p]))switch(p){case"autoFilter":b=s.readAutoFilter(f[p]);break;case"sortState":h=s.readSortInfo(f[p]);break;case"tableColumns":w.columns=y(f[p]);break;case"tableStyleInfo":S(f[p],w,t);break;case"extLst":w.reservedElement=f[p]}for(m=b||{},w.rowFilter=t.Mg(m,r)||{},w.rowFilter.sortInfo=h,w.rowFilter.showFilterButton=!0,w.rowFilter.filterButtonVisibleInfo={},g=0;g0&&m.filterColumns[0].hiddenButton||w.rowFilter.showFilterButton===!1)for(w.rowFilter.showFilterButton=!1,w.rowFilter.filterButtonVisibleInfo={},g=0;g0&&(u=c(n.tableStyle),!i.isNullOrUndefined(u)))for(b=0;b0&&A(e,t,r,o))}function x(e){return e.substr(10)}function A(e,t,r,o){var n=c(r.tableStyleElement);i.isNullOrUndefined(n)||n.forEach(function(e){var r,n,l,s,c=e._attr;i.isNullOrUndefined(c)||(r=c.type||"wholeTable",n=a.XmlNodeHelper.Xm(c.dxfId)||0,l=a.XmlNodeHelper.Xm(c.size)||1,s=o.ug(n),t[u[r]]=s,"firstRowStripe"!==r&&"secondRowStripe"!==r&&"firstColumnStripe"!==r&&"secondColumnStripe"!==r||(t[r.substr(0,r.length-1)+"Size"]=l))}),e.style=t}},"./src/xlsx-io/reader/theme-reader.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=r("./src/xml-io/xml-parser.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/datamodel/excel-style.ts"),l=r("./src/xml-io/xml-reader.ts"),s=r("./src/xlsx-io/reader/chart-reader.ts"),c=s.DrawingReader.ReadCT_OfficeStyleSheet,d="a:scrgbClr";function u(e,t){var r,o,a,s,d,u,h,p=i.parseXmlToObject(e,!0),m=p["a:theme"];m&&(r=m._attr.name,r&&"OFFICE"===r.toUpperCase().trim()&&(r="Office"),o=m["a:themeElements"],o&&(a=f(o),s=b(o),d=new n.ExcelTheme(r,a,s),t.rf(d)),u=new l.XmlReader,u.setXml(e),h=c(u),t.lf(h))}t.readTheme=u;function f(e){var t,r,o,i,a,l,s,c,d,u,f,b,h=[],m=e["a:clrScheme"];if(m)return t=p(m["a:lt1"]),t&&h.push(t),r=p(m["a:dk1"]),r&&h.push(r),o=p(m["a:lt2"]),o&&h.push(o),i=p(m["a:dk2"]),i&&h.push(i),a=p(m["a:accent1"]),a&&h.push(a),l=p(m["a:accent2"]),l&&h.push(l),s=p(m["a:accent3"]),s&&h.push(s),c=p(m["a:accent4"]),c&&h.push(c),d=p(m["a:accent5"]),d&&h.push(d),u=p(m["a:accent6"]),u&&h.push(u),f=p(m["a:hlink"]),f&&h.push(f),b=p(m["a:folHlink"]),b&&h.push(b),new n.ColorScheme(m._attr.name,h)}function b(e){var t,r,o=e["a:fontScheme"];return o?(t=h(o["a:majorFont"]),r=h(o["a:minorFont"]),new n.FontScheme(o._attr.name,t,r)):null}function h(e){var t,r,i,a,l=[],s=[];if(e)if(e["a:latin"])l.push(new n.RunFormatting(0,o.isNullOrUndefined(e["a:latin"]._attr.typeface)?"":e["a:latin"]._attr.typeface));else if(e["a:ea"])l.push(new n.RunFormatting(2,o.isNullOrUndefined(e["a:ea"]._attr.typeface)?"":e["a:ea"]._attr.typeface));else if(e["a:cs"])l.push(new n.RunFormatting(1,o.isNullOrUndefined(e["a:cs"]._attr.typeface)?"":e["a:cs"]._attr.typeface));else if(e["a:sym"])l.push(new n.RunFormatting(3,o.isNullOrUndefined(e["a:sym"]._attr.typeface)?"":e["a:sym"]._attr.typeface));else if(e["a:font"])for(t=e["a:font"],Array.isArray(t)||(t=[t]),r=0,i=t.length;r0&&(t.Ne.allowDynamicArray=!0)}return y}t.readWorkbook=s;function c(e,t){var r=i.XmlNodeHelper.Vm(e._attr.dateCompatibility,!0);r&&t.zf(i.XmlNodeHelper.Vm(e._attr.date1904,!1))}t.readWorkbookProperties=c;function d(e){var t={};return t.cacheId=e._attr.cacheId,t.rid=e._attr["r:id"],t}t.readPivotCache=d;function u(e){var t={};return t.rid=e._attr["r:id"],t}t.readExternalReference=u;function f(e,t){var r=i.XmlNodeHelper.Vm(e._attr.showHorizontalScroll,!0),o=i.XmlNodeHelper.Vm(e._attr.showVerticalScroll,!0),n=i.XmlNodeHelper.Vm(e._attr.showSheetTabs,!0),a=i.XmlNodeHelper.Xm(e._attr.firstSheet,0),l=i.XmlNodeHelper.Xm(e._attr.activeTab,0),s=i.XmlNodeHelper.Xm(e._attr.tabRatio,600);t.Af(r,o),t.Bf(n,l,a,s)}t.readWorkbookView=f;function b(e){var t,r,o,i,n=Object.keys(e);for(t=0,r=n;t0)for(t.og(),r=void 0,o=0;o=0&&l===a.BUILT_IN_PRINT_AREA_UPPERCASE?t.pg(a.PRINT_AREA,a.processFunction(c),d,s):"_xlnm.Print_Titles"===n?t.Zg(d,c):t.pg(n,a.processFunction(c),d,s))}function m(e,t){var r,o,i=e._attr.refMode,n=!1;i&&"R1C1"===i&&(n=!0),r={iterate:e._attr.iterate,count:e._attr.iterateCount,delta:e._attr.iterateDelta},o=0,"manual"===e._attr.calcMode&&(o=1),t.Df(n,r,o)}t.readWorkbookCalcProperties=m},"./src/xlsx-io/reader/worksheet-reader.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xlsx-io/common/color-reader.ts"),i=r("./src/xml-io/xml-reader.ts"),n=r("./src/common/common.ts"),a=r("./src/common/excel-types.ts"),l=r("./src/datamodel/excel-style.ts"),s=r("./src/datamodel/excel-helper.ts"),c=r("./src/xlsx-io/reader/conditionalformat-reader.ts"),d=r("./src/xlsx-io/reader/sparkline-reader.ts"),u=r("./src/xlsx-io/reader/autofilter-reader.ts"),f=r("./src/xlsx-io/reader/datavalidation-reader.ts"),b=r("./src/xlsx-io/reader/print-reader.ts"),h=r("./src/xlsx-io/reader/ctrlprops-reader.ts"),p=r("./src/xlsx-io/reader/control-reader.ts"),m=null,g="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main";function y(e,t,r,o,n,a,l){var s,d,h=new i.XmlReader;for(h.reset(),h.setXml(e),s=15,d={},o.if=[],o.jf=[],o.Uf=0,o.Tf=0;h.read();)if(1===h.depth&&2!==h.elementType)try{switch(h.name()){case"sheetPr":S(h,r,o);break;case"dimension":C(h,r,o);break;case"sheetViews":w(h,r,o);break;case"sheetFormatPr":s=A(h,r,o);break;case"cols":T(h,r,o,n);break;case"mergeCells":k(h,r,o);break;case"sheetData":F(h,r,o,d,s,n,a);break;case"sheetProtection":L(h,r,o);break;case"conditionalFormatting":c.readConditionalFormatting(h,r,o);break;case"extLst":D(h,r,o);break;case"autoFilter":u.readAutoFilterForSheet(h,r,o);break;case"dataValidations":f.readDataValidations(h,r,o);break;case"pageMargins":b.readPageMargins(h,r,o);break;case"printOptions":b.readPrintOptions(h,r,o);break;case"pageSetup":b.readPageSetup(h,o);break;case"headerFooter":b.readHeaderFooter(h,o);break;case"rowBreaks":b.readRowColumnBreaks(h,o,!0);break;case"colBreaks":b.readRowColumnBreaks(h,o,!1);break;case"legacyDrawing":p.readLegacyDrawing(h,o);break;case"legacyDrawingHF":b.readLegacyDrawingHF(h,o);break;case"hyperlinks":B(h,r,o,t);break;case"controls":P(h,r,o,t,l);break;case"mc:AlternateContent":W(h,r,o,t,l)}}catch(e){}o.fg(r,d),o.Sf(r)}t.readWorksheets=y;function S(e,t,r){for(var i,n,a,l;e.moveToNextAttribute();)i=e.readAttributeNameAsString(),"filterMode"===i&&e.readContentAsString();if(3!==e.elementType)for(n=e.depth;e.read()&&!(e.depth<=n);)if(1===e.nodeType())switch(e.name()){case"tabColor":r.Ff(t,o.readColor(e));break;case"outlinePr":for(a=!0,l=!0;e.moveToNextAttribute();)"summaryBelow"===e.readAttributeNameAsString()?a=e.readContentAsBoolean():"summaryRight"===e.readAttributeNameAsString()&&(l=e.readContentAsBoolean());r.Ef(t,l,a);break;case"pageSetUpPr":b.readPageSetupAdditionalProperty(e,r)}}function C(e,t,r){for(var o,i,a,l,s,c,d,u;e.moveToNextAttribute();)"ref"===e.readAttributeNameAsString()&&(o=e.readContentAsString(),i=o.split(":"),a=void 0,l=void 0,2===i.length?(s=n.IndexHelper.P(i[0]),c=n.IndexHelper.P(i[1]),d=n.IndexHelper.R(i[0]),u=n.IndexHelper.R(i[1]),a=Math.max(s,c)+1,l=Math.max(d,u)+1):1===i.length&&(s=n.IndexHelper.P(i[0]),d=n.IndexHelper.R(i[0]),a=s+1,l=d+1),r.Gf(t,a,l))}function w(e,t,r){var o,i,l,s,c,d,u,f,b,h,p,m,g,y,S,C,w,A,T,v,k,F,R,E,I,L;if(r.mg(),3!==e.elementType)for(o=e.depth;e.read()&&!(e.depth<=o);)if(1===e.nodeType()&&"sheetView"===e.name()){if(x(e,t,r),i=r.Kf,l=void 0,s=void 0,i&&(l=n.IndexHelper.P(i),s=n.IndexHelper.R(i)),void 0!==l&&void 0!==s&&r.Lf(l,s,t),3===e.elementType)continue;for(c=e.depth;e.read()&&!(e.depth<=c);)if(1===e.nodeType())if("selection"===e.name()){for(d=-1,u=-1,f=0,b=[],h=[],p=[],m=[],g=[],y="",S=3;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"sqref":g=e.readContentAsString().split(" ");break;case"activeCellId":break;case"activeCell":y=e.readContentAsString();break;case"pane":C=e.readContentAsString(),C&&void 0!==a.PaneType[C]&&(S=a.PaneType[C])}for(w=0,A=g.length;w=0&&(n=new l.ExcelColor(1,o,0));break;case"showGridLines":a=e.readContentAsBoolean();break;case"showRowColHeaders":s=e.readContentAsBoolean();break;case"showFormulas":d=e.readContentAsBoolean();break;case"showZeros":u=e.readContentAsBoolean();break;case"zoomScale":c=e.readContentAsDouble(100);break;case"topLeftCell":f=e.readContentAsString();break;case"tabSelected":i=e.readContentAsBoolean()}r.Hf(t,n,a,s,c,d,u,i),r.Kf=f}function A(e,t,r){for(var o=NaN,i=NaN,n=8,a=15;e.moveToNextAttribute();)"defaultRowHeight"===e.readAttributeNameAsString()?o=e.readContentAsDouble(NaN):"defaultColWidth"===e.readAttributeNameAsString()?i=e.readContentAsDouble(NaN):"baseColWidth"===e.readAttributeNameAsString()&&(n=e.readContentAsDouble(8));return isNaN(o)||(r.Nf(t,o),a=o),r.Of(t,n,i),a}function T(e,t,r,o){var i,n,a,l,s,c,d,u;if(3!==e.elementType){for(i=e.depth;e.read()&&!(e.depth<=i);)if(1===e.nodeType()&&"col"===e.name()){for(n=0,a=0,l=0,s=0,c=0,d=!1,u=!1;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"min":n=e.readContentAsInt(0)-1;break;case"max":a=e.readContentAsInt(0)-1;break;case"style":l=e.readContentAsInt(0);break;case"width":s=e.readContentAsDouble(8);break;case"hidden":d=e.readContentAsBoolean(!1);break;case"collapsed":u=e.readContentAsBoolean(!1);break;case"outlineLevel":c=e.readContentAsInt(0)}n>=0&&a>=0&&r.Vf(t,n,a,l+o,s,d,c,u)}r._f(t,!1),v(r.Ne.sheets&&r.Ne.sheets[t])}}function v(e){var t,r,o,i;if(e&&e.columns)for(t=e.columns,r=e.columnOutlines,o=0;ol);r.Ufd);return i.Tf=0&&Ab);return d&&g&&g.isDynamicArray&&(g.isInvalid=!0),a.gg(t,o,_,f,h,p,g,y),_}function L(e,t,r){for(var o,i=[],n=!1;e.moveToNextAttribute();)o=e.readAttributeNameAsString(),"sheet"===o?(n=e.readContentAsBoolean(!1),r.Yf(t,n)):"algorithmName"===o||"hashValue"===o||"saltValue"===o||"spinCount"===o||"password"===o?i.push({name:o,value:"spinCount"===o?e.readContentAsInt():e.readContentAsString()}):i.push({name:o,value:!e.readContentAsBoolean(!1)});r.Zf(t,i,n)}function D(e,t,r){var o,i,n;if(3!==e.elementType)for(o=e.depth;e.read()&&!(e.depth<=o);)if(1===e.nodeType()){if(i=void 0,n=void 0,"ext"===e.name())for(;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"uri":i=e.readContentAsString();break;case"xmlns:x14":n=e.readContentAsString()}N(i,n)&&c.readExtensionConditionalFormating(e,t,r),M(i,n)&&d.readSparklineGroups(e,t,r),O(i,n)&&f.readExtensionDataValidation(e,t,r)}}function B(e,t,r,o){var i,a,l,s,c,d;if(3!==e.elementType)for(i=e.depth;e.read()&&!(e.depth<=i);)if(1===e.nodeType()&&"hyperlink"===e.name()){for(a={url:"",tooltip:"",target:0,drawUnderline:!0,command:""},l={row:0,col:0};e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"ref":s=e.readContentAsString(),c=s.split(":"),l.row=n.IndexHelper.P(c[0]),l.col=n.IndexHelper.R(c[0]);break;case"r:id":a.url=n.Util.pa(o[e.readContentAsString()].fileName);break;case"location":a.url?a.url=a.url+"#"+n.Util.pa(e.readContentAsString()):(d=n.Util.pa(e.readContentAsString()),"#"===d[0]&&(d=d.substr(1)),a.url="sjs://"+d);break;case"tooltip":a.tooltip=n.Util.pa(e.readContentAsString())}r.eg(t,l.row,l.col,a)}}function P(e,t,r,o,i){var a,l,s,c,d,u;if(3!==e.elementType){for(a=e.depth,l={};e.read()&&!(e.depth<=a);)if(1===e.nodeType()&&(s=void 0,c=void 0,d=void 0,"control"===e.name())){for(;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"shapeId":s=e.readContentAsString();break;case"r:id":c=e.readContentAsString();break;case"name":d=e.readContentAsString()}u=h.readCtrlProps(c,o,i),u&&n.Util.isSupportedExcelObjectType(u.objectType)&&(l[s]={rid:c,name:d,props:u})}l&&r.Hg(l,t)}}function W(e,t,r,o,i){if(3!==e.elementType)for(var n=e.depth;e.read()&&!(e.depth<=n);)1===e.nodeType()&&"controls"===e.name()&&P(e,t,r,o,i)}function _(e,t,r){var o=e===r,i=t===g;return o&&i}function N(e,t){return _(e,t,"{78C0D931-6437-407d-A8EE-F0AAD7539E65}")}function M(e,t){return _(e,t,"{05C60535-1F16-4fd2-B633-F4F36F0B64E0}")}function O(e,t){return _(e,t,"{CCE6A557-97BC-4b89-ADB6-D9C93CAAB3DF}")}},"./src/xlsx-io/reader/xlsx-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,S,C,w,x,A,T,v,k;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/excel-types.ts"),i=r("./src/datamodel/datamodel-reader.ts"),n=r("./src/xlsx-io/reader/docpropscore-reader.ts"),a=r("./src/xlsx-io/reader/docpropsapp-reader.ts"),l=r("./src/xlsx-io/reader/docpropscustom-reader.ts"),s=r("./src/xlsx-io/reader/sharedstring-reader.ts"),c=r("./src/xlsx-io/reader/theme-reader.ts"),d=r("./src/xlsx-io/reader/workbook-reader.ts"),u=r("./src/xlsx-io/reader/style-reader.ts"),f=r("./src/xlsx-io/reader/worksheet-reader.ts"),b=r("./src/xlsx-io/reader/comment-reader.ts"),h=r("./src/xlsx-io/reader/drawing-reader.ts"),p=r("./src/xlsx-io/reader/slicer-reader.ts"),m=r("./src/xlsx-io/reader/table-reader.ts"),g=r("./src/xlsx-io/reader/print-reader.ts"),y=r("./src/datamodel/excel-style.ts"),S=r("./src/xlsx-io/reader/metadata-reader.ts"),C=r("./src/xlsx-io/reader/pivot-reader.ts"),w=r("./src/xlsx-io/reader/control-reader.ts"),x=r("./src/xlsx-io/reader/timeline-reader.ts"),A=r("./src/xlsx-io/reader/externallink-reader.ts"),T=r("./src/common/common.ts"),v=null,k=function(){function e(){var e=this;e.sn={},e.tn=0,e.un=[],e.Kk=new i.ReaderDataModel}return e.prototype.Dk=function(e,t,r){var i,n,a;e&&(i=this,i.sn=e,i.Kk.Bg=t,n=new o.XFile("",""),n.Ae(e),a=n.Ee(o.RelationshipConstants.Na),a||(a=n.Ee(o.RelationshipConstants.Oa)),i.onCompleted=function(){i.vn(),i.wn(),r(i.Kk.Ne)},i.xn(n),i.yn(a))},e.prototype.xn=function(e){var t=this,r=e.Ee(o.RelationshipConstants.Ka),i=e.Ee(o.RelationshipConstants.La),n=e.Ee(o.RelationshipConstants.Ma);r&&t.zn(r),i&&t.An(i),n&&t.Bn(n)},e.prototype.zn=function(e){var t=this,r=t.Cn(e.fileName,!0);if(r)try{n.readDocPropsCoreFile(r,t.Kk)}catch(e){}},e.prototype.An=function(e){var t=this,r=t.Cn(e.fileName,!0);if(r)try{a.readDocPropsAppFile(r,t.Kk)}catch(e){}},e.prototype.Bn=function(e){var t=this,r=t.Cn(e.fileName,!0);if(r)try{l.readDocPropsCustomFile(r,t.Kk)}catch(e){}},e.prototype.yn=function(e){if(!e)throw Error("Incorrect file format.");if(this.Dn(e),this.En(e),this.Fn(e),this.Gn(e),this.Hn(e),this.In(e),this.Jn(e),0===this.un.length)throw Error("Incorrect file format.");this.Jk(e),this.Xh()},e.prototype.Dn=function(e){var t,r,i=e.Ee(o.RelationshipConstants.Sa);if(i||(i=e.Ee(o.RelationshipConstants.Ta)),i&&(t=this,r=t.Cn(i.fileName)))try{t.sharedString=s.readSharedString(r)}catch(e){}},e.prototype.En=function(e){var t,r,i=e.Ee(o.RelationshipConstants.Ua);if(i||(i=e.Ee(o.RelationshipConstants.Va)),i&&(t=this,r=t.Cn(i.fileName)))try{c.readTheme(r,this.Kk)}catch(e){}},e.prototype.Fn=function(e){var t,r,i,n,a,l,s,c,d,u=e.Fe(o.RelationshipConstants.Za);if(u)for(t=this,r=t.Kk,r.qn={},i=0;i0&&i&&i.length>0)for(n=r.row;n0&&e.writeAttributeString("year",t.year),t.month>=0&&t.month<12&&e.writeAttributeString("month",t.month),t.day>0&&t.day<32&&e.writeAttributeString("day",t.day),t.hour<24&&e.writeAttributeString("hour",t.hour),t.minute<60&&e.writeAttributeString("minute",t.minute),t.second<60&&e.writeAttributeString("second",t.second),e.writeAttributeString("dateTimeGrouping","day")})})})}function b(e,t){o.J(t.type)||e.writeLeafElement("dynamicFilter",function(){var r=s[t.type],i=t.conType,n=t.expectTypeId||0;6===i&&(r=c[n][t.type]),r&&"null"!==r?e.writeAttributeString("type",r):e.writeAttributeString("type","null"),"Q"!==r[0]&&"M"!==r[0]&&(o.J(t.value)||e.writeAttributeString("val",t.value),o.J(t.maxValue)||e.writeAttributeString("maxVal",t.maxValue))})}function h(e,t){o.J(t.type)||e.writeLeafElement("dynamicFilter",function(){var r=t.type,i=0;r&&"null"!==r?e.writeAttributeString("type",r):e.writeAttributeString("type","null"),o.J(t.value)||e.writeAttributeString("val",t.value),o.J(t.maxValue)||e.writeAttributeString("maxVal",t.maxValue)})}t.writePivotDynamicFilter=h;function p(e,t,r){o.J(t.filter1)&&o.J(t.filter2)||e.writeElement("customFilters",function(){t.and&&e.writeAttributeString("and","1")},function(){o.J(t.filter1)||e.writeLeafElement("customFilter",function(){var o=r[t.filter1.operator];"none"!==o&&e.writeAttributeString("operator",o),e.writeAttributeString("val",t.filter1.value)}),o.J(t.filter2)||e.writeLeafElement("customFilter",function(){var o=r[t.filter2.operator];"none"!==o&&e.writeAttributeString("operator",o),e.writeAttributeString("val",t.filter2.value)})})}t.writeCustomFilters=p;function m(e,t){e.writeElement("sortState",function(){e.writeAttributeString("ref",i.getRangeString([t.range]))},function(){e.writeLeafElement("sortCondition",function(){if(e.writeAttributeString("ref",i.getRangeString([t.range])),t.descending&&e.writeAttributeString("descending","1"),t.isBackColor!==l){var r=t.isBackColor?"cellColor":"fontColor";e.writeAttributeString("sortBy",r),e.writeAttributeString("dxfId",t.dxfid)}})})}t.writeSortInfo=m;function g(e,t,r){e.writeAttributeString("colId",t.autoFilterColumnId),o.J(t.hiddenButton)||e.writeAttributeString("hiddenButton",t.hiddenButton),r||o.J(t.showButton)||e.writeAttributeString("showButton",t.showButton)}function y(e,r){r&&r.range&&(r.filterColumns.length>0||r.sortInfo?e.writeElement("autoFilter",function(){e.writeAttributeString("ref",i.getRangeString([r.range]))},function(){r.filterColumns&&r.filterColumns.forEach(function(r){r.colorFilter||r.top10||r.filters||r.dynamicFilter||r.customFilters?e.writeElement("filterColumn",function(){g(e,r)},function(){o.J(r.colorFilter)?o.J(r.top10)?o.J(r.filters)?o.J(r.dynamicFilter)?o.J(r.customFilters)||p(e,r.customFilters,t.ComparisonOperators):b(e,r.dynamicFilter):f(e,r.filters):u(e,r.top10):d(e,r.colorFilter)}):e.writeLeafElement("filterColumn",function(){g(e,r)})}),r.sortInfo&&m(e,r.sortInfo)}):e.writeLeafElement("autoFilter",function(){e.writeAttributeString("ref",i.getRangeString([r.range]))}),r.sortInfo&&m(e,r.sortInfo))}t.writeAutoFilter=y;function S(e,r){r&&r.range&&(r.filterColumns.length>0||r.sortInfo?e.writeElement("autoFilter",function(){e.writeAttributeString("ref",r.range)},function(){r.filterColumns&&r.filterColumns.forEach(function(r){r.colorFilter||r.top10||r.filters||r.dynamicFilter||r.customFilters?e.writeElement("filterColumn",function(){g(e,r,!0)},function(){o.J(r.top10)?o.J(r.dynamicFilter)?o.J(r.customFilters)?o.J(r.filters)||f(e,r.filters):p(e,r.customFilters,t.PivotComparisonOperators):h(e,r.dynamicFilter):u(e,r.top10)}):e.writeLeafElement("filterColumn",function(){g(e,r,!0)})})}):e.writeLeafElement("autoFilter",function(){e.writeAttributeString("ref",i.getRangeString([r.range]))}))}t.writePivotAutoFilter=S;function C(e,t,r){var o=r.Cj(t);o&&y(e,o)}t.writeAutoFilterForSheet=C},"./src/xlsx-io/writer/chart-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,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;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/datamodel/chart-model.ts"),i=r("./src/datamodel/excel-style.ts"),n=i.UnitHelper.pixelToEMU,a=r("./src/xlsx-io/common/chart-helper.ts"),l=r("./src/common/common.ts"),s=r("./src/common/excel-types.ts"),c=r("./src/datamodel/excel-helper.ts"),d=l.Util.oa,u=null,f="val",b="name",h="type",p="prst",m="extLst",g="cNvPr",y="macro",S="effectLst",C="effectDag",w="fPublished",x="graphicFrame",A="ext",T="scrgbClr",v="srgbClr",k="hslClr",F="sysClr",R="schemeClr",E="prstClr",I="styleClr",L="noFill",D="solidFill",B="gradFill",P="blipFill",W="pattFill",_="grpFill",N="delete",M="scene3d",O="spPr",H="txPr",G="invertIfNegative",U="bubble3D",J="marker",z="grpSp",V="cxnSp",j="clrScheme",X="fontScheme",K="fmtScheme",q="layout",Y="pictureOptions",Q="order",Z="gapWidth",$="dLbls",ee="trendline",te="errBars",re="ser",oe="dropLines",ie="axId",ne="grouping",ae="varyColors",le="scaling",se="axPos",ce="majorGridlines",de="minorGridlines",ue="title",fe="numFmt",be="majorTickMark",he="minorTickMark",pe="tickLblPos",me="crossAx",ge="crosses",ye="style",Se="rotWithShape",Ce="cNvPicPr",we="nvPicPr",xe="cNvGraphicFramePr",Ae="AlternateContent",Te="clientData",ve="a",ke="cdr",Fe="r",Re="xdr",Ee="c",Ie="c15",Le="a14",De="c14",Be="mc",Pe="cx",We="cs",_e="c16r3",Ne="_xlchart.v1.",Me={},t.DrawingWriter={a:"http://schemas.openxmlformats.org/drawingml/2006/main",cdr:"http://schemas.openxmlformats.org/drawingml/2006/chartDrawing",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",xdr:"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing",c:"http://schemas.openxmlformats.org/drawingml/2006/chart",c15:"http://schemas.microsoft.com/office/drawing/2012/chart",a14:"http://schemas.microsoft.com/office/drawing/2010/main",c14:"http://schemas.microsoft.com/office/drawing/2007/8/2/chart",c16:"http://schemas.microsoft.com/office/drawing/2017/03/chart",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex"};function Oe(e){return l.J(e)||""===e}function He(e,t,r){e.writeLeafElement(t+":"+r)}function Ge(e,t,r,o,i,n,a,s){e.writeLeafElement(t+":"+r,function(){l.J(o)||!l.J(n)&&o===n||(s&&(o=s(o)),a&&(o=a[o]),e.writeAttributeString(i,o))})}function Ue(e,t,r,o,i,n,a){e.writeElement(t+":"+r,function(){var t=o[a];l.J(t)||i(e,n,a,t)})}function Je(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.sqref)||e.writeElementString("c15:sqref",o.sqref)})}function ze(e,t,r,o,i,n){e.writeLeafElement(t+":"+r,function(){var t=o[i],r=o[n];l.J(t)||e.writeAttributeString(i,t),l.J(r)||e.writeAttributeString(n,r)})}function Ve(e,t){if(!l.J(t)){var r=t.scrgbClr,o=t.srgbClr,i=t.hslClr,n=t.sysClr,a=t.schemeClr,s=t.prstClr,c=t.styleClr;l.J(r)?l.J(o)?l.J(i)?l.J(n)?l.J(a)?l.J(s)?l.J(c)||br(e,We,I,c):fr(e,ve,E,s):ur(e,ve,R,a):dr(e,ve,F,n):cr(e,ve,k,i):sr(e,ve,v,o):lr(e,ve,T,r)}}function je(e,t){var r=t.noFill,o=t.solidFill,i=t.gradFill,n=t.blipFill,a=t.pattFill,s=t.grpFill;l.J(r)?l.J(o)?l.J(i)?l.J(n)?l.J(a)?l.J(s)||Pa(e,ve,_):Ba(e,ve,W,a):Da(e,ve,P,n):Fa(e,ve,B,i):xr(e,ve,D,o):xa(e,ve,L)}function Xe(e,t,r,o){e.writeElement(t+":"+r,function(){o.noFill?Ze(o.noFill,function(){xa(e,ve,L)}):o.solidFill?Ze(o.solidFill,function(t){xr(e,ve,D,t)}):o.gradFill?Ze(o.gradFill,function(t){Fa(e,ve,B,t)}):o.blipFill?Ze(o.blipFill,function(t){Da(e,ve,P,t)}):o.pattFill?Ze(o.pattFill,function(t){Ba(e,ve,W,t)}):o.grpFill&&Ze(o.grpFill,function(){Pa(e,ve,_)})})}function Ke(e,t){Ze(t.tint,function(t){Qt(e,ve,"tint",t)}),Ze(t.shade,function(t){Qt(e,ve,"shade",t)}),Ze(t.comp,function(){rr(e,ve,"comp")}),Ze(t.inv,function(){or(e,ve,"inv")}),Ze(t.gray,function(){ir(e,ve,"gray")}),Ze(t.alpha,function(t){Qt(e,ve,"alpha",t)}),Ze(t.alphaMod,function(t){qt(e,ve,"alphaMod",t)}),Ze(t.alphaOff,function(t){Yt(e,ve,"alphaOff",t)}),Ze(t.hue,function(t){Xt(e,ve,"hue",t)}),Ze(t.hueMod,function(t){qt(e,ve,"hueMod",t)}),Ze(t.hueOff,function(t){jt(e,ve,"hueOff",t)}),Ze(t.sat,function(t){Kt(e,ve,"sat",t)}),Ze(t.satMod,function(t){Kt(e,ve,"satMod",t)}),Ze(t.satOff,function(t){Kt(e,ve,"satOff",t)}),Ze(t.lum,function(t){Kt(e,ve,"lum",t)}),Ze(t.lumMod,function(t){Kt(e,ve,"lumMod",t)}),Ze(t.lumOff,function(t){Kt(e,ve,"lumOff",t)}),Ze(t.red,function(t){Kt(e,ve,"red",t)}),Ze(t.redMod,function(t){Kt(e,ve,"redMod",t)}),Ze(t.redOff,function(t){Kt(e,ve,"redOff",t)}),Ze(t.green,function(t){Kt(e,ve,"green",t)}),Ze(t.greenMod,function(t){Kt(e,ve,"greenMod",t)}),Ze(t.greenOff,function(t){Kt(e,ve,"greenOff",t)}),Ze(t.blue,function(t){Kt(e,ve,"blue",t)}),Ze(t.blueMod,function(t){Kt(e,ve,"blueMod",t)}),Ze(t.blueOff,function(t){Kt(e,ve,"blueOff",t)}),Ze(t.gamma,function(){nr(e,ve,"gamma")}),Ze(t.invGamma,function(){ar(e,ve,"invGamma")})}function qe(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.wireframe,r=o.bandFmts,i=o.extLst;l.J(t)||kr(e,Ee,"wireframe",t),Ze(o.ser,function(t){Jo(e,Ee,re,t)}),l.J(r)||bi(e,Ee,"bandFmts",r),Ze(o.axId,function(t){Er(e,Ee,ie,t)}),l.J(i)||Dr(e,Ee,m,i)})}function Ye(e,t,r,o,i){e.writeElement(t+":"+r,function(){var t=o.cNvPr;l.J(t)||Mn(e,i,g,t),Jn(e,i,xe)})}function Qe(e,t){var r=t.axId,o=t.scaling,i=t.delete,n=t.axPos,a=t.majorGridlines,s=t.minorGridlines,c=t.title,d=t.numFmt,u=t.majorTickMark,f=t.minorTickMark,b=t.tickLblPos,h=t.spPr,p=t.txPr,m=t.crossAx,g=t.crosses,y=t.crossesAt;l.J(r)||Er(e,Ee,ie,r),l.J(o)||Di(e,Ee,le,o),l.J(i)||kr(e,Ee,N,i),l.J(n)||mi(e,Ee,se,n),l.J(a)||Vo(e,Ee,ce,a),l.J(s)||Vo(e,Ee,de,s),l.J(c)||Qr(e,Ee,ue,c),l.J(d)||mo(e,Ee,fe,d),l.J(u)||Si(e,Ee,be,u),l.J(f)||Si(e,Ee,he,f),l.J(b)||Ci(e,Ee,pe,b),l.J(h)||Sl(e,Ee,O,h),l.J(p)||Cs(e,Ee,H,p),l.J(m)||Er(e,Ee,me,m),l.J(g)||gi(e,Ee,ge,g),l.J(y)||Fr(e,Ee,"crossesAt",y)}function Ze(e,t){var r,o,i;if(!l.J(e))for(r=0,o=e.length;r0)for(var r=0;r0)for(var r=0;r0)for(var r=0;r0)for(r=0;r0)for(r=0;r0)for(r=0;r0)for(r=0;r0)for(r=0;r0)for(r=0;r0&&(i.chart.plotArea.plotAreaRegion.series=Me.TranstateSeriesDataToId(s,n,a,c)),e.writeElement(r+":"+o,function(){e.writeAttributeString("xmlns:a",t.DrawingWriter.a),e.writeAttributeString("xmlns:r",t.DrawingWriter.r),e.writeAttributeString("xmlns:cx",Me.cx)},function(){var t=i.chartData||{};t.data=c,l.J(t)||Me.WriteCT_ChartData(e,r,"chartData","",t),l.J(i.chart)||Me.WriteCT_Chart(e,r,"chart","",i.chart),l.J(i.spPr)||Sl(e,r,"spPr",i.spPr),l.J(i.txPr)||Cs(e,r,"txPr",i.txPr),l.J(i.clrMapOvr)||cn(e,r,"clrMapOvr",i.clrMapOvr),l.J(i.fmtOvrs)||Me.WriteCT_FormatOverrides(e,r,"fmtOvrs","",i.fmtOvrs),l.J(i.printSettings)||Me.WriteCT_PrintSettings(e,r,"printSettings","",i.printSettings),l.J(i.extLst)||Me.WriteCT_ExtensionList(e,r,"extLst","",i.extLst)})},Me.TranstateSeriesDataToId=function(e,t,r,i){var n,a,s,c,d,u,f,b,h=Me.TranslateNameSpace(t);for(n=0;n0?r[r.length-1].name:null,u=this.CreateNameByLastName(b),r.push({name:u,formula:d.numDim,hidden:!0}),f.id=n,f.numDim=[],e[0]&&17===e[0].layoutId?f.numDim.push({type:o.Charts.ST_NumericDimensionType.val,f:{formula:u,dir:d.numDimDir}}):f.numDim.push({type:o.Charts.ST_NumericDimensionType.size,f:{formula:u,dir:d.numDimDir}})),d.strDim&&(b=r.length>0?r[r.length-1].name:null,u=this.CreateNameByLastName(b),r.push({name:u,formula:d.strDim,hidden:!0}),f.id=f.id||n,f.strDim=[],f.strDim.push({type:o.Charts.ST_StringDimensionType.cat,f:{formula:u,dir:d.strDimDir}})),l.J(f.id)||i.push(f);return e},Me.CreateNameByLastName=function(e){e||(e="0"),e=e.replace(Ne,"");var t=parseInt(e,10)+1;return Ne+t},Me.TranslateNameSpace=function(e){var t,r,o,i={};for(t=0;t0)for(var t=0;tr+3&&(t=Zt(i)),e.writeAttributeString(f,t))})}function Zt(e){var t,r=e.toFixed(2),o=r.substr(-2);return"0"===o[1]&&(t=1,"0"===o[0]&&(t=3),r=r.substr(0,r.length-t)),r}t.DrawingWriter.WriteCT_PositiveFixedPercentage=Qt;function $t(e,t,r,o){ze(e,t,r,o,"n","d")}t.DrawingWriter.WriteCT_Ratio=$t;function er(e,t,r,o,i){e.writeLeafElement(t+":"+r,function(){l.J(i)&&(i=!0);var t=o.x,r=o.y;l.J(t)||(i&&(t=n(t)),e.writeAttributeString("x",t)),l.J(r)||(i&&(r=n(r)),e.writeAttributeString("y",r))})}t.DrawingWriter.WriteCT_Point2D=er;function tr(e,t,r,o,i){e.writeLeafElement(t+":"+r,function(){l.J(i)&&(i=!0);var t=o.cx,r=o.cy;l.J(t)||(i&&(t=n(t)),e.writeAttributeString("cx",t)),l.J(r)||(i&&(r=n(r)),e.writeAttributeString("cy",r))})}t.DrawingWriter.WriteCT_PositiveSize2D=tr;function rr(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_ComplementTransform=rr;function or(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_InverseTransform=or;function ir(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_GrayscaleTransform=ir;function nr(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_GammaTransform=nr;function ar(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_InverseGammaTransform=ar;function lr(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.r)||e.writeAttributeString(Fe,o.r),l.J(o.g)||e.writeAttributeString("g",o.g),l.J(o.b)||e.writeAttributeString("b",o.b)},function(){Ke(e,o)})}t.DrawingWriter.WriteCT_ScRgbColor=lr;function sr(e,t,r,o){e.writeElement(t+":"+r,function(){var t,r=o.val;l.J(r)||(t="string"==typeof r?r:Gt(r),e.writeAttributeString(f,t))},function(){Ke(e,o)})}t.DrawingWriter.WriteCT_SRgbColor=sr;function cr(e,t,r,o){e.writeElement(t+":"+r,function(){ +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(){ +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=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;t0)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(){ +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=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/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.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;t0)for(t=0;t0&&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/g,">").replace(/\')}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'),t&&e.push('\t\t'),r&&e.push('\t\t"),e.push("\t")}function l(e,t,r,o){if(t&&e.push('\t '),r){var i=' ';o&&(i+=' '),e.push("\t"+i+" ")}}function s(e){var t=[],r=e>0,o=e>1,i=e>2;return t.push(''),t.push(" '),o&&t.push('\t '+(i?' ':"")+" "),t.push(""),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;r0&&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;r0&&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;t0&&e.writeElement("groupItems",function(){e.writeAttributeString("count",i.length)},function(){for(var t=0;t0&&e.writeElement("cacheHierarchies",function(){e.writeAttributeString("count",t.cacheHierarchies.length)},function(){for(var r=0;r=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;r0&&e.writeElement("groupLevels",function(){e.writeAttributeString("count",t.groupLevels.length)},function(){for(var r=0;r0&&e.writeElement("groups",function(){e.writeAttributeString("count",t.groups.length)},function(){var r,o;for(r=0;r0&&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;r0&&e.writeElement("kpis",function(){e.writeAttributeString("count",t.KPIs.length)},function(){var r,o;for(r=0;r0&&e.writeElement("entries",function(){e.writeAttributeString("count",t.entries.length)},function(){for(r=0;r0&&e.writeElement("sets",function(){e.writeAttributeString("count",t.sets.length)},function(){for(r=0;r0&&e.writeElement("queryCache",function(){e.writeAttributeString("count",t.queryCache.length)},function(){for(r=0;r0&&e.writeElement("serverFormats",function(){e.writeAttributeString("count",t.serverFormats.length)},function(){for(r=0;r0&&e.writeElement("tpls",function(){e.writeAttributeString("c",t.tpls.length)},function(){for(var r=0;r=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=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;t0&&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=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;r0?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;r0?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=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=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;r0||!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;o0&&e.writeElement("colItems",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t0&&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;r0&&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;r0&&e.writeElement("dataFields",function(){e.writeAttributeString("count",t.dataFields.length)},function(){for(var r=0;r0&&e.writeElement("formats",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t=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;t0&&e.writeElement("pivotAreas",function(){e.writeAttributeString("count",t.pivotAreas.length)},function(){for(var r=0;r0&&e.writeElement("chartFormats",function(){e.writeAttributeString("count",t.chartFormats.length)},function(){for(var r=0;r=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;r0&&e.writeElement("mps",function(){e.writeAttributeString("count",t.memberProperties.length)},function(){for(r=0;r0&&e.writeElement("members",function(){e.writeAttributeString("count",t.members.length)},function(){for(r=0;r0&&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=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;r0&&e.writeElement("rowHierarchiesUsage",function(){e.writeAttributeString("count",t.colHierarchies.length)},function(){for(var r=0;r1&&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[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;t0&&(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;r0&&(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;u32767&&(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;r0&&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;o0&&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;e0?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=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;i0&&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;r0,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"); +}},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=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;t0)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;n0&&(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;r0&&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,">"))})};for(t=0;t0&&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", +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=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;l1||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=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=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=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;ry&&(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;t0&&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;t0),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;e0&&S.forEach(function(e){y++,e.id=y}),n={},a={},l=0;l0&&(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}}}')), +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;n0&&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.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="",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=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=h)return!1;switch(t[o]){case"elementStarting":for(i=!1;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"===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"!==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"===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=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=f)return!1;switch(t[r]){case"elementStarting":for(o=!1;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"!==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"===e)return!0}}},e.prototype.moveToNextAttribute=function(){for(var e,t,r=this,o=r.zp;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.op0&&(" "===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;ee.size-2};var i=function(){function e(){this.xml=new o}return e.prototype.writeDocument=function(e){this.xml.addString('\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.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.prototype.getXmlString=function(){return this.xml.getAllString()},e}();t.XmlWriter=i}})}); \ No newline at end of file diff --git a/instock/web/static/js/gc.spread.sheets.all.min.js b/instock/web/static/js/gc.spread.sheets.all.min.js index ab9c77e98..6eaa4e3d7 100644 --- a/instock/web/static/js/gc.spread.sheets.all.min.js +++ b/instock/web/static/js/gc.spread.sheets.all.min.js @@ -1,13 +1,13 @@ /*! * - * SpreadJS Library 17.1.0 + * SpreadJS Library 17.1.1 * * Copyright(c) of respective holders. All rights reserved. * * Licensed under the SpreadJS Commercial License. * */ -var GC;!function(){var e,i,t;function r(t){var n,n,n=i[t];return void 0!==n||(n=i[t]={exports:{}},e[t].call(n.exports,n,n.exports,r)),n.exports}e={"./all.entry.js":function(t,n,e){(GC=GC||{}).Spread=GC.Spread||{},GC.Spread=e("./node_modules_local/@spreadjs/js-sheets-common/index.js"),GC.Spread.CalcEngine=e("./node_modules_local/@spreadjs/js-calc/index.js"),GC.Spread.CalcEngine.BasicFunctions=e("./node_modules_local/@spreadjs/js-calc-basicfunctions/index.js"),GC.Spread.CalcEngine.AdvancedFunctions=e("./node_modules_local/@spreadjs/js-calc-advancedfunctions/index.js"),GC.Data=e("./node_modules_local/@spreadjs/js-data-manager/index.js"),GC.Spread.Sheets=e("./dist/core/core.entry.js"),GC.Spread.Sheets.Bindings=e("./dist/plugins/data/data.entry.js"),GC.Spread.Sheets.Outlines=e("./dist/plugins/group/group.entry.js"),GC.Spread.Sheets.CalcEngine=e("./dist/plugins/sheetsCalc/sheetsCalc.entry.js"),GC.Spread.Sheets.ConditionalFormatting=e("./dist/plugins/conditional/conditional.entry.js"),GC.Spread.Sheets.DataValidation=e("./dist/plugins/validation/datavalidation.entry.js"),GC.Spread.Sheets.Search=e("./dist/plugins/search/search.entry.js"),GC.Spread.Sheets.Touch=e("./dist/plugins/touch/touch.entry.js"),GC.Spread.Sheets.FloatingObjects=e("./dist/plugins/floatingObject/floatingobject.entry.js"),GC.Spread.Sheets.Sparklines=e("./dist/plugins/sparkline/sparkline-wrapper.entry.js"),GC.Spread.Sheets.Comments=e("./dist/plugins/comment/comment.entry.js"),GC.Spread.Sheets.CellState=e("./dist/plugins/cellState/cellstate.entry.js"),GC.Spread.Sheets.CellTypes=e("./dist/plugins/celltype/celltypes.entry.js"),GC.Spread.Sheets.Filter=e("./dist/plugins/filter/filter.entry.js"),GC.Spread.Sheets.Tables=e("./dist/plugins/table/table.entry.js"),GC.Spread.Sheets.Fill=e("./dist/plugins/fill/fill.entry.js"),GC.Spread.Sheets.ContextMenu=e("./dist/plugins/contextMenu/context-menu.entry.js"),GC.Spread.Sheets.FormulaTextBox=e("./dist/plugins/formulaTextbox/formulaTextBox.entry.js"),GC.Spread.Sheets.OutlineColumn=e("./dist/plugins/outlineColumn/outlineColumn.entry.js"),GC.Spread.Sheets.DragMerge=e("./dist/plugins/dragMerge/dragMerge.entry.js"),GC.Spread.Sheets.StatusBar=e("./dist/plugins/statusBar/statusBar.entry.js"),GC.Spread.Sheets.AutoMerge=e("./dist/plugins/autoMerge/autoMerge.js"),GC.Spread.Sheets.Hyperlink=e("./dist/plugins/hyperlink/hyperlink.js"),GC.Spread.Sheets.NameBox=e("./dist/plugins/namebox/namebox.entry.js"),GC.Spread.Sheets.Components=e("./dist/plugins/components/index.js"),GC.Spread.Sheets.InputMask=e("./dist/plugins/inputMask/inputMask.entry.js"),GC.Spread.Sheets.Spacing=e("./dist/plugins/spacing/spacing.js"),t.exports=GC.Spread},"./dist/core/celltype/basecelltype.js":function(n,u,t){"use strict";var c,v,ht,dt,g,Z,e,l,h,d,p,t,W,o,Q,Mt,J,vt,y,M,K,R,et,C,L,S,x,X,q,$,j,tt,b,_,A,gt,N,mt,pt,Ct,bt,i,s,wt,St,T,D,k,O,r,E,F,B,I,P,a,G;function nt(t){var n=t.isPrinting,t=t.printZoomFactor;return n&&typeof t===b&&1!==t}function U(t){var n;return!(t instanceof CanvasRenderingContext2D)&&!C(t._ae)}function H(t,n){var e,i,r,e=0,i=t.font+n,r=!U(t);return r&&D[i]?e=D[i]:(e=K(t,t.font,n),r&&(D[i]=e)),e}function w(){}function z(t,n){var e;return n/2-t/2+(8=n.width))if(0===(a=(a=t.labelOptions.alignment)===A?t.labelOptions.alignment=0:a)||1===a||2===a){if(0e.y+e.height&&(s.y=wt(s.y-(s.y+s.height-e.y-e.height),e.y))),n=(a=f.getImage(l)).width,h=a.height,ht.mt.Tt.msie&&(O[l]||(a.style.position="absolute",a.style.left="-10000px",a.style.top="-100000px",document.body.appendChild(a),O[l]={width:a.width,height:a.height},document.body.removeChild(a)),n=O[l].width,h=O[l].height),u&&ht.mt.Tt.msie&&s.x+s.width>u.x+u.width?0<(i=c=u.x+u.width-s.x)&&t.drawImage(a,0,0,i*(d=n/r),h,N(s.x),N(s.y),i,o):(c=r,t.drawImage(a,0,0,n,h,N(s.x),N(s.y),c,o))):f.addImage(l,"anonymous"),t.restore()}function an(t){var n=t.context,e=t.style,t=t.externals;dt.W.Xue(e)&&(t.left=t.left.concat(un(n,e,Z.IconPosition.leftOfText)),t.right=t.right.concat(un(n,e,Z.IconPosition.rightOfText)))}function un(n,t,e){for(var i,r,o,a,i=!1,r=0,o=t.decoration.icons;r=s&&x.col>=c&&1=v&&y.col>=g&&1=v&&y.col>=g&&1=t.width&&(i.width=0),r+a>=t.height&&(i.height=0),i},f.prototype.In=function(t,n,e,i){var r,o,r,r=this,o=nt(i)?i.printZoomFactor:i.sheet.zoom();return n=r.An(n,e,o),f.et(i.sheet,"getCellPaddingRect",r={ctx:t,options:{rect:n,context:i}}),r.options.rect},f.prototype.xn=function(t,n,e,i){var r,o,i,a,u,s,c,o,f,l,n,a,h,d,r=e.labelOptions;r&&(i=(o=i.sheet).getText(i.row,i.col,i.sheetArea),a=e.watermark,1!==(u=r.visibility))&&a&&(s=r.font||e.font||o.Dn.Nn(),1!==(c=o.zoom())&&(s=o.Dn._n(s)),o=Q(s),f=Rt(e,n)?Pt(n,e):f)&&((l=(0,v.GC$)(ht.mt.En("span"))).text(a),n=(2===u||u===A)&&""===i,a=f.height-o,h=f.y+(n&&0e.width?a.width+u.width+t.width:e.width,e=!isNaN(a&&a.height)&&a.height+u.height+t.height>e.height?a.height+u.height+t.height:e.height,r.updateEditorContainer(o,a,n,i,s={width:c,height:e},u,t)},f.prototype.Bn=function(t,n,e,i,r){return this.getCellAndPaddingHitInfo(t,n,e,i,r)},f.prototype.Ln=function(t,n,e,i,r){var o,t,o=kt(r,e)+Nt(r)+jt(r,e),t=this.getAutoFitWidth(t,n,e,i,r);return 0M-1-2?(y=y.substring(0,y.length-4)+k,c.push(y.split(k)[0].length)):c.push(x)}else if(1===d){for(A=0;AM-1-2?(y=y.replace(m[S],""),c.push(y.split(k)[0].length)):c.push(x),s[g].y=a+(o-(3*w+(y.length-3)*p))/2}else{for(c.push(0),T=m.length-1;T>=m.length-C;T--)y=m[T]+y;3*w+((y=k+y).length-3)*p+u>M-1-2&&(y=y.replace(m[m.length-C],"")),s[g].y=a+o-u-(3*w+(y.length-3)*p)-2}e[g].textInfos[0].text=y,f.Ut.$n(l,h,m,v)}else f.Ut.$n(l,h,null,v)},f.prototype.Qn=function(t,n,e,i,r,o,a,u,s,c,f,l){var h,d,v,g,m,p,b,w,y,M,C,w,S,v,g,T,l,v,x,A,g,T,I,N,k,p,C,j,D;if(n.richText&&(n={text:(n=n.converted?n:ht.util.g0(n)).text,richText:n.converted}),h=this,d=new ht.Rect(e,i,r,o),v=u.sheet?u.sheet.zoom():1,g=u.printZoomFactor,g=nt(u)?g:_,m=h.Gn(a.textIndent,u.sheet.outlineColumn,u.col,g?g*v:v),p=u.cellOverflowLayout&&u.cellOverflowLayout.expandedWidth,b=a.hAlign,w=a.formatter||a._autoFormatter,3===b&&(b=Mt(b,n,w)),M=!!(y=a.isVerticalText&&4!==b)&&J(s),C=a.font,w=h.Ft(w,n.text),S=L(!0,[],h.Pt(n,s,w,C,a.foreColor)),(0,ht.resetFillStyle)(t,u.sheet,a,f),n&&n.richText&&0C.length?S.substring(0,S.length-1)+k+C:S+k+C.substring(1,C.length),M=this.qn(i,g)}else for(m=0;mr||4===m,v=p.x,b=p.y,_=p.width,p=p.height,g)if(t.rect(v,b,_,p),t.clip(),t.beginPath(),O=i+M,1w.backgroundLeftWidth||g>w.backgroundRightWidth)&&(f=!0):(_d.backgroundLeftWidth||h>d.backgroundRightWidth)&&(v=!0):(ae-d.x&&p&&(o=d.x+b+1,M=d.width-b-1),S="",n.forEach(function(t){return S+=t.value}),h=i,(a=pn([S],f.lineHeight,l)).descenderHeight&&(h+=a.descenderHeight),f.textRect=new ht.Rect(e,h,e,a.height),g.Zn(t,l,f,o,i,m,f.lineHeight,d),M?(t.save(),t.beginPath(),t.rect(o,d.y,M,d.height),t.clip(),C=this.We(t,n,e,i,y,u,s,c,l.textDirection),t.restore()):C=this.We(t,n,e,i,y,u,s,c,l.textDirection),g.Wn(t,l,f,e,i,C-e,f.lineHeight,d),t.restore()},f.prototype.We=function(t,n,e,i,r,o,a,u,s){for(var c,f,l,l,c=this.qn(t,"0"),f=0;fn?r+=o*(u=pt(t[a]/n)):r+=o;return r}function en(t,n,e){var t=K(t);return t&&"="===t[0]||""===t&&"="===n[0]||0===e&&"="===n[0]}function rn(t){var t=t&&t.tagName;return"TEXTAREA"===t||"INPUT"===t}function on(t){return(t.ctrlKey||t.metaKey)&&t.keyCode===(t.shiftKey?At:xt)}function an(t){return(t.ctrlKey||t.metaKey)&&t.keyCode===(t.shiftKey?xt:At)}function un(t){var n,e,i;if(t&&t.content)for(n=t.content.length-1;0<=n&&((e=t.content[n])&&e.value&&e.value.endsWith(Tt));n--){for(i=e.value.length-1;0<=i&&e.value[i]===Tt;i--);if(-1!==i){e.value=e.value.substring(0,i+1);break}t.content.pop()}}function sn(t,n){t.ki(d,{sheet:t,sheetName:t.name(),row:t.ui,col:t.ci,editingText:n})}function cn(t,n,e,i,r,o,a){var u,s,c,f,l,t,i,h,i,d,v,t,r,i,g,m,u=t,s=a.sheet,c=s.zoom?s.zoom():1,l=i,t=o.textOrientation,i=o.textIndent&&0!==o.textIndent,h=o.isVerticalText;if(t&&-90<=t&&t<=90&&!i&&!h&&(i=yt(t*Math.PI/180),l=(r-a.lineHeight*wt(i))/bt(i)),v={},r=(t=o.formatter)&&"General"!==t,i=D(t),g=o._autoFormatter&&o._autoFormatter.formatCached&&"General"!==o._autoFormatter.formatCached,(r="string"==typeof t?r&&!i:r)?d=o.formatter:g?d=o._autoFormatter:s.parent&&s.parent.options.numbersFitMode===x.NumbersFitMode.mask?d=R.Context.Nt(n,e,l,o,c):s.parent&&s.parent.options.numbersFitMode===x.NumbersFitMode.overflow&&(d=o._autoFormatter),!(f=i&&(e instanceof Date||"boolean"==typeof e||e instanceof Boolean||"number"==typeof e)?u.format(e,t,{}):u.format(et(e),d,v,a))||!f.endsWith(Tt)||!0!==o.wordWrap&&(5!==o.hAlign||a.sheet.options.showFormulas&&a.isFormula)||(f=(0,L.r2e)(f),un(v)),!0!==o.shrinkToFit&&!h&&it(e)&&s.parent){switch(m=f,s.parent.options.numbersFitMode){case x.NumbersFitMode.mask:m=u.wi(n,f,l,o,c,a,v,s);break;case x.NumbersFitMode.overflow:m=u.overflow(n,a,e,o,s,f,v)}f=m}return f}function o(t){var n=Dt.call(this)||this;return n.allowOverflow=!0,n.typeName="1",n.editorType=F(t)?1:t,n}function fn(t){var n,t,e,i,r,n=["0","0","0","0"];return typeof t===It&&(r=i=void 0,1===(e=(t=t.split(" ",4)).length)?n=[i=t[0],i,i,i]:2===e?n=[i=t[0],r=t[1],i,r]:3===e?(r=t[1],n=[t[0],r,t[2],r]):4===e&&(n=[t[0],t[1],t[2],t[3]])),n}u=this&&this.__extends||(jt=function(t,n){return(jt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}))(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}jt(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextCellType=t.EditorType=t.xHe=void 0,e=n("Common"),h=n("./dist/core/worksheet/worksheet.js"),E=n("./dist/core/util/domUtil.js"),i=n("./dist/core/util/common.js"),l=n("./dist/core/celltype/celltype.ns.js"),R=n("./dist/core/celltype/basecelltype.js"),x=n("./dist/core/core.enum.js"),L=n("./dist/core/util/common.js"),n=n("CalcEngine"),j=!!n,F=e.Common.lt.ht,X=i.q,d=i.Events.EditChange,v=i.hi,r=i.mt,s=i.di,D=r.St,g=r.En,c=r.Tt,B=c.msie,_=c.edge,q=c.chrome,y=r.vi,$=r.gt,m=r.mi,p=r.gi,f=r.pi(),tt=r.vt,b=r.bi,w=r.Mt,O=r.yi,nt=r.yt,et=r.wt,it=r.Ct,P="left",rt="right",ot="center",at="top",M="gcUIElement",G="none",C=".gcEditingInput",S="gcEditingInput",U="width",H="height",ut="text-align",z="hidden",V="word-wrap",Y="overflow",st="vertical-align",Z="normal",ct="break-word",ft="overflow-y",lt="scroll",ht="word-break",dt="float",T=window,A=document,vt=.337,gt=f.ipad,mt=f.iphone||gt||f.android,I=null,N=void 0,pt=Math.ceil,W=Math.min,bt=Math.sin,wt=Math.cos,yt=Math.abs,Mt=Math.max,Q=parseInt,Ct="\xa0",St="\u200b",Tt=" ",xt=90,At=89,It="string",Nt="number",t.xHe=cn,(n=kt=t.EditorType||(t.EditorType={}))[n.textarea=0]="textarea",n[n.editableDiv=1]="editableDiv",Dt=R.Base,u(o,Dt),o.prototype.getText=function(t,n){return t},o.prototype.paintValue=function(t,n,e,i,r,o,a,u){var s,c,f,l,h,d,v,g,m,p,b,w,p,m,y,p,M,C,M,S,C,T,p,v,M,s=this,c=u.sheet,f=c.zoom?c.zoom():1;if(n=s.getText(n,u),l={},u.quotePrefix=a.quotePrefix,v=(d=a.formatter)&&"General"!==d,g=D(d),"string"==typeof d&&(v=v&&!g),m=a.textOrientation,p=a.textIndent&&0!==a.textIndent,b=a.isVerticalText,w=r,m&&-90<=m&&m<=90&&!p&&!b&&(p=yt(m*Math.PI/180),w=(o-u.lineHeight*wt(p))/bt(p)),m=(y=s.Pn(t,h,a,u,e,i,r,o)).externals,p=s.Hn(m.left),M=s.Hn(m.right),2===(C=3===(C=a.hAlign)?$(C,n,a.formatter||a._autoFormatter):C)?w-=M:0===C&&(w-=p),M=a._autoFormatter&&a._autoFormatter.formatCached&&"General"!==a._autoFormatter.formatCached,v?S=a.formatter:M?S=a._autoFormatter:c.parent&&c.parent.options.numbersFitMode===x.NumbersFitMode.mask?S=R.Context.Nt(t,n,w,a,f):c.parent&&c.parent.options.numbersFitMode===x.NumbersFitMode.overflow&&(S=a._autoFormatter),!(h=g&&(n instanceof Date||"boolean"==typeof n||n instanceof Boolean||"number"==typeof n)?s.format(n,d,{}):s.format(et(n),S,l,u))||!h.endsWith(Tt)||!0!==a.wordWrap&&(5!==a.hAlign||u.sheet.options.showFormulas&&u.isFormula)||(h=(0,L.r2e)(h),un(l)),C=new L.Rect(e,i,r,o),this.adjustRectForIconSet(a.hAlign,u.sheet,u.row,u.col,u.sheetArea,C,l.content&&this.hasInfilling(l.content)),e=C.x,r=C.width,!0!==a.shrinkToFit&&!b)if(it(n)){if(c.parent){switch(T=h,c.parent.options.numbersFitMode){case x.NumbersFitMode.mask:T=this.wi(t,h,w,a,f,u,l,c);break;case x.NumbersFitMode.overflow:T=this.overflow(t,u,n,a,c,h,l)}h=T}}else void 0===c.Ut.Ci(u.row,u.col,u.sheetArea)||a.showEllipsis||c.Ut.$n(u.row,u.col,void 0,u.sheetArea);p=a.labelOptions,v=a.watermark,M=!p||0!==p.visibility,v&&!h&&M?s.paintText(t,v,e,i,r,o,a,u,v,l,vt):(h||l.content&&l.content.length||a.cellButtons&&a.cellButtons.length)&&s.paintText(t,n,e,i,r,o,a,u,h,l,N,m)},o.prototype.wi=function(t,n,e,i,r,o,a,u){var s,t,e,s,s=o.cellOverflowLayout&&o.cellOverflowLayout.expandedWidth,t=R.Context.Et(t,n,F(s)?e:s,i,r),e=o.row,s=o.col;return n!==t?(delete a.content,i.textIndent=0,u.Ut.$n(e,s,u.getText(e,s,o.sheetArea),o.sheetArea)):u.Ut.$n(e,s,void 0,o.sheetArea),t},o.prototype.overflow=function(t,n,e,i,r,o,a){var u,s,t,c,f,l,h,u=n.row,s=n.col;if(i.wordWrap&&(i.wordWrap=!1),t=w(t,i.font,o),c=r.Jt.Kt(s),l=void 0,!(f=n.cellOverflowLayout)&&cf.backgroundWidth:f.valueWidth/2>f.backgroundLeftWidth||f.valueWidth/2>f.backgroundRightWidth)?r.getText(u,s,n.sheetArea):void 0}return r.Ut.$n(u,s,l,n.sheetArea),o},o.prototype.Si=function(t){return null!=t},o.prototype.createEditorElement=function(t,n){var t,t,n,e,t=t&&t.sheet&&t.sheet.parent&&t.sheet.parent.Ti,t=p(t)+1e3;return(0,E.GC$)(n).css("z-index",t),n=Ot(this.editorType),(0,E.GC$)(n).css({font:"normal 11pt calibri",outline:G,resize:G,border:G,"vertical-align":"top","min-height":"0px","box-sizing":"content-box",background:"transparent"}).css(V,Z).attr({tabindex:-1,autocomplete:"off",contenteditable:!0}).css(Y,z).attr(M,S),c.safari&&(0,E.GC$)(n).css("-webkit-user-select","auto"),(e=J((0,E.GC$)(n)[0]))&&((0,E.GC$)(n).css("display","table-cell"),(0,E.GC$)(n).css(ht,Z)),(0,E.GC$)(n)[0]},o.prototype.getEditorValue=function(t,n){var e,i,n,t;return t&&(e=K(t),i=!F(e)&&0n.start?i-1:i)){for(u=0;t.childNodes[u]&&0<=i;)i-=t.childNodes[u].textContent.length,u++;r.setEnd(t.childNodes[u-1],i+t.childNodes[u-1].textContent.length)}else r.setEnd(t.childNodes[0],i);r.collapse(!0),o.removeAllRanges(),o.addRange(r)}else t.value&&(a=(s=t.value).length,e=W(e,a),i=i>n.start?i-1:i,i=W(i,a),t.setSelectionRange(e,i))},o.prototype.activateEditor=function(n,l,h,d,v,g,m){var p,b,w,n,o,n,t,e,i,r,a,u,e,p=d&&d.sheet;if(p&&(b=this,w=n)){if(n=(0,E.GC$)(w),o=J(w),b._editingElement=w,n.attr(M)||n.attr(M,S),f.android&&n.bind("input"+C,function(t){try{b.fi(w,l,h,t,d,!1,v,g,m)}catch(t){}}),n.bind("keydown"+C,function(t){var n,e,i;try{n=t.keyCode,e={event:t,editor:w,value:K(w),caret:b.Xmt(w),cancel:!1},8===n?(R.Base.et(p,"editorBackspace",e),!0===e.cancel?(y(t),k(w,e.value),b.qmt(w,e.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:e.value})):o&&s.processBackspaceAndLeftArrowKeyEvent(t,!0)):46===n?(R.Base.et(p,"editorDelete",e),!0===e.cancel?(y(t),k(w,e.value),b.qmt(w,e.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:e.value})):o&&s.processDeleteAndRightArrowKeyEvent(t,!0)):37===n&&o?s.processBackspaceAndLeftArrowKeyEvent(t,!1):39===n&&o&&s.processDeleteAndRightArrowKeyEvent(t,!1),on(t)&&o?(R.Base.et(p,"editorUndo",e),!0===e.cancel&&(y(t),k(w,e.value),b.qmt(w,e.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:e.value}))):an(t)&&o&&(R.Base.et(p,"editorRedo",e),!0===e.cancel)&&(y(t),k(w,e.value),b.qmt(w,e.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:e.value})),((i=229===n||0===n)||b.Ni)&&!f.android||b.fi(w,l,h,t,d,!0,v,g,m),Wt(t,d,b.Ni,v,g,m)}catch(t){}}),n.bind("keyup"+C,function(t){var n,e,i,r,n=t.keyCode,e=t.ctrlKey,i=t.altKey,r;(!(229===n||0===n)&&!b.Ni||f.android)&&(46!==n&&8!==n&&(90!==n&&89!==n||!e||i)||(o&&"\n"===w.innerText&&(0,E.GC$)(w).empty(),b.fi(w,l,h,t,d,!1,v,g,m)),13!==n&&9!==n&&27!==n&&16!==n||e||i)&&sn(p,b.getEditorValue(w,d))}),n.bind("mousedown"+C,function(){1===p.Di&&(p.Di=2,p._i(1,2))}),n.bind("textInput"+C,function(t){var n,n,e,e;if(c.safari){if(t.metaKey||t.altKey||t.ctrlKey||"Enter"===t.key)return;n=t.key||t.data,n={editor:w,value:n,caret:b.Xmt(w),cancel:!1},R.Base.et(p,"editorInput",n),!0===n.cancel&&(y(t),k(w,n.value),e=p.getCellType(d.row,d.col),w.parentNode&&w.parentNode.parentNode&&e&&e.Rn(w.parentNode.parentNode,l,p.getCellRect(d.row,d.col),d),b.qmt(w,n.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:n.value}))}t.data&&(b.probabilityAddPercentSpec||b.probabilityAddPercent)&&/^[0-9]+.?[0-9]*/.test(t.data)&&((e=document.createElement("span")).innerText="%",e.id="updateEditorImpAddPercent",("#text"===w.firstChild.nodeName?w:w.firstChild).appendChild(e),delete b.probabilityAddPercentSpec,delete b.probabilityAddPercent)}),n.bind("compositionstart"+C,function(){b.Ni=!0,b.Ei=K(w)}),n.bind("compositionupdate"+C,function(t){b.fi(w,l,h,t||I,d,!0,v,g,m)}),n.bind("compositionend"+C,function(t){var n,n,e,e,n,t,i,n=t.data,n={editor:w,value:n,caret:b.Xmt(w),isImeInputting:!0,cancel:!1};R.Base.et(p,"editorInput",n),!0===n.cancel&&(y(t),k(w,n.value),e=p.getCellType(d.row,d.col),w.parentNode&&w.parentNode.parentNode&&e&&e.Rn(w.parentNode.parentNode,l,p.getCellRect(d.row,d.col),d),b.qmt(w,n.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:n.value})),b.fi(w,l,h,t||I,d,!1,v,g,m),b.Ni=!1,e=t.keyCode,n=t.ctrlKey,t=t.altKey,i=b.getEditorValue(w,d)||"",b.Ei!==i&&(e===N||13!==e&&9!==e||n||t)&&sn(p,i)}),o&&(n.bind("copy"+C,function(t){var n=T.clipboardData,e=t.clipboardData,i=Xt(t.currentTarget);F(i)||(n&&n.setData?(n.setData("text",i),y(t)):e&&e.setData&&(e.setData("text/plain",i),y(t)))}),n.bind("cut"+C,function(t){var n,n,e,i,r,r,n=Xt(t.currentTarget),e="editorCut";!F(n)&&w.Rse&&(T.clipboardData&&T.clipboardData.setData?(i="text",r=T.clipboardData):t.clipboardData&&t.clipboardData.setData&&(i="text/plain",r=t.clipboardData),n={editor:w,clipboardData:r,dataName:i,caret:b.Xmt(w)},R.Base.et(p,e,n),y(t),k(w,n.value),r=p.getCellType(d.row,d.col),w.parentNode&&w.parentNode.parentNode&&r&&r.Rn(w.parentNode.parentNode,l,p.getCellRect(d.row,d.col),d),b.qmt(w,n.caret)),b.ji=T.setTimeout(function(){sn(p,b.getEditorValue(w,d)),b.ji&&(clearTimeout(b.ji),delete b.ji)},10)}),n.bind("paste"+C,function(t){var n,e,i,r,o,a,u,s,c,f,n=!1;try{e=void 0,B&&!_&&T.clipboardData&&T.clipboardData.getData?e=T.clipboardData.getData("text"):t.clipboardData&&t.clipboardData.getData&&(e=t.clipboardData.getData("text/plain")),e=Zt(e=e.replace(/\r\n?/g,"\n")),i={editor:w,pasteValue:e,caret:b.Xmt(w),cancel:!1},R.Base.et(p,"editorPaste",i),!0===i.cancel?(n=!0,k(w,i.pasteValue),b.qmt(w,i.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:i.pasteValue})):0<(r=T.getSelection()).rangeCount&&((a=(o=r.getRangeAt(0)).startOffset)!==(u=o.endOffset)&&o.deleteContents(),en(w,e,a)||(s=A.createElement("span"),"\n"===(e=8203===e[(c=e.length)-1].charCodeAt(0)&&"\n"===e[c-2]?e.replace(/\u200B/g,""):e)[(c=e.length)-1]&&(e="\r"===e[c-2]?e.substr(0,c-2):e.substr(0,c-1)),s.innerText=e,o.insertNode(s),(f=document.createRange()).setStartAfter(s),f.setEndAfter(s),f.collapse(!1),r.removeAllRanges(),r.addRange(f),n=!0))}catch(t){}if(b.ji=T.setTimeout(function(){b.fi(w,l,h,t,d,!1,v,g,m),p.parent&&p.parent.ki(L.Events.FormulaTextBoxUpdatePosition,void 0),sn(p,b.getEditorValue(w,d)),b.ji&&(clearTimeout(b.ji),delete b.ji)},10),n)return!1}),n.bind("keypress"+C,function(t){var n,n,t;t.metaKey||t.altKey||t.ctrlKey||"Enter"===t.key||(n=t.key||t.data,n={editor:w,value:n,caret:b.Xmt(w),cancel:!1},R.Base.et(p,"editorInput",n),!0===n.cancel&&(y(t),k(w,n.value),t=p.getCellType(d.row,d.col),w.parentNode&&w.parentNode.parentNode&&t&&t.Rn(w.parentNode.parentNode,l,p.getCellRect(d.row,d.col),d),b.qmt(w,n.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:n.value})))})),t=n=void 0,(n=!d||(t=j&&p.getFormula(d.row,d.col))?n:l.mask)&&n.pattern&&"="===n.pattern[0]){e=p.Lp,i=p.Uw(3),r=0<=d.row?d.row:0,a=0<=d.col?d.col:0;try{u=e.evaluate(i,n.pattern,r,a),n.pattern="object"==typeof u?"":""+u}catch(t){n.pattern=""}}e={editor:w,ns:C,mask:n,text:K(w)},R.Base.et(p,"activateEditor",e)}},o.prototype.deactivateEditor=function(t,n){var e,i,r,o,a,u,s,c,f,l,e=this;if(R.Base.et(n&&n.sheet,"deactivateEditor",{editor:t}),t&&n&&n.sheet){if(i=n.sheet,e.Ni&>&&i.Oi)try{(0,E.GC$)(t).trigger("compositionend"+C)}catch(t){}if(r=i.getActualStyle(n.row,n.col,n.sheetArea).cellPadding)for(o=[P,at],a=[3,0],u=0;ut.width&&(A=e.width=t.width-e.x,a.width=t.width-a.x),d.css(U,A-y).css(H,e.height-x),c.options.rightToLeft?h.maxWidth=l.left+t.BA-e.x-y-C:h.maxWidth=l.left+t.width-e.x-y-C,d.css("max-width",h.maxWidth+"px"),h.maxHeight=l.top+t.height-e.y-x-S,h.minWidth=Q(h.style.width,10),h.minHeight=Q(h.style.height,10)),a=Rt(h),A=Lt(h),l=(o=(o=o&&i&&i.keyCode&&c.rt.Pi(i)&&0===a&&A===g.length)||c.Ai)&&!n.mask?"":g,w=(w=h.style.font)||v._n(v.Nn()),t=tt(w),i&&f.probabilityAddPercent&&(e=i.key)&&-1!==L.NUMBER_ARRAY.indexOf(e)&&(c.parent.options.enableFormulaTextbox?(v=h.innerText,/[a-z]/i.test(v)?f.probabilityAddPercent=!1:((I=document.createElement("span")).innerText="%",I.id="updateEditorImpAddPercent",h.appendChild(I),delete f.probabilityAddPercent)):((I=document.createElement("span")).innerText="%",I.id="updateEditorImpAddPercent",h.firstChild.appendChild(I),delete f.probabilityAddPercent)),!o&&i&&(e=c.parent,c.rt.Pi(i)&&8!==i.keyCode&&F(e.contextMenu.menuView.getHost())&&(l=Yt(h,l,a,A,i)),f.Ni)&&(l=B?g:f.Ei+i.data),N=[],j=k=void 0,D=(N=n&&(n.wordWrap||5===p)?X.un(l,Q(h.style.width)-y,w):l.split(/\r\n|\r|\n/)).length,h.minWidth=W(h.minWidth,h.maxWidth),h.minHeight=W(h.minHeight,h.maxHeight),n&&(n.wordWrap||5===p)||0h.minWidth&&_<=h.maxWidth&&!r?(d.css(U,_).css(V,Z).css(Y,z),m&&d.css(ht,Z)):_>h.maxWidth&&!r&&(d.css(U,h.maxWidth-2).css(V,ct).css(Y,z),v=nn(O,h.maxWidth,t,I)):a<_&&!r&&(v=nn(O,a,t,I))}v<=h.minHeight?d.css(H,h.minHeight).css(dt,G):v>h.minHeight&&v<=h.maxHeight?d.css(H,v).css(dt,G):v>h.maxHeight&&d.css(H,h.maxHeight-1).css(ft,lt).css(dt,P)}return b=d.css(ut),A=d.width()-h.minWidth,F(b)||b===P||(b===ot?d.css(P,h.originalLeft-A/2):b===rt&&d.css(P,h.originalLeft-A)),n&&m&&(1===(g=n.vAlign)?d.css(st,"middle"):2===g&&d.css(st,"bottom")),f=Q(h.style.height)+x+M+S,i=y+T+C,d.css(ft)===lt?{width:h.offsetWidth+i,height:o?0:f}:{width:Q(h.style.width)+i,height:f}}},o.prototype.updateEditor=function(t,n,e,i,r,o,a){var n,i,u;return e=this.Bi(t,n,e,I,i,!1,r,o,a),B&&t&&(i=(n=(0,E.GC$)(t))[0].style.width,n.width(i+1).width(i)),u=!F(e)&&t?new L.Rect(t.style.left?parseFloat(t.style.left):0,t.style.top?parseFloat(t.style.top):0,e.width,e.height):u},o.prototype.fi=function(t,n,e,i,r,o,a,u,s){var i,o;e=this.Bi(t,n,e,i,r,o,a,u,s),B&&t&&(o=(i=(0,E.GC$)(t))[0].style.width,i.width(o+1).width(o)),!F(e)&&t&&(F(a)?a=e:(a.x=N,a.y=N),this.updateEditorContainer(t,e,n,r,a,u,s))},o.prototype.updateEditorContainer=function(t,n,e,i,r,o,a){var u,u,s;i&&i.preventOverflow?(Dt.prototype.updateEditorContainer.call(this,t,n,e,i,r,o,a),(u=t.parentNode)&&n&&(u=(0,E.GC$)(u),0<(s=n.width))&&u.width(s)):(n&&n.width&&r&&r.width&&(r.width=n.width),n&&n.height&&r&&r.height&&(r.height=n.height),Dt.prototype.updateEditorContainer.call(this,t,n,e,i,r,o,a))},o.prototype.updateImeMode=function(t,n,e){this.isImeAware()&&t&&R.Context.hn(t,n)},o.prototype.isReservedKey=function(t,n){var e=t.srcElement||t.target,i=t.keyCode,r=t.ctrlKey,o=t.altKey,a=t.metaKey;return!!(e&&n&&n.isEditing&&e.getAttribute(M)===S)&&(13===i&&(r&&!t.shiftKey||o)||90===i&&r&&!o||89===i&&r&&!o||67===i&&(r||a)&&!o||88===i&&(r||a)&&!o)},o.prototype.isImeAware=function(t){return!0},o.prototype.toJSON=function(){var t,n,e,t={},n=this;for(e in n)n.hasOwnProperty(e)&&"_editingElement"!==e&&(t[e]=n[e]);return t},o.prototype.lfe=function(t,n){var n={eventName:n,eventArg:t};return R.Base.et(t.sheet,"onCreateEventArg",n),n.eventArg},t.TextCellType=e=o,t.Text=e,l.ti[1]=e},"./dist/core/core.definition.js":function(){},"./dist/core/core.entry.js":function(t,n,e){"use strict";var i,r,o,a,u,s,s,c,r,f,l;function h(t,n){return a._Ae(t,n)}i=this&&this.__createBinding||(Object.create?function(t,n,e,i){void 0===i&&(i=e);var r=Object.getOwnPropertyDescriptor(n,e);r&&("get"in r?n.__esModule:!r.writable&&!r.configurable)||(r={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,i,r)}:function(t,n,e,i){t[i=void 0===i?e:i]=n[e]}),r=this&&this.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||i(n,t,e)},Object.defineProperty(n,"__esModule",{value:!0}),n.Aoe=n._Ae=n.CellTypes=n.xHe=n.isPrintZoomFactorExist=n.paintDecoration=n.cellTypeContext_paintBackground=void 0,e("./dist/core/core.res.en.js"),o=e("./dist/core/util/common.js"),Object.defineProperty(n,"getTypeFromString",{set:function(t){o.getTypeFromString=t},get:function(){return o.getTypeFromString}}),r(e("./dist/core/core.ns.js"),n),r(e("./dist/core/core.interface.js"),n),r(e("./dist/core/core.enum.js"),n),r(e("./dist/core/util/common.js"),n),r(e("./dist/core/excel-io-util/common.js"),n),r(e("./dist/core/excel-io-util/excel-types.js"),n),r(e("./dist/core/excel-io-util/range-parser.js"),n),r(e("./dist/core/excel-io-util/excel-helper.js"),n),r(e("./dist/core/excel-io-util/excel-style.js"),n),r(e("./dist/core/util/domUtil.js"),n),e("./dist/core/core.definition.js"),s=-1,1===(u=(a=e("./dist/core/lc/releaseLc.js"))._pt)&&(s=Math.floor(5*Math.random()),n["G".concat("C","$")]["s".concat("d")]=s),r(e("./dist/core/util/theme.js"),n),r(e("./dist/core/util/basedialog.js"),n),r(e("./dist/core/util/imageLoader.js"),n),r(e("./dist/core/util/tasks.js"),n),r(e("./dist/core/util/crypto.js"),n),r(e("./dist/core/util/dataManager.js"),n),r(e("./dist/core/util/custom-list.js"),n),0===s&&e("./dist/core/lc/lcRegister.js"),r(e("./dist/core/worksheet/stylehelper.js"),n),1===s&&e("./dist/core/lc/lcRegister.js"),r(e("./dist/core/worksheet/style.js"),n),2===s&&e("./dist/core/lc/lcRegister.js"),r(e("./dist/core/worksheet/clipboardhelper.js"),n),3===s&&e("./dist/core/lc/lcRegister.js"),r(e("./dist/core/worksheet/worksheet-model.js"),n),4===s&&e("./dist/core/lc/lcRegister.js"),r(e("./dist/core/worksheet/worksheet.js"),n),r(e("./dist/core/worksheet/worksheet-formatter.js"),n),r(e("./dist/core/worksheet/worksheet-actions.js"),n),r(e("./dist/core/worksheet/worksheet-border.js"),n),e("./dist/core/worksheet/worksheet-edit.js"),r(e("./dist/core/worksheet/worksheet-event.js"),n),e("./dist/core/worksheet/worksheet-json.js"),r(e("./dist/core/worksheet/worksheet-render.js"),n),e("./dist/core/worksheet/worksheet-selection.js"),e("./dist/core/worksheet/worksheet-sort.js"),r(e("./dist/core/worksheet/worksheet-ui.js"),n),r(e("./dist/core/worksheet/worksheet-static.js"),n),r(e("./dist/core/worksheet/worksheet-clipboard.js"),n),r(e("./dist/core/workbook/workbook.js"),n),r(e("./dist/core/workbook/workbook-json.js"),n),r(e("./dist/core/workbook/sheettabbase.js"),n),r(e("./dist/core/workbook/sheettab.js"),n),r(e("./dist/core/workbook/sheettab2007.js"),n),r(e("./dist/core/workbook/workbookpanelex.js"),n),r(e("./dist/core/workbook/customThemeManager.js"),n),r(e("./dist/core/worksheet/attachmentManager/index.js"),n),r(e("./dist/core/util/styleManager.js"),n),s=e("./dist/core/celltype/cellType.entry.js"),n.CellTypes=s,c=e("./dist/core/celltype/basecelltype.js"),Object.defineProperty(n,"cellTypeContext_paintBackground",{enumerable:!0,get:function(){return c.cellTypeContext_paintBackground}}),Object.defineProperty(n,"paintDecoration",{enumerable:!0,get:function(){return c.paintDecoration}}),Object.defineProperty(n,"isPrintZoomFactorExist",{enumerable:!0,get:function(){return c.isPrintZoomFactorExist}}),r=e("./dist/core/celltype/headercelltype.js"),f=e("./dist/core/celltype/textcelltype.js"),l=e("./dist/core/celltype/textcelltype.js"),Object.defineProperty(n,"xHe",{enumerable:!0,get:function(){return l.xHe}}),s.Hi=r,s.zi=f,1!==u&&2!==u||a.Vi(n),n._Ae=h,n.Aoe=a.Aoe},"./dist/core/core.enum.js":function(L,t){"use strict";var n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,y,M,C,S,T,x,A,I,N,k,j,D,_,O,F,B,P,G,U,H,z,V,Y,Z,W,Q,E,J,K,X,q,$,tt,nt,et,it,rt,ot,at,ut,st,ct,ft,lt,ht,dt,vt,gt,mt,pt,bt,wt,yt,Mt,Ct,St,Tt,xt,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,R,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R;Object.defineProperty(t,"__esModule",{value:!0}),t.CaptionAlignment=t.IconPosition=t.ButtonPosition=t.DropDownType=t.ButtonImageType=t.ButtonVisibility=t.RowColumnStates=t.CellStatesType=t.SortState=t.SheetArea=t.VerticalPosition=t.HorizontalPosition=t.Yi=t.ImageLayout=t.ValueType=t.RangeChangedAction=t.HeaderAutoText=t.StorageType=t.SelectionUnit=t.SelectionPolicy=t.ImeMode=t.EditorStatus=t.VisualState=t.Zi=t.VertAlign=t.VerticalAlign=t.HorizontalAlign=t.TextDirectionType=t.TextDecorationType=t.LabelVisibility=t.LabelAlignment=t.PasteOperationOptions=t.CopyToOptions=t.ClipboardPasteOptions=t.AutoFitType=t.InvalidOperationType=t.ResizeZeroIndicator=t.HeaderOptions=t.CalculationType=t.CalculationMode=t.CopyPasteHeaderOptions=t.ResizeMode=t.InsertShiftCell=t.ShowScrollTip=t.ScrollbarAppearance=t.ShowResizeTip=t.WorksheetType=t.ScrollbarState=t.AxisInfoChangeType=t.ScrollType=void 0,t.AllowDragHeaderToMove=t.ListType=t.SheetTabState=t.DefaultChangeValueType=t.ClipboardActionType=t.OpenMode=t.OpenSaveFileType=t.FileType=t.TableStyleElement=t.SortBy=t.UsedRangeType=t.ColumnHeaderFitMode=t.AllSheetsListVisibility=t.SheetTabVisible=t.SheetType=t.HyperlinkTargetType=t.TabStripPosition=t.NumbersFitMode=t.PatternType=t.DropDownAlignment=t.DropDownDirection=t.DropdownListValue=t.GroupSort=t.CalendarStartDay=t.CalendarPage=t.LayoutDisplayAs=t.LayoutDirection=void 0,(E=n=t.ScrollType||(t.ScrollType={}))[E.pixels=0]="pixels",E[E.continuous=1]="continuous",(E=e=t.AxisInfoChangeType||(t.AxisInfoChangeType={}))[E.setRowCount=0]="setRowCount",E[E.setColumnCount=1]="setColumnCount",E[E.addRows=2]="addRows",E[E.deleteRows=3]="deleteRows",E[E.addColumns=4]="addColumns",E[E.deleteColumns=5]="deleteColumns",E[E.setRowHeight=6]="setRowHeight",E[E.setColumnWidth=7]="setColumnWidth",E[E.setRowVisible=8]="setRowVisible",E[E.setColumnVisible=9]="setColumnVisible",E[E.filterRows=10]="filterRows",E[E.outlineExpandRows=11]="outlineExpandRows",E[E.outlineExpandColumns=12]="outlineExpandColumns",(E=i=t.ScrollbarState||(t.ScrollbarState={}))[E.hide=0]="hide",E[E.show=1]="show",E[E.active=2]="active",E[E.inactive=3]="inactive",(E=r=t.WorksheetType||(t.WorksheetType={}))[E.worksheet=0]="worksheet",E[E.reportTemplateSheet=1]="reportTemplateSheet",(E=o=t.ShowResizeTip||(t.ShowResizeTip={}))[E.none=0]="none",E[E.column=1]="column",E[E.row=2]="row",E[E.both=3]="both",(E=a=t.ScrollbarAppearance||(t.ScrollbarAppearance={}))[E.skin=0]="skin",E[E.mobile=1]="mobile",(E=u=t.ShowScrollTip||(t.ShowScrollTip={}))[E.none=0]="none",E[E.horizontal=1]="horizontal",E[E.vertical=2]="vertical",E[E.both=3]="both",(E=s=t.InsertShiftCell||(t.InsertShiftCell={}))[E.right=0]="right",E[E.down=1]="down",(E=c=t.ResizeMode||(t.ResizeMode={}))[E.normal=0]="normal",E[E.split=1]="split",(E=f=t.CopyPasteHeaderOptions||(t.CopyPasteHeaderOptions={}))[E.noHeaders=0]="noHeaders",E[E.rowHeaders=1]="rowHeaders",E[E.columnHeaders=2]="columnHeaders",E[E.allHeaders=3]="allHeaders",(E=l=t.CalculationMode||(t.CalculationMode={}))[E.auto=0]="auto",E[E.manual=1]="manual",(E=h=t.CalculationType||(t.CalculationType={}))[E.all=0]="all",E[E.rebuild=1]="rebuild",E[E.minimal=2]="minimal",E[E.regular=3]="regular",(E=d=t.HeaderOptions||(t.HeaderOptions={}))[E.noHeaders=0]="noHeaders",E[E.rowHeaders=1]="rowHeaders",E[E.columnHeaders=2]="columnHeaders",E[E.allHeaders=3]="allHeaders",(E=v=t.ResizeZeroIndicator||(t.ResizeZeroIndicator={}))[E.default=0]="default",E[E.enhanced=1]="enhanced",(E=g=t.InvalidOperationType||(t.InvalidOperationType={}))[E.setFormula=0]="setFormula",E[E.copyPaste=1]="copyPaste",E[E.dragFill=2]="dragFill",E[E.dragDrop=3]="dragDrop",E[E.changePartOfArrayFormula=4]="changePartOfArrayFormula",E[E.changeSheetName=5]="changeSheetName",E[E.table=6]="table",E[E.filter=7]="filter",E[E.hideSheet=8]="hideSheet",E[E.sort=9]="sort",E[E.pivotTable=10]="pivotTable",E[E.ptOverlapValue=11]="ptOverlapValue",E[E.groupProtected=12]="groupProtected",E[E.editProtected=13]="editProtected",E[E.cutProtected=14]="cutProtected",E[E.customName=15]="customName",E[E.dataObjectCellTypeInsertData=16]="dataObjectCellTypeInsertData",E[E.reportSheet=17]="reportSheet",E[E.sizeLimitExceeded=18]="sizeLimitExceeded",(E=m=t.AutoFitType||(t.AutoFitType={}))[E.cell=0]="cell",E[E.cellWithHeader=1]="cellWithHeader",(E=p=t.ClipboardPasteOptions||(t.ClipboardPasteOptions={}))[E.all=0]="all",E[E.values=1]="values",E[E.formatting=2]="formatting",E[E.formulas=3]="formulas",E[E.valuesAndFormatting=4]="valuesAndFormatting",E[E.formulasAndFormatting=5]="formulasAndFormatting",E[E.comments=6]="comments",E[E.validation=7]="validation",E[E.usingSourceTheme=8]="usingSourceTheme",E[E.noBorder=9]="noBorder",E[E.columnWidths=10]="columnWidths",E[E.formulasAndNumberFormatting=11]="formulasAndNumberFormatting",E[E.valuesAndNumberFormatting=12]="valuesAndNumberFormatting",E[E.valuesAndSourceFormatting=13]="valuesAndSourceFormatting",E[E.allAndColumnWidth=14]="allAndColumnWidth",(E=b=t.CopyToOptions||(t.CopyToOptions={}))[E.value=1]="value",E[E.formula=2]="formula",E[E.comment=4]="comment",E[E.outline=8]="outline",E[E.sparkline=16]="sparkline",E[E.span=32]="span",E[E.style=64]="style",E[E.tag=128]="tag",E[E.bindingPath=256]="bindingPath",E[E.conditionalFormat=512]="conditionalFormat",E[E.hyperlink=1024]="hyperlink",E[E.defaultValue=2048]="defaultValue",E[E.altText=4096]="altText",E[E.all=8191]="all",(E=w=t.PasteOperationOptions||(t.PasteOperationOptions={}))[E.none=0]="none",E[E.add=1]="add",E[E.subtract=2]="subtract",E[E.multiply=3]="multiply",E[E.divide=4]="divide",(E=y=t.LabelAlignment||(t.LabelAlignment={}))[E.topLeft=0]="topLeft",E[E.topCenter=1]="topCenter",E[E.topRight=2]="topRight",E[E.bottomLeft=3]="bottomLeft",E[E.bottomCenter=4]="bottomCenter",E[E.bottomRight=5]="bottomRight",(E=M=t.LabelVisibility||(t.LabelVisibility={}))[E.visible=0]="visible",E[E.hidden=1]="hidden",E[E.auto=2]="auto",(E=C=t.TextDecorationType||(t.TextDecorationType={}))[E.underline=1]="underline",E[E.lineThrough=2]="lineThrough",E[E.overline=4]="overline",E[E.doubleUnderline=8]="doubleUnderline",E[E.none=0]="none",(E=S=t.TextDirectionType||(t.TextDirectionType={}))[E.context=0]="context",E[E.leftToRight=1]="leftToRight",E[E.rightToLeft=2]="rightToLeft",(E=T=t.HorizontalAlign||(t.HorizontalAlign={}))[E.left=0]="left",E[E.center=1]="center",E[E.right=2]="right",E[E.general=3]="general",E[E.centerContinuous=4]="centerContinuous",E[E.distributed=5]="distributed",(E=x=t.VerticalAlign||(t.VerticalAlign={}))[E.top=0]="top",E[E.center=1]="center",E[E.bottom=2]="bottom",(E=A=t.VertAlign||(t.VertAlign={}))[E.normal=0]="normal",E[E.superscript=1]="superscript",E[E.subscript=2]="subscript",(E=I=t.Zi||(t.Zi={}))[E.smallDecrement=0]="smallDecrement",E[E.smallIncrement=1]="smallIncrement",E[E.largeDecrement=2]="largeDecrement",E[E.largeIncrement=3]="largeIncrement",E[E.thumbPosition=4]="thumbPosition",E[E.thumbTrack=5]="thumbTrack",E[E.endScroll=6]="endScroll",(E=N=t.VisualState||(t.VisualState={}))[E.normal=0]="normal",E[E.highlight=1]="highlight",E[E.selected=2]="selected",E[E.active=3]="active",E[E.hover=4]="hover",E[E.activeNotSelected=5]="activeNotSelected",(E=k=t.EditorStatus||(t.EditorStatus={}))[E.ready=0]="ready",E[E.enter=1]="enter",E[E.edit=2]="edit",(E=j=t.ImeMode||(t.ImeMode={}))[E.auto=1]="auto",E[E.active=2]="active",E[E.inactive=4]="inactive",E[E.disabled=0]="disabled",(E=D=t.SelectionPolicy||(t.SelectionPolicy={}))[E.single=0]="single",E[E.range=1]="range",E[E.multiRange=2]="multiRange",(E=_=t.SelectionUnit||(t.SelectionUnit={}))[E.cell=0]="cell",E[E.row=1]="row",E[E.column=2]="column",(E=O=t.StorageType||(t.StorageType={}))[E.data=1]="data",E[E.style=2]="style",E[E.comment=4]="comment",E[E.tag=8]="tag",E[E.sparkline=16]="sparkline",E[E.axis=32]="axis",E[E.bindingPath=64]="bindingPath",E[E.hyperlink=256]="hyperlink",E[E.altText=512]="altText",(E=F=t.HeaderAutoText||(t.HeaderAutoText={}))[E.blank=0]="blank",E[E.numbers=1]="numbers",E[E.letters=2]="letters",(E=B=t.RangeChangedAction||(t.RangeChangedAction={}))[E.dragDrop=0]="dragDrop",E[E.dragFill=1]="dragFill",E[E.clear=2]="clear",E[E.paste=3]="paste",E[E.sort=4]="sort",E[E.setArrayFormula=5]="setArrayFormula",E[E.evaluateFormula=6]="evaluateFormula",(E=P=t.ValueType||(t.ValueType={}))[E.normal=0]="normal",E[E.richText=1]="richText",(E=G=t.ImageLayout||(t.ImageLayout={}))[E.stretch=0]="stretch",E[E.center=1]="center",E[E.zoom=2]="zoom",E[E.none=3]="none",(E=U=t.Yi||(t.Yi={})).ThumbButton="thumbButton",E.TrackButton="trackButton",E.LeftButton="leftButton",E.RightButton="rightButton",E.UpButton="upButton",E.DownButton="downButton",(E=H=t.HorizontalPosition||(t.HorizontalPosition={}))[E.left=0]="left",E[E.center=1]="center",E[E.right=2]="right",E[E.nearest=3]="nearest",(E=z=t.VerticalPosition||(t.VerticalPosition={}))[E.top=0]="top",E[E.center=1]="center",E[E.bottom=2]="bottom",E[E.nearest=3]="nearest",(E=V=t.SheetArea||(t.SheetArea={}))[E.corner=0]="corner",E[E.colHeader=1]="colHeader",E[E.rowHeader=2]="rowHeader",E[E.viewport=3]="viewport",(E=Y=t.SortState||(t.SortState={}))[E.none=0]="none",E[E.ascending=1]="ascending",E[E.descending=2]="descending",(E=Z=t.CellStatesType||(t.CellStatesType={}))[E.hover=1]="hover",E[E.invalid=2]="invalid",E[E.readonly=4]="readonly",E[E.edit=8]="edit",E[E.active=16]="active",E[E.selected=32]="selected",E[E.dirty=64]="dirty",E[E.invalidFormula=128]="invalidFormula",(E=W=t.RowColumnStates||(t.RowColumnStates={}))[E.hover=1]="hover",E[E.invalid=2]="invalid",E[E.edit=8]="edit",E[E.active=16]="active",E[E.selected=32]="selected",E[E.dirty=64]="dirty",E[E.inserted=128]="inserted",E[E.invalidFormula=512]="invalidFormula",(E=Q=t.ButtonVisibility||(t.ButtonVisibility={}))[E.always=0]="always",E[E.onSelected=1]="onSelected",E[E.onEditing=2]="onEditing",(R=E=t.ButtonImageType||(t.ButtonImageType={}))[R.none=0]="none",R[R.custom=1]="custom",R[R.clear=2]="clear",R[R.cancel=3]="cancel",R[R.ok=4]="ok",R[R.dropdown=5]="dropdown",R[R.ellipsis=6]="ellipsis",R[R.left=7]="left",R[R.right=8]="right",R[R.plus=9]="plus",R[R.minus=10]="minus",R[R.undo=11]="undo",R[R.redo=12]="redo",R[R.search=13]="search",R[R.separator=14]="separator",R[R.spinLeft=15]="spinLeft",R[R.spinRight=16]="spinRight",R[R.collapse=17]="collapse",R[R.expand=18]="expand",E.calcel=E.cancel,(R=J=t.DropDownType||(t.DropDownType={}))[R.colorPicker=0]="colorPicker",R[R.dateTimePicker=1]="dateTimePicker",R[R.timePicker=2]="timePicker",R[R.monthPicker=3]="monthPicker",R[R.list=4]="list",R[R.slider=5]="slider",R[R.calculator=6]="calculator",R[R.workflowList=7]="workflowList",R[R.multiColumn=8]="multiColumn",(E=K=t.ButtonPosition||(t.ButtonPosition={}))[E.left=0]="left",E[E.right=1]="right",E[E.leftOfText=2]="leftOfText",E[E.rightOfText=3]="rightOfText",(R=X=t.IconPosition||(t.IconPosition={}))[R.left=0]="left",R[R.right=1]="right",R[R.leftOfText=2]="leftOfText",R[R.rightOfText=3]="rightOfText",R[R.outsideLeft=4]="outsideLeft",R[R.outsideRight=5]="outsideRight",(E=q=t.CaptionAlignment||(t.CaptionAlignment={}))[E.left=0]="left",E[E.right=1]="right",(R=$=t.LayoutDirection||(t.LayoutDirection={}))[R.horizontal=0]="horizontal",R[R.vertical=1]="vertical",(E=tt=t.LayoutDisplayAs||(t.LayoutDisplayAs={}))[E.inline=0]="inline",E[E.popup=1]="popup",E[E.tree=2]="tree",(R=nt=t.CalendarPage||(t.CalendarPage={}))[R.year=1]="year",R[R.month=2]="month",R[R.day=3]="day",(E=et=t.CalendarStartDay||(t.CalendarStartDay={}))[E.monday=1]="monday",E[E.tuesday=2]="tuesday",E[E.wednesday=3]="wednesday",E[E.thursday=4]="thursday",E[E.friday=5]="friday",E[E.saturday=6]="saturday",E[E.sunday=7]="sunday",(R=it=t.GroupSort||(t.GroupSort={}))[R.none=0]="none",R[R.group=1]="group",R[R.child=2]="child",R[R.full=3]="full",(E=rt=t.DropdownListValue||(t.DropdownListValue={}))[E.string=0]="string",E[E.array=1]="array",(R=ot=t.DropDownDirection||(t.DropDownDirection={}))[R.Down=0]="Down",R[R.Up=1]="Up",R[R.Left=2]="Left",R[R.Right=3]="Right",(E=at=t.DropDownAlignment||(t.DropDownAlignment={}))[E.Near=0]="Near",E[E.Center=1]="Center",E[E.Far=2]="Far",(R=ut=t.PatternType||(t.PatternType={}))[R.solid=1]="solid",R[R.darkGray=2]="darkGray",R[R.mediumGray=3]="mediumGray",R[R.lightGray=4]="lightGray",R[R.gray125=5]="gray125",R[R.gray0625=6]="gray0625",R[R.darkHorizontal=7]="darkHorizontal",R[R.darkVertical=8]="darkVertical",R[R.darkDown=9]="darkDown",R[R.darkUp=10]="darkUp",R[R.darkGrid=11]="darkGrid",R[R.darkTrellis=12]="darkTrellis",R[R.lightHorizontal=13]="lightHorizontal",R[R.lightVertical=14]="lightVertical",R[R.lightDown=15]="lightDown",R[R.lightUp=16]="lightUp",R[R.lightGrid=17]="lightGrid",R[R.lightTrellis=18]="lightTrellis",(E=st=t.NumbersFitMode||(t.NumbersFitMode={}))[E.mask=0]="mask",E[E.overflow=1]="overflow",(R=ct=t.TabStripPosition||(t.TabStripPosition={}))[R.bottom=0]="bottom",R[R.top=1]="top",R[R.left=2]="left",R[R.right=3]="right",(E=ft=t.HyperlinkTargetType||(t.HyperlinkTargetType={}))[E.blank=0]="blank",E[E.self=1]="self",E[E.parent=2]="parent",E[E.top=3]="top",(R=lt=t.SheetType||(t.SheetType={}))[R.tableSheet=0]="tableSheet",R[R.ganttSheet=1]="ganttSheet",R[R.customSheetTab=2]="customSheetTab",R[R.reportSheet=3]="reportSheet",R[R.printSheet=9007199254740991]="printSheet",(E=ht=t.SheetTabVisible||(t.SheetTabVisible={}))[E.hidden=0]="hidden",E[E.visible=1]="visible",E[E.veryHidden=2]="veryHidden",(R=dt=t.AllSheetsListVisibility||(t.AllSheetsListVisibility={}))[R.hide=0]="hide",R[R.show=1]="show",R[R.auto=2]="auto",(E=vt=t.ColumnHeaderFitMode||(t.ColumnHeaderFitMode={}))[E.normal=0]="normal",E[E.vertical=1]="vertical",E[E.stack=2]="stack",(R=gt=t.UsedRangeType||(t.UsedRangeType={}))[R.all=262143]="all",R[R.axis=1]="axis",R[R.style=2]="style",R[R.rowStyle=4]="rowStyle",R[R.colStyle=8]="colStyle",R[R.data=16]="data",R[R.formula=32]="formula",R[R.span=64]="span",R[R.shape=128]="shape",R[R.table=256]="table",R[R.sparkLine=512]="sparkLine",R[R.comment=1024]="comment",R[R.slicer=2048]="slicer",R[R.pivottable=4096]="pivottable",R[R.filter=8192]="filter",R[R.dataValidation=16384]="dataValidation",R[R.conditionFormat=32768]="conditionFormat",R[R.chart=65536]="chart",R[R.picture=131072]="picture",(E=mt=t.SortBy||(t.SortBy={})).cellColor="cellColor",E.fontColor="fontColor",E.icon="icon",E.value="value",(R=pt=t.TableStyleElement||(t.TableStyleElement={})).wholeTable="wholeTable",R.firstColumnStripe="firstColumnStripe",R.secondColumnStripe="secondColumnStripe",R.firstRowStripe="firstRowStripe",R.secondRowStripe="secondRowStripe",R.lastColumn="lastColumn",R.firstColumn="firstColumn",R.headerRow="headerRow",R.totalRow="totalRow",R.firstHeaderCell="firstHeaderCell",R.lastHeaderCell="lastHeaderCell",R.firstTotalCell="firstTotalCell",R.lastTotalCell="lastTotalCell",(E=bt=t.FileType||(t.FileType={}))[E.excel=0]="excel",E[E.ssjson=1]="ssjson",E[E.csv=2]="csv",(R=wt=t.OpenSaveFileType||(t.OpenSaveFileType={}))[R.excel=0]="excel",R[R.sjs=1]="sjs",(E=yt=t.OpenMode||(t.OpenMode={}))[E.normal=0]="normal",E[E.lazy=1]="lazy",E[E.incremental=2]="incremental",(R=Mt=t.ClipboardActionType||(t.ClipboardActionType={}))[R.copy=1]="copy",R[R.cut=2]="cut",R[R.reset=3]="reset",(E=Ct=t.DefaultChangeValueType||(t.DefaultChangeValueType={})).Expression="expr",E.Value="value",(R=St=t.SheetTabState||(t.SheetTabState={}))[R.hover=1]="hover",R[R.selected=2]="selected",R[R.active=4]="active",R[R.protected=8]="protected",R[R.normal=16]="normal",(E=Tt=t.ListType||(t.ListType={}))[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",(R=xt=t.AllowDragHeaderToMove||(t.AllowDragHeaderToMove={}))[R.none=0]="none",R[R.column=1]="column",R[R.row=2]="row",R[R.both=3]="both"},"./dist/core/core.interface.js":function(t,n){"use strict";var e,n;Object.defineProperty(n,"__esModule",{value:!0}),n.CornerPosition=void 0,(n=e=n.CornerPosition||(n.CornerPosition={}))[n.leftTop=1]="leftTop",n[n.rightTop=2]="rightTop",n[n.leftBottom=4]="leftBottom",n[n.rightBottom=8]="rightBottom"},"./dist/core/core.ns.js":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SR=void 0;var e=e("./dist/core/core.res.en.js");n.SR={en:e}},"./dist/core/core.res.en.js":function(t,n,e){"use strict";var i,r;for(r in Object.defineProperty(n,"__esModule",{value:!0}),n.ARIA_Cell=n.ARIA_Scrollbar_TRACK_Button=n.ARIA_Scrollbar_Bottom_Button=n.ARIA_Scrollbar_Right_Button=n.ARIA_Scrollbar_Thumb_Button=n.ARIA_Scrollbar_Top_Button=n.ARIA_Scrollbar_Left_Button=n.ARIA_Blank=n.ARIA_NewSheet=n.ARIA_SheetTab=n.ARIA_NextButton=n.ARIA_PreviousButton=n.ARIA_Last=n.ARIA_NextArrow=n.ARIA_PreviousArrow=n.ARIA_First=n.ARIA_Resize=n.NeedCanvasSupport=n.Exp_OverlappingSpans=n.Exp_SheetIsNull=n.Exp_DestSheetIsNull=n.Exp_ArrayFormulaSpan=n.Exp_SheetNameConflict=n.Exp_SheetNameInvalid=n.Exp_EmptyNamedStyle=n.NewTab=n.Tip_Width=n.Tip_Height=n.Tip_Column_Offset=n.Tip_Column=n.Tip_Row=n.Exp_PasteChangeMergeCell=n.Exp_PasteDestinationCellsLocked=n.Exp_InvalidCopyPasteSize=n.Exp_PasteSourceCellsLocked=n.Exp_ArgumentOutOfRange=n.Exp_NotAFunction=n.Exp_InvalidRange=n.Exp_IndexOutOfRange=n.Exp_CustomNameBothInUse=n.Exp_InvalidCustomName=n.Exp_InvalidCustomFunction=n.Exp_DestIsNull=n.Exp_SrcIsNull=n.Exp_InvalidAndSpace=n.Exp_ChangePartOfArray=n.Exp_MultipleSelections=n.Exp_InvalidPastedArea=n.Exp_PasteExtentIsNull=n.Exp_NotSupported=void 0,n.cancel=n.ok=n.pasteSpecialOptionDialog=n.STEP=n.Exp_InvalidOperationSizeLimitExceeded=n.EXP_UNSUPPORT_CRYPTO_ALGORITHM=n.GENERAL=n.NORMAL=n.EXP_INVALID_PASSWORD=n.EXP_NO_PASSWORD=n.EXP_FILE_FORMAT=n.EXP_IO=n.Exp_InvalidOperationInProtect=n.Exp_InvalidSortPartTableOrMultiTableInRange=n.Exp_InvalidSortSpanInRange=n.Exp_InvalidSortArrayFormulaInRange=n.Exp_InsertCopiedCutCellsAffectTable=n.Exp_InsertCopiedCutCellsOverlap=n.Exp_InsertCopiedCutCellsNoRange=n.Exp_InsertCopiedCutCellsOnSpanTable=n.Exp_InsertCopiedCutCells=n.REPORT_SUMMARY=n.SHEET_NAME=n.ARIA_ColumnHeader=n.ARIA_RowHeader=n.ARIA_HasComment=n.ARIA_HasHyperlink=n.ARIA_HasButton=n.ARIA_HasCheckbox=n.ARIA_HasFormula=n.ARIA_HasValue=void 0,n.Exp_NotSupported="Not supported exception",n.Exp_PasteExtentIsNull="pasteExtent is null",n.Exp_InvalidPastedArea="The pasted area should have the same size as the copy or cut area.",n.Exp_MultipleSelections="This action won't work on multiple selections.",n.Exp_ChangePartOfArray="Cannot change part of an array.",n.Exp_InvalidAndSpace="Invalid {0}: {1} (must be between {2} and {3}).",n.Exp_SrcIsNull="The argument 'src' is null",n.Exp_DestIsNull="The argument 'dest' is null",n.Exp_InvalidCustomFunction="invalid custom function",n.Exp_InvalidCustomName="invalid custom name",n.Exp_CustomNameBothInUse="Both the current name and new name are referenced in cell formulas",n.Exp_IndexOutOfRange="Index is out of range!",n.Exp_InvalidRange="Invalid range",n.Exp_NotAFunction="Not A Function",n.Exp_ArgumentOutOfRange="ArgumentOutOfRange",n.Exp_PasteSourceCellsLocked="Source sheet's cells are locked.",n.Exp_InvalidCopyPasteSize="The copy and paste areas are not the same size.",n.Exp_PasteDestinationCellsLocked="The cell you are trying to change is protected and therefore read-only.",n.Exp_PasteChangeMergeCell="Cannot change part of a merged cell.",n.Tip_Row="Row: ",n.Tip_Column="Column: ",n.Tip_Column_Offset="Offset: ",n.Tip_Height="Height: {0} pixels",n.Tip_Width="Width: {0} pixels",n.NewTab="New...",n.Exp_EmptyNamedStyle="The name of named style cannot be empty or null",n.Exp_SheetNameInvalid="The sheet name can not be blank or contains these characters : *, :, [, ], ?, \\, /",n.Exp_SheetNameConflict="That name is already taken. Try a different one.",n.Exp_ArrayFormulaSpan="Array formulas are not valid in merged cells.",n.Exp_DestSheetIsNull="destSheet is null",n.Exp_SheetIsNull="sheet is null.",n.Exp_OverlappingSpans="This operation will cause overlapping spans.",n.NeedCanvasSupport="You need a browser which full supports HTML5 Canvas to run SpreadJS",n.ARIA_Resize="resize",n.ARIA_First="first",n.ARIA_PreviousArrow="previous arrow",n.ARIA_NextArrow="next arrow",n.ARIA_Last="last",n.ARIA_PreviousButton="previous button",n.ARIA_NextButton="next button",n.ARIA_SheetTab="sheet tab",n.ARIA_NewSheet="new sheet",n.ARIA_Blank="blank",n.ARIA_Scrollbar_Left_Button="scrollbar left button",n.ARIA_Scrollbar_Top_Button="scrollbar top button",n.ARIA_Scrollbar_Thumb_Button="scrollbar thumb button",n.ARIA_Scrollbar_Right_Button="scrollbar right button",n.ARIA_Scrollbar_Bottom_Button="scrollbar bottom button",n.ARIA_Scrollbar_TRACK_Button="scrollbar track button",n.ARIA_Cell="cell",n.ARIA_HasValue="has value {0}",n.ARIA_HasFormula="has formula {0}",n.ARIA_HasCheckbox="has checkbox {0}",n.ARIA_HasButton="has button {0}",n.ARIA_HasHyperlink="has hyperlink {0}",n.ARIA_HasComment="has comment {0}",n.ARIA_RowHeader="row header",n.ARIA_ColumnHeader="column header",n.SHEET_NAME="Sheet",n.REPORT_SUMMARY="Sum",i=e("./dist/core/lc/lr.en.js"))i.hasOwnProperty(r)&&(n[r]=i[r]);n.Exp_InsertCopiedCutCells="This selection is not valid. The copy/paste area must be the same size",n.Exp_InsertCopiedCutCellsOnSpanTable="This won\u2019t work because it would move cells in a table on your worksheet or will cause some merged cells to unmerge.",n.Exp_InsertCopiedCutCellsNoRange="New cells can not be inserted as there are non-empty cells that would extend beyond the worksheet.",n.Exp_InsertCopiedCutCellsOverlap="This selection isn't valid. Make sure the copy and paste areas don't overlap unless they are the same size and shape.",n.Exp_InsertCopiedCutCellsAffectTable="You can't rearrange cells within a table this way, because it might affect other table cells in an unexpected way.",n.Exp_InvalidSortArrayFormulaInRange="Can't sort current range as array formula exist.",n.Exp_InvalidSortSpanInRange="Can't sort current range as span exist.",n.Exp_InvalidSortPartTableOrMultiTableInRange="Can't sort current range as part table or more than one table exist.",n.Exp_InvalidOperationInProtect="The cell or chart you're trying to change is on a protected sheet. To make a change, unprotect the sheet.",n.EXP_IO="File read and write exception.",n.EXP_FILE_FORMAT="Incorrect file format.",n.EXP_NO_PASSWORD="The Excel file cannot be opened because the workbook/worksheet is password protected.",n.EXP_INVALID_PASSWORD="The specified password is incorrect.",n.NORMAL="Normal",n.GENERAL="General",n.EXP_UNSUPPORT_CRYPTO_ALGORITHM="Unsupported cryptographic algorithms",n.Exp_InvalidOperationSizeLimitExceeded="File size exceeds set limit the max size.",n.STEP={start:"start load {0}",loadFileData:"load {0}'s data to spread",loadSheetData:"load {0}'s data",startCalc:"start reCalc",loadSheetFormula:"load {0}'s formula",parseFile:"parse {0} content"},n.pasteSpecialOptionDialog={title:"Paste Special",paste:"Paste",pasteOptions:{all:"All",formulas:"Formulas",values:"Values",formats:"Formats",comments:"Comments",validation:"Validation",usingSourceTheme:"All using Source theme",noBorders:"All except borders",columnWidth:"Column widths",formulasAndNumberFormats:"Formulas and number formats",valueAndNumberFormats:"Value and number formats"},operation:"Operation",operationOptions:{none:"None",add:"Add",subtract:"Subtract",multiply:"Multiply",divide:"Divide"},skipBlanks:"Skip blanks",transpose:"Transpose",pasteLink:"Paste Link"},n.ok="OK",n.cancel="Cancel"},"./dist/core/excel-io-util/common.js":function(t,n,e){"use strict";var i,r,u,v,g,s,c,f,l,o,a,h,d,m,e,p,b,w,y,M,C;function S(){}function T(){}function x(){}function A(t,n){var n,n,e,n=n.toUpperCase(),n=p[n];return n?(e=m,(e=n.reg?n.prefix:m)+t):t}function I(n,t,e){var i,r,e,t,i,r=function(t){return n.getColumnWidth(t)},e=N(e,function(t){return n.getRowHeight(t)},n.getRowCount(),n.defaults.rowHeight),t=N(t,r,n.getColumnCount(),n.defaults.colWidth);return{rowIndex:e.index,rowOffset:e.offset,colIndex:t.index,colOffset:t.offset}}function N(t,n,e,i){for(var r,o,a,u,s,c,r=-1,o=-1,a=0,u=0;u=g.XmlConstants.Io||t>=g.XmlConstants.xo)||D.So(e,n,t,r)})},D.Uce=function(t){var n,e,i,r;function o(t,n){var t=parseInt(t.v_||0,10);return n?s.ExcelHelper.emuToPixles(t):t}return{row:n=o(t.row),col:e=o(t.col),rowOff:i=o(t.rowOff,!0),colOff:r=o(t.colOff,!0)}},D.Gce=function(t,n){var n,e,i,n=D.Uce(n),e,i;return{x:v.util.w0(t,0,n.col,!1)+n.colOff,y:v.util.w0(t,0,n.row,!0)+n.rowOff}},D.No=function(t){return t=Math.min(t,g.XmlConstants.xo-1),w.nr(t)},D.ko=function(t){return!t||f(t.fileType)||t.fileType===r.OpenSaveFileType.sjs},D.encodeNameFormula=function(t){if(t)return t.replace(/&/g,"&").replace(//g,">")},D.Oge=function(t,n){var n,e,i,r,o,a,t,n={n_:"definedName",c_:[D.addXLFNPrefix(D.encodeNameFormula(n))]},e=t.name,i=t.localSheetId,r=t.e,o=t.comment,a=t.isReadOnly,t=t.hidden;return f(e)||(n.name=v.util.vo(e)),f(i)||(n.localSheetId=i),f(r)||(n.e=r),f(o)||(n.comment=v.util.vo(o)),f(a)||(n.isReadOnly=a),f(t)||(n.hidden=t),n},M=D,n.Util=M,n.SJSStylePropsToStyleProps={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"},n.protectionOptionsMap={allowSelectLockedCells:"selectLockedCells",allowSelectUnlockedCells:"selectUnlockedCells",allowFilter:"autoFilter",allowSort:"sort",allowInsertColumns:"insertColumns",allowInsertRows:"insertRows",allowDeleteColumns:"deleteColumns",allowDeleteRows:"deleteRows",allowEditObjects:"objects"},n.excelSupportProtectionOptions={objects:!0,formatCells:!0,formatColumns:!0,formatRows:!0,insertColumns:!0,insertRows:!0,insertHyperlinks:!0,deleteColumns:!0,deleteRows:!0,selectLockedCells:!0,selectUnlockedCells:!0,sort:!0,autoFilter:!0,pivotTables:!0},_.builtInNumberFormat=function(){return 0===(_.Md=_.Md?_.Md:{count:0}).count&&_.initBuiltNumberFormat(),_.Md},_.languageIndepedentNumberFormat=function(){return 0===(_.Ch=_.Ch?_.Ch:{count:0}).count&&_.initLanguageIndepedentNumberFormat(),_.Ch},_.formatCodeTable=function(){return _.Sh=_.Sh?_.Sh:[]},_.customNumberFormat=function(){return _.Th=_.Th?_.Th:{count:0}},_.getCultureInfo=function(){var t,n,t=M.ro(),n;return t&&t.GC&&t.GC.Spread&&t.GC.Spread.Common&&M.ro().GC.Spread.Common.CultureManager.getCultureInfo()||M.ao()},_.initBuiltNumberFormat=function(){var t,n,n,e,i,r,o,a,t=_.Md;if(t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yyyy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yyyy h:mm",t[37]="#,##0_);(#,##0)",t[38]="#,##0_);[Red](#,##0)",t[39]="#,##0.00_);(#,##0.00)",t[40]="#,##0.00_);[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mm:ss.0",t[48]="##0.0E+0",t[49]="@",t.count=49,M.oo())if("zh-cn"===(n=M.oo()))t[14]="yyyy/m/d",t[17]="mmm-yy",t[22]="yyyy/m/d h:mm",t[27]='yyyy"\u5e74"m"\u6708"',t[28]='m"\u6708"d"\u65e5"',t[29]='m"\u6708"d"\u65e5"',t[30]="m-d-yy",t[31]='yyyy"\u5e74"m"\u6708"d"\u65e5"',t[32]='h"\u65f6"mm"\u5206"',t[33]='h"\u65f6"mm"\u5206"ss"\u79d2"',t[34]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"',t[35]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2"',t[36]='yyyy"\u5e74"m"\u6708"',t[39]="#,##0.00;-#,##0.00",t[40]="#,##0.00;[Red]-#,##0.00",t[50]='yyyy"\u5e74"m"\u6708"',t[51]='m"\u6708"d"\u65e5"',t[52]='yyyy"\u5e74"m"\u6708"',t[53]='m"\u6708"d"\u65e5"',t[54]='m"\u6708"d"\u65e5"',t[55]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"',t[56]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2"',t[57]='yyyy"\u5e74"m"\u6708"',t[58]='m"\u6708"d"\u65e5"',t.count=58;else if("ja-jp"===n)t[14]="yyyy/m/d",t[15]="dd-mmm-yy",t[16]="dd-mmm",t[17]="mmm-yy",t[22]="yyyy/mm/dd h:mm",t[27]="[$-411]ge.m.d",t[28]='[$-411]ggge"\u5e74"m"\u6708"d"',t[29]='[$-411]ggge"\u5e74"m"\u6708"d"',t[30]="m/d/yy",t[31]='yyyy"\u5e74"m"\u6708"d"\u65e5"',t[32]='h"\u6642"mm"\u5206"',t[33]='h"\u6642"mm"\u5206"ss"\u79d2"',t[34]='yyyy"\u5e74"m"\u6708"',t[35]='m"\u6708"d"\u65e5"',t[36]="[$-411]ge.m.d",t[38]="#,##0;[Red]-#,##0",t[39]="#,##0.00;-#,##0.00",t[40]="#,##0.00;[Red]-#,##0.00",t[50]="[$-411]ge.m.d",t[51]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',t[52]='yyyy"\u5e74"m"\u6708"',t[53]='m"\u6708"d"\u65e5"',t[54]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',t[55]='yyyy"\u5e74"m"\u6708"',t[56]='m"\u6708"d"\u65e5"',t[57]="[$-411]ge.m.d",t[58]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',t.count=58;else if(e=(n=_.getCultureInfo())&&n.LocalNumberFormat,!f(e)&&!Array.isArray(e)&&"object"==typeof e){for(i in e)isNaN(Number(i))||(r=e[i],M.uo(r)&&(t[i]=e[i]));for(i in o=0,t)isNaN(Number(i))||o<(a=Number(i))&&(o=a);t.count=o}},_.initLanguageIndepedentNumberFormat=function(){var t=_.Ch;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"},_.getFormatCode=function(t){var n,e,i,r,t,o,t,n=_.builtInNumberFormat(),e=_.customNumberFormat(),i=_.languageIndepedentNumberFormat(),r=t.numberFormatIndex;return t.numberFormat?(o=(t=t.numberFormat).numberFormatId,t=t.numberFormatCode,n[o]&&n[o]!==t?n[o]=t:(e[t]||(e[t]=o,e.count++),t)):n[r]||i[r]||"General"},_.getFormatId=function(t){var n,e,i,r,o,a,u,s,n=_.Ah();if(n[t])return n[t];if(i=_.builtInNumberFormat())for(r in i)if(i[r]===t)return e={isBuiltIn:!0,id:parseInt(r,10)},n[t]=e;if((o=_.customNumberFormat())&&o[t])return e={isBuiltIn:!1,id:o[t]},n[t]=e;if((a=0)u&&(u=o[s]);a=u}return _.Ih++,a=Math.max(_.Ih,a)+1,e={isBuiltIn:!1,id:o[t]=a}},_.Ah=function(){return _.xh=_.xh?_.xh:{}},_.resetBuiltInNumberFormat=function(){_.Md={count:0},_.Ch={count:0}},_.Sh=null,_.xh=null,_.Md={count:0},_.Ch={count:0},_.Th={count:0},_.Ih=170,n.ExtendedNumberFormatHelper=_},"./dist/core/excel-io-util/excel-helper.js":function(t,n){"use strict";function e(t,n){var n=Math.pow(10,n);return Math.round(t*n)/n}var i;function r(){}Object.defineProperty(n,"__esModule",{value:!0}),n.ExcelHelper=void 0,r.pointToPixel=function(t){return e(96*t/72,2)},r.pixelToPoint=function(t){return 72*t/96},r.emuToPixles=function(t,n){return e(96*t/914400,n||2)},r.pixelToEMU=function(t){return Math.round(914400*t/96)},r.getActualColumnWidth=function(t,n,e){for(var i,r,i=0,r=n;rf||t.col>l||t.rowCount>f||t.col>l||e.push(t)}),e},s._c=function(t,n){var e,i,i,r,o,i,a,a,t,e=(0,u.Ec)(0,0,0,0),i=t.indexOf("!");if(1===(i=(i=(t=-1=t[u].length?r+="00":r+=t[u].charAt(e)+t[u].charAt(e+1):e>o!=n[r]>>o)return!1;i-=e,r+=1}return!0}function c(t){if(l.test(t))return parseInt(t,16);if("0"!==t[0]||isNaN(parseInt(t[1],10)))return parseInt(t,10);if(s.test(t))return parseInt(t,8);throw new Error("ipaddr: cannot parse ".concat(t," as octal"))}function e(t,n){for(;t.length>n&255);return t}().reverse()}if(n=t.match(f.twoOctet)){var u,s,u=n.slice(1,4),s=[];if(16777215<(i=c(u[1]))||i<0)throw new Error("ipaddr: address outside defined range");return s.push(c(u[0])),s.push(i>>16&255),s.push(i>>8&255),s.push(255&i),s}if(n=t.match(f.threeOctet)){var u,s,u=n.slice(1,5),s=[];if(65535<(i=c(u[2]))||i<0)throw new Error("ipaddr: address outside defined range");return s.push(c(u[0])),s.push(c(u[1])),s.push(i>>8&255),s.push(255&i),s}return null},g.IPv4.subnetMaskFromPrefixLength=function(t){var n,e,i;if((t=parseInt(t))<0||32>8),n.push(255&t);return n},r.prototype.toFixedLengthString=function(){var t,n,t,n="";return function(){for(var t,n,t=[],n=0;n>8,255&n,t>>8,255&t]);throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4")},r.prototype.toNormalizedString=function(){var t,n,t,n="";return function(){for(var t,n,t=[],n=0;ni&&(e=r.index,i=r[0].length);return i<0?n:"".concat(n.substring(0,e),"::").concat(n.substring(e+i))},r.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},r),g.IPv6.broadcastAddressFromCIDR=function(t){var n,e,i,r,o;try{for(e=(n=this.parseCIDR(t))[0].toByteArray(),i=this.subnetMaskFromPrefixLength(n[1]).toByteArray(),r=[],o=0;o<16;)r.push(parseInt(e[o],10)|255^parseInt(i[o],10)),o++;return new this(r)}catch(t){throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(t,")"))}},g.IPv6.isIPv6=function(t){return null!==this.parser(t)},g.IPv6.isValid=function(t){if("string"==typeof t&&-1===t.indexOf(":"))return!1;try{var n=this.parser(t);return new this(n.parts,n.zoneId),!0}catch(t){return!1}},g.IPv6.networkAddressFromCIDR=function(t){var n,e,i,r,o;try{for(i=(n=this.parseCIDR(t))[0].toByteArray(),o=this.subnetMaskFromPrefixLength(n[1]).toByteArray(),r=[],e=0;e<16;)r.push(parseInt(i[e],10)&parseInt(o[e],10)),e++;return new this(r)}catch(t){throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(t,")"))}},g.IPv6.parse=function(t){var t=this.parser(t);if(null===t.parts)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(t.parts,t.zoneId)},g.IPv6.parseCIDR=function(t){var n,t,t;if((t=t.match(/^(.+)\/(\d+)$/))&&0<=(n=parseInt(t[2]))&&n<=128)return t=[this.parse(t[1]),n],Object.defineProperty(t,"toString",{value:function t(){return this.join("/")}}),t;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},g.IPv6.parser=function(t){var t,n,e,i,r,t;if(e=t.match(v.deprecatedTransitional))return this.parser("::ffff:".concat(e[1]));if(v.native.test(t))return o(t,8);if((e=t.match(v.transitional))&&(t=e[6]||"",(t=o(e[1].slice(0,-1)+t,6)).parts)){for(r=[parseInt(e[2]),parseInt(e[3]),parseInt(e[4]),parseInt(e[5])],n=0;n>12&63,u=r>>6&63,s=63&r,c[l/3]=d.charAt(o=r>>18&63)+d.charAt(a)+d.charAt(u)+d.charAt(s);return t=(t=c.join("")).slice(0,t.length-f.length)+f}function m(t){for(var n,e,i,r,n,o,a,r,u,s,c,f,l,u=[],f=v,c=t,l=0;l>>16&255,e=r>>>8&255,i=255&r),64==a&&(u[l/4]=d(n,e)),64==o&&(u[l/4]=d(n));return s=u.join("")}function p(t){return(h&&window.atob||m)(t)}function b(t){return(h&&window.btoa||l)(t)}function w(t){return decodeURIComponent(Array.prototype.map.call(p(t),function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function y(t){return b(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,function(t,n){return d(parseInt(n,16))}))}function M(t){var t,n;return t?(t=f(t=c(t)),n=Math.ceil(t.length/2),w(t=(t=(t=t.substr(n)+t.substr(0,n)).replace("#","=")).replace("&","=="))):""}function C(t){for(var n,e,i,r,n=p(t),e=n.length,i=new o(e),r=0;rc&&(u=f.left+r-c),f.top+o>s&&(a=f.top+o-s),(e<0||i<0||0=e[r].value;)i+=e[r].numeral,t-=e[r].value;return i}function mn(t,n){var e="",i=n?97:65;if(0===t)return String.fromCharCode(i);for(;0>16&255,g:t>>8&255,b:255&t,a:t>>24&255}},c.convertRgbToXyz=function(t){var n,e,i,t,e,i,n,r,o,a,n=function(t){return t=.04045<(t/=255)?T((t+.055)/1.055,2.4):t/12.92,t*=100},e=t.r,i=t.g,t=t.b,e=n(e),i=n(i),n=n(t),r,o,a;return{x:.4124564*e+.3575761*i+.1804375*n,y:.2126729*e+.7151522*i+.072175*n,z:.0193339*e+.119192*i+.9503041*n}},c.convertXyzToLab=function(t){var n,e,i,t,r,o,a,n=function(t){return.008856>16&255)+","+(e=t>>8&255)+","+(i=255&t)+")":void 0},c.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],c.paletteInLab=[{lightness:0,redGreen:0,blueYellow:0},{lightness:100.00000386666655,redGreen:.41450003183252093,blueYellow:-.9762337974368318},{lightness:53.24079414130722,redGreen:80.40628534603033,blueYellow:66.9485076645686},{lightness:87.73472235279792,redGreen:-85.88347705836918,blueYellow:82.71231806483974},{lightness:32.297010932850725,redGreen:79.42575443955474,blueYellow:-108.79311020157895},{lightness:97.13926722430631,redGreen:-21.167322894165398,blueYellow:93.98697624453854},{lightness:60.32421212836874,redGreen:98.58848986524677,blueYellow:-61.76412516100469},{lightness:91.11321981275862,redGreen:-47.74463372340881,blueYellow:-15.101613782352352},{lightness:0,redGreen:0,blueYellow:0},{lightness:100.00000386666655,redGreen:.41450003183252093,blueYellow:-.9762337974368318},{lightness:53.24079414130722,redGreen:80.40628534603033,blueYellow:66.9485076645686},{lightness:87.73472235279792,redGreen:-85.88347705836918,blueYellow:82.71231806483974},{lightness:32.297010932850725,redGreen:79.42575443955474,blueYellow:-108.79311020157895},{lightness:97.13926722430631,redGreen:-21.167322894165398,blueYellow:93.98697624453854},{lightness:60.32421212836874,redGreen:98.58848986524677,blueYellow:-61.76412516100469},{lightness:91.11321981275862,redGreen:-47.74463372340881,blueYellow:-15.101613782352352},{lightness:25.53553096346318,redGreen:48.23338316760745,blueYellow:37.96950789833623},{lightness:46.22743146876261,redGreen:-51.51899057263506,blueYellow:49.61670487243066},{lightness:12.9719668574308,redGreen:47.64519130280251,blueYellow:-65.26181066276018},{lightness:51.86894337734398,redGreen:-12.69765903738712,blueYellow:56.380043157800905},{lightness:29.784666617920195,redGreen:59.1403568405364,blueYellow:-37.05049551887899},{lightness:48.2540934618616,redGreen:-28.64061189579556,blueYellow:-9.059017225814237},{lightness:77.7043667134314,redGreen:.3348315663007084,blueYellow:-.7885979888260453},{lightness:53.585015771669404,redGreen:.2486464680258038,blueYellow:-.5856141545440119},{lightness:67.10642818332406,redGreen:24.661563327250835,blueYellow:-51.70481284997233},{lightness:38.02326868659504,redGreen:47.530276772876526,blueYellow:-7.41000863702892},{lightness:98.88366982816507,redGreen:-7.647377025903346,blueYellow:23.604961406243042},{lightness:96.64610006552223,redGreen:-15.626896975835969,blueYellow:-6.286449794841897},{lightness:22.946593663526578,redGreen:50.30757275587142,blueYellow:-31.51689638909162},{lightness:68.21369400049187,redGreen:48.529707503769,blueYellow:22.097909906924063},{lightness:44.03181574544729,redGreen:15.497390355584283,blueYellow:-60.313393374835414},{lightness:83.56960561788927,redGreen:10.660290354444879,blueYellow:-25.869538462689157},{lightness:12.9719668574308,redGreen:47.64519130280251,blueYellow:-65.26181066276018},{lightness:60.32421212836874,redGreen:98.58848986524677,blueYellow:-61.76412516100469},{lightness:97.13926722430631,redGreen:-21.167322894165398,blueYellow:93.98697624453854},{lightness:91.11321981275862,redGreen:-47.74463372340881,blueYellow:-15.101613782352352},{lightness:29.784666617920195,redGreen:59.1403568405364,blueYellow:-37.05049551887899},{lightness:25.53553096346318,redGreen:48.23338316760745,blueYellow:37.96950789833623},{lightness:48.2540934618616,redGreen:-28.64061189579556,blueYellow:-9.059017225814237},{lightness:32.297010932850725,redGreen:79.42575443955474,blueYellow:-108.79311020157895},{lightness:76.31433784805343,redGreen:-24.045184322556313,blueYellow:-37.63232479221295},{lightness:96.64610006552223,redGreen:-15.626896975835969,blueYellow:-6.286449794841897},{lightness:95.46123799053612,redGreen:-25.20013221308681,blueYellow:18.33180794427749},{lightness:98.0661672083006,redGreen:-13.832882960730986,blueYellow:47.940897645383274},{lightness:80.27790732349922,redGreen:-3.692924875082826,blueYellow:-31.192993832087378},{lightness:75.08051024268852,redGreen:44.9470828980269,blueYellow:-10.53443113754624},{lightness:71.44638619892534,redGreen:38.40169770146873,blueYellow:-44.58196770374543},{lightness:85.37715784474301,redGreen:11.871131967975845,blueYellow:31.5700614950422},{lightness:48.789468602187014,redGreen:37.72886428748323,blueYellow:-81.46151935827358},{lightness:74.97920661167659,redGreen:-37.437024973414836,blueYellow:-12.053212107002897},{lightness:76.04314994204388,redGreen:-38.98270545611504,blueYellow:75.18013610138723},{lightness:84.19958734726818,redGreen:4.040877427542666,blueYellow:84.79018925434798},{lightness:72.2607240884026,redGreen:30.50579205114734,blueYellow:76.85864017596677},{lightness:62.312481453511026,redGreen:55.3256388060856,blueYellow:71.01583749339153},{lightness:45.11897896728884,redGreen:12.741665540704494,blueYellow:-28.39942907333195},{lightness:62.082179778109094,redGreen:.2790091803857031,blueYellow:-.6571246580693746},{lightness:21.3066228635372,redGreen:6.957317762469661,blueYellow:-34.694697216998314},{lightness:56.52959107095738,redGreen:-41.28375003303447,blueYellow:17.929912574393892},{lightness:17.308442495122094,redGreen:-27.576541316135987,blueYellow:24.11521195522933},{lightness:20.328171424265783,redGreen:-6.796668862699029,blueYellow:28.392687041649655},{lightness:36.25649980036505,redGreen:41.047060654411325,blueYellow:47.86323594949912},{lightness:38.02326868659504,redGreen:47.530276772876526,blueYellow:-7.41000863702892},{lightness:27.765685279866425,redGreen:33.339639613412324,blueYellow:-56.37161392120451},{lightness:21.24673253653905,redGreen:.13309285609849897,blueYellow:-.31346136150179893},{lightness:0,redGreen:0,blueYellow:0}],St=c,f.ColorHelper=St,f.getFontHeightWithCanvas=dn,Tt=/&#(\d+);/g,xt=/&#x([0-9A-F]+);/gi,k.Vf=function(t){for(var n,e,n="";0=s&&(u+=t.Gt(s,3))):(c=t.S0(s),t.getViewportLeftColumn(c)<=s&&t.getViewportRightColumn(c)>=s&&(u+=t.nn(s,3))),!(r&&r(o=t[r]).row&&(n=o.row),e>o.col&&(e=o.col);return{r:n=n<0?0:n,c:e=e<0?0:e}},k.V0=function(t){var t,t=typeof t===A&&"/"===t.charAt(0)?k.a2e(t):t;return t},k.a2e=function(t){var n,n,n=pt.test(t)?(n=t.match(pt),h.Common.ct.Y0(st(n[1]))):mt.test(t)?(n=t.match(mt),new Date(st(n[1]))):t;return n},k.Z0=function(t){var t,t=!b(t)&&h.Common.ct.W0(t)?h.Common.ct.Q0(t):t;return t},k.K0=function(t,n){for(var e,i,r,o,e=t.getImageData(n.x,n.y,n.width,n.height),i=e.data,r=0;rn&&(t.rowCount=n),t.colCount>e&&(t.colCount=e)},k.X0=function(t,n,e,i){for(var r=e;r)|(")|(')/g).test(t)?typeof t===A?t.replace(n,function(t){switch(t){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case"'":return"'"}}):""+t:t},k.Nfe=function(t,n){return(n=void 0!==n&&n)?t&&t.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,"""):t&&t.replace(/\&/g,"&").replace(/\"/g,""").replace(/\>/g,">").replace(/\").replace(/</g,"<")},k.n1=function(t){var n,e;return b(t)?t:!(n=typeof t===A)||-1===t.indexOf("&")?""+t:(e=/(&)|(>)|(<)|(")|(')/g,(t=-1!==t.indexOf("&#")?t.replace(Tt,sn(10)).replace(xt,sn(16)):t).replace(e,function(t){switch(t){case"&":return"&";case">":return">";case"<":return"<";case""":return'"';case"'":return"'"}}))},k.e1=function(t,n,e){var i,r;if(t&&typeof t===A)for(i=0;iNumber.POSITIVE_INFINITY))for(;n%2&&(e+=t),(n=Math.floor(n/2))&&(t+=t),n;);return e},k.toPlainString=function(t){var n,e;return(""+t).replace(/(-?)(\d*)\.?(\d*)e([+-]\d+)/,function(t,n,e,i,r){return+r<0?n+"0."+k.repeatString("0",1-+r-e.length-1)+e+i:n+e+i+k.repeatString("0",+r-i.length)})},k.jse=function(t){var n=document.createElement("div");return n.innerHTML=t.trim(),n.firstChild},k.rfe=function(t,n){var e,i,r,o;if(t===m||n===m||"object"!=typeof t||"object"!=typeof n)return t===n;if(e=Object.keys(t),i=Object.keys(n),e.length!==i.length)return!1;for(r=0;r=e.length||n.priority>e[i].priority){e.splice(i,0,n);break}l&&(null!=(t=f.c2e)?t:[]).forEach(function(t){t()})},f.et=function(t,n,e,i){var r,r,o,a,u,s,c,o=f.fh;if(o){if(t&&!t.lh&&(t.lh={}),!(a=l&&t?null==(r=t.lh)?void 0:r[n]:null==(r=f.lh)?void 0:r[n]))for(a=l&&t?t.lh[n]=[]:f.lh[n]=[],u=0;u\u200b"),e.selectAllChildren(o),0>2]|=t[r]<>2]|=i<>2]|=(192|i>>6)<>2]|=(224|i>>12)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=r[3&n],this.block=t[32],112<=n&&(this.hashed||this.hash(),t[0]=this.block,t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=t[16]=t[17]=t[18]=t[19]=t[20]=t[21]=t[22]=t[23]=t[24]=t[25]=t[26]=t[27]=t[28]=t[29]=t[30]=t[31]=t[32]=0),t[30]=this.hBytes<<3|this.bytes>>>29,t[31]=this.bytes<<3,this.hash())},m.prototype.hash=function(){for(var L,F,B,P,G,U,H,z,V,Y,Z,W,Q,J,K,X,t,n,e,i,r,o,a,u,s,c,f,l,q,f,l,q,$,tt,h,d,v,g,m,p,b,w,y,M,C,S,T,x,A,I,N,k,j,D,_,O,E,R,L=this.h0h,F=this.h0l,B=this.h1h,P=this.h1l,G=this.h2h,U=this.h2l,H=this.h3h,z=this.h3l,V=this.h4h,Y=this.h4l,Z=this.h5h,W=this.h5l,Q=this.h6h,J=this.h6l,K=this.h7h,X=this.h7l,t=this.blocks,n=32;n<160;n+=2)e=((v=t[n-30])>>>1|(g=t[n-29])<<31)^(v>>>8|g<<24)^v>>>7,i=(g>>>1|v<<31)^(g>>>8|v<<24)^(g>>>7|v<<25),r=((v=t[n-4])>>>19|(g=t[n-3])<<13)^(g>>>29|v<<3)^v>>>6,o=(g>>>19|v<<13)^(v>>>29|g<<3)^(g>>>6|v<<26),v=t[n-32],g=t[n-31],m=t[n-14],p=t[n-13],t[n]=(c=(m>>>16)+(v>>>16)+(e>>>16)+(r>>>16)+((s=(65535&m)+(65535&v)+(65535&e)+(65535&r)+((u=(p>>>16)+(g>>>16)+(i>>>16)+(o>>>16)+((a=(65535&p)+(65535&g)+(65535&i)+(65535&o))>>>16))>>>16))>>>16))<<16|65535&s,t[n+1]=u<<16|65535&a;for(y=L,M=F,A=H,I=z,N=V,k=Y,j=Z,D=W,_=Q,O=J,E=K,R=X,$=(C=B)&(T=G),tt=(S=P)&(x=U),n=0;n<160;n+=8)v=t[n],g=t[n+1],v=(c=((m=nt[n])>>>16)+(v>>>16)+((b=N&j^~N&_)>>>16)+((r=(N>>>14|k<<18)^(N>>>18|k<<14)^(k>>>9|N<<23))>>>16)+(E>>>16)+((s=(65535&m)+(65535&v)+(65535&b)+(65535&r)+(65535&E)+((u=((p=nt[n+1])>>>16)+(g>>>16)+((w=k&D^~k&O)>>>16)+((o=(k>>>14|N<<18)^(k>>>18|N<<14)^(N>>>9|k<<23))>>>16)+(R>>>16)+((a=(65535&p)+(65535&g)+(65535&w)+(65535&o)+(65535&R))>>>16))>>>16))>>>16))<<16|65535&s,g=u<<16|65535&a,m=(c=((h=(f=y&C)^y&T^$)>>>16)+((e=(y>>>28|M<<4)^(M>>>2|y<<30)^(M>>>7|y<<25))>>>16)+((s=(65535&h)+(65535&e)+((u=((d=(l=M&S)^M&x^tt)>>>16)+((i=(M>>>28|y<<4)^(y>>>2|M<<30)^(y>>>7|M<<25))>>>16)+((a=(65535&d)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&s,p=u<<16|65535&a,E=(c=(A>>>16)+(v>>>16)+((s=(65535&A)+(65535&v)+((u=(I>>>16)+(g>>>16)+((a=(65535&I)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,R=u<<16|65535&a,A=(c=(m>>>16)+(v>>>16)+((s=(65535&m)+(65535&v)+((u=(p>>>16)+(g>>>16)+((a=(65535&p)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,I=u<<16|65535&a,v=t[n+2],g=t[n+3],v=(c=((m=nt[n+2])>>>16)+(v>>>16)+((b=E&N^~E&j)>>>16)+((r=(E>>>14|R<<18)^(E>>>18|R<<14)^(R>>>9|E<<23))>>>16)+(_>>>16)+((s=(65535&m)+(65535&v)+(65535&b)+(65535&r)+(65535&_)+((u=((p=nt[n+3])>>>16)+(g>>>16)+((w=R&k^~R&D)>>>16)+((o=(R>>>14|E<<18)^(R>>>18|E<<14)^(E>>>9|R<<23))>>>16)+(O>>>16)+((a=(65535&p)+(65535&g)+(65535&w)+(65535&o)+(65535&O))>>>16))>>>16))>>>16))<<16|65535&s,g=u<<16|65535&a,m=(c=((h=(q=A&y)^A&C^f)>>>16)+((e=(A>>>28|I<<4)^(I>>>2|A<<30)^(I>>>7|A<<25))>>>16)+((s=(65535&h)+(65535&e)+((u=((d=(f=I&M)^I&S^l)>>>16)+((i=(I>>>28|A<<4)^(A>>>2|I<<30)^(A>>>7|I<<25))>>>16)+((a=(65535&d)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&s,p=u<<16|65535&a,_=(c=(T>>>16)+(v>>>16)+((s=(65535&T)+(65535&v)+((u=(x>>>16)+(g>>>16)+((a=(65535&x)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,O=u<<16|65535&a,T=(c=(m>>>16)+(v>>>16)+((s=(65535&m)+(65535&v)+((u=(p>>>16)+(g>>>16)+((a=(65535&p)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,x=u<<16|65535&a,v=t[n+4],g=t[n+5],v=(c=((m=nt[n+4])>>>16)+(v>>>16)+((b=_&E^~_&N)>>>16)+((r=(_>>>14|O<<18)^(_>>>18|O<<14)^(O>>>9|_<<23))>>>16)+(j>>>16)+((s=(65535&m)+(65535&v)+(65535&b)+(65535&r)+(65535&j)+((u=((p=nt[n+5])>>>16)+(g>>>16)+((w=O&R^~O&k)>>>16)+((o=(O>>>14|_<<18)^(O>>>18|_<<14)^(_>>>9|O<<23))>>>16)+(D>>>16)+((a=(65535&p)+(65535&g)+(65535&w)+(65535&o)+(65535&D))>>>16))>>>16))>>>16))<<16|65535&s,g=u<<16|65535&a,m=(c=((h=(l=T&A)^T&y^q)>>>16)+((e=(T>>>28|x<<4)^(x>>>2|T<<30)^(x>>>7|T<<25))>>>16)+((s=(65535&h)+(65535&e)+((u=((d=(q=x&I)^x&M^f)>>>16)+((i=(x>>>28|T<<4)^(T>>>2|x<<30)^(T>>>7|x<<25))>>>16)+((a=(65535&d)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&s,p=u<<16|65535&a,j=(c=(C>>>16)+(v>>>16)+((s=(65535&C)+(65535&v)+((u=(S>>>16)+(g>>>16)+((a=(65535&S)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,D=u<<16|65535&a,C=(c=(m>>>16)+(v>>>16)+((s=(65535&m)+(65535&v)+((u=(p>>>16)+(g>>>16)+((a=(65535&p)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,S=u<<16|65535&a,v=t[n+6],g=t[n+7],v=(c=((m=nt[n+6])>>>16)+(v>>>16)+((b=j&_^~j&E)>>>16)+((r=(j>>>14|D<<18)^(j>>>18|D<<14)^(D>>>9|j<<23))>>>16)+(N>>>16)+((s=(65535&m)+(65535&v)+(65535&b)+(65535&r)+(65535&N)+((u=((p=nt[n+7])>>>16)+(g>>>16)+((w=D&O^~D&R)>>>16)+((o=(D>>>14|j<<18)^(D>>>18|j<<14)^(j>>>9|D<<23))>>>16)+(k>>>16)+((a=(65535&p)+(65535&g)+(65535&w)+(65535&o)+(65535&k))>>>16))>>>16))>>>16))<<16|65535&s,g=u<<16|65535&a,m=(c=((h=($=C&T)^C&A^l)>>>16)+((e=(C>>>28|S<<4)^(S>>>2|C<<30)^(S>>>7|C<<25))>>>16)+((s=(65535&h)+(65535&e)+((u=((d=(tt=S&x)^S&I^q)>>>16)+((i=(S>>>28|C<<4)^(C>>>2|S<<30)^(C>>>7|S<<25))>>>16)+((a=(65535&d)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&s,p=u<<16|65535&a,N=(c=(y>>>16)+(v>>>16)+((s=(65535&y)+(65535&v)+((u=(M>>>16)+(g>>>16)+((a=(65535&M)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,k=u<<16|65535&a,y=(c=(m>>>16)+(v>>>16)+((s=(65535&m)+(65535&v)+((u=(p>>>16)+(g>>>16)+((a=(65535&p)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,M=u<<16|65535&a;this.h0h=(c=(L>>>16)+(y>>>16)+((s=(65535&L)+(65535&y)+((u=(F>>>16)+(M>>>16)+((a=(65535&F)+(65535&M))>>>16))>>>16))>>>16))<<16|65535&s,this.h0l=u<<16|65535&a,this.h1h=(c=(B>>>16)+(C>>>16)+((s=(65535&B)+(65535&C)+((u=(P>>>16)+(S>>>16)+((a=(65535&P)+(65535&S))>>>16))>>>16))>>>16))<<16|65535&s,this.h1l=u<<16|65535&a,this.h2h=(c=(G>>>16)+(T>>>16)+((s=(65535&G)+(65535&T)+((u=(U>>>16)+(x>>>16)+((a=(65535&U)+(65535&x))>>>16))>>>16))>>>16))<<16|65535&s,this.h2l=u<<16|65535&a,this.h3h=(c=(H>>>16)+(A>>>16)+((s=(65535&H)+(65535&A)+((u=(z>>>16)+(I>>>16)+((a=(65535&z)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&s,this.h3l=u<<16|65535&a,this.h4h=(c=(V>>>16)+(N>>>16)+((s=(65535&V)+(65535&N)+((u=(Y>>>16)+(k>>>16)+((a=(65535&Y)+(65535&k))>>>16))>>>16))>>>16))<<16|65535&s,this.h4l=u<<16|65535&a,this.h5h=(c=(Z>>>16)+(j>>>16)+((s=(65535&Z)+(65535&j)+((u=(W>>>16)+(D>>>16)+((a=(65535&W)+(65535&D))>>>16))>>>16))>>>16))<<16|65535&s,this.h5l=u<<16|65535&a,this.h6h=(c=(Q>>>16)+(_>>>16)+((s=(65535&Q)+(65535&_)+((u=(J>>>16)+(O>>>16)+((a=(65535&J)+(65535&O))>>>16))>>>16))>>>16))<<16|65535&s,this.h6l=u<<16|65535&a,this.h7h=(c=(K>>>16)+(E>>>16)+((s=(65535&K)+(65535&E)+((u=(X>>>16)+(R>>>16)+((a=(65535&X)+(65535&R))>>>16))>>>16))>>>16))<<16|65535&s,this.h7l=u<<16|65535&a},m.prototype.hex=function(){var t,n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,t;return this.finalize(),t=this.h0h,n=this.h0l,e=this.h1h,i=this.h1l,r=this.h2h,o=this.h2l,a=this.h3h,u=this.h3l,s=this.h4h,c=this.h4l,f=this.h5h,l=this.h5l,h=this.h6h,d=this.h6l,v=this.h7h,g=this.h7l,m=this.bits,t=p[t>>28&15]+p[t>>24&15]+p[t>>20&15]+p[t>>16&15]+p[t>>12&15]+p[t>>8&15]+p[t>>4&15]+p[15&t]+p[n>>28&15]+p[n>>24&15]+p[n>>20&15]+p[n>>16&15]+p[n>>12&15]+p[n>>8&15]+p[n>>4&15]+p[15&n]+p[e>>28&15]+p[e>>24&15]+p[e>>20&15]+p[e>>16&15]+p[e>>12&15]+p[e>>8&15]+p[e>>4&15]+p[15&e]+p[i>>28&15]+p[i>>24&15]+p[i>>20&15]+p[i>>16&15]+p[i>>12&15]+p[i>>8&15]+p[i>>4&15]+p[15&i]+p[r>>28&15]+p[r>>24&15]+p[r>>20&15]+p[r>>16&15]+p[r>>12&15]+p[r>>8&15]+p[r>>4&15]+p[15&r]+p[o>>28&15]+p[o>>24&15]+p[o>>20&15]+p[o>>16&15]+p[o>>12&15]+p[o>>8&15]+p[o>>4&15]+p[15&o]+p[a>>28&15]+p[a>>24&15]+p[a>>20&15]+p[a>>16&15]+p[a>>12&15]+p[a>>8&15]+p[a>>4&15]+p[15&a],256<=m&&(t+=p[u>>28&15]+p[u>>24&15]+p[u>>20&15]+p[u>>16&15]+p[u>>12&15]+p[u>>8&15]+p[u>>4&15]+p[15&u]),384<=m&&(t+=p[s>>28&15]+p[s>>24&15]+p[s>>20&15]+p[s>>16&15]+p[s>>12&15]+p[s>>8&15]+p[s>>4&15]+p[15&s]+p[c>>28&15]+p[c>>24&15]+p[c>>20&15]+p[c>>16&15]+p[c>>12&15]+p[c>>8&15]+p[c>>4&15]+p[15&c]+p[f>>28&15]+p[f>>24&15]+p[f>>20&15]+p[f>>16&15]+p[f>>12&15]+p[f>>8&15]+p[f>>4&15]+p[15&f]+p[l>>28&15]+p[l>>24&15]+p[l>>20&15]+p[l>>16&15]+p[l>>12&15]+p[l>>8&15]+p[l>>4&15]+p[15&l]),512===m&&(t+=p[h>>28&15]+p[h>>24&15]+p[h>>20&15]+p[h>>16&15]+p[h>>12&15]+p[h>>8&15]+p[h>>4&15]+p[15&h]+p[d>>28&15]+p[d>>24&15]+p[d>>20&15]+p[d>>16&15]+p[d>>12&15]+p[d>>8&15]+p[d>>4&15]+p[15&d]+p[v>>28&15]+p[v>>24&15]+p[v>>20&15]+p[v>>16&15]+p[v>>12&15]+p[v>>8&15]+p[v>>4&15]+p[15&v]+p[g>>28&15]+p[g>>24&15]+p[g>>20&15]+p[g>>16&15]+p[g>>12&15]+p[g>>8&15]+p[g>>4&15]+p[15&g]),t},m.prototype.digest=function(){var t,n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,n,t;return this.finalize(),t=this.h0h,n=this.h0l,e=this.h1h,i=this.h1l,r=this.h2h,o=this.h2l,a=this.h3h,u=this.h3l,s=this.h4h,c=this.h4l,f=this.h5h,l=this.h5l,h=this.h6h,d=this.h6l,v=this.h7h,g=this.h7l,t=[t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r,o>>24&255,o>>16&255,o>>8&255,255&o,a>>24&255,a>>16&255,a>>8&255,255&a],256<=(n=this.bits)&&t.push(u>>24&255,u>>16&255,u>>8&255,255&u),384<=n&&t.push(s>>24&255,s>>16&255,s>>8&255,255&s,c>>24&255,c>>16&255,c>>8&255,255&c,f>>24&255,f>>16&255,f>>8&255,255&f,l>>24&255,l>>16&255,l>>8&255,255&l),512===n&&t.push(h>>24&255,h>>16&255,h>>8&255,255&h,d>>24&255,d>>16&255,d>>8&255,255&d,v>>24&255,v>>16&255,v>>8&255,255&v,g>>24&255,g>>16&255,g>>8&255,255&g),t},m.prototype.arrayBuffer=function(){var t,n,e;return this.finalize(),t=this.bits,n=new ArrayBuffer(t/8),(e=new DataView(n)).setUint32(0,this.h0h),e.setUint32(4,this.h0l),e.setUint32(8,this.h1h),e.setUint32(12,this.h1l),e.setUint32(16,this.h2h),e.setUint32(20,this.h2l),e.setUint32(24,this.h3h),256<=t&&e.setUint32(28,this.h3l),384<=t&&(e.setUint32(32,this.h4h),e.setUint32(36,this.h4l),e.setUint32(40,this.h5h),e.setUint32(44,this.h5l)),512===t&&(e.setUint32(48,this.h6h),e.setUint32(52,this.h6l),e.setUint32(56,this.h7h),e.setUint32(60,this.h7l)),n},m.prototype.clone=function(){var t=new m(this.bits,!1);return this.copyTo(t),t},m.prototype.copyTo=function(t){for(var n,e=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"],n=0;n>8,n[2]=(16711680&t)>>16,n[3]=(4278190080&t)>>24,n},w.Joe=function(t){var n,e,i,r,o,a,u,s,n,c,n=.75*t.length,e=t.length,r=0;for("="===t[t.length-1]&&(n--,"="===t[t.length-2])&&n--,n=new ArrayBuffer(n),c=new Uint8Array(n),i=0;i>4,c[r++]=(15&a)<<4|u>>2,c[r++]=(3&u)<<6|63&s;return new Uint8Array(n)},w.Xoe=function(t){for(var n,e=t.length,i="",n=0;n>2])+a[(3&t[n])<<4|t[n+1]>>4])+a[(15&t[n+1])<<2|t[n+2]>>6])+a[63&t[n+2]];return e%3==2?i=i.substring(0,i.length-1)+"=":e%3==1&&(i=i.substring(0,i.length-2)+"=="),i},w.qoe=function(t){for(var n,e,n=new DataView(new ArrayBuffer(2*t.length)),e=0;e>14&1|n<<1&32767,n^=t.charCodeAt(e);return(n=(n=n>>14&1|n<<1&32767)^t.length^52811).toString(16).toUpperCase()},n.Qoe=w},"./dist/core/util/custom-list.js":function(t,n){"use strict";var o,e;function i(t,n){this.wY=t,this.kb=n}o=this&&this.__spreadArray||function(t,n,e){if(e||2===arguments.length)for(var i=0,r=n.length,o;i=this.zh},r.prototype.addLoadingPromises=function(t){var n;t&&0"+t+"","text/html").body.firstChild.value}function l(t){var n=document.createElement("textarea");return n.textContent=t,n.innerHTML}function h(t){this.FN={},this.Vv=t}Object.defineProperty(n,"__esModule",{value:!0}),n.CustomDocPropsManager=n.encodeHTML=n.decodeHTML=void 0,i=e("Common"),r=e("CalcEngine"),e=e("./dist/core/worksheet/worksheet-model.js"),o=i.Common.lt.ht,(i=s=s||{}).text="lpwstr",i.int="i4",i.float="r8",i.boolean="bool",i.date="filetime",a="{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",c={i4:"number",lpwstr:"string",r8:"number",bool:"boolean",filetime:"object"},n.decodeHTML=f,n.encodeHTML=l,h.prototype.all=function(t){var n,e,n,n,e=this.Vv,n=null==(n=e.Dp)?void 0:n.docPropsCustom;if(t||n)return t&&(e.Dp||(e.Dp={docPropsCustom:[]}),e.Dp.docPropsCustom||(e.Dp.docPropsCustom=[]),n=this.BN(t),e.Dp.docPropsCustom=n,this.rL()),this.glt(e.Dp.docPropsCustom)},h.prototype.getAllDocPropsProps=function(){var t,n,e,n=this.Vv,e;if(null==(t=n.Dp)?void 0:t.docPropsCustom)return this.glt(n.Dp.docPropsCustom,!0)},h.prototype.get=function(n){var t,e,t,t,e,t=null==(t=this.Vv.Dp)?void 0:t.docPropsCustom;if(t)return(t=t.find(function(t){return t.name===n}))&&this.Dht(t)},h.prototype.add=function(n,t,e){var i,i,r,o,r,a,u,s,c,f,i;if(null!=n&&""!==n&&null!=t){if(a=null==(r=null==(r=(o=this.Vv).Dp)?void 0:r.docPropsCustom)?void 0:r.find(function(t){return t.name===n})){if(e){if(!(u=this.wdt(o,t)))return;s=u.nameInfo,c=u.linkTarget,f=this.Mdt(u.nameInfo),a.linkTarget=c,a.propertyItemChildElement=((i={})[this.Bdt(f)]=f+"",i),this.FN["".concat(s.getRow(),",").concat(s.getColumn())]=c}else a.propertyItemChildElement=((i={})[this.Bdt(t)]=t+"",i);this.remove(n)}else if(i=r?r.reduce(function(t,n){return Math.max(t,parseInt(n.pid,10))},0):1,e){if(!(u=this.wdt(o,t)))return;s=u.nameInfo,c=u.linkTarget,f=this.Mdt(s),a=this.Wgt({name:n,value:f,linkTarget:c},i+1),this.FN["".concat(s.getRow(),",").concat(s.getColumn())]=a.linkTarget}else a=this.Wgt({name:n,value:t},i+1);o.Dp||(o.Dp={docPropsCustom:[]}),o.Dp.docPropsCustom||(o.Dp.docPropsCustom=[]),o.Dp.docPropsCustom.push(a)}},h.prototype.remove=function(n){var t,e,i,t,r,e;this.get(n)&&(t=null==(t=(i=this.Vv).Dp)?void 0:t.docPropsCustom)&&0<=(r=t.findIndex(function(t){return t.name===n}))&&t.splice(r,1)},h.prototype.clear=function(){var t,n,n;null!=(t=this.Vv.Dp)&&delete t.docPropsCustom},h.prototype.Bdt=function(t){var n="";switch(typeof t){case"string":n=s.text;break;case"number":n=Number.isInteger(t)?s.int:s.float;break;case"boolean":n=s.boolean;break;case"object":n=t instanceof Date?s.date:s.text;break;default:n=s.text}return"vt:".concat(n)},h.prototype.BN=function(t,e){var i,r,i=this;return void 0===e&&(e=2),t?(r=[],t.forEach(function(t,n){r.push(i.Wgt(t,e+n))}),r):[]},h.prototype.Wgt=function(t,n){var t,n,e,i,t,n={fmtid:a,pid:n+"",name:l(t.name),propertyItemChildElement:{}};return t.linkTarget&&(n.linkTarget=t.linkTarget),e=this.Bdt(t.value),i=l(t.value?t.value+"":""),e.split(":")[1]===s.date&&((t=t.value.toISOString().split("."))[t.length-1].endsWith("Z")&&(t[t.length-1]="Z"),i=t.join("")),n.propertyItemChildElement=((t={})[e]=i,t),n},h.prototype.glt=function(t,n){var e,i,e=this;return t?(i=[],t.forEach(function(t){i.push(e.Dht(t,n))}),i):[]},h.prototype.Dht=function(t,n){var e,i,r,o,a,u,i,i,i,r={name:f(t.name)};if(t.linkTarget)r.linkTarget=t.linkTarget,o=Object.keys(t.propertyItemChildElement).find(function(t){return t.startsWith("vt:")}),u=t.propertyItemChildElement[o],i=this.Vv,(i=this.wdt(i,t.linkTarget))?(r.value=this.Mdt(i.nameInfo),u!==r.value&&((i=r.value)instanceof Date&&(i=i.toISOString()),t.propertyItemChildElement=((e={})[this.Bdt(r.value)]=i+"",e))):r.value=u;else switch(o=(i=Object.entries(t.propertyItemChildElement)[0])[0],a=i[1],o.split(":")[1]){case s.int:r.value=parseInt(a,10);break;case s.float:r.value=parseFloat(a);break;case s.boolean:r.value=Boolean(a);break;case s.date:r.value=new Date(a);break;default:s.text;r.value=f(a)}return n&&(r.type=o&&c[o.split(":")[1]],r.type||(r.type="string")),r},h.prototype.Mdt=function(t){var t,t,n,n,e,i,t,t=t.getExpression(),n=this.Vv;return t.type===r.ExpressionType.error?"":(n=t.value||(t.source?n.getCalcService().evaluateExpression(t.source,t,{}):n.getCalcService().evaluateExpression(n.getCalcService().getGlobalSourceModel().getSource(),t,{})),o(n)&&(e=t.row,i=t.column,n=(t=null==(t=t.source)?void 0:t.Mf)&&t.getValue(e,i)),n)},h.prototype.wdt=function(t,n){var e,i,r,o,a,u,s,c,f,r,e=t.getCustomName(n),i=n;if(!e)if(1===(r=n.split("!")).length){for(a=0,u=o=t.sheets;at.dm():t.lm+2*t.M2e[t.hm]>t.dm()},v.prototype.dm=function(){var t,n,e,t,n=this,e=n.im(),t=null==(t=(0,m.jf)(n.Vv))?void 0:t.options.rightToLeft;return e?t?n.ot().width-n.Wsn()-n.em()-n.Qv():n.ot().width-n.rm()-n.Jv()-n.Qv():n.ot().height-n.Yv()},v.prototype.vm=function(){return 6},v.prototype.mm=function(){return[s,c]},v.prototype.gm=function(){return this.tm()},v.prototype.pm=function(t,n){var e,i,e=this;t.save(),t.beginPath(),i=m.I.He(0,"gc-tabStripBackground").backgroundColor,e.bm=u(i),t.fillStyle=i,t.fillRect(n.x,n.y,n.width,n.height),t.restore()},v.prototype.ym=function(t,n){var e,i,i,r,o,a,u,s,e,i=this.Vv,i=i&&i.options.tabStripPosition,r=m.I.He(0,"gc-tabStripBackground").borderTopColor;t.save(),t.beginPath(),t.strokeStyle=r,i===b.TabStripPosition.bottom?(o=n.x,a=n.y,u=n.x+n.width,s=n.y+.5):i===b.TabStripPosition.top?(o=n.x,a=n.height-.5,u=n.x+n.width,s=n.y+n.height-.5):i===b.TabStripPosition.left?(o=n.x+n.width-.5,a=n.y,u=n.x+n.width-.5,s=n.y+n.height):i===b.TabStripPosition.right&&(o=n.x+.5,a=n.y,u=n.x+.5,s=n.y+n.height),t.moveTo(o,a),t.lineTo(u,s),t.stroke(),t.restore()},v.prototype.wm=function(t,n){var e=this;e.pm(t,n),e.ym(t,n)},v.prototype.Mm=function(t,n,e){var i,r,o,a,u,i,s,c,f,e,l,h,d,u,i,d,i,c,r=this,o,a=r.Vv.options.newTabVisible,u=r.im(),i=null==(i=(0,m.jf)(r.Vv))?void 0:i.options.rightToLeft,s=r.tm(),c=r.Xv(),f=r.jv,e=e,l=0,h=f;u?(u=r.Qv(),i?((e-=u)<(i=n.x+r.rm()+r.Jv())&&(c<(d=e=i)&&(e=(d=c)-f),r.Cm(t,d,0,u,n.height)),e-=r.Jv()):(e+=u,r.nm()&&(s-=r.em()),(i=n.x+n.width-r.rm()-r.Jv())t.dm():t.lm+2*t.M2e[t.hm]>t.dm()},l.prototype.dm=function(){var t,n,e,t,n=this,e=n.im(),t=null==(t=(0,S.jf)(n.Vv))?void 0:t.options.rightToLeft;return e?t?n.ot().width-n.Wsn()-n.em():n.ot().width-n.rm():n.ot().height-n.Yv()},l.prototype.vm=function(){var t;return this.im()?1:4},l.prototype.mm=function(){return[a]},l.prototype.gm=function(){var t,n,e,t=this,n=t.im(),e=t.tm();return e=n&&(e+=t.ot().height,t.Vv.options.newTabVisible)?(e+=t.Jv())+t._v:e},l.prototype.wm=function(t,n){var e,i,r,i,o,a,u,s;if(t.save(),t.beginPath(),e=t.createLinearGradient(n.x,n.y,n.width,n.height),r=(i=S.I.He(0,"gc-tabStripBackground"))&&i.backgroundImage,i=i&&i.backgroundColor,r&&-1!==r.indexOf(k))for(a=0,u=(o=x(r)).length;at)e.xg(r);else{if(!o[o.length-1]||!(o[o.length-1].indexa.x&&tv.moreTabPos+v.secondMoreTabWidth||0===v.moreTabPos))return{type:G,element:O,index:C.index,position:C.position}}else for(h=i.om;hv.moreTabPos&&0=n?(i.options.tabStripRatio=n,e.Lg=r):e.Lg=t.pageX,i.Xg();else if(e.Qg)e.qg(t.pageX,t.pageY),e.$g(t);else{if(e.Nm=-1,e.Tm=-1,c=(0,T.GC$)(e.Dg()).offset(),n=t.pageX-c.left,r=t.pageY-c.top,t=(i=e.hitTest(n,r)).element,e.Vv&&e.Vv.options.enableAccessibility&&(c=e.t2(i),e.Vv.n2(c)),""===t)return o.cursor=a,e.repaint(),!1;t===_?o.cursor=u:(o.cursor=a,0<=F.indexOf(t)?e.Nm=i.index:t===O?e.Tm=i.index:t===E?e.Tm=-2:t===L&&(e.Tm=-3)),e.repaint()}return!1},l.prototype.t2=function(t){var n,e,i,r,t,n=$(),e="",i=t.element;return i===_?e=n.ARIA_Resize:0<=F.indexOf(i)?e=(r={first:n.ARIA_First,prevArrow:n.ARIA_PreviousArrow,nextArrow:n.ARIA_NextArrow,last:n.ARIA_Last,prevButton:n.ARIA_PreviousButton,nextButton:n.ARIA_NextButton})[i]||"":i===O?(t=this.Vv.e2(t.index).name(),e=n.ARIA_SheetTab+" "+t.replace(/([0-9]+)/," $1 ")):i===E?e=n.ARIA_NewSheet:i===R&&(e=n.ARIA_Blank),e},l.prototype.bg=function(t){var n,t,t,n=this,t={e:t,r:N};return l.et(n,"preProcessMouseUp",t),p(t=t.r)?(n.Bg&&(n.Bg=!1,n.Vv.Xg()),n.i2(),n.Qg&&(n.Qg=!1,n.r2.remove(),n.o2(),n.dg.hide()),n.Wg=N,n.a2(),n.u2(),!n.Yg||(n.Yg=!1)):t},l.prototype.yg=function(t){var n,t,t,e,i,n=this,t={e:t,r:N};return l.et(n,"preProcessMouseOut",t),p(t=t.r)?(n.a2(),e=n.Nm,n.Nm=-1,i=n.Tm,n.Tm=-1,n.Nm===e&&n.Tm===i||n.repaint(),!1):t},l.prototype.Fg=function(){var n=this;n.s2||((0,T.GC$)(a).bind(V,function(t){n.pg(t)}).bind(Y,function(t){n.bg(t)}),n.c2(!0),n.s2=!0)},l.prototype.c2=function(t){var n,e,n,e=this.Vv.getActiveSheet();e&&(e.f2=t)},l.prototype.u2=function(){var t;this.s2&&((this.s2=!1,T.GC$)(a).unbind(V).unbind(Y),t=this.Vv.getActiveSheet())&&delete t.f2},l.prototype.Pg=function(t,n,e){var i,r,i,o,a,r=this,i=null==(i=(0,x.jf)(r.Vv))?void 0:i.options.rightToLeft;r.a2(),(o=r.Zm()).length<=0||(a=200,0===(t%=4)?i?r.d2(o):r.l2(o):1===t?(n||(r.h2=b.setTimeout(function(){r.Pg(1)},200)),i&&!e?r.Ng(o):r.xg(o)):2===t?(n||(r.h2=b.setTimeout(function(){r.Pg(2)},200)),i&&!e?r.xg(o):r.Ng(o)):3===t&&(i?r.l2(o):r.d2(o)))},l.prototype.Gg=function(t,n,e){var i,r,o,r,o,i=this,r=i.Vv,o=r.v2,r=r.e2(t),o=o&&o.sheetsState;o&&0===o[r.name()]?(i.ug!==N&&clearTimeout(i.ug),i.ug=window.setTimeout(function(){i.m2(t,n,e),i.c2(!0),i.ug=N,i.Vg()})):i.m2(t,n,e)},l.prototype.m2=function(t,n,e){var i,r,n,o,n,i=this,r=i.Vv;i.hm=t,i.lm=n,r.suspendPaint(),n=r.getActiveSheet(),(o=r.e2(t))&&o.isEditing()&&o!==n&&(n=n&&n.il&&n.il.rl,!o.ol(void 0,void 0,n,void 0,!1))||(nt(r,o,t),i.g2(t,e),r.resumePaint(),i.repaint())},l.prototype.p2=function(t,n,e,i,r,o){var e={oldValue:e,newValue:i,sheetName:r,propertyName:"isSelected",cancel:!1,sheetIndex:o,sheetPosition:t.getSheetPosition(r)};t.ki(x.Events.SheetChanging,e),e.cancel||(n.b2(i),t&&t.w2&&t.w2.repaint(),delete e.cancel,t.ki(x.Events.SheetChanged,e))},l.prototype.Hg=function(t){var n,e,i,r,r,o,a,r,u,n=this,e=n.Vv,i=n.im(),r=e.getActiveSheet();if((!n.C2||n.C2(r))&&(nt(e,N,N),r=e.qv(),o=e.getSheetCount(),a=e.S2(e.T2(o)),r.forEach(function(t){t.b2(!1,!0)}),u={sheetName:r=a.name(),propertyName:"insertSheet",cancel:!1,sheetIndex:o,sheetPosition:e.getSheetPosition(r)},n.p2(e,a,!1,!0,r,o),e.ki(x.Events.SheetChanging,u),!u.cancel)){for(e.A2(o,1,a),e.ki(x.Events.SheetChanged,{sheetName:a.name(),propertyName:"insertSheet",sheetIndex:o,sheetPosition:e.getSheetPosition(a.name())}),n.hm=o,n.lm=t,e.I2(e.qv().length-1,1,!1,!0);n.hm>n.om&&(n.fm()||n.ome.dm():e.lm+e.M2e[e.hm]>=e.dm(),e.hm>e.om&&c&&-1!==n&&(e.om=n)):f&&r.forEach(function(t){var n,e,n=t.name(),e;i.getSheetPosition(n)!==i.ep()&&t.b2()&&t.visible()===A.SheetTabVisible.visible&&t.b2(!1,!0)}),e.hmi);u++)e.commandManager().execute({cmd:"moveSheet",sheetName:a[u].name(),targetIndex:i})}else t=null==(t=(s=e.e2(r)).options)?void 0:t.rightToLeft,-1!==i&&-1!==r&&r!==i&&(r!==i-1&&!t||t)&&n.dg.isVisible()&&(rt[0]&&-1!==(t=n.Vm(n.om))&&n.Vv.startSheetIndex(t)},l.prototype.Ng=function(t){var n,e;0=i.x+i.width)return;if(n.y>=i.y+i.height)return;if(n.x+n.width>i.width&&(n.width=i.width-n.x,n.width<=0))return;if(n.y+n.height>i.height&&(n.height=i.height-n.y,n.height<=0))return;if(n.width<=0||n.height<=0)return}if((o=e.buffer)&&o.width===r.width&&o.height===r.height&&(o||o.width===i.width&&o.height===i.height)||(o&&(x.Bf.nh(e.Vv,o),e.TCe()),e.buffer=o=I(J),x.Bf.Wl(o,e.Vv),x.Bf.$l(o,i.width,i.height)),!(i.width<=0||i.height<=0||n&&(n.width<=0||n.height<=0))){(o=e.buffer.getContext(D)).clearRect(0,0,i.width,i.height),x.Lf.Yl(o,-i.x,-i.y),e.Z2(o,n),x.Lf.Yl(o,i.x,i.y),s=a=0<=i.x?0:-i.x,c=u=0<=i.y?0:-i.y,n&&(s=i.x+n.x,c=i.y+n.y,i=new x.Rect(s,c,n.width,n.height)),a=0<=i.x?i.x:0,u=0<=i.y?i.y:0,h=N,d=x.Bf.Kl(r),v=x.Bf.Jl(r),r&&1!==d&&(s*=d,c*=v,i.x*=d,i.y*=v,i.width*=d,i.height*=v);try{l=r?n?(f=w(i.width-s,0),w(i.height-c,0)):(f=y(i.width-s,w(r.width-i.x,3)),y(i.height-c,w(r.height-i.y,3))):(s=n.x,c=n.y,f=n.width,n.height),r?(x.Lf.Vl(t,1,1),t.clearRect(a,u,f,l),t.drawImage(e.buffer,s,c,f,l,a,u,f,l),x.Lf.Vl(t,d,v)):h=(o=e.buffer.getContext(D)).getImageData(s,c,f,l)}catch(t){return}!r&&h&&0u.x+u.width)break}else if(c>u.y+u.height)break;s.push({index:h,position:c,width:f,height:l,text:o[h].name(),visible:d,style:t&&t[o[h].name()]}),d===A.SheetTabVisible.visible&&(c+=a?f+i._v:l)}return{tabsInfo:s,newTabStartPosition:c}},l.prototype.U2e=function(t){var n,e,i,n,e=A.VisualState.normal,i;return 2007U(a)){if(k=N=void 0,N=(j=t._y(1))&&0v+g;)k=j[D-=1];k&&k.row>n&&(c=!0,M=(h||d).x,C=N.y+U(e),A&&t.FCn(N.row)&&(C-=t.PCn(N.row)),y=k.y+k.height-C-l,S.Ey(M,C,w,y,M,v),i.colHeaderVisible||(t.invalidateLayout(),S.D1(T,new L.Rect(M,0,w,f+1))),t.invalidateLayout(),I=new L.Rect(M,v+y,w,(N=x?g:g+b+m)-y),S.D1(T,I,void 0,r.cAn(t,I)),S.Ey(d.Py,d.Cy,d.hL,d.A6,d.Py,d.Cy,!0),S.jy(T,new L.Rect(M,v-2,w,2+(N-=x?0:m))),this.xb(t,M,w))}}else{for(_=0,O=n;OU(a)){if(N=I=void 0,I=(k=t.Yy(1))&&0g+m);)N=k[j-=1];N&&N.col>n&&(s=!0,C=(d||v).y,l?(M=N.x,S=I.x+I.width-U(e)-M,D=0U(r)&&(i=r)):eU(r)&&(i=r)):e=a&&o)e._2=o.Vm(a);else{for(l=void 0,l=Math.max(0,e._2);l=a?e.startSheetIndex(o.Vm(a)):o.om<0?e.startSheetIndex(o.N2(-1)):e.Cg())},k.prototype.g3=function(t,n){var e,i,r,o,a,u,s,c,f,l,s,u,c,e=this,i=e.mp,r=e.Lp,o=e.w2,a=i.length;if(isNaN(t)||t<0||a<=t)throw new Error(N().Exp_IndexOutOfRange);if(u=e.jb,s=t<=e.jb||t===a-1,c=e.getActiveSheetTab(),t=a)e.jb=o.Vm(a);else{for(l=void 0,l=Math.max(0,e.jb);l=a?e.startSheetIndex(o.Vm(a)):o.om<0?e.startSheetIndex(o.N2(-1)):e.Cg())},k.prototype.clearSheets=function(){for(var t,n,e,i,r,o,a,t=this,n=t.sheets,e=t.Lp,i=t.w2,r=0,o=n;r=n.m4()&&(t=((n.y4=t)-n.m4())*n.k4,n.scrollTo(t,!0)),n)},d.prototype.w4=function(){var n,t,e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,y,M,C,S,T,x,A,I;function N(){n.N4=q("div"),n.D4=(0,O.GC$)(n.N4),n.D4.css([U,B,G,mt,pt,z,V],[J,0,0,"hidden","none",0,0]).addClass($+" "+tt+" "+u+" "),n.h4&&n.D4.css(dt,B)}function k(t){n._4=O.GC$.En("div",[U,Y,bt,z,V,W],[Q,K,"1px",0,0,X],nt+" "+w,t),n.E4=O.GC$.En("span",[Y,H,z,V],["block","none",0,0],g+" "+y,n._4)}function j(t){n.j4=O.GC$.En("div",[U,Y,W,H,z,V],[Q,K,X,"none",0,0],et+" "+et,t)}function D(t){n.O4=O.GC$.En("div",[],[],ht+" "+M+" "+it,t),n.R4=O.GC$.En("span",[Y,H,z,V],["block","none",0,0],p+" "+C,n.O4)}function _(t){n.B4=O.GC$.En("div",[U,Y,bt,z,V,W],[Q,K,"1px",0,0,X],nt+" "+S,t),n.L4=O.GC$.En("span",[Y,H,z,V],["block","none",0,0],m+" "+T,n.B4)}e=t=0,i=!1,a=(o=(r=(n=this).o4)===E.ScrollbarAppearance.mobile)?0:2,u="ui-widget ui-corner-all",s=n.ZC(),c=n.YC(),h=f=o?0:s,d=B,v=P,g=at,m=ut,p=lt,b=gt,w="ui-button ui-state-default ui-corner-bl btn btn-default",y="ui-icon ui-icon-triangle-1-w",M="gc-scroll-handle ui-button ui-state-default ui-corner-all ui-draggable btn btn-default",C="ui-icon ui-icon-grip-solid-vertical",S="ui-button ui-state-default ui-corner-br btn btn-default",T="ui-icon ui-icon-triangle-1-e",n.F4=l=c-2*f,n.h4||(l=f=o?0:c,d=G,v=vt,g=rt,m=ot,p=ft,b=wt,w="ui-button ui-state-default ui-corner-tr btn btn-default",y="ui-icon ui-icon-triangle-1-n",M="gc-scroll-handle ui-button ui-state-default ui-corner-all ui-draggable btn btn-default",C="ui-icon ui-icon-grip-solid-horizontal",S="ui-button ui-state-default ui-corner-br btn btn-default",T="ui-icon ui-icon-triangle-1-s",n.F4=h=s-2*f),x=n.F4,A=n.v4()-n.m4(),n.P4=n.d4()*x/(A+n.d4()),n.P4>x&&(n.P4=x),n.P4<10&&(n.P4=10),I=n.P4,n.k4=0==A?1:(x-I)/A,e=n.h4?(t=I,f):(t=f,I),n.D4||(i=!0,N()),o?n.D4.addClass(st):n.D4.removeClass(st),n._4||k(n.D4),n.j4||j(n.D4),n.O4?n.O4.removeAttr("style"):D(n.j4),o?n.O4.css(U,Q).addClass(ct):n.O4.css([U,bt,z,V,W],[Q,"1px",0,0,X]).removeClass(ct),n.B4||_(n.D4),o?(yt(n.D4,H),yt(n.D4,V),n.h4?(n.D4.css([L,F],[c,Z]),n.j4.css([d,L,F],[f,Z,Z]),n.O4.css([d,L,F],[n.b4,R(t-a),Z])):(n.D4.css([L,F,V],[Z,Z,0]),n.j4.css([d,L,F],[f,Z,Z]),n.O4.css([d,L,F],[n.b4,Z,R(e-a)])),n.R4.remove(),n._4.remove(),n.B4.remove()):(n.D4.css([L,F,H],[c,s,"none"]),n.j4.css([d,L,F],[f,l,h]),n.O4.css([d,L,F],[n.b4,R(t-a),R(e-a)]),n._4.css([d,L,F],[0,f-a,f-a]),n.E4.css([L,F],[Z,Z]),n.B4.css([v,L,F],[0,f-a,f-a]),n.L4.css([L,F],[Z,Z]),n.R4.css([L,F,b],[f-a,f-a,Math.floor((n.P4-f)/2)]),n.O4.append(n.R4),n.D4.append(n._4),n.D4.append(n.B4)),i&&n.G4()},d.prototype.G4=function(){var r=this;function t(t,n){t.bind(S,function(t){r.U4(t,n)}).bind(o,function(t){r.H4(t,n)}).bind(x,function(t){r.z4(t,n)}).bind(A,function(t){r.V4(t,n)})}t(r._4,!0),t(r.B4,!1),r.O4.bind(S,function(t){r.Y4(t)}).bind(T,function(t){r.Z4(t)}).bind(o,function(t){r.W4(t)}).bind(x,function(t){r.K4(t)}).bind(A,function(t){r.J4(t)}),r.j4.bind(S,function(t){var n,e,i,n;w&&w.mozilla&&(e=(new Date).valueOf(),i=r.X4,r.X4=e,i)&&e-i<100||r.q4(t)}).bind(o,function(t){r.tS(t)}),r.nS=function(t){r.eS(t)},r.D4.bind(u,r.nS),r.D4.bind(I,r.nS),d.et(r,"initEvents",r.N4)},d.prototype.Jw=function(t){this.o4=t},d.prototype.dispose=function(){var t=this;function n(t){t&&t.unbind(r)}n(t.B4),n(t.O4),n(t._4),n(t.j4),t.D4&&(t.nS&&(t.D4.unbind(u,t.nS),t.D4.unbind(I,t.nS)),d.et(t,"dispose",t.N4),t.D4.unbind(r).remove())},d.prototype.Fg=function(){var n=this;n.p4||((0,O.GC$)(a).bind(T,function(t){n.Z4(t)}).bind(o,function(t){n.W4(t)}),n.p4=!0)},d.prototype.u2=function(){this.p4&&(this.p4=!1,O.GC$)(a).unbind(T).unbind(o)},d.prototype.U4=function(t,n){var e,i,r,o,a,e=0,i=this,r=!0,o=i.Gxn;i.u4=!0,null===i.s4&&(n?(i._4.addClass(s),e=o?i.iS():0-i.iS(),i.rS=o?E.Zi.smallIncrement:E.Zi.smallDecrement):(i.B4.addClass(s),e=o?0-i.iS():i.iS(),i.rS=o?E.Zi.smallDecrement:E.Zi.smallIncrement),(a=function(){i.scrollTo(i.b4+e*i.k4,!1),i.s4=y.setTimeout(a,r?i.f4:i.l4),r=!1})(),h(t))},d.prototype.H4=function(t,n){var e,i,e=this,i;(n?e._4:e.B4).removeClass(s),e.oS(),h(t)},d.prototype.z4=function(t,n){var e,i,e=this,i;(n?e._4:e.B4).addClass("gc-scroll-arrow-hover ui-state-hover"),h(t)},d.prototype.V4=function(t,n){var e,i,e=this,i;(n?e._4:e.B4).removeClass("gc-scroll-arrow-hover ui-state-hover "+s),e.oS(),h(t)},d.prototype.Y4=function(t){var n,e,i,r,o,a,u,n=this;0===t.button&&(n.a4=!0,n._oldPosition={x:t.pageX,y:t.pageY},n.qy(E.ScrollbarState.show),n.Fg(),n.D4.addClass(C),n.O4.addClass(s),e=n.O4.offset(),i=n.O4.outerWidth(!0),r=n.O4.outerHeight(!0),o=n.j4.offset(),a=n.j4.outerWidth(!0),u=n.j4.outerHeight(!0),n.aS={isBeyondEdge:!1,startEdgePosition:{x:o.left+t.pageX-e.left,y:o.top+t.pageY-e.top},endEdgePosition:{x:o.left+a-(i-t.pageX+e.left),y:o.top+u-(r-t.pageY+e.top)}}),h(t)},d.prototype.Z4=function(t){var n=this;n.a4&&(n.qy(E.ScrollbarState.active),n.uS={x:t.pageX,y:t.pageY},n.sS(),n._oldPosition=n.uS,(0,O.GC$)(a.body).attr("unselectable","on").addClass(ht)),h(t)},d.prototype.W4=function(t){var n,e,i,r,o,o,n=this;n.a4=!1,n.rS=E.Zi.thumbPosition,n.aS=null,n.D4.trigger(b,{newValue:n.y4,oldValue:n.y4,scrollOrientation:n.h4?l.horizontalScroll:l.verticalScroll,scrollEventType:n.rS}),i=((e=n.y4)-n.m4())*n.k4,r=n.Gxn?P:B,o=(o=t.target.classList)&&o.contains(ct),n.h4||(r=G),o?n.qy(E.ScrollbarState.hide):n.qy(E.ScrollbarState.inactive),n.b4=i,n.O4.css(r,R(i)),n.h4&&n.O4.css(n.Gxn?B:P,"auto"),n.u2(),(0,O.GC$)(a.body).removeClass(ht),(0,O.GC$)(a.body).attr("unselectable")&&(0,O.GC$)(a.body).removeAttr("unselectable"),n.O4.removeClass(s),n.D4.removeClass(C),n.rS=6,n.D4.trigger(b,{newValue:n.y4,oldValue:n.y4,scrollOrientation:n.h4?l.horizontalScroll:l.verticalScroll,scrollEventType:n.rS}),h(t)},d.prototype.K4=function(t){this.O4.addClass("gc-scrollbar-stateHover ui-state-hover"),h(t)},d.prototype.J4=function(t){this.O4.removeClass("gc-scrollbar-stateHover ui-state-hover"),h(t)},d.prototype.eS=function(t){var n,e,i,e,i,n=this,e=n.Gxn;f(t.wheelDelta)&&f(t.detail)&&(t.wheelDelta=t.originalEvent.wheelDelta,t.detail=t.originalEvent.detail),i=t.detail||t.wheelDelta/-40,e&&(i*=-1),e=i/3*n.iS()*n.k4,n.rS=0<=e?1:0,n.scrollTo(n.b4+e,!1),n.rS=6,i={newValue:n.y4,oldValue:n.y4,scrollOrientation:n.h4?l.horizontalScroll:l.verticalScroll,scrollEventType:n.rS},n.D4.trigger(b,i),h(t)},d.prototype.q4=function(t){var e,i,r,o,a,u,s,c,f,e=this,i=!0,r=t.pageX,o=t.pageY,a=0,u=e.j4.offset(),s=e.cS(),c=e.Gxn;null===e.c4&&(a=e.h4?r-u.left-(c?e.F4-e.b4-e.P4:e.b4):o-u.top-e.b4,(f=function(){var t=0,n=c?e.F4-e.b4-e.P4:e.b4,t;if((t=e.h4?r-u.left-n:o-u.top-n)*a<0||0<=t&&te.v4()&&(n.newValue=e.v4()),r=n.newValue,c=n.newValueWithOffset),f(c)&&(c=r),e.y4=r,5!==e.rS&&(t=(c-e.m4())*e.k4),e.b4=t,s||(e.O4.css(i,R(t)),e.h4&&e.O4.css(e.Gxn?B:P,"auto"))},d.prototype.hitTest=function(t,n){var e,i,r,o,a,u,s,c,f,u,o,f,a,e=this,i=0,r=0,o=e.O4.outerWidth(),a=e._4.outerWidth(),u=e.j4.outerWidth(),s=e.O4.offset(),c=(0,O.GC$)(e.oy()).offset(),f=s.left-c.left-18;return e.h4?t<0+u+a&&0+ar.leftWidth&&(o=t.leftWidth-i.left-e.innerWidth(),a.I0=nr.topHeight&&(o=t.topHeight-i.top-e.innerHeight(),a.A0=n>t/4).toString(16)})),n=32===t?n.split("-").join(""):n}},"./dist/core/worksheet/clipboardhelper.js":function(t,n,e){"use strict";var B,i,h,d,A,P,c,G,v,U,H,r,I,o;function a(t){return t&&t.options.allowCopyPasteExcelStyle}function g(t,n){var e,i;if(G.msie){for(e=[],i=0;i]+>/g,G=B.mt.Tt,v=i.Common.lt.ht,U=i.Common.Uf.OS,H=null,s.prototype.add=function(t){var n=this.Nf,e=n.indexOf(t);return-1===e&&(n.push(t),e=n.length-1),e},s.prototype.toString=function(t){var t=this.Nf[t];return v(t)?"":this.Zc+":"+t},r=s,n.Boe=r,w.prototype.Loe=function(e){var i=this.joe;return this.Doe.map(function(t,n){return i[n].add(e[t])}).join("_")},w.prototype.add=function(t){var n=this.Nf,t=this.Loe(t);return n[t]||(n[t]="sjs"+this.Lre,this.Lre++),n[t]},w.prototype.toString=function(){var t,n,e,i,r,o,a,u,s,t=this.joe,n=[],e=this.Nf;for(i in e)if(e.hasOwnProperty(i)){for(r=i.split("_"),o=[],a=0;a\S+\r\n\r\n\r\n\r\n\r\n"),r=t.length,e+=n?'':'
',o=0;o",a=0;a"}return e+="
",i&&(e+="\r\n\r\n"),e},z.n5=function(t){return t&&0<=t.indexOf('gc-sjs-clipboard="true"')},z.vI=function(t,n,e,i,r,o,a){var u,s,c,i,r,f,l,l,l,o,l,u,o,s,n,l,u,u,u,u,c,u,u=z.convertVAlign,s=z.convertHAlign,c=z.convertLineBorder,i=i,r=r,f={},l=t.backColor;return l&&(f["background-color"]=l,r=i=!1),(l=t.foreColor)&&(f.color=l),(l=t.font)&&(o&&(l=l+", "+B.FallbackFontFamily),f.font=l.replace(/"/g,"'").replace(/([\.\d]+px)/,function(t){return(3*parseFloat(t.substring(0,t.length-2))/4).toFixed(2)+"pt"})),t.wordWrap?a?(f["word-wrap"]=["break-word"],f["white-space"]=["break-spaces"]):f["white-space"]="normal":f["white-space"]="nowrap",o=t.vAlign,v(o)||(f["vertical-align"]=u(o)),l=t.hAlign,v(l)||(u=s(l=a?B.mt.gt(l,n):l))&&(f["text-align"]=u),o="border-left",s="border-right",n="border-top",l="border-bottom",(u=t.borderLeft)&&(f[o]=c(u),r=!1),(u=t.borderRight)&&(f[s]=c(u),r=!1),(u=t.borderTop)&&(f[n]=c(u),i=!1),(u=t.borderBottom)&&(f[l]=c(u),i=!1),c="1px solid "+e,i&&(f[n]=c,f[l]=c),r&&(f[o]=c,f[s]=c),u=t.formatter,!a&&u&&(f["mso-number-format"]=b(u)),f},z.dge=function(t,n,e,i,r){var o,a,u,s,c,o=t.row===n&&t.col===e;if(i&&r){for(u=t.row;u"),k=(k=1==(1&j))||8==(8&j))&&(x+=""),(D=t?t.getText(M,T,o):"")?(" "!==D[0]&&" "!==D[D.length-1]||"number"!=typeof _||(D=D.trim()),"number"!=typeof _&&(D=P.j0(D).replace(f,l))):G.chrome?D="":G.safari&&(D=" "),x+=D=g?D:D.replace(/\n/g,'
'),s&&(k&&(x+="
"),A)&&(x+=""),C.push(x+="")}w.push(C)}return w},z.e5=function(t,n,e,i,r,o,a){var u,t,e,s,u="",t=f(t,e,r);return 0)/g,function(t,n,e,i){return"\n"!==i[e+t.length]?n+"\n":n}),i.innerHTML=g,m=i.innerText,0<=g.indexOf("',t.forEach(function(t,n){o+=h(t,r,r+(n+e))}),o+=""},e=0;e")},d="pasteOptions",v="operationOptions",g="skipBlanks",m="transpose",p="pasteLink",y=o.Ase,e(C,y),C.prototype.$c=function(t){this.Dn(),y.prototype.$c.call(this,t),this.q2e(),this.$2e()},C.prototype.rQ=function(t){this.submitCallback=t,this.$c()},C.prototype.npe=function(t,n){return this.Wc[0].querySelector('input[name="'.concat(t,'"][value="').concat(n,'"]'))},C.prototype.Dn=function(){this.Wc.html(this.ipe),this.npe(d,this.data.pasteOptions).checked=!0,this.X2e&&(this.npe(v,this.data.operationOptions).checked=!0)},C.prototype.$2e=function(){var t=this.Wc.width(),n=this.Wc.height(),e=this.Fc.width(),i=this.Fc.height();this.Wc.css(["position","left","top"],["absolute",(e-t)/2+"px",(i-n)/2+"px"])},Object.defineProperty(C.prototype,"ipe",{get:function(){return'\n
\n
\n '.concat(c().pasteSpecialOptionDialog.title,'\n \xd7\n
\n
\n
\n ').concat(c().pasteSpecialOptionDialog.paste,'\n
\n
\n
\n ').concat(M(f(),6,d),"\n
\n ").concat(this.X2e?'\n
\n '.concat(c().pasteSpecialOptionDialog.operation,'\n
\n
\n
\n ').concat(M(l(),3,v),"\n
\n "):"",'\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n \n
\n ")},enumerable:!1,configurable:!0}),C.prototype.submit=function(t){var t=t||this.data;this.submitCallback&&this.submitCallback(t),this.close()},C.prototype.rpe=function(t){var n,t,n,t=t.target.dataset.cmd;if(t)switch(t){case"close":this.close();break;case"submit":this.submit();break;case p:this.submit(r(r({},this.data),{pasteLink:!0}))}},C.prototype.ope=function(t){var t=t.target;t.name?(t.name===d&&t.checked&&(this.data.pasteOptions=+t.value),t.name===v&&t.checked&&(this.data.operationOptions=+t.value)):(t.id===g&&(this.data.skipBlanks=t.checked),t.id===m&&(this.data.transpose=t.checked)),this.ape()},C.prototype.q2e=function(){var n,t,e,i,r,n=this,t=function(t){n.rpe(t)},e=function(t){n.ope(t)},i=function(t){"Escape"!==t.key&&27!==t.keyCode||n.close(),"Enter"!==t.key&&13!==t.keyCode||n.submit()};this.Wc.bind("click",t),this.Wc.bind("change",e),document.addEventListener("keyup",i),r=this.bindMoveEvent(this.Wc[0].querySelector(".gc-sjs-paste-special-dialog-title")),this.wpt=function(){n.Wc.unbind("click",t),n.Wc.unbind("change",e),document.removeEventListener("keyup",i),r()}},C.prototype.close=function(){this.wpt&&this.wpt(),y.prototype.close.call(this)},C.prototype.ape=function(){var t,n,t,e,n;this.X2e&&(n=[(t=a.ClipboardPasteOptions).formatting,t.comments,t.validation],t=[t.all,t.noBorder],e=this.Wc[0].querySelectorAll("[name=".concat(v,"]")),n.includes(this.data.pasteOptions)?e.forEach(function(t){return t.disabled=!0}):e.forEach(function(t){return t.disabled=!1}),n=this.Wc[0].querySelector('[data-cmd="'.concat(p,'"]')),!t.includes(this.data.pasteOptions)||this.data.operationOptions!==a.PasteOperationOptions.none||this.data.skipBlanks||this.data.transpose?n.classList.add("disable"):n.classList.remove("disable"))},n.PasteSpecialDialog=C},"./dist/core/worksheet/style.js":function(L,t,n){"use strict";var a,o,u,s,b,c,r,i,n,f,w,l,y,M,h,d,n,v,g,m,p,C,S,T,e,F,B,P,G,U,H,z,V,x,A,I,N,k,k,k;function Y(t){var n,e,n={};return t&&t.option&&t.option.dataSource?(e=t.option.dataSource,t.option.dataSource=M,(n=w(t)).option.dataSource=e,t.option.dataSource=e):n=w(t),n}function j(t,n,e){this.color=t||"black",this.style=n||0,this.level=e}function Z(t){return!(!t||"object"!=typeof t||t.patternColor||t.stops)}function W(t){return(!t||!t.stops)&&t&&t.type?{type:E(r.PatternType,t.type,M),patternColor:t.patternColor,backgroundColor:t.backgroundColor}:t}function D(t){return t?new x(t.color,E(z,t.style,M)):M}function Q(t){var n,e,e,e;if(t){if(!(e=(n={checkbox:"5",combobox:"7",hyperlink:"8",radioButtonList:"11",checkboxList:"12",fileUpload:"19"})[t.type]))return ot(t,!0,void 0);if(e=c.ti[e])return(e=new e).Je(t),e}return t}function J(t){return t?{alignment:E(r.LabelAlignment,t.alignment,M),visibility:E(r.LabelVisibility,t.visibility,M),font:t.font,foreColor:t.foreColor,margin:t.margin}:M}function K(t){return t?{cornerFold:t.cornerFold,icons:t.icons&&0_(t)&&t.setRowCount(n+o),u.E5&&e+a>O(t)&&t.setColumnCount(e+a),f={},h=l=0;l=_(t))&&Gn("row",n,"-1",_(t)-1),(e<-1||e>=O(t))&&Gn("column",e,"-1",O(t)-1),I(i)||""===i||(-1===n&&(n=0),-1===e&&(e=0),(i=Wn(i,r,o,a,s,c))&&0=E(e)&&t.z5>=R(e))}function fe(t,n){var e,e,t,n;return!!t.endEdit()&&((e=t.rt).V5(),e.Y5(),T.hi.F1(k),e=!1,(t=t.parent)&&((n=n.call(t))&&n.focus?(n.focus(),e=!0):t.vC()),{ignoreCancelDefault:!e})}function f(t,n,e){var i=this;i.Mf=t,i.Z5=n,i.W5=e,i.Q5=[],i.K5=[],i.J5()}function le(n,t){var e,i,e=[];return"string"==typeof t?(i=(0,T._f)(n,t))&&e.push(i):Array.isArray(t)&&t.forEach(function(t){var t=(0,T._f)(n,t);t&&e.push(t)}),e}function he(t){return t instanceof P.Worksheet?t:t.Mf instanceof P.Worksheet?t.Mf:void 0}function de(t,n){I(t.Tb)&&(t.Tb=n.Tb,t.Ab=n.Ab)}function ve(t,n){var n=t.vw(n);-1!==n&&no.col)?D[tn]:D[lt]).execute(t,n)}},D[rn]={canUndo:!1,execute:function(t,n){var e,i,r,o,a,e=c(t,n),i=e.qA,r=e.getActiveColumnIndex();return e.F5=!0,o=e.sI(e.getActiveRowIndex(),r,!0,i),e.F5=!1,((a=!o||o.leadingCellRow>i||o.leadingCellRow===i&&rt&&(t=s.x),s.y>n)&&(n=s.y),o=o!==Y&&o!==Z?o:1){case 1:return new l(t,n,e,i,r,1,a,void 0,c);case 2:return new l(t,n,e,i,r,2,a,u,c);case 5:return new l(t,n,e,i,r,3,a,u,c);case 3:return new f(t,n,e,i,r,1,[3,1],a,void 0,c);case 9:return new f(t,n,e,i,r,1,[8,2,2,2],a,void 0,c);case 4:return new f(t,n,e,i,r,1,[2,2],a,void 0,c);case 11:return new f(t,n,e,i,r,1,[9,3,3,3,3,3],a,void 0,c);case 13:return new B(t,n,e,i,r,t!==e,[11,1,5,1],[10,2,4,2],a,c);case 10:return new f(t,n,e,i,r,2,[9,3,3,3],a,u,c);case 12:return new f(t,n,e,i,r,2,[9,3,3,3,3,3],a,u,c);case 8:return new f(t,n,e,i,r,2,[9,3],a,u,c);case 7:return new f(t,n,e,i,r,1,[1],a,void 0,c);case 6:return new P(t,n,e,i,r,a,c)}return Z}function A(){}function c(t,n,e,i,r){var o=this;o.Ux=!1,o.Hx=!1,o.Mf=t,o.nT=i,o.zx=n,o.Vx=e,o.JCe=new k.VisibleRowColCache(t),o.YAe=r}e=this&&this.__extends||(U=function(t,n){return(U=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}))(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}U(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),Object.defineProperty(t,"__esModule",{value:!0}),t.Yx=t.Zx=void 0,I=n("./dist/core/worksheet/style.js"),i=n("./dist/core/util/domUtil.js"),V=n("./dist/core/core.enum.js"),N=n("Common"),k=n("./dist/core/worksheet/helpers/visible-row-col-cache.js"),Y=void 0,Z=null,j=Math.sqrt,v=Math.pow,D=Math.min,W=Math.abs,Q=Math.tan,J=Math.ceil,K=Math.PI,O=i.GC$.inherit,o=i.GC$.isEmptyObject,X=N.Common.lt.ht,g=w=0,m=y=1,p=M=2,b=C=3,S=4,T=5,x=6,F=7,r.prototype.Wx=function(t){var n=this;0===t._orientation?this.needRightToLeft?(t.Kx&&(n._x1-=t.Kx),t.Jx&&(n._x2-=t.Jx)):(t.Kx&&(n._x2+=t.Kx),t.Jx&&(n._x1+=t.Jx)):(t.Kx&&(n._y2+=t.Kx),t.Jx&&(n._y1+=t.Jx))},r.prototype._e=function(t){var n=this._x||"#9eb6ce",e=this.Ex,i=t.lineWidth,r=t.strokeStyle;i===e&&r===n||(i!==e&&(t.lineWidth=e),r!==n&&(t.strokeStyle=n)),this.Xx(t)},r.prototype.Xx=function(t){var n,e,i,e,i,n=this,e=n._x1===n._x2,i=n._y1===n._y2;e&&i||(e||i?(t.beginPath(),n.qx(t),t.stroke()):(t.save(),e=Math.min(n._x1,n._x2),i=Math.min(n._y1,n._y2),t.rect(e,i,Math.abs(n._x2-n._x1),Math.abs(n._y2-n._y1)),t.clip(),t.beginPath(),n.qx(t),t.stroke(),t.beginPath(),t.restore()))},r.prototype.qx=function(t){var n=this;t.moveTo(n._x1,n._y1),t.lineTo(n._x2,n._y2)},e(nt,H=n=r),l=nt,e(a,z=n),a.prototype.qx=function(t){var n=this;a.Dn(t,n._x1,n._y1,n._x2,n._y2,n.Ox)},a.Dn=function(t,n,e,i,r,o){var a,u,s,c,f,l,h,d,a=j(v(i-n,2)+v(r-e,2)),s=(i-n)/a,c=(r-e)/a,f=0,l=0;for(o=o&&o.length?o:[4,4];fo+1&&v.c>a+1);d++);l||t.VN(u,c,t.AN,!0),h||t.VN(s,f,t.IN,!1)}},c.prototype.JN=function(){for(var t,n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,y,M,C,S,T,x,A,I,N,k,j,D,_,y,t=this,n=t.Mf,e=n.Ut,i=t.MN,r=t.CN,o=i.length,a=r.length,l={},h={},u=0;u=r.row+r.rowCount&&n+i>=r.col+r.colCount||r.col>n+i||r.col+r.colCount-1n+i-1||r.col+r.colCount-1r.row))return!0}function ct(t,n){return t.tables&&t.tables.Uue(n)}function vt(t,n,e,i,r){return t.tables&&t.tables.oSt(n,e,i,r)}function ft(t,n,e,i,r){var o,n,a,o=n.rowCount,n=n.colCount,a=!1;return r===nt.InsertShiftCell.right?(n=1,i===t.col&&(a=!0)):(o=1,e===t.row&&(a=!0)),(-1===t.row||-1===t.col)&&t.intersect(e,i,o,n)&&!t.equals(new et.Range(e,i,o,n))&&!a}function j(t){return(t&nt.CopyToOptions.style)<=0}function E(t,n){var e,i,r,t,o,a,u,n,s,e,o,i,a,e=t.row,i=t.col,r=t.row+t.rowCount,t=t.col+t.colCount,o=n.row,a=n.col,u=n.row+n.rowCount,n=n.col+n.colCount,s;return R(e,o)<=c(r,u)&&R(i,a)<=c(t,n)&&(e=R(e,o),o=R(i,a),i=c(r,u)-e,a=c(t,n)-o,new et.Range(e,o,i,a))}function B(n,t){var e=[];return t.forEach(function(t){var t=E(n,t);t&&e.push(t)}),e}function P(t,n){t&&y&&t.suspendCalcService(n)}function G(t,n){t&&y&&t.resumeCalcService(n)}function F(t,n){return n===nt.ClipboardPasteOptions.formatting&&t.options.protectionOptions.formatCells}function V(t,n,e,i,r){t.ki("shiftCellsDown",{row:i,col:r,changedRowCount:i-n,changedColCount:r-e,srcRow:n,srcColumn:e},!0)}function tt(t,n,e,i){var t,e,i,r,o,a,u;n&&e&&i!==it&&(e=n.Ky,i=n.iw,r=n.Sx,o=n.Tx,a={showHeader:n.showHeader(),showFooter:n.showFooter(),useFooterDropDownList:n.useFooterDropDownList(),showResizeHandle:n.showResizeHandle()},u=n.style(),t.tables._Qt(n.name(),e,i,r,o,null!=(t=u.name())?t:u,a,!0),n.L0())}function gt(t,n,e,i,r,o){for(var a,u,s,c,f,l,h,d,v,d,g,a=t.Ut.getSpans(),u=t.tables&&t.tables.U3,s=t.pivotTables&&t.pivotTables.all(),c=0;c=f.row+f.rowCount&&e+r>=f.col+f.colCount||f.row>n+i||f.row+f.rowCount-1n+i-1||f.row+f.rowCount-1=l.Ky+l.Sx&&e+r>=l.iw+l.Tx||l.Ky>n+i||l.Ky+l.Sx-1n+i-1||l.Ky+l.Sx-1=f.row+f.rowCount&&e+r>=f.col+f.colCount||f.col>e+r||f.col+f.colCount-1e+r-1||f.col+f.colCount-1=l.Ky+l.Sx&&e+r>=l.iw+l.Tx||l.iw>e+r||l.iw+l.Tx-1e+r-1||l.iw+l.Tx-1l.Ky))return 1;if(s)for(c=0;c=(l=o[f]).row&&u<=l.row+l.rowCount-1&&s>=l.col&&s<=l.col+l.colCount-1)return!0;for(h=0;h=(d=a.get(h)).Ky&&u<=d.Ky+d.Sx-1&&s>=d.iw&&s<=d.iw+d.Tx-1)return!0}return!1}function H(t,n){var t;return null!=(t=t.getSpan(n.row,n.col))&&t.equals(n)}function z(t,n){var e,i,r,o,a,u,s;if(t&&1<(e=t.length)){for(i=void 0,i=0;iC.iw&&j=C.Ky&&hC.Ky+T)return r.jT(1,rt().Exp_InsertCopiedCutCellsOnSpanTable),{returnFunc:!0};if(!x&&t&&N=C.Ky&&v<=C.Ky+T&&k===C.Sx&&(O=j),$=b?k:C.Sx}}if(o||(a!==I&&-1!==a||!(u<=N)||C&&!b&&!E)&&ot(O)||(f?(e.col+=e.colCount,e.col=r.O5(e.col-1),Y=r.lT(e.col,e.colCount),e.colCount+=Y):e.col=e.col+(ot(O)?e.colCount:O),F=!0),h=r.getColumnCount()-e.colCount,v=e.colCount,f&&(W=r.lT(u,e.colCount),h=m-(v=(D=e.colCount+W)+r.ox(m-1,D)),F)&&(e.col+=W),(H=lt(r,l,h,d,v))&&!U)return r.jT(1,rt().Exp_InsertCopiedCutCellsNoRange),{returnFunc:!0}}else if(J){if(M=void 0,h=u,v=w=j,_=!C||!A||x||ut(n,m)||j<=C.iw,f&&(w+=M=r.lT(u,w),v+=M),!_&&C&&y&&(j=e.row+e.rowCount||K&&-1===e.row)&&(R=!0),!C&&A&&ft(e,n,a,u,i))return r.jT(1,rt().Exp_InsertCopiedCutCellsOverlap),{returnFunc:!0};if(NC.iw&&C.iw+S>j&&e.intersect(a,u,r.getRowCount()-a,c))return r.jT(1,rt().Exp_InsertCopiedCutCellsOverlap),{returnFunc:!0};!_&&C&&0b.Ky&&b.showHeader(),o+uT+1&&e.moveTo(T+1,o,T+1,o+i.colCount,i.rowCount-T-1,e.getColumnCount()-o-i.colCount,nt.CopyToOptions.all,!0)):-1!==r||-1!==i.row||n?e.moveTo(r,o,r,o+u,a,e.getColumnCount()-o-u,nt.CopyToOptions.all,!0):(e.addColumns(o,u),e.deleteColumns(e.getColumnCount()-u,u));V(e,r,o,r,o+u),(A=(x=e.rowFilter())&&x.range)&&-1===r&&1A.col&&o<=A.col+A.colCount-1&&(A.colCount=A.colCount+i.colCount),h&&b&&(M||i.rowCount!==b.Sx&&!st(i,e.getRowCount())||(b.showFooter()||y?(b.insertColumns(o-b.iw,i.colCount),m=!0):b.K5t(new et.Range(b.Ky,b.iw,b.Sx,b.Tx+u))))}else o+u>e.getColumnCount()&&(l=f=!0);else l=f=!0;else if(t)if(e.mT(r+a,o,e.getRowCount()-r-a,u,!0))if(r+a=b.startRow()&&i.row<=b.endRow()?i.row+i.rowCount-1-b.endRow():I)&&(s=b.footerIndex())),!c&&g&&v%i.colCount==0||!g&&!Y(e,{row:i.row,col:k,rowCount:i.rowCount,colCount:i.colCount-k})||(m=!0)),d)if(U=u,j=a+e.ox(e.getRowCount()-1,a,!0),-1===o)-1!==i.col||n?e.moveTo(r,o,r+a,o,e.getRowCount()-r-j,i.colCount,nt.CopyToOptions.all,!0):(e.addRows(r,a),e.deleteRows(e.getRowCount()-a,a));else for(D=o;De.getRowCount()&&(l=f=!0);else l=f=!0}else if(p)if(e.mT(r,o+i.colCount,i.rowCount,e.getColumnCount()-o-i.colCount,!0))if(o+i.colCountb.Ky&&b.showHeader(),d)if(H=i.rowCount,C=(E=i.colCount+e.lT(o,i.colCount))+e.ox(e.getColumnCount()-1,E),-1===r)-1!==i.row||n?e.moveTo(r,o,r,o+E,i.rowCount,e.getColumnCount()-o-C,nt.CopyToOptions.all,!0):(e.addColumns(o,i.colCount),w=!0);else for(S=r;ST+1&&e.moveTo(T+1,o,T+1,o+i.colCount,i.rowCount-T-1,e.getColumnCount()-o-i.colCount,nt.CopyToOptions.all,!0)):-1!==r||-1!==i.row||n?e.moveTo(r,o,r,o+i.colCount,i.rowCount,e.getColumnCount()-o-i.colCount,nt.CopyToOptions.all,!0):(e.addColumns(o,i.colCount),w=!0);V(e,r,o,r,o+i.colCount),(A=(x=e.rowFilter())&&x.range)&&-1===r&&1A.col&&o<=A.col+A.colCount-1&&(A.colCount=A.colCount+i.colCount),h&&b&&i.rowCount>b.Ky&&(M||i.rowCount!==b.Sx&&!st(i,e.getRowCount())||(c||!b.showFooter()&&!y?b.K5t(new et.Range(b.Ky,b.iw,b.Sx,b.Tx+i.colCount)):(b.insertColumns(o-b.iw,i.colCount),m=!0)))}else o+i.colCount>e.getColumnCount()&&(l=f=!0);else l=f=!0;else if(t)if(e.mT(r+i.rowCount,o,e.getRowCount()-r-i.rowCount,i.colCount,!0))if(r+i.rowCountb.iw&&(k=(N=b.dataRange()).col+N.colCount,(G=r===b.Ky)||(I=i.rowCount,0<(I=c&&(!g&&i.intersect(b.Ky,0,b.Sx,b.endColumn()+1)||new et.Range(b.Ky,0,b.Sx,b.endColumn()+1).containsRange(i))?i.row+i.rowCount-1-b.endRow():I)&&(s=b.footerIndex())),!c&&g&&v%i.colCount==0||!g&&!Y(e,{row:i.row,col:k,rowCount:i.rowCount,colCount:i.colCount-k})||(m=!0)),d)if(z=i.colCount,j=(R=i.rowCount+e.lT(r,i.rowCount,!0))+e.ox(e.getRowCount()-1,R,!0),-1===o)-1!==i.col||n?e.moveTo(r,o,r+R,o,e.getRowCount()-r-j,i.colCount,nt.CopyToOptions.all,!0):(e.addRows(r,i.rowCount),w=!0);else for(D=o;De.getRowCount()&&(l=f=!0);else l=f=!0;return{ignoreTableExpand:m,ignoreTableFooterIndex:B,raiseInvalidOperation:f,returnFunc:l,isInsert:w}},ht.prototype.hx=function(t,n,e,i,r,o,a,u){var s,c,f,l,h,s=u.changePasteDataRangeRowInvisibleCount,c=u.changePasteDataRangeColInvisibleCount,f=u.invisibleRowCountInAcRange,l=u.invisibleColCountInAcRange,h=this.tT.pasteExtent.targetRange;t&&(n.colCount-=c,n.col-=n.colCount,n.col-=l,h.colCount-=c),e&&(n.rowCount-=s,n.row-=n.rowCount,n.row-=f,h.rowCount-=s),i&&(n.colCount-=c,n.col-=o,n.col-=l,h.colCount-=c),r&&(n.rowCount-=s,n.row-=a,n.row-=f,h.rowCount-=s),u.changePasteDataRangeRowInvisibleCount=0,u.changePasteDataRangeColInvisibleCount=0,u.invisibleRowCountInAcRange=0,u.invisibleColCountInAcRange=0},ht.prototype.vx=function(t,n){var e=[].concat(n.parent.sheets);return t&&(t.NMi||t.isReportTemplateSheet)&&e.push(t),n&&n!==t&&(n.NMi||n.isReportTemplateSheet)&&e.push(n),e},ht.prototype.execute=function(){var t,t,n,e,i,r,o,a,u,s,c,f,L,l,l,t,h,d,h,d,h,v,g,m,p,b,d,t,w,F,B,P,G,h,y,M,C,U,H,S,S,T,S,T,S,x,A,z,I,N,k,V,Y,Z,j,W,D,Q,J,_,O,E,R,K,X,h,y,I,b,l,v,g,k,j,n=this;if(n.canExecute()&&(e=n.tT.fromSheet,i=n.tT.toSheet,r=n.tT.pasteExtent,o=n.tT.pasteOption,a=r.sourceRange,u=r.targetRange,s=r.isCutting,!e||!a||e.zT(a.row,a.col,a.rowCount,a.colCount,e.getRowCount(),e.getColumnCount()))&&i&&u&&i.HT(u.row,u.col,u.rowCount,u.colCount,!0)&&!(i.tables&&i.tables.mx(e,a,i,u,s)||i.pivotTables&&i.pivotTables.KYt(a,u,i))){if(e&&(L=e.ST(),c=n._shiftCells,f=n.fA)&&(l=f.row,t=f.col,h=f.rowCount,d=f.colCount,l=new et.Range(l,t,h,d),null!=(t=r.pasteSpecialOptions)&&t.transpose&&(h=f.row<0?0:f.row,d=f.col<0?0:f.col,f=new et.Range(h,d,f.colCount,f.rowCount)),null!=(t=r.pasteSpecialOptions))&&t.pasteLink&&(f=new et.Range(f.row,f.col,u.rowCount,u.colCount),h=e.getSpan(f.row,f.col))&&h.rowCount===a.rowCount&&h.colCount===a.colCount&&(f=new et.Range(f.row,f.col,1,1)),n.cA&&(v=n.cA.row,g=n.cA.col,m=n.cA.rowCount,p=n.cA.colCount),d=n.kse,t=i===e,h=dt(i),y=G=P=B=F=!1,H=U=C=M=0,c!==it&&f){if(t&&s&&c===nt.InsertShiftCell.right&&st(f,i.getRowCount())&&(w=at(i,f))&&(S=at(i,new et.Range(v,g,m,p)))&&S.name()===w.name()&&(n.tT.Hfe=w,i.tables.remove(w,1)),(S=this.ex(s,n.cA,f,c,i,e)).returnFunc)return void tt(i,w,s,c);F=S.changePasteDataRangeCol,B=S.changePasteDataRangeRow,M=S.changePasteDataRangeRowInvisibleCount,C=S.changePasteDataRangeColInvisibleCount,U=S.invisibleRowCountInAcRange,H=S.invisibleColCountInAcRange,P=S.changePasteDataRangeCols,G=S.changePasteDataRangeRows,y=S.moveRangeHaveValue,b=S.selectRange,m=n.cA.rowCount,p=n.cA.colCount,u.rowCount+=M,u.colCount+=C,T=S.adjustedTableRowCount,S=S.adjustedTableColCount,ot(T)||(u.row=0,u.rowCount=T),ot(S)||(u.col=0,u.colCount=S)}n.XI(),T=n.vx(e,i),q.Commands.II(T),i.suspendPaint(),i.suspendEvent(),S=!(i.QI=!0),e&&(e.suspendEvent(),e.QI=!0);try{if(h&&!(z=this.ype(e,i,a,u,v,g,c,y,l,w,s)))S=!0,x=1,A=rt().Exp_InvalidCopyPasteSize,I=i.U5(),u.colCount=I.colCount,u.rowCount=I.rowCount;else if((S=(N=c!==it&&this.fx(b,c,e,i,n.cA,l,v,g,m,p,n.px,s)).raiseInvalidOperation)&&(x=1,A=rt().Exp_InsertCopiedCutCellsNoRange),N.returnFunc)tt(i,w,s,c);else{if(a&&et.Be.Ll(e,a.row,a.col,a.row+a.rowCount-1,a.col+a.colCount-1),k=!a||-1!==a.col&&-1!==a.row,V=c!==it?!N.ignoreTableExpand:k)try{Y={shiftCells:n.bx&&c===nt.InsertShiftCell.down,isCopy:!s,isFirst:!1,isHeaderPaste:n.kse},Z=[],j=ot(N.ignoreTableFooterIndex)?0:N.ignoreTableFooterIndex,W=new et.Range(u.row,u.col,u.rowCount-j,u.colCount),i.tables&&i.tables.yx(e,W,a,$,$,$,{shiftInfo:Y,backupTableResizedArgs:Z}),this.tT.Kh.lCe=Z}catch(t){return S=!0,x=6,A=t.message,void tt(i,w,s,c)}D=f||a,Q=s&&c!==it&&(c===nt.InsertShiftCell.right&&(-1===D.row||D.row===u.row)||c===nt.InsertShiftCell.down&&(-1===D.col||D.col===u.col)),pt(e,f||a,i,u,J={isCutting:s,clipboardText:r.clipboardText,clipboardHtml:r.clipboardHtml,clipboardImage:r.clipboardImage,clipboardPasteOptions:o,ignoreFilteredOutRow:!r.includeFilteredOutRow,ignorePasteSkipInvisibleRange:!0===Q,pasteSpecialOptions:r.pasteSpecialOptions}),s&&c!==it&&(_=D.row,O=D.col,E=D.rowCount,R=D.colCount,K=u.row,X=u.col,c!==nt.InsertShiftCell.right||-1!==D.row&&D.row!==u.row||(t&&d&&O=o.col+o.colCount&&(d.colCount=d.colCount-o.colCount),p=m=g=v=0,n&&r&&(v=r.row<0?0:r.row,g=r.col<0?0:r.col,m=r.row<0?n.getRowCount():r.rowCount,p=r.col<0?n.getColumnCount():r.colCount),b=[],w=[],(y=t.tableNamesObj)&&(e&&y.r===u&&y.c===s&&y.rc===c&&y.cc===f&&(w=y.tableNames),n)&&y.r===v&&y.c===g&&y.rc===m&&y.cc===p&&(b=y.tableNames),M=t._shiftCells,e&&(C=a.Mx,q.Commands.SI(e,u,s,c,f,C?C.MI():[],3,b,!0,M)),i.isCutting&&n&&(S=a.wx,q.Commands.SI(n,v,g,m,p,S?S.MI():[],3,w,!0,M)),(T=t.tT.Hfe)&&tt(e,T,i.isCutting,M),(0,et.handleRestoredTableResizedArgs)(a.lCe)}finally{e.resumePaint()}}return!0},ht.prototype.toJSON=function(){var t=this;return{sheetName:t.Mf?t.Mf.name():"",command:t.tT}},N=ht,t.ClipboardPasteRangeUndoAction=N,D=r.ActionBase,e(o,D),o.prototype.execute=function(){var t,n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,y,M,t=this,n=t.tT,e=n.cachedActions,i=!1;if(t.canExecute()&&e){o=(r=t.Mf).parent.jg(),t.X5(o,!0),a=r.parent.i4(),q.Commands.II(a);try{for(u=!1,s=n.fA&&(Array.isArray(n.fA)?n.fA:[n.fA]),c=0;c\r\n\r\n\x3c!--StartFragment--\x3e",b="\x3c!--EndFragment--\x3e\r\n\r\n",m.substr(0,p.length)===p&&m.substr(m.length-b.length,b.length)===b&&(m=m.substring(p.length,m.length-b.length)),et.mt.Qf())&&(w="",m.substr(0,w.length)===w)&&(m=m.substring(w.length,m.length)),!g&&d&&v&&(g=d.bT([v])),!m&&d&&v&&C(r)&&(m=d.MT([v])),y={sheet:r,sheetName:r.name(),cellRange:f.nx(),pasteOption:f.tT.pasteOption,pasteData:{text:g,html:m},shiftCells:n._shiftCells,fromSheet:d,fromRange:v,isCutting:!!h.isCutting,cancel:!1,action:h.isCutting?nt.ClipboardActionType.cut:nt.ClipboardActionType.copy},(M=l.clipboardImage)&&(y.pasteData.image=M),r.ki(et.Events.ClipboardPasting,y),y.cancel||(i=f.execute(),delete y.cancel,u=!0,r.ki(et.Events.ClipboardPasted,y))):i=f.execute();u&&t.Ax()}finally{q.Commands.xI(a,t.tT),t.q5(o,!0)}}return i},o.prototype.Ax=function(){var t,n,e,i,t,r,o,a,u,s,c,a,t=this,n=t.tT,e=n.cachedActions,i=t.Mf;if(i&&e){if(t=i.getSelections(),r=[],o=i.parent,i.IA(),n.hT)a=n.pastedRanges[0],i.n4(a.row,a.col,a.rowCount,a.colCount);else if(1i.col&&(i=o);return(0,et.Ec)(e.row,e.col,e.rowCount,i.col+i.colCount-e.col)}if(e.col===i.col&&e.colCount===i.colCount){for(r=0;ri.row&&(i=o);return(0,et.Ec)(e.row,e.col,i.row+i.rowCount-e.row,e.colCount)}}}return $},wT:function(t){var n,e,i,r,o,a,r,u,s,c,s,f,l,h,n=[],e=[];if(t&&1<(i=t.length)&&(r=t[0],o=t[i-1],a=r.row===o.row&&r.rowCount===o.rowCount,r=r.col===o.col&&r.colCount===o.colCount,a||r))for(t.sort(a?function(t,n){return t.col-n.col}:function(t,n){return t.row-n.row}),u=1;u=t.getFreeAreaColumnCount(p.SheetArea.rowHeader),s=o<0&&n.row>=t.getFreeAreaRowCount(p.SheetArea.colHeader),u||s)&&((u=t.getCellRect(n.row,n.col,o,a,{needAutoMerge:!0}))&&0=r.height-r.D6)&&(f=new w.Rect(u.x-2,u.y-2,u.width+4,u.height+4),s=void 0,s=o<0&&a<0?r.R1():o<0?r.L1(a):r.B1(o),f=f.getIntersectRect(s),e._6(f.x,f.y,f.width,f.height),i=Nt(t,n))):n.cellTypeHitInfo&&n.cellTypeHitInfo.addRowColumnButtonHitInfo&&(f=void 0,1===(c=n.cellTypeHitInfo.addRowColumnButtonHitInfo).addRowColumnButtonType?f=r.XAe():2===c.addRowColumnButtonType&&(f=r.qAe()),e._6(f.x,f.y,f.width,f.height))),i}function D(t){return t.isEditing()}function _(t){return t.endEdit()}function jt(t){return t.frozenRowCount()}function Dt(t){return t.frozenColumnCount()}function O(t,n){return t.getRowCount(n)}function E(t,n){return t.getColumnCount(n)}function R(t){return t.rowViewportIndex}function L(t){return t.colViewportIndex}function F(t){return t.hitTestType}function _t(t){return t.getActiveRowIndex()}function Ot(t){return t.getActiveColumnIndex()}function l(t){return t.keyCode}function h(t){return t.ctrlKey}function B(t){return t.shiftKey}function Et(t){return t.altKey}function Rt(t){return t.metaKey}function P(t){return t.colCount}function Lt(t){return t.rowCount}function G(t,n,e){return{action:t,index:n,sheetArea:e}}function Ft(t,n,e){return S===n.O5(t,e,!0)}function Bt(t,n,e){return S===n.j5(t,e,!0)}function Pt(t,n){return n?t.E6?t.startY-t.movingY:t.movingY-t.startY:t.j6||t.Gxn?t.startX-t.movingX:t.movingX-t.startX}function U(t,n,e,i,r,o,a){var n,r,n={sheet:t,sheetName:n,sheetArea:r,row:e,col:i},r=t.getCellType(e,i);return r&&(n=r.lfe(n,a)),o&&(n.cancel=!1),n}function Gt(t,n,e,i,r,o){var a,u,a=t.Mf,u=U(a,a.name(),a.ui,a.ci,M,!0);if(a.ki(w.Events.LeaveCell,u),u&&!0===u.cancel)return!0;a.O6(n,e,i,r,o),a.ki(w.Events.EnterCell,U(a,a.name(),n,e)),a.ki(w.Events.EnterCellInternal,U(a,a.name(),n,e,M,M,w.Events.EnterCellInternal)),t.PA&&t.PA(n,e)}function Ut(t,n,e,i,r,o,a){var u,n,s,u=t.Mf,n=n.call(u,o.sheetArea);return(a&&!u.getRowVisible(o.index,o.sheetArea)||!a&&!u.getColumnVisible(o.index,o.sheetArea))&&(o.index=e.call(t,o.index,o.sheetArea)),s=(s=i.call(n,o.index))||i.call(n,r)}function Ht(t,n,e,i,r){var o,a,u,n,e,o=i?"movingY":"movingX",a=i?"startY":"startX";t[o]=n,(u=t.j6||t.Gxn||t.E6?t[o]>t[a]:t[o]n&&!e&&(t[o]=n),r!==S&&t[o]>t[a]+r&&(t[o]=t[a]+r)}function zt(t,n){var e,e,e=t.Fi();return 0e.Ay?2:t.FCn&&(e=t.dw(3))&&e.findY(n)?3:1}function Vt(t,n){var e=t.Fi();return 0e.Hy&&n=(n=r.Fi()).x&&e>=n.y&&(r.sw=o,!h.r))if(i.ab=!0,o.tableSelectInfo&&!r.Nde)i.mk(o,r);else if(o.resizeInfo)(fn(r)||_(r))&&i.gk(o);else if(o.dragHeaderToMoveInfo)(fn(r)||_(r))&&i.FTe&&i.FTe(o);else if(o.dragMergeInfo)_(r)&&i.pk&&i.pk(o);else if(s&&s.side&&s.side!==wt)_(r)&&(i.bk&&i.bk(o),i.yk(t));else if(s&&s.side===wt)_(r)&&i.wk&&i.wk(o);else if(o.filterButtonHitInfo)_(r);else{if(c)return c.inBorder?(i.Mk(o),!0):c.inTopLeft||c.inTopRight||c.inBottomLeft||c.inBottomRight?(i.Ck(o),!0):void 0;if(l)i.Sk&&i.Sk(o);else if(r.JA(R(o)<0?-1:a,L(o)<0?-1:u)){if(e=r.Nde,o.tableSelectInfo&&e?(n=this.Tk(o,r),o.tableSelectInfo.tableSelection=n,e.Ak(n)):e&&e.Hce(),i.Ik&&i.Ik(r,o))return!0;if(h=_t(r),s=Ot(r),f){if(c=dn(r,f,o),i.xk(c,f)&&(l=f.sheetArea,y(l)||3===l)&&(a!==h||u!==s)){r.suspendPaint();try{if(!_(r))return;if(d=U(r,r.name(),h,s,M,!0),r.ki(w.Events.LeaveCell,d),d&&!0===d.cancel)return;(v="number"==typeof(null==o?void 0:o.rowSpacingIndex))||(g=r.Ut.getSelections(),m=r.Ut.getSpan(a,u),p=[new w.Range(m.row,m.col,m.rowCount,m.colCount)],r.ki(w.Events.FloatingElementSelected,{type:"worksheet"}),r.EA(g,p),r.t4(a,u,M,M,1),r.ki(w.Events.EnterCell,U(r,r.name(),a,u)),r.ki(w.Events.EnterCellInternal,U(r,r.name(),a,u)),r.jA(g),r.Nk=!0,i.PA&&i.PA(a,u))}finally{r.resumePaint()}}c.processCellAndPaddingMouseDown(f)}if(f&&f.isReservedLocation)return!0;i.yk(t),i.kk(r,o,a,u)}}},i.prototype.kk=function(t,n,e,i){var r,e,i,r=this;try{if(r.Dk=n,D(t)&&!_(t))return}finally{r.Dk=S}y(e)||y(i)||(3===F(n)&&r.PA&&r.PA(e,i),t.ki(w.Events.FloatingElementSelected,{type:"worksheet"}),e=t.Ut.getSelections(),r._k(n,e),i=t.Ut.getSelections(),t.EA(e,i))},i.prototype.xk=function(t,n){return t&&n&&n.isReservedLocation&&(!t.activeOnClick||t.activeOnClick())},i.prototype.Ek=function(t){var n,e,n=this.Mf;return!n||(e=n.Fi(),y(t.x))||y(t.y)||y(t.width)||y(t.height)||t.x+t.width>e.Py+n.Gy(e)+e.zy||t.y+t.height>e.Cy+n.Sy(e)+e.Iy},i.prototype.jk=function(t,n,e,i,r){for(var o,a,u,s,c,f,r,r,l,o=this.Mf,u=0,s=t.options,c=s.length;u=a.Cy+r.Sy(a)))&&r.$A(s):o>jt(r)&&r.$A(r.nI(o))),n.Pk()},i.prototype.Fk=function(t){var n,e,i,r,o,a,u,s,c,t,u,o,n=this,e;n.i9()||(i=n.Mf,o=(r=n.Rk).r9,a=i.getViewportLeftColumn(o),u=i.getViewportRightColumn(o),c=(s=i.bge())===a?a:i.O5(a),t?(u=u.Py+i.Gy(u)))&&i.o9(c):a>Dt(i)&&i.o9(i.r6(a))),n.Pk()},i.prototype.n9=function(){var t,n,e,i,r,o,a,u,s,c,f,l,h,t=this.Mf,n=t.Fi(),e=jt(t),i=t.frozenTrailingRowCount(),r=this.fk,o=this.Rk,a=o.e9;if(0===a){if(r.y>n.Cy)return t.$A(t.pw()),o.e9=1,!0}else if(1===a){if((u=t._y(1))&&0n.Ay&&s.row>=t.P6()&&s.y+s.height<=n.Ay)return o.e9=2,!0}}else if(2===a&&(u=t._y(1))&&0n.Ay){for(c=t.Sy(n),l=0,h=f=O(t)-i-1;e<=h;h--)if(c<(l+=t.Gt(h))){f=A(h+1,f);break}t.$A(t.j5(f-1))}return o.e9=1,!0}return!1},i.prototype.i9=function(){var t,n,e,i,r,o,a,u,s,c,f,l,h,t=this.Mf,n=t.frozenTrailingColumnCount(),e=Dt(t),i=t.Fi(),r=this.fk,o=this.Rk,a=o.r9;if(0===a){if(r.x>i.Py)return t.o9(t.Sw()),o.r9=1,!0}else if(1===a){if((u=t.Yy(1))&&0i.Hy&&s.col>=t.G6()&&s.x+s.width<=i.Hy)return o.r9=2,!0}}else if(2===a&&(u=t.Yy(1))&&0i.Hy){for(c=t.Gy(i),l=0,h=f=E(t)-n-1;e<=h;h--)if(c<(l+=t.nn(h))){f=A(h+1,f);break}t.o9(t.O5(f-1))}return o.r9=1,!0}return!1},i.prototype.a9=function(){var t,n,e,i,r,i,o,a,u,u,r,e,i,n,s,t=this;(t.rb||t.u9||t.s9)&&(e=(n=t.Mf).Fi(),i=t.Rk,y(i)||(r=i.e9,i=i.r9,o=t.fk,a=S,0<=r&&0<=i?(a=e.c9(r,i),0===r&&n.Tb===n.frozenRowCount()&&(u=e.c9(1,i),a.height+=u.height),0===i&&n.Ab===n.frozenColumnCount()&&(u=e.c9(r,1),a.width+=u.width)):0<=r?a=e.B1(r):0<=i&&(a=e.L1(i)),a&&(r=(u=n.parent)&&u.options.scrollbarAppearance===p.ScrollbarAppearance.mobile,i=e=0,s=n=!1,o.x<=a.x?(e=o.x-a.x,r&&(s=!0)):o.x>=a.x+a.width?(0===(e=o.x-(a.x+a.width))&&(e=50),r&&(s=!0)):r&&o.x===a.x+a.width-1&&(e=50,s=!0),o.y<=a.y?(i=o.y-a.y,r&&(n=!0)):o.y>=a.y+a.height&&(i=o.y-(a.y+a.height),r)&&(n=!0),u&&r&&(n&&(u.Xb.qy(p.ScrollbarState.show),u.ib.$y(!0)),s)&&(u.zb.qy(p.ScrollbarState.show),u.ib.$y(!1)),t.lk().ik(t.f9(e)),t.hk().ik(t.f9(i)))))},i.prototype.l9=function(){this.lk().rk(),this.hk().rk()},i.prototype.gk=function(t){var n,e,i,r,o,o,e,o,i,t,n=this,e=s.h9.prototype,i=n.Mf,r=t.resizeInfo;r.action===k||r.action===N?(o=Ut(n,i.d9,n.v9,e.findRow,t.row,r,!0),r.startY=o.y+(r.E6?o.height:0)):(o=Ut(n,i.m9,n.g9,e.findCol,t.col,r,!1),r.startX=o.x+(r.j6||r.Gxn?o.width:0)),e=i.parent,o=t.x,i=t.y,!e||(1!==(t=e.options.showResizeTip)||r.action!==j&&r.action!==yt)&&(2!==t||r.action!==k&&r.action!==N)&&3!==t||(i-30<0?i+=15:i-=30,e.Tw(Y.j0(n.p9()),o,i)),n.isResizing=!0,n.rb=!0,n.ctrl&&(n.b9=!0)},i.prototype.y9=function(){var t,n,e,i,r,o,r,a,u,s,e,r,s,t=this,n=t.Mf,e=n.sw,i=e.resizeInfo,r=t.fk,o=r.x,r=r.y,a=n.Fi(),u=n.parent,s=i.sheetArea;i&&t.rb&&t.isResizing&&(e.x===o&&e.y===r||(i.action===k||i.action===N?un(n,i,s,r,t.b9):sn(n,i,s,o,t.b9),r=(e=n.Dn).J(),e.FA(a.x,a.y,a.width,a.height),e.jy(r),!u)||(1!==(s=u.options.showResizeTip)||i.action!==j&&i.action!==yt)&&(2!==s||i.action!==k&&i.action!==N)&&3!==s||u.ny(t.w9(i)))},i.prototype.C9=function(){var t,n,e,i,r,o,a,i,u,s,i,u,i,t=this;t.isResizing=!1,n=!(t.rb=!1),i=(e=t.Mf).sw,(r=i.resizeInfo)&&(t.iy(),r.action===k||r.action===N?y(r.movingY)?n=!1:(o=x(0,Pt(r,!0)/e.zoom()),a=[],i="resizeRow",e.S9(r.index)?d.GC$.each(e.Ut.getSelections(),function(t,n){var n;-1===n.col&&(1===r.sheetArea?a.push({firstRow:r.index,lastRow:r.index}):(n=e.JS(n),a.push({firstRow:n.row,lastRow:n.row+Lt(n)-1})))}):a.push({firstRow:r.index,lastRow:r.index}),nn(e,r,a,t.b9)&&(i="splitResizeRow"),u=1===r.sheetArea,e.Qy().execute({cmd:i,sheetName:e.name(),rows:a,size:o,columnHeader:u})):y(r.movingX)?n=!1:(o=x(0,Pt(r)/e.zoom()),s=[],i="resizeColumn",e.T9(r.index)?d.GC$.each(e.Ut.getSelections(),function(t,n){var n;-1===n.row&&(n=e.JS(n),2===r.sheetArea?s.push({firstCol:r.index,lastCol:r.index}):s.push({firstCol:n.col,lastCol:n.col+P(n)-1}))}):s.push({firstCol:r.index,lastCol:r.index}),an(e,r,s,t.b9)&&(i="splitResizeColumn"),u=2===r.sheetArea,e.Qy().execute({cmd:i,sheetName:e.name(),columns:s,size:o,rowHeader:u})),(i=e.hitTest(t.fk.x,t.fk.y))&&t.cw(i),n||e.repaint(),t.b9=!1)},i.prototype.A9=function(t,n){var e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,d,c,e=0,i=0,r=0,o=0,a=this,u=a.Mf,s=u.H3,c=jt(u),f=Dt(u),h=F(t),d=1===h&&u.NMi&&u.NMi.options.isDesignMode&&t.rowt.pw()||2===n&&e<2&&0t.Sw()||2===n&&e<2&&0=r?r-1:a.row}else if(a=Yt(i,n=this.nD(),o)){if(e=i.Fi(),r=a.row,1===n&&oe.Ay&&r>i.getLastFullyVisibleRow()?i.nI(r)||r:r}return-1},i.prototype.K9=function(t,n,e){var i,r,o,a,u,r,n,e,r,u;if(void 0===n&&(n=p.SheetArea.viewport),r=(i=this.Mf).Ut,o=i.options.rightToLeft,a=this.fk.x,n===p.SheetArea.rowHeader){if(u=Qt(i,a))return r=r.getFreeAreaColumnCount(n),e&&0=r?r-1:u.col}else if(u=Wt(i,n=this.eD(),a)){if(e=i.Fi(),r=u.col,1===n&&ae.BA:ae.Hy&&r>i.getLastFullyVisibleColumn()?i.r6(r)||r:r}return-1},i.prototype.f9=function(t){var n,e,n=0;return T(t)||0===t||(e=t<0,n=it(500/I(t)),200<(n=x(20,10*n))&&(n=200),e&&(n=-n)),n},i.prototype.v9=function(t,n){var e,n=this.Mf.nI(t,n);return n!==S?n:t},i.prototype.g9=function(t,n){var e,n=this.Mf.r6(t,n);return n!==S?n:t},i.prototype.oD=function(t,n,e){for(var i=this.Mf;n=o.getFreeAreaRowCount(p.SheetArea.colHeader)?c=(c=r.dD(o,t,i,1,n))||r.cD(o,t,i,1,e):0<=R(t)&&L(t)<0&&u&&t.col>=o.getFreeAreaRowCount(p.SheetArea.rowHeader)?c=(c=r.cD(o,t,i,2,e))||r.dD(o,t,i,2,n):R(t)<0&&L(t)<0?o.P6(2)===S&&I(e-a.qC)<=i?(h=o._y(1))&&0=a.x)return!0}else if(a.contains(e,i))return!0;if(1===t)if((u=r._y(t))&&0(1=c.x&&a.y>=c.y+c.qC&&a.x+a.width<=c.Py&&a.y+a.height<=c.Ay+c.Iy:t===p.SheetArea.colHeader?e=a.x>=c.x+c.XC&&a.y>=c.y&&a.x+a.width<=c.Hy+c.zy&&a.y+a.height<=c.Cy:t===p.SheetArea.viewport&&(e=l?a.x>=c.x&&a.y>=c.T6&&a.x+a.width<=c.BA&&a.y+a.height<=c.Ay+c.Iy:a.x>=c.b6&&a.y>=c.T6&&a.x+a.width<=c.Hy+c.zy&&a.y+a.height<=c.Ay+c.Iy),a&&0=I(r)?r=0:i=0),a&&(i=(s=f.wge(i,r,1)).detailY,r=s.detailX)):(a=t.wheelDeltaY,c=t.wheelDeltaX,e||(I(a)>=I(c)?c=0:a=0),(g.safari||g.chrome)&&(u=g.safari?-4:-40,i=(s=f.wge(a,c,u)).detailY,r=s.detailX)),(0!==i||0!==r)&&(e=f.parent.ib.Mg(f,t,et(i,10)||0,et(r,10)||0),n.iy(),!!e)&&void 0},f.G_=function(t){var n={e:t,r:S};if(b.Worksheet.et(f,"preProcessMouseOut",n),!n.r)return i.yg(t)},f.U_=function(t){var n,e,e,n=f.sw,e={e:t,r:S,target:n};b.Worksheet.et(f,"preProcessMouseDbClick",e),e.r||n&&(e=!1,3===F(n)?r(i,t):e=i.j_(n),e||f.ki(w.Events.CellDoubleClick,U(f,f.name(),n.row,n.col,F(n))))},n=i.tk,t.bind(Q+"."+n,function(t){return f.B_(t)}).bind(J+"."+n,function(t){return f.F_(t)}).bind(K+"."+n,function(t){return f.L_(t)}).bind(X+"."+n,function(t){return f.P_(t)}).bind(tt+"."+n,function(t){return f.G_(t)}).bind(nt+"."+n,function(t){return f.U_(t)}),g.mozilla)&&(e="onwheel"in document?$:q,t.bind(e+"."+n,function(t){return f.P_(t)}))}}),t.Hv.ch("worksheet-event",{preProcessMouseMove:function(t){var n,n,n=this.Vv.getActiveSheet();n&&(n=n.rt)&&n.ab&&n.rb&&n.isResizing&&(n.pg(t.e),t.r=!1)}})},"./dist/core/worksheet/worksheet-formatter.js":function(t,n,u){"use strict";var e,i,r,o,a,l,s,h,c,d,v,g;function f(t,n,e,i,r){var o,n,a,o=n.getRange(e,i);if(n.source&&(t=n.source.Mf),n=o.row,a=o.col,r)if(1===o.rowCount)a=i;else{if(1!==o.colCount)return d;n=e}return m(t,n,a)}function m(t,n,e){var i,r,o,r,t,r;return t&&t.getFormatter?(i=t.getFormatter(n,e))&&"General"!==i?y(i,function(t,n){return a.Be.Re(t,n)}):(r=t.getStyle(n,e),(o=r&&r._autoFormatter)?y(o.formatCached,function(t,n){return o.format(t)}):(t=(r=t.pivotTables)&&r.findPivotTable(n,e))&&(i=(r=t.hqt(n,e))&&r.formatter)?y(i,function(t,n){return a.Be.Re(t,n)}):d):d}function p(t,n){var n=s(t,"E")&&n(1,t);return n&&s(n,"E")}function b(t,n){var n=n(123,t);return s(n,"123")&&0<(n=n.replace(/[1230. ]+/g,"")).length}function w(t,n){var n;if(t=t.replace("DBNum",""),e.Common.$T.qT("[mMdDyYhHseg]").test(t))return n=n(123,t),!s(n,"123")}function y(t,n){var e,i,r,o;if("string"!=typeof t||"="===t[0])return d;if(e={f:t},w(t,n)){if(i=n(44955,t),r=n(44955.11,t),o=n(45323,t),i!==r)return e.t=i===o?6:8,e;if(i!==o)return e.t=7,e}if(s(t,"%"))e.t=0;else if(s(t,"/"))e.t=4;else if(p(t,n))e.t=3;else if(b(t,n))e.t=5;else if(s(t,"0")||s(t,"DBNum",!0))e.t=2;else if(s(t,"GENERAL",!0))e.t=1;else{if(!s(t,"@"))return d;e.t=9}return e}function M(t,n,e,i,r){var e,t,e=e.value;if(e&&2===e.type)return{f:"0.00%",t:0};if(e&&9===e.type)if(0===e.operatorType||1===e.operatorType){if(e.value&&2===e.value.type)return{f:"0.00%",t:0}}else if(2===e.operatorType)return(t=M(t,n,e,i,r))&&0===t.t&&(t.f=t.f.replace("%","00%")),t;return d}function C(t,n,e,i,r){var o,t,o=x(t,n,e.value,i,r),t=x(t,n,e.value2,i,r);if(7===o.t||8===o.t){if(7===t.t||8===t.t)return d;if(6===t.t)return 8===o.t?o:{f:o.f+" "+t.f,t:8}}else if(6===o.t){if(8===t.t)return t;if(7===t.t)return{f:t.f+" "+o.f,t:8}}return 0===o.t&&0===t.t?{f:(t.f.length>o.f.length?t:o).f,t:0}:1!==o.t?o:t}function S(t,n,e,i,r){var o,t,o=x(t,n,e.value,i,r),t=x(t,n,e.value2,i,r);return 9===o.t?o:9===t.t?t:5<=o.t?5<=t.t?d:o:5<=t.t?t:3===o.t?o:3===t.t?t:4===o.t?o:4===t.t?t:2!==o.t&&1!==o.t&&2!==t.t&&1!==t.t&&0===o.t&&0===t.t?{f:(t.f.length>o.f.length?t:o).f,t:0}:d}function T(t,n,e,i,r){var o,a,u,s,c,f,o=e.functionName&&e.functionName.toUpperCase(),a=g[o];if(l(v[o]))return"number"==typeof a?x(t,n,f=e.arguments[a],i,r):a?a(t,n,e,i,r):d;switch(v[o]){case 6:u="H:mm:ss";break;case 7:u=h.Fe().DateTimeFormat.shortDatePattern||"M/d/yyyy";break;case 8:u=h.Fe().DateTimeFormat.defaultDatePattern||"M/d/yyyy H:mm:ss";break;case 0:u="0.00%";break;case 5:s=h.Fe().NumberFormat.currencySymbol||"$",u=(c=h.Fe().predefinedFormats.Currency)&&c[c.length-1]||"".concat(s,"#,##0.00_);[Red](").concat(s,"#,##0.00)")}return{f:u,t:v[o]}}function x(t,n,e,i,r){if(e)if(9===e.type){if(2===e.operatorType)return M(t,n,e,i,r);if(3===e.operatorType||4===e.operatorType)return C(t,n,e,i,r);if(5===e.operatorType||6===e.operatorType||7===e.operatorType)return S(t,n,e,i,r);if(0===e.operatorType||1===e.operatorType)return x(t,n,e.value,i,r)}else{if(1===e.type||13===e.type||22===e.type)return f(t,e,i,r);if(7===e.type)return T(t,n,e,i,r);if(10===e.type)return x(t,n,e.value,i,r)}return d}function A(t,n,e,i,r){var o=t.getFormatter(i,r);(!o||o.toUpperCase&&"GENERAL"===o.toUpperCase())&&(e=t.oMt.Fyt(i,r)||e,I(t,i,r,x(t,n,e,i,r)))}function I(t,n,e,i){var r=t.Z_(n,e)||new o.Style;(i="string"==typeof i?y(i,function(t,n){return a.Be.Re(t,n)}):i)&&1!==i.t?r._autoFormatter=new c(i.f):delete r._autoFormatter,delete r.formatter,t.setStyle(n,e,r)}Object.defineProperty(n,"__esModule",{value:!0}),n.Ffe=n.Fue=n.Pue=void 0,e=u("Common"),i=u("./dist/core/util/domUtil.js"),r=u("./dist/core/worksheet/worksheet.js"),o=u("./dist/core/worksheet/style.js"),a=u("./dist/core/util/common.js"),l=e.Common.lt.ht,s=e.Common.zf.OS,h=e.Common.CultureManager,c=e.Formatter&&e.Formatter.GeneralFormatter,d={t:1},i.GC$.extend(r.Worksheet.prototype,{getFormatter:function(t,n,e){return this.l0(t,n,"formatter",e)},setFormatter:function(t,n,e,i){var r=this.Z_(t,n,i),r;(r=r||new o.Style).formatter=e,this.setStyle(t,n,r,i)}}),r.Worksheet.ch("formatter",{settingText:function(t){var n,n,n=a.util.Kf(t.value);c&&n&&(n={},(new c).getPreferredDisplayFormatter(t.value,n),"number"==typeof n.value)&&(t.value=n.value)}}),v={NOW:8,TODAY:7,TIME:6,DATE:7,IRR:0,XIRR:0,MIRR:0,RATE:0,YIELD:0,INTRATE:0,NPV:5,XNPV:5},(g={SUM:0,MAX:0,MIN:0,AVEDEV:0,FLOOR:0,ROUND:0,ROUNDUP:0,ROUNDDOWN:0,INT:0,TRUNC:0}).SINGLE=g["@"]=function(t,n,e,i,r){var e=e.arguments[0];return!e||1!==e.type&&13!==e.type?d:f(t,e,i,r,!0)},g.INDIRECT=g.OFFSET=g.INDEX=function(i,t,n,r,o){var e,a,e=u("SheetsCalc"),a=d;return e&&(n.Gue=function(t,n,e){a=l(n)?f(i,t,r,o):m(e&&e.Mf||i,t,n)},e.evaluateExpression(i,n,r,o)),a},n.Pue=x,n.Fue=A,n.Ffe=I},"./dist/core/worksheet/worksheet-json.js":function(i,t,n){"use strict";var t,Z,W,Q,ut,J,st,y,ct,r,ft,e,lt,p,n,ht,n,u,C,o,yt,a,K,X,dt,q,vt,S,$,gt,Mt,l,h,s,d,Ct,w,D,_,c,v,St,N,O,mt,g,M,T,k,f,Tt,xt,At,m,b,It,Nt,kt,x,rt,tt,nt,pt,bt,A,I,E,wt,n;function j(t,n){return gt(t)?n:gt(n)?t:Math.max(t,n)}function R(t,n,e,i){var t,t;t.dataTable&&(n.dataTable||(n.dataTable={}),t=t.dataTable[e])&&(n.dataTable[e]||(n.dataTable[e]={}),t=t[i])&&(n.dataTable[e][i]||(n.dataTable[e][i]={}),t.formula)&&(n.dataTable[e][i].formula=t.formula)}function ot(t,n,e,i,r){var o,a,u,s,c,f,l,h,d,v,g,o=t.Ut,a=o.W_(),u=o.W_(ct.SheetArea.colHeader),s=o.Q_(!0),c=o.Q_(!0,ct.SheetArea.colHeader),f=o.K_(),l=o.K_(ct.SheetArea.colHeader),h=a.getColumnCount();for(!r&>(n.colHeaderData)?n.colHeaderData={}:o.ap=e,u.setRowCount(e),d=0;d=+(o=a[i]).min&&t<=+o.max){n=o,e=i;break}return{colItem:n,colItemIndex:e}},o=function(t){var t=r(t),n=t.colItem,t=t.colItemIndex;if(n)return i(n,t)},s=n.col,c=n.col+n.colCount;su.maxCol?o(s+1):u)&&ft.Util.cme(t,e,s,u.columnSize,u.hidden,u.colStyle)}function _t(t,n){var n,e,i,n=w(n,m);n&&(e=t.spanModels[3],(i=n.c_).forEach(function(t){var t=N(t.ref);e.find(t.row,t.col)||e.add(t)}))}function Ot(t,o,a){var n,u;if(0=v.col&&s.col<=v.col+v.colCount-1&&s.row>=v.row&&s.row<=v.row+v.rowCount-1&&(l=c);if(l<0&&0t+e)||-1!==n&&(a.coln+i)))return!0;return!1},n.prototype.eE=function(t,n,e,i){for(var r,o,a,u,r=!1,o=this.spans,a=0,u=o.length;a=this.startColumn&&t<=this.endColumn},g.Q8=Wt,e.prototype.getProperty=function(t){return this[t]},e.prototype.setProperty=function(t,n,e){e&&(e[0].push(t),e[1]=this[t],e[2]=n),this[t]=n},e.prototype.clear=function(t){t&&(t.push(["selections",this.get()]),t.push(["activeSelectedRangeIndex",this.activeSelectedRangeIndex])),this.selections=[],this.activeSelectedRangeIndex=-1},e.prototype.add=function(t,n,e,i,r,o){r&&(r.push(["selections",this.get()]),r.push(["activeSelectedRangeIndex",this.activeSelectedRangeIndex]));var r=this,a=r.selectionPolicy,u=r.selectionUnit;0===a?(e=T(e,1),i=T(i,1),r.clear()):1===a&&r.clear(),1===u?i=n=-1:2===u&&(e=t=-1),r.selections.push((0,it.Ec)(t,n,e,i)),!1!==o&&(r.activeSelectedRangeIndex=r.selections.length-1)},e.prototype.get=function(){return[].concat(this.selections)},e.prototype.set=function(t,n){n&&(n.push(["selections",this.get()]),n.push(["activeSelectedRangeIndex",this.activeSelectedRangeIndex])),this.selections=t,this.activeSelectedRangeIndex>=t.length&&(this.activeSelectedRangeIndex=0)},e.prototype.toJSON=function(){var t,n,e,i,r,o,a,t=this,n={},e=t.selectionPolicy,i=t.selectionUnit,r=t.activeSelectedRangeIndex,o=t.selections.length;for(2!==e&&(n.selectionPolicy=e),0!==i&&(n.selectionUnit=i),0!==r&&(n.activeSelectedRangeIndex=r),n.length=o,a=0;ae&&(e=o.height,i=r);return q(i)&&this[i]},i.prototype.findLargestCol=function(t){var n,e,i,r,o,n=this.length;if(0===n)return at;for(r=e=0;re&&(e=o.width,i=r);return q(i)&&this[i]},i.prototype.findLargestRange=function(t,n){var e,i,r,o,a,u,s,c,f,l,e=this.length;if(0===e)return at;for(i=t.row,r=t.col,o=t.rowCount,a=t.colCount,c=s=0;cs&&(s=l.height,u=c);else for(f=t.col;fs&&(s=l.width,u=c);return q(u)&&this[u]},i.prototype.findX=function(t,n){return Jt(this,ut,ut,t,ut,n)},i.prototype.findY=function(t){return Jt(this,ut,ut,ut,t)},i.prototype.findNearX=function(t,n){return Kt(this,t,ut,n)},i.prototype.findNearY=function(t,n){return Kt(this,ut,t,n)},i.prototype.findXByExactY=function(t,n,e){var i,t,r,o,a,u,i=this.findX(t,!0);if(!Array.isArray(i))return i;for(t=i.length,r=e.y,o=e.height,a=t-1;0<=a;a--)if(n>r+(u=i[a]).y*o)return u},g.h9=i,Xt.prototype.contains=function(t,n){var e=this;return tr.I8&&(r.I8=n),o},o.prototype.CE=function(t,n,e,i){var r,o;if(t)return r=this,o=t[n],e&&(o=o||(t[n]={}),!i)&&r.x8=a&&w.push(g)))}return w},e.prototype.C7=function(t,n){var e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,f,y,M,C,e=this,i=e.Mf,r=i.Jt,o=e.Vx;if(0===o.length)return[];for(a=o[0].col,u=o[o.length-1].col,s=i.Ut,m=i.getColumnCount(),y=[],n=n||nt.q.J(),M=i.options.rightToLeft,C=1;C<100;C++){if(m<=(p=u+C))return y;if(s.findSpan(t,p)||i.Cb&&i.Cb.D7(t,p,bt.SheetArea.viewport))return y;f=r.$t(t,p,3,1),0<(l=r.Kt(p))&&!Mt(f)&&(4!==(d=(c=r.o2e(t,p)).hAlign)&&!1===i.options.allowCellOverflow||(3===d&&(d=S(d,f,Ct,c.textOrientation)),h=r.Gt(t),v=c.cellType||e.f7,w=nt.Be.Cl(i,c,f,g={},{row:t,col:p,sheet:i}),f={data:f,style:c,width:l,text:w=g.content&&0=l+h))for(y=0,M=(w=r.gO(e)).length;yv+m&&(T=0,A=v+m),t.moveTo(x+S-1,c-1),t.lineTo(A+T,c-1),t.stroke());if(I=o.frozenColumnCount(),F&&(1!==f||0!==I||o.Ab<=d||o.Ab>=d+a))for(k=0,j=(N=r.pO(n)).length;kg+p&&(O=0,R=g+p),D=o.options.rightToLeft,t.moveTo(D?u.x+u.width-u.XC-1:s-1,E+_-1),t.lineTo(D?u.x+u.width-u.XC-1:s-1,R+O),t.stroke());t.beginPath(),t.restore()}},i.prototype.gO=function(t){for(var n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,s,m,h,d,v,g,n=this.Mf,e=n.Ut.getSelections(),i=e.length,r=n.Yy(t),o=[],a=n.options.rightToLeft,u={},c=0;c=m.x+xt(m)||_+E<=m.y||_>=m.y+Tt(m))&&(!C||D>m.x+xt(m))&&!A.isOutside)return"continue";if(0===O||0===E)return"continue";if(!H&&1===g&&e=P.iw&&(0===s&&P.Ky+P.Sx>f||0c)&&j=x(n)&&(t.r=n.P6(),e=!0),t.c<0?t.c=n.k9():t.c>=T(n)&&(t.c=n.G6(),e=!0),e&&((e=n.Ut.getSpan(t.r,t.c)).row!==t.r&&(t.r=e.row),e.col!==t.c)&&(t.c=e.col)},CA:function(t,n){for(var e,i,r,o,a,u,s,c,f,l,h,h,e=this,i=e.Ut,r=i.getActiveSelectedRangeIndex(),o=-1,a=e.JS(e.U5()),u=a.row,s=a.col,c=a.col+I(a)-1,f=t,l=n;f=(h=e.CR(f,l)).r,!(s<=(l=h.c));){if(o===r&&f===t&&l<=n)return;l=u<=--f?c+1:(h=e.JS(e.U5(3)),o=i.getActiveSelectedRangeIndex(),u=h.row,s=h.col,c=h.col+I(h)-1,f=h.row+A(h)-1,h.col+I(h))}0<=f&&(e.XA(f,l),e.qA=f,e.hR=l)},SA:function(t,n){for(var e,i,r,o,a,u,s,c,f,l,h,h,e=this,i=e.Ut,r=i.getActiveSelectedRangeIndex(),o=-1,a=e.JS(e.U5()),u=a.col,s=a.row+A(a)-1,c=a.col+I(a)-1,f=t,l=n;f=(h=e.TR(f,l)).r,!((l=h.c)<=c);){if(o===r&&f===t&&n<=l)return;l=++f<=s?u-1:(h=e.JS(e.U5(4)),o=i.getActiveSelectedRangeIndex(),u=h.col,s=h.row+A(h)-1,c=h.col+I(h)-1,f=h.row,h.col-1)}0<=f&&(e.XA(f,l),e.qA=f,e.hR=l)},TA:function(t,n){for(var e,i,r,o,a,u,s,c,f,l,h,h,e=this,i=e.Ut,r=i.getActiveSelectedRangeIndex(),o=-1,a=e.JS(e.U5()),u=a.row,s=a.row+A(a)-1,c=a.col,f=t,l=n;f=(h=e.AR(f,l)).r,l=h.c,!(u<=f);){if(o===r&&l===n&&f<=t)return;c<=--l?f=s+1:(h=e.JS(e.U5(1)),o=i.getActiveSelectedRangeIndex(),u=h.row,s=h.row+A(h)-1,c=h.col,f=h.row+A(h),l=h.col+I(h)-1)}0<=l&&(e.XA(f,l),e.qA=f,e.hR=l)},AA:function(t,n){for(var e,i,r,o,a,u,s,c,f,l,h,h,e=this,i=e.Ut,r=i.getActiveSelectedRangeIndex(),o=-1,a=e.JS(e.U5()),u=a.row,s=a.row+A(a)-1,c=a.col+I(a)-1,f=t,l=n;f=(h=e.IR(f,l)).r,l=h.c,!(f<=s);){if(o===r&&l===n&&t<=f)return;++l<=c?f=u-1:(h=e.JS(e.U5(2)),o=i.getActiveSelectedRangeIndex(),s=h.row+A(h)-1,c=h.col+I(h)-1,f=h.row-1,l=h.col)}0<=l&&(e.XA(f,l),e.qA=f,e.hR=l)},gA:function(t,n,e){var i,r,o,o,e,t,i=this,o=i.tables,r=e&&(r=o&&o.xR(t,n))||i.uI(t,n,e,i.qA||0);!r||r.row===t&&r.col===n||(o=r.row,e=r.col,t=r.leadingCellRow,i.dR(o,e)&&(i.qA=t,i.hR=e,i.XA(o,e)))},uI:function(t,n,e,i){var r,o,a,u,s,c,f,r=this,o=x(r),a=T(r),s=n;if(s===a-1&&!e||0===o||0===a)return M;for(c=r.NR(i,s),f=i,e||r.mR(c),u=c.r,s=c.c;s===a&&e;){if(t===o-1&&t===u&&(!r.getRowVisible(u,3)||r.Gt(u,3)<=0))return M;if(i=u=o<=(u=r.j5(u,3,!0))||d(u)?r.j5(-1,3,!0):u,u=(c=r.NR(i,-1)).r,s=c.c,u===t&&n=(o=o[0]).col&&(r=o.col,i=o.row),e.dR(i,r)))return{r:i,c:r};return{r:i,c:r}},CR:function(t,n){for(var e,i,r,e=this;0<=n&&!(--n<0);){if(i=e.Ut.findSpan(t,n)){if(!((r=e.U5()).row<=i.row&&i.row+A(i)<=r.row+A(r)&&r.col<=i.col&&i.col+I(i)<=r.col+I(r)))continue;if(i.row!==t||i.col!==n)continue;n>=i.col&&(n=i.col,t=i.row)}if(e.dR(t,n))return{r:t,c:n}}return{r:t,c:n}},NR:function(t,n){for(var e,i,r,o,a,a,u,e=this,i=T(e),o=n;o(u=a[0]).col?o=C(o,u.col+I(u)):r=u.row),e.dR(r,o)))return{r:r,c:o};return{r:r,c:o}},TR:function(t,n){for(var e,i,r,o,o,a,e=this,i=e.Ut,r=T(e);no.col?n=C(n,o.col+I(o)):t=o.row}if(e.dR(t,n))return{r:t,c:n}}return{r:t,c:n}},dR:function(t,n){var e,i,r,o,e=this;return!!e.JA(t,n)&&(i=0<=t&&t=(i=i[0]).row&&(t=i.row,n=i.col),e.dR(t,n)))return{r:t,c:n};return{r:t,c:n}},AR:function(t,n){for(var e,i,r,e=this;0<=t&&!(--t<0);){if(i=e.Ut.findSpan(t,n)){if(!((r=e.U5()).row<=i.row&&i.row+A(i)<=r.row+A(r)&&r.col<=i.col&&i.col+I(i)<=r.col+I(r)))continue;if(i.row!==t||i.col!==n)continue;t>=i.row&&(n=i.col,t=i.row)}if(e.dR(t,n))return{r:t,c:n}}return{r:t,c:n}},pR:function(t,n){for(var e,i,r,r,o,e=this,i=x(e);t(o=r[0]).row?t=C(t,o.row+A(o)):n=o.col),e.dR(t,n)))return{r:t,c:n};return{r:t,c:n}},IR:function(t,n){for(var e,i,r,o,o,a,e=this,i=e.Ut,r=x(e);to.row?t=C(t,o.row+A(o)):n=o.col}if(e.dR(t,n))return{r:t,c:n}}return{r:t,c:n}},D9:function(t,n,e,i,r,o){var a=this;a.Ut.do("addSelection",t,n,e,i,M,o),r&&a.My<=0&&a.Dn.E1(M,M,M,M,o)},L9:function(t,n,e){var i,t,n,r,o,t,a,u,i=this,t=i.xA(t,n,i.ui,i.ci),n=t.row,r=t.col,o=A(t),t=I(t),a=i.selectionPolicy(),u=i.selectionUnit();0!==a&&(1===a&&i.Ut.do("clearSelection"),1===u?t=r=-1:2===u&&(o=n=-1),i.kA(n,r,o,t,e))},xA:function(t,n,e,i,r,o){var a,u,e,i,u,t,a=this;return d(e)&&(e=a.ui),d(i)&&(i=a.ci),e=(u=a.Ut).getSpan(e,i,o),i=u.getSpan(t,n,o),r&&e.equals(i)?new y.Range(e.row,e.col,1,1):(u=e.union(i),(t=a.Ut.getSpans(M,o))&&0=i.sB()&&(f=i.nI(i.sB())),u=i.xA(f,o,n,e),s=S(r,u.row),i=S(o,u.col),f=S(r+a-1,u.row+A(u)-1),n=C(o+I(t)-1,u.col+I(u)-1),(0,y.Ec)(s,i,l=f-s+1,h=n-i+1))},eB:function(t,n,e){var i,r,o,a,u,s,u,s,i,u,n,e,c,f,i=this,r=t.row,o=t.col,a=A(t),u=i.tI();return d(u)?M:(s=i._y(1),i.$A(u),(u=i.nI(r+a-1+p(s)))=i.sB()&&(u=i.Tb>=i.cB()?i.sB():i.nI(i.sB())),s=i.xA(u,o,n,e),i=C(r,s.row),u=S(o,s.col),n=C(r+a-1,s.row+A(s)-1),e=C(o+I(t)-1,s.col+I(s)-1),(0,y.Ec)(i,u,c=n-i+1,f=e-u+1))},QA:function(){var t,n,n,e,i,r,o,t=this,n=t._y(1);if(!n||p(n)<=0)return M;for(e=(n=t.frozenRowCount())?t.j5(n-1):t.N9(),i=0,r=t.Tb,o=t.Fi();et.Sy(o)););return r},fB:function(){var t,n,n,e,i,r,o,t=this,n=t.Yy(1);if(!n||p(n)<=0)return M;for(e=(n=t.frozenColumnCount())?t.O5(n-1):t.k9(),i=0,r=t.Ab,o=t.Fi();et.Gy(o)););return r},tI:function(){var t,n,t,t=this._y(1),n=p(t);return t&&0t.Gy(n));)o--;return o=0n.toLowerCase():n=n&&o.index=n+e&&(o.index-=e))}Object.defineProperty(t,"__esModule",{value:!0}),e=o("Common"),t=o("./dist/core/util/domUtil.js"),y=o("./dist/core/util/common.js"),w=o("./dist/core/worksheet/worksheet.js"),n=o("CalcEngine"),M=!!n,n=o("./dist/core/core.ns.js"),C=o("./dist/core/core.enum.js"),S=o("./dist/core/excel-io-util/range-parser.js"),n=new e.Common.ResourceManager(n.SR,"Sheets"),b=n.getResource.bind(n),u=e.Common.ct.o0,h=e.Common.Uf,T=e.Common.lt.ht,s="boolean",c="string",x="number",f="backColor",l="fontColor",A=void 0,I=function(t,n,e){var t;return"19"===(null==(t=t.getCellType(n,e))?void 0:t.typeName)},t.GC$.extend(w.Worksheet.prototype,{sortRange:function(t,n,e,i,r,o,a,u,s){var c,f,f,l,h,d,v,l,h,l,h,g,h,l,m,p,h,g,l,c=!1;if(0===arguments.length){if(!(f=this.getSortState()))return!1;t=f.row,n=f.col,e=f.rowCount,i=f.colCount,o=f.sortConditions,r=f.byRow,c=!0}if(l=(f=this).getRowCount(),h=f.getColumnCount(),-1===e&&(e=l),-1===n&&(n=0),-1===i&&(i=h),(t=-1===t?0:t)<0||l<=t||n<0||h<=n||e<0||l=e.row+e.rowCount))if(t<=e.row){if(e.row=e.row+n,!e.byRow)for(i=0,r=e.sortConditions;i=t&&(o.index+=n)},kpe:function(t,n){var e,i,r,o,a,e=this.getSortState();if(e&&!(t>=e.col+e.colCount))if(t<=e.col){if(e.col=e.col+n,e.byRow)for(i=0,r=e.sortConditions;i=t&&(o.index+=n)},_pe:function(t,n){var e,i,r,o,a,u,e=this.getSortState();if(e&&(i=[],!(t>=e.row+e.rowCount))){if(t+n<=e.row){if(e.row=e.row-n,!e.byRow)for(r=0,o=e.sortConditions;r=e.row&&t+n=t&&a.index=t+n&&(a.index-=n))}else t=e.col+e.colCount))){if(t+n<=e.col){if(e.col=e.col-n,e.byRow)for(r=0,o=e.sortConditions;r=e.col&&t+n=t&&a.index=t+n&&(a.index-=n))}else t=a&&t.minY>=u&&g.push(t)}),o&&o.forEach(function(t){i.Rme(t),v.gF(t.minX,t.minY,1,1),t.minX>=f&&t.minY>=l&&d.Lme(t,!0)}),g.forEach(function(t){var t={minX:t.minX+f-a,minY:t.minY+l-u,maxX:t.maxX+f-a,maxY:t.maxY+l-u,isValid:t.isValid};d.Bme(t,!0)})):(o&&o.forEach(function(t){t.minX>=f&&t.minY>=l?d.Rme(t,!0,!0):(d.Rme(t),v.gF(t.minX,t.minY,1,1))}),r&&r.forEach(function(t){var n,e,i,r,o;if(t.minX>=a&&t.minY>=u)(n={minX:t.minX+f-a,minY:t.minY+l-u,maxX:J(t.maxX+f-a,f+s-1),maxY:J(t.maxY+l-u,l+c-1),isValid:t.isValid}).isValid||(n.maxX=n.minX,n.maxY=n.minY),d&&d.Bme(n,!0);else if(t.isValid)for(e=J(t.maxX,a+s-1),i=J(t.maxY,u+c-1),r=K(t.minX,a);r<=e;r++)for(h[r]=h[r]||{},o=K(t.minY,u);o<=i;o++)h[r][o]=1})),h}function at(t,n,e,i,r,o,a,u){var s=z("SheetsCalc");s&&s.CalcOperatorAdjustor.moveFormula(t,n,e,i,r,o,a,u)}function ut(t,n,e,i,r,o,a,u,s){var c,f,l,n,h,d,v,g,m,c={};if(t===n&&t.tables)for(f=X(e,i,r,o),l=X(a,u,r,o),h=(n=t.tables).all(),d=void 0,v=0,g=(h=n.zB?h.concat(n.zB):h).length;v=s&&t.minY>=c)if(!t.isValid||t.maxX=o&&t.minY>=a)b.Rme(t,!0,!0,!0);else if(t.isValid)for(n=J(t.maxX,o+l-1),e=J(t.maxY,a+h-1),i=K(t.minX,o);i<=n;i++)for(g[i]=g[i]||{},r=K(t.minY,a);r<=e;r++)g[i][r]=t})),this.Ope(w=function(t,n,e,i){var r,o,a,u,a,a,s,r=3===i,a=d?0:1,u=t.Ut;return r?o=v&&v[n]&&v[n][e]?N:t.getValueIgnoreDefault(n,e,i,a):(o=u.getValue(n,e,i,!0,a),1===i&&B(o)&&f.UB&&(a=t.H3)&&a._dataSource&&(a=u.q_(!1,3,e),s=t.options.colHeaderAutoTextIndex,a)&&(0<=s&&n===s||-1===s&&n===q(t,i)-1)&&(o=a.displayName||a.name)),B(o)||(r?t.YI(n,e,Q,i,!1,!0):u.do("setValue",n,e,Q,i,!0,!0)),o},y=function(t,n,e,i,r){var o=g&&g[n]&&g[n][e];B(i)?o&&o.isValid||t.YI(n,e,Q,r,!!t.HB,!0):(o&&o.isValid&&b.Rme(o,!0,u.Ut.G8),t.YI(n,e,i,r,!!t.HB,!0))}),(m=m.map(function(t){p.Lme(t,!0);var n={minX:t.minX+o-s,minY:t.minY+a-c,maxX:t.maxX+o-s,maxY:t.maxY+a-c,_v:t._v,isValid:t.isValid};return t._v=null,n})).forEach(function(t){t._v?b.setArray(t.minX,t.minY,t.maxX-t.minX+1,t.maxY-t.minY+1,t._v,!1,!0):b.Bme(t,!0)})},i.prototype.copyMoveStyle=function(a){var g,t,t,m,u,p,t,s,b,w,n,e,g=this,m=this.isMove,u=this.options.ignoreSheet,p=null==(t=this.options.pasteSpecialOptions)?void 0:t.skipBlanks,t=null==(t=this.options.pasteSpecialOptions)?void 0:t.advancedPasteOptions,s=null==t?void 0:t.usingSourceTheme,b=null==t?void 0:t.noBorder,w=null==t?void 0:t.numberFormats,n,e;this.Ope(function(t,n,e,i){var r,o,r=(3===i||B(i))&&a&&a[n]&&a[n][e];return s?(o=t.getActualStyle(n,e,i,N,{notClone:N,isForFilter:N,ignoreSheet:u}))&&(delete o.themeFont,delete o.parentName):(o=t.getCompositeStyle(n,e,i,N,N,N,{hasTableStyle:r,ignoreSheet:u}))&&delete o.parentName,m&&o&&_(t,n,e,Q,i),o},function(t,n,e,i,r,o){var a,a,u,s,c,f,l,h,d,a,v;p&&g.jpe.get(n,e)||(w&&(a=i.formatter,(i=(i=t.getStyle(n,e))||new C.Style).formatter=a),b&&(u=(a=t.getCompositeStyle(n,e)).diagonalUp,s=a.diagonalDown,c=a.borderTop,f=a.borderBottom,l=a.borderLeft,h=a.borderRight,d=a.borderHorizontal,a=a.borderVertical,Object.assign(i,{diagonalUp:u,diagonalDown:s,borderTop:c,borderBottom:f,borderLeft:l,borderRight:h,borderHorizontal:d,borderVertical:a})),_(t,n,e,i,r),Z.Worksheet.et(t,"afterCopyMoveStyle",v={target:{sheet:t,row:n,col:e},source:o,isMove:m}))})},i.prototype.copyMoveValidator=function(){var t,s,a,u,c,f,l,h,d,v,n,e,i,r,r,r,g,o,m,t=this,s=t.src,a=t.srcRow,u=t.srcColumn,c=t.dest,f=t.copyRowCount,l=t.copyColumnCount,h=t.isMove,d=t.destRow,v=t.destColumn,n=s.b8.YB;for(e in n)(i=n[e])&&(r=i._S,h&&s===c&&r&&(r=r.some(function(t){return t.contains(a,u,f,l)&&!t.equals(new F.Range(a,u,f,l))}),i.Epe=r),r=i.condition())&&r.initExpression();h&&M(s,c)&&(g=new b.Common.rbush),this.Ope(o=function(t,n,e){var i,r,o,o,i=t.getDataValidator(n,e,3);return i&&(h&&(r=void 0,!i.Epe&&1===i._S.length&&M(s,c)&&((r=i._S[0]).isInner(a,u,f,l)?g.insert({minX:r.row+d-a,minY:r.col+v-u,maxX:r.row+d-a+r.rowCount-1,maxY:r.col+v-u+r.colCount-1,rc:r.rowCount,cc:r.colCount}):a===d&&ur.col&&u+l>=r.col+r.colCount?(o=r.colCount+v-u,g.insert({minX:r.row,minY:r.col,maxX:r.row+r.rowCount-1,maxY:r.col+o-1,rc:r.rowCount,cc:o})):u===v&&ar.row&&a+f>=r.row+r.rowCount?(o=r.rowCount+d-a,g.insert({minX:r.row,minY:r.col,maxX:r.row+o-1,maxY:r.col+r.colCount-1,rc:o,cc:r.colCount})):r=null),r?t.setDataValidator(r.row,r.col,r.rowCount,r.colCount,Q):t.setDataValidator(n,e,Q)),M(s,c))&&(i.ZB=!0),i},m=function(t,n,e,i){var r,o,a,u,r=!1;g&&0<(u=g.search({minX:n,minY:e,maxX:n,maxY:e})).length&&(i&&t.setDataValidator(u[0].minX,u[0].minY,u[0].rc,u[0].cc,i),r=!0),r||t.setDataValidator(n,e,i),M(s,c)&&i&&delete i.ZB},{copyPasteHeaders:0})},i.prototype.copyMoveComment=function(){var t,r,o,n,e,r=this.isMove,o=null==(t=this.options.pasteSpecialOptions)?void 0:t.skipBlanks,n,e;this.Ope(function(t,n,e){var t,i,t=t.Ut.pI,i=t&&t.get(n,e);return i&&r&&t.remove(n,e),i},function(t,n,e,i){var t;o&&!i||(t=t.Ut.pI)&&t.WB(n,e,i)},{copyPasteHeaders:0})},i.prototype.copyMoveMultiColumnPrecedents=function(){var h,t,n,h=this.isMove,t,n;this.Ope(function(t,n,e){var i,r,o,a,u,s,c,f,l,l,i=t.Rpe&&t.Rpe(),r=[],o=t.name();if(i)for(a=0,u=i.length;a=o&&r.maxRow!==1/0&&(r.maxRow=o-1),r.maxCol>=a&&r.maxCol!==1/0&&(r.maxCol=a-1),n=r.maxRow===1/0?-1:r.maxRow-r.minRow+1,e=r.maxCol===1/0?-1:r.maxCol-r.minCol+1,new A.Range(r.minRow,r.minCol,n,e)):N},Y.prototype.name=function(t){var n=this,e=n.parent;if(0===arguments.length)return n.Ut?n.Ut.getName():"";if($(t,e?e.sheets:null,n))return n.ub(t),e&&e.Xg(),n;throw m().Exp_NotSupported},Y.prototype.isSelected=function(t){return this.b2(t)},Y.prototype.b2=function(t,n){var e,i,r,o,a,u,e=this,i=e.parent,r=!!e.Ut&&e.Ut.Xj();return D(t)?r:(t!==r&&(o=e.name(),a=i&&i.Ese(o),u=void 0,n&&(u={oldValue:r,newValue:t,sheetName:o,propertyName:"isSelected",cancel:!1,sheetIndex:a,sheetPosition:i&&i.getSheetPosition(o)},i)&&i.ki(A.Events.SheetChanging,u),!n||u&&!1===u.cancel)&&(e.Ut.qj(t),i&&i.w2&&i.w2.repaint(),n)&&i&&i.ki(A.Events.SheetChanged,{oldValue:r,newValue:t,sheetName:o,propertyName:"isSelected",sheetIndex:a,sheetPosition:i&&i.getSheetPosition(o)}),e)},Y.prototype.Mtt=function(t){this.Ut.undo(t)},Y.prototype.VAe=function(){this.Ut.startTransaction()},Y.prototype.zAe=function(){return this.Ut.endTransaction()},Y.prototype.ub=function(t,n){var e,i,r,o,e=this,i=e.name(),r=e.parent;n||Y.et(e,"beforeSetName",{oldName:i,newName:t}),e.Ut.do("setName",t),r&&(o=r.sheetTabStyles.O2e[i],i!==t)&&o&&(r.sheetTabStyles.O2e[t]=o,r.sheetTabStyles.clear([i])),n||Y.et(e,"setName",{oldName:i,newName:t})},Y.prototype.addRows=function(t,n,e){this.ffe(t,n,e)},Y.prototype.ffe=function(t,n,e,i,r){var o,a,u,s,c;if(void 0===r&&(r=!0),(e=Vt(o=e=void 0===e?j.SheetArea.viewport:e))!==j.SheetArea.corner&&!(n<=0)){u=G(a=this,e),(t<0||u=d&&(v=d-1,g=o.getActiveColumnIndex(),(m=o.getSpan(v,g))&&(v=m.row,g=m.col),o.setActiveCell(v,g)),o.Ww=!0,Y.et(o,L,{changeType:u,row:t,oldValue:a,rowCount:n,sheetArea:e}),e===j.SheetArea.viewport&&o.tables&&o.tables.cL(!0,t),o.dj(t,r,u,n,a)}}finally{o.sL(!0,e),o.resumePaint()}}},Y.prototype.addColumns=function(t,n,e){void 0===e&&(e=j.SheetArea.viewport),this.r9e(t,n,e)},Y.prototype.r9e=function(t,n,e,i){var r,o,a,u,i;void 0===i&&(i=!0),(e=Yt(r=e=void 0===e?j.SheetArea.viewport:e))===j.SheetArea.corner||n<=0||(a=P(o=this,e),o.Dj(t=t<0||a=i&&(l=o.getActiveRowIndex(),(h=o.getSpan(l,i=i-1))&&(l=h.row,i=h.col),o.setActiveCell(l,i)),o.Zw=!0,Y.et(o,L,{changeType:u,col:t,oldValue:a,colCount:n,sheetArea:e}),e===j.SheetArea.viewport&&o.tables&&o.tables.cL(!1,t),o.vj(t,r,u,n,a),o.sL(!0,e),o.zw()}},Y.prototype.frozenColumnCount=function(t,n){var e=this;if(0===arguments.length)return e.fp;e.ame(t,n)},Y.prototype.ame=function(t,n,e){var i,r,o,i=this;0<=t&&(!D(n)&&"number"==typeof n||(n=0),r=i.yve,i.fp=t,0t&&e.frozenRowCount(t)):1===n&&e.Ut.do("setRowCount",t,n),Y.et(e,L,{changeType:"setRowCount",row:i,rowCount:t,sheetArea:n}),e.Ww=!0,e.ui>=t&&(3===n||2===n)&&e.setActiveCell(t-1,e.getActiveColumnIndex()),e.zw(),e.clearPendingChanges())},Y.prototype.setColumnCount=function(t,n,e){var i,r,e;t=S(t,10),g(t)||(r=(i=this).getColumnCount(n),t<0)||t===r||(D(n)&&(n=3),D(e)||(e=i.getUsedRange(e),D(e))||(-1===e.colCount&&(e.colCount=i.getColumnCount(n)),t=Math.max(t,e.col+e.colCount)),3===n||1===n?(i.Ut.do("setColumnCount",t,n),z(i)>t&&i.frozenColumnCount(t)):2===n&&i.Ut.do("setColumnCount",t,n),Y.et(i,L,{changeType:"setColumnCount",col:r,colCount:t,sheetArea:n}),i.Zw=!0,i.ci>=t&&(3===n||1===n)&&i.setActiveCell(i.getActiveRowIndex(),t-1),i.zw(),i.clearPendingChanges())},Y.prototype.getFreeAreaRowCount=function(t){var n;return this.Ut.getFreeAreaRowCount(t)},Y.prototype.getFreeAreaColumnCount=function(t){var n;return this.Ut.getFreeAreaColumnCount(t)},Y.prototype.setFreeAreaRowCount=function(t,n){var e;this.Ut.setFreeAreaRowCount(t,n)},Y.prototype.setFreeAreaColumnCount=function(t,n){var e;this.Ut.setFreeAreaColumnCount(t,n)},Y.prototype.w8=function(t){var n,e,i,r,o;if(!D(t)&&(n=t.rows,i=!1,this.filterRowsVisibleInfo)){if(r=this.filterRowsVisibleInfo.rowsVisibleInfo||{},n&&0=r.row&&a[i].row=r.col&&a[i].cola)for(u=new O.h9,c=s=o[0].col;ca)for(u=new O.h9,c=s=o[0].row;ce.getLastFullyVisibleColumn()&&n<=e.G6()){for(f=0,l=n,c=e.Fi(),h=e.Gy(c),(c=e.Ut.findSpan(t,l))&&(l=c.col+c.colCount-1);l>e.Ab&&!(h<(f+=e.nn(l)));)l--;d=c=void 0,d=u?(l===e.Ab&&fe.getLastFullyVisibleRow()&&t<=e.P6()){for(g=0,(c=e.Ut.findSpan(m=t,n))&&(m=c.row+c.rowCount-1),d=e.Fi(),p=e.Sy(d);m>e.Tb&&!(p<(g+=e.Gt(m)));)m--;t=s=void 0,t=u?(m===e.Tb&&g=G(a)||n<0||n>=P(a)||(u=a.parent&&a.parent.options.scrollByPixel,s=a.parent&&a.parent.options.scrollbarMaxAlign,c=a.S0(n),f=a.C0(t),l=a.getViewportTopRow(f),h=a.ly,d=a.getViewportLeftColumn(c),v=a.my,1===c&&D(o)&&(n=(i=a.rB(n,i,u,s)).col,o=i.offset),1===f&&D(r)&&(t=(i=a.oF(t,e,u,s)).row,r=i.offset),u=e=!1,1!==f||t===l&&r===h||(t=E(t,a.mw().Ky),a.Tb=t,a.ly=r,a.tw(),e=!0),1!==c||n===d&&o===v||(n=E(n,a.Mw().iw),a.Ab=n,a.my=o,a.ow(),u=!0),(e||u)&&((s=a.parent)&&!s.options.scrollbarShowMax&&(a.Zw=!0,a.Ww=!0),a.zw(),i=a.zoom(),e&&a.ki(A.Events.TopRowChanged,{sheet:a,sheetName:a.name(),oldTopRow:l,newTopRow:t,oldOffset:T(h/i),newOffset:T(r/i)}),u)&&a.ki(A.Events.LeftColumnChanged,{sheet:a,sheetName:a.name(),oldLeftCol:d,newLeftCol:n,oldOffset:T(v/i),newOffset:T(o/i)}))},Y.prototype.C0=function(t,n){var e=this;return J(n)?3:t=G(e)-H(e)?2:1},Y.prototype.S0=function(t){var n=this;return t=P(n)-U(n)?2:1},Y.prototype.oF=function(t,n,e,i){var r,o,a,u,s,c,f,l,h,d,v,g,i,n,m,p,i,r=this,o=r.Jt,a=r.C0(t),u=r.getViewportTopRow(a),s=r.ly,c=V(r),l=r.P6();if(0===n)if(i){for(h=l,f=r.getViewportHeight(a);c<=h;h--)if((f-=o.Gt(h))<0){t<=h?e||(s=0):(t=h,s=f);break}}else s=0;else if(1===n){if(v=d=!1,i){for(h=l,f=g=y(r.getViewportHeight(a)/2);c<=h;h--)if((f-=o.Gt(h))<0){h<=t&&(h--,f+=g,v=!0);break}if(v)for(;c<=h;h--)if((f-=o.Gt(h))<0){t=h,s=f,d=!0;break}}if(!d){for(f=y((r.getViewportHeight(a)-o.Gt(t))/2);cg[g.length-1].col||tm[m.length-1].row||lm[0].row?i.y+=c.Mf.PCn(f):f===m[0].row&&(i.y+=c.Mf.PCn(m[0].row))),a<=l&&lm[0].row&&(i.height-=c.Mf.PCn(o)),l=i.getRowCount()&&u=i.pw()&&t<=u&&(s||t!==r||n!==o)&&((s=i.parent)&&(n||t!==u||(n=a),s.ib&&s.ib.yy(i,t,n||0,e),i.tw()),s&&!s.options.scrollbarShowMax&&i.ew(),i.invalidateLayout())},Y.prototype.o9=function(t,n,e){var i,r,o,a,u,a,s,s,i=this,r=i.Ab,o=i.my,a=i.Mw(),u=a.iw,a=a.Xy,s=!D(e);(t=r>=i.getColumnCount()&&u=i.Sw()&&t<=u&&(s||t!==r||n!==o)&&((s=i.parent)&&(n||t!==u||(n=a),s.ib&&s.ib.wy(i,t,n||0,e),i.ow()),s&&!s.options.scrollbarShowMax&&i.aw(),i.invalidateLayout())},Y.prototype.JL=function(t,n,e){var i,r,o,a,u,s,c,u,s,s,u,c,u,c,u,f,l,s,u,h,i=this,r=t.row,o=t.col,a=t.hitTestType;return D(r)||D(o)?(s=!1,c=(u=i.Fi()).XAe(),!(s=!D(c)&&c.contains(n,e,!0)||(c=u.qAe(),!D(c)&&c.contains(n,e,!0))?!0:s)||(u=i.PTe(a),D(u))||(s=i.$Ae(a),D(s))?N:s.Bn(n,e,u,c,{sheet:i,row:r,col:o,sheetArea:a})):((s=3===t.rowViewportIndex)||((u=i.getSpan(r,o,a))&&(r=u.row,o=u.col),i.Cb&&(c=i.Cb.D7(r,o,a))&&(r=c.row,o=c.col)),u={},s&&(u.rowSpacingIndex=t.rowSpacingIndex,u.isAfterRowSpacing=t.isAfterRowSpacing),c=i.Il(r,o,a,_,u),u=1===a?-1:_,f=2===a?-1:_,l={needAutoMerge:!0},s&&(l.rowSpacingIndex=t.rowSpacingIndex,l.isAfterRowSpacing=t.isAfterRowSpacing),s=i.getCellRect(r,o,u,f,l),u={sheet:i,row:r,col:o,sheetArea:a,rowSpacingIndex:t.rowSpacingIndex,isAfterRowSpacing:t.isAfterRowSpacing},(h=c.cellType||i.$f(a)).Bn(n,e,c,s,u))},Y.prototype.bC=function(){this.unbindAll(),this.E3()},Y.prototype.dA=function(t,n,e){for(var t,i,r,o,a,u,s,c,f,u,f,f,t=this.JS(t),i=t.row,r=t.col,o=i+t.rowCount,a=r+t.colCount,s=i;st-1?e.splice(i,1):r.row+r.rowCount-1>t-1&&(r.rowCount=t-1-r.row+1))},T.prototype.DP=function(t,n){var e,i,r;for(void 0===n&&(n=b.SheetArea.viewport),i=(e=this.SP).length-1;0<=i;i--)-1!==(r=e[i].range).col&&m(e[i].sheetArea,n,!1)&&(r.col>t-1?e.splice(i,1):r.col+r.colCount-1>t-1&&(r.colCount=t-1-r.col+1))},T.prototype.toJSON=function(){return this.SP.map(function(t){var n=t.range;return{range:{row:n.row,col:n.col,rowCount:n.rowCount,colCount:n.colCount},direction:t.direction,mode:t.mode,sheetArea:t.sheetArea,selectionMode:t.selectionMode}})},T.prototype.fromJSON=function(t){var n,e,i,r,o,a;if(t)for(n=this.SP,e=0,i=t;e=n)&&u.repaint(u.getRangeRect(1,1,o)),(-1===o.col||o.col+o.colCount>e)&&u.repaint(u.getRangeRect(1,2,o))):a===b.SheetArea.rowHeader&&(o=u.Fi(),u.repaint(o.B1(1)))}),u.bind(b.Events.LeftColumnChanged+"."+o,function(){var t,n,e,i,r,o,a,o,o,t=s.all();if(0=n)&&u.repaint(u.getRangeRect(1,1,o)),(-1===o.row||o.row+o.rowCount>e)&&u.repaint(u.getRangeRect(2,1,o))):a===b.SheetArea.colHeader&&(o=u.Fi(),u.repaint(o.L1(1)))})},dispose:function(t){!1!==t.clearCache&&(this.Cb=C,this.unbind(b.Events.TopRowChanged+"."+o),this.unbind(b.Events.LeftColumnChanged+"."+o))},onLayoutChanged:function(t){var n,e,i,r,o,t,a,n=t.changeType,e=t.row,i=t.rowCount,r=t.col,o=t.colCount,t=t.sheetArea,a=this.Ut;"addRows"===n?a.jP(e,i,t):"deleteRows"===n?a.OP(e,i,t):"addColumns"===n?a.RP(r,o,t):"deleteColumns"===n?a.BP(r,o,t):"setRowCount"===n?a.LP(i,t):"setColumnCount"===n&&a.FP(o,t),"invalidateLayout"===n&&this.My<=0&&this.Cb.IP()},toJson:function(t,n){var e,i,e;n&&n.ignoreStyle||(i=this.Cb,t.autoMergeRangeInfos=i.toJSON(),n&&n.includeAutoMergedCells&&(i.IP(!0,!0),A(i,t)))},fromJson:function(t,n,e){var i;e&&e.ignoreStyle||this.Cb.fromJSON(t.autoMergeRangeInfos)},wh:function(t,n,e){var i,r,o,e,i;e&&!1===e.includeStyles||(t.lossless.autoMerge={},r=this.Cb,t.lossless.autoMerge.autoMergeRangeInfos=r.toJSON(),o=r.Mf.NMi,e&&e.includeAutoMergedCells&&!o&&(e={},r.IP(!0,!0),A(r,e),x(e,t)))},yh:function(t,n,e){var i;e&&!1===e.includeStyles||!t.lossless||!t.lossless.autoMerge||this.Cb.fromJSON(t.lossless.autoMerge.autoMergeRangeInfos)}}),b.Workbook.ch(o,{onCultureChanged:function(){c()}}),b.GC$.extend(b.Worksheet.prototype,{autoMerge:function(t,n,e,i,r){void 0===n&&(n=l.column),void 0===e&&(e=w.free),void 0===i&&(i=b.SheetArea.viewport),void 0===r&&(r=h.source);var o=this.Cb;if(0===arguments.length)return o.all();t&&(this.Ut._P(),n===l.none?o.remove(t,i):o.add(t,n,e,i,r),this.zw())}})},"./dist/plugins/autoMerge/autoMerge.res.en.js":function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Exp_RangeIsIntersected=void 0,n.Exp_RangeIsIntersected="The range should not intersect with exsit ranges."},"./dist/plugins/cellState/cellStateManager.js":function(t,n,e){"use strict";var o,a,i,b,w,e,f,i,y,r,u,n,s;function c(t){var n=t.row,e=t.col,i=t.rowCount,t=t.colCount;return new b.Range(n,e,i,t)}function l(t,n){this.Mf=t,this.Kh=n,this.cE=[];for(var e=1;e<=3;e++)this.PP(e)}function h(t){this.Mf=t,this.GP={}}function d(n,t,e){var i=[],r=n.getRowCount(3),o=n.getColumnCount(3);return t.forEach(function(t){i=i.concat(m(n,t.style,t.range,e,r,o))}),i}function v(t){for(var n,e,i,r,o,e,a,u,s,c,e,n=[],i=0,r=t.length;i=parseFloat(e.style.width)&&(t.x=parseFloat(e.style.width)-1),Nt(u(t,!0),!0,e)},e.addEventListener("mouseleave",n)}function ft(t,n,e,i,r,o,a,u,s,c,f,l){var n,h,d,e,v,g,m,p,n=U(n,e,a,u,!0,[t]);if(0r.x+r.width||n+ir.y+r.height))return t+e>r.x+r.width&&(e=r.x+r.width-t),n+i>r.y+r.height&&(i=r.y+r.height-n),te.y+e.height&&(h.y=v(h.y-(h.y+h.height-e.y-e.height),e.y))),l=(u=f.getImage(a)).width,i=u.height,T.mt.Tt.msie&&n.imageType&&(i=n.imageType===T.ButtonImageType.custom?(g[a]||(u.style.position="absolute",u.style.left="-10000px",u.style.top="-100000px",document.body.appendChild(u),g[a]={width:u.width,height:u.height},document.body.removeChild(u)),l=g[a].width,g[a].height):l=12),s&&T.mt.Tt.msie&&h.x+h.width>s.x+s.width?0<(e=s.x+s.width-h.x)&&t.drawImage(u,0,0,e*(d=l/(r*c)),i,h.x,h.y,e,o*c):t.drawImage(u,0,0,l,i,h.x,h.y,r*c,o*c)):f.addImage(a),t.restore()}function G(t,n,e,i){var r,o,n,a,u,e;return void 0===i&&(i=!0),r=B(e)?e.printZoomFactor:e.sheet.zoom(),o=2*A+3,C(t.width)?(n=N.Bt(x,t.caption,n,r,e),a=t.useButtonStyle,(u=Ot(t,e.row))&&(n=Ct(t)+n,o=(a?o:0)+K),i?(n+o+7)*r:n+o+7):(e=v(1,t.width),isNaN(e)&&(e=1),i?e*r:e)}function Mt(t,n,e){var i,r,i,n,t;return void 0===e&&(e=!0),i=n.sheet,r=B(n)?n.printZoomFactor:i.zoom(),i=i.getRowHeight(n.row),n=t.imageSize?t.imageSize.height:x,t=v(1,n||i),isNaN(t)&&(t=1),e?t*r:t}function U(t,n,e,i,r,o){var a,u,s,c,f,l,a=[];if(!n||0===n.length)return[];for(u=!1,s=t.Ut.getValueForKey(e,i,h),t.getActiveRowIndex()===e&&t.getActiveColumnIndex()===i&&!0!==s&&(u=!0),c=0;cf&&(u=l.left+r-f),l.top+o>c&&(a=l.top+o-c)):(c=(l=t.sfe).clientHeight,f=l.clientWidth,c=i.getRowCount(o)||r<0||r>=i.getColumnCount(o))return!1;if(i.showCell(t,r,S.VerticalPosition.nearest,S.HorizontalPosition.nearest),s=i.getCellRect(t,r,a=1===o?-1:void 0,u=2===o?-1:void 0),i.parent&&!i.parent.options.scrollByPixel&&!i.isEditing()){if(0<(c=i.frozenColumnCount())&&c<(f=i.getViewportLeftColumn(1))&&(l=i.getSpan(t,r,o))&&l.col<=f&&f\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n x\n \n 2\n
\n
\n \n 1\n \n \n \n x\n \n
\n
\n
\n
\n
\n
CE
\n
C
\n
BS
\n
\n
\n
\n
\n
7
\n
8
\n
9
\n
\n
\n
\n
\n
4
\n
5
\n
6
\n
\n
\n
\n
\n
1
\n
2
\n
3
\n
\n
\n
\n
\n
\n
\n
0
\n
.
\n
\n
\n
\n
\n
OK
\n
\n
\n
\n
\n\n',f=Math.floor,l=Math.abs,h=Math.pow,d=Math.round,v=Math.sqrt,g=Math.max,m=new Array("0","1","2","3","4","5","6","7","8","9","+/-",".","+","-","*","/","SQRT","%","1/x","=","MC","MR","MS","M+","BS","CE","C","POW"),x.Init=function(){var t;x.GetBrowserType(),x.IsIE=void 0!==x.ie||void 0!==x.edge},x.GetBrowserType=function(){try{var t=navigator.userAgent.toLowerCase();window.ActiveXObject?x.ie=t.match(/msie ([\d.]+)/)[1]:-1!==t.indexOf("edge")?x.edge=t.match(/edge\/([\d.]+)/)[1]:-1!==t.indexOf("firefox")&&(x.firefox=t.match(/firefox\/([\d.]+)/)[1]),-1!==t.indexOf("rv:")&&-1===t.indexOf("firefox")&&(x.ie=t.match(/rv:([\d.]+)/)[1])}catch(t){}},(p=x).Init(),A.IsErrorText=function(t){return t===s().Calculator_DivideByZeroInfo||t===s().Calculator_InvalidInputInfo||t===s().Calculator_SqrtParameterException||t===s().Calculator_OverFlowInfo},b=A,n.CalculatorErrorInfo=b,I.IsDotContained=function(t){var n;return-1!==(t+"").indexOf(".")},I.GetDotPosition=function(t){var n,e,i,n=t+"",e=0,i=0;for(i=n.length;0t.clientWidth)},k.prototype.aH=function(t){var n=T(t);t.style.fontSize="".concat(n-1,"px")},k.prototype.uH=function(t){for(var n,e,n=this,e=T(t);!n.oH(t)&&ethis.eraMax)},D.addMilliseconds=function(t,n){var t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());return t.setMilliseconds(t.getMilliseconds()+n),new Date(t.valueOf())},D.getEraDate=function(t){var n,e,i,n={era:-1,eraYear:-1};if(D.isValidEraDate(t))for(e=0;ef.start&&(st):(e=this.selectedDate,i=this.focusDate,n.selected=e&&e.getMonth()===t&&e.getFullYear()===i.getFullYear(),n.focused=i&&i.getMonth()===t),this.monthItems.push(n)},_.prototype.updateYearItems=function(){var t,n,e;for(this.yearItems=[],t=this.focusDateYearRangeStart-1;t<=this.focusDateYearRangeEnd+1;t++)n=new Ot(t),this.owner.A1e?(e=this.T1e,n.selected=e.start.getFullYear()===t||e.end.getFullYear()===t,n.focused=e.start.getFullYear()t):(n.selected=this.selectedDate&&this.selectedDate.getFullYear()===t,n.focused=this.focusDate&&this.focusDate.getFullYear()===t,n.disabled=tthis.focusDateYearRangeEnd),this.yearItems.push(n)},_.prototype.updateYearRange=function(){this.focusDateYearRangeStart=10*Math.floor(this.focusDate.getFullYear()/10),this.focusDateYearRangeEnd=this.focusDateYearRangeStart+9},_.prototype.getShortWeekName=function(t){var n,e,n,e;return N.resource.shortWeeks[t=(this.owner.dH+t-1)%7]},_.prototype.getCurrentMonthName=function(){var t=this.focusDate.getMonth();return _.getMonthName(t)},_.prototype.updateCalendarData=function(t){t?(this.T1e=t.selectedDateRange,this.S1e=t.oldSelectedDateRange,this.E1e=t.hoverDate):this.RangeCalendar.notifyCalendarData({selectedDateRange:this.T1e,oldSelectedDateRange:this.S1e,hoverDate:this.E1e})},Lt=_,Ut=F.EventBase,e(O,Ut),Object.defineProperty(O.prototype,"host",{get:function(){return this.jS.getContainer()},enumerable:!1,configurable:!0}),O.prototype.createCalendarDom=function(){var t,n,e,i,r,i,t,t=this.jS;return this.mH=new _t,n=j("div"),this.jS.A1e?n.className=c+" "+H:n.classList.add(c),t.HG?n.classList.add(z):n.classList.add(W),e=j("table"),i=j("tr"),(r=j("td")).classList.add(X),t.HG&&r.classList.add(q),r.appendChild(this.gH()),i.appendChild(r),e.appendChild(i),n.appendChild(e),t.HG&&(i=j("tr"),t=j("td"),r.appendChild(this.pH()),r.appendChild(this.bH()),t.appendChild(this.yH()),t.appendChild(this.wH()),i.appendChild(t),e.appendChild(i)),this.mH.outerContainerDiv=n},O.prototype.wH=function(){var t,n,t=j("div");return t.classList.add(Z),(n=j("button")).textContent=g().OK,n.className=x+" "+Tt+" "+St,t.appendChild(n),this.mH.okButton=n,t},O.prototype.pH=function(){var t=j("div");return t.classList.add($),t},O.prototype.yH=function(){var t=j("div");return t.classList.add(tt),t},O.prototype.gH=function(){var t=j("div");return t.className=V+" "+ut+" "+st,t.tabIndex=0,t.appendChild(this.MH()),t.appendChild(this.CH()),t.appendChild(this.SH()),this.mH.dateContainerDiv=t},O.prototype.MH=function(){var t=j("div");return t.classList.add(nt),t.appendChild(this.TH()),t.appendChild(this.AH()),t},O.prototype.TH=function(){var t,n,e,i,r,r,o,a,a,t=j("div");return t.className=m+" "+w+" "+T,(n=j("div")).className=y+" "+T+" "+ct+" "+Ct,(e=j("div")).classList.add(M),(i=j("button")).className=x+" "+C,i.title=g().Calendar_LastTenYear,i.setAttribute("type","button"),(r=j("div")).classList.add(p),i.appendChild(r),(r=j("span")).classList.add(M),(o=j("button")).className=x+" "+C,o.title=g().Calendar_NextTenYear,o.setAttribute("type","button"),(a=j("div")).classList.add(b),o.appendChild(a),n.appendChild(i),n.appendChild(r),n.appendChild(o),(a=this.mH.calendarYearSection).headerDiv=t,a.lastYearRangeButton=i,a.focusDateYearRangeName=r,a.nextYearRangeButton=o,t.appendChild(n),t},O.prototype.AH=function(){var t,n,t=j("table");return t.className=f+" "+S,(n=j("div")).appendChild(t),this.mH.calendarYearSection.currentYearRangeTable=t,this.IH(),n},O.prototype.IH=function(){for(var t,n,e,i,r,o,a,t=this.mH.calendarYearSection,n=j("tbody"),e=0;e<3;e++){for(i=j("tr"),r=0;r<4;r++)(o=j("td")).setAttribute(xt,(4*e+r).toString()),(a=j("span")).classList.add(ft),a.setAttribute(xt,(4*e+r).toString()),a.innerText=(4*e+r+1).toString(),o.appendChild(a),i.appendChild(o),t.yearTds.push(o);n.appendChild(i)}t.currentYearRangeTable.appendChild(n)},O.prototype.CH=function(){var t=j("div");return t.classList.add(it),t.appendChild(this.xH()),t.appendChild(this.NH()),t},O.prototype.xH=function(){var t,n,e,i,r,r,o,a,a,t=j("div");return t.className=m+" "+w+" "+T,(n=j("div")).className=y+" "+T+" "+ct+" "+Ct,(e=j("div")).classList.add(M),(i=j("button")).className=x+" "+C,i.title=g().Calendar_LastYear,i.setAttribute("type","button"),(r=j("div")).classList.add(p),i.appendChild(r),(r=j("span")).className=K+" "+M,(o=j("button")).className=x+" "+C,o.title=g().Calendar_NextYear,o.setAttribute("type","button"),(a=j("div")).classList.add(b),o.appendChild(a),n.appendChild(i),n.appendChild(r),n.appendChild(o),(a=this.mH.calendarMonthSection).headerDiv=t,a.lastYearButton=i,a.currentYearName=r,a.nextYearButton=o,t.appendChild(n),t},O.prototype.NH=function(){var t,n,t=j("table");return t.className=f+" "+S,(n=j("div")).appendChild(t),this.mH.calendarMonthSection.currentYearTable=t,this.kH(),n},O.prototype.kH=function(){for(var t,n,e,i,r,o,a,t=this.mH.calendarMonthSection,n=j("tbody"),e=0;e<3;e++){for(i=j("tr"),r=0;r<4;r++)(o=j("td")).setAttribute(At,(4*e+r+1).toString()),(a=j("span")).classList.add(ft),a.setAttribute(At,(4*e+r+1).toString()),a.innerText=(4*e+r+1).toString(),o.appendChild(a),i.appendChild(o),t.monthTds.push(o);n.appendChild(i)}t.currentYearTable.appendChild(n)},O.prototype.SH=function(){var t=j("div");return t.classList.add(rt),t.appendChild(this._H()),t.appendChild(this.EH()),t.appendChild(this.jH()),this.jS.A1e||t.appendChild(this.OH()),t},O.prototype._H=function(){var t,n,e,i,r,r,o,a,a,u,s,c,f,l,h,d,v,c,t=j("div");for(t.className=m+" "+w+" "+T,(n=j("div")).className=y+" "+T+" "+ct+" "+Ct,(e=j("div")).classList.add(M),(i=j("button")).className=x+" "+C,i.title=g().Calendar_LastMonth,i.setAttribute("type","button"),(r=j("div")).classList.add(p),i.appendChild(r),(r=j("span")).className=K+" "+M,(o=j("button")).className=x+" "+C,o.title=g().Calendar_NextMonth,o.setAttribute("type","button"),(a=j("div")).classList.add(b),o.appendChild(a),n.appendChild(i),n.appendChild(r),n.appendChild(o),(a=j("div")).className=et+" "+Mt,(u=j("div")).classList.add(at),(s=j("select")).classList.add(ot),f=(c=new Date).getFullYear()-this.lH,l=c.getFullYear()+this.fH,h=f;h<=l;h++)(d=j("option")).text=h.toString(),d.value=h.toString(),s.options.add(d);return(v=j("div")).classList.add(at),u.appendChild(s),a.appendChild(u),t.appendChild(a),t.appendChild(n),(c=this.mH.calendarDaySection).headerDiv=t,c.lastMonthButton=i,c.currentMonthName=r,c.nextMonthButton=o,c.yearSelect=s,t},O.prototype.EH=function(){var t,n,e,i,r,o,a,t=j("div");for(t.className=Q+" "+w+" "+T,(n=j("table")).className=f+" "+S,e=j("thead"),i=j("tr"),r=0;r<7;r++)(o=j("th")).setAttribute(It,r.toString()),(a=j("span")).classList.add(lt),a.setAttribute(It,r.toString()),a.innerText=this.jS._data.getShortWeekName(r),o.appendChild(a),i.appendChild(o),this.mH.calendarDaySection.weekThs.push(o);return e.appendChild(i),n.appendChild(e),t.appendChild(n),t},O.prototype.jH=function(){var t,n,e,i,r,o,a,u,s,c,t=this.mH.calendarDaySection,n=j("div"),e=j("div"),i=j("table");for(i.className=f+" "+S,r=j("tbody"),o=0;o<6;o++){for(a=j("tr"),u=0;u<7;u++)(s=j("td")).setAttribute(A,(7*o+u).toString()),(c=j("span")).classList.add(ft),c.setAttribute(A,(7*o+u).toString()),s.appendChild(c),a.appendChild(s),t.dayTds.push(s);r.appendChild(a)}return i.appendChild(r),e.appendChild(i),n.appendChild(e),t.dayContentTable=i,n},O.prototype.OH=function(){var t,n,e,i,r,o,t=j("div");return t.classList.add(J),(n=j("table")).classList.add(f),e=j("tbody"),i=j("tr"),r=j("td"),(o=j("i")).className=ht+" "+yt,o.innerText=N.resource.today,r.appendChild(o),i.appendChild(r),e.appendChild(i),n.appendChild(e),t.appendChild(n),this.mH.calendarDaySection.todayTd=r,this.mH.calendarDaySection.todayTable=n,t},O.prototype.bH=function(){var n,t,n=this,t=j("div");return t.className=Y+" "+ut+" "+st,t.tabIndex=0,this.mH.timeContainerDiv=t,this.RH=new B.TimePicker(t),this.RH.setOptions({step:{minute:30},height:260}),this.RH.on(o.BaseDropdown.Event_ValueChanged,function(t){n.BH(t)}),t},O.prototype.updateCalendarDom=function(){this.LH(),this.jS.HG&&this.FH()},O.prototype.LH=function(){switch(this.jS._data.calendarPage){case u.CalendarPage.year:this.PH();break;case u.CalendarPage.month:this.GH();break;case u.CalendarPage.day:this.UH()}},O.prototype.HH=function(){var t,n,e,i,r,o,t,a,u,a,t,n,s,c,f,t=this.jS._data,n=this.mH.calendarDaySection,e=!1;for(n.currentMonthName.innerText=t.getCurrentMonthName(),i=t.focusDate.getFullYear(),r=n.yearSelect,o=0;oc.getFullYear()?r.options[o].disabled=!0:r.options[o].disabled=!1;s.getFullYear()===c.getFullYear()&&s.getMonth()>=c.getMonth()-1?(t.disabled=!0,t.classList.add(l)):(t.disabled=!1,t.classList.remove(l))}else if(2===n){for(o=0;ot.start)&&(n.E1e=e),n.updateCalendarData(),this.RangeCalendar.updateRangeCalendarDom()))},O.prototype.fz=function(){var t,n,n,e,t=this.jS,n=t._data.selectedDate,n=n?new Date(n.valueOf()):null,e=new Date;n&&(e.setHours(n.getHours()),e.setMinutes(n.getMinutes()),e.setSeconds(0)),t._data.selectedDate=e,t._data.focusDate=new Date(e.valueOf()),this.LH(),t.HG||this.oz()},O.prototype.hz=function(t){var t=t.srcElement||t.target;t&&(this.jS._data.focusDate.setFullYear(+t.value),this.jS.A1e?(this.RangeCalendar.checkFocusDateValid(),this.RangeCalendar.updateRangeCalendarDom()):this.LH())},O.prototype.attachTimeEvent=function(){var n=this;this.mH.timeContainerDiv.addEventListener("click",function(t){n.setCalendarActivePart(I.Time)}),this.mH.okButton.addEventListener("click",function(t){n.oz()})},O.prototype.BH=function(t){var n,e,t,n=this.jS._data,e=n.selectedDate?new Date(n.selectedDate.valueOf()):new Date,t=t.value;e.setHours(t.getHours()),e.setMinutes(t.getMinutes()),e.setSeconds(t.getSeconds()),n.selectedDate=e,n.focusDate=new Date(e.valueOf())},O.prototype.oz=function(){var t=this.jS._data;this.fire(o.BaseDropdown.Event_ValueChanged,{oldValue:t.oldSelectedData,newValue:t.selectedDate}),t.oldSelectedData=t.selectedDate},O.prototype.showCalendarPage=function(t){var n,e,i,n=this.host.querySelector("."+nt),e=this.host.querySelector("."+it),i=this.host.querySelector("."+rt);switch(n.style.display="none",e.style.display="none",i.style.display="none",t){case u.CalendarPage.year:n.style.display="";break;case u.CalendarPage.month:e.style.display="";break;case u.CalendarPage.day:i.style.display=""}this.jS._data.calendarPage=t,this.updateCalendarDom()},O.prototype.setCalendarActivePart=function(t){switch(this.jS._data.calendarActivePart=t,this.mH.dateContainerDiv.classList.remove(r),this.jS.HG&&this.mH.timeContainerDiv.classList.remove(r),t){case I.Date:this.jS.HG&&this.mH.dateContainerDiv.classList.add(r),this.mH.outerContainerDiv.focus();break;case I.Time:this.jS.HG&&this.mH.timeContainerDiv.classList.add(r),this.mH.outerContainerDiv.focus()}},O.Event_GetHost="GetHost",Ft=O,Ht=o.BaseDropdown,e(E,Ht),E.prototype.setOptions=function(t){var n,t;t&&(t.showTime||this.A1e||(this.HG=t.showTime,this.Ti.innerHTML="",this.Ti.appendChild(this.Dn.createCalendarDom()),this.Dn.attachEvent()),n=t&&t.calendarPage?t.calendarPage:u.CalendarPage.day,(t=t&&t.startDay?t.startDay:u.CalendarStartDay.saturday)!==this.dH&&(this.dH=t,this.Ti.innerHTML="",this.Ti.appendChild(this.Dn.createCalendarDom()),this.Dn.attachEvent()),this.Dn.showCalendarPage(n),this.Dn.setCalendarActivePart(I.Date))},E.prototype.setValue=function(t){var n=this._data;if(t){if(this.A1e&&t instanceof Object){if(!t.start||!t.end)return;n.S1e={start:t.start,end:t.end},n.T1e={start:t.start,end:t.end},n.updateCalendarData()}else t instanceof Date&&(n.selectedDate=t,n.oldSelectedData=new Date(t.valueOf()),n.focusDate=new Date(t.valueOf()),n.updateYearRange());n.updateDayFocusDate()}},E.prototype.scrollToSelect=function(){this.Dn.updateCalendarDom()},Bt=E,t.Calendar=Bt,zt=o.BaseDropdown,e(R,zt),R.prototype.setOptions=function(t){s(t.showBuiltInDateRange)&&(t.showBuiltInDateRange=!0),t.showTime=!1,t.calendarPage=u.CalendarPage.day,this.R1e.setOptions(t),this.B1e.setOptions(t)},R.prototype.setValue=function(t){this.R1e.setValue(t),this.B1e.setValue(t),this.updateRangeCalendarDom()},R.prototype.updateRangeCalendarDom=function(){this.R1e.Dn.updateCalendarDom(),this.B1e.Dn.updateCalendarDom(),this.updateDataRangeResult(this.T1e)},R.prototype.L1e=function(){var t,i,t=k.getBuiltInDateRanges(),i=j("div");return i.className=c+" "+vt,t.forEach(function(t,n){var e,n,e=j("div");e.className=dt,e.setAttribute(Nt,n+""),n=P.createTextNode(t[0]),e.appendChild(n),i.appendChild(e)}),this.P1e=i},R.prototype._1e=function(t){var n,e,e;this.Ti.innerHTML="",(n=j("div")).className=c+" "+U,t&&!1===t.showBuiltInDateRange||n.appendChild(this.L1e()),(e=j("div")).classList.add(G),this.R1e=new Bt(e,t,this,1),n.appendChild(e),(e=j("div")).classList.add(G),this.B1e=new Bt(e,t,this,2),n.appendChild(e),this.Ti.appendChild(n),this.Ti.appendChild(this.G1e())},R.prototype.aY=function(){var n=this;this.P1e&&this.P1e.addEventListener("click",function(t){n.U1e(t)}),this.H1e.addEventListener("click",function(t){n.onOkButtonClick(t)}),this.z1e.addEventListener("click",function(t){n.onCancelButtonClick(t)}),this.on(Ft.Event_GetHost,function(t){t.host=n.Ti})},R.prototype.G1e=function(){var t,n,n,e,n,e,t=j("div");return t.className=gt,(n=j("div")).classList.add(wt),t.appendChild(n),this.V1e=n,this.updateDataRangeResult(this.T1e),(n=j("div")).className=bt,(e=j("button")).textContent=g().Cancel,e.className=mt,n.appendChild(e),t.appendChild(n),this.z1e=e,(n=j("div")).className=bt,(e=j("button")).textContent=g().OK,e.className=mt,n.appendChild(e),t.appendChild(n),this.H1e=e,t},R.prototype.U1e=function(t){var t,t,n,t,t=t.srcElement||t.target;t&&(t=t.getAttribute(Nt),s(t)||(t=(n=k.getBuiltInDateRanges())[t],this.T1e={start:t[1].start,end:t[1].end},this.notifyCalendarData(),this.fire(o.BaseDropdown.Event_ValueChanged,{text:k.getShortDate(this.T1e)})))},R.prototype.updateDataRangeResult=function(t){var n,e,i,r,r;if(t&&t.start instanceof Date&&t.end instanceof Date&&(this.V1e.innerHTML="".concat(t.start.toLocaleDateString("en-US"),"-").concat(t.end.toLocaleDateString("en-US"))),this.P1e)for(n=k.getBuiltInDateRanges(),e=0;ethis.MU.stopYear&&(i=this.MU.stopYear),"number"==typeof e&&(t=n.Ti.querySelector("[".concat(g,"='").concat(i,"-").concat(e,"']")))&&(t.classList.add(v),n.Wz&&n.Wz.classList.remove(v),n.Wz=t)},M.prototype.scrollToSelect=function(){var t,t,t=this.Wz;t&&(t=t.offsetTop,this.Ti.scrollTop=t)},M.prototype.Qz=function(t,n){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){for(var n=(this.document||this.ownerDocument).querySelectorAll(t),e=n.length;0<=e&&n.item(e)!==this;)--e;return-1=n&&(c.row+=e)}function k(t,n,e){var i,r,o,a,u,s,c,f;if(t)for(i in t)if(t.hasOwnProperty(i)&&(r=t[i]))for(o in r)if(r.hasOwnProperty(o)&&(a=r[o])){for(u=[],s=0,c=a;s=n&&(c.col+=e)}function D(t,n,e){var i,r,o,a,u,s,c,f;if(t)for(i in t)if(t.hasOwnProperty(i)&&(r=t[i]))for(o in r)if(r.hasOwnProperty(o)&&(a=r[o])){for(u=[],s=0,c=a;sh&&m&&(i=y.DropDownDirection.Down);break;case y.DropDownDirection.Down:e.height>d&&m&&(i=y.DropDownDirection.Up);break;case y.DropDownDirection.Left:e.width>v&&p&&(i=y.DropDownDirection.Right);break;case y.DropDownDirection.Right:e.width>g&&p&&(i=y.DropDownDirection.Left)}switch(w=b=0,i){case y.DropDownDirection.Up:w=f-e.height;break;case y.DropDownDirection.Down:w=l;break;case y.DropDownDirection.Left:b=s-e.width;break;case y.DropDownDirection.Right:b=c}return i===y.DropDownDirection.Up||i===y.DropDownDirection.Down?r===y.DropDownAlignment.Near?b=s:r===y.DropDownAlignment.Center?b=s-(e.width-n.width)/2:r===y.DropDownAlignment.Far&&(b=c-e.width):i!==y.DropDownDirection.Right&&i!==y.DropDownDirection.Left||(r===y.DropDownAlignment.Near?w=f:r===y.DropDownAlignment.Center?w=f-(e.height-n.height)/2:r===y.DropDownAlignment.Far&&(w=l-e.height)),n=new C(b,w,e.width,e.height),o&&(n.width>t.width?n.x=0:(n.x=Math.max(n.x,0),n.x=Math.min(n.x,t.width-n.width))),a&&(n.height>t.height?n.y=0:(n.y=Math.max(n.y,0),n.y=Math.min(n.y,t.height-n.height))),n.Offset(u),n.Location},f.prototype.render=function(){var n=this;this.aV?(this._oldPosition=this.sourceElement.style.position,this.sourceElement.style.position="absolute",this.uV=this.sourceElement.style.display,this.sourceElement.style.display="",this.sourceElement.style.zIndex="10000",this.sourceElement.classList.add(r),this.cV=this.sourceElement):(this.sV=document.createElement("div"),this.sV.style.cssText="position:absolute; z-index:10000; box-shadow:rgba(0, 0, 0, 0.4) 2px 4px 5px; outline:none",this.sV.classList.add(r),this.sV.appendChild(this.sourceElement),this.MU.hostElement.appendChild(this.sV),this.cV=this.sV),this.MU.Oue&&setTimeout(function(){var t;n.cV&&(t=n.cV.querySelector("[role=menu],[role=listbox]"))&&t.focus()},500)},f.prototype.bindEvent=function(){var n=this;this.MU.closeAfterClickOutside&&(document.addEventListener("mousedown",this.globalMousedownEventHandler,!0),"touchstart MSPointerDown pointerdown".split(" ").forEach(function(t){document.addEventListener(t,n.globalMousedownEventHandler,!0)})),this.MU.closeAfterResize&&document.addEventListener("resize",this.windowResizeEventHandler)},n.PopupControl=f},"./dist/plugins/celltype/editor/slider.js":function(t,n,e){"use strict";var i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,y,M,C;function S(t){return document.createElement(t)}function T(t){var n=t.toExponential().match(/\d(?:\.(\d*))?e([+-]\d+)/);return t.toFixed(f(0,(n[1]||"").length-parseInt(n[2],10)))}function x(t){var t,n,t=T(t||0),n=0;return n=0<=t.indexOf(".")?t.length-t.indexOf(".")-1:n}function A(){}function I(t,n){this.Wc=n,this.fV={},this.fV=d.extend(this.fV,t)}function N(t,n){this.Wc=n,this.lV={},this.lV=d.extend(this.lV,t)}function k(t,n){this.Wc=t,this.hV={},this.dV="",this.hV=d.extend(this.hV,n),this.dV='\n
\n
\n
\n
{{value}}
\n
\n
\n ')}function j(t,n){this.Wc=n,this.vV={},this.mV=!1,this.gV=c,this.isSelected=!1,this.yme=c,this.vV=d.extend(this.vV,t),this.gV=new m(this.Wc,this.pV())}function D(t,n){this.Wc=n,this.bV={},this.bV=d.extend(this.bV,t)}function _(t,n,e,i,r){this.Wc=t,this.yV=n,this.wV=e,this.endHandle=i,this.MU=r,this.MV=c,this.CV=c,this.MV=new g(this.SV(),this.Wc),this.CV=new b(this.TV(),this.Wc)}function O(t,n){var i=C.call(this,t)||this;return i.yV=c,i.wV=c,i.Y1e=c,i.Z1e=c,i.AV=c,i.Mme=function(t){var t,t,t;d.pauseEvent(t),t=i.AV.getKeyboardValueMutator(t),d.isEmpty(t)||(t=t(i._V.value),(t=i.AV.trimAlignValue(t))!==i._V.value&&(i.setValue(t),i._V.onChange(t),i._V.onAfterChange(t),i.fire(r.BaseDropdown.Event_ValueChanged,{value:t,text:t.toString(),notCloseDropDown:!0})))},i.IV=function(t){0===t.button&&(document.addEventListener("mouseup",i.xV,!1),document.addEventListener("pointerup",i.xV,!1),document.addEventListener("MSPointerUp",i.xV,!1),document.addEventListener("mousemove",i.NV,!1),document.addEventListener("pointermove",i.NV,!1),document.addEventListener("MSPointerMove",i.NV,!1),i.NV(t))},i.NV=function(t){var t,n,t=i.kV(t,!0),n=i.AV.trimAlignValue(t);i._V.showNumberRange?i.Cme(n,t):i.DV!==n&&(i.setValue(n),i._V.onChange(n))},i.xV=function(t){var n,e;i.NV(t),document.removeEventListener("mousemove",i.NV),document.removeEventListener("mouseup",i.xV),document.removeEventListener("pointermove",i.NV),document.removeEventListener("pointerup",i.xV),document.removeEventListener("MSPointerMove",i.NV),document.removeEventListener("MSPointerUp",i.xV),n=i.kV(t,!0),e=i.AV.trimAlignValue(n),i._V.showNumberRange?(i.Cme(e,n),i._V.onAfterChange(i._V.numberRange),i.fire(r.BaseDropdown.Event_ValueChanged,{value:i._V.numberRange,text:i._V.numberRange,notCloseDropDown:!0})):(i.DV=e,i._V.onAfterChange(i._V.value),i.fire(r.BaseDropdown.Event_ValueChanged,{value:e,text:e.toString(),notCloseDropDown:!0})),d.pauseEvent(t)},i.EV=function(t){var n=t.target||t.srcElement;document.addEventListener("touchend",i.jV,!1),n.classList.contains("".concat(i._V.prefixCls,"-handle"))?document.addEventListener("touchmove",i.OV,!1):i.OV(t)},i.OV=function(t){var t,t,n,t=t.targetTouches[0],t=i.kV(t,!0),n=i.AV.trimAlignValue(t);i._V.showNumberRange?i.Cme(n,t):i.DV!==n&&(i.setValue(n),i._V.onChange(n))},i.jV=function(t){var n,n,e;document.removeEventListener("touchmove",i.OV),document.removeEventListener("touchend",i.jV),n=t.changedTouches[0],n=i.kV(n,!0),e=i.AV.trimAlignValue(n),i._V.showNumberRange?(i.Cme(e,n),i._V.onAfterChange(i._V.numberRange),i.fire(r.BaseDropdown.Event_ValueChanged,{value:i._V.numberRange,text:i._V.numberRange,notCloseDropDown:!0})):(i.DV=e,i._V.onAfterChange(i._V.value),i.fire(r.BaseDropdown.Event_ValueChanged,{value:e,text:e.toString(),notCloseDropDown:!0})),d.pauseEvent(t)},i.init(n),i}i=this&&this.__extends||(M=function(t,n){return(M=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}))(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}M(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),Object.defineProperty(n,"__esModule",{value:!0}),n.Slider=void 0,r=e("./dist/plugins/celltype/editor/baseControl.js"),o=e("Common"),a=e("Core"),u=o.Common.lt.ht,s=o.Common.zf.j0,c=null,f=Math.max,l=Math.min,h=Math.abs,A.isEmpty=function(t){return void 0===t||t===c||""===t||Array.isArray(t)&&0===t.length},A.isEmptyObject=function(t){var n,e,n=!0;for(e in t)if(e){n=!1;break}return n},A.pauseEvent=function(t){t.stopPropagation(),t.preventDefault()},A.isObject=function(t){var n=typeof t;return"function"==n||"object"==n&&!!t},A.allKeys=function(t){var n,e,n=[];if(!A.isObject(t))return[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n},A.parseStyleObject=function(t){var n,e,i,r,o,a,o;if(!A.isObject(t))return"";for(n="",i=0,r=(e=A.allKeys(t)).length;ithis._V.max&&(this._V.max=this._V.min),u(t.tooltipVisible)||(this._V.tooltipVisible=t.tooltipVisible),u(t.showNumberRange)||(this._V.showNumberRange=!!t.showNumberRange),this._V.marks={},t.marks)&&t.marks.forEach(function(t){var t,n,t=parseFloat(t);isNaN(t)||t>=e._V.min&&t<=e._V.max&&(n=new o.Formatter.GeneralFormatter(e._V.formatString),e._V.marks[t]={label:n.format(t)})})},O.prototype.sY=function(t,n){var t;u(t)||(t=parseFloat(t),isNaN(t))||(this._V[n]=t)},O.prototype.iY=function(){return{className:"".concat(this._V.prefixCls,"-track"),included:this._V.included,direction:this._V.direction,offset:0,length:0}},O.prototype.rY=function(){return{prefixCls:this._V.prefixCls,className:"".concat(this._V.prefixCls,"-handle"),direction:this._V.direction,disabled:this._V.disabled,min:this._V.min,max:this._V.max,value:this._V.value,offset:0,tabIndex:0,tooltipVisible:this._V.tooltipVisible,formatString:this._V.formatString,showNumberRange:this._V.showNumberRange,numberRange:this._V.numberRange}},O.prototype.oY=function(){return{prefixCls:this._V.prefixCls,min:this._V.min,max:this._V.max,value:this._V.value,disabled:this._V.disabled,direction:this._V.direction,dots:this._V.dots,step:this._V.step,included:this._V.included,marks:this._V.marks,showNumberRange:this._V.showNumberRange}},O.prototype.UV=function(){var t="".concat(this._V.prefixCls);return this._V.direction===a.LayoutDirection.vertical&&(t+=" ".concat(this._V.prefixCls,"-vertical")),d.isEmptyObject(this._V.marks)||(t+=" ".concat(this._V.prefixCls,"-with-marks")),this._V.disabled&&(t+=" ".concat(this._V.prefixCls,"-disabled")),t},O.prototype.dispose=function(){var t=this.yV.Wc;t&&(t.removeEventListener("mousedown",this.IV),t.removeEventListener("pointerdown",this.IV),t.removeEventListener("MSPointerDown",this.IV),t.removeEventListener("touchstart",this.EV),t.removeEventListener("keyup",this.Mme)),this.yV.Wc=c,this.wV&&this.wV.dispose(),this.wV=c,this.Y1e&&this.Y1e.dispose(),this.Y1e=c,this.Z1e&&this.Z1e.dispose(),this.Z1e=c,C.prototype.dispose.call(this)},n.Slider=O},"./dist/plugins/celltype/editor/timepicker.js":function(t,n,e){"use strict";var i,r,o,a,u,s,c,f,l;function h(t,n){var t=l.call(this,t)||this;return t.Hc(),t.setOptions(n),t}i=this&&this.__extends||(f=function(t,n){return(f=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}))(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}f(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),Object.defineProperty(n,"__esModule",{value:!0}),n.TimePicker=void 0,r=e("./dist/plugins/celltype/editor/listControl.js"),o=e("./dist/plugins/celltype/editor/baseControl.js"),a="undefined",u=e("Common"),s=u.Common.lt.ht,l=o.BaseDropdown,i(h,l),h.prototype.setOptions=function(t){var n,n,n,n;t&&(null!==(n=this.cY(t.min))&&(this.MU.min=n),null!==(n=this.cY(t.max))&&(this.MU.max=n),null!==(n=this.cY(t.step))&&(this.MU.step=n),s(t.formatString)||(this.MU.formatString=t.formatString),s(t.height)||(n=parseInt(t.height,10),isNaN(n))||(this.MU.height=n),this.MU.height=Math.max(1,this.MU.height)),this._6()},h.prototype.setValue=function(t){void 0!==t&&(this.Bz={hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds()},this.fY=t,this.yz(),this.scrollToSelect())},h.prototype.scrollToSelect=function(){var t,t,t=this.gz.querySelector(".selected");null!==t&&(t=t.offsetTop,this.Wc.scrollTop=t)},h.prototype.Hc=function(){var n=this;this.MU={min:{},max:{hour:23,minute:59,second:59},step:{hour:1},formatString:"hh:mm",height:200},this.gz=document.createElement("div"),this.gz.classList.add("gc-time-picker-outer-div"),this.gz.addEventListener("click",function(t){n.pz(t)}),this.Ti.appendChild(this.gz)},h.prototype.cY=function(t){var n,e,e,e,n=null;return s(t)||(n={},s(t.hour)||(e=parseInt(t.hour,10),isNaN(e))||(n.hour=e),s(t.minute)||(e=parseInt(t.minute,10),isNaN(e))||(n.minute=e),s(t.second))||(e=parseInt(t.second,10),isNaN(e))||(n.second=e),n},h.prototype._6=function(){this.gz.innerHTML="",new r.List(this.gz,this.lY()),this.yz()},h.prototype.yz=function(){var t,n,e,i,r,t=this.gz.querySelectorAll(".gc-time-picker-li");if(0r.MU.height&&0<=r.MU.height?n.style.overflowY="scroll":n.style.overflowY="hidden",n.appendChild(e),n}}},h.prototype.vY=function(t){var n=document.createElement("li");return n.classList.add("gc-time-picker-li"),n.setAttribute("hour",t.hour.toString()),n.setAttribute("minute",t.minute.toString()),n.setAttribute("second",t.second.toString()),n.innerText=this.mY(t),n},h.prototype.dY=function(){for(var t,n,e,t=this.gY(this.MU.min),n=this.gY(this.MU.max),e=[];t<=n;)e.push({hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds()}),t=this.pY(t,this.MU.step);return e},h.prototype.pY=function(t,n){return typeof n.hour!=a&&t.setHours(t.getHours()+n.hour),typeof n.minute!=a&&t.setMinutes(t.getMinutes()+n.minute),typeof n.second!=a&&t.setSeconds(t.getSeconds()+n.second),t},h.prototype.mY=function(t){var n,e,t,n=new Date;return n.setHours(t.hour),n.setMinutes(t.minute),n.setSeconds(t.second),(t=(e=new u.Formatter.GeneralFormatter(this.MU.formatString)).format(n))&&""!==t&&null!==t?t:this.bY(n)},h.prototype.bY=function(t){var n,t,e,i,r,n=t.getHours(),t=t.getMinutes(),e,i,r;return(n<12?"AM":"PM")+" "+(0===n||12===n?"12":(n%12).toString())+":"+(t<10?"0"+t.toString():t.toString())},h.prototype.gY=function(t){var n=new Date;return n.setHours(t.hour||0),n.setMinutes(t.minute||0),n.setSeconds(t.second||0),n},h.prototype.hY=function(t,n){return!(!t||!n)&&(t=this.yY(t),n=this.yY(n),t.hour===n.hour)&&t.minute===n.minute&&t.second===n.second},h.prototype.yY=function(t){return{hour:t.hour||0,minute:t.minute||0,second:t.second||0}},h.prototype.pz=function(t){var t,n,e,t,i,r,r,t=t.target;t&&(n=+t.getAttribute("hour"),e=+t.getAttribute("minute"),t=+t.getAttribute("second"),(i=this.fY||new Date).setHours(n),i.setMinutes(e),i.setSeconds(t),i.setMilliseconds(0),r=(new u.Common.CultureInfo).DateTimeFormat,r=new u.Formatter.GeneralFormatter(r.defaultDatePattern).format(i),this.fire(o.BaseDropdown.Event_ValueChanged,{value:i,text:r}),this.Bz={hour:n,minute:e,second:t},this.yz())},n.TimePicker=h},"./dist/plugins/celltype/editor/workflowPicker.js":function(t,n,e){"use strict";var i,r,o,e,s,a,u,c;function f(t,n){var e=c.call(this,t)||this;return e.wY=new o.List(t),e.wY.on(r.BaseDropdown.Event_ValueChanged,function(t){e.fire(r.BaseDropdown.Event_ValueChanged,t)}),e.setOptions(n),e}function l(t,n){var i,r,o,e,a,u,i={items:[]},r=t.items,o=r.filter(function(t){return t.value===n})[0];if(s(o)&&r&&0\n
\n \n \xd7\n
\n
\n #\n
\n\n '},n.T9e=u},"./dist/plugins/celltype/fileUploadCellType/fileUploadCellType.js":function(t,n,e){"use strict";var i,r,o,h,a,u,y,f,M,e,o,s,l,c,d,v;function g(){var t=v.call(this)||this;return t.typeName="19",t._text=(0,y.getSR)().FileUpload_Title,t.N9e=l,t.j9e=l,t._9e=22,t.Hc(),t}i=this&&this.__extends||(d=function(t,n){return(d=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}))(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}d(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var n,e,i,r,e=1,i=arguments.length;ethis._9e?this._9e:.2*i,r;return{iconSize:n,space:(i-n*t)/(t+1)}},g.prototype.H9e=function(t){var n=t.BO();Object.values(y.ICON_MAP).forEach(function(t){n.addImage(t,"anonymous")})},g.prototype.R9e=function(t,n,e,i,r){var o,a,u,s,a,c,a,i,o=t.Ut.getFileGUID(n,e),a=t.VTe(),u=t.getValue(n,e),s=a.Wxn(o,!0),a=a.FHe(o),c=this._valuePath;if(a||!u)return s&&(i?s:(a={dataUrl:s.dataUrl,blob:s.blob,name:s.name},i=(0,y.getValueByValuePath)(a,c,s),(0,y.isFileInfoEqual)(i,u)||r?a:void(0,y.x9e)({row:n,col:e,value:u,valuePath:c,fileGUID:o},t,void 0,!0)));(0,y.x9e)({row:n,col:e,value:u,fileGUID:o,valuePath:c},t,void 0,!0)},g.prototype.paintValue=function(t,n,e,i,r,o,a,u){var s,c,f,l,h,d,v,g,g,s=this;t&&(c=e+s._marginLeft,f=i+s._marginTop,l=r-s._marginLeft-s._marginRight,h=o-s._marginTop-s._marginBottom,d=eu._9e?4:2,i.fillRect(e-n,l-n,c+2*n,c+2*n)),i.drawImage(t,e,l,c,c))}),i.restore()},g.prototype.J9e=function(t,n,e,i,r,o){var a,n,u,s,i,e,c,o;this.isClearEnabled()&&(a=o.sheet.BO(),t.save(),t.beginPath(),i=n+i-(n=this.U9e(o.sheet,o.row,o.col,i).iconSize)-4,e=e+(s=u=2)+2,c=y.ICON_MAP.clear,a.getImage(c)||this.H9e(o.sheet),a.getState(c)&&a.qh(c)&&(o=a.getImage(c),"clear"===this.j9e&&(t.fillStyle="rgba(255, 255, 255, 0.3)",t.fillRect(i-2,e-2,n+4,n+4)),t.drawImage(o,i,e,n,n)),t.restore())},g.prototype.processMouseUp=function(t){var n,n,e,i,r,n={cancel:!1,sheet:t.sheet};if(h.Worksheet.et(t.sheet,"preUploadFile",n),!n.cancel&&this.K9e(t))return n=t.sheet,e=t.row,i=t.col,this.F9e(n,e,i)?(this.X9e(t),!0):!(this.O9e(n,e,i)||(this.H9e(n),!n)||!t.isReservedLocation||((r=this.q9e(t)).click(),0))},g.prototype.processMouseEnter=function(t){var n,e,t;return!!this.K9e(t)&&(n=t.sheet,e=t.row,t=t.col,this.N9e={row:e,col:t},n.zw(),!0)},g.prototype.processMouseLeave=function(t){return this.K9e(t)&&(this.N9e=l,t.sheet.zw()),!1},g.prototype.processMouseMove=function(t){var n,n,e,i,r,n;return!!this.K9e(t)&&(e=t.sheet,i=t.row,r=t.col,this.N9e&&(null==(n=this.N9e)?void 0:n.col)===r&&(null==(n=this.N9e)?void 0:n.row)===i||(this.N9e={row:i,col:r}),!!this.F9e(e,i,r))&&((n=this.$9e(t))!==this.j9e&&(this.j9e=n,e.zw()),!0)},g.prototype.getHitInfo=function(t,n,e,i,r){var o,a,u,s,c,o,i,o=this;return r&&(a=r.sheetArea,f(a)||3===a)&&i?(u=i.x+o._marginLeft,s=i.x+i.width-o._marginRight,c=i.y+o._marginTop,o=i.y+i.height-o._marginBottom,i={x:t,y:n,row:r.row,col:r.col,cellRect:i,sheetArea:a,sheet:r.sheet,cellStyle:e},u<=t&&t<=s&&c<=n&&n<=o&&(i.isReservedLocation=!0),i):l},g.prototype.$9e=function(t){var n,e,i,r,o,r,n,e,i,r,e,t,o,n=t.sheet,e=t.row,i=t.col,r=this.U9e(n,e,i,t.cellRect.width),o=r.iconSize,r=r.space,n=this.P9e(n,e,i),e=t.cellRect.y+(t.cellRect.height-o)/2,i=t.x>=t.cellRect.x+r-2&&t.x<=t.cellRect.x+o+r+2,r=t.x>=t.cellRect.x+o+2*r-2&&t.x<=t.cellRect.x+2*o+2*r+2,e=t.y>=e-2&&t.y<=e+o+2,t=t.x>=t.cellRect.x+t.cellRect.width-o-6&&t.x<=t.cellRect.x+t.cellRect.width-2&&t.y>=t.cellRect.y-2&&t.y<=t.cellRect.y+o+6&&this.isClearEnabled(),o=i&&e?n[0]:r&&e?n[1]:t?"clear":l;return o},g.prototype.q9e=function(t){var n,e,i,n=this,e="sjs-fake-file-upload-dom";return document.getElementById(e)&&document.getElementById(e).remove(),(i=document.createElement("input")).type="file",i.style.display="none",i.accept=n.accept(),i.id=e,i.addEventListener("change",function(){n.D7e(t,i),i.remove()}),document.body.appendChild(i),i},g.prototype.G7e=function(t,n,e,i){var r=this.R9e(t,n,e);(0,y.x9e)({row:n,col:e,value:i,oldValue:r,valuePath:this._valuePath},t,!0)},g.prototype.D7e=function(t,n){var e,i,t,n,r,r,e=t.sheet,i=t.row,t=t.col,n=n.files[0];n&&(n.size>1024*this.maxSize()?(r={row:i,col:t,maxSize:this.maxSize(),fileSize:n.size},e.jT(h.InvalidOperationType.sizeLimitExceeded,e.A9e(),r)):(r={name:n.name,blob:n},this.G7e(e,i,t,r)))},g.prototype.U7e=function(t,n){var e,i,r,o,e=t.sheet,i=t.col,r=t.row,o=this.R9e(e,r,i);if(this.E9e(o)){switch(n){case"preview":this.V7e(o,t);break;case"download":this.Y7e(e,r,i);break;case"clear":this.Z7e(e,r,i)}this.N9e=l,this.j9e=l}},g.prototype.K9e=function(t){var n=t.sheet,e=t.col,t=t.row;return!(n.isActualProtected()&&n.getCell(t,e).locked())},g.prototype.Q7e=function(t){var n;new a.T9e(document.body,2e3,!0).rQ(t.name,t.dataUrl)},g.prototype.V7e=function(t,n){var e,i,n,n,i;this.previewCommand?(e=n.sheet,i=n.col,n=n.row,n=r(r({},t),{sheetName:e.name(),row:n,col:i}),"function"==typeof this.previewCommand?this.previewCommand(n):"string"==typeof this.previewCommand&&null!=(i=e.getParent())&&i.commandManager().execute(r({cmd:this.previewCommand},n))):this.Q7e(t)},g.prototype.Y7e=function(t,n,e){var t,n,t=this.R9e(t,n,e,!0);t&&((n=document.createElement("a")).href=t.dataUrl,n.download=t.name,n.type=t.type,n.click())},g.prototype.Z7e=function(t,n,e){this.G7e(t,n,e)},g.prototype.X9e=function(t){this.j9e===l&&(this.j9e=this.$9e(t)),this.U7e(t,this.j9e)},g.prototype.Je=function(t){var t,n,n={marginTop:t.marginTop,marginRight:t.marginRight,marginBottom:t.marginBottom,marginLeft:t.marginLeft,maxSize:t.maxSize,accept:t.accept,isPreviewEnabled:t.isPreviewEnabled,isDownloadEnabled:t.isDownloadEnabled,isClearEnabled:t.isClearEnabled};t.hasOwnProperty("valuePath")&&(n.valuePath=null!=(t=t.valuePath)?t:null),this.fromJSON(n)},g.prototype.toJSON=function(){var e,i,r,e=this,i={typeName:e.typeName};return s(y.defaultFileUploadProps,function(t,n){(r=e["_"+t])!==n&&(i[t]=r)}),i},g.prototype.fromJSON=function(e){var i=this;s(y.defaultFileUploadProps,function(t){var n=e[t];void 0!==n&&(i["_"+t]=n)})},c=g,n.FileUpload=c,s(y.defaultFileUploadProps,function(n){c.prototype[n]=function(t){return 0===arguments.length?this["_"+n]:(this["_"+n]=t="valuePath"===n&&void 0===t?null:t,this)}}),(0,u.registerFeatures)(),h.CellTypes.ti[19]=c},"./dist/plugins/celltype/fileUploadCellType/utils.js":function(t,g,n){"use strict";var e,n,n,i,r,m,o,a;function u(t,n,e){if(e||t){if("string"==typeof n)return(e||t)[n];if(e&&e.hasOwnProperty(n))return e[n];if(i(n)&&e)return e.cellValue}return t}function s(t,n){var e,i,r,o,e=typeof t,i;if(e!=typeof n)return!1;if("string"==e)return t===n;if("object"==e){if(t instanceof Blob||n instanceof Blob)return t===n;if(t&&n)return t.blob===n.blob&&t.dataUrl===n.dataUrl&&t.name===n.name}return!0}Object.defineProperty(g,"__esModule",{value:!0}),g.isFileInfoEqual=g.getValueByValuePath=g.x9e=g.Hne=g.E9e=g.defaultFileUploadProps=g.MIMETYPE_TO_FILE_EXTENSION_MAP=g.IMAGE_FILE_EXTENSIONS=g.ICON_MAP=g.getSR=void 0,e=n("Common"),n=n("./dist/plugins/celltype/celltypes.ns.js"),n=new e.Common.ResourceManager(n.SR,"CellTypes"),i=e.Common.lt.ht,g.getSR=n.getResource.bind(n),g.ICON_MAP={commonFile:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNjRweCIgaGVpZ2h0PSI2NHB4IiB2aWV3Qm94PSIwIDAgNjQgNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+Y29tbW9uIGZpbGUgaW1hZ2U8L3RpdGxlPgogICAgPGcgaWQ9ImNvbW1vbi1maWxlLWltYWdlIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNNTAsMiBDNTIuMjA5MTM5LDIgNTQsMy43OTA4NjEgNTQsNiBMNTQsNTggQzU0LDYwLjIwOTEzOSA1Mi4yMDkxMzksNjIgNTAsNjIgTDE0LDYyIEMxMS43OTA4NjEsNjIgMTAsNjAuMjA5MTM5IDEwLDU4IEwxMCwxOC4xMDEwNzQyIEwyMS45NjMzNzg5LDE4LjEwMTA3NDIgQzI0LjE3MjUxNzksMTguMTAxMDc0MiAyNS45NjMzNzg5LDE2LjMxMDIxMzIgMjUuOTYzMzc4OSwxNC4xMDEwNzQyIEwyNS45NjMzNzg5LDIgTDUwLDIgWiBNMjMsMiBMMjMsMTUgTDEwLDE1IEwyMywyIFoiIGlkPSLlvaLnirbnu5PlkIjlpIfku70iIGZpbGw9IiM1MTUxNTEiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+",errorFile:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNjRweCIgaGVpZ2h0PSI2NHB4IiB2aWV3Qm94PSIwIDAgNjQgNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+ZXJyb3IgSW1hZ2U8L3RpdGxlPgogICAgPGcgaWQ9ImVycm9yLUltYWdlIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0i57yW57uEIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyLjAwMDAwMCwgOC4wMDAwMDApIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgICAgICA8cG9seWdvbiBpZD0i5b2i54q257uT5ZCILXBhdGjlpIfku70tMiIgZmlsbD0iI0ZGRkZGRiIgcG9pbnRzPSI2MCA0LjI2MzI1NjQxZS0xNCAwIDQuMjYzMjU2NDFlLTE0IDAgNDguOTQ3MzY4NCA2MCA0OC45NDczNjg0Ij48L3BvbHlnb24+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0yNi44MjYsMCBMMzIsMTEuMzMwMDc4MSBMMjIsMjMuMTIxMDkzNyBMMjksMzguODQzNzUgTDI0LjEyOCw0OCBMNCw0OCBDMS43OTA4NjEsNDggLTEuMTk2OTk2ODhlLTE1LDQ2LjIwOTEzOSAwLDQ0IEwwLDQgQy0yLjcwNTQxNWUtMTYsMS43OTA4NjEgMS43OTA4NjEsLTEuMDYxNzI2MTNlLTE1IDQsMCBMMjYuODI2LDAgWiBNNTYsMCBDNTguMjA5MTM5LC00LjA1ODEyMjUxZS0xNiA2MCwxLjc5MDg2MSA2MCw0IEw2MCw0NCBDNjAsNDYuMjA5MTM5IDU4LjIwOTEzOSw0OCA1Niw0OCBMMzEuMDk0LDQ4IEwzNiwzOC42MjY5NTMxIEwyOSwyMy40OTgwNDY5IEwzOSwxMS4yNTM5MDYyIEwzMy44MzYsMCBMNTYsMCBaIiBpZD0i5b2i54q257uT5ZCIIiBmaWxsPSIjRTVFNUU1Ij48L3BhdGg+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0xNi4zNjU2ODUxLDE1IEwyMy4wMzEsMjIuMDA3IEwyMiwyMy4xMjEwOTM3IEwyOSwzOC44NDM3NSBMMjQuMTI3LDQ4IEw0LDQ4IEMxLjc5MDg2MSw0OCAyLjc2Njg4MDE4ZS0xNCw0Ni4yMDkxMzkgMi44NDIxNzA5NGUtMTQsNDQgTDIuODQyMTcwOTRlLTE0LDMxLjIxMTA3MTIgTDE2LjM2NTY4NTEsMTUgWiBNNDguMzkxNjc2OCwyNi4wMTg3NTQyIEw2MCwzNS42NDIyNzM1IEw2MCw0NCBDNjAsNDYuMjA5MTM5IDU4LjIwOTEzOSw0OCA1Niw0OCBMMzEuMDkzLDQ4IEwzNiwzOC42MjY5NTMxIEwzMy4zMDcsMzIuODA4IEwzNy44MjA3NjkyLDM3LjU1MjcyODggTDM3LjgyMjI2NTUsMzcuMDA5MzkxNCBMNDguMzkxNjc2OCwyNi4wMTg3NTQyIFogTTQ4LDcgQzUwLjIwOTEzOSw3IDUyLDguNzkwODYxIDUyLDExIEM1MiwxMy4yMDkxMzkgNTAuMjA5MTM5LDE1IDQ4LDE1IEM0NS43OTA4NjEsMTUgNDQsMTMuMjA5MTM5IDQ0LDExIEM0NCw4Ljc5MDg2MSA0NS43OTA4NjEsNyA0OCw3IFoiIGlkPSLlvaLnirbnu5PlkIgiIGZpbGw9IiNEM0QzRDMiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==",preview:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+cHJldmlldyBpbWFnZTwvdGl0bGU+CiAgICA8ZyBpZD0icHJldmlldy1pbWFnZSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTEwLjAwMDE0NzMsMyBDMTIuMjM1MDA1NSwzIDE0LjI1ODM2MzUsMy45OTU2OCAxNS44Njk3MjE0LDUuMTYyMDIgQzE3LjQ4NzcyMjEsNi4zMzMyNiAxOC43NTY4NjU1LDcuNzI0NTggMTkuNDk4NTA4Nyw4LjYyNjYgTDE5LjMxMiw4Ljc3MyBMMTkuNDk4OTM3Myw4LjYyNzE2IEMyMC4xMjc1NzYyLDkuMzkzMjQgMjAuMTY0OTM0NiwxMC40MjkxMTIxIDE5LjYwOTY0MjgsMTEuMjI2Njk4OSBMMTkuNDk4NTgwMSwxMS4zNzMzMyBMMTkuMzQzMTk5NywxMS41NjAxMTc4IEMxOC41ODYwOTU5LDEyLjQ1OTk1MTIgMTcuMzc5ODU1NCwxMy43NDQ4MjI3IDE1Ljg2OTcyMTQsMTQuODM3OTggQzE0LjI1ODM2MzUsMTYuMDA0MzIgMTIuMjM1MDA1NSwxNyAxMC4wMDAxNDczLDE3IEM3Ljc2NTI4OTE4LDE3IDUuNzQxOTMxMTMsMTYuMDA0MzIgNC4xMzA2NDQ3LDE0LjgzNzk4IEMyLjUxMzU3MjU1LDEzLjY2NzQ0IDEuMjQ1MDAwNTYsMTIuMjc3MSAwLjUwMzE0MzA4MiwxMS4zNzUwOCBDMC4xNzk1MDAwOCwxMC45ODU5NSAwLDEwLjUwMjMyIDAsMTAgQzAsOS40OTc2OCAwLjE3OTUwMDA4LDkuMDE0MDUgMC41MDMyMTQ1MSw4LjYyNDkyIEMxLjI0NTAwMDU2LDcuNzIyODMgMi41MTM2NDM5OCw2LjMzMjU2IDQuMTMwNjQ0Nyw1LjE2MjAyIEM1Ljc0MTkzMTEzLDMuOTk1NjggNy43NjUyODkxOCwzIDEwLjAwMDE0NzMsMyBaIE0xMC4wMDAxNTQ3LDQgQzguMTA1MDUzNyw0IDYuMjkyMDc3NzYsNC44NjgwNSA0LjcyODMyNjk0LDYuMDIzMDUgQzMuMTcxNjI2MTMsNy4xNzI4NzUgMS45MzA1MjU0OCw4LjU1NjcgMS4xOTQ5MjUxLDkuNDY5Njc1IEMxLjA2NDgwMDAzLDkuNjI4ODI1IDEsOS44MTQxNSAxLDEwIEMxLDEwLjE4NTg1IDEuMDY0ODAwMDMsMTAuMzcxMTc1IDEuMTkxNjI1MSwxMC41MjYzNSBDMS45MzA1MjU0OCwxMS40NDMzIDMuMTcxNjI2MTMsMTIuODI3MTI1IDQuNzI4MzI2OTQsMTMuOTc2OTUgQzYuMjkyMDc3NzYsMTUuMTMxOTUgOC4xMDUwNTM3LDE2IDEwLjAwMDE1NDcsMTYgQzExLjg5NTMzMDcsMTYgMTMuNzA4MjMxNiwxNS4xMzE5NSAxNS4yNzE5ODI0LDEzLjk3Njk1IEMxNi44Mjg2MDgyLDEyLjgyNzIgMTguMDY5NzA4OSwxMS40NDM0NSAxOC44MDUzMDkzLDEwLjUzMDQ3NSBDMTkuMDY0NzM0NCwxMC4yMDg0MjUgMTkuMDY1MTg0NCw5Ljc5MjcgMTguODA0OTM0Myw5LjQ2OTA3NSBDMTguMDY5MjU4OSw4LjU1NjEgMTYuODI4MzgzMiw3LjE3MjY1IDE1LjI3MTk4MjQsNi4wMjMwNSBDMTMuNzA4MjMxNiw0Ljg2ODA1IDExLjg5NTMzMDcsNCAxMC4wMDAxNTQ3LDQgWiBNOS45OTk5NjA0NSw2IEMxMi4xNzA5ODU2LDYgMTQsNy43NTIwNzQyOCAxNCwxMCBDMTQsMTIuMjQ3OTI1NyAxMi4xNzA5ODU2LDE0IDkuOTk5OTYwNDUsMTQgQzcuODI5MDE0MzcsMTQgNiwxMi4yNDc5MjU3IDYsMTAgQzYsNy43NTIwNzQyOCA3LjgyOTAxNDM3LDYgOS45OTk5NjA0NSw2IFogTTkuOTk5OTUwOTMsNyBDOC4yOTU3MTY2LDcgNyw4LjM5MjUzMDg5IDcsMTAgQzcsMTEuNjA3NDY5MSA4LjI5NTcxNjYsMTMgOS45OTk5NTA5MywxMyBDMTEuNzA0MTg1MywxMyAxMywxMS42MDc0NjkxIDEzLDEwIEMxMyw4LjM5MjUzMDg5IDExLjcwNDE4NTMsNyA5Ljk5OTk1MDkzLDcgWiIgaWQ9IuW9oueKtue7k+WQiCIgZmlsbD0iI0ZGRkZGRiI+PC9wYXRoPgogICAgPC9nPgo8L3N2Zz4=",download:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+ZG93bmxvYWQgZmlsZXM8L3RpdGxlPgogICAgPGcgaWQ9ImRvd25sb2FkLWZpbGVzIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNMTEuMDg4Nzc5NSwyLjM3ODY0NTkgTDE1Ljk2NTI4NTUsNyBMMTUuOTY1Mjg1NSw3IEwxNS45NjUyODU1LDggTDExLjA4ODc3OTUsMTIuNjIxMzU0MSBDMTAuODg2Nzg2NiwxMi44MTI3NzgxIDEwLjU2OTA4NTEsMTIuODA4NTExNSAxMC4zNzIzMDU3LDEyLjYxMTczMjEgQzEwLjE4MDkxNTIsMTIuNDIwMzQxNiAxMC4xODA5MTUyLDEyLjExMDAzNjQgMTAuMzcyMzA1NywxMS45MTg2NDU5IEMxMC4zNzQ2MTksMTEuOTE2MzMyNiAxMC4zNzY5NTU0LDExLjkxNDA0MjUgMTAuMzc5MzE0NiwxMS45MTE3NzYgTDE0LjQ1MTI4NTUsNy45OTk3MTQ1IEwxNC40NTEyODU1LDcuOTk5NzE0NSBMNS40NjUyODU1LDcuOTk5OTg0OTUgQzUuMTg5MTUxNDQsNy45OTk5OTMyNiA0Ljk2NTI5MzgxLDcuNzc2MTQ5MTEgNC45NjUyODU1LDcuNTAwMDE1MDUgQzQuOTY1Mjg1NSw3LjUwMDAxMDAzIDQuOTY1Mjg1NSw3LjUwMDAwNTAyIDQuOTY1Mjg1NSw3LjUgQzQuOTY1Mjg1NSw3LjIyMzg1NTE5IDUuMTg5MTQwNjksNi45OTk5OTMyNiA1LjQ2NTI4NTUsNi45OTk5ODQ5NSBMMTQuNDUxMjg1NSw2Ljk5OTcxNDUgTDE0LjQ1MTI4NTUsNi45OTk3MTQ1IEwxMC4zNzkzMzc4LDMuMDg4MTk5ODcgQzEwLjE4NDE1MzcsMi45MDA3MDU5NCAxMC4xNzc5MTk2LDIuNTkwNDg0MDkgMTAuMzY1NDEzNSwyLjM5NTI5OTk5IEMxMC4zNjc2ODczLDIuMzkyOTMyOTQgMTAuMzY5OTg0OCwyLjM5MDU4ODc5IDEwLjM3MjMwNTcsMi4zODgyNjc5IEMxMC41NjkwODUxLDIuMTkxNDg4NDcgMTAuODg2Nzg2NiwyLjE4NzIyMTg1IDExLjA4ODc3OTUsMi4zNzg2NDU5IFoiIGlkPSLlvaLnirbnu5PlkIjlpIfku70tM+Wkh+S7vSIgZmlsbD0iI0ZGRkZGRiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAuNDY1Mjg1LCA3LjUwMDAwMCkgc2NhbGUoLTEsIC0xKSByb3RhdGUoLTkwLjAwMDAwMCkgdHJhbnNsYXRlKC0xMC40NjUyODUsIC03LjUwMDAwMCkgIj48L3BhdGg+CiAgICAgICAgPHBhdGggZD0iTTE3LjE0NjM2MzYsMTEuMTQ2MzYzNSBDMTcuMDUyNTc5MSwxMS4yNDAxNDggMTYuOTk5OTI0OSwxMS4zNjczNjg2IDE3LDExLjQ5OTk5OSBMMTcsMTUuOTk5OTk5IEw0LDE1Ljk5OTk5OSBMNCwxMS40OTk5OTkgQzQsMTEuMjIzODU3NSAzLjc3NjE0MjQ2LDEwLjk5OTk5OSAzLjUsMTAuOTk5OTk5IEMzLjIyMzg1NzcxLDEwLjk5OTk5OSAzLDExLjIyMzg1NzUgMywxMS40OTk5OTkgTDMsMTYuNDk5OTk5IEMzLDE2LjYzMjYzMTIgMy4wNTI1NzkxMiwxNi43NTk4NTE5IDMuMTQ2MzYzNjIsMTYuODUzNjM2NCBDMy4yNDAxNDgxMiwxNi45NDc0MjA5IDMuMzY3MzY4NzksMTcuMDAwMDc1MSAzLjUsMTYuOTk5OTk5IEwxNy41LDE2Ljk5OTk5OSBDMTcuNjMyNjMxNCwxNy4wMDAwNzUxIDE3Ljc1OTg1MiwxNi45NDc0MjA5IDE3Ljg1MzYzNjUsMTYuODUzNjM2NCBDMTcuOTQ3NDIxLDE2Ljc1OTg1MTkgMTgsMTYuNjMyNjMxMiAxOCwxNi40OTk5OTkgTDE4LDExLjQ5OTk5OSBDMTgsMTEuMzY3MzY4NiAxNy45NDc0MjEsMTEuMjQwMTQ4IDE3Ljg1MzYzNjUsMTEuMTQ2MzYzNSBDMTcuNzU5ODUyLDExLjA1MjU3OSAxNy42MzI2MzE0LDEwLjk5OTkyNDcgMTcuNSwxMC45OTk5OTkgQzE3LjM2NzM2ODgsMTAuOTk5OTI0NyAxNy4yNDAxNDgxLDExLjA1MjU3OSAxNy4xNDYzNjM2LDExLjE0NjM2MzUgWiIgaWQ9Iui3r+W+hCIgZmlsbD0iI0ZGRkZGRiIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==",clear:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+Y2xlYXIgdXBsb2FkZWQgZmlsZTwvdGl0bGU+CiAgICA8ZyBpZD0iY2xlYXItdXBsb2FkZWQtZmlsZSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTE2LjgyNTEzNjUsNC4wMTU0OCBDMTcuMDU4Mjg3OCwzLjc4MzE4NTQgMTcuMDU4Mjg3OCwzLjQwNjUxODQzIDE2LjgyNTEzNjUsMy4xNzQyMjA5NSBDMTYuNTkzMzMyLDIuOTQxOTI2MzUgMTYuMjE3MTU1MSwyLjk0MTkyNjM1IDE1Ljk4NDQ5NDUsMy4xNzQyMjA5NSBMMTAuMDAwMjM0OCw5LjE1ODcyNDYyIEw0LjAxNTQ4LDMuMTc0MjIwOTUgQzMuNzgzMTg1NCwyLjk0MTkyNjM1IDMuNDA2NTE4NDMsMi45NDE5MjYzNSAzLjE3NDIyMDk1LDMuMTc0MjIwOTUgQzIuOTQxOTI2MzUsMy40MDY1MTU1NiAyLjk0MTkyNjM1LDMuNzgzMTgyNTMgMy4xNzQyMjA5NSw0LjAxNTQ4IEw5LjE1ODg1Mzc4LDEwLjAwMDExMjggTDMuMTc0MjIwOTUsMTUuOTg1MTExNiBDMi45NDE5MjYzNSwxNi4yMTc1MjgyIDIuOTQxOTI2MzUsMTYuNTkzNDYwNCAzLjE3NDIyMDk1LDE2LjgyNTg3NTYgQzMuNDA2NTE1NTYsMTcuMDU4MjkyMiAzLjc4MzE4MjUzLDE3LjA1ODI5MjIgNC4wMTU0OCwxNi44MjU4NzU2IEwxMC4wMDAyMzQ4LDEwLjg0MTM3MTkgTDE1Ljk4NDQ5NDUsMTYuODI1ODc1NiBDMTYuMjE3MTU2NSwxNy4wNTgyOTIyIDE2LjU5MzQ1NjEsMTcuMDU4MjkyMiAxNi44MjUxMzY1LDE2LjgyNTg3NTYgQzE3LjA1ODI4NzgsMTYuNTkzODI2MyAxNy4wNTgyODc4LDE2LjIxNzUyNjcgMTYuODI1MTM2NSwxNS45ODUxMTE2IEwxMC44NDEzNjQ3LDEwLjAwMDExMjggTDE2LjgyNTEzNjUsNC4wMTU0OCBaIiBpZD0i6Lev5b6EIiBmaWxsPSIjRkZGRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+"},g.IMAGE_FILE_EXTENSIONS=["jpg","jpeg","png","gif","bmp","svg","ico","webp"],g.MIMETYPE_TO_FILE_EXTENSION_MAP={"image/jpeg":g.IMAGE_FILE_EXTENSIONS[1],"image/jpg":g.IMAGE_FILE_EXTENSIONS[0],"image/png":g.IMAGE_FILE_EXTENSIONS[2],"image/gif":g.IMAGE_FILE_EXTENSIONS[3],"image/bmp":g.IMAGE_FILE_EXTENSIONS[4],"image/svg+xml":g.IMAGE_FILE_EXTENSIONS[5],"image/x-icon":g.IMAGE_FILE_EXTENSIONS[6],"image/webp":g.IMAGE_FILE_EXTENSIONS[7]},g.defaultFileUploadProps={marginTop:2,marginRight:2,marginBottom:2,marginLeft:2,maxSize:2048,accept:"",isPreviewEnabled:!0,isDownloadEnabled:!0,isClearEnabled:!0,valuePath:"dataUrl"},g.E9e=r=function(t){return t&&"string"==typeof t.name&&(t.blob&&t.blob instanceof Blob||t.dataUrl&&"string"==typeof t.dataUrl)},m=function(t){var n,n,e,e={name:""};return"string"==typeof t?e.dataUrl=t:t instanceof Blob?(e.blob=t,e.name=null!=(n=t.name)?n:""):t instanceof Object&&(e=t)&&t.hasOwnProperty("blob")&&t.blob instanceof Blob&&!t.hasOwnProperty("name")&&(t.name=null!=(n=t.blob.name)?n:""),(0,g.E9e)(e)?e:void 0},g.Hne=o=function(t){var n=crypto&&crypto.randomUUID&&crypto.randomUUID();return e.Common.lt.ht(n)&&(n="10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)})),n=32===t?n.split("-").join(""):n},g.x9e=a=function(t,u,s,c){var f,l,h,d,v,t,n,e,i,r,t,o,a,a,f=t.row,l=t.col,h=t.value,d=t.oldValue,v=t.valuePath,t=t.fileGUID,n=u.VTe(),e=u.Ut.getFileGUID(f,l),i=n.Wxn(e);i&&n.FAe([e]),(r=m(h))?(t=null!=t?t:(0,g.Hne)(),o=function(t){var n,n,e,i,r,o,a,n,e,n,e,e=t.name,i=t.dataUrl;c&&(t[r=null===(r=v)?"cellValue":v]=h),o=!1,a=u.BO(),-1=a&&l.rowCount<=1&&l.col>=s&&s===l.col&&(f=o.nn(s,c),1i&&(r=(n.height-i-e)/2+e):2===t.vAlign&&(r=n.height-i-e),r}function tt(t,n,e,i,r){var o,a,u,s;if(t._direction===Z.vertical){if(t._isFlowLayout){if(r!==h)for(o=t._items.length;0l.x+l.width||r.y>l.y+l.height?y[t]=null:y[t]=r},C=0;Ce.DQ&&t<=e.RQ&&i.dynamicSize()&&(e.RQ+=n),e.AQ()},L.prototype.qO=function(t,n){var e=this,i=e.TZ;t<=e.NQ?i.dynamicMove()&&(e.NQ+=n,e.jQ+=n):t>e.NQ&&t<=e.jQ&&i.dynamicSize()&&(e.jQ+=n),e.AQ()},L.prototype.xP=function(t,n){var e,i,r,e=this,i=e.TZ,r=t+n-1;tl.x+R(l)&&(a+=l.x+R(l)-1-s)),(a=x(R(l)-1,a))<0&&(s=i.Mf,d=i.yZ,v=s.r6(s.getColumnCount()-s.lL),g=s.getViewportRightColumn(1),!1===s.Vy)&&d===v&&d===g&&(u=l.x+R(l)-1-i.width(),a=i.width()),rl.y+E(l)&&(o+=l.y+E(l)-1-c)),o=x(E(l)-1,o),(s=(0,T.GC$)(e.qW)).css({left:u,top:r}),v=s.height(),d=s.width(),g=!1,(f=e.JQ(a,o))&&(a=f.adjustedWidth,o=f.adjustedHeight,g=!n&&f.needReposition),o<=0&&v<=0||a<=0&&d<=0||((1e.x?_(n.left+i.left,n.top+i.top):n.top+i.top+u.height()h.x+R(h)&&(i-=f-(h.x+R(h))),i=x(R(h),i),nh.y+E(h)&&(s-=l-(h.y+E(h))),s=x(E(h),s),(0,T.GC$)(t.$W).css(p,c).css(b,n).css(g,i).css(w,s),m.$l(t.tQ,i,s),e.x=e.x-c,e.y=e.y-n,u.x=u.x-c,u.y=u.y-n,t.eK(e,u)},L.prototype.eK=function(t,n){var e,i,r,e,e=this;e.iK||(e.iK=e.tQ.getContext("2d")),i=e.iK,r=e.TZ.borderColor(),i.strokeStyle=r,i.clearRect(0,0,m.Xl(e.tQ),m.ql(e.tQ)),i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(n.x,n.y),i.stroke(),i.save(),nt.Yl(i,t.x,t.y),i.fillStyle=r,i.beginPath(),e=z(n.y-t.y,n.x-t.x),i.rotate(e),i.moveTo(0,0),i.lineTo(7,-4),i.lineTo(7,4),i.lineTo(0,0),i.fill(),nt.Yl(i,-t.x,-t.y),i.closePath(),i.restore()},L.prototype.UQ=function(){var t,n,e,i,r,o,a,u,s,c,t=this,n=t.TZ,e=n.Mf;t.rK=t.TZ.commentState(),t.oK||(t.oK=t.SW.getContext("2d")),i=t.oK,r=m.Xl(t.SW),o=m.ql(t.SW),a=(0,T.GC$)(t.TW).outerWidth(),u=(0,T.GC$)(t.TW).outerHeight(),s=t.eQ,i.clearRect(0,0,r,o),t.TZ.showShadow()&&(t.aK(i,r,o),i.clearRect(s,s,r-(c=2*(s+2)),o-c),t.uK(i,s,a,u)),kn(e,n)&&t.sK(i,s,r,o,a,u),i.restore()},L.prototype.uK=function(t,n,e,i){t.save(),t.fillStyle=fn,t.fillRect(n+2,i+n,e,2),t.fillRect(e+n,n+2,2,i),t.restore()},L.prototype.aK=function(t,n,e){var i,r,o;switch(t.save(),t.strokeStyle=fn,this.rK){case D.active:for(t.beginPath(),r=0;r=t.row&&a=t.col&&oi.zIndex())&&(i=o);return i?{x:t,y:n,comment:i,area:e.GK(i,t,n)?Yt:Zt}:d},e.prototype.nK=function(t){var n=this,e=n.RK();return t===n.PW?e+2:t===n.MZ?e+1:t.zIndex()},e.prototype.jK=function(){this.UW.forEach(function(t){t.TQ()})},e.prototype.fromJSON=function(t,n){var e,i,r,o,e=this;if(t&&0!==t.length){for(i=e.GW=0;it&&(t=a.RQ),a.jQ>n)&&(n=a.jQ);return{lastNonNullRow:t,lastNonNullCol:n}},clearSelection:function(){this.Ut.pI.CZ()},processKeyDown:function(t){var n=this,e=n.Ut.pI.pZ();e&&n.rt.Pi(t.e)&&jn(n,e)&&(e.commentState(2,!0),t.r=!0)},yh:function(t,n,e){var i,t,r,r,o,i,a,u,s,c,f,o,t,l,i=S(t,"legacyDrawing"),t=t.rels,r=e&&!1===e.includeStyles;if(i&&!r){for(r=this,o=t.c_,i=i&&i["r:id"],u=0,s=o;u!1,this.u_e=()=>!1,this.s_e=()=>!1,this.c_e=t=>{this.a_e(t)||(this.f_e?this.l_e():this.h_e())},this.d_e=()=>{this.f_e=this.v_e();var t=document.createElement("div");this.f_e.appendChild(t),t.classList.add("dp-panel"),t.style.position="fixed",t.style.boxShadow=r.CSSUtils.boxShadow.replace("box-shadow:","").replace(";",""),t.style.background=r.CSSVariables.background,t.style.color=r.CSSVariables.color,t.style.width=this.g_e.getBoundingClientRect().width+"px",this.shadowRoot.querySelector(".container").appendChild(this.f_e),window.addEventListener("resize",this.dC),window.addEventListener("mousedown",this.m_e,!0),window.addEventListener("wheel",this.p_e)},this.b_e=()=>{window.removeEventListener("resize",this.dC),window.removeEventListener("mousedown",this.m_e,!0),window.removeEventListener("wheel",this.p_e),this.f_e.remove(),this.f_e=void 0},this.v_e=()=>{var t=document.createElement("div");return t.style.zIndex="1024",t.style.position="fixed",t.style.left="0",t.style.top="0",t.style.background="transparent",t.classList.add("dp-panel-root"),t},this.dC=()=>{this.w_e()},this.m_e=t=>{var n,e;!this.f_e||t.target.closest(".sjs-dp-panel-sub-content")||(n=this.g_e.getBoundingClientRect(),e=this.y_e().getBoundingClientRect(),this.C_e(n,t.clientX,t.clientY))||this.C_e(e,t.clientX,t.clientY)||this.l_e()},this.p_e=t=>{var n=this.y_e().getBoundingClientRect();this.C_e(n,t.clientX,t.clientY)||this.l_e()},this.C_e=(t,n,e)=>n>=t.left&&n<=t.right&&e>=t.top&&e<=t.bottom,this.y_e=()=>this.f_e.querySelector(".dp-panel")}connectedCallback(){this.y4=this.M_e(this.getAttribute("value"));var t=this.getAttribute("label"),n=this.attachShadow({mode:"open"}),e=this.u_e(),i=this.s_e();n.innerHTML=` +var GC;!function(){var e,i,t;function r(t){var n,n,n=i[t];return void 0!==n||(n=i[t]={exports:{}},e[t].call(n.exports,n,n.exports,r)),n.exports}e={"./all.entry.js":function(t,n,e){(GC=GC||{}).Spread=GC.Spread||{},GC.Spread=e("./node_modules_local/@spreadjs/js-sheets-common/index.js"),GC.Spread.CalcEngine=e("./node_modules_local/@spreadjs/js-calc/index.js"),GC.Spread.CalcEngine.BasicFunctions=e("./node_modules_local/@spreadjs/js-calc-basicfunctions/index.js"),GC.Spread.CalcEngine.AdvancedFunctions=e("./node_modules_local/@spreadjs/js-calc-advancedfunctions/index.js"),GC.Data=e("./node_modules_local/@spreadjs/js-data-manager/index.js"),GC.Spread.Sheets=e("./dist/core/core.entry.js"),GC.Spread.Sheets.Bindings=e("./dist/plugins/data/data.entry.js"),GC.Spread.Sheets.Outlines=e("./dist/plugins/group/group.entry.js"),GC.Spread.Sheets.CalcEngine=e("./dist/plugins/sheetsCalc/sheetsCalc.entry.js"),GC.Spread.Sheets.ConditionalFormatting=e("./dist/plugins/conditional/conditional.entry.js"),GC.Spread.Sheets.DataValidation=e("./dist/plugins/validation/datavalidation.entry.js"),GC.Spread.Sheets.Search=e("./dist/plugins/search/search.entry.js"),GC.Spread.Sheets.Touch=e("./dist/plugins/touch/touch.entry.js"),GC.Spread.Sheets.FloatingObjects=e("./dist/plugins/floatingObject/floatingobject.entry.js"),GC.Spread.Sheets.Sparklines=e("./dist/plugins/sparkline/sparkline-wrapper.entry.js"),GC.Spread.Sheets.Comments=e("./dist/plugins/comment/comment.entry.js"),GC.Spread.Sheets.CellState=e("./dist/plugins/cellState/cellstate.entry.js"),GC.Spread.Sheets.CellTypes=e("./dist/plugins/celltype/celltypes.entry.js"),GC.Spread.Sheets.Filter=e("./dist/plugins/filter/filter.entry.js"),GC.Spread.Sheets.Tables=e("./dist/plugins/table/table.entry.js"),GC.Spread.Sheets.Fill=e("./dist/plugins/fill/fill.entry.js"),GC.Spread.Sheets.ContextMenu=e("./dist/plugins/contextMenu/context-menu.entry.js"),GC.Spread.Sheets.FormulaTextBox=e("./dist/plugins/formulaTextbox/formulaTextBox.entry.js"),GC.Spread.Sheets.OutlineColumn=e("./dist/plugins/outlineColumn/outlineColumn.entry.js"),GC.Spread.Sheets.DragMerge=e("./dist/plugins/dragMerge/dragMerge.entry.js"),GC.Spread.Sheets.StatusBar=e("./dist/plugins/statusBar/statusBar.entry.js"),GC.Spread.Sheets.AutoMerge=e("./dist/plugins/autoMerge/autoMerge.js"),GC.Spread.Sheets.Hyperlink=e("./dist/plugins/hyperlink/hyperlink.js"),GC.Spread.Sheets.NameBox=e("./dist/plugins/namebox/namebox.entry.js"),GC.Spread.Sheets.Components=e("./dist/plugins/components/index.js"),GC.Spread.Sheets.InputMask=e("./dist/plugins/inputMask/inputMask.entry.js"),GC.Spread.Sheets.Spacing=e("./dist/plugins/spacing/spacing.js"),t.exports=GC.Spread},"./dist/core/celltype/basecelltype.js":function(n,u,t){"use strict";var c,v,ht,dt,g,Z,e,l,h,d,p,t,W,o,Q,Mt,J,vt,y,M,K,R,et,C,L,S,x,X,q,$,j,tt,b,_,A,gt,N,mt,pt,Ct,bt,i,s,wt,St,T,D,k,O,r,E,F,B,I,P,a,G;function nt(t){var n=t.isPrinting,t=t.printZoomFactor;return n&&typeof t===b&&1!==t}function U(t){var n;return!(t instanceof CanvasRenderingContext2D)&&!C(t._ae)}function H(t,n){var e,i,r,e=0,i=t.font+n,r=!U(t);return r&&D[i]?e=D[i]:(e=K(t,t.font,n),r&&(D[i]=e)),e}function w(){}function z(t,n){var e;return n/2-t/2+(8=n.width))if(0===(a=(a=t.labelOptions.alignment)===A?t.labelOptions.alignment=0:a)||1===a||2===a){if(0e.y+e.height&&(s.y=wt(s.y-(s.y+s.height-e.y-e.height),e.y))),n=(a=f.getImage(l)).width,h=a.height,ht.mt.Tt.msie&&(O[l]||(a.style.position="absolute",a.style.left="-10000px",a.style.top="-100000px",document.body.appendChild(a),O[l]={width:a.width,height:a.height},document.body.removeChild(a)),n=O[l].width,h=O[l].height),u&&ht.mt.Tt.msie&&s.x+s.width>u.x+u.width?0<(i=c=u.x+u.width-s.x)&&t.drawImage(a,0,0,i*(d=n/r),h,N(s.x),N(s.y),i,o):(c=r,t.drawImage(a,0,0,n,h,N(s.x),N(s.y),c,o))):f.addImage(l,"anonymous"),t.restore()}function an(t){var n=t.context,e=t.style,t=t.externals;dt.W.Xue(e)&&(t.left=t.left.concat(un(n,e,Z.IconPosition.leftOfText)),t.right=t.right.concat(un(n,e,Z.IconPosition.rightOfText)))}function un(n,t,e){for(var i,r,o,a,i=!1,r=0,o=t.decoration.icons;r=s&&x.col>=c&&1=v&&y.col>=g&&1=v&&y.col>=g&&1=t.width&&(i.width=0),r+a>=t.height&&(i.height=0),i},f.prototype.In=function(t,n,e,i){var r,o,r,r=this,o=nt(i)?i.printZoomFactor:i.sheet.zoom();return n=r.An(n,e,o),f.et(i.sheet,"getCellPaddingRect",r={ctx:t,options:{rect:n,context:i}}),r.options.rect},f.prototype.xn=function(t,n,e,i){var r,o,i,a,u,s,c,o,f,l,n,a,h,d,r=e.labelOptions;r&&(i=(o=i.sheet).getText(i.row,i.col,i.sheetArea),a=e.watermark,1!==(u=r.visibility))&&a&&(s=r.font||e.font||o.Dn.Nn(),1!==(c=o.zoom())&&(s=o.Dn._n(s)),o=Q(s),f=Rt(e,n)?Pt(n,e):f)&&((l=(0,v.GC$)(ht.mt.En("span"))).text(a),n=(2===u||u===A)&&""===i,a=f.height-o,h=f.y+(n&&0e.width?a.width+u.width+t.width:e.width,e=!isNaN(a&&a.height)&&a.height+u.height+t.height>e.height?a.height+u.height+t.height:e.height,r.updateEditorContainer(o,a,n,i,s={width:c,height:e},u,t)},f.prototype.Bn=function(t,n,e,i,r){return this.getCellAndPaddingHitInfo(t,n,e,i,r)},f.prototype.Ln=function(t,n,e,i,r){var o,t,o=kt(r,e)+Nt(r)+jt(r,e),t=this.getAutoFitWidth(t,n,e,i,r);return 0M-1-2?(y=y.substring(0,y.length-4)+k,c.push(y.split(k)[0].length)):c.push(x)}else if(1===d){for(A=0;AM-1-2?(y=y.replace(m[S],""),c.push(y.split(k)[0].length)):c.push(x),s[g].y=a+(o-(3*w+(y.length-3)*p))/2}else{for(c.push(0),T=m.length-1;T>=m.length-C;T--)y=m[T]+y;3*w+((y=k+y).length-3)*p+u>M-1-2&&(y=y.replace(m[m.length-C],"")),s[g].y=a+o-u-(3*w+(y.length-3)*p)-2}e[g].textInfos[0].text=y,f.Ut.$n(l,h,m,v)}else f.Ut.$n(l,h,null,v)},f.prototype.Qn=function(t,n,e,i,r,o,a,u,s,c,f,l){var h,d,v,g,m,h,p,b,w,y,M,C,S,y,T,m,h,d,l,m,x,A,b,S,I,N,k,T,f,j,D;if(n&&n.richText&&(n={text:(n=n.converted?n:ht.util.g0(n)).text,richText:n.converted}),v=this,g=new ht.Rect(e,i,r,o),m=u.sheet?u.sheet.zoom():1,h=u.printZoomFactor,h=nt(u)?h:_,p=v.Gn(a.textIndent,u.sheet.outlineColumn,u.col,h?h*m:m),b=u.cellOverflowLayout&&u.cellOverflowLayout.expandedWidth,w=a.hAlign,y=a.formatter||a._autoFormatter,3===w&&(w=Mt(w,n,y)),C=!!(M=a.isVerticalText&&4!==w)&&J(s),S=a.font,y=v.Ft(y,n&&n.text),T=L(!0,[],v.Pt(n,s,y,S,a.foreColor)),(0,ht.resetFillStyle)(t,u.sheet,a,f),n&&n.richText&&0C.length?S.substring(0,S.length-1)+k+C:S+k+C.substring(1,C.length),M=this.qn(i,g)}else for(m=0;mr||4===m,v=p.x,b=p.y,_=p.width,p=p.height,g)if(t.rect(v,b,_,p),t.clip(),t.beginPath(),O=i+M,1w.backgroundLeftWidth||g>w.backgroundRightWidth)&&(f=!0):(_d.backgroundLeftWidth||h>d.backgroundRightWidth)&&(v=!0):(ae-d.x&&p&&(o=d.x+b+1,M=d.width-b-1),S="",n.forEach(function(t){return S+=t.value}),h=i,(a=pn([S],f.lineHeight,l)).descenderHeight&&(h+=a.descenderHeight),f.textRect=new ht.Rect(e,h,e,a.height),g.Zn(t,l,f,o,i,m,f.lineHeight,d),M?(t.save(),t.beginPath(),t.rect(o,d.y,M,d.height),t.clip(),C=this.We(t,n,e,i,y,u,s,c,l.textDirection),t.restore()):C=this.We(t,n,e,i,y,u,s,c,l.textDirection),g.Wn(t,l,f,e,i,C-e,f.lineHeight,d),t.restore()},f.prototype.We=function(t,n,e,i,r,o,a,u,s){for(var c,f,l,l,c=this.qn(t,"0"),f=0;fn?r+=o*(u=pt(t[a]/n)):r+=o;return r}function en(t,n,e){var t=K(t);return t&&"="===t[0]||""===t&&"="===n[0]||0===e&&"="===n[0]}function rn(t){var t=t&&t.tagName;return"TEXTAREA"===t||"INPUT"===t}function on(t){return(t.ctrlKey||t.metaKey)&&t.keyCode===(t.shiftKey?At:xt)}function an(t){return(t.ctrlKey||t.metaKey)&&t.keyCode===(t.shiftKey?xt:At)}function un(t){var n,e,i;if(t&&t.content)for(n=t.content.length-1;0<=n&&((e=t.content[n])&&e.value&&e.value.endsWith(Tt));n--){for(i=e.value.length-1;0<=i&&e.value[i]===Tt;i--);if(-1!==i){e.value=e.value.substring(0,i+1);break}t.content.pop()}}function sn(t,n){t.ki(d,{sheet:t,sheetName:t.name(),row:t.ui,col:t.ci,editingText:n})}function cn(t,n,e,i,r,o,a){var u,s,c,f,l,t,i,h,i,d,v,t,r,i,g,m,u=t,s=a.sheet,c=s.zoom?s.zoom():1,l=i,t=o.textOrientation,i=o.textIndent&&0!==o.textIndent,h=o.isVerticalText;if(t&&-90<=t&&t<=90&&!i&&!h&&(i=yt(t*Math.PI/180),l=(r-a.lineHeight*wt(i))/bt(i)),v={},r=(t=o.formatter)&&"General"!==t,i=D(t),g=o._autoFormatter&&o._autoFormatter.formatCached&&"General"!==o._autoFormatter.formatCached,(r="string"==typeof t?r&&!i:r)?d=o.formatter:g?d=o._autoFormatter:s.parent&&s.parent.options.numbersFitMode===x.NumbersFitMode.mask?d=R.Context.Nt(n,e,l,o,c):s.parent&&s.parent.options.numbersFitMode===x.NumbersFitMode.overflow&&(d=o._autoFormatter),!(f=i&&(e instanceof Date||"boolean"==typeof e||e instanceof Boolean||"number"==typeof e)?u.format(e,t,{}):u.format(et(e),d,v,a))||!f.endsWith(Tt)||!0!==o.wordWrap&&(5!==o.hAlign||a.sheet.options.showFormulas&&a.isFormula)||(f=(0,L.r2e)(f),un(v)),!0!==o.shrinkToFit&&!h&&it(e)&&s.parent){switch(m=f,s.parent.options.numbersFitMode){case x.NumbersFitMode.mask:m=u.wi(n,f,l,o,c,a,v,s);break;case x.NumbersFitMode.overflow:m=u.overflow(n,a,e,o,s,f,v)}f=m}return f}function o(t){var n=Dt.call(this)||this;return n.allowOverflow=!0,n.typeName="1",n.editorType=F(t)?1:t,n}function fn(t){var n,t,e,i,r,n=["0","0","0","0"];return typeof t===It&&(r=i=void 0,1===(e=(t=t.split(" ",4)).length)?n=[i=t[0],i,i,i]:2===e?n=[i=t[0],r=t[1],i,r]:3===e?(r=t[1],n=[t[0],r,t[2],r]):4===e&&(n=[t[0],t[1],t[2],t[3]])),n}u=this&&this.__extends||(jt=function(t,n){return(jt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}))(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}jt(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextCellType=t.EditorType=t.xHe=void 0,e=n("Common"),h=n("./dist/core/worksheet/worksheet.js"),E=n("./dist/core/util/domUtil.js"),i=n("./dist/core/util/common.js"),l=n("./dist/core/celltype/celltype.ns.js"),R=n("./dist/core/celltype/basecelltype.js"),x=n("./dist/core/core.enum.js"),L=n("./dist/core/util/common.js"),n=n("CalcEngine"),j=!!n,F=e.Common.lt.ht,X=i.q,d=i.Events.EditChange,v=i.hi,r=i.mt,s=i.di,D=r.St,g=r.En,c=r.Tt,B=c.msie,_=c.edge,q=c.chrome,y=r.vi,$=r.gt,m=r.mi,p=r.gi,f=r.pi(),tt=r.vt,b=r.bi,w=r.Mt,O=r.yi,nt=r.yt,et=r.wt,it=r.Ct,P="left",rt="right",ot="center",at="top",M="gcUIElement",G="none",C=".gcEditingInput",S="gcEditingInput",U="width",H="height",ut="text-align",z="hidden",V="word-wrap",Y="overflow",st="vertical-align",Z="normal",ct="break-word",ft="overflow-y",lt="scroll",ht="word-break",dt="float",T=window,A=document,vt=.337,gt=f.ipad,mt=f.iphone||gt||f.android,I=null,N=void 0,pt=Math.ceil,W=Math.min,bt=Math.sin,wt=Math.cos,yt=Math.abs,Mt=Math.max,Q=parseInt,Ct="\xa0",St="\u200b",Tt=" ",xt=90,At=89,It="string",Nt="number",t.xHe=cn,(n=kt=t.EditorType||(t.EditorType={}))[n.textarea=0]="textarea",n[n.editableDiv=1]="editableDiv",Dt=R.Base,u(o,Dt),o.prototype.getText=function(t,n){return t},o.prototype.paintValue=function(t,n,e,i,r,o,a,u){var s,c,f,l,h,d,v,g,m,p,b,w,p,m,y,p,M,C,M,S,C,T,p,v,M,s=this,c=u.sheet,f=c.zoom?c.zoom():1;if(n=s.getText(n,u),l={},u.quotePrefix=a.quotePrefix,v=(d=a.formatter)&&"General"!==d,g=D(d),"string"==typeof d&&(v=v&&!g),m=a.textOrientation,p=a.textIndent&&0!==a.textIndent,b=a.isVerticalText,w=r,m&&-90<=m&&m<=90&&!p&&!b&&(p=yt(m*Math.PI/180),w=(o-u.lineHeight*wt(p))/bt(p)),m=(y=s.Pn(t,h,a,u,e,i,r,o)).externals,p=s.Hn(m.left),M=s.Hn(m.right),2===(C=3===(C=a.hAlign)?$(C,n,a.formatter||a._autoFormatter):C)?w-=M:0===C&&(w-=p),M=a._autoFormatter&&a._autoFormatter.formatCached&&"General"!==a._autoFormatter.formatCached,v?S=a.formatter:M?S=a._autoFormatter:c.parent&&c.parent.options.numbersFitMode===x.NumbersFitMode.mask?S=R.Context.Nt(t,n,w,a,f):c.parent&&c.parent.options.numbersFitMode===x.NumbersFitMode.overflow&&(S=a._autoFormatter),!(h=g&&(n instanceof Date||"boolean"==typeof n||n instanceof Boolean||"number"==typeof n)?s.format(n,d,{}):s.format(et(n),S,l,u))||!h.endsWith(Tt)||!0!==a.wordWrap&&(5!==a.hAlign||u.sheet.options.showFormulas&&u.isFormula)||(h=(0,L.r2e)(h),un(l)),C=new L.Rect(e,i,r,o),this.adjustRectForIconSet(a.hAlign,u.sheet,u.row,u.col,u.sheetArea,C,l.content&&this.hasInfilling(l.content)),e=C.x,r=C.width,!0!==a.shrinkToFit&&!b)if(it(n)){if(c.parent){switch(T=h,c.parent.options.numbersFitMode){case x.NumbersFitMode.mask:T=this.wi(t,h,w,a,f,u,l,c);break;case x.NumbersFitMode.overflow:T=this.overflow(t,u,n,a,c,h,l)}h=T}}else void 0===c.Ut.Ci(u.row,u.col,u.sheetArea)||a.showEllipsis||c.Ut.$n(u.row,u.col,void 0,u.sheetArea);p=a.labelOptions,v=a.watermark,M=!p||0!==p.visibility,v&&!h&&M?s.paintText(t,v,e,i,r,o,a,u,v,l,vt):(h||l.content&&l.content.length||a.cellButtons&&a.cellButtons.length)&&s.paintText(t,n,e,i,r,o,a,u,h,l,N,m)},o.prototype.wi=function(t,n,e,i,r,o,a,u){var s,t,e,s,s=o.cellOverflowLayout&&o.cellOverflowLayout.expandedWidth,t=R.Context.Et(t,n,F(s)?e:s,i,r),e=o.row,s=o.col;return n!==t?(delete a.content,i.textIndent=0,u.Ut.$n(e,s,u.getText(e,s,o.sheetArea),o.sheetArea)):u.Ut.$n(e,s,void 0,o.sheetArea),t},o.prototype.overflow=function(t,n,e,i,r,o,a){var u,s,t,c,f,l,h,u=n.row,s=n.col;if(i.wordWrap&&(i.wordWrap=!1),t=w(t,i.font,o),c=r.Jt.Kt(s),l=void 0,!(f=n.cellOverflowLayout)&&cf.backgroundWidth:f.valueWidth/2>f.backgroundLeftWidth||f.valueWidth/2>f.backgroundRightWidth)?r.getText(u,s,n.sheetArea):void 0}return r.Ut.$n(u,s,l,n.sheetArea),o},o.prototype.Si=function(t){return null!=t},o.prototype.createEditorElement=function(t,n){var t,t,n,e,t=t&&t.sheet&&t.sheet.parent&&t.sheet.parent.Ti,t=p(t)+1e3;return(0,E.GC$)(n).css("z-index",t),n=Ot(this.editorType),(0,E.GC$)(n).css({font:"normal 11pt calibri",outline:G,resize:G,border:G,"vertical-align":"top","min-height":"0px","box-sizing":"content-box",background:"transparent"}).css(V,Z).attr({tabindex:-1,autocomplete:"off",contenteditable:!0}).css(Y,z).attr(M,S),c.safari&&(0,E.GC$)(n).css("-webkit-user-select","auto"),(e=J((0,E.GC$)(n)[0]))&&((0,E.GC$)(n).css("display","table-cell"),(0,E.GC$)(n).css(ht,Z)),(0,E.GC$)(n)[0]},o.prototype.getEditorValue=function(t,n){var e,i,n,t;return t&&(e=K(t),i=!F(e)&&0n.start?i-1:i)){for(u=0;t.childNodes[u]&&0<=i;)i-=t.childNodes[u].textContent.length,u++;r.setEnd(t.childNodes[u-1],i+t.childNodes[u-1].textContent.length)}else r.setEnd(t.childNodes[0],i);r.collapse(!0),o.removeAllRanges(),o.addRange(r)}else t.value&&(a=(s=t.value).length,e=W(e,a),i=i>n.start?i-1:i,i=W(i,a),t.setSelectionRange(e,i))},o.prototype.activateEditor=function(n,l,h,d,v,g,m){var p,b,w,n,o,n,t,e,i,r,a,u,e,p=d&&d.sheet;if(p&&(b=this,w=n)){if(n=(0,E.GC$)(w),o=J(w),b._editingElement=w,n.attr(M)||n.attr(M,S),f.android&&n.bind("input"+C,function(t){try{b.fi(w,l,h,t,d,!1,v,g,m)}catch(t){}}),n.bind("keydown"+C,function(t){var n,e,i;try{n=t.keyCode,e={event:t,editor:w,value:K(w),caret:b.Xmt(w),cancel:!1},8===n?(R.Base.et(p,"editorBackspace",e),!0===e.cancel?(y(t),k(w,e.value),b.qmt(w,e.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:e.value})):o&&s.processBackspaceAndLeftArrowKeyEvent(t,!0)):46===n?(R.Base.et(p,"editorDelete",e),!0===e.cancel?(y(t),k(w,e.value),b.qmt(w,e.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:e.value})):o&&s.processDeleteAndRightArrowKeyEvent(t,!0)):37===n&&o?s.processBackspaceAndLeftArrowKeyEvent(t,!1):39===n&&o&&s.processDeleteAndRightArrowKeyEvent(t,!1),on(t)&&o?(R.Base.et(p,"editorUndo",e),!0===e.cancel&&(y(t),k(w,e.value),b.qmt(w,e.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:e.value}))):an(t)&&o&&(R.Base.et(p,"editorRedo",e),!0===e.cancel)&&(y(t),k(w,e.value),b.qmt(w,e.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:e.value})),((i=229===n||0===n)||b.Ni)&&!f.android||b.fi(w,l,h,t,d,!0,v,g,m),Wt(t,d,b.Ni,v,g,m)}catch(t){}}),n.bind("keyup"+C,function(t){var n,e,i,r,n=t.keyCode,e=t.ctrlKey,i=t.altKey,r;(!(229===n||0===n)&&!b.Ni||f.android)&&(46!==n&&8!==n&&(90!==n&&89!==n||!e||i)||(o&&"\n"===w.innerText&&(0,E.GC$)(w).empty(),b.fi(w,l,h,t,d,!1,v,g,m)),13!==n&&9!==n&&27!==n&&16!==n||e||i)&&sn(p,b.getEditorValue(w,d))}),n.bind("mousedown"+C,function(){1===p.Di&&(p.Di=2,p._i(1,2))}),n.bind("textInput"+C,function(t){var n,n,e,e;if(c.safari){if(t.metaKey||t.altKey||t.ctrlKey||"Enter"===t.key)return;n=t.key||t.data,n={editor:w,value:n,caret:b.Xmt(w),cancel:!1},R.Base.et(p,"editorInput",n),!0===n.cancel&&(y(t),k(w,n.value),e=p.getCellType(d.row,d.col),w.parentNode&&w.parentNode.parentNode&&e&&e.Rn(w.parentNode.parentNode,l,p.getCellRect(d.row,d.col),d),b.qmt(w,n.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:n.value}))}t.data&&(b.probabilityAddPercentSpec||b.probabilityAddPercent)&&/^[0-9]+.?[0-9]*/.test(t.data)&&((e=document.createElement("span")).innerText="%",e.id="updateEditorImpAddPercent",("#text"===w.firstChild.nodeName?w:w.firstChild).appendChild(e),delete b.probabilityAddPercentSpec,delete b.probabilityAddPercent)}),n.bind("compositionstart"+C,function(){b.Ni=!0,b.Ei=K(w)}),n.bind("compositionupdate"+C,function(t){b.fi(w,l,h,t||I,d,!0,v,g,m)}),n.bind("compositionend"+C,function(t){var n,n,e,e,n,t,i,n=t.data,n={editor:w,value:n,caret:b.Xmt(w),isImeInputting:!0,cancel:!1};R.Base.et(p,"editorInput",n),!0===n.cancel&&(y(t),k(w,n.value),e=p.getCellType(d.row,d.col),w.parentNode&&w.parentNode.parentNode&&e&&e.Rn(w.parentNode.parentNode,l,p.getCellRect(d.row,d.col),d),b.qmt(w,n.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:n.value})),b.fi(w,l,h,t||I,d,!1,v,g,m),b.Ni=!1,e=t.keyCode,n=t.ctrlKey,t=t.altKey,i=b.getEditorValue(w,d)||"",b.Ei!==i&&(e===N||13!==e&&9!==e||n||t)&&sn(p,i)}),o&&(n.bind("copy"+C,function(t){var n=T.clipboardData,e=t.clipboardData,i=Xt(t.currentTarget);F(i)||(n&&n.setData?(n.setData("text",i),y(t)):e&&e.setData&&(e.setData("text/plain",i),y(t)))}),n.bind("cut"+C,function(t){var n,n,e,i,r,r,n=Xt(t.currentTarget),e="editorCut";!F(n)&&w.Rse&&(T.clipboardData&&T.clipboardData.setData?(i="text",r=T.clipboardData):t.clipboardData&&t.clipboardData.setData&&(i="text/plain",r=t.clipboardData),n={editor:w,clipboardData:r,dataName:i,caret:b.Xmt(w)},R.Base.et(p,e,n),y(t),k(w,n.value),r=p.getCellType(d.row,d.col),w.parentNode&&w.parentNode.parentNode&&r&&r.Rn(w.parentNode.parentNode,l,p.getCellRect(d.row,d.col),d),b.qmt(w,n.caret)),b.ji=T.setTimeout(function(){sn(p,b.getEditorValue(w,d)),b.ji&&(clearTimeout(b.ji),delete b.ji)},10)}),n.bind("paste"+C,function(t){var n,e,i,r,o,a,u,s,c,f,n=!1;try{e=void 0,B&&!_&&T.clipboardData&&T.clipboardData.getData?e=T.clipboardData.getData("text"):t.clipboardData&&t.clipboardData.getData&&(e=t.clipboardData.getData("text/plain")),e=Zt(e=e.replace(/\r\n?/g,"\n")),i={editor:w,pasteValue:e,caret:b.Xmt(w),cancel:!1},R.Base.et(p,"editorPaste",i),!0===i.cancel?(n=!0,k(w,i.pasteValue),b.qmt(w,i.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:i.pasteValue})):0<(r=T.getSelection()).rangeCount&&((a=(o=r.getRangeAt(0)).startOffset)!==(u=o.endOffset)&&o.deleteContents(),en(w,e,a)||(s=A.createElement("span"),"\n"===(e=8203===e[(c=e.length)-1].charCodeAt(0)&&"\n"===e[c-2]?e.replace(/\u200B/g,""):e)[(c=e.length)-1]&&(e="\r"===e[c-2]?e.substr(0,c-2):e.substr(0,c-1)),s.innerText=e,o.insertNode(s),(f=document.createRange()).setStartAfter(s),f.setEndAfter(s),f.collapse(!1),r.removeAllRanges(),r.addRange(f),n=!0))}catch(t){}if(b.ji=T.setTimeout(function(){b.fi(w,l,h,t,d,!1,v,g,m),p.parent&&p.parent.ki(L.Events.FormulaTextBoxUpdatePosition,void 0),sn(p,b.getEditorValue(w,d)),b.ji&&(clearTimeout(b.ji),delete b.ji)},10),n)return!1}),n.bind("keypress"+C,function(t){var n,n,t;t.metaKey||t.altKey||t.ctrlKey||"Enter"===t.key||(n=t.key||t.data,n={editor:w,value:n,caret:b.Xmt(w),cancel:!1},R.Base.et(p,"editorInput",n),!0===n.cancel&&(y(t),k(w,n.value),t=p.getCellType(d.row,d.col),w.parentNode&&w.parentNode.parentNode&&t&&t.Rn(w.parentNode.parentNode,l,p.getCellRect(d.row,d.col),d),b.qmt(w,n.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:n.value})))})),t=n=void 0,(n=!d||(t=j&&p.getFormula(d.row,d.col))?n:l.mask)&&n.pattern&&"="===n.pattern[0]){e=p.Lp,i=p.Uw(3),r=0<=d.row?d.row:0,a=0<=d.col?d.col:0;try{u=e.evaluate(i,n.pattern,r,a),n.pattern="object"==typeof u?"":""+u}catch(t){n.pattern=""}}e={editor:w,ns:C,mask:n,text:K(w)},R.Base.et(p,"activateEditor",e)}},o.prototype.deactivateEditor=function(t,n){var e,i,r,o,a,u,s,c,f,l,e=this;if(R.Base.et(n&&n.sheet,"deactivateEditor",{editor:t}),t&&n&&n.sheet){if(i=n.sheet,e.Ni&>&&i.Oi)try{(0,E.GC$)(t).trigger("compositionend"+C)}catch(t){}if(r=i.getActualStyle(n.row,n.col,n.sheetArea).cellPadding)for(o=[P,at],a=[3,0],u=0;ut.width&&(A=e.width=t.width-e.x,a.width=t.width-a.x),d.css(U,A-y).css(H,e.height-x),c.options.rightToLeft?h.maxWidth=l.left+t.BA-e.x-y-C:h.maxWidth=l.left+t.width-e.x-y-C,d.css("max-width",h.maxWidth+"px"),h.maxHeight=l.top+t.height-e.y-x-S,h.minWidth=Q(h.style.width,10),h.minHeight=Q(h.style.height,10)),a=Rt(h),A=Lt(h),l=(o=(o=o&&i&&i.keyCode&&c.rt.Pi(i)&&0===a&&A===g.length)||c.Ai)&&!n.mask?"":g,w=(w=h.style.font)||v._n(v.Nn()),t=tt(w),i&&f.probabilityAddPercent&&(e=i.key)&&-1!==L.NUMBER_ARRAY.indexOf(e)&&(c.parent.options.enableFormulaTextbox?(v=h.innerText,/[a-z]/i.test(v)?f.probabilityAddPercent=!1:((I=document.createElement("span")).innerText="%",I.id="updateEditorImpAddPercent",h.appendChild(I),delete f.probabilityAddPercent)):((I=document.createElement("span")).innerText="%",I.id="updateEditorImpAddPercent",h.firstChild.appendChild(I),delete f.probabilityAddPercent)),!o&&i&&(e=c.parent,c.rt.Pi(i)&&8!==i.keyCode&&F(e.contextMenu.menuView.getHost())&&(l=Yt(h,l,a,A,i)),f.Ni)&&(l=B?g:f.Ei+i.data),N=[],j=k=void 0,D=(N=n&&(n.wordWrap||5===p)?X.un(l,Q(h.style.width)-y,w):l.split(/\r\n|\r|\n/)).length,h.minWidth=W(h.minWidth,h.maxWidth),h.minHeight=W(h.minHeight,h.maxHeight),n&&(n.wordWrap||5===p)||0h.minWidth&&_<=h.maxWidth&&!r?(d.css(U,_).css(V,Z).css(Y,z),m&&d.css(ht,Z)):_>h.maxWidth&&!r&&(d.css(U,h.maxWidth-2).css(V,ct).css(Y,z),v=nn(O,h.maxWidth,t,I)):a<_&&!r&&(v=nn(O,a,t,I))}v<=h.minHeight?d.css(H,h.minHeight).css(dt,G):v>h.minHeight&&v<=h.maxHeight?d.css(H,v).css(dt,G):v>h.maxHeight&&d.css(H,h.maxHeight-1).css(ft,lt).css(dt,P)}return b=d.css(ut),A=d.width()-h.minWidth,F(b)||b===P||(b===ot?d.css(P,h.originalLeft-A/2):b===rt&&d.css(P,h.originalLeft-A)),n&&m&&(1===(g=n.vAlign)?d.css(st,"middle"):2===g&&d.css(st,"bottom")),f=Q(h.style.height)+x+M+S,i=y+T+C,d.css(ft)===lt?{width:h.offsetWidth+i,height:o?0:f}:{width:Q(h.style.width)+i,height:f}}},o.prototype.updateEditor=function(t,n,e,i,r,o,a){var n,i,u;return e=this.Bi(t,n,e,I,i,!1,r,o,a),B&&t&&(i=(n=(0,E.GC$)(t))[0].style.width,n.width(i+1).width(i)),u=!F(e)&&t?new L.Rect(t.style.left?parseFloat(t.style.left):0,t.style.top?parseFloat(t.style.top):0,e.width,e.height):u},o.prototype.fi=function(t,n,e,i,r,o,a,u,s){var i,o;e=this.Bi(t,n,e,i,r,o,a,u,s),B&&t&&(o=(i=(0,E.GC$)(t))[0].style.width,i.width(o+1).width(o)),!F(e)&&t&&(F(a)?a=e:(a.x=N,a.y=N),this.updateEditorContainer(t,e,n,r,a,u,s))},o.prototype.updateEditorContainer=function(t,n,e,i,r,o,a){var u,u,s;i&&i.preventOverflow?(Dt.prototype.updateEditorContainer.call(this,t,n,e,i,r,o,a),(u=t.parentNode)&&n&&(u=(0,E.GC$)(u),0<(s=n.width))&&u.width(s)):(n&&n.width&&r&&r.width&&(r.width=n.width),n&&n.height&&r&&r.height&&(r.height=n.height),Dt.prototype.updateEditorContainer.call(this,t,n,e,i,r,o,a))},o.prototype.updateImeMode=function(t,n,e){this.isImeAware()&&t&&R.Context.hn(t,n)},o.prototype.isReservedKey=function(t,n){var e=t.srcElement||t.target,i=t.keyCode,r=t.ctrlKey,o=t.altKey,a=t.metaKey;return!!(e&&n&&n.isEditing&&e.getAttribute(M)===S)&&(13===i&&(r&&!t.shiftKey||o)||90===i&&r&&!o||89===i&&r&&!o||67===i&&(r||a)&&!o||88===i&&(r||a)&&!o)},o.prototype.isImeAware=function(t){return!0},o.prototype.toJSON=function(){var t,n,e,t={},n=this;for(e in n)n.hasOwnProperty(e)&&"_editingElement"!==e&&(t[e]=n[e]);return t},o.prototype.lfe=function(t,n){var n={eventName:n,eventArg:t};return R.Base.et(t.sheet,"onCreateEventArg",n),n.eventArg},t.TextCellType=e=o,t.Text=e,l.ti[1]=e},"./dist/core/core.definition.js":function(){},"./dist/core/core.entry.js":function(t,n,e){"use strict";var i,r,o,a,u,s,c,s,f,r,l,h;function d(t,n){return a._Ae(t,n)}i=this&&this.__createBinding||(Object.create?function(t,n,e,i){void 0===i&&(i=e);var r=Object.getOwnPropertyDescriptor(n,e);r&&("get"in r?n.__esModule:!r.writable&&!r.configurable)||(r={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,i,r)}:function(t,n,e,i){t[i=void 0===i?e:i]=n[e]}),r=this&&this.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||i(n,t,e)},Object.defineProperty(n,"__esModule",{value:!0}),n.Aoe=n._Ae=n.CellTypes=n.xHe=n.isPrintZoomFactorExist=n.paintDecoration=n.cellTypeContext_paintBackground=void 0,e("./dist/core/core.res.en.js"),o=e("./dist/core/util/common.js"),Object.defineProperty(n,"getTypeFromString",{set:function(t){o.getTypeFromString=t},get:function(){return o.getTypeFromString}}),r(e("./dist/core/core.ns.js"),n),r(e("./dist/core/core.interface.js"),n),r(e("./dist/core/core.enum.js"),n),r(e("./dist/core/util/common.js"),n),r(e("./dist/core/excel-io-util/common.js"),n),r(e("./dist/core/excel-io-util/excel-types.js"),n),r(e("./dist/core/excel-io-util/range-parser.js"),n),r(e("./dist/core/excel-io-util/excel-helper.js"),n),r(e("./dist/core/excel-io-util/excel-style.js"),n),r(e("./dist/core/util/domUtil.js"),n),e("./dist/core/core.definition.js"),s=-1,1===(u=(a=e("./dist/core/lc/releaseLc.js"))._pt)&&(s=Math.floor(5*Math.random()),n["G".concat("C","$")]["s".concat("d")]=s),r(e("./dist/core/util/theme.js"),n),r(e("./dist/core/util/basedialog.js"),n),r(e("./dist/core/util/imageLoader.js"),n),r(e("./dist/core/util/tasks.js"),n),r(e("./dist/core/util/crypto.js"),n),r(e("./dist/core/util/dataManager.js"),n),r(e("./dist/core/util/custom-list.js"),n),0===s&&e("./dist/core/lc/lcRegister.js"),r(e("./dist/core/worksheet/stylehelper.js"),n),1===s&&e("./dist/core/lc/lcRegister.js"),r(e("./dist/core/worksheet/style.js"),n),2===s&&e("./dist/core/lc/lcRegister.js"),r(e("./dist/core/worksheet/clipboardhelper.js"),n),3===s&&e("./dist/core/lc/lcRegister.js"),r(e("./dist/core/worksheet/worksheet-model.js"),n),4===s&&e("./dist/core/lc/lcRegister.js"),r(e("./dist/core/worksheet/worksheet.js"),n),r(e("./dist/core/worksheet/worksheet-formatter.js"),n),r(e("./dist/core/worksheet/worksheet-actions.js"),n),r(e("./dist/core/worksheet/worksheet-border.js"),n),e("./dist/core/worksheet/worksheet-edit.js"),r(e("./dist/core/worksheet/worksheet-event.js"),n),e("./dist/core/worksheet/worksheet-json.js"),r(e("./dist/core/worksheet/worksheet-render.js"),n),e("./dist/core/worksheet/worksheet-selection.js"),e("./dist/core/worksheet/worksheet-sort.js"),r(e("./dist/core/worksheet/worksheet-ui.js"),n),r(e("./dist/core/worksheet/worksheet-static.js"),n),r(e("./dist/core/worksheet/worksheet-clipboard.js"),n),(0,(c=e("./dist/core/worksheet/feature-registers/index.js")).registerWorkbookFeatures)(),r(e("./dist/core/workbook/workbook.js"),n),r(e("./dist/core/workbook/workbook-json.js"),n),r(e("./dist/core/workbook/sheettabbase.js"),n),r(e("./dist/core/workbook/sheettab.js"),n),r(e("./dist/core/workbook/sheettab2007.js"),n),r(e("./dist/core/workbook/workbookpanelex.js"),n),r(e("./dist/core/workbook/customThemeManager.js"),n),r(e("./dist/core/worksheet/attachmentManager/index.js"),n),r(e("./dist/core/util/styleManager.js"),n),s=e("./dist/core/celltype/cellType.entry.js"),n.CellTypes=s,f=e("./dist/core/celltype/basecelltype.js"),Object.defineProperty(n,"cellTypeContext_paintBackground",{enumerable:!0,get:function(){return f.cellTypeContext_paintBackground}}),Object.defineProperty(n,"paintDecoration",{enumerable:!0,get:function(){return f.paintDecoration}}),Object.defineProperty(n,"isPrintZoomFactorExist",{enumerable:!0,get:function(){return f.isPrintZoomFactorExist}}),r=e("./dist/core/celltype/headercelltype.js"),l=e("./dist/core/celltype/textcelltype.js"),h=e("./dist/core/celltype/textcelltype.js"),Object.defineProperty(n,"xHe",{enumerable:!0,get:function(){return h.xHe}}),s.Hi=r,s.zi=l,1!==u&&2!==u||a.Vi(n),n._Ae=d,n.Aoe=a.Aoe},"./dist/core/core.enum.js":function(L,t){"use strict";var n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,y,M,C,S,T,x,A,I,N,k,j,D,_,O,F,B,P,G,U,H,z,V,Y,Z,W,Q,E,J,K,X,q,$,tt,nt,et,it,rt,ot,at,ut,st,ct,ft,lt,ht,dt,vt,gt,mt,pt,bt,wt,yt,Mt,Ct,St,Tt,xt,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,R,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R;Object.defineProperty(t,"__esModule",{value:!0}),t.CaptionAlignment=t.IconPosition=t.ButtonPosition=t.DropDownType=t.ButtonImageType=t.ButtonVisibility=t.RowColumnStates=t.CellStatesType=t.SortState=t.SheetArea=t.VerticalPosition=t.HorizontalPosition=t.Yi=t.ImageLayout=t.ValueType=t.RangeChangedAction=t.HeaderAutoText=t.StorageType=t.SelectionUnit=t.SelectionPolicy=t.ImeMode=t.EditorStatus=t.VisualState=t.Zi=t.VertAlign=t.VerticalAlign=t.HorizontalAlign=t.TextDirectionType=t.TextDecorationType=t.LabelVisibility=t.LabelAlignment=t.PasteOperationOptions=t.CopyToOptions=t.ClipboardPasteOptions=t.AutoFitType=t.InvalidOperationType=t.ResizeZeroIndicator=t.HeaderOptions=t.CalculationType=t.CalculationMode=t.CopyPasteHeaderOptions=t.ResizeMode=t.InsertShiftCell=t.ShowScrollTip=t.ScrollbarAppearance=t.ShowResizeTip=t.WorksheetType=t.ScrollbarState=t.AxisInfoChangeType=t.ScrollType=void 0,t.AllowDragHeaderToMove=t.ListType=t.SheetTabState=t.DefaultChangeValueType=t.ClipboardActionType=t.OpenMode=t.OpenSaveFileType=t.FileType=t.TableStyleElement=t.SortBy=t.UsedRangeType=t.ColumnHeaderFitMode=t.AllSheetsListVisibility=t.SheetTabVisible=t.SheetType=t.HyperlinkTargetType=t.TabStripPosition=t.NumbersFitMode=t.PatternType=t.DropDownAlignment=t.DropDownDirection=t.DropdownListValue=t.GroupSort=t.CalendarStartDay=t.CalendarPage=t.LayoutDisplayAs=t.LayoutDirection=void 0,(E=n=t.ScrollType||(t.ScrollType={}))[E.pixels=0]="pixels",E[E.continuous=1]="continuous",(E=e=t.AxisInfoChangeType||(t.AxisInfoChangeType={}))[E.setRowCount=0]="setRowCount",E[E.setColumnCount=1]="setColumnCount",E[E.addRows=2]="addRows",E[E.deleteRows=3]="deleteRows",E[E.addColumns=4]="addColumns",E[E.deleteColumns=5]="deleteColumns",E[E.setRowHeight=6]="setRowHeight",E[E.setColumnWidth=7]="setColumnWidth",E[E.setRowVisible=8]="setRowVisible",E[E.setColumnVisible=9]="setColumnVisible",E[E.filterRows=10]="filterRows",E[E.outlineExpandRows=11]="outlineExpandRows",E[E.outlineExpandColumns=12]="outlineExpandColumns",(E=i=t.ScrollbarState||(t.ScrollbarState={}))[E.hide=0]="hide",E[E.show=1]="show",E[E.active=2]="active",E[E.inactive=3]="inactive",(E=r=t.WorksheetType||(t.WorksheetType={}))[E.worksheet=0]="worksheet",E[E.reportTemplateSheet=1]="reportTemplateSheet",(E=o=t.ShowResizeTip||(t.ShowResizeTip={}))[E.none=0]="none",E[E.column=1]="column",E[E.row=2]="row",E[E.both=3]="both",(E=a=t.ScrollbarAppearance||(t.ScrollbarAppearance={}))[E.skin=0]="skin",E[E.mobile=1]="mobile",(E=u=t.ShowScrollTip||(t.ShowScrollTip={}))[E.none=0]="none",E[E.horizontal=1]="horizontal",E[E.vertical=2]="vertical",E[E.both=3]="both",(E=s=t.InsertShiftCell||(t.InsertShiftCell={}))[E.right=0]="right",E[E.down=1]="down",(E=c=t.ResizeMode||(t.ResizeMode={}))[E.normal=0]="normal",E[E.split=1]="split",(E=f=t.CopyPasteHeaderOptions||(t.CopyPasteHeaderOptions={}))[E.noHeaders=0]="noHeaders",E[E.rowHeaders=1]="rowHeaders",E[E.columnHeaders=2]="columnHeaders",E[E.allHeaders=3]="allHeaders",(E=l=t.CalculationMode||(t.CalculationMode={}))[E.auto=0]="auto",E[E.manual=1]="manual",(E=h=t.CalculationType||(t.CalculationType={}))[E.all=0]="all",E[E.rebuild=1]="rebuild",E[E.minimal=2]="minimal",E[E.regular=3]="regular",(E=d=t.HeaderOptions||(t.HeaderOptions={}))[E.noHeaders=0]="noHeaders",E[E.rowHeaders=1]="rowHeaders",E[E.columnHeaders=2]="columnHeaders",E[E.allHeaders=3]="allHeaders",(E=v=t.ResizeZeroIndicator||(t.ResizeZeroIndicator={}))[E.default=0]="default",E[E.enhanced=1]="enhanced",(E=g=t.InvalidOperationType||(t.InvalidOperationType={}))[E.setFormula=0]="setFormula",E[E.copyPaste=1]="copyPaste",E[E.dragFill=2]="dragFill",E[E.dragDrop=3]="dragDrop",E[E.changePartOfArrayFormula=4]="changePartOfArrayFormula",E[E.changeSheetName=5]="changeSheetName",E[E.table=6]="table",E[E.filter=7]="filter",E[E.hideSheet=8]="hideSheet",E[E.sort=9]="sort",E[E.pivotTable=10]="pivotTable",E[E.ptOverlapValue=11]="ptOverlapValue",E[E.groupProtected=12]="groupProtected",E[E.editProtected=13]="editProtected",E[E.cutProtected=14]="cutProtected",E[E.customName=15]="customName",E[E.dataObjectCellTypeInsertData=16]="dataObjectCellTypeInsertData",E[E.reportSheet=17]="reportSheet",E[E.sizeLimitExceeded=18]="sizeLimitExceeded",(E=m=t.AutoFitType||(t.AutoFitType={}))[E.cell=0]="cell",E[E.cellWithHeader=1]="cellWithHeader",(E=p=t.ClipboardPasteOptions||(t.ClipboardPasteOptions={}))[E.all=0]="all",E[E.values=1]="values",E[E.formatting=2]="formatting",E[E.formulas=3]="formulas",E[E.valuesAndFormatting=4]="valuesAndFormatting",E[E.formulasAndFormatting=5]="formulasAndFormatting",E[E.comments=6]="comments",E[E.validation=7]="validation",E[E.usingSourceTheme=8]="usingSourceTheme",E[E.noBorder=9]="noBorder",E[E.columnWidths=10]="columnWidths",E[E.formulasAndNumberFormatting=11]="formulasAndNumberFormatting",E[E.valuesAndNumberFormatting=12]="valuesAndNumberFormatting",E[E.valuesAndSourceFormatting=13]="valuesAndSourceFormatting",E[E.allAndColumnWidth=14]="allAndColumnWidth",(E=b=t.CopyToOptions||(t.CopyToOptions={}))[E.value=1]="value",E[E.formula=2]="formula",E[E.comment=4]="comment",E[E.outline=8]="outline",E[E.sparkline=16]="sparkline",E[E.span=32]="span",E[E.style=64]="style",E[E.tag=128]="tag",E[E.bindingPath=256]="bindingPath",E[E.conditionalFormat=512]="conditionalFormat",E[E.hyperlink=1024]="hyperlink",E[E.defaultValue=2048]="defaultValue",E[E.altText=4096]="altText",E[E.all=8191]="all",(E=w=t.PasteOperationOptions||(t.PasteOperationOptions={}))[E.none=0]="none",E[E.add=1]="add",E[E.subtract=2]="subtract",E[E.multiply=3]="multiply",E[E.divide=4]="divide",(E=y=t.LabelAlignment||(t.LabelAlignment={}))[E.topLeft=0]="topLeft",E[E.topCenter=1]="topCenter",E[E.topRight=2]="topRight",E[E.bottomLeft=3]="bottomLeft",E[E.bottomCenter=4]="bottomCenter",E[E.bottomRight=5]="bottomRight",(E=M=t.LabelVisibility||(t.LabelVisibility={}))[E.visible=0]="visible",E[E.hidden=1]="hidden",E[E.auto=2]="auto",(E=C=t.TextDecorationType||(t.TextDecorationType={}))[E.underline=1]="underline",E[E.lineThrough=2]="lineThrough",E[E.overline=4]="overline",E[E.doubleUnderline=8]="doubleUnderline",E[E.none=0]="none",(E=S=t.TextDirectionType||(t.TextDirectionType={}))[E.context=0]="context",E[E.leftToRight=1]="leftToRight",E[E.rightToLeft=2]="rightToLeft",(E=T=t.HorizontalAlign||(t.HorizontalAlign={}))[E.left=0]="left",E[E.center=1]="center",E[E.right=2]="right",E[E.general=3]="general",E[E.centerContinuous=4]="centerContinuous",E[E.distributed=5]="distributed",(E=x=t.VerticalAlign||(t.VerticalAlign={}))[E.top=0]="top",E[E.center=1]="center",E[E.bottom=2]="bottom",(E=A=t.VertAlign||(t.VertAlign={}))[E.normal=0]="normal",E[E.superscript=1]="superscript",E[E.subscript=2]="subscript",(E=I=t.Zi||(t.Zi={}))[E.smallDecrement=0]="smallDecrement",E[E.smallIncrement=1]="smallIncrement",E[E.largeDecrement=2]="largeDecrement",E[E.largeIncrement=3]="largeIncrement",E[E.thumbPosition=4]="thumbPosition",E[E.thumbTrack=5]="thumbTrack",E[E.endScroll=6]="endScroll",(E=N=t.VisualState||(t.VisualState={}))[E.normal=0]="normal",E[E.highlight=1]="highlight",E[E.selected=2]="selected",E[E.active=3]="active",E[E.hover=4]="hover",E[E.activeNotSelected=5]="activeNotSelected",(E=k=t.EditorStatus||(t.EditorStatus={}))[E.ready=0]="ready",E[E.enter=1]="enter",E[E.edit=2]="edit",(E=j=t.ImeMode||(t.ImeMode={}))[E.auto=1]="auto",E[E.active=2]="active",E[E.inactive=4]="inactive",E[E.disabled=0]="disabled",(E=D=t.SelectionPolicy||(t.SelectionPolicy={}))[E.single=0]="single",E[E.range=1]="range",E[E.multiRange=2]="multiRange",(E=_=t.SelectionUnit||(t.SelectionUnit={}))[E.cell=0]="cell",E[E.row=1]="row",E[E.column=2]="column",(E=O=t.StorageType||(t.StorageType={}))[E.data=1]="data",E[E.style=2]="style",E[E.comment=4]="comment",E[E.tag=8]="tag",E[E.sparkline=16]="sparkline",E[E.axis=32]="axis",E[E.bindingPath=64]="bindingPath",E[E.hyperlink=256]="hyperlink",E[E.altText=512]="altText",(E=F=t.HeaderAutoText||(t.HeaderAutoText={}))[E.blank=0]="blank",E[E.numbers=1]="numbers",E[E.letters=2]="letters",(E=B=t.RangeChangedAction||(t.RangeChangedAction={}))[E.dragDrop=0]="dragDrop",E[E.dragFill=1]="dragFill",E[E.clear=2]="clear",E[E.paste=3]="paste",E[E.sort=4]="sort",E[E.setArrayFormula=5]="setArrayFormula",E[E.evaluateFormula=6]="evaluateFormula",(E=P=t.ValueType||(t.ValueType={}))[E.normal=0]="normal",E[E.richText=1]="richText",(E=G=t.ImageLayout||(t.ImageLayout={}))[E.stretch=0]="stretch",E[E.center=1]="center",E[E.zoom=2]="zoom",E[E.none=3]="none",(E=U=t.Yi||(t.Yi={})).ThumbButton="thumbButton",E.TrackButton="trackButton",E.LeftButton="leftButton",E.RightButton="rightButton",E.UpButton="upButton",E.DownButton="downButton",(E=H=t.HorizontalPosition||(t.HorizontalPosition={}))[E.left=0]="left",E[E.center=1]="center",E[E.right=2]="right",E[E.nearest=3]="nearest",(E=z=t.VerticalPosition||(t.VerticalPosition={}))[E.top=0]="top",E[E.center=1]="center",E[E.bottom=2]="bottom",E[E.nearest=3]="nearest",(E=V=t.SheetArea||(t.SheetArea={}))[E.corner=0]="corner",E[E.colHeader=1]="colHeader",E[E.rowHeader=2]="rowHeader",E[E.viewport=3]="viewport",(E=Y=t.SortState||(t.SortState={}))[E.none=0]="none",E[E.ascending=1]="ascending",E[E.descending=2]="descending",(E=Z=t.CellStatesType||(t.CellStatesType={}))[E.hover=1]="hover",E[E.invalid=2]="invalid",E[E.readonly=4]="readonly",E[E.edit=8]="edit",E[E.active=16]="active",E[E.selected=32]="selected",E[E.dirty=64]="dirty",E[E.invalidFormula=128]="invalidFormula",(E=W=t.RowColumnStates||(t.RowColumnStates={}))[E.hover=1]="hover",E[E.invalid=2]="invalid",E[E.edit=8]="edit",E[E.active=16]="active",E[E.selected=32]="selected",E[E.dirty=64]="dirty",E[E.inserted=128]="inserted",E[E.invalidFormula=512]="invalidFormula",(E=Q=t.ButtonVisibility||(t.ButtonVisibility={}))[E.always=0]="always",E[E.onSelected=1]="onSelected",E[E.onEditing=2]="onEditing",(R=E=t.ButtonImageType||(t.ButtonImageType={}))[R.none=0]="none",R[R.custom=1]="custom",R[R.clear=2]="clear",R[R.cancel=3]="cancel",R[R.ok=4]="ok",R[R.dropdown=5]="dropdown",R[R.ellipsis=6]="ellipsis",R[R.left=7]="left",R[R.right=8]="right",R[R.plus=9]="plus",R[R.minus=10]="minus",R[R.undo=11]="undo",R[R.redo=12]="redo",R[R.search=13]="search",R[R.separator=14]="separator",R[R.spinLeft=15]="spinLeft",R[R.spinRight=16]="spinRight",R[R.collapse=17]="collapse",R[R.expand=18]="expand",E.calcel=E.cancel,(R=J=t.DropDownType||(t.DropDownType={}))[R.colorPicker=0]="colorPicker",R[R.dateTimePicker=1]="dateTimePicker",R[R.timePicker=2]="timePicker",R[R.monthPicker=3]="monthPicker",R[R.list=4]="list",R[R.slider=5]="slider",R[R.calculator=6]="calculator",R[R.workflowList=7]="workflowList",R[R.multiColumn=8]="multiColumn",(E=K=t.ButtonPosition||(t.ButtonPosition={}))[E.left=0]="left",E[E.right=1]="right",E[E.leftOfText=2]="leftOfText",E[E.rightOfText=3]="rightOfText",(R=X=t.IconPosition||(t.IconPosition={}))[R.left=0]="left",R[R.right=1]="right",R[R.leftOfText=2]="leftOfText",R[R.rightOfText=3]="rightOfText",R[R.outsideLeft=4]="outsideLeft",R[R.outsideRight=5]="outsideRight",(E=q=t.CaptionAlignment||(t.CaptionAlignment={}))[E.left=0]="left",E[E.right=1]="right",(R=$=t.LayoutDirection||(t.LayoutDirection={}))[R.horizontal=0]="horizontal",R[R.vertical=1]="vertical",(E=tt=t.LayoutDisplayAs||(t.LayoutDisplayAs={}))[E.inline=0]="inline",E[E.popup=1]="popup",E[E.tree=2]="tree",(R=nt=t.CalendarPage||(t.CalendarPage={}))[R.year=1]="year",R[R.month=2]="month",R[R.day=3]="day",(E=et=t.CalendarStartDay||(t.CalendarStartDay={}))[E.monday=1]="monday",E[E.tuesday=2]="tuesday",E[E.wednesday=3]="wednesday",E[E.thursday=4]="thursday",E[E.friday=5]="friday",E[E.saturday=6]="saturday",E[E.sunday=7]="sunday",(R=it=t.GroupSort||(t.GroupSort={}))[R.none=0]="none",R[R.group=1]="group",R[R.child=2]="child",R[R.full=3]="full",(E=rt=t.DropdownListValue||(t.DropdownListValue={}))[E.string=0]="string",E[E.array=1]="array",(R=ot=t.DropDownDirection||(t.DropDownDirection={}))[R.Down=0]="Down",R[R.Up=1]="Up",R[R.Left=2]="Left",R[R.Right=3]="Right",(E=at=t.DropDownAlignment||(t.DropDownAlignment={}))[E.Near=0]="Near",E[E.Center=1]="Center",E[E.Far=2]="Far",(R=ut=t.PatternType||(t.PatternType={}))[R.solid=1]="solid",R[R.darkGray=2]="darkGray",R[R.mediumGray=3]="mediumGray",R[R.lightGray=4]="lightGray",R[R.gray125=5]="gray125",R[R.gray0625=6]="gray0625",R[R.darkHorizontal=7]="darkHorizontal",R[R.darkVertical=8]="darkVertical",R[R.darkDown=9]="darkDown",R[R.darkUp=10]="darkUp",R[R.darkGrid=11]="darkGrid",R[R.darkTrellis=12]="darkTrellis",R[R.lightHorizontal=13]="lightHorizontal",R[R.lightVertical=14]="lightVertical",R[R.lightDown=15]="lightDown",R[R.lightUp=16]="lightUp",R[R.lightGrid=17]="lightGrid",R[R.lightTrellis=18]="lightTrellis",(E=st=t.NumbersFitMode||(t.NumbersFitMode={}))[E.mask=0]="mask",E[E.overflow=1]="overflow",(R=ct=t.TabStripPosition||(t.TabStripPosition={}))[R.bottom=0]="bottom",R[R.top=1]="top",R[R.left=2]="left",R[R.right=3]="right",(E=ft=t.HyperlinkTargetType||(t.HyperlinkTargetType={}))[E.blank=0]="blank",E[E.self=1]="self",E[E.parent=2]="parent",E[E.top=3]="top",(R=lt=t.SheetType||(t.SheetType={}))[R.tableSheet=0]="tableSheet",R[R.ganttSheet=1]="ganttSheet",R[R.customSheetTab=2]="customSheetTab",R[R.reportSheet=3]="reportSheet",R[R.printSheet=9007199254740991]="printSheet",(E=ht=t.SheetTabVisible||(t.SheetTabVisible={}))[E.hidden=0]="hidden",E[E.visible=1]="visible",E[E.veryHidden=2]="veryHidden",(R=dt=t.AllSheetsListVisibility||(t.AllSheetsListVisibility={}))[R.hide=0]="hide",R[R.show=1]="show",R[R.auto=2]="auto",(E=vt=t.ColumnHeaderFitMode||(t.ColumnHeaderFitMode={}))[E.normal=0]="normal",E[E.vertical=1]="vertical",E[E.stack=2]="stack",(R=gt=t.UsedRangeType||(t.UsedRangeType={}))[R.all=262143]="all",R[R.axis=1]="axis",R[R.style=2]="style",R[R.rowStyle=4]="rowStyle",R[R.colStyle=8]="colStyle",R[R.data=16]="data",R[R.formula=32]="formula",R[R.span=64]="span",R[R.shape=128]="shape",R[R.table=256]="table",R[R.sparkLine=512]="sparkLine",R[R.comment=1024]="comment",R[R.slicer=2048]="slicer",R[R.pivottable=4096]="pivottable",R[R.filter=8192]="filter",R[R.dataValidation=16384]="dataValidation",R[R.conditionFormat=32768]="conditionFormat",R[R.chart=65536]="chart",R[R.picture=131072]="picture",(E=mt=t.SortBy||(t.SortBy={})).cellColor="cellColor",E.fontColor="fontColor",E.icon="icon",E.value="value",(R=pt=t.TableStyleElement||(t.TableStyleElement={})).wholeTable="wholeTable",R.firstColumnStripe="firstColumnStripe",R.secondColumnStripe="secondColumnStripe",R.firstRowStripe="firstRowStripe",R.secondRowStripe="secondRowStripe",R.lastColumn="lastColumn",R.firstColumn="firstColumn",R.headerRow="headerRow",R.totalRow="totalRow",R.firstHeaderCell="firstHeaderCell",R.lastHeaderCell="lastHeaderCell",R.firstTotalCell="firstTotalCell",R.lastTotalCell="lastTotalCell",(E=bt=t.FileType||(t.FileType={}))[E.excel=0]="excel",E[E.ssjson=1]="ssjson",E[E.csv=2]="csv",(R=wt=t.OpenSaveFileType||(t.OpenSaveFileType={}))[R.excel=0]="excel",R[R.sjs=1]="sjs",(E=yt=t.OpenMode||(t.OpenMode={}))[E.normal=0]="normal",E[E.lazy=1]="lazy",E[E.incremental=2]="incremental",(R=Mt=t.ClipboardActionType||(t.ClipboardActionType={}))[R.copy=1]="copy",R[R.cut=2]="cut",R[R.reset=3]="reset",(E=Ct=t.DefaultChangeValueType||(t.DefaultChangeValueType={})).Expression="expr",E.Value="value",(R=St=t.SheetTabState||(t.SheetTabState={}))[R.hover=1]="hover",R[R.selected=2]="selected",R[R.active=4]="active",R[R.protected=8]="protected",R[R.normal=16]="normal",(E=Tt=t.ListType||(t.ListType={}))[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",(R=xt=t.AllowDragHeaderToMove||(t.AllowDragHeaderToMove={}))[R.none=0]="none",R[R.column=1]="column",R[R.row=2]="row",R[R.both=3]="both"},"./dist/core/core.interface.js":function(t,n){"use strict";var e,n;Object.defineProperty(n,"__esModule",{value:!0}),n.CornerPosition=void 0,(n=e=n.CornerPosition||(n.CornerPosition={}))[n.leftTop=1]="leftTop",n[n.rightTop=2]="rightTop",n[n.leftBottom=4]="leftBottom",n[n.rightBottom=8]="rightBottom"},"./dist/core/core.ns.js":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SR=void 0;var e=e("./dist/core/core.res.en.js");n.SR={en:e}},"./dist/core/core.res.en.js":function(t,n,e){"use strict";var i,r;for(r in Object.defineProperty(n,"__esModule",{value:!0}),n.ARIA_Cell=n.ARIA_Scrollbar_TRACK_Button=n.ARIA_Scrollbar_Bottom_Button=n.ARIA_Scrollbar_Right_Button=n.ARIA_Scrollbar_Thumb_Button=n.ARIA_Scrollbar_Top_Button=n.ARIA_Scrollbar_Left_Button=n.ARIA_Blank=n.ARIA_NewSheet=n.ARIA_SheetTab=n.ARIA_NextButton=n.ARIA_PreviousButton=n.ARIA_Last=n.ARIA_NextArrow=n.ARIA_PreviousArrow=n.ARIA_First=n.ARIA_Resize=n.NeedCanvasSupport=n.Exp_OverlappingSpans=n.Exp_SheetIsNull=n.Exp_DestSheetIsNull=n.Exp_ArrayFormulaSpan=n.Exp_SheetNameConflict=n.Exp_SheetNameInvalid=n.Exp_EmptyNamedStyle=n.NewTab=n.Tip_Width=n.Tip_Height=n.Tip_Column_Offset=n.Tip_Column=n.Tip_Row=n.Exp_PasteChangeMergeCell=n.Exp_PasteDestinationCellsLocked=n.Exp_InvalidCopyPasteSize=n.Exp_PasteSourceCellsLocked=n.Exp_ArgumentOutOfRange=n.Exp_NotAFunction=n.Exp_InvalidRange=n.Exp_IndexOutOfRange=n.Exp_CustomNameBothInUse=n.Exp_InvalidCustomName=n.Exp_InvalidCustomFunction=n.Exp_DestIsNull=n.Exp_SrcIsNull=n.Exp_InvalidAndSpace=n.Exp_ChangePartOfArray=n.Exp_MultipleSelections=n.Exp_InvalidPastedArea=n.Exp_PasteExtentIsNull=n.Exp_NotSupported=void 0,n.cancel=n.ok=n.pasteSpecialOptionDialog=n.STEP=n.Exp_InvalidOperationSizeLimitExceeded=n.EXP_UNSUPPORT_CRYPTO_ALGORITHM=n.GENERAL=n.NORMAL=n.EXP_INVALID_PASSWORD=n.EXP_NO_PASSWORD=n.EXP_FILE_FORMAT=n.EXP_IO=n.Exp_InvalidOperationInProtect=n.Exp_InvalidSortPartTableOrMultiTableInRange=n.Exp_InvalidSortSpanInRange=n.Exp_InvalidSortArrayFormulaInRange=n.Exp_InsertCopiedCutCellsAffectTable=n.Exp_InsertCopiedCutCellsOverlap=n.Exp_InsertCopiedCutCellsNoRange=n.Exp_InsertCopiedCutCellsOnSpanTable=n.Exp_InsertCopiedCutCells=n.REPORT_SUMMARY=n.SHEET_NAME=n.ARIA_ColumnHeader=n.ARIA_RowHeader=n.ARIA_HasComment=n.ARIA_HasHyperlink=n.ARIA_HasButton=n.ARIA_HasCheckbox=n.ARIA_HasFormula=n.ARIA_HasValue=void 0,n.Exp_NotSupported="Not supported exception",n.Exp_PasteExtentIsNull="pasteExtent is null",n.Exp_InvalidPastedArea="The pasted area should have the same size as the copy or cut area.",n.Exp_MultipleSelections="This action won't work on multiple selections.",n.Exp_ChangePartOfArray="Cannot change part of an array.",n.Exp_InvalidAndSpace="Invalid {0}: {1} (must be between {2} and {3}).",n.Exp_SrcIsNull="The argument 'src' is null",n.Exp_DestIsNull="The argument 'dest' is null",n.Exp_InvalidCustomFunction="invalid custom function",n.Exp_InvalidCustomName="invalid custom name",n.Exp_CustomNameBothInUse="Both the current name and new name are referenced in cell formulas",n.Exp_IndexOutOfRange="Index is out of range!",n.Exp_InvalidRange="Invalid range",n.Exp_NotAFunction="Not A Function",n.Exp_ArgumentOutOfRange="ArgumentOutOfRange",n.Exp_PasteSourceCellsLocked="Source sheet's cells are locked.",n.Exp_InvalidCopyPasteSize="The copy and paste areas are not the same size.",n.Exp_PasteDestinationCellsLocked="The cell you are trying to change is protected and therefore read-only.",n.Exp_PasteChangeMergeCell="Cannot change part of a merged cell.",n.Tip_Row="Row: ",n.Tip_Column="Column: ",n.Tip_Column_Offset="Offset: ",n.Tip_Height="Height: {0} pixels",n.Tip_Width="Width: {0} pixels",n.NewTab="New...",n.Exp_EmptyNamedStyle="The name of named style cannot be empty or null",n.Exp_SheetNameInvalid="The sheet name can not be blank or contains these characters : *, :, [, ], ?, \\, /",n.Exp_SheetNameConflict="That name is already taken. Try a different one.",n.Exp_ArrayFormulaSpan="Array formulas are not valid in merged cells.",n.Exp_DestSheetIsNull="destSheet is null",n.Exp_SheetIsNull="sheet is null.",n.Exp_OverlappingSpans="This operation will cause overlapping spans.",n.NeedCanvasSupport="You need a browser which full supports HTML5 Canvas to run SpreadJS",n.ARIA_Resize="resize",n.ARIA_First="first",n.ARIA_PreviousArrow="previous arrow",n.ARIA_NextArrow="next arrow",n.ARIA_Last="last",n.ARIA_PreviousButton="previous button",n.ARIA_NextButton="next button",n.ARIA_SheetTab="sheet tab",n.ARIA_NewSheet="new sheet",n.ARIA_Blank="blank",n.ARIA_Scrollbar_Left_Button="scrollbar left button",n.ARIA_Scrollbar_Top_Button="scrollbar top button",n.ARIA_Scrollbar_Thumb_Button="scrollbar thumb button",n.ARIA_Scrollbar_Right_Button="scrollbar right button",n.ARIA_Scrollbar_Bottom_Button="scrollbar bottom button",n.ARIA_Scrollbar_TRACK_Button="scrollbar track button",n.ARIA_Cell="cell",n.ARIA_HasValue="has value {0}",n.ARIA_HasFormula="has formula {0}",n.ARIA_HasCheckbox="has checkbox {0}",n.ARIA_HasButton="has button {0}",n.ARIA_HasHyperlink="has hyperlink {0}",n.ARIA_HasComment="has comment {0}",n.ARIA_RowHeader="row header",n.ARIA_ColumnHeader="column header",n.SHEET_NAME="Sheet",n.REPORT_SUMMARY="Sum",i=e("./dist/core/lc/lr.en.js"))i.hasOwnProperty(r)&&(n[r]=i[r]);n.Exp_InsertCopiedCutCells="This selection is not valid. The copy/paste area must be the same size",n.Exp_InsertCopiedCutCellsOnSpanTable="This won\u2019t work because it would move cells in a table on your worksheet or will cause some merged cells to unmerge.",n.Exp_InsertCopiedCutCellsNoRange="New cells can not be inserted as there are non-empty cells that would extend beyond the worksheet.",n.Exp_InsertCopiedCutCellsOverlap="This selection isn't valid. Make sure the copy and paste areas don't overlap unless they are the same size and shape.",n.Exp_InsertCopiedCutCellsAffectTable="You can't rearrange cells within a table this way, because it might affect other table cells in an unexpected way.",n.Exp_InvalidSortArrayFormulaInRange="Can't sort current range as array formula exist.",n.Exp_InvalidSortSpanInRange="Can't sort current range as span exist.",n.Exp_InvalidSortPartTableOrMultiTableInRange="Can't sort current range as part table or more than one table exist.",n.Exp_InvalidOperationInProtect="The cell or chart you're trying to change is on a protected sheet. To make a change, unprotect the sheet.",n.EXP_IO="File read and write exception.",n.EXP_FILE_FORMAT="Incorrect file format.",n.EXP_NO_PASSWORD="The Excel file cannot be opened because the workbook/worksheet is password protected.",n.EXP_INVALID_PASSWORD="The specified password is incorrect.",n.NORMAL="Normal",n.GENERAL="General",n.EXP_UNSUPPORT_CRYPTO_ALGORITHM="Unsupported cryptographic algorithms",n.Exp_InvalidOperationSizeLimitExceeded="File size exceeds set limit the max size.",n.STEP={start:"start load {0}",loadFileData:"load {0}'s data to spread",loadSheetData:"load {0}'s data",startCalc:"start reCalc",loadSheetFormula:"load {0}'s formula",parseFile:"parse {0} content"},n.pasteSpecialOptionDialog={title:"Paste Special",paste:"Paste",pasteOptions:{all:"All",formulas:"Formulas",values:"Values",formats:"Formats",comments:"Comments",validation:"Validation",usingSourceTheme:"All using Source theme",noBorders:"All except borders",columnWidth:"Column widths",formulasAndNumberFormats:"Formulas and number formats",valueAndNumberFormats:"Value and number formats"},operation:"Operation",operationOptions:{none:"None",add:"Add",subtract:"Subtract",multiply:"Multiply",divide:"Divide"},skipBlanks:"Skip blanks",transpose:"Transpose",pasteLink:"Paste Link"},n.ok="OK",n.cancel="Cancel"},"./dist/core/excel-io-util/common.js":function(t,n,e){"use strict";var i,r,u,v,g,s,c,f,l,o,a,h,d,m,e,p,b,w,y,M,C;function S(){}function T(){}function x(){}function A(t,n){var n,n,e,n=n.toUpperCase(),n=p[n];return n?(e=m,(e=n.reg?n.prefix:m)+t):t}function I(n,t,e){var i,r,e,t,i,r=function(t){return n.getColumnWidth(t)},e=N(e,function(t){return n.getRowHeight(t)},n.getRowCount(),n.defaults.rowHeight),t=N(t,r,n.getColumnCount(),n.defaults.colWidth);return{rowIndex:e.index,rowOffset:e.offset,colIndex:t.index,colOffset:t.offset}}function N(t,n,e,i){for(var r,o,a,u,s,c,r=-1,o=-1,a=0,u=0;u=g.XmlConstants.Io||t>=g.XmlConstants.xo)||D.So(e,n,t,r)})},D.Uce=function(t){var n,e,i,r;function o(t,n){var t=parseInt(t.v_||0,10);return n?s.ExcelHelper.emuToPixles(t):t}return{row:n=o(t.row),col:e=o(t.col),rowOff:i=o(t.rowOff,!0),colOff:r=o(t.colOff,!0)}},D.Gce=function(t,n){var n,e,i,n=D.Uce(n),e,i;return{x:v.util.w0(t,0,n.col,!1)+n.colOff,y:v.util.w0(t,0,n.row,!0)+n.rowOff}},D.No=function(t){return t=Math.min(t,g.XmlConstants.xo-1),w.nr(t)},D.ko=function(t){return!t||f(t.fileType)||t.fileType===r.OpenSaveFileType.sjs},D.encodeNameFormula=function(t){if(t)return t.replace(/&/g,"&").replace(//g,">")},D.Oge=function(t,n){var n,e,i,r,o,a,t,n={n_:"definedName",c_:[D.addXLFNPrefix(D.encodeNameFormula(n))]},e=t.name,i=t.localSheetId,r=t.e,o=t.comment,a=t.isReadOnly,t=t.hidden;return f(e)||(n.name=v.util.vo(e)),f(i)||(n.localSheetId=i),f(r)||(n.e=r),f(o)||(n.comment=v.util.vo(o)),f(a)||(n.isReadOnly=a),f(t)||(n.hidden=t),n},M=D,n.Util=M,n.SJSStylePropsToStyleProps={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"},n.protectionOptionsMap={allowSelectLockedCells:"selectLockedCells",allowSelectUnlockedCells:"selectUnlockedCells",allowFilter:"autoFilter",allowSort:"sort",allowInsertColumns:"insertColumns",allowInsertRows:"insertRows",allowDeleteColumns:"deleteColumns",allowDeleteRows:"deleteRows",allowEditObjects:"objects"},n.excelSupportProtectionOptions={objects:!0,formatCells:!0,formatColumns:!0,formatRows:!0,insertColumns:!0,insertRows:!0,insertHyperlinks:!0,deleteColumns:!0,deleteRows:!0,selectLockedCells:!0,selectUnlockedCells:!0,sort:!0,autoFilter:!0,pivotTables:!0},_.builtInNumberFormat=function(){return 0===(_.Md=_.Md?_.Md:{count:0}).count&&_.initBuiltNumberFormat(),_.Md},_.languageIndepedentNumberFormat=function(){return 0===(_.Ch=_.Ch?_.Ch:{count:0}).count&&_.initLanguageIndepedentNumberFormat(),_.Ch},_.formatCodeTable=function(){return _.Sh=_.Sh?_.Sh:[]},_.customNumberFormat=function(){return _.Th=_.Th?_.Th:{count:0}},_.getCultureInfo=function(){var t,n,t=M.ro(),n;return t&&t.GC&&t.GC.Spread&&t.GC.Spread.Common&&M.ro().GC.Spread.Common.CultureManager.getCultureInfo()||M.ao()},_.initBuiltNumberFormat=function(){var t,n,n,e,i,r,o,a,t=_.Md;if(t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yyyy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yyyy h:mm",t[37]="#,##0_);(#,##0)",t[38]="#,##0_);[Red](#,##0)",t[39]="#,##0.00_);(#,##0.00)",t[40]="#,##0.00_);[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mm:ss.0",t[48]="##0.0E+0",t[49]="@",t.count=49,M.oo())if("zh-cn"===(n=M.oo()))t[14]="yyyy/m/d",t[17]="mmm-yy",t[22]="yyyy/m/d h:mm",t[27]='yyyy"\u5e74"m"\u6708"',t[28]='m"\u6708"d"\u65e5"',t[29]='m"\u6708"d"\u65e5"',t[30]="m-d-yy",t[31]='yyyy"\u5e74"m"\u6708"d"\u65e5"',t[32]='h"\u65f6"mm"\u5206"',t[33]='h"\u65f6"mm"\u5206"ss"\u79d2"',t[34]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"',t[35]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2"',t[36]='yyyy"\u5e74"m"\u6708"',t[39]="#,##0.00;-#,##0.00",t[40]="#,##0.00;[Red]-#,##0.00",t[50]='yyyy"\u5e74"m"\u6708"',t[51]='m"\u6708"d"\u65e5"',t[52]='yyyy"\u5e74"m"\u6708"',t[53]='m"\u6708"d"\u65e5"',t[54]='m"\u6708"d"\u65e5"',t[55]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"',t[56]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2"',t[57]='yyyy"\u5e74"m"\u6708"',t[58]='m"\u6708"d"\u65e5"',t.count=58;else if("ja-jp"===n)t[14]="yyyy/m/d",t[15]="dd-mmm-yy",t[16]="dd-mmm",t[17]="mmm-yy",t[22]="yyyy/mm/dd h:mm",t[27]="[$-411]ge.m.d",t[28]='[$-411]ggge"\u5e74"m"\u6708"d"',t[29]='[$-411]ggge"\u5e74"m"\u6708"d"',t[30]="m/d/yy",t[31]='yyyy"\u5e74"m"\u6708"d"\u65e5"',t[32]='h"\u6642"mm"\u5206"',t[33]='h"\u6642"mm"\u5206"ss"\u79d2"',t[34]='yyyy"\u5e74"m"\u6708"',t[35]='m"\u6708"d"\u65e5"',t[36]="[$-411]ge.m.d",t[38]="#,##0;[Red]-#,##0",t[39]="#,##0.00;-#,##0.00",t[40]="#,##0.00;[Red]-#,##0.00",t[50]="[$-411]ge.m.d",t[51]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',t[52]='yyyy"\u5e74"m"\u6708"',t[53]='m"\u6708"d"\u65e5"',t[54]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',t[55]='yyyy"\u5e74"m"\u6708"',t[56]='m"\u6708"d"\u65e5"',t[57]="[$-411]ge.m.d",t[58]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',t.count=58;else if(e=(n=_.getCultureInfo())&&n.LocalNumberFormat,!f(e)&&!Array.isArray(e)&&"object"==typeof e){for(i in e)isNaN(Number(i))||(r=e[i],M.uo(r)&&(t[i]=e[i]));for(i in o=0,t)isNaN(Number(i))||o<(a=Number(i))&&(o=a);t.count=o}},_.initLanguageIndepedentNumberFormat=function(){var t=_.Ch;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"},_.getFormatCode=function(t){var n,e,i,r,t,o,t,n=_.builtInNumberFormat(),e=_.customNumberFormat(),i=_.languageIndepedentNumberFormat(),r=t.numberFormatIndex;return t.numberFormat?(o=(t=t.numberFormat).numberFormatId,t=t.numberFormatCode,n[o]&&n[o]!==t?n[o]=t:(e[t]||(e[t]=o,e.count++),t)):n[r]||i[r]||"General"},_.getFormatId=function(t){var n,e,i,r,o,a,u,s,n=_.Ah();if(n[t])return n[t];if(i=_.builtInNumberFormat())for(r in i)if(i[r]===t)return e={isBuiltIn:!0,id:parseInt(r,10)},n[t]=e;if((o=_.customNumberFormat())&&o[t])return e={isBuiltIn:!1,id:o[t]},n[t]=e;if((a=0)u&&(u=o[s]);a=u}return _.Ih++,a=Math.max(_.Ih,a)+1,e={isBuiltIn:!1,id:o[t]=a}},_.Ah=function(){return _.xh=_.xh?_.xh:{}},_.resetBuiltInNumberFormat=function(){_.Md={count:0},_.Ch={count:0}},_.Sh=null,_.xh=null,_.Md={count:0},_.Ch={count:0},_.Th={count:0},_.Ih=170,n.ExtendedNumberFormatHelper=_},"./dist/core/excel-io-util/excel-helper.js":function(t,n){"use strict";function e(t,n){var n=Math.pow(10,n);return Math.round(t*n)/n}var i;function r(){}Object.defineProperty(n,"__esModule",{value:!0}),n.ExcelHelper=void 0,r.pointToPixel=function(t){return e(96*t/72,2)},r.pixelToPoint=function(t){return 72*t/96},r.emuToPixles=function(t,n){return e(96*t/914400,n||2)},r.pixelToEMU=function(t){return Math.round(914400*t/96)},r.getActualColumnWidth=function(t,n,e){for(var i,r,i=0,r=n;rf||t.col>l||t.rowCount>f||t.col>l||e.push(t)}),e},s._c=function(t,n){var e,i,i,r,o,i,a,a,t,e=(0,u.Ec)(0,0,0,0),i=t.indexOf("!");if(1===(i=(i=(t=-1=t[u].length?r+="00":r+=t[u].charAt(e)+t[u].charAt(e+1):e>o!=n[r]>>o)return!1;i-=e,r+=1}return!0}function c(t){if(l.test(t))return parseInt(t,16);if("0"!==t[0]||isNaN(parseInt(t[1],10)))return parseInt(t,10);if(s.test(t))return parseInt(t,8);throw new Error("ipaddr: cannot parse ".concat(t," as octal"))}function e(t,n){for(;t.length>n&255);return t}().reverse()}if(n=t.match(f.twoOctet)){var u,s,u=n.slice(1,4),s=[];if(16777215<(i=c(u[1]))||i<0)throw new Error("ipaddr: address outside defined range");return s.push(c(u[0])),s.push(i>>16&255),s.push(i>>8&255),s.push(255&i),s}if(n=t.match(f.threeOctet)){var u,s,u=n.slice(1,5),s=[];if(65535<(i=c(u[2]))||i<0)throw new Error("ipaddr: address outside defined range");return s.push(c(u[0])),s.push(c(u[1])),s.push(i>>8&255),s.push(255&i),s}return null},g.IPv4.subnetMaskFromPrefixLength=function(t){var n,e,i;if((t=parseInt(t))<0||32>8),n.push(255&t);return n},r.prototype.toFixedLengthString=function(){var t,n,t,n="";return function(){for(var t,n,t=[],n=0;n>8,255&n,t>>8,255&t]);throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4")},r.prototype.toNormalizedString=function(){var t,n,t,n="";return function(){for(var t,n,t=[],n=0;ni&&(e=r.index,i=r[0].length);return i<0?n:"".concat(n.substring(0,e),"::").concat(n.substring(e+i))},r.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},r),g.IPv6.broadcastAddressFromCIDR=function(t){var n,e,i,r,o;try{for(e=(n=this.parseCIDR(t))[0].toByteArray(),i=this.subnetMaskFromPrefixLength(n[1]).toByteArray(),r=[],o=0;o<16;)r.push(parseInt(e[o],10)|255^parseInt(i[o],10)),o++;return new this(r)}catch(t){throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(t,")"))}},g.IPv6.isIPv6=function(t){return null!==this.parser(t)},g.IPv6.isValid=function(t){if("string"==typeof t&&-1===t.indexOf(":"))return!1;try{var n=this.parser(t);return new this(n.parts,n.zoneId),!0}catch(t){return!1}},g.IPv6.networkAddressFromCIDR=function(t){var n,e,i,r,o;try{for(i=(n=this.parseCIDR(t))[0].toByteArray(),o=this.subnetMaskFromPrefixLength(n[1]).toByteArray(),r=[],e=0;e<16;)r.push(parseInt(i[e],10)&parseInt(o[e],10)),e++;return new this(r)}catch(t){throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(t,")"))}},g.IPv6.parse=function(t){var t=this.parser(t);if(null===t.parts)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(t.parts,t.zoneId)},g.IPv6.parseCIDR=function(t){var n,t,t;if((t=t.match(/^(.+)\/(\d+)$/))&&0<=(n=parseInt(t[2]))&&n<=128)return t=[this.parse(t[1]),n],Object.defineProperty(t,"toString",{value:function t(){return this.join("/")}}),t;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},g.IPv6.parser=function(t){var t,n,e,i,r,t;if(e=t.match(v.deprecatedTransitional))return this.parser("::ffff:".concat(e[1]));if(v.native.test(t))return o(t,8);if((e=t.match(v.transitional))&&(t=e[6]||"",(t=o(e[1].slice(0,-1)+t,6)).parts)){for(r=[parseInt(e[2]),parseInt(e[3]),parseInt(e[4]),parseInt(e[5])],n=0;n>12&63,u=r>>6&63,s=63&r,c[l/3]=d.charAt(o=r>>18&63)+d.charAt(a)+d.charAt(u)+d.charAt(s);return t=(t=c.join("")).slice(0,t.length-f.length)+f}function m(t){for(var n,e,i,r,n,o,a,r,u,s,c,f,l,u=[],f=v,c=t,l=0;l>>16&255,e=r>>>8&255,i=255&r),64==a&&(u[l/4]=d(n,e)),64==o&&(u[l/4]=d(n));return s=u.join("")}function p(t){return(h&&window.atob||m)(t)}function b(t){return(h&&window.btoa||l)(t)}function w(t){return decodeURIComponent(Array.prototype.map.call(p(t),function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function y(t){return b(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,function(t,n){return d(parseInt(n,16))}))}function M(t){var t,n;return t?(t=f(t=c(t)),n=Math.ceil(t.length/2),w(t=(t=(t=t.substr(n)+t.substr(0,n)).replace("#","=")).replace("&","=="))):""}function C(t){for(var n,e,i,r,n=p(t),e=n.length,i=new o(e),r=0;rc&&(u=f.left+r-c),f.top+o>s&&(a=f.top+o-s),(e<0||i<0||0=e[r].value;)i+=e[r].numeral,t-=e[r].value;return i}function mn(t,n){var e="",i=n?97:65;if(0===t)return String.fromCharCode(i);for(;0>16&255,g:t>>8&255,b:255&t,a:t>>24&255}},c.convertRgbToXyz=function(t){var n,e,i,t,e,i,n,r,o,a,n=function(t){return t=.04045<(t/=255)?T((t+.055)/1.055,2.4):t/12.92,t*=100},e=t.r,i=t.g,t=t.b,e=n(e),i=n(i),n=n(t),r,o,a;return{x:.4124564*e+.3575761*i+.1804375*n,y:.2126729*e+.7151522*i+.072175*n,z:.0193339*e+.119192*i+.9503041*n}},c.convertXyzToLab=function(t){var n,e,i,t,r,o,a,n=function(t){return.008856>16&255)+","+(e=t>>8&255)+","+(i=255&t)+")":void 0},c.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],c.paletteInLab=[{lightness:0,redGreen:0,blueYellow:0},{lightness:100.00000386666655,redGreen:.41450003183252093,blueYellow:-.9762337974368318},{lightness:53.24079414130722,redGreen:80.40628534603033,blueYellow:66.9485076645686},{lightness:87.73472235279792,redGreen:-85.88347705836918,blueYellow:82.71231806483974},{lightness:32.297010932850725,redGreen:79.42575443955474,blueYellow:-108.79311020157895},{lightness:97.13926722430631,redGreen:-21.167322894165398,blueYellow:93.98697624453854},{lightness:60.32421212836874,redGreen:98.58848986524677,blueYellow:-61.76412516100469},{lightness:91.11321981275862,redGreen:-47.74463372340881,blueYellow:-15.101613782352352},{lightness:0,redGreen:0,blueYellow:0},{lightness:100.00000386666655,redGreen:.41450003183252093,blueYellow:-.9762337974368318},{lightness:53.24079414130722,redGreen:80.40628534603033,blueYellow:66.9485076645686},{lightness:87.73472235279792,redGreen:-85.88347705836918,blueYellow:82.71231806483974},{lightness:32.297010932850725,redGreen:79.42575443955474,blueYellow:-108.79311020157895},{lightness:97.13926722430631,redGreen:-21.167322894165398,blueYellow:93.98697624453854},{lightness:60.32421212836874,redGreen:98.58848986524677,blueYellow:-61.76412516100469},{lightness:91.11321981275862,redGreen:-47.74463372340881,blueYellow:-15.101613782352352},{lightness:25.53553096346318,redGreen:48.23338316760745,blueYellow:37.96950789833623},{lightness:46.22743146876261,redGreen:-51.51899057263506,blueYellow:49.61670487243066},{lightness:12.9719668574308,redGreen:47.64519130280251,blueYellow:-65.26181066276018},{lightness:51.86894337734398,redGreen:-12.69765903738712,blueYellow:56.380043157800905},{lightness:29.784666617920195,redGreen:59.1403568405364,blueYellow:-37.05049551887899},{lightness:48.2540934618616,redGreen:-28.64061189579556,blueYellow:-9.059017225814237},{lightness:77.7043667134314,redGreen:.3348315663007084,blueYellow:-.7885979888260453},{lightness:53.585015771669404,redGreen:.2486464680258038,blueYellow:-.5856141545440119},{lightness:67.10642818332406,redGreen:24.661563327250835,blueYellow:-51.70481284997233},{lightness:38.02326868659504,redGreen:47.530276772876526,blueYellow:-7.41000863702892},{lightness:98.88366982816507,redGreen:-7.647377025903346,blueYellow:23.604961406243042},{lightness:96.64610006552223,redGreen:-15.626896975835969,blueYellow:-6.286449794841897},{lightness:22.946593663526578,redGreen:50.30757275587142,blueYellow:-31.51689638909162},{lightness:68.21369400049187,redGreen:48.529707503769,blueYellow:22.097909906924063},{lightness:44.03181574544729,redGreen:15.497390355584283,blueYellow:-60.313393374835414},{lightness:83.56960561788927,redGreen:10.660290354444879,blueYellow:-25.869538462689157},{lightness:12.9719668574308,redGreen:47.64519130280251,blueYellow:-65.26181066276018},{lightness:60.32421212836874,redGreen:98.58848986524677,blueYellow:-61.76412516100469},{lightness:97.13926722430631,redGreen:-21.167322894165398,blueYellow:93.98697624453854},{lightness:91.11321981275862,redGreen:-47.74463372340881,blueYellow:-15.101613782352352},{lightness:29.784666617920195,redGreen:59.1403568405364,blueYellow:-37.05049551887899},{lightness:25.53553096346318,redGreen:48.23338316760745,blueYellow:37.96950789833623},{lightness:48.2540934618616,redGreen:-28.64061189579556,blueYellow:-9.059017225814237},{lightness:32.297010932850725,redGreen:79.42575443955474,blueYellow:-108.79311020157895},{lightness:76.31433784805343,redGreen:-24.045184322556313,blueYellow:-37.63232479221295},{lightness:96.64610006552223,redGreen:-15.626896975835969,blueYellow:-6.286449794841897},{lightness:95.46123799053612,redGreen:-25.20013221308681,blueYellow:18.33180794427749},{lightness:98.0661672083006,redGreen:-13.832882960730986,blueYellow:47.940897645383274},{lightness:80.27790732349922,redGreen:-3.692924875082826,blueYellow:-31.192993832087378},{lightness:75.08051024268852,redGreen:44.9470828980269,blueYellow:-10.53443113754624},{lightness:71.44638619892534,redGreen:38.40169770146873,blueYellow:-44.58196770374543},{lightness:85.37715784474301,redGreen:11.871131967975845,blueYellow:31.5700614950422},{lightness:48.789468602187014,redGreen:37.72886428748323,blueYellow:-81.46151935827358},{lightness:74.97920661167659,redGreen:-37.437024973414836,blueYellow:-12.053212107002897},{lightness:76.04314994204388,redGreen:-38.98270545611504,blueYellow:75.18013610138723},{lightness:84.19958734726818,redGreen:4.040877427542666,blueYellow:84.79018925434798},{lightness:72.2607240884026,redGreen:30.50579205114734,blueYellow:76.85864017596677},{lightness:62.312481453511026,redGreen:55.3256388060856,blueYellow:71.01583749339153},{lightness:45.11897896728884,redGreen:12.741665540704494,blueYellow:-28.39942907333195},{lightness:62.082179778109094,redGreen:.2790091803857031,blueYellow:-.6571246580693746},{lightness:21.3066228635372,redGreen:6.957317762469661,blueYellow:-34.694697216998314},{lightness:56.52959107095738,redGreen:-41.28375003303447,blueYellow:17.929912574393892},{lightness:17.308442495122094,redGreen:-27.576541316135987,blueYellow:24.11521195522933},{lightness:20.328171424265783,redGreen:-6.796668862699029,blueYellow:28.392687041649655},{lightness:36.25649980036505,redGreen:41.047060654411325,blueYellow:47.86323594949912},{lightness:38.02326868659504,redGreen:47.530276772876526,blueYellow:-7.41000863702892},{lightness:27.765685279866425,redGreen:33.339639613412324,blueYellow:-56.37161392120451},{lightness:21.24673253653905,redGreen:.13309285609849897,blueYellow:-.31346136150179893},{lightness:0,redGreen:0,blueYellow:0}],St=c,f.ColorHelper=St,f.getFontHeightWithCanvas=dn,Tt=/&#(\d+);/g,xt=/&#x([0-9A-F]+);/gi,k.Vf=function(t){for(var n,e,n="";0=s&&(u+=t.Gt(s,3))):(c=t.S0(s),t.getViewportLeftColumn(c)<=s&&t.getViewportRightColumn(c)>=s&&(u+=t.nn(s,3))),!(r&&r(o=t[r]).row&&(n=o.row),e>o.col&&(e=o.col);return{r:n=n<0?0:n,c:e=e<0?0:e}},k.V0=function(t){var t,t=typeof t===A&&"/"===t.charAt(0)?k.a2e(t):t;return t},k.a2e=function(t){var n,n,n=pt.test(t)?(n=t.match(pt),h.Common.ct.Y0(st(n[1]))):mt.test(t)?(n=t.match(mt),new Date(st(n[1]))):t;return n},k.Z0=function(t){var t,t=!b(t)&&h.Common.ct.W0(t)?h.Common.ct.Q0(t):t;return t},k.K0=function(t,n){for(var e,i,r,o,e=t.getImageData(n.x,n.y,n.width,n.height),i=e.data,r=0;rn&&(t.rowCount=n),t.colCount>e&&(t.colCount=e)},k.X0=function(t,n,e,i){for(var r=e;r)|(")|(')/g).test(t)?typeof t===A?t.replace(n,function(t){switch(t){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case"'":return"'"}}):""+t:t},k.Nfe=function(t,n){return(n=void 0!==n&&n)?t&&t.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,"""):t&&t.replace(/\&/g,"&").replace(/\"/g,""").replace(/\>/g,">").replace(/\").replace(/</g,"<")},k.n1=function(t){var n,e;return b(t)?t:!(n=typeof t===A)||-1===t.indexOf("&")?""+t:(e=/(&)|(>)|(<)|(")|(')/g,(t=-1!==t.indexOf("&#")?t.replace(Tt,sn(10)).replace(xt,sn(16)):t).replace(e,function(t){switch(t){case"&":return"&";case">":return">";case"<":return"<";case""":return'"';case"'":return"'"}}))},k.e1=function(t,n,e){var i,r;if(t&&typeof t===A)for(i=0;iNumber.POSITIVE_INFINITY))for(;n%2&&(e+=t),(n=Math.floor(n/2))&&(t+=t),n;);return e},k.toPlainString=function(t){var n,e;return(""+t).replace(/(-?)(\d*)\.?(\d*)e([+-]\d+)/,function(t,n,e,i,r){return+r<0?n+"0."+k.repeatString("0",1-+r-e.length-1)+e+i:n+e+i+k.repeatString("0",+r-i.length)})},k.jse=function(t){var n=document.createElement("div");return n.innerHTML=t.trim(),n.firstChild},k.rfe=function(t,n){var e,i,r,o;if(t===m||n===m||"object"!=typeof t||"object"!=typeof n)return t===n;if(e=Object.keys(t),i=Object.keys(n),e.length!==i.length)return!1;for(r=0;r=e.length||n.priority>e[i].priority){e.splice(i,0,n);break}l&&(null!=(t=f.c2e)?t:[]).forEach(function(t){t()})},f.et=function(t,n,e,i){var r,r,o,a,u,s,c,o=f.fh;if(o){if(t&&!t.lh&&(t.lh={}),!(a=l&&t?null==(r=t.lh)?void 0:r[n]:null==(r=f.lh)?void 0:r[n]))for(a=l&&t?t.lh[n]=[]:f.lh[n]=[],u=0;u\u200b"),e.selectAllChildren(o),0>2]|=t[r]<>2]|=i<>2]|=(192|i>>6)<>2]|=(224|i>>12)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=r[3&n],this.block=t[32],112<=n&&(this.hashed||this.hash(),t[0]=this.block,t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=t[16]=t[17]=t[18]=t[19]=t[20]=t[21]=t[22]=t[23]=t[24]=t[25]=t[26]=t[27]=t[28]=t[29]=t[30]=t[31]=t[32]=0),t[30]=this.hBytes<<3|this.bytes>>>29,t[31]=this.bytes<<3,this.hash())},m.prototype.hash=function(){for(var L,F,B,P,G,U,H,z,V,Y,Z,W,Q,J,K,X,t,n,e,i,r,o,a,u,s,c,f,l,q,f,l,q,$,tt,h,d,v,g,m,p,b,w,y,M,C,S,T,x,A,I,N,k,j,D,_,O,E,R,L=this.h0h,F=this.h0l,B=this.h1h,P=this.h1l,G=this.h2h,U=this.h2l,H=this.h3h,z=this.h3l,V=this.h4h,Y=this.h4l,Z=this.h5h,W=this.h5l,Q=this.h6h,J=this.h6l,K=this.h7h,X=this.h7l,t=this.blocks,n=32;n<160;n+=2)e=((v=t[n-30])>>>1|(g=t[n-29])<<31)^(v>>>8|g<<24)^v>>>7,i=(g>>>1|v<<31)^(g>>>8|v<<24)^(g>>>7|v<<25),r=((v=t[n-4])>>>19|(g=t[n-3])<<13)^(g>>>29|v<<3)^v>>>6,o=(g>>>19|v<<13)^(v>>>29|g<<3)^(g>>>6|v<<26),v=t[n-32],g=t[n-31],m=t[n-14],p=t[n-13],t[n]=(c=(m>>>16)+(v>>>16)+(e>>>16)+(r>>>16)+((s=(65535&m)+(65535&v)+(65535&e)+(65535&r)+((u=(p>>>16)+(g>>>16)+(i>>>16)+(o>>>16)+((a=(65535&p)+(65535&g)+(65535&i)+(65535&o))>>>16))>>>16))>>>16))<<16|65535&s,t[n+1]=u<<16|65535&a;for(y=L,M=F,A=H,I=z,N=V,k=Y,j=Z,D=W,_=Q,O=J,E=K,R=X,$=(C=B)&(T=G),tt=(S=P)&(x=U),n=0;n<160;n+=8)v=t[n],g=t[n+1],v=(c=((m=nt[n])>>>16)+(v>>>16)+((b=N&j^~N&_)>>>16)+((r=(N>>>14|k<<18)^(N>>>18|k<<14)^(k>>>9|N<<23))>>>16)+(E>>>16)+((s=(65535&m)+(65535&v)+(65535&b)+(65535&r)+(65535&E)+((u=((p=nt[n+1])>>>16)+(g>>>16)+((w=k&D^~k&O)>>>16)+((o=(k>>>14|N<<18)^(k>>>18|N<<14)^(N>>>9|k<<23))>>>16)+(R>>>16)+((a=(65535&p)+(65535&g)+(65535&w)+(65535&o)+(65535&R))>>>16))>>>16))>>>16))<<16|65535&s,g=u<<16|65535&a,m=(c=((h=(f=y&C)^y&T^$)>>>16)+((e=(y>>>28|M<<4)^(M>>>2|y<<30)^(M>>>7|y<<25))>>>16)+((s=(65535&h)+(65535&e)+((u=((d=(l=M&S)^M&x^tt)>>>16)+((i=(M>>>28|y<<4)^(y>>>2|M<<30)^(y>>>7|M<<25))>>>16)+((a=(65535&d)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&s,p=u<<16|65535&a,E=(c=(A>>>16)+(v>>>16)+((s=(65535&A)+(65535&v)+((u=(I>>>16)+(g>>>16)+((a=(65535&I)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,R=u<<16|65535&a,A=(c=(m>>>16)+(v>>>16)+((s=(65535&m)+(65535&v)+((u=(p>>>16)+(g>>>16)+((a=(65535&p)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,I=u<<16|65535&a,v=t[n+2],g=t[n+3],v=(c=((m=nt[n+2])>>>16)+(v>>>16)+((b=E&N^~E&j)>>>16)+((r=(E>>>14|R<<18)^(E>>>18|R<<14)^(R>>>9|E<<23))>>>16)+(_>>>16)+((s=(65535&m)+(65535&v)+(65535&b)+(65535&r)+(65535&_)+((u=((p=nt[n+3])>>>16)+(g>>>16)+((w=R&k^~R&D)>>>16)+((o=(R>>>14|E<<18)^(R>>>18|E<<14)^(E>>>9|R<<23))>>>16)+(O>>>16)+((a=(65535&p)+(65535&g)+(65535&w)+(65535&o)+(65535&O))>>>16))>>>16))>>>16))<<16|65535&s,g=u<<16|65535&a,m=(c=((h=(q=A&y)^A&C^f)>>>16)+((e=(A>>>28|I<<4)^(I>>>2|A<<30)^(I>>>7|A<<25))>>>16)+((s=(65535&h)+(65535&e)+((u=((d=(f=I&M)^I&S^l)>>>16)+((i=(I>>>28|A<<4)^(A>>>2|I<<30)^(A>>>7|I<<25))>>>16)+((a=(65535&d)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&s,p=u<<16|65535&a,_=(c=(T>>>16)+(v>>>16)+((s=(65535&T)+(65535&v)+((u=(x>>>16)+(g>>>16)+((a=(65535&x)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,O=u<<16|65535&a,T=(c=(m>>>16)+(v>>>16)+((s=(65535&m)+(65535&v)+((u=(p>>>16)+(g>>>16)+((a=(65535&p)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,x=u<<16|65535&a,v=t[n+4],g=t[n+5],v=(c=((m=nt[n+4])>>>16)+(v>>>16)+((b=_&E^~_&N)>>>16)+((r=(_>>>14|O<<18)^(_>>>18|O<<14)^(O>>>9|_<<23))>>>16)+(j>>>16)+((s=(65535&m)+(65535&v)+(65535&b)+(65535&r)+(65535&j)+((u=((p=nt[n+5])>>>16)+(g>>>16)+((w=O&R^~O&k)>>>16)+((o=(O>>>14|_<<18)^(O>>>18|_<<14)^(_>>>9|O<<23))>>>16)+(D>>>16)+((a=(65535&p)+(65535&g)+(65535&w)+(65535&o)+(65535&D))>>>16))>>>16))>>>16))<<16|65535&s,g=u<<16|65535&a,m=(c=((h=(l=T&A)^T&y^q)>>>16)+((e=(T>>>28|x<<4)^(x>>>2|T<<30)^(x>>>7|T<<25))>>>16)+((s=(65535&h)+(65535&e)+((u=((d=(q=x&I)^x&M^f)>>>16)+((i=(x>>>28|T<<4)^(T>>>2|x<<30)^(T>>>7|x<<25))>>>16)+((a=(65535&d)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&s,p=u<<16|65535&a,j=(c=(C>>>16)+(v>>>16)+((s=(65535&C)+(65535&v)+((u=(S>>>16)+(g>>>16)+((a=(65535&S)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,D=u<<16|65535&a,C=(c=(m>>>16)+(v>>>16)+((s=(65535&m)+(65535&v)+((u=(p>>>16)+(g>>>16)+((a=(65535&p)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,S=u<<16|65535&a,v=t[n+6],g=t[n+7],v=(c=((m=nt[n+6])>>>16)+(v>>>16)+((b=j&_^~j&E)>>>16)+((r=(j>>>14|D<<18)^(j>>>18|D<<14)^(D>>>9|j<<23))>>>16)+(N>>>16)+((s=(65535&m)+(65535&v)+(65535&b)+(65535&r)+(65535&N)+((u=((p=nt[n+7])>>>16)+(g>>>16)+((w=D&O^~D&R)>>>16)+((o=(D>>>14|j<<18)^(D>>>18|j<<14)^(j>>>9|D<<23))>>>16)+(k>>>16)+((a=(65535&p)+(65535&g)+(65535&w)+(65535&o)+(65535&k))>>>16))>>>16))>>>16))<<16|65535&s,g=u<<16|65535&a,m=(c=((h=($=C&T)^C&A^l)>>>16)+((e=(C>>>28|S<<4)^(S>>>2|C<<30)^(S>>>7|C<<25))>>>16)+((s=(65535&h)+(65535&e)+((u=((d=(tt=S&x)^S&I^q)>>>16)+((i=(S>>>28|C<<4)^(C>>>2|S<<30)^(C>>>7|S<<25))>>>16)+((a=(65535&d)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&s,p=u<<16|65535&a,N=(c=(y>>>16)+(v>>>16)+((s=(65535&y)+(65535&v)+((u=(M>>>16)+(g>>>16)+((a=(65535&M)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,k=u<<16|65535&a,y=(c=(m>>>16)+(v>>>16)+((s=(65535&m)+(65535&v)+((u=(p>>>16)+(g>>>16)+((a=(65535&p)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,M=u<<16|65535&a;this.h0h=(c=(L>>>16)+(y>>>16)+((s=(65535&L)+(65535&y)+((u=(F>>>16)+(M>>>16)+((a=(65535&F)+(65535&M))>>>16))>>>16))>>>16))<<16|65535&s,this.h0l=u<<16|65535&a,this.h1h=(c=(B>>>16)+(C>>>16)+((s=(65535&B)+(65535&C)+((u=(P>>>16)+(S>>>16)+((a=(65535&P)+(65535&S))>>>16))>>>16))>>>16))<<16|65535&s,this.h1l=u<<16|65535&a,this.h2h=(c=(G>>>16)+(T>>>16)+((s=(65535&G)+(65535&T)+((u=(U>>>16)+(x>>>16)+((a=(65535&U)+(65535&x))>>>16))>>>16))>>>16))<<16|65535&s,this.h2l=u<<16|65535&a,this.h3h=(c=(H>>>16)+(A>>>16)+((s=(65535&H)+(65535&A)+((u=(z>>>16)+(I>>>16)+((a=(65535&z)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&s,this.h3l=u<<16|65535&a,this.h4h=(c=(V>>>16)+(N>>>16)+((s=(65535&V)+(65535&N)+((u=(Y>>>16)+(k>>>16)+((a=(65535&Y)+(65535&k))>>>16))>>>16))>>>16))<<16|65535&s,this.h4l=u<<16|65535&a,this.h5h=(c=(Z>>>16)+(j>>>16)+((s=(65535&Z)+(65535&j)+((u=(W>>>16)+(D>>>16)+((a=(65535&W)+(65535&D))>>>16))>>>16))>>>16))<<16|65535&s,this.h5l=u<<16|65535&a,this.h6h=(c=(Q>>>16)+(_>>>16)+((s=(65535&Q)+(65535&_)+((u=(J>>>16)+(O>>>16)+((a=(65535&J)+(65535&O))>>>16))>>>16))>>>16))<<16|65535&s,this.h6l=u<<16|65535&a,this.h7h=(c=(K>>>16)+(E>>>16)+((s=(65535&K)+(65535&E)+((u=(X>>>16)+(R>>>16)+((a=(65535&X)+(65535&R))>>>16))>>>16))>>>16))<<16|65535&s,this.h7l=u<<16|65535&a},m.prototype.hex=function(){var t,n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,t;return this.finalize(),t=this.h0h,n=this.h0l,e=this.h1h,i=this.h1l,r=this.h2h,o=this.h2l,a=this.h3h,u=this.h3l,s=this.h4h,c=this.h4l,f=this.h5h,l=this.h5l,h=this.h6h,d=this.h6l,v=this.h7h,g=this.h7l,m=this.bits,t=p[t>>28&15]+p[t>>24&15]+p[t>>20&15]+p[t>>16&15]+p[t>>12&15]+p[t>>8&15]+p[t>>4&15]+p[15&t]+p[n>>28&15]+p[n>>24&15]+p[n>>20&15]+p[n>>16&15]+p[n>>12&15]+p[n>>8&15]+p[n>>4&15]+p[15&n]+p[e>>28&15]+p[e>>24&15]+p[e>>20&15]+p[e>>16&15]+p[e>>12&15]+p[e>>8&15]+p[e>>4&15]+p[15&e]+p[i>>28&15]+p[i>>24&15]+p[i>>20&15]+p[i>>16&15]+p[i>>12&15]+p[i>>8&15]+p[i>>4&15]+p[15&i]+p[r>>28&15]+p[r>>24&15]+p[r>>20&15]+p[r>>16&15]+p[r>>12&15]+p[r>>8&15]+p[r>>4&15]+p[15&r]+p[o>>28&15]+p[o>>24&15]+p[o>>20&15]+p[o>>16&15]+p[o>>12&15]+p[o>>8&15]+p[o>>4&15]+p[15&o]+p[a>>28&15]+p[a>>24&15]+p[a>>20&15]+p[a>>16&15]+p[a>>12&15]+p[a>>8&15]+p[a>>4&15]+p[15&a],256<=m&&(t+=p[u>>28&15]+p[u>>24&15]+p[u>>20&15]+p[u>>16&15]+p[u>>12&15]+p[u>>8&15]+p[u>>4&15]+p[15&u]),384<=m&&(t+=p[s>>28&15]+p[s>>24&15]+p[s>>20&15]+p[s>>16&15]+p[s>>12&15]+p[s>>8&15]+p[s>>4&15]+p[15&s]+p[c>>28&15]+p[c>>24&15]+p[c>>20&15]+p[c>>16&15]+p[c>>12&15]+p[c>>8&15]+p[c>>4&15]+p[15&c]+p[f>>28&15]+p[f>>24&15]+p[f>>20&15]+p[f>>16&15]+p[f>>12&15]+p[f>>8&15]+p[f>>4&15]+p[15&f]+p[l>>28&15]+p[l>>24&15]+p[l>>20&15]+p[l>>16&15]+p[l>>12&15]+p[l>>8&15]+p[l>>4&15]+p[15&l]),512===m&&(t+=p[h>>28&15]+p[h>>24&15]+p[h>>20&15]+p[h>>16&15]+p[h>>12&15]+p[h>>8&15]+p[h>>4&15]+p[15&h]+p[d>>28&15]+p[d>>24&15]+p[d>>20&15]+p[d>>16&15]+p[d>>12&15]+p[d>>8&15]+p[d>>4&15]+p[15&d]+p[v>>28&15]+p[v>>24&15]+p[v>>20&15]+p[v>>16&15]+p[v>>12&15]+p[v>>8&15]+p[v>>4&15]+p[15&v]+p[g>>28&15]+p[g>>24&15]+p[g>>20&15]+p[g>>16&15]+p[g>>12&15]+p[g>>8&15]+p[g>>4&15]+p[15&g]),t},m.prototype.digest=function(){var t,n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,n,t;return this.finalize(),t=this.h0h,n=this.h0l,e=this.h1h,i=this.h1l,r=this.h2h,o=this.h2l,a=this.h3h,u=this.h3l,s=this.h4h,c=this.h4l,f=this.h5h,l=this.h5l,h=this.h6h,d=this.h6l,v=this.h7h,g=this.h7l,t=[t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r,o>>24&255,o>>16&255,o>>8&255,255&o,a>>24&255,a>>16&255,a>>8&255,255&a],256<=(n=this.bits)&&t.push(u>>24&255,u>>16&255,u>>8&255,255&u),384<=n&&t.push(s>>24&255,s>>16&255,s>>8&255,255&s,c>>24&255,c>>16&255,c>>8&255,255&c,f>>24&255,f>>16&255,f>>8&255,255&f,l>>24&255,l>>16&255,l>>8&255,255&l),512===n&&t.push(h>>24&255,h>>16&255,h>>8&255,255&h,d>>24&255,d>>16&255,d>>8&255,255&d,v>>24&255,v>>16&255,v>>8&255,255&v,g>>24&255,g>>16&255,g>>8&255,255&g),t},m.prototype.arrayBuffer=function(){var t,n,e;return this.finalize(),t=this.bits,n=new ArrayBuffer(t/8),(e=new DataView(n)).setUint32(0,this.h0h),e.setUint32(4,this.h0l),e.setUint32(8,this.h1h),e.setUint32(12,this.h1l),e.setUint32(16,this.h2h),e.setUint32(20,this.h2l),e.setUint32(24,this.h3h),256<=t&&e.setUint32(28,this.h3l),384<=t&&(e.setUint32(32,this.h4h),e.setUint32(36,this.h4l),e.setUint32(40,this.h5h),e.setUint32(44,this.h5l)),512===t&&(e.setUint32(48,this.h6h),e.setUint32(52,this.h6l),e.setUint32(56,this.h7h),e.setUint32(60,this.h7l)),n},m.prototype.clone=function(){var t=new m(this.bits,!1);return this.copyTo(t),t},m.prototype.copyTo=function(t){for(var n,e=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"],n=0;n>8,n[2]=(16711680&t)>>16,n[3]=(4278190080&t)>>24,n},w.Joe=function(t){var n,e,i,r,o,a,u,s,n,c,n=.75*t.length,e=t.length,r=0;for("="===t[t.length-1]&&(n--,"="===t[t.length-2])&&n--,n=new ArrayBuffer(n),c=new Uint8Array(n),i=0;i>4,c[r++]=(15&a)<<4|u>>2,c[r++]=(3&u)<<6|63&s;return new Uint8Array(n)},w.Xoe=function(t){for(var n,e=t.length,i="",n=0;n>2])+a[(3&t[n])<<4|t[n+1]>>4])+a[(15&t[n+1])<<2|t[n+2]>>6])+a[63&t[n+2]];return e%3==2?i=i.substring(0,i.length-1)+"=":e%3==1&&(i=i.substring(0,i.length-2)+"=="),i},w.qoe=function(t){for(var n,e,n=new DataView(new ArrayBuffer(2*t.length)),e=0;e>14&1|n<<1&32767,n^=t.charCodeAt(e);return(n=(n=n>>14&1|n<<1&32767)^t.length^52811).toString(16).toUpperCase()},n.Qoe=w},"./dist/core/util/custom-list.js":function(t,n){"use strict";var o,e;function i(t,n){this.wY=t,this.kb=n}o=this&&this.__spreadArray||function(t,n,e){if(e||2===arguments.length)for(var i=0,r=n.length,o;i=this.zh},r.prototype.addLoadingPromises=function(t){var n;t&&0"+t+"","text/html").body.firstChild.value}function d(t){var n=document.createElement("textarea");return n.textContent=t,n.innerHTML}function v(t){this.FN={},this.Vv=t}Object.defineProperty(n,"__esModule",{value:!0}),n.CustomDocPropsManager=n.encodeHTML=n.decodeHTML=void 0,i=e("Common"),r=e("CalcEngine"),e=e("./dist/core/worksheet/worksheet-model.js"),o=i.Common.lt.ht,(i=s=s||{}).text="lpwstr",i.int="i4",i.float="r8",i.boolean="bool",i.date="filetime",a="{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",c={i4:"number",lpwstr:"string",r8:"number",bool:"boolean",filetime:"object"},u=2147483647,f=4294967295,n.decodeHTML=h,n.encodeHTML=d,v.prototype.all=function(t){var n,e,n,n,e=this.Vv,n=null==(n=e.Dp)?void 0:n.docPropsCustom;if(t||n)return t&&(e.Dp||(e.Dp={docPropsCustom:[]}),e.Dp.docPropsCustom||(e.Dp.docPropsCustom=[]),n=this.BN(t),e.Dp.docPropsCustom=n,this.rL()),this.glt(e.Dp.docPropsCustom)},v.prototype.getAllDocPropsProps=function(){var t,n,e,n=this.Vv,e;if(null==(t=n.Dp)?void 0:t.docPropsCustom)return this.glt(n.Dp.docPropsCustom,!0)},v.prototype.get=function(n){var t,e,t,t,e,t=null==(t=this.Vv.Dp)?void 0:t.docPropsCustom;if(t)return(t=t.find(function(t){return t.name===n}))&&this.Dht(t)},v.prototype.add=function(n,t,e){var i,r,o,a,o,u,s,c,f,l,r,i;if(null!=n&&""!==n&&null!=t){if(u=null==(o=null==(o=(a=this.Vv).Dp)?void 0:o.docPropsCustom)?void 0:o.find(function(t){return t.name===n})){if(e){if(!(s=this.wdt(a,t)))return;c=s.nameInfo,f=s.linkTarget,r="number"==typeof(l=this.Mdt(s.nameInfo))?this.HVe(l):l,u.linkTarget=f,u.propertyItemChildElement=((i={})[this.Bdt(l)]=r+"",i),this.FN["".concat(c.getRow(),",").concat(c.getColumn())]=f}else u.propertyItemChildElement=((r={})[this.Bdt(t)]=t+"",r);this.remove(n)}else if(i=o?o.reduce(function(t,n){return Math.max(t,parseInt(n.pid,10))},0):1,e){if(!(s=this.wdt(a,t)))return;c=s.nameInfo,f=s.linkTarget,l=this.Mdt(c),u=this.Wgt({name:n,value:l,linkTarget:f},i+1),this.FN["".concat(c.getRow(),",").concat(c.getColumn())]=u.linkTarget}else u=this.Wgt({name:n,value:t},i+1);a.Dp||(a.Dp={docPropsCustom:[]}),a.Dp.docPropsCustom||(a.Dp.docPropsCustom=[]),a.Dp.docPropsCustom.push(u)}},v.prototype.remove=function(n){var t,e,i,t,r,e;this.get(n)&&(t=null==(t=(i=this.Vv).Dp)?void 0:t.docPropsCustom)&&0<=(r=t.findIndex(function(t){return t.name===n}))&&t.splice(r,1)},v.prototype.clear=function(){var t,n,n;null!=(t=this.Vv.Dp)&&delete t.docPropsCustom},v.prototype.Bdt=function(t){var n="";switch(typeof t){case"string":n=s.text;break;case"number":n=Number.isInteger(t)&&0<=t&&t<=f?s.int:s.float;break;case"boolean":n=s.boolean;break;case"object":n=t instanceof Date?s.date:s.text;break;default:n=s.text}return"vt:".concat(n)},v.prototype.BN=function(t,e){var i,r,i=this;return void 0===e&&(e=2),t?(r=[],t.forEach(function(t,n){r.push(i.Wgt(t,e+n))}),r):[]},v.prototype.Wgt=function(t,n){var t,n,e,i,t,n={fmtid:a,pid:n+"",name:d(t.name),propertyItemChildElement:{}};return t.linkTarget&&(n.linkTarget=t.linkTarget),e=this.Bdt(t.value),i=d(t.value?t.value+"":""),e.split(":")[1]===s.date?((t=t.value.toISOString().split("."))[t.length-1].endsWith("Z")&&(t[t.length-1]="Z"),i=t.join("")):e.split(":")[1]===s.int&&(i=this.YVe(parseInt(i,10))+""),n.propertyItemChildElement=((t={})[e]=i,t),n},v.prototype.glt=function(t,n){var e,i,e=this;return t?(i=[],t.forEach(function(t){i.push(e.Dht(t,n))}),i):[]},v.prototype.Dht=function(t,n){var e,i,r,o,a,u,i,i,i,i,r={name:h(t.name)};if(t.linkTarget)r.linkTarget=t.linkTarget,o=Object.keys(t.propertyItemChildElement).find(function(t){return t.startsWith("vt:")}),u=t.propertyItemChildElement[o],i=this.Vv,(i=this.wdt(i,t.linkTarget))?(r.value=this.Mdt(i.nameInfo),u!==(i="number"==typeof r.value?this.HVe(r.value):r.value)&&((i=i)instanceof Date&&(i=i.toISOString()),t.propertyItemChildElement=((e={})[this.Bdt(r.value)]=i+"",e))):r.value=u;else switch(o=(i=Object.entries(t.propertyItemChildElement)[0])[0],a=i[1],o.split(":")[1]){case s.int:r.value=this.HVe(parseInt(a,10));break;case s.float:r.value=parseFloat(a);break;case s.boolean:r.value=Boolean(a);break;case s.date:r.value=new Date(a);break;default:s.text;r.value=h(a)}return n&&(r.type=o&&c[o.split(":")[1]],r.type||(r.type="string")),r},v.prototype.Mdt=function(t){var t,t,n,n,e,i,t,t=t.getExpression(),n=this.Vv;return t.type===r.ExpressionType.error?"":(n=t.value||(t.source?n.getCalcService().evaluateExpression(t.source,t,{}):n.getCalcService().evaluateExpression(n.getCalcService().getGlobalSourceModel().getSource(),t,{})),o(n)&&(e=t.row,i=t.column,n=(t=null==(t=t.source)?void 0:t.Mf)&&t.getValue(e,i)),n)},v.prototype.wdt=function(t,n){var e,i,r,o,a,u,s,c,f,r,e=t.getCustomName(n),i=n;if(!e)if(1===(r=n.split("!")).length){for(a=0,u=o=t.sheets;a>0:t},v.prototype.HVe=function(t){return t<0?t>>>0:t},n.CustomDocPropsManager=v,e.Y8.ch("customDocProps",{setValue:function(t){var n,e,i,t,r,e=t.row,i=t.col,t=t.value,r=this.Mf.getParent();null!=(n=null==r?void 0:r.docProps)&&n.customDocPropsManager&&r.docProps.customDocPropsManager.vIt(e,i,t)}})},"./dist/core/workbook/customThemeManager.js":function(t,n){"use strict";var e,i;function r(t,n){this.Vv=t,this.tkt=[],this.jkt=n.create,this.Ekt=n.buildIn,this.OHe=n.prefixName}e=this&&this.__spreadArray||function(t,n,e){if(e||2===arguments.length)for(var i=0,r=n.length,o;it.dm():t.lm+2*t.M2e[t.hm]>t.dm()},v.prototype.dm=function(){var t,n,e,t,n=this,e=n.im(),t=null==(t=(0,m.jf)(n.Vv))?void 0:t.options.rightToLeft;return e?t?n.ot().width-n.Wsn()-n.em()-n.Qv():n.ot().width-n.rm()-n.Jv()-n.Qv():n.ot().height-n.Yv()},v.prototype.vm=function(){return 6},v.prototype.mm=function(){return[s,c]},v.prototype.gm=function(){return this.tm()},v.prototype.pm=function(t,n){var e,i,e=this;t.save(),t.beginPath(),i=m.I.He(0,"gc-tabStripBackground").backgroundColor,e.bm=u(i),t.fillStyle=i,t.fillRect(n.x,n.y,n.width,n.height),t.restore()},v.prototype.ym=function(t,n){var e,i,i,r,o,a,u,s,e,i=this.Vv,i=i&&i.options.tabStripPosition,r=m.I.He(0,"gc-tabStripBackground").borderTopColor;t.save(),t.beginPath(),t.strokeStyle=r,i===b.TabStripPosition.bottom?(o=n.x,a=n.y,u=n.x+n.width,s=n.y+.5):i===b.TabStripPosition.top?(o=n.x,a=n.height-.5,u=n.x+n.width,s=n.y+n.height-.5):i===b.TabStripPosition.left?(o=n.x+n.width-.5,a=n.y,u=n.x+n.width-.5,s=n.y+n.height):i===b.TabStripPosition.right&&(o=n.x+.5,a=n.y,u=n.x+.5,s=n.y+n.height),t.moveTo(o,a),t.lineTo(u,s),t.stroke(),t.restore()},v.prototype.wm=function(t,n){var e=this;e.pm(t,n),e.ym(t,n)},v.prototype.Mm=function(t,n,e){var i,r,o,a,u,i,s,c,f,e,l,h,d,u,i,d,i,c,r=this,o,a=r.Vv.options.newTabVisible,u=r.im(),i=null==(i=(0,m.jf)(r.Vv))?void 0:i.options.rightToLeft,s=r.tm(),c=r.Xv(),f=r.jv,e=e,l=0,h=f;u?(u=r.Qv(),i?((e-=u)<(i=n.x+r.rm()+r.Jv())&&(c<(d=e=i)&&(e=(d=c)-f),r.Cm(t,d,0,u,n.height)),e-=r.Jv()):(e+=u,r.nm()&&(s-=r.em()),(i=n.x+n.width-r.rm()-r.Jv())t.dm():t.lm+2*t.M2e[t.hm]>t.dm()},l.prototype.dm=function(){var t,n,e,t,n=this,e=n.im(),t=null==(t=(0,S.jf)(n.Vv))?void 0:t.options.rightToLeft;return e?t?n.ot().width-n.Wsn()-n.em():n.ot().width-n.rm():n.ot().height-n.Yv()},l.prototype.vm=function(){var t;return this.im()?1:4},l.prototype.mm=function(){return[a]},l.prototype.gm=function(){var t,n,e,t=this,n=t.im(),e=t.tm();return e=n&&(e+=t.ot().height,t.Vv.options.newTabVisible)?(e+=t.Jv())+t._v:e},l.prototype.wm=function(t,n){var e,i,r,i,o,a,u,s;if(t.save(),t.beginPath(),e=t.createLinearGradient(n.x,n.y,n.width,n.height),r=(i=S.I.He(0,"gc-tabStripBackground"))&&i.backgroundImage,i=i&&i.backgroundColor,r&&-1!==r.indexOf(k))for(a=0,u=(o=x(r)).length;at)e.xg(r);else{if(!o[o.length-1]||!(o[o.length-1].indexa.x&&tv.moreTabPos+v.secondMoreTabWidth||0===v.moreTabPos))return{type:G,element:O,index:C.index,position:C.position}}else for(h=i.om;hv.moreTabPos&&0=n?(i.options.tabStripRatio=n,e.Lg=r):e.Lg=t.pageX,i.Xg();else if(e.Qg)e.qg(t.pageX,t.pageY),e.$g(t);else{if(e.Nm=-1,e.Tm=-1,c=(0,T.GC$)(e.Dg()).offset(),n=t.pageX-c.left,r=t.pageY-c.top,t=(i=e.hitTest(n,r)).element,e.Vv&&e.Vv.options.enableAccessibility&&(c=e.t2(i),e.Vv.n2(c)),""===t)return o.cursor=a,e.repaint(),!1;t===_?o.cursor=u:(o.cursor=a,0<=F.indexOf(t)?e.Nm=i.index:t===O?e.Tm=i.index:t===E?e.Tm=-2:t===L&&(e.Tm=-3)),e.repaint()}return!1},l.prototype.t2=function(t){var n,e,i,r,t,n=$(),e="",i=t.element;return i===_?e=n.ARIA_Resize:0<=F.indexOf(i)?e=(r={first:n.ARIA_First,prevArrow:n.ARIA_PreviousArrow,nextArrow:n.ARIA_NextArrow,last:n.ARIA_Last,prevButton:n.ARIA_PreviousButton,nextButton:n.ARIA_NextButton})[i]||"":i===O?(t=this.Vv.e2(t.index).name(),e=n.ARIA_SheetTab+" "+t.replace(/([0-9]+)/," $1 ")):i===E?e=n.ARIA_NewSheet:i===R&&(e=n.ARIA_Blank),e},l.prototype.bg=function(t){var n,t,t,n=this,t={e:t,r:N};return l.et(n,"preProcessMouseUp",t),p(t=t.r)?(n.Bg&&(n.Bg=!1,n.Vv.Xg()),n.i2(),n.Qg&&(n.Qg=!1,n.r2.remove(),n.o2(),n.dg.hide()),n.Wg=N,n.a2(),n.u2(),!n.Yg||(n.Yg=!1)):t},l.prototype.yg=function(t){var n,t,t,e,i,n=this,t={e:t,r:N};return l.et(n,"preProcessMouseOut",t),p(t=t.r)?(n.a2(),e=n.Nm,n.Nm=-1,i=n.Tm,n.Tm=-1,n.Nm===e&&n.Tm===i||n.repaint(),!1):t},l.prototype.Fg=function(){var n=this;n.s2||((0,T.GC$)(a).bind(V,function(t){n.pg(t)}).bind(Y,function(t){n.bg(t)}),n.c2(!0),n.s2=!0)},l.prototype.c2=function(t){var n,e,n,e=this.Vv.getActiveSheet();e&&(e.f2=t)},l.prototype.u2=function(){var t;this.s2&&((this.s2=!1,T.GC$)(a).unbind(V).unbind(Y),t=this.Vv.getActiveSheet())&&delete t.f2},l.prototype.Pg=function(t,n,e){var i,r,i,o,a,r=this,i=null==(i=(0,x.jf)(r.Vv))?void 0:i.options.rightToLeft;r.a2(),(o=r.Zm()).length<=0||(a=200,0===(t%=4)?i?r.d2(o):r.l2(o):1===t?(n||(r.h2=b.setTimeout(function(){r.Pg(1)},200)),i&&!e?r.Ng(o):r.xg(o)):2===t?(n||(r.h2=b.setTimeout(function(){r.Pg(2)},200)),i&&!e?r.xg(o):r.Ng(o)):3===t&&(i?r.l2(o):r.d2(o)))},l.prototype.Gg=function(t,n,e){var i,r,o,r,o,i=this,r=i.Vv,o=r.v2,r=r.e2(t),o=o&&o.sheetsState;o&&0===o[r.name()]?(i.ug!==N&&clearTimeout(i.ug),i.ug=window.setTimeout(function(){i.m2(t,n,e),i.c2(!0),i.ug=N,i.Vg()})):i.m2(t,n,e)},l.prototype.m2=function(t,n,e){var i,r,n,o,n,i=this,r=i.Vv;i.hm=t,i.lm=n,r.suspendPaint(),n=r.getActiveSheet(),(o=r.e2(t))&&o.isEditing()&&o!==n&&(n=n&&n.il&&n.il.rl,!o.ol(void 0,void 0,n,void 0,!1))||(nt(r,o,t),i.g2(t,e),r.resumePaint(),i.repaint())},l.prototype.p2=function(t,n,e,i,r,o){var e={oldValue:e,newValue:i,sheetName:r,propertyName:"isSelected",cancel:!1,sheetIndex:o,sheetPosition:t.getSheetPosition(r)};t.ki(x.Events.SheetChanging,e),e.cancel||(n.b2(i),t&&t.w2&&t.w2.repaint(),delete e.cancel,t.ki(x.Events.SheetChanged,e))},l.prototype.Hg=function(t){var n,e,i,r,r,o,a,r,u,n=this,e=n.Vv,i=n.im(),r=e.getActiveSheet();if((!n.C2||n.C2(r))&&(nt(e,N,N),r=e.qv(),o=e.getSheetCount(),a=e.S2(e.T2(o)),r.forEach(function(t){t.b2(!1,!0)}),u={sheetName:r=a.name(),propertyName:"insertSheet",cancel:!1,sheetIndex:o,sheetPosition:e.getSheetPosition(r)},n.p2(e,a,!1,!0,r,o),e.ki(x.Events.SheetChanging,u),!u.cancel)){for(e.A2(o,1,a),e.ki(x.Events.SheetChanged,{sheetName:a.name(),propertyName:"insertSheet",sheetIndex:o,sheetPosition:e.getSheetPosition(a.name())}),n.hm=o,n.lm=t,e.I2(e.qv().length-1,1,!1,!0);n.hm>n.om&&(n.fm()||n.ome.dm():e.lm+e.M2e[e.hm]>=e.dm(),e.hm>e.om&&c&&-1!==n&&(e.om=n)):f&&r.forEach(function(t){var n,e,n=t.name(),e;i.getSheetPosition(n)!==i.ep()&&t.b2()&&t.visible()===A.SheetTabVisible.visible&&t.b2(!1,!0)}),e.hmi);u++)e.commandManager().execute({cmd:"moveSheet",sheetName:a[u].name(),targetIndex:i})}else t=null==(t=(s=e.e2(r)).options)?void 0:t.rightToLeft,-1!==i&&-1!==r&&r!==i&&(r!==i-1&&!t||t)&&n.dg.isVisible()&&(rt[0]&&-1!==(t=n.Vm(n.om))&&n.Vv.startSheetIndex(t)},l.prototype.Ng=function(t){var n,e;0=i.x+i.width)return;if(n.y>=i.y+i.height)return;if(n.x+n.width>i.width&&(n.width=i.width-n.x,n.width<=0))return;if(n.y+n.height>i.height&&(n.height=i.height-n.y,n.height<=0))return;if(n.width<=0||n.height<=0)return}if((o=e.buffer)&&o.width===r.width&&o.height===r.height&&(o||o.width===i.width&&o.height===i.height)||(o&&(x.Bf.nh(e.Vv,o),e.TCe()),e.buffer=o=I(J),x.Bf.Wl(o,e.Vv),x.Bf.$l(o,i.width,i.height)),!(i.width<=0||i.height<=0||n&&(n.width<=0||n.height<=0))){(o=e.buffer.getContext(D)).clearRect(0,0,i.width,i.height),x.Lf.Yl(o,-i.x,-i.y),e.Z2(o,n),x.Lf.Yl(o,i.x,i.y),s=a=0<=i.x?0:-i.x,c=u=0<=i.y?0:-i.y,n&&(s=i.x+n.x,c=i.y+n.y,i=new x.Rect(s,c,n.width,n.height)),a=0<=i.x?i.x:0,u=0<=i.y?i.y:0,h=N,d=x.Bf.Kl(r),v=x.Bf.Jl(r),r&&1!==d&&(s*=d,c*=v,i.x*=d,i.y*=v,i.width*=d,i.height*=v);try{l=r?n?(f=w(i.width-s,0),w(i.height-c,0)):(f=y(i.width-s,w(r.width-i.x,3)),y(i.height-c,w(r.height-i.y,3))):(s=n.x,c=n.y,f=n.width,n.height),r?(x.Lf.Vl(t,1,1),t.clearRect(a,u,f,l),t.drawImage(e.buffer,s,c,f,l,a,u,f,l),x.Lf.Vl(t,d,v)):h=(o=e.buffer.getContext(D)).getImageData(s,c,f,l)}catch(t){return}!r&&h&&0u.x+u.width)break}else if(c>u.y+u.height)break;s.push({index:h,position:c,width:f,height:l,text:o[h].name(),visible:d,style:t&&t[o[h].name()]}),d===A.SheetTabVisible.visible&&(c+=a?f+i._v:l)}return{tabsInfo:s,newTabStartPosition:c}},l.prototype.U2e=function(t){var n,e,i,n,e=A.VisualState.normal,i;return 2007U(a)){if(k=N=void 0,N=(j=t._y(1))&&0v+g;)k=j[D-=1];k&&k.row>n&&(c=!0,M=(h||d).x,C=N.y+U(e),A&&t.FCn(N.row)&&(C-=t.PCn(N.row)),y=k.y+k.height-C-l,S.Ey(M,C,w,y,M,v),i.colHeaderVisible||(t.invalidateLayout(),S.D1(T,new L.Rect(M,0,w,f+1))),t.invalidateLayout(),I=new L.Rect(M,v+y,w,(N=x?g:g+b+m)-y),S.D1(T,I,void 0,r.cAn(t,I)),S.Ey(d.Py,d.Cy,d.hL,d.A6,d.Py,d.Cy,!0),S.jy(T,new L.Rect(M,v-2,w,2+(N-=x?0:m))),this.xb(t,M,w))}}else{for(_=0,O=n;OU(a)){if(N=I=void 0,I=(k=t.Yy(1))&&0g+m);)N=k[j-=1];N&&N.col>n&&(s=!0,C=(d||v).y,l?(M=N.x,S=I.x+I.width-U(e)-M,D=0U(r)&&(i=r)):eU(r)&&(i=r)):e=u&&a)i._2=a.Vm(u);else{for(h=void 0,h=Math.max(0,i._2);h=u?i.startSheetIndex(a.Vm(u)):a.om<0?i.startSheetIndex(a.N2(-1)):i.Cg())},k.prototype.g3=function(t,n){var e,i,r,o,a,u,s,c,f,l,h,c,s,f,e=this,i=e.mp,r=e.Lp,o=e.w2,a=i.length;if(isNaN(t)||t<0||a<=t)throw new Error(I().Exp_IndexOutOfRange);if(u=N(e),s=e.jb,c=t<=e.jb||t===a-1,f=e.getActiveSheetTab(),t=a)e.jb=o.Vm(a);else{for(h=void 0,h=Math.max(0,e.jb);h=a?e.startSheetIndex(o.Vm(a)):o.om<0?e.startSheetIndex(o.N2(-1)):e.Cg())},k.prototype.clearSheets=function(){for(var t,n,e,i,r,o,a,t=this,n=t.sheets,e=t.Lp,i=t.w2,r=0,o=n;r=n.m4()&&(t=((n.y4=t)-n.m4())*n.k4,n.scrollTo(t,!0)),n)},d.prototype.w4=function(){var n,t,e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,y,M,C,S,T,x,A,I;function N(){n.N4=q("div"),n.D4=(0,O.GC$)(n.N4),n.D4.css([U,B,G,mt,pt,z,V],[J,0,0,"hidden","none",0,0]).addClass($+" "+tt+" "+u+" "),n.h4&&n.D4.css(dt,B)}function k(t){n._4=O.GC$.En("div",[U,Y,bt,z,V,W],[Q,K,"1px",0,0,X],nt+" "+w,t),n.E4=O.GC$.En("span",[Y,H,z,V],["block","none",0,0],g+" "+y,n._4)}function j(t){n.j4=O.GC$.En("div",[U,Y,W,H,z,V],[Q,K,X,"none",0,0],et+" "+et,t)}function D(t){n.O4=O.GC$.En("div",[],[],ht+" "+M+" "+it,t),n.R4=O.GC$.En("span",[Y,H,z,V],["block","none",0,0],p+" "+C,n.O4)}function _(t){n.B4=O.GC$.En("div",[U,Y,bt,z,V,W],[Q,K,"1px",0,0,X],nt+" "+S,t),n.L4=O.GC$.En("span",[Y,H,z,V],["block","none",0,0],m+" "+T,n.B4)}e=t=0,i=!1,a=(o=(r=(n=this).o4)===E.ScrollbarAppearance.mobile)?0:2,u="ui-widget ui-corner-all",s=n.ZC(),c=n.YC(),h=f=o?0:s,d=B,v=P,g=at,m=ut,p=lt,b=gt,w="ui-button ui-state-default ui-corner-bl btn btn-default",y="ui-icon ui-icon-triangle-1-w",M="gc-scroll-handle ui-button ui-state-default ui-corner-all ui-draggable btn btn-default",C="ui-icon ui-icon-grip-solid-vertical",S="ui-button ui-state-default ui-corner-br btn btn-default",T="ui-icon ui-icon-triangle-1-e",n.F4=l=c-2*f,n.h4||(l=f=o?0:c,d=G,v=vt,g=rt,m=ot,p=ft,b=wt,w="ui-button ui-state-default ui-corner-tr btn btn-default",y="ui-icon ui-icon-triangle-1-n",M="gc-scroll-handle ui-button ui-state-default ui-corner-all ui-draggable btn btn-default",C="ui-icon ui-icon-grip-solid-horizontal",S="ui-button ui-state-default ui-corner-br btn btn-default",T="ui-icon ui-icon-triangle-1-s",n.F4=h=s-2*f),x=n.F4,A=n.v4()-n.m4(),n.P4=n.d4()*x/(A+n.d4()),n.P4>x&&(n.P4=x),n.P4<10&&(n.P4=10),I=n.P4,n.k4=0==A?1:(x-I)/A,e=n.h4?(t=I,f):(t=f,I),n.D4||(i=!0,N()),o?n.D4.addClass(st):n.D4.removeClass(st),n._4||k(n.D4),n.j4||j(n.D4),n.O4?n.O4.removeAttr("style"):D(n.j4),o?n.O4.css(U,Q).addClass(ct):n.O4.css([U,bt,z,V,W],[Q,"1px",0,0,X]).removeClass(ct),n.B4||_(n.D4),o?(yt(n.D4,H),yt(n.D4,V),n.h4?(n.D4.css([L,F],[c,Z]),n.j4.css([d,L,F],[f,Z,Z]),n.O4.css([d,L,F],[n.b4,R(t-a),Z])):(n.D4.css([L,F,V],[Z,Z,0]),n.j4.css([d,L,F],[f,Z,Z]),n.O4.css([d,L,F],[n.b4,Z,R(e-a)])),n.R4.remove(),n._4.remove(),n.B4.remove()):(n.D4.css([L,F,H],[c,s,"none"]),n.j4.css([d,L,F],[f,l,h]),n.O4.css([d,L,F],[n.b4,R(t-a),R(e-a)]),n._4.css([d,L,F],[0,f-a,f-a]),n.E4.css([L,F],[Z,Z]),n.B4.css([v,L,F],[0,f-a,f-a]),n.L4.css([L,F],[Z,Z]),n.R4.css([L,F,b],[f-a,f-a,Math.floor((n.P4-f)/2)]),n.O4.append(n.R4),n.D4.append(n._4),n.D4.append(n.B4)),i&&n.G4()},d.prototype.G4=function(){var r=this;function t(t,n){t.bind(S,function(t){r.U4(t,n)}).bind(o,function(t){r.H4(t,n)}).bind(x,function(t){r.z4(t,n)}).bind(A,function(t){r.V4(t,n)})}t(r._4,!0),t(r.B4,!1),r.O4.bind(S,function(t){r.Y4(t)}).bind(T,function(t){r.Z4(t)}).bind(o,function(t){r.W4(t)}).bind(x,function(t){r.K4(t)}).bind(A,function(t){r.J4(t)}),r.j4.bind(S,function(t){var n,e,i,n;w&&w.mozilla&&(e=(new Date).valueOf(),i=r.X4,r.X4=e,i)&&e-i<100||r.q4(t)}).bind(o,function(t){r.tS(t)}),r.nS=function(t){r.eS(t)},r.D4.bind(u,r.nS),r.D4.bind(I,r.nS),d.et(r,"initEvents",r.N4)},d.prototype.Jw=function(t){this.o4=t},d.prototype.dispose=function(){var t=this;function n(t){t&&t.unbind(r)}n(t.B4),n(t.O4),n(t._4),n(t.j4),t.D4&&(t.nS&&(t.D4.unbind(u,t.nS),t.D4.unbind(I,t.nS)),d.et(t,"dispose",t.N4),t.D4.unbind(r).remove())},d.prototype.Fg=function(){var n=this;n.p4||((0,O.GC$)(a).bind(T,function(t){n.Z4(t)}).bind(o,function(t){n.W4(t)}),n.p4=!0)},d.prototype.u2=function(){this.p4&&(this.p4=!1,O.GC$)(a).unbind(T).unbind(o)},d.prototype.U4=function(t,n){var e,i,r,o,a,e=0,i=this,r=!0,o=i.Gxn;i.u4=!0,null===i.s4&&(n?(i._4.addClass(s),e=o?i.iS():0-i.iS(),i.rS=o?E.Zi.smallIncrement:E.Zi.smallDecrement):(i.B4.addClass(s),e=o?0-i.iS():i.iS(),i.rS=o?E.Zi.smallDecrement:E.Zi.smallIncrement),(a=function(){i.scrollTo(i.b4+e*i.k4,!1),i.s4=y.setTimeout(a,r?i.f4:i.l4),r=!1})(),h(t))},d.prototype.H4=function(t,n){var e,i,e=this,i;(n?e._4:e.B4).removeClass(s),e.oS(),h(t)},d.prototype.z4=function(t,n){var e,i,e=this,i;(n?e._4:e.B4).addClass("gc-scroll-arrow-hover ui-state-hover"),h(t)},d.prototype.V4=function(t,n){var e,i,e=this,i;(n?e._4:e.B4).removeClass("gc-scroll-arrow-hover ui-state-hover "+s),e.oS(),h(t)},d.prototype.Y4=function(t){var n,e,i,r,o,a,u,n=this;0===t.button&&(n.a4=!0,n._oldPosition={x:t.pageX,y:t.pageY},n.qy(E.ScrollbarState.show),n.Fg(),n.D4.addClass(C),n.O4.addClass(s),e=n.O4.offset(),i=n.O4.outerWidth(!0),r=n.O4.outerHeight(!0),o=n.j4.offset(),a=n.j4.outerWidth(!0),u=n.j4.outerHeight(!0),n.aS={isBeyondEdge:!1,startEdgePosition:{x:o.left+t.pageX-e.left,y:o.top+t.pageY-e.top},endEdgePosition:{x:o.left+a-(i-t.pageX+e.left),y:o.top+u-(r-t.pageY+e.top)}}),h(t)},d.prototype.Z4=function(t){var n=this;n.a4&&(n.qy(E.ScrollbarState.active),n.uS={x:t.pageX,y:t.pageY},n.sS(),n._oldPosition=n.uS,(0,O.GC$)(a.body).attr("unselectable","on").addClass(ht)),h(t)},d.prototype.W4=function(t){var n,e,i,r,o,o,n=this;n.a4=!1,n.rS=E.Zi.thumbPosition,n.aS=null,n.D4.trigger(b,{newValue:n.y4,oldValue:n.y4,scrollOrientation:n.h4?l.horizontalScroll:l.verticalScroll,scrollEventType:n.rS}),i=((e=n.y4)-n.m4())*n.k4,r=n.Gxn?P:B,o=(o=t.target.classList)&&o.contains(ct),n.h4||(r=G),o?n.qy(E.ScrollbarState.hide):n.qy(E.ScrollbarState.inactive),n.b4=i,n.O4.css(r,R(i)),n.h4&&n.O4.css(n.Gxn?B:P,"auto"),n.u2(),(0,O.GC$)(a.body).removeClass(ht),(0,O.GC$)(a.body).attr("unselectable")&&(0,O.GC$)(a.body).removeAttr("unselectable"),n.O4.removeClass(s),n.D4.removeClass(C),n.rS=6,n.D4.trigger(b,{newValue:n.y4,oldValue:n.y4,scrollOrientation:n.h4?l.horizontalScroll:l.verticalScroll,scrollEventType:n.rS}),h(t)},d.prototype.K4=function(t){this.O4.addClass("gc-scrollbar-stateHover ui-state-hover"),h(t)},d.prototype.J4=function(t){this.O4.removeClass("gc-scrollbar-stateHover ui-state-hover"),h(t)},d.prototype.eS=function(t){var n,e,i,e,i,n=this,e=n.Gxn;f(t.wheelDelta)&&f(t.detail)&&(t.wheelDelta=t.originalEvent.wheelDelta,t.detail=t.originalEvent.detail),i=t.detail||t.wheelDelta/-40,e&&(i*=-1),e=i/3*n.iS()*n.k4,n.rS=0<=e?1:0,n.scrollTo(n.b4+e,!1),n.rS=6,i={newValue:n.y4,oldValue:n.y4,scrollOrientation:n.h4?l.horizontalScroll:l.verticalScroll,scrollEventType:n.rS},n.D4.trigger(b,i),h(t)},d.prototype.q4=function(t){var e,i,r,o,a,u,s,c,f,e=this,i=!0,r=t.pageX,o=t.pageY,a=0,u=e.j4.offset(),s=e.cS(),c=e.Gxn;null===e.c4&&(a=e.h4?r-u.left-(c?e.F4-e.b4-e.P4:e.b4):o-u.top-e.b4,(f=function(){var t=0,n=c?e.F4-e.b4-e.P4:e.b4,t;if((t=e.h4?r-u.left-n:o-u.top-n)*a<0||0<=t&&te.v4()&&(n.newValue=e.v4()),r=n.newValue,c=n.newValueWithOffset),f(c)&&(c=r),e.y4=r,5!==e.rS&&(t=(c-e.m4())*e.k4),e.b4=t,s||(e.O4.css(i,R(t)),e.h4&&e.O4.css(e.Gxn?B:P,"auto"))},d.prototype.hitTest=function(t,n){var e,i,r,o,a,u,s,c,f,u,o,f,a,e=this,i=0,r=0,o=e.O4.outerWidth(),a=e._4.outerWidth(),u=e.j4.outerWidth(),s=e.O4.offset(),c=(0,O.GC$)(e.oy()).offset(),f=s.left-c.left-18;return e.h4?t<0+u+a&&0+ar.leftWidth&&(o=t.leftWidth-i.left-e.innerWidth(),a.I0=nr.topHeight&&(o=t.topHeight-i.top-e.innerHeight(),a.A0=n>t/4).toString(16)})),n=32===t?n.split("-").join(""):n}},"./dist/core/worksheet/clipboardhelper.js":function(t,n,e){"use strict";var B,i,h,d,A,P,c,G,v,U,H,r,I,o;function a(t){return t&&t.options.allowCopyPasteExcelStyle}function g(t,n){var e,i;if(G.msie){for(e=[],i=0;i"===o.substring(o.length-4)?n+="\n"+r:n+=r;return n}function f(t,n,e){var i,r,i=-1;if(e)for(r=i=0;r]+>/g,G=B.mt.Tt,v=i.Common.lt.ht,U=i.Common.Uf.OS,H=null,s.prototype.add=function(t){var n=this.Nf,e=n.indexOf(t);return-1===e&&(n.push(t),e=n.length-1),e},s.prototype.toString=function(t){var t=this.Nf[t];return v(t)?"":this.Zc+":"+t},r=s,n.Boe=r,w.prototype.Loe=function(e){var i=this.joe;return this.Doe.map(function(t,n){return i[n].add(e[t])}).join("_")},w.prototype.add=function(t){var n=this.Nf,t=this.Loe(t);return n[t]||(n[t]="sjs"+this.Lre,this.Lre++),n[t]},w.prototype.toString=function(){var t,n,e,i,r,o,a,u,s,t=this.joe,n=[],e=this.Nf;for(i in e)if(e.hasOwnProperty(i)){for(r=i.split("_"),o=[],a=0;a\S+\r\n\r\n\r\n\r\n\r\n"),r=t.length,e+=n?'':'
',o=0;o",a=0;a"}return e+="
",i&&(e+="\r\n\r\n"),e},z.n5=function(t){return t&&0<=t.indexOf('gc-sjs-clipboard="true"')},z.vI=function(t,n,e,i,r,o,a){var u,s,c,i,r,f,l,l,l,o,l,u,o,s,n,l,u,u,u,u,c,u,u=z.convertVAlign,s=z.convertHAlign,c=z.convertLineBorder,i=i,r=r,f={},l=t.backColor;return l&&(f["background-color"]=l,r=i=!1),(l=t.foreColor)&&(f.color=l),(l=t.font)&&(o&&(l=l+", "+B.FallbackFontFamily),f.font=l.replace(/"/g,"'").replace(/([\.\d]+px)/,function(t){return(3*parseFloat(t.substring(0,t.length-2))/4).toFixed(2)+"pt"})),t.wordWrap?a?(f["word-wrap"]=["break-word"],f["white-space"]=["break-spaces"]):f["white-space"]="normal":f["white-space"]="nowrap",o=t.vAlign,v(o)||(f["vertical-align"]=u(o)),l=t.hAlign,v(l)||(u=s(l=a?B.mt.gt(l,n):l))&&(f["text-align"]=u),o="border-left",s="border-right",n="border-top",l="border-bottom",(u=t.borderLeft)&&(f[o]=c(u),r=!1),(u=t.borderRight)&&(f[s]=c(u),r=!1),(u=t.borderTop)&&(f[n]=c(u),i=!1),(u=t.borderBottom)&&(f[l]=c(u),i=!1),c="1px solid "+e,i&&(f[n]=c,f[l]=c),r&&(f[o]=c,f[s]=c),u=t.formatter,!a&&u&&(f["mso-number-format"]=b(u)),f},z.dge=function(t,n,e,i,r){var o,a,u,s,c,o=t.row===n&&t.col===e;if(i&&r){for(u=t.row;u"),k=(k=1==(1&j))||8==(8&j))&&(x+=""),(D=t?t.getText(M,T,o):"")?(" "!==D[0]&&" "!==D[D.length-1]||"number"!=typeof _||(D=D.trim()),"number"!=typeof _&&(D=P.j0(D).replace(f,l))):G.chrome?D="":G.safari&&(D=" "),x+=D=g?D:D.replace(/\n/g,'
'),s&&(k&&(x+="
"),A)&&(x+=""),C.push(x+="")}w.push(C)}return w},z.e5=function(t,n,e,i,r,o,a){var u,t,e,s,u="",t=f(t,e,r);return 0)/g,function(t,n,e,i){return"\n"!==i[e+t.length]?n+"\n":n}),i.innerHTML=g,m=i.innerText,0<=g.indexOf("',t.forEach(function(t,n){o+=h(t,r,r+(n+e))}),o+=""},e=0;e")},d="pasteOptions",v="operationOptions",g="skipBlanks",m="transpose",p="pasteLink",y=o.Ase,e(C,y),C.prototype.$c=function(t){this.Dn(),y.prototype.$c.call(this,t),this.q2e(),this.$2e()},C.prototype.rQ=function(t){this.submitCallback=t,this.$c()},C.prototype.npe=function(t,n){return this.Wc[0].querySelector('input[name="'.concat(t,'"][value="').concat(n,'"]'))},C.prototype.Dn=function(){this.Wc.html(this.ipe),this.npe(d,this.data.pasteOptions).checked=!0,this.X2e&&(this.npe(v,this.data.operationOptions).checked=!0)},C.prototype.$2e=function(){var t=this.Wc.width(),n=this.Wc.height(),e=this.Fc.width(),i=this.Fc.height();this.Wc.css(["position","left","top"],["absolute",(e-t)/2+"px",(i-n)/2+"px"])},Object.defineProperty(C.prototype,"ipe",{get:function(){return'\n
\n
\n '.concat(c().pasteSpecialOptionDialog.title,'\n \xd7\n
\n
\n
\n ').concat(c().pasteSpecialOptionDialog.paste,'\n
\n
\n
\n ').concat(M(f(),6,d),"\n
\n ").concat(this.X2e?'\n
\n '.concat(c().pasteSpecialOptionDialog.operation,'\n
\n
\n
\n ').concat(M(l(),3,v),"\n
\n "):"",'\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n \n
\n ")},enumerable:!1,configurable:!0}),C.prototype.submit=function(t){var t=t||this.data;this.submitCallback&&this.submitCallback(t),this.close()},C.prototype.rpe=function(t){var n,t,n,t=t.target.dataset.cmd;if(t)switch(t){case"close":this.close();break;case"submit":this.submit();break;case p:this.submit(r(r({},this.data),{pasteLink:!0}))}},C.prototype.ope=function(t){var t=t.target;t.name?(t.name===d&&t.checked&&(this.data.pasteOptions=+t.value),t.name===v&&t.checked&&(this.data.operationOptions=+t.value)):(t.id===g&&(this.data.skipBlanks=t.checked),t.id===m&&(this.data.transpose=t.checked)),this.ape()},C.prototype.q2e=function(){var n,t,e,i,r,n=this,t=function(t){n.rpe(t)},e=function(t){n.ope(t)},i=function(t){"Escape"!==t.key&&27!==t.keyCode||n.close(),"Enter"!==t.key&&13!==t.keyCode||n.submit()};this.Wc.bind("click",t),this.Wc.bind("change",e),document.addEventListener("keyup",i),r=this.bindMoveEvent(this.Wc[0].querySelector(".gc-sjs-paste-special-dialog-title")),this.wpt=function(){n.Wc.unbind("click",t),n.Wc.unbind("change",e),document.removeEventListener("keyup",i),r()}},C.prototype.close=function(){this.wpt&&this.wpt(),y.prototype.close.call(this)},C.prototype.ape=function(){var t,n,t,e,n;this.X2e&&(n=[(t=a.ClipboardPasteOptions).formatting,t.comments,t.validation],t=[t.all,t.noBorder],e=this.Wc[0].querySelectorAll("[name=".concat(v,"]")),n.includes(this.data.pasteOptions)?e.forEach(function(t){return t.disabled=!0}):e.forEach(function(t){return t.disabled=!1}),n=this.Wc[0].querySelector('[data-cmd="'.concat(p,'"]')),!t.includes(this.data.pasteOptions)||this.data.operationOptions!==a.PasteOperationOptions.none||this.data.skipBlanks||this.data.transpose?n.classList.add("disable"):n.classList.remove("disable"))},n.PasteSpecialDialog=C},"./dist/core/worksheet/style.js":function(L,t,n){"use strict";var a,o,u,s,b,c,r,i,n,f,w,l,y,M,h,d,n,v,g,m,p,C,S,T,e,F,B,P,G,U,H,z,V,x,A,I,N,k,k,k;function Y(t){var n,e,n={};return t&&t.option&&t.option.dataSource?(e=t.option.dataSource,t.option.dataSource=M,(n=w(t)).option.dataSource=e,t.option.dataSource=e):n=w(t),n}function j(t,n,e){this.color=t||"black",this.style=n||0,this.level=e}function Z(t){return!(!t||"object"!=typeof t||t.patternColor||t.stops)}function W(t){return(!t||!t.stops)&&t&&t.type?{type:E(r.PatternType,t.type,M),patternColor:t.patternColor,backgroundColor:t.backgroundColor}:t}function D(t){return t?new x(t.color,E(z,t.style,M)):M}function Q(t){var n,e,e,e;if(t){if(!(e=(n={checkbox:"5",combobox:"7",hyperlink:"8",radioButtonList:"11",checkboxList:"12",fileUpload:"19"})[t.type]))return ot(t,!0,void 0);if(e=c.ti[e])return(e=new e).Je(t),e}return t}function J(t){return t?{alignment:E(r.LabelAlignment,t.alignment,M),visibility:E(r.LabelVisibility,t.visibility,M),font:t.font,foreColor:t.foreColor,margin:t.margin}:M}function K(t){return t?{cornerFold:t.cornerFold,icons:t.icons&&0_(t)&&t.setRowCount(n+o),u.E5&&e+a>O(t)&&t.setColumnCount(e+a),f={},h=l=0;l=_(t))&&Gn("row",n,"-1",_(t)-1),(e<-1||e>=O(t))&&Gn("column",e,"-1",O(t)-1),I(i)||""===i||(-1===n&&(n=0),-1===e&&(e=0),(i=Wn(i,r,o,a,s,c))&&0=E(e)&&t.z5>=R(e))}function fe(t,n){var e,e,t,n;return!!t.endEdit()&&((e=t.rt).V5(),e.Y5(),T.hi.F1(k),e=!1,(t=t.parent)&&((n=n.call(t))&&n.focus?(n.focus(),e=!0):t.vC()),{ignoreCancelDefault:!e})}function f(t,n,e){var i=this;i.Mf=t,i.Z5=n,i.W5=e,i.Q5=[],i.K5=[],i.J5()}function le(n,t){var e,i,e=[];return"string"==typeof t?(i=(0,T._f)(n,t))&&e.push(i):Array.isArray(t)&&t.forEach(function(t){var t=(0,T._f)(n,t);t&&e.push(t)}),e}function he(t){return t instanceof P.Worksheet?t:t.Mf instanceof P.Worksheet?t.Mf:void 0}function de(t,n){I(t.Tb)&&(t.Tb=n.Tb,t.Ab=n.Ab)}function ve(t,n){var n=t.vw(n);-1!==n&&no.col)?D[tn]:D[lt]).execute(t,n)}},D[rn]={canUndo:!1,execute:function(t,n){var e,i,r,o,a,e=c(t,n),i=e.qA,r=e.getActiveColumnIndex();return e.F5=!0,o=e.sI(e.getActiveRowIndex(),r,!0,i),e.F5=!1,((a=!o||o.leadingCellRow>i||o.leadingCellRow===i&&rt&&(t=s.x),s.y>n)&&(n=s.y),o=o!==Y&&o!==Z?o:1){case 1:return new l(t,n,e,i,r,1,a,void 0,c);case 2:return new l(t,n,e,i,r,2,a,u,c);case 5:return new l(t,n,e,i,r,3,a,u,c);case 3:return new f(t,n,e,i,r,1,[3,1],a,void 0,c);case 9:return new f(t,n,e,i,r,1,[8,2,2,2],a,void 0,c);case 4:return new f(t,n,e,i,r,1,[2,2],a,void 0,c);case 11:return new f(t,n,e,i,r,1,[9,3,3,3,3,3],a,void 0,c);case 13:return new B(t,n,e,i,r,t!==e,[11,1,5,1],[10,2,4,2],a,c);case 10:return new f(t,n,e,i,r,2,[9,3,3,3],a,u,c);case 12:return new f(t,n,e,i,r,2,[9,3,3,3,3,3],a,u,c);case 8:return new f(t,n,e,i,r,2,[9,3],a,u,c);case 7:return new f(t,n,e,i,r,1,[1],a,void 0,c);case 6:return new P(t,n,e,i,r,a,c)}return Z}function A(){}function c(t,n,e,i,r){var o=this;o.Ux=!1,o.Hx=!1,o.Mf=t,o.nT=i,o.zx=n,o.Vx=e,o.JCe=new k.VisibleRowColCache(t),o.YAe=r}e=this&&this.__extends||(U=function(t,n){return(U=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}))(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}U(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),Object.defineProperty(t,"__esModule",{value:!0}),t.Yx=t.Zx=void 0,I=n("./dist/core/worksheet/style.js"),i=n("./dist/core/util/domUtil.js"),V=n("./dist/core/core.enum.js"),N=n("Common"),k=n("./dist/core/worksheet/helpers/visible-row-col-cache.js"),Y=void 0,Z=null,j=Math.sqrt,v=Math.pow,D=Math.min,W=Math.abs,Q=Math.tan,J=Math.ceil,K=Math.PI,O=i.GC$.inherit,o=i.GC$.isEmptyObject,X=N.Common.lt.ht,g=w=0,m=y=1,p=M=2,b=C=3,S=4,T=5,x=6,F=7,r.prototype.Wx=function(t){var n=this;0===t._orientation?this.needRightToLeft?(t.Kx&&(n._x1-=t.Kx),t.Jx&&(n._x2-=t.Jx)):(t.Kx&&(n._x2+=t.Kx),t.Jx&&(n._x1+=t.Jx)):(t.Kx&&(n._y2+=t.Kx),t.Jx&&(n._y1+=t.Jx))},r.prototype._e=function(t){var n=this._x||"#9eb6ce",e=this.Ex,i=t.lineWidth,r=t.strokeStyle;i===e&&r===n||(i!==e&&(t.lineWidth=e),r!==n&&(t.strokeStyle=n)),this.Xx(t)},r.prototype.Xx=function(t){var n,e,i,e,i,n=this,e=n._x1===n._x2,i=n._y1===n._y2;e&&i||(e||i?(t.beginPath(),n.qx(t),t.stroke()):(t.save(),e=Math.min(n._x1,n._x2),i=Math.min(n._y1,n._y2),t.rect(e,i,Math.abs(n._x2-n._x1),Math.abs(n._y2-n._y1)),t.clip(),t.beginPath(),n.qx(t),t.stroke(),t.beginPath(),t.restore()))},r.prototype.qx=function(t){var n=this;t.moveTo(n._x1,n._y1),t.lineTo(n._x2,n._y2)},e(nt,H=n=r),l=nt,e(a,z=n),a.prototype.qx=function(t){var n=this;a.Dn(t,n._x1,n._y1,n._x2,n._y2,n.Ox)},a.Dn=function(t,n,e,i,r,o){var a,u,s,c,f,l,h,d,a=j(v(i-n,2)+v(r-e,2)),s=(i-n)/a,c=(r-e)/a,f=0,l=0;for(o=o&&o.length?o:[4,4];fo+1&&v.c>a+1);d++);l||t.VN(u,c,t.AN,!0),h||t.VN(s,f,t.IN,!1)}},c.prototype.JN=function(){for(var t,n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,y,M,C,S,T,x,A,I,N,k,j,D,_,y,t=this,n=t.Mf,e=n.Ut,i=t.MN,r=t.CN,o=i.length,a=r.length,l={},h={},u=0;u=r.row+r.rowCount&&n+i>=r.col+r.colCount||r.col>n+i||r.col+r.colCount-1n+i-1||r.col+r.colCount-1r.row))return!0}function ct(t,n){return t.tables&&t.tables.Uue(n)}function vt(t,n,e,i,r){return t.tables&&t.tables.oSt(n,e,i,r)}function ft(t,n,e,i,r){var o,n,a,o=n.rowCount,n=n.colCount,a=!1;return r===nt.InsertShiftCell.right?(n=1,i===t.col&&(a=!0)):(o=1,e===t.row&&(a=!0)),(-1===t.row||-1===t.col)&&t.intersect(e,i,o,n)&&!t.equals(new et.Range(e,i,o,n))&&!a}function j(t){return(t&nt.CopyToOptions.style)<=0}function E(t,n){var e,i,r,t,o,a,u,n,s,e,o,i,a,e=t.row,i=t.col,r=t.row+t.rowCount,t=t.col+t.colCount,o=n.row,a=n.col,u=n.row+n.rowCount,n=n.col+n.colCount,s;return R(e,o)<=c(r,u)&&R(i,a)<=c(t,n)&&(e=R(e,o),o=R(i,a),i=c(r,u)-e,a=c(t,n)-o,new et.Range(e,o,i,a))}function B(n,t){var e=[];return t.forEach(function(t){var t=E(n,t);t&&e.push(t)}),e}function P(t,n){t&&y&&t.suspendCalcService(n)}function G(t,n){t&&y&&t.resumeCalcService(n)}function F(t,n){return n===nt.ClipboardPasteOptions.formatting&&t.options.protectionOptions.formatCells}function V(t,n,e,i,r){t.ki("shiftCellsDown",{row:i,col:r,changedRowCount:i-n,changedColCount:r-e,srcRow:n,srcColumn:e},!0)}function tt(t,n,e,i){var t,e,i,r,o,a,u;n&&e&&i!==it&&(e=n.Ky,i=n.iw,r=n.Sx,o=n.Tx,a={showHeader:n.showHeader(),showFooter:n.showFooter(),useFooterDropDownList:n.useFooterDropDownList(),showResizeHandle:n.showResizeHandle()},u=n.style(),t.tables._Qt(n.name(),e,i,r,o,null!=(t=u.name())?t:u,a,!0),n.L0())}function gt(t,n,e,i,r,o){for(var a,u,s,c,f,l,h,d,v,d,g,a=t.Ut.getSpans(),u=t.tables&&t.tables.U3,s=t.pivotTables&&t.pivotTables.all(),c=0;c=f.row+f.rowCount&&e+r>=f.col+f.colCount||f.row>n+i||f.row+f.rowCount-1n+i-1||f.row+f.rowCount-1=l.Ky+l.Sx&&e+r>=l.iw+l.Tx||l.Ky>n+i||l.Ky+l.Sx-1n+i-1||l.Ky+l.Sx-1=f.row+f.rowCount&&e+r>=f.col+f.colCount||f.col>e+r||f.col+f.colCount-1e+r-1||f.col+f.colCount-1=l.Ky+l.Sx&&e+r>=l.iw+l.Tx||l.iw>e+r||l.iw+l.Tx-1e+r-1||l.iw+l.Tx-1l.Ky))return 1;if(s)for(c=0;c=(l=o[f]).row&&u<=l.row+l.rowCount-1&&s>=l.col&&s<=l.col+l.colCount-1)return!0;for(h=0;h=(d=a.get(h)).Ky&&u<=d.Ky+d.Sx-1&&s>=d.iw&&s<=d.iw+d.Tx-1)return!0}return!1}function H(t,n){var t;return null!=(t=t.getSpan(n.row,n.col))&&t.equals(n)}function z(t,n){var e,i,r,o,a,u,s;if(t&&1<(e=t.length)){for(i=void 0,i=0;iC.iw&&j=C.Ky&&hC.Ky+T)return r.jT(1,rt().Exp_InsertCopiedCutCellsOnSpanTable),{returnFunc:!0};if(!x&&t&&N=C.Ky&&v<=C.Ky+T&&k===C.Sx&&(O=j),$=b?k:C.Sx}}if(o||(a!==I&&-1!==a||!(u<=N)||C&&!b&&!E)&&ot(O)||(f?(e.col+=e.colCount,e.col=r.O5(e.col-1),Y=r.lT(e.col,e.colCount),e.colCount+=Y):e.col=e.col+(ot(O)?e.colCount:O),F=!0),h=r.getColumnCount()-e.colCount,v=e.colCount,f&&(W=r.lT(u,e.colCount),h=m-(v=(D=e.colCount+W)+r.ox(m-1,D)),F)&&(e.col+=W),(H=lt(r,l,h,d,v))&&!U)return r.jT(1,rt().Exp_InsertCopiedCutCellsNoRange),{returnFunc:!0}}else if(J){if(M=void 0,h=u,v=w=j,_=!C||!A||x||ut(n,m)||j<=C.iw,f&&(w+=M=r.lT(u,w),v+=M),!_&&C&&y&&(j=e.row+e.rowCount||K&&-1===e.row)&&(R=!0),!C&&A&&ft(e,n,a,u,i))return r.jT(1,rt().Exp_InsertCopiedCutCellsOverlap),{returnFunc:!0};if(NC.iw&&C.iw+S>j&&e.intersect(a,u,r.getRowCount()-a,c))return r.jT(1,rt().Exp_InsertCopiedCutCellsOverlap),{returnFunc:!0};!_&&C&&0b.Ky&&b.showHeader(),o+uT+1&&e.moveTo(T+1,o,T+1,o+i.colCount,i.rowCount-T-1,e.getColumnCount()-o-i.colCount,nt.CopyToOptions.all,!0)):-1!==r||-1!==i.row||n?e.moveTo(r,o,r,o+u,a,e.getColumnCount()-o-u,nt.CopyToOptions.all,!0):(e.addColumns(o,u),e.deleteColumns(e.getColumnCount()-u,u));V(e,r,o,r,o+u),(A=(x=e.rowFilter())&&x.range)&&-1===r&&1A.col&&o<=A.col+A.colCount-1&&(A.colCount=A.colCount+i.colCount),h&&b&&(M||i.rowCount!==b.Sx&&!st(i,e.getRowCount())||(b.showFooter()||y?(b.insertColumns(o-b.iw,i.colCount),m=!0):b.K5t(new et.Range(b.Ky,b.iw,b.Sx,b.Tx+u))))}else o+u>e.getColumnCount()&&(l=f=!0);else l=f=!0;else if(t)if(e.mT(r+a,o,e.getRowCount()-r-a,u,!0))if(r+a=b.startRow()&&i.row<=b.endRow()?i.row+i.rowCount-1-b.endRow():I)&&(s=b.footerIndex())),!c&&g&&v%i.colCount==0||!g&&!Y(e,{row:i.row,col:k,rowCount:i.rowCount,colCount:i.colCount-k})||(m=!0)),d)if(U=u,j=a+e.ox(e.getRowCount()-1,a,!0),-1===o)-1!==i.col||n?e.moveTo(r,o,r+a,o,e.getRowCount()-r-j,i.colCount,nt.CopyToOptions.all,!0):(e.addRows(r,a),e.deleteRows(e.getRowCount()-a,a));else for(D=o;De.getRowCount()&&(l=f=!0);else l=f=!0}else if(p)if(e.mT(r,o+i.colCount,i.rowCount,e.getColumnCount()-o-i.colCount,!0))if(o+i.colCountb.Ky&&b.showHeader(),d)if(H=i.rowCount,C=(E=i.colCount+e.lT(o,i.colCount))+e.ox(e.getColumnCount()-1,E),-1===r)-1!==i.row||n?e.moveTo(r,o,r,o+E,i.rowCount,e.getColumnCount()-o-C,nt.CopyToOptions.all,!0):(e.addColumns(o,i.colCount),w=!0);else for(S=r;ST+1&&e.moveTo(T+1,o,T+1,o+i.colCount,i.rowCount-T-1,e.getColumnCount()-o-i.colCount,nt.CopyToOptions.all,!0)):-1!==r||-1!==i.row||n?e.moveTo(r,o,r,o+i.colCount,i.rowCount,e.getColumnCount()-o-i.colCount,nt.CopyToOptions.all,!0):(e.addColumns(o,i.colCount),w=!0);V(e,r,o,r,o+i.colCount),(A=(x=e.rowFilter())&&x.range)&&-1===r&&1A.col&&o<=A.col+A.colCount-1&&(A.colCount=A.colCount+i.colCount),h&&b&&i.rowCount>b.Ky&&(M||i.rowCount!==b.Sx&&!st(i,e.getRowCount())||(c||!b.showFooter()&&!y?b.K5t(new et.Range(b.Ky,b.iw,b.Sx,b.Tx+i.colCount)):(b.insertColumns(o-b.iw,i.colCount),m=!0)))}else o+i.colCount>e.getColumnCount()&&(l=f=!0);else l=f=!0;else if(t)if(e.mT(r+i.rowCount,o,e.getRowCount()-r-i.rowCount,i.colCount,!0))if(r+i.rowCountb.iw&&(k=(N=b.dataRange()).col+N.colCount,(G=r===b.Ky)||(I=i.rowCount,0<(I=c&&(!g&&i.intersect(b.Ky,0,b.Sx,b.endColumn()+1)||new et.Range(b.Ky,0,b.Sx,b.endColumn()+1).containsRange(i))?i.row+i.rowCount-1-b.endRow():I)&&(s=b.footerIndex())),!c&&g&&v%i.colCount==0||!g&&!Y(e,{row:i.row,col:k,rowCount:i.rowCount,colCount:i.colCount-k})||(m=!0)),d)if(z=i.colCount,j=(R=i.rowCount+e.lT(r,i.rowCount,!0))+e.ox(e.getRowCount()-1,R,!0),-1===o)-1!==i.col||n?e.moveTo(r,o,r+R,o,e.getRowCount()-r-j,i.colCount,nt.CopyToOptions.all,!0):(e.addRows(r,i.rowCount),w=!0);else for(D=o;De.getRowCount()&&(l=f=!0);else l=f=!0;return{ignoreTableExpand:m,ignoreTableFooterIndex:B,raiseInvalidOperation:f,returnFunc:l,isInsert:w}},ht.prototype.hx=function(t,n,e,i,r,o,a,u){var s,c,f,l,h,s=u.changePasteDataRangeRowInvisibleCount,c=u.changePasteDataRangeColInvisibleCount,f=u.invisibleRowCountInAcRange,l=u.invisibleColCountInAcRange,h=this.tT.pasteExtent.targetRange;t&&(n.colCount-=c,n.col-=n.colCount,n.col-=l,h.colCount-=c),e&&(n.rowCount-=s,n.row-=n.rowCount,n.row-=f,h.rowCount-=s),i&&(n.colCount-=c,n.col-=o,n.col-=l,h.colCount-=c),r&&(n.rowCount-=s,n.row-=a,n.row-=f,h.rowCount-=s),u.changePasteDataRangeRowInvisibleCount=0,u.changePasteDataRangeColInvisibleCount=0,u.invisibleRowCountInAcRange=0,u.invisibleColCountInAcRange=0},ht.prototype.vx=function(t,n){var e=[].concat(n.parent.sheets);return t&&(t.NMi||t.isReportTemplateSheet)&&e.push(t),n&&n!==t&&(n.NMi||n.isReportTemplateSheet)&&e.push(n),e},ht.prototype.execute=function(){var t,t,n,e,i,r,o,a,u,s,c,f,L,l,l,t,h,d,h,d,h,v,g,m,p,b,d,t,w,F,B,P,G,h,y,M,C,U,H,S,S,T,S,T,S,x,A,z,I,N,k,V,Y,Z,j,W,D,Q,J,_,O,E,R,K,X,h,y,I,b,l,v,g,k,j,n=this;if(n.canExecute()&&(e=n.tT.fromSheet,i=n.tT.toSheet,r=n.tT.pasteExtent,o=n.tT.pasteOption,a=r.sourceRange,u=r.targetRange,s=r.isCutting,!e||!a||e.zT(a.row,a.col,a.rowCount,a.colCount,e.getRowCount(),e.getColumnCount()))&&i&&u&&i.HT(u.row,u.col,u.rowCount,u.colCount,!0)&&!(i.tables&&i.tables.mx(e,a,i,u,s)||i.pivotTables&&i.pivotTables.KYt(a,u,i))){if(e&&(L=e.ST(),c=n._shiftCells,f=n.fA)&&(l=f.row,t=f.col,h=f.rowCount,d=f.colCount,l=new et.Range(l,t,h,d),null!=(t=r.pasteSpecialOptions)&&t.transpose&&(h=f.row<0?0:f.row,d=f.col<0?0:f.col,f=new et.Range(h,d,f.colCount,f.rowCount)),null!=(t=r.pasteSpecialOptions))&&t.pasteLink&&(f=new et.Range(f.row,f.col,u.rowCount,u.colCount),h=e.getSpan(f.row,f.col))&&h.rowCount===a.rowCount&&h.colCount===a.colCount&&(f=new et.Range(f.row,f.col,1,1)),n.cA&&(v=n.cA.row,g=n.cA.col,m=n.cA.rowCount,p=n.cA.colCount),d=n.kse,t=i===e,h=dt(i),y=G=P=B=F=!1,H=U=C=M=0,c!==it&&f){if(t&&s&&c===nt.InsertShiftCell.right&&st(f,i.getRowCount())&&(w=at(i,f))&&(S=at(i,new et.Range(v,g,m,p)))&&S.name()===w.name()&&(n.tT.Hfe=w,i.tables.remove(w,1)),(S=this.ex(s,n.cA,f,c,i,e)).returnFunc)return void tt(i,w,s,c);F=S.changePasteDataRangeCol,B=S.changePasteDataRangeRow,M=S.changePasteDataRangeRowInvisibleCount,C=S.changePasteDataRangeColInvisibleCount,U=S.invisibleRowCountInAcRange,H=S.invisibleColCountInAcRange,P=S.changePasteDataRangeCols,G=S.changePasteDataRangeRows,y=S.moveRangeHaveValue,b=S.selectRange,m=n.cA.rowCount,p=n.cA.colCount,u.rowCount+=M,u.colCount+=C,T=S.adjustedTableRowCount,S=S.adjustedTableColCount,ot(T)||(u.row=0,u.rowCount=T),ot(S)||(u.col=0,u.colCount=S)}n.XI(),T=n.vx(e,i),q.Commands.II(T),i.suspendPaint(),i.suspendEvent(),S=!(i.QI=!0),e&&(e.suspendEvent(),e.QI=!0);try{if(h&&!(z=this.ype(e,i,a,u,v,g,c,y,l,w,s)))S=!0,x=1,A=rt().Exp_InvalidCopyPasteSize,I=i.U5(),u.colCount=I.colCount,u.rowCount=I.rowCount;else if((S=(N=c!==it&&this.fx(b,c,e,i,n.cA,l,v,g,m,p,n.px,s)).raiseInvalidOperation)&&(x=1,A=rt().Exp_InsertCopiedCutCellsNoRange),N.returnFunc)tt(i,w,s,c);else{if(a&&et.Be.Ll(e,a.row,a.col,a.row+a.rowCount-1,a.col+a.colCount-1),k=!a||-1!==a.col&&-1!==a.row,V=c!==it?!N.ignoreTableExpand:k)try{Y={shiftCells:n.bx&&c===nt.InsertShiftCell.down,isCopy:!s,isFirst:!1,isHeaderPaste:n.kse},Z=[],j=ot(N.ignoreTableFooterIndex)?0:N.ignoreTableFooterIndex,W=new et.Range(u.row,u.col,u.rowCount-j,u.colCount),i.tables&&i.tables.yx(e,W,a,$,$,$,{shiftInfo:Y,backupTableResizedArgs:Z}),this.tT.Kh.lCe=Z}catch(t){return S=!0,x=6,A=t.message,void tt(i,w,s,c)}D=f||a,Q=s&&c!==it&&(c===nt.InsertShiftCell.right&&(-1===D.row||D.row===u.row)||c===nt.InsertShiftCell.down&&(-1===D.col||D.col===u.col)),pt(e,f||a,i,u,J={isCutting:s,clipboardText:r.clipboardText,clipboardHtml:r.clipboardHtml,clipboardImage:r.clipboardImage,clipboardPasteOptions:o,ignoreFilteredOutRow:!r.includeFilteredOutRow,ignorePasteSkipInvisibleRange:!0===Q,pasteSpecialOptions:r.pasteSpecialOptions}),s&&c!==it&&(_=D.row,O=D.col,E=D.rowCount,R=D.colCount,K=u.row,X=u.col,c!==nt.InsertShiftCell.right||-1!==D.row&&D.row!==u.row||(t&&d&&O=o.col+o.colCount&&(d.colCount=d.colCount-o.colCount),p=m=g=v=0,n&&r&&(v=r.row<0?0:r.row,g=r.col<0?0:r.col,m=r.row<0?n.getRowCount():r.rowCount,p=r.col<0?n.getColumnCount():r.colCount),b=[],w=[],(y=t.tableNamesObj)&&(e&&y.r===u&&y.c===s&&y.rc===c&&y.cc===f&&(w=y.tableNames),n)&&y.r===v&&y.c===g&&y.rc===m&&y.cc===p&&(b=y.tableNames),M=t._shiftCells,e&&(C=a.Mx,q.Commands.SI(e,u,s,c,f,C?C.MI():[],3,b,!0,M)),i.isCutting&&n&&(S=a.wx,q.Commands.SI(n,v,g,m,p,S?S.MI():[],3,w,!0,M)),(T=t.tT.Hfe)&&tt(e,T,i.isCutting,M),(0,et.handleRestoredTableResizedArgs)(a.lCe)}finally{e.resumePaint()}}return!0},ht.prototype.toJSON=function(){var t=this;return{sheetName:t.Mf?t.Mf.name():"",command:t.tT}},N=ht,t.ClipboardPasteRangeUndoAction=N,D=r.ActionBase,e(o,D),o.prototype.execute=function(){var t,n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,y,M,t=this,n=t.tT,e=n.cachedActions,i=!1;if(t.canExecute()&&e){o=(r=t.Mf).parent.jg(),t.X5(o,!0),a=r.parent.i4(),q.Commands.II(a);try{for(u=!1,s=n.fA&&(Array.isArray(n.fA)?n.fA:[n.fA]),c=0;c\r\n\r\n\x3c!--StartFragment--\x3e",b="\x3c!--EndFragment--\x3e\r\n\r\n",m.substr(0,p.length)===p&&m.substr(m.length-b.length,b.length)===b&&(m=m.substring(p.length,m.length-b.length)),et.mt.Qf())&&(w="",m.substr(0,w.length)===w)&&(m=m.substring(w.length,m.length)),!g&&d&&v&&(g=d.bT([v])),!m&&d&&v&&C(r)&&(m=d.MT([v])),y={sheet:r,sheetName:r.name(),cellRange:f.nx(),pasteOption:f.tT.pasteOption,pasteData:{text:g,html:m},shiftCells:n._shiftCells,fromSheet:d,fromRange:v,isCutting:!!h.isCutting,cancel:!1,action:h.isCutting?nt.ClipboardActionType.cut:nt.ClipboardActionType.copy},(M=l.clipboardImage)&&(y.pasteData.image=M),r.ki(et.Events.ClipboardPasting,y),y.cancel||(i=f.execute(),delete y.cancel,u=!0,r.ki(et.Events.ClipboardPasted,y))):i=f.execute();u&&t.Ax()}finally{q.Commands.xI(a,t.tT),t.q5(o,!0)}}return i},o.prototype.Ax=function(){var t,n,e,i,t,r,o,a,u,s,c,a,t=this,n=t.tT,e=n.cachedActions,i=t.Mf;if(i&&e){if(t=i.getSelections(),r=[],o=i.parent,i.IA(),n.hT)a=n.pastedRanges[0],i.n4(a.row,a.col,a.rowCount,a.colCount);else if(1i.col&&(i=o);return(0,et.Ec)(e.row,e.col,e.rowCount,i.col+i.colCount-e.col)}if(e.col===i.col&&e.colCount===i.colCount){for(r=0;ri.row&&(i=o);return(0,et.Ec)(e.row,e.col,i.row+i.rowCount-e.row,e.colCount)}}}return $},wT:function(t){var n,e,i,r,o,a,r,u,s,c,s,f,l,h,n=[],e=[];if(t&&1<(i=t.length)&&(r=t[0],o=t[i-1],a=r.row===o.row&&r.rowCount===o.rowCount,r=r.col===o.col&&r.colCount===o.colCount,a||r))for(t.sort(a?function(t,n){return t.col-n.col}:function(t,n){return t.row-n.row}),u=1;u=t.getFreeAreaColumnCount(p.SheetArea.rowHeader),s=o<0&&n.row>=t.getFreeAreaRowCount(p.SheetArea.colHeader),u||s)&&((u=t.getCellRect(n.row,n.col,o,a,{needAutoMerge:!0}))&&0=r.height-r.D6)&&(f=new w.Rect(u.x-2,u.y-2,u.width+4,u.height+4),s=void 0,s=o<0&&a<0?r.R1():o<0?r.L1(a):r.B1(o),f=f.getIntersectRect(s),e._6(f.x,f.y,f.width,f.height),i=Nt(t,n))):n.cellTypeHitInfo&&n.cellTypeHitInfo.addRowColumnButtonHitInfo&&(f=void 0,1===(c=n.cellTypeHitInfo.addRowColumnButtonHitInfo).addRowColumnButtonType?f=r.XAe():2===c.addRowColumnButtonType&&(f=r.qAe()),e._6(f.x,f.y,f.width,f.height))),i}function D(t){return t.isEditing()}function _(t){return t.endEdit()}function jt(t){return t.frozenRowCount()}function Dt(t){return t.frozenColumnCount()}function O(t,n){return t.getRowCount(n)}function E(t,n){return t.getColumnCount(n)}function R(t){return t.rowViewportIndex}function L(t){return t.colViewportIndex}function F(t){return t.hitTestType}function _t(t){return t.getActiveRowIndex()}function Ot(t){return t.getActiveColumnIndex()}function l(t){return t.keyCode}function h(t){return t.ctrlKey}function B(t){return t.shiftKey}function Et(t){return t.altKey}function Rt(t){return t.metaKey}function P(t){return t.colCount}function Lt(t){return t.rowCount}function G(t,n,e){return{action:t,index:n,sheetArea:e}}function Ft(t,n,e){return S===n.O5(t,e,!0)}function Bt(t,n,e){return S===n.j5(t,e,!0)}function Pt(t,n){return n?t.E6?t.startY-t.movingY:t.movingY-t.startY:t.j6||t.Gxn?t.startX-t.movingX:t.movingX-t.startX}function U(t,n,e,i,r,o,a){var n,r,n={sheet:t,sheetName:n,sheetArea:r,row:e,col:i},r=t.getCellType(e,i);return r&&(n=r.lfe(n,a)),o&&(n.cancel=!1),n}function Gt(t,n,e,i,r,o){var a,u,a=t.Mf,u=U(a,a.name(),a.ui,a.ci,M,!0);if(a.ki(w.Events.LeaveCell,u),u&&!0===u.cancel)return!0;a.O6(n,e,i,r,o),a.ki(w.Events.EnterCell,U(a,a.name(),n,e)),a.ki(w.Events.EnterCellInternal,U(a,a.name(),n,e,M,M,w.Events.EnterCellInternal)),t.PA&&t.PA(n,e)}function Ut(t,n,e,i,r,o,a){var u,n,s,u=t.Mf,n=n.call(u,o.sheetArea);return(a&&!u.getRowVisible(o.index,o.sheetArea)||!a&&!u.getColumnVisible(o.index,o.sheetArea))&&(o.index=e.call(t,o.index,o.sheetArea)),s=(s=i.call(n,o.index))||i.call(n,r)}function Ht(t,n,e,i,r){var o,a,u,n,e,o=i?"movingY":"movingX",a=i?"startY":"startX";t[o]=n,(u=t.j6||t.Gxn||t.E6?t[o]>t[a]:t[o]n&&!e&&(t[o]=n),r!==S&&t[o]>t[a]+r&&(t[o]=t[a]+r)}function zt(t,n){var e,e,e=t.Fi();return 0e.Ay?2:t.FCn&&(e=t.dw(3))&&e.findY(n)?3:1}function Vt(t,n){var e=t.Fi();return 0e.Hy&&n=(n=r.Fi()).x&&e>=n.y&&(r.sw=o,!h.r))if(i.ab=!0,o.tableSelectInfo&&!r.Nde)i.mk(o,r);else if(o.resizeInfo)(fn(r)||_(r))&&i.gk(o);else if(o.dragHeaderToMoveInfo)(fn(r)||_(r))&&i.FTe&&i.FTe(o);else if(o.dragMergeInfo)_(r)&&i.pk&&i.pk(o);else if(s&&s.side&&s.side!==wt)_(r)&&(i.bk&&i.bk(o),i.yk(t));else if(s&&s.side===wt)_(r)&&i.wk&&i.wk(o);else if(o.filterButtonHitInfo)_(r);else{if(c)return c.inBorder?(i.Mk(o),!0):c.inTopLeft||c.inTopRight||c.inBottomLeft||c.inBottomRight?(i.Ck(o),!0):void 0;if(l)i.Sk&&i.Sk(o);else if(r.JA(R(o)<0?-1:a,L(o)<0?-1:u)){if(e=r.Nde,o.tableSelectInfo&&e?(n=this.Tk(o,r),o.tableSelectInfo.tableSelection=n,e.Ak(n)):e&&e.Hce(),i.Ik&&i.Ik(r,o))return!0;if(h=_t(r),s=Ot(r),f){if(c=dn(r,f,o),i.xk(c,f)&&(l=f.sheetArea,y(l)||3===l)&&(a!==h||u!==s)){r.suspendPaint();try{if(!_(r))return;if(d=U(r,r.name(),h,s,M,!0),r.ki(w.Events.LeaveCell,d),d&&!0===d.cancel)return;(v="number"==typeof(null==o?void 0:o.rowSpacingIndex))||(g=r.Ut.getSelections(),m=r.Ut.getSpan(a,u),p=[new w.Range(m.row,m.col,m.rowCount,m.colCount)],r.ki(w.Events.FloatingElementSelected,{type:"worksheet"}),r.EA(g,p),r.t4(a,u,M,M,1),r.ki(w.Events.EnterCell,U(r,r.name(),a,u)),r.ki(w.Events.EnterCellInternal,U(r,r.name(),a,u)),r.jA(g),r.Nk=!0,i.PA&&i.PA(a,u))}finally{r.resumePaint()}}c.processCellAndPaddingMouseDown(f)}if(f&&f.isReservedLocation)return!0;i.yk(t),i.kk(r,o,a,u)}}},i.prototype.kk=function(t,n,e,i){var r,e,i,r=this;try{if(r.Dk=n,D(t)&&!_(t))return}finally{r.Dk=S}y(e)||y(i)||(3===F(n)&&r.PA&&r.PA(e,i),t.ki(w.Events.FloatingElementSelected,{type:"worksheet"}),e=t.Ut.getSelections(),r._k(n,e),i=t.Ut.getSelections(),t.EA(e,i))},i.prototype.xk=function(t,n){return t&&n&&n.isReservedLocation&&(!t.activeOnClick||t.activeOnClick())},i.prototype.Ek=function(t){var n,e,n=this.Mf;return!n||(e=n.Fi(),y(t.x))||y(t.y)||y(t.width)||y(t.height)||t.x+t.width>e.Py+n.Gy(e)+e.zy||t.y+t.height>e.Cy+n.Sy(e)+e.Iy},i.prototype.jk=function(t,n,e,i,r){for(var o,a,u,s,c,f,r,r,l,o=this.Mf,u=0,s=t.options,c=s.length;u=a.Cy+r.Sy(a)))&&r.$A(s):o>jt(r)&&r.$A(r.nI(o))),n.Pk()},i.prototype.Fk=function(t){var n,e,i,r,o,a,u,s,c,t,u,o,n=this,e;n.i9()||(i=n.Mf,o=(r=n.Rk).r9,a=i.getViewportLeftColumn(o),u=i.getViewportRightColumn(o),c=(s=i.bge())===a?a:i.O5(a),t?(u=u.Py+i.Gy(u)))&&i.o9(c):a>Dt(i)&&i.o9(i.r6(a))),n.Pk()},i.prototype.n9=function(){var t,n,e,i,r,o,a,u,s,c,f,l,h,t=this.Mf,n=t.Fi(),e=jt(t),i=t.frozenTrailingRowCount(),r=this.fk,o=this.Rk,a=o.e9;if(0===a){if(r.y>n.Cy)return t.$A(t.pw()),o.e9=1,!0}else if(1===a){if((u=t._y(1))&&0n.Ay&&s.row>=t.P6()&&s.y+s.height<=n.Ay)return o.e9=2,!0}}else if(2===a&&(u=t._y(1))&&0n.Ay){for(c=t.Sy(n),l=0,h=f=O(t)-i-1;e<=h;h--)if(c<(l+=t.Gt(h))){f=A(h+1,f);break}t.$A(t.j5(f-1))}return o.e9=1,!0}return!1},i.prototype.i9=function(){var t,n,e,i,r,o,a,u,s,c,f,l,h,t=this.Mf,n=t.frozenTrailingColumnCount(),e=Dt(t),i=t.Fi(),r=this.fk,o=this.Rk,a=o.r9;if(0===a){if(r.x>i.Py)return t.o9(t.Sw()),o.r9=1,!0}else if(1===a){if((u=t.Yy(1))&&0i.Hy&&s.col>=t.G6()&&s.x+s.width<=i.Hy)return o.r9=2,!0}}else if(2===a&&(u=t.Yy(1))&&0i.Hy){for(c=t.Gy(i),l=0,h=f=E(t)-n-1;e<=h;h--)if(c<(l+=t.nn(h))){f=A(h+1,f);break}t.o9(t.O5(f-1))}return o.r9=1,!0}return!1},i.prototype.a9=function(){var t,n,e,i,r,i,o,a,u,u,r,e,i,n,s,t=this;(t.rb||t.u9||t.s9)&&(e=(n=t.Mf).Fi(),i=t.Rk,y(i)||(r=i.e9,i=i.r9,o=t.fk,a=S,0<=r&&0<=i?(a=e.c9(r,i),0===r&&n.Tb===n.frozenRowCount()&&(u=e.c9(1,i),a.height+=u.height),0===i&&n.Ab===n.frozenColumnCount()&&(u=e.c9(r,1),a.width+=u.width)):0<=r?a=e.B1(r):0<=i&&(a=e.L1(i)),a&&(r=(u=n.parent)&&u.options.scrollbarAppearance===p.ScrollbarAppearance.mobile,i=e=0,s=n=!1,o.x<=a.x?(e=o.x-a.x,r&&(s=!0)):o.x>=a.x+a.width?(0===(e=o.x-(a.x+a.width))&&(e=50),r&&(s=!0)):r&&o.x===a.x+a.width-1&&(e=50,s=!0),o.y<=a.y?(i=o.y-a.y,r&&(n=!0)):o.y>=a.y+a.height&&(i=o.y-(a.y+a.height),r)&&(n=!0),u&&r&&(n&&(u.Xb.qy(p.ScrollbarState.show),u.ib.$y(!0)),s)&&(u.zb.qy(p.ScrollbarState.show),u.ib.$y(!1)),t.lk().ik(t.f9(e)),t.hk().ik(t.f9(i)))))},i.prototype.l9=function(){this.lk().rk(),this.hk().rk()},i.prototype.gk=function(t){var n,e,i,r,o,o,e,o,i,t,n=this,e=s.h9.prototype,i=n.Mf,r=t.resizeInfo;r.action===k||r.action===N?(o=Ut(n,i.d9,n.v9,e.findRow,t.row,r,!0),r.startY=o.y+(r.E6?o.height:0)):(o=Ut(n,i.m9,n.g9,e.findCol,t.col,r,!1),r.startX=o.x+(r.j6||r.Gxn?o.width:0)),e=i.parent,o=t.x,i=t.y,!e||(1!==(t=e.options.showResizeTip)||r.action!==j&&r.action!==yt)&&(2!==t||r.action!==k&&r.action!==N)&&3!==t||(i-30<0?i+=15:i-=30,e.Tw(Y.j0(n.p9()),o,i)),n.isResizing=!0,n.rb=!0,n.ctrl&&(n.b9=!0)},i.prototype.y9=function(){var t,n,e,i,r,o,r,a,u,s,e,r,s,t=this,n=t.Mf,e=n.sw,i=e.resizeInfo,r=t.fk,o=r.x,r=r.y,a=n.Fi(),u=n.parent,s=i.sheetArea;i&&t.rb&&t.isResizing&&(e.x===o&&e.y===r||(i.action===k||i.action===N?un(n,i,s,r,t.b9):sn(n,i,s,o,t.b9),r=(e=n.Dn).J(),e.FA(a.x,a.y,a.width,a.height),e.jy(r),!u)||(1!==(s=u.options.showResizeTip)||i.action!==j&&i.action!==yt)&&(2!==s||i.action!==k&&i.action!==N)&&3!==s||u.ny(t.w9(i)))},i.prototype.C9=function(){var t,n,e,i,r,o,a,i,u,s,i,u,i,t=this;t.isResizing=!1,n=!(t.rb=!1),i=(e=t.Mf).sw,(r=i.resizeInfo)&&(t.iy(),r.action===k||r.action===N?y(r.movingY)?n=!1:(o=x(0,Pt(r,!0)/e.zoom()),a=[],i="resizeRow",e.S9(r.index)?d.GC$.each(e.Ut.getSelections(),function(t,n){var n;-1===n.col&&(1===r.sheetArea?a.push({firstRow:r.index,lastRow:r.index}):(n=e.JS(n),a.push({firstRow:n.row,lastRow:n.row+Lt(n)-1})))}):a.push({firstRow:r.index,lastRow:r.index}),nn(e,r,a,t.b9)&&(i="splitResizeRow"),u=1===r.sheetArea,e.Qy().execute({cmd:i,sheetName:e.name(),rows:a,size:o,columnHeader:u})):y(r.movingX)?n=!1:(o=x(0,Pt(r)/e.zoom()),s=[],i="resizeColumn",e.T9(r.index)?d.GC$.each(e.Ut.getSelections(),function(t,n){var n;-1===n.row&&(n=e.JS(n),2===r.sheetArea?s.push({firstCol:r.index,lastCol:r.index}):s.push({firstCol:n.col,lastCol:n.col+P(n)-1}))}):s.push({firstCol:r.index,lastCol:r.index}),an(e,r,s,t.b9)&&(i="splitResizeColumn"),u=2===r.sheetArea,e.Qy().execute({cmd:i,sheetName:e.name(),columns:s,size:o,rowHeader:u})),(i=e.hitTest(t.fk.x,t.fk.y))&&t.cw(i),n||e.repaint(),t.b9=!1)},i.prototype.A9=function(t,n){var e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,d,c,e=0,i=0,r=0,o=0,a=this,u=a.Mf,s=u.H3,c=jt(u),f=Dt(u),h=F(t),d=1===h&&u.NMi&&u.NMi.options.isDesignMode&&t.rowt.pw()||2===n&&e<2&&0t.Sw()||2===n&&e<2&&0=r?r-1:a.row}else if(a=Yt(i,n=this.nD(),o)){if(e=i.Fi(),r=a.row,1===n&&oe.Ay&&r>i.getLastFullyVisibleRow()?i.nI(r)||r:r}return-1},i.prototype.K9=function(t,n,e){var i,r,o,a,u,r,n,e,r,u;if(void 0===n&&(n=p.SheetArea.viewport),r=(i=this.Mf).Ut,o=i.options.rightToLeft,a=this.fk.x,n===p.SheetArea.rowHeader){if(u=Qt(i,a))return r=r.getFreeAreaColumnCount(n),e&&0=r?r-1:u.col}else if(u=Wt(i,n=this.eD(),a)){if(e=i.Fi(),r=u.col,1===n&&ae.BA:ae.Hy&&r>i.getLastFullyVisibleColumn()?i.r6(r)||r:r}return-1},i.prototype.f9=function(t){var n,e,n=0;return T(t)||0===t||(e=t<0,n=it(500/I(t)),200<(n=x(20,10*n))&&(n=200),e&&(n=-n)),n},i.prototype.v9=function(t,n){var e,n=this.Mf.nI(t,n);return n!==S?n:t},i.prototype.g9=function(t,n){var e,n=this.Mf.r6(t,n);return n!==S?n:t},i.prototype.oD=function(t,n,e){for(var i=this.Mf;n=o.getFreeAreaRowCount(p.SheetArea.colHeader)?c=(c=r.dD(o,t,i,1,n))||r.cD(o,t,i,1,e):0<=R(t)&&L(t)<0&&u&&t.col>=o.getFreeAreaRowCount(p.SheetArea.rowHeader)?c=(c=r.cD(o,t,i,2,e))||r.dD(o,t,i,2,n):R(t)<0&&L(t)<0?o.P6(2)===S&&I(e-a.qC)<=i?(h=o._y(1))&&0=a.x)return!0}else if(a.contains(e,i))return!0;if(1===t)if((u=r._y(t))&&0(1=c.x&&a.y>=c.y+c.qC&&a.x+a.width<=c.Py&&a.y+a.height<=c.Ay+c.Iy:t===p.SheetArea.colHeader?e=a.x>=c.x+c.XC&&a.y>=c.y&&a.x+a.width<=c.Hy+c.zy&&a.y+a.height<=c.Cy:t===p.SheetArea.viewport&&(e=l?a.x>=c.x&&a.y>=c.T6&&a.x+a.width<=c.BA&&a.y+a.height<=c.Ay+c.Iy:a.x>=c.b6&&a.y>=c.T6&&a.x+a.width<=c.Hy+c.zy&&a.y+a.height<=c.Ay+c.Iy),a&&0=I(r)?r=0:i=0),a&&(i=(s=f.wge(i,r,1)).detailY,r=s.detailX)):(a=t.wheelDeltaY,c=t.wheelDeltaX,e||(I(a)>=I(c)?c=0:a=0),(g.safari||g.chrome)&&(u=g.safari?-4:-40,i=(s=f.wge(a,c,u)).detailY,r=s.detailX)),(0!==i||0!==r)&&(e=f.parent.ib.Mg(f,t,et(i,10)||0,et(r,10)||0),n.iy(),!!e)&&void 0},f.G_=function(t){var n={e:t,r:S};if(b.Worksheet.et(f,"preProcessMouseOut",n),!n.r)return i.yg(t)},f.U_=function(t){var n,e,e,n=f.sw,e={e:t,r:S,target:n};b.Worksheet.et(f,"preProcessMouseDbClick",e),e.r||n&&(e=!1,3===F(n)?r(i,t):e=i.j_(n),e||f.ki(w.Events.CellDoubleClick,U(f,f.name(),n.row,n.col,F(n))))},n=i.tk,t.bind(Q+"."+n,function(t){return f.B_(t)}).bind(J+"."+n,function(t){return f.F_(t)}).bind(K+"."+n,function(t){return f.L_(t)}).bind(X+"."+n,function(t){return f.P_(t)}).bind(tt+"."+n,function(t){return f.G_(t)}).bind(nt+"."+n,function(t){return f.U_(t)}),g.mozilla)&&(e="onwheel"in document?$:q,t.bind(e+"."+n,function(t){return f.P_(t)}))}}),t.Hv.ch("worksheet-event",{preProcessMouseMove:function(t){var n,n,n=this.Vv.getActiveSheet();n&&(n=n.rt)&&n.ab&&n.rb&&n.isResizing&&(n.pg(t.e),t.r=!1)}})},"./dist/core/worksheet/worksheet-formatter.js":function(t,n,u){"use strict";var e,i,r,o,a,l,s,h,c,d,v,g;function f(t,n,e,i,r){var o,n,a,o=n.getRange(e,i);if(n.source&&(t=n.source.Mf),n=o.row,a=o.col,r)if(1===o.rowCount)a=i;else{if(1!==o.colCount)return d;n=e}return m(t,n,a)}function m(t,n,e){var i,r,o,r,t,r;return t&&t.getFormatter?(i=t.getFormatter(n,e))&&"General"!==i?y(i,function(t,n){return a.Be.Re(t,n)}):(r=t.getStyle(n,e),(o=r&&r._autoFormatter)?y(o.formatCached,function(t,n){return o.format(t)}):(t=(r=t.pivotTables)&&r.findPivotTable(n,e))&&(i=(r=t.hqt(n,e))&&r.formatter)?y(i,function(t,n){return a.Be.Re(t,n)}):d):d}function p(t,n){var n=s(t,"E")&&n(1,t);return n&&s(n,"E")}function b(t,n){var n=n(123,t);return s(n,"123")&&0<(n=n.replace(/[1230. ]+/g,"")).length}function w(t,n){var n;if(t=t.replace("DBNum",""),e.Common.$T.qT("[mMdDyYhHseg]").test(t))return n=n(123,t),!s(n,"123")}function y(t,n){var e,i,r,o;if("string"!=typeof t||"="===t[0])return d;if(e={f:t},w(t,n)){if(i=n(44955,t),r=n(44955.11,t),o=n(45323,t),i!==r)return e.t=i===o?6:8,e;if(i!==o)return e.t=7,e}if(s(t,"%"))e.t=0;else if(s(t,"/"))e.t=4;else if(p(t,n))e.t=3;else if(b(t,n))e.t=5;else if(s(t,"0")||s(t,"DBNum",!0))e.t=2;else if(s(t,"GENERAL",!0))e.t=1;else{if(!s(t,"@"))return d;e.t=9}return e}function M(t,n,e,i,r){var e,t,e=e.value;if(e&&2===e.type)return{f:"0.00%",t:0};if(e&&9===e.type)if(0===e.operatorType||1===e.operatorType){if(e.value&&2===e.value.type)return{f:"0.00%",t:0}}else if(2===e.operatorType)return(t=M(t,n,e,i,r))&&0===t.t&&(t.f=t.f.replace("%","00%")),t;return d}function C(t,n,e,i,r){var o,t,o=x(t,n,e.value,i,r),t=x(t,n,e.value2,i,r);if(7===o.t||8===o.t){if(7===t.t||8===t.t)return d;if(6===t.t)return 8===o.t?o:{f:o.f+" "+t.f,t:8}}else if(6===o.t){if(8===t.t)return t;if(7===t.t)return{f:t.f+" "+o.f,t:8}}return 0===o.t&&0===t.t?{f:(t.f.length>o.f.length?t:o).f,t:0}:1!==o.t?o:t}function S(t,n,e,i,r){var o,t,o=x(t,n,e.value,i,r),t=x(t,n,e.value2,i,r);return 9===o.t?o:9===t.t?t:5<=o.t?5<=t.t?d:o:5<=t.t?t:3===o.t?o:3===t.t?t:4===o.t?o:4===t.t?t:2!==o.t&&1!==o.t&&2!==t.t&&1!==t.t&&0===o.t&&0===t.t?{f:(t.f.length>o.f.length?t:o).f,t:0}:d}function T(t,n,e,i,r){var o,a,u,s,c,f,o=e.functionName&&e.functionName.toUpperCase(),a=g[o];if(l(v[o]))return"number"==typeof a?x(t,n,f=e.arguments[a],i,r):a?a(t,n,e,i,r):d;switch(v[o]){case 6:u="H:mm:ss";break;case 7:u=h.Fe().DateTimeFormat.shortDatePattern||"M/d/yyyy";break;case 8:u=h.Fe().DateTimeFormat.defaultDatePattern||"M/d/yyyy H:mm:ss";break;case 0:u="0.00%";break;case 5:s=h.Fe().NumberFormat.currencySymbol||"$",u=(c=h.Fe().predefinedFormats.Currency)&&c[c.length-1]||"".concat(s,"#,##0.00_);[Red](").concat(s,"#,##0.00)")}return{f:u,t:v[o]}}function x(t,n,e,i,r){if(e)if(9===e.type){if(2===e.operatorType)return M(t,n,e,i,r);if(3===e.operatorType||4===e.operatorType)return C(t,n,e,i,r);if(5===e.operatorType||6===e.operatorType||7===e.operatorType)return S(t,n,e,i,r);if(0===e.operatorType||1===e.operatorType)return x(t,n,e.value,i,r)}else{if(1===e.type||13===e.type||22===e.type)return f(t,e,i,r);if(7===e.type)return T(t,n,e,i,r);if(10===e.type)return x(t,n,e.value,i,r)}return d}function A(t,n,e,i,r){var o=t.getFormatter(i,r);(!o||o.toUpperCase&&"GENERAL"===o.toUpperCase())&&(e=t.oMt.Fyt(i,r)||e,I(t,i,r,x(t,n,e,i,r)))}function I(t,n,e,i){var r=t.Z_(n,e)||new o.Style;(i="string"==typeof i?y(i,function(t,n){return a.Be.Re(t,n)}):i)&&1!==i.t?r._autoFormatter=new c(i.f):delete r._autoFormatter,delete r.formatter,t.setStyle(n,e,r)}Object.defineProperty(n,"__esModule",{value:!0}),n.Ffe=n.Fue=n.Pue=void 0,e=u("Common"),i=u("./dist/core/util/domUtil.js"),r=u("./dist/core/worksheet/worksheet.js"),o=u("./dist/core/worksheet/style.js"),a=u("./dist/core/util/common.js"),l=e.Common.lt.ht,s=e.Common.zf.OS,h=e.Common.CultureManager,c=e.Formatter&&e.Formatter.GeneralFormatter,d={t:1},i.GC$.extend(r.Worksheet.prototype,{getFormatter:function(t,n,e){return this.l0(t,n,"formatter",e)},setFormatter:function(t,n,e,i){var r=this.Z_(t,n,i),r;(r=r||new o.Style).formatter=e,this.setStyle(t,n,r,i)}}),r.Worksheet.ch("formatter",{settingText:function(t){var n,n,n=a.util.Kf(t.value);c&&n&&(n={},(new c).getPreferredDisplayFormatter(t.value,n),"number"==typeof n.value)&&(t.value=n.value)}}),v={NOW:8,TODAY:7,TIME:6,DATE:7,IRR:0,XIRR:0,MIRR:0,RATE:0,YIELD:0,INTRATE:0,NPV:5,XNPV:5},(g={SUM:0,MAX:0,MIN:0,AVEDEV:0,FLOOR:0,ROUND:0,ROUNDUP:0,ROUNDDOWN:0,INT:0,TRUNC:0}).SINGLE=g["@"]=function(t,n,e,i,r){var e=e.arguments[0];return!e||1!==e.type&&13!==e.type?d:f(t,e,i,r,!0)},g.INDIRECT=g.OFFSET=g.INDEX=function(i,t,n,r,o){var e,a,e=u("SheetsCalc"),a=d;return e&&(n.Gue=function(t,n,e){a=l(n)?f(i,t,r,o):m(e&&e.Mf||i,t,n)},e.evaluateExpression(i,n,r,o)),a},n.Pue=x,n.Fue=A,n.Ffe=I},"./dist/core/worksheet/worksheet-json.js":function(i,t,n){"use strict";var t,Z,W,Q,ut,J,st,y,ct,r,ft,e,lt,p,n,ht,n,u,C,o,yt,a,K,X,dt,q,vt,S,$,gt,Mt,l,h,s,d,Ct,w,D,_,c,v,St,N,O,mt,g,M,T,k,f,Tt,xt,At,m,b,It,Nt,kt,x,rt,tt,nt,pt,bt,A,I,E,wt,n;function j(t,n){return gt(t)?n:gt(n)?t:Math.max(t,n)}function R(t,n,e,i){var t,t;t.dataTable&&(n.dataTable||(n.dataTable={}),t=t.dataTable[e])&&(n.dataTable[e]||(n.dataTable[e]={}),t=t[i])&&(n.dataTable[e][i]||(n.dataTable[e][i]={}),t.formula)&&(n.dataTable[e][i].formula=t.formula)}function ot(t,n,e,i,r){var o,a,u,s,c,f,l,h,d,v,g,o=t.Ut,a=o.W_(),u=o.W_(ct.SheetArea.colHeader),s=o.Q_(!0),c=o.Q_(!0,ct.SheetArea.colHeader),f=o.K_(),l=o.K_(ct.SheetArea.colHeader),h=a.getColumnCount();for(!r&>(n.colHeaderData)?n.colHeaderData={}:o.ap=e,u.setRowCount(e),d=0;d=+(o=a[i]).min&&t<=+o.max){n=o,e=i;break}return{colItem:n,colItemIndex:e}},o=function(t){var t=r(t),n=t.colItem,t=t.colItemIndex;if(n)return i(n,t)},s=n.col,c=n.col+n.colCount;su.maxCol?o(s+1):u)&&ft.Util.cme(t,e,s,u.columnSize,u.hidden,u.colStyle)}function _t(t,n){var n,e,i,n=w(n,m);n&&(e=t.spanModels[3],(i=n.c_).forEach(function(t){var t=N(t.ref);e.find(t.row,t.col)||e.add(t)}))}function Ot(t,o,a){var n,u;if(0=v.col&&s.col<=v.col+v.colCount-1&&s.row>=v.row&&s.row<=v.row+v.rowCount-1&&(l=c);if(l<0&&0t+e)||-1!==n&&(a.coln+i)))return!0;return!1},n.prototype.eE=function(t,n,e,i){for(var r,o,a,u,r=!1,o=this.spans,a=0,u=o.length;a=this.startColumn&&t<=this.endColumn},g.Q8=Wt,e.prototype.getProperty=function(t){return this[t]},e.prototype.setProperty=function(t,n,e){e&&(e[0].push(t),e[1]=this[t],e[2]=n),this[t]=n},e.prototype.clear=function(t){t&&(t.push(["selections",this.get()]),t.push(["activeSelectedRangeIndex",this.activeSelectedRangeIndex])),this.selections=[],this.activeSelectedRangeIndex=-1},e.prototype.add=function(t,n,e,i,r,o){r&&(r.push(["selections",this.get()]),r.push(["activeSelectedRangeIndex",this.activeSelectedRangeIndex]));var r=this,a=r.selectionPolicy,u=r.selectionUnit;0===a?(e=T(e,1),i=T(i,1),r.clear()):1===a&&r.clear(),1===u?i=n=-1:2===u&&(e=t=-1),r.selections.push((0,it.Ec)(t,n,e,i)),!1!==o&&(r.activeSelectedRangeIndex=r.selections.length-1)},e.prototype.get=function(){return[].concat(this.selections)},e.prototype.set=function(t,n){n&&(n.push(["selections",this.get()]),n.push(["activeSelectedRangeIndex",this.activeSelectedRangeIndex])),this.selections=t,this.activeSelectedRangeIndex>=t.length&&(this.activeSelectedRangeIndex=0)},e.prototype.toJSON=function(){var t,n,e,i,r,o,a,t=this,n={},e=t.selectionPolicy,i=t.selectionUnit,r=t.activeSelectedRangeIndex,o=t.selections.length;for(2!==e&&(n.selectionPolicy=e),0!==i&&(n.selectionUnit=i),0!==r&&(n.activeSelectedRangeIndex=r),n.length=o,a=0;ae&&(e=o.height,i=r);return q(i)&&this[i]},i.prototype.findLargestCol=function(t){var n,e,i,r,o,n=this.length;if(0===n)return at;for(r=e=0;re&&(e=o.width,i=r);return q(i)&&this[i]},i.prototype.findLargestRange=function(t,n){var e,i,r,o,a,u,s,c,f,l,e=this.length;if(0===e)return at;for(i=t.row,r=t.col,o=t.rowCount,a=t.colCount,c=s=0;cs&&(s=l.height,u=c);else for(f=t.col;fs&&(s=l.width,u=c);return q(u)&&this[u]},i.prototype.findX=function(t,n){return Jt(this,ut,ut,t,ut,n)},i.prototype.findY=function(t){return Jt(this,ut,ut,ut,t)},i.prototype.findNearX=function(t,n){return Kt(this,t,ut,n)},i.prototype.findNearY=function(t,n){return Kt(this,ut,t,n)},i.prototype.findXByExactY=function(t,n,e){var i,t,r,o,a,u,i=this.findX(t,!0);if(!Array.isArray(i))return i;for(t=i.length,r=e.y,o=e.height,a=t-1;0<=a;a--)if(n>r+(u=i[a]).y*o)return u},g.h9=i,Xt.prototype.contains=function(t,n){var e=this;return tr.I8&&(r.I8=n),o},o.prototype.CE=function(t,n,e,i){var r,o;if(t)return r=this,o=t[n],e&&(o=o||(t[n]={}),!i)&&r.x8=a&&w.push(g)))}return w},e.prototype.C7=function(t,n){var e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,f,y,M,C,e=this,i=e.Mf,r=i.Jt,o=e.Vx;if(0===o.length)return[];for(a=o[0].col,u=o[o.length-1].col,s=i.Ut,m=i.getColumnCount(),y=[],n=n||nt.q.J(),M=i.options.rightToLeft,C=1;C<100;C++){if(m<=(p=u+C))return y;if(s.findSpan(t,p)||i.Cb&&i.Cb.D7(t,p,bt.SheetArea.viewport))return y;f=r.$t(t,p,3,1),0<(l=r.Kt(p))&&!Mt(f)&&(4!==(d=(c=r.o2e(t,p)).hAlign)&&!1===i.options.allowCellOverflow||(3===d&&(d=S(d,f,Ct,c.textOrientation)),h=r.Gt(t),v=c.cellType||e.f7,w=nt.Be.Cl(i,c,f,g={},{row:t,col:p,sheet:i}),f={data:f,style:c,width:l,text:w=g.content&&0=l+h))for(y=0,M=(w=r.gO(e)).length;yv+m&&(T=0,A=v+m),t.moveTo(x+S-1,c-1),t.lineTo(A+T,c-1),t.stroke());if(I=o.frozenColumnCount(),F&&(1!==f||0!==I||o.Ab<=d||o.Ab>=d+a))for(k=0,j=(N=r.pO(n)).length;kg+p&&(O=0,R=g+p),D=o.options.rightToLeft,t.moveTo(D?u.x+u.width-u.XC-1:s-1,E+_-1),t.lineTo(D?u.x+u.width-u.XC-1:s-1,R+O),t.stroke());t.beginPath(),t.restore()}},i.prototype.gO=function(t){for(var n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,s,m,h,d,v,g,n=this.Mf,e=n.Ut.getSelections(),i=e.length,r=n.Yy(t),o=[],a=n.options.rightToLeft,u={},c=0;c=m.x+xt(m)||_+E<=m.y||_>=m.y+Tt(m))&&(!C||D>m.x+xt(m))&&!A.isOutside)return"continue";if(0===O||0===E)return"continue";if(!H&&1===g&&e=P.iw&&(0===s&&P.Ky+P.Sx>f||0c)&&j=x(n)&&(t.r=n.P6(),e=!0),t.c<0?t.c=n.k9():t.c>=T(n)&&(t.c=n.G6(),e=!0),e&&((e=n.Ut.getSpan(t.r,t.c)).row!==t.r&&(t.r=e.row),e.col!==t.c)&&(t.c=e.col)},CA:function(t,n){for(var e,i,r,o,a,u,s,c,f,l,h,h,e=this,i=e.Ut,r=i.getActiveSelectedRangeIndex(),o=-1,a=e.JS(e.U5()),u=a.row,s=a.col,c=a.col+I(a)-1,f=t,l=n;f=(h=e.CR(f,l)).r,!(s<=(l=h.c));){if(o===r&&f===t&&l<=n)return;l=u<=--f?c+1:(h=e.JS(e.U5(3)),o=i.getActiveSelectedRangeIndex(),u=h.row,s=h.col,c=h.col+I(h)-1,f=h.row+A(h)-1,h.col+I(h))}0<=f&&(e.XA(f,l),e.qA=f,e.hR=l)},SA:function(t,n){for(var e,i,r,o,a,u,s,c,f,l,h,h,e=this,i=e.Ut,r=i.getActiveSelectedRangeIndex(),o=-1,a=e.JS(e.U5()),u=a.col,s=a.row+A(a)-1,c=a.col+I(a)-1,f=t,l=n;f=(h=e.TR(f,l)).r,!((l=h.c)<=c);){if(o===r&&f===t&&n<=l)return;l=++f<=s?u-1:(h=e.JS(e.U5(4)),o=i.getActiveSelectedRangeIndex(),u=h.col,s=h.row+A(h)-1,c=h.col+I(h)-1,f=h.row,h.col-1)}0<=f&&(e.XA(f,l),e.qA=f,e.hR=l)},TA:function(t,n){for(var e,i,r,o,a,u,s,c,f,l,h,h,e=this,i=e.Ut,r=i.getActiveSelectedRangeIndex(),o=-1,a=e.JS(e.U5()),u=a.row,s=a.row+A(a)-1,c=a.col,f=t,l=n;f=(h=e.AR(f,l)).r,l=h.c,!(u<=f);){if(o===r&&l===n&&f<=t)return;c<=--l?f=s+1:(h=e.JS(e.U5(1)),o=i.getActiveSelectedRangeIndex(),u=h.row,s=h.row+A(h)-1,c=h.col,f=h.row+A(h),l=h.col+I(h)-1)}0<=l&&(e.XA(f,l),e.qA=f,e.hR=l)},AA:function(t,n){for(var e,i,r,o,a,u,s,c,f,l,h,h,e=this,i=e.Ut,r=i.getActiveSelectedRangeIndex(),o=-1,a=e.JS(e.U5()),u=a.row,s=a.row+A(a)-1,c=a.col+I(a)-1,f=t,l=n;f=(h=e.IR(f,l)).r,l=h.c,!(f<=s);){if(o===r&&l===n&&t<=f)return;++l<=c?f=u-1:(h=e.JS(e.U5(2)),o=i.getActiveSelectedRangeIndex(),s=h.row+A(h)-1,c=h.col+I(h)-1,f=h.row-1,l=h.col)}0<=l&&(e.XA(f,l),e.qA=f,e.hR=l)},gA:function(t,n,e){var i,r,o,o,e,t,i=this,o=i.tables,r=e&&(r=o&&o.xR(t,n))||i.uI(t,n,e,i.qA||0);!r||r.row===t&&r.col===n||(o=r.row,e=r.col,t=r.leadingCellRow,i.dR(o,e)&&(i.qA=t,i.hR=e,i.XA(o,e)))},uI:function(t,n,e,i){var r,o,a,u,s,c,f,r=this,o=x(r),a=T(r),s=n;if(s===a-1&&!e||0===o||0===a)return M;for(c=r.NR(i,s),f=i,e||r.mR(c),u=c.r,s=c.c;s===a&&e;){if(t===o-1&&t===u&&(!r.getRowVisible(u,3)||r.Gt(u,3)<=0))return M;if(i=u=o<=(u=r.j5(u,3,!0))||d(u)?r.j5(-1,3,!0):u,u=(c=r.NR(i,-1)).r,s=c.c,u===t&&n=(o=o[0]).col&&(r=o.col,i=o.row),e.dR(i,r)))return{r:i,c:r};return{r:i,c:r}},CR:function(t,n){for(var e,i,r,e=this;0<=n&&!(--n<0);){if(i=e.Ut.findSpan(t,n)){if(!((r=e.U5()).row<=i.row&&i.row+A(i)<=r.row+A(r)&&r.col<=i.col&&i.col+I(i)<=r.col+I(r)))continue;if(i.row!==t||i.col!==n)continue;n>=i.col&&(n=i.col,t=i.row)}if(e.dR(t,n))return{r:t,c:n}}return{r:t,c:n}},NR:function(t,n){for(var e,i,r,o,a,a,u,e=this,i=T(e),o=n;o(u=a[0]).col?o=C(o,u.col+I(u)):r=u.row),e.dR(r,o)))return{r:r,c:o};return{r:r,c:o}},TR:function(t,n){for(var e,i,r,o,o,a,e=this,i=e.Ut,r=T(e);no.col?n=C(n,o.col+I(o)):t=o.row}if(e.dR(t,n))return{r:t,c:n}}return{r:t,c:n}},dR:function(t,n){var e,i,r,o,e=this;return!!e.JA(t,n)&&(i=0<=t&&t=(i=i[0]).row&&(t=i.row,n=i.col),e.dR(t,n)))return{r:t,c:n};return{r:t,c:n}},AR:function(t,n){for(var e,i,r,e=this;0<=t&&!(--t<0);){if(i=e.Ut.findSpan(t,n)){if(!((r=e.U5()).row<=i.row&&i.row+A(i)<=r.row+A(r)&&r.col<=i.col&&i.col+I(i)<=r.col+I(r)))continue;if(i.row!==t||i.col!==n)continue;t>=i.row&&(n=i.col,t=i.row)}if(e.dR(t,n))return{r:t,c:n}}return{r:t,c:n}},pR:function(t,n){for(var e,i,r,r,o,e=this,i=x(e);t(o=r[0]).row?t=C(t,o.row+A(o)):n=o.col),e.dR(t,n)))return{r:t,c:n};return{r:t,c:n}},IR:function(t,n){for(var e,i,r,o,o,a,e=this,i=e.Ut,r=x(e);to.row?t=C(t,o.row+A(o)):n=o.col}if(e.dR(t,n))return{r:t,c:n}}return{r:t,c:n}},D9:function(t,n,e,i,r,o){var a=this;a.Ut.do("addSelection",t,n,e,i,M,o),r&&a.My<=0&&a.Dn.E1(M,M,M,M,o)},L9:function(t,n,e){var i,t,n,r,o,t,a,u,i=this,t=i.xA(t,n,i.ui,i.ci),n=t.row,r=t.col,o=A(t),t=I(t),a=i.selectionPolicy(),u=i.selectionUnit();0!==a&&(1===a&&i.Ut.do("clearSelection"),1===u?t=r=-1:2===u&&(o=n=-1),i.kA(n,r,o,t,e))},xA:function(t,n,e,i,r,o){var a,u,e,i,u,t,a=this;return d(e)&&(e=a.ui),d(i)&&(i=a.ci),e=(u=a.Ut).getSpan(e,i,o),i=u.getSpan(t,n,o),r&&e.equals(i)?new y.Range(e.row,e.col,1,1):(u=e.union(i),(t=a.Ut.getSpans(M,o))&&0=i.sB()&&(f=i.nI(i.sB())),u=i.xA(f,o,n,e),s=S(r,u.row),i=S(o,u.col),f=S(r+a-1,u.row+A(u)-1),n=C(o+I(t)-1,u.col+I(u)-1),(0,y.Ec)(s,i,l=f-s+1,h=n-i+1))},eB:function(t,n,e){var i,r,o,a,u,s,u,s,i,u,n,e,c,f,i=this,r=t.row,o=t.col,a=A(t),u=i.tI();return d(u)?M:(s=i._y(1),i.$A(u),(u=i.nI(r+a-1+p(s)))=i.sB()&&(u=i.Tb>=i.cB()?i.sB():i.nI(i.sB())),s=i.xA(u,o,n,e),i=C(r,s.row),u=S(o,s.col),n=C(r+a-1,s.row+A(s)-1),e=C(o+I(t)-1,s.col+I(s)-1),(0,y.Ec)(i,u,c=n-i+1,f=e-u+1))},QA:function(){var t,n,n,e,i,r,o,t=this,n=t._y(1);if(!n||p(n)<=0)return M;for(e=(n=t.frozenRowCount())?t.j5(n-1):t.N9(),i=0,r=t.Tb,o=t.Fi();et.Sy(o)););return r},fB:function(){var t,n,n,e,i,r,o,t=this,n=t.Yy(1);if(!n||p(n)<=0)return M;for(e=(n=t.frozenColumnCount())?t.O5(n-1):t.k9(),i=0,r=t.Ab,o=t.Fi();et.Gy(o)););return r},tI:function(){var t,n,t,t=this._y(1),n=p(t);return t&&0t.Gy(n));)o--;return o=0n.toLowerCase():n=n&&o.index=n+e&&(o.index-=e))}Object.defineProperty(t,"__esModule",{value:!0}),e=o("Common"),t=o("./dist/core/util/domUtil.js"),y=o("./dist/core/util/common.js"),w=o("./dist/core/worksheet/worksheet.js"),n=o("CalcEngine"),M=!!n,n=o("./dist/core/core.ns.js"),C=o("./dist/core/core.enum.js"),S=o("./dist/core/excel-io-util/range-parser.js"),n=new e.Common.ResourceManager(n.SR,"Sheets"),b=n.getResource.bind(n),u=e.Common.ct.o0,h=e.Common.Uf,T=e.Common.lt.ht,s="boolean",c="string",x="number",f="backColor",l="fontColor",A=void 0,t.GC$.extend(w.Worksheet.prototype,{sortRange:function(t,n,e,i,r,o,a,u,s){var c,f,f,l,h,d,v,l,h,l,h,g,h,l,m,p,h,g,l,c=!1;if(0===arguments.length){if(!(f=this.getSortState()))return!1;t=f.row,n=f.col,e=f.rowCount,i=f.colCount,o=f.sortConditions,r=f.byRow,c=!0}if(l=(f=this).getRowCount(),h=f.getColumnCount(),-1===e&&(e=l),-1===n&&(n=0),-1===i&&(i=h),(t=-1===t?0:t)<0||l<=t||n<0||h<=n||e<0||l=e.row+e.rowCount))if(t<=e.row){if(e.row=e.row+n,!e.byRow)for(i=0,r=e.sortConditions;i=t&&(o.index+=n)},kpe:function(t,n){var e,i,r,o,a,e=this.getSortState();if(e&&!(t>=e.col+e.colCount))if(t<=e.col){if(e.col=e.col+n,e.byRow)for(i=0,r=e.sortConditions;i=t&&(o.index+=n)},_pe:function(t,n){var e,i,r,o,a,u,e=this.getSortState();if(e&&(i=[],!(t>=e.row+e.rowCount))){if(t+n<=e.row){if(e.row=e.row-n,!e.byRow)for(r=0,o=e.sortConditions;r=e.row&&t+n=t&&a.index=t+n&&(a.index-=n))}else t=e.col+e.colCount))){if(t+n<=e.col){if(e.col=e.col-n,e.byRow)for(r=0,o=e.sortConditions;r=e.col&&t+n=t&&a.index=t+n&&(a.index-=n))}else t=a&&t.minY>=u&&g.push(t)}),o&&o.forEach(function(t){i.Rme(t),v.gF(t.minX,t.minY,1,1),t.minX>=f&&t.minY>=l&&d.Lme(t,!0)}),g.forEach(function(t){var t={minX:t.minX+f-a,minY:t.minY+l-u,maxX:t.maxX+f-a,maxY:t.maxY+l-u,isValid:t.isValid};d.Bme(t,!0)})):(o&&o.forEach(function(t){t.minX>=f&&t.minY>=l?d.Rme(t,!0,!0):(d.Rme(t),v.gF(t.minX,t.minY,1,1))}),r&&r.forEach(function(t){var n,e,i,r,o;if(t.minX>=a&&t.minY>=u)(n={minX:t.minX+f-a,minY:t.minY+l-u,maxX:J(t.maxX+f-a,f+s-1),maxY:J(t.maxY+l-u,l+c-1),isValid:t.isValid}).isValid||(n.maxX=n.minX,n.maxY=n.minY),d&&d.Bme(n,!0);else if(t.isValid)for(e=J(t.maxX,a+s-1),i=J(t.maxY,u+c-1),r=K(t.minX,a);r<=e;r++)for(h[r]=h[r]||{},o=K(t.minY,u);o<=i;o++)h[r][o]=1})),h}function at(t,n,e,i,r,o,a,u){var s=z("SheetsCalc");s&&s.CalcOperatorAdjustor.moveFormula(t,n,e,i,r,o,a,u)}function ut(t,n,e,i,r,o,a,u,s){var c,f,l,n,h,d,v,g,m,c={};if(t===n&&t.tables)for(f=X(e,i,r,o),l=X(a,u,r,o),h=(n=t.tables).all(),d=void 0,v=0,g=(h=n.zB?h.concat(n.zB):h).length;v=s&&t.minY>=c)if(!t.isValid||t.maxX=o&&t.minY>=a)b.Rme(t,!0,!0,!0);else if(t.isValid)for(n=J(t.maxX,o+l-1),e=J(t.maxY,a+h-1),i=K(t.minX,o);i<=n;i++)for(g[i]=g[i]||{},r=K(t.minY,a);r<=e;r++)g[i][r]=t})),this.Ope(w=function(t,n,e,i){var r,o,a,u,a,a,s,r=3===i,a=d?0:1,u=t.Ut;return r?o=v&&v[n]&&v[n][e]?N:t.getValueIgnoreDefault(n,e,i,a):(o=u.getValue(n,e,i,!0,a),1===i&&B(o)&&f.UB&&(a=t.H3)&&a._dataSource&&(a=u.q_(!1,3,e),s=t.options.colHeaderAutoTextIndex,a)&&(0<=s&&n===s||-1===s&&n===q(t,i)-1)&&(o=a.displayName||a.name)),B(o)||(r?t.YI(n,e,Q,i,!1,!0):u.do("setValue",n,e,Q,i,!0,!0)),o},y=function(t,n,e,i,r){var o=g&&g[n]&&g[n][e];B(i)?o&&o.isValid||t.YI(n,e,Q,r,!!t.HB,!0):(o&&o.isValid&&b.Rme(o,!0,u.Ut.G8),t.YI(n,e,i,r,!!t.HB,!0))}),(m=m.map(function(t){p.Lme(t,!0);var n={minX:t.minX+o-s,minY:t.minY+a-c,maxX:t.maxX+o-s,maxY:t.maxY+a-c,_v:t._v,isValid:t.isValid};return t._v=null,n})).forEach(function(t){t._v?b.setArray(t.minX,t.minY,t.maxX-t.minX+1,t.maxY-t.minY+1,t._v,!1,!0):b.Bme(t,!0)})},i.prototype.copyMoveStyle=function(a){var g,t,t,m,u,p,t,s,b,w,n,e,g=this,m=this.isMove,u=this.options.ignoreSheet,p=null==(t=this.options.pasteSpecialOptions)?void 0:t.skipBlanks,t=null==(t=this.options.pasteSpecialOptions)?void 0:t.advancedPasteOptions,s=null==t?void 0:t.usingSourceTheme,b=null==t?void 0:t.noBorder,w=null==t?void 0:t.numberFormats,n,e;this.Ope(function(t,n,e,i){var r,o,r=(3===i||B(i))&&a&&a[n]&&a[n][e];return s?(o=t.getActualStyle(n,e,i,N,{notClone:N,isForFilter:N,ignoreSheet:u}))&&(delete o.themeFont,delete o.parentName):(o=t.getCompositeStyle(n,e,i,N,N,N,{hasTableStyle:r,ignoreSheet:u}))&&delete o.parentName,m&&o&&_(t,n,e,Q,i),o},function(t,n,e,i,r,o){var a,a,u,s,c,f,l,h,d,a,v;p&&g.jpe.get(n,e)||(w&&(a=i.formatter,(i=(i=t.getStyle(n,e))||new C.Style).formatter=a),b&&(u=(a=t.getCompositeStyle(n,e)).diagonalUp,s=a.diagonalDown,c=a.borderTop,f=a.borderBottom,l=a.borderLeft,h=a.borderRight,d=a.borderHorizontal,a=a.borderVertical,Object.assign(i,{diagonalUp:u,diagonalDown:s,borderTop:c,borderBottom:f,borderLeft:l,borderRight:h,borderHorizontal:d,borderVertical:a})),_(t,n,e,i,r),Z.Worksheet.et(t,"afterCopyMoveStyle",v={target:{sheet:t,row:n,col:e},source:o,isMove:m}))})},i.prototype.copyMoveValidator=function(){var t,s,a,u,c,f,l,h,d,v,n,e,i,r,r,r,g,o,m,t=this,s=t.src,a=t.srcRow,u=t.srcColumn,c=t.dest,f=t.copyRowCount,l=t.copyColumnCount,h=t.isMove,d=t.destRow,v=t.destColumn,n=s.b8.YB;for(e in n)(i=n[e])&&(r=i._S,h&&s===c&&r&&(r=r.some(function(t){return t.contains(a,u,f,l)&&!t.equals(new F.Range(a,u,f,l))}),i.Epe=r),r=i.condition())&&r.initExpression();h&&M(s,c)&&(g=new b.Common.rbush),this.Ope(o=function(t,n,e){var i,r,o,o,i=t.getDataValidator(n,e,3);return i&&(h&&(r=void 0,!i.Epe&&1===i._S.length&&M(s,c)&&((r=i._S[0]).isInner(a,u,f,l)?g.insert({minX:r.row+d-a,minY:r.col+v-u,maxX:r.row+d-a+r.rowCount-1,maxY:r.col+v-u+r.colCount-1,rc:r.rowCount,cc:r.colCount}):a===d&&ur.col&&u+l>=r.col+r.colCount?(o=r.colCount+v-u,g.insert({minX:r.row,minY:r.col,maxX:r.row+r.rowCount-1,maxY:r.col+o-1,rc:r.rowCount,cc:o})):u===v&&ar.row&&a+f>=r.row+r.rowCount?(o=r.rowCount+d-a,g.insert({minX:r.row,minY:r.col,maxX:r.row+o-1,maxY:r.col+r.colCount-1,rc:o,cc:r.colCount})):r=null),r?t.setDataValidator(r.row,r.col,r.rowCount,r.colCount,Q):t.setDataValidator(n,e,Q)),M(s,c))&&(i.ZB=!0),i},m=function(t,n,e,i){var r,o,a,u,r=!1;g&&0<(u=g.search({minX:n,minY:e,maxX:n,maxY:e})).length&&(i&&t.setDataValidator(u[0].minX,u[0].minY,u[0].rc,u[0].cc,i),r=!0),r||t.setDataValidator(n,e,i),M(s,c)&&i&&delete i.ZB},{copyPasteHeaders:0})},i.prototype.copyMoveComment=function(){var t,r,o,n,e,r=this.isMove,o=null==(t=this.options.pasteSpecialOptions)?void 0:t.skipBlanks,n,e;this.Ope(function(t,n,e){var t,i,t=t.Ut.pI,i=t&&t.get(n,e);return i&&r&&t.remove(n,e),i},function(t,n,e,i){var t;o&&!i||(t=t.Ut.pI)&&t.WB(n,e,i)},{copyPasteHeaders:0})},i.prototype.copyMoveMultiColumnPrecedents=function(){var h,t,n,h=this.isMove,t,n;this.Ope(function(t,n,e){var i,r,o,a,u,s,c,f,l,l,i=t.Rpe&&t.Rpe(),r=[],o=t.name();if(i)for(a=0,u=i.length;a=o&&r.maxRow!==1/0&&(r.maxRow=o-1),r.maxCol>=a&&r.maxCol!==1/0&&(r.maxCol=a-1),n=r.maxRow===1/0?-1:r.maxRow-r.minRow+1,e=r.maxCol===1/0?-1:r.maxCol-r.minCol+1,new A.Range(r.minRow,r.minCol,n,e)):N},Y.prototype.name=function(t){var n=this,e=n.parent;if(0===arguments.length)return n.Ut?n.Ut.getName():"";if($(t,e?e.sheets:null,n))return n.ub(t),e&&e.Xg(),n;throw m().Exp_NotSupported},Y.prototype.isSelected=function(t){return this.b2(t)},Y.prototype.b2=function(t,n){var e,i,r,o,a,u,e=this,i=e.parent,r=!!e.Ut&&e.Ut.Xj();return D(t)?r:(t!==r&&(o=e.name(),a=i&&i.Ese(o),u=void 0,n&&(u={oldValue:r,newValue:t,sheetName:o,propertyName:"isSelected",cancel:!1,sheetIndex:a,sheetPosition:i&&i.getSheetPosition(o)},i)&&i.ki(A.Events.SheetChanging,u),!n||u&&!1===u.cancel)&&(e.Ut.qj(t),i&&i.w2&&i.w2.repaint(),n)&&i&&i.ki(A.Events.SheetChanged,{oldValue:r,newValue:t,sheetName:o,propertyName:"isSelected",sheetIndex:a,sheetPosition:i&&i.getSheetPosition(o)}),e)},Y.prototype.Mtt=function(t){this.Ut.undo(t)},Y.prototype.VAe=function(){this.Ut.startTransaction()},Y.prototype.zAe=function(){return this.Ut.endTransaction()},Y.prototype.ub=function(t,n){var e,i,r,o,e=this,i=e.name(),r=e.parent;n||Y.et(e,"beforeSetName",{oldName:i,newName:t}),e.Ut.do("setName",t),r&&(o=r.sheetTabStyles.O2e[i],i!==t)&&o&&(r.sheetTabStyles.O2e[t]=o,r.sheetTabStyles.clear([i])),n||Y.et(e,"setName",{oldName:i,newName:t})},Y.prototype.addRows=function(t,n,e){this.ffe(t,n,e)},Y.prototype.ffe=function(t,n,e,i,r){var o,a,u,s,c;if(void 0===r&&(r=!0),(e=Vt(o=e=void 0===e?j.SheetArea.viewport:e))!==j.SheetArea.corner&&!(n<=0)){u=G(a=this,e),(t<0||u=d&&(v=d-1,g=o.getActiveColumnIndex(),(m=o.getSpan(v,g))&&(v=m.row,g=m.col),o.setActiveCell(v,g)),o.Ww=!0,Y.et(o,L,{changeType:u,row:t,oldValue:a,rowCount:n,sheetArea:e}),e===j.SheetArea.viewport&&o.tables&&o.tables.cL(!0,t),o.dj(t,r,u,n,a)}}finally{o.sL(!0,e),o.resumePaint()}}},Y.prototype.addColumns=function(t,n,e){void 0===e&&(e=j.SheetArea.viewport),this.r9e(t,n,e)},Y.prototype.r9e=function(t,n,e,i){var r,o,a,u,i;void 0===i&&(i=!0),(e=Yt(r=e=void 0===e?j.SheetArea.viewport:e))===j.SheetArea.corner||n<=0||(a=P(o=this,e),o.Dj(t=t<0||a=i&&(l=o.getActiveRowIndex(),(h=o.getSpan(l,i=i-1))&&(l=h.row,i=h.col),o.setActiveCell(l,i)),o.Zw=!0,Y.et(o,L,{changeType:u,col:t,oldValue:a,colCount:n,sheetArea:e}),e===j.SheetArea.viewport&&o.tables&&o.tables.cL(!1,t),o.vj(t,r,u,n,a),o.sL(!0,e),o.zw()}},Y.prototype.frozenColumnCount=function(t,n){var e=this;if(0===arguments.length)return e.fp;e.ame(t,n)},Y.prototype.ame=function(t,n,e){var i,r,o,i=this;0<=t&&(!D(n)&&"number"==typeof n||(n=0),r=i.yve,i.fp=t,0t&&e.frozenRowCount(t)):1===n&&e.Ut.do("setRowCount",t,n),Y.et(e,L,{changeType:"setRowCount",row:i,rowCount:t,sheetArea:n}),e.Ww=!0,e.ui>=t&&(3===n||2===n)&&e.setActiveCell(t-1,e.getActiveColumnIndex()),e.zw(),e.clearPendingChanges())},Y.prototype.setColumnCount=function(t,n,e){var i,r,e;t=S(t,10),g(t)||(r=(i=this).getColumnCount(n),t<0)||t===r||(D(n)&&(n=3),D(e)||(e=i.getUsedRange(e),D(e))||(-1===e.colCount&&(e.colCount=i.getColumnCount(n)),t=Math.max(t,e.col+e.colCount)),3===n||1===n?(i.Ut.do("setColumnCount",t,n),z(i)>t&&i.frozenColumnCount(t)):2===n&&i.Ut.do("setColumnCount",t,n),Y.et(i,L,{changeType:"setColumnCount",col:r,colCount:t,sheetArea:n}),i.Zw=!0,i.ci>=t&&(3===n||1===n)&&i.setActiveCell(i.getActiveRowIndex(),t-1),i.zw(),i.clearPendingChanges())},Y.prototype.getFreeAreaRowCount=function(t){var n;return this.Ut.getFreeAreaRowCount(t)},Y.prototype.getFreeAreaColumnCount=function(t){var n;return this.Ut.getFreeAreaColumnCount(t)},Y.prototype.setFreeAreaRowCount=function(t,n){var e;this.Ut.setFreeAreaRowCount(t,n)},Y.prototype.setFreeAreaColumnCount=function(t,n){var e;this.Ut.setFreeAreaColumnCount(t,n)},Y.prototype.w8=function(t){var n,e,i,r,o;if(!D(t)&&(n=t.rows,i=!1,this.filterRowsVisibleInfo)){if(r=this.filterRowsVisibleInfo.rowsVisibleInfo||{},n&&0=r.row&&a[i].row=r.col&&a[i].cola)for(u=new O.h9,c=s=o[0].col;ca)for(u=new O.h9,c=s=o[0].row;ce.getLastFullyVisibleColumn()&&n<=e.G6()){for(f=0,l=n,c=e.Fi(),h=e.Gy(c),(c=e.Ut.findSpan(t,l))&&(l=c.col+c.colCount-1);l>e.Ab&&!(h<(f+=e.nn(l)));)l--;d=c=void 0,d=u?(l===e.Ab&&fe.getLastFullyVisibleRow()&&t<=e.P6()){for(g=0,(c=e.Ut.findSpan(m=t,n))&&(m=c.row+c.rowCount-1),d=e.Fi(),p=e.Sy(d);m>e.Tb&&!(p<(g+=e.Gt(m)));)m--;t=s=void 0,t=u?(m===e.Tb&&g=G(a)||n<0||n>=P(a)||(u=a.parent&&a.parent.options.scrollByPixel,s=a.parent&&a.parent.options.scrollbarMaxAlign,c=a.S0(n),f=a.C0(t),l=a.getViewportTopRow(f),h=a.ly,d=a.getViewportLeftColumn(c),v=a.my,1===c&&D(o)&&(n=(i=a.rB(n,i,u,s)).col,o=i.offset),1===f&&D(r)&&(t=(i=a.oF(t,e,u,s)).row,r=i.offset),u=e=!1,1!==f||t===l&&r===h||(t=E(t,a.mw().Ky),a.Tb=t,a.ly=r,a.tw(),e=!0),1!==c||n===d&&o===v||(n=E(n,a.Mw().iw),a.Ab=n,a.my=o,a.ow(),u=!0),(e||u)&&((s=a.parent)&&!s.options.scrollbarShowMax&&(a.Zw=!0,a.Ww=!0),a.zw(),i=a.zoom(),e&&a.ki(A.Events.TopRowChanged,{sheet:a,sheetName:a.name(),oldTopRow:l,newTopRow:t,oldOffset:T(h/i),newOffset:T(r/i)}),u)&&a.ki(A.Events.LeftColumnChanged,{sheet:a,sheetName:a.name(),oldLeftCol:d,newLeftCol:n,oldOffset:T(v/i),newOffset:T(o/i)}))},Y.prototype.C0=function(t,n){var e=this;return J(n)?3:t=G(e)-H(e)?2:1},Y.prototype.S0=function(t){var n=this;return t=P(n)-U(n)?2:1},Y.prototype.oF=function(t,n,e,i){var r,o,a,u,s,c,f,l,h,d,v,g,i,n,m,p,i,r=this,o=r.Jt,a=r.C0(t),u=r.getViewportTopRow(a),s=r.ly,c=V(r),l=r.P6();if(0===n)if(i){for(h=l,f=r.getViewportHeight(a);c<=h;h--)if((f-=o.Gt(h))<0){t<=h?e||(s=0):(t=h,s=f);break}}else s=0;else if(1===n){if(v=d=!1,i){for(h=l,f=g=y(r.getViewportHeight(a)/2);c<=h;h--)if((f-=o.Gt(h))<0){h<=t&&(h--,f+=g,v=!0);break}if(v)for(;c<=h;h--)if((f-=o.Gt(h))<0){t=h,s=f,d=!0;break}}if(!d){for(f=y((r.getViewportHeight(a)-o.Gt(t))/2);cg[g.length-1].col||tm[m.length-1].row||lm[0].row?i.y+=c.Mf.PCn(f):f===m[0].row&&(i.y+=c.Mf.PCn(m[0].row))),a<=l&&lm[0].row&&(i.height-=c.Mf.PCn(o)),l=i.getRowCount()&&u=i.pw()&&t<=u&&(s||t!==r||n!==o)&&((s=i.parent)&&(n||t!==u||(n=a),s.ib&&s.ib.yy(i,t,n||0,e),i.tw()),s&&!s.options.scrollbarShowMax&&i.ew(),i.invalidateLayout())},Y.prototype.o9=function(t,n,e){var i,r,o,a,u,a,s,s,i=this,r=i.Ab,o=i.my,a=i.Mw(),u=a.iw,a=a.Xy,s=!D(e);(t=r>=i.getColumnCount()&&u=i.Sw()&&t<=u&&(s||t!==r||n!==o)&&((s=i.parent)&&(n||t!==u||(n=a),s.ib&&s.ib.wy(i,t,n||0,e),i.ow()),s&&!s.options.scrollbarShowMax&&i.aw(),i.invalidateLayout())},Y.prototype.JL=function(t,n,e){var i,r,o,a,u,s,c,u,s,s,u,c,u,c,u,f,l,s,u,h,i=this,r=t.row,o=t.col,a=t.hitTestType;return D(r)||D(o)?(s=!1,c=(u=i.Fi()).XAe(),!(s=!D(c)&&c.contains(n,e,!0)||(c=u.qAe(),!D(c)&&c.contains(n,e,!0))?!0:s)||(u=i.PTe(a),D(u))||(s=i.$Ae(a),D(s))?N:s.Bn(n,e,u,c,{sheet:i,row:r,col:o,sheetArea:a})):((s=3===t.rowViewportIndex)||((u=i.getSpan(r,o,a))&&(r=u.row,o=u.col),i.Cb&&(c=i.Cb.D7(r,o,a))&&(r=c.row,o=c.col)),u={},s&&(u.rowSpacingIndex=t.rowSpacingIndex,u.isAfterRowSpacing=t.isAfterRowSpacing),c=i.Il(r,o,a,_,u),u=1===a?-1:_,f=2===a?-1:_,l={needAutoMerge:!0},s&&(l.rowSpacingIndex=t.rowSpacingIndex,l.isAfterRowSpacing=t.isAfterRowSpacing),s=i.getCellRect(r,o,u,f,l),u={sheet:i,row:r,col:o,sheetArea:a,rowSpacingIndex:t.rowSpacingIndex,isAfterRowSpacing:t.isAfterRowSpacing},(h=c.cellType||i.$f(a)).Bn(n,e,c,s,u))},Y.prototype.bC=function(){this.unbindAll(),this.E3()},Y.prototype.dA=function(t,n,e){for(var t,i,r,o,a,u,s,c,f,u,f,f,t=this.JS(t),i=t.row,r=t.col,o=i+t.rowCount,a=r+t.colCount,s=i;st-1?e.splice(i,1):r.row+r.rowCount-1>t-1&&(r.rowCount=t-1-r.row+1))},T.prototype.DP=function(t,n){var e,i,r;for(void 0===n&&(n=b.SheetArea.viewport),i=(e=this.SP).length-1;0<=i;i--)-1!==(r=e[i].range).col&&m(e[i].sheetArea,n,!1)&&(r.col>t-1?e.splice(i,1):r.col+r.colCount-1>t-1&&(r.colCount=t-1-r.col+1))},T.prototype.toJSON=function(){return this.SP.map(function(t){var n=t.range;return{range:{row:n.row,col:n.col,rowCount:n.rowCount,colCount:n.colCount},direction:t.direction,mode:t.mode,sheetArea:t.sheetArea,selectionMode:t.selectionMode}})},T.prototype.fromJSON=function(t){var n,e,i,r,o,a;if(t)for(n=this.SP,e=0,i=t;e=n)&&u.repaint(u.getRangeRect(1,1,o)),(-1===o.col||o.col+o.colCount>e)&&u.repaint(u.getRangeRect(1,2,o))):a===b.SheetArea.rowHeader&&(o=u.Fi(),u.repaint(o.B1(1)))}),u.bind(b.Events.LeftColumnChanged+"."+o,function(){var t,n,e,i,r,o,a,o,o,t=s.all();if(0=n)&&u.repaint(u.getRangeRect(1,1,o)),(-1===o.row||o.row+o.rowCount>e)&&u.repaint(u.getRangeRect(2,1,o))):a===b.SheetArea.colHeader&&(o=u.Fi(),u.repaint(o.L1(1)))})},dispose:function(t){!1!==t.clearCache&&(this.Cb=C,this.unbind(b.Events.TopRowChanged+"."+o),this.unbind(b.Events.LeftColumnChanged+"."+o))},onLayoutChanged:function(t){var n,e,i,r,o,t,a,n=t.changeType,e=t.row,i=t.rowCount,r=t.col,o=t.colCount,t=t.sheetArea,a=this.Ut;"addRows"===n?a.jP(e,i,t):"deleteRows"===n?a.OP(e,i,t):"addColumns"===n?a.RP(r,o,t):"deleteColumns"===n?a.BP(r,o,t):"setRowCount"===n?a.LP(i,t):"setColumnCount"===n&&a.FP(o,t),"invalidateLayout"===n&&this.My<=0&&this.Cb.IP()},toJson:function(t,n){var e,i,e;n&&n.ignoreStyle||(i=this.Cb,t.autoMergeRangeInfos=i.toJSON(),n&&n.includeAutoMergedCells&&(i.IP(!0,!0),A(i,t)))},fromJson:function(t,n,e){var i;e&&e.ignoreStyle||this.Cb.fromJSON(t.autoMergeRangeInfos)},wh:function(t,n,e){var i,r,o,e,i;e&&!1===e.includeStyles||(t.lossless.autoMerge={},r=this.Cb,t.lossless.autoMerge.autoMergeRangeInfos=r.toJSON(),o=r.Mf.NMi,e&&e.includeAutoMergedCells&&!o&&(e={},r.IP(!0,!0),A(r,e),x(e,t)))},yh:function(t,n,e){var i;e&&!1===e.includeStyles||!t.lossless||!t.lossless.autoMerge||this.Cb.fromJSON(t.lossless.autoMerge.autoMergeRangeInfos)}}),b.Workbook.ch(o,{onCultureChanged:function(){c()}}),b.GC$.extend(b.Worksheet.prototype,{autoMerge:function(t,n,e,i,r){void 0===n&&(n=l.column),void 0===e&&(e=w.free),void 0===i&&(i=b.SheetArea.viewport),void 0===r&&(r=h.source);var o=this.Cb;if(0===arguments.length)return o.all();t&&(this.Ut._P(),n===l.none?o.remove(t,i):o.add(t,n,e,i,r),this.zw())}})},"./dist/plugins/autoMerge/autoMerge.res.en.js":function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Exp_RangeIsIntersected=void 0,n.Exp_RangeIsIntersected="The range should not intersect with exsit ranges."},"./dist/plugins/cellState/cellStateManager.js":function(t,n,e){"use strict";var o,a,i,b,w,e,f,i,y,r,u,n,s;function c(t){var n=t.row,e=t.col,i=t.rowCount,t=t.colCount;return new b.Range(n,e,i,t)}function l(t,n){this.Mf=t,this.Kh=n,this.cE=[];for(var e=1;e<=3;e++)this.PP(e)}function h(t){this.Mf=t,this.GP={}}function d(n,t,e){var i=[],r=n.getRowCount(3),o=n.getColumnCount(3);return t.forEach(function(t){i=i.concat(m(n,t.style,t.range,e,r,o))}),i}function v(t){for(var n,e,i,r,o,e,a,u,s,c,e,n=[],i=0,r=t.length;i=parseFloat(e.style.width)&&(t.x=parseFloat(e.style.width)-1),Nt(u(t,!0),!0,e)},e.addEventListener("mouseleave",n)}function ft(t,n,e,i,r,o,a,u,s,c,f,l){var n,h,d,e,v,g,m,p,n=U(n,e,a,u,!0,[t]);if(0r.x+r.width||n+ir.y+r.height))return t+e>r.x+r.width&&(e=r.x+r.width-t),n+i>r.y+r.height&&(i=r.y+r.height-n),te.y+e.height&&(h.y=v(h.y-(h.y+h.height-e.y-e.height),e.y))),l=(u=f.getImage(a)).width,i=u.height,T.mt.Tt.msie&&n.imageType&&(i=n.imageType===T.ButtonImageType.custom?(g[a]||(u.style.position="absolute",u.style.left="-10000px",u.style.top="-100000px",document.body.appendChild(u),g[a]={width:u.width,height:u.height},document.body.removeChild(u)),l=g[a].width,g[a].height):l=12),s&&T.mt.Tt.msie&&h.x+h.width>s.x+s.width?0<(e=s.x+s.width-h.x)&&t.drawImage(u,0,0,e*(d=l/(r*c)),i,h.x,h.y,e,o*c):t.drawImage(u,0,0,l,i,h.x,h.y,r*c,o*c)):f.addImage(a),t.restore()}function G(t,n,e,i){var r,o,n,a,u,e;return void 0===i&&(i=!0),r=B(e)?e.printZoomFactor:e.sheet.zoom(),o=2*A+3,C(t.width)?(n=N.Bt(x,t.caption,n,r,e),a=t.useButtonStyle,(u=Ot(t,e.row))&&(n=Ct(t)+n,o=(a?o:0)+K),i?(n+o+7)*r:n+o+7):(e=v(1,t.width),isNaN(e)&&(e=1),i?e*r:e)}function Mt(t,n,e){var i,r,i,n,t;return void 0===e&&(e=!0),i=n.sheet,r=B(n)?n.printZoomFactor:i.zoom(),i=i.getRowHeight(n.row),n=t.imageSize?t.imageSize.height:x,t=v(1,n||i),isNaN(t)&&(t=1),e?t*r:t}function U(t,n,e,i,r,o){var a,u,s,c,f,l,a=[];if(!n||0===n.length)return[];for(u=!1,s=t.Ut.getValueForKey(e,i,h),t.getActiveRowIndex()===e&&t.getActiveColumnIndex()===i&&!0!==s&&(u=!0),c=0;cf&&(u=l.left+r-f),l.top+o>c&&(a=l.top+o-c)):(c=(l=t.sfe).clientHeight,f=l.clientWidth,c=i.getRowCount(o)||r<0||r>=i.getColumnCount(o))return!1;if(i.showCell(t,r,S.VerticalPosition.nearest,S.HorizontalPosition.nearest),s=i.getCellRect(t,r,a=1===o?-1:void 0,u=2===o?-1:void 0),i.parent&&!i.parent.options.scrollByPixel&&!i.isEditing()){if(0<(c=i.frozenColumnCount())&&c<(f=i.getViewportLeftColumn(1))&&(l=i.getSpan(t,r,o))&&l.col<=f&&f\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n x\n \n 2\n
\n
\n \n 1\n \n \n \n x\n \n
\n
\n
\n
\n
\n
CE
\n
C
\n
BS
\n
\n
\n
\n
\n
7
\n
8
\n
9
\n
\n
\n
\n
\n
4
\n
5
\n
6
\n
\n
\n
\n
\n
1
\n
2
\n
3
\n
\n
\n
\n
\n
\n
\n
0
\n
.
\n
\n
\n
\n
\n
OK
\n
\n
\n
\n
\n\n',f=Math.floor,l=Math.abs,h=Math.pow,d=Math.round,v=Math.sqrt,g=Math.max,m=new Array("0","1","2","3","4","5","6","7","8","9","+/-",".","+","-","*","/","SQRT","%","1/x","=","MC","MR","MS","M+","BS","CE","C","POW"),x.Init=function(){var t;x.GetBrowserType(),x.IsIE=void 0!==x.ie||void 0!==x.edge},x.GetBrowserType=function(){try{var t=navigator.userAgent.toLowerCase();window.ActiveXObject?x.ie=t.match(/msie ([\d.]+)/)[1]:-1!==t.indexOf("edge")?x.edge=t.match(/edge\/([\d.]+)/)[1]:-1!==t.indexOf("firefox")&&(x.firefox=t.match(/firefox\/([\d.]+)/)[1]),-1!==t.indexOf("rv:")&&-1===t.indexOf("firefox")&&(x.ie=t.match(/rv:([\d.]+)/)[1])}catch(t){}},(p=x).Init(),A.IsErrorText=function(t){return t===s().Calculator_DivideByZeroInfo||t===s().Calculator_InvalidInputInfo||t===s().Calculator_SqrtParameterException||t===s().Calculator_OverFlowInfo},b=A,n.CalculatorErrorInfo=b,I.IsDotContained=function(t){var n;return-1!==(t+"").indexOf(".")},I.GetDotPosition=function(t){var n,e,i,n=t+"",e=0,i=0;for(i=n.length;0t.clientWidth)},k.prototype.aH=function(t){var n=T(t);t.style.fontSize="".concat(n-1,"px")},k.prototype.uH=function(t){for(var n,e,n=this,e=T(t);!n.oH(t)&&ethis.eraMax)},D.addMilliseconds=function(t,n){var t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());return t.setMilliseconds(t.getMilliseconds()+n),new Date(t.valueOf())},D.getEraDate=function(t){var n,e,i,n={era:-1,eraYear:-1};if(D.isValidEraDate(t))for(e=0;ef.start&&(st):(e=this.selectedDate,i=this.focusDate,n.selected=e&&e.getMonth()===t&&e.getFullYear()===i.getFullYear(),n.focused=i&&i.getMonth()===t),this.monthItems.push(n)},_.prototype.updateYearItems=function(){var t,n,e;for(this.yearItems=[],t=this.focusDateYearRangeStart-1;t<=this.focusDateYearRangeEnd+1;t++)n=new Ot(t),this.owner.A1e?(e=this.T1e,n.selected=e.start.getFullYear()===t||e.end.getFullYear()===t,n.focused=e.start.getFullYear()t):(n.selected=this.selectedDate&&this.selectedDate.getFullYear()===t,n.focused=this.focusDate&&this.focusDate.getFullYear()===t,n.disabled=tthis.focusDateYearRangeEnd),this.yearItems.push(n)},_.prototype.updateYearRange=function(){this.focusDateYearRangeStart=10*Math.floor(this.focusDate.getFullYear()/10),this.focusDateYearRangeEnd=this.focusDateYearRangeStart+9},_.prototype.getShortWeekName=function(t){var n,e,n,e;return N.resource.shortWeeks[t=(this.owner.dH+t-1)%7]},_.prototype.getCurrentMonthName=function(){var t=this.focusDate.getMonth();return _.getMonthName(t)},_.prototype.updateCalendarData=function(t){t?(this.T1e=t.selectedDateRange,this.S1e=t.oldSelectedDateRange,this.E1e=t.hoverDate):this.RangeCalendar.notifyCalendarData({selectedDateRange:this.T1e,oldSelectedDateRange:this.S1e,hoverDate:this.E1e})},Lt=_,Ut=F.EventBase,e(O,Ut),Object.defineProperty(O.prototype,"host",{get:function(){return this.jS.getContainer()},enumerable:!1,configurable:!0}),O.prototype.createCalendarDom=function(){var t,n,e,i,r,i,t,t=this.jS;return this.mH=new _t,n=j("div"),this.jS.A1e?n.className=c+" "+H:n.classList.add(c),t.HG?n.classList.add(z):n.classList.add(W),e=j("table"),i=j("tr"),(r=j("td")).classList.add(X),t.HG&&r.classList.add(q),r.appendChild(this.gH()),i.appendChild(r),e.appendChild(i),n.appendChild(e),t.HG&&(i=j("tr"),t=j("td"),r.appendChild(this.pH()),r.appendChild(this.bH()),t.appendChild(this.yH()),t.appendChild(this.wH()),i.appendChild(t),e.appendChild(i)),this.mH.outerContainerDiv=n},O.prototype.wH=function(){var t,n,t=j("div");return t.classList.add(Z),(n=j("button")).textContent=g().OK,n.className=x+" "+Tt+" "+St,t.appendChild(n),this.mH.okButton=n,t},O.prototype.pH=function(){var t=j("div");return t.classList.add($),t},O.prototype.yH=function(){var t=j("div");return t.classList.add(tt),t},O.prototype.gH=function(){var t=j("div");return t.className=V+" "+ut+" "+st,t.tabIndex=0,t.appendChild(this.MH()),t.appendChild(this.CH()),t.appendChild(this.SH()),this.mH.dateContainerDiv=t},O.prototype.MH=function(){var t=j("div");return t.classList.add(nt),t.appendChild(this.TH()),t.appendChild(this.AH()),t},O.prototype.TH=function(){var t,n,e,i,r,r,o,a,a,t=j("div");return t.className=m+" "+w+" "+T,(n=j("div")).className=y+" "+T+" "+ct+" "+Ct,(e=j("div")).classList.add(M),(i=j("button")).className=x+" "+C,i.title=g().Calendar_LastTenYear,i.setAttribute("type","button"),(r=j("div")).classList.add(p),i.appendChild(r),(r=j("span")).classList.add(M),(o=j("button")).className=x+" "+C,o.title=g().Calendar_NextTenYear,o.setAttribute("type","button"),(a=j("div")).classList.add(b),o.appendChild(a),n.appendChild(i),n.appendChild(r),n.appendChild(o),(a=this.mH.calendarYearSection).headerDiv=t,a.lastYearRangeButton=i,a.focusDateYearRangeName=r,a.nextYearRangeButton=o,t.appendChild(n),t},O.prototype.AH=function(){var t,n,t=j("table");return t.className=f+" "+S,(n=j("div")).appendChild(t),this.mH.calendarYearSection.currentYearRangeTable=t,this.IH(),n},O.prototype.IH=function(){for(var t,n,e,i,r,o,a,t=this.mH.calendarYearSection,n=j("tbody"),e=0;e<3;e++){for(i=j("tr"),r=0;r<4;r++)(o=j("td")).setAttribute(xt,(4*e+r).toString()),(a=j("span")).classList.add(ft),a.setAttribute(xt,(4*e+r).toString()),a.innerText=(4*e+r+1).toString(),o.appendChild(a),i.appendChild(o),t.yearTds.push(o);n.appendChild(i)}t.currentYearRangeTable.appendChild(n)},O.prototype.CH=function(){var t=j("div");return t.classList.add(it),t.appendChild(this.xH()),t.appendChild(this.NH()),t},O.prototype.xH=function(){var t,n,e,i,r,r,o,a,a,t=j("div");return t.className=m+" "+w+" "+T,(n=j("div")).className=y+" "+T+" "+ct+" "+Ct,(e=j("div")).classList.add(M),(i=j("button")).className=x+" "+C,i.title=g().Calendar_LastYear,i.setAttribute("type","button"),(r=j("div")).classList.add(p),i.appendChild(r),(r=j("span")).className=K+" "+M,(o=j("button")).className=x+" "+C,o.title=g().Calendar_NextYear,o.setAttribute("type","button"),(a=j("div")).classList.add(b),o.appendChild(a),n.appendChild(i),n.appendChild(r),n.appendChild(o),(a=this.mH.calendarMonthSection).headerDiv=t,a.lastYearButton=i,a.currentYearName=r,a.nextYearButton=o,t.appendChild(n),t},O.prototype.NH=function(){var t,n,t=j("table");return t.className=f+" "+S,(n=j("div")).appendChild(t),this.mH.calendarMonthSection.currentYearTable=t,this.kH(),n},O.prototype.kH=function(){for(var t,n,e,i,r,o,a,t=this.mH.calendarMonthSection,n=j("tbody"),e=0;e<3;e++){for(i=j("tr"),r=0;r<4;r++)(o=j("td")).setAttribute(At,(4*e+r+1).toString()),(a=j("span")).classList.add(ft),a.setAttribute(At,(4*e+r+1).toString()),a.innerText=(4*e+r+1).toString(),o.appendChild(a),i.appendChild(o),t.monthTds.push(o);n.appendChild(i)}t.currentYearTable.appendChild(n)},O.prototype.SH=function(){var t=j("div");return t.classList.add(rt),t.appendChild(this._H()),t.appendChild(this.EH()),t.appendChild(this.jH()),this.jS.A1e||t.appendChild(this.OH()),t},O.prototype._H=function(){var t,n,e,i,r,r,o,a,a,u,s,c,f,l,h,d,v,c,t=j("div");for(t.className=m+" "+w+" "+T,(n=j("div")).className=y+" "+T+" "+ct+" "+Ct,(e=j("div")).classList.add(M),(i=j("button")).className=x+" "+C,i.title=g().Calendar_LastMonth,i.setAttribute("type","button"),(r=j("div")).classList.add(p),i.appendChild(r),(r=j("span")).className=K+" "+M,(o=j("button")).className=x+" "+C,o.title=g().Calendar_NextMonth,o.setAttribute("type","button"),(a=j("div")).classList.add(b),o.appendChild(a),n.appendChild(i),n.appendChild(r),n.appendChild(o),(a=j("div")).className=et+" "+Mt,(u=j("div")).classList.add(at),(s=j("select")).classList.add(ot),f=(c=new Date).getFullYear()-this.lH,l=c.getFullYear()+this.fH,h=f;h<=l;h++)(d=j("option")).text=h.toString(),d.value=h.toString(),s.options.add(d);return(v=j("div")).classList.add(at),u.appendChild(s),a.appendChild(u),t.appendChild(a),t.appendChild(n),(c=this.mH.calendarDaySection).headerDiv=t,c.lastMonthButton=i,c.currentMonthName=r,c.nextMonthButton=o,c.yearSelect=s,t},O.prototype.EH=function(){var t,n,e,i,r,o,a,t=j("div");for(t.className=Q+" "+w+" "+T,(n=j("table")).className=f+" "+S,e=j("thead"),i=j("tr"),r=0;r<7;r++)(o=j("th")).setAttribute(It,r.toString()),(a=j("span")).classList.add(lt),a.setAttribute(It,r.toString()),a.innerText=this.jS._data.getShortWeekName(r),o.appendChild(a),i.appendChild(o),this.mH.calendarDaySection.weekThs.push(o);return e.appendChild(i),n.appendChild(e),t.appendChild(n),t},O.prototype.jH=function(){var t,n,e,i,r,o,a,u,s,c,t=this.mH.calendarDaySection,n=j("div"),e=j("div"),i=j("table");for(i.className=f+" "+S,r=j("tbody"),o=0;o<6;o++){for(a=j("tr"),u=0;u<7;u++)(s=j("td")).setAttribute(A,(7*o+u).toString()),(c=j("span")).classList.add(ft),c.setAttribute(A,(7*o+u).toString()),s.appendChild(c),a.appendChild(s),t.dayTds.push(s);r.appendChild(a)}return i.appendChild(r),e.appendChild(i),n.appendChild(e),t.dayContentTable=i,n},O.prototype.OH=function(){var t,n,e,i,r,o,t=j("div");return t.classList.add(J),(n=j("table")).classList.add(f),e=j("tbody"),i=j("tr"),r=j("td"),(o=j("i")).className=ht+" "+yt,o.innerText=N.resource.today,r.appendChild(o),i.appendChild(r),e.appendChild(i),n.appendChild(e),t.appendChild(n),this.mH.calendarDaySection.todayTd=r,this.mH.calendarDaySection.todayTable=n,t},O.prototype.bH=function(){var n,t,n=this,t=j("div");return t.className=Y+" "+ut+" "+st,t.tabIndex=0,this.mH.timeContainerDiv=t,this.RH=new B.TimePicker(t),this.RH.setOptions({step:{minute:30},height:260}),this.RH.on(o.BaseDropdown.Event_ValueChanged,function(t){n.BH(t)}),t},O.prototype.updateCalendarDom=function(){this.LH(),this.jS.HG&&this.FH()},O.prototype.LH=function(){switch(this.jS._data.calendarPage){case u.CalendarPage.year:this.PH();break;case u.CalendarPage.month:this.GH();break;case u.CalendarPage.day:this.UH()}},O.prototype.HH=function(){var t,n,e,i,r,o,t,a,u,a,t,n,s,c,f,t=this.jS._data,n=this.mH.calendarDaySection,e=!1;for(n.currentMonthName.innerText=t.getCurrentMonthName(),i=t.focusDate.getFullYear(),r=n.yearSelect,o=0;oc.getFullYear()?r.options[o].disabled=!0:r.options[o].disabled=!1;s.getFullYear()===c.getFullYear()&&s.getMonth()>=c.getMonth()-1?(t.disabled=!0,t.classList.add(l)):(t.disabled=!1,t.classList.remove(l))}else if(2===n){for(o=0;ot.start)&&(n.E1e=e),n.updateCalendarData(),this.RangeCalendar.updateRangeCalendarDom()))},O.prototype.fz=function(){var t,n,n,e,t=this.jS,n=t._data.selectedDate,n=n?new Date(n.valueOf()):null,e=new Date;n&&(e.setHours(n.getHours()),e.setMinutes(n.getMinutes()),e.setSeconds(0)),t._data.selectedDate=e,t._data.focusDate=new Date(e.valueOf()),this.LH(),t.HG||this.oz()},O.prototype.hz=function(t){var t=t.srcElement||t.target;t&&(this.jS._data.focusDate.setFullYear(+t.value),this.jS.A1e?(this.RangeCalendar.checkFocusDateValid(),this.RangeCalendar.updateRangeCalendarDom()):this.LH())},O.prototype.attachTimeEvent=function(){var n=this;this.mH.timeContainerDiv.addEventListener("click",function(t){n.setCalendarActivePart(I.Time)}),this.mH.okButton.addEventListener("click",function(t){n.oz()})},O.prototype.BH=function(t){var n,e,t,n=this.jS._data,e=n.selectedDate?new Date(n.selectedDate.valueOf()):new Date,t=t.value;e.setHours(t.getHours()),e.setMinutes(t.getMinutes()),e.setSeconds(t.getSeconds()),n.selectedDate=e,n.focusDate=new Date(e.valueOf())},O.prototype.oz=function(){var t=this.jS._data;this.fire(o.BaseDropdown.Event_ValueChanged,{oldValue:t.oldSelectedData,newValue:t.selectedDate}),t.oldSelectedData=t.selectedDate},O.prototype.showCalendarPage=function(t){var n,e,i,n=this.host.querySelector("."+nt),e=this.host.querySelector("."+it),i=this.host.querySelector("."+rt);switch(n.style.display="none",e.style.display="none",i.style.display="none",t){case u.CalendarPage.year:n.style.display="";break;case u.CalendarPage.month:e.style.display="";break;case u.CalendarPage.day:i.style.display=""}this.jS._data.calendarPage=t,this.updateCalendarDom()},O.prototype.setCalendarActivePart=function(t){switch(this.jS._data.calendarActivePart=t,this.mH.dateContainerDiv.classList.remove(r),this.jS.HG&&this.mH.timeContainerDiv.classList.remove(r),t){case I.Date:this.jS.HG&&this.mH.dateContainerDiv.classList.add(r),this.mH.outerContainerDiv.focus();break;case I.Time:this.jS.HG&&this.mH.timeContainerDiv.classList.add(r),this.mH.outerContainerDiv.focus()}},O.Event_GetHost="GetHost",Ft=O,Ht=o.BaseDropdown,e(E,Ht),E.prototype.setOptions=function(t){var n,t;t&&(t.showTime||this.A1e||(this.HG=t.showTime,this.Ti.innerHTML="",this.Ti.appendChild(this.Dn.createCalendarDom()),this.Dn.attachEvent()),n=t&&t.calendarPage?t.calendarPage:u.CalendarPage.day,(t=t&&t.startDay?t.startDay:u.CalendarStartDay.saturday)!==this.dH&&(this.dH=t,this.Ti.innerHTML="",this.Ti.appendChild(this.Dn.createCalendarDom()),this.Dn.attachEvent()),this.Dn.showCalendarPage(n),this.Dn.setCalendarActivePart(I.Date))},E.prototype.setValue=function(t){var n=this._data;if(t){if(this.A1e&&t instanceof Object){if(!t.start||!t.end)return;n.S1e={start:t.start,end:t.end},n.T1e={start:t.start,end:t.end},n.updateCalendarData()}else t instanceof Date&&(n.selectedDate=t,n.oldSelectedData=new Date(t.valueOf()),n.focusDate=new Date(t.valueOf()),n.updateYearRange());n.updateDayFocusDate()}},E.prototype.scrollToSelect=function(){this.Dn.updateCalendarDom()},Bt=E,t.Calendar=Bt,zt=o.BaseDropdown,e(R,zt),R.prototype.setOptions=function(t){s(t.showBuiltInDateRange)&&(t.showBuiltInDateRange=!0),t.showTime=!1,t.calendarPage=u.CalendarPage.day,this.R1e.setOptions(t),this.B1e.setOptions(t)},R.prototype.setValue=function(t){this.R1e.setValue(t),this.B1e.setValue(t),this.updateRangeCalendarDom()},R.prototype.updateRangeCalendarDom=function(){this.R1e.Dn.updateCalendarDom(),this.B1e.Dn.updateCalendarDom(),this.updateDataRangeResult(this.T1e)},R.prototype.L1e=function(){var t,i,t=k.getBuiltInDateRanges(),i=j("div");return i.className=c+" "+vt,t.forEach(function(t,n){var e,n,e=j("div");e.className=dt,e.setAttribute(Nt,n+""),n=P.createTextNode(t[0]),e.appendChild(n),i.appendChild(e)}),this.P1e=i},R.prototype._1e=function(t){var n,e,e;this.Ti.innerHTML="",(n=j("div")).className=c+" "+U,t&&!1===t.showBuiltInDateRange||n.appendChild(this.L1e()),(e=j("div")).classList.add(G),this.R1e=new Bt(e,t,this,1),n.appendChild(e),(e=j("div")).classList.add(G),this.B1e=new Bt(e,t,this,2),n.appendChild(e),this.Ti.appendChild(n),this.Ti.appendChild(this.G1e())},R.prototype.aY=function(){var n=this;this.P1e&&this.P1e.addEventListener("click",function(t){n.U1e(t)}),this.H1e.addEventListener("click",function(t){n.onOkButtonClick(t)}),this.z1e.addEventListener("click",function(t){n.onCancelButtonClick(t)}),this.on(Ft.Event_GetHost,function(t){t.host=n.Ti})},R.prototype.G1e=function(){var t,n,n,e,n,e,t=j("div");return t.className=gt,(n=j("div")).classList.add(wt),t.appendChild(n),this.V1e=n,this.updateDataRangeResult(this.T1e),(n=j("div")).className=bt,(e=j("button")).textContent=g().Cancel,e.className=mt,n.appendChild(e),t.appendChild(n),this.z1e=e,(n=j("div")).className=bt,(e=j("button")).textContent=g().OK,e.className=mt,n.appendChild(e),t.appendChild(n),this.H1e=e,t},R.prototype.U1e=function(t){var t,t,n,t,t=t.srcElement||t.target;t&&(t=t.getAttribute(Nt),s(t)||(t=(n=k.getBuiltInDateRanges())[t],this.T1e={start:t[1].start,end:t[1].end},this.notifyCalendarData(),this.fire(o.BaseDropdown.Event_ValueChanged,{text:k.getShortDate(this.T1e)})))},R.prototype.updateDataRangeResult=function(t){var n,e,i,r,r;if(t&&t.start instanceof Date&&t.end instanceof Date&&(this.V1e.innerHTML="".concat(t.start.toLocaleDateString("en-US"),"-").concat(t.end.toLocaleDateString("en-US"))),this.P1e)for(n=k.getBuiltInDateRanges(),e=0;ethis.MU.stopYear&&(i=this.MU.stopYear),"number"==typeof e&&(t=n.Ti.querySelector("[".concat(g,"='").concat(i,"-").concat(e,"']")))&&(t.classList.add(v),n.Wz&&n.Wz.classList.remove(v),n.Wz=t)},M.prototype.scrollToSelect=function(){var t,t,t=this.Wz;t&&(t=t.offsetTop,this.Ti.scrollTop=t)},M.prototype.Qz=function(t,n){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){for(var n=(this.document||this.ownerDocument).querySelectorAll(t),e=n.length;0<=e&&n.item(e)!==this;)--e;return-1=n&&(c.row+=e)}function k(t,n,e){var i,r,o,a,u,s,c,f;if(t)for(i in t)if(t.hasOwnProperty(i)&&(r=t[i]))for(o in r)if(r.hasOwnProperty(o)&&(a=r[o])){for(u=[],s=0,c=a;s=n&&(c.col+=e)}function D(t,n,e){var i,r,o,a,u,s,c,f;if(t)for(i in t)if(t.hasOwnProperty(i)&&(r=t[i]))for(o in r)if(r.hasOwnProperty(o)&&(a=r[o])){for(u=[],s=0,c=a;sh&&m&&(i=y.DropDownDirection.Down);break;case y.DropDownDirection.Down:e.height>d&&m&&(i=y.DropDownDirection.Up);break;case y.DropDownDirection.Left:e.width>v&&p&&(i=y.DropDownDirection.Right);break;case y.DropDownDirection.Right:e.width>g&&p&&(i=y.DropDownDirection.Left)}switch(w=b=0,i){case y.DropDownDirection.Up:w=f-e.height;break;case y.DropDownDirection.Down:w=l;break;case y.DropDownDirection.Left:b=s-e.width;break;case y.DropDownDirection.Right:b=c}return i===y.DropDownDirection.Up||i===y.DropDownDirection.Down?r===y.DropDownAlignment.Near?b=s:r===y.DropDownAlignment.Center?b=s-(e.width-n.width)/2:r===y.DropDownAlignment.Far&&(b=c-e.width):i!==y.DropDownDirection.Right&&i!==y.DropDownDirection.Left||(r===y.DropDownAlignment.Near?w=f:r===y.DropDownAlignment.Center?w=f-(e.height-n.height)/2:r===y.DropDownAlignment.Far&&(w=l-e.height)),n=new C(b,w,e.width,e.height),o&&(n.width>t.width?n.x=0:(n.x=Math.max(n.x,0),n.x=Math.min(n.x,t.width-n.width))),a&&(n.height>t.height?n.y=0:(n.y=Math.max(n.y,0),n.y=Math.min(n.y,t.height-n.height))),n.Offset(u),n.Location},f.prototype.render=function(){var n=this;this.aV?(this._oldPosition=this.sourceElement.style.position,this.sourceElement.style.position="absolute",this.uV=this.sourceElement.style.display,this.sourceElement.style.display="",this.sourceElement.style.zIndex="10000",this.sourceElement.classList.add(r),this.cV=this.sourceElement):(this.sV=document.createElement("div"),this.sV.style.cssText="position:absolute; z-index:10000; box-shadow:rgba(0, 0, 0, 0.4) 2px 4px 5px; outline:none",this.sV.classList.add(r),this.sV.appendChild(this.sourceElement),this.MU.hostElement.appendChild(this.sV),this.cV=this.sV),this.MU.Oue&&setTimeout(function(){var t;n.cV&&(t=n.cV.querySelector("[role=menu],[role=listbox]"))&&t.focus()},500)},f.prototype.bindEvent=function(){var n=this;this.MU.closeAfterClickOutside&&(document.addEventListener("mousedown",this.globalMousedownEventHandler,!0),"touchstart MSPointerDown pointerdown".split(" ").forEach(function(t){document.addEventListener(t,n.globalMousedownEventHandler,!0)})),this.MU.closeAfterResize&&document.addEventListener("resize",this.windowResizeEventHandler)},n.PopupControl=f},"./dist/plugins/celltype/editor/slider.js":function(t,n,e){"use strict";var i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,y,M,C;function S(t){return document.createElement(t)}function T(t){var n=t.toExponential().match(/\d(?:\.(\d*))?e([+-]\d+)/);return t.toFixed(f(0,(n[1]||"").length-parseInt(n[2],10)))}function x(t){var t,n,t=T(t||0),n=0;return n=0<=t.indexOf(".")?t.length-t.indexOf(".")-1:n}function A(){}function I(t,n){this.Wc=n,this.fV={},this.fV=d.extend(this.fV,t)}function N(t,n){this.Wc=n,this.lV={},this.lV=d.extend(this.lV,t)}function k(t,n){this.Wc=t,this.hV={},this.dV="",this.hV=d.extend(this.hV,n),this.dV='\n
\n
\n
\n
{{value}}
\n
\n
\n ')}function j(t,n){this.Wc=n,this.vV={},this.mV=!1,this.gV=c,this.isSelected=!1,this.yme=c,this.vV=d.extend(this.vV,t),this.gV=new m(this.Wc,this.pV())}function D(t,n){this.Wc=n,this.bV={},this.bV=d.extend(this.bV,t)}function _(t,n,e,i,r){this.Wc=t,this.yV=n,this.wV=e,this.endHandle=i,this.MU=r,this.MV=c,this.CV=c,this.MV=new g(this.SV(),this.Wc),this.CV=new b(this.TV(),this.Wc)}function O(t,n){var i=C.call(this,t)||this;return i.yV=c,i.wV=c,i.Y1e=c,i.Z1e=c,i.AV=c,i.Mme=function(t){var t,t,t;d.pauseEvent(t),t=i.AV.getKeyboardValueMutator(t),d.isEmpty(t)||(t=t(i._V.value),(t=i.AV.trimAlignValue(t))!==i._V.value&&(i.setValue(t),i._V.onChange(t),i._V.onAfterChange(t),i.fire(r.BaseDropdown.Event_ValueChanged,{value:t,text:t.toString(),notCloseDropDown:!0})))},i.IV=function(t){0===t.button&&(document.addEventListener("mouseup",i.xV,!1),document.addEventListener("pointerup",i.xV,!1),document.addEventListener("MSPointerUp",i.xV,!1),document.addEventListener("mousemove",i.NV,!1),document.addEventListener("pointermove",i.NV,!1),document.addEventListener("MSPointerMove",i.NV,!1),i.NV(t))},i.NV=function(t){var t,n,t=i.kV(t,!0),n=i.AV.trimAlignValue(t);i._V.showNumberRange?i.Cme(n,t):i.DV!==n&&(i.setValue(n),i._V.onChange(n))},i.xV=function(t){var n,e;i.NV(t),document.removeEventListener("mousemove",i.NV),document.removeEventListener("mouseup",i.xV),document.removeEventListener("pointermove",i.NV),document.removeEventListener("pointerup",i.xV),document.removeEventListener("MSPointerMove",i.NV),document.removeEventListener("MSPointerUp",i.xV),n=i.kV(t,!0),e=i.AV.trimAlignValue(n),i._V.showNumberRange?(i.Cme(e,n),i._V.onAfterChange(i._V.numberRange),i.fire(r.BaseDropdown.Event_ValueChanged,{value:i._V.numberRange,text:i._V.numberRange,notCloseDropDown:!0})):(i.DV=e,i._V.onAfterChange(i._V.value),i.fire(r.BaseDropdown.Event_ValueChanged,{value:e,text:e.toString(),notCloseDropDown:!0})),d.pauseEvent(t)},i.EV=function(t){var n=t.target||t.srcElement;document.addEventListener("touchend",i.jV,!1),n.classList.contains("".concat(i._V.prefixCls,"-handle"))?document.addEventListener("touchmove",i.OV,!1):i.OV(t)},i.OV=function(t){var t,t,n,t=t.targetTouches[0],t=i.kV(t,!0),n=i.AV.trimAlignValue(t);i._V.showNumberRange?i.Cme(n,t):i.DV!==n&&(i.setValue(n),i._V.onChange(n))},i.jV=function(t){var n,n,e;document.removeEventListener("touchmove",i.OV),document.removeEventListener("touchend",i.jV),n=t.changedTouches[0],n=i.kV(n,!0),e=i.AV.trimAlignValue(n),i._V.showNumberRange?(i.Cme(e,n),i._V.onAfterChange(i._V.numberRange),i.fire(r.BaseDropdown.Event_ValueChanged,{value:i._V.numberRange,text:i._V.numberRange,notCloseDropDown:!0})):(i.DV=e,i._V.onAfterChange(i._V.value),i.fire(r.BaseDropdown.Event_ValueChanged,{value:e,text:e.toString(),notCloseDropDown:!0})),d.pauseEvent(t)},i.init(n),i}i=this&&this.__extends||(M=function(t,n){return(M=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}))(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}M(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),Object.defineProperty(n,"__esModule",{value:!0}),n.Slider=void 0,r=e("./dist/plugins/celltype/editor/baseControl.js"),o=e("Common"),a=e("Core"),u=o.Common.lt.ht,s=o.Common.zf.j0,c=null,f=Math.max,l=Math.min,h=Math.abs,A.isEmpty=function(t){return void 0===t||t===c||""===t||Array.isArray(t)&&0===t.length},A.isEmptyObject=function(t){var n,e,n=!0;for(e in t)if(e){n=!1;break}return n},A.pauseEvent=function(t){t.stopPropagation(),t.preventDefault()},A.isObject=function(t){var n=typeof t;return"function"==n||"object"==n&&!!t},A.allKeys=function(t){var n,e,n=[];if(!A.isObject(t))return[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n},A.parseStyleObject=function(t){var n,e,i,r,o,a,o;if(!A.isObject(t))return"";for(n="",i=0,r=(e=A.allKeys(t)).length;ithis._V.max&&(this._V.max=this._V.min),u(t.tooltipVisible)||(this._V.tooltipVisible=t.tooltipVisible),u(t.showNumberRange)||(this._V.showNumberRange=!!t.showNumberRange),this._V.marks={},t.marks)&&t.marks.forEach(function(t){var t,n,t=parseFloat(t);isNaN(t)||t>=e._V.min&&t<=e._V.max&&(n=new o.Formatter.GeneralFormatter(e._V.formatString),e._V.marks[t]={label:n.format(t)})})},O.prototype.sY=function(t,n){var t;u(t)||(t=parseFloat(t),isNaN(t))||(this._V[n]=t)},O.prototype.iY=function(){return{className:"".concat(this._V.prefixCls,"-track"),included:this._V.included,direction:this._V.direction,offset:0,length:0}},O.prototype.rY=function(){return{prefixCls:this._V.prefixCls,className:"".concat(this._V.prefixCls,"-handle"),direction:this._V.direction,disabled:this._V.disabled,min:this._V.min,max:this._V.max,value:this._V.value,offset:0,tabIndex:0,tooltipVisible:this._V.tooltipVisible,formatString:this._V.formatString,showNumberRange:this._V.showNumberRange,numberRange:this._V.numberRange}},O.prototype.oY=function(){return{prefixCls:this._V.prefixCls,min:this._V.min,max:this._V.max,value:this._V.value,disabled:this._V.disabled,direction:this._V.direction,dots:this._V.dots,step:this._V.step,included:this._V.included,marks:this._V.marks,showNumberRange:this._V.showNumberRange}},O.prototype.UV=function(){var t="".concat(this._V.prefixCls);return this._V.direction===a.LayoutDirection.vertical&&(t+=" ".concat(this._V.prefixCls,"-vertical")),d.isEmptyObject(this._V.marks)||(t+=" ".concat(this._V.prefixCls,"-with-marks")),this._V.disabled&&(t+=" ".concat(this._V.prefixCls,"-disabled")),t},O.prototype.dispose=function(){var t=this.yV.Wc;t&&(t.removeEventListener("mousedown",this.IV),t.removeEventListener("pointerdown",this.IV),t.removeEventListener("MSPointerDown",this.IV),t.removeEventListener("touchstart",this.EV),t.removeEventListener("keyup",this.Mme)),this.yV.Wc=c,this.wV&&this.wV.dispose(),this.wV=c,this.Y1e&&this.Y1e.dispose(),this.Y1e=c,this.Z1e&&this.Z1e.dispose(),this.Z1e=c,C.prototype.dispose.call(this)},n.Slider=O},"./dist/plugins/celltype/editor/timepicker.js":function(t,n,e){"use strict";var i,r,o,a,u,s,c,f,l;function h(t,n){var t=l.call(this,t)||this;return t.Hc(),t.setOptions(n),t}i=this&&this.__extends||(f=function(t,n){return(f=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}))(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}f(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),Object.defineProperty(n,"__esModule",{value:!0}),n.TimePicker=void 0,r=e("./dist/plugins/celltype/editor/listControl.js"),o=e("./dist/plugins/celltype/editor/baseControl.js"),a="undefined",u=e("Common"),s=u.Common.lt.ht,l=o.BaseDropdown,i(h,l),h.prototype.setOptions=function(t){var n,n,n,n;t&&(null!==(n=this.cY(t.min))&&(this.MU.min=n),null!==(n=this.cY(t.max))&&(this.MU.max=n),null!==(n=this.cY(t.step))&&(this.MU.step=n),s(t.formatString)||(this.MU.formatString=t.formatString),s(t.height)||(n=parseInt(t.height,10),isNaN(n))||(this.MU.height=n),this.MU.height=Math.max(1,this.MU.height)),this._6()},h.prototype.setValue=function(t){void 0!==t&&(this.Bz={hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds()},this.fY=t,this.yz(),this.scrollToSelect())},h.prototype.scrollToSelect=function(){var t,t,t=this.gz.querySelector(".selected");null!==t&&(t=t.offsetTop,this.Wc.scrollTop=t)},h.prototype.Hc=function(){var n=this;this.MU={min:{},max:{hour:23,minute:59,second:59},step:{hour:1},formatString:"hh:mm",height:200},this.gz=document.createElement("div"),this.gz.classList.add("gc-time-picker-outer-div"),this.gz.addEventListener("click",function(t){n.pz(t)}),this.Ti.appendChild(this.gz)},h.prototype.cY=function(t){var n,e,e,e,n=null;return s(t)||(n={},s(t.hour)||(e=parseInt(t.hour,10),isNaN(e))||(n.hour=e),s(t.minute)||(e=parseInt(t.minute,10),isNaN(e))||(n.minute=e),s(t.second))||(e=parseInt(t.second,10),isNaN(e))||(n.second=e),n},h.prototype._6=function(){this.gz.innerHTML="",new r.List(this.gz,this.lY()),this.yz()},h.prototype.yz=function(){var t,n,e,i,r,t=this.gz.querySelectorAll(".gc-time-picker-li");if(0r.MU.height&&0<=r.MU.height?n.style.overflowY="scroll":n.style.overflowY="hidden",n.appendChild(e),n}}},h.prototype.vY=function(t){var n=document.createElement("li");return n.classList.add("gc-time-picker-li"),n.setAttribute("hour",t.hour.toString()),n.setAttribute("minute",t.minute.toString()),n.setAttribute("second",t.second.toString()),n.innerText=this.mY(t),n},h.prototype.dY=function(){for(var t,n,e,t=this.gY(this.MU.min),n=this.gY(this.MU.max),e=[];t<=n;)e.push({hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds()}),t=this.pY(t,this.MU.step);return e},h.prototype.pY=function(t,n){return typeof n.hour!=a&&t.setHours(t.getHours()+n.hour),typeof n.minute!=a&&t.setMinutes(t.getMinutes()+n.minute),typeof n.second!=a&&t.setSeconds(t.getSeconds()+n.second),t},h.prototype.mY=function(t){var n,e,t,n=new Date;return n.setHours(t.hour),n.setMinutes(t.minute),n.setSeconds(t.second),(t=(e=new u.Formatter.GeneralFormatter(this.MU.formatString)).format(n))&&""!==t&&null!==t?t:this.bY(n)},h.prototype.bY=function(t){var n,t,e,i,r,n=t.getHours(),t=t.getMinutes(),e,i,r;return(n<12?"AM":"PM")+" "+(0===n||12===n?"12":(n%12).toString())+":"+(t<10?"0"+t.toString():t.toString())},h.prototype.gY=function(t){var n=new Date;return n.setHours(t.hour||0),n.setMinutes(t.minute||0),n.setSeconds(t.second||0),n},h.prototype.hY=function(t,n){return!(!t||!n)&&(t=this.yY(t),n=this.yY(n),t.hour===n.hour)&&t.minute===n.minute&&t.second===n.second},h.prototype.yY=function(t){return{hour:t.hour||0,minute:t.minute||0,second:t.second||0}},h.prototype.pz=function(t){var t,n,e,t,i,r,r,t=t.target;t&&(n=+t.getAttribute("hour"),e=+t.getAttribute("minute"),t=+t.getAttribute("second"),(i=this.fY||new Date).setHours(n),i.setMinutes(e),i.setSeconds(t),i.setMilliseconds(0),r=(new u.Common.CultureInfo).DateTimeFormat,r=new u.Formatter.GeneralFormatter(r.defaultDatePattern).format(i),this.fire(o.BaseDropdown.Event_ValueChanged,{value:i,text:r}),this.Bz={hour:n,minute:e,second:t},this.yz())},n.TimePicker=h},"./dist/plugins/celltype/editor/workflowPicker.js":function(t,n,e){"use strict";var i,r,o,e,s,a,u,c;function f(t,n){var e=c.call(this,t)||this;return e.wY=new o.List(t),e.wY.on(r.BaseDropdown.Event_ValueChanged,function(t){e.fire(r.BaseDropdown.Event_ValueChanged,t)}),e.setOptions(n),e}function l(t,n){var i,r,o,e,a,u,i={items:[]},r=t.items,o=r.filter(function(t){return t.value===n})[0];if(s(o)&&r&&0\n
\n \n \xd7\n
\n
\n #\n
\n\n '},n.T9e=u},"./dist/plugins/celltype/fileUploadCellType/fileUploadCellType.js":function(t,n,e){"use strict";var i,r,o,h,a,u,y,f,M,e,o,s,l,c,d,v;function g(){var t=v.call(this)||this;return t.typeName="19",t._text=(0,y.getSR)().FileUpload_Title,t.N9e=l,t.j9e=l,t._9e=22,t.Hc(),t}i=this&&this.__extends||(d=function(t,n){return(d=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}))(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}d(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var n,e,i,r,e=1,i=arguments.length;ethis._9e?this._9e:.2*i,r;return{iconSize:n,space:(i-n*t)/(t+1)}},g.prototype.H9e=function(t){var n=t.BO();Object.values(y.ICON_MAP).forEach(function(t){n.addImage(t,"anonymous")})},g.prototype.R9e=function(t,n,e,i,r){var o,a,u,s,a,c,a,i,o=t.Ut.getFileGUID(n,e),a=t.VTe(),u=t.getValue(n,e),s=a.Wxn(o,!0),a=a.FHe(o),c=this._valuePath;if(a||!u)return s&&(i?s:(a={dataUrl:s.dataUrl,blob:s.blob,name:s.name},i=(0,y.getValueByValuePath)(a,c,s),(0,y.isFileInfoEqual)(i,u)||r?a:void(0,y.x9e)({row:n,col:e,value:u,valuePath:c,fileGUID:o},t,void 0,!0)));(0,y.x9e)({row:n,col:e,value:u,fileGUID:o,valuePath:c},t,void 0,!0)},g.prototype.paintValue=function(t,n,e,i,r,o,a,u){var s,c,f,l,h,d,v,g,g,s=this;t&&(c=e+s._marginLeft,f=i+s._marginTop,l=r-s._marginLeft-s._marginRight,h=o-s._marginTop-s._marginBottom,d=eu._9e?4:2,i.fillRect(e-n,l-n,c+2*n,c+2*n)),i.drawImage(t,e,l,c,c))}),i.restore()},g.prototype.J9e=function(t,n,e,i,r,o){var a,n,u,s,i,e,c,o;this.isClearEnabled()&&(a=o.sheet.BO(),t.save(),t.beginPath(),i=n+i-(n=this.U9e(o.sheet,o.row,o.col,i).iconSize)-4,e=e+(s=u=2)+2,c=y.ICON_MAP.clear,a.getImage(c)||this.H9e(o.sheet),a.getState(c)&&a.qh(c)&&(o=a.getImage(c),"clear"===this.j9e&&(t.fillStyle="rgba(255, 255, 255, 0.3)",t.fillRect(i-2,e-2,n+4,n+4)),t.drawImage(o,i,e,n,n)),t.restore())},g.prototype.processMouseUp=function(t){var n,n,e,i,r,n={cancel:!1,sheet:t.sheet};if(h.Worksheet.et(t.sheet,"preUploadFile",n),!n.cancel&&this.K9e(t))return n=t.sheet,e=t.row,i=t.col,this.F9e(n,e,i)?(this.X9e(t),!0):!(this.O9e(n,e,i)||(this.H9e(n),!n)||!t.isReservedLocation||((r=this.q9e(t)).click(),0))},g.prototype.processMouseEnter=function(t){var n,e,t;return!!this.K9e(t)&&(n=t.sheet,e=t.row,t=t.col,this.N9e={row:e,col:t},n.zw(),!0)},g.prototype.processMouseLeave=function(t){return this.K9e(t)&&(this.N9e=l,t.sheet.zw()),!1},g.prototype.processMouseMove=function(t){var n,n,e,i,r,n;return!!this.K9e(t)&&(e=t.sheet,i=t.row,r=t.col,this.N9e&&(null==(n=this.N9e)?void 0:n.col)===r&&(null==(n=this.N9e)?void 0:n.row)===i||(this.N9e={row:i,col:r}),!!this.F9e(e,i,r))&&((n=this.$9e(t))!==this.j9e&&(this.j9e=n,e.zw()),!0)},g.prototype.getHitInfo=function(t,n,e,i,r){var o,a,u,s,c,o,i,o=this;return r&&(a=r.sheetArea,f(a)||3===a)&&i?(u=i.x+o._marginLeft,s=i.x+i.width-o._marginRight,c=i.y+o._marginTop,o=i.y+i.height-o._marginBottom,i={x:t,y:n,row:r.row,col:r.col,cellRect:i,sheetArea:a,sheet:r.sheet,cellStyle:e},u<=t&&t<=s&&c<=n&&n<=o&&(i.isReservedLocation=!0),i):l},g.prototype.$9e=function(t){var n,e,i,r,o,r,n,e,i,r,e,t,o,n=t.sheet,e=t.row,i=t.col,r=this.U9e(n,e,i,t.cellRect.width),o=r.iconSize,r=r.space,n=this.P9e(n,e,i),e=t.cellRect.y+(t.cellRect.height-o)/2,i=t.x>=t.cellRect.x+r-2&&t.x<=t.cellRect.x+o+r+2,r=t.x>=t.cellRect.x+o+2*r-2&&t.x<=t.cellRect.x+2*o+2*r+2,e=t.y>=e-2&&t.y<=e+o+2,t=t.x>=t.cellRect.x+t.cellRect.width-o-6&&t.x<=t.cellRect.x+t.cellRect.width-2&&t.y>=t.cellRect.y-2&&t.y<=t.cellRect.y+o+6&&this.isClearEnabled(),o=i&&e?n[0]:r&&e?n[1]:t?"clear":l;return o},g.prototype.q9e=function(t){var n,e,i,n=this,e="sjs-fake-file-upload-dom";return document.getElementById(e)&&document.getElementById(e).remove(),(i=document.createElement("input")).type="file",i.style.display="none",i.accept=n.accept(),i.id=e,i.addEventListener("change",function(){n.D7e(t,i),i.remove()}),document.body.appendChild(i),i},g.prototype.G7e=function(t,n,e,i){var r=this.R9e(t,n,e);(0,y.x9e)({row:n,col:e,value:i,oldValue:r,valuePath:this._valuePath},t,!0)},g.prototype.D7e=function(t,n){var e,i,t,n,r,r,e=t.sheet,i=t.row,t=t.col,n=n.files[0];n&&(n.size>1024*this.maxSize()?(r={row:i,col:t,maxSize:this.maxSize(),fileSize:n.size},e.jT(h.InvalidOperationType.sizeLimitExceeded,e.A9e(),r)):(r={name:n.name,blob:n},this.G7e(e,i,t,r)))},g.prototype.U7e=function(t,n){var e,i,r,o,e=t.sheet,i=t.col,r=t.row,o=this.R9e(e,r,i);if(this.E9e(o)){switch(n){case"preview":this.V7e(o,t);break;case"download":this.Y7e(e,r,i);break;case"clear":this.Z7e(e,r,i)}this.N9e=l,this.j9e=l}},g.prototype.K9e=function(t){var n=t.sheet,e=t.col,t=t.row;return!(n.isActualProtected()&&n.getCell(t,e).locked())},g.prototype.Q7e=function(t){var n;new a.T9e(document.body,2e3,!0).rQ(t.name,t.dataUrl)},g.prototype.V7e=function(t,n){var e,i,n,n,i;this.previewCommand?(e=n.sheet,i=n.col,n=n.row,n=r(r({},t),{sheetName:e.name(),row:n,col:i}),"function"==typeof this.previewCommand?this.previewCommand(n):"string"==typeof this.previewCommand&&null!=(i=e.getParent())&&i.commandManager().execute(r({cmd:this.previewCommand},n))):this.Q7e(t)},g.prototype.Y7e=function(t,n,e){var t,n,t=this.R9e(t,n,e,!0);t&&((n=document.createElement("a")).href=t.dataUrl,n.download=t.name,n.type=t.type,n.click())},g.prototype.Z7e=function(t,n,e){this.G7e(t,n,e)},g.prototype.X9e=function(t){this.j9e===l&&(this.j9e=this.$9e(t)),this.U7e(t,this.j9e)},g.prototype.Je=function(t){var t,n,n={marginTop:t.marginTop,marginRight:t.marginRight,marginBottom:t.marginBottom,marginLeft:t.marginLeft,maxSize:t.maxSize,accept:t.accept,isPreviewEnabled:t.isPreviewEnabled,isDownloadEnabled:t.isDownloadEnabled,isClearEnabled:t.isClearEnabled};t.hasOwnProperty("valuePath")&&(n.valuePath=null!=(t=t.valuePath)?t:null),this.fromJSON(n)},g.prototype.toJSON=function(){var e,i,r,e=this,i={typeName:e.typeName};return s(y.defaultFileUploadProps,function(t,n){(r=e["_"+t])!==n&&(i[t]=r)}),i},g.prototype.fromJSON=function(e){var i=this;s(y.defaultFileUploadProps,function(t){var n=e[t];void 0!==n&&(i["_"+t]=n)})},c=g,n.FileUpload=c,s(y.defaultFileUploadProps,function(n){c.prototype[n]=function(t){return 0===arguments.length?this["_"+n]:(this["_"+n]=t="valuePath"===n&&void 0===t?null:t,this)}}),(0,u.registerFeatures)(),h.CellTypes.ti[19]=c},"./dist/plugins/celltype/fileUploadCellType/utils.js":function(t,g,n){"use strict";var e,n,n,i,r,m,o,a;function u(t,n,e){if(e||t){if("string"==typeof n)return(e||t)[n];if(e&&e.hasOwnProperty(n))return e[n];if(i(n)&&e)return e.cellValue}return t}function s(t,n){var e,i,r,o,e=typeof t,i;if(e!=typeof n)return!1;if("string"==e)return t===n;if("object"==e){if(t instanceof Blob||n instanceof Blob)return t===n;if(t&&n)return t.blob===n.blob&&t.dataUrl===n.dataUrl&&t.name===n.name}return!0}Object.defineProperty(g,"__esModule",{value:!0}),g.isFileInfoEqual=g.getValueByValuePath=g.x9e=g.Hne=g.E9e=g.defaultFileUploadProps=g.MIMETYPE_TO_FILE_EXTENSION_MAP=g.IMAGE_FILE_EXTENSIONS=g.ICON_MAP=g.getSR=void 0,e=n("Common"),n=n("./dist/plugins/celltype/celltypes.ns.js"),n=new e.Common.ResourceManager(n.SR,"CellTypes"),i=e.Common.lt.ht,g.getSR=n.getResource.bind(n),g.ICON_MAP={commonFile:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNjRweCIgaGVpZ2h0PSI2NHB4IiB2aWV3Qm94PSIwIDAgNjQgNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+Y29tbW9uIGZpbGUgaW1hZ2U8L3RpdGxlPgogICAgPGcgaWQ9ImNvbW1vbi1maWxlLWltYWdlIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNNTAsMiBDNTIuMjA5MTM5LDIgNTQsMy43OTA4NjEgNTQsNiBMNTQsNTggQzU0LDYwLjIwOTEzOSA1Mi4yMDkxMzksNjIgNTAsNjIgTDE0LDYyIEMxMS43OTA4NjEsNjIgMTAsNjAuMjA5MTM5IDEwLDU4IEwxMCwxOC4xMDEwNzQyIEwyMS45NjMzNzg5LDE4LjEwMTA3NDIgQzI0LjE3MjUxNzksMTguMTAxMDc0MiAyNS45NjMzNzg5LDE2LjMxMDIxMzIgMjUuOTYzMzc4OSwxNC4xMDEwNzQyIEwyNS45NjMzNzg5LDIgTDUwLDIgWiBNMjMsMiBMMjMsMTUgTDEwLDE1IEwyMywyIFoiIGlkPSLlvaLnirbnu5PlkIjlpIfku70iIGZpbGw9IiM1MTUxNTEiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+",errorFile:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNjRweCIgaGVpZ2h0PSI2NHB4IiB2aWV3Qm94PSIwIDAgNjQgNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+ZXJyb3IgSW1hZ2U8L3RpdGxlPgogICAgPGcgaWQ9ImVycm9yLUltYWdlIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0i57yW57uEIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyLjAwMDAwMCwgOC4wMDAwMDApIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgICAgICA8cG9seWdvbiBpZD0i5b2i54q257uT5ZCILXBhdGjlpIfku70tMiIgZmlsbD0iI0ZGRkZGRiIgcG9pbnRzPSI2MCA0LjI2MzI1NjQxZS0xNCAwIDQuMjYzMjU2NDFlLTE0IDAgNDguOTQ3MzY4NCA2MCA0OC45NDczNjg0Ij48L3BvbHlnb24+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0yNi44MjYsMCBMMzIsMTEuMzMwMDc4MSBMMjIsMjMuMTIxMDkzNyBMMjksMzguODQzNzUgTDI0LjEyOCw0OCBMNCw0OCBDMS43OTA4NjEsNDggLTEuMTk2OTk2ODhlLTE1LDQ2LjIwOTEzOSAwLDQ0IEwwLDQgQy0yLjcwNTQxNWUtMTYsMS43OTA4NjEgMS43OTA4NjEsLTEuMDYxNzI2MTNlLTE1IDQsMCBMMjYuODI2LDAgWiBNNTYsMCBDNTguMjA5MTM5LC00LjA1ODEyMjUxZS0xNiA2MCwxLjc5MDg2MSA2MCw0IEw2MCw0NCBDNjAsNDYuMjA5MTM5IDU4LjIwOTEzOSw0OCA1Niw0OCBMMzEuMDk0LDQ4IEwzNiwzOC42MjY5NTMxIEwyOSwyMy40OTgwNDY5IEwzOSwxMS4yNTM5MDYyIEwzMy44MzYsMCBMNTYsMCBaIiBpZD0i5b2i54q257uT5ZCIIiBmaWxsPSIjRTVFNUU1Ij48L3BhdGg+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0xNi4zNjU2ODUxLDE1IEwyMy4wMzEsMjIuMDA3IEwyMiwyMy4xMjEwOTM3IEwyOSwzOC44NDM3NSBMMjQuMTI3LDQ4IEw0LDQ4IEMxLjc5MDg2MSw0OCAyLjc2Njg4MDE4ZS0xNCw0Ni4yMDkxMzkgMi44NDIxNzA5NGUtMTQsNDQgTDIuODQyMTcwOTRlLTE0LDMxLjIxMTA3MTIgTDE2LjM2NTY4NTEsMTUgWiBNNDguMzkxNjc2OCwyNi4wMTg3NTQyIEw2MCwzNS42NDIyNzM1IEw2MCw0NCBDNjAsNDYuMjA5MTM5IDU4LjIwOTEzOSw0OCA1Niw0OCBMMzEuMDkzLDQ4IEwzNiwzOC42MjY5NTMxIEwzMy4zMDcsMzIuODA4IEwzNy44MjA3NjkyLDM3LjU1MjcyODggTDM3LjgyMjI2NTUsMzcuMDA5MzkxNCBMNDguMzkxNjc2OCwyNi4wMTg3NTQyIFogTTQ4LDcgQzUwLjIwOTEzOSw3IDUyLDguNzkwODYxIDUyLDExIEM1MiwxMy4yMDkxMzkgNTAuMjA5MTM5LDE1IDQ4LDE1IEM0NS43OTA4NjEsMTUgNDQsMTMuMjA5MTM5IDQ0LDExIEM0NCw4Ljc5MDg2MSA0NS43OTA4NjEsNyA0OCw3IFoiIGlkPSLlvaLnirbnu5PlkIgiIGZpbGw9IiNEM0QzRDMiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==",preview:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+cHJldmlldyBpbWFnZTwvdGl0bGU+CiAgICA8ZyBpZD0icHJldmlldy1pbWFnZSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTEwLjAwMDE0NzMsMyBDMTIuMjM1MDA1NSwzIDE0LjI1ODM2MzUsMy45OTU2OCAxNS44Njk3MjE0LDUuMTYyMDIgQzE3LjQ4NzcyMjEsNi4zMzMyNiAxOC43NTY4NjU1LDcuNzI0NTggMTkuNDk4NTA4Nyw4LjYyNjYgTDE5LjMxMiw4Ljc3MyBMMTkuNDk4OTM3Myw4LjYyNzE2IEMyMC4xMjc1NzYyLDkuMzkzMjQgMjAuMTY0OTM0NiwxMC40MjkxMTIxIDE5LjYwOTY0MjgsMTEuMjI2Njk4OSBMMTkuNDk4NTgwMSwxMS4zNzMzMyBMMTkuMzQzMTk5NywxMS41NjAxMTc4IEMxOC41ODYwOTU5LDEyLjQ1OTk1MTIgMTcuMzc5ODU1NCwxMy43NDQ4MjI3IDE1Ljg2OTcyMTQsMTQuODM3OTggQzE0LjI1ODM2MzUsMTYuMDA0MzIgMTIuMjM1MDA1NSwxNyAxMC4wMDAxNDczLDE3IEM3Ljc2NTI4OTE4LDE3IDUuNzQxOTMxMTMsMTYuMDA0MzIgNC4xMzA2NDQ3LDE0LjgzNzk4IEMyLjUxMzU3MjU1LDEzLjY2NzQ0IDEuMjQ1MDAwNTYsMTIuMjc3MSAwLjUwMzE0MzA4MiwxMS4zNzUwOCBDMC4xNzk1MDAwOCwxMC45ODU5NSAwLDEwLjUwMjMyIDAsMTAgQzAsOS40OTc2OCAwLjE3OTUwMDA4LDkuMDE0MDUgMC41MDMyMTQ1MSw4LjYyNDkyIEMxLjI0NTAwMDU2LDcuNzIyODMgMi41MTM2NDM5OCw2LjMzMjU2IDQuMTMwNjQ0Nyw1LjE2MjAyIEM1Ljc0MTkzMTEzLDMuOTk1NjggNy43NjUyODkxOCwzIDEwLjAwMDE0NzMsMyBaIE0xMC4wMDAxNTQ3LDQgQzguMTA1MDUzNyw0IDYuMjkyMDc3NzYsNC44NjgwNSA0LjcyODMyNjk0LDYuMDIzMDUgQzMuMTcxNjI2MTMsNy4xNzI4NzUgMS45MzA1MjU0OCw4LjU1NjcgMS4xOTQ5MjUxLDkuNDY5Njc1IEMxLjA2NDgwMDAzLDkuNjI4ODI1IDEsOS44MTQxNSAxLDEwIEMxLDEwLjE4NTg1IDEuMDY0ODAwMDMsMTAuMzcxMTc1IDEuMTkxNjI1MSwxMC41MjYzNSBDMS45MzA1MjU0OCwxMS40NDMzIDMuMTcxNjI2MTMsMTIuODI3MTI1IDQuNzI4MzI2OTQsMTMuOTc2OTUgQzYuMjkyMDc3NzYsMTUuMTMxOTUgOC4xMDUwNTM3LDE2IDEwLjAwMDE1NDcsMTYgQzExLjg5NTMzMDcsMTYgMTMuNzA4MjMxNiwxNS4xMzE5NSAxNS4yNzE5ODI0LDEzLjk3Njk1IEMxNi44Mjg2MDgyLDEyLjgyNzIgMTguMDY5NzA4OSwxMS40NDM0NSAxOC44MDUzMDkzLDEwLjUzMDQ3NSBDMTkuMDY0NzM0NCwxMC4yMDg0MjUgMTkuMDY1MTg0NCw5Ljc5MjcgMTguODA0OTM0Myw5LjQ2OTA3NSBDMTguMDY5MjU4OSw4LjU1NjEgMTYuODI4MzgzMiw3LjE3MjY1IDE1LjI3MTk4MjQsNi4wMjMwNSBDMTMuNzA4MjMxNiw0Ljg2ODA1IDExLjg5NTMzMDcsNCAxMC4wMDAxNTQ3LDQgWiBNOS45OTk5NjA0NSw2IEMxMi4xNzA5ODU2LDYgMTQsNy43NTIwNzQyOCAxNCwxMCBDMTQsMTIuMjQ3OTI1NyAxMi4xNzA5ODU2LDE0IDkuOTk5OTYwNDUsMTQgQzcuODI5MDE0MzcsMTQgNiwxMi4yNDc5MjU3IDYsMTAgQzYsNy43NTIwNzQyOCA3LjgyOTAxNDM3LDYgOS45OTk5NjA0NSw2IFogTTkuOTk5OTUwOTMsNyBDOC4yOTU3MTY2LDcgNyw4LjM5MjUzMDg5IDcsMTAgQzcsMTEuNjA3NDY5MSA4LjI5NTcxNjYsMTMgOS45OTk5NTA5MywxMyBDMTEuNzA0MTg1MywxMyAxMywxMS42MDc0NjkxIDEzLDEwIEMxMyw4LjM5MjUzMDg5IDExLjcwNDE4NTMsNyA5Ljk5OTk1MDkzLDcgWiIgaWQ9IuW9oueKtue7k+WQiCIgZmlsbD0iI0ZGRkZGRiI+PC9wYXRoPgogICAgPC9nPgo8L3N2Zz4=",download:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+ZG93bmxvYWQgZmlsZXM8L3RpdGxlPgogICAgPGcgaWQ9ImRvd25sb2FkLWZpbGVzIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNMTEuMDg4Nzc5NSwyLjM3ODY0NTkgTDE1Ljk2NTI4NTUsNyBMMTUuOTY1Mjg1NSw3IEwxNS45NjUyODU1LDggTDExLjA4ODc3OTUsMTIuNjIxMzU0MSBDMTAuODg2Nzg2NiwxMi44MTI3NzgxIDEwLjU2OTA4NTEsMTIuODA4NTExNSAxMC4zNzIzMDU3LDEyLjYxMTczMjEgQzEwLjE4MDkxNTIsMTIuNDIwMzQxNiAxMC4xODA5MTUyLDEyLjExMDAzNjQgMTAuMzcyMzA1NywxMS45MTg2NDU5IEMxMC4zNzQ2MTksMTEuOTE2MzMyNiAxMC4zNzY5NTU0LDExLjkxNDA0MjUgMTAuMzc5MzE0NiwxMS45MTE3NzYgTDE0LjQ1MTI4NTUsNy45OTk3MTQ1IEwxNC40NTEyODU1LDcuOTk5NzE0NSBMNS40NjUyODU1LDcuOTk5OTg0OTUgQzUuMTg5MTUxNDQsNy45OTk5OTMyNiA0Ljk2NTI5MzgxLDcuNzc2MTQ5MTEgNC45NjUyODU1LDcuNTAwMDE1MDUgQzQuOTY1Mjg1NSw3LjUwMDAxMDAzIDQuOTY1Mjg1NSw3LjUwMDAwNTAyIDQuOTY1Mjg1NSw3LjUgQzQuOTY1Mjg1NSw3LjIyMzg1NTE5IDUuMTg5MTQwNjksNi45OTk5OTMyNiA1LjQ2NTI4NTUsNi45OTk5ODQ5NSBMMTQuNDUxMjg1NSw2Ljk5OTcxNDUgTDE0LjQ1MTI4NTUsNi45OTk3MTQ1IEwxMC4zNzkzMzc4LDMuMDg4MTk5ODcgQzEwLjE4NDE1MzcsMi45MDA3MDU5NCAxMC4xNzc5MTk2LDIuNTkwNDg0MDkgMTAuMzY1NDEzNSwyLjM5NTI5OTk5IEMxMC4zNjc2ODczLDIuMzkyOTMyOTQgMTAuMzY5OTg0OCwyLjM5MDU4ODc5IDEwLjM3MjMwNTcsMi4zODgyNjc5IEMxMC41NjkwODUxLDIuMTkxNDg4NDcgMTAuODg2Nzg2NiwyLjE4NzIyMTg1IDExLjA4ODc3OTUsMi4zNzg2NDU5IFoiIGlkPSLlvaLnirbnu5PlkIjlpIfku70tM+Wkh+S7vSIgZmlsbD0iI0ZGRkZGRiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAuNDY1Mjg1LCA3LjUwMDAwMCkgc2NhbGUoLTEsIC0xKSByb3RhdGUoLTkwLjAwMDAwMCkgdHJhbnNsYXRlKC0xMC40NjUyODUsIC03LjUwMDAwMCkgIj48L3BhdGg+CiAgICAgICAgPHBhdGggZD0iTTE3LjE0NjM2MzYsMTEuMTQ2MzYzNSBDMTcuMDUyNTc5MSwxMS4yNDAxNDggMTYuOTk5OTI0OSwxMS4zNjczNjg2IDE3LDExLjQ5OTk5OSBMMTcsMTUuOTk5OTk5IEw0LDE1Ljk5OTk5OSBMNCwxMS40OTk5OTkgQzQsMTEuMjIzODU3NSAzLjc3NjE0MjQ2LDEwLjk5OTk5OSAzLjUsMTAuOTk5OTk5IEMzLjIyMzg1NzcxLDEwLjk5OTk5OSAzLDExLjIyMzg1NzUgMywxMS40OTk5OTkgTDMsMTYuNDk5OTk5IEMzLDE2LjYzMjYzMTIgMy4wNTI1NzkxMiwxNi43NTk4NTE5IDMuMTQ2MzYzNjIsMTYuODUzNjM2NCBDMy4yNDAxNDgxMiwxNi45NDc0MjA5IDMuMzY3MzY4NzksMTcuMDAwMDc1MSAzLjUsMTYuOTk5OTk5IEwxNy41LDE2Ljk5OTk5OSBDMTcuNjMyNjMxNCwxNy4wMDAwNzUxIDE3Ljc1OTg1MiwxNi45NDc0MjA5IDE3Ljg1MzYzNjUsMTYuODUzNjM2NCBDMTcuOTQ3NDIxLDE2Ljc1OTg1MTkgMTgsMTYuNjMyNjMxMiAxOCwxNi40OTk5OTkgTDE4LDExLjQ5OTk5OSBDMTgsMTEuMzY3MzY4NiAxNy45NDc0MjEsMTEuMjQwMTQ4IDE3Ljg1MzYzNjUsMTEuMTQ2MzYzNSBDMTcuNzU5ODUyLDExLjA1MjU3OSAxNy42MzI2MzE0LDEwLjk5OTkyNDcgMTcuNSwxMC45OTk5OTkgQzE3LjM2NzM2ODgsMTAuOTk5OTI0NyAxNy4yNDAxNDgxLDExLjA1MjU3OSAxNy4xNDYzNjM2LDExLjE0NjM2MzUgWiIgaWQ9Iui3r+W+hCIgZmlsbD0iI0ZGRkZGRiIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==",clear:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+Y2xlYXIgdXBsb2FkZWQgZmlsZTwvdGl0bGU+CiAgICA8ZyBpZD0iY2xlYXItdXBsb2FkZWQtZmlsZSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTE2LjgyNTEzNjUsNC4wMTU0OCBDMTcuMDU4Mjg3OCwzLjc4MzE4NTQgMTcuMDU4Mjg3OCwzLjQwNjUxODQzIDE2LjgyNTEzNjUsMy4xNzQyMjA5NSBDMTYuNTkzMzMyLDIuOTQxOTI2MzUgMTYuMjE3MTU1MSwyLjk0MTkyNjM1IDE1Ljk4NDQ5NDUsMy4xNzQyMjA5NSBMMTAuMDAwMjM0OCw5LjE1ODcyNDYyIEw0LjAxNTQ4LDMuMTc0MjIwOTUgQzMuNzgzMTg1NCwyLjk0MTkyNjM1IDMuNDA2NTE4NDMsMi45NDE5MjYzNSAzLjE3NDIyMDk1LDMuMTc0MjIwOTUgQzIuOTQxOTI2MzUsMy40MDY1MTU1NiAyLjk0MTkyNjM1LDMuNzgzMTgyNTMgMy4xNzQyMjA5NSw0LjAxNTQ4IEw5LjE1ODg1Mzc4LDEwLjAwMDExMjggTDMuMTc0MjIwOTUsMTUuOTg1MTExNiBDMi45NDE5MjYzNSwxNi4yMTc1MjgyIDIuOTQxOTI2MzUsMTYuNTkzNDYwNCAzLjE3NDIyMDk1LDE2LjgyNTg3NTYgQzMuNDA2NTE1NTYsMTcuMDU4MjkyMiAzLjc4MzE4MjUzLDE3LjA1ODI5MjIgNC4wMTU0OCwxNi44MjU4NzU2IEwxMC4wMDAyMzQ4LDEwLjg0MTM3MTkgTDE1Ljk4NDQ5NDUsMTYuODI1ODc1NiBDMTYuMjE3MTU2NSwxNy4wNTgyOTIyIDE2LjU5MzQ1NjEsMTcuMDU4MjkyMiAxNi44MjUxMzY1LDE2LjgyNTg3NTYgQzE3LjA1ODI4NzgsMTYuNTkzODI2MyAxNy4wNTgyODc4LDE2LjIxNzUyNjcgMTYuODI1MTM2NSwxNS45ODUxMTE2IEwxMC44NDEzNjQ3LDEwLjAwMDExMjggTDE2LjgyNTEzNjUsNC4wMTU0OCBaIiBpZD0i6Lev5b6EIiBmaWxsPSIjRkZGRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+"},g.IMAGE_FILE_EXTENSIONS=["jpg","jpeg","png","gif","bmp","svg","ico","webp"],g.MIMETYPE_TO_FILE_EXTENSION_MAP={"image/jpeg":g.IMAGE_FILE_EXTENSIONS[1],"image/jpg":g.IMAGE_FILE_EXTENSIONS[0],"image/png":g.IMAGE_FILE_EXTENSIONS[2],"image/gif":g.IMAGE_FILE_EXTENSIONS[3],"image/bmp":g.IMAGE_FILE_EXTENSIONS[4],"image/svg+xml":g.IMAGE_FILE_EXTENSIONS[5],"image/x-icon":g.IMAGE_FILE_EXTENSIONS[6],"image/webp":g.IMAGE_FILE_EXTENSIONS[7]},g.defaultFileUploadProps={marginTop:2,marginRight:2,marginBottom:2,marginLeft:2,maxSize:2048,accept:"",isPreviewEnabled:!0,isDownloadEnabled:!0,isClearEnabled:!0,valuePath:"dataUrl"},g.E9e=r=function(t){return t&&"string"==typeof t.name&&(t.blob&&t.blob instanceof Blob||t.dataUrl&&"string"==typeof t.dataUrl)},m=function(t){var n,n,e,e={name:""};return"string"==typeof t?e.dataUrl=t:t instanceof Blob?(e.blob=t,e.name=null!=(n=t.name)?n:""):t instanceof Object&&(e=t)&&t.hasOwnProperty("blob")&&t.blob instanceof Blob&&!t.hasOwnProperty("name")&&(t.name=null!=(n=t.blob.name)?n:""),(0,g.E9e)(e)?e:void 0},g.Hne=o=function(t){var n=crypto&&crypto.randomUUID&&crypto.randomUUID();return e.Common.lt.ht(n)&&(n="10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)})),n=32===t?n.split("-").join(""):n},g.x9e=a=function(t,u,s,c){var f,l,h,d,v,t,n,e,i,r,t,o,a,a,f=t.row,l=t.col,h=t.value,d=t.oldValue,v=t.valuePath,t=t.fileGUID,n=u.VTe(),e=u.Ut.getFileGUID(f,l),i=n.Wxn(e);i&&n.FAe([e]),(r=m(h))?(t=null!=t?t:(0,g.Hne)(),o=function(t){var n,n,e,i,r,o,a,n,e,n,e,e=t.name,i=t.dataUrl;c&&(t[r=null===(r=v)?"cellValue":v]=h),o=!1,a=u.BO(),-1=a&&l.rowCount<=1&&l.col>=s&&s===l.col&&(f=o.nn(s,c),1i&&(r=(n.height-i-e)/2+e):2===t.vAlign&&(r=n.height-i-e),r}function tt(t,n,e,i,r){var o,a,u,s;if(t._direction===Z.vertical){if(t._isFlowLayout){if(r!==h)for(o=t._items.length;0l.x+l.width||r.y>l.y+l.height?y[t]=null:y[t]=r},C=0;Ce.DQ&&t<=e.RQ&&i.dynamicSize()&&(e.RQ+=n),e.AQ()},L.prototype.qO=function(t,n){var e=this,i=e.TZ;t<=e.NQ?i.dynamicMove()&&(e.NQ+=n,e.jQ+=n):t>e.NQ&&t<=e.jQ&&i.dynamicSize()&&(e.jQ+=n),e.AQ()},L.prototype.xP=function(t,n){var e,i,r,e=this,i=e.TZ,r=t+n-1;tl.x+R(l)&&(a+=l.x+R(l)-1-s)),(a=x(R(l)-1,a))<0&&(s=i.Mf,d=i.yZ,v=s.r6(s.getColumnCount()-s.lL),g=s.getViewportRightColumn(1),!1===s.Vy)&&d===v&&d===g&&(u=l.x+R(l)-1-i.width(),a=i.width()),rl.y+E(l)&&(o+=l.y+E(l)-1-c)),o=x(E(l)-1,o),(s=(0,T.GC$)(e.qW)).css({left:u,top:r}),v=s.height(),d=s.width(),g=!1,(f=e.JQ(a,o))&&(a=f.adjustedWidth,o=f.adjustedHeight,g=!n&&f.needReposition),o<=0&&v<=0||a<=0&&d<=0||((1e.x?_(n.left+i.left,n.top+i.top):n.top+i.top+u.height()h.x+R(h)&&(i-=f-(h.x+R(h))),i=x(R(h),i),nh.y+E(h)&&(s-=l-(h.y+E(h))),s=x(E(h),s),(0,T.GC$)(t.$W).css(p,c).css(b,n).css(g,i).css(w,s),m.$l(t.tQ,i,s),e.x=e.x-c,e.y=e.y-n,u.x=u.x-c,u.y=u.y-n,t.eK(e,u)},L.prototype.eK=function(t,n){var e,i,r,e,e=this;e.iK||(e.iK=e.tQ.getContext("2d")),i=e.iK,r=e.TZ.borderColor(),i.strokeStyle=r,i.clearRect(0,0,m.Xl(e.tQ),m.ql(e.tQ)),i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(n.x,n.y),i.stroke(),i.save(),nt.Yl(i,t.x,t.y),i.fillStyle=r,i.beginPath(),e=z(n.y-t.y,n.x-t.x),i.rotate(e),i.moveTo(0,0),i.lineTo(7,-4),i.lineTo(7,4),i.lineTo(0,0),i.fill(),nt.Yl(i,-t.x,-t.y),i.closePath(),i.restore()},L.prototype.UQ=function(){var t,n,e,i,r,o,a,u,s,c,t=this,n=t.TZ,e=n.Mf;t.rK=t.TZ.commentState(),t.oK||(t.oK=t.SW.getContext("2d")),i=t.oK,r=m.Xl(t.SW),o=m.ql(t.SW),a=(0,T.GC$)(t.TW).outerWidth(),u=(0,T.GC$)(t.TW).outerHeight(),s=t.eQ,i.clearRect(0,0,r,o),t.TZ.showShadow()&&(t.aK(i,r,o),i.clearRect(s,s,r-(c=2*(s+2)),o-c),t.uK(i,s,a,u)),kn(e,n)&&t.sK(i,s,r,o,a,u),i.restore()},L.prototype.uK=function(t,n,e,i){t.save(),t.fillStyle=fn,t.fillRect(n+2,i+n,e,2),t.fillRect(e+n,n+2,2,i),t.restore()},L.prototype.aK=function(t,n,e){var i,r,o;switch(t.save(),t.strokeStyle=fn,this.rK){case D.active:for(t.beginPath(),r=0;r=t.row&&a=t.col&&oi.zIndex())&&(i=o);return i?{x:t,y:n,comment:i,area:e.GK(i,t,n)?Yt:Zt}:d},e.prototype.nK=function(t){var n=this,e=n.RK();return t===n.PW?e+2:t===n.MZ?e+1:t.zIndex()},e.prototype.jK=function(){this.UW.forEach(function(t){t.TQ()})},e.prototype.fromJSON=function(t,n){var e,i,r,o,e=this;if(t&&0!==t.length){for(i=e.GW=0;it&&(t=a.RQ),a.jQ>n)&&(n=a.jQ);return{lastNonNullRow:t,lastNonNullCol:n}},clearSelection:function(){this.Ut.pI.CZ()},processKeyDown:function(t){var n=this,e=n.Ut.pI.pZ();e&&n.rt.Pi(t.e)&&jn(n,e)&&(e.commentState(2,!0),t.r=!0)},yh:function(t,n,e){var i,t,r,r,o,i,a,u,s,c,f,o,t,l,i=S(t,"legacyDrawing"),t=t.rels,r=e&&!1===e.includeStyles;if(i&&!r){for(r=this,o=t.c_,i=i&&i["r:id"],u=0,s=o;u!1,this.u_e=()=>!1,this.s_e=()=>!1,this.c_e=t=>{this.a_e(t)||(this.f_e?this.l_e():this.h_e())},this.d_e=()=>{this.f_e=this.v_e();var t=document.createElement("div");this.f_e.appendChild(t),t.classList.add("dp-panel"),t.style.position="fixed",t.style.boxShadow=r.CSSUtils.boxShadow.replace("box-shadow:","").replace(";",""),t.style.background=r.CSSVariables.background,t.style.color=r.CSSVariables.color,t.style.width=this.g_e.getBoundingClientRect().width+"px",this.shadowRoot.querySelector(".container").appendChild(this.f_e),window.addEventListener("resize",this.dC),window.addEventListener("mousedown",this.m_e,!0),window.addEventListener("wheel",this.p_e)},this.b_e=()=>{window.removeEventListener("resize",this.dC),window.removeEventListener("mousedown",this.m_e,!0),window.removeEventListener("wheel",this.p_e),this.f_e.remove(),this.f_e=void 0},this.v_e=()=>{var t=document.createElement("div");return t.style.zIndex="1024",t.style.position="fixed",t.style.left="0",t.style.top="0",t.style.background="transparent",t.classList.add("dp-panel-root"),t},this.dC=()=>{this.w_e()},this.m_e=t=>{var n,e;!this.f_e||t.target.closest(".sjs-dp-panel-sub-content")||(n=this.g_e.getBoundingClientRect(),e=this.y_e().getBoundingClientRect(),this.C_e(n,t.clientX,t.clientY))||this.C_e(e,t.clientX,t.clientY)||this.l_e()},this.p_e=t=>{var n=this.y_e().getBoundingClientRect();this.C_e(n,t.clientX,t.clientY)||this.l_e()},this.C_e=(t,n,e)=>n>=t.left&&n<=t.right&&e>=t.top&&e<=t.bottom,this.y_e=()=>this.f_e.querySelector(".dp-panel")}connectedCallback(){this.y4=this.M_e(this.getAttribute("value"));var t=this.getAttribute("label"),n=this.attachShadow({mode:"open"}),e=this.u_e(),i=this.s_e();n.innerHTML=`