/*! For license information please see main.cf4f8ac3.js.LICENSE.txt */ !function(){var e={34965:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(85825),i=n(68627),a=n(79254),o=n(34800);function s(e,t){(0,o.Z)(2,arguments);var n=(0,i.Z)(t);return(0,a.Z)(e,-n)}function l(e){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var u=["nannie_abernathy70@yahoo.com","ashlynn_ohara62@gmail.com","milo.farrell@hotmail.com","violet.ratke86@yahoo.com","letha_lubowitz24@yahoo.com","aditya_greenfelder31@gmail.com","lenna_bergnaum27@hotmail.com","luella.ryan33@gmail.com","joana.simonis84@gmail.com","marjolaine_white94@gmail.com","vergie_block82@hotmail.com","vito.hudson@hotmail.com","tyrel_greenholt@gmail.com","dwight.block85@yahoo.com","mireya13@hotmail.com","dasia_jenkins@hotmail.com","benny89@yahoo.com","dawn.goyette@gmail.com","zella_hickle4@yahoo.com","avery43@hotmail.com","olen_legros@gmail.com","jimmie.gerhold73@hotmail.com","genevieve.powlowski@hotmail.com","louie.kuphal39@gmail.com","enoch.cruickshank@gmail.com","arlo_mccullough@gmail.com","sadie18@yahoo.com","aric67@gmail.com","mack_deckow53@gmail.com","constantin91@yahoo.com","lonny84@hotmail.com","gus56@hotmail.com","brennon64@yahoo.com","hortense.streich@hotmail.com","kallie_powlowski57@hotmail.com","meghan.kemmer@hotmail.com","bella.mraz14@yahoo.com","barney88@gmail.com","diamond_johns@hotmail.com","gus80@hotmail.com"],c=["365-374-4961","904-966-2836","399-757-9909","692-767-2903","990-588-5716","955-439-2578","226-924-4058","552-917-1454","285-840-9338","306-269-2446","883-373-6253","476-509-8866","201-465-1954","538-295-9408","531-492-6028","981-699-7588","500-268-4826","205-952-3828","222-255-5190","408-439-8033","272-940-8266","812-685-8057","353-801-5212","606-285-8928","202-767-8621","222-830-0731","964-940-3166","262-702-2396","886-261-9789","352-390-5069","343-907-8334","575-347-2399","749-228-5604","774-452-2071","607-841-0447","395-619-2157","233-834-0373","586-880-2602","746-772-0722","638-615-3365,"],d=[!0,!0,!0,!1,!1,!0,!1,!1,!1,!1,!0,!0,!0,!1,!1,!1,!0,!1,!1,!1,!0,!1,!1,!0,!0,!0,!1,!1,!0,!0,!1,!0,!1,!0,!0,!0,!1,!0,!1,!1],f=["ux designer","full stack designer","backend developer","ux designer","ux designer","project manager","leader","backend developer","project manager","ui designer","ui/ux designer","ui/ux designer","ui designer","backend developer","backend developer","front end developer","backend developer","full stack designer","full stack developer","backend developer","ux designer","ui designer","project manager","ui/ux designer","ui designer","project manager","full stack developer","hr manager","hr manager","ui/ux designer","project manager","full stack designer","ui designer","leader","front end developer","ui/ux designer","project manager","ui/ux designer","ui designer","full stack designer"],p=["Lueilwitz and Sons","Gleichner, Mueller and Tromp","Nikolaus - Leuschke","Hegmann, Kreiger and Bayer","Grimes Inc","Durgan - Murazik","Altenwerth, Medhurst and Roberts","Raynor Group","Mraz, Donnelly and Collins","Padberg - Bailey","Heidenreich, Stokes and Parker","Pagac and Sons","Rempel, Hand and Herzog","Dare - Treutel","Kihn, Marquardt and Crist","Nolan - Kunde","Wuckert Inc","Dibbert Inc","Goyette and Sons","Feest Group","Bosco and Sons","Bartell - Kovacek","Schimmel - Raynor","Tremblay LLC","Hills - Mitchell","Rogahn LLC","Kuhn, Osinski and Morar","Schmitt Inc","Breitenberg - Rosenbaum","O'Keefe, Schneider and Mraz","Rohan, Langworth and Kling","Morar and Sons","Mraz LLC","Rowe, Parisian and Kub","Marquardt - Hane","Medhurst Group","Nikolaus - Lang","Effertz, Mohr and Olson","Anderson - Kris","Runolfsson Group"],h=["19034 Verna Unions Apt. 164 - Honolulu, RI / 87535","1147 Rohan Drive Suite 819 - Burlington, VT / 82021","18605 Thompson Circle Apt. 086 - Idaho Falls, WV / 50337","110 Lamar Station Apt. 730 - Hagerstown, OK / 49808","36901 Elmer Spurs Apt. 762 - Miramar, DE / 92836","2089 Runolfsson Harbors Suite 886 - Chapel Hill, TX / 32827","279 Karolann Ports Apt. 774 - Prescott Valley, WV / 53905","96607 Claire Square Suite 591 - St. Louis Park, HI / 40802","9388 Auer Station Suite 573 - Honolulu, AK / 98024","47665 Adaline Squares Suite 510 - Blacksburg, NE / 53515","989 Vernice Flats Apt. 183 - Billings, NV / 04147","91020 Wehner Locks Apt. 673 - Albany, WY / 68763","585 Candelario Pass Suite 090 - Columbus, LA / 25376","80988 Renner Crest Apt. 000 - Fargo, VA / 24266","28307 Shayne Pike Suite 523 - North Las Vegas, AZ / 28550","205 Farrell Highway Suite 333 - Rock Hill, OK / 63421","253 Kara Motorway Suite 821 - Manchester, SD / 09331","13663 Kiara Oval Suite 606 - Missoula, AR / 44478","8110 Claire Port Apt. 703 - Anchorage, TN / 01753","4642 Demetris Lane Suite 407 - Edmond, AZ / 60888","74794 Asha Flat Suite 890 - Lancaster, OR / 13466","8135 Keeling Pines Apt. 326 - Alexandria, MA / 89442","441 Gibson Shores Suite 247 - Pasco, NM / 60678","4373 Emelia Valley Suite 596 - Columbia, NM / 42586","1946 Strosin Creek Apt. 279 - Casper, CO / 21335","147 Rempel Center Apt. 305 - Centennial, TN / 09375","78481 Floyd Mountains Apt. 184 - Glendale, SD / 18777","129 Toy Pines Suite 339 - Idaho Falls, CT / 82070","08945 Cremin Underpass Apt. 700 - Iowa City, GA / 33243","20728 Dorcas Highway Suite 959 - Largo, ND / 99931","492 Wilburn Park Apt. 746 - Bellevue, TN / 16077","70530 Garfield Tunnel Suite 902 - Detroit, IA / 01664","868 Kautzer Grove Suite 334 - Kearny, KS / 51368","71189 Towne Forks Suite 519 - Anchorage, IL / 52636","5070 Magdalena Neck Suite 096 - Cedar Rapids, PA / 01342","6216 Jermain Walk Apt. 279 - Wilmington, MA / 55416","1795 Kilback Stravenue Apt. 745 - Concord, MA / 96099","831 Rolfson Expressway Apt. 878 - Norman, NY / 10239","909 Nathaniel Lake Suite 769 - Sherman, NJ / 46523","3690 Hans Ports Apt. 369 - Cary, KS / 48930"],m=["Kenya","Madagascar","Netherlands Antilles","Azerbaijan","Aruba","Comoros","Sierra Leone","Bermuda","Italy","Iran","Denmark","Congo","Cambodia","Virgin Islands, British","Bahamas","Italy","France","Portugal","Nepal","Saint Vincent and the Grenadines","Greenland","Maldives","Comoros","Bhutan","Tuvalu","Ethiopia","Myanmar","Libyan Arab Jamahiriya","Senegal","Malta","Kyrgyz Republic","Turks and Caicos Islands","Gibraltar","Sweden","Zambia","Isle of Man","Canada","Turkey","Samoa","Vietnam"],g=["Chase Day","Deja Brady","Harrison Stein","Reece Chung","Lainey Davidson","Cristopher Cardenas","Melanie Noble","Lucian Obrien","Jayvion Simon","Shawn Manning","Soren Durham","Hudson Alvarez","Cortez Herring","Brycen Jimenez","Giana Brandt","Aspen Schmitt","Colten Aguilar","Angelique Morse","Selina Boyer","Lawson Bass","Ariana Lang","Amiah Pruitt","Harold Mcgrath","Esperanza Mcintyre","Mireya Conner","Jamie Kline","Laney Vazquez","Tiffany May","Dexter Shepherd","Jaqueline Spencer","Londyn Jarvis","Yesenia Butler","Jayvon Hull","Izayah Pope","Ayana Hunter","Isabell Bender","Desiree Schmidt","Aidan Stout","Jace Bush","Janiya Williamson"],v=["Mossie","David","Ebba","Chester","Eula","Jaren","Boyd","Brady","Aida","Anastasia","Gregoria","Julianne","Ila","Elyssa","Lucio","Lewis","Jacinthe","Molly","Brown","Fritz","Keon","Ella","Ken","Whitney","Monte","Rose","Shana","Devon","Jaleel","Laury","Brooks","Bruce","Avery","Esperanza","Helene","Heloise","Elinor","Adeline","Haley","Anabelle"],y=["Carroll","Simonis","Yost","Hand","Emmerich","Wilderman","Howell","Sporer","Boehm","Morar","Koch","Reynolds","Padberg","Watsica","Upton","Yundt","Pfeffer","Parker","Zulauf","Treutel","McDermott","McDermott","Cruickshank","Parisian","Auer","Turner","Dooley","Wiegand","Abbott","Wisoky","Fahey","Satterfield","Bahringer","Schulist","Durgan","Carroll","Jones","Leffler","Gutkowski","Homenick"],_=["7 Breakthrough Discoveries in APOL1 Research","Debunking 7 Myths About APOL1 and Kidney Disease","Don't Ignore These 7 Critical APOL1 Findings","How 7 Studies Are Changing Our Understanding of APOL1","APOL1 Research Awards: 7 Reasons Why They Matter","APOL1 Genetics Explained: Read These 7 Key Insights","The APOL1 Risk Factor: 7 Ways to Stay Informed","APOL1 and Precision Medicine: 7 Future Trends","Understanding APOL1 Variants: 7 Essential Facts","Master APOL1 Science with These 7 Research Breakthroughs","My Career in APOL1 Research: 7 Key Lessons","Take Advantage of APOL1 Insights - Read These 7 Studies","The Next 7 Big Things in APOL1 Research","Time is Running Out! 7 Urgent APOL1 Discoveries","The 7 Most Influential APOL1 Studies","The 7 Biggest Mistakes in APOL1 Research Interpretation","The 7 Leading APOL1 Research Labs You Should Know","Think Your Knowledge of APOL1 is Complete? 7 Reasons It\u2019s Not","Thinking About APOL1? 7 Reasons to Dive Deeper","7 Reliable Sources for APOL1 Research Updates","Best APOL1 Research Tools","Best APOL1 Insights You Will Read This Year","30 Key APOL1 Research Findings","Should We Rethink APOL1 Risk? 30 Insights","The A - Z of APOL1 and Kidney Disease","The Next 30 APOL1 Discoveries to Watch","The Ultimate Guide to APOL1 Genetics","Top 30 Thought-Provoking Quotes on APOL1","Top 7 Lessons About APOL1 Before Your Next Research Project","Top 7 Ways to Get Involved in APOL1 Research","30 Best Ways to Stay Updated on APOL1","30 Insights on APOL1 Genetic Variants","30 Lessons About APOL1 You Need to Know","30 Methods to Advance APOL1 Research","30 Immediate Steps to Improve APOL1 Understanding","30 Ways to Deepen Your Knowledge of APOL1","30 Ways to Support APOL1 Research","30 Ways APOL1 is Impacting Kidney Disease Studies","How to Stay Ahead in APOL1 Research with Less Effort"],b=["Assumenda nam repudiandae rerum fugiat vel maxime.","Quis veniam aut saepe aliquid nulla.","Reprehenderit ut voluptas sapiente ratione nostrum est.","Error ut sit vel molestias velit.","Quo quia sit nihil nemo doloremque et.","Autem doloribus harum vero laborum.","Tempora officiis consequuntur architecto nostrum autem nam adipisci.","Voluptas sunt magni adipisci praesentium saepe.","Ea architecto quas voluptates voluptas earum illo est vel rem.","Ipsum expedita reiciendis ut.","Architecto vel voluptatibus alias a aut non maxime ipsa voluptates.","Reiciendis enim officiis cupiditate eaque distinctio laudantium modi similique consequatur.","Ab autem consequatur itaque mollitia ipsum cupiditate error repudiandae nobis.","Distinctio architecto debitis eligendi consequatur unde id modi accusantium possimus.","At ut voluptate accusantium.","Repudiandae ut qui veritatis sint.","Laboriosam blanditiis quo sed et qui esse ipsam necessitatibus sed.","Et molestiae et excepturi maxime omnis.","Sint dolorem quam eum magnam.","Rerum ut iusto iste quam voluptatem necessitatibus.","Et quam in.","Fugit esse tenetur.","Dolorem dolor porro nihil cupiditate molestiae deserunt ut.","Omnis beatae eos eius aut molestias laboriosam laborum et optio.","Ut veniam quam assumenda ut voluptatibus ducimus accusamus.","Quos dignissimos neque omnis reiciendis voluptatem ducimus.","Laboriosam quia ut esse.","Sit reiciendis nihil qui molestias et.","Facilis cupiditate minima ratione quaerat omnis velit non ex totam.","Provident sint esse voluptatem voluptas eveniet est.","Molestias consequatur ea facilis.","Tempora voluptatibus autem ut ut porro quae delectus dolorum.","Et consequatur amet nemo ducimus voluptatem placeat voluptas.","Modi iste atque hic voluptas sit quis deleniti quas consequatur.","Omnis est aliquid odio mollitia aliquid ex.","Officia possimus veniam quod molestias.","Mollitia inventore recusandae provident aut.","Numquam ullam beatae possimus.","Fuga velit cupiditate ex culpa odio aut ut.","Vero corrupti nam voluptatum excepturi est et."],x=["Recent studies indicate a strong correlation between APOL1 genetic variants and kidney disease progression in certain populations.","APOL1 risk variants have been identified as key contributors to focal segmental glomerulosclerosis (FSGS) and chronic kidney disease (CKD).","Research suggests that APOL1 mutations may lead to increased podocyte dysfunction, accelerating kidney damage.","Individuals carrying high-risk APOL1 genotypes exhibit a significantly increased likelihood of developing end-stage renal disease (ESRD).","Apolipoprotein L1 (APOL1) is implicated in the immune response, but its risk variants may trigger unintended cellular toxicity in kidney cells.","Studies reveal that APOL1-related kidney disease disproportionately affects individuals of African ancestry due to evolutionary pressures.","Genetic screening for APOL1 variants is emerging as a critical tool for assessing kidney disease risk in susceptible populations.","Potential therapeutic interventions targeting APOL1 expression are currently being explored to mitigate kidney damage.","The APOL1 G1 and G2 variants, associated with kidney disease, evolved as a defense mechanism against African sleeping sickness.","Kidney biopsies from APOL1 high-risk individuals often show signs of podocyte depletion and increased inflammation.","Experimental models demonstrate that APOL1 risk variants disrupt normal kidney cell function, leading to cytotoxic effects.","Early detection of APOL1-associated nephropathy may enable better clinical management and treatment outcomes.","APOL1-induced kidney disease remains an active area of research, with scientists seeking ways to counteract its damaging effects.","Certain experimental drugs are showing promise in selectively inhibiting APOL1 toxicity without affecting its protective role.","Precision medicine approaches may soon allow for personalized treatment strategies based on an individual\u2019s APOL1 status.","Patients with APOL1-associated kidney disease often progress to dialysis or transplantation at a faster rate than those without risk variants.","Understanding APOL1\u2019s role in kidney disease pathogenesis is crucial for developing targeted therapies.","Advanced genomic techniques are improving our ability to predict APOL1-related kidney disease risk with greater accuracy.","Pharmaceutical companies are actively working on APOL1 inhibitors to slow or prevent disease progression.","Increased awareness of APOL1 genetic risks is leading to improved screening protocols in nephrology clinics.","Researchers are investigating lifestyle and environmental factors that may exacerbate APOL1-related kidney damage.","APOL1\u2019s impact on kidney function extends beyond nephrology, influencing broader immune and inflammatory responses.","Identifying APOL1 carriers early in life could be key to implementing preventative health measures.","Genetic counseling is becoming an important part of clinical care for patients with a high-risk APOL1 genotype.","APOL1-linked kidney disease may not respond well to traditional immunosuppressive therapies, necessitating new treatment approaches.","Efforts to understand APOL1\u2019s exact mechanism of toxicity are guiding the next generation of nephrology research.","Collaboration between geneticists and nephrologists is accelerating discoveries related to APOL1 and kidney disease.","The intersection of genetics and precision medicine holds promise for future APOL1-targeted therapies.","Recent breakthroughs in APOL1 research could pave the way for novel drug developments in the coming decade.","Ethical considerations surrounding APOL1 genetic testing are an important aspect of ongoing discussions in the medical community.","Despite its risks, APOL1 evolutionarily provided protection against parasitic infections, showcasing the complexity of genetic trade-offs.","With increasing research, APOL1 kidney disease could become a preventable condition through early intervention strategies.","Public health initiatives are focusing on raising awareness of APOL1 risks among healthcare providers and affected communities.","APOL1-related nephropathy underscores the importance of precision medicine in tackling genetically influenced diseases.","New clinical trials aim to evaluate the efficacy of APOL1-targeting drugs in reducing kidney disease progression.","Machine learning models are being developed to assess APOL1-related kidney disease risk using large-scale genomic data.","Understanding APOL1\u2019s cellular pathways could unlock insights into broader mechanisms of kidney dysfunction.","The role of APOL1 in kidney disease highlights the need for more diverse representation in genetic studies."],E=[16.19,35.71,34.3,93.1,55.47,89.09,44.39,26.92,45.35,26.96,78.22,35.54,90.69,63.61,67.55,94.75,75.78,39.6,52.84,72.8,83.08,85.02,69.22,60.96,84.7,16.68,78.83,58.07,65.8,55.69,87.55,44.74,27.42,84,76.17,43.83,76.39,17.42,42.3,12.45],S=[2.5,2,4.9,2,4,5,4.9,5,3.7,2.5,2,4.9,4.8,4,2,3.7,1.4,2.4,1.8,5,2.9,3.9,3.9,1.8,5,2.6,3.1,3.9,1.2,3.2,4.1,5,4.5,4.1,2.3,2.4,5,3.1,4.9,1.7],w=[52,43,56,25,22,53,38,50,55,37,16,27,55,41,52,32,34,52,31,53,23,48,43,41,19,21,17,29,32,54,38,34,49,33,55,50,24,27,23,23],C=[8.62,86.36,73.99,79,63.41,58.79,12.32,88.44,45.06,91.64,88.41,73.08,39.14,89.34,43.37,34.45,24.04,80.96,72.91,47.59,2.46,3.33,99.31,47.6,34.09,50.61,66.13,46.69,92.43,31.41,90.85,36.32,38.84,25.6,87.61,1.31,89.32,41.23,85.9,62.63],T={id:function(e){return"e99f09a7-dd88-49d5-b1c8-1daf80c2d7b".concat(e+1)},email:function(e){return u[e]},phoneNumber:function(e){return c[e]},time:function(e){return function(e,t){if((0,o.Z)(2,arguments),!t||"object"!==l(t))return new Date(NaN);var n=t.years?(0,i.Z)(t.years):0,a=t.months?(0,i.Z)(t.months):0,u=t.weeks?(0,i.Z)(t.weeks):0,c=t.days?(0,i.Z)(t.days):0,d=t.hours?(0,i.Z)(t.hours):0,f=t.minutes?(0,i.Z)(t.minutes):0,p=t.seconds?(0,i.Z)(t.seconds):0,h=s(e,a+12*n),m=(0,r.Z)(h,c+7*u),g=1e3*(p+60*(f+60*d));return new Date(m.getTime()-g)}(new Date,{days:e,hours:e})},boolean:function(e){return d[e]},role:function(e){return f[e]},company:function(e){return p[e]},address:{fullAddress:function(e){return h[e]},country:function(e){return m[e]}},name:{firstName:function(e){return v[e]},lastName:function(e){return y[e]},fullName:function(e){return g[e]}},text:{title:function(e){return _[e]},sentence:function(e){return b[e]},description:function(e){return x[e]}},number:{percent:function(e){return C[e]},rating:function(e){return S[e]},age:function(e){return w[e]},price:function(e){return E[e]}},image:{cover:function(e){return"https://api-dev-minimal-v4.vercel.app/assets/images/covers/cover_".concat(e+1,".jpg")},product:function(e){return"https://api-dev-minimal-v4.vercel.app/assets/images/products/product_".concat(e+1,".jpg")},avatar:function(e){return"https://api-dev-minimal-v4.vercel.app/assets/images/avatars/avatar_".concat(e+1,".jpg")}}},A=T},69904:function(e,t,n){"use strict";n.d(t,{w7:function(){return E},Gz:function(){return O},x6:function(){return I},DX:function(){return R},c_:function(){return T},ke:function(){return w},Fr:function(){return j},yN:function(){return G},Ot:function(){return U},o2:function(){return k},Xp:function(){return C},u4:function(){return A},_I:function(){return D},oE:function(){return o},n:function(){return p},oe:function(){return d},c8:function(){return c},gY:function(){return s},fw:function(){return l},BU:function(){return u},aH:function(){return h},Xz:function(){return m},Po:function(){return f}});var r=n(93433),i=n(34965),a=n(10114),o=(["Chrome","Drive","Dropbox","Evernote","Github"].map((function(e,t){return{id:i.Z.id(t),name:e,system:2===t||4===t?"Windows":"Mac",price:0===t||2===t||4===t?0:i.Z.number.price(t),rating:i.Z.number.rating(t),review:(0,a.Jh)(999,99999),shortcut:("Chrome"===e?"/assets/icons/apps/ic_chrome.svg":"Drive"===e&&"/assets/icons/apps/ic_drive.svg")||"Dropbox"===e&&"/assets/icons/apps/ic_dropbox.svg"||"Evernote"===e&&"/assets/icons/apps/ic_evernote.svg"||"/assets/icons/apps/ic_github.svg"}})),["de","en","fr","kr","us"].map((function(e,t){return{id:i.Z.id(t),name:["Germany","England","France","Korean","USA"][t],android:(0,a.Jh)(999,99999),windows:(0,a.Jh)(999,99999),apple:(0,a.Jh)(999,99999),flag:"/assets/icons/flags/ic_flag_".concat(e,".svg")}})),(0,r.Z)(Array(3)).map((function(e,t){return{id:i.Z.id(t),name:i.Z.name.fullName(t),avatar:i.Z.image.avatar(t),favourite:(0,a.Jh)(9999,19999)}})),(0,r.Z)(Array(5)).map((function(e,t){return{id:"".concat(Date.now()+t),price:i.Z.number.price(t),category:(0,a.SA)(["Android","Mac","Windows"]),status:(0,a.SA)(["paid","out_of_date","in_progress"])}})),(0,r.Z)(Array(3)).map((function(e,t){return{id:i.Z.id(t),title:["Harry Potter and the Deathly Hallows - Part 2","Disney Zombies 2","Lightroom mobile - Koloro"][t],description:i.Z.text.title(t),image:i.Z.image.cover(t)}})),{id:i.Z.id(1),cover:i.Z.image.cover(1),role:"UI Designer",follower:(0,a.Jh)(999,99999),following:(0,a.Jh)(999,99999),quote:"Tart I love sugar plum I love oat cake. Sweet roll caramels I love jujubes. Topping cake wafer..",country:i.Z.address.country(1),email:i.Z.email(1),company:i.Z.company(1),school:i.Z.company(2),socialLinks:{facebookLink:"https://www.facebook.com/caitlyn.kerluke",instagramLink:"https://www.instagram.com/caitlyn.kerluke",linkedinLink:"https://www.linkedin.com/in/caitlyn.kerluke",twitterLink:"https://www.twitter.com/caitlyn.kerluke"}}),s=(0,r.Z)(Array(18)).map((function(e,t){return{id:i.Z.id(t),avatarUrl:i.Z.image.avatar(t),name:i.Z.name.fullName(t),country:i.Z.address.country(t),isFollowed:i.Z.boolean(t)}})),l=(0,r.Z)(Array(18)).map((function(e,t){return{id:i.Z.id(t),avatarUrl:i.Z.image.avatar(t),name:i.Z.name.fullName(t),role:i.Z.role(t)}})),u=(0,r.Z)(Array(12)).map((function(e,t){return{id:i.Z.id(t),title:i.Z.text.title(t),postAt:i.Z.time(t),imageUrl:i.Z.image.cover(t)}})),c=(0,r.Z)(Array(3)).map((function(e,t){return{id:i.Z.id(t),author:{id:i.Z.id(8),avatarUrl:i.Z.image.avatar(1),name:"Caitlyn Kerluke"},isLiked:!0,createdAt:i.Z.time(t),media:i.Z.image.cover(t),message:i.Z.text.sentence(t),personLikes:(0,r.Z)(Array(36)).map((function(e,t){return{name:i.Z.name.fullName(t),avatarUrl:i.Z.image.avatar(t+2)}})),comments:2===t&&[]||[{id:i.Z.id(7),author:{id:i.Z.id(8),avatarUrl:i.Z.image.avatar((0,a.SA)([2,3,4,5,6])||2),name:i.Z.name.fullName(t+5)},createdAt:i.Z.time(2),message:"Praesent venenatis metus at"},{id:i.Z.id(9),author:{id:i.Z.id(10),avatarUrl:i.Z.image.avatar((0,a.SA)([7,8,9,10,11])||7),name:i.Z.name.fullName(t+6)},createdAt:i.Z.time(3),message:"Etiam rhoncus. Nullam vel sem. Pellentesque libero tortor, tincidunt et, tincidunt eget, semper nec, quam. Sed lectus."}]}})),d=(0,r.Z)(Array(24)).map((function(e,t){return{id:i.Z.id(t),avatarUrl:i.Z.image.avatar(t),cover:i.Z.image.cover(t),name:i.Z.name.fullName(t),follower:(0,a.Jh)(999,99999),following:(0,a.Jh)(999,99999),totalPosts:(0,a.Jh)(999,99999),role:i.Z.role(t)}})),f=(0,r.Z)(Array(2)).map((function(e,t){return{id:i.Z.id(t),cardNumber:["**** **** **** 1234","**** **** **** 5678","**** **** **** 7878"][t],cardType:["master_card","visa","master_card"][t]}})),p=(0,r.Z)(Array(4)).map((function(e,t){return{id:i.Z.id(t),name:i.Z.name.fullName(t),phone:i.Z.phoneNumber(t),country:i.Z.address.country(t),state:"New Hampshire",city:"East Sambury",street:"41256 Kamille Turnpike",zipCode:"85807"}})),h=(0,r.Z)(Array(10)).map((function(e,t){return{id:i.Z.id(t),createdAt:i.Z.time(t),price:i.Z.number.price(t)}})),m=(0,r.Z)(Array(24)).map((function(e,t){return{id:i.Z.id(t),avatarUrl:i.Z.image.avatar(t),name:i.Z.name.fullName(t),email:i.Z.email(t),phoneNumber:i.Z.phoneNumber(t),address:"908 Jack Locks",country:i.Z.address.country(t),state:"Virginia",city:"Rancho Cordova",zipCode:"85807",company:i.Z.company(t),isVerified:i.Z.boolean(t),status:(0,a.SA)(["active","banned"]),role:i.Z.role(t)}})),g=24e9,v=["jpg","mp3","mp4","pdf","jpg","jpg","txt","psd","doc","docx","xls","xlsx","zip","rar","iso","ai","esp","ppt","pptx","wav","m4v","jpg","jpg","pdf"],y=[i.Z.image.cover(1),"https://www.cloud.com/s/c218bo6kjuqyv66/design_suriname_2015.mp3","https://www.cloud.com/s/c218bo6kjuqyv66/expertise_2015_conakry_sao-tome-and-principe_gender.mp4","https://www.cloud.com/s/c218bo6kjuqyv66/money-popup-crack.pdf",i.Z.image.cover(3),i.Z.image.cover(5),"https://www.cloud.com/s/c218bo6kjuqyv66/large_news.txt","https://www.cloud.com/s/c218bo6kjuqyv66/nauru-6015-small-fighter-left-gender.psd","https://www.cloud.com/s/c218bo6kjuqyv66/tv-xs.doc","https://www.cloud.com/s/c218bo6kjuqyv66/gustavia-entertainment-productivity.docx","https://www.cloud.com/s/c218bo6kjuqyv66/vintage_bahrain_saipan.xls","https://www.cloud.com/s/c218bo6kjuqyv66/indonesia-quito-nancy-grace-left-glad.xlsx","https://www.cloud.com/s/c218bo6kjuqyv66/legislation-grain.zip","https://www.cloud.com/s/c218bo6kjuqyv66/large_energy_dry_philippines.rar","https://www.cloud.com/s/c218bo6kjuqyv66/footer-243-ecuador.iso","https://www.cloud.com/s/c218bo6kjuqyv66/kyrgyzstan-04795009-picabo-street-guide-style.ai","https://www.cloud.com/s/c218bo6kjuqyv66/india-data-large-gk-chesterton-mother.esp","https://www.cloud.com/s/c218bo6kjuqyv66/footer-barbados-celine-dion.ppt","https://www.cloud.com/s/c218bo6kjuqyv66/socio_respectively_366996.pptx","https://www.cloud.com/s/c218bo6kjuqyv66/socio_ahead_531437_sweden_popup.wav","https://www.cloud.com/s/c218bo6kjuqyv66/trinidad_samuel-morse_bring.m4v",i.Z.image.cover(11),i.Z.image.cover(17),"https://www.cloud.com/s/c218bo6kjuqyv66/xl_david-blaine_component_tanzania_books.pdf"],_=(0,r.Z)(Array(24)).map((function(e,t){return{id:i.Z.id(t),name:i.Z.name.fullName(t),email:i.Z.email(t),avatar:i.Z.image.avatar(t),permission:(0,a.SA)(["view","edit"])}})),b=["Docs","Projects","Work","Training","Sport","Foods"].map((function(e,t){return{id:"".concat(i.Z.id(t),"_folders"),name:e,size:g/(10*(t+1)),type:"folder",totalFiles:100*(t+1),isFavorited:i.Z.boolean(t+1),shared:_.slice(t,5),url:y[t],tags:["Docs","Projects","Work","Training","Sport","Foods"],dateCreated:i.Z.time(t),dateModified:i.Z.time(t)}})),x=["cover_2.jpg","design_suriname_2015.mp3","expertise_2015_conakry_sao-tome-and-principe_gender.mp4","money-popup-crack.pdf","cover_4.jpg","cover_6.jpg","large_news.txt","nauru-6015-small-fighter-left-gender.psd","tv-xs.doc","gustavia-entertainment-productivity.docx","vintage_bahrain_saipan.xls","indonesia-quito-nancy-grace-left-glad.xlsx","legislation-grain.zip","large_energy_dry_philippines.rar","footer-243-ecuador.iso","kyrgyzstan-04795009-picabo-street-guide-style.ai","india-data-large-gk-chesterton-mother.esp","footer-barbados-celine-dion.ppt","socio_respectively_366996.pptx","socio_ahead_531437_sweden_popup.wav","trinidad_samuel-morse_bring.m4v","cover_12.jpg","cover_18.jpg","xl_david-blaine_component_tanzania_books.pdf"].map((function(e,t){return{id:"".concat(i.Z.id(t),"_files"),name:e,size:g/(500*(t+1)),type:v[t],isFavorited:i.Z.boolean(t+1),shared:0===t?null:_.slice(t,8),url:y[t],tags:["Docs","Projects","Work","Training","Sport","Foods"],dateCreated:i.Z.time(t),dateModified:i.Z.time(t)}})),E=[].concat((0,r.Z)(b),(0,r.Z)(x)),S=["Basic","Standard","Professional"],w=[{license:S[0],commons:["12 Month duration","8.00 % interest rate","$10.00 minimun","$5000 maximum"],options:["JavaScript version","TypeScript version","Design Resources","Commercial applications"]},{license:S[1],commons:["24 Month duration","10.00 % interest rate","$100.00 minimun","$50000 maximum"],options:["JavaScript version","TypeScript version","Design Resources","Commercial applications"]},{license:S[2],commons:["36 Month duration","15.00 % interest rate","$500.00 minimun","$120000 maximum"],options:["JavaScript version","TypeScript version","Design Resources","Commercial applications"]}],C=[{subscription:"basic",price:0,caption:"forever",lists:[{text:"3 prototypes",isAvailable:!0},{text:"3 boards",isAvailable:!0},{text:"Up to 5 team members",isAvailable:!1},{text:"Advanced security",isAvailable:!1},{text:"Permissions & workflows",isAvailable:!1}],labelAction:"current plan"},{subscription:"starter",price:4.99,caption:"saving $24 a year",lists:[{text:"3 prototypes",isAvailable:!0},{text:"3 boards",isAvailable:!0},{text:"Up to 5 team members",isAvailable:!0},{text:"Advanced security",isAvailable:!1},{text:"Permissions & workflows",isAvailable:!1}],labelAction:"choose starter"},{subscription:"premium",price:9.99,caption:"saving $124 a year",lists:[{text:"3 prototypes",isAvailable:!0},{text:"3 boards",isAvailable:!0},{text:"Up to 5 team members",isAvailable:!0},{text:"Advanced security",isAvailable:!0},{text:"Permissions & workflows",isAvailable:!0}],labelAction:"choose premium"}],T=((0,r.Z)(Array(6)).map((function(e,t){return{id:i.Z.id(t),name:i.Z.name.fullName(t),role:i.Z.role(t),avatar:"/assets/images/portraits/portrait_".concat(t+1,".jpg")}})),[{id:i.Z.id(0),value:"panel".concat(1),heading:"How to open an account?",detail:"Account opening is very easy. Just need to send a mail to our customer support and you will directed on the process based on your region."},{id:i.Z.id(1),value:"panel".concat(2),heading:"How to withdraw money from my account?",detail:"We have different types of withdraw method. You can withdraw money to your bank account as well as your mobile banking account."},{id:i.Z.id(2),value:"panel".concat(2),heading:" How to Apply for Loan?",detail:"You can apply loan based on your collateral."},{id:i.Z.id(2),value:"panel".concat(2),heading:" How to Apply for Fixed Deposit?",detail:"If you have available balance in your account then you can apply for fixed deposit."}]),A=((0,r.Z)(Array(5)).map((function(e,t){return{id:i.Z.id(t),receiver:i.Z.name.fullName(t),fullAddress:i.Z.address.fullAddress(t),phone:i.Z.phoneNumber(t),addressType:0===t?"Home":"Office",isDefault:0===t}})),(0,r.Z)(Array(3)).map((function(e,t){return{label:["Money Transfer","Exchange Currency","Loans"][t],value:i.Z.number.percent(t)}}))),k=((0,r.Z)(Array(20)).map((function(e,t){return{id:i.Z.id(t),name:i.Z.name.fullName(t),username:i.Z.name.fullName(t),avatar:i.Z.image.avatar(t),address:i.Z.address.fullAddress(t),phone:i.Z.phoneNumber(t),email:i.Z.email(t),lastActivity:i.Z.time(t),status:(0,a.SA)(["online","offline","away","busy"]),role:i.Z.role(t)}})),(0,r.Z)(Array(5)).map((function(e,t){return{id:i.Z.id(t),title:["Your order is placed","Sylvan King","You have new message","You have new mail","Delivery processing"][t],description:["waiting for shipping","answered to your comment on the Minimal","5 unread messages","sent from Guido Padberg","Your order is being shipped"][t],avatar:[null,i.Z.image.avatar(2),null,null,null][t],type:["order_placed","friend_interactive","chat_message","mail","order_shipped"][t],createdAt:i.Z.time(t),isUnRead:[!0,!0,!1,!1,!1][t]}})),[{latlng:[33,65],address:i.Z.address.fullAddress(1),phoneNumber:i.Z.phoneNumber(1)},{latlng:[-12.5,18.5],address:i.Z.address.fullAddress(2),phoneNumber:i.Z.phoneNumber(2)}]),D=[{value:"facebook",name:"FaceBook",icon:"eva:facebook-fill",color:"#1877F2",path:"https://www.facebook.com/caitlyn.kerluke"},{value:"instagram",name:"Instagram",icon:"ant-design:instagram-filled",color:"#E02D69",path:"https://www.instagram.com/caitlyn.kerluke"},{value:"linkedin",name:"Linkedin",icon:"eva:linkedin-fill",color:"#007EBB",path:"https://www.linkedin.com/caitlyn.kerluke"},{value:"twitter",name:"Twitter",icon:"eva:twitter-fill",color:"#00AAEC",path:"https://www.twitter.com/caitlyn.kerluke"}],O=((0,r.Z)(Array(5)).map((function(e,t){return{id:i.Z.id(t),name:i.Z.name.fullName(t),avatar:i.Z.image.avatar(t),checkIn:i.Z.time(t),checkOut:i.Z.time(t),phoneNumber:i.Z.phoneNumber(t),status:(0,a.SA)(["pending","un_paid","paid"]),roomType:(0,a.SA)(["double","king","single"])}})),(0,r.Z)(Array(3)).map((function(e,t){return{status:["Pending","Cancel","Done"][t],quantity:1e3*i.Z.number.percent(t),value:i.Z.number.percent(t)}})),(0,r.Z)(Array(5)).map((function(e,t){return{id:i.Z.id(t),name:i.Z.name.fullName(t),description:i.Z.text.description(t),avatar:i.Z.image.avatar(t),rating:i.Z.number.rating(t),postedAt:i.Z.time(t),tags:["Great Sevice","Recommended","Best Price"]}})),(0,r.Z)(Array(5)).map((function(e,t){return{id:i.Z.id(t),name:i.Z.name.fullName(t),avatar:i.Z.image.avatar(t),bookdAt:i.Z.time(t),roomNumber:"A-21",roomType:(0,a.SA)(["double","king","single"]),person:"3-5",cover:"/assets/images/rooms/room_".concat(t+1,".jpg")}})),(0,r.Z)(Array(12)).map((function(e,t){return{id:i.Z.id(t),name:i.Z.name.fullName(t),email:i.Z.email(t),avatar:i.Z.image.avatar(t)}}))),I=[{id:i.Z.id(2),balance:23445432.03,cardType:"mastercard",cardHolder:"Diego Neeson Licano",cardNumber:"**** **** **** 3640",cardValid:"11/26"}],R=[{id:i.Z.id(2),name:i.Z.name.fullName(2),avatar:i.Z.image.avatar(8),type:"Income",message:"Receive money from",category:"Annette Black",date:17069803e5,status:"completed",amount:811.45},{id:i.Z.id(3),name:i.Z.name.fullName(3),avatar:i.Z.image.avatar(9),type:"Expenses",message:"Payment for",category:"Courtney Henry",date:1703459199e3,status:"completed",amount:806.03},{id:i.Z.id(4),name:i.Z.name.fullName(4),avatar:i.Z.image.avatar(12),type:"Receive",message:"Payment for",category:"Theresa Webb",date:16966648e5,status:"failed",amount:82.26},{id:i.Z.id(5),name:null,avatar:null,type:"Expenses",message:"Payment for",category:"Beauty & Health",date:1689778245e3,status:"completed",amount:480.73},{id:i.Z.id(6),name:null,avatar:null,type:"Expenses",message:"Payment for",category:"Books",date:16725312e5,status:"completed",amount:11.45}],N=n(85825),M=n(99004),P=n(79254),L=n(93601),F=n(34800),B=n(68627);function Z(e){return Z="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(e)}function z(e,t){if((0,F.Z)(2,arguments),!t||"object"!==Z(t))return new Date(NaN);var n=t.years?(0,B.Z)(t.years):0,r=t.months?(0,B.Z)(t.months):0,i=t.weeks?(0,B.Z)(t.weeks):0,a=t.days?(0,B.Z)(t.days):0,o=t.hours?(0,B.Z)(t.hours):0,s=t.minutes?(0,B.Z)(t.minutes):0,l=t.seconds?(0,B.Z)(t.seconds):0,u=(0,L.Z)(e),c=r||n?(0,P.Z)(u,r+12*n):u,d=a||i?(0,M.Z)(c,a+7*i):c,f=s+60*o,p=l+60*f,h=1e3*p,m=new Date(d.getTime()+h);return m}var U=(0,r.Z)(Array(20)).map((function(e,t){return{id:i.Z.id(t),invoiceNumber:"".concat(17048+t),taxes:5,discount:10,sent:(0,a.Jh)(1,10),subTotalPrice:i.Z.number.price(t+1),totalPrice:i.Z.number.price(t+1),createDate:(0,N.Z)(new Date,t),dueDate:z(new Date,{days:t+15,hours:t}),status:(0,a.SA)(["paid","unpaid","overdue","draft"]),invoiceFrom:{id:i.Z.id(t),name:i.Z.name.fullName(t),address:i.Z.address.fullAddress(t),company:i.Z.company(t),email:i.Z.email(t),phone:i.Z.phoneNumber(t)},invoiceTo:{id:i.Z.id(t+1),name:i.Z.name.fullName(t+1),address:i.Z.address.fullAddress(t+1),company:i.Z.company(t+1),email:i.Z.email(t+1),phone:i.Z.phoneNumber(t+1)},items:(0,r.Z)(Array(3)).map((function(e,t){return{id:i.Z.id(t),title:i.Z.text.title(t),description:i.Z.text.description(t),quantity:5,price:i.Z.number.price(t),total:i.Z.number.price(t),service:(0,a.SA)(["full stack development","backend development","ui design","ui/ux design","front end development"])}}))}})),j=(0,r.Z)(Array(5)).map((function(e,t){return{id:i.Z.id(t),name:i.Z.name.fullName(t),address:i.Z.address.fullAddress(t),company:i.Z.company(t),email:i.Z.email(t),phone:i.Z.phoneNumber(t)}})),G=(0,r.Z)(Array(16)).map((function(e,t){return{id:i.Z.id(t+1),name:i.Z.name.fullName(t+1),address:i.Z.address.fullAddress(t+1),company:i.Z.company(t+1),email:i.Z.email(t+1),phone:i.Z.phoneNumber(t+1)}})),V=["de","en","fr","kr","us"],q=["CAP","Branded Shoes","Headphone","Cell Phone","Earings"],H=["Small Granite Computer","Small Rubber Mouse","Awesome Rubber Hat","Sleek Cotton Sausages","Rustic Wooden Chicken"];(0,r.Z)(Array(3)).map((function(e,t){return{label:["Total Profit","Total Income","Total Expenses"][t],amount:100*i.Z.number.price(t),value:i.Z.number.percent(t)}})),(0,r.Z)(Array(5)).map((function(e,t){return{id:i.Z.id(t),name:i.Z.name.fullName(t),email:i.Z.email(t),avatar:i.Z.image.avatar(t+8),category:q[t],flag:"/assets/icons/flags/ic_flag_".concat(V[t],".svg"),total:i.Z.number.price(t),rank:"Top ".concat(t+1)}})),(0,r.Z)(Array(5)).map((function(e,t){return{id:i.Z.id(t),name:H[t],image:i.Z.image.product(t),price:i.Z.number.price(t),priceSale:0===t||3===t?0:i.Z.number.price(t),colors:0===t&&["#2EC4B6","#E71D36","#FF9F1C","#011627"]||1===t&&["#92140C","#FFCF99"]||2===t&&["#0CECDD","#FFF338","#FF67E7","#C400FF","#52006A","#046582"]||3===t&&["#845EC2","#E4007C","#2A1A5E"]||["#090088"]}})),(0,r.Z)(Array(5)).map((function(e,t){return{id:i.Z.id(t),name:["Nike Air Max 97","Nike Zoom Gravity","Nike DBreak-Type","Kyrie Flytrap 3 EP Basketball Shoe","Nike Air Max Fusion Men"][t],image:i.Z.image.product(t)}})),(0,r.Z)(Array(5)).map((function(e,t){return{id:i.Z.id(t),title:i.Z.text.title(t),description:i.Z.text.description(t),image:i.Z.image.cover(t),postedAt:i.Z.time(t)}})),(0,r.Z)(Array(5)).map((function(e,t){return{id:i.Z.id(t),title:["APOL1 Gene: Structure and Function","Risk Variants: G1 and G2 Explained","APOL1 and Kidney Disease Connection","FSGS and CKD: Impact of APOL1","Evolutionary Advantage Against Trypanosomiasis","High-Risk Populations: Genetic Insights","APOL1 in Kidney Transplant Outcomes","Potential Therapies Targeting APOL1","Biomarkers for Disease Progression","Ongoing Clinical Trials and Research"][t],type:"order".concat(t+1),time:i.Z.time(t)}}))},21365:function(e,t,n){"use strict";n.d(t,{SA:function(){return r.SA},ZP:function(){return i.Z}});var r=n(10114),i=n(34965)},10114:function(e,t,n){"use strict";function r(e,t){return Math.floor(Math.random()*(t-e+1))+e}function i(e){return e[Math.floor(Math.random()*e.length)]}n.d(t,{Jh:function(){return r},SA:function(){return i}})},59479:function(e,t,n){"use strict";n.d(t,{dD:function(){return y},E:function(){return h},Bt:function(){return b},CE:function(){return E},N0:function(){return g},A2:function(){return f}});var r=n(47313),i=n(62111),a=n(46417);function o(){var e=(0,i.Z)().palette.primary.main;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:e}),(0,a.jsx)("stop",{offset:"100%",stopColor:e,stopOpacity:"0"})]})}),(0,a.jsx)("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"})]})}var s=(0,r.memo)(o);var l=n(1413),u=n(36459),c=n(16157);function d(e){var t=Object.assign({},((0,u.Z)(e),e)),n=(0,i.Z)(),r=n.palette.primary.main,o=n.palette.primary.dark,d=n.palette.primary.darker;return(0,a.jsx)(c.Z,(0,l.Z)((0,l.Z)({},t),{},{children:(0,a.jsxs)("svg",{width:"100%",height:"100%",viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)(s,{}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"linearGradient-2",x1:"30.113%",x2:"30.113%",y1:"0%",y2:"100%",children:[(0,a.jsx)("stop",{offset:"0%",stopOpacity:"0"}),(0,a.jsx)("stop",{offset:"100%"})]})}),(0,a.jsx)("path",{fill:"#FF4842",fillRule:"nonzero",d:"M293.006 206.192c-2.248 2.672-4.676 2.628-6.123 2.251l.054-1.384s5.979-2.733 5.827-2.159c-.057.215.057.733.242 1.292zM309.393 209.217c-3.818 2.206-6.058-.38-6.578-1.112.32-.84.801-2.204.703-2.592-.144-.577 5.827 2.155 5.827 2.155l.048 1.549zM305.303 187.204s3.632-2.093 4.425-1.151c.792.942-4.425 1.151-4.425 1.151zM307.497 188.355s-.598.299.721.681c1.318.383-.721-.681-.721-.681zM285.532 182.599c-.123.036 3.022 2.123 5.862.395-.012 0-5.154-.61-5.862-.395zM291.239 186.591s-.861 1.692-2.625 1.943c-1.764.251 2.625-1.943 2.625-1.943zM302.785 190.262s4.138 6.578 3.346 8.129c-.793 1.552-3.346-8.129-3.346-8.129zM294.62 216.416c0 .368 0 .712-.036.996-.107 1.33-3.381.828-3.381.828-2.99.416-4.066-1.019-4.422-2.392a5.444 5.444 0 01-.164-1.363 5.606 5.606 0 01.054-.819v-.272a1.998 1.998 0 011.859.379c1.331 1.08 3.095.252 3.095.252s1.294.107 1.793.538c.281.242.745-.341 1.098-.897.021.359.054 1.007.074 1.701.024.356.03.714.03 1.049z",opacity:"0.05"}),(0,a.jsx)("path",{fill:"#FF4842",fillRule:"nonzero",d:"M289.37 216.339s-.897.879-2.589-.479a5.444 5.444 0 01-.164-1.363c.864.658 2.466 1.842 2.753 1.842zM294.62 216.416a.67.67 0 01-.519.132.672.672 0 01-.452-.287c.348-.266.669-.566.956-.897.009.359.015.717.015 1.052zM301.637 217.032c0 .371 0 .715.033.996.108 1.333 3.382.828 3.382.828 2.989.419 4.066-1.017 4.421-2.392a5.728 5.728 0 00.111-2.182v-.272a2.024 2.024 0 00-1.862.379c-1.331 1.08-3.092.251-3.092.251s-1.294.111-1.794.542c-.281.242-.744-.341-1.094-.897a61.426 61.426 0 00-.078 1.701c-.024.35-.03.708-.027 1.046z",opacity:"0.05"}),(0,a.jsx)("path",{fill:"#FF4842",fillRule:"nonzero",d:"M306.887 216.949s.897.879 2.587-.479c.112-.444.169-.901.167-1.36-.867.655-2.47 1.839-2.754 1.839zM301.637 217.032a.67.67 0 00.969-.155 6.35 6.35 0 01-.957-.897c-.009.356-.014.714-.012 1.052zM319.614 106.269c.063-.138.123-.275.18-.41.057-.134.077-.209.11-.317-.11.237-.206.48-.29.727z",opacity:"0.05"}),(0,a.jsx)("path",{fill:d,fillRule:"nonzero",d:"M157.592 279.461a4.114 4.114 0 01-.917-3.131l13.196-107.979 1.094-8.97a4.142 4.142 0 014.078-3.635l38.654-.257a4.135 4.135 0 004.108-4.249l-.015-.409a4.14 4.14 0 014.135-4.279h40.619a4.134 4.134 0 014.098 4.682 4.137 4.137 0 003.995 4.682l39.01.996a4.13 4.13 0 013.97 4.831l-19.502 113.909-.368 2.152a4.042 4.042 0 01-.598 1.543l-135.557.114z"}),(0,a.jsx)("path",{fill:"#FFF",fillRule:"nonzero",d:"M251.256817 123.296578L274.098317 123.296578 274.098317 200.823078 251.256817 200.823078z",transform:"rotate(34.64 262.678 162.06)"}),(0,a.jsx)("path",{fill:"#FFC107",fillRule:"nonzero",d:"M270.624591 129.857671L286.750291 129.857671 286.750291 145.983371 270.624591 145.983371z",transform:"rotate(34.804 278.687 137.92)"}),(0,a.jsx)("path",{fill:"#FFC107",fillRule:"nonzero",d:"M260.275579 145.813111L276.423079 145.813111 276.423079 161.960611 260.275579 161.960611z",opacity:"0.5",transform:"rotate(34.64 268.35 153.887)"}),(0,a.jsx)("path",{fill:"#FFC107",fillRule:"nonzero",d:"M249.191579 161.852111L265.339079 161.852111 265.339079 177.999611 249.191579 177.999611z",opacity:"0.3",transform:"rotate(34.64 257.265 169.926)"}),(0,a.jsx)("path",{fill:"#FFF",fillRule:"nonzero",d:"M237.472537 121.334214L260.314037 121.334214 260.314037 198.567714 237.472537 198.567714z",transform:"rotate(16.29 248.893 159.951)"}),(0,a.jsx)("path",{fill:"#FF4842",fillRule:"nonzero",d:"M249.053192 123.761554L265.200692 123.761554 265.200692 139.909054 249.053192 139.909054z",transform:"rotate(16.29 257.127 131.835)"}),(0,a.jsx)("path",{fill:"#FF4842",fillRule:"nonzero",d:"M243.584192 142.473554L259.731692 142.473554 259.731692 158.621053 243.584192 158.621053z",opacity:"0.5",transform:"rotate(16.29 251.658 150.547)"}),(0,a.jsx)("path",{fill:"#FF4842",fillRule:"nonzero",d:"M238.116192 161.182554L254.263692 161.182554 254.263692 177.330054 238.116192 177.330054z",opacity:"0.3",transform:"rotate(16.29 246.19 169.256)"}),(0,a.jsx)("path",{fill:"#FFF",fillRule:"nonzero",d:"M230.099192 121.641542L252.940692 121.641542 252.940692 198.875042 230.099192 198.875042z",transform:"rotate(4.6 241.52 160.258)"}),(0,a.jsx)("path",{fill:"#1890FF",fillRule:"nonzero",d:"M235.800489 122.985499L251.947989 122.985499 251.947989 139.132999 235.800489 139.132999z",transform:"rotate(4.6 243.874 131.06)"}),(0,a.jsx)("path",{fill:"#1890FF",fillRule:"nonzero",d:"M234.234488 142.413498L250.381988 142.413498 250.381988 158.560998 234.234488 158.560998z",opacity:"0.5",transform:"rotate(4.6 242.308 150.487)"}),(0,a.jsx)("path",{fill:"#1890FF",fillRule:"nonzero",d:"M232.672488 161.846499L248.819988 161.846499 248.819988 177.993999 232.672488 177.993999z",opacity:"0.3",transform:"rotate(4.6 240.746 169.92)"}),(0,a.jsx)("path",{fill:"#FFF",fillRule:"nonzero",d:"M224.736657 123.384871L247.578157 123.384871 247.578157 200.618371 224.736657 200.618371z",transform:"rotate(-2.61 236.157 162.002)"}),(0,a.jsx)("path",{fill:r,fillRule:"nonzero",d:"M226.751283 124.659968L242.898783 124.659968 242.898783 140.807468 226.751283 140.807468z",transform:"rotate(-2.61 234.825 132.734)"}),(0,a.jsx)("path",{fill:r,fillRule:"nonzero",d:"M228.305601 143.479224L244.473301 143.479224 244.473301 159.646924 228.305601 159.646924z",opacity:"0.5",transform:"rotate(-2.862 236.39 151.563)"}),(0,a.jsx)("path",{fill:r,fillRule:"nonzero",d:"M228.525282 163.608968L244.672782 163.608968 244.672782 179.756468 228.525282 179.756468z",opacity:"0.3",transform:"rotate(-2.61 236.599 171.683)"}),(0,a.jsx)("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851-29.661 11.466c-1.121-2.093-2.771-4.921-4.813-8.297-7.026-11.642-18.65-29.75-29.001-45.665-11.66-17.938-21.696-33.075-21.696-33.075l7.265-2.093 59.346-17.23 38.854 87.043z"}),(0,a.jsx)("path",{fill:"#000",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851a152.535 152.535 0 01-34.484 3.169c-7.026-11.642-18.65-29.75-29-45.665l-14.42-35.18 59.343-17.218 38.855 87.043z",opacity:"0.1"}),(0,a.jsx)("path",{fill:r,fillRule:"nonzero",d:"M247.777 220.841s-31.526 18.65-78.596 14.432l-37.525-91.486 17.984-3.091 62.168-10.677 35.279 89.043.69 1.779z"}),(0,a.jsx)("path",{fill:"#FF4842",fillRule:"nonzero",d:"M247.075 219.074c-7.424.365-16.013.329-24.654-.702-9.351-1.101-18.757-3.367-26.82-7.523-6.742-3.471-12.506-7.247-17.532-11.776-13.074-11.759-21.164-28.579-28.429-58.365l62.168-10.677 35.267 89.043z",opacity:"0.1"}),(0,a.jsx)("path",{fill:"#FFF",fillRule:"nonzero",d:"M270.203 213.959s-23.239 4.55-46.894 1.749c-9.351-1.1-18.757-3.367-26.82-7.522-6.742-3.471-12.503-7.247-17.532-11.777-16.181-14.557-24.725-36.866-33.536-81.918 0 0 38.633 9.325 76.836-11.101-.012.015 12.865 80.373 47.946 110.569z"}),(0,a.jsx)("path",{fill:r,fillRule:"nonzero",d:"M165.405 131.03s31.416-1.776 40.187-8.548l1.331 4.276s-20.758 9.157-41.518 9.268v-4.996zM165.405 152.137s30.417-1.665 53.399-12.766l.777 1.776s-18.237 10.647-54.176 13.433v-2.443zM167.853 160.362s30.418-1.665 53.397-12.766l.777 1.776s-18.237 10.643-54.174 13.433v-2.443zM170.299 168.599s30.417-1.666 53.399-12.766l.774 1.775s-18.237 10.647-54.173 13.433v-2.442zM172.748 176.835s30.417-1.665 53.396-12.766l.777 1.776s-18.237 10.647-54.173 13.433v-2.443zM175.193 185.075s30.417-1.665 53.399-12.766l.774 1.776s-18.237 10.643-54.173 13.433v-2.443z",opacity:"0.3"}),(0,a.jsx)("path",{fill:r,fillRule:"nonzero",d:"M389.069 287.344s-12.641-.762-11.152 8.097c0 0-.299 1.563 1.124 2.275 0 0 .021-.658 1.295-.434.454.077.916.099 1.375.066a2.832 2.832 0 001.677-.694c.468-.409 3.555-1.468 4.936-7.274 0 0 1.023-1.267.981-1.593l-2.132.897s.73 1.54.156 2.816c0 0-.069-2.759-.479-2.691-.083 0-1.109.533-1.109.533s1.253 2.69.299 4.628c0 0 .359-3.304-.699-4.434l-1.495.876s1.465 2.768.472 5.029c0 0 .254-3.465-.789-4.817l-1.361 1.062s1.379 2.729.539 4.604c0 0-.111-4.036-.835-4.341 0 0-1.195 1.049-1.369 1.494 0 0 .942 1.98.356 3.026 0 0-.359-2.691-.652-2.691 0 0-1.196 1.794-1.309 2.99 0 0 .051-1.818 1.022-3.172a3.593 3.593 0 00-1.818.942s.186-1.262 2.111-1.37c0 0 .981-1.351 1.241-1.435 0 0-1.914-.158-3.074.356 0 0 1.023-1.196 3.427-.649l1.342-1.094s-2.52-.347-3.588.036c0 0 1.229-1.052 3.95-.299l1.462-.873s-2.147-.463-3.426-.299c0 0 1.348-.729 3.856.06l1.044-.47s-1.573-.299-2.033-.358c-.461-.06-.488-.174-.488-.174a5.426 5.426 0 012.957.329s2.222-.813 2.186-.954z"}),(0,a.jsx)("ellipse",{cx:"380.363",cy:"298.487",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"8.945",ry:"1.513"}),(0,a.jsx)("path",{fill:r,fillRule:"nonzero",d:"M394.956 258.102s-7.125-.43-6.279 4.565a1.218 1.218 0 00.631 1.283s.015-.371.733-.245c.255.042.515.054.774.036.349-.023.681-.159.945-.389.264-.23 2.003-.828 2.783-4.102 0 0 .577-.714.553-.897l-1.196.511s.41.87.087 1.591c0 0-.039-1.558-.269-1.522-.048 0-.625.299-.625.299s.706 1.495.173 2.61c0 0 .204-1.862-.394-2.502l-.846.496s.825 1.561.266 2.834c0 0 .143-1.955-.446-2.714l-.765.598s.774 1.539.299 2.595c0 0-.063-2.275-.469-2.446a4.75 4.75 0 00-.775.834s.532 1.118.204 1.707c0 0-.204-1.515-.368-1.521 0 0-.67 1.001-.739 1.689a3.671 3.671 0 01.577-1.794 2.007 2.007 0 00-1.025.532s.104-.711 1.196-.771c0 0 .553-.763.699-.81 0 0-1.079-.09-1.734.2 0 0 .577-.67 1.932-.365l.759-.619s-1.423-.194-2.024.021c0 0 .694-.598 2.227-.161l.826-.494a7.445 7.445 0 00-1.935-.164s.763-.413 2.174.033l.598-.263s-.897-.177-1.148-.203c-.252-.027-.275-.099-.275-.099a3.078 3.078 0 011.668.185s1.232-.46 1.208-.538z"}),(0,a.jsx)("ellipse",{cx:"390.052",cy:"264.383",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"5.044",ry:"1"}),(0,a.jsx)("path",{fill:r,fillRule:"nonzero",d:"M352.896 262.437s-8.604-.52-7.588 5.51a1.47 1.47 0 00.763 1.549s0-.449.897-.299c.309.052.623.067.935.045a1.923 1.923 0 001.142-.473c.318-.279 2.419-.998 3.361-4.951 0 0 .697-.861.667-1.085l-1.468.622s.496 1.046.104 1.916c0 0-.048-1.877-.326-1.835-.056 0-.753.364-.753.364s.852 1.824.209 3.152c0 0 .245-2.249-.475-3.02l-1.023.598s.996 1.886.32 3.423c0 0 .174-2.359-.535-3.289l-.927.724s.939 1.857.365 3.133c0 0-.072-2.747-.565-2.954 0 0-.81.715-.933 1.008 0 0 .64 1.348.242 2.06 0 0-.245-1.83-.445-1.839 0 0-.804 1.214-.897 2.042.04-.768.28-1.512.697-2.159a2.427 2.427 0 00-1.235.643s.125-.858 1.435-.933c0 0 .667-.92.846-.974 0 0-1.303-.111-2.093.239 0 0 .694-.807 2.329-.44l.915-.747s-1.713-.233-2.442.024c0 0 .837-.715 2.69-.191l.996-.598s-1.462-.314-2.335-.201c0 0 .921-.496 2.625.042l.711-.32s-1.07-.209-1.384-.242c-.314-.033-.329-.119-.329-.119a3.69 3.69 0 012.012.221s1.519-.553 1.492-.646z"}),(0,a.jsx)("ellipse",{cx:"346.97",cy:"270.022",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"6.09",ry:"1.028"}),(0,a.jsx)("rect",{width:"51.026",height:"91.312",x:"303.926",y:"69.211",fill:"#FFF",fillRule:"nonzero",rx:"4.737",transform:"rotate(-71.99 329.44 114.867)"}),(0,a.jsx)("circle",{cx:"303.613",cy:"103.507",r:"9.376",fill:r,fillRule:"nonzero",opacity:"0.2"}),(0,a.jsx)("path",{fill:r,fillRule:"nonzero",d:"M344.582495 86.4883769L347.150665 86.4883769 347.150665 127.336977 344.582495 127.336977z",opacity:"0.2",transform:"rotate(-71.99 345.867 106.913)"}),(0,a.jsx)("path",{fill:r,fillRule:"nonzero",d:"M333.028401 99.6373982L335.596571 99.6373982 335.596571 120.445898 333.028401 120.445898z",opacity:"0.2",transform:"rotate(-71.99 334.312 110.042)"}),(0,a.jsx)("path",{fill:r,fillRule:"nonzero",d:"M337.109071 101.431004L339.677241 101.431004 339.677241 135.086304 337.109071 135.086304z",opacity:"0.2",transform:"rotate(-71.99 338.393 118.259)"}),(0,a.jsx)("path",{fill:r,fillRule:"nonzero",d:"M338.505494 105.174377L341.073664 105.174377 341.073664 146.022978 338.505494 146.022978z",opacity:"0.2",transform:"rotate(-71.99 339.79 125.599)"}),(0,a.jsx)("path",{fill:r,fillRule:"nonzero",d:"M348.060839 134.648161L353.026769 134.648161 353.026769 145.952261 348.060839 145.952261z",opacity:"0.5",transform:"rotate(-71.99 350.544 140.3)"}),(0,a.jsx)("rect",{width:"50.3",height:"78.305",x:"291.549",y:"174.486",fill:"#FFF",fillRule:"nonzero",rx:"4",transform:"rotate(-57.265 316.7 213.638)"}),(0,a.jsx)("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M278.038439 203.88874L292.269539 203.88874 292.269539 207.23723 278.038439 207.23723z",transform:"rotate(-57.57 285.154 205.563)"}),(0,a.jsx)("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M283.007935 199.201889L314.262535 199.201889 314.262535 202.272339 283.007935 202.272339z",transform:"rotate(-57.57 298.635 200.737)"}),(0,a.jsx)("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M288.543935 202.715889L319.798535 202.715889 319.798535 205.786339 288.543935 205.786339z",transform:"rotate(-57.57 304.171 204.251)"}),(0,a.jsx)("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M294.078936 206.235889L325.333536 206.235889 325.333536 209.306339 294.078936 209.306339z",transform:"rotate(-57.57 309.706 207.771)"}),(0,a.jsx)("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M299.879919 211.40702L331.090719 211.40702 331.090719 214.47316 299.879919 214.47316z",transform:"rotate(-57.265 315.485 212.94)"}),(0,a.jsx)("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M305.149936 213.268889L336.404536 213.268889 336.404536 216.339339 305.149936 216.339339z",transform:"rotate(-57.57 320.777 214.804)"}),(0,a.jsx)("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M310.685935 216.782889L341.940535 216.782889 341.940535 219.853339 310.685935 219.853339z",transform:"rotate(-57.57 326.313 218.318)"}),(0,a.jsx)("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M341.417983 210.406958L349.511163 210.406958 349.511163 218.500138 341.417983 218.500138z",transform:"rotate(-57.57 345.465 214.454)"}),(0,a.jsx)("path",{fill:r,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z"}),(0,a.jsx)("path",{fill:o,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.243"}),(0,a.jsx)("path",{fill:"url(#linearGradient-2)",fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.32"}),(0,a.jsx)("ellipse",{cx:"119.593",cy:"258.664",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),(0,a.jsx)("ellipse",{cx:"101.03",cy:"260.545",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),(0,a.jsx)("ellipse",{cx:"108.459",cy:"265.905",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),(0,a.jsx)("ellipse",{cx:"89.193",cy:"265.433",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),(0,a.jsx)("path",{fill:r,fillRule:"nonzero",d:"M100.925 260.398s6.796-22.279-1.064-31.204c-5.881-6.676-12.557-5.877-15.547-5.052a5.528 5.528 0 00-3.564 2.963c-1.046 2.254-.858 5.913 6.521 10.186 12.35 7.151 13.119 16.96 13.119 16.96l.535 6.147z"}),(0,a.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M85.382 227.302s20.031 6.278 15.546 33.096M97.083 229.547s-2.76 1.86-1.88 4.655M87.39 231.203s1.687-1.716 3.741-.768M95.31 239.832s2.963-1.495 3.728.379M102.638 242.962s-2.224-.176-2.263.897"}),(0,a.jsx)("path",{fill:r,fillRule:"nonzero",d:"M101.2 260.575s-7.961-16.193-10.147-15.846c-1.037.17-1.516 1.196-1.734 2.218a6.516 6.516 0 00.434 3.941c1.13 2.601 4.165 7.519 11.447 9.687z"}),(0,a.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M91.113 247.808s8.353 12.115 9.968 12.647"}),(0,a.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M90.344 249.701L92.293 249.701"}),(0,a.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M92.68 254.132L95.738 254.263"}),(0,a.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M94.542 250.586L94.21 252.179"}),(0,a.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M97.792 255.432L97.732 256.879"}),(0,a.jsx)("path",{fill:r,fillRule:"nonzero",d:"M100.964 260.575s7.959-16.193 10.144-15.846c1.041.17 1.519 1.196 1.734 2.218a6.514 6.514 0 01-.433 3.941c-1.13 2.601-4.168 7.519-11.445 9.687z"}),(0,a.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.051 247.808s-8.371 12.115-9.97 12.647"}),(0,a.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.82 249.701L109.871 249.701"}),(0,a.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M109.485 254.132L106.426 254.263"}),(0,a.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M107.622 250.586L107.954 252.179"}),(0,a.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M104.372 255.432L104.432 256.879"}),(0,a.jsx)("path",{fill:r,fillRule:"nonzero",d:"M87.295 264.357a1.375 1.375 0 01-.452-.685.599.599 0 01.317-.697c.3-.11.598.09.837.299.24.21.512.431.81.38a1.237 1.237 0 01-.382-1.16.47.47 0 01.105-.236c.161-.174.454-.099.648.039.598.43.787 1.264.79 2.018.03-.277.03-.555 0-.831a.853.853 0 01.334-.727.938.938 0 01.476-.114.988.988 0 01.774.222.767.767 0 01-.03.947c-.229.257-.5.474-.801.64a1.805 1.805 0 00-.571.547.399.399 0 00-.042.096h-1.74a4.826 4.826 0 01-1.073-.738zM117.626 257.833a1.355 1.355 0 01-.452-.682.599.599 0 01.314-.696c.299-.111.598.089.837.299.239.209.509.436.817.391a1.236 1.236 0 01-.386-1.157.472.472 0 01.107-.236c.162-.173.455-.099.649.036.613.433.787 1.268.79 2.021a4.008 4.008 0 000-.834.852.852 0 01.299-.736.955.955 0 01.475-.11.998.998 0 01.774.218.768.768 0 01-.033.951 2.996 2.996 0 01-.798.64 1.767 1.767 0 00-.571.544.499.499 0 00-.042.098h-1.701a4.78 4.78 0 01-1.079-.747zM107.518 264.357a1.406 1.406 0 01-.455-.685.6.6 0 01.317-.697c.299-.11.598.09.837.299.239.21.505.437.816.395a1.247 1.247 0 01-.385-1.16.472.472 0 01.107-.236c.162-.174.455-.099.649.039.613.43.783 1.264.789 2.018.03-.277.03-.555 0-.832a.855.855 0 01.314-.735.93.93 0 01.476-.114.988.988 0 01.774.222.764.764 0 01-.033.947 3.028 3.028 0 01-.798.64 1.798 1.798 0 00-.571.547.411.411 0 00-.042.096h-1.734c-.385-.2-.742-.45-1.061-.744z"}),(0,a.jsx)("circle",{cx:"84.467",cy:"87.003",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),(0,a.jsx)("circle",{cx:"395.425",cy:"138.681",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),(0,a.jsx)("circle",{cx:"279.178",cy:"66.467",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),(0,a.jsx)("circle",{cx:"97.4",cy:"122.68",r:"10.838",fill:r,fillRule:"nonzero",opacity:"0.1"}),(0,a.jsx)("path",{fill:o,fillRule:"nonzero",d:"M206.029 209.911c-7.975 0-14.44 6.465-14.44 14.44s6.465 14.44 14.44 14.44 14.44-6.465 14.44-14.44-6.465-14.44-14.44-14.44z"}),(0,a.jsx)("path",{fill:r,fillRule:"nonzero",d:"M206.029 211.59c7.047 0 12.761 5.714 12.761 12.761 0 7.048-5.714 12.761-12.761 12.761-7.048 0-12.761-5.713-12.761-12.761.006-7.045 5.716-12.754 12.761-12.761",opacity:"0.72"}),(0,a.jsx)("path",{fill:o,fillRule:"nonzero",d:"M200.058 225.406l-.699-.681a.721.721 0 010-1.065l6.127-5.984a.753.753 0 01.546-.231c.206 0 .404.083.545.231l6.127 5.978a.733.733 0 010 1.065l-.699.682a.768.768 0 01-1.091 0l-3.622-3.727v8.843a.725.725 0 01-.219.523.76.76 0 01-.534.217h-1.009a.75.75 0 01-.759-.74v-8.832l-3.622 3.726a.768.768 0 01-1.091-.005z"})]})}))}var f=(0,r.memo)(d);function p(e){var t=Object.assign({},((0,u.Z)(e),e)),n=(0,i.Z)(),r=n.palette.primary.light,o=n.palette.primary.main,d=n.palette.primary.dark,f=n.palette.primary.darker;return(0,a.jsx)(c.Z,(0,l.Z)((0,l.Z)({},t),{},{children:(0,a.jsxs)("svg",{width:"100%",height:"100%",viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)(s,{}),(0,a.jsx)("image",{href:"/assets/illustrations/characters/character_4.png",height:"300",x:"220",y:"30"}),(0,a.jsx)("path",{fill:o,d:"M425.545 119.2c0-5-4.6-9-9.6-8.2-2-3.7-6-6-10.2-5.9 4.3-21.4-30-21.4-25.7 0-8.7-.8-15.1 9.4-10.4 16.8 2.1 3.5 5.9 5.6 10 5.5h38.7v-.1c4.1-.4 7.2-3.9 7.2-8.1zm-321.3 81.8c.1-4.2-4.1-7.8-8.2-7-1.7-3.2-5.1-5.1-8.8-5 3.8-18.4-25.8-18.4-22 0-7.4-.7-12.9 8.1-8.9 14.4 1.8 3 5.1 4.8 8.6 4.7h33.2v-.1c3.4-.4 6.1-3.4 6.1-7z",opacity:"0.08"}),(0,a.jsx)("path",{fill:"#FFAB00",d:"M111.045 142.2c58.7-1 58.6-88.3 0-89.2-58.6 1-58.6 88.3 0 89.2z",opacity:"0.12"}),(0,a.jsx)("path",{fill:"#FFD666",d:"M111.045 121c30.8-.5 30.8-46.3 0-46.8-30.8.5-30.8 46.3 0 46.8z"}),(0,a.jsx)("path",{fill:"#FBCDBE",d:"M278.045 250.1c-4.6-6.5-14 5.1-18.1 7.2-.6-2.1 1.5-41.3-1.4-41.8-2.8-3-8.1-.7-8 3.3.2-4 .5-11.3-5.6-10.2-4.8.6-3.8 6.9-3.8 10.2.1-6.1-9.5-6.1-9.4 0v5.6c.2-4.2-5.7-6.4-8.3-3-2.6-.2-.4 41.8-1.1 43.3-.2 10 8.7 19 18.8 18.7 6.1.4 12.6-1.2 16.8-5.9l19.7-21c1.7-1.6 1.8-4.5.4-6.4z"}),(0,a.jsx)("path",{fill:"#000",fillOpacity:"0.24",fillRule:"evenodd",d:"M248.745 212.3v32.8h1.9v-31.9c.1-2.9-2.8-5.2-5.6-4.6 2 0 3.7 1.7 3.7 3.7zm-9.4 5.6v27.2h1.9v-26.3c.1-2.8-2.8-5.2-5.5-4.6 1.9 0 3.6 1.8 3.6 3.7zm-9.4 27.2v-21.6c.1-2-1.7-3.7-3.7-3.8 2.8-.6 5.6 1.8 5.5 4.6V245h-1.8v.1z",clipRule:"evenodd"}),(0,a.jsx)("path",{fill:f,d:"M244.945 189.8c-67.6 1.3-77 97-11 111.4 81 11.8 92.7-107.3 11-111.4zm-48.5 56.2c-1-40.4 49.8-63.8 79.9-36.9l-68.3 68.3c-7.5-8.7-11.6-19.9-11.6-31.4zm48.5 48.5c-11.5 0-22.7-4.1-31.4-11.6l68.3-68.3c27 30.1 3.5 80.9-36.9 79.9z"}),(0,a.jsx)("path",{fill:"url(#paint0_linear_1_129)",d:"M169.245 261h-11.3v-66.6c0-4.5-1.5-5.6-5.6-5.6-5.3.3-13.8-1.4-17.1 4l-55 68.3c-2.7 3.3-1.8 8.8-2 12.8 0 4.1 1.5 5.6 5.6 5.6h54.7v21.7c-.9 7.9 9.1 5.2 13.7 5.6 4.1 0 5.6-1.5 5.6-5.6v-21.7h11.4c4.4 0 5.6-1.5 5.6-5.6-.3-4.8 2-13.8-5.6-12.9zm-30.8 0h-36l36-44.4V261zm263.9 12.1c1.9 44.8-78.7 46-78 1.2h19.3c-.8 15.3 18.3 21.4 30.1 15.5 12.7-6 12.3-29.1-1-34-5.6-2.8-16.6-2-23.1-2.1v-15.1c6.3-.2 17.6.9 22.7-2.3 11.6-5.5 11.9-25.4.9-31.4-10.8-5.9-29 .1-28.2 14.5h-19.4c-.5-28.1 35.4-38.5 57-28.2 23.4 9 24.1 45.5-.2 54.6 12.3 3.9 20.1 14.6 19.9 27.3z"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_1_129",x1:"78.245",x2:"78.245",y1:"187.309",y2:"307.306",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:r}),(0,a.jsx)("stop",{offset:"1",stopColor:d})]})})]})}))}var h=(0,r.memo)(p);function m(e){var t=Object.assign({},((0,u.Z)(e),e)),n=(0,i.Z)(),r=n.palette.primary.lighter,o=n.palette.primary.light,d=n.palette.primary.main,f=n.palette.primary.dark,p=n.palette.primary.darker;return(0,a.jsx)(c.Z,(0,l.Z)((0,l.Z)({},t),{},{children:(0,a.jsxs)("svg",{width:"100%",height:"100%",viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)(s,{}),(0,a.jsx)("image",{href:"/assets/illustrations/characters/character_8.png",height:"300",x:"340",y:"30"}),(0,a.jsx)("path",{fill:d,d:"M292.4 266.4h-7.3v-.6h6.7v-59.6h-25.7V118h-23.6v-.6h24.2v88.2h25.7v60.8zM146 164.5h-.6v-21.1h16.5v-19h.6v19.7H146v20.4z"}),(0,a.jsx)("path",{fill:d,d:"M242.5 112.3c0 3.2-1.3 6.3-3.5 8.5-2.3 2.3-5.3 3.5-8.5 3.5h-82.9c-4.4.1-8.5-2.2-10.7-5.9-2.2-3.8-2.2-8.5 0-12.3 2.2-3.8 6.3-6.1 10.7-5.9h2.8c-2-7.2-.6-14.9 3.9-20.8s11.6-9.4 19-9.4h7c8.9 0 17 4.9 21.1 12.8 2-1 4.2-1.6 6.5-1.6h1.8c3.8 0 7.4 1.5 10.1 4.2 2.7 2.7 4.2 6.3 4.2 10.1v.7c0 1.3-.2 2.7-.6 3.9h6.9c6.8.2 12.2 5.6 12.2 12.2z",opacity:"0.08"}),(0,a.jsx)("path",{fill:"#fff",d:"M275.4 228.3v14c0 .8-.4 1.5-1.1 1.8-.3.2-.7.3-1.1.3-1.2 0-2.2-1-2.2-2.1v-14c0-4.7-3.5-8.6-8.1-9.1-.4 0-.7-.1-1.1-.1-5.1 0-9.2 4.1-9.2 9.2v14c0 .8-.4 1.5-1.1 1.8-.3.2-.7.3-1.1.3-1.2 0-2.2-1-2.2-2.2v-14c0-7.5 6.1-13.5 13.5-13.5.4 0 .7 0 1.1.1 7.2.6 12.6 6.4 12.6 13.5z"}),(0,a.jsx)("path",{fill:"#DFE3E8",d:"M275.4 228.3v14c.3.5.2 1.2-.3 1.6-.5.4-1.1.4-1.6 0s-.6-1.1-.3-1.6v-14c0-5.1-4.1-9.2-9.2-9.2-.4 0-.7 0-1.1.1-.4 0-.7-.1-1.1-.1-5.1 0-9.2 4.1-9.2 9.2v14c.3.5.2 1.2-.3 1.6-.5.4-1.1.4-1.6 0s-.6-1-.3-1.6v-14c-.4-4.7 1.9-9.2 5.9-11.7s9.1-2.5 13.1 0c4.1 2.4 6.4 7 6 11.7z"}),(0,a.jsx)("path",{fill:p,d:"M277.8 242.2h-33.2c-4 0-7.3 3.3-7.3 7.3v33.2c0 4 3.3 7.3 7.3 7.3h33.2c4 0 7.3-3.3 7.3-7.3v-33.2c0-4-3.3-7.3-7.3-7.3z"}),(0,a.jsx)("path",{fill:f,d:"M277.8 242.2h-24.9c-4 0-7.3 3.3-7.3 7.3v33.2c0 4 3.3 7.3 7.3 7.3h24.9c4 0 7.3-3.3 7.3-7.3v-33.2c0-4-3.3-7.3-7.3-7.3z"}),(0,a.jsx)("path",{fill:"url(#paint0_linear_1_140)",d:"M278 145h-22c-4.4 0-8 3.6-8 8v22.8c0 4.4 3.6 8 8 8h22c4.4 0 8-3.6 8-8V153c0-4.4-3.6-8-8-8z"}),(0,a.jsx)("path",{fill:d,d:"M126 129.7h-22.4c-1.7 0-3 1.3-3 3v32.8c0 1.7 1.3 3 3 3H126c1.7 0 3-1.3 3-3v-32.8c0-1.7-1.4-3-3-3z",opacity:"0.08"}),(0,a.jsx)("path",{fill:"#fff",d:"M119.1 135.9H96.6c-1.7 0-3 1.3-3 3v32.8c0 1.7 1.3 3 3 3H119c1.7 0 3-1.3 3-3v-32.8c.1-1.6-1.3-3-2.9-3z"}),(0,a.jsx)("path",{fill:d,d:"M119.1 135.9H96.6c-1.7 0-3 1.3-3 3v32.8c0 1.7 1.3 3 3 3H119c1.7 0 3-1.3 3-3v-32.8c.1-1.6-1.3-3-2.9-3z",opacity:"0.48"}),(0,a.jsx)("path",{fill:d,d:"M80 243.5c.2 2 .9 3.9 2 5.5 4.4 7.8 9.4 15.5 16.2 21.3 10.1 8.5 23.2 12.2 36 15.7-1.1-.6-2.5-6.4-3-7.7-1-2.5-1.9-5.1-2.8-7.6-1.5-4-4.6-7.2-7.7-10.2-6.9-6.7-15.3-11.6-24.5-14.4-5.3-1.7-10.8-2.6-16.2-2.6z"}),(0,a.jsx)("path",{fill:p,d:"M129.8 247.8c-1-7.3-2.1-14.6-5-21.4-2.9-6.7-8-12.9-14.9-15.4l-.6 31.2c-.1 6-.2 12.1 1.5 17.9 3 10.1 13.5 21.9 23.6 25.3 1.5-4.8-1-12.2-1.7-17.2l-2.9-20.4z"}),(0,a.jsx)("path",{fill:f,d:"M237.2 164H140c-4.7 0-8.4 3.8-8.4 8.4v19.1c0 4.7 3.8 8.4 8.4 8.4h97.1c4.7 0 8.4-3.8 8.4-8.4v-19.1c.1-4.6-3.7-8.4-8.3-8.4zm0 44H140c-4.7 0-8.4 3.8-8.4 8.4v19.1c0 4.7 3.8 8.4 8.4 8.4h97.1c4.7 0 8.4-3.8 8.4-8.4v-19.1c.1-4.6-3.7-8.4-8.3-8.4zm0 44.2H140c-4.7 0-8.4 3.8-8.4 8.4v19.1c0 4.7 3.8 8.4 8.4 8.4h97.1c4.7 0 8.4-3.8 8.4-8.4v-19.1c.1-4.6-3.7-8.4-8.3-8.4z"}),(0,a.jsx)("path",{fill:"url(#paint1_linear_1_140)",d:"M237.6 164h-91.2c-4.7 0-8.4 3.8-8.4 8.4v19.1c0 4.7 3.8 8.4 8.4 8.4h91.1c4.7 0 8.4-3.8 8.4-8.4v-19.1c.1-4.6-3.7-8.4-8.3-8.4zm8.4 53.6v16.8c0 2.5-1 5-2.9 6.8-1.9 1.8-4.4 2.8-7.1 2.8h-88c-2.7 0-5.2-1-7.1-2.8-1.9-1.8-2.9-4.2-2.9-6.8v-16.8c0-5.3 4.5-9.6 10-9.6h88c2.7 0 5.2 1 7.1 2.8 1.8 1.8 2.9 4.2 2.9 6.8zm-8.4 34.4h-91.2c-4.7 0-8.4 3.8-8.4 8.4v19.1c0 4.7 3.8 8.4 8.4 8.4h91.1c4.7 0 8.4-3.8 8.4-8.4v-19.1c.1-4.6-3.7-8.4-8.3-8.4z"}),(0,a.jsx)("path",{fill:r,d:"M161.6 182c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm12 0c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm8 4c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zM162 226c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm12 0c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm8 4c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zm52-6h-30c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h30c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1zm-72 46c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm12 0c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm8 4c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zm52-6h-30c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h30c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1z"}),(0,a.jsx)("path",{fill:p,d:"M264.4 267.7c.5-1.8-.8-3.7-1.2-5.5-.1-.3-.1-.7 0-1 .2-1.5 1.5-2.6 3-2.6s2.8 1.1 3 2.6c.1.3 0 .7 0 1-.3 1.8-1.6 3.8-1.1 5.6l.4 1.3c.5 1.5-.7 3.1-2.3 3.1-1.6 0-2.7-1.5-2.3-3l.5-1.5zM258 158.8l9.2-4.8 8.8 4.8s-1.6 11.8-8.6 15.2c0 0-8.6-3.3-9.4-15.2z"}),(0,a.jsxs)("defs",{children:[(0,a.jsxs)("linearGradient",{id:"paint0_linear_1_140",x1:"277.574",x2:"255.652",y1:"143.24",y2:"187.057",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:d}),(0,a.jsx)("stop",{offset:"1",stopColor:f})]}),(0,a.jsxs)("linearGradient",{id:"paint1_linear_1_140",x1:"138",x2:"138",y1:"164",y2:"287.9",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:o}),(0,a.jsx)("stop",{offset:"1",stopColor:f})]})]})]})}))}var g=(0,r.memo)(m);function v(e){var t=Object.assign({},((0,u.Z)(e),e)),n=(0,i.Z)(),r=n.palette.primary.light,o=n.palette.primary.main,d=n.palette.primary.dark,f=n.palette.primary.darker;return(0,a.jsx)(c.Z,(0,l.Z)((0,l.Z)({},t),{},{children:(0,a.jsxs)("svg",{width:"100%",height:"100%",viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)(s,{}),(0,a.jsx)("image",{href:"/assets/illustrations/characters/character_1.png",height:"300",x:"320",y:"30"}),(0,a.jsx)("path",{fill:"url(#paint0_linear_1_79)",d:"M290.378 112.9v127.8c0 .8-.2 1.6-.5 2.4-.3.8-.8 1.4-1.3 2-.6.6-1.3 1-2 1.3-.8.3-1.6.5-2.4.5h-166.7c-.8 0-1.7-.1-2.4-.5s-1.4-.8-2-1.4c-.6-.6-1-1.4-1.2-2.1-.2-.8-.3-1.6-.2-2.5V112.6c-.4-3.1 2.3-5.9 5.8-5.9h166.7c.8 0 1.6.2 2.4.5.8.3 1.4.8 2 1.3.6.6 1 1.3 1.4 2 .2.7.4 1.6.4 2.4z"}),(0,a.jsx)("path",{fill:f,d:"M210.879 284.9c62.5 0 113.2-4.4 113.2-9.8s-50.7-9.8-113.2-9.8-113.2 4.4-113.2 9.8 50.7 9.8 113.2 9.8z",opacity:"0.24"}),(0,a.jsx)("path",{fill:d,d:"M58.778 79.4l14.6-6 80.2 7.5v7.6l-94.8.3v-9.4z"}),(0,a.jsx)("path",{fill:o,d:"M85.279 71h-14.4v199.5h14.4V71z"}),(0,a.jsx)("path",{fill:"#fff",d:"M182.079 239.7h-5.1c-.6 0-1 .4-1 1V289c0 .6.4 1 1 1h5.2c.6 0 1-.4 1-1v-48.3c-.1-.5-.5-1-1.1-1zM130.978 239.7h-5.2c-.6 0-1 .4-1 1v46.7c0 .6.4 1 1 1h5.2c.6 0 1-.4 1-1v-46.6c0-.6-.4-1.1-1-1.1z"}),(0,a.jsx)("path",{fill:"#C4CDD5",d:"M175.779 266h7.2v-24.7h-7.4l.2 24.7zm-50.9 0h7.2v-24.7h-7.4l.2 24.7z",opacity:"0.5"}),(0,a.jsx)("path",{fill:r,d:"M277.778 126h-56.9c-1.7 0-3 1.3-3 3v83.9c0 1.7 1.3 3 3 3h56.9c1.7 0 3-1.3 3-3V129c0-1.7-1.4-3-3-3zm-70.1 0c1.7 0 3 1.3 3 3v83.9c0 1.7-1.3 3-3 3h-56.9c-1.7 0-3-1.3-3-3v-.3c0-1.7 1.3-3 3-3h29.5c1.7 0 3-1.3 3-3V129c0-1.7 1.3-3 3-3h21.4z",opacity:"0.24"}),(0,a.jsx)("path",{fill:f,d:"M182.079 119.7h-56.9c-1.7 0-3 1.3-3 3V205c0 1.7 1.3 3 3 3h56.9c1.7 0 3-1.3 3-3v-82.3c0-1.6-1.4-3-3-3z"}),(0,a.jsx)("path",{fill:"#fff",d:"M149.979 88.4h1v25c9.1-.1 20 1.1 32.3 5 .5.2.8.7.6 1.3-.2.5-.7.8-1.3.6-17.2-5.6-31.8-5.6-42.1-4.2-5.1.7-9.2 1.7-12 2.6-1.4.4-2.4.8-3.2 1.1-.4.1-.6.2-.8.3-.1 0-.2.1-.2.1-.5.2-1.1 0-1.3-.5-.2-.5 0-1.1.5-1.3l.5 1-.4-.9h.1c.1 0 .1-.1.2-.1.2-.1.5-.2.9-.4.8-.3 1.9-.7 3.3-1.1 2.9-.9 7-2 12.3-2.7 2.9-.4 6.1-.7 9.7-.8v-25h-.1z"}),(0,a.jsx)("path",{fill:d,d:"M165.378 125.4h-37c-.9 0-1.6.7-1.6 1.6 0 .9.7 1.6 1.6 1.6h37c.9 0 1.6-.7 1.6-1.6-.1-.9-.8-1.6-1.6-1.6zm-17.2 5.6h-20.5c-.5 0-.9.4-.9.9s.4.9.9.9h20.5c.5 0 .9-.4.9-.9s-.4-.9-.9-.9zm9.3 4.4h-20.5c-.5 0-.9.4-.9.9s.4.9.9.9h20.5c.5 0 .9-.4.9-.9s-.4-.9-.9-.9zm-3.9-4.4h-1.5c-.5 0-.9.4-.9.9s.4.9.9.9h1.5c.5 0 .9-.4.9-.9s-.4-.9-.9-.9zm4.7 0h-1.5c-.5 0-.9.4-.9.9s.4.9.9.9h1.5c.5 0 .9-.4.9-.9s-.4-.9-.9-.9zm-26.7 4.4h-1.5c-.5 0-.9.4-.9.9s.4.9.9.9h1.5c.5 0 .9-.4.9-.9s-.4-.9-.9-.9zm31.5-4.4h-1.5c-.5 0-.9.4-.9.9s.4.9.9.9h1.5c.5 0 .9-.4.9-.9-.1-.5-.5-.9-.9-.9z"}),(0,a.jsx)("path",{fill:f,d:"M178.379 224c0-1.1-.9-2-2-2h-55.5c-1.1 0-2 .9-2 2v5c0 1.1.9 2 2 2h55.5c1.1 0 2-.9 2-2v-5z",opacity:"0.48"}),(0,a.jsx)("path",{fill:o,d:"M188.179 244h-70v18.2h70V244z"}),(0,a.jsx)("path",{fill:"#fff",d:"M118.479 243.3c-1.1 0-2 .9-2 2v15.8c0 1.1.9 2 2 2l69.7-.1c1.1 0 2-.9 2-2l-.4-15.6c0-1.1-.9-2-2-2l-69.3-.1zm-.1 4.5c0-1.1.9-2 2-2h5.2c1.7 0 2.6 1.9 1.6 3.2l-8.4 11.2c0 .1-.1.1-.2.1s-.2-.1-.2-.2v-12.3zm17.4-1.2c.4-.5 1-.8 1.6-.8h2.2c1.6 0 2.6 1.9 1.6 3.2l-7.8 10.5c-.4.5-1 .8-1.6.8h-2.2c-1.6 0-2.6-1.9-1.6-3.2l7.8-10.5zm13.9 0c.4-.5 1-.8 1.6-.8h2.2c1.6 0 2.6 1.9 1.6 3.2l-7.8 10.5c-.4.5-1 .8-1.6.8h-2.1c-1.6 0-2.6-1.9-1.6-3.2l7.7-10.5zm14.1 0c.4-.5 1-.8 1.6-.8h2.2c1.7 0 2.6 1.9 1.6 3.2l-7.9 10.5c-.4.5-1 .8-1.6.8h-2.1c-1.6 0-2.6-1.9-1.6-3.2l7.8-10.5zm13.9 0c.4-.5 1-.8 1.6-.8h2.2c1.6 0 2.6 1.9 1.6 3.2l-7.8 10.5c-.4.5-1 .8-1.6.8h-2.1c-1.6 0-2.6-1.9-1.6-3.2l7.7-10.5zm9.9 11.7c0 1.1-.9 2-2 2-1.6 0-2.6-1.9-1.6-3.2 1.1-1.6 3.6-.7 3.6 1.2z"}),(0,a.jsx)("path",{fill:f,d:"M73.579 276.7c-.1 1.2-.6 2.4-1.2 3.4-.7 1-1.6 1.9-2.6 2.5-2.3-.7-4.6-1.4-6.9-2.3-1.2-.4-2.3-.9-3.5-1.4-6.5-2.7-12.6-6.2-18.4-10.3-.4-1.1-.7-2.2-.9-3.4-.2-1.1 0-2.3.4-3.4.5-1.1 1.2-2 2.2-2.6 1-.5 1.9-1 2.8-1.6 1.9-1.6 2-4.6 1-6.9-1-2.3-2.8-4.2-4.1-6.3-1.3-2.1-2.2-4.8-1.1-7.1.7-1.4 2-2.5 2.9-3.9 1.6-2.6 1.1-6 .5-9l-2.4-12.3c-.5-2.7-.9-5.8 1.1-7.7 2.7-2.5 7.1-.5 9.7 2 3.2 2.9 5.5 6.5 6.7 10.6 2.5 8.9-1.9 18.9 1.6 27.5 2.3 5.8 7.8 9.7 10.5 15.3 2.6 5.4 2.5 11.3 1.7 16.9z"}),(0,a.jsx)("path",{fill:d,d:"M85.278 250.7c-1.1 2.3-1.9 5.1-.6 7.2.7.8 1.4 1.7 2.2 2.4 2.9 3.5 1.4 8.8-.9 12.8-.7 1-1.1 2.1-1.3 3.3-.1 1.9 1.3 3.5 2.4 5 1.1 1.5 2 3.4 1.2 5-8.7-1-17.2-3.1-25.4-6-1.2-.4-2.3-.9-3.5-1.4-.2-2.6.6-5.4 1.7-7.9 1.2-2.7 3-5.5 3.4-8.5.4-2.7-.1-5.3.8-8 .8-2.7 2.2-5.1 4.1-7.2 1.9-2 4.2-3.6 6.9-4.6 1.5-.5 3.2-.9 4.3-2 .8-.8 1.4-1.8 1.8-2.9 2-4.4 4.1-8.9 6.1-13.4.9-2 2.2-4.3 4.4-4.7 1.7-.3 3.4.9 4.3 2.4.8 1.6 1 3.4.8 5.1-1 8.9-8.8 15.4-12.7 23.4z"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_1_79",x1:"296.527",x2:"105.126",y1:"186.371",y2:"167.19",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:o}),(0,a.jsx)("stop",{offset:"1",stopColor:d})]})})]})}))}var y=(0,r.memo)(v);function _(e){var t=Object.assign({},((0,u.Z)(e),e)),n=(0,i.Z)(),r=n.palette.primary.light,o=n.palette.primary.main,d=n.palette.primary.dark,f=n.palette.primary.darker;return(0,a.jsx)(c.Z,(0,l.Z)((0,l.Z)({},t),{},{children:(0,a.jsxs)("svg",{width:"100%",height:"100%",viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)(s,{}),(0,a.jsx)("path",{fill:o,d:"M297.46 99.296l-185.934-5.29c-6.35-.18-11.526 4.158-11.526 9.693v159.882c0 5.534 5.176 9.742 11.526 9.4l185.934-10.028c5.28-.284 9.54-4.576 9.54-9.585v-144.73c0-5.012-4.26-9.194-9.54-9.342z",opacity:"0.12"}),(0,a.jsx)("path",{fill:"#fff",d:"M297.476 93.405l-180.3-5.278c-6.157-.18-11.176 4.15-11.176 9.67v159.496c0 5.521 5.019 9.718 11.176 9.377l180.3-10.003c5.12-.284 9.251-4.565 9.251-9.563v-144.38c0-5-4.131-9.172-9.251-9.32z"}),(0,a.jsx)("g",{fill:"#919EAB",opacity:"0.16",children:(0,a.jsx)("path",{d:"M205.131 203.668a44.088 44.088 0 01-20.975-4.875 42.576 42.576 0 01-16.793-15.549 40.54 40.54 0 01-5.98-21.153c0-23.36 19.874-41.848 43.748-41.227 23.283.606 41.804 19.248 41.804 41.569 0 22.322-18.521 40.816-41.804 41.235zM266.304 235.213a4.461 4.461 0 01-4.271 4.417l-106.87 4.074c-2.652.107-4.808-1.842-4.808-4.341v-16.97c0-2.499 2.156-4.579 4.808-4.644l106.87-2.64a4.142 4.142 0 013.018 1.168 4.128 4.128 0 011.253 2.98v15.956z"})}),(0,a.jsx)("path",{fill:"#C4CDD5",d:"M186.797 136.682a1.812 1.812 0 01-.525 1.378l-1.858 1.858 16.887 16.893a2.174 2.174 0 01-3.074 3.074l-16.886-16.892-1.859 1.859a1.803 1.803 0 01-2.685-.157l-7.916-9.615a1.8 1.8 0 01.14-2.392l5.091-5.093a1.8 1.8 0 012.392-.14l9.612 7.917c.404.32.651.797.681 1.31zM209.727 165.24l5.441 5.443a2.174 2.174 0 01-3.074 3.075l-5.441-5.443a2.175 2.175 0 013.074-3.075z"}),(0,a.jsx)("path",{fill:"#F4F6F8",d:"M209.727 165.24l5.441 5.443a2.176 2.176 0 010 3.075l-8.515-8.518a2.172 2.172 0 013.074 0z"}),(0,a.jsx)("path",{fill:"url(#paint0_linear_1_160)",d:"M238.581 194.781l-2.399 2.399c-3.425 3.431-9.046 3.315-12.32-.318l-16.564-18.475a2.176 2.176 0 01.081-2.989l9.309-9.313a2.174 2.174 0 012.978-.091l18.552 16.422.004.004c3.646 3.243 3.812 8.907.359 12.361z"}),(0,a.jsx)("path",{fill:"url(#paint1_linear_1_160)",d:"M240.711 138.762c-.332-1.582-2.287-2.165-3.429-1.021l-7.117 7.12a3.31 3.31 0 01-4.681 0l-3.813-3.815a3.308 3.308 0 010-4.68l7.117-7.122c1.143-1.142.561-3.098-1.02-3.43-5.355-1.126-11.157.392-15.316 4.552-5.296 5.299-6.308 13.259-3.037 19.573l-40.33 33.142a5.766 5.766 0 00-.516 8.61l6.289 6.291a5.761 5.761 0 008.607-.516l33.13-40.345c6.312 3.272 14.268 2.26 19.566-3.038 4.159-4.16 5.675-9.964 4.55-15.321zm-61.338 50.587a2.174 2.174 0 110-4.349 2.174 2.174 0 010 4.349z"}),(0,a.jsx)("path",{fill:"#919EAB",d:"M186.797 136.682a1.812 1.812 0 01-.525 1.378l-1.858 1.858 16.887 16.893a2.174 2.174 0 010 3.074l-29.734-29.744 2.545-2.546a1.8 1.8 0 012.391-.14l9.613 7.917c.404.32.651.797.681 1.31z"}),(0,a.jsx)("path",{fill:f,d:"M238.581 194.781l-1.199 1.199-25.289-25.298 4.595-4.597a2.173 2.173 0 012.977-.091l18.553 16.422.004.004c3.645 3.243 3.812 8.907.359 12.361z",opacity:"0.24"}),(0,a.jsx)("path",{fill:f,d:"M236.161 154.083c-5.298 5.298-13.254 6.31-19.566 3.038l-33.13 40.345a5.761 5.761 0 01-8.607.516l-3.145-3.145 6.122-6.125a2.174 2.174 0 103.075-3.076l42.668-42.682 1.907 1.907a3.308 3.308 0 004.68 0l7.117-7.12c1.142-1.144 3.097-.561 3.429 1.021 1.125 5.357-.392 11.161-4.55 15.321z",opacity:"0.24"}),(0,a.jsx)("path",{fill:"url(#paint2_linear_1_160)",d:"M249.706 290.362v3.306c0 .847-.436 1.546-1.011 1.622l-51.671 4.676a3.72 3.72 0 01-1.448-.087l-36.003-6.775c-.382-.1-.664-.6-.664-1.177v-3.494l38.198-4.727 4.917-2.324 4.889.703 2.887-.552 6.599 1.917 33.307 6.912z"}),(0,a.jsx)("path",{fill:"url(#paint3_linear_1_160)",d:"M249.707 290.362v3.307c0 .846-.436 1.545-1.012 1.621l-51.668 4.676a3.684 3.684 0 01-1.148-.024v-17.813l6.148-.749 4.889.703 2.886-.552 6.598 1.917 33.307 6.914z",opacity:"0.3"}),(0,a.jsx)("path",{fill:"url(#paint4_linear_1_160)",d:"M209.803 281.53l-50.89 6.74 36.707 6.904c.445.115.909.142 1.366.08l52.72-4.892-39.903-8.832z"}),(0,a.jsx)("path",{fill:"url(#paint5_linear_1_160)",d:"M228.459 287.623c0 2.42-7.627 4.302-18.157 4.79-2.657.121-5.499.156-8.447.088-14.491-.333-26.135-3.025-26.135-6.005a.81.81 0 01.02-.214h-.02l.06-.143a.834.834 0 01.054-.139l3.342-8.724 4.037-10.526 5.652-14.753 4.325-11.293 5.381-14.042c.673-1.758 1.922-2.851 3.269-2.851.183-.001.364.019.542.059 1.138.248 2.153 1.272 2.737 2.795l5.427 14.14 4.337 11.441 5.715 15.05 4.106 10.813.065.006 3.42 8.787c.147.239.27.479.27.721z"}),(0,a.jsx)("path",{fill:"#fff",d:"M224.769 278.12c-3.299 1.101-8.572 1.894-14.893 2.188-2.545.12-5.237.159-8.037.107-9.736-.184-18.178-1.434-22.67-3.137l4.039-10.527c4.728 1.062 11.316 1.778 18.644 1.888 2.368.036 4.676.006 6.874-.083 4.623-.183 8.7-.626 11.913-1.255l4.071 10.812.059.007zM214.93 252.246c-2.519.272-5.287.457-8.225.54-1.573.046-3.194.063-4.849.046a112.824 112.824 0 01-12.991-.835l4.326-11.293c2.707.214 5.623.336 8.665.353 1.071.006 2.129-.001 3.172-.022 1.907-.036 3.751-.112 5.519-.23l4.383 11.441z"}),(0,a.jsx)("path",{fill:"url(#paint6_linear_1_160)",d:"M210.302 292.411c-2.657.122-5.499.157-8.447.089-14.491-.334-26.135-3.025-26.135-6.005a.81.81 0 01.02-.214h-.02l.06-.143a.834.834 0 01.054-.139l3.342-8.724 4.037-10.526 5.652-14.752 4.325-11.293 5.381-14.042c.673-1.758 1.922-2.851 3.269-2.851.183-.001.364.019.542.059.574 3.574 1.558 9.812 2.646 17.165.546 3.702 1.118 7.687 1.677 11.753a776.568 776.568 0 012.016 15.767c.485 4.188.899 8.185 1.192 11.754.429 5.167.604 9.441.389 12.102z",opacity:"0.2"}),(0,a.jsx)("path",{fill:"#FF5630",d:"M118.108 103.182a2.5 2.5 0 100-5 2.5 2.5 0 000 5z"}),(0,a.jsx)("path",{fill:"#FFAB00",d:"M126.108 103.182a2.5 2.5 0 100-5 2.5 2.5 0 000 5z"}),(0,a.jsx)("path",{fill:"#36B37E",d:"M134.108 103.182a2.5 2.5 0 100-5 2.5 2.5 0 000 5z"}),(0,a.jsxs)("defs",{children:[(0,a.jsxs)("linearGradient",{id:"paint0_linear_1_160",x1:"166.881",x2:"166.881",y1:"125.454",y2:"199.671",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:r}),(0,a.jsx)("stop",{offset:"1",stopColor:d})]}),(0,a.jsxs)("linearGradient",{id:"paint1_linear_1_160",x1:"166.881",x2:"166.881",y1:"125.454",y2:"199.671",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:r}),(0,a.jsx)("stop",{offset:"1",stopColor:d})]}),(0,a.jsxs)("linearGradient",{id:"paint2_linear_1_160",x1:"158.912",x2:"249.709",y1:"290.69",y2:"290.69",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#FFC444"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#F36F56"})]}),(0,a.jsxs)("linearGradient",{id:"paint3_linear_1_160",x1:"226.725",x2:"225.966",y1:"290.498",y2:"292.586",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#FFC444"}),(0,a.jsx)("stop",{offset:"0.59",stopColor:"#F8924F"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#F36F56"})]}),(0,a.jsxs)("linearGradient",{id:"paint4_linear_1_160",x1:"210.87",x2:"210.566",y1:"288.399",y2:"289.237",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#FFC444"}),(0,a.jsx)("stop",{offset:"0.59",stopColor:"#F8924F"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#F36F56"})]}),(0,a.jsxs)("linearGradient",{id:"paint5_linear_1_160",x1:"202.974",x2:"199.672",y1:"204.073",y2:"311.415",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#FFC444"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#F36F56"})]}),(0,a.jsxs)("linearGradient",{id:"paint6_linear_1_160",x1:"175.72",x2:"210.394",y1:"258.172",y2:"258.172",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#FFC444"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#F36F56"})]})]}),(0,a.jsx)("image",{href:"/assets/illustrations/characters/character_5.png",height:"300",x:"245",y:"30"})]})}))}var b=(0,r.memo)(_);function x(e){var t=Object.assign({},((0,u.Z)(e),e)),n=(0,i.Z)(),r=n.palette.primary.light,o=n.palette.primary.main,d=n.palette.primary.dark,f=n.palette.primary.darker;return(0,a.jsx)(c.Z,(0,l.Z)((0,l.Z)({},t),{},{children:(0,a.jsxs)("svg",{width:"100%",height:"100%",viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)(s,{}),(0,a.jsx)("image",{href:"/assets/illustrations/characters/character_6.png",height:"300",x:"205",y:"30"}),(0,a.jsx)("path",{fill:"#FFAB00",d:"M111.1 141.2c58.7-1 58.6-88.3 0-89.2-58.6 1-58.6 88.3 0 89.2z",opacity:"0.12"}),(0,a.jsx)("path",{fill:"#FFD666",d:"M111.1 120c30.8-.5 30.8-46.3 0-46.8-30.8.5-30.8 46.3 0 46.8z"}),(0,a.jsx)("path",{fill:f,d:"M244.9 182.5c82.3 1.4 82.2 123.8 0 125.2-82.3-1.5-82.3-123.8 0-125.2zm0 23.1c-51.8.9-51.8 77.9 0 78.8 51.8-.9 51.7-77.9 0-78.8z"}),(0,a.jsx)("path",{fill:"url(#paint0_linear_1_119)",d:"M175 265.6c1-8.7-12.1-4.8-17-5.6v-66.6c0-4.5-1.5-5.6-5.6-5.6-5.3.3-13.8-1.4-17.1 4l-55 68.3c-2.7 3.3-1.8 8.8-2 12.8 0 4.1 1.5 5.6 5.6 5.6h54.7v21.7c-.9 7.9 9.1 5.2 13.7 5.6 4.1 0 5.6-1.5 5.6-5.6v-21.7c13.8-1.1 18.1 4.5 17.1-12.9zm-72.5-5.6l36-44.4V260h-36zm309.1 5.6c1-8.7-12.2-4.8-17.1-5.6v-66.6c0-4.5-1.5-5.6-5.6-5.6-5.3.3-13.7-1.4-17.1 4l-55 68.3c-2.7 3.3-1.9 8.8-2 12.8 0 4.1 1.5 5.6 5.6 5.6h54.7v21.7c-.9 7.9 9.1 5.2 13.7 5.6 4.1 0 5.6-1.5 5.6-5.6v-21.7c14.1-1.1 18.2 4.5 17.2-12.9zm-72.4-5.6l36-44.4V260h-36z"}),(0,a.jsx)("path",{fill:o,d:"M425.6 118.2c0-5-4.6-9-9.6-8.2-2-3.7-6-6-10.2-5.9 4.3-21.4-30-21.4-25.7 0-8.7-.8-15.1 9.4-10.4 16.8 2.1 3.5 5.9 5.6 10 5.5h38.7v-.1c4.1-.4 7.2-3.9 7.2-8.1zM104.3 200c.1-4.2-4.1-7.8-8.2-7-1.7-3.2-5.1-5.1-8.8-5 3.8-18.4-25.8-18.4-22 0-7.4-.7-12.9 8.1-8.9 14.4 1.8 3 5.1 4.8 8.6 4.7h33.2v-.1c3.4-.4 6.1-3.4 6.1-7z",opacity:"0.08"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_1_119",x1:"78.3",x2:"78.3",y1:"187.77",y2:"305.935",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:r}),(0,a.jsx)("stop",{offset:"1",stopColor:d})]})})]})}))}var E=(0,r.memo)(x)},43294:function(e,t,n){"use strict";n.d(t,{H:function(){return _},V:function(){return y}});var r=n(74165),i=n(15861),a=n(29439),o=n(1413),s=n(47313),l=n(20271),u=n(89377),c=n(90573),d=n(36287),f=n(46417),p=(0,l.ZF)(d.Dc),h=(0,u.v0)(p),m=(0,c.ad)(p),g={isAuthenticated:!1,isInitialized:!1,user:null},v=function(e,t){if("INITIALISE"===t.type){var n=t.payload,r=n.isAuthenticated,i=n.user;return(0,o.Z)((0,o.Z)({},e),{},{isAuthenticated:r,isInitialized:!0,user:i})}return e},y=(0,s.createContext)((0,o.Z)((0,o.Z)({},g),{},{method:"firebase",login:function(){return Promise.resolve()},register:function(){return Promise.resolve()},logout:function(){return Promise.resolve()}}));function _(e){var t,n,l=e.children,p=(0,s.useReducer)(v,g),_=(0,a.Z)(p,2),b=_[0],x=_[1],E=(0,s.useState)(null),S=(0,a.Z)(E,2),w=S[0],C=S[1],T=(0,s.useState)(""),A=(0,a.Z)(T,2),k=A[0],D=A[1];(0,s.useEffect)((function(){return(0,u.Aj)(h,function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n,i,a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=11;break}return D(t.uid),n=(0,c.JU)(m,"users",t.uid),e.next=5,(0,c.QT)(n);case 5:i=e.sent,a=i.data(),i.exists()&&C(i.data()),x({type:"INITIALISE",payload:{isAuthenticated:!0,userData:a}}),e.next=12;break;case 11:x({type:"INITIALISE",payload:{isAuthenticated:!1,user:null}});case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}),[x]);var O=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n,i,a,o,s,l;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.amount,t.status,!w){e.next=12;break}return i=Number(w.amount)-n,a=(0,c.JU)(m,"users","".concat(k)),e.next=6,(0,c.r7)(a,{amount:"".concat(i)});case 6:return o=(0,c.JU)(m,"users",k),e.next=9,(0,c.QT)(o);case 9:s=e.sent,l=s.data(),s.exists()&&C(l);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,f.jsx)(y.Provider,{value:(0,o.Z)((0,o.Z)({},b),{},{method:"firebase",user:{id:null===b||void 0===b||null===(t=b.user)||void 0===t?void 0:t.uid,email:null===b||void 0===b||null===(n=b.user)||void 0===n?void 0:n.email},login:function(e,t){return(0,u.e5)(h,e,t)},register:function(e){console.log("options",e);var t=e.email,n=e.password,a=e.firstName,o=e.lastName;return(0,u.Xb)(h,t,n).then(function(){var e=(0,i.Z)((0,r.Z)().mark((function e(n){var i,s,l;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=(0,c.JU)((0,c.hJ)(m,"users"),null===(i=n.user)||void 0===i?void 0:i.uid),console.log({FIREBASE_API:d.Dc}),e.next=4,(0,c.pl)(l,{uid:null===(s=n.user)||void 0===s?void 0:s.uid,email:t,firstName:a,lastName:o,displayName:"".concat(a," ").concat(o),signalStrength:0,createdAt:(0,c.Bt)()});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},logout:function(){return(0,u.w7)(h)},profile:w,updateUserBalance:O}),children:l})}},35107:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(89631),i=n(80941),a=n(42669),o=n(55410),s=n(59479),l=n(12865),u=n(46417);function c(e){var t=e.hasContent,n=e.roles,c=e.children,d=(0,l.E)().user,f=null===d||void 0===d?void 0:d.role;return"undefined"===typeof n||n.includes(f)?(0,u.jsx)(u.Fragment,{children:c}):t?(0,u.jsxs)(i.Z,{component:o.NM,sx:{textAlign:"center"},children:[(0,u.jsx)(r.m.div,{variants:(0,o.Wp)().in,children:(0,u.jsx)(a.Z,{variant:"h3",paragraph:!0,children:"Permission Denied"})}),(0,u.jsx)(r.m.div,{variants:(0,o.Wp)().in,children:(0,u.jsx)(a.Z,{sx:{color:"text.secondary"},children:"You do not have permission to access this page"})}),(0,u.jsx)(r.m.div,{variants:(0,o.Wp)().in,children:(0,u.jsx)(s.E,{sx:{height:260,my:{xs:5,sm:10}}})})]}):null}},12865:function(e,t,n){"use strict";n.d(t,{E:function(){return a}});var r=n(47313),i=n(43294),a=function(){var e=(0,r.useContext)(i.V);if(!e)throw new Error("useAuthContext context must be use inside AuthProvider");return e}},55410:function(e,t,n){"use strict";n.d(t,{Kl:function(){return k},Y$:function(){return F},w_:function(){return q},NM:function(){return ee},bA:function(){return ue},DG:function(){return Q},gH:function(){return O},R0:function(){return v},Q4:function(){return y},UZ:function(){return _},Wp:function(){return p},Ew:function(){return g},EU:function(){return s},HN:function(){return u},U6:function(){return m},lj:function(){return r},j$:function(){return h},Jt:function(){return d},pH:function(){return c},BN:function(){return i},BL:function(){return l}});var r={animate:{fillOpacity:[0,0,1],pathLength:[1,.4,0],transition:{duration:2,ease:[.43,.13,.23,.96]}}},i=function(e){return{duration:(null===e||void 0===e?void 0:e.duration)||.32,ease:(null===e||void 0===e?void 0:e.ease)||[.43,.13,.23,.96]}},a=function(e){return{duration:(null===e||void 0===e?void 0:e.durationIn)||.64,ease:(null===e||void 0===e?void 0:e.easeIn)||[.43,.13,.23,.96]}},o=function(e){return{duration:(null===e||void 0===e?void 0:e.durationOut)||.48,ease:(null===e||void 0===e?void 0:e.easeOut)||[.43,.13,.23,.96]}},s=function(e){var t=(null===e||void 0===e?void 0:e.distance)||120,n=null===e||void 0===e?void 0:e.durationIn,r=null===e||void 0===e?void 0:e.durationOut,i=null===e||void 0===e?void 0:e.easeIn,s=null===e||void 0===e?void 0:e.easeOut;return{in:{initial:{opacity:0},animate:{opacity:1,transition:a},exit:{opacity:0,transition:o}},inUp:{initial:{y:t,opacity:0},animate:{y:0,opacity:1,transition:a({durationIn:n,easeIn:i})},exit:{y:t,opacity:0,transition:o({durationOut:r,easeOut:s})}},inDown:{initial:{y:-t,opacity:0},animate:{y:0,opacity:1,transition:a({durationIn:n,easeIn:i})},exit:{y:-t,opacity:0,transition:o({durationOut:r,easeOut:s})}},inLeft:{initial:{x:-t,opacity:0},animate:{x:0,opacity:1,transition:a({durationIn:n,easeIn:i})},exit:{x:-t,opacity:0,transition:o({durationOut:r,easeOut:s})}},inRight:{initial:{x:t,opacity:0},animate:{x:0,opacity:1,transition:a({durationIn:n,easeIn:i})},exit:{x:t,opacity:0,transition:o({durationOut:r,easeOut:s})}},out:{initial:{opacity:1},animate:{opacity:0,transition:a({durationIn:n,easeIn:i})},exit:{opacity:1,transition:o({durationOut:r,easeOut:s})}},outUp:{initial:{y:0,opacity:1},animate:{y:-t,opacity:0,transition:a({durationIn:n,easeIn:i})},exit:{y:0,opacity:1,transition:o({durationOut:r,easeOut:s})}},outDown:{initial:{y:0,opacity:1},animate:{y:t,opacity:0,transition:a({durationIn:n,easeIn:i})},exit:{y:0,opacity:1,transition:o({durationOut:r,easeOut:s})}},outLeft:{initial:{x:0,opacity:1},animate:{x:-t,opacity:0,transition:a({durationIn:n,easeIn:i})},exit:{x:0,opacity:1,transition:o({durationOut:r,easeOut:s})}},outRight:{initial:{x:0,opacity:1},animate:{x:t,opacity:0,transition:a({durationIn:n,easeIn:i})},exit:{x:0,opacity:1,transition:o({durationOut:r,easeOut:s})}}}},l=function(e){var t=(null===e||void 0===e?void 0:e.distance)||720,n=null===e||void 0===e?void 0:e.durationIn,r=null===e||void 0===e?void 0:e.durationOut,i=null===e||void 0===e?void 0:e.easeIn,s=null===e||void 0===e?void 0:e.easeOut;return{in:{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1,transition:a({durationIn:n,easeIn:i})},exit:{scale:0,opacity:0,transition:o({durationOut:r,easeOut:s})}},inUp:{initial:{scale:0,opacity:0,translateY:t},animate:{scale:1,opacity:1,translateY:0,transition:a({durationIn:n,easeIn:i})},exit:{scale:0,opacity:0,translateY:t,transition:o({durationOut:r,easeOut:s})}},inDown:{initial:{scale:0,opacity:0,translateY:-t},animate:{scale:1,opacity:1,translateY:0,transition:a({durationIn:n,easeIn:i})},exit:{scale:0,opacity:0,translateY:-t,transition:o({durationOut:r,easeOut:s})}},inLeft:{initial:{scale:0,opacity:0,translateX:-t},animate:{scale:1,opacity:1,translateX:0,transition:a({durationIn:n,easeIn:i})},exit:{scale:0,opacity:0,translateX:-t,transition:o({durationOut:r,easeOut:s})}},inRight:{initial:{scale:0,opacity:0,translateX:t},animate:{scale:1,opacity:1,translateX:0,transition:a({durationIn:n,easeIn:i})},exit:{scale:0,opacity:0,translateX:t,transition:o({durationOut:r,easeOut:s})}},out:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,transition:a({durationIn:n,easeIn:i})}},outUp:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateY:-t,transition:a({durationIn:n,easeIn:i})}},outDown:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateY:t,transition:a({durationIn:n,easeIn:i})}},outLeft:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateX:-t,transition:a({durationIn:n,easeIn:i})}},outRight:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateX:t,transition:a({durationIn:n,easeIn:i})}}}},u=function(e){var t=null===e||void 0===e?void 0:e.durationIn,n=null===e||void 0===e?void 0:e.durationOut,r=null===e||void 0===e?void 0:e.easeIn,i=null===e||void 0===e?void 0:e.easeOut;return{inX:{initial:{rotateX:-180,opacity:0},animate:{rotateX:0,opacity:1,transition:a({durationIn:t,easeIn:r})},exit:{rotateX:-180,opacity:0,transition:o({durationOut:n,easeOut:i})}},inY:{initial:{rotateY:-180,opacity:0},animate:{rotateY:0,opacity:1,transition:a({durationIn:t,easeIn:r})},exit:{rotateY:-180,opacity:0,transition:o({durationOut:n,easeOut:i})}},outX:{initial:{rotateX:0,opacity:1},animate:{rotateX:70,opacity:0,transition:o({durationOut:n,easeOut:i})}},outY:{initial:{rotateY:0,opacity:1},animate:{rotateY:70,opacity:0,transition:o({durationOut:n,easeOut:i})}}}},c=function(e){var t=(null===e||void 0===e?void 0:e.distance)||160,n=null===e||void 0===e?void 0:e.durationIn,r=null===e||void 0===e?void 0:e.durationOut,i=null===e||void 0===e?void 0:e.easeIn,s=null===e||void 0===e?void 0:e.easeOut;return{inUp:{initial:{y:t},animate:{y:0,transition:a({durationIn:n,easeIn:i})},exit:{y:t,transition:o({durationOut:r,easeOut:s})}},inDown:{initial:{y:-t},animate:{y:0,transition:a({durationIn:n,easeIn:i})},exit:{y:-t,transition:o({durationOut:r,easeOut:s})}},inLeft:{initial:{x:-t},animate:{x:0,transition:a({durationIn:n,easeIn:i})},exit:{x:-t,transition:o({durationOut:r,easeOut:s})}},inRight:{initial:{x:t},animate:{x:0,transition:a({durationIn:n,easeIn:i})},exit:{x:t,transition:o({durationOut:r,easeOut:s})}},outUp:{initial:{y:0},animate:{y:-t,transition:a({durationIn:n,easeIn:i})},exit:{y:0,transition:o({durationOut:r,easeOut:s})}},outDown:{initial:{y:0},animate:{y:t,transition:a({durationIn:n,easeIn:i})},exit:{y:0,transition:o({durationOut:r,easeOut:s})}},outLeft:{initial:{x:0},animate:{x:-t,transition:a({durationIn:n,easeIn:i})},exit:{x:0,transition:o({durationOut:r,easeOut:s})}},outRight:{initial:{x:0},animate:{x:t,transition:a({durationIn:n,easeIn:i})},exit:{x:0,transition:o({durationOut:r,easeOut:s})}}}},d=function(e){var t=null===e||void 0===e?void 0:e.durationIn,n=null===e||void 0===e?void 0:e.durationOut,r=null===e||void 0===e?void 0:e.easeIn,i=null===e||void 0===e?void 0:e.easeOut;return{inX:{initial:{scaleX:0,opacity:0},animate:{scaleX:1,opacity:1,transition:a({durationIn:t,easeIn:r})},exit:{scaleX:0,opacity:0,transition:o({durationOut:n,easeOut:i})}},inY:{initial:{scaleY:0,opacity:0},animate:{scaleY:1,opacity:1,transition:a({durationIn:t,easeIn:r})},exit:{scaleY:0,opacity:0,transition:o({durationOut:n,easeOut:i})}},outX:{initial:{scaleX:1,opacity:1},animate:{scaleX:0,opacity:0,transition:a({durationIn:t,easeIn:r})}},outY:{initial:{scaleY:1,opacity:1},animate:{scaleY:0,opacity:0,transition:a({durationIn:t,easeIn:r})}}}},f=n(1413),p=function(e){var t=null===e||void 0===e?void 0:e.durationIn,n=null===e||void 0===e?void 0:e.durationOut,r=null===e||void 0===e?void 0:e.easeIn,i=null===e||void 0===e?void 0:e.easeOut;return{in:{initial:{},animate:{scale:[.3,1.1,.9,1.03,.97,1],opacity:[0,1,1,1,1,1],transition:a({durationIn:t,easeIn:r})},exit:{scale:[.9,1.1,.3],opacity:[1,1,0]}},inUp:{initial:{},animate:{y:[720,-24,12,-4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:(0,f.Z)({},a({durationIn:t,easeIn:r}))},exit:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:o({durationOut:n,easeOut:i})}},inDown:{initial:{},animate:{y:[-720,24,-12,4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:a({durationIn:t,easeIn:r})},exit:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:o({durationOut:n,easeOut:i})}},inLeft:{initial:{},animate:{x:[-720,24,-12,4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:a({durationIn:t,easeIn:r})},exit:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0],transition:o({durationOut:n,easeOut:i})}},inRight:{initial:{},animate:{x:[720,-24,12,-4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:a({durationIn:t,easeIn:r})},exit:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0],transition:o({durationOut:n,easeOut:i})}},out:{animate:{scale:[.9,1.1,.3],opacity:[1,1,0]}},outUp:{animate:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outDown:{animate:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outLeft:{animate:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0]}},outRight:{animate:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0]}}}},h=function(e){var t=null===e||void 0===e?void 0:e.durationIn,n=null===e||void 0===e?void 0:e.durationOut,r=null===e||void 0===e?void 0:e.easeIn,i=null===e||void 0===e?void 0:e.easeOut;return{in:{initial:{opacity:0,rotate:-360},animate:{opacity:1,rotate:0,transition:a({durationIn:t,easeIn:r})},exit:{opacity:0,rotate:-360,transition:o({durationOut:n,easeOut:i})}},out:{initial:{opacity:1,rotate:0},animate:{opacity:0,rotate:-360,transition:o({durationOut:n,easeOut:i})}}}},m=function(e){return{hover:{scale:e||1.1}}},g=function(e){return{animate:{transition:{staggerChildren:(null===e||void 0===e?void 0:e.staggerIn)||.05,delayChildren:(null===e||void 0===e?void 0:e.staggerIn)||.05}},exit:{transition:{staggerChildren:(null===e||void 0===e?void 0:e.staggerIn)||.05,staggerDirection:-1}}}},v=function(e){return{animate:{background:(null===e||void 0===e?void 0:e.colors)||["#19dcea","#b22cff"],transition:{duration:(null===e||void 0===e?void 0:e.duration)||5,ease:(null===e||void 0===e?void 0:e.ease)||"linear"}}}},y=function(e){var t=(null===e||void 0===e?void 0:e.duration)||5,n=(null===e||void 0===e?void 0:e.ease)||"easeOut";return{top:{animate:{scale:[1,1.25],y:[0,-15],transformOrigin:["50% 16%","top"],transition:{duration:t,ease:n}}},right:{animate:{scale:[1,1.25],x:[0,20],y:[0,-15],transformOrigin:["84% 50%","right"],transition:{duration:t,ease:n}}},bottom:{animate:{scale:[1,1.25],y:[0,15],transformOrigin:["50% 84%","bottom"],transition:{duration:t,ease:n}}},left:{animate:{scale:[1,1.25],x:[0,-20],y:[0,15],transformOrigin:["16% 50%","left"],transition:{duration:t,ease:n}}}}},_=function(e){var t=(null===e||void 0===e?void 0:e.colors)||["#ee7752","#e73c7e","#23a6d5","#23d5ab"],n=(null===e||void 0===e?void 0:e.duration)||5,r=(null===e||void 0===e?void 0:e.ease)||"linear",i=function(e){return"linear-gradient(".concat(e,"deg, ").concat(t,")")};return{top:{animate:{backgroundImage:[i(0),i(0)],backgroundPosition:["center 99%","center 1%"],backgroundSize:["100% 600%","100% 600%"],transition:{duration:n,ease:r}}},right:{animate:{backgroundPosition:["1% center","99% center"],backgroundImage:[i(270),i(270)],backgroundSize:["600% 100%","600% 100%"],transition:{duration:n,ease:r}}},bottom:{animate:{backgroundImage:[i(0),i(0)],backgroundPosition:["center 1%","center 99%"],backgroundSize:["100% 600%","100% 600%"],transition:{duration:n,ease:r}}},left:{animate:{backgroundPosition:["99% center","1% center"],backgroundImage:[i(270),i(270)],backgroundSize:["600% 100%","600% 100%"],transition:{duration:n,ease:r}}}}},b=n(45987),x=n(82280),E=n(89631),S=n(57631),w=n(16157),C=n(32415),T=n(46417),A=["open","variants","onClose","children","sx"];function k(e){var t=e.open,n=void 0!==t&&t,r=e.variants,i=e.onClose,a=e.children,o=e.sx,l=(0,b.Z)(e,A);return(0,T.jsx)(x.M,{children:n&&(0,T.jsx)(S.Z,(0,f.Z)((0,f.Z)({fullWidth:!0,maxWidth:"xs",open:n,onClose:i,PaperComponent:function(e){return(0,T.jsxs)(w.Z,(0,f.Z)((0,f.Z)({component:E.m.div},r||s({distance:120,durationIn:.32,durationOut:.24,easeIn:"easeInOut"}).inUp),{},{sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,T.jsx)(w.Z,{onClick:i,sx:{width:"100%",height:"100%",position:"fixed"}}),(0,T.jsx)(C.Z,(0,f.Z)((0,f.Z)({sx:o},e),{},{children:e.children}))]}))}},l),{},{children:a}))})}var D=["text","variants","sx"];function O(e){var t=e.text,n=e.variants,r=e.sx,i=(0,b.Z)(e,D);return(0,T.jsx)(w.Z,(0,f.Z)((0,f.Z)({component:E.m.div,sx:(0,f.Z)({m:0,typography:"h1",overflow:"hidden",display:"inline-flex"},r)},i),{},{children:t.split("").map((function(e,t){return(0,T.jsx)(E.m.span,{variants:n||s().inUp,children:e},t)}))}))}var I=n(75192),R=n.n(I),N=n(47313),M=n(4749),P=["size","children","sx","sxWrap"],L=(0,N.forwardRef)((function(e,t){var n=e.size,r=void 0===n?"large":n,i=e.children,a=e.sx,o=e.sxWrap,s=(0,b.Z)(e,P);return(0,T.jsx)(U,{size:r,sxWrap:o,children:(0,T.jsx)(M.Z,(0,f.Z)((0,f.Z)({ref:t,size:r,sx:a},s),{},{children:i}))})}));L.propTypes={children:R().node,color:R().oneOf(["inherit","default","primary","secondary","info","success","warning","error"]),size:R().oneOf(["small","medium","large"]),sx:R().object,sxWrap:R().object};var F=L,B={hover:{scale:1.07},tap:{scale:.97}},Z={hover:{scale:1.06},tap:{scale:.98}},z={hover:{scale:1.05},tap:{scale:.99}};function U(e){var t=e.size,n=e.children,r=e.sxWrap,i="small"===t,a="large"===t;return(0,T.jsx)(w.Z,{component:E.m.div,whileTap:"tap",whileHover:"hover",variants:i&&B||a&&z||Z,sx:(0,f.Z)({display:"inline-flex"},r),children:n})}var j=n(18104),G=["children","size"],V=(0,N.forwardRef)((function(e,t){var n=e.children,r=e.size,i=void 0===r?"medium":r,a=(0,b.Z)(e,G);return(0,T.jsx)(X,{size:i,children:(0,T.jsx)(j.Z,(0,f.Z)((0,f.Z)({size:i,ref:t},a),{},{children:n}))})}));V.propTypes={children:R().node,color:R().oneOf(["inherit","default","primary","secondary","info","success","warning","error"]),size:R().oneOf(["small","medium","large"])};var q=V,H={hover:{scale:1.1},tap:{scale:.95}},Y={hover:{scale:1.09},tap:{scale:.97}},W={hover:{scale:1.08},tap:{scale:.99}};function X(e){var t=e.size,n=e.children,r="small"===t,i="large"===t;return(0,T.jsx)(w.Z,{component:E.m.div,whileTap:"tap",whileHover:"hover",variants:r&&H||i&&W||Y,sx:{display:"inline-flex"},children:n})}var K=n(66281),$=["children","disableAnimatedMobile"];function Q(e){var t=e.children,n=e.disableAnimatedMobile,r=void 0===n||n,i=(0,b.Z)(e,$);return(0,K.Z)("down","sm")&&r?(0,T.jsx)(w.Z,(0,f.Z)((0,f.Z)({},i),{},{children:t})):(0,T.jsx)(w.Z,(0,f.Z)((0,f.Z)({component:E.m.div,initial:"initial",whileInView:"animate",viewport:{once:!0,amount:.3},variants:g()},i),{},{children:t}))}var J=["animate","action","children"];function ee(e){var t=e.animate,n=e.action,r=void 0!==n&&n,i=e.children,a=(0,b.Z)(e,J);return r?(0,T.jsx)(w.Z,(0,f.Z)((0,f.Z)({component:E.m.div,initial:!1,animate:t?"animate":"exit",variants:g()},a),{},{children:i})):(0,T.jsx)(w.Z,(0,f.Z)((0,f.Z)({component:E.m.div,initial:"initial",animate:"animate",exit:"exit",variants:g()},a),{},{children:i}))}var te=n(29439),ne=n(9925),re=n(82509),ie=["renderer"],ae=["renderer"];function oe(e){var t=e.children,n=e.features,r=e.strict,i=void 0!==r&&r,a=(0,N.useState)(!se(n)),o=(0,te.Z)(a,2)[1],s=(0,N.useRef)(void 0);if(!se(n)){var l=n.renderer,u=(0,b.Z)(n,ie);s.current=l,(0,re.K)(u)}return(0,N.useEffect)((function(){se(n)&&n().then((function(e){var t=e.renderer,n=(0,b.Z)(e,ae);(0,re.K)(n),s.current=t,o(!0)}))}),[]),N.createElement(ne.u.Provider,{value:{renderer:s.current,strict:i}},t)}function se(e){return"function"===typeof e}var le=function(){return Promise.all([n.e(9418),n.e(1553),n.e(3705)]).then(n.bind(n,33705)).then((function(e){return e.default}))};function ue(e){var t=e.children;return(0,T.jsx)(oe,{strict:!0,features:le,children:(0,T.jsxs)(E.m.div,{style:{height:"100%"},children:[" ",t," "]})})}},47284:function(e,t,n){"use strict";n.d(t,{Ue:function(){return c},ZP:function(){return h},Q8:function(){return p}});var r=n(58446),i=n(1413),a=n(62111),o=n(17551),s=n(27100),l=n(50769),u=n(46417);function c(){var e=(0,a.Z)();return(0,u.jsx)(s.Z,{styles:{".apexcharts-canvas":{".apexcharts-xaxistooltip":(0,i.Z)((0,i.Z)({},(0,l.Ls)({color:e.palette.background.default})),{},{border:0,color:e.palette.text.primary,boxShadow:e.customShadows.dropdown,borderRadius:1.5*Number(e.shape.borderRadius),"&:before":{borderBottomColor:"transparent"},"&:after":{borderBottomColor:(0,o.Fq)(e.palette.background.default,.8)}}),".apexcharts-tooltip.apexcharts-theme-light":(0,i.Z)((0,i.Z)({},(0,l.Ls)({color:e.palette.background.default})),{},{border:0,boxShadow:e.customShadows.dropdown,borderRadius:1.5*Number(e.shape.borderRadius),".apexcharts-tooltip-title":{border:0,textAlign:"center",fontWeight:e.typography.fontWeightBold,backgroundColor:(0,o.Fq)(e.palette.grey[500],.16),color:e.palette.text["light"===e.palette.mode?"secondary":"primary"]}}),".apexcharts-legend":{padding:0},".apexcharts-legend-series":{display:"flex !important",alignItems:"center"},".apexcharts-legend-marker":{marginRight:8},".apexcharts-legend-text":{lineHeight:"18px",textTransform:"capitalize"}}}})}var d=n(19118),f=n.n(d);function p(e){var t=(0,a.Z)(),n={show:!0,label:"Total",color:t.palette.text.secondary,fontSize:t.typography.subtitle2.fontSize,fontWeight:t.typography.subtitle2.fontWeight,lineHeight:t.typography.subtitle2.lineHeight},r={offsetY:8,color:t.palette.text.primary,fontSize:t.typography.h3.fontSize,fontWeight:t.typography.h3.fontWeight,lineHeight:t.typography.h3.lineHeight},i={colors:[t.palette.primary.main,t.palette.warning.main,t.palette.info.main,t.palette.error.main,t.palette.success.main,t.palette.warning.dark,t.palette.success.darker,t.palette.info.dark,t.palette.info.darker],chart:{toolbar:{show:!1},zoom:{enabled:!1},foreColor:t.palette.text.disabled,fontFamily:t.typography.fontFamily},states:{hover:{filter:{type:"lighten",value:.04}},active:{filter:{type:"darken",value:.88}}},fill:{opacity:1,gradient:{type:"vertical",shadeIntensity:0,opacityFrom:.4,opacityTo:0,stops:[0,100]}},dataLabels:{enabled:!1},stroke:{width:3,curve:"smooth",lineCap:"round"},grid:{strokeDashArray:3,borderColor:t.palette.divider},xaxis:{axisBorder:{show:!1},axisTicks:{show:!1}},markers:{size:0,strokeColors:t.palette.background.paper},tooltip:{x:{show:!1}},legend:{show:!0,fontSize:String(13),position:"top",horizontalAlign:"right",markers:{radius:12},fontWeight:500,itemMargin:{horizontal:12},labels:{colors:t.palette.text.primary}},plotOptions:{bar:{borderRadius:4,columnWidth:"28%"},pie:{donut:{labels:{show:!0,value:r,total:n}}},radialBar:{track:{strokeWidth:"100%",background:(0,o.Fq)(t.palette.grey[500],.16)},dataLabels:{value:r,total:n}},radar:{polygons:{fill:{colors:["transparent"]},strokeColors:t.palette.divider,connectorColors:t.palette.divider}},polarArea:{rings:{strokeColor:t.palette.divider},spokes:{connectorColors:t.palette.divider}}},responsive:[{breakpoint:t.breakpoints.values.sm,options:{plotOptions:{bar:{columnWidth:"40%"}}}},{breakpoint:t.breakpoints.values.md,options:{plotOptions:{bar:{columnWidth:"32%"}}}}]};return f()(i,e)}var h=r.Z},14913:function(e,t,n){"use strict";n.d(t,{z:function(){return d},_:function(){return y}});var r=n(1413),i=n(45987),a=n(47313),o=n(62111),s=n(49316),l=n(11093),u=n(46417),c=["color","name","BadgeProps","children","sx"],d=(0,a.forwardRef)((function(e,t){var n,a,d=e.color,f=e.name,p=void 0===f?"":f,h=e.BadgeProps,m=e.children,g=e.sx,v=(0,i.Z)(e,c),y=(0,o.Z)(),_=function(e){var t=function(e){return e&&e.charAt(0).toUpperCase()},n=function(e){return["A","N","H","L","Q"].includes(t(e))?"primary":["F","G","T","I","J"].includes(t(e))?"info":["K","D","Y","B","O"].includes(t(e))?"success":["P","E","R","S","U"].includes(t(e))?"warning":["V","W","X","M","Z"].includes(t(e))?"error":"default"};return{name:t(e),color:n(e)}}(p),b=_.color,x=_.name,E=d||b,S="default"===E?(0,u.jsxs)(s.Z,(0,r.Z)((0,r.Z)({ref:t,sx:g},v),{},{children:[p&&x,m]})):(0,u.jsxs)(s.Z,(0,r.Z)((0,r.Z)({ref:t,sx:(0,r.Z)({color:null===(n=y.palette[E])||void 0===n?void 0:n.contrastText,backgroundColor:null===(a=y.palette[E])||void 0===a?void 0:a.main,fontWeight:y.typography.fontWeightMedium},g)},v),{},{children:[p&&x,m]}));return h?(0,u.jsx)(l.Z,(0,r.Z)((0,r.Z)({overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"}},h),{},{children:S})):S}));var f=n(78179),p=["size","compact","max","children","sx"],h=24,m=32,g=40,v=56,y=(0,a.forwardRef)((function(e,t){var n=e.size,a=void 0===n?"small":n,o=e.compact,s=e.max,l=e.children,c=e.sx,d=(0,i.Z)(e,p),y="tiny"===a,_="small"===a,b="medium"===a,x="large"===a;return(0,u.jsx)(f.Z,(0,r.Z)((0,r.Z)({ref:t,max:o?3:s,spacing:y||_?"medium":"small",sx:(0,r.Z)((0,r.Z)({"& .MuiAvatar-root":(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},x&&{width:v,height:v,"&:first-of-type":{fontSize:16}}),b&&{width:g,height:g}),_&&{width:m,height:m}),y&&{width:h,height:h})},o&&(0,r.Z)({},{width:40,height:40,position:"relative","& .MuiAvatarGroup-avatar":{m:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}}})),c)},d),{},{children:l}))}))},23267:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(1413),i=n(45987),a=(n(93800),n(16)),o=n.n(a),s=n(64164),l=n(17551),u=n(16157),c=(0,s.ZP)(u.Z)((function(e){var t=e.theme;return{overflow:"hidden",position:"relative",borderRadius:t.shape.borderRadius,border:"solid 1px ".concat((0,l.Fq)(t.palette.grey[500],.32)),"& .ql-container.ql-snow":(0,r.Z)((0,r.Z)({borderColor:"transparent"},t.typography.body1),{},{fontFamily:t.typography.fontFamily}),"& .ql-editor":{minHeight:200,maxHeight:640,"&.ql-blank::before":{fontStyle:"normal",color:t.palette.text.disabled},"& pre.ql-syntax":(0,r.Z)((0,r.Z)({},t.typography.body2),{},{padding:t.spacing(2),borderRadius:t.shape.borderRadius,backgroundColor:t.palette.grey[900]})}}})),d=(0,s.ZP)("div")((function(e){var t=e.theme,n="rtl"===t.direction;return{"& .ql-snow.ql-toolbar button:hover .ql-fill, .ql-snow .ql-toolbar button:hover .ql-fill, .ql-snow.ql-toolbar button:focus .ql-fill, .ql-snow .ql-toolbar button:focus .ql-fill, .ql-snow.ql-toolbar button.ql-active .ql-fill, .ql-snow .ql-toolbar button.ql-active .ql-fill, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill, .ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill, .ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill, .ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill, .ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill, .ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill, .ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill":{fill:t.palette.primary.main},"& .ql-snow.ql-toolbar button:hover, .ql-snow .ql-toolbar button:hover, .ql-snow.ql-toolbar button:focus, .ql-snow .ql-toolbar button:focus, .ql-snow.ql-toolbar button.ql-active, .ql-snow .ql-toolbar button.ql-active, .ql-snow.ql-toolbar .ql-picker-label:hover, .ql-snow .ql-toolbar .ql-picker-label:hover, .ql-snow.ql-toolbar .ql-picker-label.ql-active, .ql-snow .ql-toolbar .ql-picker-label.ql-active, .ql-snow.ql-toolbar .ql-picker-item:hover, .ql-snow .ql-toolbar .ql-picker-item:hover, .ql-snow.ql-toolbar .ql-picker-item.ql-selected, .ql-snow .ql-toolbar .ql-picker-item.ql-selected":{color:t.palette.primary.main},"& .ql-snow.ql-toolbar button:hover .ql-stroke, .ql-snow .ql-toolbar button:hover .ql-stroke, .ql-snow.ql-toolbar button:focus .ql-stroke, .ql-snow .ql-toolbar button:focus .ql-stroke, .ql-snow.ql-toolbar button.ql-active .ql-stroke, .ql-snow .ql-toolbar button.ql-active .ql-stroke, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke, .ql-snow.ql-toolbar button:hover .ql-stroke-miter, .ql-snow .ql-toolbar button:hover .ql-stroke-miter, .ql-snow.ql-toolbar button:focus .ql-stroke-miter, .ql-snow .ql-toolbar button:focus .ql-stroke-miter, .ql-snow.ql-toolbar button.ql-active .ql-stroke-miter, .ql-snow .ql-toolbar button.ql-active .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter":{stroke:t.palette.primary.main},"& .ql-stroke":{stroke:t.palette.text.primary},"& .ql-fill, .ql-stroke.ql-fill":{fill:t.palette.text.primary},"& .ql-picker, .ql-picker-options, .ql-picker-item, .ql-picker-label, button":{"&:focus":{outline:"none"}},"& .ql-toolbar.ql-snow":{border:"none",borderBottom:"solid 1px ".concat((0,l.Fq)(t.palette.grey[500],.32)),"& .ql-formats":{"&:not(:last-of-type)":{marginRight:t.spacing(2)}},"& button":{padding:0,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:4,color:t.palette.text.primary},"& button svg, span svg":{width:20,height:20},"& .ql-picker-label":(0,r.Z)((0,r.Z)({},t.typography.subtitle2),{},{color:t.palette.text.primary,"& .ql-stroke":{stroke:t.palette.text.primary}}),"& .ql-picker-label svg":(0,r.Z)({},n&&{right:"0 !important",left:"auto !important"}),"& .ql-color,& .ql-background,& .ql-align ":{"& .ql-picker-label":{padding:0,display:"flex",alignItems:"center",justifyContent:"center"}},"& .ql-expanded":{"& .ql-picker-label":{borderRadius:4,color:t.palette.text.disabled,borderColor:"transparent !important",backgroundColor:t.palette.action.focus,"& .ql-stroke":{stroke:t.palette.text.disabled}},"& .ql-picker-options":{padding:0,marginTop:4,border:"none",maxHeight:200,overflow:"auto",boxShadow:t.customShadows.z20,borderRadius:t.shape.borderRadius,backgroundColor:t.palette.background.paper},"& .ql-picker-item":{color:t.palette.text.primary},"&.ql-align":{"& .ql-picker-options":{padding:0,display:"flex"},"& .ql-picker-item":{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center"}},"&.ql-color, &.ql-background":{"& .ql-picker-options":{padding:8},"& .ql-picker-item":{margin:3,borderRadius:4,"&.ql-selected":{border:"solid 1px black"}}},"&.ql-font, &.ql-size, &.ql-header":{"& .ql-picker-options":{padding:t.spacing(1,0)},"& .ql-picker-item":{padding:t.spacing(.5,1.5)}}}}}})),f=n(46417),p=["id","isSimple"],h=["Heading 1","Heading 2","Heading 3","Heading 4","Heading 5","Heading 6"],m=["align","background","blockquote","bold","bullet","code","code-block","color","direction","font","formula","header","image","indent","italic","link","list","script","size","strike","table","underline","video"];function g(e){var t=e.id,n=e.isSimple,a=(0,i.Z)(e,p);return(0,f.jsx)(d,(0,r.Z)((0,r.Z)({},a),{},{children:(0,f.jsxs)("div",{id:t,children:[(0,f.jsx)("div",{className:"ql-formats",children:(0,f.jsxs)("select",{className:"ql-header",defaultValue:"",children:[h.map((function(e,t){return(0,f.jsx)("option",{value:t+1,children:e},e)})),(0,f.jsx)("option",{value:"",children:"Normal"})]})}),(0,f.jsxs)("div",{className:"ql-formats",children:[(0,f.jsx)("button",{type:"button",className:"ql-bold"}),(0,f.jsx)("button",{type:"button",className:"ql-italic"}),(0,f.jsx)("button",{type:"button",className:"ql-underline"}),(0,f.jsx)("button",{type:"button",className:"ql-strike"})]}),!n&&(0,f.jsxs)("div",{className:"ql-formats",children:[(0,f.jsx)("select",{className:"ql-color"}),(0,f.jsx)("select",{className:"ql-background"})]}),(0,f.jsxs)("div",{className:"ql-formats",children:[(0,f.jsx)("button",{type:"button",className:"ql-list",value:"ordered"}),(0,f.jsx)("button",{type:"button",className:"ql-list",value:"bullet"}),!n&&(0,f.jsx)("button",{type:"button",className:"ql-indent",value:"-1"}),!n&&(0,f.jsx)("button",{type:"button",className:"ql-indent",value:"+1"})]}),!n&&(0,f.jsxs)("div",{className:"ql-formats",children:[(0,f.jsx)("button",{type:"button",className:"ql-script",value:"super"}),(0,f.jsx)("button",{type:"button",className:"ql-script",value:"sub"})]}),!n&&(0,f.jsxs)("div",{className:"ql-formats",children:[(0,f.jsx)("button",{type:"button",className:"ql-code-block"}),(0,f.jsx)("button",{type:"button",className:"ql-blockquote"})]}),(0,f.jsxs)("div",{className:"ql-formats",children:[(0,f.jsx)("button",{type:"button",className:"ql-direction",value:"rtl"}),(0,f.jsx)("select",{className:"ql-align"})]}),(0,f.jsxs)("div",{className:"ql-formats",children:[(0,f.jsx)("button",{type:"button",className:"ql-link"}),(0,f.jsx)("button",{type:"button",className:"ql-image"}),(0,f.jsx)("button",{type:"button",className:"ql-video"})]}),(0,f.jsxs)("div",{className:"ql-formats",children:[!n&&(0,f.jsx)("button",{type:"button",className:"ql-formula"}),(0,f.jsx)("button",{type:"button",className:"ql-clean"})]})]})}))}var v=["id","error","value","onChange","simple","helperText","sx"];function y(e){var t=e.id,n=void 0===t?"minimal-quill":t,a=e.error,s=e.value,l=e.onChange,u=e.simple,d=void 0!==u&&u,p=e.helperText,h=e.sx,y=(0,i.Z)(e,v),_={toolbar:{container:"#".concat(n)},history:{delay:500,maxStack:100,userOnly:!0},syntax:!0,clipboard:{matchVisual:!1}};return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(c,{sx:(0,r.Z)((0,r.Z)({},a&&{border:function(e){return"solid 1px ".concat(e.palette.error.main)}}),h),children:[(0,f.jsx)(g,{id:n,isSimple:d}),(0,f.jsx)(o(),(0,r.Z)({value:s,onChange:l,modules:_,formats:m,placeholder:"Write something awesome..."},y))]}),p&&p]})}},34345:function(e,t,n){"use strict";n.d(t,{ZP:function(){return D},ht:function(){return y},fH:function(){return m}});var r=["pdf"],i=["txt"],a=["psd"],o=["doc","docx"],s=["xls","xlsx"],l=["zip","rar","iso"],u=["ai","esp"],c=["ppt","pptx"],d=["wav","aif","mp3","aac"],f=["jpg","jpeg","gif","bmp","png","svg"],p=["m4v","avi","mpg","mp4","webm"],h=function(e){return"/assets/icons/files/".concat(e,".svg")};function m(e){var t;switch(null===e||void 0===e?void 0:e.includes(v(e))){case i.includes(v(e)):t="txt";break;case l.includes(v(e)):t="zip";break;case d.includes(v(e)):t="audio";break;case f.includes(v(e)):t="image";break;case p.includes(v(e)):t="video";break;case o.includes(v(e)):t="word";break;case s.includes(v(e)):t="excel";break;case c.includes(v(e)):t="powerpoint";break;case r.includes(v(e)):t="pdf";break;case a.includes(v(e)):t="photoshop";break;case u.includes(v(e)):t="illustrator";break;default:t=v(e)}return t}function g(e){var t;switch(m(e)){case"folder":t=h("ic_folder");break;case"txt":t=h("ic_txt");break;case"zip":t=h("ic_zip");break;case"audio":t=h("ic_audio");break;case"video":t=h("ic_video");break;case"word":t=h("ic_word");break;case"excel":t=h("ic_excel");break;case"powerpoint":t=h("ic_power_point");break;case"pdf":t=h("ic_pdf");break;case"photoshop":t=h("ic_pts");break;case"illustrator":t=h("ic_ai");break;case"image":t=h("ic_img");break;default:t=h("ic_file")}return t}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e&&e.split(".").pop()||""}function y(e){return"string"===typeof e?{key:e,preview:e,name:(t=e,t.split("/").pop()),type:v(e)}:{key:e.preview,name:e.name,size:e.size,path:e.path,type:e.type,preview:e.preview,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate};var t}var _=n(1413),b=n(16157),x=n(83719),E=n(62463),S=n(62111),w=n(18104),C=n(50769),T=n(8730),A=n(46417);function k(e){var t=e.onDownload,n=(0,S.Z)();return(0,A.jsx)(w.Z,{onClick:t,sx:{p:0,top:0,right:0,width:1,height:1,zIndex:9,opacity:0,position:"absolute",borderRadius:"unset",justifyContent:"center",bgcolor:"grey.800",color:"common.white",transition:n.transitions.create("opacity"),"&:hover":(0,_.Z)({opacity:1},(0,C.Ls)({opacity:.64,color:n.palette.grey[900]}))},children:(0,A.jsx)(T.Z,{icon:"eva:arrow-circle-down-fill",width:24})})}function D(e){var t=e.file,n=e.tooltip,r=e.imageView,i=e.onDownload,a=e.sx,o=e.imgSx,s=y(t),l=s.name,u=void 0===l?"":l,c=s.path,d=void 0===c?"":c,f=s.preview,p=void 0===f?"":f,h=m(d||p),v="image"===h&&r?(0,A.jsx)(b.Z,{component:"img",src:p,sx:(0,_.Z)({width:1,height:1,flexShrink:0,objectFit:"cover"},o)}):(0,A.jsx)(b.Z,{component:"img",src:g(h),sx:(0,_.Z)({width:32,height:32,flexShrink:0},a)});return n?(0,A.jsx)(x.Z,{title:u,children:(0,A.jsxs)(E.Z,{flexShrink:0,component:"span",alignItems:"center",justifyContent:"center",sx:{width:"fit-content",height:"inherit"},children:[v,i&&(0,A.jsx)(k,{onDownload:i})]})}):(0,A.jsxs)(A.Fragment,{children:[v,i&&(0,A.jsx)(k,{onDownload:i})]})}},50734:function(e,t,n){"use strict";n.d(t,{Fl:function(){return F},jb:function(){return g},Iy:function(){return w},LM:function(){return R},Cc:function(){return D},_e:function(){return A},au:function(){return M},rd:function(){return f},sX:function(){return d},ZP:function(){return v}});var r=n(1413),i=n(45987),a=n(75627),o=n(48569),s=n(38789),l=n(46417),u=["name"],c=["name","multiple"];function d(e){var t=e.name,n=(0,i.Z)(e,u),c=(0,a.Gc)().control;return(0,l.jsx)(a.Qr,{name:t,control:c,render:function(e){var t=e.field,i=e.fieldState.error,a=!!i&&!t.value;return(0,l.jsxs)("div",{children:[(0,l.jsx)(s.ab,(0,r.Z)({accept:{"image/*":[]},error:a,file:t.value},n)),a&&(0,l.jsx)(o.Z,{error:!0,sx:{px:2,textAlign:"center"},children:i.message})]})}})}function f(e){var t=e.name,n=e.multiple,u=(0,i.Z)(e,c),d=(0,a.Gc)().control;return(0,l.jsx)(a.Qr,{name:t,control:d,render:function(e){var t,i=e.field,a=e.fieldState.error,c=!!a&&!i.value,d=!!a&&!(null!==(t=i.value)&&void 0!==t&&t.length);return n?(0,l.jsx)(s.gq,(0,r.Z)({multiple:!0,accept:{"image/*":[]},files:i.value,error:d,helperText:d&&(0,l.jsx)(o.Z,{error:!0,sx:{px:2},children:null===a||void 0===a?void 0:a.message})},u)):(0,l.jsx)(s.gq,(0,r.Z)({accept:{"image/*":[]},file:i.value,error:c,helperText:c&&(0,l.jsx)(o.Z,{error:!0,sx:{px:2},children:null===a||void 0===a?void 0:a.message})},u))}})}var p=n(64558),h=n(41769),m=["name"];function g(e){var t=e.name,n=(0,i.Z)(e,m),o=(0,a.Gc)().control;return(0,l.jsx)(a.Qr,{name:t,control:o,render:function(e){var t=e.field;return(0,l.jsx)(p.Z,(0,r.Z)({control:(0,l.jsx)(h.Z,(0,r.Z)((0,r.Z)({},t),{},{checked:t.value}))},n))}})}function v(e){var t=e.children,n=e.onSubmit,i=e.methods;return(0,l.jsx)(a.RV,(0,r.Z)((0,r.Z)({},i),{},{children:(0,l.jsx)("form",{onSubmit:n,children:t})}))}var y=n(47313),_=n(62463),b=n(67881),x="undefined"!==typeof window?y.useLayoutEffect:y.useEffect;var E=function(e,t,n,r){var i=(0,y.useRef)(t);x((function(){i.current=t}),[t]),(0,y.useEffect)((function(){var t=(null===n||void 0===n?void 0:n.current)||window;if(t&&t.addEventListener){var a=function(e){return i.current(e)};return t.addEventListener(e,a,r),function(){t.removeEventListener(e,a)}}}),[e,n,r])},S=["keyName","inputs"];function w(e){var t=e.keyName,n=void 0===t?"":t,o=e.inputs,s=void 0===o?[]:o,u=(0,i.Z)(e,S),c=(0,y.useRef)(null),d=(0,a.Gc)(),f=d.control,p=d.setValue;return E("paste",(function(e){var t=e.clipboardData.getData("text");t=t.split(""),s.map((function(e,n){return p(e,t[n])})),e.preventDefault()}),c),(0,l.jsx)(_.Z,{direction:"row",spacing:2,justifyContent:"center",ref:c,children:s.map((function(e,t){return(0,l.jsx)(a.Qr,{name:"".concat(n).concat(t+1),control:f,render:function(e){var i=e.field,a=e.fieldState.error;return(0,l.jsx)(b.Z,(0,r.Z)((0,r.Z)({},i),{},{error:!!a,autoFocus:0===t,placeholder:"-",onChange:function(e){!function(e,t){var r=e.target,i=r.maxLength,a=r.value,o=r.name.replace(n,""),s=Number(o),l=document.querySelector("input[name=".concat(n).concat(s+1,"]"));a.length>i&&(e.target.value=a[0]),a.length>=i&&s<6&&null!==l&&l.focus(),t(e)}(e,i.onChange)},onFocus:function(e){return e.currentTarget.select()},InputProps:{sx:{width:{xs:36,sm:56},height:{xs:36,sm:56},"& input":{p:0,textAlign:"center"}}},inputProps:{maxLength:1,type:"number"}},u))}},e)}))})}var C=n(11626),T=["name"];function A(e){var t=e.name,n=(0,i.Z)(e,T),o=(0,a.Gc)().control;return(0,l.jsx)(a.Qr,{name:t,control:o,render:function(e){var t=e.field;return(0,l.jsx)(p.Z,(0,r.Z)({control:(0,l.jsx)(C.Z,(0,r.Z)((0,r.Z)({},t),{},{checked:t.value}))},n))}})}var k=["name","children"];function D(e){var t=e.name,n=e.children,o=(0,i.Z)(e,k),s=(0,a.Gc)().control;return(0,l.jsx)(a.Qr,{name:t,control:s,render:function(e){var t=e.field,i=e.fieldState.error;return(0,l.jsx)(b.Z,(0,r.Z)((0,r.Z)((0,r.Z)({},t),{},{select:!0,fullWidth:!0,SelectProps:{native:!0},error:!!i,helperText:null===i||void 0===i?void 0:i.message},o),{},{children:n}))}})}var O=n(23267),I=["name"];function R(e){var t=e.name,n=(0,i.Z)(e,I),s=(0,a.Gc)().control;return(0,l.jsx)(a.Qr,{name:t,control:s,render:function(e){var i=e.field,a=e.fieldState.error;return(0,l.jsx)(O.Z,(0,r.Z)({id:t,value:i.value,onChange:i.onChange,error:!!a,helperText:(0,l.jsx)(o.Z,{error:!0,sx:{px:2,textTransform:"capitalize"},children:null===a||void 0===a?void 0:a.message})},n))}})}var N=["name"];function M(e){var t=e.name,n=(0,i.Z)(e,N),o=(0,a.Gc)().control;return(0,l.jsx)(a.Qr,{name:t,control:o,render:function(e){var t=e.field,i=e.fieldState.error;return(0,l.jsx)(b.Z,(0,r.Z)((0,r.Z)({},t),{},{fullWidth:!0,value:"number"===typeof t.value&&0===t.value?"":t.value,error:!!i,helperText:null===i||void 0===i?void 0:i.message},n))}})}var P=n(94876),L=["name"];function F(e){var t=e.name,n=(0,i.Z)(e,L),o=(0,a.Gc)().control;return(0,l.jsx)(a.Qr,{name:t,control:o,render:function(e){var t=e.field;return(0,l.jsx)(P.Z,(0,r.Z)((0,r.Z)({},t),n))}})}},8730:function(e,t,n){"use strict";n.d(t,{Z:function(){return nt}});var r=n(1413),i=n(45987),a=n(75192),o=n.n(a),s=n(47313),l=n(15671),u=n(43144),c=n(60136),d=n(29388),f=/^[a-z0-9]+(-[a-z0-9]+)*$/,p=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=e.split(":");if("@"===e.slice(0,1)){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){var a=i.pop(),o=i.pop(),s={provider:i.length>0?i[0]:r,prefix:o,name:a};return t&&!h(s)?null:s}var l=i[0],u=l.split("-");if(u.length>1){var c={provider:r,prefix:u.shift(),name:u.join("-")};return t&&!h(c)?null:c}if(n&&""===r){var d={provider:r,prefix:"",name:l};return t&&!h(d,n)?null:d}return null},h=function(e,t){return!!e&&!(""!==e.provider&&!e.provider.match(f)||!(t&&""===e.prefix||e.prefix.match(f))||!e.name.match(f))},m=Object.freeze({left:0,top:0,width:16,height:16}),g=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),v=Object.freeze((0,r.Z)((0,r.Z)({},m),g)),y=Object.freeze((0,r.Z)((0,r.Z)({},v),{},{body:"",hidden:!1}));function _(e,t){var n=function(e,t){var n={};!e.hFlip!==!t.hFlip&&(n.hFlip=!0),!e.vFlip!==!t.vFlip&&(n.vFlip=!0);var r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}(e,t);for(var r in y)r in g?r in e&&!(r in n)&&(n[r]=g[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function b(e,t,n){var r=e.icons,i=e.aliases||{},a={};function o(e){a=_(r[e]||i[e],a)}return o(t),n.forEach(o),_(e,a)}function x(e,t){var n=[];if("object"!==typeof e||"object"!==typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach((function(e){t(e,null),n.push(e)}));var r=function(e,t){var n=e.icons,r=e.aliases||{},i=Object.create(null);return(t||Object.keys(n).concat(Object.keys(r))).forEach((function e(t){if(n[t])return i[t]=[];if(!(t in i)){i[t]=null;var a=r[t]&&r[t].parent,o=a&&e(a);o&&(i[t]=[a].concat(o))}return i[t]})),i}(e);for(var i in r){var a=r[i];a&&(t(i,b(e,i,a)),n.push(i))}return n}var E=(0,r.Z)({provider:"",aliases:{},not_found:{}},m);function S(e,t){for(var n in t)if(n in e&&typeof e[n]!==typeof t[n])return!1;return!0}function w(e){if("object"!==typeof e||null===e)return null;var t=e;if("string"!==typeof t.prefix||!e.icons||"object"!==typeof e.icons)return null;if(!S(e,E))return null;var n=t.icons;for(var r in n){var i=n[r];if(!r.match(f)||"string"!==typeof i.body||!S(i,y))return null}var a=t.aliases||{};for(var o in a){var s=a[o],l=s.parent;if(!o.match(f)||"string"!==typeof l||!n[l]&&!a[l]||!S(s,y))return null}return t}var C=Object.create(null);function T(e,t){var n=C[e]||(C[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function A(e,t){return w(t)?x(t,(function(t,n){n?e.icons[t]=n:e.missing.add(t)})):[]}var k=!1;function D(e){return"boolean"===typeof e&&(k=e),k}function O(e){var t="string"===typeof e?p(e,!0,k):e;if(t){var n=T(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function I(e,t){var n=p(e,!0,k);return!!n&&function(e,t,n){try{if("string"===typeof n.body)return e.icons[t]=(0,r.Z)({},n),!0}catch(qe){}return!1}(T(n.provider,n.prefix),n.name,t)}var R=Object.freeze({width:null,height:null}),N=Object.freeze((0,r.Z)((0,r.Z)({},R),g)),M=/(-?[0-9.]*[0-9]+[0-9.]*)/g,P=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function L(e,t,n){if(1===t)return e;if(n=n||100,"number"===typeof e)return Math.ceil(e*t*n)/n;if("string"!==typeof e)return e;var r=e.split(M);if(null===r||!r.length)return e;for(var i=[],a=r.shift(),o=P.test(a);;){if(o){var s=parseFloat(a);isNaN(s)?i.push(a):i.push(Math.ceil(s*t*n)/n)}else i.push(a);if(void 0===(a=r.shift()))return i.join("");o=!o}}var F=/\sid="(\S+)"/g,B="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16),Z=0;function z(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B,r=[];t=F.exec(e);)r.push(t[1]);return r.length?(r.forEach((function(t){var r="function"===typeof n?n(t):n+(Z++).toString(),i=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+r+"$3")})),e):e}var U=Object.create(null);function j(e,t){U[e]=t}function G(e){return U[e]||U[""]}function V(e){var t;if("string"===typeof e.resources)t=[e.resources];else if(!((t=e.resources)instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}for(var q=Object.create(null),H=["https://api.simplesvg.com","https://api.unisvg.com"],Y=[];H.length>0;)1===H.length||Math.random()>.5?Y.push(H.shift()):Y.push(H.pop());function W(e,t){var n=V(t);return null!==n&&(q[e]=n,!0)}function X(e){return q[e]}q[""]=V({resources:["https://api.iconify.design"].concat(Y)});var K=function(){var e;try{if("function"===typeof(e=fetch))return e}catch(qe){}}();var $={prepare:function(e,t,n){var r=[],i=function(e,t){var n,r=X(e);if(!r)return 0;if(r.maxURL){var i=0;r.resources.forEach((function(e){var t=e;i=Math.max(i,t.length)}));var a=t+".json?icons=";n=r.maxURL-i-r.path.length-a.length}else n=0;return n}(e,t),a="icons",o={type:a,provider:e,prefix:t,icons:[]},s=0;return n.forEach((function(n,l){(s+=n.length+1)>=i&&l>0&&(r.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=n.length),o.icons.push(n)})),r.push(o),r},send:function(e,t,n){if(K){var r=function(e){if("string"===typeof e){var t=X(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":var i=t.prefix,a=t.icons.join(",");r+=i+".json?"+new URLSearchParams({icons:a}).toString();break;case"custom":var o=t.uri;r+="/"===o.slice(0,1)?o.slice(1):o;break;default:return void n("abort",400)}var s=503;K(e+r).then((function(e){var t=e.status;if(200===t)return s=501,e.json();setTimeout((function(){n(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((function(e){"object"===typeof e&&null!==e?setTimeout((function(){n("success",e)})):setTimeout((function(){n("next",s)}))})).catch((function(){n("next",s)}))}else n("abort",424)}};function Q(e,t){e.forEach((function(e){var n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((function(e){return e.id!==t})))}))}var J=0;var ee={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function te(e,t,n,r){var i,a=e.resources.length,o=e.random?Math.floor(Math.random()*a):e.index;if(e.random){var s=e.resources.slice(0);for(i=[];s.length>1;){var l=Math.floor(Math.random()*s.length);i.push(s[l]),s=s.slice(0,l).concat(s.slice(l+1))}i=i.concat(s)}else i=e.resources.slice(o).concat(e.resources.slice(0,o));var u,c=Date.now(),d="pending",f=0,p=null,h=[],m=[];function g(){p&&(clearTimeout(p),p=null)}function v(){"pending"===d&&(d="aborted"),g(),h.forEach((function(e){"pending"===e.status&&(e.status="aborted")})),h=[]}function y(e,t){t&&(m=[]),"function"===typeof e&&m.push(e)}function _(){d="failed",m.forEach((function(e){e(void 0,u)}))}function b(){h.forEach((function(e){"pending"===e.status&&(e.status="aborted")})),h=[]}function x(){if("pending"===d){g();var r=i.shift();if(void 0===r)return h.length?void(p=setTimeout((function(){g(),"pending"===d&&(b(),_())}),e.timeout)):void _();var a={status:"pending",resource:r,callback:function(t,n){!function(t,n,r){var a="success"!==n;switch(h=h.filter((function(e){return e!==t})),d){case"pending":break;case"failed":if(a||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return u=r,void _();if(a)return u=r,void(h.length||(i.length?x():_()));if(g(),b(),!e.random){var o=e.resources.indexOf(t.resource);-1!==o&&o!==e.index&&(e.index=o)}d="completed",m.forEach((function(e){e(r)}))}(a,t,n)}};h.push(a),f++,p=setTimeout(x,e.rotate),n(r,t,a.callback)}}return"function"===typeof r&&m.push(r),setTimeout(x),function(){return{startTime:c,payload:t,status:d,queriesSent:f,queriesPending:h.length,subscribe:y,abort:v}}}function ne(e){var t=(0,r.Z)((0,r.Z)({},ee),e),n=[];function i(){n=n.filter((function(e){return"pending"===e().status}))}var a={query:function(e,r,a){var o=te(t,e,r,(function(e,t){i(),a&&a(e,t)}));return n.push(o),o},find:function(e){return n.find((function(t){return e(t)}))||null},setIndex:function(e){t.index=e},getIndex:function(){return t.index},cleanup:i};return a}function re(){}var ie=Object.create(null);function ae(e,t,n){var r,i;if("string"===typeof e){var a=G(e);if(!a)return n(void 0,424),re;i=a.send;var o=function(e){if(!ie[e]){var t=X(e);if(!t)return;var n={config:t,redundancy:ne(t)};ie[e]=n}return ie[e]}(e);o&&(r=o.redundancy)}else{var s=V(e);if(s){r=ne(s);var l=G(e.resources?e.resources[0]:"");l&&(i=l.send)}}return r&&i?r.query(t,i,n)().abort:(n(void 0,424),re)}var oe="iconify2",se="iconify",le="iconify-count",ue="iconify-version",ce=36e5;function de(e,t){try{return e.getItem(t)}catch(qe){}}function fe(e,t,n){try{return e.setItem(t,n),!0}catch(qe){}}function pe(e,t){try{e.removeItem(t)}catch(qe){}}function he(e,t){return fe(e,le,t.toString())}function me(e){return parseInt(de(e,le))||0}var ge={local:!0,session:!0},ve={local:new Set,session:new Set},ye=!1;var _e="undefined"===typeof window?{}:window;function be(e){var t=e+"Storage";try{if(_e&&_e[t]&&"number"===typeof _e[t].length)return _e[t]}catch(qe){}ge[e]=!1}function xe(e,t){var n=be(e);if(n){var r=de(n,ue);if(r!==oe){if(r)for(var i=me(n),a=0;ao&&"string"===typeof a.provider&&"object"===typeof a.data&&"string"===typeof a.data.prefix&&t(a,e))return!0}catch(qe){}pe(n,r)}},l=me(n),u=l-1;u>=0;u--)s(u)||(u===l-1?(l--,he(n,l)):ve[e].add(u))}}function Ee(){if(!ye)for(var e in ye=!0,ge)xe(e,(function(e){var t=e.data,n=T(e.provider,t.prefix);if(!A(n,t).length)return!1;var r=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,r):r,!0}))}function Se(e,t){function n(n){var r;if(ge[n]&&(r=be(n))){var i,a=ve[n];if(a.size)a.delete(i=Array.from(a).shift());else if(!he(r,(i=me(r))+1))return;var o={cached:Math.floor(Date.now()/ce),provider:e.provider,data:t};return fe(r,se+i.toString(),JSON.stringify(o))}}ye||Ee(),t.lastModified&&!function(e,t){var n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(var r in ge)xe(r,(function(n){var r=n.data;return n.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))}function we(){}function Ce(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((function(){e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((function(){e.pendingCallbacksFlag=!1;var t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(t.length){var n=!1,r=e.provider,i=e.prefix;t.forEach((function(t){var a=t.icons,o=a.pending.length;a.pending=a.pending.filter((function(t){if(t.prefix!==i)return!0;var o=t.name;if(e.icons[o])a.loaded.push({provider:r,prefix:i,name:o});else{if(!e.missing.has(o))return n=!0,!0;a.missing.push({provider:r,prefix:i,name:o})}return!1})),a.pending.length!==o&&(n||Q([e],t.id),t.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),t.abort))}))}})))}(e)})))}var Te=function(e,t){var n=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[];return e.forEach((function(e){var i="string"===typeof e?p(e,t,n):e;i&&r.push(i)})),r}(e,!0,D()),r=function(e){var t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((function(e,t){return e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)}));var r={provider:"",prefix:"",name:""};return e.forEach((function(e){if(r.name!==e.name||r.prefix!==e.prefix||r.provider!==e.provider){r=e;var i=e.provider,a=e.prefix,o=e.name,s=n[i]||(n[i]=Object.create(null)),l=s[a]||(s[a]=T(i,a)),u={provider:i,prefix:a,name:o};(o in l.icons?t.loaded:""===a||l.missing.has(o)?t.missing:t.pending).push(u)}})),t}(n);if(!r.pending.length){var i=!0;return t&&setTimeout((function(){i&&t(r.loaded,r.missing,r.pending,we)})),function(){i=!1}}var a,o,s=Object.create(null),l=[];return r.pending.forEach((function(e){var t=e.provider,n=e.prefix;if(n!==o||t!==a){a=t,o=n,l.push(T(t,n));var r=s[t]||(s[t]=Object.create(null));r[n]||(r[n]=[])}})),r.pending.forEach((function(e){var t=e.provider,n=e.prefix,r=e.name,i=T(t,n),a=i.pendingIcons||(i.pendingIcons=new Set);a.has(r)||(a.add(r),s[t][n].push(r))})),l.forEach((function(e){var t=e.provider,n=e.prefix;s[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((function(){e.iconsQueueFlag=!1;var t,n=e.provider,r=e.prefix,i=e.iconsToLoad;delete e.iconsToLoad,i&&(t=G(n))&&t.prepare(n,r,i).forEach((function(t){ae(n,t,(function(n,r){if("object"!==typeof n){if(404!==r)return;t.icons.forEach((function(t){e.missing.add(t)}))}else try{var i=A(e,n);if(!i.length)return;var a=e.pendingIcons;a&&i.forEach((function(e){a.delete(e)})),Se(e,n)}catch(qe){console.error(qe)}Ce(e)}))}))})))}(e,s[t][n])})),t?function(e,t,n){var r=J++,i=Q.bind(null,n,r);if(!t.pending.length)return i;var a={id:r,icons:t,callback:e,abort:i};return n.forEach((function(e){(e.loaderCallbacks||(e.loaderCallbacks=[])).push(a)})),i}(t,r,l):we};var Ae=/[\s,]+/;function ke(e,t){t.split(Ae).forEach((function(t){switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function De(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.replace(/^-?[0-9.]*/,"");function r(e){for(;e<0;)e+=4;return e%4}if(""===n){var i=parseInt(e);return isNaN(i)?0:r(i)}if(n!==e){var a=0;switch(n){case"%":a=25;break;case"deg":a=90}if(a){var o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o/=a)%1===0?r(o):0}}return t}var Oe=(0,r.Z)((0,r.Z)({},N),{},{inline:!1}),Ie={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Re={display:"inline-block"},Ne={backgroundColor:"currentColor"},Me={backgroundColor:"transparent"},Pe={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Le={webkitMask:Ne,mask:Ne,background:Me};for(var Fe in Le){var Be=Le[Fe];for(var Ze in Pe)Be[Fe+Ze]=Pe[Ze]}var ze=(0,r.Z)((0,r.Z)({},Oe),{},{inline:!0});function Ue(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}var je=function(e,t,n,i){var a=n?ze:Oe,o=function(e,t){var n=(0,r.Z)({},e);for(var i in t){var a=t[i],o=typeof a;i in R?(null===a||a&&("string"===o||"number"===o))&&(n[i]=a):o===typeof n[i]&&(n[i]="rotate"===i?a%4:a)}return n}(a,t),l=t.mode||"svg",u={},c=t.style||{},d=(0,r.Z)((0,r.Z)({},"svg"===l?Ie:{}),{},{ref:i});for(var f in t){var p=t[f];if(void 0!==p)switch(f){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":o[f]=!0===p||"true"===p||1===p;break;case"flip":"string"===typeof p&&ke(o,p);break;case"color":u.color=p;break;case"rotate":"string"===typeof p?o[f]=De(p):"number"===typeof p&&(o[f]=p);break;case"ariaHidden":case"aria-hidden":!0!==p&&"true"!==p&&delete d["aria-hidden"];break;default:void 0===a[f]&&(d[f]=p)}}var h=function(e,t){var n=(0,r.Z)((0,r.Z)({},v),e),i=(0,r.Z)((0,r.Z)({},N),t),a={left:n.left,top:n.top,width:n.width,height:n.height},o=n.body;[n,i].forEach((function(e){var t,n=[],r=e.hFlip,i=e.vFlip,s=e.rotate;switch(r?i?s+=2:(n.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),n.push("scale(-1 1)"),a.top=a.left=0):i&&(n.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),n.push("scale(1 -1)"),a.top=a.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4){case 1:t=a.height/2+a.top,n.unshift("rotate(90 "+t.toString()+" "+t.toString()+")");break;case 2:n.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:t=a.width/2+a.left,n.unshift("rotate(-90 "+t.toString()+" "+t.toString()+")")}s%2===1&&(a.left!==a.top&&(t=a.left,a.left=a.top,a.top=t),a.width!==a.height&&(t=a.width,a.width=a.height,a.height=t)),n.length&&(o=''+o+"")}));var s,l,u=i.width,c=i.height,d=a.width,f=a.height;return null===u?s=L(l=null===c?"1em":"auto"===c?f:c,d/f):(s="auto"===u?d:u,l=null===c?L(s,f/d):"auto"===c?f:c),{attributes:{width:s.toString(),height:l.toString(),viewBox:a.left.toString()+" "+a.top.toString()+" "+d.toString()+" "+f.toString()},body:o}}(e,o),m=h.attributes;if(o.inline&&(u.verticalAlign="-0.125em"),"svg"===l){d.style=(0,r.Z)((0,r.Z)({},u),c),Object.assign(d,m);var g=0,y=t.id;return"string"===typeof y&&(y=y.replace(/-/g,"_")),d.dangerouslySetInnerHTML={__html:z(h.body,y?function(){return y+"ID"+g++}:"iconifyReact")},s.createElement("svg",d)}var _,b=e.body,x=e.width,E=e.height,S="mask"===l||"bg"!==l&&-1!==b.indexOf("currentColor"),w=function(e,t){var n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(var r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}(b,(0,r.Z)((0,r.Z)({},m),{},{width:x+"",height:E+""}));return d.style=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},u),{},{"--svg":(_=w,'url("data:image/svg+xml,'+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}(_)+'")'),width:Ue(m.width),height:Ue(m.height)},Re),S?Ne:Me),c),s.createElement("span",d)};if(D(!0),j("",$),"undefined"!==typeof document&&"undefined"!==typeof window){Ee();var Ge=window;if(void 0!==Ge.IconifyPreload){var Ve=Ge.IconifyPreload,qe="Invalid IconifyPreload syntax.";"object"===typeof Ve&&null!==Ve&&(Ve instanceof Array?Ve:[Ve]).forEach((function(e){try{("object"!==typeof e||null===e||e instanceof Array||"object"!==typeof e.icons||"string"!==typeof e.prefix||!function(e,t){if("object"!==typeof e)return!1;if("string"!==typeof t&&(t=e.provider||""),k&&!t&&!e.prefix){var n=!1;return w(e)&&(e.prefix="",x(e,(function(e,t){t&&I(e,t)&&(n=!0)}))),n}var r=e.prefix;return!!h({provider:t,prefix:r,name:"a"})&&!!A(T(t,r),e)}(e))&&console.error(qe)}catch(t){console.error(qe)}}))}if(void 0!==Ge.IconifyProviders){var He=Ge.IconifyProviders;if("object"===typeof He&&null!==He)for(var Ye in He){var We="IconifyProviders["+Ye+"] is invalid.";try{var Xe=He[Ye];if("object"!==typeof Xe||!Xe||void 0===Xe.resources)continue;W(Ye,Xe)||console.error(We)}catch(rt){console.error(We)}}}}var Ke=function(e){(0,c.Z)(n,e);var t=(0,d.Z)(n);function n(e){var r;return(0,l.Z)(this,n),(r=t.call(this,e)).state={icon:null},r}return(0,u.Z)(n,[{key:"_abortLoading",value:function(){this._loading&&(this._loading.abort(),this._loading=null)}},{key:"_setData",value:function(e){this.state.icon!==e&&this.setState({icon:e})}},{key:"_checkIcon",value:function(e){var t,n=this.state,r=this.props.icon;if("object"===typeof r&&null!==r&&"string"===typeof r.body)return this._icon="",this._abortLoading(),void((e||null===n.icon)&&this._setData({data:r}));if("string"!==typeof r||null===(t=p(r,!1,!0)))return this._abortLoading(),void this._setData(null);var i=O(t);if(i){if(this._icon!==r||null===n.icon){this._abortLoading(),this._icon=r;var a=["iconify"];""!==t.prefix&&a.push("iconify--"+t.prefix),""!==t.provider&&a.push("iconify--"+t.provider),this._setData({data:i,classes:a}),this.props.onLoad&&this.props.onLoad(r)}}else this._loading&&this._loading.name===r||(this._abortLoading(),this._icon="",this._setData(null),null!==i&&(this._loading={name:r,abort:Te([t],this._checkIcon.bind(this,!1))}))}},{key:"componentDidMount",value:function(){this._checkIcon(!1)}},{key:"componentDidUpdate",value:function(e){e.icon!==this.props.icon&&this._checkIcon(!0)}},{key:"componentWillUnmount",value:function(){this._abortLoading()}},{key:"render",value:function(){var e=this.props,t=this.state.icon;if(null===t)return e.children?e.children:s.createElement("span",{});var n=e;return t.classes&&(n=(0,r.Z)((0,r.Z)({},e),{},{className:("string"===typeof e.className?e.className+" ":"")+t.classes.join(" ")})),je((0,r.Z)((0,r.Z)({},v),t.data),n,e._inline,e._ref)}}]),n}(s.Component),$e=s.forwardRef((function(e,t){var n=(0,r.Z)((0,r.Z)({},e),{},{_ref:t,_inline:!1});return s.createElement(Ke,n)})),Qe=(s.forwardRef((function(e,t){var n=(0,r.Z)((0,r.Z)({},e),{},{_ref:t,_inline:!0});return s.createElement(Ke,n)})),n(16157)),Je=n(46417),et=["icon","width","sx"],tt=(0,s.forwardRef)((function(e,t){var n=e.icon,a=e.width,o=void 0===a?20:a,s=e.sx,l=(0,i.Z)(e,et);return(0,Je.jsx)(Qe.Z,(0,r.Z)({ref:t,component:$e,icon:n,sx:(0,r.Z)({width:o,height:o},s)},l))}));tt.propTypes={sx:o().object,width:o().oneOfType([o().number,o().string]),icon:o().oneOfType([o().element,o().string])};var nt=tt},59063:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(1413),i=n(45987),a=n(47313),o=n(28831),s=n(16157);function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1/1";return{"4/3":"calc(100% / 4 * 3)","3/4":"calc(100% / 3 * 4)","6/4":"calc(100% / 6 * 4)","4/6":"calc(100% / 4 * 6)","16/9":"calc(100% / 16 * 9)","9/16":"calc(100% / 9 * 16)","21/9":"calc(100% / 21 * 9)","9/21":"calc(100% / 9 * 21)","1/1":"100%"}[e]}var u=n(46417),c=["ratio","disabledEffect","effect","sx"],d=(0,a.forwardRef)((function(e,t){var n=e.ratio,a=e.disabledEffect,d=void 0!==a&&a,f=e.effect,p=void 0===f?"blur":f,h=e.sx,m=(0,i.Z)(e,c),g=(0,u.jsx)(s.Z,(0,r.Z)({component:o.LazyLoadImage,wrapperClassName:"wrapper",effect:d?void 0:p,placeholderSrc:d?"/assets/transparent.png":"/assets/placeholder.svg",sx:{width:1,height:1,objectFit:"cover"}},m));return n?(0,u.jsx)(s.Z,{ref:t,component:"span",sx:(0,r.Z)({width:1,lineHeight:1,display:"block",overflow:"hidden",position:"relative",pt:l(n),"& .wrapper":{top:0,left:0,width:1,height:1,position:"absolute",backgroundSize:"cover !important"}},h),children:g}):(0,u.jsx)(s.Z,{ref:t,component:"span",sx:(0,r.Z)({lineHeight:1,display:"block",overflow:"hidden",position:"relative","& .wrapper":{width:1,height:1,backgroundSize:"cover !important"}},h),children:g})}))},57632:function(e,t,n){"use strict";n.d(t,{T:function(){return c},_:function(){return f}});var r=n(1413),i=n(45987),a=n(47313),o=n(2135),s=n(16157),l=n(46417),u=["disabledLink","sx"],c=(0,a.forwardRef)((function(e,t){var n=e.disabledLink,a=void 0!==n&&n,c=e.sx,d=(0,i.Z)(e,u),f=(0,l.jsx)(s.Z,(0,r.Z)((0,r.Z)({ref:t,component:"div",sx:(0,r.Z)({height:40,display:"inline-flex"},c)},d),{},{children:(0,l.jsx)("img",{src:"/logo/Distinct_Logo_1.jpg",alt:""})}));return a?(0,l.jsx)(l.Fragment,{children:f}):(0,l.jsx)("a",{href:"",target:"_blank",rel:"noreferrer",component:o.rU,sx:{display:"contents"},children:f})})),d=["disabledLink","sx"],f=(0,a.forwardRef)((function(e,t){var n=e.disabledLink,a=void 0!==n&&n,u=e.sx,c=(0,i.Z)(e,d),f=(0,l.jsx)(s.Z,(0,r.Z)((0,r.Z)({ref:t,component:"div",sx:(0,r.Z)({height:40,display:"inline-flex"},u)},c),{},{children:(0,l.jsx)("img",{src:"/logo/small_logo.jpg",alt:""})}));return a?(0,l.jsx)(l.Fragment,{children:f}):(0,l.jsx)("a",{href:"https://www.raxaglobalfinances.org/",target:"_blank",rel:"noreferrer",component:o.rU,sx:{display:"contents"},children:f})}))},22608:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(1413),i=n(45987),a=n(44906);var o=n(4942),s=n(64164),l=n(17551),u=(0,s.ZP)("span")((function(e){var t=e.arrow,n=e.theme,i="solid 1px ".concat((0,l.Fq)(n.palette.grey[500],.12)),a={borderRadius:"0 0 3px 0",top:-6,borderBottom:i,borderRight:i},s={borderRadius:"3px 0 0 0",bottom:-6,borderTop:i,borderLeft:i},u={borderRadius:"0 3px 0 0",left:-6,borderTop:i,borderRight:i},c={borderRadius:"0 0 0 3px",right:-6,borderBottom:i,borderLeft:i};return(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,o.Z)({display:"none"},n.breakpoints.up("sm"),{zIndex:1,width:12,height:12,content:"''",display:"block",position:"absolute",transform:"rotate(-135deg)",background:n.palette.background.paper}),"top-left"===t&&(0,r.Z)((0,r.Z)({},a),{},{left:20})),"top-center"===t&&(0,r.Z)((0,r.Z)({},a),{},{left:0,right:0,margin:"auto"})),"top-right"===t&&(0,r.Z)((0,r.Z)({},a),{},{right:20})),"bottom-left"===t&&(0,r.Z)((0,r.Z)({},s),{},{left:20})),"bottom-center"===t&&(0,r.Z)((0,r.Z)({},s),{},{left:0,right:0,margin:"auto"})),"bottom-right"===t&&(0,r.Z)((0,r.Z)({},s),{},{right:20})),"left-top"===t&&(0,r.Z)((0,r.Z)({},u),{},{top:20})),"left-center"===t&&(0,r.Z)((0,r.Z)({},u),{},{top:0,bottom:0,margin:"auto"})),"left-bottom"===t&&(0,r.Z)((0,r.Z)({},u),{},{bottom:20})),"right-top"===t&&(0,r.Z)((0,r.Z)({},c),{},{top:20})),"right-center"===t&&(0,r.Z)((0,r.Z)({},c),{},{top:0,bottom:0,margin:"auto"})),"right-bottom"===t&&(0,r.Z)((0,r.Z)({},c),{},{bottom:20}))})),c=n(46417),d=["open","children","arrow","disabledArrow","sx"];function f(e){var t=e.open,n=e.children,o=e.arrow,s=void 0===o?"top-right":o,l=e.disabledArrow,f=e.sx,p=(0,i.Z)(e,d),h=function(e){var t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}}}return t}(s),m=h.style,g=h.anchorOrigin,v=h.transformOrigin;return(0,c.jsxs)(a.ZP,(0,r.Z)((0,r.Z)({open:Boolean(t),anchorEl:t,anchorOrigin:g,transformOrigin:v,PaperProps:{sx:(0,r.Z)((0,r.Z)({p:1,width:"auto",overflow:"inherit"},m),{},{"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}}},f)}},p),{},{children:[!l&&(0,c.jsx)(u,{arrow:s}),n]}))}},46983:function(e,t,n){"use strict";n.d(t,{EM:function(){return oe},Hg:function(){return L},Mr:function(){return K}});var r=n(1413),i=n(45987),a=n(47313),o=n(62463),s=n(16157),l=n(29439),u=n(58467),c=n(294);function d(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=(0,u.TH)(),r=n.pathname,i=!!e&&!!(0,c.LX)({path:e,end:!0},r),a=!!e&&!!(0,c.LX)({path:e,end:!1},r);return{active:t?a:i,isExternalLink:e.includes("http")}}var f=n(64164),p=n(17551),h=n(8224),m=n(31929),g=n(44906),v=n(50769),y=n(36287),_=(0,f.ZP)(h.Z,{shouldForwardProp:function(e){return"active"!==e&&"open"!==e}})((function(e){var t=e.active,n=e.disabled,i=e.open,a=e.depth,o=e.theme,s="light"===o.palette.mode,l=1!==a,u=(0,r.Z)({color:o.palette.primary.main,backgroundColor:(0,p.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity)},!s&&{color:o.palette.primary.light}),c={color:o.palette.text.primary,backgroundColor:"transparent"},d={color:o.palette.text.primary,backgroundColor:o.palette.action.hover};return(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({flexDirection:"column",textTransform:"capitalize",padding:o.spacing(1,0,.5,0),color:o.palette.text.secondary,borderRadius:o.shape.borderRadius,"&:hover":d},l&&{flexDirection:"row",padding:o.spacing(1)}),t&&(0,r.Z)((0,r.Z)({},u),{},{"&:hover":(0,r.Z)({},u)})),l&&t&&(0,r.Z)((0,r.Z)({},c),{},{"&:hover":(0,r.Z)({},c)})),i&&!t&&d),n&&{"&.Mui-disabled":{opacity:.64}})})),b=(0,f.ZP)(m.Z)({marginRight:0,marginBottom:4,width:y.Wm.NAV_ITEM_MINI,height:y.Wm.NAV_ITEM_MINI}),x=(0,f.ZP)(g.ZP)((function(e){var t=e.theme;return{pointerEvents:"none","& .MuiPopover-paper":(0,r.Z)({width:160,pointerEvents:"auto",padding:t.spacing(1),marginTop:t.spacing(.5),boxShadow:t.customShadows.dropdown,borderRadius:1.5*Number(t.shape.borderRadius)},(0,v.Ls)({color:t.palette.background.default}))}})),E=n(2135),S=n(25685),w=n(83719),C=n(77449),T=n(82950),A=n(35107),k=n(8730),D=n(46417),O=["item","depth","open","active","isExternalLink"],I=(0,a.forwardRef)((function(e,t){var n=e.item,a=e.depth,o=e.open,s=e.active,l=e.isExternalLink,u=(0,i.Z)(e,O),c=(0,T.nt)().translate,d=n.title,f=n.path,p=n.icon,h=n.children,m=n.disabled,g=n.caption,v=n.roles,y=1!==a,x=(0,D.jsxs)(_,(0,r.Z)((0,r.Z)({ref:t,open:o,depth:a,active:s,disabled:m},u),{},{children:[p&&(0,D.jsx)(b,{children:p}),(0,D.jsx)(S.Z,{primary:c(d),primaryTypographyProps:{noWrap:!0,sx:(0,r.Z)((0,r.Z)({width:72,fontSize:10,lineHeight:"16px",textAlign:"center"},s&&{fontWeight:"fontWeightMedium"}),y&&{fontSize:14,width:"auto",textAlign:"left"})}}),g&&(0,D.jsx)(w.Z,{title:c(g),arrow:!0,placement:"right",children:(0,D.jsx)(k.Z,{icon:"eva:info-outline",width:16,sx:{top:11,left:6,position:"absolute"}})}),!!h&&(0,D.jsx)(k.Z,{width:16,icon:"eva:chevron-right-fill",sx:{top:11,right:6,position:"absolute"}})]}));return(0,D.jsxs)(A.Z,{roles:v,children:[" ",l?(0,D.jsx)(C.Z,{href:f,target:"_blank",rel:"noopener",underline:"none",children:x}):(0,D.jsx)(C.Z,{component:E.rU,to:f,underline:"none",children:x})," "]})}));function R(e){var t=e.data,n=e.depth,r=e.hasChild,i=(0,a.useRef)(null),o=(0,u.TH)().pathname,s=d(t.path),c=s.active,f=s.isExternalLink,p=(0,a.useState)(!1),h=(0,l.Z)(p,2),m=h[0],g=h[1];(0,a.useEffect)((function(){m&&y()}),[o]),(0,a.useEffect)((function(){document.body.style.overflow=""}),[m]);var v=function(){g(!0)},y=function(){g(!1)};return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(I,{ref:i,item:t,depth:n,open:m,active:c,isExternalLink:f,onMouseEnter:v,onMouseLeave:y}),r&&(0,D.jsx)(x,{open:m,anchorEl:i.current,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:v,onMouseLeave:y},children:(0,D.jsx)(N,{data:t.children,depth:n})})]})}function N(e){var t=e.data,n=e.depth;return(0,D.jsx)(D.Fragment,{children:t.map((function(e){return(0,D.jsx)(R,{data:e,depth:n+1,hasChild:!!e.children},e.title+e.path)}))})}var M=["data","sx"];function P(e){var t=e.data,n=e.sx,a=(0,i.Z)(e,M);return(0,D.jsx)(o.Z,(0,r.Z)((0,r.Z)({spacing:.5,alignItems:"center",sx:(0,r.Z)({px:.75},n)},a),{},{children:t.map((function(e){return(0,D.jsx)(F,{items:e.items},e.subheader)}))}))}var L=(0,a.memo)(P);function F(e){var t=e.items;return(0,D.jsxs)(D.Fragment,{children:[t.map((function(e){return(0,D.jsx)(R,{data:e,depth:1,hasChild:!!e.children},e.title+e.path)})),(0,D.jsx)(s.Z,{sx:{width:24,height:"1px",bgcolor:"divider",my:"8px !important"}})]})}var B=n(35672),Z=n(37741),z=(0,f.ZP)(h.Z,{shouldForwardProp:function(e){return"active"!==e&&"caption"!==e}})((function(e){var t=e.active,n=e.disabled,i=e.depth,a=e.caption,o=e.theme,s="light"===o.palette.mode,l=1!==i,u=(0,r.Z)({color:o.palette.primary.main,backgroundColor:(0,p.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity)},!s&&{color:o.palette.primary.light}),c={color:o.palette.text.primary,backgroundColor:"transparent"};return(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({position:"relative",textTransform:"capitalize",paddingLeft:o.spacing(2),paddingRight:o.spacing(1.5),marginBottom:o.spacing(.5),color:o.palette.text.secondary,borderRadius:o.shape.borderRadius,height:y.w$.H_DASHBOARD_ITEM},l&&(0,r.Z)((0,r.Z)({height:y.w$.H_DASHBOARD_ITEM_SUB},i>2&&{paddingLeft:o.spacing(i)}),a&&{height:y.w$.H_DASHBOARD_ITEM})),t&&(0,r.Z)((0,r.Z)({},u),{},{"&:hover":(0,r.Z)({},u)})),l&&t&&(0,r.Z)((0,r.Z)({},c),{},{"&:hover":(0,r.Z)({},c)})),n&&{"&.Mui-disabled":{opacity:.64}})})),U=(0,f.ZP)(m.Z)({display:"flex",alignItems:"center",justifyContent:"center",width:y.Wm.NAV_ITEM,height:y.Wm.NAV_ITEM}),j=(0,f.ZP)("span",{shouldForwardProp:function(e){return"active"!==e}})((function(e){var t=e.active,n=e.theme;return(0,r.Z)({width:4,height:4,borderRadius:"50%",backgroundColor:n.palette.text.disabled,transition:n.transitions.create("transform",{duration:n.transitions.duration.shorter})},t&&{transform:"scale(2)",backgroundColor:n.palette.primary.main})})),G=(0,f.ZP)(Z.Z)((function(e){var t=e.theme;return(0,r.Z)((0,r.Z)({},t.typography.overline),{},{fontSize:11,paddingTop:t.spacing(3),paddingBottom:t.spacing(1),color:t.palette.text.secondary})})),V=n(28326),q=["item","depth","open","active","isExternalLink"];function H(e){var t=e.item,n=e.depth,a=e.open,o=e.active,l=e.isExternalLink,u=(0,i.Z)(e,q),c=(0,T.nt)().translate,d=t.title,f=t.path,p=t.icon,h=t.info,m=t.children,g=t.disabled,v=t.caption,y=t.roles,_=1!==n,b=(0,D.jsxs)(z,(0,r.Z)((0,r.Z)({depth:n,active:o,disabled:g,caption:!!v},u),{},{children:[p&&(0,D.jsx)(U,{children:p}),_&&(0,D.jsx)(U,{children:(0,D.jsx)(j,{active:o&&_})}),(0,D.jsx)(S.Z,{primary:c(d),secondary:v&&(0,D.jsx)(w.Z,{title:c(v),placement:"top-start",children:(0,D.jsx)("span",{children:c(v)})}),primaryTypographyProps:{noWrap:!0,component:"span",variant:o?"subtitle2":"body2"},secondaryTypographyProps:{noWrap:!0,variant:"caption"}}),h&&(0,D.jsx)(s.Z,{component:"span",sx:{lineHeight:0},children:h}),!!m&&(0,D.jsx)(k.Z,{width:16,icon:a?"eva:arrow-ios-downward-fill":"eva:arrow-ios-forward-fill",sx:{ml:1,flexShrink:0}})]}));return(0,D.jsxs)(A.Z,{roles:y,children:[" ",l?(0,D.jsx)(C.Z,{href:f,target:"_blank",rel:"noopener",underline:"none",children:b}):m?b:(0,D.jsx)(C.Z,{component:E.rU,to:f,underline:"none",children:b})," "]})}function Y(e){var t=e.data,n=e.depth,r=e.hasChild,i=(0,u.TH)().pathname,o=d(t.path),s=o.active,c=o.isExternalLink,f=(0,a.useState)(s),p=(0,l.Z)(f,2),h=p[0],m=p[1];(0,a.useEffect)((function(){s||g()}),[i]);var g=function(){m(!1)};return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(H,{item:t,depth:n,open:h,active:s,isExternalLink:c,onClick:function(){m(!h)}}),r&&(0,D.jsx)(V.Z,{in:h,unmountOnExit:!0,children:(0,D.jsx)(W,{data:t.children,depth:n})})]})}function W(e){var t=e.data,n=e.depth;return(0,D.jsx)(D.Fragment,{children:t.map((function(e){return(0,D.jsx)(Y,{data:e,depth:n+1,hasChild:!!e.children},e.title+e.path)}))})}var X=["data","sx"];function K(e){var t=e.data,n=e.sx,a=(0,i.Z)(e,X),s=(0,T.nt)().translate;return(0,D.jsx)(o.Z,(0,r.Z)((0,r.Z)({sx:n},a),{},{children:t.map((function(e){var t=e.subheader||e.items[0].title;return(0,D.jsxs)(B.Z,{disablePadding:!0,sx:{px:2},children:[e.subheader&&(0,D.jsx)(G,{disableSticky:!0,children:s(e.subheader)}),e.items.map((function(e){return(0,D.jsx)(Y,{data:e,depth:1,hasChild:!!e.children},e.title+e.path)}))]},t)}))}))}var $=(0,f.ZP)(h.Z,{shouldForwardProp:function(e){return"active"!==e&&"open"!==e}})((function(e){var t=e.active,n=e.disabled,i=e.open,a=e.depth,o=e.theme,s="light"===o.palette.mode,l=1!==a,u=(0,r.Z)({color:o.palette.primary.main,backgroundColor:(0,p.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity)},!s&&{color:o.palette.primary.light}),c={color:o.palette.text.primary,backgroundColor:"transparent"},d={color:o.palette.text.primary,backgroundColor:o.palette.action.hover};return(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({flexShrink:0,display:"inline-flex",textTransform:"capitalize",padding:o.spacing(0,.75),color:o.palette.text.secondary,borderRadius:o.shape.borderRadius,height:y.w$.H_DASHBOARD_ITEM_HORIZONTAL,"&:hover":d},l&&{width:"100%",margin:0,paddingRight:0,paddingLeft:o.spacing(1)}),t&&(0,r.Z)((0,r.Z)({},u),{},{"&:hover":(0,r.Z)({},u)})),l&&t&&(0,r.Z)((0,r.Z)({},c),{},{"&:hover":(0,r.Z)({},c)})),i&&!t&&d),n&&{"&.Mui-disabled":{opacity:.64}})})),Q=(0,f.ZP)(m.Z)({marginRight:8,flexShrink:0,width:y.Wm.NAV_ITEM_HORIZONTAL,height:y.Wm.NAV_ITEM_HORIZONTAL}),J=(0,f.ZP)(g.ZP)((function(e){var t=e.theme;return{pointerEvents:"none","& .MuiPopover-paper":(0,r.Z)({width:160,pointerEvents:"auto",padding:t.spacing(1),marginTop:t.spacing(.5),boxShadow:t.customShadows.dropdown,borderRadius:1.5*Number(t.shape.borderRadius)},(0,v.Ls)({color:t.palette.background.default}))}})),ee=["item","depth","open","active","isExternalLink"],te=(0,a.forwardRef)((function(e,t){var n=e.item,a=e.depth,o=e.open,l=e.active,u=e.isExternalLink,c=(0,i.Z)(e,ee),d=(0,T.nt)().translate,f=n.title,p=n.path,h=n.icon,m=n.info,g=n.children,v=n.disabled,y=n.caption,_=n.roles,b=1!==a,x=(0,D.jsxs)($,(0,r.Z)((0,r.Z)({ref:t,open:o,depth:a,active:l,disabled:v},c),{},{children:[h&&(0,D.jsx)(Q,{children:h}),(0,D.jsx)(S.Z,{primary:d(f),primaryTypographyProps:{noWrap:!0,component:"span",variant:l?"subtitle2":"body2"}}),m&&(0,D.jsx)(s.Z,{component:"span",sx:{ml:1,lineHeight:0},children:m}),y&&(0,D.jsx)(w.Z,{title:d(y),arrow:!0,children:(0,D.jsx)(s.Z,{component:"span",sx:{ml:.5,lineHeight:0},children:(0,D.jsx)(k.Z,{icon:"eva:info-outline",width:16})})}),!!g&&(0,D.jsx)(k.Z,{icon:b?"eva:chevron-right-fill":"eva:chevron-down-fill",width:16,sx:{ml:.5,flexShrink:0}})]}));return(0,D.jsxs)(A.Z,{roles:_,children:[" ",u?(0,D.jsx)(C.Z,{href:p,target:"_blank",rel:"noopener",underline:"none",children:x}):(0,D.jsx)(C.Z,{to:p,component:E.rU,underline:"none",children:x})," "]})}));function ne(e){var t=e.data,n=e.depth,r=e.hasChild,i=(0,a.useRef)(null),o=(0,u.TH)().pathname,s=d(t.path),c=s.active,f=s.isExternalLink,p=(0,a.useState)(!1),h=(0,l.Z)(p,2),m=h[0],g=h[1];(0,a.useEffect)((function(){m&&y()}),[o]),(0,a.useEffect)((function(){document.body.style.overflow=""}),[m]);var v=function(){g(!0)},y=function(){g(!1)};return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(te,{ref:i,item:t,depth:n,open:m,active:c,isExternalLink:f,onMouseEnter:v,onMouseLeave:y}),r&&(0,D.jsx)(J,{open:m,anchorEl:i.current,anchorOrigin:1===n?{vertical:"bottom",horizontal:"left"}:{vertical:"center",horizontal:"right"},transformOrigin:1===n?{vertical:"top",horizontal:"left"}:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:v,onMouseLeave:y},children:(0,D.jsx)(re,{data:t.children,depth:n})})]})}function re(e){var t=e.data,n=e.depth;return(0,D.jsx)(D.Fragment,{children:t.map((function(e){return(0,D.jsx)(ne,{data:e,depth:n+1,hasChild:!!e.children},e.title+e.path)}))})}var ie=["data","sx"];function ae(e){var t=e.data,n=e.sx,a=(0,i.Z)(e,ie);return(0,D.jsx)(o.Z,(0,r.Z)((0,r.Z)({direction:"row",spacing:1,sx:(0,r.Z)((0,r.Z)({mx:"auto"},v.U3),n)},a),{},{children:t.map((function(e){return(0,D.jsx)(se,{items:e.items},e.subheader)}))}))}var oe=(0,a.memo)(ae);function se(e){var t=e.items;return(0,D.jsx)(D.Fragment,{children:t.map((function(e){return(0,D.jsx)(ne,{data:e,depth:1,hasChild:!!e.children},e.title+e.path)}))})}},32292:function(e,t,n){"use strict";n.d(t,{Z:function(){return V}});var r=n(46417);var i=n(29439),a=n(1413),o=n(47313),s=n(28566),l=n(42669),u=n(16157),c=n(97148),d=n(67881),f=n(605),p=n(79136),h=n(69791),m=n(4942),g=n(63366),v=n(87462),y=n(83061),_=n(13019),b=n(21921),x=n(32298),E=n(96694),S=n(14614),w=n(39028),C=n(9456),T=n(54929),A=n(86886),k=["component","direction","spacing","divider","children","className"],D=(0,C.Z)(),O=(0,E.Z)("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}});function I(e){return(0,S.Z)({props:e,name:"MuiStack",defaultTheme:D})}function R(e,t){var n=o.Children.toArray(e).filter(Boolean);return n.reduce((function(e,r,i){return e.push(r),i0?o[n[t-1]]:"column";o[e]=r}}));r=(0,_.Z)(r,(0,T.k9)({theme:n},s,(function(e,n){return{"& > :not(style) + :not(style)":(0,m.Z)({margin:0},"margin".concat((r=n?o[n]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[r])),(0,A.NA)(i,e))};var r})))}return r=(0,T.dt)(n.breakpoints,r)};var M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createStyledComponent,n=void 0===t?O:t,i=e.useThemeProps,a=void 0===i?I:i,s=e.componentName,l=void 0===s?"MuiStack":s,u=function(){return(0,b.Z)({root:["root"]},(function(e){return(0,x.Z)(l,e)}),{})},c=n(N),d=o.forwardRef((function(e,t){var n=a(e),i=(0,w.Z)(n),o=i.component,s=void 0===o?"div":o,l=i.direction,d=void 0===l?"column":l,f=i.spacing,p=void 0===f?0:f,h=i.divider,m=i.children,_=i.className,b=(0,g.Z)(i,k),x={direction:d,spacing:p},E=u();return(0,r.jsx)(c,(0,v.Z)({as:s,ownerState:x,ref:t,className:(0,y.Z)(E.root,_)},b,{children:h?R(m,h):m}))}));return d}(),P=M,L=n(12865),F=n(95162),B=n(21365),Z=n(5239),z=n(59776),U=n(78546);function j(e,t){return Math.random()*(t-e)+e}function G(e){return(0,r.jsxs)(u.Z,{sx:{display:"flex",alignItems:"center"},children:[(0,r.jsx)(u.Z,{sx:{width:"100%",mr:1},children:(0,r.jsx)(s.Z,(0,a.Z)({variant:"determinate"},e))}),(0,r.jsx)(u.Z,{sx:{minWidth:35},children:(0,r.jsx)(l.Z,{variant:"body2",color:"text.secondary",children:"".concat(Math.round(e.value),"%")})})]})}function V(e){var t=e.range,n=e.status,a=e.onSuccess,s=e.onFailure,m=e.amount,g=e.senderDetails,v=(0,L.E)().updateUserBalance,y=o.useState(1),_=(0,i.Z)(y,2),b=_[0],x=_[1],E=o.useState("Confirming transfer details"),S=(0,i.Z)(E,2),w=S[0],C=S[1],T=o.useState(!1),A=(0,i.Z)(T,2),k=A[0],D=A[1],O=o.useState(""),I=(0,i.Z)(O,2),R=I[0],N=I[1],M=o.useState(""),V=(0,i.Z)(M,2),q=V[0],H=V[1],Y=o.useState(!1),W=(0,i.Z)(Y,2),X=W[0],K=W[1],$=["1234","5678","9012"],Q=Math.floor(j(2,4)),J=Math.floor(j(200,400));o.useEffect((function(){if(!X){var e=setInterval((function(){x(n?function(e){return e>=100?100:e+Q}:function(e){return e>=t?t:e+Q})}),J);return function(){clearInterval(e)}}}),[X]);return o.useEffect((function(){if(b>=10&&b<13&&(D(!0),K(!0)),n){if(b>40&&C("Initiating transfer"),b>=100){C("Transfer successful"),a(),v({amount:m,status:"success"}),console.log({senderDetails:g});var e={id:g.uid,name:B.ZP.name.fullName(2),avatar:B.ZP.image.avatar(8),type:"realtime",message:g.description,category:"Transaction",date:Date.now(),status:n,amount:g.amount,accountNumber:g.accountNumber};(0,Z.WI)((0,z._X)(e)),(0,Z.WI)((0,U.f1)())}}else if(b>40&&C("Initiating transfer"),b>=t){var r={id:(0,F.Z)(),name:B.ZP.name.fullName(2),avatar:B.ZP.image.avatar(8),type:"realtime",message:g.description,category:"Transaction",date:Date.now(),status:n,userid:g.uid,amount:g.amount,accountNumber:g.accountNumber};(0,Z.WI)((0,z._X)(r)),(0,Z.WI)((0,U.f1)()),C(""),s()}}),[b]),(0,r.jsxs)(u.Z,{sx:{padding:2},children:[(0,r.jsx)(c.Z,{open:k,onClose:function(){return D(!1)},children:(0,r.jsxs)(u.Z,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:300,bgcolor:"background.paper",p:4,boxShadow:24,borderRadius:2},children:[(0,r.jsx)(l.Z,{variant:"h6",gutterBottom:!0,children:"Enter Transaction PIN"}),(0,r.jsx)(d.Z,{label:"PIN",type:"password",fullWidth:!0,value:R,onChange:function(e){return N(e.target.value)},error:!!q,helperText:q,sx:{mb:2}}),(0,r.jsx)(f.Z,{variant:"contained",fullWidth:!0,onClick:function(){$.includes(R)?(D(!1),H(""),K(!1)):H("Invalid PIN. Please try again.")},children:"Submit"})]})}),n?(0,r.jsxs)("div",{children:[b<100&&(0,r.jsx)(p.Z,{severity:"info",children:w}),(0,r.jsxs)(P,{spacing:1,children:[(0,r.jsx)(h.Z,{direction:"up",in:100===b,mountOnEnter:!0,unmountOnExit:!0,children:(0,r.jsx)(p.Z,{severity:"success",children:"Successful"})}),(0,r.jsx)(h.Z,{direction:"up",in:100===b,mountOnEnter:!0,unmountOnExit:!0,children:(0,r.jsx)(p.Z,{severity:"success",children:"You have successfully made a transfer"})})]}),b<100&&(0,r.jsx)(G,{value:b})]}):(0,r.jsxs)("div",{children:[be?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},Z=function(){var e=0;for(B(e);g.some((function(e){return e.activeTargets.length>0}));)e=F(),B(e);return g.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"===typeof ErrorEvent?e=new ErrorEvent("error",{message:v}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=v),window.dispatchEvent(e)}(),e>0},z=[],U=function(e){if(!y){var t=0,n=document.createTextNode("");new MutationObserver((function(){return z.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),y=function(){n.textContent="".concat(t?t--:t++)}}z.push(e),y()},j=0,G={attributes:!0,characterData:!0,childList:!0,subtree:!0},V=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],q=function(e){return void 0===e&&(e=0),Date.now()+e},H=!1,Y=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!H){H=!0;var n,r=q(e);n=function(){var n=!1;try{n=Z()}finally{if(H=!1,e=r-q(),!j)return;n?t.run(1e3):e>0?t.run(e):t.start()}},U((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,G)};document.body?t():C.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),V.forEach((function(t){return C.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),V.forEach((function(t){return C.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),W=function(e){!j&&e>0&&Y.start(),!(j+=e)&&Y.stop()},X=function(){function e(e,t){this.target=e,this.observedBox=t||r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=M(this.target,this.observedBox,!0);return e=this.target,E(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),K=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},$=new WeakMap,Q=function(e,t){for(var n=0;n=0&&(i&&g.splice(g.indexOf(n),1),n.observationTargets.splice(r,1),W(-1))},e.disconnect=function(e){var t=this,n=$.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),ee=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!==typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");J.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!w(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");J.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!w(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");J.unobserve(this,e)},e.prototype.disconnect=function(){J.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),te=n(16225),ne=n.n(te);n(3167),n(4541),n(44826),n(44113);function re(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}function ie(e){return e&&e.ownerDocument?e.ownerDocument:document}var ae=null,oe=null;function se(e){if(null===ae){var t=ie(e);if("undefined"===typeof t)return ae=0;var n=t.body,r=t.createElement("div");r.classList.add("simplebar-hide-scrollbar"),n.appendChild(r);var i=r.getBoundingClientRect().right;n.removeChild(r),ae=i}return ae}ne()&&window.addEventListener("resize",(function(){oe!==window.devicePixelRatio&&(oe=window.devicePixelRatio,ae=null)}));var le=function(){function e(t,n){var r=this;this.onScroll=function(){var e=re(r.el);r.scrollXTicking||(e.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(e.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0)},this.scrollX=function(){r.axis.x.isOverflowing&&(r.showScrollbar("x"),r.positionScrollbar("x")),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&(r.showScrollbar("y"),r.positionScrollbar("y")),r.scrollYTicking=!1},this.onMouseEnter=function(){r.showScrollbar("x"),r.showScrollbar("y")},this.onMouseMove=function(e){r.mouseX=e.clientX,r.mouseY=e.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this.onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.hideScrollbars=function(){r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.track.rect)||(r.axis.y.scrollbar.el.classList.remove(r.classNames.visible),r.axis.y.isVisible=!1),r.isWithinBounds(r.axis.x.track.rect)||(r.axis.x.scrollbar.el.classList.remove(r.classNames.visible),r.axis.x.isVisible=!1)},this.onPointerEvent=function(e){var t,n;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(t=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(n=r.isWithinBounds(r.axis.y.track.rect)),(t||n)&&(e.preventDefault(),e.stopPropagation(),"mousedown"===e.type&&(t&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(e,"x"):r.onTrackClick(e,"x")),n&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(e,"y"):r.onTrackClick(e,"y"))))},this.drag=function(t){var n=r.axis[r.draggedAxis].track,i=n.rect[r.axis[r.draggedAxis].sizeAttr],a=r.axis[r.draggedAxis].scrollbar,o=r.contentWrapperEl[r.axis[r.draggedAxis].scrollSizeAttr],s=parseInt(r.elStyles[r.axis[r.draggedAxis].sizeAttr],10);t.preventDefault(),t.stopPropagation();var l=(("y"===r.draggedAxis?t.pageY:t.pageX)-n.rect[r.axis[r.draggedAxis].offsetAttr]-r.axis[r.draggedAxis].dragOffset)/(i-a.size)*(o-s);"x"===r.draggedAxis&&(l=r.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?l-(i+a.size):l,l=r.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-l:l),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=l},this.onEndDrag=function(e){var t=ie(r.el),n=re(r.el);e.preventDefault(),e.stopPropagation(),r.el.classList.remove(r.classNames.dragging),t.removeEventListener("mousemove",r.drag,!0),t.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=n.setTimeout((function(){t.removeEventListener("click",r.preventClick,!0),t.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null}))},this.preventClick=function(e){e.preventDefault(),e.stopPropagation()},this.el=t,this.minScrollbarWidth=20,this.options=Object.assign({},e.defaultOptions,n),this.classNames=Object.assign({},e.defaultOptions.classNames,this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,e.instances.has(this.el)||(this.recalculate=d()(this.recalculate.bind(this),64),this.onMouseMove=d()(this.onMouseMove.bind(this),64),this.hideScrollbars=p()(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=p()(this.onWindowResize.bind(this),64,{leading:!0}),e.getRtlHelpers=m()(e.getRtlHelpers),this.init())}e.getRtlHelpers=function(){var t=document.createElement("div");t.innerHTML='
';var n=t.firstElementChild;document.body.appendChild(n);var r=n.firstElementChild;n.scrollLeft=0;var i=e.getOffset(n),a=e.getOffset(r);n.scrollLeft=999;var o=e.getOffset(r);return{isRtlScrollingInverted:i.left!==a.left&&a.left-o.left!==0,isRtlScrollbarInverted:i.left!==a.left}},e.getOffset=function(e){var t=e.getBoundingClientRect(),n=ie(e),r=re(e);return{top:t.top+(r.pageYOffset||n.documentElement.scrollTop),left:t.left+(r.pageXOffset||n.documentElement.scrollLeft)}};var t=e.prototype;return t.init=function(){e.instances.set(this.el,this),ne()&&(this.initDOM(),this.setAccessibilityAttributes(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.initDOM=function(){var e=this;if(Array.prototype.filter.call(this.el.children,(function(t){return t.classList.contains(e.classNames.wrapper)})).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var t=document.createElement("div"),n=document.createElement("div");t.classList.add(this.classNames.track),n.classList.add(this.classNames.scrollbar),t.appendChild(n),this.axis.x.track.el=t.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=t.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},t.setAccessibilityAttributes=function(){var e=this.options.ariaLabel||"scrollable content";this.contentWrapperEl.setAttribute("tabindex","0"),this.contentWrapperEl.setAttribute("role","region"),this.contentWrapperEl.setAttribute("aria-label",e)},t.initListeners=function(){var e=this,t=re(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(t){e.el.addEventListener(t,e.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(t){e.el.addEventListener(t,e.onPointerEvent,{capture:!0,passive:!0})})),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),t.addEventListener("resize",this.onWindowResize);var n=!1,r=null,i=t.ResizeObserver||ee;this.resizeObserver=new i((function(){n&&null===r&&(r=t.requestAnimationFrame((function(){e.recalculate(),r=null})))})),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),t.requestAnimationFrame((function(){n=!0})),this.mutationObserver=new t.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},t.recalculate=function(){var e=re(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var t=this.heightAutoObserverEl.offsetHeight<=1,n=this.heightAutoObserverEl.offsetWidth<=1,r=this.contentEl.offsetWidth,i=this.contentWrapperEl.offsetWidth,a=this.elStyles.overflowX,o=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var s=this.contentEl.scrollHeight,l=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=t?"auto":"100%",this.placeholderEl.style.width=n?r+"px":"auto",this.placeholderEl.style.height=s+"px";var u=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=l>r,this.axis.y.isOverflowing=s>u,this.axis.x.isOverflowing="hidden"!==a&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==o&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var c=this.axis.x.isOverflowing?this.scrollbarWidth:0,d=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&l>i-d,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&s>u-c,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},t.getScrollbarSize=function(e){if(void 0===e&&(e="y"),!this.axis[e].isOverflowing)return 0;var t,n=this.contentEl[this.axis[e].scrollSizeAttr],r=this.axis[e].track.el[this.axis[e].offsetSizeAttr],i=r/n;return t=Math.max(~~(i*r),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(t=Math.min(t,this.options.scrollbarMaxSize)),t},t.positionScrollbar=function(t){if(void 0===t&&(t="y"),this.axis[t].isOverflowing){var n=this.contentWrapperEl[this.axis[t].scrollSizeAttr],r=this.axis[t].track.el[this.axis[t].offsetSizeAttr],i=parseInt(this.elStyles[this.axis[t].sizeAttr],10),a=this.axis[t].scrollbar,o=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],s=(o="x"===t&&this.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-o:o)/(n-i),l=~~((r-a.size)*s);l="x"===t&&this.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?l+(r-a.size):l,a.el.style.transform="x"===t?"translate3d("+l+"px, 0, 0)":"translate3d(0, "+l+"px, 0)"}},t.toggleTrackVisibility=function(e){void 0===e&&(e="y");var t=this.axis[e].track.el,n=this.axis[e].scrollbar.el;this.axis[e].isOverflowing||this.axis[e].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll"):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden"),this.axis[e].isOverflowing?n.style.display="block":n.style.display="none"},t.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},t.onMouseMoveForAxis=function(e){void 0===e&&(e="y"),this.axis[e].track.rect=this.axis[e].track.el.getBoundingClientRect(),this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[e].scrollbar.rect)?this.axis[e].scrollbar.el.classList.add(this.classNames.hover):this.axis[e].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[e].track.rect)?(this.showScrollbar(e),this.axis[e].track.el.classList.add(this.classNames.hover)):this.axis[e].track.el.classList.remove(this.classNames.hover)},t.onMouseLeaveForAxis=function(e){void 0===e&&(e="y"),this.axis[e].track.el.classList.remove(this.classNames.hover),this.axis[e].scrollbar.el.classList.remove(this.classNames.hover)},t.showScrollbar=function(e){void 0===e&&(e="y");var t=this.axis[e].scrollbar.el;this.axis[e].isVisible||(t.classList.add(this.classNames.visible),this.axis[e].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},t.onDragStart=function(e,t){void 0===t&&(t="y");var n=ie(this.el),r=re(this.el),i=this.axis[t].scrollbar,a="y"===t?e.pageY:e.pageX;this.axis[t].dragOffset=a-i.rect[this.axis[t].offsetAttr],this.draggedAxis=t,this.el.classList.add(this.classNames.dragging),n.addEventListener("mousemove",this.drag,!0),n.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(n.addEventListener("click",this.preventClick,!0),n.addEventListener("dblclick",this.preventClick,!0)):(r.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.onTrackClick=function(e,t){var n=this;if(void 0===t&&(t="y"),this.options.clickOnTrack){var r=re(this.el);this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect();var i=this.axis[t].scrollbar.rect[this.axis[t].offsetAttr],a=parseInt(this.elStyles[this.axis[t].sizeAttr],10),o=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],s=("y"===t?this.mouseY-i:this.mouseX-i)<0?-1:1,l=-1===s?o-a:o+a;!function e(){var i,a;-1===s?o>l&&(o-=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((i={})[n.axis[t].offsetAttr]=o,i)),r.requestAnimationFrame(e)):o=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.findChild=function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,(function(e){return n.call(e,t)}))[0]},e}();le.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},le.instances=new WeakMap;var ue=le;function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var me=["children","scrollableNodeProps","tag"],ge=o.forwardRef((function(e,t){var n,r=e.children,i=e.scrollableNodeProps,a=void 0===i?{}:i,s=e.tag,l=void 0===s?"div":s,u=he(e,me),c=l,d=(0,o.useRef)(),f=(0,o.useRef)(),p=(0,o.useRef)(),h={},m={},g=[];return Object.keys(u).forEach((function(e){Object.prototype.hasOwnProperty.call(ue.defaultOptions,e)?h[e]=u[e]:e.match(/data-simplebar-(.+)/)&&"data-simplebar-direction"!==e?g.push({name:e,value:u[e]}):m[e]=u[e]})),g.length&&console.warn("simplebar-react: this way of passing options is deprecated. Pass it like normal props instead:\n 'data-simplebar-auto-hide=\"false\"' \u2014> 'autoHide=\"false\"'\n "),(0,o.useEffect)((function(){var e;return d=a.ref||d,f.current&&(n=new ue(f.current,de(de(de(de({},(e=g,Array.prototype.reduce.call(e,(function(e,t){var n=t.name.match(/data-simplebar-(.+)/);if(n){var r=n[1].replace(/\W+(.)/g,(function(e,t){return t.toUpperCase()}));switch(t.value){case"true":e[r]=!0;break;case"false":e[r]=!1;break;case void 0:e[r]=!0;break;default:e[r]=t.value}}return e}),{}))),h),d&&{scrollableNode:d.current}),p.current&&{contentNode:p.current})),"function"===typeof t?t(n):t&&(t.current=n)),function(){n.unMount(),n=null,"function"===typeof t&&t(null)}}),[]),o.createElement(c,pe({ref:f,"data-simplebar":!0},m),o.createElement("div",{className:"simplebar-wrapper"},o.createElement("div",{className:"simplebar-height-auto-observer-wrapper"},o.createElement("div",{className:"simplebar-height-auto-observer"})),o.createElement("div",{className:"simplebar-mask"},o.createElement("div",{className:"simplebar-offset"},"function"===typeof r?r({scrollableNodeRef:d,contentNodeRef:p}):o.createElement("div",pe({},a,{className:"simplebar-content-wrapper".concat(a.className?" ".concat(a.className):"")}),o.createElement("div",{className:"simplebar-content"},r)))),o.createElement("div",{className:"simplebar-placeholder"})),o.createElement("div",{className:"simplebar-track simplebar-horizontal"},o.createElement("div",{className:"simplebar-scrollbar"})),o.createElement("div",{className:"simplebar-track simplebar-vertical"},o.createElement("div",{className:"simplebar-scrollbar"})))}));ge.displayName="SimpleBar",ge.propTypes={children:u().oneOfType([u().node,u().func]),scrollableNodeProps:u().object,tag:u().string};var ve=ge,ye=n(64164),_e=n(17551),be=(0,ye.ZP)("div")((function(){return{flexGrow:1,height:"100%",overflow:"hidden"}})),xe=(0,ye.ZP)(ve)((function(e){var t=e.theme;return{maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:(0,_e.Fq)(t.palette.grey[600],.48)},"&.simplebar-visible:before":{opacity:1}},"& .simplebar-track.simplebar-vertical":{width:10},"& .simplebar-track.simplebar-horizontal .simplebar-scrollbar":{height:6},"& .simplebar-mask":{zIndex:"inherit"}}})),Ee=n(46417),Se=["children","sx"];function we(e){var t=e.children,n=e.sx,r=(0,a.Z)(e,Se),o="undefined"===typeof navigator?"SSR":navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(o)?(0,Ee.jsx)(s.Z,(0,i.Z)((0,i.Z)({sx:(0,i.Z)({overflowX:"auto"},n)},r),{},{children:t})):(0,Ee.jsx)(be,{children:(0,Ee.jsx)(xe,(0,i.Z)((0,i.Z)({timeout:500,clickOnTrack:!1,sx:n},r),{},{children:t}))})}var Ce=(0,o.memo)(we)},45770:function(e,t,n){"use strict";n.d(t,{mu:function(){return b},fM:function(){return Ne},K$:function(){return _}});var r=n(29439),i=n(1413),a=n(47313);var o={themeMode:"light",themeDirection:"ltr",themeContrast:"default",themeLayout:"vertical",themeColorPresets:"cyan",themeStretch:!1},s=(0,n(81699).Z)("light"),l=[(0,i.Z)({name:"default"},s.primary),{name:"cyan",lighter:"#CCF4FE",light:"#68CDF9",main:"#078DEE",dark:"#0351AB",darker:"#012972",contrastText:"#FFFFFF"},{name:"purple",lighter:"#EBD6FD",light:"#B985F4",main:"#7635dc",dark:"#431A9E",darker:"#200A69",contrastText:"#FFFFFF"},{name:"blue",lighter:"#D1E9FC",light:"#76B0F1",main:"#2065D1",dark:"#103996",darker:"#061B64",contrastText:"#FFFFFF"},{name:"orange",lighter:"#FEF4D4",light:"#FED680",main:"#fda92d",dark:"#B66816",darker:"#793908",contrastText:s.grey[800]},{name:"red",lighter:"#FFE3D5",light:"#FFC1AC",main:"#FF3030",dark:"#B71833",darker:"#7A0930",contrastText:"#FFFFFF"}],u=l[0],c=l[1],d=l[2],f=l[3],p=l[4],h=l[5],m=l.map((function(e){return{name:e.name,value:e.main}}));var g=n(46417),v=(0,i.Z)((0,i.Z)({},o),{},{onToggleMode:function(){},onChangeMode:function(){},onToggleDirection:function(){},onChangeDirection:function(){},onChangeDirectionByLang:function(){},onChangeLayout:function(){},onToggleContrast:function(){},onChangeContrast:function(){},onChangeColorPresets:function(){},presetsColor:u,presetsOption:[],onToggleStretch:function(){},onResetSetting:function(){}}),y=(0,a.createContext)(v),_=function(){var e=(0,a.useContext)(y);if(!e)throw new Error("useSettingsContext must be use inside SettingsProvider");return e};function b(e){var t=e.children,n=function(e,t){var n=(0,a.useState)((function(){var n=localStorage.getItem(e);return null===n?t:JSON.parse(n)})),i=(0,r.Z)(n,2),o=i[0],s=i[1];return(0,a.useEffect)((function(){var t=function(t){t.storageArea===localStorage&&t.key===e&&s(t.newValue?JSON.parse(t.newValue):t.newValue)};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}}),[e,t]),[o,function(t){s((function(n){var r="function"===typeof t?t(n):t;return localStorage.setItem(e,JSON.stringify(r)),r}))}]}("settings",o),s=(0,r.Z)(n,2),l=s[0],v=s[1],_="ar"===("undefined"!==typeof window?localStorage.getItem("i18nextLng"):"");(0,a.useEffect)((function(){_&&w("ar")}),[_]);var b=(0,a.useCallback)((function(){var e="light"===l.themeMode?"dark":"light";v((0,i.Z)((0,i.Z)({},l),{},{themeMode:e}))}),[v,l]),x=(0,a.useCallback)((function(e){var t=e.target.value;v((0,i.Z)((0,i.Z)({},l),{},{themeMode:t}))}),[v,l]),E=(0,a.useCallback)((function(){var e="rtl"===l.themeDirection?"ltr":"rtl";v((0,i.Z)((0,i.Z)({},l),{},{themeDirection:e}))}),[v,l]),S=(0,a.useCallback)((function(e){var t=e.target.value;v((0,i.Z)((0,i.Z)({},l),{},{themeDirection:t}))}),[v,l]),w=(0,a.useCallback)((function(e){var t="ar"===e?"rtl":"ltr";v((0,i.Z)((0,i.Z)({},l),{},{themeDirection:t}))}),[v,l]),C=(0,a.useCallback)((function(e){var t=e.target.value;v((0,i.Z)((0,i.Z)({},l),{},{themeLayout:t}))}),[v,l]),T=(0,a.useCallback)((function(){var e="default"===l.themeContrast?"bold":"default";v((0,i.Z)((0,i.Z)({},l),{},{themeContrast:e}))}),[v,l]),A=(0,a.useCallback)((function(e){var t=e.target.value;v((0,i.Z)((0,i.Z)({},l),{},{themeContrast:t}))}),[v,l]),k=(0,a.useCallback)((function(e){var t=e.target.value;v((0,i.Z)((0,i.Z)({},l),{},{themeColorPresets:t}))}),[v,l]),D=(0,a.useCallback)((function(){var e=!l.themeStretch;v((0,i.Z)((0,i.Z)({},l),{},{themeStretch:e}))}),[v,l]),O=(0,a.useCallback)((function(){v(o)}),[v]),I=(0,a.useMemo)((function(){return(0,i.Z)((0,i.Z)({},l),{},{onToggleMode:b,onChangeMode:x,onToggleDirection:E,onChangeDirection:S,onChangeDirectionByLang:w,onChangeLayout:C,onChangeContrast:A,onToggleContrast:T,onToggleStretch:D,onChangeColorPresets:k,presetsOption:m,presetsColor:(e=l.themeColorPresets,{default:u,cyan:c,purple:d,blue:f,orange:p,red:h}[e]),onResetSetting:O});var e}),[l,b,x,E,S,w,C,A,T,D,k,O]);return(0,g.jsx)(y.Provider,{value:I,children:t})}var x=n(19118),E=n.n(x),S=n(62111),w=n(49494),C=n(26159),T=n(27403);function A(e){var t=e.children,n=(0,S.Z)(),r=_(),o=r.themeContrast,s="light"===r.themeMode,l="bold"===o,u=(0,a.useMemo)((function(){return{palette:{background:(0,i.Z)({},l&&{default:s?n.palette.grey[100]:n.palette.grey[900]})},components:{MuiCard:{styleOverrides:(0,i.Z)({},l&&{root:{boxShadow:n.customShadows.z4}})}}}}),[s,o]),c=(0,w.Z)(E()(n,u));return(0,g.jsxs)(C.Z,{theme:c,children:[(0,g.jsx)(T.ZP,{}),t]})}var k="-ms-",D="-moz-",O="-webkit-",I="comm",R="rule",N="decl",M="@keyframes",P=Math.abs,L=String.fromCharCode,F=Object.assign;function B(e){return e.trim()}function Z(e,t){return(e=t.exec(e))?e[0]:e}function z(e,t,n){return e.replace(t,n)}function U(e,t){return e.indexOf(t)}function j(e,t){return 0|e.charCodeAt(t)}function G(e,t,n){return e.slice(t,n)}function V(e){return e.length}function q(e){return e.length}function H(e,t){return t.push(e),e}var Y=1,W=1,X=0,K=0,$=0,Q="";function J(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Y,column:W,length:o,return:""}}function ee(e,t){return F(J("",null,null,"",null,null,0),e,{length:-e.length},t)}function te(){return $=K>0?j(Q,--K):0,W--,10===$&&(W=1,Y--),$}function ne(){return $=K2||oe($)>3?"":" "}function de(e,t){for(;--t&&ne()&&!($<48||$>102||$>57&&$<65||$>70&&$<97););return ae(e,ie()+(t<6&&32==re()&&32==ne()))}function fe(e){for(;ne();)switch($){case e:return K;case 34:case 39:34!==e&&39!==e&&fe($);break;case 40:41===e&&fe(e);break;case 92:ne()}return K}function pe(e,t){for(;ne()&&e+$!==57&&(e+$!==84||47!==re()););return"/*"+ae(t,K-1)+"*"+L(47===e?e:ne())}function he(e){for(;!oe(re());)ne();return ae(e,K)}function me(e,t){for(var n="",r=q(e),i=0;i6)switch(j(e,t+1)){case 109:if(45!==j(e,t+4))break;case 102:return z(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+D+(108==j(e,t+3)?"$3":"$2-$3"))+e;case 115:return~U(e,"stretch")?ge(z(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return z(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,i,a,o,s){return k+n+":"+r+s+(i?k+n+"-span:"+(a?o:+o-+r)+s:"")+e}));case 4949:if(121===j(e,t+6))return z(e,":",":"+O)+e;break;case 6444:switch(j(e,45===j(e,14)?18:11)){case 120:return z(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+O+(45===j(e,14)?"inline-":"")+"box$3$1"+O+"$2$3$1"+k+"$2box$3")+e;case 100:return z(e,":",":"+k)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return z(e,"scroll-","scroll-snap-")+e}return e}function ve(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case N:return void(e.return=ge(e.value,e.length,n));case M:return me([ee(e,{value:z(e.value,"@","@"+O)})],r);case R:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(Z(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return me([ee(e,{props:[z(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return me([ee(e,{props:[z(t,/:(plac\w+)/,":-webkit-input-$1")]}),ee(e,{props:[z(t,/:(plac\w+)/,":-moz-$1")]}),ee(e,{props:[z(t,/:(plac\w+)/,k+"input-$1")]})],r)}return""}))}}var ye=n(13663),_e=n.n(ye);function be(e){return le(xe("",null,null,null,[""],e=se(e),0,[0],e))}function xe(e,t,n,r,i,a,o,s,l){for(var u=0,c=0,d=o,f=0,p=0,h=0,m=1,g=1,v=1,y=0,_="",b=i,x=a,E=r,S=_;g;)switch(h=y,y=ne()){case 40:if(108!=h&&58==j(S,d-1)){-1!=U(S+=z(ue(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=ue(y);break;case 9:case 10:case 13:case 32:S+=ce(h);break;case 92:S+=de(ie()-1,7);continue;case 47:switch(re()){case 42:case 47:H(Se(pe(ne(),ie()),t,n),l);break;default:S+="/"}break;case 123*m:s[u++]=V(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:p>0&&V(S)-d&&H(p>32?we(S+";",r,n,d-1):we(z(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(H(E=Ee(S,t,n,u,c,i,s,_,b=[],x=[],d),a),123===y)if(0===c)xe(S,t,E,E,b,a,d,s,x);else switch(f){case 100:case 109:case 115:xe(e,E,E,r&&H(Ee(e,E,E,0,0,i,s,_,i,b=[],d),x),i,x,d,s,r?b:x);break;default:xe(S,E,E,E,[""],x,0,s,x)}}u=c=p=0,m=v=1,_=S="",d=o;break;case 58:d=1+V(S),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==te())continue;switch(S+=L(y),y*m){case 38:v=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(V(S)-1)*v,v=1;break;case 64:45===re()&&(S+=ue(ne())),f=re(),c=d=V(_=S+=he(ie())),y++;break;case 45:45===h&&2==V(S)&&(m=0)}}return a}function Ee(e,t,n,r,i,a,o,s,l,u,c){for(var d=i-1,f=0===i?a:[""],p=q(f),h=0,m=0,g=0;h0?f[v]+" "+y:z(y,/&\f/g,f[v])))&&(l[g++]=_);return J(e,t,n,0===i?R:s,l,u,c)}function Se(e,t,n){return J(e,t,n,I,L($),G(e,2,-2),0)}function we(e,t,n,r){return J(e,t,n,N,G(e,0,r),G(e,r+1,-1),r)}function Ce(e,t,n){switch(e.type){case"@import":case N:case I:return e.return=e.return||e.value;case R:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===I&&(e.children=e.value)}))}var r=me(Array.prototype.concat(e.children),Ce);return V(r)?e.return=e.value+"{"+r+"}":""}function Te(e,t,n,r){if(e.type===M||"@supports"===e.type||e.type===R&&(!e.parent||"@media"===e.parent.type||e.parent.type===R)){var i=_e().transform(Ce(e));e.children=i?be(i)[0].children:[],e.return=""}}Object.defineProperty(Te,"name",{value:"stylisRTLPlugin"});var Ae=Te,ke=n(20617),De=n(16132);function Oe(e){var t=e.children,n=(0,S.Z)();(0,a.useEffect)((function(){document.dir=n.direction}),[n.direction]);var r=(0,ke.Z)({key:"rtl"===n.direction?"rtl":"css",stylisPlugins:"rtl"===n.direction?[ve,Ae]:[]});return(0,g.jsx)(De.C,{value:r,children:t})}var Ie=n(17551);function Re(e){var t=e.children,n=(0,S.Z)(),r=_().presetsColor,i=(0,a.useMemo)((function(){return{palette:{primary:r},customShadows:{primary:"0 8px 16px 0 ".concat((0,Ie.Fq)(r.main,.24))}}}),[r]),o=(0,w.Z)(E()(n,i));return(0,g.jsx)(C.Z,{theme:o,children:t})}function Ne(e){var t=e.children;return(0,g.jsx)(Re,{children:(0,g.jsx)(A,{children:(0,g.jsx)(Oe,{children:t})})})}},41034:function(e,t,n){"use strict";n.d(t,{ZP:function(){return fe},Ds:function(){return ne}});var r=n(47313),i=n(1168),a=n(83061),o=n(69791),s=n(64164),l=n(17551),u=n(28326),c=n(85541),d=n(31685);n(67861);function f(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var g=r.createContext(),v={containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}},y={default:20,dense:4},_={default:6,dense:2},b={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:o.Z,transitionDuration:{enter:225,exit:195}},x=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},E=function(e){return Object.keys(e).filter((function(e){return!v[e]})).reduce((function(t,n){var r;return p({},t,((r={})[n]=e[n],r))}),{})},S={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},w=function(e){return"containerAnchorOrigin"+e},C=function(e){var t=e.vertical,n=e.horizontal;return"anchorOrigin"+x(t)+x(n)},T=function(e){return"variant"+x(e)},A=function(e){return!!e||0===e},k=function(e){return"number"===typeof e||null===e};function D(e,t,n){return void 0===e&&(e={}),void 0===t&&(t={}),void 0===n&&(n={}),p({},n,{},t,{},e)}var O={root:"SnackbarContent-root"},I=(0,s.ZP)("div")((function(e){var t,n,r=e.theme;return(n={})["&."+O.root]=((t={display:"flex",flexWrap:"wrap",flexGrow:1})[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n})),R=(0,r.forwardRef)((function(e,t){var n=e.className,i=h(e,["className"]);return r.createElement(I,Object.assign({ref:t,className:(0,a.Z)(O.root,n)},i))})),N={right:"left",left:"right",bottom:"up",top:"down"},M=function(e){return"center"!==e.horizontal?N[e.horizontal]:N[e.vertical]},P=function(e){return r.createElement(c.Z,Object.assign({},e),r.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},L=function(e){return r.createElement(c.Z,Object.assign({},e),r.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},F=function(e){return r.createElement(c.Z,Object.assign({},e),r.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},B=function(e){return r.createElement(c.Z,Object.assign({},e),r.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},Z={fontSize:20,marginInlineEnd:8},z={default:void 0,success:r.createElement(P,{style:Z}),warning:r.createElement(L,{style:Z}),error:r.createElement(F,{style:Z}),info:r.createElement(B,{style:Z})};function U(e,t){return e.reduce((function(e,n){return null==n?e:function(){for(var r=arguments.length,i=new Array(r),a=0;a .MuiCollapse-container, & > .MuiCollapse-root",X="& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper",K="SnackbarContainer",$={root:K+"-root",rootDense:K+"-rootDense",top:K+"-top",bottom:K+"-bottom",left:K+"-left",right:K+"-right",center:K+"-center"},Q=(0,s.ZP)("div")((function(e){var t,n,r,i,a,o,s=e.theme;return(o={})["&."+$.root]=((t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:s.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"})[W]={pointerEvents:"all"},t[X]={padding:_.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+2*y.default+"px)",t[s.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - 32px)"},t),o["&."+$.rootDense]=((n={})[X]={padding:_.dense+"px 0px"},n),o["&."+$.top]={top:y.default-_.default,flexDirection:"column"},o["&."+$.bottom]={bottom:y.default-_.default,flexDirection:"column-reverse"},o["&."+$.left]=((r={left:y.default})[s.breakpoints.up("sm")]={alignItems:"flex-start"},r[s.breakpoints.down("sm")]={left:"16px"},r),o["&."+$.right]=((i={right:y.default})[s.breakpoints.up("sm")]={alignItems:"flex-end"},i[s.breakpoints.down("sm")]={right:"16px"},i),o["&."+$.center]=((a={left:"50%",transform:"translateX(-50%)"})[s.breakpoints.up("sm")]={alignItems:"center"},a),o})),J=function(e){var t=e.className,n=e.anchorOrigin,i=e.dense,o=h(e,["className","anchorOrigin","dense"]),s=(0,a.Z)($[n.vertical],$[n.horizontal],$.root,t,i&&$.rootDense);return r.createElement(Q,Object.assign({className:s},o))},ee=r.memo(J),te=function(e){var t,n,o,s,l;function u(t){var n;return(n=e.call(this,t)||this).enqueueSnackbar=function(e,t){void 0===t&&(t={});var r=t,i=r.key,a=r.preventDuplicate,o=h(r,["key","preventDuplicate"]),s=A(i),l=s?i:(new Date).getTime()+Math.random(),u=function(e,t,n){return function(r){return"autoHideDuration"===r?k(e.autoHideDuration)?e.autoHideDuration:k(t.autoHideDuration)?t.autoHideDuration:b.autoHideDuration:e[r]||t[r]||n[r]}}(o,n.props,b),c=p({key:l},o,{message:e,open:!0,entered:!1,requestClose:!1,variant:u("variant"),anchorOrigin:u("anchorOrigin"),autoHideDuration:u("autoHideDuration")});return o.persist&&(c.autoHideDuration=void 0),n.setState((function(t){if(void 0===a&&n.props.preventDuplicate||a){var r=function(t){return s?t.key===i:t.message===e},o=t.queue.findIndex(r)>-1,l=t.snacks.findIndex(r)>-1;if(o||l)return t}return n.handleDisplaySnack(p({},t,{queue:[].concat(t.queue,[c])}))})),l},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?p({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,r=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===n.maxSnack&&(r=!0);var i=e.snacks.map((function(e){return t||e.persist&&!r?p({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,S.MAXSNACK,e.key),n.props.onClose&&n.props.onClose(null,S.MAXSNACK,e.key),p({},e,{open:!1})):p({},e,{requestClose:!0}))}));return p({},e,{snacks:i})},n.handleEnteredSnack=function(e,t,r){if(!A(r))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState((function(e){return{snacks:e.snacks.map((function(e){return e.key===r?p({},e,{entered:!0}):p({},e)}))}}))},n.handleCloseSnack=function(e,t,r){if(n.props.onClose&&n.props.onClose(e,t,r),t!==S.CLICKAWAY){var i=void 0===r;n.setState((function(e){var t=e.snacks,n=e.queue;return{snacks:t.map((function(e){return i||e.key===r?e.entered?p({},e,{open:!1}):p({},e,{requestClose:!0}):p({},e)})),queue:n.filter((function(e){return e.key!==r}))}}))}},n.closeSnackbar=function(e){var t=n.state.snacks.find((function(t){return t.key===e}));A(e)&&t&&t.onClose&&t.onClose(null,S.INSTRUCTED,e),n.handleCloseSnack(null,S.INSTRUCTED,e)},n.handleExitedSnack=function(e,t,r){var i=t||r;if(!A(i))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState((function(e){var t=n.processQueue(p({},e,{snacks:e.snacks.filter((function(e){return e.key!==i}))}));return 0===t.queue.length?t:n.handleDismissOldest(t)}))},n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(m(n)),closeSnackbar:n.closeSnackbar.bind(m(n))}},n}return n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,u.prototype.render=function(){var e=this,t=this.state.contextValue,n=this.props,o=n.iconVariant,s=n.dense,l=void 0===s?b.dense:s,u=n.hideIconVariant,c=void 0===u?b.hideIconVariant:u,d=n.domRoot,f=n.children,m=n.classes,v=void 0===m?{}:m,y=h(n,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),_=this.state.snacks.reduce((function(e,t){var n,r,i=(r=t.anchorOrigin,""+x(r.vertical)+x(r.horizontal)),a=e[i]||[];return p({},e,((n={})[i]=[].concat(a,[t]),n))}),{}),S=Object.keys(_).map((function(t){var n=_[t];return r.createElement(ee,{key:t,dense:l,anchorOrigin:n[0].anchorOrigin,className:(0,a.Z)(v.containerRoot,v[w(t)])},n.map((function(t){return r.createElement(Y,Object.assign({},y,{key:t.key,snack:t,dense:l,iconVariant:o,hideIconVariant:c,classes:E(v),onClose:e.handleCloseSnack,onExited:U([e.handleExitedSnack,e.props.onExited]),onEntered:U([e.handleEnteredSnack,e.props.onEntered])}))})))}));return r.createElement(g.Provider,{value:t},f,d?(0,i.createPortal)(S,d):S)},o=u,(s=[{key:"maxSnack",get:function(){return this.props.maxSnack||b.maxSnack}}])&&f(o.prototype,s),l&&f(o,l),u}(r.Component),ne=function(){return(0,r.useContext)(g)},re=n(18104),ie=n(16157),ae=n(45770),oe=n(8730),se=n(4942),le=n(62111),ue=n(27100),ce=n(46417);function de(){var e=(0,le.Z)(),t="light"===e.palette.mode;return(0,ce.jsx)(ue.Z,{styles:{"#root":{".SnackbarContent-root":(0,se.Z)({width:"100%",padding:e.spacing(1),margin:e.spacing(.25,0),boxShadow:e.customShadows.z8,borderRadius:e.shape.borderRadius,color:t?e.palette.common.white:e.palette.grey[800],backgroundColor:t?e.palette.grey[900]:e.palette.common.white,"&.SnackbarItem-variantSuccess, &.SnackbarItem-variantError, &.SnackbarItem-variantWarning, &.SnackbarItem-variantInfo":{color:e.palette.text.primary,backgroundColor:e.palette.background.paper}},e.breakpoints.up("md"),{minWidth:240}),".SnackbarItem-message":{padding:"0 !important",fontWeight:e.typography.fontWeightMedium},".SnackbarItem-action":{marginRight:0,color:e.palette.action.active,"& svg":{width:20,height:20}}}}})}function fe(e){var t=e.children,n="rtl"===(0,ae.K$)().themeDirection,i=(0,r.useRef)(null),a=function(e){return function(){i.current.closeSnackbar(e)}};return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(de,{}),(0,ce.jsx)(te,{ref:i,dense:!0,maxSnack:5,preventDuplicate:!0,autoHideDuration:3e3,TransitionComponent:n?u.Z:void 0,variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},iconVariant:{info:(0,ce.jsx)(pe,{icon:"eva:info-fill",color:"info"}),success:(0,ce.jsx)(pe,{icon:"eva:checkmark-circle-2-fill",color:"success"}),warning:(0,ce.jsx)(pe,{icon:"eva:alert-triangle-fill",color:"warning"}),error:(0,ce.jsx)(pe,{icon:"eva:alert-circle-fill",color:"error"})},action:function(e){return(0,ce.jsx)(re.Z,{size:"small",onClick:a(e),sx:{p:.5},children:(0,ce.jsx)(oe.Z,{icon:"eva:close-fill"})})},children:t})]})}function pe(e){var t=e.icon,n=e.color;return(0,ce.jsx)(ie.Z,{component:"span",sx:{mr:1.5,width:40,height:40,display:"flex",borderRadius:1.5,alignItems:"center",justifyContent:"center",color:"".concat(n,".main"),bgcolor:function(e){return(0,l.Fq)(e.palette[n].main,.16)}},children:(0,ce.jsx)(oe.Z,{icon:t,width:24})})}},1032:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(1413),i=n(45987),a=n(75192),o=n.n(a),s=n(47313),l=n(16157),u=n(46417),c=["src","sx"],d=(0,s.forwardRef)((function(e,t){var n=e.src,a=e.sx,o=(0,i.Z)(e,c);return(0,u.jsx)(l.Z,(0,r.Z)({component:"span",className:"svg-color",ref:t,sx:(0,r.Z)({width:24,height:24,display:"inline-block",bgcolor:"currentColor",mask:"url(".concat(n,") no-repeat center / contain"),WebkitMask:"url(".concat(n,") no-repeat center / contain")},a)},o))}));d.propTypes={src:o().string,sx:o().object};var f=d},38789:function(e,t,n){"use strict";n.d(t,{gq:function(){return He},ab:function(){return et},un:function(){return Ke}});var r=n(17551),i=n(32415),a=n(16157),o=n(42669),s=n(76221),l=n(34345),u=n(46417);function c(e){var t=e.fileRejections;return t.length?(0,u.jsx)(i.Z,{variant:"outlined",sx:{py:1,px:2,mt:3,bgcolor:function(e){return(0,r.Fq)(e.palette.error.main,.08)},borderColor:function(e){return(0,r.Fq)(e.palette.error.main,.24)}},children:t.map((function(e){var t=e.file,n=e.errors,r=(0,l.ht)(t),i=r.path,c=r.size;return(0,u.jsxs)(a.Z,{sx:{my:1},children:[(0,u.jsxs)(o.Z,{variant:"subtitle2",noWrap:!0,children:[i," - ",c?(0,s.oe)(c):""]}),n.map((function(e){return(0,u.jsxs)(a.Z,{component:"span",sx:{typography:"caption"},children:["- ",e.message]},e.code)}))]},i)}))}):null}var d=n(59063);function f(e){var t=e.file;if(!t)return null;var n="string"===typeof t?t:t.preview;return(0,u.jsx)(d.Z,{alt:"avatar",src:n,sx:{zIndex:8,overflow:"hidden",borderRadius:"50%",position:"absolute",width:"calc(100% - 16px)",height:"calc(100% - 16px)"}})}var p=n(1413),h=n(82280),m=n(89631),g=n(62463),v=n(18104),y=n(8730),_=n(55410);function b(e){var t=e.thumbnail,n=e.files,i=e.onRemove,a=e.sx;return null!==n&&void 0!==n&&n.length?(0,u.jsx)(h.M,{initial:!1,children:n.map((function(e){var n=(0,l.ht)(e),c=n.key,d=n.name,f=void 0===d?"":d,h=n.size,b=void 0===h?0:h,x="string"===typeof e;return t?(0,u.jsxs)(g.Z,(0,p.Z)((0,p.Z)({component:m.m.div},(0,_.EU)().inUp),{},{alignItems:"center",display:"inline-flex",justifyContent:"center",sx:(0,p.Z)({m:.5,width:80,height:80,borderRadius:1.25,overflow:"hidden",position:"relative",border:function(e){return"solid 1px ".concat(e.palette.divider)}},a),children:[(0,u.jsx)(l.ZP,{tooltip:!0,imageView:!0,file:e,sx:{position:"absolute"},imgSx:{position:"absolute"}}),i&&(0,u.jsx)(v.Z,{size:"small",onClick:function(){return i(e)},sx:{top:4,right:4,p:"1px",position:"absolute",color:function(e){return(0,r.Fq)(e.palette.common.white,.72)},bgcolor:function(e){return(0,r.Fq)(e.palette.grey[900],.48)},"&:hover":{bgcolor:function(e){return(0,r.Fq)(e.palette.grey[900],.72)}}},children:(0,u.jsx)(y.Z,{icon:"eva:close-fill",width:16})})]}),c):(0,u.jsxs)(g.Z,(0,p.Z)((0,p.Z)({component:m.m.div},(0,_.EU)().inUp),{},{spacing:2,direction:"row",alignItems:"center",sx:(0,p.Z)({my:1,px:1,py:.75,borderRadius:.75,border:function(e){return"solid 1px ".concat(e.palette.divider)}},a),children:[(0,u.jsx)(l.ZP,{file:e}),(0,u.jsxs)(g.Z,{flexGrow:1,sx:{minWidth:0},children:[(0,u.jsx)(o.Z,{variant:"subtitle2",noWrap:!0,children:x?e:f}),(0,u.jsx)(o.Z,{variant:"caption",sx:{color:"text.secondary"},children:x?"":(0,s.oe)(b)})]}),i&&(0,u.jsx)(v.Z,{edge:"end",size:"small",onClick:function(){return i(e)},children:(0,u.jsx)(y.Z,{icon:"eva:close-fill"})})]}),c)}))}):null}function x(e){var t=e.file;if(!t)return null;var n="string"===typeof t?t:t.preview;return(0,u.jsx)(d.Z,{alt:"file preview",src:n,sx:{top:8,left:8,zIndex:8,borderRadius:1,position:"absolute",width:"calc(100% - 16px)",height:"calc(100% - 16px)"}})}var E=n(45987),S=n(47313),w=n(75192),C=n.n(w),T=n(66797),A=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function k(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=A.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!==typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"===typeof t?t:"string"===typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var D=[".DS_Store","Thumbs.db"];function O(e){return"object"===typeof e&&null!==e}function I(e){return P(e.target.files).map((function(e){return k(e)}))}function R(e){return(0,T.mG)(this,void 0,void 0,(function(){return(0,T.Jh)(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return k(e)}))]}}))}))}function N(e,t){return(0,T.mG)(this,void 0,void 0,(function(){var n;return(0,T.Jh)(this,(function(r){switch(r.label){case 0:return e.items?(n=P(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(L))]):[3,2];case 1:return[2,M(F(r.sent()))];case 2:return[2,M(P(e.files).map((function(e){return k(e)})))]}}))}))}function M(e){return e.filter((function(e){return-1===D.indexOf(e.name)}))}function P(e){if(null===e)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,te(n)];if(e.sizen)return[!1,te(n)]}return[!0,null]}function oe(e){return void 0!==e&&null!==e}function se(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,a=e.multiple,o=e.maxFiles,s=e.validator;return!(!a&&t.length>1||a&&o>=1&&t.length>o)&&t.every((function(e){var t=Y(ie(e,n),1)[0],a=Y(ae(e,r,i),1)[0],o=s?s(e):null;return t&&a&&!o}))}function le(e){return"function"===typeof e.isPropagationStopped?e.isPropagationStopped():"undefined"!==typeof e.cancelBubble&&e.cancelBubble}function ue(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function ce(e){e.preventDefault()}function de(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function fe(e){return-1!==e.indexOf("Edge/")}function pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return de(e)||fe(e)}function he(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Me=(0,S.forwardRef)((function(e,t){var n=e.children,r=Fe(Ne(e,Ee)),i=r.open,a=Ne(r,Se);return(0,S.useImperativeHandle)(t,(function(){return{open:i}}),[i]),S.createElement(S.Fragment,null,n(Ie(Ie({},a),{},{open:i})))}));Me.displayName="Dropzone";var Pe={disabled:!1,getFilesFromEvent:function(e){return(0,T.mG)(this,void 0,void 0,(function(){return(0,T.Jh)(this,(function(t){return O(e)&&O(e.dataTransfer)?[2,N(e.dataTransfer,e.type)]:function(e){return O(e)&&O(e.target)}(e)?[2,I(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"===typeof e.getFile}))?[2,R(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Me.defaultProps=Pe,Me.propTypes={children:C().func,accept:C().objectOf(C().arrayOf(C().string)),multiple:C().bool,preventDropOnDocument:C().bool,noClick:C().bool,noKeyboard:C().bool,noDrag:C().bool,noDragEventsBubbling:C().bool,minSize:C().number,maxSize:C().number,maxFiles:C().number,disabled:C().bool,getFilesFromEvent:C().func,onFileDialogCancel:C().func,onFileDialogOpen:C().func,useFsAccessApi:C().bool,autoFocus:C().bool,onDragEnter:C().func,onDragLeave:C().func,onDragOver:C().func,onDrop:C().func,onDropAccepted:C().func,onDropRejected:C().func,onError:C().func,validator:C().func};var Le={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Fe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ie(Ie({},Pe),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,o=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,d=t.onDragOver,f=t.onDrop,p=t.onDropAccepted,h=t.onDropRejected,m=t.onFileDialogCancel,g=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.autoFocus,_=t.preventDropOnDocument,b=t.noClick,x=t.noKeyboard,E=t.noDrag,w=t.noDragEventsBubbling,C=t.onError,T=t.validator,A=(0,S.useMemo)((function(){return ve(n)}),[n]),k=(0,S.useMemo)((function(){return ge(n)}),[n]),D=(0,S.useMemo)((function(){return"function"===typeof g?g:Ze}),[g]),O=(0,S.useMemo)((function(){return"function"===typeof m?m:Ze}),[m]),I=(0,S.useRef)(null),R=(0,S.useRef)(null),N=(0,S.useReducer)(Be,Le),M=Ae(N,2),P=M[0],L=M[1],F=P.isFocused,B=P.isFileDialogActive,Z=(0,S.useRef)("undefined"!==typeof window&&window.isSecureContext&&v&&me()),z=function(){!Z.current&&B&&setTimeout((function(){R.current&&(R.current.files.length||(L({type:"closeDialog"}),O()))}),300)};(0,S.useEffect)((function(){return window.addEventListener("focus",z,!1),function(){window.removeEventListener("focus",z,!1)}}),[R,B,O,Z]);var U=(0,S.useRef)([]),j=function(e){I.current&&I.current.contains(e.target)||(e.preventDefault(),U.current=[])};(0,S.useEffect)((function(){return _&&(document.addEventListener("dragover",ce,!1),document.addEventListener("drop",j,!1)),function(){_&&(document.removeEventListener("dragover",ce),document.removeEventListener("drop",j))}}),[I,_]),(0,S.useEffect)((function(){return!r&&y&&I.current&&I.current.focus(),function(){}}),[I,y,r]);var G=(0,S.useCallback)((function(e){C?C(e):console.error(e)}),[C]),V=(0,S.useCallback)((function(e){e.preventDefault(),e.persist(),oe(e),U.current=[].concat(Te(U.current),[e.target]),ue(e)&&Promise.resolve(i(e)).then((function(t){if(!le(e)||w){var n=t.length,r=n>0&&se({files:t,accept:A,minSize:o,maxSize:a,multiple:s,maxFiles:l,validator:T});L({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return G(e)}))}),[i,u,G,w,A,o,a,s,l,T]),q=(0,S.useCallback)((function(e){e.preventDefault(),e.persist(),oe(e);var t=ue(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(n){}return t&&d&&d(e),!1}),[d,w]),H=(0,S.useCallback)((function(e){e.preventDefault(),e.persist(),oe(e);var t=U.current.filter((function(e){return I.current&&I.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),U.current=t,t.length>0||(L({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),ue(e)&&c&&c(e))}),[I,c,w]),Y=(0,S.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Ae(ie(e,A),2),i=t[0],s=t[1],l=Ae(ae(e,o,a),2),u=l[0],c=l[1],d=T?T(e):null;if(i&&u&&!d)n.push(e);else{var f=[s,c];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter((function(e){return e}))})}})),(!s&&n.length>1||s&&l>=1&&n.length>l)&&(n.forEach((function(e){r.push({file:e,errors:[re]})})),n.splice(0)),L({acceptedFiles:n,fileRejections:r,type:"setFiles"}),f&&f(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&p&&p(n,t)}),[L,s,A,o,a,l,f,p,h,T]),W=(0,S.useCallback)((function(e){e.preventDefault(),e.persist(),oe(e),U.current=[],ue(e)&&Promise.resolve(i(e)).then((function(t){le(e)&&!w||Y(t,e)})).catch((function(e){return G(e)})),L({type:"reset"})}),[i,Y,G,w]),X=(0,S.useCallback)((function(){if(Z.current){L({type:"openDialog"}),D();var e={multiple:s,types:k};window.showOpenFilePicker(e).then((function(e){return i(e)})).then((function(e){Y(e,null),L({type:"closeDialog"})})).catch((function(e){ye(e)?(O(e),L({type:"closeDialog"})):_e(e)?(Z.current=!1,R.current?(R.current.value=null,R.current.click()):G(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):G(e)}))}else R.current&&(L({type:"openDialog"}),D(),R.current.value=null,R.current.click())}),[L,D,O,v,Y,G,k,s]),K=(0,S.useCallback)((function(e){I.current&&I.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),X()))}),[I,X]),$=(0,S.useCallback)((function(){L({type:"focus"})}),[]),Q=(0,S.useCallback)((function(){L({type:"blur"})}),[]),J=(0,S.useCallback)((function(){b||(pe()?setTimeout(X,0):X())}),[b,X]),ee=function(e){return r?null:e},te=function(e){return x?null:ee(e)},ne=function(e){return E?null:ee(e)},oe=function(e){w&&e.stopPropagation()},de=(0,S.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,i=e.role,a=e.onKeyDown,o=e.onFocus,s=e.onBlur,l=e.onClick,u=e.onDragEnter,c=e.onDragOver,d=e.onDragLeave,f=e.onDrop,p=Ne(e,we);return Ie(Ie(Re({onKeyDown:te(he(a,K)),onFocus:te(he(o,$)),onBlur:te(he(s,Q)),onClick:ee(he(l,J)),onDragEnter:ne(he(u,V)),onDragOver:ne(he(c,q)),onDragLeave:ne(he(d,H)),onDrop:ne(he(f,W)),role:"string"===typeof i&&""!==i?i:"presentation"},n,I),r||x?{}:{tabIndex:0}),p)}}),[I,K,$,Q,J,V,q,H,W,x,E,r]),fe=(0,S.useCallback)((function(e){e.stopPropagation()}),[]),be=(0,S.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,i=e.onClick,a=Ne(e,Ce),o=Re({accept:A,multiple:s,type:"file",style:{display:"none"},onChange:ee(he(r,W)),onClick:ee(he(i,fe)),tabIndex:-1},n,R);return Ie(Ie({},o),a)}}),[R,n,s,W,r]);return Ie(Ie({},P),{},{isFocused:F&&!r,getRootProps:de,getInputProps:be,rootRef:I,inputRef:R,open:ee(X)})}function Be(e,t){switch(t.type){case"focus":return Ie(Ie({},e),{},{isFocused:!0});case"blur":return Ie(Ie({},e),{},{isFocused:!1});case"openDialog":return Ie(Ie({},Le),{},{isFileDialogActive:!0});case"closeDialog":return Ie(Ie({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ie(Ie({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ie(Ie({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ie({},Le);default:return e}}function Ze(){}var ze=n(605),Ue=n(64164),je=n(59479),Ge=["disabled","multiple","error","helperText","file","onDelete","files","thumbnail","onUpload","onRemove","onRemoveAll","sx"],Ve=["sx"],qe=(0,Ue.ZP)("div")((function(e){var t=e.theme;return{outline:"none",cursor:"pointer",overflow:"hidden",position:"relative",padding:t.spacing(5,1),borderRadius:t.shape.borderRadius,transition:t.transitions.create("padding"),backgroundColor:t.palette.background.neutral,border:"1px dashed ".concat((0,r.Fq)(t.palette.grey[500],.32)),"&:hover":{opacity:.72}}}));function He(e){var t=e.disabled,n=e.multiple,i=void 0!==n&&n,o=e.error,s=e.helperText,l=e.file,d=e.onDelete,f=e.files,h=e.thumbnail,m=e.onUpload,_=e.onRemove,S=e.onRemoveAll,w=e.sx,C=(0,E.Z)(e,Ge),T=Fe((0,p.Z)({multiple:i,disabled:t},C)),A=T.getRootProps,k=T.getInputProps,D=T.isDragActive,O=T.isDragReject,I=T.fileRejections,R=!!l&&!i,N=f&&i&&f.length>0,M=O||!!o;return(0,u.jsxs)(a.Z,{sx:(0,p.Z)({width:1,position:"relative"},w),children:[(0,u.jsxs)(qe,(0,p.Z)((0,p.Z)({},A()),{},{sx:(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({},D&&{opacity:.72}),M&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"}),t&&{opacity:.48,pointerEvents:"none"}),R&&{padding:"12% 0"}),children:[(0,u.jsx)("input",(0,p.Z)({},k())),(0,u.jsx)(Ye,{sx:(0,p.Z)({},R&&{opacity:0})}),R&&(0,u.jsx)(x,{file:l})]})),(0,u.jsx)(c,{fileRejections:I}),R&&d&&(0,u.jsx)(v.Z,{size:"small",onClick:d,sx:{top:16,right:16,zIndex:9,position:"absolute",color:function(e){return(0,r.Fq)(e.palette.common.white,.8)},bgcolor:function(e){return(0,r.Fq)(e.palette.grey[900],.72)},"&:hover":{bgcolor:function(e){return(0,r.Fq)(e.palette.grey[900],.48)}}},children:(0,u.jsx)(y.Z,{icon:"eva:close-fill",width:18})}),N&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(a.Z,{sx:{my:3},children:(0,u.jsx)(b,{files:f,thumbnail:h,onRemove:_})}),(0,u.jsxs)(g.Z,{direction:"row",justifyContent:"flex-end",spacing:1.5,children:[S&&(0,u.jsx)(ze.Z,{color:"inherit",variant:"outlined",size:"small",onClick:S,children:"Remove all"}),m&&(0,u.jsx)(ze.Z,{size:"small",variant:"contained",onClick:m,children:"Upload files"})]})]}),s&&s]})}function Ye(e){var t=e.sx,n=(0,E.Z)(e,Ve);return(0,u.jsxs)(g.Z,(0,p.Z)((0,p.Z)({spacing:2,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:(0,p.Z)({width:1,textAlign:{xs:"center",md:"left"}},t)},n),{},{children:[(0,u.jsx)(je.A2,{sx:{width:220}}),(0,u.jsxs)(a.Z,{sx:{p:3},children:[(0,u.jsx)(o.Z,{gutterBottom:!0,variant:"h5",children:"Drop or Select file"}),(0,u.jsxs)(o.Z,{variant:"body2",sx:{color:"text.secondary"},children:["Drop files here or click",(0,u.jsx)(o.Z,{variant:"body2",component:"span",sx:{mx:.5,color:"primary.main",textDecoration:"underline"},children:"browse"}),"thorough your machine"]})]})]}))}var We=["placeholder","error","disabled","sx"],Xe=(0,Ue.ZP)("div")((function(e){var t=e.theme;return{width:64,height:64,fontSize:24,display:"flex",flexShrink:0,cursor:"pointer",alignItems:"center",justifyContent:"center",margin:t.spacing(.5),color:t.palette.text.disabled,borderRadius:t.shape.borderRadius,border:"dashed 1px ".concat(t.palette.divider),backgroundColor:(0,r.Fq)(t.palette.grey[500],.08),"&:hover":{opacity:.72}}}));function Ke(e){var t=e.placeholder,n=e.error,r=e.disabled,i=e.sx,a=(0,E.Z)(e,We),o=Fe((0,p.Z)({disabled:r},a)),s=o.getRootProps,l=o.getInputProps,c=o.isDragActive,d=o.isDragReject||!!n;return(0,u.jsxs)(Xe,(0,p.Z)((0,p.Z)({},s()),{},{sx:(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({},c&&{opacity:.72}),d&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"}),r&&{opacity:.48,pointerEvents:"none"}),i),children:[(0,u.jsx)("input",(0,p.Z)({},l())),t||(0,u.jsx)(y.Z,{icon:"eva:cloud-upload-fill",width:28})]}))}var $e=["error","file","disabled","helperText","sx"],Qe=(0,Ue.ZP)("div")((function(e){var t=e.theme;return{width:144,height:144,margin:"auto",display:"flex",cursor:"pointer",overflow:"hidden",borderRadius:"50%",alignItems:"center",position:"relative",justifyContent:"center",border:"1px dashed ".concat((0,r.Fq)(t.palette.grey[500],.32))}})),Je=(0,Ue.ZP)("div")((function(e){var t=e.theme;return{zIndex:7,display:"flex",borderRadius:"50%",position:"absolute",alignItems:"center",flexDirection:"column",justifyContent:"center",width:"calc(100% - 16px)",height:"calc(100% - 16px)",color:t.palette.text.disabled,backgroundColor:t.palette.background.neutral,transition:t.transitions.create("opacity",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.shorter})}}));function et(e){var t=e.error,n=e.file,i=e.disabled,a=e.helperText,s=e.sx,l=(0,E.Z)(e,$e),d=Fe((0,p.Z)({multiple:!1,disabled:i},l)),h=d.getRootProps,m=d.getInputProps,g=d.isDragActive,v=d.isDragReject,_=d.fileRejections,b=!!n,x=v||!!t;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(Qe,(0,p.Z)((0,p.Z)({},h()),{},{sx:(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({},g&&{opacity:.72}),x&&(0,p.Z)({borderColor:"error.light"},b&&{bgcolor:"error.lighter"})),i&&{opacity:.48,pointerEvents:"none"}),b&&{"&:hover":{"& .placeholder":{opacity:1}}}),s),children:[(0,u.jsx)("input",(0,p.Z)({},m())),b&&(0,u.jsx)(f,{file:n}),(0,u.jsxs)(Je,{className:"placeholder",sx:(0,p.Z)((0,p.Z)({"&:hover":{opacity:.72}},b&&{zIndex:9,opacity:0,color:"common.white",bgcolor:function(e){return(0,r.Fq)(e.palette.grey[900],.64)}}),x&&{color:"error.main",bgcolor:"error.lighter"}),children:[(0,u.jsx)(y.Z,{icon:"ic:round-add-a-photo",width:24,sx:{mb:1}}),(0,u.jsx)(o.Z,{variant:"caption",children:n?"Update photo":"Upload photo"})]})]})),a&&a,(0,u.jsx)(c,{fileRejections:_})]})}},36287:function(e,t,n){"use strict";n.d(t,{$t:function(){return o},Dc:function(){return a},Wm:function(){return c},qL:function(){return i},w$:function(){return u},wd:function(){return s},yf:function(){return l}});var r=n(48175),i={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_MAPBOX_API:"",REACT_APP_FIREBASE_API_KEY:"AIzaSyAflx08ZYq4_JFSB4_xHBa7ytAAlAy33nk",REACT_APP_FIREBASE_AUTH_DOMAIN:"distinct-insights.firebaseapp.com",REACT_APP_FIREBASE_PROJECT_ID:"distinct-insights",REACT_APP_FIREBASE_STORAGE_BUCKET:"distinct-insights.firebasestorage.app",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"328448167545",REACT_APP_FIREBASE_APPID:"1:328448167545:web:f202f504a3e63c7b4b8ea8",REACT_APP_AWS_COGNITO_USER_POOL_ID:"",REACT_APP_AWS_COGNITO_CLIENT_ID:"",REACT_APP_AUTH0_DOMAIN:"",REACT_APP_AUTH0_CLIENT_ID:""}.REACT_APP_HOST_API_KEY||"",a={apiKey:"AIzaSyAflx08ZYq4_JFSB4_xHBa7ytAAlAy33nk",authDomain:"distinct-insights.firebaseapp.com",projectId:"distinct-insights",storageBucket:"distinct-insights.firebasestorage.app",messagingSenderId:"328448167545",appId:"1:328448167545:web:f202f504a3e63c7b4b8ea8"},o="",s=r.vB.general.app,l={H_MOBILE:64,H_MAIN_DESKTOP:88,H_DASHBOARD_DESKTOP:92,H_DASHBOARD_DESKTOP_OFFSET:60},u={W_BASE:260,W_DASHBOARD:280,W_DASHBOARD_MINI:88,H_DASHBOARD_ITEM:48,H_DASHBOARD_ITEM_SUB:36,H_DASHBOARD_ITEM_HORIZONTAL:32},c={NAV_ITEM:24,NAV_ITEM_HORIZONTAL:22,NAV_ITEM_MINI:22}},66281:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},z:function(){return s}});var r=n(93433),i=n(62111),a=n(79359);function o(e,t,n){var r=(0,i.Z)(),o=(0,a.Z)(r.breakpoints.up(t)),s=(0,a.Z)(r.breakpoints.down(t)),l=(0,a.Z)(r.breakpoints.between(t,n)),u=(0,a.Z)(r.breakpoints.only(t));return"up"===e?o:"down"===e?s:"between"===e?l:u}function s(){var e=(0,i.Z)();return(0,r.Z)(e.breakpoints.keys).reverse().reduce((function(t,n){var r=(0,a.Z)(e.breakpoints.up(n));return!t&&r?n:t}),null)||"xs"}},16611:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(42669),i=n(62463),a=n(57632),o=n(59063),s=n(1413),l=n(4942),u=n(64164),c=n(17551),d=n(50769),f=(0,u.ZP)("main")((function(){return{height:"100%",display:"flex",position:"relative"}})),p=(0,u.ZP)("div")((function(e){var t=e.theme;return(0,l.Z)({display:"none",position:"relative"},t.breakpoints.up("md"),{flexGrow:1,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"})})),h=(0,u.ZP)("div")((function(e){var t=e.theme;return(0,s.Z)((0,s.Z)({},(0,d.v3)({color:(0,c.Fq)(t.palette.background.default,"light"===t.palette.mode?.9:.94),imgUrl:"/assets/background/overlay_2.jpg"})),{},{top:0,left:0,zIndex:-1,width:"100%",height:"100%",position:"absolute",transform:"scaleX(-1)"})})),m=(0,u.ZP)("div")((function(e){var t=e.theme;return(0,l.Z)({width:480,margin:"auto",display:"flex",minHeight:"100vh",justifyContent:"center",padding:t.spacing(15,2)},t.breakpoints.up("md"),{flexShrink:0,padding:t.spacing(30,8,0,8)})})),g=n(46417);function v(e){var t=e.children,n=e.illustration;e.title;return(0,g.jsxs)(f,{children:[(0,g.jsx)(a.T,{sx:{zIndex:9,position:"absolute",mt:{xs:1.5,md:5},ml:{xs:2,md:5}}}),(0,g.jsxs)(p,{children:[(0,g.jsx)(r.Z,{variant:"h3",sx:{mb:10,maxWidth:480,textAlign:"center"}}),(0,g.jsx)(o.Z,{disabledEffect:!0,visibleByDefault:!0,alt:"auth",src:n||"/assets/illustrations/illustration_dashboard.png",sx:{maxWidth:720}}),(0,g.jsx)(h,{})]}),(0,g.jsx)(m,{children:(0,g.jsxs)(i.Z,{sx:{width:1},children:[" ",t," "]})})]})}},47519:function(e,t,n){"use strict";n.d(t,{G:function(){return r},F:function(){return i}});var r=[{label:"English",value:"en",systemValue:{},icon:"/assets/icons/flags/ic_flag_us.svg"},{label:"French",value:"fr",systemValue:{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Montrer le chemin"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"Aller \xe0 la premi\xe8re page":"last"===e?"Aller \xe0 la derni\xe8re page":"next"===e?"Aller \xe0 la page suivante":"Aller \xe0 la page pr\xe9c\xe9dente"},labelRowsPerPage:"Lignes par page :",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," sur ").concat(-1!==r?r:"plus que ".concat(n))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e," Etoile").concat(1!==e?"s":"")},emptyLabelText:"Vide"}},MuiAutocomplete:{defaultProps:{clearText:"Vider",closeText:"Fermer",loadingText:"Chargement\u2026",noOptionsText:"Pas de r\xe9sultats",openText:"Ouvrir"}},MuiAlert:{defaultProps:{closeText:"Fermer"}},MuiPagination:{defaultProps:{"aria-label":"navigation de pagination",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Aller \xe0 la ","page ").concat(t):"first"===e?"Aller \xe0 la premi\xe8re page":"last"===e?"Aller \xe0 la derni\xe8re page":"next"===e?"Aller \xe0 la page suivante":"Aller \xe0 la page pr\xe9c\xe9dente"}}}}},icon:"/assets/icons/flags/ic_flag_us.svg"},{label:"Vietnamese",value:"vn",systemValue:{components:{MuiBreadcrumbs:{defaultProps:{expandText:"M\u1edf ra"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"T\u1edbi trang \u0111\u1ea7u ti\xean":"last"===e?"T\u1edbi trang cu\u1ed1i c\xf9ng":"next"===e?"T\u1edbi trang ti\u1ebfp theo":"V\u1ec1 trang tr\u01b0\u1edbc \u0111\xf3"},labelRowsPerPage:"S\u1ed1 h\xe0ng m\u1ed7i trang:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," trong ").concat(-1!==r?r:"nhi\u1ec1u h\u01a1n ".concat(n))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e," sao")},emptyLabelText:"Kh\xf4ng c\xf3 d\u1eef li\u1ec7u"}},MuiAutocomplete:{defaultProps:{clearText:"X\xf3a",closeText:"\u0110\xf3ng",loadingText:"\u0110ang t\u1ea3i\u2026",noOptionsText:"Kh\xf4ng c\xf3 l\u1ef1a ch\u1ecdn n\xe0o",openText:"M\u1edf"}},MuiAlert:{defaultProps:{closeText:"\u0110\xf3ng"}},MuiPagination:{defaultProps:{"aria-label":"Thanh \u0111i\u1ec1u khi\u1ec3n trang",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"T\u1edbi ","trang ").concat(t):"first"===e?"T\u1edbi trang \u0111\u1ea7u ti\xean":"last"===e?"T\u1edbi trang cu\u1ed1i c\xf9ng":"next"===e?"T\u1edbi trang ti\u1ebfp theo":"V\u1ec1 trang tr\u01b0\u1edbc \u0111\xf3"}}}}},icon:"/assets/icons/flags/ic_flag_us.svg"},{label:"Chinese",value:"cn",systemValue:{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\u5c55\u5f00"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"\u7b2c\u4e00\u9875":"last"===e?"\u6700\u540e\u4e00\u9875":"next"===e?"\u4e0b\u4e00\u9875":"\u4e0a\u4e00\u9875"},labelRowsPerPage:"\u6bcf\u9875\u884c\u6570:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"\u7b2c ".concat(t," \u6761\u5230\u7b2c ").concat(n," \u6761\uff0c").concat(-1!==r?"\u5171 ".concat(r," \u6761"):"\u81f3\u5c11 ".concat(n," \u6761"))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e," \u9897\u661f")},emptyLabelText:"\u65e0\u6807\u7b7e"}},MuiAutocomplete:{defaultProps:{clearText:"\u6e05\u7a7a",closeText:"\u5173\u95ed",loadingText:"\u52a0\u8f7d\u4e2d\u2026\u2026",noOptionsText:"\u6ca1\u6709\u53ef\u7528\u9009\u9879",openText:"\u6253\u5f00"}},MuiAlert:{defaultProps:{closeText:"\u5173\u95ed"}}}},icon:"/assets/icons/flags/ic_flag_us.svg"},{label:"Arabic (Sudan)",value:"ar",systemValue:{components:{MuiBreadcrumbs:{defaultProps:{expandText:"\u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u0645\u0633\u0627\u0631"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:function(e){return"first"===e?"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0623\u0648\u0644\u0649":"last"===e?"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0623\u062e\u064a\u0631\u0629":"next"===e?"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u062a\u0627\u0644\u064a\u0629":"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629"},labelRowsPerPage:"\u0639\u062f\u062f \u0627\u0644\u0635\u0641\u0648\u0641 \u0641\u064a \u0627\u0644\u0635\u0641\u062d\u0629:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," \u0645\u0646 ").concat(-1!==r?r:" \u0623\u0643\u062b\u0631 \u0645\u0646".concat(n))}}},MuiRating:{defaultProps:{getLabelText:function(e){return"".concat(e," ").concat(1!==e?"\u0646\u062c\u0648\u0645":"\u0646\u062c\u0645\u0629")},emptyLabelText:"\u0641\u0627\u0631\u063a"}},MuiAutocomplete:{defaultProps:{clearText:"\u0645\u0633\u062d",closeText:"\u0625\u063a\u0644\u0627\u0642",loadingText:"\u062c\u0627\u0631 \u0627\u0644\u062a\u062d\u0645\u064a\u0644...",noOptionsText:"\u0644\u0627 \u064a\u0648\u062c\u062f \u062e\u064a\u0627\u0631\u0627\u062a",openText:"\u0641\u062a\u062d"}},MuiAlert:{defaultProps:{closeText:"\u0625\u063a\u0644\u0627\u0642"}},MuiPagination:{defaultProps:{"aria-label":"\u0627\u0644\u062a\u0646\u0642\u0644 \u0639\u0628\u0631 \u0627\u0644\u0635\u0641\u062d\u0627\u062a",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 "," \u0635\u0641\u062d\u0629 ").concat(t):"first"===e?"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0623\u0648\u0644\u0649":"last"===e?"\u0627\u0646\u062a\u0642\u0644 \u0627\u0644\u064a \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0623\u062e\u064a\u0631\u0629":"next"===e?"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u062a\u0627\u0644\u064a\u0629":"\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629"}}}}},icon:"/assets/icons/flags/ic_flag_us.svg"}],i=r[0]},82950:function(e,t,n){"use strict";n.d(t,{ZP:function(){return S},nt:function(){return y}});var r=n(47519),i=n(29439),a=n(4942),o=n(47313),s=n(10412);function l(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],i=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var o=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!(t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages))||!(!o(r,e)||i&&!o(a,e))))}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return c("i18n.languages were undefined or empty",t.languages),!0;var r=void 0!==t.options.ignoreJSONStructure;return r?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):f(e,t,n)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=(0,o.useContext)(s.OO)||{},a=r.i18n,l=r.defaultNS,u=n||a||(0,s.nI)();if(u&&!u.reportNamespaces&&(u.reportNamespaces=new s.zv),!u){c("You will need to pass in an i18next instance by using initReactI18next");var f=function(e){return Array.isArray(e)?e[e.length-1]:e},h=[f,{},!1];return h.t=f,h.i18n={},h.ready=!1,h}u.options.react&&void 0!==u.options.react.wait&&c("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var v=m(m(m({},(0,s.JP)()),u.options.react),t),y=v.useSuspense,_=v.keyPrefix,b=e||l||u.options&&u.options.defaultNS;b="string"===typeof b?[b]:b||["translation"],u.reportNamespaces.addUsedNamespaces&&u.reportNamespaces.addUsedNamespaces(b);var x=(u.isInitialized||u.initializedStoreOnce)&&b.every((function(e){return p(e,u,v)}));function E(){return u.getFixedT(null,"fallback"===v.nsMode?b:b[0],_)}var S=(0,o.useState)(E),w=(0,i.Z)(S,2),C=w[0],T=w[1],A=b.join(),k=g(A),D=(0,o.useRef)(!0);(0,o.useEffect)((function(){var e=v.bindI18n,t=v.bindI18nStore;function n(){D.current&&T(E)}return D.current=!0,x||y||d(u,b,(function(){D.current&&T(E)})),x&&k&&k!==A&&D.current&&T(E),e&&u&&u.on(e,n),t&&u&&u.store.on(t,n),function(){D.current=!1,e&&u&&e.split(" ").forEach((function(e){return u.off(e,n)})),t&&u&&t.split(" ").forEach((function(e){return u.store.off(e,n)}))}}),[u,A]);var O=(0,o.useRef)(!0);(0,o.useEffect)((function(){D.current&&!O.current&&T(E),O.current=!1}),[u,_]);var I=[C,u,x];if(I.t=C,I.i18n=u,I.ready=x,x)return I;if(!x&&!y)return I;throw new Promise((function(e){d(u,b,(function(){e()}))}))}(),t=e.i18n,n=e.t,a=(0,v.K$)().onChangeDirectionByLang,l="undefined"!==typeof window?localStorage.getItem("i18nextLng"):"";return{onChangeLang:function(e){t.changeLanguage(e),a(e)},translate:function(e,t){return n(e,t)},currentLang:r.G.find((function(e){return e.value===l}))||r.F,allLangs:r.G}}var _=n(62111),b=n(49494),x=n(26159),E=n(46417);function S(e){var t=e.children,n=(0,_.Z)(),r=y().currentLang,i=(0,b.Z)(n,r.systemValue);return(0,E.jsxs)(x.Z,{theme:i,children:[" ",t," "]})}},99914:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return A}});var r=n(65964),i=n(62463),a=n(16611),o=n(74165),s=n(1413),l=n(15861),u=n(29439),c=n(47313),d=n(3463),f=n(2135),p=n(75627),h=n(62563),m=n(79136),g=n(59017),v=n(18104),y=n(77449),_=n(32703),b=n(48175),x=n(12865),E=n(8730),S=n(50734),w=n(46417);function C(){var e=(0,x.E)().login,t=(0,c.useState)(!1),n=(0,u.Z)(t,2),r=n[0],a=n[1],C=d.Ry().shape({email:d.Z_().email("Email must be a valid email address").required("Email is required"),password:d.Z_().required("Password is required")}),T=(0,p.cI)({resolver:(0,h.X)(C),defaultValues:{email:"",password:""}}),A=T.reset,k=T.setError,D=T.handleSubmit,O=T.formState,I=O.errors,R=O.isSubmitting,N=O.isSubmitSuccessful,M=function(){var t=(0,l.Z)((0,o.Z)().mark((function t(n){return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e(n.email,n.password);case 3:console.log("logged in"),t.next=11;break;case 6:t.prev=6,t.t0=t.catch(0),console.error(t.t0),A(),k("afterSubmit",(0,s.Z)((0,s.Z)({},t.t0),{},{message:t.t0.message}));case 11:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(e){return t.apply(this,arguments)}}();return(0,w.jsxs)(S.ZP,{methods:T,onSubmit:D(M),children:[(0,w.jsxs)(i.Z,{spacing:3,children:[!!I.afterSubmit&&(0,w.jsx)(m.Z,{severity:"error",children:I.afterSubmit.message}),(0,w.jsx)(S.au,{name:"email",label:"Email address or UserID"}),(0,w.jsx)(S.au,{name:"password",label:"Password",type:r?"text":"password",InputProps:{endAdornment:(0,w.jsx)(g.Z,{position:"end",children:(0,w.jsx)(v.Z,{onClick:function(){return a(!r)},edge:"end",children:(0,w.jsx)(E.Z,{icon:r?"eva:eye-fill":"eva:eye-off-fill"})})})}})]}),(0,w.jsx)(i.Z,{alignItems:"flex-end",sx:{my:2},children:(0,w.jsx)(y.Z,{to:b.EE.resetPassword,component:f.rU,variant:"body2",color:"inherit",underline:"always",children:"Forgot password?"})}),(0,w.jsx)(_.Z,{fullWidth:!0,color:"inherit",size:"large",type:"submit",variant:"contained",loading:N||R,sx:{bgcolor:"text.primary",color:function(e){return"light"===e.palette.mode?"common.white":"grey.800"},"&:hover":{bgcolor:"text.primary",color:function(e){return"light"===e.palette.mode?"common.white":"grey.800"}}},children:"Login"})]})}function T(){return(0,w.jsxs)(a.Z,{children:[(0,w.jsx)(i.Z,{spacing:2,sx:{mb:5,position:"relative"}}),(0,w.jsx)(C,{})]})}function A(){return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(r.ql,{children:(0,w.jsx)("title",{children:" Login | Distinct ai"})}),(0,w.jsx)(T,{})]})}},43204:function(e,t,n){"use strict";n.d(t,{lh:function(){return m}});var r=n(74165),i=n(1413),a=n(15861),o=n(20271),s=n(90573),l=n(80827),u=n(5239),c=n(36287),d=(0,o.ZF)(c.Dc),f=(0,s.ad)(d),p=(0,l.oM)({name:"cardRequest",initialState:{isLoading:!1,error:null,cardRequest:null},reducers:{startLoading:function(e){e.isLoading=!0},hasError:function(e,t){e.isLoading=!1,e.error=t.payload},fetchSuccess:function(e,t){e.cardRequest=t.payload,e.isLoading=!1,e.error=null}}});t.ZP=p.reducer;var h=p.actions;h.hasError,h.startLoading,h.fetchSuccess,h.resetState;function m(){return(0,a.Z)((0,r.Z)().mark((function e(){var t,n,a,o;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,u.WI)(p.actions.startLoading()),e.prev=1,t=(0,s.hJ)(f,"cardRequests"),n=(0,s.IO)(t),e.next=6,(0,s.PL)(n);case 6:a=e.sent,o=a.docs.map((function(e){return(0,i.Z)({id:e.id},e.data())})),console.log({cardRequests:o}),(0,u.WI)(p.actions.fetchSuccess(o)),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),(0,u.WI)(p.actions.hasError(e.t0.message));case 15:case"end":return e.stop()}}),e,null,[[1,12]])})))}},50223:function(e,t,n){"use strict";n.d(t,{u2:function(){return m}});var r=n(74165),i=n(15861),a=n(80827),o=n(90573),s=n(89377),l=n(20271),u=n(36287),c=n(5239),d=(0,l.ZF)(u.Dc),f=(0,o.ad)(d),p=(0,a.oM)({name:"newcard",initialState:{isLoading:!1,error:null,success:!1},reducers:{startLoading:function(e){e.isLoading=!0},hasError:function(e,t){e.isLoading=!1,e.error=t.payload},success:function(e){e.isLoading=!1,e.success=!0}}});t.ZP=p.reducer;var h=p.actions;h.hasError,h.startLoading,h.handleClose;function m(e){return(0,i.Z)((0,r.Z)().mark((function t(){var n,i,a;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(0,c.WI)(p.actions.startLoading()),t.prev=1,n=(0,s.v0)(),i=n.currentUser.uid,a=(0,o.JU)(f,"cardRequests","".concat(i)),t.next=7,(0,o.pl)(a,e);case 7:(0,c.WI)(p.actions.success()),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),(0,c.WI)(p.actions.hasError(t.t0.message));case 13:case"end":return t.stop()}}),t,null,[[1,10]])})))}},59776:function(e,t,n){"use strict";n.d(t,{_X:function(){return v}});var r=n(74165),i=n(15861),a=n(80827),o=n(90573),s=n(95162),l=n(20271),u=n(36287),c=n(5239),d=n(69904),f=(0,l.ZF)(u.Dc),p=(0,o.ad)(f),h={isLoading:!1,error:null,success:!1,bankingRecentTransitions:d.DX},m=(0,a.oM)({name:"create-trasaction",initialState:h,reducers:{startLoading:function(e){e.isLoading=!0},hasError:function(e,t){e.isLoading=!1,e.error=t.payload},success:function(e,t){e.isLoading=!1,e.success=!0,e.bankingRecentTransitions=t.payload}}});t.ZP=m.reducer;var g=m.actions;g.hasError,g.startLoading,g.handleClose;function v(e){return(0,i.Z)((0,r.Z)().mark((function t(){var n,i,a;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(0,c.WI)(m.actions.startLoading()),t.prev=1,n=(0,s.Z)(),i=n,a=(0,o.JU)(p,"transactions","".concat(i)),t.next=7,(0,o.pl)(a,e);case 7:(0,c.WI)(m.actions.success()),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),(0,c.WI)(m.actions.hasError(t.t0.message));case 13:case"end":return t.stop()}}),t,null,[[1,10]])})))}},78546:function(e,t,n){"use strict";n.d(t,{f1:function(){return _}});var r=n(74165),i=n(1413),a=n(15861),o=n(93433),s=n(80827),l=n(90573),u=n(89377),c=n(20271),d=n(36287),f=n(5239),p=n(69904),h=(0,c.ZF)(d.Dc),m=(0,l.ad)(h),g={isLoading:!1,error:null,bankingRecentTransitions:p.DX},v=(0,s.oM)({name:"fetch-trasaction",initialState:g,reducers:{startLoading:function(e){e.isLoading=!0},hasError:function(e,t){e.isLoading=!1,e.error=t.payload},success:function(e,t){e.isLoading=!1,e.bankingRecentTransitions=[].concat((0,o.Z)(t.payload),(0,o.Z)(p.DX))}}});t.ZP=v.reducer;var y=v.actions;y.hasError,y.startLoading,y.handleClose;function _(){return(0,a.Z)((0,r.Z)().mark((function e(){var t,n,a,o,s,c,d;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,f.WI)(v.actions.startLoading()),e.prev=1,t=(0,u.v0)(),n=t.currentUser.uid,a=(0,l.hJ)(m,"transactions"),o=(0,l.IO)(a,(0,l.ar)("id","==",n)),e.next=8,(0,l.PL)(o);case 8:s=e.sent,c=s.docs.map((function(e){return(0,i.Z)({id:e.id},e.data())})),d=c.sort((function(e,t){return new Date(t.date)-new Date(e.date)})),(0,f.WI)(v.actions.success(d)),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(1),(0,f.WI)(v.actions.hasError(e.t0.message));case 17:case"end":return e.stop()}}),e,null,[[1,14]])})))}},26981:function(e,t,n){"use strict";n.d(t,{me:function(){return h}});var r=n(74165),i=n(15861),a=n(20271),o=n(90573),s=n(80827),l=n(5239),u=n(36287),c=(0,a.ZF)(u.Dc),d=(0,o.ad)(c),f=(0,s.oM)({name:"me",initialState:{isLoading:!1,error:null,cardRequest:null},reducers:{startLoading:function(e){e.isLoading=!0},hasError:function(e,t){e.isLoading=!1,e.error=t.payload},fetchSuccess:function(e,t){e.cardRequest=t.payload,e.isLoading=!1,e.error=null}}});t.ZP=f.reducer;var p=f.actions;p.hasError,p.startLoading,p.fetchSuccess,p.resetState;function h(e){return(0,i.Z)((0,r.Z)().mark((function t(){var n,i,a;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(0,l.WI)(f.actions.startLoading()),t.prev=1,n=(0,o.JU)(d,"users",e),t.next=5,(0,o.QT)(n);case 5:return i=t.sent,a=i.data(),console.log({userData:a}),(0,l.WI)(f.actions.fetchSuccess(a)),t.abrupt("return",{userData:a});case 12:t.prev=12,t.t0=t.catch(1),(0,l.WI)(f.actions.hasError(t.t0.message));case 15:case"end":return t.stop()}}),t,null,[[1,12]])})))}},5239:function(e,t,n){"use strict";n.d(t,{WI:function(){return j},Dj:function(){return U},h:function(){return z},I0:function(){return V},v9:function(){return G}});var r=n(80827),i=n(85554),a="persist:",o="persist/FLUSH",s="persist/REHYDRATE",l="persist/PAUSE",u="persist/PERSIST",c="persist/PURGE",d="persist/REGISTER";function f(e){return f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t,n,r){r.debug;var i=function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var C=n(9038);function T(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:O,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case d:return k({},e,{registry:[].concat(T(e.registry),[t.key])});case s:var n=e.registry.indexOf(t.key),r=T(e.registry);return r.splice(n,1),k({},e,{registry:r,bootstrapped:0===r.length});default:return e}};var R=n(20806),N=n(50223),M=n(43204),P=n(26981),L=n(59776),F=n(78546),B={key:"root",storage:R.Z,keyPrefix:"redux-",whitelist:[]},Z=(0,C.UY)({saveCardRequest:N.ZP,fetchCardRequests:M.ZP,me:P.ZP,createTransaction:L.ZP,fetchtransactions:F.ZP}),z=(0,r.xC)({reducer:function(e,t){var n=void 0!==e.version?e.version:-1,r=(e.debug,void 0===e.stateReconciler?m:e.stateReconciler),i=e.getStoredState||y,d=void 0!==e.timeout?e.timeout:5e3,f=null,p=!1,h=!0,v=function(e){return e._persist.rehydrated&&f&&!h&&f.update(e),e};return function(m,y){var _=m||{},x=_._persist,S=w(_,["_persist"]);if(y.type===u){var C=!1,T=function(t,n){C||(y.rehydrate(e.key,t,n),C=!0)};if(d&&setTimeout((function(){!C&&T(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))}),d),h=!1,f||(f=g(e)),x)return E({},t(S,y),{_persist:x});if("function"!==typeof y.rehydrate||"function"!==typeof y.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return y.register(e.key),i(e).then((function(t){(e.migrate||function(e,t){return Promise.resolve(e)})(t,n).then((function(e){T(e)}),(function(e){T(void 0,e)}))}),(function(e){T(void 0,e)})),E({},t(S,y),{_persist:{version:n,rehydrated:!1}})}if(y.type===c)return p=!0,y.result(function(e){var t=e.storage,n="".concat(void 0!==e.keyPrefix?e.keyPrefix:a).concat(e.key);return t.removeItem(n,b)}(e)),E({},t(S,y),{_persist:x});if(y.type===o)return y.result(f&&f.flush()),E({},t(S,y),{_persist:x});if(y.type===l)h=!0;else if(y.type===s){if(p)return E({},S,{_persist:E({},x,{rehydrated:!0})});if(y.key===e.key){var A=t(S,y),k=y.payload,D=E({},!1!==r&&void 0!==k?r(k,m,A,e):A,{_persist:E({},x,{rehydrated:!0})});return v(D)}}if(!x)return t(m,y);var O=t(S,y);return O===S?m:v(E({},O,{_persist:x}))}}(B,Z),middleware:function(e){return e({serializableCheck:!1,immutableCheck:!1})}}),U=function(e,t,n){var r=n||!1,i=(0,C.MT)(I,O,t&&t.enhancer?t.enhancer:void 0),a=function(e){i.dispatch({type:d,key:e})},f=function(t,n,a){var o={type:s,payload:n,err:a,key:t};e.dispatch(o),i.dispatch(o),r&&p.getState().bootstrapped&&(r(),r=!1)},p=k({},i,{purge:function(){var t=[];return e.dispatch({type:c,result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:o,result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:l})},persist:function(){e.dispatch({type:u,register:a,rehydrate:f})}});return t&&t.manualPersist||p.persist(),p}(z),j=z.dispatch,G=i.v9,V=function(){return(0,i.I0)()}},48175:function(e,t,n){"use strict";function r(e,t){return"".concat(e).concat(t)}n.d(t,{EE:function(){return o},L4:function(){return u},ko:function(){return s},vB:function(){return l}});var i="/auth",a="/dashboard",o={root:i,login:r(i,"/login"),register:r(i,"/register"),loginUnprotected:r(i,"/login-unprotected"),registerUnprotected:r(i,"/register-unprotected"),verify:r(i,"/verify"),resetPassword:r(i,"/reset-password"),newPassword:r(i,"/new-password")},s={comingSoon:"/coming-soon",maintenance:"/maintenance",pricing:"/pricing",payment:"/payment",about:"/about-us",contact:"/contact-us",faqs:"/faqs",page403:"/403",page404:"/404",page500:"/500",components:"/components"},l={root:a,kanban:r(a,"#"),calendar:r(a,"#"),fileManager:r(a,"#"),permissionDenied:r(a,"/permission-denied"),blank:r(a,"/blank"),general:{app:r(a,"/app"),ecommerce:r(a,"#"),analytics:r(a,"#"),banking:r(a,"#"),booking:r(a,"#"),file:r(a,"#")},cards:{root:r(a,"/cards"),new:r(a,"/cards/new")},user:{root:r(a,"#"),new:r(a,"#"),list:r(a,"#"),cards:r(a,"#"),profile:r(a,"#"),account:r(a,"#"),edit:r(a,"#"),demoEdit:r(a,"#")},eCommerce:{root:r(a,"#"),shop:r(a,"#"),list:r(a,"#"),checkout:r(a,"#"),new:r(a,"#"),view:r(a,"#"),edit:r(a,"#"),demoEdit:r(a,"#"),demoView:r(a,"#")},invoice:{root:r(a,"#"),list:r(a,"#"),new:r(a,"#"),view:r(a,"#"),edit:r(a,"#"),demoEdit:r(a,"#"),demoView:r(a,"#")},blog:{root:r(a,"#"),posts:r(a,"#"),new:r(a,"#"),view:r(a,"#"),demoView:r(a,"#")}},u="#"},81699:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),i=n(17551),a={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24"},o={common:{black:"#000",white:"#fff"},primary:{lighter:"#C8FACD",light:"#5BE584",main:"#00AB55",dark:"#007B55",darker:"#005249",contrastText:"#fff"},secondary:{lighter:"#D6E4FF",light:"#84A9FF",main:"#3366FF",dark:"#1939B7",darker:"#091A7A",contrastText:"#fff"},info:{lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#fff"},success:{lighter:"#D8FBDE",light:"#86E8AB",main:"#36B37E",dark:"#1B806A",darker:"#0A5554",contrastText:"#fff"},warning:{lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:a[800]},error:{lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#fff"},grey:a,divider:(0,i.Fq)(a[500],.24),action:{hover:(0,i.Fq)(a[500],.08),selected:(0,i.Fq)(a[500],.16),disabled:(0,i.Fq)(a[500],.8),disabledBackground:(0,i.Fq)(a[500],.24),focus:(0,i.Fq)(a[500],.24),hoverOpacity:.08,disabledOpacity:.48}};function s(e){var t=(0,r.Z)((0,r.Z)({},o),{},{mode:"light",text:{primary:a[800],secondary:a[600],disabled:a[500]},background:{paper:"#fff",default:"#fff",neutral:a[200]},action:(0,r.Z)((0,r.Z)({},o.action),{},{active:a[600]})}),n=(0,r.Z)((0,r.Z)({},o),{},{mode:"dark",text:{primary:"#fff",secondary:a[500],disabled:a[600]},background:{paper:a[800],default:a[900],neutral:(0,i.Fq)(a[500],.16)},action:(0,r.Z)((0,r.Z)({},o.action),{},{active:a[500]})});return"light"===e?t:n}},69043:function(e,t,n){"use strict";n.d(t,{cv:function(){return i}});var r=n(1413);function i(e){return Math.round(16*parseFloat(e))}function a(e){return"".concat(e/16,"rem")}function o(e){var t=e.sm,n=e.md,r=e.lg;return{"@media (min-width:600px)":{fontSize:a(t)},"@media (min-width:900px)":{fontSize:a(n)},"@media (min-width:1200px)":{fontSize:a(r)}}}var s={fontFamily:"Public Sans, sans-serif",fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,h1:(0,r.Z)({fontWeight:800,lineHeight:1.25,fontSize:a(40)},o({sm:52,md:58,lg:64})),h2:(0,r.Z)({fontWeight:800,lineHeight:64/48,fontSize:a(32)},o({sm:40,md:44,lg:48})),h3:(0,r.Z)({fontWeight:700,lineHeight:1.5,fontSize:a(24)},o({sm:26,md:30,lg:32})),h4:(0,r.Z)({fontWeight:700,lineHeight:1.5,fontSize:a(20)},o({sm:20,md:24,lg:24})),h5:(0,r.Z)({fontWeight:700,lineHeight:1.5,fontSize:a(18)},o({sm:19,md:20,lg:20})),h6:(0,r.Z)({fontWeight:700,lineHeight:28/18,fontSize:a(17)},o({sm:18,md:18,lg:18})),subtitle1:{fontWeight:600,lineHeight:1.5,fontSize:a(16)},subtitle2:{fontWeight:600,lineHeight:22/14,fontSize:a(14)},body1:{lineHeight:1.5,fontSize:a(16)},body2:{lineHeight:22/14,fontSize:a(14)},caption:{lineHeight:1.5,fontSize:a(12)},overline:{fontWeight:700,lineHeight:1.5,fontSize:a(12),textTransform:"uppercase"},button:{fontWeight:700,lineHeight:24/14,fontSize:a(14),textTransform:"capitalize"}};t.ZP=s},50769:function(e,t,n){"use strict";n.d(t,{IW:function(){return l},Ls:function(){return i},U3:function(){return s},XK:function(){return o},v3:function(){return a}});var r=n(17551);function i(e){var t=(null===e||void 0===e?void 0:e.color)||"#000000",n=(null===e||void 0===e?void 0:e.blur)||6,i=(null===e||void 0===e?void 0:e.opacity)||.8,a=null===e||void 0===e?void 0:e.imgUrl;return a?{position:"relative",backgroundImage:"url(".concat(a,")"),"&:before":{position:"absolute",top:0,left:0,zIndex:9,content:'""',width:"100%",height:"100%",backdropFilter:"blur(".concat(n,"px)"),WebkitBackdropFilter:"blur(".concat(n,"px)"),backgroundColor:(0,r.Fq)(t,i)}}:{backdropFilter:"blur(".concat(n,"px)"),WebkitBackdropFilter:"blur(".concat(n,"px)"),backgroundColor:(0,r.Fq)(t,i)}}function a(e){var t=(null===e||void 0===e?void 0:e.direction)||"to bottom",n=null===e||void 0===e?void 0:e.startColor,r=null===e||void 0===e?void 0:e.endColor,i=null===e||void 0===e?void 0:e.imgUrl,a=null===e||void 0===e?void 0:e.color;return i?{background:"linear-gradient(".concat(t,", ").concat(n||a,", ").concat(r||a,"), url(").concat(i,")"),backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center"}:{background:"linear-gradient(".concat(t,", ").concat(n,", ").concat(r,")")}}function o(e){return{background:"-webkit-linear-gradient(".concat(e,")"),WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}var s={msOverflowStyle:"none",scrollbarWidth:"none",overflowY:"scroll","&::-webkit-scrollbar":{display:"none"}},l={msOverflowStyle:"none",scrollbarWidth:"none",overflowX:"scroll","&::-webkit-scrollbar":{display:"none"}}},76221:function(e,t,n){"use strict";n.d(t,{FK:function(){return a},e_:function(){return o},f2:function(){return s},oe:function(){return u},v1:function(){return l}});var r=n(31733),i=n.n(r);function a(e){return i()(e).format()}function o(e){return c(e?i()(e).format("$0,0.00"):"",".00")}function s(e){return c(e?i()(Number(e)/100).format("0.0%"):"",".0")}function l(e){return c(e?i()(e).format("0.00a"):"",".00")}function u(e){return c(e?i()(e).format("0.0 b"):"",".0")}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".00",n=e.includes(t);return n?e.replace(t,""):e}},93800:function(e,t,n){"use strict";var r=n(54787);r.configure({languages:["javascript","jsx","sh","bash","html","scss","css","json"]}),"undefined"!==typeof window&&(window.hljs=r)},20617:function(e,t,n){"use strict";n.d(t,{Z:function(){return ie}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?c(b,--y):0,g--,10===_&&(g=1,m--),_}function w(){return _=y2||k(_)>3?"":" "}function N(e,t){for(;--t&&w()&&!(_<48||_>102||_>57&&_<65||_>70&&_<97););return A(e,T()+(t<6&&32==C()&&32==w()))}function M(e){for(;w();)switch(_){case e:return y;case 34:case 39:34!==e&&39!==e&&M(_);break;case 40:41===e&&M(e);break;case 92:w()}return y}function P(e,t){for(;w()&&e+_!==57&&(e+_!==84||47!==C()););return"/*"+A(t,y-1)+"*"+a(47===e?e:w())}function L(e){for(;!k(C());)w();return A(e,y)}var F="-ms-",B="-moz-",Z="-webkit-",z="comm",U="rule",j="decl",G="@keyframes";function V(e,t){for(var n="",r=p(e),i=0;i6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+B+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?H(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,f(e)-3-(~u(e,"!important")&&10))){case 107:return l(e,":",":"+Z)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+(45===c(e,14)?"inline-":"")+"box$3$1"+Z+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return Z+e+F+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+F+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+F+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Z+e+F+e+e}return e}function Y(e){return O(W("",null,null,null,[""],e=D(e),0,[0],e))}function W(e,t,n,r,i,o,s,c,d){for(var p=0,m=0,g=s,v=0,y=0,_=0,b=1,x=1,E=1,A=0,k="",D=i,O=o,M=r,F=k;x;)switch(_=A,A=w()){case 40:if(108!=_&&58==F.charCodeAt(g-1)){-1!=u(F+=l(I(A),"&","&\f"),"&\f")&&(E=-1);break}case 34:case 39:case 91:F+=I(A);break;case 9:case 10:case 13:case 32:F+=R(_);break;case 92:F+=N(T()-1,7);continue;case 47:switch(C()){case 42:case 47:h(K(P(w(),T()),t,n),d);break;default:F+="/"}break;case 123*b:c[p++]=f(F)*E;case 125*b:case 59:case 0:switch(A){case 0:case 125:x=0;case 59+m:y>0&&f(F)-g&&h(y>32?$(F+";",r,n,g-1):$(l(F," ","")+";",r,n,g-2),d);break;case 59:F+=";";default:if(h(M=X(F,t,n,p,m,i,c,k,D=[],O=[],g),o),123===A)if(0===m)W(F,t,M,M,D,o,g,c,O);else switch(v){case 100:case 109:case 115:W(e,M,M,r&&h(X(e,M,M,0,0,i,c,k,i,D=[],g),O),i,O,g,c,r?D:O);break;default:W(F,M,M,M,[""],O,0,c,O)}}p=m=y=0,b=E=1,k=F="",g=s;break;case 58:g=1+f(F),y=_;default:if(b<1)if(123==A)--b;else if(125==A&&0==b++&&125==S())continue;switch(F+=a(A),A*b){case 38:E=m>0?1:(F+="\f",-1);break;case 44:c[p++]=(f(F)-1)*E,E=1;break;case 64:45===C()&&(F+=I(w())),v=C(),m=g=f(k=F+=L(T())),A++;break;case 45:45===_&&2==f(F)&&(b=0)}}return o}function X(e,t,n,r,a,o,u,c,f,h,m){for(var g=a-1,v=0===a?o:[""],y=p(v),_=0,b=0,E=0;_0?v[S]+" "+w:l(w,/&\f/g,v[S])))&&(f[E++]=C);return x(e,t,n,0===a?U:c,f,h,m)}function K(e,t,n){return x(e,t,n,z,a(_),d(e,2,-2),0)}function $(e,t,n,r){return x(e,t,n,j,d(e,0,r),d(e,r+1,-1),r)}var Q=function(e,t,n){for(var r=0,i=0;r=i,i=C(),38===r&&12===i&&(t[n]=1),!k(i);)w();return A(e,y)},J=function(e,t){return O(function(e,t){var n=-1,r=44;do{switch(k(r)){case 0:38===r&&12===C()&&(t[n]=1),e[n]+=Q(y-1,t,n);break;case 2:e[n]+=I(r);break;case 4:if(44===r){e[++n]=58===C()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=a(r)}}while(r=w());return e}(D(e),t))},ee=new WeakMap,te=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ee.get(n))&&!r){ee.set(e,!0);for(var i=[],a=J(t,i),o=n.props,s=0,l=0;s-1&&!e.return)switch(e.type){case j:e.return=H(e.value,e.length);break;case G:return V([E(e,{value:l(e.value,"@","@"+Z)})],r);case U:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return V([E(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return V([E(e,{props:[l(t,/:(plac\w+)/,":-webkit-input-$1")]}),E(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),E(e,{props:[l(t,/:(plac\w+)/,F+"input-$1")]})],r)}return""}))}}],ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||re;var a,o,s={},l=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},i={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a=n(91816),o=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!==typeof e},c=(0,a.Z)((function(e){return l(e)?e:e.replace(o,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===i[e]||l(e)||"number"!==typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i>6|192,t[n++]=63&i|128):55296===(64512&i)&&r+1>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},p={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i>2,d=(3&a)<<4|s>>4,f=(15&s)<<2|u>>6,p=63&u;l||(p=64,o||(f=64)),r.push(n[c],n[d],n[f],n[p])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(f(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,r=0;n191&&i<224){var a=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&a)}else if(i>239&&i<365){var o=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(o>>10)),t[r++]=String.fromCharCode(56320+(1023&o))}else{var s=e[n++],l=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&l)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i>4;if(r.push(u),64!==s){var c=o<<4&240|s>>2;if(r.push(c),64!==l){var d=s<<6&192|l;r.push(d)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},h=function(e){return function(e){var t=f(e);return p.encodeByteArray(t,!0)}(e).replace(/\./g,"")},m=function(e){try{return p.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function g(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function v(){return"undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(g())}function y(){var e="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof e&&void 0!==e.id}function _(){return"object"===typeof navigator&&"ReactNative"===navigator.product}function b(){var e=g();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function x(){return"object"===typeof indexedDB}function E(){return new Promise((function(e,t){try{var n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=function(){i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=function(){n=!1},i.onerror=function(){var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(a){t(a)}}))}var S=function(){return function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__},w=function(){try{return S()||function(){if("undefined"!==typeof d){var e={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_MAPBOX_API:"",REACT_APP_FIREBASE_API_KEY:"AIzaSyAflx08ZYq4_JFSB4_xHBa7ytAAlAy33nk",REACT_APP_FIREBASE_AUTH_DOMAIN:"distinct-insights.firebaseapp.com",REACT_APP_FIREBASE_PROJECT_ID:"distinct-insights",REACT_APP_FIREBASE_STORAGE_BUCKET:"distinct-insights.firebasestorage.app",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"328448167545",REACT_APP_FIREBASE_APPID:"1:328448167545:web:f202f504a3e63c7b4b8ea8",REACT_APP_AWS_COGNITO_USER_POOL_ID:"",REACT_APP_AWS_COGNITO_CLIENT_ID:"",REACT_APP_AUTH0_DOMAIN:"",REACT_APP_AUTH0_CLIENT_ID:""}.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0}}()||function(){if("undefined"!==typeof document){var e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(n){return}var t=e&&m(e[1]);return t&&JSON.parse(t)}}()}catch(e){return void console.info("Unable to get __FIREBASE_DEFAULTS__ due to: ".concat(e))}},C=function(e){var t,n;return null===(n=null===(t=w())||void 0===t?void 0:t.emulatorHosts)||void 0===n?void 0:n[e]},T=function(e){var t=C(e);if(t){var n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error("Invalid host ".concat(t," with no separate hostname and port!"));var r=parseInt(t.substring(n+1),10);return"["===t[0]?[t.substring(1,n-1),r]:[t.substring(0,n),r]}},A=function(){var e;return null===(e=w())||void 0===e?void 0:e.config},k=function(e){var t;return null===(t=w())||void 0===t?void 0:t["_".concat(e)]},D=function(){function e(){var t=this;(0,u.Z)(this,e),this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))}return(0,c.Z)(e,[{key:"wrapCallback",value:function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"===typeof e&&(t.promise.catch((function(){})),1===e.length?e(n):e(n,r))}}}]),e}();function O(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');var n=t||"demo-project",r=e.iat||0,i=e.sub||e.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");var a=Object.assign({iss:"https://securetoken.google.com/".concat(n),aud:n,iat:r,exp:r+3600,auth_time:r,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[h(JSON.stringify({alg:"none",type:"JWT"})),h(JSON.stringify(a)),""].join(".")}var I=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e,r,i){var o;return(0,u.Z)(this,n),(o=t.call(this,r)).code=e,o.customData=i,o.name="FirebaseError",Object.setPrototypeOf((0,a.Z)(o),n.prototype),Error.captureStackTrace&&Error.captureStackTrace((0,a.Z)(o),R.prototype.create),o}return(0,c.Z)(n)}((0,l.Z)(Error)),R=function(){function e(t,n,r){(0,u.Z)(this,e),this.service=t,this.serviceName=n,this.errors=r}return(0,c.Z)(e,[{key:"create",value:function(e){var t=(arguments.length<=1?void 0:arguments[1])||{},n="".concat(this.service,"/").concat(e),r=this.errors[e],i=r?N(r,t):"Error",a="".concat(this.serviceName,": ").concat(i," (").concat(n,")."),o=new I(n,a,t);return o}}]),e}();function N(e,t){return e.replace(M,(function(e,n){var r=t[n];return null!=r?String(r):"<".concat(n,"?>")}))}var M=/\{\$([^}]+)}/g;function P(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function L(e,t){if(e===t)return!0;for(var n=Object.keys(e),r=Object.keys(t),i=0,a=n;i0?n:void 0)}function U(e,t){var n=new j(e,t);return n.subscribe.bind(n)}var j=function(){function e(t,n){var r=this;(0,u.Z)(this,e),this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then((function(){t(r)})).catch((function(e){r.error(e)}))}return(0,c.Z)(e,[{key:"next",value:function(e){this.forEachObserver((function(t){t.next(e)}))}},{key:"error",value:function(e){this.forEachObserver((function(t){t.error(e)})),this.close(e)}},{key:"complete",value:function(){this.forEachObserver((function(e){e.complete()})),this.close()}},{key:"subscribe",value:function(e,t,n){var i,a=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(i=function(e,t){if("object"!==typeof e||null===e)return!1;var n,i=(0,r.Z)(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a in e&&"function"===typeof e[a])return!0}}catch(o){i.e(o)}finally{i.f()}return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n}).next&&(i.next=G),void 0===i.error&&(i.error=G),void 0===i.complete&&(i.complete=G);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{a.finalError?i.error(a.finalError):i.complete()}catch(e){}})),this.observers.push(i),o}},{key:"unsubscribeOne",value:function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}},{key:"forEachObserver",value:function(e){if(!this.finalized)for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,r=e.ignoreCase,i=void 0===r||r,a=e.limit,o=e.matchFrom,s=void 0===o?"any":o,l=e.stringify,u=e.trim,d=void 0!==u&&u;return function(e,t){var r=t.inputValue,o=t.getOptionLabel,u=d?r.trim():r;i&&(u=u.toLowerCase()),n&&(u=c(u));var f=u?e.filter((function(e){var t=(l||o)(e);return i&&(t=t.toLowerCase()),n&&(t=c(t)),"start"===s?0===t.indexOf(u):t.indexOf(u)>-1})):e;return"number"===typeof a?f.slice(0,a):f}}function f(e,t){for(var n=0;n0&&!fe,rt=(0,l.Z)((function(e){-1===e?_e.current.focus():Se.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));a.useEffect((function(){te&&Ae>Ne.length-1&&(ke(-1),rt(-1))}),[Ne,te,Ae,rt]);var it=(0,l.Z)((function(e){var t=e.event,n=e.index,r=e.reason,i=void 0===r?"auto":r;if(Oe.current=n,-1===n?_e.current.removeAttribute("aria-activedescendant"):_e.current.setAttribute("aria-activedescendant","".concat(ge,"-option-").concat(n)),ie&&ie(t,-1===n?null:tt[n],i),be.current){var a=be.current.querySelector('[role="option"].Mui-focused');a&&(a.classList.remove("Mui-focused"),a.classList.remove("Mui-focusVisible"));var o=be.current.parentElement.querySelector('[role="listbox"]');if(o)if(-1!==n){var s=be.current.querySelector('[data-option-index="'.concat(n,'"]'));if(s&&(s.classList.add("Mui-focused"),"keyboard"===i&&s.classList.add("Mui-focusVisible"),o.scrollHeight>o.clientHeight&&"mouse"!==i)){var l=s,u=o.clientHeight+o.scrollTop,c=l.offsetTop+l.offsetHeight;c>u?o.scrollTop=c-o.clientHeight:l.offsetTop-l.offsetHeight*(q?1.3:0)1?0:e:t>e?t===e+1&&K?-1:P||Math.abs(r)>1?e:0:t}(),a);if(it({index:l,reason:s,event:n}),c&&"reset"!==r)if(-1===l)_e.current.value=Fe;else{var u=t(tt[l]);_e.current.value=u,0===u.toLowerCase().indexOf(Fe.toLowerCase())&&Fe.length>0&&_e.current.setSelectionRange(Fe.length,u.length)}}})),ot=a.useCallback((function(){if(et){var e=te?Ne[0]:Ne;if(0!==tt.length&&null!=e){if(be.current)if(null==e)Oe.current>=tt.length-1?it({index:tt.length-1}):it({index:Oe.current});else{var t=tt[Oe.current];if(te&&t&&-1!==f(Ne,(function(e){return J(t,e)})))return;var n=f(tt,(function(t){return J(t,e)}));-1===n?at({diff:"reset"}):it({index:n})}}else at({diff:"reset"})}}),[tt.length,!te&&Ne,Z,at,it,et,Fe,te]),st=(0,l.Z)((function(e){(0,u.Z)(be,e),e&&ot()}));a.useEffect((function(){ot()}),[ot]);var lt=function(e){Ye||(We(!0),Qe(!0),oe&&oe(e))},ut=function(e,t){Ye&&(We(!1),re&&re(e,t))},ct=function(e,t,n,r){if(te){if(Ne.length===t.length&&Ne.every((function(e,n){return e===t[n]})))return}else if(Ne===t)return;ne&&ne(e,t,n,r),Me(t)},dt=a.useRef(!1),ft=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",i=n,a=t;if(te){var o=f(a=Array.isArray(Ne)?Ne.slice():[],(function(e){return J(t,e)}));-1===o?a.push(t):"freeSolo"!==r&&(a.splice(o,1),i="removeOption")}Ge(e,a),ct(e,a,i,{option:t}),O||e&&(e.ctrlKey||e.metaKey)||ut(e,i),(!0===y||"touch"===y&&dt.current||"mouse"===y&&!dt.current)&&_e.current.blur()};var pt=function(e,t){if(te){""===Fe&&ut(e,"toggleInput");var n=Ae;-1===Ae?""===Fe&&"previous"===t&&(n=Ne.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===Ne.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===Ne.length||"previous"===t&&-1===n)return-1;var r=Se.querySelector('[data-tag-index="'.concat(n,'"]'));if(r&&r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),ke(n),rt(n)}},ht=function(e){ve.current=!0,Be(""),ae&&ae(e,"","clear"),ct(e,te?[]:null,"clear")},mt=function(e){return function(t){if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Ae&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(ke(-1),rt(-1)),229!==t.which))switch(t.key){case"Home":et&&Y&&(t.preventDefault(),at({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":et&&Y&&(t.preventDefault(),at({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),at({diff:-5,direction:"previous",reason:"keyboard",event:t}),lt(t);break;case"PageDown":t.preventDefault(),at({diff:5,direction:"next",reason:"keyboard",event:t}),lt(t);break;case"ArrowDown":t.preventDefault(),at({diff:1,direction:"next",reason:"keyboard",event:t}),lt(t);break;case"ArrowUp":t.preventDefault(),at({diff:-1,direction:"previous",reason:"keyboard",event:t}),lt(t);break;case"ArrowLeft":pt(t,"previous");break;case"ArrowRight":pt(t,"next");break;case"Enter":if(-1!==Oe.current&&et){var n=tt[Oe.current],r=!!j&&j(n);if(t.preventDefault(),r)return;ft(t,n,"selectOption"),c&&_e.current.setSelectionRange(_e.current.value.length,_e.current.value.length)}else U&&""!==Fe&&!1===Je&&(te&&t.preventDefault(),ft(t,Fe,"createOption","freeSolo"));break;case"Escape":et?(t.preventDefault(),t.stopPropagation(),ut(t,"escape")):E&&(""!==Fe||te&&Ne.length>0)&&(t.preventDefault(),t.stopPropagation(),ht(t));break;case"Backspace":if(te&&!fe&&""===Fe&&Ne.length>0){var i=-1===Ae?Ne.length-1:Ae,a=Ne.slice();a.splice(i,1),ct(t,a,"removeOption",{option:Ne[i]})}}}},gt=function(e){je(!0),ue&&!ve.current&<(e)},vt=function(e){null!==be.current&&be.current.parentElement.contains(document.activeElement)?_e.current.focus():(je(!1),ye.current=!0,ve.current=!1,g&&-1!==Oe.current&&et?ft(e,tt[Oe.current],"blur"):g&&U&&""!==Fe?ft(e,Fe,"blur","freeSolo"):b&&Ge(e,Ne),ut(e,"blur"))},yt=function(e){var t=e.target.value;Fe!==t&&(Be(t),Qe(!1),ae&&ae(e,t,"input")),""===t?k||te||ct(e,null,"clear"):lt(e)},_t=function(e){it({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},bt=function(){dt.current=!0},xt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));ft(e,tt[t],"selectOption"),dt.current=!1},Et=function(e){return function(t){var n=Ne.slice();n.splice(e,1),ct(t,n,"removeOption",{option:Ne[e]})}},St=function(e){Ye?ut(e,"toggleInput"):lt(e)},wt=function(e){e.target.getAttribute("id")!==ge&&e.preventDefault()},Ct=function(){_e.current.focus(),he&&ye.current&&_e.current.selectionEnd-_e.current.selectionStart===0&&_e.current.select(),ye.current=!1},Tt=function(e){""!==Fe&&Ye||St(e)},At=U&&Fe.length>0;At=At||(te?Ne.length>0:null!==Ne);var kt=tt;if(q){new Map;kt=tt.reduce((function(e,t,n){var r=q(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return I&&Ue&&vt(),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)({"aria-owns":nt?"".concat(ge,"-listbox"):null},e,{onKeyDown:mt(e),onMouseDown:wt,onClick:Ct})},getInputLabelProps:function(){return{id:"".concat(ge,"-label"),htmlFor:ge}},getInputProps:function(){return{id:ge,value:Fe,onBlur:vt,onFocus:gt,onChange:yt,onMouseDown:Tt,"aria-activedescendant":et?"":null,"aria-autocomplete":c?"both":"list","aria-controls":nt?"".concat(ge,"-listbox"):void 0,"aria-expanded":nt,autoComplete:"off",ref:_e,autoCapitalize:"none",spellCheck:"false",role:"combobox"}},getClearProps:function(){return{tabIndex:-1,onClick:ht}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:St}},getTagProps:function(e){var t=e.index;return(0,i.Z)({key:t,"data-tag-index":t,tabIndex:-1},!fe&&{onDelete:Et(t)})},getListboxProps:function(){return{role:"listbox",id:"".concat(ge,"-listbox"),"aria-labelledby":"".concat(ge,"-label"),ref:st,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var n=e.index,r=e.option,i=(te?Ne:[Ne]).some((function(e){return null!=e&&J(r,e)})),a=!!j&&j(r);return{key:t(r),tabIndex:-1,role:"option",id:"".concat(ge,"-option-").concat(n),onMouseOver:_t,onClick:xt,onTouchStart:bt,"data-option-index":n,"aria-disabled":a,"aria-selected":i}},id:ge,inputValue:Fe,value:Ne,dirty:At,popupOpen:et,focused:Ue||-1!==Ae,anchorEl:Se,setAnchorEl:we,focusedTag:Ae,groupedOptions:kt}}},31685:function(e,t,n){"use strict";var r=n(47313),i=n(47472),a=n(42780),o=n(49081),s=n(46417);function l(e){return e.substring(2).toLowerCase()}t.Z=function(e){var t=e.children,n=e.disableReactTree,u=void 0!==n&&n,c=e.mouseEvent,d=void 0===c?"onClick":c,f=e.onClickAway,p=e.touchEvent,h=void 0===p?"onTouchEnd":p,m=r.useRef(!1),g=r.useRef(null),v=r.useRef(!1),y=r.useRef(!1);r.useEffect((function(){return setTimeout((function(){v.current=!0}),0),function(){v.current=!1}}),[]);var _=(0,i.Z)(t.ref,g),b=(0,a.Z)((function(e){var t=y.current;y.current=!1;var n=(0,o.Z)(g.current);!v.current||!g.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!n.documentElement.contains(e.target)||g.current.contains(e.target))||!u&&t||f(e))})),x=function(e){return function(n){y.current=!0;var r=t.props[e];r&&r(n)}},E={ref:_};return!1!==h&&(E[h]=x(h)),r.useEffect((function(){if(!1!==h){var e=l(h),t=(0,o.Z)(g.current),n=function(){m.current=!0};return t.addEventListener(e,b),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,b),t.removeEventListener("touchmove",n)}}}),[b,h]),!1!==d&&(E[d]=x(d)),r.useEffect((function(){if(!1!==d){var e=l(d),t=(0,o.Z)(g.current);return t.addEventListener(e,b),function(){t.removeEventListener(e,b)}}}),[b,d]),(0,s.jsx)(r.Fragment,{children:r.cloneElement(t,E)})}},92071:function(e,t,n){"use strict";var r=n(47313),i=n(47472),a=n(49081),o=n(46417),s=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function l(e){var t=[],n=[];return Array.from(e.querySelectorAll(s)).forEach((function(e,r){var i=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;var t=function(t){return e.ownerDocument.querySelector('input[type="radio"]'.concat(t))},n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort((function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex})).map((function(e){return e.node})).concat(t)}function u(){return!0}t.Z=function(e){var t=e.children,n=e.disableAutoFocus,s=void 0!==n&&n,c=e.disableEnforceFocus,d=void 0!==c&&c,f=e.disableRestoreFocus,p=void 0!==f&&f,h=e.getTabbable,m=void 0===h?l:h,g=e.isEnabled,v=void 0===g?u:g,y=e.open,_=r.useRef(),b=r.useRef(null),x=r.useRef(null),E=r.useRef(null),S=r.useRef(null),w=r.useRef(!1),C=r.useRef(null),T=(0,i.Z)(t.ref,C),A=r.useRef(null);r.useEffect((function(){y&&C.current&&(w.current=!s)}),[s,y]),r.useEffect((function(){if(y&&C.current){var e=(0,a.Z)(C.current);return C.current.contains(e.activeElement)||(C.current.hasAttribute("tabIndex")||C.current.setAttribute("tabIndex",-1),w.current&&C.current.focus()),function(){p||(E.current&&E.current.focus&&(_.current=!0,E.current.focus()),E.current=null)}}}),[y]),r.useEffect((function(){if(y&&C.current){var e=(0,a.Z)(C.current),t=function(t){var n=C.current;if(null!==n)if(e.hasFocus()&&!d&&v()&&!_.current){if(!n.contains(e.activeElement)){if(t&&S.current!==t.target||e.activeElement!==S.current)S.current=null;else if(null!==S.current)return;if(!w.current)return;var r=[];if(e.activeElement!==b.current&&e.activeElement!==x.current||(r=m(C.current)),r.length>0){var i,a,o=Boolean((null==(i=A.current)?void 0:i.shiftKey)&&"Tab"===(null==(a=A.current)?void 0:a.key)),s=r[0],l=r[r.length-1];o?l.focus():s.focus()}else n.focus()}}else _.current=!1},n=function(t){A.current=t,!d&&v()&&"Tab"===t.key&&e.activeElement===C.current&&t.shiftKey&&(_.current=!0,x.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);var r=setInterval((function(){"BODY"===e.activeElement.tagName&&t()}),50);return function(){clearInterval(r),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}}),[s,d,p,v,y,m]);var k=function(e){null===E.current&&(E.current=e.relatedTarget),w.current=!0};return(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)("div",{tabIndex:y?0:-1,onFocus:k,ref:b,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:T,onFocus:function(e){null===E.current&&(E.current=e.relatedTarget),w.current=!0,S.current=e.target;var n=t.props.onFocus;n&&n(e)}}),(0,o.jsx)("div",{tabIndex:y?0:-1,onFocus:k,ref:x,"data-testid":"sentinelEnd"})]})}},12871:function(e,t,n){"use strict";var r=n(29439),i=n(47313),a=n(1168),o=n(47472),s=n(2678),l=n(89265),u=n(46417);var c=i.forwardRef((function(e,t){var n=e.children,c=e.container,d=e.disablePortal,f=void 0!==d&&d,p=i.useState(null),h=(0,r.Z)(p,2),m=h[0],g=h[1],v=(0,o.Z)(i.isValidElement(n)?n.ref:null,t);return(0,s.Z)((function(){f||g(function(e){return"function"===typeof e?e():e}(c)||document.body)}),[c,f]),(0,s.Z)((function(){if(m&&!f)return(0,l.Z)(t,m),function(){(0,l.Z)(t,null)}}),[t,m,f]),f?i.isValidElement(n)?i.cloneElement(n,{ref:v}):n:(0,u.jsx)(i.Fragment,{children:m?a.createPortal(n,m):m})}));t.Z=c},53637:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(87462),i=n(43066);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(0,i.Z)(e)?t:(0,r.Z)({},t,{ownerState:(0,r.Z)({},t.ownerState,n)})}},43066:function(e,t){"use strict";t.Z=function(e){return"string"===typeof e}},43107:function(e,t,n){"use strict";function r(e,t){return"function"===typeof e?e(t):e}n.d(t,{Z:function(){return r}})},55229:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(87462),i=n(63366),a=n(47472),o=n(53637),s=n(83061);function l(e){if(void 0===e)return{};var t={};return Object.keys(e).filter((function(t){return!(t.match(/^on[A-Z]/)&&"function"===typeof e[t])})).forEach((function(n){t[n]=e[n]})),t}function u(e){var t=e.getSlotProps,n=e.additionalProps,i=e.externalSlotProps,a=e.externalForwardedProps,o=e.className;if(!t){var u=(0,s.Z)(null==a?void 0:a.className,null==i?void 0:i.className,o,null==n?void 0:n.className),c=(0,r.Z)({},null==n?void 0:n.style,null==a?void 0:a.style,null==i?void 0:i.style),d=(0,r.Z)({},n,a,i);return u.length>0&&(d.className=u),Object.keys(c).length>0&&(d.style=c),{props:d,internalRef:void 0}}var f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};var n={};return Object.keys(e).filter((function(n){return n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n)})).forEach((function(t){n[t]=e[t]})),n}((0,r.Z)({},a,i)),p=l(i),h=l(a),m=t(f),g=(0,s.Z)(null==m?void 0:m.className,null==n?void 0:n.className,o,null==a?void 0:a.className,null==i?void 0:i.className),v=(0,r.Z)({},null==m?void 0:m.style,null==n?void 0:n.style,null==a?void 0:a.style,null==i?void 0:i.style),y=(0,r.Z)({},m,n,h,p);return g.length>0&&(y.className=g),Object.keys(v).length>0&&(y.style=v),{props:y,internalRef:m.ref}}var c=n(43107),d=["elementType","externalSlotProps","ownerState"];function f(e){var t,n=e.elementType,s=e.externalSlotProps,l=e.ownerState,f=(0,i.Z)(e,d),p=(0,c.Z)(s,l),h=u((0,r.Z)({},f,{externalSlotProps:p})),m=h.props,g=h.internalRef,v=(0,a.Z)(g,null==p?void 0:p.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,o.Z)(n,(0,r.Z)({},m,{ref:v}),l)}},32703:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(28170),l=n(18677),u=n(21921),c=n(64164),d=n(11236),f=n(605),p=n(34207),h=n(32298);function m(e){return(0,h.Z)("MuiLoadingButton",e)}var g=(0,n(77430).Z)("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),v=n(46417),y=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],_=(0,c.ZP)(f.Z,{shouldForwardProp:function(e){return function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e&&"classes"!==e}(e)||"classes"===e},name:"MuiLoadingButton",slot:"Root",overridesResolver:function(e,t){return[t.root,t.startIconLoadingStart&&(0,r.Z)({},"& .".concat(g.startIconLoadingStart),t.startIconLoadingStart),t.endIconLoadingEnd&&(0,r.Z)({},"& .".concat(g.endIconLoadingEnd),t.endIconLoadingEnd)]}})((function(e){var t=e.ownerState,n=e.theme;return(0,a.Z)((0,r.Z)({},"& .".concat(g.startIconLoadingStart,", & .").concat(g.endIconLoadingEnd),{transition:n.transitions.create(["opacity"],{duration:n.transitions.duration.short}),opacity:0}),"center"===t.loadingPosition&&(0,r.Z)({transition:n.transitions.create(["background-color","box-shadow","border-color"],{duration:n.transitions.duration.short})},"&.".concat(g.loading),{color:"transparent"}),"start"===t.loadingPosition&&t.fullWidth&&(0,r.Z)({},"& .".concat(g.startIconLoadingStart,", & .").concat(g.endIconLoadingEnd),{transition:n.transitions.create(["opacity"],{duration:n.transitions.duration.short}),opacity:0,marginRight:-8}),"end"===t.loadingPosition&&t.fullWidth&&(0,r.Z)({},"& .".concat(g.startIconLoadingStart,", & .").concat(g.endIconLoadingEnd),{transition:n.transitions.create(["opacity"],{duration:n.transitions.duration.short}),opacity:0,marginLeft:-8}))})),b=(0,c.ZP)("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:function(e,t){var n=e.ownerState;return[t.loadingIndicator,t["loadingIndicator".concat((0,s.Z)(n.loadingPosition))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({position:"absolute",visibility:"visible",display:"flex"},"start"===n.loadingPosition&&("outlined"===n.variant||"contained"===n.variant)&&{left:"small"===n.size?10:14},"start"===n.loadingPosition&&"text"===n.variant&&{left:6},"center"===n.loadingPosition&&{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled},"end"===n.loadingPosition&&("outlined"===n.variant||"contained"===n.variant)&&{right:"small"===n.size?10:14},"end"===n.loadingPosition&&"text"===n.variant&&{right:6},"start"===n.loadingPosition&&n.fullWidth&&{position:"relative",left:-10},"end"===n.loadingPosition&&n.fullWidth&&{position:"relative",right:-10})})),x=o.forwardRef((function(e,t){var n=(0,d.Z)({props:e,name:"MuiLoadingButton"}),r=n.children,o=n.disabled,c=void 0!==o&&o,f=n.id,h=n.loading,g=void 0!==h&&h,x=n.loadingIndicator,E=n.loadingPosition,S=void 0===E?"center":E,w=n.variant,C=void 0===w?"text":w,T=(0,i.Z)(n,y),A=(0,l.Z)(f),k=null!=x?x:(0,v.jsx)(p.Z,{"aria-labelledby":A,color:"inherit",size:16}),D=(0,a.Z)({},n,{disabled:c,loading:g,loadingIndicator:k,loadingPosition:S,variant:C}),O=function(e){var t=e.loading,n=e.loadingPosition,r=e.classes,i={root:["root",t&&"loading"],startIcon:[t&&"startIconLoading".concat((0,s.Z)(n))],endIcon:[t&&"endIconLoading".concat((0,s.Z)(n))],loadingIndicator:["loadingIndicator",t&&"loadingIndicator".concat((0,s.Z)(n))]},o=(0,u.Z)(i,m,r);return(0,a.Z)({},r,o)}(D),I=g?(0,v.jsx)(b,{className:O.loadingIndicator,ownerState:D,children:k}):null;return(0,v.jsxs)(_,(0,a.Z)({disabled:c||g,id:A,ref:t},T,{variant:C,classes:O,ownerState:D,children:["end"===D.loadingPosition?r:I,"end"===D.loadingPosition?I:r]}))}))},79136:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(17551),c=n(64164),d=n(11236),f=n(28170),p=n(32415),h=n(32298);function m(e){return(0,h.Z)("MuiAlert",e)}var g,v=(0,n(77430).Z)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),y=n(18104),_=n(46095),b=n(46417),x=(0,_.Z)((0,b.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),E=(0,_.Z)((0,b.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),S=(0,_.Z)((0,b.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),w=(0,_.Z)((0,b.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),C=n(81886),T=["action","children","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"],A=(0,c.ZP)(p.Z,{name:"MuiAlert",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,f.Z)(n.color||n.severity))]]}})((function(e){var t=e.theme,n=e.ownerState,i="light"===t.palette.mode?u._j:u.$n,o="light"===t.palette.mode?u.$n:u._j,s=n.color||n.severity;return(0,a.Z)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},s&&"standard"===n.variant&&(0,r.Z)({color:t.vars?t.vars.palette.Alert["".concat(s,"Color")]:i(t.palette[s].light,.6),backgroundColor:t.vars?t.vars.palette.Alert["".concat(s,"StandardBg")]:o(t.palette[s].light,.9)},"& .".concat(v.icon),t.vars?{color:t.vars.palette.Alert["".concat(s,"IconColor")]}:{color:"dark"===t.palette.mode?t.palette[s].main:t.palette[s].light}),s&&"outlined"===n.variant&&(0,r.Z)({color:t.vars?t.vars.palette.Alert["".concat(s,"Color")]:i(t.palette[s].light,.6),border:"1px solid ".concat((t.vars||t).palette[s].light)},"& .".concat(v.icon),t.vars?{color:t.vars.palette.Alert["".concat(s,"IconColor")]}:{color:"dark"===t.palette.mode?t.palette[s].main:t.palette[s].light}),s&&"filled"===n.variant&&(0,a.Z)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert["".concat(s,"FilledColor")],backgroundColor:t.vars.palette.Alert["".concat(s,"FilledBg")]}:{backgroundColor:"dark"===t.palette.mode?t.palette[s].dark:t.palette[s].main,color:t.palette.getContrastText("dark"===t.palette.mode?t.palette[s].dark:t.palette[s].main)}))})),k=(0,c.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:function(e,t){return t.icon}})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),D=(0,c.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:function(e,t){return t.message}})({padding:"8px 0",minWidth:0,overflow:"auto"}),O=(0,c.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:function(e,t){return t.action}})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),I={success:(0,b.jsx)(x,{fontSize:"inherit"}),warning:(0,b.jsx)(E,{fontSize:"inherit"}),error:(0,b.jsx)(S,{fontSize:"inherit"}),info:(0,b.jsx)(w,{fontSize:"inherit"})},R=o.forwardRef((function(e,t){var n=(0,d.Z)({props:e,name:"MuiAlert"}),r=n.action,o=n.children,u=n.className,c=n.closeText,p=void 0===c?"Close":c,h=n.color,v=n.icon,_=n.iconMapping,x=void 0===_?I:_,E=n.onClose,S=n.role,w=void 0===S?"alert":S,R=n.severity,N=void 0===R?"success":R,M=n.variant,P=void 0===M?"standard":M,L=(0,i.Z)(n,T),F=(0,a.Z)({},n,{color:h,severity:N,variant:P}),B=function(e){var t=e.variant,n=e.color,r=e.severity,i=e.classes,a={root:["root","".concat(t).concat((0,f.Z)(n||r)),"".concat(t)],icon:["icon"],message:["message"],action:["action"]};return(0,l.Z)(a,m,i)}(F);return(0,b.jsxs)(A,(0,a.Z)({role:w,elevation:0,ownerState:F,className:(0,s.Z)(B.root,u),ref:t},L,{children:[!1!==v?(0,b.jsx)(k,{ownerState:F,className:B.icon,children:v||x[N]||I[N]}):null,(0,b.jsx)(D,{ownerState:F,className:B.message,children:o}),null!=r?(0,b.jsx)(O,{ownerState:F,className:B.action,children:r}):null,null==r&&E?(0,b.jsx)(O,{ownerState:F,className:B.action,children:(0,b.jsx)(y.Z,{size:"small","aria-label":p,title:p,color:"inherit",onClick:E,children:g||(g=(0,b.jsx)(C.Z,{fontSize:"small"}))})}):null]}))}))},48751:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(63366),i=n(87462),a=n(47313),o=n(83061),s=n(21921),l=n(64164),u=n(11236),c=n(28170),d=n(32415),f=n(32298);function p(e){return(0,f.Z)("MuiAppBar",e)}(0,n(77430).Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);var h=n(46417),m=["className","color","enableColorOnDark","position"],g=function(e,t){return"".concat(null==e?void 0:e.replace(")",""),", ").concat(t,")")},v=(0,l.ZP)(d.Z,{name:"MuiAppBar",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["position".concat((0,c.Z)(n.position))],t["color".concat((0,c.Z)(n.color))]]}})((function(e){var t=e.theme,n=e.ownerState,r="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return(0,i.Z)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===n.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===n.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===n.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===n.position&&{position:"static"},"relative"===n.position&&{position:"relative"},!t.vars&&(0,i.Z)({},"default"===n.color&&{backgroundColor:r,color:t.palette.getContrastText(r)},n.color&&"default"!==n.color&&"inherit"!==n.color&&"transparent"!==n.color&&{backgroundColor:t.palette[n.color].main,color:t.palette[n.color].contrastText},"inherit"===n.color&&{color:"inherit"},"dark"===t.palette.mode&&!n.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===n.color&&(0,i.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&(0,i.Z)({},"default"===n.color&&{"--AppBar-background":n.enableColorOnDark?t.vars.palette.AppBar.defaultBg:g(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":n.enableColorOnDark?t.vars.palette.text.primary:g(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},n.color&&!n.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":n.enableColorOnDark?t.vars.palette[n.color].main:g(t.vars.palette.AppBar.darkBg,t.vars.palette[n.color].main),"--AppBar-color":n.enableColorOnDark?t.vars.palette[n.color].contrastText:g(t.vars.palette.AppBar.darkColor,t.vars.palette[n.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===n.color?"inherit":"var(--AppBar-color)"},"transparent"===n.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),y=a.forwardRef((function(e,t){var n=(0,u.Z)({props:e,name:"MuiAppBar"}),a=n.className,l=n.color,d=void 0===l?"primary":l,f=n.enableColorOnDark,g=void 0!==f&&f,y=n.position,_=void 0===y?"fixed":y,b=(0,r.Z)(n,m),x=(0,i.Z)({},n,{color:d,position:_,enableColorOnDark:g}),E=function(e){var t=e.color,n=e.position,r=e.classes,i={root:["root","color".concat((0,c.Z)(t)),"position".concat((0,c.Z)(n))]};return(0,s.Z)(i,p,r)}(x);return(0,h.jsx)(v,(0,i.Z)({square:!0,component:"header",ownerState:x,elevation:4,className:(0,o.Z)(E.root,a,"fixed"===_&&"mui-fixed"),ref:t},b))}))},94876:function(e,t,n){"use strict";n.d(t,{Z:function(){return G}});var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(84511),c=n(17551),d=n(80859),f=n(37741),p=n(32415),h=n(18104),m=n(75958),g=n(69284),v=n(99876),y=n(4612),_=n(47902),b=n(81886),x=n(99437),E=n(11236),S=n(64164),w=n(32298);function C(e){return(0,w.Z)("MuiAutocomplete",e)}var T,A,k=(0,n(77430).Z)("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),D=n(28170),O=n(46417),I=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"],R=(0,S.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,i=n.fullWidth,a=n.hasClearIcon,o=n.hasPopupIcon,s=n.inputFocused,l=n.size;return[(0,r.Z)({},"& .".concat(k.tag),t.tag),(0,r.Z)({},"& .".concat(k.tag),t["tagSize".concat((0,D.Z)(l))]),(0,r.Z)({},"& .".concat(k.inputRoot),t.inputRoot),(0,r.Z)({},"& .".concat(k.input),t.input),(0,r.Z)({},"& .".concat(k.input),s&&t.inputFocused),t.root,i&&t.fullWidth,o&&t.hasPopupIcon,a&&t.hasClearIcon]}})((function(e){var t,n,i,o,s,l=e.ownerState;return(0,a.Z)((t={},(0,r.Z)(t,"&.".concat(k.focused," .").concat(k.clearIndicator),{visibility:"visible"}),(0,r.Z)(t,"@media (pointer: fine)",(0,r.Z)({},"&:hover .".concat(k.clearIndicator),{visibility:"visible"})),t),l.fullWidth&&{width:"100%"},(s={},(0,r.Z)(s,"& .".concat(k.tag),(0,a.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===l.size&&{margin:2,maxWidth:"calc(100% - 4px)"})),(0,r.Z)(s,"& .".concat(k.inputRoot),(n={flexWrap:"wrap"},(0,r.Z)(n,".".concat(k.hasPopupIcon,"&, .").concat(k.hasClearIcon,"&"),{paddingRight:30}),(0,r.Z)(n,".".concat(k.hasPopupIcon,".").concat(k.hasClearIcon,"&"),{paddingRight:56}),(0,r.Z)(n,"& .".concat(k.input),{width:0,minWidth:30}),n)),(0,r.Z)(s,"& .".concat(g.Z.root),{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}}),(0,r.Z)(s,"& .".concat(g.Z.root,".").concat(v.Z.sizeSmall),(0,r.Z)({},"& .".concat(g.Z.input),{padding:"2px 4px 3px 0"})),(0,r.Z)(s,"& .".concat(y.Z.root),(i={padding:9},(0,r.Z)(i,".".concat(k.hasPopupIcon,"&, .").concat(k.hasClearIcon,"&"),{paddingRight:39}),(0,r.Z)(i,".".concat(k.hasPopupIcon,".").concat(k.hasClearIcon,"&"),{paddingRight:65}),(0,r.Z)(i,"& .".concat(k.input),{padding:"7.5px 4px 7.5px 6px"}),(0,r.Z)(i,"& .".concat(k.endAdornment),{right:9}),i)),(0,r.Z)(s,"& .".concat(y.Z.root,".").concat(v.Z.sizeSmall),(0,r.Z)({paddingTop:6,paddingBottom:6,paddingLeft:6},"& .".concat(k.input),{padding:"2.5px 4px 2.5px 6px"})),(0,r.Z)(s,"& .".concat(_.Z.root),(o={paddingTop:19,paddingLeft:8},(0,r.Z)(o,".".concat(k.hasPopupIcon,"&, .").concat(k.hasClearIcon,"&"),{paddingRight:39}),(0,r.Z)(o,".".concat(k.hasPopupIcon,".").concat(k.hasClearIcon,"&"),{paddingRight:65}),(0,r.Z)(o,"& .".concat(_.Z.input),{padding:"7px 4px"}),(0,r.Z)(o,"& .".concat(k.endAdornment),{right:9}),o)),(0,r.Z)(s,"& .".concat(_.Z.root,".").concat(v.Z.sizeSmall),(0,r.Z)({paddingBottom:1},"& .".concat(_.Z.input),{padding:"2.5px 4px"})),(0,r.Z)(s,"& .".concat(v.Z.hiddenLabel),{paddingTop:8}),(0,r.Z)(s,"& .".concat(k.input),(0,a.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},l.inputFocused&&{opacity:1})),s))})),N=(0,S.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:function(e,t){return t.endAdornment}})({position:"absolute",right:0,top:"calc(50% - 14px)"}),M=(0,S.ZP)(h.Z,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:function(e,t){return t.clearIndicator}})({marginRight:-2,padding:4,visibility:"hidden"}),P=(0,S.ZP)(h.Z,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:function(e,t){var n=e.ownerState;return(0,a.Z)({},t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen)}})((function(e){var t=e.ownerState;return(0,a.Z)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})})),L=(0,S.ZP)(d.Z,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[(0,r.Z)({},"& .".concat(k.option),t.option),t.popper,n.disablePortal&&t.popperDisablePortal]}})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({zIndex:(t.vars||t).zIndex.modal},n.disablePortal&&{position:"absolute"})})),F=(0,S.ZP)(p.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:function(e,t){return t.paper}})((function(e){var t=e.theme;return(0,a.Z)({},t.typography.body1,{overflow:"auto"})})),B=(0,S.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:function(e,t){return t.loading}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),Z=(0,S.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:function(e,t){return t.noOptions}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),z=(0,S.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:function(e,t){return t.listbox}})((function(e){var t,n,i=e.theme;return(0,r.Z)({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},"& .".concat(k.option),(n={minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,r.Z)(n,i.breakpoints.up("sm"),{minHeight:"auto"}),(0,r.Z)(n,"&.".concat(k.focused),{backgroundColor:(i.vars||i).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}),(0,r.Z)(n,'&[aria-disabled="true"]',{opacity:(i.vars||i).palette.action.disabledOpacity,pointerEvents:"none"}),(0,r.Z)(n,"&.".concat(k.focusVisible),{backgroundColor:(i.vars||i).palette.action.focus}),(0,r.Z)(n,'&[aria-selected="true"]',(t={backgroundColor:i.vars?"rgba(".concat(i.vars.palette.primary.mainChannel," / ").concat(i.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(i.palette.primary.main,i.palette.action.selectedOpacity)},(0,r.Z)(t,"&.".concat(k.focused),{backgroundColor:i.vars?"rgba(".concat(i.vars.palette.primary.mainChannel," / calc(").concat(i.vars.palette.action.selectedOpacity," + ").concat(i.vars.palette.action.hoverOpacity,"))"):(0,c.Fq)(i.palette.primary.main,i.palette.action.selectedOpacity+i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(i.vars||i).palette.action.selected}}),(0,r.Z)(t,"&.".concat(k.focusVisible),{backgroundColor:i.vars?"rgba(".concat(i.vars.palette.primary.mainChannel," / calc(").concat(i.vars.palette.action.selectedOpacity," + ").concat(i.vars.palette.action.focusOpacity,"))"):(0,c.Fq)(i.palette.primary.main,i.palette.action.selectedOpacity+i.palette.action.focusOpacity)}),t)),n))})),U=(0,S.ZP)(f.Z,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:function(e,t){return t.groupLabel}})((function(e){var t=e.theme;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),j=(0,S.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:function(e,t){return t.groupUl}})((0,r.Z)({padding:0},"& .".concat(k.option),{paddingLeft:24})),G=o.forwardRef((function(e,t){var n,r,c,f,h,g=(0,E.Z)({props:e,name:"MuiAutocomplete"}),v=(g.autoComplete,g.autoHighlight,g.autoSelect,g.blurOnSelect,g.ChipProps),y=g.className,_=g.clearIcon,S=void 0===_?T||(T=(0,O.jsx)(b.Z,{fontSize:"small"})):_,w=g.clearOnBlur,k=(void 0===w&&g.freeSolo,g.clearOnEscape,g.clearText),G=void 0===k?"Clear":k,V=g.closeText,q=void 0===V?"Close":V,H=g.componentsProps,Y=void 0===H?{}:H,W=g.defaultValue,X=(void 0===W&&g.multiple,g.disableClearable),K=void 0!==X&&X,$=(g.disableCloseOnSelect,g.disabled),Q=void 0!==$&&$,J=(g.disabledItemsFocusable,g.disableListWrap,g.disablePortal),ee=void 0!==J&&J,te=(g.filterSelectedOptions,g.forcePopupIcon),ne=void 0===te?"auto":te,re=g.freeSolo,ie=void 0!==re&&re,ae=g.fullWidth,oe=void 0!==ae&&ae,se=g.getLimitTagsText,le=void 0===se?function(e){return"+".concat(e)}:se,ue=g.getOptionLabel,ce=void 0===ue?function(e){var t;return null!=(t=e.label)?t:e}:ue,de=g.groupBy,fe=g.handleHomeEndKeys,pe=(void 0===fe&&g.freeSolo,g.includeInputInList,g.limitTags),he=void 0===pe?-1:pe,me=g.ListboxComponent,ge=void 0===me?"ul":me,ve=g.ListboxProps,ye=g.loading,_e=void 0!==ye&&ye,be=g.loadingText,xe=void 0===be?"Loading\u2026":be,Ee=g.multiple,Se=void 0!==Ee&&Ee,we=g.noOptionsText,Ce=void 0===we?"No options":we,Te=(g.openOnFocus,g.openText),Ae=void 0===Te?"Open":Te,ke=g.PaperComponent,De=void 0===ke?p.Z:ke,Oe=g.PopperComponent,Ie=void 0===Oe?d.Z:Oe,Re=g.popupIcon,Ne=void 0===Re?A||(A=(0,O.jsx)(x.Z,{})):Re,Me=g.readOnly,Pe=void 0!==Me&&Me,Le=g.renderGroup,Fe=g.renderInput,Be=g.renderOption,Ze=g.renderTags,ze=g.selectOnFocus,Ue=(void 0===ze&&g.freeSolo,g.size),je=void 0===Ue?"medium":Ue,Ge=(0,i.Z)(g,I),Ve=(0,u.Z)((0,a.Z)({},g,{componentName:"Autocomplete"})),qe=Ve.getRootProps,He=Ve.getInputProps,Ye=Ve.getInputLabelProps,We=Ve.getPopupIndicatorProps,Xe=Ve.getClearProps,Ke=Ve.getTagProps,$e=Ve.getListboxProps,Qe=Ve.getOptionProps,Je=Ve.value,et=Ve.dirty,tt=Ve.id,nt=Ve.popupOpen,rt=Ve.focused,it=Ve.focusedTag,at=Ve.anchorEl,ot=Ve.setAnchorEl,st=Ve.inputValue,lt=Ve.groupedOptions,ut=!K&&!Q&&et&&!Pe,ct=(!ie||!0===ne)&&!1!==ne,dt=(0,a.Z)({},g,{disablePortal:ee,focused:rt,fullWidth:oe,hasClearIcon:ut,hasPopupIcon:ct,inputFocused:-1===it,popupOpen:nt,size:je}),ft=function(e){var t=e.classes,n=e.disablePortal,r=e.focused,i=e.fullWidth,a=e.hasClearIcon,o=e.hasPopupIcon,s=e.inputFocused,u=e.popupOpen,c=e.size,d={root:["root",r&&"focused",i&&"fullWidth",a&&"hasClearIcon",o&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag","tagSize".concat((0,D.Z)(c))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,l.Z)(d,C,t)}(dt);if(Se&&Je.length>0){var pt=function(e){return(0,a.Z)({className:ft.tag,disabled:Q},Ke(e))};h=Ze?Ze(Je,pt,dt):Je.map((function(e,t){return(0,O.jsx)(m.Z,(0,a.Z)({label:ce(e),size:je},pt({index:t}),v))}))}if(he>-1&&Array.isArray(h)){var ht=h.length-he;!rt&&ht>0&&(h=h.splice(0,he)).push((0,O.jsx)("span",{className:ft.tag,children:le(ht)},h.length))}var mt=Le||function(e){return(0,O.jsxs)("li",{children:[(0,O.jsx)(U,{className:ft.groupLabel,ownerState:dt,component:"div",children:e.group}),(0,O.jsx)(j,{className:ft.groupUl,ownerState:dt,children:e.children})]},e.key)},gt=Be||function(e,t){return(0,O.jsx)("li",(0,a.Z)({},e,{children:ce(t)}))},vt=function(e,t){var n=Qe({option:e,index:t});return gt((0,a.Z)({},n,{className:ft.option}),e,{selected:n["aria-selected"],inputValue:st})};return(0,O.jsxs)(o.Fragment,{children:[(0,O.jsx)(R,(0,a.Z)({ref:t,className:(0,s.Z)(ft.root,y),ownerState:dt},qe(Ge),{children:Fe({id:tt,disabled:Q,fullWidth:!0,size:"small"===je?"small":void 0,InputLabelProps:Ye(),InputProps:(0,a.Z)({ref:ot,className:ft.inputRoot,startAdornment:h},(ut||ct)&&{endAdornment:(0,O.jsxs)(N,{className:ft.endAdornment,ownerState:dt,children:[ut?(0,O.jsx)(M,(0,a.Z)({},Xe(),{"aria-label":G,title:G,ownerState:dt},Y.clearIndicator,{className:(0,s.Z)(ft.clearIndicator,null==(n=Y.clearIndicator)?void 0:n.className),children:S})):null,ct?(0,O.jsx)(P,(0,a.Z)({},We(),{disabled:Q,"aria-label":nt?q:Ae,title:nt?q:Ae,ownerState:dt},Y.popupIndicator,{className:(0,s.Z)(ft.popupIndicator,null==(r=Y.popupIndicator)?void 0:r.className),children:Ne})):null]})}),inputProps:(0,a.Z)({className:ft.input,disabled:Q,readOnly:Pe},He())})})),at?(0,O.jsx)(L,(0,a.Z)({as:Ie,disablePortal:ee,style:{width:at?at.clientWidth:null},ownerState:dt,role:"presentation",anchorEl:at,open:nt},Y.popper,{className:(0,s.Z)(ft.popper,null==(c=Y.popper)?void 0:c.className),children:(0,O.jsxs)(F,(0,a.Z)({ownerState:dt,as:De},Y.paper,{className:(0,s.Z)(ft.paper,null==(f=Y.paper)?void 0:f.className),children:[_e&&0===lt.length?(0,O.jsx)(B,{className:ft.loading,ownerState:dt,children:xe}):null,0!==lt.length||ie||_e?null:(0,O.jsx)(Z,{className:ft.noOptions,ownerState:dt,role:"presentation",onMouseDown:function(e){e.preventDefault()},children:Ce}),lt.length>0?(0,O.jsx)(z,(0,a.Z)({as:ge,className:ft.listbox,ownerState:dt},$e(),ve,{children:lt.map((function(e,t){return de?mt({key:e.key,group:e.group,children:e.options.map((function(t,n){return vt(t,e.index+n)}))}):vt(e,t)}))})):null]}))})):null]})}))},49316:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(29439),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(64164),c=n(11236),d=n(46095),f=n(46417),p=(0,d.Z)((0,f.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person"),h=n(73529),m=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],g=(0,u.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},"square"===n.variant&&{borderRadius:0},n.colorDefault&&(0,a.Z)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:{backgroundColor:"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]}))})),v=(0,u.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:function(e,t){return t.img}})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),y=(0,u.ZP)(p,{name:"MuiAvatar",slot:"Fallback",overridesResolver:function(e,t){return t.fallback}})({width:"75%",height:"75%"});var _=o.forwardRef((function(e,t){var n=(0,c.Z)({props:e,name:"MuiAvatar"}),u=n.alt,d=n.children,p=n.className,_=n.component,b=void 0===_?"div":_,x=n.imgProps,E=n.sizes,S=n.src,w=n.srcSet,C=n.variant,T=void 0===C?"circular":C,A=(0,i.Z)(n,m),k=null,D=function(e){var t=e.crossOrigin,n=e.referrerPolicy,i=e.src,a=e.srcSet,s=o.useState(!1),l=(0,r.Z)(s,2),u=l[0],c=l[1];return o.useEffect((function(){if(i||a){c(!1);var e=!0,r=new Image;return r.onload=function(){e&&c("loaded")},r.onerror=function(){e&&c("error")},r.crossOrigin=t,r.referrerPolicy=n,r.src=i,a&&(r.srcset=a),function(){e=!1}}}),[t,n,i,a]),u}((0,a.Z)({},x,{src:S,srcSet:w})),O=S||w,I=O&&"error"!==D,R=(0,a.Z)({},n,{colorDefault:!I,component:b,variant:T}),N=function(e){var t=e.classes,n={root:["root",e.variant,e.colorDefault&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,l.Z)(n,h.$,t)}(R);return k=I?(0,f.jsx)(v,(0,a.Z)({alt:u,src:S,srcSet:w,sizes:E,ownerState:R,className:N.img},x)):null!=d?d:O&&u?u[0]:(0,f.jsx)(y,{className:N.fallback}),(0,f.jsx)(g,(0,a.Z)({as:b,ownerState:R,className:(0,s.Z)(N.root,p),ref:t},A,{children:k}))}))},73529:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r=n(32298);function i(e){return(0,r.Z)("MuiAvatar",e)}var a=(0,n(77430).Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);t.Z=a},78179:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=(n(96214),n(83061)),l=n(21921),u=n(64164),c=n(11236),d=n(73529),f=n(49316),p=n(32298);function h(e){return(0,p.Z)("MuiAvatarGroup",e)}var m=(0,n(77430).Z)("MuiAvatarGroup",["root","avatar"]),g=n(46417),v=["children","className","component","componentsProps","max","spacing","total","variant"],y={small:-16,medium:null},_=(0,u.ZP)("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:function(e,t){return(0,a.Z)((0,r.Z)({},"& .".concat(m.avatar),t.avatar),t.root)}})((function(e){var t,n=e.theme;return t={},(0,r.Z)(t,"& .".concat(d.Z.root),{border:"2px solid ".concat((n.vars||n).palette.background.default),boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}}),(0,r.Z)(t,"display","flex"),(0,r.Z)(t,"flexDirection","row-reverse"),t})),b=(0,u.ZP)(f.Z,{name:"MuiAvatarGroup",slot:"Avatar",overridesResolver:function(e,t){return t.avatar}})((function(e){var t=e.theme;return{border:"2px solid ".concat((t.vars||t).palette.background.default),boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}}})),x=o.forwardRef((function(e,t){var n,r,u=(0,c.Z)({props:e,name:"MuiAvatarGroup"}),d=u.children,f=u.className,p=u.component,m=void 0===p?"div":p,x=u.componentsProps,E=void 0===x?{}:x,S=u.max,w=void 0===S?5:S,C=u.spacing,T=void 0===C?"medium":C,A=u.total,k=u.variant,D=void 0===k?"circular":k,O=(0,i.Z)(u,v),I=w<2?2:w,R=(0,a.Z)({},u,{max:w,spacing:T,component:m,variant:D}),N=function(e){var t=e.classes;return(0,l.Z)({root:["root"],avatar:["avatar"]},h,t)}(R),M=o.Children.toArray(d).filter((function(e){return o.isValidElement(e)})),P=A||M.length;P===I&&(I+=1),I=Math.min(P+1,I);var L=Math.min(M.length,I-1),F=Math.max(P-I,P-L,0),B=T&&void 0!==y[T]?y[T]:-T;return(0,g.jsxs)(_,(0,a.Z)({as:m,ownerState:R,className:(0,s.Z)(N.root,f),ref:t},O,{children:[F?(0,g.jsxs)(b,(0,a.Z)({ownerState:R,variant:D},E.additionalAvatar,{className:(0,s.Z)(N.avatar,null==(n=E.additionalAvatar)?void 0:n.className),style:(0,a.Z)({marginLeft:B},null==(r=E.additionalAvatar)?void 0:r.style),children:["+",F]})):null,M.slice(0,L).reverse().map((function(e,t){return o.cloneElement(e,{className:(0,s.Z)(e.props.className,N.avatar),style:(0,a.Z)({marginLeft:t===L-1?void 0:B},e.props.style),variant:e.props.variant||D})}))]}))}))},58921:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(63366),i=n(87462),a=n(47313),o=n(83061),s=n(21921),l=n(64164),u=n(11236),c=n(32410),d=n(32298);function f(e){return(0,d.Z)("MuiBackdrop",e)}(0,n(77430).Z)("MuiBackdrop",["root","invisible"]);var p=n(46417),h=["children","component","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],m=(0,l.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.invisible&&t.invisible]}})((function(e){var t=e.ownerState;return(0,i.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),g=a.forwardRef((function(e,t){var n,a,l=(0,u.Z)({props:e,name:"MuiBackdrop"}),d=l.children,g=l.component,v=void 0===g?"div":g,y=l.components,_=void 0===y?{}:y,b=l.componentsProps,x=void 0===b?{}:b,E=l.className,S=l.invisible,w=void 0!==S&&S,C=l.open,T=l.transitionDuration,A=l.TransitionComponent,k=void 0===A?c.Z:A,D=(0,r.Z)(l,h),O=(0,i.Z)({},l,{component:v,invisible:w}),I=function(e){var t=e.classes,n={root:["root",e.invisible&&"invisible"]};return(0,s.Z)(n,f,t)}(O);return(0,p.jsx)(k,(0,i.Z)({in:C,timeout:T},D,{children:(0,p.jsx)(m,{"aria-hidden":!0,as:null!=(n=_.Root)?n:v,className:(0,o.Z)(I.root,E),ownerState:(0,i.Z)({},O,null==(a=x.root)?void 0:a.ownerState),classes:I,ref:t,children:d})}))}))},11093:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=function(e){var t=o.useRef({});return o.useEffect((function(){t.current=e})),t.current},u=n(21921);var c=n(77430),d=n(32298);function f(e){return(0,d.Z)("BaseBadge",e)}(0,c.Z)("BaseBadge",["root","badge","invisible"]);var p=n(55229),h=n(46417),m=["badgeContent","component","children","components","componentsProps","invisible","max","showZero"],g=o.forwardRef((function(e,t){var n=e.component,r=e.children,o=e.components,s=void 0===o?{}:o,c=e.componentsProps,d=void 0===c?{}:c,g=e.max,v=void 0===g?99:g,y=e.showZero,_=void 0!==y&&y,b=(0,i.Z)(e,m),x=function(e){var t=e.badgeContent,n=e.invisible,r=void 0!==n&&n,i=e.max,a=void 0===i?99:i,o=e.showZero,s=void 0!==o&&o,u=l({badgeContent:t,max:a}),c=r;!1!==r||0!==t||s||(c=!0);var d=c?u:e,f=d.badgeContent,p=d.max,h=void 0===p?a:p;return{badgeContent:f,invisible:c,max:h,displayValue:f&&Number(f)>h?"".concat(h,"+"):f}}((0,a.Z)({},e,{max:v})),E=x.badgeContent,S=x.max,w=x.displayValue,C=x.invisible,T=(0,a.Z)({},e,{badgeContent:E,invisible:C,max:S,showZero:_}),A=function(e){var t={root:["root"],badge:["badge",e.invisible&&"invisible"]};return(0,u.Z)(t,f,void 0)}(T),k=n||s.Root||"span",D=(0,p.Z)({elementType:k,externalSlotProps:d.root,externalForwardedProps:b,additionalProps:{ref:t},ownerState:T,className:A.root}),O=s.Badge||"span",I=(0,p.Z)({elementType:O,externalSlotProps:d.badge,ownerState:T,className:A.badge});return(0,h.jsxs)(k,(0,a.Z)({},D,{children:[r,(0,h.jsx)(O,(0,a.Z)({},I,{children:w}))]}))})),v=g,y=n(64164),_=n(11236),b=n(83183),x=n(28170);function E(e){return(0,d.Z)("MuiBadge",e)}var S=(0,c.Z)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),w=["anchorOrigin","className","component","components","componentsProps","overlap","color","invisible","max","badgeContent","showZero","variant"],C=(0,y.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:function(e,t){return t.root}})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),T=(0,y.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:function(e,t){var n=e.ownerState;return[t.badge,t[n.variant],t["anchorOrigin".concat((0,x.Z)(n.anchorOrigin.vertical)).concat((0,x.Z)(n.anchorOrigin.horizontal)).concat((0,x.Z)(n.overlap))],"default"!==n.color&&t["color".concat((0,x.Z)(n.color))],n.invisible&&t.invisible]}})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen})},"default"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].main,color:(t.vars||t).palette[n.color].contrastText},"dot"===n.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&(0,r.Z)({top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%"},"&.".concat(S.invisible),{transform:"scale(0) translate(50%, -50%)"}),"bottom"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&(0,r.Z)({bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%"},"&.".concat(S.invisible),{transform:"scale(0) translate(50%, 50%)"}),"top"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&(0,r.Z)({top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%"},"&.".concat(S.invisible),{transform:"scale(0) translate(-50%, -50%)"}),"bottom"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&(0,r.Z)({bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%"},"&.".concat(S.invisible),{transform:"scale(0) translate(-50%, 50%)"}),"top"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&(0,r.Z)({top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%"},"&.".concat(S.invisible),{transform:"scale(0) translate(50%, -50%)"}),"bottom"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&(0,r.Z)({bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%"},"&.".concat(S.invisible),{transform:"scale(0) translate(50%, 50%)"}),"top"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&(0,r.Z)({top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%"},"&.".concat(S.invisible),{transform:"scale(0) translate(-50%, -50%)"}),"bottom"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&(0,r.Z)({bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%"},"&.".concat(S.invisible),{transform:"scale(0) translate(-50%, 50%)"}),n.invisible&&{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})})})),A=o.forwardRef((function(e,t){var n,r,o,c,d=(0,_.Z)({props:e,name:"MuiBadge"}),f=d.anchorOrigin,p=void 0===f?{vertical:"top",horizontal:"right"}:f,m=d.className,g=d.component,y=void 0===g?"span":g,S=d.components,A=void 0===S?{}:S,k=d.componentsProps,D=void 0===k?{}:k,O=d.overlap,I=void 0===O?"rectangular":O,R=d.color,N=void 0===R?"default":R,M=d.invisible,P=void 0!==M&&M,L=d.max,F=d.badgeContent,B=d.showZero,Z=void 0!==B&&B,z=d.variant,U=void 0===z?"standard":z,j=(0,i.Z)(d,w),G=l({anchorOrigin:p,color:N,overlap:I,variant:U}),V=P;!1===P&&(0===F&&!Z||null==F&&"dot"!==U)&&(V=!0);var q,H=V?G:d,Y=H.color,W=void 0===Y?N:Y,X=H.overlap,K=void 0===X?I:X,$=H.anchorOrigin,Q=void 0===$?p:$,J=H.variant,ee=void 0===J?U:J,te=function(e){var t=e.color,n=e.anchorOrigin,r=e.invisible,i=e.overlap,a=e.variant,o=e.classes,s=void 0===o?{}:o,l={root:["root"],badge:["badge",a,r&&"invisible","anchorOrigin".concat((0,x.Z)(n.vertical)).concat((0,x.Z)(n.horizontal)),"anchorOrigin".concat((0,x.Z)(n.vertical)).concat((0,x.Z)(n.horizontal)).concat((0,x.Z)(i)),"overlap".concat((0,x.Z)(i)),"default"!==t&&"color".concat((0,x.Z)(t))]};return(0,u.Z)(l,E,s)}((0,a.Z)({},d,{anchorOrigin:Q,invisible:V,color:W,overlap:K,variant:ee}));return"dot"!==ee&&(q=F&&Number(F)>L?"".concat(L,"+"):F),(0,h.jsx)(v,(0,a.Z)({invisible:P,badgeContent:q,showZero:Z,max:L},j,{components:(0,a.Z)({Root:C,Badge:T},A),className:(0,s.Z)(null==(n=D.root)?void 0:n.className,te.root,m),componentsProps:{root:(0,a.Z)({},D.root,(0,b.Z)(A.Root)&&{as:y,ownerState:(0,a.Z)({},null==(r=D.root)?void 0:r.ownerState,{anchorOrigin:Q,color:W,overlap:K,variant:ee})}),badge:(0,a.Z)({},D.badge,{className:(0,s.Z)(te.badge,null==(o=D.badge)?void 0:o.className)},(0,b.Z)(A.Badge)&&{ownerState:(0,a.Z)({},null==(c=D.badge)?void 0:c.ownerState,{anchorOrigin:Q,color:W,overlap:K,variant:ee})})},ref:t}))}))},16157:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(87462),i=n(63366),a=n(47313),o=n(83061),s=n(84472),l=n(63649),u=n(39028),c=n(86728),d=n(46417),f=["className","component"];var p=n(41271),h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=e.defaultClassName,p=void 0===n?"MuiBox-root":n,h=e.generateClassName,m=e.styleFunctionSx,g=void 0===m?l.Z:m,v=(0,s.ZP)("div",{shouldForwardProp:function(e){return"theme"!==e&&"sx"!==e&&"as"!==e}})(g),y=a.forwardRef((function(e,n){var a=(0,c.Z)(t),s=(0,u.Z)(e),l=s.className,m=s.component,g=void 0===m?"div":m,y=(0,i.Z)(s,f);return(0,d.jsx)(v,(0,r.Z)({as:g,ref:n,className:(0,o.Z)(l,h?h(p):p),theme:a},y))}));return y}({defaultTheme:(0,n(49494).Z)(),defaultClassName:"MuiBox-root",generateClassName:p.Z.generate}),m=h},605:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(29023),u=n(21921),c=n(17551),d=n(64164),f=n(11236),p=n(56456),h=n(28170),m=n(32298);function g(e){return(0,m.Z)("MuiButton",e)}var v=(0,n(77430).Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),y=n(40894),_=n(46417),b=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],x=function(e){return(0,a.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}})},E=(0,d.ZP)(p.Z,{shouldForwardProp:function(e){return(0,d.FO)(e)||"classes"===e},name:"MuiButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,h.Z)(n.color))],t["size".concat((0,h.Z)(n.size))],t["".concat(n.variant,"Size").concat((0,h.Z)(n.size))],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((function(e){var t,n,i,o=e.theme,s=e.ownerState;return(0,a.Z)({},o.typography.button,(t={minWidth:64,padding:"6px 16px",borderRadius:(o.vars||o).shape.borderRadius,transition:o.transitions.create(["background-color","box-shadow","border-color","color"],{duration:o.transitions.duration.short}),"&:hover":(0,a.Z)({textDecoration:"none",backgroundColor:o.vars?"rgba(".concat(o.vars.palette.text.primaryChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(o.palette.text.primary,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===s.variant&&"inherit"!==s.color&&{backgroundColor:o.vars?"rgba(".concat(o.vars.palette[s.color].mainChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(o.palette[s.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===s.variant&&"inherit"!==s.color&&{border:"1px solid ".concat((o.vars||o).palette[s.color].main),backgroundColor:o.vars?"rgba(".concat(o.vars.palette[s.color].mainChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(o.palette[s.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===s.variant&&{backgroundColor:(o.vars||o).palette.grey.A100,boxShadow:(o.vars||o).shadows[4],"@media (hover: none)":{boxShadow:(o.vars||o).shadows[2],backgroundColor:(o.vars||o).palette.grey[300]}},"contained"===s.variant&&"inherit"!==s.color&&{backgroundColor:(o.vars||o).palette[s.color].dark,"@media (hover: none)":{backgroundColor:(o.vars||o).palette[s.color].main}}),"&:active":(0,a.Z)({},"contained"===s.variant&&{boxShadow:(o.vars||o).shadows[8]})},(0,r.Z)(t,"&.".concat(v.focusVisible),(0,a.Z)({},"contained"===s.variant&&{boxShadow:(o.vars||o).shadows[6]})),(0,r.Z)(t,"&.".concat(v.disabled),(0,a.Z)({color:(o.vars||o).palette.action.disabled},"outlined"===s.variant&&{border:"1px solid ".concat((o.vars||o).palette.action.disabledBackground)},"outlined"===s.variant&&"secondary"===s.color&&{border:"1px solid ".concat((o.vars||o).palette.action.disabled)},"contained"===s.variant&&{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground})),t),"text"===s.variant&&{padding:"6px 8px"},"text"===s.variant&&"inherit"!==s.color&&{color:(o.vars||o).palette[s.color].main},"outlined"===s.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===s.variant&&"inherit"!==s.color&&{color:(o.vars||o).palette[s.color].main,border:o.vars?"1px solid rgba(".concat(o.vars.palette[s.color].mainChannel," / 0.5)"):"1px solid ".concat((0,c.Fq)(o.palette[s.color].main,.5))},"contained"===s.variant&&{color:o.vars?o.vars.palette.text.primary:null==(n=(i=o.palette).getContrastText)?void 0:n.call(i,o.palette.grey[300]),backgroundColor:(o.vars||o).palette.grey[300],boxShadow:(o.vars||o).shadows[2]},"contained"===s.variant&&"inherit"!==s.color&&{color:(o.vars||o).palette[s.color].contrastText,backgroundColor:(o.vars||o).palette[s.color].main},"inherit"===s.color&&{color:"inherit",borderColor:"currentColor"},"small"===s.size&&"text"===s.variant&&{padding:"4px 5px",fontSize:o.typography.pxToRem(13)},"large"===s.size&&"text"===s.variant&&{padding:"8px 11px",fontSize:o.typography.pxToRem(15)},"small"===s.size&&"outlined"===s.variant&&{padding:"3px 9px",fontSize:o.typography.pxToRem(13)},"large"===s.size&&"outlined"===s.variant&&{padding:"7px 21px",fontSize:o.typography.pxToRem(15)},"small"===s.size&&"contained"===s.variant&&{padding:"4px 10px",fontSize:o.typography.pxToRem(13)},"large"===s.size&&"contained"===s.variant&&{padding:"8px 22px",fontSize:o.typography.pxToRem(15)},s.fullWidth&&{width:"100%"})}),(function(e){var t;return e.ownerState.disableElevation&&(t={boxShadow:"none","&:hover":{boxShadow:"none"}},(0,r.Z)(t,"&.".concat(v.focusVisible),{boxShadow:"none"}),(0,r.Z)(t,"&:active",{boxShadow:"none"}),(0,r.Z)(t,"&.".concat(v.disabled),{boxShadow:"none"}),t)})),S=(0,d.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:function(e,t){var n=e.ownerState;return[t.startIcon,t["iconSize".concat((0,h.Z)(n.size))]]}})((function(e){var t=e.ownerState;return(0,a.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},x(t))})),w=(0,d.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:function(e,t){var n=e.ownerState;return[t.endIcon,t["iconSize".concat((0,h.Z)(n.size))]]}})((function(e){var t=e.ownerState;return(0,a.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},x(t))})),C=o.forwardRef((function(e,t){var n=o.useContext(y.Z),r=(0,l.Z)(n,e),c=(0,f.Z)({props:r,name:"MuiButton"}),d=c.children,p=c.color,m=void 0===p?"primary":p,v=c.component,x=void 0===v?"button":v,C=c.className,T=c.disabled,A=void 0!==T&&T,k=c.disableElevation,D=void 0!==k&&k,O=c.disableFocusRipple,I=void 0!==O&&O,R=c.endIcon,N=c.focusVisibleClassName,M=c.fullWidth,P=void 0!==M&&M,L=c.size,F=void 0===L?"medium":L,B=c.startIcon,Z=c.type,z=c.variant,U=void 0===z?"text":z,j=(0,i.Z)(c,b),G=(0,a.Z)({},c,{color:m,component:x,disabled:A,disableElevation:D,disableFocusRipple:I,fullWidth:P,size:F,type:Z,variant:U}),V=function(e){var t=e.color,n=e.disableElevation,r=e.fullWidth,i=e.size,o=e.variant,s=e.classes,l={root:["root",o,"".concat(o).concat((0,h.Z)(t)),"size".concat((0,h.Z)(i)),"".concat(o,"Size").concat((0,h.Z)(i)),"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,h.Z)(i))],endIcon:["endIcon","iconSize".concat((0,h.Z)(i))]},c=(0,u.Z)(l,g,s);return(0,a.Z)({},s,c)}(G),q=B&&(0,_.jsx)(S,{className:V.startIcon,ownerState:G,children:B}),H=R&&(0,_.jsx)(w,{className:V.endIcon,ownerState:G,children:R});return(0,_.jsxs)(E,(0,a.Z)({ownerState:G,className:(0,s.Z)(n.className,V.root,C),component:x,disabled:A,focusRipple:!I,focusVisibleClassName:(0,s.Z)(V.focusVisible,N),ref:t,type:Z},j,{classes:V,children:[q,d,H]}))}))},56456:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r=n(29439),i=n(4942),a=n(87462),o=n(63366),s=n(47313),l=n(83061),u=n(21921),c=n(64164),d=n(11236),f=n(2995),p=n(56127),h=n(57464),m=n(93433),g=n(30168),v=n(51078),y=n(30686),_=n(46417);var b=function(e){var t=e.className,n=e.classes,i=e.pulsate,a=void 0!==i&&i,o=e.rippleX,u=e.rippleY,c=e.rippleSize,d=e.in,f=e.onExited,p=e.timeout,h=s.useState(!1),m=(0,r.Z)(h,2),g=m[0],v=m[1],y=(0,l.Z)(t,n.ripple,n.rippleVisible,a&&n.ripplePulsate),b={width:c,height:c,top:-c/2+u,left:-c/2+o},x=(0,l.Z)(n.child,g&&n.childLeaving,a&&n.childPulsate);return d||g||v(!0),s.useEffect((function(){if(!d&&null!=f){var e=setTimeout(f,p);return function(){clearTimeout(e)}}}),[f,d,p]),(0,_.jsx)("span",{className:y,style:b,children:(0,_.jsx)("span",{className:x})})},x=n(77430);var E,S,w,C,T,A,k,D,O=(0,x.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),I=["center","classes","className"],R=(0,y.F4)(T||(T=E||(E=(0,g.Z)(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),N=(0,y.F4)(A||(A=S||(S=(0,g.Z)(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),M=(0,y.F4)(k||(k=w||(w=(0,g.Z)(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"])))),P=(0,c.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),L=(0,c.ZP)(b,{name:"MuiTouchRipple",slot:"Ripple"})(D||(D=C||(C=(0,g.Z)(["\n opacity: 0;\n position: absolute;\n\n &."," {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n &."," {\n animation-duration: ","ms;\n }\n\n & ."," {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & ."," {\n opacity: 0;\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n & ."," {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ",";\n animation-duration: 2500ms;\n animation-timing-function: ",";\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n"]))),O.rippleVisible,R,550,(function(e){return e.theme.transitions.easing.easeInOut}),O.ripplePulsate,(function(e){return e.theme.transitions.duration.shorter}),O.child,O.childLeaving,N,550,(function(e){return e.theme.transitions.easing.easeInOut}),O.childPulsate,M,(function(e){return e.theme.transitions.easing.easeInOut})),F=s.forwardRef((function(e,t){var n=(0,d.Z)({props:e,name:"MuiTouchRipple"}),i=n.center,u=void 0!==i&&i,c=n.classes,f=void 0===c?{}:c,p=n.className,h=(0,o.Z)(n,I),g=s.useState([]),y=(0,r.Z)(g,2),b=y[0],x=y[1],E=s.useRef(0),S=s.useRef(null);s.useEffect((function(){S.current&&(S.current(),S.current=null)}),[b]);var w=s.useRef(!1),C=s.useRef(null),T=s.useRef(null),A=s.useRef(null);s.useEffect((function(){return function(){clearTimeout(C.current)}}),[]);var k=s.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;x((function(e){return[].concat((0,m.Z)(e),[(0,_.jsx)(L,{classes:{ripple:(0,l.Z)(f.ripple,O.ripple),rippleVisible:(0,l.Z)(f.rippleVisible,O.rippleVisible),ripplePulsate:(0,l.Z)(f.ripplePulsate,O.ripplePulsate),child:(0,l.Z)(f.child,O.child),childLeaving:(0,l.Z)(f.childLeaving,O.childLeaving),childPulsate:(0,l.Z)(f.childPulsate,O.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},E.current)])})),E.current+=1,S.current=a}),[f]),D=s.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,a=t.center,o=void 0===a?u||t.pulsate:a,s=t.fakeElement,l=void 0!==s&&s;if("mousedown"===(null==e?void 0:e.type)&&w.current)w.current=!1;else{"touchstart"===(null==e?void 0:e.type)&&(w.current=!0);var c,d,f,p=l?null:A.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(h.width/2),d=Math.round(h.height/2);else{var m=e.touches&&e.touches.length>0?e.touches[0]:e,g=m.clientX,v=m.clientY;c=Math.round(g-h.left),d=Math.round(v-h.top)}if(o)(f=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(f+=1);else{var y=2*Math.max(Math.abs((p?p.clientWidth:0)-c),c)+2,_=2*Math.max(Math.abs((p?p.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(y,2)+Math.pow(_,2))}null!=e&&e.touches?null===T.current&&(T.current=function(){k({pulsate:i,rippleX:c,rippleY:d,rippleSize:f,cb:n})},C.current=setTimeout((function(){T.current&&(T.current(),T.current=null)}),80)):k({pulsate:i,rippleX:c,rippleY:d,rippleSize:f,cb:n})}}),[u,k]),R=s.useCallback((function(){D({},{pulsate:!0})}),[D]),N=s.useCallback((function(e,t){if(clearTimeout(C.current),"touchend"===(null==e?void 0:e.type)&&T.current)return T.current(),T.current=null,void(C.current=setTimeout((function(){N(e,t)})));T.current=null,x((function(e){return e.length>0?e.slice(1):e})),S.current=t}),[]);return s.useImperativeHandle(t,(function(){return{pulsate:R,start:D,stop:N}}),[R,D,N]),(0,_.jsx)(P,(0,a.Z)({className:(0,l.Z)(O.root,f.root,p),ref:A},h,{children:(0,_.jsx)(v.Z,{component:null,exit:!0,children:b})}))})),B=F,Z=n(32298);function z(e){return(0,Z.Z)("MuiButtonBase",e)}var U,j=(0,x.Z)("MuiButtonBase",["root","disabled","focusVisible"]),G=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],V=(0,c.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,t){return t.root}})((U={display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"}},(0,i.Z)(U,"&.".concat(j.disabled),{pointerEvents:"none",cursor:"default"}),(0,i.Z)(U,"@media print",{colorAdjust:"exact"}),U)),q=s.forwardRef((function(e,t){var n=(0,d.Z)({props:e,name:"MuiButtonBase"}),i=n.action,c=n.centerRipple,m=void 0!==c&&c,g=n.children,v=n.className,y=n.component,b=void 0===y?"button":y,x=n.disabled,E=void 0!==x&&x,S=n.disableRipple,w=void 0!==S&&S,C=n.disableTouchRipple,T=void 0!==C&&C,A=n.focusRipple,k=void 0!==A&&A,D=n.LinkComponent,O=void 0===D?"a":D,I=n.onBlur,R=n.onClick,N=n.onContextMenu,M=n.onDragLeave,P=n.onFocus,L=n.onFocusVisible,F=n.onKeyDown,Z=n.onKeyUp,U=n.onMouseDown,j=n.onMouseLeave,q=n.onMouseUp,H=n.onTouchEnd,Y=n.onTouchMove,W=n.onTouchStart,X=n.tabIndex,K=void 0===X?0:X,$=n.TouchRippleProps,Q=n.touchRippleRef,J=n.type,ee=(0,o.Z)(n,G),te=s.useRef(null),ne=s.useRef(null),re=(0,f.Z)(ne,Q),ie=(0,h.Z)(),ae=ie.isFocusVisibleRef,oe=ie.onFocus,se=ie.onBlur,le=ie.ref,ue=s.useState(!1),ce=(0,r.Z)(ue,2),de=ce[0],fe=ce[1];E&&de&&fe(!1),s.useImperativeHandle(i,(function(){return{focusVisible:function(){fe(!0),te.current.focus()}}}),[]);var pe=s.useState(!1),he=(0,r.Z)(pe,2),me=he[0],ge=he[1];s.useEffect((function(){ge(!0)}),[]);var ve=me&&!w&&!E;function ye(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T;return(0,p.Z)((function(r){return t&&t(r),!n&&ne.current&&ne.current[e](r),!0}))}s.useEffect((function(){de&&k&&!w&&me&&ne.current.pulsate()}),[w,k,de,me]);var _e=ye("start",U),be=ye("stop",N),xe=ye("stop",M),Ee=ye("stop",q),Se=ye("stop",(function(e){de&&e.preventDefault(),j&&j(e)})),we=ye("start",W),Ce=ye("stop",H),Te=ye("stop",Y),Ae=ye("stop",(function(e){se(e),!1===ae.current&&fe(!1),I&&I(e)}),!1),ke=(0,p.Z)((function(e){te.current||(te.current=e.currentTarget),oe(e),!0===ae.current&&(fe(!0),L&&L(e)),P&&P(e)})),De=function(){var e=te.current;return b&&"button"!==b&&!("A"===e.tagName&&e.href)},Oe=s.useRef(!1),Ie=(0,p.Z)((function(e){k&&!Oe.current&&de&&ne.current&&" "===e.key&&(Oe.current=!0,ne.current.stop(e,(function(){ne.current.start(e)}))),e.target===e.currentTarget&&De()&&" "===e.key&&e.preventDefault(),F&&F(e),e.target===e.currentTarget&&De()&&"Enter"===e.key&&!E&&(e.preventDefault(),R&&R(e))})),Re=(0,p.Z)((function(e){k&&" "===e.key&&ne.current&&de&&!e.defaultPrevented&&(Oe.current=!1,ne.current.stop(e,(function(){ne.current.pulsate(e)}))),Z&&Z(e),R&&e.target===e.currentTarget&&De()&&" "===e.key&&!e.defaultPrevented&&R(e)})),Ne=b;"button"===Ne&&(ee.href||ee.to)&&(Ne=O);var Me={};"button"===Ne?(Me.type=void 0===J?"button":J,Me.disabled=E):(ee.href||ee.to||(Me.role="button"),E&&(Me["aria-disabled"]=E));var Pe=(0,f.Z)(t,le,te);var Le=(0,a.Z)({},n,{centerRipple:m,component:b,disabled:E,disableRipple:w,disableTouchRipple:T,focusRipple:k,tabIndex:K,focusVisible:de}),Fe=function(e){var t=e.disabled,n=e.focusVisible,r=e.focusVisibleClassName,i=e.classes,a={root:["root",t&&"disabled",n&&"focusVisible"]},o=(0,u.Z)(a,z,i);return n&&r&&(o.root+=" ".concat(r)),o}(Le);return(0,_.jsxs)(V,(0,a.Z)({as:Ne,className:(0,l.Z)(Fe.root,v),ownerState:Le,onBlur:Ae,onClick:R,onContextMenu:be,onFocus:ke,onKeyDown:Ie,onKeyUp:Re,onMouseDown:_e,onMouseLeave:Se,onMouseUp:Ee,onDragLeave:xe,onTouchEnd:Ce,onTouchMove:Te,onTouchStart:we,ref:Pe,tabIndex:E?-1:K,type:J},Me,ee,{children:[g,ve?(0,_.jsx)(B,(0,a.Z)({ref:re,center:m},$)):null]}))})),H=q},40894:function(e,t,n){"use strict";var r=n(47313).createContext({});t.Z=r},41769:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(17551),c=n(45359),d=n(46095),f=n(46417),p=(0,d.Z)((0,f.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),h=(0,d.Z)((0,f.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),m=(0,d.Z)((0,f.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),g=n(28170),v=n(11236),y=n(64164),_=n(32298);function b(e){return(0,_.Z)("MuiCheckbox",e)}var x=(0,n(77430).Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),E=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],S=(0,y.ZP)(c.Z,{shouldForwardProp:function(e){return(0,y.FO)(e)||"classes"===e},name:"MuiCheckbox",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t["color".concat((0,g.Z)(n.color))]]}})((function(e){var t,n=e.theme,i=e.ownerState;return(0,a.Z)({color:(n.vars||n).palette.text.secondary},!i.disableRipple&&{"&:hover":{backgroundColor:n.vars?"rgba(".concat("default"===i.color?n.vars.palette.action.activeChannel:n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,u.Fq)("default"===i.color?n.palette.action.active:n.palette[i.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==i.color&&(t={},(0,r.Z)(t,"&.".concat(x.checked,", &.").concat(x.indeterminate),{color:(n.vars||n).palette[i.color].main}),(0,r.Z)(t,"&.".concat(x.disabled),{color:(n.vars||n).palette.action.disabled}),t))})),w=(0,f.jsx)(h,{}),C=(0,f.jsx)(p,{}),T=(0,f.jsx)(m,{}),A=o.forwardRef((function(e,t){var n,r,u=(0,v.Z)({props:e,name:"MuiCheckbox"}),c=u.checkedIcon,d=void 0===c?w:c,p=u.color,h=void 0===p?"primary":p,m=u.icon,y=void 0===m?C:m,_=u.indeterminate,x=void 0!==_&&_,A=u.indeterminateIcon,k=void 0===A?T:A,D=u.inputProps,O=u.size,I=void 0===O?"medium":O,R=u.className,N=(0,i.Z)(u,E),M=x?k:y,P=x?k:d,L=(0,a.Z)({},u,{color:h,indeterminate:x,size:I}),F=function(e){var t=e.classes,n=e.indeterminate,r=e.color,i={root:["root",n&&"indeterminate","color".concat((0,g.Z)(r))]},o=(0,l.Z)(i,b,t);return(0,a.Z)({},t,o)}(L);return(0,f.jsx)(S,(0,a.Z)({type:"checkbox",inputProps:(0,a.Z)({"data-indeterminate":x},D),icon:o.cloneElement(M,{fontSize:null!=(n=M.props.fontSize)?n:I}),checkedIcon:o.cloneElement(P,{fontSize:null!=(r=P.props.fontSize)?r:I}),ownerState:L,ref:t,className:(0,s.Z)(F.root,R)},N,{classes:F}))}))},75958:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(17551),c=n(46095),d=n(46417),f=(0,c.Z)((0,d.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),p=n(2995),h=n(28170),m=n(56456),g=n(11236),v=n(64164),y=n(32298);function _(e){return(0,y.Z)("MuiChip",e)}var b=(0,n(77430).Z)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),x=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"],E=(0,v.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,i=n.color,a=n.clickable,o=n.onDelete,s=n.size,l=n.variant;return[(0,r.Z)({},"& .".concat(b.avatar),t.avatar),(0,r.Z)({},"& .".concat(b.avatar),t["avatar".concat((0,h.Z)(s))]),(0,r.Z)({},"& .".concat(b.avatar),t["avatarColor".concat((0,h.Z)(i))]),(0,r.Z)({},"& .".concat(b.icon),t.icon),(0,r.Z)({},"& .".concat(b.icon),t["icon".concat((0,h.Z)(s))]),(0,r.Z)({},"& .".concat(b.icon),t["iconColor".concat((0,h.Z)(i))]),(0,r.Z)({},"& .".concat(b.deleteIcon),t.deleteIcon),(0,r.Z)({},"& .".concat(b.deleteIcon),t["deleteIcon".concat((0,h.Z)(s))]),(0,r.Z)({},"& .".concat(b.deleteIcon),t["deleteIconColor".concat((0,h.Z)(i))]),(0,r.Z)({},"& .".concat(b.deleteIcon),t["deleteIcon".concat((0,h.Z)(l),"Color").concat((0,h.Z)(i))]),t.root,t["size".concat((0,h.Z)(s))],t["color".concat((0,h.Z)(i))],a&&t.clickable,a&&"default"!==i&&t["clickableColor".concat((0,h.Z)(i),")")],o&&t.deletable,o&&"default"!==i&&t["deletableColor".concat((0,h.Z)(i))],t[l],t["".concat(l).concat((0,h.Z)(i))]]}})((function(e){var t,n=e.theme,i=e.ownerState,o=(0,u.Fq)(n.palette.text.primary,.26),s="light"===n.palette.mode?n.palette.grey[700]:n.palette.grey[300];return(0,a.Z)((t={maxWidth:"100%",fontFamily:n.typography.fontFamily,fontSize:n.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(n.vars||n).palette.text.primary,backgroundColor:(n.vars||n).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:n.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box"},(0,r.Z)(t,"&.".concat(b.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity,pointerEvents:"none"}),(0,r.Z)(t,"& .".concat(b.avatar),{marginLeft:5,marginRight:-6,width:24,height:24,color:n.vars?n.vars.palette.Chip.defaultAvatarColor:s,fontSize:n.typography.pxToRem(12)}),(0,r.Z)(t,"& .".concat(b.avatarColorPrimary),{color:(n.vars||n).palette.primary.contrastText,backgroundColor:(n.vars||n).palette.primary.dark}),(0,r.Z)(t,"& .".concat(b.avatarColorSecondary),{color:(n.vars||n).palette.secondary.contrastText,backgroundColor:(n.vars||n).palette.secondary.dark}),(0,r.Z)(t,"& .".concat(b.avatarSmall),{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:n.typography.pxToRem(10)}),(0,r.Z)(t,"& .".concat(b.icon),(0,a.Z)({color:n.vars?n.vars.palette.Chip.defaultIconColor:s,marginLeft:5,marginRight:-6},"small"===i.size&&{fontSize:18,marginLeft:4,marginRight:-4},"default"!==i.color&&{color:"inherit"})),(0,r.Z)(t,"& .".concat(b.deleteIcon),(0,a.Z)({WebkitTapHighlightColor:"transparent",color:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / 0.26)"):o,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / 0.4)"):(0,u.Fq)(o,.4)}},"small"===i.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==i.color&&{color:n.vars?"rgba(".concat(n.vars.palette[i.color].contrastTextChannel," / 0.7)"):(0,u.Fq)(n.palette[i.color].contrastText,.7),"&:hover, &:active":{color:(n.vars||n).palette[i.color].contrastText}})),t),"small"===i.size&&{height:24},"default"!==i.color&&{backgroundColor:(n.vars||n).palette[i.color].main,color:(n.vars||n).palette[i.color].contrastText},i.onDelete&&(0,r.Z)({},"&.".concat(b.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity+n.vars.palette.action.focusOpacity,"))"):(0,u.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),i.onDelete&&"default"!==i.color&&(0,r.Z)({},"&.".concat(b.focusVisible),{backgroundColor:(n.vars||n).palette[i.color].dark}))}),(function(e){var t,n=e.theme,i=e.ownerState;return(0,a.Z)({},i.clickable&&(t={userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity+n.vars.palette.action.hoverOpacity,"))"):(0,u.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity)}},(0,r.Z)(t,"&.".concat(b.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity+n.vars.palette.action.focusOpacity,"))"):(0,u.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),(0,r.Z)(t,"&:active",{boxShadow:(n.vars||n).shadows[1]}),t),i.clickable&&"default"!==i.color&&(0,r.Z)({},"&:hover, &.".concat(b.focusVisible),{backgroundColor:(n.vars||n).palette[i.color].dark}))}),(function(e){var t,n,i=e.theme,o=e.ownerState;return(0,a.Z)({},"outlined"===o.variant&&(t={backgroundColor:"transparent",border:i.vars?"1px solid ".concat(i.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===i.palette.mode?i.palette.grey[400]:i.palette.grey[700])},(0,r.Z)(t,"&.".concat(b.clickable,":hover"),{backgroundColor:(i.vars||i).palette.action.hover}),(0,r.Z)(t,"&.".concat(b.focusVisible),{backgroundColor:(i.vars||i).palette.action.focus}),(0,r.Z)(t,"& .".concat(b.avatar),{marginLeft:4}),(0,r.Z)(t,"& .".concat(b.avatarSmall),{marginLeft:2}),(0,r.Z)(t,"& .".concat(b.icon),{marginLeft:4}),(0,r.Z)(t,"& .".concat(b.iconSmall),{marginLeft:2}),(0,r.Z)(t,"& .".concat(b.deleteIcon),{marginRight:5}),(0,r.Z)(t,"& .".concat(b.deleteIconSmall),{marginRight:3}),t),"outlined"===o.variant&&"default"!==o.color&&(n={color:(i.vars||i).palette[o.color].main,border:"1px solid ".concat(i.vars?"rgba(".concat(i.vars.palette[o.color].mainChannel," / 0.7)"):(0,u.Fq)(i.palette[o.color].main,.7))},(0,r.Z)(n,"&.".concat(b.clickable,":hover"),{backgroundColor:i.vars?"rgba(".concat(i.vars.palette[o.color].mainChannel," / ").concat(i.vars.palette.action.hoverOpacity,")"):(0,u.Fq)(i.palette[o.color].main,i.palette.action.hoverOpacity)}),(0,r.Z)(n,"&.".concat(b.focusVisible),{backgroundColor:i.vars?"rgba(".concat(i.vars.palette[o.color].mainChannel," / ").concat(i.vars.palette.action.focusOpacity,")"):(0,u.Fq)(i.palette[o.color].main,i.palette.action.focusOpacity)}),(0,r.Z)(n,"& .".concat(b.deleteIcon),{color:i.vars?"rgba(".concat(i.vars.palette[o.color].mainChannel," / 0.7)"):(0,u.Fq)(i.palette[o.color].main,.7),"&:hover, &:active":{color:(i.vars||i).palette[o.color].main}}),n))})),S=(0,v.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:function(e,t){var n=e.ownerState.size;return[t.label,t["label".concat((0,h.Z)(n))]]}})((function(e){var t=e.ownerState;return(0,a.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===t.size&&{paddingLeft:8,paddingRight:8})}));function w(e){return"Backspace"===e.key||"Delete"===e.key}var C=o.forwardRef((function(e,t){var n=(0,g.Z)({props:e,name:"MuiChip"}),r=n.avatar,u=n.className,c=n.clickable,v=n.color,y=void 0===v?"default":v,b=n.component,C=n.deleteIcon,T=n.disabled,A=void 0!==T&&T,k=n.icon,D=n.label,O=n.onClick,I=n.onDelete,R=n.onKeyDown,N=n.onKeyUp,M=n.size,P=void 0===M?"medium":M,L=n.variant,F=void 0===L?"filled":L,B=(0,i.Z)(n,x),Z=o.useRef(null),z=(0,p.Z)(Z,t),U=function(e){e.stopPropagation(),I&&I(e)},j=!(!1===c||!O)||c,G=j||I?m.Z:b||"div",V=(0,a.Z)({},n,{component:G,disabled:A,size:P,color:y,onDelete:!!I,clickable:j,variant:F}),q=function(e){var t=e.classes,n=e.disabled,r=e.size,i=e.color,a=e.onDelete,o=e.clickable,s=e.variant,u={root:["root",s,n&&"disabled","size".concat((0,h.Z)(r)),"color".concat((0,h.Z)(i)),o&&"clickable",o&&"clickableColor".concat((0,h.Z)(i)),a&&"deletable",a&&"deletableColor".concat((0,h.Z)(i)),"".concat(s).concat((0,h.Z)(i))],label:["label","label".concat((0,h.Z)(r))],avatar:["avatar","avatar".concat((0,h.Z)(r)),"avatarColor".concat((0,h.Z)(i))],icon:["icon","icon".concat((0,h.Z)(r)),"iconColor".concat((0,h.Z)(i))],deleteIcon:["deleteIcon","deleteIcon".concat((0,h.Z)(r)),"deleteIconColor".concat((0,h.Z)(i)),"deleteIcon".concat((0,h.Z)(s),"Color").concat((0,h.Z)(i))]};return(0,l.Z)(u,_,t)}(V),H=G===m.Z?(0,a.Z)({component:b||"div",focusVisibleClassName:q.focusVisible},I&&{disableRipple:!0}):{},Y=null;I&&(Y=C&&o.isValidElement(C)?o.cloneElement(C,{className:(0,s.Z)(C.props.className,q.deleteIcon),onClick:U}):(0,d.jsx)(f,{className:(0,s.Z)(q.deleteIcon),onClick:U}));var W=null;r&&o.isValidElement(r)&&(W=o.cloneElement(r,{className:(0,s.Z)(q.avatar,r.props.className)}));var X=null;return k&&o.isValidElement(k)&&(X=o.cloneElement(k,{className:(0,s.Z)(q.icon,k.props.className)})),(0,d.jsxs)(E,(0,a.Z)({as:G,className:(0,s.Z)(q.root,u),disabled:!(!j||!A)||void 0,onClick:O,onKeyDown:function(e){e.currentTarget===e.target&&w(e)&&e.preventDefault(),R&&R(e)},onKeyUp:function(e){e.currentTarget===e.target&&(I&&w(e)?I(e):"Escape"===e.key&&Z.current&&Z.current.blur()),N&&N(e)},ref:z,ownerState:V},H,B,{children:[W||X,(0,d.jsx)(S,{className:(0,s.Z)(q.label),ownerState:V,children:D}),Y]}))}))},34207:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var r=n(30168),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(30686),c=n(28170),d=n(11236),f=n(64164),p=n(32298);function h(e){return(0,p.Z)("MuiCircularProgress",e)}(0,n(77430).Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var m,g,v,y,_,b,x,E,S=n(46417),w=["className","color","disableShrink","size","style","thickness","value","variant"],C=44,T=(0,u.F4)(_||(_=m||(m=(0,r.Z)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),A=(0,u.F4)(b||(b=g||(g=(0,r.Z)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),k=(0,f.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["color".concat((0,c.Z)(n.color))]]}})((function(e){var t=e.ownerState,n=e.theme;return(0,a.Z)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(function(e){return"indeterminate"===e.ownerState.variant&&(0,u.iv)(x||(x=v||(v=(0,r.Z)(["\n animation: "," 1.4s linear infinite;\n "]))),T)})),D=(0,f.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:function(e,t){return t.svg}})({display:"block"}),O=(0,f.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:function(e,t){var n=e.ownerState;return[t.circle,t["circle".concat((0,c.Z)(n.variant))],n.disableShrink&&t.circleDisableShrink]}})((function(e){var t=e.ownerState,n=e.theme;return(0,a.Z)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(function(e){var t=e.ownerState;return"indeterminate"===t.variant&&!t.disableShrink&&(0,u.iv)(E||(E=y||(y=(0,r.Z)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),A)})),I=o.forwardRef((function(e,t){var n=(0,d.Z)({props:e,name:"MuiCircularProgress"}),r=n.className,o=n.color,u=void 0===o?"primary":o,f=n.disableShrink,p=void 0!==f&&f,m=n.size,g=void 0===m?40:m,v=n.style,y=n.thickness,_=void 0===y?3.6:y,b=n.value,x=void 0===b?0:b,E=n.variant,T=void 0===E?"indeterminate":E,A=(0,i.Z)(n,w),I=(0,a.Z)({},n,{color:u,disableShrink:p,size:g,thickness:_,value:x,variant:T}),R=function(e){var t=e.classes,n=e.variant,r=e.color,i=e.disableShrink,a={root:["root",n,"color".concat((0,c.Z)(r))],svg:["svg"],circle:["circle","circle".concat((0,c.Z)(n)),i&&"circleDisableShrink"]};return(0,l.Z)(a,h,t)}(I),N={},M={},P={};if("determinate"===T){var L=2*Math.PI*((C-_)/2);N.strokeDasharray=L.toFixed(3),P["aria-valuenow"]=Math.round(x),N.strokeDashoffset="".concat(((100-x)/100*L).toFixed(3),"px"),M.transform="rotate(-90deg)"}return(0,S.jsx)(k,(0,a.Z)({className:(0,s.Z)(R.root,r),style:(0,a.Z)({width:g,height:g},M,v),ownerState:I,ref:t,role:"progressbar"},P,A,{children:(0,S.jsx)(D,{className:R.svg,ownerState:I,viewBox:"".concat(22," ").concat(22," ").concat(C," ").concat(C),children:(0,S.jsx)(O,{className:R.circle,style:N,ownerState:I,cx:C,cy:C,r:(C-_)/2,fill:"none",strokeWidth:_})})}))}))},28326:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(62242),u=n(21921),c=n(64164),d=n(11236),f=n(83019),p=n(68999),h=n(62111),m=n(2995),g=n(32298);function v(e){return(0,g.Z)("MuiCollapse",e)}(0,n(77430).Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var y=n(46417),_=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],b=(0,c.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({height:0,overflow:"hidden",transition:t.transitions.create("height")},"horizontal"===n.orientation&&{height:"auto",width:0,transition:t.transitions.create("width")},"entered"===n.state&&(0,a.Z)({height:"auto",overflow:"visible"},"horizontal"===n.orientation&&{width:"auto"}),"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&{visibility:"hidden"})})),x=(0,c.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:function(e,t){return t.wrapper}})((function(e){var t=e.ownerState;return(0,a.Z)({display:"flex",width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),E=(0,c.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:function(e,t){return t.wrapperInner}})((function(e){var t=e.ownerState;return(0,a.Z)({width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),S=o.forwardRef((function(e,t){var n=(0,d.Z)({props:e,name:"MuiCollapse"}),c=n.addEndListener,g=n.children,S=n.className,w=n.collapsedSize,C=void 0===w?"0px":w,T=n.component,A=n.easing,k=n.in,D=n.onEnter,O=n.onEntered,I=n.onEntering,R=n.onExit,N=n.onExited,M=n.onExiting,P=n.orientation,L=void 0===P?"vertical":P,F=n.style,B=n.timeout,Z=void 0===B?f.x9.standard:B,z=n.TransitionComponent,U=void 0===z?l.ZP:z,j=(0,i.Z)(n,_),G=(0,a.Z)({},n,{orientation:L,collapsedSize:C}),V=function(e){var t=e.orientation,n=e.classes,r={root:["root","".concat(t)],entered:["entered"],hidden:["hidden"],wrapper:["wrapper","".concat(t)],wrapperInner:["wrapperInner","".concat(t)]};return(0,u.Z)(r,v,n)}(G),q=(0,h.Z)(),H=o.useRef(),Y=o.useRef(null),W=o.useRef(),X="number"===typeof C?"".concat(C,"px"):C,K="horizontal"===L,$=K?"width":"height";o.useEffect((function(){return function(){clearTimeout(H.current)}}),[]);var Q=o.useRef(null),J=(0,m.Z)(t,Q),ee=function(e){return function(t){if(e){var n=Q.current;void 0===t?e(n):e(n,t)}}},te=function(){return Y.current?Y.current[K?"clientWidth":"clientHeight"]:0},ne=ee((function(e,t){Y.current&&K&&(Y.current.style.position="absolute"),e.style[$]=X,D&&D(e,t)})),re=ee((function(e,t){var n=te();Y.current&&K&&(Y.current.style.position="");var r=(0,p.C)({style:F,timeout:Z,easing:A},{mode:"enter"}),i=r.duration,a=r.easing;if("auto"===Z){var o=q.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(o,"ms"),W.current=o}else e.style.transitionDuration="string"===typeof i?i:"".concat(i,"ms");e.style[$]="".concat(n,"px"),e.style.transitionTimingFunction=a,I&&I(e,t)})),ie=ee((function(e,t){e.style[$]="auto",O&&O(e,t)})),ae=ee((function(e){e.style[$]="".concat(te(),"px"),R&&R(e)})),oe=ee(N),se=ee((function(e){var t=te(),n=(0,p.C)({style:F,timeout:Z,easing:A},{mode:"exit"}),r=n.duration,i=n.easing;if("auto"===Z){var a=q.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(a,"ms"),W.current=a}else e.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");e.style[$]=X,e.style.transitionTimingFunction=i,M&&M(e)}));return(0,y.jsx)(U,(0,a.Z)({in:k,onEnter:ne,onEntered:ie,onEntering:re,onExit:ae,onExited:oe,onExiting:se,addEndListener:function(e){"auto"===Z&&(H.current=setTimeout(e,W.current||0)),c&&c(Q.current,e)},nodeRef:Q,timeout:"auto"===Z?null:Z},j,{children:function(e,t){return(0,y.jsx)(b,(0,a.Z)({as:T,className:(0,s.Z)(V.root,S,{entered:V.entered,exited:!k&&"0px"===X&&V.hidden}[e]),style:(0,a.Z)((0,r.Z)({},K?"minWidth":"minHeight",X),F),ownerState:(0,a.Z)({},G,{state:e}),ref:J},t,{children:(0,y.jsx)(x,{ownerState:(0,a.Z)({},G,{state:e}),className:V.wrapper,ref:Y,children:(0,y.jsx)(E,{ownerState:(0,a.Z)({},G,{state:e}),className:V.wrapperInner,children:g})})}))}}))}));S.muiSupportAuto=!0;var w=S},80941:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(50114),u=n(32298),c=n(21921),d=n(14614),f=n(96694),p=n(9456),h=n(46417),m=["className","component","disableGutters","fixed","maxWidth","classes"],g=(0,p.Z)(),v=(0,f.Z)("div",{name:"MuiContainer",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["maxWidth".concat((0,l.Z)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),y=function(e){return(0,d.Z)({props:e,name:"MuiContainer",defaultTheme:g})},_=function(e,t){var n=e.classes,r=e.fixed,i=e.disableGutters,a=e.maxWidth,o={root:["root",a&&"maxWidth".concat((0,l.Z)(String(a))),r&&"fixed",i&&"disableGutters"]};return(0,c.Z)(o,(function(e){return(0,u.Z)(t,e)}),n)};var b=n(28170),x=n(64164),E=n(11236),S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createStyledComponent,n=void 0===t?v:t,l=e.useThemeProps,u=void 0===l?y:l,c=e.componentName,d=void 0===c?"MuiContainer":c,f=n((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!n.disableGutters&&(0,r.Z)({paddingLeft:t.spacing(2),paddingRight:t.spacing(2)},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}))}),(function(e){var t=e.theme;return e.ownerState.fixed&&Object.keys(t.breakpoints.values).reduce((function(e,n){var r=n,i=t.breakpoints.values[r];return 0!==i&&(e[t.breakpoints.up(r)]={maxWidth:"".concat(i).concat(t.breakpoints.unit)}),e}),{})}),(function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({},"xs"===n.maxWidth&&(0,r.Z)({},t.breakpoints.up("xs"),{maxWidth:Math.max(t.breakpoints.values.xs,444)}),n.maxWidth&&"xs"!==n.maxWidth&&(0,r.Z)({},t.breakpoints.up(n.maxWidth),{maxWidth:"".concat(t.breakpoints.values[n.maxWidth]).concat(t.breakpoints.unit)}))})),p=o.forwardRef((function(e,t){var n=u(e),r=n.className,o=n.component,l=void 0===o?"div":o,c=n.disableGutters,p=void 0!==c&&c,g=n.fixed,v=void 0!==g&&g,y=n.maxWidth,b=void 0===y?"lg":y,x=(0,i.Z)(n,m),E=(0,a.Z)({},n,{component:l,disableGutters:p,fixed:v,maxWidth:b}),S=_(E,d);return(0,h.jsx)(f,(0,a.Z)({as:l,ownerState:E,className:(0,s.Z)(S.root,r),ref:t},x))}));return p}({createStyledComponent:(0,x.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["maxWidth".concat((0,b.Z)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:function(e){return(0,E.Z)({props:e,name:"MuiContainer"})}}),w=S},27403:function(e,t,n){"use strict";var r=n(29439),i=n(87462),a=n(47313),o=n(11236),s=n(27100),l=n(46417),u=function(e,t){return(0,i.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode})},c=function(e){return(0,i.Z)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}})};t.ZP=function(e){var t=(0,o.Z)({props:e,name:"MuiCssBaseline"}),n=t.children,d=t.enableColorScheme,f=void 0!==d&&d;return(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)(s.Z,{styles:function(e){return function(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={};a&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((function(t){var n,i=(0,r.Z)(t,2),a=i[0],s=i[1];o[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:null==(n=s.palette)?void 0:n.mode}}));var s=(0,i.Z)({html:u(e,a),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,i.Z)({margin:0},c(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},o),l=null==(t=e.components)||null==(n=t.MuiCssBaseline)?void 0:n.styleOverrides;return l&&(s=[s,l]),s}(e,f)}}),n]})}},57631:function(e,t,n){"use strict";var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(33362),c=n(28170),d=n(97148),f=n(32410),p=n(32415),h=n(11236),m=n(64164),g=n(86695),v=n(11954),y=n(58921),_=n(62111),b=n(46417),x=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],E=(0,m.ZP)(y.Z,{name:"MuiDialog",slot:"Backdrop",overrides:function(e,t){return t.backdrop}})({zIndex:-1}),S=(0,m.ZP)(d.Z,{name:"MuiDialog",slot:"Root",overridesResolver:function(e,t){return t.root}})({"@media print":{position:"absolute !important"}}),w=(0,m.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:function(e,t){var n=e.ownerState;return[t.container,t["scroll".concat((0,c.Z)(n.scroll))]]}})((function(e){var t=e.ownerState;return(0,a.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),C=(0,m.ZP)(p.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:function(e,t){var n=e.ownerState;return[t.paper,t["scrollPaper".concat((0,c.Z)(n.scroll))],t["paperWidth".concat((0,c.Z)(String(n.maxWidth)))],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===n.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===n.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!n.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===n.maxWidth&&(0,r.Z)({maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit)},"&.".concat(g.Z.paperScrollBody),(0,r.Z)({},t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})),n.maxWidth&&"xs"!==n.maxWidth&&(0,r.Z)({maxWidth:"".concat(t.breakpoints.values[n.maxWidth]).concat(t.breakpoints.unit)},"&.".concat(g.Z.paperScrollBody),(0,r.Z)({},t.breakpoints.down(t.breakpoints.values[n.maxWidth]+64),{maxWidth:"calc(100% - 64px)"})),n.fullWidth&&{width:"calc(100% - 64px)"},n.fullScreen&&(0,r.Z)({margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0},"&.".concat(g.Z.paperScrollBody),{margin:0,maxWidth:"100%"}))})),T=o.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiDialog"}),r=(0,_.Z)(),d={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},m=n["aria-describedby"],y=n["aria-labelledby"],T=n.BackdropComponent,A=n.BackdropProps,k=n.children,D=n.className,O=n.disableEscapeKeyDown,I=void 0!==O&&O,R=n.fullScreen,N=void 0!==R&&R,M=n.fullWidth,P=void 0!==M&&M,L=n.maxWidth,F=void 0===L?"sm":L,B=n.onBackdropClick,Z=n.onClose,z=n.open,U=n.PaperComponent,j=void 0===U?p.Z:U,G=n.PaperProps,V=void 0===G?{}:G,q=n.scroll,H=void 0===q?"paper":q,Y=n.TransitionComponent,W=void 0===Y?f.Z:Y,X=n.transitionDuration,K=void 0===X?d:X,$=n.TransitionProps,Q=(0,i.Z)(n,x),J=(0,a.Z)({},n,{disableEscapeKeyDown:I,fullScreen:N,fullWidth:P,maxWidth:F,scroll:H}),ee=function(e){var t=e.classes,n=e.scroll,r=e.maxWidth,i=e.fullWidth,a=e.fullScreen,o={root:["root"],container:["container","scroll".concat((0,c.Z)(n))],paper:["paper","paperScroll".concat((0,c.Z)(n)),"paperWidth".concat((0,c.Z)(String(r))),i&&"paperFullWidth",a&&"paperFullScreen"]};return(0,l.Z)(o,g.D,t)}(J),te=o.useRef(),ne=(0,u.Z)(y),re=o.useMemo((function(){return{titleId:ne}}),[ne]);return(0,b.jsx)(S,(0,a.Z)({className:(0,s.Z)(ee.root,D),closeAfterTransition:!0,components:{Backdrop:E},componentsProps:{backdrop:(0,a.Z)({transitionDuration:K,as:T},A)},disableEscapeKeyDown:I,onClose:Z,open:z,ref:t,onClick:function(e){te.current&&(te.current=null,B&&B(e),Z&&Z(e,"backdropClick"))},ownerState:J},Q,{children:(0,b.jsx)(W,(0,a.Z)({appear:!0,in:z,timeout:K,role:"presentation"},$,{children:(0,b.jsx)(w,{className:(0,s.Z)(ee.container),onMouseDown:function(e){te.current=e.target===e.currentTarget},ownerState:J,children:(0,b.jsx)(C,(0,a.Z)({as:j,elevation:24,role:"dialog","aria-describedby":m,"aria-labelledby":ne},V,{className:(0,s.Z)(ee.paper,V.className),ownerState:J,children:(0,b.jsx)(v.Z.Provider,{value:re,children:k})}))})}))}))}));t.Z=T},11954:function(e,t,n){"use strict";var r=(0,n(47313).createContext)({});t.Z=r},86695:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(32298);function i(e){return(0,r.Z)("MuiDialog",e)}var a=(0,n(77430).Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);t.Z=a},34940:function(e,t,n){"use strict";var r=n(63366),i=n(87462),a=n(47313),o=n(83061),s=n(21921),l=n(17551),u=n(64164),c=n(11236),d=n(92310),f=n(46417),p=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],h=(0,u.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((function(e){var t=e.theme,n=e.ownerState;return(0,i.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},n.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},n.light&&{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):(0,l.Fq)(t.palette.divider,.08)},"inset"===n.variant&&{marginLeft:72},"middle"===n.variant&&"horizontal"===n.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===n.variant&&"vertical"===n.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===n.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},n.flexItem&&{alignSelf:"stretch",height:"auto"})}),(function(e){var t=e.theme,n=e.ownerState;return(0,i.Z)({},n.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider),top:"50%",content:'""',transform:"translateY(50%)"}})}),(function(e){var t=e.theme,n=e.ownerState;return(0,i.Z)({},n.children&&"vertical"===n.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:"thin solid ".concat((t.vars||t).palette.divider),transform:"translateX(0%)"}})}),(function(e){var t=e.ownerState;return(0,i.Z)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),m=(0,u.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:function(e,t){var n=e.ownerState;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((function(e){var t=e.theme,n=e.ownerState;return(0,i.Z)({display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)")},"vertical"===n.orientation&&{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")})})),g=a.forwardRef((function(e,t){var n=(0,c.Z)({props:e,name:"MuiDivider"}),a=n.absolute,l=void 0!==a&&a,u=n.children,g=n.className,v=n.component,y=void 0===v?u?"div":"hr":v,_=n.flexItem,b=void 0!==_&&_,x=n.light,E=void 0!==x&&x,S=n.orientation,w=void 0===S?"horizontal":S,C=n.role,T=void 0===C?"hr"!==y?"separator":void 0:C,A=n.textAlign,k=void 0===A?"center":A,D=n.variant,O=void 0===D?"fullWidth":D,I=(0,r.Z)(n,p),R=(0,i.Z)({},n,{absolute:l,component:y,flexItem:b,light:E,orientation:w,role:T,textAlign:k,variant:O}),N=function(e){var t=e.absolute,n=e.children,r=e.classes,i=e.flexItem,a=e.light,o=e.orientation,l=e.textAlign,u={root:["root",t&&"absolute",e.variant,a&&"light","vertical"===o&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===o&&"withChildrenVertical","right"===l&&"vertical"!==o&&"textAlignRight","left"===l&&"vertical"!==o&&"textAlignLeft"],wrapper:["wrapper","vertical"===o&&"wrapperVertical"]};return(0,s.Z)(u,d.V,r)}(R);return(0,f.jsx)(h,(0,i.Z)({as:y,className:(0,o.Z)(N.root,g),role:T,ref:t,ownerState:R},I,{children:u?(0,f.jsx)(m,{className:N.wrapper,ownerState:R,children:u}):null}))}));t.Z=g},92310:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(32298);function i(e){return(0,r.Z)("MuiDivider",e)}var a=(0,n(77430).Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);t.Z=a},86360:function(e,t,n){"use strict";n.d(t,{ZP:function(){return C}});var r=n(63366),i=n(87462),a=n(47313),o=n(83061),s=n(21921),l=n(97148),u=n(69791),c=n(32415),d=n(28170),f=n(62111),p=n(11236),h=n(64164),m=n(32298);function g(e){return(0,m.Z)("MuiDrawer",e)}(0,n(77430).Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);var v=n(46417),y=["BackdropProps"],_=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],b=function(e,t){var n=e.ownerState;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},x=(0,h.ZP)(l.Z,{name:"MuiDrawer",slot:"Root",overridesResolver:b})((function(e){var t=e.theme;return{zIndex:(t.vars||t).zIndex.drawer}})),E=(0,h.ZP)("div",{shouldForwardProp:h.FO,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:b})({flex:"0 0 auto"}),S=(0,h.ZP)(c.Z,{name:"MuiDrawer",slot:"Paper",overridesResolver:function(e,t){var n=e.ownerState;return[t.paper,t["paperAnchor".concat((0,d.Z)(n.anchor))],"temporary"!==n.variant&&t["paperAnchorDocked".concat((0,d.Z)(n.anchor))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,i.Z)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===n.anchor&&{left:0},"top"===n.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===n.anchor&&{right:0},"bottom"===n.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===n.anchor&&"temporary"!==n.variant&&{borderRight:"1px solid ".concat((t.vars||t).palette.divider)},"top"===n.anchor&&"temporary"!==n.variant&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider)},"right"===n.anchor&&"temporary"!==n.variant&&{borderLeft:"1px solid ".concat((t.vars||t).palette.divider)},"bottom"===n.anchor&&"temporary"!==n.variant&&{borderTop:"1px solid ".concat((t.vars||t).palette.divider)})})),w={left:"right",right:"left",top:"down",bottom:"up"};var C=a.forwardRef((function(e,t){var n=(0,p.Z)({props:e,name:"MuiDrawer"}),l=(0,f.Z)(),c={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},h=n.anchor,m=void 0===h?"left":h,b=n.BackdropProps,C=n.children,T=n.className,A=n.elevation,k=void 0===A?16:A,D=n.hideBackdrop,O=void 0!==D&&D,I=n.ModalProps,R=(I=void 0===I?{}:I).BackdropProps,N=n.onClose,M=n.open,P=void 0!==M&&M,L=n.PaperProps,F=void 0===L?{}:L,B=n.SlideProps,Z=n.TransitionComponent,z=void 0===Z?u.Z:Z,U=n.transitionDuration,j=void 0===U?c:U,G=n.variant,V=void 0===G?"temporary":G,q=(0,r.Z)(n.ModalProps,y),H=(0,r.Z)(n,_),Y=a.useRef(!1);a.useEffect((function(){Y.current=!0}),[]);var W=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?w[t]:t}(l,m),X=m,K=(0,i.Z)({},n,{anchor:X,elevation:k,open:P,variant:V},H),$=function(e){var t=e.classes,n=e.anchor,r=e.variant,i={root:["root"],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper","paperAnchor".concat((0,d.Z)(n)),"temporary"!==r&&"paperAnchorDocked".concat((0,d.Z)(n))]};return(0,s.Z)(i,g,t)}(K),Q=(0,v.jsx)(S,(0,i.Z)({elevation:"temporary"===V?k:0,square:!0},F,{className:(0,o.Z)($.paper,F.className),ownerState:K,children:C}));if("permanent"===V)return(0,v.jsx)(E,(0,i.Z)({className:(0,o.Z)($.root,$.docked,T),ownerState:K,ref:t},H,{children:Q}));var J=(0,v.jsx)(z,(0,i.Z)({in:P,direction:w[W],timeout:j,appear:Y.current},B,{children:Q}));return"persistent"===V?(0,v.jsx)(E,(0,i.Z)({className:(0,o.Z)($.root,$.docked,T),ownerState:K,ref:t},H,{children:J})):(0,v.jsx)(x,(0,i.Z)({BackdropProps:(0,i.Z)({},b,R,{transitionDuration:j}),className:(0,o.Z)($.root,$.modal,T),open:P,ownerState:K,onClose:N,hideBackdrop:O,ref:t},H,q,{children:J}))}))},4749:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(56456),c=n(28170),d=n(11236),f=n(32298);function p(e){return(0,f.Z)("MuiFab",e)}var h=(0,n(77430).Z)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),m=n(64164),g=n(46417),v=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],y=(0,m.ZP)(u.Z,{name:"MuiFab",slot:"Root",shouldForwardProp:function(e){return(0,m.FO)(e)||"classes"===e},overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["size".concat((0,c.Z)(n.size))],"inherit"===n.color&&t.colorInherit,t[(0,c.Z)(n.size)],t[n.color]]}})((function(e){var t,n,i,o=e.theme,s=e.ownerState;return(0,a.Z)({},o.typography.button,(t={minHeight:36,transition:o.transitions.create(["background-color","box-shadow","border-color"],{duration:o.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(o.vars||o).zIndex.fab,boxShadow:(o.vars||o).shadows[6],"&:active":{boxShadow:(o.vars||o).shadows[12]},color:o.vars?o.vars.palette.text.primary:null==(n=(i=o.palette).getContrastText)?void 0:n.call(i,o.palette.grey[300]),backgroundColor:(o.vars||o).palette.grey[300],"&:hover":{backgroundColor:(o.vars||o).palette.grey.A100,"@media (hover: none)":{backgroundColor:(o.vars||o).palette.grey[300]},textDecoration:"none"}},(0,r.Z)(t,"&.".concat(h.focusVisible),{boxShadow:(o.vars||o).shadows[6]}),(0,r.Z)(t,"&.".concat(h.disabled),{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground}),t),"small"===s.size&&{width:40,height:40},"medium"===s.size&&{width:48,height:48},"extended"===s.variant&&{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},"extended"===s.variant&&"small"===s.size&&{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"extended"===s.variant&&"medium"===s.size&&{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40},"inherit"===s.color&&{color:"inherit"})}),(function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({},"inherit"!==n.color&&"default"!==n.color&&null!=(t.vars||t).palette[n.color]&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}})})),_=o.forwardRef((function(e,t){var n=(0,d.Z)({props:e,name:"MuiFab"}),r=n.children,o=n.className,u=n.color,f=void 0===u?"default":u,h=n.component,m=void 0===h?"button":h,_=n.disabled,b=void 0!==_&&_,x=n.disableFocusRipple,E=void 0!==x&&x,S=n.focusVisibleClassName,w=n.size,C=void 0===w?"large":w,T=n.variant,A=void 0===T?"circular":T,k=(0,i.Z)(n,v),D=(0,a.Z)({},n,{color:f,component:m,disabled:b,disableFocusRipple:E,size:C,variant:A}),O=function(e){var t=e.color,n=e.variant,r=e.classes,i=e.size,o={root:["root",n,"size".concat((0,c.Z)(i)),"inherit"===t?"colorInherit":t]},s=(0,l.Z)(o,p,r);return(0,a.Z)({},r,s)}(D);return(0,g.jsx)(y,(0,a.Z)({className:(0,s.Z)(O.root,o),component:m,disabled:b,focusRipple:!E,focusVisibleClassName:(0,s.Z)(O.focusVisible,S),ownerState:D,ref:t},k,{classes:O,children:r}))}))},32410:function(e,t,n){"use strict";var r=n(87462),i=n(63366),a=n(47313),o=n(62242),s=n(62111),l=n(68999),u=n(2995),c=n(46417),d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],f={entering:{opacity:1},entered:{opacity:1}},p=a.forwardRef((function(e,t){var n=(0,s.Z)(),p={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},h=e.addEndListener,m=e.appear,g=void 0===m||m,v=e.children,y=e.easing,_=e.in,b=e.onEnter,x=e.onEntered,E=e.onEntering,S=e.onExit,w=e.onExited,C=e.onExiting,T=e.style,A=e.timeout,k=void 0===A?p:A,D=e.TransitionComponent,O=void 0===D?o.ZP:D,I=(0,i.Z)(e,d),R=a.useRef(null),N=(0,u.Z)(R,v.ref,t),M=function(e){return function(t){if(e){var n=R.current;void 0===t?e(n):e(n,t)}}},P=M(E),L=M((function(e,t){(0,l.n)(e);var r=(0,l.C)({style:T,timeout:k,easing:y},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),b&&b(e,t)})),F=M(x),B=M(C),Z=M((function(e){var t=(0,l.C)({style:T,timeout:k,easing:y},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),S&&S(e)})),z=M(w);return(0,c.jsx)(O,(0,r.Z)({appear:g,in:_,nodeRef:R,onEnter:L,onEntered:F,onEntering:P,onExit:Z,onExited:z,onExiting:B,addEndListener:function(e){h&&h(R.current,e)},timeout:k},I,{children:function(e,t){return a.cloneElement(v,(0,r.Z)({style:(0,r.Z)({opacity:0,visibility:"exited"!==e||_?void 0:"hidden"},f[e],T,v.props.style),ref:N},t))}}))}));t.Z=p},31731:function(e,t,n){"use strict";var r=n(4942),i=n(93433),a=n(63366),o=n(87462),s=n(47313),l=n(13019),u=n(21921),c=n(78629),d=n(64164),f=n(11236),p=n(47902),h=n(46417),m=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","type"],g=(0,d.ZP)(c.Ej,{shouldForwardProp:function(e){return(0,d.FO)(e)||"classes"===e},name:"MuiFilledInput",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[].concat((0,i.Z)((0,c.Gx)(e,t)),[!n.disableUnderline&&t.underline])}})((function(e){var t,n,i,a=e.theme,s=e.ownerState,l="light"===a.palette.mode,u=l?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",c=l?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",d=l?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",f=l?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,o.Z)((t={position:"relative",backgroundColor:a.vars?a.vars.palette.FilledInput.bg:c,borderTopLeftRadius:(a.vars||a).shape.borderRadius,borderTopRightRadius:(a.vars||a).shape.borderRadius,transition:a.transitions.create("background-color",{duration:a.transitions.duration.shorter,easing:a.transitions.easing.easeOut}),"&:hover":{backgroundColor:a.vars?a.vars.palette.FilledInput.hoverBg:d,"@media (hover: none)":{backgroundColor:a.vars?a.vars.palette.FilledInput.bg:c}}},(0,r.Z)(t,"&.".concat(p.Z.focused),{backgroundColor:a.vars?a.vars.palette.FilledInput.bg:c}),(0,r.Z)(t,"&.".concat(p.Z.disabled),{backgroundColor:a.vars?a.vars.palette.FilledInput.disabledBg:f}),t),!s.disableUnderline&&(n={"&:after":{borderBottom:"2px solid ".concat(null==(i=(a.vars||a).palette[s.color||"primary"])?void 0:i.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:a.transitions.create("transform",{duration:a.transitions.duration.shorter,easing:a.transitions.easing.easeOut}),pointerEvents:"none"}},(0,r.Z)(n,"&.".concat(p.Z.focused,":after"),{transform:"scaleX(1) translateX(0)"}),(0,r.Z)(n,"&.".concat(p.Z.error,":after"),{borderBottomColor:(a.vars||a).palette.error.main,transform:"scaleX(1)"}),(0,r.Z)(n,"&:before",{borderBottom:"1px solid ".concat(a.vars?"rgba(".concat(a.vars.palette.common.onBackgroundChannel," / ").concat(a.vars.opacity.inputUnderline,")"):u),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:a.transitions.create("border-bottom-color",{duration:a.transitions.duration.shorter}),pointerEvents:"none"}),(0,r.Z)(n,"&:hover:not(.".concat(p.Z.disabled,"):before"),{borderBottom:"1px solid ".concat((a.vars||a).palette.text.primary)}),(0,r.Z)(n,"&.".concat(p.Z.disabled,":before"),{borderBottomStyle:"dotted"}),n),s.startAdornment&&{paddingLeft:12},s.endAdornment&&{paddingRight:12},s.multiline&&(0,o.Z)({padding:"25px 12px 8px"},"small"===s.size&&{paddingTop:21,paddingBottom:4},s.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),v=(0,d.ZP)(c.rA,{name:"MuiFilledInput",slot:"Input",overridesResolver:c._o})((function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&(0,r.Z)({"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9})})),y=s.forwardRef((function(e,t){var n=(0,f.Z)({props:e,name:"MuiFilledInput"}),r=n.components,i=void 0===r?{}:r,s=n.componentsProps,d=n.fullWidth,y=void 0!==d&&d,_=n.inputComponent,b=void 0===_?"input":_,x=n.multiline,E=void 0!==x&&x,S=n.type,w=void 0===S?"text":S,C=(0,a.Z)(n,m),T=(0,o.Z)({},n,{fullWidth:y,inputComponent:b,multiline:E,type:w}),A=function(e){var t=e.classes,n={root:["root",!e.disableUnderline&&"underline"],input:["input"]},r=(0,u.Z)(n,p._,t);return(0,o.Z)({},t,r)}(n),k={root:{ownerState:T},input:{ownerState:T}},D=s?(0,l.Z)(s,k):k;return(0,h.jsx)(c.ZP,(0,o.Z)({components:(0,o.Z)({Root:g,Input:v},i),componentsProps:D,fullWidth:y,inputComponent:b,multiline:E,ref:t,type:w},C,{classes:A}))}));y.muiName="Input",t.Z=y},47902:function(e,t,n){"use strict";n.d(t,{_:function(){return s}});var r=n(87462),i=n(32298),a=n(77430),o=n(99876);function s(e){return(0,i.Z)("MuiFilledInput",e)}var l=(0,r.Z)({},o.Z,(0,a.Z)("MuiFilledInput",["root","underline","input"]));t.Z=l},10383:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(29439),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(11236),c=n(64164),d=n(97868),f=n(28170),p=n(41340),h=n(10829),m=n(32298);function g(e){return(0,m.Z)("MuiFormControl",e)}(0,n(77430).Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var v=n(46417),y=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],_=(0,c.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return(0,a.Z)({},t.root,t["margin".concat((0,f.Z)(n.margin))],n.fullWidth&&t.fullWidth)}})((function(e){var t=e.ownerState;return(0,a.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),b=o.forwardRef((function(e,t){var n=(0,u.Z)({props:e,name:"MuiFormControl"}),c=n.children,m=n.className,b=n.color,x=void 0===b?"primary":b,E=n.component,S=void 0===E?"div":E,w=n.disabled,C=void 0!==w&&w,T=n.error,A=void 0!==T&&T,k=n.focused,D=n.fullWidth,O=void 0!==D&&D,I=n.hiddenLabel,R=void 0!==I&&I,N=n.margin,M=void 0===N?"none":N,P=n.required,L=void 0!==P&&P,F=n.size,B=void 0===F?"medium":F,Z=n.variant,z=void 0===Z?"outlined":Z,U=(0,i.Z)(n,y),j=(0,a.Z)({},n,{color:x,component:S,disabled:C,error:A,fullWidth:O,hiddenLabel:R,margin:M,required:L,size:B,variant:z}),G=function(e){var t=e.classes,n=e.margin,r=e.fullWidth,i={root:["root","none"!==n&&"margin".concat((0,f.Z)(n)),r&&"fullWidth"]};return(0,l.Z)(i,g,t)}(j),V=o.useState((function(){var e=!1;return c&&o.Children.forEach(c,(function(t){if((0,p.Z)(t,["Input","Select"])){var n=(0,p.Z)(t,["Select"])?t.props.input:t;n&&(0,d.B7)(n.props)&&(e=!0)}})),e})),q=(0,r.Z)(V,2),H=q[0],Y=q[1],W=o.useState((function(){var e=!1;return c&&o.Children.forEach(c,(function(t){(0,p.Z)(t,["Input","Select"])&&(0,d.vd)(t.props,!0)&&(e=!0)})),e})),X=(0,r.Z)(W,2),K=X[0],$=X[1],Q=o.useState(!1),J=(0,r.Z)(Q,2),ee=J[0],te=J[1];C&&ee&&te(!1);var ne=void 0===k||C?ee:k,re=o.useCallback((function(){$(!0)}),[]),ie={adornedStart:H,setAdornedStart:Y,color:x,disabled:C,error:A,filled:K,focused:ne,fullWidth:O,hiddenLabel:R,size:B,onBlur:function(){te(!1)},onEmpty:o.useCallback((function(){$(!1)}),[]),onFilled:re,onFocus:function(){te(!0)},registerEffect:undefined,required:L,variant:z};return(0,v.jsx)(h.Z.Provider,{value:ie,children:(0,v.jsx)(_,(0,a.Z)({as:S,ownerState:j,className:(0,s.Z)(G.root,m),ref:t},U,{children:c}))})}))},10829:function(e,t,n){"use strict";var r=n(47313).createContext();t.Z=r},67223:function(e,t,n){"use strict";function r(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}n.d(t,{Z:function(){return r}})},11736:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(47313),i=n(10829);function a(){return r.useContext(i.Z)}},64558:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(11736),c=n(42669),d=n(28170),f=n(64164),p=n(11236),h=n(32298);function m(e){return(0,h.Z)("MuiFormControlLabel",e)}var g=(0,n(77430).Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),v=n(67223),y=n(46417),_=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","value"],b=(0,f.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,r.Z)({},"& .".concat(g.label),t.label),t.root,t["labelPlacement".concat((0,d.Z)(n.labelPlacement))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)((0,r.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16},"&.".concat(g.disabled),{cursor:"default"}),"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},(0,r.Z)({},"& .".concat(g.label),(0,r.Z)({},"&.".concat(g.disabled),{color:(t.vars||t).palette.text.disabled})))})),x=o.forwardRef((function(e,t){var n=(0,p.Z)({props:e,name:"MuiFormControlLabel"}),r=n.className,f=n.componentsProps,h=void 0===f?{}:f,g=n.control,x=n.disabled,E=n.disableTypography,S=n.label,w=n.labelPlacement,C=void 0===w?"end":w,T=(0,i.Z)(n,_),A=(0,u.Z)(),k=x;"undefined"===typeof k&&"undefined"!==typeof g.props.disabled&&(k=g.props.disabled),"undefined"===typeof k&&A&&(k=A.disabled);var D={disabled:k};["checked","name","onChange","value","inputRef"].forEach((function(e){"undefined"===typeof g.props[e]&&"undefined"!==typeof n[e]&&(D[e]=n[e])}));var O=(0,v.Z)({props:n,muiFormControl:A,states:["error"]}),I=(0,a.Z)({},n,{disabled:k,labelPlacement:C,error:O.error}),R=function(e){var t=e.classes,n=e.disabled,r=e.labelPlacement,i=e.error,a={root:["root",n&&"disabled","labelPlacement".concat((0,d.Z)(r)),i&&"error"],label:["label",n&&"disabled"]};return(0,l.Z)(a,m,t)}(I),N=S;return null==N||N.type===c.Z||E||(N=(0,y.jsx)(c.Z,(0,a.Z)({component:"span",className:R.label},h.typography,{children:N}))),(0,y.jsxs)(b,(0,a.Z)({className:(0,s.Z)(R.root,r),ownerState:I,ref:t},T,{children:[o.cloneElement(g,D),N]}))}))},48569:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(67223),c=n(11736),d=n(64164),f=n(28170),p=n(32298);function h(e){return(0,p.Z)("MuiFormHelperText",e)}var m,g=(0,n(77430).Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),v=n(11236),y=n(46417),_=["children","className","component","disabled","error","filled","focused","margin","required","variant"],b=(0,d.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.size&&t["size".concat((0,f.Z)(n.size))],n.contained&&t.contained,n.filled&&t.filled]}})((function(e){var t,n=e.theme,i=e.ownerState;return(0,a.Z)({color:(n.vars||n).palette.text.secondary},n.typography.caption,(t={textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0},(0,r.Z)(t,"&.".concat(g.disabled),{color:(n.vars||n).palette.text.disabled}),(0,r.Z)(t,"&.".concat(g.error),{color:(n.vars||n).palette.error.main}),t),"small"===i.size&&{marginTop:4},i.contained&&{marginLeft:14,marginRight:14})})),x=o.forwardRef((function(e,t){var n=(0,v.Z)({props:e,name:"MuiFormHelperText"}),r=n.children,o=n.className,d=n.component,p=void 0===d?"p":d,g=(0,i.Z)(n,_),x=(0,c.Z)(),E=(0,u.Z)({props:n,muiFormControl:x,states:["variant","size","disabled","error","filled","focused","required"]}),S=(0,a.Z)({},n,{component:p,contained:"filled"===E.variant||"outlined"===E.variant,variant:E.variant,size:E.size,disabled:E.disabled,error:E.error,filled:E.filled,focused:E.focused,required:E.required}),w=function(e){var t=e.classes,n=e.contained,r=e.size,i=e.disabled,a=e.error,o=e.filled,s=e.focused,u=e.required,c={root:["root",i&&"disabled",a&&"error",r&&"size".concat((0,f.Z)(r)),n&&"contained",s&&"focused",o&&"filled",u&&"required"]};return(0,l.Z)(c,h,t)}(S);return(0,y.jsx)(b,(0,a.Z)({as:p,ownerState:S,className:(0,s.Z)(w.root,o),ref:t},g,{children:" "===r?m||(m=(0,y.jsx)("span",{className:"notranslate",children:"\u200b"})):r}))}))},87668:function(e,t,n){"use strict";var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(67223),c=n(11736),d=n(28170),f=n(11236),p=n(64164),h=n(7717),m=n(46417),g=["children","className","color","component","disabled","error","filled","focused","required"],v=(0,p.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return(0,a.Z)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((function(e){var t,n=e.theme,i=e.ownerState;return(0,a.Z)({color:(n.vars||n).palette.text.secondary},n.typography.body1,(t={lineHeight:"1.4375em",padding:0,position:"relative"},(0,r.Z)(t,"&.".concat(h.Z.focused),{color:(n.vars||n).palette[i.color].main}),(0,r.Z)(t,"&.".concat(h.Z.disabled),{color:(n.vars||n).palette.text.disabled}),(0,r.Z)(t,"&.".concat(h.Z.error),{color:(n.vars||n).palette.error.main}),t))})),y=(0,p.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return(0,r.Z)({},"&.".concat(h.Z.error),{color:(t.vars||t).palette.error.main})})),_=o.forwardRef((function(e,t){var n=(0,f.Z)({props:e,name:"MuiFormLabel"}),r=n.children,o=n.className,p=n.component,_=void 0===p?"label":p,b=(0,i.Z)(n,g),x=(0,c.Z)(),E=(0,u.Z)({props:n,muiFormControl:x,states:["color","required","focused","disabled","error","filled"]}),S=(0,a.Z)({},n,{color:E.color||"primary",component:_,disabled:E.disabled,error:E.error,filled:E.filled,focused:E.focused,required:E.required}),w=function(e){var t=e.classes,n=e.color,r=e.focused,i=e.disabled,a=e.error,o=e.filled,s=e.required,u={root:["root","color".concat((0,d.Z)(n)),i&&"disabled",a&&"error",o&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return(0,l.Z)(u,h.M,t)}(S);return(0,m.jsxs)(v,(0,a.Z)({as:_,ownerState:S,className:(0,s.Z)(w.root,o),ref:t},b,{children:[r,E.required&&(0,m.jsxs)(y,{ownerState:S,"aria-hidden":!0,className:w.asterisk,children:["\u2009","*"]})]}))}));t.Z=_},7717:function(e,t,n){"use strict";n.d(t,{M:function(){return i}});var r=n(32298);function i(e){return(0,r.Z)("MuiFormLabel",e)}var a=(0,n(77430).Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);t.Z=a},27100:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),i=(n(47313),n(30686)),a=n(46417);function o(e){var t=e.styles,n=e.defaultTheme,r=void 0===n?{}:n,o="function"===typeof t?function(e){return t(void 0===(n=e)||null===n||0===Object.keys(n).length?r:e);var n}:t;return(0,a.jsx)(i.xB,{styles:o})}var s=n(63566);var l=function(e){return(0,a.jsx)(o,(0,r.Z)({},e,{defaultTheme:s.Z}))}},61107:function(e,t,n){"use strict";var r=n(87462),i=n(63366),a=n(47313),o=n(62242),s=n(62111),l=n(68999),u=n(2995),c=n(46417),d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function f(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var p={entering:{opacity:1,transform:f(1)},entered:{opacity:1,transform:"none"}},h="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),m=a.forwardRef((function(e,t){var n=e.addEndListener,m=e.appear,g=void 0===m||m,v=e.children,y=e.easing,_=e.in,b=e.onEnter,x=e.onEntered,E=e.onEntering,S=e.onExit,w=e.onExited,C=e.onExiting,T=e.style,A=e.timeout,k=void 0===A?"auto":A,D=e.TransitionComponent,O=void 0===D?o.ZP:D,I=(0,i.Z)(e,d),R=a.useRef(),N=a.useRef(),M=(0,s.Z)(),P=a.useRef(null),L=(0,u.Z)(P,v.ref,t),F=function(e){return function(t){if(e){var n=P.current;void 0===t?e(n):e(n,t)}}},B=F(E),Z=F((function(e,t){(0,l.n)(e);var n,r=(0,l.C)({style:T,timeout:k,easing:y},{mode:"enter"}),i=r.duration,a=r.delay,o=r.easing;"auto"===k?(n=M.transitions.getAutoHeightDuration(e.clientHeight),N.current=n):n=i,e.style.transition=[M.transitions.create("opacity",{duration:n,delay:a}),M.transitions.create("transform",{duration:h?n:.666*n,delay:a,easing:o})].join(","),b&&b(e,t)})),z=F(x),U=F(C),j=F((function(e){var t,n=(0,l.C)({style:T,timeout:k,easing:y},{mode:"exit"}),r=n.duration,i=n.delay,a=n.easing;"auto"===k?(t=M.transitions.getAutoHeightDuration(e.clientHeight),N.current=t):t=r,e.style.transition=[M.transitions.create("opacity",{duration:t,delay:i}),M.transitions.create("transform",{duration:h?t:.666*t,delay:h?i:i||.333*t,easing:a})].join(","),e.style.opacity=0,e.style.transform=f(.75),S&&S(e)})),G=F(w);return a.useEffect((function(){return function(){clearTimeout(R.current)}}),[]),(0,c.jsx)(O,(0,r.Z)({appear:g,in:_,nodeRef:P,onEnter:Z,onEntered:z,onEntering:B,onExit:j,onExited:G,onExiting:U,addEndListener:function(e){"auto"===k&&(R.current=setTimeout(e,N.current||0)),n&&n(P.current,e)},timeout:"auto"===k?null:k},I,{children:function(e,t){return a.cloneElement(v,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:f(.75),visibility:"exited"!==e||_?void 0:"hidden"},p[e],T,v.props.style),ref:L},t))}}))}));m.muiSupportAuto=!0,t.Z=m},18104:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(17551),c=n(64164),d=n(11236),f=n(56456),p=n(28170),h=n(32298);function m(e){return(0,h.Z)("MuiIconButton",e)}var g=(0,n(77430).Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),v=n(46417),y=["edge","children","className","color","disabled","disableFocusRipple","size"],_=(0,c.ZP)(f.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat((0,p.Z)(n.color))],n.edge&&t["edge".concat((0,p.Z)(n.edge))],t["size".concat((0,p.Z)(n.size))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,u.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,a.Z)({color:(t.vars||t).palette[n.color].main},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,u.Fq)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}),"small"===n.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:t.typography.pxToRem(28)},(0,r.Z)({},"&.".concat(g.disabled),{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}))})),b=o.forwardRef((function(e,t){var n=(0,d.Z)({props:e,name:"MuiIconButton"}),r=n.edge,o=void 0!==r&&r,u=n.children,c=n.className,f=n.color,h=void 0===f?"default":f,g=n.disabled,b=void 0!==g&&g,x=n.disableFocusRipple,E=void 0!==x&&x,S=n.size,w=void 0===S?"medium":S,C=(0,i.Z)(n,y),T=(0,a.Z)({},n,{edge:o,color:h,disabled:b,disableFocusRipple:E,size:w}),A=function(e){var t=e.classes,n=e.disabled,r=e.color,i=e.edge,a=e.size,o={root:["root",n&&"disabled","default"!==r&&"color".concat((0,p.Z)(r)),i&&"edge".concat((0,p.Z)(i)),"size".concat((0,p.Z)(a))]};return(0,l.Z)(o,m,t)}(T);return(0,v.jsx)(_,(0,a.Z)({className:(0,s.Z)(A.root,c),centerRipple:!0,focusRipple:!E,disabled:b,ref:t,ownerState:T},C,{children:u}))}))},22449:function(e,t,n){"use strict";var r=n(4942),i=n(93433),a=n(63366),o=n(87462),s=n(47313),l=n(21921),u=n(13019),c=n(78629),d=n(64164),f=n(11236),p=n(69284),h=n(46417),m=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","type"],g=(0,d.ZP)(c.Ej,{shouldForwardProp:function(e){return(0,d.FO)(e)||"classes"===e},name:"MuiInput",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[].concat((0,i.Z)((0,c.Gx)(e,t)),[!n.disableUnderline&&t.underline])}})((function(e){var t,n=e.theme,i=e.ownerState,a="light"===n.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return n.vars&&(a="rgba(".concat(n.vars.palette.common.onBackgroundChannel," / ").concat(n.vars.opacity.inputUnderline,")")),(0,o.Z)({position:"relative"},i.formControl&&{"label + &":{marginTop:16}},!i.disableUnderline&&(t={"&:after":{borderBottom:"2px solid ".concat((n.vars||n).palette[i.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:n.transitions.create("transform",{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut}),pointerEvents:"none"}},(0,r.Z)(t,"&.".concat(p.Z.focused,":after"),{transform:"scaleX(1) translateX(0)"}),(0,r.Z)(t,"&.".concat(p.Z.error,":after"),{borderBottomColor:(n.vars||n).palette.error.main,transform:"scaleX(1)"}),(0,r.Z)(t,"&:before",{borderBottom:"1px solid ".concat(a),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:n.transitions.create("border-bottom-color",{duration:n.transitions.duration.shorter}),pointerEvents:"none"}),(0,r.Z)(t,"&:hover:not(.".concat(p.Z.disabled,"):before"),{borderBottom:"2px solid ".concat((n.vars||n).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(a)}}),(0,r.Z)(t,"&.".concat(p.Z.disabled,":before"),{borderBottomStyle:"dotted"}),t))})),v=(0,d.ZP)(c.rA,{name:"MuiInput",slot:"Input",overridesResolver:c._o})({}),y=s.forwardRef((function(e,t){var n=(0,f.Z)({props:e,name:"MuiInput"}),r=n.disableUnderline,i=n.components,s=void 0===i?{}:i,d=n.componentsProps,y=n.fullWidth,_=void 0!==y&&y,b=n.inputComponent,x=void 0===b?"input":b,E=n.multiline,S=void 0!==E&&E,w=n.type,C=void 0===w?"text":w,T=(0,a.Z)(n,m),A=function(e){var t=e.classes,n={root:["root",!e.disableUnderline&&"underline"],input:["input"]},r=(0,l.Z)(n,p.l,t);return(0,o.Z)({},t,r)}(n),k={root:{ownerState:{disableUnderline:r}}},D=d?(0,u.Z)(d,k):k;return(0,h.jsx)(c.ZP,(0,o.Z)({components:(0,o.Z)({Root:g,Input:v},s),componentsProps:D,fullWidth:_,inputComponent:x,multiline:S,ref:t,type:C},T,{classes:A}))}));y.muiName="Input",t.Z=y},69284:function(e,t,n){"use strict";n.d(t,{l:function(){return s}});var r=n(87462),i=n(32298),a=n(77430),o=n(99876);function s(e){return(0,i.Z)("MuiInput",e)}var l=(0,r.Z)({},o.Z,(0,a.Z)("MuiInput",["root","underline","input"]));t.Z=l},59017:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(28170),c=n(42669),d=n(10829),f=n(11736),p=n(64164),h=n(32298);function m(e){return(0,h.Z)("MuiInputAdornment",e)}var g,v=(0,n(77430).Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),y=n(11236),_=n(46417),b=["children","className","component","disablePointerEvents","disableTypography","position","variant"],x=(0,p.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["position".concat((0,u.Z)(n.position))],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===n.variant&&(0,r.Z)({},"&.".concat(v.positionStart,"&:not(.").concat(v.hiddenLabel,")"),{marginTop:16}),"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"})})),E=o.forwardRef((function(e,t){var n=(0,y.Z)({props:e,name:"MuiInputAdornment"}),r=n.children,p=n.className,h=n.component,v=void 0===h?"div":h,E=n.disablePointerEvents,S=void 0!==E&&E,w=n.disableTypography,C=void 0!==w&&w,T=n.position,A=n.variant,k=(0,i.Z)(n,b),D=(0,f.Z)()||{},O=A;A&&D.variant,D&&!O&&(O=D.variant);var I=(0,a.Z)({},n,{hiddenLabel:D.hiddenLabel,size:D.size,disablePointerEvents:S,position:T,variant:O}),R=function(e){var t=e.classes,n=e.disablePointerEvents,r=e.hiddenLabel,i=e.position,a=e.size,o=e.variant,s={root:["root",n&&"disablePointerEvents",i&&"position".concat((0,u.Z)(i)),o,r&&"hiddenLabel",a&&"size".concat((0,u.Z)(a))]};return(0,l.Z)(s,m,t)}(I);return(0,_.jsx)(d.Z.Provider,{value:null,children:(0,_.jsx)(x,(0,a.Z)({as:v,ownerState:I,className:(0,s.Z)(R.root,p),ref:t},k,{children:"string"!==typeof r||C?(0,_.jsxs)(o.Fragment,{children:["start"===T?g||(g=(0,_.jsx)("span",{className:"notranslate",children:"\u200b"})):null,r]}):(0,_.jsx)(c.Z,{color:"text.secondary",children:r})}))})}))},78629:function(e,t,n){"use strict";n.d(t,{rA:function(){return B},Ej:function(){return F},ZP:function(){return U},_o:function(){return L},Gx:function(){return P}});var r=n(29439),i=n(4942),a=n(63366),o=n(87462),s=n(77219),l=n(47313),u=n(83061),c=n(21921),d=n(1168),f=n(47472),p=n(93282),h=n(34312),m=n(2678),g=n(46417),v=["onChange","maxRows","minRows","style","value"];function y(e,t){return parseInt(e[t],10)||0}var _={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function b(e){return void 0===e||null===e||0===Object.keys(e).length}var x=l.forwardRef((function(e,t){var n=e.onChange,i=e.maxRows,s=e.minRows,u=void 0===s?1:s,c=e.style,x=e.value,E=(0,a.Z)(e,v),S=l.useRef(null!=x).current,w=l.useRef(null),C=(0,f.Z)(t,w),T=l.useRef(null),A=l.useRef(0),k=l.useState({}),D=(0,r.Z)(k,2),O=D[0],I=D[1],R=l.useCallback((function(){var t=w.current,n=(0,p.Z)(t).getComputedStyle(t);if("0px"===n.width)return{};var r=T.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var a=n["box-sizing"],o=y(n,"padding-bottom")+y(n,"padding-top"),s=y(n,"border-bottom-width")+y(n,"border-top-width"),l=r.scrollHeight;r.value="x";var c=r.scrollHeight,d=l;return u&&(d=Math.max(Number(u)*c,d)),i&&(d=Math.min(Number(i)*c,d)),{outerHeightStyle:(d=Math.max(d,c))+("border-box"===a?o+s:0),overflow:Math.abs(d-l)<=1}}),[i,u,e.placeholder]),N=function(e,t){var n=t.outerHeightStyle,r=t.overflow;return A.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(A.current+=1,{overflow:r,outerHeightStyle:n}):e},M=l.useCallback((function(){var e=R();b(e)||I((function(t){return N(t,e)}))}),[R]);l.useEffect((function(){var e,t=(0,h.Z)((function(){A.current=0,w.current&&function(){var e=R();b(e)||(0,d.flushSync)((function(){I((function(t){return N(t,e)}))}))}()})),n=(0,p.Z)(w.current);return n.addEventListener("resize",t),"undefined"!==typeof ResizeObserver&&(e=new ResizeObserver(t)).observe(w.current),function(){t.clear(),n.removeEventListener("resize",t),e&&e.disconnect()}})),(0,m.Z)((function(){M()})),l.useEffect((function(){A.current=0}),[x]);return(0,g.jsxs)(l.Fragment,{children:[(0,g.jsx)("textarea",(0,o.Z)({value:x,onChange:function(e){A.current=0,S||M(),n&&n(e)},ref:C,rows:u,style:(0,o.Z)({height:O.outerHeightStyle,overflow:O.overflow?"hidden":null},c)},E)),(0,g.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:T,tabIndex:-1,style:(0,o.Z)({},_,c,{padding:0})})]})})),E=n(43066),S=n(67223),w=n(10829),C=n(11736),T=n(64164),A=n(11236),k=n(28170),D=n(2995),O=n(49926),I=n(27100),R=n(97868),N=n(99876),M=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","startAdornment","type","value"],P=function(e,t){var n=e.ownerState;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat((0,k.Z)(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},L=function(e,t){var n=e.ownerState;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},F=(0,T.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:P})((function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)({},t.typography.body1,(0,i.Z)({color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center"},"&.".concat(N.Z.disabled),{color:(t.vars||t).palette.text.disabled,cursor:"default"}),n.multiline&&(0,o.Z)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),B=(0,T.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:L})((function(e){var t,n=e.theme,r=e.ownerState,a="light"===n.palette.mode,s=(0,o.Z)({color:"currentColor"},n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:a?.42:.5},{transition:n.transitions.create("opacity",{duration:n.transitions.duration.shorter})}),l={opacity:"0 !important"},u=n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:a?.42:.5};return(0,o.Z)((t={font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"}},(0,i.Z)(t,"label[data-shrink=false] + .".concat(N.Z.formControl," &"),{"&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&:-ms-input-placeholder":l,"&::-ms-input-placeholder":l,"&:focus::-webkit-input-placeholder":u,"&:focus::-moz-placeholder":u,"&:focus:-ms-input-placeholder":u,"&:focus::-ms-input-placeholder":u}),(0,i.Z)(t,"&.".concat(N.Z.disabled),{opacity:1,WebkitTextFillColor:(n.vars||n).palette.text.disabled}),(0,i.Z)(t,"&:-webkit-autofill",{animationDuration:"5000s",animationName:"mui-auto-fill"}),t),"small"===r.size&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===r.type&&{MozAppearance:"textfield"})})),Z=(0,g.jsx)(I.Z,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),z=l.forwardRef((function(e,t){var n=(0,A.Z)({props:e,name:"MuiInputBase"}),i=n["aria-describedby"],d=n.autoComplete,f=n.autoFocus,p=n.className,h=n.components,m=void 0===h?{}:h,v=n.componentsProps,y=void 0===v?{}:v,_=n.defaultValue,b=n.disabled,T=n.disableInjectingGlobalStyles,I=n.endAdornment,P=n.fullWidth,L=void 0!==P&&P,z=n.id,U=n.inputComponent,j=void 0===U?"input":U,G=n.inputProps,V=void 0===G?{}:G,q=n.inputRef,H=n.maxRows,Y=n.minRows,W=n.multiline,X=void 0!==W&&W,K=n.name,$=n.onBlur,Q=n.onChange,J=n.onClick,ee=n.onFocus,te=n.onKeyDown,ne=n.onKeyUp,re=n.placeholder,ie=n.readOnly,ae=n.renderSuffix,oe=n.rows,se=n.startAdornment,le=n.type,ue=void 0===le?"text":le,ce=n.value,de=(0,a.Z)(n,M),fe=null!=V.value?V.value:ce,pe=l.useRef(null!=fe).current,he=l.useRef(),me=l.useCallback((function(e){0}),[]),ge=(0,D.Z)(he,q,V.ref,me),ve=l.useState(!1),ye=(0,r.Z)(ve,2),_e=ye[0],be=ye[1],xe=(0,C.Z)();var Ee=(0,S.Z)({props:n,muiFormControl:xe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ee.focused=xe?xe.focused:_e,l.useEffect((function(){!xe&&b&&_e&&(be(!1),$&&$())}),[xe,b,_e,$]);var Se=xe&&xe.onFilled,we=xe&&xe.onEmpty,Ce=l.useCallback((function(e){(0,R.vd)(e)?Se&&Se():we&&we()}),[Se,we]);(0,O.Z)((function(){pe&&Ce({value:fe})}),[fe,Ce,pe]);l.useEffect((function(){Ce(he.current)}),[]);var Te=j,Ae=V;X&&"input"===Te&&(Ae=oe?(0,o.Z)({type:void 0,minRows:oe,maxRows:oe},Ae):(0,o.Z)({type:void 0,maxRows:H,minRows:Y},Ae),Te=x);l.useEffect((function(){xe&&xe.setAdornedStart(Boolean(se))}),[xe,se]);var ke=(0,o.Z)({},n,{color:Ee.color||"primary",disabled:Ee.disabled,endAdornment:I,error:Ee.error,focused:Ee.focused,formControl:xe,fullWidth:L,hiddenLabel:Ee.hiddenLabel,multiline:X,size:Ee.size,startAdornment:se,type:ue}),De=function(e){var t=e.classes,n=e.color,r=e.disabled,i=e.error,a=e.endAdornment,o=e.focused,s=e.formControl,l=e.fullWidth,u=e.hiddenLabel,d=e.multiline,f=e.readOnly,p=e.size,h=e.startAdornment,m=e.type,g={root:["root","color".concat((0,k.Z)(n)),r&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl","small"===p&&"sizeSmall",d&&"multiline",h&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",d&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return(0,c.Z)(g,N.u,t)}(ke),Oe=m.Root||F,Ie=y.root||{},Re=m.Input||B;return Ae=(0,o.Z)({},Ae,y.input),(0,g.jsxs)(l.Fragment,{children:[!T&&Z,(0,g.jsxs)(Oe,(0,o.Z)({},Ie,!(0,E.Z)(Oe)&&{ownerState:(0,o.Z)({},ke,Ie.ownerState)},{ref:t,onClick:function(e){he.current&&e.currentTarget===e.target&&he.current.focus(),J&&J(e)}},de,{className:(0,u.Z)(De.root,Ie.className,p),children:[se,(0,g.jsx)(w.Z.Provider,{value:null,children:(0,g.jsx)(Re,(0,o.Z)({ownerState:ke,"aria-invalid":Ee.error,"aria-describedby":i,autoComplete:d,autoFocus:f,defaultValue:_,disabled:Ee.disabled,id:z,onAnimationStart:function(e){Ce("mui-auto-fill-cancel"===e.animationName?he.current:{value:"x"})},name:K,placeholder:re,readOnly:ie,required:Ee.required,rows:oe,value:fe,onKeyDown:te,onKeyUp:ne,type:ue},Ae,!(0,E.Z)(Re)&&{as:Te,ownerState:(0,o.Z)({},ke,Ae.ownerState)},{ref:ge,className:(0,u.Z)(De.input,Ae.className),onBlur:function(e){$&&$(e),V.onBlur&&V.onBlur(e),xe&&xe.onBlur?xe.onBlur(e):be(!1)},onChange:function(e){if(!pe){var t=e.target||he.current;if(null==t)throw new Error((0,s.Z)(1));Ce({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function a(e){return e.startAdornment}n.d(t,{B7:function(){return a},vd:function(){return i}})},91294:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(21921),l=n(83061),u=n(67223),c=n(11736),d=n(87668),f=n(7717),p=n(11236),h=n(64164),m=n(32298);function g(e){return(0,m.Z)("MuiInputLabel",e)}(0,n(77430).Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var v=n(46417),y=["disableAnimation","margin","shrink","variant","className"],_=(0,h.ZP)(d.Z,{shouldForwardProp:function(e){return(0,h.FO)(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,r.Z)({},"& .".concat(f.Z.asterisk),t.asterisk),t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&(0,a.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&(0,a.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&(0,a.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))})),b=o.forwardRef((function(e,t){var n=(0,p.Z)({name:"MuiInputLabel",props:e}),r=n.disableAnimation,o=void 0!==r&&r,d=n.shrink,f=n.className,h=(0,i.Z)(n,y),m=(0,c.Z)(),b=d;"undefined"===typeof b&&m&&(b=m.filled||m.focused||m.adornedStart);var x=(0,u.Z)({props:n,muiFormControl:m,states:["size","variant","required"]}),E=(0,a.Z)({},n,{disableAnimation:o,formControl:m,shrink:b,size:x.size,variant:x.variant,required:x.required}),S=function(e){var t=e.classes,n=e.formControl,r=e.size,i=e.shrink,o={root:["root",n&&"formControl",!e.disableAnimation&&"animated",i&&"shrink","small"===r&&"sizeSmall",e.variant],asterisk:[e.required&&"asterisk"]},l=(0,s.Z)(o,g,t);return(0,a.Z)({},t,l)}(E);return(0,v.jsx)(_,(0,a.Z)({"data-shrink":b,ownerState:E,ref:t,className:(0,l.Z)(S.root,f)},h,{classes:S}))}))},28566:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(30168),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(30686),c=n(17551),d=n(28170),f=n(62111),p=n(64164),h=n(11236),m=n(32298);function g(e){return(0,m.Z)("MuiLinearProgress",e)}(0,n(77430).Z)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var v,y,_,b,x,E,S,w,C,T,A,k,D=n(46417),O=["className","color","value","valueBuffer","variant"],I=(0,u.F4)(S||(S=v||(v=(0,r.Z)(["\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n"])))),R=(0,u.F4)(w||(w=y||(y=(0,r.Z)(["\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n"])))),N=(0,u.F4)(C||(C=_||(_=(0,r.Z)(["\n 0% {\n opacity: 1;\n background-position: 0 -23px;\n }\n\n 60% {\n opacity: 0;\n background-position: 0 -23px;\n }\n\n 100% {\n opacity: 1;\n background-position: -200px -23px;\n }\n"])))),M=function(e,t){return"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress["".concat(t,"Bg")]:"light"===e.palette.mode?(0,c.$n)(e.palette[t].main,.62):(0,c._j)(e.palette[t].main,.5)},P=(0,p.ZP)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["color".concat((0,d.Z)(n.color))],t[n.variant]]}})((function(e){var t=e.ownerState,n=e.theme;return(0,a.Z)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:M(n,t.color)},"inherit"===t.color&&"buffer"!==t.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===t.variant&&{backgroundColor:"transparent"},"query"===t.variant&&{transform:"rotate(180deg)"})})),L=(0,p.ZP)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:function(e,t){var n=e.ownerState;return[t.dashed,t["dashedColor".concat((0,d.Z)(n.color))]]}})((function(e){var t=e.ownerState,n=e.theme,r=M(n,t.color);return(0,a.Z)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),(0,u.iv)(T||(T=b||(b=(0,r.Z)(["\n animation: "," 3s infinite linear;\n "]))),N)),F=(0,p.ZP)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:function(e,t){var n=e.ownerState;return[t.bar,t["barColor".concat((0,d.Z)(n.color))],("indeterminate"===n.variant||"query"===n.variant)&&t.bar1Indeterminate,"determinate"===n.variant&&t.bar1Determinate,"buffer"===n.variant&&t.bar1Buffer]}})((function(e){var t=e.ownerState,n=e.theme;return(0,a.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"determinate"===t.variant&&{transition:"transform .".concat(4,"s linear")},"buffer"===t.variant&&{zIndex:1,transition:"transform .".concat(4,"s linear")})}),(function(e){var t=e.ownerState;return("indeterminate"===t.variant||"query"===t.variant)&&(0,u.iv)(A||(A=x||(x=(0,r.Z)(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n "]))),I)})),B=(0,p.ZP)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:function(e,t){var n=e.ownerState;return[t.bar,t["barColor".concat((0,d.Z)(n.color))],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})((function(e){var t=e.ownerState,n=e.theme;return(0,a.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==t.variant&&{backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:M(n,t.color),transition:"transform .".concat(4,"s linear")})}),(function(e){var t=e.ownerState;return("indeterminate"===t.variant||"query"===t.variant)&&(0,u.iv)(k||(k=E||(E=(0,r.Z)(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n "]))),R)})),Z=o.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiLinearProgress"}),r=n.className,o=n.color,u=void 0===o?"primary":o,c=n.value,p=n.valueBuffer,m=n.variant,v=void 0===m?"indeterminate":m,y=(0,i.Z)(n,O),_=(0,a.Z)({},n,{color:u,variant:v}),b=function(e){var t=e.classes,n=e.variant,r=e.color,i={root:["root","color".concat((0,d.Z)(r)),n],dashed:["dashed","dashedColor".concat((0,d.Z)(r))],bar1:["bar","barColor".concat((0,d.Z)(r)),("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&"barColor".concat((0,d.Z)(r)),"buffer"===n&&"color".concat((0,d.Z)(r)),("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,l.Z)(i,g,t)}(_),x=(0,f.Z)(),E={},S={bar1:{},bar2:{}};if("determinate"===v||"buffer"===v)if(void 0!==c){E["aria-valuenow"]=Math.round(c),E["aria-valuemin"]=0,E["aria-valuemax"]=100;var w=c-100;"rtl"===x.direction&&(w=-w),S.bar1.transform="translateX(".concat(w,"%)")}else 0;if("buffer"===v)if(void 0!==p){var C=(p||0)-100;"rtl"===x.direction&&(C=-C),S.bar2.transform="translateX(".concat(C,"%)")}else 0;return(0,D.jsxs)(P,(0,a.Z)({className:(0,s.Z)(b.root,r),ownerState:_,role:"progressbar"},E,{ref:t},y,{children:["buffer"===v?(0,D.jsx)(L,{className:b.dashed,ownerState:_}):null,(0,D.jsx)(F,{className:b.bar1,ownerState:_,style:S.bar1}),"determinate"===v?null:(0,D.jsx)(B,{className:b.bar2,ownerState:_,style:S.bar2})]}))}))},77449:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(93433),i=n(29439),a=n(4942),o=n(63366),s=n(87462),l=n(47313),u=n(83061),c=n(21921),d=n(28170),f=n(64164),p=n(11236),h=n(57464),m=n(2995),g=n(42669),v=n(32298);function y(e){return(0,v.Z)("MuiLink",e)}var _=(0,n(77430).Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),b=n(46428),x=n(17551),E={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},S=function(e){var t=e.theme,n=e.ownerState,r=function(e){return E[e]||e}(n.color),i=(0,b.D)(t,"palette.".concat(r),!1)||n.color,a=(0,b.D)(t,"palette.".concat(r,"Channel"));return"vars"in t&&a?"rgba(".concat(a," / 0.4)"):(0,x.Fq)(i,.4)},w=n(46417),C=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],T=(0,f.ZP)(g.Z,{name:"MuiLink",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["underline".concat((0,d.Z)(n.underline))],"button"===n.component&&t.button]}})((function(e){var t=e.theme,n=e.ownerState;return(0,s.Z)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&(0,s.Z)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:S({theme:t,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&(0,a.Z)({position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"}},"&.".concat(_.focusVisible),{outline:"auto"}))})),A=l.forwardRef((function(e,t){var n=(0,p.Z)({props:e,name:"MuiLink"}),a=n.className,f=n.color,g=void 0===f?"primary":f,v=n.component,_=void 0===v?"a":v,b=n.onBlur,x=n.onFocus,S=n.TypographyClasses,A=n.underline,k=void 0===A?"always":A,D=n.variant,O=void 0===D?"inherit":D,I=n.sx,R=(0,o.Z)(n,C),N=(0,h.Z)(),M=N.isFocusVisibleRef,P=N.onBlur,L=N.onFocus,F=N.ref,B=l.useState(!1),Z=(0,i.Z)(B,2),z=Z[0],U=Z[1],j=(0,m.Z)(t,F),G=(0,s.Z)({},n,{color:g,component:_,focusVisible:z,underline:k,variant:O}),V=function(e){var t=e.classes,n=e.component,r=e.focusVisible,i=e.underline,a={root:["root","underline".concat((0,d.Z)(i)),"button"===n&&"button",r&&"focusVisible"]};return(0,c.Z)(a,y,t)}(G);return(0,w.jsx)(T,(0,s.Z)({color:g,className:(0,u.Z)(V.root,a),classes:S,component:_,onBlur:function(e){P(e),!1===M.current&&U(!1),b&&b(e)},onFocus:function(e){L(e),!0===M.current&&U(!0),x&&x(e)},ref:j,ownerState:G,variant:O,sx:[].concat((0,r.Z)(Object.keys(E).includes(g)?[]:[{color:g}]),(0,r.Z)(Array.isArray(I)?I:[I]))},R))}))},35672:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(63366),i=n(87462),a=n(47313),o=n(83061),s=n(21921),l=n(64164),u=n(11236),c=n(80315),d=n(32298);function f(e){return(0,d.Z)("MuiList",e)}(0,n(77430).Z)("MuiList",["root","padding","dense","subheader"]);var p=n(46417),h=["children","className","component","dense","disablePadding","subheader"],m=(0,l.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((function(e){var t=e.ownerState;return(0,i.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),g=a.forwardRef((function(e,t){var n=(0,u.Z)({props:e,name:"MuiList"}),l=n.children,d=n.className,g=n.component,v=void 0===g?"ul":g,y=n.dense,_=void 0!==y&&y,b=n.disablePadding,x=void 0!==b&&b,E=n.subheader,S=(0,r.Z)(n,h),w=a.useMemo((function(){return{dense:_}}),[_]),C=(0,i.Z)({},n,{component:v,dense:_,disablePadding:x}),T=function(e){var t=e.classes,n={root:["root",!e.disablePadding&&"padding",e.dense&&"dense",e.subheader&&"subheader"]};return(0,s.Z)(n,f,t)}(C);return(0,p.jsx)(c.Z.Provider,{value:w,children:(0,p.jsxs)(m,(0,i.Z)({as:v,className:(0,o.Z)(T.root,d),ref:t,ownerState:C},S,{children:[E,l]}))})}))},80315:function(e,t,n){"use strict";var r=n(47313).createContext({});t.Z=r},8224:function(e,t,n){"use strict";var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(17551),c=n(64164),d=n(11236),f=n(56456),p=n(49926),h=n(2995),m=n(80315),g=n(49368),v=n(46417),y=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],_=(0,c.ZP)(f.Z,{shouldForwardProp:function(e){return(0,c.FO)(e)||"classes"===e},name:"MuiListItemButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((function(e){var t,n=e.theme,i=e.ownerState;return(0,a.Z)((t={display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:n.transitions.create("background-color",{duration:n.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},(0,r.Z)(t,"&.".concat(g.Z.selected),(0,r.Z)({backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,u.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity)},"&.".concat(g.Z.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,u.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)})),(0,r.Z)(t,"&.".concat(g.Z.selected,":hover"),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):(0,u.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,u.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity)}}),(0,r.Z)(t,"&.".concat(g.Z.focusVisible),{backgroundColor:(n.vars||n).palette.action.focus}),(0,r.Z)(t,"&.".concat(g.Z.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity}),t),i.divider&&{borderBottom:"1px solid ".concat((n.vars||n).palette.divider),backgroundClip:"padding-box"},"flex-start"===i.alignItems&&{alignItems:"flex-start"},!i.disableGutters&&{paddingLeft:16,paddingRight:16},i.dense&&{paddingTop:4,paddingBottom:4})})),b=o.forwardRef((function(e,t){var n=(0,d.Z)({props:e,name:"MuiListItemButton"}),r=n.alignItems,u=void 0===r?"center":r,c=n.autoFocus,f=void 0!==c&&c,b=n.component,x=void 0===b?"div":b,E=n.children,S=n.dense,w=void 0!==S&&S,C=n.disableGutters,T=void 0!==C&&C,A=n.divider,k=void 0!==A&&A,D=n.focusVisibleClassName,O=n.selected,I=void 0!==O&&O,R=n.className,N=(0,i.Z)(n,y),M=o.useContext(m.Z),P={dense:w||M.dense||!1,alignItems:u,disableGutters:T},L=o.useRef(null);(0,p.Z)((function(){f&&L.current&&L.current.focus()}),[f]);var F=(0,a.Z)({},n,{alignItems:u,dense:P.dense,disableGutters:T,divider:k,selected:I}),B=function(e){var t=e.alignItems,n=e.classes,r=e.dense,i=e.disabled,o={root:["root",r&&"dense",!e.disableGutters&&"gutters",e.divider&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",e.selected&&"selected"]},s=(0,l.Z)(o,g.t,n);return(0,a.Z)({},n,s)}(F),Z=(0,h.Z)(L,t);return(0,v.jsx)(m.Z.Provider,{value:P,children:(0,v.jsx)(_,(0,a.Z)({ref:Z,href:N.href||N.to,component:(N.href||N.to)&&"div"===x?"a":x,focusVisibleClassName:(0,s.Z)(B.focusVisible,D),ownerState:F,className:(0,s.Z)(B.root,R)},N,{classes:B,children:E}))})}));t.Z=b},49368:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(32298);function i(e){return(0,r.Z)("MuiListItemButton",e)}var a=(0,n(77430).Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);t.Z=a},31929:function(e,t,n){"use strict";var r=n(63366),i=n(87462),a=n(47313),o=n(83061),s=n(21921),l=n(64164),u=n(11236),c=n(55170),d=n(80315),f=n(46417),p=["className"],h=(0,l.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((function(e){var t=e.theme,n=e.ownerState;return(0,i.Z)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===n.alignItems&&{marginTop:8})})),m=a.forwardRef((function(e,t){var n=(0,u.Z)({props:e,name:"MuiListItemIcon"}),l=n.className,m=(0,r.Z)(n,p),g=a.useContext(d.Z),v=(0,i.Z)({},n,{alignItems:g.alignItems}),y=function(e){var t=e.alignItems,n=e.classes,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,s.Z)(r,c.f,n)}(v);return(0,f.jsx)(h,(0,i.Z)({className:(0,o.Z)(y.root,l),ownerState:v,ref:t},m))}));t.Z=m},55170:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(32298);function i(e){return(0,r.Z)("MuiListItemIcon",e)}var a=(0,n(77430).Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);t.Z=a},25685:function(e,t,n){"use strict";var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(42669),c=n(80315),d=n(11236),f=n(64164),p=n(16206),h=n(46417),m=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],g=(0,f.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,r.Z)({},"& .".concat(p.Z.primary),t.primary),(0,r.Z)({},"& .".concat(p.Z.secondary),t.secondary),t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((function(e){var t=e.ownerState;return(0,a.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),v=o.forwardRef((function(e,t){var n=(0,d.Z)({props:e,name:"MuiListItemText"}),r=n.children,f=n.className,v=n.disableTypography,y=void 0!==v&&v,_=n.inset,b=void 0!==_&&_,x=n.primary,E=n.primaryTypographyProps,S=n.secondary,w=n.secondaryTypographyProps,C=(0,i.Z)(n,m),T=o.useContext(c.Z).dense,A=null!=x?x:r,k=S,D=(0,a.Z)({},n,{disableTypography:y,inset:b,primary:!!A,secondary:!!k,dense:T}),O=function(e){var t=e.classes,n=e.inset,r=e.primary,i=e.secondary,a={root:["root",n&&"inset",e.dense&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,l.Z)(a,p.L,t)}(D);return null==A||A.type===u.Z||y||(A=(0,h.jsx)(u.Z,(0,a.Z)({variant:T?"body2":"body1",className:O.primary,component:null!=E&&E.variant?void 0:"span",display:"block"},E,{children:A}))),null==k||k.type===u.Z||y||(k=(0,h.jsx)(u.Z,(0,a.Z)({variant:"body2",className:O.secondary,color:"text.secondary",display:"block"},w,{children:k}))),(0,h.jsxs)(g,(0,a.Z)({className:(0,s.Z)(O.root,f),ownerState:D,ref:t},C,{children:[A,k]}))}));t.Z=v},16206:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(32298);function i(e){return(0,r.Z)("MuiListItemText",e)}var a=(0,n(77430).Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);t.Z=a},37741:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(63366),i=n(87462),a=n(47313),o=n(83061),s=n(21921),l=n(64164),u=n(11236),c=n(28170),d=n(32298);function f(e){return(0,d.Z)("MuiListSubheader",e)}(0,n(77430).Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var p=n(46417),h=["className","color","component","disableGutters","disableSticky","inset"],m=(0,l.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat((0,c.Z)(n.color))],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((function(e){var t=e.theme,n=e.ownerState;return(0,i.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===n.color&&{color:(t.vars||t).palette.primary.main},"inherit"===n.color&&{color:"inherit"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.inset&&{paddingLeft:72},!n.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),g=a.forwardRef((function(e,t){var n=(0,u.Z)({props:e,name:"MuiListSubheader"}),a=n.className,l=n.color,d=void 0===l?"default":l,g=n.component,v=void 0===g?"li":g,y=n.disableGutters,_=void 0!==y&&y,b=n.disableSticky,x=void 0!==b&&b,E=n.inset,S=void 0!==E&&E,w=(0,r.Z)(n,h),C=(0,i.Z)({},n,{color:d,component:v,disableGutters:_,disableSticky:x,inset:S}),T=function(e){var t=e.classes,n=e.color,r=e.disableGutters,i=e.inset,a=e.disableSticky,o={root:["root","default"!==n&&"color".concat((0,c.Z)(n)),!r&&"gutters",i&&"inset",!a&&"sticky"]};return(0,s.Z)(o,f,t)}(C);return(0,p.jsx)(m,(0,i.Z)({as:v,className:(0,o.Z)(T.root,a),ref:t,ownerState:C},w))}))},35138:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(87462),i=n(63366),a=n(47313),o=(n(96214),n(83061)),s=n(21921),l=n(38498),u=n(32415),c=n(44906),d=n(64164),f=n(62111),p=n(11236),h=n(32298);function m(e){return(0,h.Z)("MuiMenu",e)}(0,n(77430).Z)("MuiMenu",["root","paper","list"]);var g=n(46417),v=["onEntering"],y=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],_={vertical:"top",horizontal:"right"},b={vertical:"top",horizontal:"left"},x=(0,d.ZP)(c.ZP,{shouldForwardProp:function(e){return(0,d.FO)(e)||"classes"===e},name:"MuiMenu",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),E=(0,d.ZP)(u.Z,{name:"MuiMenu",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),S=(0,d.ZP)(l.Z,{name:"MuiMenu",slot:"List",overridesResolver:function(e,t){return t.list}})({outline:0}),w=a.forwardRef((function(e,t){var n=(0,p.Z)({props:e,name:"MuiMenu"}),l=n.autoFocus,u=void 0===l||l,c=n.children,d=n.disableAutoFocusItem,h=void 0!==d&&d,w=n.MenuListProps,C=void 0===w?{}:w,T=n.onClose,A=n.open,k=n.PaperProps,D=void 0===k?{}:k,O=n.PopoverClasses,I=n.transitionDuration,R=void 0===I?"auto":I,N=n.TransitionProps,M=(N=void 0===N?{}:N).onEntering,P=n.variant,L=void 0===P?"selectedMenu":P,F=(0,i.Z)(n.TransitionProps,v),B=(0,i.Z)(n,y),Z=(0,f.Z)(),z="rtl"===Z.direction,U=(0,r.Z)({},n,{autoFocus:u,disableAutoFocusItem:h,MenuListProps:C,onEntering:M,PaperProps:D,transitionDuration:R,TransitionProps:F,variant:L}),j=function(e){var t=e.classes;return(0,s.Z)({root:["root"],paper:["paper"],list:["list"]},m,t)}(U),G=u&&!h&&A,V=a.useRef(null),q=-1;return a.Children.map(c,(function(e,t){a.isValidElement(e)&&(e.props.disabled||("selectedMenu"===L&&e.props.selected||-1===q)&&(q=t))})),(0,g.jsx)(x,(0,r.Z)({classes:O,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:z?"right":"left"},transformOrigin:z?_:b,PaperProps:(0,r.Z)({component:E},D,{classes:(0,r.Z)({},D.classes,{root:j.paper})}),className:j.root,open:A,ref:t,transitionDuration:R,TransitionProps:(0,r.Z)({onEntering:function(e,t){V.current&&V.current.adjustStyleForScrollbar(e,Z),M&&M(e,t)}},F),ownerState:U},B,{children:(0,g.jsx)(S,(0,r.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),T&&T(e,"tabKeyDown"))},actions:V,autoFocus:u&&(-1===q||h),autoFocusItem:G,variant:L},C,{className:(0,o.Z)(j.list,C.className),children:c}))}))}))},81962:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(17551),c=n(64164),d=n(11236),f=n(80315),p=n(56456),h=n(49926),m=n(2995),g=n(92310),v=n(55170),y=n(16206),_=n(32298);function b(e){return(0,_.Z)("MuiMenuItem",e)}var x=(0,n(77430).Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),E=n(46417),S=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],w=(0,c.ZP)(p.Z,{shouldForwardProp:function(e){return(0,c.FO)(e)||"classes"===e},name:"MuiMenuItem",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((function(e){var t,n=e.theme,i=e.ownerState;return(0,a.Z)({},n.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!i.disableGutters&&{paddingLeft:16,paddingRight:16},i.divider&&{borderBottom:"1px solid ".concat((n.vars||n).palette.divider),backgroundClip:"padding-box"},(t={"&:hover":{textDecoration:"none",backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},(0,r.Z)(t,"&.".concat(x.selected),(0,r.Z)({backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,u.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity)},"&.".concat(x.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,u.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)})),(0,r.Z)(t,"&.".concat(x.selected,":hover"),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):(0,u.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,u.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity)}}),(0,r.Z)(t,"&.".concat(x.focusVisible),{backgroundColor:(n.vars||n).palette.action.focus}),(0,r.Z)(t,"&.".concat(x.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity}),(0,r.Z)(t,"& + .".concat(g.Z.root),{marginTop:n.spacing(1),marginBottom:n.spacing(1)}),(0,r.Z)(t,"& + .".concat(g.Z.inset),{marginLeft:52}),(0,r.Z)(t,"& .".concat(y.Z.root),{marginTop:0,marginBottom:0}),(0,r.Z)(t,"& .".concat(y.Z.inset),{paddingLeft:36}),(0,r.Z)(t,"& .".concat(v.Z.root),{minWidth:36}),t),!i.dense&&(0,r.Z)({},n.breakpoints.up("sm"),{minHeight:"auto"}),i.dense&&(0,a.Z)({minHeight:32,paddingTop:4,paddingBottom:4},n.typography.body2,(0,r.Z)({},"& .".concat(v.Z.root," svg"),{fontSize:"1.25rem"})))})),C=o.forwardRef((function(e,t){var n=(0,d.Z)({props:e,name:"MuiMenuItem"}),r=n.autoFocus,u=void 0!==r&&r,c=n.component,p=void 0===c?"li":c,g=n.dense,v=void 0!==g&&g,y=n.divider,_=void 0!==y&&y,x=n.disableGutters,C=void 0!==x&&x,T=n.focusVisibleClassName,A=n.role,k=void 0===A?"menuitem":A,D=n.tabIndex,O=n.className,I=(0,i.Z)(n,S),R=o.useContext(f.Z),N={dense:v||R.dense||!1,disableGutters:C},M=o.useRef(null);(0,h.Z)((function(){u&&M.current&&M.current.focus()}),[u]);var P,L=(0,a.Z)({},n,{dense:N.dense,divider:_,disableGutters:C}),F=function(e){var t=e.disabled,n=e.dense,r=e.divider,i=e.disableGutters,o=e.selected,s=e.classes,u={root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},c=(0,l.Z)(u,b,s);return(0,a.Z)({},s,c)}(n),B=(0,m.Z)(M,t);return n.disabled||(P=void 0!==D?D:-1),(0,E.jsx)(f.Z.Provider,{value:N,children:(0,E.jsx)(w,(0,a.Z)({ref:B,role:k,tabIndex:P,component:p,focusVisibleClassName:(0,s.Z)(F.focusVisible,T),className:(0,s.Z)(F.root,O)},I,{ownerState:L,classes:F}))})}))},38498:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(87462),i=n(63366),a=n(47313),o=(n(96214),n(66182)),s=n(35672),l=n(11194).Z,u=n(2995),c=n(49926),d=n(46417),f=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function p(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function h(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function m(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function g(e,t,n,r,i,a){for(var o=!1,s=i(e,t,!!t&&n);s;){if(s===e.firstChild){if(o)return!1;o=!0}var l=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&m(s,a)&&!l)return s.focus(),!0;s=i(e,s,n)}return!1}var v=a.forwardRef((function(e,t){var n=e.actions,v=e.autoFocus,y=void 0!==v&&v,_=e.autoFocusItem,b=void 0!==_&&_,x=e.children,E=e.className,S=e.disabledItemsFocusable,w=void 0!==S&&S,C=e.disableListWrap,T=void 0!==C&&C,A=e.onKeyDown,k=e.variant,D=void 0===k?"selectedMenu":k,O=(0,i.Z)(e,f),I=a.useRef(null),R=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,c.Z)((function(){y&&I.current.focus()}),[y]),a.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!I.current.style.width;if(e.clientHeight0&&(s-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=s,i.keys.push(a);var l=r&&!i.repeating&&m(r,i);i.previousKeyMatched&&(l||g(t,r,!1,w,p,i))?e.preventDefault():i.previousKeyMatched=!1}A&&A(e)},tabIndex:y?0:-1},O,{children:P}))}))},97148:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(29439),i=n(63366),a=n(87462),o=n(47313),s=n(47472),l=n(49081),u=n(42780),c=n(84246),d=n(21921),f=n(12871),p=n(15671),h=n(43144),m=n(93433),g=n(93282),v=n(11194);function y(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _(e){return parseInt((0,g.Z)(e).getComputedStyle(e).paddingRight,10)||0}function b(e){var t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}function x(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,a=[t,n].concat((0,m.Z)(r));[].forEach.call(e.children,(function(e){var t=-1===a.indexOf(e),n=!b(e);t&&n&&y(e,i)}))}function E(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function S(e,t){var n=[],r=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,l.Z)(e);return t.body===e?(0,g.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){var i=(0,v.Z)((0,l.Z)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight="".concat(_(r)+i,"px");var a=(0,l.Z)(r).querySelectorAll(".mui-fixed");[].forEach.call(a,(function(e){n.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(_(e)+i,"px")}))}var o;if(r.parentNode instanceof DocumentFragment)o=(0,l.Z)(r).body;else{var s=r.parentElement,u=(0,g.Z)(r);o="HTML"===(null==s?void 0:s.nodeName)&&"scroll"===u.getComputedStyle(s).overflowY?s:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return function(){n.forEach((function(e){var t=e.value,n=e.el,r=e.property;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var w=function(){function e(){(0,p.Z)(this,e),this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}return(0,h.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&y(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);x(t,e.mount,e.modalRef,r,!0);var i=E(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}},{key:"mount",value:function(e,t){var n=E(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=S(r,t))}},{key:"remove",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.modals.indexOf(e);if(-1===n)return n;var r=E(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&y(e.modalRef,t),x(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{var a=i.modals[i.modals.length-1];a.modalRef&&y(a.modalRef,!1)}return n}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}(),C=n(92071),T=n(77430),A=n(32298);function k(e){return(0,A.Z)("MuiModal",e)}(0,T.Z)("MuiModal",["root","hidden"]);var D=n(55229),O=n(46417),I=["children","classes","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited"];var R=new w,N=o.forwardRef((function(e,t){var n,p=e.children,h=e.classes,m=e.closeAfterTransition,g=void 0!==m&&m,v=e.component,_=void 0===v?"div":v,b=e.components,x=void 0===b?{}:b,E=e.componentsProps,S=void 0===E?{}:E,w=e.container,T=e.disableAutoFocus,A=void 0!==T&&T,N=e.disableEnforceFocus,M=void 0!==N&&N,P=e.disableEscapeKeyDown,L=void 0!==P&&P,F=e.disablePortal,B=void 0!==F&&F,Z=e.disableRestoreFocus,z=void 0!==Z&&Z,U=e.disableScrollLock,j=void 0!==U&&U,G=e.hideBackdrop,V=void 0!==G&&G,q=e.keepMounted,H=void 0!==q&&q,Y=e.manager,W=void 0===Y?R:Y,X=e.onBackdropClick,K=e.onClose,$=e.onKeyDown,Q=e.open,J=e.onTransitionEnter,ee=e.onTransitionExited,te=(0,i.Z)(e,I),ne=o.useState(!0),re=(0,r.Z)(ne,2),ie=re[0],ae=re[1],oe=o.useRef({}),se=o.useRef(null),le=o.useRef(null),ue=(0,s.Z)(le,t),ce=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(e),de=null==(n=e["aria-hidden"])||n,fe=function(){return oe.current.modalRef=le.current,oe.current.mountNode=se.current,oe.current},pe=function(){W.mount(fe(),{disableScrollLock:j}),le.current.scrollTop=0},he=(0,u.Z)((function(){var e=function(e){return"function"===typeof e?e():e}(w)||(0,l.Z)(se.current).body;W.add(fe(),e),le.current&&pe()})),me=o.useCallback((function(){return W.isTopModal(fe())}),[W]),ge=(0,u.Z)((function(e){se.current=e,e&&(Q&&me()?pe():y(le.current,de))})),ve=o.useCallback((function(){W.remove(fe(),de)}),[W,de]);o.useEffect((function(){return function(){ve()}}),[ve]),o.useEffect((function(){Q?he():ce&&g||ve()}),[Q,ve,ce,g,he]);var ye=(0,a.Z)({},e,{classes:h,closeAfterTransition:g,disableAutoFocus:A,disableEnforceFocus:M,disableEscapeKeyDown:L,disablePortal:B,disableRestoreFocus:z,disableScrollLock:j,exited:ie,hideBackdrop:V,keepMounted:H}),_e=function(e){var t=e.open,n=e.exited,r=e.classes,i={root:["root",!t&&n&&"hidden"]};return(0,d.Z)(i,k,r)}(ye),be={};void 0===p.props.tabIndex&&(be.tabIndex="-1"),ce&&(be.onEnter=(0,c.Z)((function(){ae(!1),J&&J()}),p.props.onEnter),be.onExited=(0,c.Z)((function(){ae(!0),ee&&ee(),g&&ve()}),p.props.onExited));var xe=x.Root||_,Ee=(0,D.Z)({elementType:xe,externalSlotProps:S.root,externalForwardedProps:te,additionalProps:{ref:ue,role:"presentation",onKeyDown:function(e){$&&$(e),"Escape"===e.key&&me()&&(L||(e.stopPropagation(),K&&K(e,"escapeKeyDown")))}},className:_e.root,ownerState:ye}),Se=x.Backdrop,we=(0,D.Z)({elementType:Se,externalSlotProps:S.backdrop,additionalProps:{"aria-hidden":!0,onClick:function(e){e.target===e.currentTarget&&(X&&X(e),K&&K(e,"backdropClick"))},open:Q},ownerState:ye});return H||Q||ce&&!ie?(0,O.jsx)(f.Z,{ref:ge,container:w,disablePortal:B,children:(0,O.jsxs)(xe,(0,a.Z)({},Ee,{children:[!V&&Se?(0,O.jsx)(Se,(0,a.Z)({},we)):null,(0,O.jsx)(C.Z,{disableEnforceFocus:M,disableAutoFocus:A,disableRestoreFocus:z,isEnabled:me,open:Q,children:o.cloneElement(p,be)})]}))}):null})),M=n(43107),P=n(43066),L=n(64164),F=n(11236),B=n(58921),Z=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","theme"],z=(0,L.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.open&&n.exited&&t.hidden]}})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),U=(0,L.ZP)(B.Z,{name:"MuiModal",slot:"Backdrop",overridesResolver:function(e,t){return t.backdrop}})({zIndex:-1}),j=o.forwardRef((function(e,t){var n,s,l=(0,F.Z)({name:"MuiModal",props:e}),u=l.BackdropComponent,c=void 0===u?U:u,d=l.BackdropProps,f=l.closeAfterTransition,p=void 0!==f&&f,h=l.children,m=l.component,g=l.components,v=void 0===g?{}:g,y=l.componentsProps,_=void 0===y?{}:y,b=l.disableAutoFocus,x=void 0!==b&&b,E=l.disableEnforceFocus,S=void 0!==E&&E,w=l.disableEscapeKeyDown,C=void 0!==w&&w,T=l.disablePortal,A=void 0!==T&&T,k=l.disableRestoreFocus,D=void 0!==k&&k,I=l.disableScrollLock,R=void 0!==I&&I,L=l.hideBackdrop,B=void 0!==L&&L,j=l.keepMounted,G=void 0!==j&&j,V=l.theme,q=(0,i.Z)(l,Z),H=o.useState(!0),Y=(0,r.Z)(H,2),W=Y[0],X=Y[1],K={closeAfterTransition:p,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:C,disablePortal:A,disableRestoreFocus:D,disableScrollLock:R,hideBackdrop:B,keepMounted:G},$=(0,a.Z)({},l,K,{exited:W}),Q=function(e){return e.classes}($),J=null!=(n=null!=(s=v.Root)?s:m)?n:z;return(0,O.jsx)(N,(0,a.Z)({components:(0,a.Z)({Root:J,Backdrop:c},v),componentsProps:{root:function(){return(0,a.Z)({},(0,M.Z)(_.root,$),!(0,P.Z)(J)&&{as:m,theme:V})},backdrop:function(){return(0,a.Z)({},d,(0,M.Z)(_.backdrop,$))}},onTransitionEnter:function(){return X(!1)},onTransitionExited:function(){return X(!0)},ref:t},q,{classes:Q},K,{children:h}))}))},42318:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r,i=n(4942),a=n(63366),o=n(87462),s=n(47313),l=n(21921),u=n(64164),c=n(46417),d=["children","classes","className","label","notched"],f=(0,u.ZP)("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),p=(0,u.ZP)("legend")((function(e){var t=e.ownerState,n=e.theme;return(0,o.Z)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&(0,o.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));var h=n(11736),m=n(67223),g=n(4612),v=n(78629),y=n(11236),_=["components","fullWidth","inputComponent","label","multiline","notched","type"],b=(0,u.ZP)(v.Ej,{shouldForwardProp:function(e){return(0,u.FO)(e)||"classes"===e},name:"MuiOutlinedInput",slot:"Root",overridesResolver:v.Gx})((function(e){var t,n=e.theme,r=e.ownerState,a="light"===n.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,o.Z)((t={position:"relative",borderRadius:(n.vars||n).shape.borderRadius},(0,i.Z)(t,"&:hover .".concat(g.Z.notchedOutline),{borderColor:(n.vars||n).palette.text.primary}),(0,i.Z)(t,"@media (hover: none)",(0,i.Z)({},"&:hover .".concat(g.Z.notchedOutline),{borderColor:n.vars?"rgba(".concat(n.vars.palette.common.onBackgroundChannel," / 0.23)"):a})),(0,i.Z)(t,"&.".concat(g.Z.focused," .").concat(g.Z.notchedOutline),{borderColor:(n.vars||n).palette[r.color].main,borderWidth:2}),(0,i.Z)(t,"&.".concat(g.Z.error," .").concat(g.Z.notchedOutline),{borderColor:(n.vars||n).palette.error.main}),(0,i.Z)(t,"&.".concat(g.Z.disabled," .").concat(g.Z.notchedOutline),{borderColor:(n.vars||n).palette.action.disabled}),t),r.startAdornment&&{paddingLeft:14},r.endAdornment&&{paddingRight:14},r.multiline&&(0,o.Z)({padding:"16.5px 14px"},"small"===r.size&&{padding:"8.5px 14px"}))})),x=(0,u.ZP)((function(e){var t=e.className,n=e.label,i=e.notched,s=(0,a.Z)(e,d),l=null!=n&&""!==n,u=(0,o.Z)({},e,{notched:i,withLabel:l});return(0,c.jsx)(f,(0,o.Z)({"aria-hidden":!0,className:t,ownerState:u},s,{children:(0,c.jsx)(p,{ownerState:u,children:l?(0,c.jsx)("span",{children:n}):r||(r=(0,c.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:function(e,t){return t.notchedOutline}})((function(e){var t=e.theme,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}})),E=(0,u.ZP)(v.rA,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:v._o})((function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&(0,i.Z)({"&:-webkit-autofill":{borderRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),S=s.forwardRef((function(e,t){var n,r=(0,y.Z)({props:e,name:"MuiOutlinedInput"}),i=r.components,u=void 0===i?{}:i,d=r.fullWidth,f=void 0!==d&&d,p=r.inputComponent,S=void 0===p?"input":p,w=r.label,C=r.multiline,T=void 0!==C&&C,A=r.notched,k=r.type,D=void 0===k?"text":k,O=(0,a.Z)(r,_),I=function(e){var t=e.classes,n=(0,l.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},g.e,t);return(0,o.Z)({},t,n)}(r),R=(0,h.Z)(),N=(0,m.Z)({props:r,muiFormControl:R,states:["required"]}),M=(0,o.Z)({},r,{color:N.color||"primary",disabled:N.disabled,error:N.error,focused:N.focused,formControl:R,fullWidth:f,hiddenLabel:N.hiddenLabel,multiline:T,size:N.size,type:D});return(0,c.jsx)(v.ZP,(0,o.Z)({components:(0,o.Z)({Root:b,Input:E},u),renderSuffix:function(e){return(0,c.jsx)(x,{ownerState:M,className:I.notchedOutline,label:null!=w&&""!==w&&N.required?n||(n=(0,c.jsxs)(s.Fragment,{children:[w,"\xa0","*"]})):w,notched:"undefined"!==typeof A?A:Boolean(e.startAdornment||e.filled||e.focused)})},fullWidth:f,inputComponent:S,multiline:T,ref:t,type:D},O,{classes:(0,o.Z)({},I,{notchedOutline:null})}))}));S.muiName="Input";var w=S},4612:function(e,t,n){"use strict";n.d(t,{e:function(){return s}});var r=n(87462),i=n(32298),a=n(77430),o=n(99876);function s(e){return(0,i.Z)("MuiOutlinedInput",e)}var l=(0,r.Z)({},o.Z,(0,a.Z)("MuiOutlinedInput",["root","notchedOutline","input"]));t.Z=l},32415:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(63366),i=n(87462),a=n(47313),o=n(83061),s=n(21921),l=n(17551),u=n(64164),c=n(11236),d=n(32298);function f(e){return(0,d.Z)("MuiPaper",e)}(0,n(77430).Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var p=n(46417),h=["className","component","elevation","square","variant"],m=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)},g=(0,u.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation".concat(n.elevation)]]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,i.Z)({backgroundColor:(n.vars||n).palette.background.paper,color:(n.vars||n).palette.text.primary,transition:n.transitions.create("box-shadow")},!r.square&&{borderRadius:n.shape.borderRadius},"outlined"===r.variant&&{border:"1px solid ".concat((n.vars||n).palette.divider)},"elevation"===r.variant&&(0,i.Z)({boxShadow:(n.vars||n).shadows[r.elevation]},!n.vars&&"dark"===n.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,l.Fq)("#fff",m(r.elevation)),", ").concat((0,l.Fq)("#fff",m(r.elevation)),")")},n.vars&&{backgroundImage:null==(t=n.vars.overlays)?void 0:t[r.elevation]}))})),v=a.forwardRef((function(e,t){var n=(0,c.Z)({props:e,name:"MuiPaper"}),a=n.className,l=n.component,u=void 0===l?"div":l,d=n.elevation,m=void 0===d?1:d,v=n.square,y=void 0!==v&&v,_=n.variant,b=void 0===_?"elevation":_,x=(0,r.Z)(n,h),E=(0,i.Z)({},n,{component:u,elevation:m,square:y,variant:b}),S=function(e){var t=e.square,n=e.elevation,r=e.variant,i=e.classes,a={root:["root",r,!t&&"rounded","elevation"===r&&"elevation".concat(n)]};return(0,s.Z)(a,f,i)}(E);return(0,p.jsx)(g,(0,i.Z)({as:u,ownerState:E,className:(0,o.Z)(S.root,a),ref:t},x))}))},44906:function(e,t,n){"use strict";n.d(t,{ZP:function(){return k}});var r=n(87462),i=n(63366),a=n(47313),o=n(83061),s=n(21921),l=n(64164),u=n(11236),c=n(39492),d=n(66182),f=n(20897),p=n(2995),h=n(61107),m=n(97148),g=n(32415),v=n(32298);function y(e){return(0,v.Z)("MuiPopover",e)}(0,n(77430).Z)("MuiPopover",["root","paper"]);var _=n(46417),b=["onEntering"],x=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function E(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function S(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function w(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function C(e){return"function"===typeof e?e():e}var T=(0,l.ZP)(m.Z,{name:"MuiPopover",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),A=(0,l.ZP)(g.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),k=a.forwardRef((function(e,t){var n=(0,u.Z)({props:e,name:"MuiPopover"}),l=n.action,m=n.anchorEl,g=n.anchorOrigin,v=void 0===g?{vertical:"top",horizontal:"left"}:g,k=n.anchorPosition,D=n.anchorReference,O=void 0===D?"anchorEl":D,I=n.children,R=n.className,N=n.container,M=n.elevation,P=void 0===M?8:M,L=n.marginThreshold,F=void 0===L?16:L,B=n.open,Z=n.PaperProps,z=void 0===Z?{}:Z,U=n.transformOrigin,j=void 0===U?{vertical:"top",horizontal:"left"}:U,G=n.TransitionComponent,V=void 0===G?h.Z:G,q=n.transitionDuration,H=void 0===q?"auto":q,Y=n.TransitionProps,W=(Y=void 0===Y?{}:Y).onEntering,X=(0,i.Z)(n.TransitionProps,b),K=(0,i.Z)(n,x),$=a.useRef(),Q=(0,p.Z)($,z.ref),J=(0,r.Z)({},n,{anchorOrigin:v,anchorReference:O,elevation:P,marginThreshold:F,PaperProps:z,transformOrigin:j,TransitionComponent:V,transitionDuration:H,TransitionProps:X}),ee=function(e){var t=e.classes;return(0,s.Z)({root:["root"],paper:["paper"]},y,t)}(J),te=a.useCallback((function(){if("anchorPosition"===O)return k;var e=C(m),t=(e&&1===e.nodeType?e:(0,d.Z)($.current).body).getBoundingClientRect();return{top:t.top+E(t,v.vertical),left:t.left+S(t,v.horizontal)}}),[m,v.horizontal,v.vertical,k,O]),ne=a.useCallback((function(e){return{vertical:E(e,j.vertical),horizontal:S(e,j.horizontal)}}),[j.horizontal,j.vertical]),re=a.useCallback((function(e){var t={width:e.offsetWidth,height:e.offsetHeight},n=ne(t);if("none"===O)return{top:null,left:null,transformOrigin:w(n)};var r=te(),i=r.top-n.vertical,a=r.left-n.horizontal,o=i+t.height,s=a+t.width,l=(0,f.Z)(C(m)),u=l.innerHeight-F,c=l.innerWidth-F;if(iu){var p=o-u;i-=p,n.vertical+=p}if(ac){var g=s-c;a-=g,n.horizontal+=g}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:w(n)}}),[m,O,te,ne,F]),ie=a.useCallback((function(){var e=$.current;if(e){var t=re(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[re]);a.useEffect((function(){B&&ie()})),a.useImperativeHandle(l,(function(){return B?{updatePosition:function(){ie()}}:null}),[B,ie]),a.useEffect((function(){if(B){var e=(0,c.Z)((function(){ie()})),t=(0,f.Z)(m);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[m,B,ie]);var ae=H;"auto"!==H||V.muiSupportAuto||(ae=void 0);var oe=N||(m?(0,d.Z)(C(m)).body:void 0);return(0,_.jsx)(T,(0,r.Z)({BackdropProps:{invisible:!0},className:(0,o.Z)(ee.root,R),container:oe,open:B,ref:t,ownerState:J},K,{children:(0,_.jsx)(V,(0,r.Z)({appear:!0,in:B,onEntering:function(e,t){W&&W(e,t),ie()},timeout:ae},X,{children:(0,_.jsx)(A,(0,r.Z)({elevation:P},z,{ref:Q,className:(0,o.Z)(ee.paper,z.className),ownerState:J,children:I}))}))}))}))},80859:function(e,t,n){"use strict";n.d(t,{Z:function(){return Ze}});var r=n(87462),i=n(29439),a=n(63366),o=n(47313),s=n(47472),l=n(2678),u=n(49081);function c(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function d(e){return e instanceof c(e).Element||e instanceof Element}function f(e){return e instanceof c(e).HTMLElement||e instanceof HTMLElement}function p(e){return"undefined"!==typeof ShadowRoot&&(e instanceof c(e).ShadowRoot||e instanceof ShadowRoot)}var h=Math.max,m=Math.min,g=Math.round;function v(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function y(){return!/^((?!chrome|android).)*safari/i.test(v())}function _(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&f(e)&&(i=e.offsetWidth>0&&g(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&g(r.height)/e.offsetHeight||1);var o=(d(e)?c(e):window).visualViewport,s=!y()&&n,l=(r.left+(s&&o?o.offsetLeft:0))/i,u=(r.top+(s&&o?o.offsetTop:0))/a,p=r.width/i,h=r.height/a;return{width:p,height:h,top:u,right:l+p,bottom:u+h,left:l,x:l,y:u}}function b(e){var t=c(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function x(e){return e?(e.nodeName||"").toLowerCase():null}function E(e){return((d(e)?e.ownerDocument:e.document)||window.document).documentElement}function S(e){return _(E(e)).left+b(e).scrollLeft}function w(e){return c(e).getComputedStyle(e)}function C(e){var t=w(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function T(e,t,n){void 0===n&&(n=!1);var r=f(t),i=f(t)&&function(e){var t=e.getBoundingClientRect(),n=g(t.width)/e.offsetWidth||1,r=g(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=E(t),o=_(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==x(t)||C(a))&&(s=function(e){return e!==c(e)&&f(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:b(e);var t}(t)),f(t)?((l=_(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=S(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function A(e){var t=_(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function k(e){return"html"===x(e)?e:e.assignedSlot||e.parentNode||(p(e)?e.host:null)||E(e)}function D(e){return["html","body","#document"].indexOf(x(e))>=0?e.ownerDocument.body:f(e)&&C(e)?e:D(k(e))}function O(e,t){var n;void 0===t&&(t=[]);var r=D(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=c(r),o=i?[a].concat(a.visualViewport||[],C(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(O(k(o)))}function I(e){return["table","td","th"].indexOf(x(e))>=0}function R(e){return f(e)&&"fixed"!==w(e).position?e.offsetParent:null}function N(e){for(var t=c(e),n=R(e);n&&I(n)&&"static"===w(n).position;)n=R(n);return n&&("html"===x(n)||"body"===x(n)&&"static"===w(n).position)?t:n||function(e){var t=/firefox/i.test(v());if(/Trident/i.test(v())&&f(e)&&"fixed"===w(e).position)return null;var n=k(e);for(p(n)&&(n=n.host);f(n)&&["html","body"].indexOf(x(n))<0;){var r=w(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var M="top",P="bottom",L="right",F="left",B="auto",Z=[M,P,L,F],z="start",U="end",j="viewport",G="popper",V=Z.reduce((function(e,t){return e.concat([t+"-"+z,t+"-"+U])}),[]),q=[].concat(Z,[B]).reduce((function(e,t){return e.concat([t,t+"-"+z,t+"-"+U])}),[]),H=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Y(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function W(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var X={placement:"bottom",modifiers:[],strategy:"absolute"};function K(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function ne(e){var t,n=e.reference,r=e.element,i=e.placement,a=i?J(i):null,o=i?ee(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case M:t={x:s,y:n.y-r.height};break;case P:t={x:s,y:n.y+n.height};break;case L:t={x:n.x+n.width,y:l};break;case F:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=a?te(a):null;if(null!=u){var c="y"===u?"height":"width";switch(o){case z:t[u]=t[u]-(n[c]/2-r[c]/2);break;case U:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var re={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ie(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=o.x,h=void 0===p?0:p,m=o.y,v=void 0===m?0:m,y="function"===typeof d?d({x:h,y:v}):{x:h,y:v};h=y.x,v=y.y;var _=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),x=F,S=M,C=window;if(u){var T=N(n),A="clientHeight",k="clientWidth";if(T===c(n)&&"static"!==w(T=E(n)).position&&"absolute"===s&&(A="scrollHeight",k="scrollWidth"),i===M||(i===F||i===L)&&a===U)S=P,v-=(f&&T===C&&C.visualViewport?C.visualViewport.height:T[A])-r.height,v*=l?1:-1;if(i===F||(i===M||i===P)&&a===U)x=L,h-=(f&&T===C&&C.visualViewport?C.visualViewport.width:T[k])-r.width,h*=l?1:-1}var D,O=Object.assign({position:s},u&&re),I=!0===d?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:g(t*r)/r||0,y:g(n*r)/r||0}}({x:h,y:v}):{x:h,y:v};return h=I.x,v=I.y,l?Object.assign({},O,((D={})[S]=b?"0":"",D[x]=_?"0":"",D.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",D)):Object.assign({},O,((t={})[S]=b?v+"px":"",t[x]=_?h+"px":"",t.transform="",t))}var ae={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=void 0===i?[0,0]:i,o=q.reduce((function(e,n){return e[n]=function(e,t,n){var r=J(e),i=[F,M].indexOf(r)>=0?-1:1,a="function"===typeof n?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[F,L].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}(n,t.rects,a),e}),{}),s=o[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}},oe={left:"right",right:"left",bottom:"top",top:"bottom"};function se(e){return e.replace(/left|right|bottom|top/g,(function(e){return oe[e]}))}var le={start:"end",end:"start"};function ue(e){return e.replace(/start|end/g,(function(e){return le[e]}))}function ce(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&p(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function de(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fe(e,t,n){return t===j?de(function(e,t){var n=c(e),r=E(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var u=y();(u||!u&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+S(e),y:l}}(e,n)):d(t)?function(e,t){var n=_(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):de(function(e){var t,n=E(e),r=b(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=h(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=h(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+S(e),l=-r.scrollTop;return"rtl"===w(i||n).direction&&(s+=h(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}(E(e)))}function pe(e,t,n,r){var i="clippingParents"===t?function(e){var t=O(k(e)),n=["absolute","fixed"].indexOf(w(e).position)>=0&&f(e)?N(e):e;return d(n)?t.filter((function(e){return d(e)&&ce(e,n)&&"body"!==x(e)})):[]}(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce((function(t,n){var i=fe(e,n,r);return t.top=h(i.top,t.top),t.right=m(i.right,t.right),t.bottom=m(i.bottom,t.bottom),t.left=h(i.left,t.left),t}),fe(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function he(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function me(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ge(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,a=n.strategy,o=void 0===a?e.strategy:a,s=n.boundary,l=void 0===s?"clippingParents":s,u=n.rootBoundary,c=void 0===u?j:u,f=n.elementContext,p=void 0===f?G:f,h=n.altBoundary,m=void 0!==h&&h,g=n.padding,v=void 0===g?0:g,y=he("number"!==typeof v?v:me(v,Z)),b=p===G?"reference":G,x=e.rects.popper,S=e.elements[m?b:p],w=pe(d(S)?S:S.contextElement||E(e.elements.popper),l,c,o),C=_(e.elements.reference),T=ne({reference:C,element:x,strategy:"absolute",placement:i}),A=de(Object.assign({},x,T)),k=p===G?A:C,D={top:w.top-k.top+y.top,bottom:k.bottom-w.bottom+y.bottom,left:w.left-k.left+y.left,right:k.right-w.right+y.right},O=e.modifiersData.offset;if(p===G&&O){var I=O[i];Object.keys(D).forEach((function(e){var t=[L,P].indexOf(e)>=0?1:-1,n=[M,P].indexOf(e)>=0?"y":"x";D[e]+=I[n]*t}))}return D}function ve(e,t,n){return h(e,m(t,n))}var ye={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0!==o&&o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,g=n.tetherOffset,v=void 0===g?0:g,y=ge(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),_=J(t.placement),b=ee(t.placement),x=!b,E=te(_),S="x"===E?"y":"x",w=t.modifiersData.popperOffsets,C=t.rects.reference,T=t.rects.popper,k="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,D="number"===typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(w){if(a){var R,B="y"===E?M:F,Z="y"===E?P:L,U="y"===E?"height":"width",j=w[E],G=j+y[B],V=j-y[Z],q=p?-T[U]/2:0,H=b===z?C[U]:T[U],Y=b===z?-T[U]:-C[U],W=t.elements.arrow,X=p&&W?A(W):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=K[B],Q=K[Z],ne=ve(0,C[U],X[U]),re=x?C[U]/2-q-ne-$-D.mainAxis:H-ne-$-D.mainAxis,ie=x?-C[U]/2+q+ne+Q+D.mainAxis:Y+ne+Q+D.mainAxis,ae=t.elements.arrow&&N(t.elements.arrow),oe=ae?"y"===E?ae.clientTop||0:ae.clientLeft||0:0,se=null!=(R=null==O?void 0:O[E])?R:0,le=j+ie-se,ue=ve(p?m(G,j+re-se-oe):G,j,p?h(V,le):V);w[E]=ue,I[E]=ue-j}if(s){var ce,de="x"===E?M:F,fe="x"===E?P:L,pe=w[S],he="y"===S?"height":"width",me=pe+y[de],ye=pe-y[fe],_e=-1!==[M,F].indexOf(_),be=null!=(ce=null==O?void 0:O[S])?ce:0,xe=_e?me:pe-C[he]-T[he]-be+D.altAxis,Ee=_e?pe+C[he]+T[he]-be-D.altAxis:ye,Se=p&&_e?function(e,t,n){var r=ve(e,t,n);return r>n?n:r}(xe,pe,Ee):ve(p?xe:me,pe,p?Ee:ye);w[S]=Se,I[S]=Se-pe}t.modifiersData[r]=I}},requiresIfExists:["offset"]};var _e={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=J(n.placement),l=te(s),u=[F,L].indexOf(s)>=0?"height":"width";if(a&&o){var c=function(e,t){return he("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:me(e,Z))}(i.padding,n),d=A(a),f="y"===l?M:F,p="y"===l?P:L,h=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],m=o[l]-n.rects.reference[l],g=N(a),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,_=c[f],b=v-d[u]-c[p],x=v/2-d[u]/2+y,E=ve(_,x,b),S=l;n.modifiersData[r]=((t={})[S]=E,t.centerOffset=E-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&ce(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function be(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function xe(e){return[M,L,P,F].some((function(t){return e[t]>=0}))}var Ee=$({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=void 0===i||i,o=r.resize,s=void 0===o||o,l=c(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach((function(e){e.addEventListener("scroll",n.update,Q)})),s&&l.addEventListener("resize",n.update,Q),function(){a&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Q)})),s&&l.removeEventListener("resize",n.update,Q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ne({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,a=n.adaptive,o=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,u={placement:J(t.placement),variation:ee(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ie(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ie(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];f(i)&&x(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});f(r)&&x(r)&&(Object.assign(r.style,a),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},ae,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0===o||o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=J(g),y=l||(v===g||!h?[se(g)]:function(e){if(J(e)===B)return[];var t=se(e);return[ue(e),t,ue(t)]}(g)),_=[g].concat(y).reduce((function(e,n){return e.concat(J(n)===B?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?q:l,c=ee(r),d=c?s?V:V.filter((function(e){return ee(e)===c})):Z,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=ge(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[J(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),b=t.rects.reference,x=t.rects.popper,E=new Map,S=!0,w=_[0],C=0;C<_.length;C++){var T=_[C],A=J(T),k=ee(T)===z,D=[M,P].indexOf(A)>=0,O=D?"width":"height",I=ge(t,{placement:T,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),R=D?k?L:F:k?P:M;b[O]>x[O]&&(R=se(R));var N=se(R),U=[];if(a&&U.push(I[A]<=0),s&&U.push(I[R]<=0,I[N]<=0),U.every((function(e){return e}))){w=T,S=!1;break}E.set(T,U)}if(S)for(var j=function(e){var t=_.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return w=t,"break"},G=h?3:1;G>0;G--){if("break"===j(G))break}t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ye,_e,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=ge(t,{elementContext:"reference"}),s=ge(t,{altBoundary:!0}),l=be(o,r),u=be(s,i,a),c=xe(l),d=xe(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),Se=n(21921),we=n(12871),Ce=n(32298);function Te(e){return(0,Ce.Z)("MuiPopperUnstyled",e)}(0,n(77430).Z)("MuiPopperUnstyled",["root"]);var Ae=n(55229),ke=n(46417),De=["anchorEl","children","component","components","componentsProps","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","TransitionProps"],Oe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function Ie(e){return"function"===typeof e?e():e}var Re={},Ne=o.forwardRef((function(e,t){var n,u=e.anchorEl,c=e.children,d=e.component,f=e.components,p=void 0===f?{}:f,h=e.componentsProps,m=void 0===h?{}:h,g=e.direction,v=e.disablePortal,y=e.modifiers,_=e.open,b=e.ownerState,x=e.placement,E=e.popperOptions,S=e.popperRef,w=e.TransitionProps,C=(0,a.Z)(e,De),T=o.useRef(null),A=(0,s.Z)(T,t),k=o.useRef(null),D=(0,s.Z)(k,S),O=o.useRef(D);(0,l.Z)((function(){O.current=D}),[D]),o.useImperativeHandle(S,(function(){return k.current}),[]);var I=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(x,g),R=o.useState(I),N=(0,i.Z)(R,2),M=N[0],P=N[1];o.useEffect((function(){k.current&&k.current.forceUpdate()})),(0,l.Z)((function(){if(u&&_){Ie(u);var e=[{name:"preventOverflow",options:{altBoundary:v}},{name:"flip",options:{altBoundary:v}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;P(t.placement)}}];null!=y&&(e=e.concat(y)),E&&null!=E.modifiers&&(e=e.concat(E.modifiers));var t=Ee(Ie(u),T.current,(0,r.Z)({placement:I},E,{modifiers:e}));return O.current(t),function(){t.destroy(),O.current(null)}}}),[u,v,y,_,E,I]);var L={placement:M};null!==w&&(L.TransitionProps=w);var F=(0,Se.Z)({root:["root"]},Te,{}),B=null!=(n=null!=d?d:p.Root)?n:"div",Z=(0,Ae.Z)({elementType:B,externalSlotProps:m.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:A},ownerState:(0,r.Z)({},e,b),className:F.root});return(0,ke.jsx)(B,(0,r.Z)({},Z,{children:"function"===typeof c?c(L):c}))})),Me=o.forwardRef((function(e,t){var n=e.anchorEl,s=e.children,l=e.container,c=e.direction,d=void 0===c?"ltr":c,f=e.disablePortal,p=void 0!==f&&f,h=e.keepMounted,m=void 0!==h&&h,g=e.modifiers,v=e.open,y=e.placement,_=void 0===y?"bottom":y,b=e.popperOptions,x=void 0===b?Re:b,E=e.popperRef,S=e.style,w=e.transition,C=void 0!==w&&w,T=(0,a.Z)(e,Oe),A=o.useState(!0),k=(0,i.Z)(A,2),D=k[0],O=k[1];if(!m&&!v&&(!C||D))return null;var I=l||(n?(0,u.Z)(Ie(n)).body:void 0);return(0,ke.jsx)(we.Z,{disablePortal:p,container:I,children:(0,ke.jsx)(Ne,(0,r.Z)({anchorEl:n,direction:d,disablePortal:p,modifiers:g,ref:t,open:C?!D:v,placement:_,popperOptions:x,popperRef:E},T,{style:(0,r.Z)({position:"fixed",top:0,left:0,display:v||!m||C&&!D?null:"none"},S),TransitionProps:C?{in:v,onEnter:function(){O(!1)},onExited:function(){O(!0)}}:null,children:s}))})})),Pe=n(14976),Le=n(64164),Fe=n(11236),Be=(0,Le.ZP)(Me,{name:"MuiPopper",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Ze=o.forwardRef((function(e,t){var n=(0,Pe.Z)(),i=(0,Fe.Z)({props:e,name:"MuiPopper"});return(0,ke.jsx)(Be,(0,r.Z)({direction:null==n?void 0:n.direction},i,{ref:t}))}))},88905:function(e,t,n){"use strict";n.d(t,{Z:function(){return te}});var r=n(87462),i=n(63366),a=n(47313),o=n(83061),s=n(13019),l=n(29439),u=n(4942),c=n(77219),d=(n(96214),n(21921)),f=n(66182),p=n(28170),h=n(35138),m=n(32298),g=n(77430);function v(e){return(0,m.Z)("MuiNativeSelect",e)}var y=(0,g.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),_=n(64164),b=n(46417),x=["className","disabled","IconComponent","inputRef","variant"],E=function(e){var t,n=e.ownerState,i=e.theme;return(0,r.Z)((t={MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:"light"===i.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"}},(0,u.Z)(t,"&.".concat(y.disabled),{cursor:"default"}),(0,u.Z)(t,"&[multiple]",{height:"auto"}),(0,u.Z)(t,"&:not([multiple]) option, &:not([multiple]) optgroup",{backgroundColor:i.palette.background.paper}),(0,u.Z)(t,"&&&",{paddingRight:24,minWidth:16}),t),"filled"===n.variant&&{"&&&":{paddingRight:32}},"outlined"===n.variant&&{borderRadius:i.shape.borderRadius,"&:focus":{borderRadius:i.shape.borderRadius},"&&&":{paddingRight:32}})},S=(0,_.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:_.FO,overridesResolver:function(e,t){var n=e.ownerState;return[t.select,t[n.variant],(0,u.Z)({},"&.".concat(y.multiple),t.multiple)]}})(E),w=function(e){var t=e.ownerState,n=e.theme;return(0,r.Z)((0,u.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:n.palette.action.active},"&.".concat(y.disabled),{color:n.palette.action.disabled}),t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},C=(0,_.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.variant&&t["icon".concat((0,p.Z)(n.variant))],n.open&&t.iconOpen]}})(w),T=a.forwardRef((function(e,t){var n=e.className,s=e.disabled,l=e.IconComponent,u=e.inputRef,c=e.variant,f=void 0===c?"standard":c,h=(0,i.Z)(e,x),m=(0,r.Z)({},e,{disabled:s,variant:f}),g=function(e){var t=e.classes,n=e.variant,r=e.disabled,i=e.multiple,a=e.open,o={select:["select",n,r&&"disabled",i&&"multiple"],icon:["icon","icon".concat((0,p.Z)(n)),a&&"iconOpen",r&&"disabled"]};return(0,d.Z)(o,v,t)}(m);return(0,b.jsxs)(a.Fragment,{children:[(0,b.jsx)(S,(0,r.Z)({ownerState:m,className:(0,o.Z)(g.select,n),disabled:s,ref:u||t},h)),e.multiple?null:(0,b.jsx)(C,{as:l,ownerState:m,className:g.icon})]})})),A=n(97868),k=n(2995),D=n(56716);function O(e){return(0,m.Z)("MuiSelect",e)}var I,R=(0,g.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),N=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],M=(0,_.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:function(e,t){var n=e.ownerState;return[(0,u.Z)({},"&.".concat(R.select),t.select),(0,u.Z)({},"&.".concat(R.select),t[n.variant]),(0,u.Z)({},"&.".concat(R.multiple),t.multiple)]}})(E,(0,u.Z)({},"&.".concat(R.select),{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"})),P=(0,_.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.variant&&t["icon".concat((0,p.Z)(n.variant))],n.open&&t.iconOpen]}})(w),L=(0,_.ZP)("input",{shouldForwardProp:function(e){return(0,_.Dz)(e)&&"classes"!==e},name:"MuiSelect",slot:"NativeInput",overridesResolver:function(e,t){return t.nativeInput}})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function F(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function B(e){return null==e||"string"===typeof e&&!e.trim()}var Z,z,U=a.forwardRef((function(e,t){var n=e["aria-describedby"],s=e["aria-label"],u=e.autoFocus,m=e.autoWidth,g=e.children,v=e.className,y=e.defaultOpen,_=e.defaultValue,x=e.disabled,E=e.displayEmpty,S=e.IconComponent,w=e.inputRef,C=e.labelId,T=e.MenuProps,R=void 0===T?{}:T,Z=e.multiple,z=e.name,U=e.onBlur,j=e.onChange,G=e.onClose,V=e.onFocus,q=e.onOpen,H=e.open,Y=e.readOnly,W=e.renderValue,X=e.SelectDisplayProps,K=void 0===X?{}:X,$=e.tabIndex,Q=e.value,J=e.variant,ee=void 0===J?"standard":J,te=(0,i.Z)(e,N),ne=(0,D.Z)({controlled:Q,default:_,name:"Select"}),re=(0,l.Z)(ne,2),ie=re[0],ae=re[1],oe=(0,D.Z)({controlled:H,default:y,name:"Select"}),se=(0,l.Z)(oe,2),le=se[0],ue=se[1],ce=a.useRef(null),de=a.useRef(null),fe=a.useState(null),pe=(0,l.Z)(fe,2),he=pe[0],me=pe[1],ge=a.useRef(null!=H).current,ve=a.useState(),ye=(0,l.Z)(ve,2),_e=ye[0],be=ye[1],xe=(0,k.Z)(t,w),Ee=a.useCallback((function(e){de.current=e,e&&me(e)}),[]);a.useImperativeHandle(xe,(function(){return{focus:function(){de.current.focus()},node:ce.current,value:ie}}),[ie]),a.useEffect((function(){y&&le&&he&&!ge&&(be(m?null:he.clientWidth),de.current.focus())}),[he,m]),a.useEffect((function(){u&&de.current.focus()}),[u]),a.useEffect((function(){if(C){var e=(0,f.Z)(de.current).getElementById(C);if(e){var t=function(){getSelection().isCollapsed&&de.current.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[C]);var Se,we,Ce=function(e,t){e?q&&q(t):G&&G(t),ge||(be(m?null:he.clientWidth),ue(e))},Te=a.Children.toArray(g),Ae=function(e){return function(t){var n;if(t.currentTarget.hasAttribute("tabindex")){if(Z){n=Array.isArray(ie)?ie.slice():[];var r=ie.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),ie!==n&&(ae(n),j)){var i=t.nativeEvent||t,a=new i.constructor(i.type,i);Object.defineProperty(a,"target",{writable:!0,value:{value:n,name:z}}),j(a,e)}Z||Ce(!1,t)}}},ke=null!==he&≤delete te["aria-invalid"];var De=[],Oe=!1;((0,A.vd)({value:ie})||E)&&(W?Se=W(ie):Oe=!0);var Ie=Te.map((function(e,t,n){if(!a.isValidElement(e))return null;var r;if(Z){if(!Array.isArray(ie))throw new Error((0,c.Z)(2));(r=ie.some((function(t){return F(t,e.props.value)})))&&Oe&&De.push(e.props.children)}else(r=F(ie,e.props.value))&&Oe&&(we=e.props.children);if(r&&!0,void 0===e.props.value)return a.cloneElement(e,{"aria-readonly":!0,role:"option"});return a.cloneElement(e,{"aria-selected":r?"true":"false",onClick:Ae(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:void 0===n[0].props.value||!0===n[0].props.disabled?function(){if(ie)return r;var t=n.find((function(e){return void 0!==e.props.value&&!0!==e.props.disabled}));return e===t||r}():r,value:void 0,"data-value":e.props.value})}));Oe&&(Se=Z?0===De.length?null:De.reduce((function(e,t,n){return e.push(t),n0?d[n[t-1]]:"column";d[e]=r}}));i=(0,c.Z)(i,(0,s.k9)({theme:n},f,(function(e,n){return{"& > :not(style) + :not(style)":(0,r.Z)({margin:0},"margin".concat((i=n?d[n]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i])),(0,l.NA)(o,e))};var i})))}return i=(0,s.dt)(n.breakpoints,i)})),v=o.forwardRef((function(e,t){var n=(0,f.Z)({props:e,name:"MuiStack"}),r=(0,u.Z)(n),o=r.component,s=void 0===o?"div":o,l=r.direction,c=void 0===l?"column":l,d=r.spacing,v=void 0===d?0:d,y=r.divider,_=r.children,b=(0,i.Z)(r,h),x={direction:c,spacing:v};return(0,p.jsx)(g,(0,a.Z)({as:s,ownerState:x,ref:t},b,{children:y?m(_,y):_}))}));t.Z=v},85541:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(87462),i=n(63366),a=n(47313),o=n(83061),s=n(21921),l=n(28170),u=n(11236),c=n(64164),d=n(32298);function f(e){return(0,d.Z)("MuiSvgIcon",e)}(0,n(77430).Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var p=n(46417),h=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],m=(0,c.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"inherit"!==n.color&&t["color".concat((0,l.Z)(n.color))],t["fontSize".concat((0,l.Z)(n.fontSize))]]}})((function(e){var t,n,r,i,a,o,s,l,u,c,d,f,p,h,m,g,v,y=e.theme,_=e.ownerState;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(t=y.transitions)||null==(n=t.create)?void 0:n.call(t,"fill",{duration:null==(r=y.transitions)||null==(i=r.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=y.typography)||null==(o=a.pxToRem)?void 0:o.call(a,20))||"1.25rem",medium:(null==(s=y.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=y.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[_.fontSize],color:null!=(d=null==(f=(y.vars||y).palette)||null==(p=f[_.color])?void 0:p.main)?d:{action:null==(h=(y.vars||y).palette)||null==(m=h.action)?void 0:m.active,disabled:null==(g=(y.vars||y).palette)||null==(v=g.action)?void 0:v.disabled,inherit:void 0}[_.color]}})),g=a.forwardRef((function(e,t){var n=(0,u.Z)({props:e,name:"MuiSvgIcon"}),a=n.children,c=n.className,d=n.color,g=void 0===d?"inherit":d,v=n.component,y=void 0===v?"svg":v,_=n.fontSize,b=void 0===_?"medium":_,x=n.htmlColor,E=n.inheritViewBox,S=void 0!==E&&E,w=n.titleAccess,C=n.viewBox,T=void 0===C?"0 0 24 24":C,A=(0,i.Z)(n,h),k=(0,r.Z)({},n,{color:g,component:y,fontSize:b,instanceFontSize:e.fontSize,inheritViewBox:S,viewBox:T}),D={};S||(D.viewBox=T);var O=function(e){var t=e.color,n=e.fontSize,r=e.classes,i={root:["root","inherit"!==t&&"color".concat((0,l.Z)(t)),"fontSize".concat((0,l.Z)(n))]};return(0,s.Z)(i,f,r)}(k);return(0,p.jsxs)(m,(0,r.Z)({as:y,className:(0,o.Z)(O.root,c),focusable:"false",color:x,"aria-hidden":!w||void 0,role:w?"img":void 0,ref:t},D,A,{ownerState:k,children:[a,w?(0,p.jsx)("title",{children:w}):null]}))}));g.muiName="SvgIcon";var v=g},11626:function(e,t,n){"use strict";var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(17551),c=n(28170),d=n(45359),f=n(11236),p=n(64164),h=n(11105),m=n(46417),g=["className","color","edge","size","sx"],v=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.edge&&t["edge".concat((0,c.Z)(n.edge))],t["size".concat((0,c.Z)(n.size))]]}})((function(e){var t,n=e.ownerState;return(0,a.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===n.edge&&{marginLeft:-8},"end"===n.edge&&{marginRight:-8},"small"===n.size&&(t={width:40,height:24,padding:7},(0,r.Z)(t,"& .".concat(h.Z.thumb),{width:16,height:16}),(0,r.Z)(t,"& .".concat(h.Z.switchBase),(0,r.Z)({padding:4},"&.".concat(h.Z.checked),{transform:"translateX(16px)"})),t))})),y=(0,p.ZP)(d.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:function(e,t){var n=e.ownerState;return[t.switchBase,(0,r.Z)({},"& .".concat(h.Z.input),t.input),"default"!==n.color&&t["color".concat((0,c.Z)(n.color))]]}})((function(e){var t,n=e.theme;return t={position:"absolute",top:0,left:0,zIndex:1,color:n.vars?n.vars.palette.Switch.defaultColor:"".concat("light"===n.palette.mode?n.palette.common.white:n.palette.grey[300]),transition:n.transitions.create(["left","transform"],{duration:n.transitions.duration.shortest})},(0,r.Z)(t,"&.".concat(h.Z.checked),{transform:"translateX(20px)"}),(0,r.Z)(t,"&.".concat(h.Z.disabled),{color:n.vars?n.vars.palette.Switch.defaultDisabledColor:"".concat("light"===n.palette.mode?n.palette.grey[100]:n.palette.grey[600])}),(0,r.Z)(t,"&.".concat(h.Z.checked," + .").concat(h.Z.track),{opacity:.5}),(0,r.Z)(t,"&.".concat(h.Z.disabled," + .").concat(h.Z.track),{opacity:n.vars?n.vars.opacity.switchTrackDisabled:"".concat("light"===n.palette.mode?.12:.2)}),(0,r.Z)(t,"& .".concat(h.Z.input),{left:"-100%",width:"300%"}),t}),(function(e){var t,n=e.theme,i=e.ownerState;return(0,a.Z)({"&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.activeChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,u.Fq)(n.palette.action.active,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==i.color&&(t={},(0,r.Z)(t,"&.".concat(h.Z.checked),(0,r.Z)({color:(n.vars||n).palette[i.color].main,"&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette[i.color].mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,u.Fq)(n.palette[i.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(h.Z.disabled),{color:n.vars?n.vars.palette.Switch["".concat(i.color,"DisabledColor")]:"".concat("light"===n.palette.mode?(0,u.$n)(n.palette[i.color].main,.62):(0,u._j)(n.palette[i.color].main,.55))})),(0,r.Z)(t,"&.".concat(h.Z.checked," + .").concat(h.Z.track),{backgroundColor:(n.vars||n).palette[i.color].main}),t))})),_=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:function(e,t){return t.track}})((function(e){var t=e.theme;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),b=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:function(e,t){return t.thumb}})((function(e){var t=e.theme;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),x=o.forwardRef((function(e,t){var n=(0,f.Z)({props:e,name:"MuiSwitch"}),r=n.className,o=n.color,u=void 0===o?"primary":o,d=n.edge,p=void 0!==d&&d,x=n.size,E=void 0===x?"medium":x,S=n.sx,w=(0,i.Z)(n,g),C=(0,a.Z)({},n,{color:u,edge:p,size:E}),T=function(e){var t=e.classes,n=e.edge,r=e.size,i=e.color,o=e.checked,s=e.disabled,u={root:["root",n&&"edge".concat((0,c.Z)(n)),"size".concat((0,c.Z)(r))],switchBase:["switchBase","color".concat((0,c.Z)(i)),o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=(0,l.Z)(u,h.H,t);return(0,a.Z)({},t,d)}(C),A=(0,m.jsx)(b,{className:T.thumb,ownerState:C});return(0,m.jsxs)(v,{className:(0,s.Z)(T.root,r),sx:S,ownerState:C,children:[(0,m.jsx)(y,(0,a.Z)({type:"checkbox",icon:A,checkedIcon:A,ref:t,ownerState:C},w,{classes:(0,a.Z)({},T,{root:T.switchBase})})),(0,m.jsx)(_,{className:T.track,ownerState:C})]})}));t.Z=x},11105:function(e,t,n){"use strict";n.d(t,{H:function(){return i}});var r=n(32298);function i(e){return(0,r.Z)("MuiSwitch",e)}var a=(0,n(77430).Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);t.Z=a},67881:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(87462),i=n(63366),a=n(47313),o=n(83061),s=n(21921),l=n(33362),u=n(64164),c=n(11236),d=n(22449),f=n(31731),p=n(42318),h=n(91294),m=n(10383),g=n(48569),v=n(88905),y=n(32298);function _(e){return(0,y.Z)("MuiTextField",e)}(0,n(77430).Z)("MuiTextField",["root"]);var b=n(46417),x=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],E={standard:d.Z,filled:f.Z,outlined:p.Z},S=(0,u.ZP)(m.Z,{name:"MuiTextField",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),w=a.forwardRef((function(e,t){var n=(0,c.Z)({props:e,name:"MuiTextField"}),a=n.autoComplete,u=n.autoFocus,d=void 0!==u&&u,f=n.children,p=n.className,m=n.color,y=void 0===m?"primary":m,w=n.defaultValue,C=n.disabled,T=void 0!==C&&C,A=n.error,k=void 0!==A&&A,D=n.FormHelperTextProps,O=n.fullWidth,I=void 0!==O&&O,R=n.helperText,N=n.id,M=n.InputLabelProps,P=n.inputProps,L=n.InputProps,F=n.inputRef,B=n.label,Z=n.maxRows,z=n.minRows,U=n.multiline,j=void 0!==U&&U,G=n.name,V=n.onBlur,q=n.onChange,H=n.onFocus,Y=n.placeholder,W=n.required,X=void 0!==W&&W,K=n.rows,$=n.select,Q=void 0!==$&&$,J=n.SelectProps,ee=n.type,te=n.value,ne=n.variant,re=void 0===ne?"outlined":ne,ie=(0,i.Z)(n,x),ae=(0,r.Z)({},n,{autoFocus:d,color:y,disabled:T,error:k,fullWidth:I,multiline:j,required:X,select:Q,variant:re}),oe=function(e){var t=e.classes;return(0,s.Z)({root:["root"]},_,t)}(ae);var se={};"outlined"===re&&(M&&"undefined"!==typeof M.shrink&&(se.notched=M.shrink),se.label=B),Q&&(J&&J.native||(se.id=void 0),se["aria-describedby"]=void 0);var le=(0,l.Z)(N),ue=R&&le?"".concat(le,"-helper-text"):void 0,ce=B&&le?"".concat(le,"-label"):void 0,de=E[re],fe=(0,b.jsx)(de,(0,r.Z)({"aria-describedby":ue,autoComplete:a,autoFocus:d,defaultValue:w,fullWidth:I,multiline:j,name:G,rows:K,maxRows:Z,minRows:z,type:ee,value:te,id:le,inputRef:F,onBlur:V,onChange:q,onFocus:H,placeholder:Y,inputProps:P},se,L));return(0,b.jsxs)(S,(0,r.Z)({className:(0,o.Z)(oe.root,p),disabled:T,error:k,fullWidth:I,ref:t,required:X,color:y,variant:re,ownerState:ae},ie,{children:[null!=B&&""!==B&&(0,b.jsx)(h.Z,(0,r.Z)({htmlFor:le,id:ce},M,{children:B})),Q?(0,b.jsx)(v.Z,(0,r.Z)({"aria-describedby":ue,id:le,labelId:ce,value:te,input:fe},J,{children:f})):fe,R&&(0,b.jsx)(g.Z,(0,r.Z)({id:ue},D,{children:R}))]}))}))},70800:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(4942),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(11236),c=n(64164),d=n(32298);function f(e){return(0,d.Z)("MuiToolbar",e)}(0,n(77430).Z)("MuiToolbar",["root","gutters","regular","dense"]);var p=n(46417),h=["className","component","disableGutters","variant"],m=(0,c.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({position:"relative",display:"flex",alignItems:"center"},!n.disableGutters&&(0,r.Z)({paddingLeft:t.spacing(2),paddingRight:t.spacing(2)},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}),"dense"===n.variant&&{minHeight:48})}),(function(e){var t=e.theme;return"regular"===e.ownerState.variant&&t.mixins.toolbar})),g=o.forwardRef((function(e,t){var n=(0,u.Z)({props:e,name:"MuiToolbar"}),r=n.className,o=n.component,c=void 0===o?"div":o,d=n.disableGutters,g=void 0!==d&&d,v=n.variant,y=void 0===v?"regular":v,_=(0,i.Z)(n,h),b=(0,a.Z)({},n,{component:c,disableGutters:g,variant:y}),x=function(e){var t=e.classes,n={root:["root",!e.disableGutters&&"gutters",e.variant]};return(0,l.Z)(n,f,t)}(b);return(0,p.jsx)(m,(0,a.Z)({as:c,className:(0,s.Z)(x.root,r),ref:t,ownerState:b},_))}))},83719:function(e,t,n){"use strict";n.d(t,{Z:function(){return M}});var r=n(29439),i=n(4942),a=n(63366),o=n(87462),s=n(47313),l=n(83061),u=n(21921),c=n(53637),d=n(17551),f=n(64164),p=n(62111),h=n(11236),m=n(28170),g=n(61107),v=n(80859),y=n(56127),_=n(2995),b=n(18677),x=n(57464),E=n(56716),S=n(32298);function w(e){return(0,S.Z)("MuiTooltip",e)}var C=(0,n(77430).Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),T=n(46417),A=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"];var k=(0,f.ZP)(v.Z,{name:"MuiTooltip",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((function(e){var t,n=e.theme,r=e.ownerState,a=e.open;return(0,o.Z)({zIndex:(n.vars||n).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!a&&{pointerEvents:"none"},r.arrow&&(t={},(0,i.Z)(t,'&[data-popper-placement*="bottom"] .'.concat(C.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),(0,i.Z)(t,'&[data-popper-placement*="top"] .'.concat(C.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),(0,i.Z)(t,'&[data-popper-placement*="right"] .'.concat(C.arrow),(0,o.Z)({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}})),(0,i.Z)(t,'&[data-popper-placement*="left"] .'.concat(C.arrow),(0,o.Z)({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})),t))})),D=(0,f.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:function(e,t){var n=e.ownerState;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,m.Z)(n.placement.split("-")[0]))]]}})((function(e){var t,n,r=e.theme,a=e.ownerState;return(0,o.Z)({backgroundColor:r.vars?r.vars.palette.Tooltip.bg:(0,d.Fq)(r.palette.grey[700],.92),borderRadius:(r.vars||r).shape.borderRadius,color:(r.vars||r).palette.common.white,fontFamily:r.typography.fontFamily,padding:"4px 8px",fontSize:r.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:r.typography.fontWeightMedium},a.arrow&&{position:"relative",margin:0},a.touch&&{padding:"8px 16px",fontSize:r.typography.pxToRem(14),lineHeight:"".concat((n=16/14,Math.round(1e5*n)/1e5),"em"),fontWeight:r.typography.fontWeightRegular},(t={},(0,i.Z)(t,".".concat(C.popper,'[data-popper-placement*="left"] &'),(0,o.Z)({transformOrigin:"right center"},a.isRtl?(0,o.Z)({marginLeft:"14px"},a.touch&&{marginLeft:"24px"}):(0,o.Z)({marginRight:"14px"},a.touch&&{marginRight:"24px"}))),(0,i.Z)(t,".".concat(C.popper,'[data-popper-placement*="right"] &'),(0,o.Z)({transformOrigin:"left center"},a.isRtl?(0,o.Z)({marginRight:"14px"},a.touch&&{marginRight:"24px"}):(0,o.Z)({marginLeft:"14px"},a.touch&&{marginLeft:"24px"}))),(0,i.Z)(t,".".concat(C.popper,'[data-popper-placement*="top"] &'),(0,o.Z)({transformOrigin:"center bottom",marginBottom:"14px"},a.touch&&{marginBottom:"24px"})),(0,i.Z)(t,".".concat(C.popper,'[data-popper-placement*="bottom"] &'),(0,o.Z)({transformOrigin:"center top",marginTop:"14px"},a.touch&&{marginTop:"24px"})),t))})),O=(0,f.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:function(e,t){return t.arrow}})((function(e){var t=e.theme;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,d.Fq)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),I=!1,R=null;function N(e,t){return function(n){t&&t(n),e(n)}}var M=s.forwardRef((function(e,t){var n,i,d,f,S,C,M=(0,h.Z)({props:e,name:"MuiTooltip"}),P=M.arrow,L=void 0!==P&&P,F=M.children,B=M.components,Z=void 0===B?{}:B,z=M.componentsProps,U=void 0===z?{}:z,j=M.describeChild,G=void 0!==j&&j,V=M.disableFocusListener,q=void 0!==V&&V,H=M.disableHoverListener,Y=void 0!==H&&H,W=M.disableInteractive,X=void 0!==W&&W,K=M.disableTouchListener,$=void 0!==K&&K,Q=M.enterDelay,J=void 0===Q?100:Q,ee=M.enterNextDelay,te=void 0===ee?0:ee,ne=M.enterTouchDelay,re=void 0===ne?700:ne,ie=M.followCursor,ae=void 0!==ie&&ie,oe=M.id,se=M.leaveDelay,le=void 0===se?0:se,ue=M.leaveTouchDelay,ce=void 0===ue?1500:ue,de=M.onClose,fe=M.onOpen,pe=M.open,he=M.placement,me=void 0===he?"bottom":he,ge=M.PopperComponent,ve=M.PopperProps,ye=void 0===ve?{}:ve,_e=M.title,be=M.TransitionComponent,xe=void 0===be?g.Z:be,Ee=M.TransitionProps,Se=(0,a.Z)(M,A),we=(0,p.Z)(),Ce="rtl"===we.direction,Te=s.useState(),Ae=(0,r.Z)(Te,2),ke=Ae[0],De=Ae[1],Oe=s.useState(null),Ie=(0,r.Z)(Oe,2),Re=Ie[0],Ne=Ie[1],Me=s.useRef(!1),Pe=X||ae,Le=s.useRef(),Fe=s.useRef(),Be=s.useRef(),Ze=s.useRef(),ze=(0,E.Z)({controlled:pe,default:!1,name:"Tooltip",state:"open"}),Ue=(0,r.Z)(ze,2),je=Ue[0],Ge=Ue[1],Ve=je,qe=(0,b.Z)(oe),He=s.useRef(),Ye=s.useCallback((function(){void 0!==He.current&&(document.body.style.WebkitUserSelect=He.current,He.current=void 0),clearTimeout(Ze.current)}),[]);s.useEffect((function(){return function(){clearTimeout(Le.current),clearTimeout(Fe.current),clearTimeout(Be.current),Ye()}}),[Ye]);var We=function(e){clearTimeout(R),I=!0,Ge(!0),fe&&!Ve&&fe(e)},Xe=(0,y.Z)((function(e){clearTimeout(R),R=setTimeout((function(){I=!1}),800+le),Ge(!1),de&&Ve&&de(e),clearTimeout(Le.current),Le.current=setTimeout((function(){Me.current=!1}),we.transitions.duration.shortest)})),Ke=function(e){Me.current&&"touchstart"!==e.type||(ke&&ke.removeAttribute("title"),clearTimeout(Fe.current),clearTimeout(Be.current),J||I&&te?Fe.current=setTimeout((function(){We(e)}),I?te:J):We(e))},$e=function(e){clearTimeout(Fe.current),clearTimeout(Be.current),Be.current=setTimeout((function(){Xe(e)}),le)},Qe=(0,x.Z)(),Je=Qe.isFocusVisibleRef,et=Qe.onBlur,tt=Qe.onFocus,nt=Qe.ref,rt=s.useState(!1),it=(0,r.Z)(rt,2)[1],at=function(e){et(e),!1===Je.current&&(it(!1),$e(e))},ot=function(e){ke||De(e.currentTarget),tt(e),!0===Je.current&&(it(!0),Ke(e))},st=function(e){Me.current=!0;var t=F.props;t.onTouchStart&&t.onTouchStart(e)},lt=Ke,ut=$e;s.useEffect((function(){if(Ve)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Xe(e)}}),[Xe,Ve]);var ct=(0,_.Z)(F.ref,nt,De,t);"number"===typeof _e||_e||(Ve=!1);var dt=s.useRef({x:0,y:0}),ft=s.useRef(),pt={},ht="string"===typeof _e;G?(pt.title=Ve||!ht||Y?null:_e,pt["aria-describedby"]=Ve?qe:null):(pt["aria-label"]=ht?_e:null,pt["aria-labelledby"]=Ve&&!ht?qe:null);var mt=(0,o.Z)({},pt,Se,F.props,{className:(0,l.Z)(Se.className,F.props.className),onTouchStart:st,ref:ct},ae?{onMouseMove:function(e){var t=F.props;t.onMouseMove&&t.onMouseMove(e),dt.current={x:e.clientX,y:e.clientY},ft.current&&ft.current.update()}}:{});var gt={};$||(mt.onTouchStart=function(e){st(e),clearTimeout(Be.current),clearTimeout(Le.current),Ye(),He.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ze.current=setTimeout((function(){document.body.style.WebkitUserSelect=He.current,Ke(e)}),re)},mt.onTouchEnd=function(e){F.props.onTouchEnd&&F.props.onTouchEnd(e),Ye(),clearTimeout(Be.current),Be.current=setTimeout((function(){Xe(e)}),ce)}),Y||(mt.onMouseOver=N(lt,mt.onMouseOver),mt.onMouseLeave=N(ut,mt.onMouseLeave),Pe||(gt.onMouseOver=lt,gt.onMouseLeave=ut)),q||(mt.onFocus=N(ot,mt.onFocus),mt.onBlur=N(at,mt.onBlur),Pe||(gt.onFocus=ot,gt.onBlur=at));var vt=s.useMemo((function(){var e,t=[{name:"arrow",enabled:Boolean(Re),options:{element:Re,padding:4}}];return null!=(e=ye.popperOptions)&&e.modifiers&&(t=t.concat(ye.popperOptions.modifiers)),(0,o.Z)({},ye.popperOptions,{modifiers:t})}),[Re,ye]),yt=(0,o.Z)({},M,{isRtl:Ce,arrow:L,disableInteractive:Pe,placement:me,PopperComponentProp:ge,touch:Me.current}),_t=function(e){var t=e.classes,n=e.disableInteractive,r=e.arrow,i=e.touch,a=e.placement,o={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch","tooltipPlacement".concat((0,m.Z)(a.split("-")[0]))],arrow:["arrow"]};return(0,u.Z)(o,w,t)}(yt),bt=null!=(n=Z.Popper)?n:k,xt=null!=(i=null!=(d=Z.Transition)?d:xe)?i:g.Z,Et=null!=(f=Z.Tooltip)?f:D,St=null!=(S=Z.Arrow)?S:O,wt=(0,c.Z)(bt,(0,o.Z)({},ye,U.popper),yt),Ct=(0,c.Z)(xt,(0,o.Z)({},Ee,U.transition),yt),Tt=(0,c.Z)(Et,(0,o.Z)({},U.tooltip),yt),At=(0,c.Z)(St,(0,o.Z)({},U.arrow),yt);return(0,T.jsxs)(s.Fragment,{children:[s.cloneElement(F,mt),(0,T.jsx)(bt,(0,o.Z)({as:null!=ge?ge:v.Z,placement:me,anchorEl:ae?{getBoundingClientRect:function(){return{top:dt.current.y,left:dt.current.x,right:dt.current.x,bottom:dt.current.y,width:0,height:0}}}:ke,popperRef:ft,open:!!ke&&Ve,id:qe,transition:!0},gt,wt,{className:(0,l.Z)(_t.popper,null==ye?void 0:ye.className,null==(C=U.popper)?void 0:C.className),popperOptions:vt,children:function(e){var t,n,r=e.TransitionProps;return(0,T.jsx)(xt,(0,o.Z)({timeout:we.transitions.duration.shorter},r,Ct,{children:(0,T.jsxs)(Et,(0,o.Z)({},Tt,{className:(0,l.Z)(_t.tooltip,null==(t=U.tooltip)?void 0:t.className),children:[_e,L?(0,T.jsx)(St,(0,o.Z)({},At,{className:(0,l.Z)(_t.arrow,null==(n=U.arrow)?void 0:n.className),ref:Ne})):null]}))}))}}))]})}))},42669:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(63366),i=n(87462),a=n(47313),o=n(83061),s=n(39028),l=n(21921),u=n(64164),c=n(11236),d=n(28170),f=n(32298);function p(e){return(0,f.Z)("MuiTypography",e)}(0,n(77430).Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var h=n(46417),m=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],g=(0,u.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t["align".concat((0,d.Z)(n.align))],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((function(e){var t=e.theme,n=e.ownerState;return(0,i.Z)({margin:0},n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})})),v={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},y={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_=a.forwardRef((function(e,t){var n=(0,c.Z)({props:e,name:"MuiTypography"}),a=function(e){return y[e]||e}(n.color),u=(0,s.Z)((0,i.Z)({},n,{color:a})),f=u.align,_=void 0===f?"inherit":f,b=u.className,x=u.component,E=u.gutterBottom,S=void 0!==E&&E,w=u.noWrap,C=void 0!==w&&w,T=u.paragraph,A=void 0!==T&&T,k=u.variant,D=void 0===k?"body1":k,O=u.variantMapping,I=void 0===O?v:O,R=(0,r.Z)(u,m),N=(0,i.Z)({},u,{align:_,color:a,className:b,component:x,gutterBottom:S,noWrap:C,paragraph:A,variant:D,variantMapping:I}),M=x||(A?"p":I[D]||v[D])||"span",P=function(e){var t=e.align,n=e.gutterBottom,r=e.noWrap,i=e.paragraph,a=e.variant,o=e.classes,s={root:["root",a,"inherit"!==e.align&&"align".concat((0,d.Z)(t)),n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return(0,l.Z)(s,p,o)}(N);return(0,h.jsx)(g,(0,i.Z)({as:M,ref:t,ownerState:N,className:(0,o.Z)(P.root,b)},R))}))},45359:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(29439),i=n(63366),a=n(87462),o=n(47313),s=n(83061),l=n(21921),u=n(28170),c=n(64164),d=n(56716),f=n(11736),p=n(56456),h=n(32298);function m(e){return(0,h.Z)("PrivateSwitchBase",e)}(0,n(77430).Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var g=n(46417),v=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],y=(0,c.ZP)(p.Z)((function(e){var t=e.ownerState;return(0,a.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),_=(0,c.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),b=o.forwardRef((function(e,t){var n=e.autoFocus,o=e.checked,c=e.checkedIcon,p=e.className,h=e.defaultChecked,b=e.disabled,x=e.disableFocusRipple,E=void 0!==x&&x,S=e.edge,w=void 0!==S&&S,C=e.icon,T=e.id,A=e.inputProps,k=e.inputRef,D=e.name,O=e.onBlur,I=e.onChange,R=e.onFocus,N=e.readOnly,M=e.required,P=e.tabIndex,L=e.type,F=e.value,B=(0,i.Z)(e,v),Z=(0,d.Z)({controlled:o,default:Boolean(h),name:"SwitchBase",state:"checked"}),z=(0,r.Z)(Z,2),U=z[0],j=z[1],G=(0,f.Z)(),V=b;G&&"undefined"===typeof V&&(V=G.disabled);var q="checkbox"===L||"radio"===L,H=(0,a.Z)({},e,{checked:U,disabled:V,disableFocusRipple:E,edge:w}),Y=function(e){var t=e.classes,n=e.checked,r=e.disabled,i=e.edge,a={root:["root",n&&"checked",r&&"disabled",i&&"edge".concat((0,u.Z)(i))],input:["input"]};return(0,l.Z)(a,m,t)}(H);return(0,g.jsxs)(y,(0,a.Z)({component:"span",className:(0,s.Z)(Y.root,p),centerRipple:!0,focusRipple:!E,disabled:V,tabIndex:null,role:void 0,onFocus:function(e){R&&R(e),G&&G.onFocus&&G.onFocus(e)},onBlur:function(e){O&&O(e),G&&G.onBlur&&G.onBlur(e)},ownerState:H,ref:t},B,{children:[(0,g.jsx)(_,(0,a.Z)({autoFocus:n,checked:o,defaultChecked:h,className:Y.input,disabled:V,id:q&&T,name:D,onChange:function(e){if(!e.nativeEvent.defaultPrevented){var t=e.target.checked;j(t),I&&I(e,t)}},readOnly:N,ref:k,required:M,ownerState:H,tabIndex:P,type:L},"checkbox"===L&&void 0===F?{}:{value:F},A)),U?c:C]}))}))},99437:function(e,t,n){"use strict";n(47313);var r=n(46095),i=n(46417);t.Z=(0,r.Z)((0,i.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},81886:function(e,t,n){"use strict";n(47313);var r=n(46095),i=n(46417);t.Z=(0,r.Z)((0,i.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},49494:function(e,t,n){"use strict";n.d(t,{Z:function(){return M}});var r=n(87462),i=n(63366),a=n(77219),o=n(13019),s=n(9456),l=n(4942);function u(e,t){var n;return(0,r.Z)({toolbar:(n={minHeight:56},(0,l.Z)(n,e.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),(0,l.Z)(n,e.up("sm"),{minHeight:64}),n)},t)}var c=n(17551),d={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},v={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},_=["mode","contrastThreshold","tonalOffset"],b={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function E(e,t,n,r){var i=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,c.$n)(e.main,i):"dark"===t&&(e.dark=(0,c._j)(e.main,a)))}function S(e){var t=e.mode,n=void 0===t?"light":t,s=e.contrastThreshold,l=void 0===s?3:s,u=e.tonalOffset,S=void 0===u?.2:u,w=(0,i.Z)(e,_),C=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(n),T=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(n),A=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[500],light:h[300],dark:h[700]}:{main:h[700],light:h[400],dark:h[800]}}(n),k=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(n),D=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[400],light:y[300],dark:y[700]}:{main:y[800],light:y[500],dark:y[900]}}(n),O=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(n);function I(e){return(0,c.mi)(e,x.text.primary)>=l?x.text.primary:b.text.primary}var R=function(e){var t=e.color,n=e.name,i=e.mainShade,o=void 0===i?500:i,s=e.lightShade,l=void 0===s?300:s,u=e.darkShade,c=void 0===u?700:u;if(!(t=(0,r.Z)({},t)).main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error((0,a.Z)(11,n?" (".concat(n,")"):"",o));if("string"!==typeof t.main)throw new Error((0,a.Z)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return E(t,"light",l,S),E(t,"dark",c,S),t.contrastText||(t.contrastText=I(t.main)),t},N={dark:x,light:b};return(0,o.Z)((0,r.Z)({common:(0,r.Z)({},d),mode:n,primary:R({color:C,name:"primary"}),secondary:R({color:T,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:R({color:A,name:"error"}),warning:R({color:O,name:"warning"}),info:R({color:k,name:"info"}),success:R({color:D,name:"success"}),grey:f,contrastThreshold:l,getContrastText:I,augmentColor:R,tonalOffset:S},N[n]),w)}var w=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var C={textTransform:"uppercase"},T='"Roboto", "Helvetica", "Arial", sans-serif';function A(e,t){var n="function"===typeof t?t(e):t,a=n.fontFamily,s=void 0===a?T:a,l=n.fontSize,u=void 0===l?14:l,c=n.fontWeightLight,d=void 0===c?300:c,f=n.fontWeightRegular,p=void 0===f?400:f,h=n.fontWeightMedium,m=void 0===h?500:h,g=n.fontWeightBold,v=void 0===g?700:g,y=n.htmlFontSize,_=void 0===y?16:y,b=n.allVariants,x=n.pxToRem,E=(0,i.Z)(n,w);var S=u/14,A=x||function(e){return"".concat(e/_*S,"rem")},k=function(e,t,n,i,a){return(0,r.Z)({fontFamily:s,fontWeight:e,fontSize:A(t),lineHeight:n},s===T?{letterSpacing:"".concat((o=i/t,Math.round(1e5*o)/1e5),"em")}:{},a,b);var o},D={h1:k(d,96,1.167,-1.5),h2:k(d,60,1.2,-.5),h3:k(p,48,1.167,0),h4:k(p,34,1.235,.25),h5:k(p,24,1.334,0),h6:k(m,20,1.6,.15),subtitle1:k(p,16,1.75,.15),subtitle2:k(m,14,1.57,.1),body1:k(p,16,1.5,.15),body2:k(p,14,1.43,.15),button:k(m,14,1.75,.4,C),caption:k(p,12,1.66,.4),overline:k(p,12,2.66,1,C)};return(0,o.Z)((0,r.Z)({htmlFontSize:_,pxToRem:A,fontFamily:s,fontSize:u,fontWeightLight:d,fontWeightRegular:p,fontWeightMedium:m,fontWeightBold:v},D),E,{clone:!1})}function k(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var D=["none",k(0,2,1,-1,0,1,1,0,0,1,3,0),k(0,3,1,-2,0,2,2,0,0,1,5,0),k(0,3,3,-2,0,3,4,0,0,1,8,0),k(0,2,4,-1,0,4,5,0,0,1,10,0),k(0,3,5,-1,0,5,8,0,0,1,14,0),k(0,3,5,-1,0,6,10,0,0,1,18,0),k(0,4,5,-2,0,7,10,1,0,2,16,1),k(0,5,5,-3,0,8,10,1,0,3,14,2),k(0,5,6,-3,0,9,12,1,0,3,16,2),k(0,6,6,-3,0,10,14,1,0,4,18,3),k(0,6,7,-4,0,11,15,1,0,4,20,3),k(0,7,8,-4,0,12,17,2,0,5,22,4),k(0,7,8,-4,0,13,19,2,0,5,24,4),k(0,7,9,-4,0,14,21,2,0,5,26,4),k(0,8,9,-5,0,15,22,2,0,6,28,5),k(0,8,10,-5,0,16,24,2,0,6,30,5),k(0,8,11,-5,0,17,26,2,0,6,32,5),k(0,9,11,-5,0,18,28,2,0,7,34,6),k(0,9,12,-6,0,19,29,2,0,7,36,6),k(0,10,13,-6,0,20,31,3,0,8,38,7),k(0,10,13,-6,0,21,33,3,0,8,40,7),k(0,10,14,-6,0,22,35,3,0,8,42,7),k(0,11,14,-7,0,23,36,3,0,9,44,8),k(0,11,15,-7,0,24,38,3,0,9,46,8)],O=n(83019),I={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},R=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,l=e.palette,c=void 0===l?{}:l,d=e.transitions,f=void 0===d?{}:d,p=e.typography,h=void 0===p?{}:p,m=(0,i.Z)(e,R);if(e.vars)throw new Error((0,a.Z)(18));var g=S(c),v=(0,s.Z)(e),y=(0,o.Z)(v,{mixins:u(v.breakpoints,n),palette:g,shadows:D.slice(),typography:A(g,h),transitions:(0,O.ZP)(f),zIndex:(0,r.Z)({},I)});y=(0,o.Z)(y,m);for(var _=arguments.length,b=new Array(_>1?_-1:0),x=1;x<_;x++)b[x-1]=arguments[x];return y=b.reduce((function(e,t){return(0,o.Z)(e,t)}),y)}var M=N},83019:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},x9:function(){return s}});var r=n(63366),i=n(87462),a=["duration","easing","delay"],o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return"".concat(Math.round(e),"ms")}function u(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}function c(e){var t=(0,i.Z)({},o,e.easing),n=(0,i.Z)({},s,e.duration);return(0,i.Z)({getAutoHeightDuration:u,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.duration,s=void 0===o?n.standard:o,u=i.easing,c=void 0===u?t.easeInOut:u,d=i.delay,f=void 0===d?0:d;(0,r.Z)(i,a);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:l(s)," ").concat(c," ").concat("string"===typeof f?f:l(f))})).join(",")}},e,{easing:t,duration:n})}},63566:function(e,t,n){"use strict";var r=(0,n(49494).Z)();t.Z=r},64164:function(e,t,n){"use strict";n.d(t,{Dz:function(){return o},FO:function(){return a}});var r=n(36541),i=n(63566),a=function(e){return(0,r.x9)(e)&&"classes"!==e},o=r.x9,s=(0,r.ZP)({defaultTheme:i.Z,rootShouldForwardProp:a});t.ZP=s},62111:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(47313);var r=n(86728),i=n(63566);function a(){return(0,r.Z)(i.Z)}},11236:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(14614),i=n(63566);function a(e){var t=e.props,n=e.name;return(0,r.Z)({props:t,name:n,defaultTheme:i.Z})}},68999:function(e,t,n){"use strict";n.d(t,{C:function(){return i},n:function(){return r}});var r=function(e){return e.scrollTop};function i(e,t){var n,r,i=e.timeout,a=e.easing,o=e.style,s=void 0===o?{}:o;return{duration:null!=(n=s.transitionDuration)?n:"number"===typeof i?i:i[t.mode]||0,easing:null!=(r=s.transitionTimingFunction)?r:"object"===typeof a?a[t.mode]:a,delay:s.transitionDelay}}},79359:function(e,t,n){"use strict";var r;n.d(t,{Z:function(){return f}});var i=n(29439),a=n(47313),o=n(14976),s=n(24290),l=n(49926);function u(e,t,n,r,o){var s="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,u=a.useState((function(){return o&&s?n(e).matches:r?r(e).matches:t})),c=(0,i.Z)(u,2),d=c[0],f=c[1];return(0,l.Z)((function(){var t=!0;if(s){var r=n(e),i=function(){t&&f(r.matches)};return i(),r.addListener(i),function(){t=!1,r.removeListener(i)}}}),[e,n,s]),d}var c=(r||(r=n.t(a,2))).useSyncExternalStore;function d(e,t,n,r){var o=a.useCallback((function(){return t}),[t]),s=a.useMemo((function(){if(null!==r){var t=r(e).matches;return function(){return t}}return o}),[o,e,r]),l=a.useMemo((function(){if(null===n)return[o,function(){return function(){}}];var t=n(e);return[function(){return t.matches},function(e){return t.addListener(e),function(){t.removeListener(e)}}]}),[o,n,e]),u=(0,i.Z)(l,2),d=u[0],f=u[1];return c(f,d,s)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,o.Z)(),r="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,i=(0,s.Z)({name:"MuiUseMediaQuery",props:t,theme:n}),a=i.defaultMatches,l=void 0!==a&&a,f=i.matchMedia,p=void 0===f?r?window.matchMedia:null:f,h=i.ssrMatchMedia,m=void 0===h?null:h,g=i.noSsr;var v="function"===typeof e?e(n):e;v=v.replace(/^@media( ?)/m,"");var y=void 0!==c?d:u,_=y(v,l,p,m,g);return _}},28170:function(e,t,n){"use strict";var r=n(50114);t.Z=r.Z},46095:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(87462),i=n(47313),a=n(85541),o=n(46417);function s(e,t){var n=function(n,i){return(0,o.jsx)(a.Z,(0,r.Z)({"data-testid":"".concat(t,"Icon"),ref:i},n,{children:e}))};return n.muiName=a.Z.muiName,i.memo(i.forwardRef(n))}},39492:function(e,t,n){"use strict";var r=n(34312);t.Z=r.Z},41340:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(47313);var i=function(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},66182:function(e,t,n){"use strict";var r=n(49081);t.Z=r.Z},20897:function(e,t,n){"use strict";var r=n(93282);t.Z=r.Z},83183:function(e,t,n){"use strict";var r=n(43066);t.Z=function(e){return!e||!(0,r.Z)(e)}},56716:function(e,t,n){"use strict";var r=n(10782);t.Z=r.Z},49926:function(e,t,n){"use strict";var r=n(2678);t.Z=r.Z},56127:function(e,t,n){"use strict";var r=n(42780);t.Z=r.Z},2995:function(e,t,n){"use strict";var r=n(47472);t.Z=r.Z},18677:function(e,t,n){"use strict";var r=n(33362);t.Z=r.Z},57464:function(e,t,n){"use strict";var r=n(95669);t.Z=r.Z},15693:function(e,t,n){"use strict";var r=n(47313).createContext(null);t.Z=r},20201:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(47313),i=n(15693);function a(){return r.useContext(i.Z)}},84472:function(e,t,n){"use strict";n.d(t,{ZP:function(){return b},Co:function(){return x}});var r=n(47313),i=n(87462),a=n(91816),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,a.Z)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(16132),u=n(54911),c=n(21086),d=n(85696),f=s,p=function(e){return"theme"!==e},h=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?f:p},m=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,u.hC)(t,n,r);(0,d.L)((function(){return(0,u.My)(t,n,r)}));return null},v=function e(t,n){var a,o,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(a=n.label,o=n.target);var f=m(t,n,s),p=f||h(d),v=!p("as");return function(){var y=arguments,_=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&_.push("label:"+a+";"),null==y[0]||void 0===y[0].raw)_.push.apply(_,y);else{0,_.push(y[0][0]);for(var b=y.length,x=1;x0&&void 0!==arguments[0]?arguments[0]:{},n=null==(e=t.keys)?void 0:e.reduce((function(e,n){return e[t.up(n)]={},e}),{});return n||{}}function l(e,t){return e.reduce((function(e,t){var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function u(e){for(var t=s(e),n=arguments.length,i=new Array(n>1?n-1:0),a=1;a1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function a(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(a(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));var i,s=e.substring(t+1,e.length-1);if("color"===n){if(i=(s=s.split(" ")).shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,r.Z)(10,i))}else s=s.split(",");return{type:n,values:s=s.map((function(e){return parseFloat(e)})),colorSpace:i}}function s(e){var t=e.type,n=e.colorSpace,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function l(e){var t="hsl"===(e=o(e)).type||"hsla"===e.type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-a*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),s({type:u,values:c})}(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){var n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,s(e)}function d(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function f(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return s(e)}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return l(e)>.5?d(e,t):f(e,t)}},36541:function(e,t,n){"use strict";n.d(t,{ZP:function(){return w},x9:function(){return E}});var r=n(93433),i=n(29439),a=n(63366),o=n(87462),s=n(84472),l=n(9456),u=n(50114),c=["variant"];function d(e){return 0===e.length}function f(e){var t=e.variant,n=(0,a.Z)(e,c),r=t||"";return Object.keys(n).sort().forEach((function(t){r+="color"===t?d(r)?e[t]:(0,u.Z)(e[t]):"".concat(d(r)?t:(0,u.Z)(t)).concat((0,u.Z)(e[t].toString()))})),r}var p=n(63649),h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],m=["theme"],g=["theme"];function v(e){return 0===Object.keys(e).length}function y(e){return"string"===typeof e&&e.charCodeAt(0)>96}var _=function(e,t){return t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null},b=function(e,t){var n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);var r={};return n.forEach((function(e){var t=f(e.props);r[t]=e.style})),r},x=function(e,t,n,r){var i,a,o=e.ownerState,s=void 0===o?{}:o,l=[],u=null==n||null==(i=n.components)||null==(a=i[r])?void 0:a.variants;return u&&u.forEach((function(n){var r=!0;Object.keys(n.props).forEach((function(t){s[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&l.push(t[f(n.props)])})),l};function E(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var S=(0,l.Z)();function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=void 0===t?S:t,l=e.rootShouldForwardProp,u=void 0===l?E:l,c=e.slotShouldForwardProp,d=void 0===c?E:c,f=e.styleFunctionSx,w=void 0===f?p.Z:f,C=function(e){var t=v(e.theme)?n:e.theme;return w((0,o.Z)({},e,{theme:t}))};return C.__mui_systemSx=!0,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.Co)(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var l,c=t.name,f=t.slot,p=t.skipVariantsResolver,S=t.skipSx,w=t.overridesResolver,T=(0,a.Z)(t,h),A=void 0!==p?p:f&&"Root"!==f||!1,k=S||!1;var D=E;"Root"===f?D=u:f?D=d:y(e)&&(D=void 0);var O=(0,s.ZP)(e,(0,o.Z)({shouldForwardProp:D,label:l},T)),I=function(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),l=1;l0){var p=new Array(f).fill("");(d=[].concat((0,r.Z)(e),(0,r.Z)(p))).raw=[].concat((0,r.Z)(e.raw),(0,r.Z)(p))}else"function"===typeof e&&e.__emotion_real!==e&&(d=function(t){var r=t.theme,i=(0,a.Z)(t,g);return e((0,o.Z)({theme:v(r)?n:r},i))});var h=O.apply(void 0,[d].concat((0,r.Z)(u)));return h};return O.withConfig&&(I.withConfig=O.withConfig),I}}},9456:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(87462),i=n(63366),a=n(13019),o=n(4942),s=["values","unit","step"];function l(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,a=e.unit,l=void 0===a?"px":a,u=e.step,c=void 0===u?5:u,d=(0,i.Z)(e,s),f=function(e){var t=Object.keys(e).map((function(t){return{key:t,val:e[t]}}))||[];return t.sort((function(e,t){return e.val-t.val})),t.reduce((function(e,t){return(0,r.Z)({},e,(0,o.Z)({},t.key,t.val))}),{})}(n),p=Object.keys(f);function h(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(l,")")}function m(e){var t="number"===typeof n[e]?n[e]:e;return"@media (max-width:".concat(t-c/100).concat(l,")")}function g(e,t){var r=p.indexOf(t);return"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(l,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[p[r]]?n[p[r]]:t)-c/100).concat(l,")")}return(0,r.Z)({keys:p,values:f,up:h,down:m,between:g,only:function(e){return p.indexOf(e)+10&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,c.hB)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,o=e.palette,s=void 0===o?{}:o,c=e.spacing,p=e.shape,h=void 0===p?{}:p,m=(0,i.Z)(e,f),g=l(n),v=d(c),y=(0,a.Z)({breakpoints:g,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},s),spacing:v,shape:(0,r.Z)({},u,h)},m),_=arguments.length,b=new Array(_>1?_-1:0),x=1;x<_;x++)b[x-1]=arguments[x];return y=b.reduce((function(e,t){return(0,a.Z)(e,t)}),y)}},43103:function(e,t,n){"use strict";n.d(t,{Gc:function(){return X},G$:function(){return W}});var r=n(46428),i=n(77330);var a=function(){for(var e=arguments.length,t=new Array(e),n=0;n2){if(!u[e])return[e];e=u[e]}var t=e.split(""),n=(0,r.Z)(t,2),i=n[0],a=n[1],o=s[i],c=l[a]||"";return Array.isArray(c)?c.map((function(e){return o+e})):[o+c]})),d=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[].concat(d,f);function h(e,t,n,r){var i,o=null!=(i=(0,a.D)(e,t,!1))?i:n;return"number"===typeof o?function(e){return"string"===typeof e?e:o*e}:Array.isArray(o)?function(e){return"string"===typeof e?e:o[e]}:"function"===typeof o?o:function(){}}function m(e){return h(e,"spacing",8)}function g(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function v(e,t,n,r){if(-1===t.indexOf(n))return null;var a=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=g(t,n),e}),{})}}(c(n),r),o=e[n];return(0,i.k9)(e,o,a)}function y(e,t){var n=m(e.theme);return Object.keys(e).map((function(r){return v(e,t,r,n)})).reduce(o.Z,{})}function _(e){return y(e,d)}function b(e){return y(e,f)}function x(e){return y(e,p)}_.propTypes={},_.filterProps=d,b.propTypes={},b.filterProps=f,x.propTypes={},x.filterProps=p;var E=x},46428:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var r=n(4942),i=n(50114),a=n(54929);function o(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=r)return r}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function s(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||i:o(e,n)||i,t&&(r=t(r)),r}t.Z=function(e){var t=e.prop,n=e.cssProperty,l=void 0===n?e.prop:n,u=e.themeKey,c=e.transform,d=function(e){if(null==e[t])return null;var n=e[t],d=o(e.theme,u)||{};return(0,a.k9)(e,n,(function(e){var n=s(d,c,e);return e===n&&"string"===typeof e&&(n=s(d,c,"".concat(t).concat("default"===e?"":(0,i.Z)(e)),e)),!1===l?n:(0,r.Z)({},l,n)}))};return d.propTypes={},d.filterProps=[t],d}},39028:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(93433),i=n(87462),a=n(63366),o=n(13019),s=n(43103),l=["sx"];function u(e){var t,n=e.sx,u=function(e){var t={systemProps:{},otherProps:{}};return Object.keys(e).forEach((function(n){s.Gc[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]})),t}((0,a.Z)(e,l)),c=u.systemProps,d=u.otherProps;return t=Array.isArray(n)?[c].concat((0,r.Z)(n)):"function"===typeof n?function(){var e=n.apply(void 0,arguments);return(0,o.P)(e)?(0,i.Z)({},c,e):c}:(0,i.Z)({},c,n),(0,i.Z)({},d,{sx:t})}},63649:function(e,t,n){"use strict";var r=n(4942),i=n(77330),a=n(43103),o=n(54929);function s(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:a.G$,t=Object.keys(e).reduce((function(t,n){return e[n].filterProps.forEach((function(r){t[r]=e[n]})),t}),{});function n(e,n,i){var a,o=(a={},(0,r.Z)(a,e,n),(0,r.Z)(a,"theme",i),a),s=t[e];return s?s(o):(0,r.Z)({},e,n)}function u(e){var a=e||{},c=a.sx,d=a.theme,f=void 0===d?{}:d;if(!c)return null;function p(e){var a=e;if("function"===typeof e)a=e(f);else if("object"!==typeof e)return e;if(!a)return null;var c=(0,o.W8)(f.breakpoints),d=Object.keys(c),p=c;return Object.keys(a).forEach((function(e){var c=l(a[e],f);if(null!==c&&void 0!==c)if("object"===typeof c)if(t[e])p=(0,i.Z)(p,n(e,c,f));else{var d=(0,o.k9)({theme:f},c,(function(t){return(0,r.Z)({},e,t)}));s(d,c)?p[e]=u({sx:c,theme:f}):p=(0,i.Z)(p,d)}else p=(0,i.Z)(p,n(e,c,f))})),(0,o.L7)(d,p)}return Array.isArray(c)?c.map(p):p(c)}return u}();u.filterProps=["sx"],t.Z=u},96694:function(e,t,n){"use strict";var r=(0,n(36541).ZP)();t.Z=r},86728:function(e,t,n){"use strict";var r=n(9456),i=n(14976),a=(0,r.Z)();t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return(0,i.Z)(e)}},24290:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(29023);function i(e){var t=e.theme,n=e.name,i=e.props;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,i):i}},14614:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(24290),i=n(86728);function a(e){var t=e.props,n=e.name,a=e.defaultTheme,o=(0,i.Z)(a);return(0,r.Z)({theme:o,name:n,props:t})}},14976:function(e,t,n){"use strict";var r=n(20201);function i(e){return 0===Object.keys(e).length}t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=(0,r.Z)();return!t||i(t)?e:t}},41271:function(e,t){"use strict";var n=function(e){return e},r=function(){var e=n;return{configure:function(t){e=t},generate:function(t){return e(t)},reset:function(){e=n}}}();t.Z=r},50114:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(77219);function i(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},21921:function(e,t,n){"use strict";function r(e,t,n){var r={};return Object.keys(e).forEach((function(i){r[i]=e[i].reduce((function(e,r){return r&&(e.push(t(r)),n&&n[r]&&e.push(n[r])),e}),[]).join(" ")})),r}n.d(t,{Z:function(){return r}})},84246:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=this,i=arguments.length,a=new Array(i),o=0;o2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?(0,r.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e&&i(e[r])?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},77219:function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n2&&void 0!==arguments[2]?arguments[2]:"Mui",a=i[t];return a?"".concat(n,"-").concat(a):"".concat(r.Z.generate(e),"-").concat(t)}},77430:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(32298);function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",i={};return t.forEach((function(t){i[t]=(0,r.Z)(e,t,n)})),i}},11194:function(e,t,n){"use strict";function r(e){var t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}n.d(t,{Z:function(){return r}})},49081:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},93282:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(49081);function i(e){return(0,r.Z)(e).defaultView||window}},29023:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(87462);function i(e,t){var n=(0,r.Z)({},t);return Object.keys(e).forEach((function(t){void 0===n[t]&&(n[t]=e[t])})),n}},89265:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},10782:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(29439),i=n(47313);function a(e){var t=e.controlled,n=e.default,a=(e.name,e.state,i.useRef(void 0!==t).current),o=i.useState(n),s=(0,r.Z)(o,2),l=s[0],u=s[1];return[a?t:l,i.useCallback((function(e){a||u(e)}),[])]}},2678:function(e,t,n){"use strict";var r=n(47313),i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;t.Z=i},42780:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(47313),i=n(2678);function a(e){var t=r.useRef(e);return(0,i.Z)((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},47472:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(47313),i=n(89265);function a(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:f(e)?2:p(e)?3:0}function l(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){return 2===s(e)?e.get(t):e[t]}function c(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e){return j&&e instanceof Map}function p(e){return G&&e instanceof Set}function h(e){return e.o||e.t}function m(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=K(e);delete t[Y];for(var n=X(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=v),Object.freeze(e),t&&o(e,(function(e,t){return g(t,!0)}),!0)),e}function v(){r(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function _(e){var t=$[e];return t||r(18,e),t}function b(e,t){$[e]||($[e]=t)}function x(){return z}function E(e,t){t&&(_("Patches"),e.u=[],e.s=[],e.v=t)}function S(e){w(e),e.p.forEach(T),e.p=null}function w(e){e===z&&(z=e.l)}function C(e){return z={p:[],l:z,h:e,m:!0,_:0}}function T(e){var t=e[Y];0===t.i||1===t.i?t.j():t.O=!0}function A(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.g||_("ES5").S(t,e,i),i?(n[Y].P&&(S(t),r(4)),a(e)&&(e=k(t,e),t.l||O(t,e)),t.u&&_("Patches").M(n[Y].t,e,t.u,t.s)):e=k(t,n,[]),S(t),t.u&&t.v(t.u,t.s),e!==q?e:void 0}function k(e,t,n){if(y(t))return t;var r=t[Y];if(!r)return o(t,(function(i,a){return D(e,r,t,i,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return O(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=m(r.k):r.o;o(3===r.i?new Set(i):i,(function(t,a){return D(e,r,i,t,a,n)})),O(e,i,!1),n&&e.u&&_("Patches").R(r,n,e.u,e.s)}return r.o}function D(e,t,n,r,o,s){if(i(o)){var u=k(e,o,s&&t&&3!==t.i&&!l(t.D,r)?s.concat(r):void 0);if(c(n,r,u),!i(u))return;e.m=!1}if(a(o)&&!y(o)){if(!e.h.F&&e._<1)return;k(e,o),t&&t.A.l||O(e,o)}}function O(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&g(t,n)}function I(e,t){var n=e[Y];return(n?h(n):e)[t]}function R(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function N(e){e.P||(e.P=!0,e.l&&N(e.l))}function M(e){e.o||(e.o=m(e.t))}function P(e,t,n){var r=f(t)?_("MapSet").N(t,n):p(t)?_("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:x(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,a=Q;n&&(i=[r],a=J);var o=Proxy.revocable(i,a),s=o.revoke,l=o.proxy;return r.k=l,r.j=s,l}(t,n):_("ES5").J(t,n);return(n?n.A:x()).p.push(r),r}function L(e){return i(e)||r(22,e),function e(t){if(!a(t))return t;var n,r=t[Y],i=s(t);if(r){if(!r.P&&(r.i<4||!_("ES5").K(r)))return r.t;r.I=!0,n=F(t,i),r.I=!1}else n=F(t,i);return o(n,(function(t,i){r&&u(r.t,t)===i||c(n,t,e(i))})),3===i?new Set(n):n}(e)}function F(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return m(e)}function B(){function e(e,t){var n=a[e];return n?n.enumerable=t:a[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[Y];return Q.get(t,e)},set:function(t){var n=this[Y];Q.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][Y];if(!i.P)switch(i.i){case 5:r(i)&&N(i);break;case 4:n(i)&&N(i)}}}function n(e){for(var t=e.t,n=e.k,r=X(n),i=r.length-1;i>=0;i--){var a=r[i];if(a!==Y){var o=t[a];if(void 0===o&&!l(t,a))return!0;var s=n[a],u=s&&s[Y];if(u?u.t!==o:!d(s,o))return!0}}var c=!!t[Y];return r.length!==X(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r1?r-1:0),a=1;a1?r-1:0),a=1;a=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var a=_("Patches").$;return i(e)?a(e,t):this.produce(e,(function(e){return a(e,t)}))},e}(),te=new ee,ne=te.produce,re=(te.produceWithPatches.bind(te),te.setAutoFreeze.bind(te),te.setUseProxies.bind(te),te.applyPatches.bind(te),te.createDraft.bind(te),te.finishDraft.bind(te),ne),ie=n(9038);function ae(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"===typeof i?i(n,r,e):t(i)}}}}var oe=ae();oe.withExtraArgument=ae;var se=oe,le=(n(7490),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ue=function(e,t){for(var n=0,r=t.length,i=e.length;n=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function y(e,t,n,i){void 0===i&&(i={});var a=i,o=a.window,s=void 0===o?document.defaultView:o,l=a.v5Compat,u=void 0!==l&&l,c=s.history,d=r.Pop,p=null;function g(){d=r.Pop,p&&p({action:d,location:v.location})}var v={get action(){return d},get location(){return e(s,c)},listen:function(e){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(f,g),p=e,function(){s.removeEventListener(f,g),p=null}},createHref:function(e){return t(s,e)},push:function(e,t){d=r.Push;var i=m(v.location,e,t);n&&n(i,e);var a=h(i),o=v.createHref(i);try{c.pushState(a,"",o)}catch(l){s.location.assign(o)}u&&p&&p({action:d,location:i})},replace:function(e,t){d=r.Replace;var i=m(v.location,e,t);n&&n(i,e);var a=h(i),o=v.createHref(i);c.replaceState(a,"",o),u&&p&&p({action:d,location:i})},go:function(e){return c.go(e)}};return v}function _(e,t,n){void 0===n&&(n="/");var r=T(("string"===typeof t?v(t):t).pathname||"/",n);if(null==r)return null;var i=b(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(i);for(var a=null,o=0;null==a&&o0&&(A(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+o+'".'),b(e.children,t,s,o)),(null!=e.path||e.index)&&t.push({path:o,score:S(o,e.index),routesMeta:s})})),t}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(d||(d={}));var x=/^:\w+$/,E=function(e){return"*"===e};function S(e,t){var n=e.split("/"),r=n.length;return n.some(E)&&(r+=-2),t&&(r+=2),n.filter((function(e){return!E(e)})).reduce((function(e,t){return e+(x.test(t)?3:""===t?1:10)}),r)}function w(e,t){for(var n=e.routesMeta,r={},i="/",a=[],o=0;o and the router will parse it for you.'}function O(e,t,n,r){var i;void 0===r&&(r=!1),"string"===typeof e?i=v(e):(A(!(i=c({},e)).pathname||!i.pathname.includes("?"),D("?","pathname","search",i)),A(!i.pathname||!i.pathname.includes("#"),D("#","pathname","hash",i)),A(!i.search||!i.search.includes("#"),D("#","search","hash",i)));var a,o=""===e||""===i.pathname,s=o?"/":i.pathname;if(r||null==s)a=n;else{var l=t.length-1;if(s.startsWith("..")){for(var u=s.split("/");".."===u[0];)u.shift(),l-=1;i.pathname=u.join("/")}a=l>=0?t[l]:"/"}var d=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?v(e):e,r=n.pathname,i=n.search,a=void 0===i?"":i,o=n.hash,s=void 0===o?"":o,l=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:l,search:N(a),hash:M(s)}}(i,a),f=s&&"/"!==s&&s.endsWith("/"),p=(o||"."===s)&&n.endsWith("/");return d.pathname.endsWith("/")||!f&&!p||(d.pathname+="/"),d}var I=function(e){return e.join("/").replace(/\/\/+/g,"/")},R=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},N=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},M=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},P=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}((0,l.Z)(Error));var L=(0,i.Z)((function e(t,n,r){(0,a.Z)(this,e),this.status=t,this.statusText=n||"",this.data=r}));function F(e){return e instanceof L}},7910:function(e,t,n){"use strict";var r;function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n>16,o=n>>8&255,s=255&n;return"#"+(16777216+65536*(Math.round((r-a)*i)+a)+256*(Math.round((r-o)*i)+o)+(Math.round((r-s)*i)+s)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,n){return e.isColorHex(n)?this.shadeHexColor(t,n):this.shadeRGBColor(t,n)}}],[{key:"bind",value:function(e,t){return function(){return e.apply(t,arguments)}}},{key:"isObject",value:function(e){return e&&"object"===o(e)&&!Array.isArray(e)&&null!=e}},{key:"is",value:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}},{key:"listToArray",value:function(e){var t,n=[];for(t=0;tt.length?e:t}))),e.length>t.length?e:t}),0)}},{key:"hexToRgba",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==e.substring(0,1)&&(e="#999999");var n=e.replace("#","");n=n.match(new RegExp("(.{"+n.length/3+"})","g"));for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"x",n=e.toString().slice();return n.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(e){return e<0?0:e}},{key:"moveIndexInArray",value:function(e,t,n){if(n>=e.length)for(var r=n-e.length+1;r--;)e.push(void 0);return e.splice(n,0,e.splice(t,1)[0]),e}},{key:"extractNumber",value:function(e){return parseFloat(e.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}},{key:"setELstyles",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e.style.key=t[n])}},{key:"isNumber",value:function(e){return!isNaN(e)&&parseFloat(Number(e))===e&&!isNaN(parseInt(e,10))}},{key:"isFloat",value:function(e){return Number(e)===e&&e%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(-1!==window.navigator.userAgent.indexOf("MSIE")||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var r=e.indexOf("Edge/");return r>0&&parseInt(e.substring(r+5,e.indexOf(".",r)),10)}}]),e}(),b=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.setEasingFunctions()}return u(e,[{key:"setEasingFunctions",value:function(){var e;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":e="-";break;case"easein":e="<";break;case"easeout":e=">";break;case"easeinout":default:e="<>";break;case"swing":e=function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1};break;case"bounce":e=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375};break;case"elastic":e=function(e){return e===!!e?e:Math.pow(2,-10*e)*Math.sin((e-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=e}}},{key:"animateLine",value:function(e,t,n,r){e.attr(t).animate(r).attr(n)}},{key:"animateMarker",value:function(e,t,n,r,i,a){t||(t=0),e.attr({r:t,width:t,height:t}).animate(r,i).attr({r:n,width:n.width,height:n.height}).afterAll((function(){a()}))}},{key:"animateCircle",value:function(e,t,n,r,i){e.attr({r:t.r,cx:t.cx,cy:t.cy}).animate(r,i).attr({r:n.r,cx:n.cx,cy:n.cy})}},{key:"animateRect",value:function(e,t,n,r,i){e.attr(t).animate(r).attr(n).afterAll((function(){return i()}))}},{key:"animatePathsGradually",value:function(e){var t=e.el,n=e.realIndex,r=e.j,i=e.fill,a=e.pathFrom,o=e.pathTo,s=e.speed,l=e.delay,u=this.w,c=0;u.config.chart.animations.animateGradually.enabled&&(c=u.config.chart.animations.animateGradually.delay),u.config.chart.animations.dynamicAnimation.enabled&&u.globals.dataChanged&&"bar"!==u.config.chart.type&&(c=0),this.morphSVG(t,n,r,"line"!==u.config.chart.type||u.globals.comboCharts?i:"stroke",a,o,s,l*c)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach((function(e){e.el.classList.remove("apexcharts-element-hidden")}))}},{key:"animationCompleted",value:function(e){var t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof t.config.chart.events.animationEnd&&t.config.chart.events.animationEnd(this.ctx,{el:e,w:t}))}},{key:"morphSVG",value:function(e,t,n,r,i,a,o,s){var l=this,u=this.w;i||(i=e.attr("pathFrom")),a||(a=e.attr("pathTo"));var c=function(e){return"radar"===u.config.chart.type&&(o=1),"M 0 ".concat(u.globals.gridHeight)};(!i||i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i=c()),(!a||a.indexOf("undefined")>-1||a.indexOf("NaN")>-1)&&(a=c()),u.globals.shouldAnimate||(o=1),e.plot(i).animate(1,u.globals.easing,s).plot(i).animate(o,u.globals.easing,s).plot(a).afterAll((function(){_.isNumber(n)?n===u.globals.series[u.globals.maxValsInArrayIndex].length-2&&u.globals.shouldAnimate&&l.animationCompleted(e):"none"!==r&&u.globals.shouldAnimate&&(!u.globals.comboCharts&&t===u.globals.series.length-1||u.globals.comboCharts)&&l.animationCompleted(e),l.showDelayedElements()}))}}]),e}(),x=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return u(e,[{key:"getDefaultFilter",value:function(e,t){var n=this.w;e.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==n.config.states.normal.filter?this.applyFilter(e,t,n.config.states.normal.filter.type,n.config.states.normal.filter.value):n.config.chart.dropShadow.enabled&&this.dropShadow(e,n.config.chart.dropShadow,t)}},{key:"addNormalFilter",value:function(e,t){var n=this.w;n.config.chart.dropShadow.enabled&&!e.node.classList.contains("apexcharts-marker")&&this.dropShadow(e,n.config.chart.dropShadow,t)}},{key:"addLightenFilter",value:function(e,t,n){var r=this,i=this.w,a=n.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter((function(e){var n=i.config.chart.dropShadow;(n.enabled?r.addShadow(e,t,n):e).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:a}})})),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"addDarkenFilter",value:function(e,t,n){var r=this,i=this.w,a=n.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter((function(e){var n=i.config.chart.dropShadow;(n.enabled?r.addShadow(e,t,n):e).componentTransfer({rgb:{type:"linear",slope:a}})})),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"applyFilter",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(n){case"none":this.addNormalFilter(e,t);break;case"lighten":this.addLightenFilter(e,t,{intensity:r});break;case"darken":this.addDarkenFilter(e,t,{intensity:r})}}},{key:"addShadow",value:function(e,t,n){var r=n.blur,i=n.top,a=n.left,o=n.color,s=n.opacity,l=e.flood(Array.isArray(o)?o[t]:o,s).composite(e.sourceAlpha,"in").offset(a,i).gaussianBlur(r).merge(e.source);return e.blend(e.source,l)}},{key:"dropShadow",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=t.top,i=t.left,a=t.blur,o=t.color,s=t.opacity,l=t.noUserSpaceOnUse,u=this.w;return e.unfilter(!0),_.isIE()&&"radialBar"===u.config.chart.type||(o=Array.isArray(o)?o[n]:o,e.filter((function(e){var t;t=_.isSafari()||_.isFirefox()||_.isIE()?e.flood(o,s).composite(e.sourceAlpha,"in").offset(i,r).gaussianBlur(a):e.flood(o,s).composite(e.sourceAlpha,"in").offset(i,r).gaussianBlur(a).merge(e.source),e.blend(e.source,t)})),l||e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)),e}},{key:"setSelectionFilter",value:function(e,t,n){var r=this.w;if(void 0!==r.globals.selectedDataPoints[t]&&r.globals.selectedDataPoints[t].indexOf(n)>-1){e.node.setAttribute("selected",!0);var i=r.config.states.active.filter;"none"!==i&&this.applyFilter(e,t,i.type,i.value)}}},{key:"_scaleFilterSize",value:function(e){!function(t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),e}(),E=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return u(e,[{key:"drawLine",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"butt",l=this.w,u=l.globals.dom.Paper.line().attr({x1:e,y1:t,x2:n,y2:r,stroke:i,"stroke-dasharray":a,"stroke-width":o,"stroke-linecap":s});return u}},{key:"drawRect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,c=this.w,d=c.globals.dom.Paper.rect();return d.attr({x:e,y:t,width:n>0?n:0,height:r>0?r:0,rx:i,ry:i,opacity:o,"stroke-width":null!==s?s:0,stroke:null!==l?l:"none","stroke-dasharray":u}),d.node.setAttribute("fill",a),d}},{key:"drawPolygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none",i=this.w,a=i.globals.dom.Paper.polygon(e).attr({fill:r,stroke:t,"stroke-width":n});return a}},{key:"drawCircle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.w;e<0&&(e=0);var r=n.globals.dom.Paper.circle(2*e);return null!==t&&r.attr(t),r}},{key:"drawPath",value:function(e){var t=e.d,n=void 0===t?"":t,r=e.stroke,i=void 0===r?"#a8a8a8":r,a=e.strokeWidth,o=void 0===a?1:a,s=e.fill,l=e.fillOpacity,u=void 0===l?1:l,c=e.strokeOpacity,d=void 0===c?1:c,f=e.classes,p=e.strokeLinecap,h=void 0===p?null:p,m=e.strokeDashArray,g=void 0===m?0:m,v=this.w;return null===h&&(h=v.config.stroke.lineCap),(n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n="M 0 ".concat(v.globals.gridHeight)),v.globals.dom.Paper.path(n).attr({fill:s,"fill-opacity":u,stroke:i,"stroke-opacity":d,"stroke-linecap":h,"stroke-width":o,"stroke-dasharray":g,class:f})}},{key:"group",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w,n=t.globals.dom.Paper.group();return null!==e&&n.attr(e),n}},{key:"move",value:function(e,t){return["M",e,t].join(" ")}},{key:"line",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=null;return null===n?r=["L",e,t].join(" "):"H"===n?r=["H",e].join(" "):"V"===n&&(r=["V",t].join(" ")),r}},{key:"curve",value:function(e,t,n,r,i,a){return["C",e,t,n,r,i,a].join(" ")}},{key:"quadraticCurve",value:function(e,t,n,r){return["Q",e,t,n,r].join(" ")}},{key:"arc",value:function(e,t,n,r,i,a,o){var s=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l="A";s&&(l="a");var u=[l,e,t,n,r,i,a,o].join(" ");return u}},{key:"renderPaths",value:function(e){var t,n=e.j,r=e.realIndex,i=e.pathFrom,o=e.pathTo,s=e.stroke,l=e.strokeWidth,u=e.strokeLinecap,c=e.fill,d=e.animationDelay,f=e.initialSpeed,p=e.dataChangeSpeed,h=e.className,m=e.shouldClipToGrid,g=void 0===m||m,v=e.bindEventsOnPaths,y=void 0===v||v,_=e.drawShadow,E=void 0===_||_,S=this.w,w=new x(this.ctx),C=new b(this.ctx),T=this.w.config.chart.animations.enabled,A=T&&this.w.config.chart.animations.dynamicAnimation.enabled,k=!!(T&&!S.globals.resized||A&&S.globals.dataChanged&&S.globals.shouldAnimate);k?t=i:(t=o,S.globals.animationEnded=!0);var D,O=S.config.stroke.dashArray;D=Array.isArray(O)?O[r]:S.config.stroke.dashArray;var I=this.drawPath({d:t,stroke:s,strokeWidth:l,fill:c,fillOpacity:1,classes:h,strokeLinecap:u,strokeDashArray:D});if(I.attr("index",r),g&&I.attr({"clip-path":"url(#gridRectMask".concat(S.globals.cuid,")")}),"none"!==S.config.states.normal.filter.type)w.getDefaultFilter(I,r);else if(S.config.chart.dropShadow.enabled&&E&&(!S.config.chart.dropShadow.enabledOnSeries||S.config.chart.dropShadow.enabledOnSeries&&-1!==S.config.chart.dropShadow.enabledOnSeries.indexOf(r))){var R=S.config.chart.dropShadow;w.dropShadow(I,R,r)}y&&(I.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,I)),I.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,I)),I.node.addEventListener("mousedown",this.pathMouseDown.bind(this,I))),I.attr({pathTo:o,pathFrom:i});var N={el:I,j:n,realIndex:r,pathFrom:i,pathTo:o,fill:c,strokeWidth:l,delay:d};return!T||S.globals.resized||S.globals.dataChanged?!S.globals.resized&&S.globals.dataChanged||C.showDelayedElements():C.animatePathsGradually(a(a({},N),{},{speed:f})),S.globals.dataChanged&&A&&k&&C.animatePathsGradually(a(a({},N),{},{speed:p})),I}},{key:"drawPattern",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=this.w,o=a.globals.dom.Paper.pattern(t,n,(function(a){"horizontalLines"===e?a.line(0,0,n,0).stroke({color:r,width:i+1}):"verticalLines"===e?a.line(0,0,0,t).stroke({color:r,width:i+1}):"slantedLines"===e?a.line(0,0,t,n).stroke({color:r,width:i}):"squares"===e?a.rect(t,n).fill("none").stroke({color:r,width:i}):"circles"===e&&a.circle(t).fill("none").stroke({color:r,width:i})}));return o}},{key:"drawGradient",value:function(e,t,n,r,i){var a,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,c=this.w;t.length<9&&0===t.indexOf("#")&&(t=_.hexToRgba(t,r)),n.length<9&&0===n.indexOf("#")&&(n=_.hexToRgba(n,i));var d=0,f=1,p=1,h=null;null!==s&&(d=void 0!==s[0]?s[0]/100:0,f=void 0!==s[1]?s[1]/100:1,p=void 0!==s[2]?s[2]/100:1,h=void 0!==s[3]?s[3]/100:null);var m=!("donut"!==c.config.chart.type&&"pie"!==c.config.chart.type&&"polarArea"!==c.config.chart.type&&"bubble"!==c.config.chart.type);if(a=null===l||0===l.length?c.globals.dom.Paper.gradient(m?"radial":"linear",(function(e){e.at(d,t,r),e.at(f,n,i),e.at(p,n,i),null!==h&&e.at(h,t,r)})):c.globals.dom.Paper.gradient(m?"radial":"linear",(function(e){(Array.isArray(l[u])?l[u]:l).forEach((function(t){e.at(t.offset/100,t.color,t.opacity)}))})),m){var g=c.globals.gridWidth/2,v=c.globals.gridHeight/2;"bubble"!==c.config.chart.type?a.attr({gradientUnits:"userSpaceOnUse",cx:g,cy:v,r:o}):a.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===e?a.from(0,0).to(0,1):"diagonal"===e?a.from(0,0).to(1,1):"horizontal"===e?a.from(0,1).to(1,1):"diagonal2"===e&&a.from(1,0).to(0,1);return a}},{key:"getTextBasedOnMaxWidth",value:function(e){var t=e.text,n=e.maxWidth,r=e.fontSize,i=e.fontFamily,a=this.getTextRects(t,r,i),o=a.width/t.length,s=Math.floor(n/o);return n-1){var s=n.globals.selectedDataPoints[i].indexOf(a);n.globals.selectedDataPoints[i].splice(s,1)}}else{if(!n.config.states.active.allowMultipleDataPointsSelection&&n.globals.selectedDataPoints.length>0){n.globals.selectedDataPoints=[];var l=n.globals.dom.Paper.select(".apexcharts-series path").members,u=n.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,c=function(e){Array.prototype.forEach.call(e,(function(e){e.node.setAttribute("selected","false"),r.getDefaultFilter(e,i)}))};c(l),c(u)}e.node.setAttribute("selected","true"),o="true",void 0===n.globals.selectedDataPoints[i]&&(n.globals.selectedDataPoints[i]=[]),n.globals.selectedDataPoints[i].push(a)}if("true"===o){var d=n.config.states.active.filter;if("none"!==d)r.applyFilter(e,i,d.type,d.value);else if("none"!==n.config.states.hover.filter&&!n.globals.isTouchDevice){var f=n.config.states.hover.filter;r.applyFilter(e,i,f.type,f.value)}}else"none"!==n.config.states.active.filter.type&&("none"===n.config.states.hover.filter.type||n.globals.isTouchDevice?r.getDefaultFilter(e,i):(f=n.config.states.hover.filter,r.applyFilter(e,i,f.type,f.value)));"function"==typeof n.config.chart.events.dataPointSelection&&n.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:n.globals.selectedDataPoints,seriesIndex:i,dataPointIndex:a,w:n}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:n.globals.selectedDataPoints,seriesIndex:i,dataPointIndex:a,w:n}])}},{key:"rotateAroundCenter",value:function(e){var t={};return e&&"function"==typeof e.getBBox&&(t=e.getBBox()),{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(e,t,n,r){var i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=this.w,o=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:n,foreColor:"#fff",opacity:0});r&&o.attr("transform",r),a.globals.dom.Paper.add(o);var s=o.bbox();return i||(s=o.node.getBoundingClientRect()),o.remove(),{width:s.width,height:s.height}}},{key:"placeTextWithEllipsis",value:function(e,t,n){if("function"==typeof e.getComputedTextLength&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=n/1.1)){for(var r=t.length-3;r>0;r-=3)if(e.getSubStringLength(0,r)<=n/1.1)return void(e.textContent=t.substring(0,r)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])}}]),e}(),S=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return u(e,[{key:"getStackedSeriesTotals",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.w,n=[];if(0===t.globals.series.length)return n;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:null;return null===e?this.w.config.series.reduce((function(e,t){return e+t}),0):this.w.globals.series[e].reduce((function(e,t){return e+t}),0)}},{key:"isSeriesNull",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===e?this.w.config.series.filter((function(e){return null!==e})):this.w.config.series[e].data.filter((function(e){return null!==e}))).length}},{key:"seriesHaveSameValues",value:function(e){return this.w.globals.series[e].every((function(e,t,n){return e===n[0]}))}},{key:"getCategoryLabels",value:function(e){var t=this.w,n=e.slice();return t.config.xaxis.convertedCatToNumeric&&(n=e.map((function(e,n){return t.config.xaxis.labels.formatter(e-t.globals.minX+1)}))),n}},{key:"getLargestSeries",value:function(){var e=this.w;e.globals.maxValsInArrayIndex=e.globals.series.map((function(e){return e.length})).indexOf(Math.max.apply(Math,e.globals.series.map((function(e){return e.length}))))}},{key:"getLargestMarkerSize",value:function(){var e=this.w,t=0;return e.globals.markers.size.forEach((function(e){t=Math.max(t,e)})),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach((function(e){t=Math.max(t,e.size)})),t>0&&(t+=e.config.markers.hover.sizeOffset+1),e.globals.markers.largestSize=t,t}},{key:"getSeriesTotals",value:function(){var e=this.w;e.globals.seriesTotals=e.globals.series.map((function(e,t){var n=0;if(Array.isArray(e))for(var r=0;re&&n.globals.seriesX[i][o]0&&(t=!0),{comboBarCount:n,comboCharts:t}}},{key:"extendArrayProps",value:function(e,t,n){return t.yaxis&&(t=e.extendYAxis(t,n)),t.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),t.annotations.xaxis&&(t=e.extendXAxisAnnotations(t)),t.annotations.points&&(t=e.extendPointAnnotations(t))),t}}]),e}(),w=function(){function e(t){s(this,e),this.w=t.w,this.annoCtx=t}return u(e,[{key:"setOrientations",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.w;if("vertical"===e.label.orientation){var r=null!==t?t:0,i=n.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(r,"']"));if(null!==i){var a=i.getBoundingClientRect();i.setAttribute("x",parseFloat(i.getAttribute("x"))-a.height+4),"top"===e.label.position?i.setAttribute("y",parseFloat(i.getAttribute("y"))+a.width):i.setAttribute("y",parseFloat(i.getAttribute("y"))-a.width);var o=this.annoCtx.graphics.rotateAroundCenter(i),s=o.x,l=o.y;i.setAttribute("transform","rotate(-90 ".concat(s," ").concat(l,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var n=this.w;if(!e||void 0===t.label.text||void 0!==t.label.text&&!String(t.label.text).trim())return null;var r=n.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),i=e.getBoundingClientRect(),a=t.label.style.padding.left,o=t.label.style.padding.right,s=t.label.style.padding.top,l=t.label.style.padding.bottom;"vertical"===t.label.orientation&&(s=t.label.style.padding.left,l=t.label.style.padding.right,a=t.label.style.padding.top,o=t.label.style.padding.bottom);var u=i.left-r.left-a,c=i.top-r.top-s,d=this.annoCtx.graphics.drawRect(u-n.globals.barPadForNumericAxis,c,i.width+a+o,i.height+s+l,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&d.node.classList.add(t.id),d}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,n=function(n,r,i){var a=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(i,"-annotations .apexcharts-").concat(i,"-annotation-label[rel='").concat(r,"']"));if(a){var o=a.parentNode,s=e.addBackgroundToAnno(a,n);s&&(o.insertBefore(s.node,a),n.label.mouseEnter&&s.node.addEventListener("mouseenter",n.label.mouseEnter.bind(e,n)),n.label.mouseLeave&&s.node.addEventListener("mouseleave",n.label.mouseLeave.bind(e,n)),n.label.click&&s.node.addEventListener("click",n.label.click.bind(e,n)))}};t.config.annotations.xaxis.map((function(e,t){n(e,t,"xaxis")})),t.config.annotations.yaxis.map((function(e,t){n(e,t,"yaxis")})),t.config.annotations.points.map((function(e,t){n(e,t,"point")}))}},{key:"getY1Y2",value:function(e,t){var n,r="y1"===e?t.y:t.y2,i=this.w;if(this.annoCtx.invertAxis){var a=i.globals.labels.indexOf(r);i.config.xaxis.convertedCatToNumeric&&(a=i.globals.categoryLabels.indexOf(r));var o=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(a+1)+")");o&&(n=parseFloat(o.getAttribute("y")))}else{var s;s=i.config.yaxis[t.yAxisIndex].logarithmic?(r=new S(this.annoCtx.ctx).getLogVal(r,t.yAxisIndex))/i.globals.yLogRatio[t.yAxisIndex]:(r-i.globals.minYArr[t.yAxisIndex])/(i.globals.yRange[t.yAxisIndex]/i.globals.gridHeight),n=i.globals.gridHeight-s,!t.marker||void 0!==t.y&&null!==t.y||(n=0),i.config.yaxis[t.yAxisIndex]&&i.config.yaxis[t.yAxisIndex].reversed&&(n=s)}return n}},{key:"getX1X2",value:function(e,t){var n=this.w,r=this.annoCtx.invertAxis?n.globals.minY:n.globals.minX,i=this.annoCtx.invertAxis?n.globals.maxY:n.globals.maxX,a=this.annoCtx.invertAxis?n.globals.yRange[0]:n.globals.xRange,o=(t.x-r)/(a/n.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(o=(i-t.x)/(a/n.globals.gridWidth)),"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||n.globals.dataFormatXNumeric||(o=this.getStringX(t.x));var s=(t.x2-r)/(a/n.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(s=(i-t.x2)/(a/n.globals.gridWidth)),"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||n.globals.dataFormatXNumeric||(s=this.getStringX(t.x2)),void 0!==t.x&&null!==t.x||!t.marker||(o=n.globals.gridWidth),"x1"===e?o:s}},{key:"getStringX",value:function(e){var t=this.w,n=e;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(e=t.globals.categoryLabels.indexOf(e)+1);var r=t.globals.labels.indexOf(e),i=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(r+1)+")");return i&&(n=parseFloat(i.getAttribute("x"))),n}}]),e}(),C=function(){function e(t){s(this,e),this.w=t.w,this.annoCtx=t,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new w(this.annoCtx)}return u(e,[{key:"addXaxisAnnotation",value:function(e,t,n){var r,i=this.w,a=this.helpers.getX1X2("x1",e),o=e.label.text,s=e.strokeDashArray;if(_.isNumber(a)){if(null===e.x2||void 0===e.x2){var l=this.annoCtx.graphics.drawLine(a+e.offsetX,0+e.offsetY,a+e.offsetX,i.globals.gridHeight+e.offsetY,e.borderColor,s,e.borderWidth);t.appendChild(l.node),e.id&&l.node.classList.add(e.id)}else{if((r=this.helpers.getX1X2("x2",e))o){var u=o;o=r,r=u}var c=this.annoCtx.graphics.drawRect(0+e.offsetX,r+e.offsetY,this._getYAxisAnnotationWidth(e),o-r,0,e.fillColor,e.opacity,1,e.borderColor,a);c.node.classList.add("apexcharts-annotation-rect"),c.attr("clip-path","url(#gridRectMask".concat(i.globals.cuid,")")),t.appendChild(c.node),e.id&&c.node.classList.add(e.id)}var d="right"===e.label.position?i.globals.gridWidth:0,f=this.annoCtx.graphics.drawText({x:d+e.label.offsetX,y:(null!=r?r:o)+e.label.offsetY-3,text:s,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});f.attr({rel:n}),t.appendChild(f.node)}},{key:"_getYAxisAnnotationWidth",value:function(e){var t=this.w;return t.globals.gridWidth,(e.width.indexOf("%")>-1?t.globals.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10))+e.offsetX}},{key:"drawYAxisAnnotations",value:function(){var e=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.map((function(t,r){e.addYaxisAnnotation(t,n.node,r)})),n}}]),e}(),A=function(){function e(t){s(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new w(this.annoCtx)}return u(e,[{key:"addPointAnnotation",value:function(e,t,n){this.w;var r=this.helpers.getX1X2("x1",e),i=this.helpers.getY1Y2("y1",e);if(_.isNumber(r)){var a={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radius,class:"apexcharts-point-annotation-marker ".concat(e.marker.cssClass," ").concat(e.id?e.id:"")},o=this.annoCtx.graphics.drawMarker(r+e.marker.offsetX,i+e.marker.offsetY,a);t.appendChild(o.node);var s=e.label.text?e.label.text:"",l=this.annoCtx.graphics.drawText({x:r+e.label.offsetX,y:i+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:s,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});if(l.attr({rel:n}),t.appendChild(l.node),e.customSVG.SVG){var u=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});u.attr({transform:"translate(".concat(r+e.customSVG.offsetX,", ").concat(i+e.customSVG.offsetY,")")}),u.node.innerHTML=e.customSVG.SVG,t.appendChild(u.node)}if(e.image.path){var c=e.image.width?e.image.width:20,d=e.image.height?e.image.height:20;o=this.annoCtx.addImage({x:r+e.image.offsetX-c/2,y:i+e.image.offsetY-d/2,width:c,height:d,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&o.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&o.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&o.node.addEventListener("click",e.click.bind(this,e))}}},{key:"drawPointAnnotations",value:function(){var e=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map((function(t,r){e.addPointAnnotation(t,n.node,r)})),n}}]),e}(),k={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},D=function(){function e(){s(this,e),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return u(e,[{key:"init",value:function(){return{annotations:{position:"front",yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[k],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0},stacked:!1,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(e){return new Date(e).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,rangeBarOverlap:!0,rangeBarGroupRows:!1,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(e){return e}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(e){return e+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce((function(e,t){return e+t}),0)/e.globals.series.length+"%"}}}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(e){return e}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(e){return e}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce((function(e,t){return e+t}),0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(e){return null!==e?e:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(e){return e?e+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),e}(),O=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.graphics=new E(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new w(this),this.xAxisAnnotations=new C(this),this.yAxisAnnotations=new T(this),this.pointsAnnotations=new A(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return u(e,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),n=this.xAxisAnnotations.drawXAxisAnnotations(),r=this.pointsAnnotations.drawPointAnnotations(),i=e.config.chart.animations.enabled,a=[t,n,r],o=[n.node,t.node,r.node],s=0;s<3;s++)e.globals.dom.elGraphical.add(a[s]),!i||e.globals.resized||e.globals.dataChanged||"scatter"!==e.config.chart.type&&"bubble"!==e.config.chart.type&&e.globals.dataPoints>1&&o[s].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:o[s],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var e=this;this.w.config.annotations.images.map((function(t,n){e.addImage(t,n)}))}},{key:"drawTextAnnos",value:function(){var e=this;this.w.config.annotations.texts.map((function(t,n){e.addText(t,n)}))}},{key:"addXaxisAnnotation",value:function(e,t,n){this.xAxisAnnotations.addXaxisAnnotation(e,t,n)}},{key:"addYaxisAnnotation",value:function(e,t,n){this.yAxisAnnotations.addYaxisAnnotation(e,t,n)}},{key:"addPointAnnotation",value:function(e,t,n){this.pointsAnnotations.addPointAnnotation(e,t,n)}},{key:"addText",value:function(e,t){var n=e.x,r=e.y,i=e.text,a=e.textAnchor,o=e.foreColor,s=e.fontSize,l=e.fontFamily,u=e.fontWeight,c=e.cssClass,d=e.backgroundColor,f=e.borderWidth,p=e.strokeDashArray,h=e.borderRadius,m=e.borderColor,g=e.appendTo,v=void 0===g?".apexcharts-annotations":g,y=e.paddingLeft,_=void 0===y?4:y,b=e.paddingRight,x=void 0===b?4:b,E=e.paddingBottom,S=void 0===E?2:E,w=e.paddingTop,C=void 0===w?2:w,T=this.w,A=this.graphics.drawText({x:n,y:r,text:i,textAnchor:a||"start",fontSize:s||"12px",fontWeight:u||"regular",fontFamily:l||T.config.chart.fontFamily,foreColor:o||T.config.chart.foreColor,cssClass:c}),k=T.globals.dom.baseEl.querySelector(v);k&&k.appendChild(A.node);var D=A.bbox();if(i){var O=this.graphics.drawRect(D.x-_,D.y-C,D.width+_+x,D.height+S+C,h,d||"transparent",1,f,m,p);k.insertBefore(O.node,A.node)}}},{key:"addImage",value:function(e,t){var n=this.w,r=e.path,i=e.x,a=void 0===i?0:i,o=e.y,s=void 0===o?0:o,l=e.width,u=void 0===l?20:l,c=e.height,d=void 0===c?20:c,f=e.appendTo,p=void 0===f?".apexcharts-annotations":f,h=n.globals.dom.Paper.image(r);h.size(u,d).move(a,s);var m=n.globals.dom.baseEl.querySelector(p);return m&&m.appendChild(h.node),h}},{key:"addXaxisAnnotationExternal",value:function(e,t,n){return this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"xaxis",contextMethod:n.addXaxisAnnotation}),n}},{key:"addYaxisAnnotationExternal",value:function(e,t,n){return this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"yaxis",contextMethod:n.addYaxisAnnotation}),n}},{key:"addPointAnnotationExternal",value:function(e,t,n){return void 0===this.invertAxis&&(this.invertAxis=n.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"point",contextMethod:n.addPointAnnotation}),n}},{key:"addAnnotationExternal",value:function(e){var t=e.params,n=e.pushToMemory,r=e.context,i=e.type,a=e.contextMethod,o=r,s=o.w,l=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(i,"-annotations")),u=l.childNodes.length+1,c=new D,d=Object.assign({},"xaxis"===i?c.xAxisAnnotation:"yaxis"===i?c.yAxisAnnotation:c.pointAnnotation),f=_.extend(d,t);switch(i){case"xaxis":this.addXaxisAnnotation(f,l,u);break;case"yaxis":this.addYaxisAnnotation(f,l,u);break;case"point":this.addPointAnnotation(f,l,u)}var p=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(i,"-annotations .apexcharts-").concat(i,"-annotation-label[rel='").concat(u,"']")),h=this.helpers.addBackgroundToAnno(p,f);return h&&l.insertBefore(h.node,p),n&&s.globals.memory.methodsToExec.push({context:o,id:f.id?f.id:_.randomId(),method:a,label:"addAnnotation",params:t}),r}},{key:"clearAnnotations",value:function(e){var t=e.w,n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");t.globals.memory.methodsToExec.map((function(e,n){"addText"!==e.label&&"addAnnotation"!==e.label||t.globals.memory.methodsToExec.splice(n,1)})),n=_.listToArray(n),Array.prototype.forEach.call(n,(function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}))}},{key:"removeAnnotation",value:function(e,t){var n=e.w,r=n.globals.dom.baseEl.querySelectorAll(".".concat(t));r&&(n.globals.memory.methodsToExec.map((function(e,r){e.id===t&&n.globals.memory.methodsToExec.splice(r,1)})),Array.prototype.forEach.call(r,(function(e){e.parentElement.removeChild(e)})))}}]),e}(),I=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return u(e,[{key:"isValidDate",value:function(e){return!isNaN(this.parseDate(e))}},{key:"getTimeStamp",value:function(e){return Date.parse(e)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime():e}},{key:"getDate",value:function(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}},{key:"parseDate",value:function(e){var t=Date.parse(e);if(!isNaN(t))return this.getTimeStamp(e);var n=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(n)}},{key:"parseDateWithTimezone",value:function(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(e,t){var n=this.w.globals.locale,r=this.w.config.xaxis.labels.datetimeUTC,i=["\0"].concat(g(n.months)),a=["\x01"].concat(g(n.shortMonths)),o=["\x02"].concat(g(n.days)),s=["\x03"].concat(g(n.shortDays));function l(e,t){var n=e+"";for(t=t||2;n.length12?f-12:0===f?12:f;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+l(f))).replace(/(^|[^\\])H/g,"$1"+f)).replace(/(^|[^\\])hh+/g,"$1"+l(p))).replace(/(^|[^\\])h/g,"$1"+p);var h=r?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+l(h))).replace(/(^|[^\\])m/g,"$1"+h);var m=r?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+l(m))).replace(/(^|[^\\])s/g,"$1"+m);var v=r?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+l(v,3)),v=Math.round(v/10),t=t.replace(/(^|[^\\])ff/g,"$1"+l(v)),v=Math.round(v/10);var y=f<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+v)).replace(/(^|[^\\])TT+/g,"$1"+y)).replace(/(^|[^\\])T/g,"$1"+y.charAt(0));var _=y.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+_)).replace(/(^|[^\\])t/g,"$1"+_.charAt(0));var b=-e.getTimezoneOffset(),x=r||!b?"Z":b>0?"+":"-";if(!r){var E=(b=Math.abs(b))%60;x+=l(Math.floor(b/60))+":"+l(E)}t=t.replace(/(^|[^\\])K/g,"$1"+x);var S=(r?e.getUTCDay():e.getDay())+1;return(t=(t=(t=(t=t.replace(new RegExp(o[0],"g"),o[S])).replace(new RegExp(s[0],"g"),s[S])).replace(new RegExp(i[0],"g"),i[c])).replace(new RegExp(a[0],"g"),a[c])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,t,n){var r=this.w;void 0!==r.config.xaxis.min&&(e=r.config.xaxis.min),void 0!==r.config.xaxis.max&&(t=r.config.xaxis.max);var i=this.getDate(e),a=this.getDate(t),o=this.formatDate(i,"yyyy MM dd HH mm ss fff").split(" "),s=this.formatDate(a,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(o[6],10),maxMillisecond:parseInt(s[6],10),minSecond:parseInt(o[5],10),maxSecond:parseInt(s[5],10),minMinute:parseInt(o[4],10),maxMinute:parseInt(s[4],10),minHour:parseInt(o[3],10),maxHour:parseInt(s[3],10),minDate:parseInt(o[2],10),maxDate:parseInt(s[2],10),minMonth:parseInt(o[1],10)-1,maxMonth:parseInt(s[1],10)-1,minYear:parseInt(o[0],10),maxYear:parseInt(s[0],10)}}},{key:"isLeapYear",value:function(e){return e%4==0&&e%100!=0||e%400==0}},{key:"calculcateLastDaysOfMonth",value:function(e,t,n){return this.determineDaysOfMonths(e,t)-n}},{key:"determineDaysOfYear",value:function(e){var t=365;return this.isLeapYear(e)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(e,t,n){var r=this.daysCntOfYear[t]+n;return t>1&&this.isLeapYear()&&r++,r}},{key:"determineDaysOfMonths",value:function(e,t){var n=30;switch(e=_.monthMod(e),!0){case this.months30.indexOf(e)>-1:2===e&&(n=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:n=31}return n}}]),e}(),R=function(e){var t,n=e.ctx,r=e.seriesIndex,i=e.dataPointIndex,a=e.y1,o=e.y2,s=e.w,l=s.globals.seriesRangeStart[r][i],u=s.globals.seriesRangeEnd[r][i],c=s.globals.labels[i],d=s.config.series[r].name?s.config.series[r].name:"",f=s.config.tooltip.y.formatter,p=s.config.tooltip.y.title.formatter,h={w:s,seriesIndex:r,dataPointIndex:i,start:l,end:u};"function"==typeof p&&(d=p(d,h)),null!==(t=s.config.series[r].data[i])&&void 0!==t&&t.x&&(c=s.config.series[r].data[i].x+":"),"function"==typeof f&&(c=f(c,h)),Number.isFinite(a)&&Number.isFinite(o)&&(l=a,u=o);var m="",g="",v=s.globals.colors[r];if(void 0===s.config.tooltip.x.formatter)if("datetime"===s.config.xaxis.type){var y=new I(n);m=y.formatDate(y.getDate(l),s.config.tooltip.x.format),g=y.formatDate(y.getDate(u),s.config.tooltip.x.format)}else m=l,g=u;else m=s.config.tooltip.x.formatter(l),g=s.config.tooltip.x.formatter(u);return{start:l,end:u,startVal:m,endVal:g,ylabel:c,color:v,seriesName:d}},N=function(e){var t=e.color,n=e.seriesName,r=e.ylabel,i=e.start,a=e.end,o=e.seriesIndex,s=e.dataPointIndex,l=e.ctx.tooltip.tooltipLabels.getFormatters(o);i=l.yLbFormatter(i),a=l.yLbFormatter(a);var u=l.yLbFormatter(e.w.globals.series[o][s]),c='\n '.concat(i,'\n - \n ').concat(a,"\n ");return'
'+(n||"")+'
'+r+" "+(e.w.globals.comboCharts?"rangeArea"===e.w.config.series[o].type||"rangeBar"===e.w.config.series[o].type?c:"".concat(u,""):c)+"
"},M=function(){function e(t){s(this,e),this.opts=t}return u(e,[{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(e){return this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0,_.extend(e,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"candlestick",value:function(){var e=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var n=t.seriesIndex,r=t.dataPointIndex,i=t.w;return e._getBoxTooltip(i,n,r,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var e=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var n=t.seriesIndex,r=t.dataPointIndex,i=t.w;return e._getBoxTooltip(i,n,r,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(e,t){t.ctx;var n=t.seriesIndex,r=t.dataPointIndex,i=t.w,a=function(){var e=i.globals.seriesRangeStart[n][r];return i.globals.seriesRangeEnd[n][r]-e};return i.globals.comboCharts?"rangeBar"===i.config.series[n].type||"rangeArea"===i.config.series[n].type?a():e:a()},background:{enabled:!1},style:{colors:["#fff"]}},tooltip:{shared:!1,followCursor:!0,custom:function(e){return e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?function(e){var t=R(e),n=t.color,r=t.seriesName,i=t.ylabel,a=t.startVal,o=t.endVal;return N({color:n,seriesName:r,ylabel:i,start:a,end:o})}(e):function(e){var t=R(e),n=t.color,r=t.seriesName,i=t.ylabel,a=t.start,o=t.end;return N({color:n,seriesName:r,ylabel:i,start:a,end:o})}(e)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(e){return function(e){var t=R(e),n=t.color,r=t.seriesName,i=t.ylabel,o=t.start,s=t.end;return N(a(a({},e),{},{color:n,seriesName:r,ylabel:i,start:o,end:s}))}(e)}}}}},{key:"brush",value:function(e){return _.extend(e,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;var t=e.dataLabels.formatter;return e.yaxis.forEach((function(t,n){e.yaxis[n].min=0,e.yaxis[n].max=100})),"bar"===e.chart.type&&(e.dataLabels.formatter=t||function(e){return"number"==typeof e&&e?e.toFixed(0)+"%":e}),e}},{key:"convertCatToNumeric",value:function(e){return e.xaxis.convertedCatToNumeric=!0,e}},{key:"convertCatToNumericXaxis",value:function(e,t,n){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(e){return _.isNumber(e)?Math.floor(e):e};var r=e.xaxis.labels.formatter,i=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return n&&n.length&&(i=n.map((function(e){return Array.isArray(e)?e:String(e)}))),i&&i.length&&(e.xaxis.labels.formatter=function(e){return _.isNumber(e)?r(i[Math.floor(e)-1]):r(e)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(e){return e},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(e,t,n,r,i){var a=e.globals.seriesCandleO[t][n],o=e.globals.seriesCandleH[t][n],s=e.globals.seriesCandleM[t][n],l=e.globals.seriesCandleL[t][n],u=e.globals.seriesCandleC[t][n];return e.config.series[t].type&&e.config.series[t].type!==i?'
\n '.concat(e.config.series[t].name?e.config.series[t].name:"series-"+(t+1),": ").concat(e.globals.series[t][n],"\n
"):'
')+"
".concat(r[0],': ')+a+"
"+"
".concat(r[1],': ')+o+"
"+(s?"
".concat(r[2],': ')+s+"
":"")+"
".concat(r[3],': ')+l+"
"+"
".concat(r[4],': ')+u+"
"}}]),e}(),P=function(){function e(t){s(this,e),this.opts=t}return u(e,[{key:"init",value:function(e){var t=e.responsiveOverride,n=this.opts,r=new D,i=new M(n);this.chartType=n.chart.type,"histogram"===this.chartType&&(n.chart.type="bar",n=_.extend({plotOptions:{bar:{columnWidth:"99.99%"}}},n)),n=this.extendYAxis(n),n=this.extendAnnotations(n);var a=r.init(),s={};if(n&&"object"===o(n)){var l={};l=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","histogram","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(n.chart.type)?i[n.chart.type]():i.line(),n.chart.brush&&n.chart.brush.enabled&&(l=i.brush(l)),n.chart.stacked&&"100%"===n.chart.stackType&&(n=i.stacked100(n)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(n),n.xaxis=n.xaxis||window.Apex.xaxis||{},t||(n.xaxis.convertedCatToNumeric=!1),((n=this.checkForCatToNumericXAxis(this.chartType,l,n)).chart.sparkline&&n.chart.sparkline.enabled||window.Apex.chart&&window.Apex.chart.sparkline&&window.Apex.chart.sparkline.enabled)&&(l=i.sparkline(l)),s=_.extend(a,l)}var u=_.extend(s,window.Apex);return a=_.extend(u,n),this.handleUserInputErrors(a)}},{key:"checkForCatToNumericXAxis",value:function(e,t,n){var r=new M(n),i=("bar"===e||"boxPlot"===e)&&n.plotOptions&&n.plotOptions.bar&&n.plotOptions.bar.horizontal,a="pie"===e||"polarArea"===e||"donut"===e||"radar"===e||"radialBar"===e||"heatmap"===e,o="datetime"!==n.xaxis.type&&"numeric"!==n.xaxis.type,s=n.xaxis.tickPlacement?n.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return i||a||!o||"between"===s||(n=r.convertCatToNumeric(n)),n}},{key:"extendYAxis",value:function(e,t){var n=new D;(void 0===e.yaxis||!e.yaxis||Array.isArray(e.yaxis)&&0===e.yaxis.length)&&(e.yaxis={}),e.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(e.yaxis=_.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[_.extend(n.yAxis,e.yaxis)]:e.yaxis=_.extendArray(e.yaxis,n.yAxis);var r=!1;e.yaxis.forEach((function(e){e.logarithmic&&(r=!0)}));var i=e.series;return t&&!i&&(i=t.config.series),r&&i.length!==e.yaxis.length&&i.length&&(e.yaxis=i.map((function(t,r){if(t.name||(i[r].name="series-".concat(r+1)),e.yaxis[r])return e.yaxis[r].seriesName=i[r].name,e.yaxis[r];var a=_.extend(n.yAxis,e.yaxis[0]);return a.show=!1,a}))),r&&i.length>1&&i.length!==e.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes. Please make sure to equalize both."),e}},{key:"extendAnnotations",value:function(e){return void 0===e.annotations&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),this.extendPointAnnotations(e)}},{key:"extendYAxisAnnotations",value:function(e){var t=new D;return e.annotations.yaxis=_.extendArray(void 0!==e.annotations.yaxis?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new D;return e.annotations.xaxis=_.extendArray(void 0!==e.annotations.xaxis?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new D;return e.annotations.points=_.extendArray(void 0!==e.annotations.points?e.annotations.points:[],t.pointAnnotation),e}},{key:"checkForDarkTheme",value:function(e){e.theme&&"dark"===e.theme.mode&&(e.tooltip||(e.tooltip={}),"light"!==e.tooltip.theme&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.chart.background||(e.chart.background="#424242"),e.theme.palette||(e.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(e){var t=e;if(t.tooltip.shared&&t.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if("bar"===t.chart.type&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return"bar"!==t.chart.type&&"rangeBar"!==t.chart.type||t.tooltip.shared&&"barWidth"===t.xaxis.crosshairs.width&&t.series.length>1&&(t.xaxis.crosshairs.width="tickWidth"),"candlestick"!==t.chart.type&&"boxPlot"!==t.chart.type||t.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(t.chart.type," chart is not supported.")),t.yaxis[0].reversed=!1),t}}]),e}(),L=function(){function e(){s(this,e)}return u(e,[{key:"initGlobalVars",value:function(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRange=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.labels=[],e.hasGroups=!1,e.groups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.isXNumeric=!1,e.xaxisLabelsCount=0,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialMaxX=-Number.MAX_VALUE,e.initialMinX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0}},{key:"globalVars",value:function(e){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:e.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:"zoom"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:"pan"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.pan,selectionEnabled:"selection"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(e){var t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=_.extend({},e),t.initialSeries=_.clone(e.series),t.lastXAxis=_.clone(t.initialConfig.xaxis),t.lastYAxis=_.clone(t.initialConfig.yaxis),t}}]),e}(),F=function(){function e(t){s(this,e),this.opts=t}return u(e,[{key:"init",value:function(){var e=new P(this.opts).init({responsiveOverride:!1});return{config:e,globals:(new L).init(e)}}}]),e}(),B=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.opts=null,this.seriesIndex=0}return u(e,[{key:"clippedImgArea",value:function(e){var t=this.w,n=t.config,r=parseInt(t.globals.gridWidth,10),i=parseInt(t.globals.gridHeight,10),a=r>i?r:i,o=e.image,s=0,l=0;void 0===e.width&&void 0===e.height?void 0!==n.fill.image.width&&void 0!==n.fill.image.height?(s=n.fill.image.width+1,l=n.fill.image.height):(s=a+1,l=a):(s=e.width,l=e.height);var u=document.createElementNS(t.globals.SVGNS,"pattern");E.setAttrs(u,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:s+"px",height:l+"px"});var c=document.createElementNS(t.globals.SVGNS,"image");u.appendChild(c),c.setAttributeNS(window.SVG.xlink,"href",o),E.setAttrs(c,{x:0,y:0,preserveAspectRatio:"none",width:s+"px",height:l+"px"}),c.style.opacity=e.opacity,t.globals.dom.elDefs.node.appendChild(u)}},{key:"getSeriesIndex",value:function(e){var t=this.w;return("bar"===t.config.chart.type||"rangeBar"===t.config.chart.type)&&t.config.plotOptions.bar.distributed||"heatmap"===t.config.chart.type||"treemap"===t.config.chart.type?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(e){var t=this.w;this.opts=e;var n,r,i,a=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var o=this.getFillColors()[this.seriesIndex];void 0!==t.globals.seriesColors[this.seriesIndex]&&(o=t.globals.seriesColors[this.seriesIndex]),"function"==typeof o&&(o=o({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:t}));var s=e.fillType?e.fillType:this.getFillType(this.seriesIndex),l=Array.isArray(a.fill.opacity)?a.fill.opacity[this.seriesIndex]:a.fill.opacity;e.color&&(o=e.color);var u=o;if(-1===o.indexOf("rgb")?o.length<9&&(u=_.hexToRgba(o,l)):o.indexOf("rgba")>-1&&(l=_.getOpacityFromRGBA(o)),e.opacity&&(l=e.opacity),"pattern"===s&&(r=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:r,fillColor:o,fillOpacity:l,defaultColor:u})),"gradient"===s&&(i=this.handleGradientFill({fillConfig:e.fillConfig,fillColor:o,fillOpacity:l,i:this.seriesIndex})),"image"===s){var c=a.fill.image.src,d=e.patternID?e.patternID:"";this.clippedImgArea({opacity:l,image:Array.isArray(c)?e.seriesNumber-1&&(f=_.getOpacityFromRGBA(d));var p=void 0===a.gradient.opacityTo?n:Array.isArray(a.gradient.opacityTo)?a.gradient.opacityTo[i]:a.gradient.opacityTo;if(void 0===a.gradient.gradientToColors||0===a.gradient.gradientToColors.length)o="dark"===a.gradient.shade?u.shadeColor(-1*parseFloat(a.gradient.shadeIntensity),t.indexOf("rgb")>-1?_.rgb2hex(t):t):u.shadeColor(parseFloat(a.gradient.shadeIntensity),t.indexOf("rgb")>-1?_.rgb2hex(t):t);else if(a.gradient.gradientToColors[s.seriesNumber]){var h=a.gradient.gradientToColors[s.seriesNumber];o=h,h.indexOf("rgba")>-1&&(p=_.getOpacityFromRGBA(h))}else o=t;if(a.gradient.gradientFrom&&(d=a.gradient.gradientFrom),a.gradient.gradientTo&&(o=a.gradient.gradientTo),a.gradient.inverseColors){var m=d;d=o,o=m}return d.indexOf("rgb")>-1&&(d=_.rgb2hex(d)),o.indexOf("rgb")>-1&&(o=_.rgb2hex(o)),l.drawGradient(c,d,o,f,p,s.size,a.gradient.stops,a.gradient.colorStops,i)}}]),e}(),Z=function(){function e(t,n){s(this,e),this.ctx=t,this.w=t.w}return u(e,[{key:"setGlobalMarkerSize",value:function(){var e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length4&&void 0!==arguments[4]&&arguments[4],o=this.w,s=t,l=e,u=null,c=new E(this.ctx),d=o.config.markers.discrete&&o.config.markers.discrete.length;if((o.globals.markers.size[t]>0||a||d)&&(u=c.group({class:a||d?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(o.globals.cuid,")")),Array.isArray(l.x))for(var f=0;f0:o.config.markers.size>0;if(m||a||d){_.isNumber(l.y[f])?h+=" w".concat(_.randomId()):h="apexcharts-nullpoint";var g=this.getMarkerConfig({cssClass:h,seriesIndex:t,dataPointIndex:p});o.config.series[s].data[p]&&(o.config.series[s].data[p].fillColor&&(g.pointFillColor=o.config.series[s].data[p].fillColor),o.config.series[s].data[p].strokeColor&&(g.pointStrokeColor=o.config.series[s].data[p].strokeColor)),r&&(g.pSize=r),(i=c.drawMarker(l.x[f],l.y[f],g)).attr("rel",p),i.attr("j",p),i.attr("index",t),i.node.setAttribute("default-marker-size",g.pSize);var v=new x(this.ctx);v.setSelectionFilter(i,t,p),this.addEvents(i),u&&u.add(i)}else void 0===o.globals.pointsArray[t]&&(o.globals.pointsArray[t]=[]),o.globals.pointsArray[t].push([l.x[f],l.y[f]])}return u}},{key:"getMarkerConfig",value:function(e){var t=e.cssClass,n=e.seriesIndex,r=e.dataPointIndex,i=void 0===r?null:r,a=e.finishRadius,o=void 0===a?null:a,s=this.w,l=this.getMarkerStyle(n),u=s.globals.markers.size[n],c=s.config.markers;return null!==i&&c.discrete.length&&c.discrete.map((function(e){e.seriesIndex===n&&e.dataPointIndex===i&&(l.pointStrokeColor=e.strokeColor,l.pointFillColor=e.fillColor,u=e.size,l.pointShape=e.shape)})),{pSize:null===o?u:o,pRadius:c.radius,width:Array.isArray(c.width)?c.width[n]:c.width,height:Array.isArray(c.height)?c.height[n]:c.height,pointStrokeWidth:Array.isArray(c.strokeWidth)?c.strokeWidth[n]:c.strokeWidth,pointStrokeColor:l.pointStrokeColor,pointFillColor:l.pointFillColor,shape:l.pointShape||(Array.isArray(c.shape)?c.shape[n]:c.shape),class:t,pointStrokeOpacity:Array.isArray(c.strokeOpacity)?c.strokeOpacity[n]:c.strokeOpacity,pointStrokeDashArray:Array.isArray(c.strokeDashArray)?c.strokeDashArray[n]:c.strokeDashArray,pointFillOpacity:Array.isArray(c.fillOpacity)?c.fillOpacity[n]:c.fillOpacity,seriesIndex:n}}},{key:"addEvents",value:function(e){var t=this.w,n=new E(this.ctx);e.node.addEventListener("mouseenter",n.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",n.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",n.pathMouseDown.bind(this.ctx,e)),e.node.addEventListener("click",t.config.markers.onClick),e.node.addEventListener("dblclick",t.config.markers.onDblClick),e.node.addEventListener("touchstart",n.pathMouseDown.bind(this.ctx,e),{passive:!0})}},{key:"getMarkerStyle",value:function(e){var t=this.w,n=t.globals.markers.colors,r=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(r)?r[e]:r,pointFillColor:Array.isArray(n)?n[e]:n}}}]),e}(),z=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return u(e,[{key:"draw",value:function(e,t,n){var r=this.w,i=new E(this.ctx),a=n.realIndex,o=n.pointsPos,s=n.zRatio,l=n.elParent,u=i.group({class:"apexcharts-series-markers apexcharts-series-".concat(r.config.chart.type)});if(u.attr("clip-path","url(#gridRectMarkerMask".concat(r.globals.cuid,")")),Array.isArray(o.x))for(var c=0;cm.maxBubbleRadius&&(h=m.maxBubbleRadius)}r.config.chart.animations.enabled||(p=h);var g=o.x[c],v=o.y[c];if(p=p||0,null!==v&&void 0!==r.globals.series[a][d]||(f=!1),f){var y=this.drawPoint(g,v,p,h,a,d,t);u.add(y)}l.add(u)}}},{key:"drawPoint",value:function(e,t,n,r,i,a,o){var s=this.w,l=i,u=new b(this.ctx),c=new x(this.ctx),d=new B(this.ctx),f=new Z(this.ctx),p=new E(this.ctx),h=f.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:l,dataPointIndex:a,finishRadius:"bubble"===s.config.chart.type||s.globals.comboCharts&&s.config.series[i]&&"bubble"===s.config.series[i].type?r:null});r=h.pSize;var m,g=d.fillPath({seriesNumber:i,dataPointIndex:a,color:h.pointFillColor,patternUnits:"objectBoundingBox",value:s.globals.series[i][o]});if("circle"===h.shape?m=p.drawCircle(n):"square"!==h.shape&&"rect"!==h.shape||(m=p.drawRect(0,0,h.width-h.pointStrokeWidth/2,h.height-h.pointStrokeWidth/2,h.pRadius)),s.config.series[l].data[a]&&s.config.series[l].data[a].fillColor&&(g=s.config.series[l].data[a].fillColor),m.attr({x:e-h.width/2-h.pointStrokeWidth/2,y:t-h.height/2-h.pointStrokeWidth/2,cx:e,cy:t,fill:g,"fill-opacity":h.pointFillOpacity,stroke:h.pointStrokeColor,r:r,"stroke-width":h.pointStrokeWidth,"stroke-dasharray":h.pointStrokeDashArray,"stroke-opacity":h.pointStrokeOpacity}),s.config.chart.dropShadow.enabled){var v=s.config.chart.dropShadow;c.dropShadow(m,v,i)}if(!this.initialAnim||s.globals.dataChanged||s.globals.resized)s.globals.animationEnded=!0;else{var y=s.config.chart.animations.speed;u.animateMarker(m,0,"circle"===h.shape?r:{width:h.width,height:h.height},y,s.globals.easing,(function(){window.setTimeout((function(){u.animationCompleted(m)}),100)}))}if(s.globals.dataChanged&&"circle"===h.shape)if(this.dynamicAnim){var _,S,w,C,T=s.config.chart.animations.dynamicAnimation.speed;null!=(C=s.globals.previousPaths[i]&&s.globals.previousPaths[i][o])&&(_=C.x,S=C.y,w=void 0!==C.r?C.r:r);for(var A=0;As.globals.gridHeight+d&&(t=s.globals.gridHeight+d/2),void 0===s.globals.dataLabelsRects[r]&&(s.globals.dataLabelsRects[r]=[]),s.globals.dataLabelsRects[r].push({x:e,y:t,width:c,height:d});var f=s.globals.dataLabelsRects[r].length-2,p=void 0!==s.globals.lastDrawnDataLabelsIndexes[r]?s.globals.lastDrawnDataLabelsIndexes[r][s.globals.lastDrawnDataLabelsIndexes[r].length-1]:0;if(void 0!==s.globals.dataLabelsRects[r][f]){var h=s.globals.dataLabelsRects[r][p];(e>h.x+h.width+2||t>h.y+h.height+2||e+ct.globals.gridWidth+m.textRects.width+10)&&(s="");var g=t.globals.dataLabels.style.colors[a];(("bar"===t.config.chart.type||"rangeBar"===t.config.chart.type)&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(g=t.globals.dataLabels.style.colors[o]),"function"==typeof g&&(g=g({series:t.globals.series,seriesIndex:a,dataPointIndex:o,w:t})),f&&(g=f);var v=d.offsetX,y=d.offsetY;if("bar"!==t.config.chart.type&&"rangeBar"!==t.config.chart.type||(v=0,y=0),m.drawnextLabel){var _=n.drawText({width:100,height:parseInt(d.style.fontSize,10),x:r+v,y:i+y,foreColor:g,textAnchor:l||d.textAnchor,text:s,fontSize:u||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"});if(_.attr({class:"apexcharts-datalabel",cx:r,cy:i}),d.dropShadow.enabled){var b=d.dropShadow;new x(this.ctx).dropShadow(_,b)}c.add(_),void 0===t.globals.lastDrawnDataLabelsIndexes[a]&&(t.globals.lastDrawnDataLabelsIndexes[a]=[]),t.globals.lastDrawnDataLabelsIndexes[a].push(o)}}}},{key:"addBackgroundToDataLabel",value:function(e,t){var n=this.w,r=n.config.dataLabels.background,i=r.padding,a=r.padding/2,o=t.width,s=t.height,l=new E(this.ctx).drawRect(t.x-i,t.y-a/2,o+2*i,s+a,r.borderRadius,"transparent"===n.config.chart.background?"#fff":n.config.chart.background,r.opacity,r.borderWidth,r.borderColor);return r.dropShadow.enabled&&new x(this.ctx).dropShadow(l,r.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var e=this.w;if("bubble"!==e.config.chart.type)for(var t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),n=0;n0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.w,i=_.clone(r.globals.initialSeries);r.globals.previousPaths=[],n?(r.globals.collapsedSeries=[],r.globals.ancillaryCollapsedSeries=[],r.globals.collapsedSeriesIndices=[],r.globals.ancillaryCollapsedSeriesIndices=[]):i=this.emptyCollapsedSeries(i),r.config.series=i,e&&(t&&(r.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(i,r.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var t=this.w,n=0;n-1&&(e[n].data=[]);return e}},{key:"toggleSeriesOnHover",value:function(e,t){var n=this.w;t||(t=e.target);var r=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if("mousemove"===e.type){var i=parseInt(t.getAttribute("rel"),10)-1,a=null,o=null;n.globals.axisCharts||"radialBar"===n.config.chart.type?n.globals.axisCharts?(a=n.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(i,"']")),o=n.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(i,"']"))):a=n.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(i+1,"']")):a=n.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(i+1,"'] path"));for(var s=0;s=e.from&&r<=e.to&&i[t].classList.remove(n.legendInactiveClass)}}(r.config.plotOptions.heatmap.colorScale.ranges[o])}else"mouseout"===e.type&&a("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"asc",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.w,r=0;if(n.config.series.length>1)for(var i=n.config.series.map((function(e,r){return e.data&&e.data.length>0&&(!n.globals.comboCharts||0===t.length||t.length&&t.indexOf(n.config.series[r].type)>-1)?r:-1})),a="asc"===e?0:i.length-1;"asc"===e?a=0;"asc"===e?a++:a--)if(-1!==i[a]){r=i[a];break}return r}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map((function(e,t){return"bar"===e.type||"column"===e.type?t:-1})).filter((function(e){return-1!==e})):this.w.config.series.map((function(e,t){return t}))}},{key:"getPreviousPaths",value:function(){var e=this.w;function t(t,n,r){for(var i=t[n].childNodes,a={type:r,paths:[],realIndex:t[n].getAttribute("data:realIndex")},o=0;o0)for(var r=function(t){for(var n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(t,"'] rect")),r=[],i=function(e){var t=function(t){return n[e].getAttribute(t)},i={x:parseFloat(t("x")),y:parseFloat(t("y")),width:parseFloat(t("width")),height:parseFloat(t("height"))};r.push({rect:i,color:n[e].getAttribute("color")})},a=0;a0)for(var r=0;r0?e:[]}))}}]),e}(),G=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new S(this.ctx)}return u(e,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new j(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&null!==e[this.activeSeriesIndex].data[0]&&void 0!==e[this.activeSeriesIndex].data[0].x&&null!==e[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var e=this.w.config.series.slice(),t=new j(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&void 0!==e[this.activeSeriesIndex].data[0]&&null!==e[this.activeSeriesIndex].data[0]&&e[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(e,t){for(var n=this.w.config,r=this.w.globals,i="boxPlot"===n.chart.type||"boxPlot"===n.series[t].type,a=0;a=5?this.twoDSeries.push(_.parseNumber(e[t].data[a][4])):this.twoDSeries.push(_.parseNumber(e[t].data[a][1])),r.dataFormatXNumeric=!0),"datetime"===n.xaxis.type){var o=new Date(e[t].data[a][0]);o=new Date(o).getTime(),this.twoDSeriesX.push(o)}else this.twoDSeriesX.push(e[t].data[a][0]);for(var s=0;s-1&&(a=this.activeSeriesIndex);for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:this.ctx,r=this.w.config,i=this.w.globals,a=new I(n),o=r.labels.length>0?r.labels.slice():r.xaxis.categories.slice();i.isRangeBar="rangeBar"===r.chart.type&&i.isBarHorizontal,i.hasGroups="category"===r.xaxis.type&&r.xaxis.group.groups.length>0,i.hasGroups&&(i.groups=r.xaxis.group.groups);for(var s=function(){for(var e=0;e0&&(this.twoDSeriesX=o,i.seriesX.push(this.twoDSeriesX))),i.labels.push(this.twoDSeriesX);var u=e[l].data.map((function(e){return _.parseNumber(e)}));i.series.push(u)}i.seriesZ.push(this.threeDSeries),void 0!==e[l].name?i.seriesNames.push(e[l].name):i.seriesNames.push("series-"+parseInt(l+1,10)),void 0!==e[l].color?i.seriesColors.push(e[l].color):i.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(e){var t=this.w.globals,n=this.w.config;t.series=e.slice(),t.seriesNames=n.labels.slice();for(var r=0;r0?n.labels=t.xaxis.categories:t.labels.length>0?n.labels=t.labels.slice():this.fallbackToCategory?(n.labels=n.labels[0],n.seriesRange.length&&(n.seriesRange.map((function(e){e.forEach((function(e){n.labels.indexOf(e.x)<0&&e.x&&n.labels.push(e.x)}))})),n.labels=n.labels.filter((function(e,t,n){return n.indexOf(e)===t}))),t.xaxis.convertedCatToNumeric&&(new M(t).convertCatToNumericXaxis(t,this.ctx,n.seriesX[0]),this._generateExternalLabels(e))):this._generateExternalLabels(e)}},{key:"_generateExternalLabels",value:function(e){var t=this.w.globals,n=this.w.config,r=[];if(t.axisCharts){if(t.series.length>0)if(this.isFormatXY())for(var i=n.series.map((function(e,t){return e.data.filter((function(e,t,n){return n.findIndex((function(t){return t.x===e.x}))===t}))})),a=i.reduce((function(e,t,n,r){return r[e].length>t.length?e:n}),0),o=0;o0&&n<100?e.toFixed(1):e.toFixed(0)}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?e.toFixed(1):e.toFixed(0)}return e},"function"==typeof t.config.tooltip.x.formatter?t.globals.ttKeyFormatter=t.config.tooltip.x.formatter:t.globals.ttKeyFormatter=t.globals.xLabelFormatter,"function"==typeof t.config.xaxis.tooltip.formatter&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||void 0!==t.config.tooltip.y.formatter)&&(t.globals.ttVal=t.config.tooltip.y),void 0!==t.config.tooltip.z.formatter&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),void 0!==t.config.legend.formatter&&(t.globals.legendFormatter=t.config.legend.formatter),t.config.yaxis.forEach((function(n,r){void 0!==n.labels.formatter?t.globals.yLabelFormatters[r]=n.labels.formatter:t.globals.yLabelFormatters[r]=function(i){return t.globals.xyCharts?Array.isArray(i)?i.map((function(t){return e.defaultYFormatter(t,n,r)})):e.defaultYFormatter(i,n,r):i}})),t.globals}},{key:"heatmapLabelFormatters",value:function(){var e=this.w;if("heatmap"===e.config.chart.type){e.globals.yAxisScale[0].result=e.globals.seriesNames.slice();var t=e.globals.seriesNames.reduce((function(e,t){return e.length>t.length?e:t}),0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}]),e}(),q=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return u(e,[{key:"getLabel",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",o=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],s=this.w,l=void 0===e[r]?"":e[r],u=l,c=s.globals.xLabelFormatter,d=s.config.xaxis.labels.formatter,f=!1,p=new V(this.ctx),h=l;o&&(u=p.xLabelFormat(c,l,h,{i:r,dateFormatter:new I(this.ctx).formatDate,w:s}),void 0!==d&&(u=d(l,e[r],{i:r,dateFormatter:new I(this.ctx).formatDate,w:s})));var m=function(e){var n=null;return t.forEach((function(e){"month"===e.unit?n="year":"day"===e.unit?n="month":"hour"===e.unit?n="day":"minute"===e.unit&&(n="hour")})),n===e};t.length>0?(f=m(t[r].unit),n=t[r].position,u=t[r].value):"datetime"===s.config.xaxis.type&&void 0===d&&(u=""),void 0===u&&(u=""),u=Array.isArray(u)?u:u.toString();var g=new E(this.ctx),v={};v=s.globals.rotateXLabels&&o?g.getTextRects(u,parseInt(a,10),null,"rotate(".concat(s.config.xaxis.labels.rotate," 0 0)"),!1):g.getTextRects(u,parseInt(a,10));var y=!s.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(u)&&(0===u.indexOf("NaN")||0===u.toLowerCase().indexOf("invalid")||u.toLowerCase().indexOf("infinity")>=0||i.indexOf(u)>=0&&y)&&(u=""),{x:n,text:u,textRect:v,isBold:f}}},{key:"checkLabelBasedOnTickamount",value:function(e,t,n){var r=this.w,i=r.config.xaxis.tickAmount;return"dataPoints"===i&&(i=Math.round(r.globals.gridWidth/120)),i>n||e%Math.round(n/(i+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(e,t,n,r,i){var a=this.w;if(0===e&&a.globals.skipFirstTimelinelabel&&(t.text=""),e===n-1&&a.globals.skipLastTimelinelabel&&(t.text=""),a.config.xaxis.labels.hideOverlappingLabels&&r.length>0){var o=i[i.length-1];t.x0){!0===s.config.yaxis[i].opposite&&(e+=r.width);for(var c=t;c>=0;c--){var d=u+t/10+s.config.yaxis[i].labels.offsetY-1;s.globals.isBarHorizontal&&(d=a*c),"heatmap"===s.config.chart.type&&(d+=a/2);var f=l.drawLine(e+n.offsetX-r.width+r.offsetX,d+r.offsetY,e+n.offsetX+r.offsetX,d+r.offsetY,r.color);o.add(f),u+=a}}}}]),e}(),H=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return u(e,[{key:"scaleSvgNode",value:function(e,t){var n=parseFloat(e.getAttributeNS(null,"width")),r=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",n*t),e.setAttributeNS(null,"height",r*t),e.setAttributeNS(null,"viewBox","0 0 "+n+" "+r)}},{key:"fixSvgStringForIe11",value:function(e){if(!_.isIE11())return e.replace(/ /g," ");var t=0,n=e.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,(function(e){return 2===++t?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':e}));return(n=n.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(e){null==e&&(e=1);var t=this.w.globals.dom.Paper.svg();if(1!==e){var n=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(n,e),t=(new XMLSerializer).serializeToString(n)}return this.fixSvgStringForIe11(t)}},{key:"cleanup",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),n=e.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(r,(function(e){e.setAttribute("width",0)})),t&&t[0]&&(t[0].setAttribute("x",-500),t[0].setAttribute("x1",-500),t[0].setAttribute("x2",-500)),n&&n[0]&&(n[0].setAttribute("y",-100),n[0].setAttribute("y1",-100),n[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var e=this.getSvgString(),t=new Blob([e],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(t)}},{key:"dataURI",value:function(e){var t=this;return new Promise((function(n){var r=t.w,i=e?e.scale||e.width/r.globals.svgWidth:1;t.cleanup();var a=document.createElement("canvas");a.width=r.globals.svgWidth*i,a.height=parseInt(r.globals.dom.elWrap.style.height,10)*i;var o="transparent"===r.config.chart.background?"#fff":r.config.chart.background,s=a.getContext("2d");s.fillStyle=o,s.fillRect(0,0,a.width*i,a.height*i);var l=t.getSvgString(i);if(window.canvg&&_.isIE11()){var u=window.canvg.Canvg.fromString(s,l,{ignoreClear:!0,ignoreDimensions:!0});u.start();var c=a.msToBlob();u.stop(),n({blob:c})}else{var d="data:image/svg+xml,"+encodeURIComponent(l),f=new Image;f.crossOrigin="anonymous",f.onload=function(){if(s.drawImage(f,0,0),a.msToBlob){var e=a.msToBlob();n({blob:e})}else{var t=a.toDataURL("image/png");n({imgURI:t})}},f.src=d}}))}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var e=this;this.dataURI().then((function(t){var n=t.imgURI,r=t.blob;r?navigator.msSaveOrOpenBlob(r,e.w.globals.chartID+".png"):e.triggerDownload(n,e.w.config.chart.toolbar.export.png.filename,".png")}))}},{key:"exportToCSV",value:function(e){var t=this,n=e.series,r=e.fileName,i=e.columnDelimiter,a=void 0===i?",":i,o=e.lineDelimiter,s=void 0===o?"\n":o,l=this.w;n||(n=l.config.series);var u=[],c=[],d="",f=l.globals.series.map((function(e,t){return-1===l.globals.collapsedSeriesIndices.indexOf(t)?e:[]})),p=Math.max.apply(Math,g(n.map((function(e){return e.data?e.data.length:0})))),h=new G(this.ctx),m=new q(this.ctx),v=function(e){var n="";if(l.globals.axisCharts){if("category"===l.config.xaxis.type||l.config.xaxis.convertedCatToNumeric)if(l.globals.isBarHorizontal){var r=l.globals.yLabelFormatters[0],i=new j(t.ctx).getActiveConfigSeriesIndex();n=r(l.globals.labels[e],{seriesIndex:i,dataPointIndex:e,w:l})}else n=m.getLabel(l.globals.labels,l.globals.timescaleLabels,0,e).text;"datetime"===l.config.xaxis.type&&(l.config.xaxis.categories.length?n=l.config.xaxis.categories[e]:l.config.labels.length&&(n=l.config.labels[e]))}else n=l.config.labels[e];return Array.isArray(n)&&(n=n.join(" ")),_.isNumber(n)?n:n.split(a).join("")};u.push(l.config.chart.toolbar.export.csv.headerCategory),"boxPlot"===l.config.chart.type?(u.push("minimum"),u.push("q1"),u.push("median"),u.push("q3"),u.push("maximum")):"candlestick"===l.config.chart.type?(u.push("open"),u.push("high"),u.push("low"),u.push("close")):"rangeBar"===l.config.chart.type?(u.push("minimum"),u.push("maximum")):n.map((function(e,t){var n=e.name?e.name:"series-".concat(t);l.globals.axisCharts&&u.push(n.split(a).join("")?n.split(a).join(""):"series-".concat(t))})),l.globals.axisCharts||(u.push(l.config.chart.toolbar.export.csv.headerValue),c.push(u.join(a))),n.map((function(e,t){l.globals.axisCharts?function(e,t){if(u.length&&0===t&&c.push(u.join(a)),e.data){e.data=e.data.length&&e.data||g(Array(p)).map((function(){return""}));for(var r=0;r=10?l.config.chart.toolbar.export.csv.dateFormatter(i):_.isNumber(i)?i:i.split(a).join("")));for(var o=0;o0&&!n.globals.isBarHorizontal&&(this.xaxisLabels=n.globals.timescaleLabels.slice()),n.config.xaxis.overwriteCategories&&(this.xaxisLabels=n.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===n.config.xaxis.position?this.offY=0:this.offY=n.globals.gridHeight+1,this.offY=this.offY+n.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===n.config.chart.type&&n.config.plotOptions.bar.horizontal,this.xaxisFontSize=n.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=n.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=n.config.xaxis.labels.style.colors,this.xaxisBorderWidth=n.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=n.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=n.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=n.config.xaxis.axisBorder.height,this.yaxis=n.config.yaxis[0]}return u(e,[{key:"drawXaxis",value:function(){var e=this.w,t=new E(this.ctx),n=t.group({class:"apexcharts-xaxis",transform:"translate(".concat(e.config.xaxis.offsetX,", ").concat(e.config.xaxis.offsetY,")")}),r=t.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});n.add(r);for(var i=[],a=0;a6&&void 0!==arguments[6]?arguments[6]:{},u=[],c=[],d=this.w,f=l.xaxisFontSize||this.xaxisFontSize,p=l.xaxisFontFamily||this.xaxisFontFamily,h=l.xaxisForeColors||this.xaxisForeColors,m=l.fontWeight||d.config.xaxis.labels.style.fontWeight,g=l.cssClass||d.config.xaxis.labels.style.cssClass,v=d.globals.padHorizontal,y=r.length,_="category"===d.config.xaxis.type?d.globals.dataPoints:y;if(0===_&&y>_&&(_=y),i){var b=_>1?_-1:_;o=d.globals.gridWidth/b,v=v+a(0,o)/2+d.config.xaxis.labels.offsetX}else o=d.globals.gridWidth/_,v=v+a(0,o)+d.config.xaxis.labels.offsetX;for(var x=function(i){var l=v-a(i,o)/2+d.config.xaxis.labels.offsetX;0===i&&1===y&&o/2===v&&1===_&&(l=d.globals.gridWidth/2);var b=s.axesUtils.getLabel(r,d.globals.timescaleLabels,l,i,u,f,e),x=28;if(d.globals.rotateXLabels&&e&&(x=22),e||(x=x+parseFloat(f)+(d.globals.xAxisLabelsHeight-d.globals.xAxisGroupLabelsHeight)+(d.globals.rotateXLabels?10:0)),b=void 0!==d.config.xaxis.tickAmount&&"dataPoints"!==d.config.xaxis.tickAmount&&"datetime"!==d.config.xaxis.type?s.axesUtils.checkLabelBasedOnTickamount(i,b,y):s.axesUtils.checkForOverflowingLabels(i,b,y,u,c),e&&b.text&&d.globals.xaxisLabelsCount++,d.config.xaxis.labels.show){var E=t.drawText({x:b.x,y:s.offY+d.config.xaxis.labels.offsetY+x-("top"===d.config.xaxis.position?d.globals.xAxisHeight+d.config.xaxis.axisTicks.height-2:0),text:b.text,textAnchor:"middle",fontWeight:b.isBold?600:m,fontSize:f,fontFamily:p,foreColor:Array.isArray(h)?e&&d.config.xaxis.convertedCatToNumeric?h[d.globals.minX+i-1]:h[i]:h,isPlainText:!1,cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+g});if(n.add(E),E.on("click",(function(e){if("function"==typeof d.config.chart.events.xAxisLabelClick){var t=Object.assign({},d,{labelIndex:i});d.config.chart.events.xAxisLabelClick(e,s.ctx,t)}})),e){var S=document.createElementNS(d.globals.SVGNS,"title");S.textContent=Array.isArray(b.text)?b.text.join(" "):b.text,E.node.appendChild(S),""!==b.text&&(u.push(b.text),c.push(b))}}ir.globals.gridWidth)){var a=this.offY+r.config.xaxis.axisTicks.offsetY;if(t=t+a+r.config.xaxis.axisTicks.height,"top"===r.config.xaxis.position&&(t=a-r.config.xaxis.axisTicks.height),r.config.xaxis.axisTicks.show){var o=new E(this.ctx).drawLine(e+r.config.xaxis.axisTicks.offsetX,a+r.config.xaxis.offsetY,i+r.config.xaxis.axisTicks.offsetX,t+r.config.xaxis.offsetY,r.config.xaxis.axisTicks.color);n.add(o),o.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var e=this.w,t=[],n=this.xaxisLabels.length,r=e.globals.padHorizontal;if(e.globals.timescaleLabels.length>0)for(var i=0;i0){var u=i[i.length-1].getBBox(),c=i[0].getBBox();u.x<-20&&i[i.length-1].parentNode.removeChild(i[i.length-1]),c.x+c.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&i[0].parentNode.removeChild(i[0]);for(var d=0;d0&&(this.xaxisLabels=n.globals.timescaleLabels.slice())}return u(e,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w,n=new E(this.ctx);null===e&&(e=n.group({class:"apexcharts-grid"}));var r=n.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),i=n.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return e.add(i),e.add(r),e}},{key:"drawGrid",value:function(){var e=null;return this.w.globals.axisCharts&&(e=this.renderGrid(),this.drawGridArea(e.el)),e}},{key:"createGridMask",value:function(){var e=this.w,t=e.globals,n=new E(this.ctx),r=Array.isArray(e.config.stroke.width)?0:e.config.stroke.width;if(Array.isArray(e.config.stroke.width)){var i=0;e.config.stroke.width.forEach((function(e){i=Math.max(i,e)})),r=i}t.dom.elGridRectMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(t.cuid)),t.dom.elGridRectMarkerMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(t.cuid)),t.dom.elForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elForecastMask.setAttribute("id","forecastMask".concat(t.cuid)),t.dom.elNonForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(t.cuid));var a=e.config.chart.type,o=0,s=0;("bar"===a||"rangeBar"===a||"candlestick"===a||"boxPlot"===a||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(o=e.config.grid.padding.left,s=e.config.grid.padding.right,t.barPadForNumericAxis>o&&(o=t.barPadForNumericAxis,s=t.barPadForNumericAxis)),t.dom.elGridRect=n.drawRect(-r/2-o-2,-r/2,t.gridWidth+r+s+o+4,t.gridHeight+r,0,"#fff");var l=e.globals.markers.largestSize+1;t.dom.elGridRectMarker=n.drawRect(2*-l,2*-l,t.gridWidth+4*l,t.gridHeight+4*l,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var u=t.dom.baseEl.querySelector("defs");u.appendChild(t.dom.elGridRectMask),u.appendChild(t.dom.elForecastMask),u.appendChild(t.dom.elNonForecastMask),u.appendChild(t.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(e){var t=e.i,n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.xCount,s=e.parent,l=this.w;if(!(0===t&&l.globals.skipFirstTimelinelabel||t===o-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||"radar"===l.config.chart.type)){l.config.grid.xaxis.lines.show&&this._drawGridLine({x1:n,y1:r,x2:i,y2:a,parent:s});var u=0;if(l.globals.hasGroups&&"between"===l.config.xaxis.tickPlacement){var c=l.globals.groups;if(c){for(var d=0,f=0;d2));i++);return!e.globals.isBarHorizontal||this.isRangeBar?(n=this.xaxisLabels.length,this.isRangeBar&&(r=e.globals.labels.length,e.config.xaxis.tickAmount&&e.config.xaxis.labels.formatter&&(n=e.config.xaxis.tickAmount)),this._drawXYLines({xCount:n,tickAmount:r})):(n=r,r=e.globals.xTickAmount,this._drawInvertedXYLines({xCount:n,tickAmount:r})),this.drawGridBands(n,r),{el:this.elg,xAxisTickWidth:e.globals.gridWidth/n}}},{key:"drawGridBands",value:function(e,t){var n=this.w;if(void 0!==n.config.grid.row.colors&&n.config.grid.row.colors.length>0)for(var r=0,i=n.globals.gridHeight/t,a=n.globals.gridWidth,o=0,s=0;o=n.config.grid.row.colors.length&&(s=0),this._drawGridBandRect({c:s,x1:0,y1:r,x2:a,y2:i,type:"row"}),r+=n.globals.gridHeight/t;if(void 0!==n.config.grid.column.colors&&n.config.grid.column.colors.length>0)for(var l=n.globals.isBarHorizontal||"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric?e:e-1,u=n.globals.padHorizontal,c=n.globals.padHorizontal+n.globals.gridWidth/l,d=n.globals.gridHeight,f=0,p=0;f=n.config.grid.column.colors.length&&(p=0),this._drawGridBandRect({c:p,x1:u,y1:0,x2:c,y2:d,type:"column"}),u+=n.globals.gridWidth/l}}]),e}(),X=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return u(e,[{key:"niceScale",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0,a=this.w,o=Math.abs(t-e);if("dataPoints"===(n=this._adjustTicksForSmallRange(n,r,o))&&(n=a.globals.dataPoints-1),e===Number.MIN_VALUE&&0===t||!_.isNumber(e)&&!_.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE){e=0,t=n;var s=this.linearScale(e,t,n);return s}e>t?(console.warn("axis.min cannot be greater than axis.max"),t=e+.1):e===t&&(e=0===e?0:e-.5,t=0===t?2:t+.5);var l=[];o<1&&i&&("candlestick"===a.config.chart.type||"candlestick"===a.config.series[r].type||"boxPlot"===a.config.chart.type||"boxPlot"===a.config.series[r].type||a.globals.isRangeData)&&(t*=1.01);var u=n+1;u<2?u=2:u>2&&(u-=2);var c=o/u,d=Math.floor(_.log10(c)),f=Math.pow(10,d),p=Math.round(c/f);p<1&&(p=1);var h=p*f,m=h*Math.floor(e/h),g=h*Math.ceil(t/h),v=m;if(i&&o>2){for(;l.push(v),!((v+=h)>g););return{result:l,niceMin:l[0],niceMax:l[l.length-1]}}var y=e;(l=[]).push(y);for(var b=Math.abs(t-e)/n,x=0;x<=n;x++)y+=b,l.push(y);return l[l.length-2]>=t&&l.pop(),{result:l,niceMin:l[0],niceMax:l[l.length-1]}}},{key:"linearScale",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=arguments.length>3?arguments[3]:void 0,i=Math.abs(t-e);"dataPoints"===(n=this._adjustTicksForSmallRange(n,r,i))&&(n=this.w.globals.dataPoints-1);var a=i/n;n===Number.MAX_VALUE&&(n=10,a=1);for(var o=[],s=e;n>=0;)o.push(s),s+=a,n-=1;return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}},{key:"logarithmicScaleNice",value:function(e,t,n){t<=0&&(t=Math.max(e,n)),e<=0&&(e=Math.min(t,n));for(var r=[],i=Math.ceil(Math.log(t)/Math.log(n)+1),a=Math.floor(Math.log(e)/Math.log(n));a5)r.allSeriesCollapsed=!1,r.yAxisScale[e]=this.logarithmicScale(t,n,a.logBase),r.yAxisScale[e]=a.forceNiceScale?this.logarithmicScaleNice(t,n,a.logBase):this.logarithmicScale(t,n,a.logBase);else if(n!==-Number.MAX_VALUE&&_.isNumber(n))if(r.allSeriesCollapsed=!1,void 0===a.min&&void 0===a.max||a.forceNiceScale){var s=void 0===i.yaxis[e].max&&void 0===i.yaxis[e].min||i.yaxis[e].forceNiceScale;r.yAxisScale[e]=this.niceScale(t,n,a.tickAmount?a.tickAmount:o<5&&o>1?o+1:5,e,s)}else r.yAxisScale[e]=this.linearScale(t,n,a.tickAmount,e);else r.yAxisScale[e]=this.linearScale(0,5,5)}},{key:"setXScale",value:function(e,t){var n=this.w,r=n.globals,i=n.config.xaxis,a=Math.abs(t-e);return t!==-Number.MAX_VALUE&&_.isNumber(t)?r.xAxisScale=this.linearScale(e,t,i.tickAmount?i.tickAmount:a<5&&a>1?a+1:5,0):r.xAxisScale=this.linearScale(0,5,5),r.xAxisScale}},{key:"setMultipleYScales",value:function(){var e=this,t=this.w.globals,n=this.w.config,r=t.minYArr.concat([]),i=t.maxYArr.concat([]),a=[];n.yaxis.forEach((function(t,o){var s=o;n.series.forEach((function(e,n){e.name===t.seriesName&&(s=n,o!==n?a.push({index:n,similarIndex:o,alreadyExists:!0}):a.push({index:n}))}));var l=r[s],u=i[s];e.setYScaleForIndex(o,l,u)})),this.sameScaleInMultipleAxes(r,i,a)}},{key:"sameScaleInMultipleAxes",value:function(e,t,n){var r=this,i=this.w.config,a=this.w.globals,o=[];n.forEach((function(e){e.alreadyExists&&(void 0===o[e.index]&&(o[e.index]=[]),o[e.index].push(e.index),o[e.index].push(e.similarIndex))})),a.yAxisSameScaleIndices=o,o.forEach((function(e,t){o.forEach((function(n,r){var i,a;t!==r&&(i=e,a=n,i.filter((function(e){return-1!==a.indexOf(e)}))).length>0&&(o[t]=o[t].concat(o[r]))}))}));var s=o.map((function(e){return e.filter((function(t,n){return e.indexOf(t)===n}))})).map((function(e){return e.sort()}));o=o.filter((function(e){return!!e}));var l=s.slice(),u=l.map((function(e){return JSON.stringify(e)}));l=l.filter((function(e,t){return u.indexOf(JSON.stringify(e))===t}));var c=[],d=[];e.forEach((function(e,n){l.forEach((function(r,i){r.indexOf(n)>-1&&(void 0===c[i]&&(c[i]=[],d[i]=[]),c[i].push({key:n,value:e}),d[i].push({key:n,value:t[n]}))}))}));var f=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),p=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);c.forEach((function(e,t){e.forEach((function(e,n){f[t]=Math.min(e.value,f[t])}))})),d.forEach((function(e,t){e.forEach((function(e,n){p[t]=Math.max(e.value,p[t])}))})),e.forEach((function(e,t){d.forEach((function(e,n){var o=f[n],s=p[n];i.chart.stacked&&(s=0,e.forEach((function(e,t){e.value!==-Number.MAX_VALUE&&(s+=e.value),o!==Number.MIN_VALUE&&(o+=c[n][t].value)}))),e.forEach((function(n,l){e[l].key===t&&(void 0!==i.yaxis[t].min&&(o="function"==typeof i.yaxis[t].min?i.yaxis[t].min(a.minY):i.yaxis[t].min),void 0!==i.yaxis[t].max&&(s="function"==typeof i.yaxis[t].max?i.yaxis[t].max(a.maxY):i.yaxis[t].max),r.setYScaleForIndex(t,o,s))}))}))}))}},{key:"autoScaleY",value:function(e,t,n){e||(e=this);var r=e.w;if(r.globals.isMultipleYAxis||r.globals.collapsedSeries.length)return console.warn("autoScaleYaxis is not supported in a multi-yaxis chart."),t;var i=r.globals.seriesX[0],a=r.config.chart.stacked;return t.forEach((function(e,o){for(var s=0,l=0;l=n.xaxis.min){s=l;break}var u,c,d=r.globals.minYArr[o],f=r.globals.maxYArr[o],p=r.globals.stackedSeriesTotals;r.globals.series.forEach((function(o,l){var h=o[s];a?(h=p[s],u=c=h,p.forEach((function(e,t){i[t]<=n.xaxis.max&&i[t]>=n.xaxis.min&&(e>c&&null!==e&&(c=e),o[t]=n.xaxis.min){var a=e,o=e;r.globals.series.forEach((function(n,r){null!==e&&(a=Math.min(n[t],a),o=Math.max(n[t],o))})),o>c&&null!==o&&(c=o),ad&&(u=d),t.length>1?(t[l].min=void 0===e.min?u:e.min,t[l].max=void 0===e.max?c:e.max):(t[0].min=void 0===e.min?u:e.min,t[0].max=void 0===e.max?c:e.max)}))})),t}}]),e}(),K=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.scales=new X(t)}return u(e,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=this.w.config,a=this.w.globals,o=-Number.MAX_VALUE,s=Number.MIN_VALUE;null===r&&(r=e+1);var l=a.series,u=l,c=l;"candlestick"===i.chart.type?(u=a.seriesCandleL,c=a.seriesCandleH):"boxPlot"===i.chart.type?(u=a.seriesCandleO,c=a.seriesCandleC):a.isRangeData&&(u=a.seriesRangeStart,c=a.seriesRangeEnd);for(var d=e;du[d][f]&&u[d][f]<0&&(s=u[d][f])):a.hasNullValues=!0}}return"rangeBar"===i.chart.type&&a.seriesRangeStart.length&&a.isBarHorizontal&&(s=t),"bar"===i.chart.type&&(s<0&&o<0&&(o=0),s===Number.MIN_VALUE&&(s=0)),{minY:s,maxY:o,lowestY:t,highestY:n}}},{key:"setYRange",value:function(){var e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;var n=Number.MAX_VALUE;if(e.isMultipleYAxis)for(var r=0;r=0&&n<=10||void 0!==t.yaxis[0].min||void 0!==t.yaxis[0].max)&&(o=0),e.minY=n-5*o/100,n>0&&e.minY<0&&(e.minY=0),e.maxY=e.maxY+5*o/100}return t.yaxis.forEach((function(t,n){void 0!==t.max&&("number"==typeof t.max?e.maxYArr[n]=t.max:"function"==typeof t.max&&(e.maxYArr[n]=t.max(e.isMultipleYAxis?e.maxYArr[n]:e.maxY)),e.maxY=e.maxYArr[n]),void 0!==t.min&&("number"==typeof t.min?e.minYArr[n]=t.min:"function"==typeof t.min&&(e.minYArr[n]=t.min(e.isMultipleYAxis?e.minYArr[n]===Number.MIN_VALUE?0:e.minYArr[n]:e.minY)),e.minY=e.minYArr[n])})),e.isBarHorizontal&&["min","max"].forEach((function(n){void 0!==t.xaxis[n]&&"number"==typeof t.xaxis[n]&&("min"===n?e.minY=t.xaxis[n]:e.maxY=t.xaxis[n])})),e.isMultipleYAxis?(this.scales.setMultipleYScales(),e.minY=n,e.yAxisScale.forEach((function(t,n){e.minYArr[n]=t.niceMin,e.maxYArr[n]=t.niceMax}))):(this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.yAxisScale[0].niceMin,e.maxYArr[0]=e.yAxisScale[0].niceMax),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}},{key:"setXRange",value:function(){var e=this.w.globals,t=this.w.config,n="numeric"===t.xaxis.type||"datetime"===t.xaxis.type||"category"===t.xaxis.type&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric&&function(){for(var t=0;te.dataPoints&&0!==e.dataPoints&&(r=e.dataPoints-1)):"dataPoints"===t.xaxis.tickAmount?(e.series.length>1&&(r=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric&&(r=e.maxX-e.minX-1)):r=t.xaxis.tickAmount,e.xTickAmount=r,void 0!==t.xaxis.max&&"number"==typeof t.xaxis.max&&(e.maxX=t.xaxis.max),void 0!==t.xaxis.min&&"number"==typeof t.xaxis.min&&(e.minX=t.xaxis.min),void 0!==t.xaxis.range&&(e.minX=e.maxX-t.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE)if(t.xaxis.convertedCatToNumeric&&!e.dataFormatXNumeric){for(var i=[],a=e.minX-1;a0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,r-1),e.seriesX=e.labels.slice());n&&(e.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&e.labels.length&&(e.xTickAmount=e.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}},{key:"setZRange",value:function(){var e=this.w.globals;if(e.isDataXYZ)for(var t=0;t0){var i=t-r[n-1];i>0&&(e.minXDiff=Math.min(i,e.minXDiff))}})),1!==e.dataPoints&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)}))}},{key:"_setStackedMinMax",value:function(){var e=this.w.globals,t=[],n=[];if(e.series.length)for(var r=0;r0?i=i+parseFloat(e.series[o][r])+1e-4:a+=parseFloat(e.series[o][r])),o===e.series.length-1&&(t.push(i),n.push(a));for(var s=0;s=0;v--)g(v);if(void 0!==n.config.yaxis[e].title.text){var y=r.group({class:"apexcharts-yaxis-title"}),_=0;n.config.yaxis[e].opposite&&(_=n.globals.translateYAxisX[e]);var b=r.drawText({x:_,y:n.globals.gridHeight/2+n.globals.translateY+n.config.yaxis[e].title.offsetY,text:n.config.yaxis[e].title.text,textAnchor:"end",foreColor:n.config.yaxis[e].title.style.color,fontSize:n.config.yaxis[e].title.style.fontSize,fontWeight:n.config.yaxis[e].title.style.fontWeight,fontFamily:n.config.yaxis[e].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+n.config.yaxis[e].title.style.cssClass});y.add(b),l.add(y)}var x=n.config.yaxis[e].axisBorder,S=31+x.offsetX;if(n.config.yaxis[e].opposite&&(S=-31-x.offsetX),x.show){var w=r.drawLine(S,n.globals.translateY+x.offsetY-2,S,n.globals.gridHeight+n.globals.translateY+x.offsetY+2,x.color,0,x.width);l.add(w)}return n.config.yaxis[e].axisTicks.show&&this.axesUtils.drawYAxisTicks(S,c,x,n.config.yaxis[e].axisTicks,e,d,l),l}},{key:"drawYaxisInversed",value:function(e){var t=this.w,n=new E(this.ctx),r=n.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),i=n.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});r.add(i);var a=t.globals.yAxisScale[e].result.length-1,o=t.globals.gridWidth/a+.1,s=o+t.config.xaxis.labels.offsetX,l=t.globals.xLabelFormatter,u=t.globals.yAxisScale[e].result.slice(),c=t.globals.timescaleLabels;c.length>0&&(this.xaxisLabels=c.slice(),a=(u=c.slice()).length),u=this.axesUtils.checkForReversedLabels(e,u);var d=c.length;if(t.config.xaxis.labels.show)for(var f=d?0:a;d?f=0;d?f++:f--){var p=u[f];p=l(p,f,t);var h=t.globals.gridWidth+t.globals.padHorizontal-(s-o+t.config.xaxis.labels.offsetX);if(c.length){var m=this.axesUtils.getLabel(u,c,h,f,this.drawnLabels,this.xaxisFontSize);h=m.x,p=m.text,this.drawnLabels.push(m.text),0===f&&t.globals.skipFirstTimelinelabel&&(p=""),f===u.length-1&&t.globals.skipLastTimelinelabel&&(p="")}var g=n.drawText({x:h,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-("top"===t.config.xaxis.position?t.globals.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:p,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:t.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+t.config.xaxis.labels.style.cssClass});i.add(g),g.tspan(p);var v=document.createElementNS(t.globals.SVGNS,"title");v.textContent=p,g.node.appendChild(v),s+=o}return this.inversedYAxisTitleText(r),this.inversedYAxisBorder(r),r}},{key:"inversedYAxisBorder",value:function(e){var t=this.w,n=new E(this.ctx),r=t.config.xaxis.axisBorder;if(r.show){var i=0;"bar"===t.config.chart.type&&t.globals.isXNumeric&&(i-=15);var a=n.drawLine(t.globals.padHorizontal+i+r.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,r.color,0,r.height);e.add(a)}}},{key:"inversedYAxisTitleText",value:function(e){var t=this.w,n=new E(this.ctx);if(void 0!==t.config.xaxis.title.text){var r=n.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),i=n.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(t.config.xaxis.title.style.fontSize)+t.config.xaxis.title.offsetY+20,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+t.config.xaxis.title.style.cssClass});r.add(i),e.add(r)}}},{key:"yAxisTitleRotate",value:function(e,t){var n=this.w,r=new E(this.ctx),i={width:0,height:0},a={width:0,height:0},o=n.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g"));null!==o&&(i=o.getBoundingClientRect());var s=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text"));if(null!==s&&(a=s.getBoundingClientRect()),null!==s){var l=this.xPaddingForYAxisTitle(e,i,a,t);s.setAttribute("x",l.xPos-(t?10:0))}if(null!==s){var u=r.rotateAroundCenter(s);s.setAttribute("transform","rotate(".concat(t?-1*n.config.yaxis[e].title.rotate:n.config.yaxis[e].title.rotate," ").concat(u.x," ").concat(u.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(e,t,n,r){var i=this.w,a=0,o=0,s=10;return void 0===i.config.yaxis[e].title.text||e<0?{xPos:o,padd:0}:(r?(o=t.width+i.config.yaxis[e].title.offsetX+n.width/2+s/2,0===(a+=1)&&(o-=s/2)):(o=-1*t.width+i.config.yaxis[e].title.offsetX+s/2+n.width/2,i.globals.isBarHorizontal&&(s=25,o=-1*t.width-i.config.yaxis[e].title.offsetX-s)),{xPos:o,padd:s})}},{key:"setYAxisXPosition",value:function(e,t){var n=this.w,r=0,i=0,a=18,o=1;n.config.yaxis.length>1&&(this.multipleYs=!0),n.config.yaxis.map((function(s,l){var u=n.globals.ignoreYAxisIndexes.indexOf(l)>-1||!s.show||s.floating||0===e[l].width,c=e[l].width+t[l].width;s.opposite?n.globals.isBarHorizontal?(i=n.globals.gridWidth+n.globals.translateX-1,n.globals.translateYAxisX[l]=i-s.labels.offsetX):(i=n.globals.gridWidth+n.globals.translateX+o,u||(o=o+c+20),n.globals.translateYAxisX[l]=i-s.labels.offsetX+20):(r=n.globals.translateX-a,u||(a=a+c+20),n.globals.translateYAxisX[l]=r+s.labels.offsetX)}))}},{key:"setYAxisTextAlignments",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(t=_.listToArray(t)).forEach((function(t,n){var r=e.config.yaxis[n];if(r&&void 0!==r.labels.align){var i=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-texts-g")),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-label"));a=_.listToArray(a);var o=i.getBoundingClientRect();"left"===r.labels.align?(a.forEach((function(e,t){e.setAttribute("text-anchor","start")})),r.opposite||i.setAttribute("transform","translate(-".concat(o.width,", 0)"))):"center"===r.labels.align?(a.forEach((function(e,t){e.setAttribute("text-anchor","middle")})),i.setAttribute("transform","translate(".concat(o.width/2*(r.opposite?1:-1),", 0)"))):"right"===r.labels.align&&(a.forEach((function(e,t){e.setAttribute("text-anchor","end")})),r.opposite&&i.setAttribute("transform","translate(".concat(o.width,", 0)")))}}))}}]),e}(),Q=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.documentEvent=_.bind(this.documentEvent,this)}return u(e,[{key:"addEventListener",value:function(e,t){var n=this.w;n.globals.events.hasOwnProperty(e)?n.globals.events[e].push(t):n.globals.events[e]=[t]}},{key:"removeEventListener",value:function(e,t){var n=this.w;if(n.globals.events.hasOwnProperty(e)){var r=n.globals.events[e].indexOf(t);-1!==r&&n.globals.events[e].splice(r,1)}}},{key:"fireEvent",value:function(e,t){var n=this.w;if(n.globals.events.hasOwnProperty(e)){t&&t.length||(t=[]);for(var r=n.globals.events[e],i=r.length,a=0;a0&&(t=this.w.config.chart.locales.concat(window.Apex.chart.locales));var n=t.filter((function(t){return t.name===e}))[0];if(!n)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var r=_.extend(k,n);this.w.globals.locale=r.options}}]),e}(),ee=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return u(e,[{key:"drawAxis",value:function(e,t){var n,r,i=this.w.globals,a=this.w.config,o=new Y(this.ctx),s=new $(this.ctx);i.axisCharts&&"radar"!==e&&(i.isBarHorizontal?(r=s.drawYaxisInversed(0),n=o.drawXaxisInversed(0),i.dom.elGraphical.add(n),i.dom.elGraphical.add(r)):(n=o.drawXaxis(),i.dom.elGraphical.add(n),a.yaxis.map((function(e,t){-1===i.ignoreYAxisIndexes.indexOf(t)&&(r=s.drawYaxis(t),i.dom.Paper.add(r))}))))}}]),e}(),te=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return u(e,[{key:"drawXCrosshairs",value:function(){var e=this.w,t=new E(this.ctx),n=new x(this.ctx),r=e.config.xaxis.crosshairs.fill.gradient,i=e.config.xaxis.crosshairs.dropShadow,a=e.config.xaxis.crosshairs.fill.type,o=r.colorFrom,s=r.colorTo,l=r.opacityFrom,u=r.opacityTo,c=r.stops,d=i.enabled,f=i.left,p=i.top,h=i.blur,m=i.color,g=i.opacity,v=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){"gradient"===a&&(v=t.drawGradient("vertical",o,s,l,u,null,c,null));var y=t.drawRect();1===e.config.xaxis.crosshairs.width&&(y=t.drawLine());var b=e.globals.gridHeight;(!_.isNumber(b)||b<0)&&(b=0);var S=e.config.xaxis.crosshairs.width;(!_.isNumber(S)||S<0)&&(S=0),y.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:b,width:S,height:b,fill:v,filter:"none","fill-opacity":e.config.xaxis.crosshairs.opacity,stroke:e.config.xaxis.crosshairs.stroke.color,"stroke-width":e.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":e.config.xaxis.crosshairs.stroke.dashArray}),d&&(y=n.dropShadow(y,{left:f,top:p,blur:h,color:m,opacity:g})),e.globals.dom.elGraphical.add(y)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,t=new E(this.ctx),n=e.config.yaxis[0].crosshairs,r=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var i=t.drawLine(-r,0,e.globals.gridWidth+r,0,n.stroke.color,n.stroke.dashArray,n.stroke.width);i.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(i)}var a=t.drawLine(-r,0,e.globals.gridWidth+r,0,n.stroke.color,0,0);a.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(a)}}]),e}(),ne=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return u(e,[{key:"checkResponsiveConfig",value:function(e){var t=this,n=this.w,r=n.config;if(0!==r.responsive.length){var i=r.responsive.slice();i.sort((function(e,t){return e.breakpoint>t.breakpoint?1:t.breakpoint>e.breakpoint?-1:0})).reverse();var a=new P({}),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i[0].breakpoint,o=window.innerWidth>0?window.innerWidth:screen.width;if(o>r){var s=S.extendArrayProps(a,n.globals.initialConfig,n);e=_.extend(s,e),e=_.extend(n.config,e),t.overrideResponsiveOptions(e)}else for(var l=0;l0&&"function"==typeof t.config.colors[0]&&(t.globals.colors=t.config.series.map((function(n,r){var i=t.config.colors[r];return i||(i=t.config.colors[0]),"function"==typeof i?(e.isColorFn=!0,i({value:t.globals.axisCharts?t.globals.series[r][0]?t.globals.series[r][0]:0:t.globals.series[r],seriesIndex:r,dataPointIndex:r,w:t})):i})))),t.globals.seriesColors.map((function(e,n){e&&(t.globals.colors[n]=e)})),t.config.theme.monochrome.enabled){var r=[],i=t.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(i=t.globals.series[0].length*t.globals.series.length);for(var a=t.config.theme.monochrome.color,o=1/(i/t.config.theme.monochrome.shadeIntensity),s=t.config.theme.monochrome.shadeTo,l=0,u=0;u2&&void 0!==arguments[2]?arguments[2]:null,r=this.w,i=t||r.globals.series.length;if(null===n&&(n=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===r.config.chart.type&&r.config.plotOptions.heatmap.colorScale.inverse),n&&r.globals.series.length&&(i=r.globals.series[r.globals.maxValsInArrayIndex].length*r.globals.series.length),e.lengthe.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(e,t){var n=e;if(this.w.globals.isMultiLineX){var r=t.map((function(e,t){return Array.isArray(e)?e.length:1})),i=Math.max.apply(Math,g(r));n=t[r.indexOf(i)]}return n}}]),e}(),oe=function(){function e(t){s(this,e),this.w=t.w,this.dCtx=t}return u(e,[{key:"getxAxisLabelsCoords",value:function(){var e,t=this.w,n=t.globals.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&0===n.length&&(n=t.globals.categoryLabels),t.globals.timescaleLabels.length>0){var r=this.getxAxisTimeScaleLabelsCoords();e={width:r.width,height:r.height},t.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==t.config.legend.position&&"right"!==t.config.legend.position||t.config.legend.floating?0:this.dCtx.lgRect.width;var i=t.globals.xLabelFormatter,a=_.getLargestStringFromArr(n),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(a,n);t.globals.isBarHorizontal&&(o=a=t.globals.yAxisScale[0].result.reduce((function(e,t){return e.length>t.length?e:t}),0));var s=new V(this.dCtx.ctx),l=a;a=s.xLabelFormat(i,a,l,{i:void 0,dateFormatter:new I(this.dCtx.ctx).formatDate,w:t}),o=s.xLabelFormat(i,o,l,{i:void 0,dateFormatter:new I(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&void 0===a||""===String(a).trim())&&(o=a="1");var u=new E(this.dCtx.ctx),c=u.getTextRects(a,t.config.xaxis.labels.style.fontSize),d=c;if(a!==o&&(d=u.getTextRects(o,t.config.xaxis.labels.style.fontSize)),(e={width:c.width>=d.width?c.width:d.width,height:c.height>=d.height?c.height:d.height}).width*n.length>t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==t.config.xaxis.labels.rotate||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.globals.rotateXLabels=!0;var f=function(e){return u.getTextRects(e,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};c=f(a),a!==o&&(d=f(o)),e.height=(c.height>d.height?c.height:d.height)/1.5,e.width=c.width>d.width?c.width:d.width}}else t.globals.rotateXLabels=!1}return t.config.xaxis.labels.show||(e={width:0,height:0}),{width:e.width,height:e.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var e,t=this.w;if(!t.globals.hasGroups)return{width:0,height:0};var n,r=(null===(e=t.config.xaxis.group.style)||void 0===e?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,i=t.globals.groups.map((function(e){return e.title})),a=_.getLargestStringFromArr(i),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(a,i),s=new E(this.dCtx.ctx),l=s.getTextRects(a,r),u=l;return a!==o&&(u=s.getTextRects(o,r)),n={width:l.width>=u.width?l.width:u.width,height:l.height>=u.height?l.height:u.height},t.config.xaxis.labels.show||(n={width:0,height:0}),{width:n.width,height:n.height}}},{key:"getxAxisTitleCoords",value:function(){var e=this.w,t=0,n=0;if(void 0!==e.config.xaxis.title.text){var r=new E(this.dCtx.ctx).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=r.width,n=r.height}return{width:t,height:n}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var e,t=this.w;this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice();var n=this.dCtx.timescaleLabels.map((function(e){return e.value})),r=n.reduce((function(e,t){return void 0===e?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):e.length>t.length?e:t}),0);return 1.05*(e=new E(this.dCtx.ctx).getTextRects(r,t.config.xaxis.labels.style.fontSize)).width*n.length>t.globals.gridWidth&&0!==t.config.xaxis.labels.rotate&&(t.globals.overlappingXLabels=!0),e}},{key:"additionalPaddingXLabels",value:function(e){var t=this,n=this.w,r=n.globals,i=n.config,a=i.xaxis.type,o=e.width;r.skipLastTimelinelabel=!1,r.skipFirstTimelinelabel=!1;var s=n.config.yaxis[0].opposite&&n.globals.isBarHorizontal,l=function(e,s){(function(e){return-1!==r.collapsedSeriesIndices.indexOf(e)})(s)||function(e){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var s=t.dCtx.timescaleLabels[0],l=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+o/1.75-t.dCtx.yAxisWidthRight,u=s.position-o/1.75+t.dCtx.yAxisWidthLeft,c="right"===n.config.legend.position&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;l>r.svgWidth-r.translateX-c&&(r.skipLastTimelinelabel=!0),u<-(e.show&&!e.floating||"bar"!==i.chart.type&&"candlestick"!==i.chart.type&&"rangeBar"!==i.chart.type&&"boxPlot"!==i.chart.type?10:o/1.75)&&(r.skipFirstTimelinelabel=!0)}else"datetime"===a?t.dCtx.gridPad.rightString(s.niceMax).length?c:s.niceMax,f=u(d,{seriesIndex:o,dataPointIndex:-1,w:t}),p=f;if(void 0!==f&&0!==f.length||(f=d),t.globals.isBarHorizontal){r=0;var h=t.globals.labels.slice();f=u(f=_.getLargestStringFromArr(h),{seriesIndex:o,dataPointIndex:-1,w:t}),p=e.dCtx.dimHelpers.getLargestStringFromMultiArr(f,h)}var m=new E(e.dCtx.ctx),g="rotate(".concat(a.labels.rotate," 0 0)"),v=m.getTextRects(f,a.labels.style.fontSize,a.labels.style.fontFamily,g,!1),y=v;f!==p&&(y=m.getTextRects(p,a.labels.style.fontSize,a.labels.style.fontFamily,g,!1)),n.push({width:(l>y.width||l>v.width?l:y.width>v.width?y.width:v.width)+r,height:y.height>v.height?y.height:v.height})}else n.push({width:0,height:0})})),n}},{key:"getyAxisTitleCoords",value:function(){var e=this,t=this.w,n=[];return t.config.yaxis.map((function(t,r){if(t.show&&void 0!==t.title.text){var i=new E(e.dCtx.ctx),a="rotate(".concat(t.title.rotate," 0 0)"),o=i.getTextRects(t.title.text,t.title.style.fontSize,t.title.style.fontFamily,a,!1);n.push({width:o.width,height:o.height})}else n.push({width:0,height:0})})),n}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,t=0,n=0,r=0,i=e.globals.yAxisScale.length>1?10:0,a=new q(this.dCtx.ctx),o=function(o,s){var l=e.config.yaxis[s].floating,u=0;o.width>0&&!l?(u=o.width+i,function(t){return e.globals.ignoreYAxisIndexes.indexOf(t)>-1}(s)&&(u=u-o.width-i)):u=l||a.isYAxisHidden(s)?0:5,e.config.yaxis[s].opposite?r+=u:n+=u,t+=u};return e.globals.yLabelsCoords.map((function(e,t){o(e,t)})),e.globals.yTitleCoords.map((function(e,t){o(e,t)})),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.globals.yLabelsCoords[0].width+e.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=n,this.dCtx.yAxisWidthRight=r,t}}]),e}(),le=function(){function e(t){s(this,e),this.w=t.w,this.dCtx=t}return u(e,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var t=this.w;if(t.globals.noData||t.globals.allSeriesCollapsed)return 0;var n=function(e){return"bar"===e||"rangeBar"===e||"candlestick"===e||"boxPlot"===e},r=t.config.chart.type,i=0,a=n(r)?t.config.series.length:1;if(t.globals.comboBarCount>0&&(a=t.globals.comboBarCount),t.globals.collapsedSeries.forEach((function(e){n(e.type)&&(a-=1)})),t.config.chart.stacked&&(a=1),(n(r)||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&a>0){var o,s,l=Math.abs(t.globals.initialMaxX-t.globals.initialMinX);l<=3&&(l=t.globals.dataPoints),o=l/e,t.globals.minXDiff&&t.globals.minXDiff/o>0&&(s=t.globals.minXDiff/o),s>e/2&&(s/=2),(i=s/a*parseInt(t.config.plotOptions.bar.columnWidth,10)/100)<1&&(i=1),i=i/(a>1?1:1.5)+5,t.globals.barPadForNumericAxis=i}return i}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,t=this.w,n=t.globals,r=this.dCtx.isSparkline||!t.globals.axisCharts?0:10;["title","subtitle"].forEach((function(n){void 0!==t.config[n].text?r+=t.config[n].margin:r+=e.dCtx.isSparkline||!t.globals.axisCharts?0:5})),!t.config.legend.show||"bottom"!==t.config.legend.position||t.config.legend.floating||t.globals.axisCharts||(r+=10);var i=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),a=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");n.gridHeight=n.gridHeight-i.height-a.height-r,n.translateY=n.translateY+i.height+a.height+r}},{key:"setGridXPosForDualYAxis",value:function(e,t){var n=this.w,r=new q(this.dCtx.ctx);n.config.yaxis.map((function(i,a){-1!==n.globals.ignoreYAxisIndexes.indexOf(a)||i.floating||r.isYAxisHidden(a)||(i.opposite&&(n.globals.translateX=n.globals.translateX-(t[a].width+e[a].width)-parseInt(n.config.yaxis[a].labels.style.fontSize,10)/1.2-12),n.globals.translateX<2&&(n.globals.translateX=2))}))}}]),e}(),ue=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new ae(this),this.dimYAxis=new se(this),this.dimXAxis=new oe(this),this.dimGrid=new le(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return u(e,[{key:"plotCoords",value:function(){var e=this,t=this.w,n=t.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&(t.config.markers.discrete.length>0||t.config.markers.size>0)&&Object.entries(this.gridPad).forEach((function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(e,t)||v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),r=n[0],i=n[1];e.gridPad[r]=Math.max(i,e.w.globals.markers.largestSize/1.5)})),n.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),n.gridHeight=n.gridHeight-this.gridPad.top-this.gridPad.bottom,n.gridWidth=n.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var r=this.dimGrid.gridPadForColumnsInNumericAxis(n.gridWidth);n.gridWidth=n.gridWidth-2*r,n.translateX=n.translateX+this.gridPad.left+this.xPadLeft+(r>0?r+4:0),n.translateY=n.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var e=this,t=this.w,n=t.globals,r=this.dimYAxis.getyAxisLabelsCoords(),i=this.dimYAxis.getyAxisTitleCoords();t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map((function(e,n){t.globals.yLabelsCoords.push({width:r[n].width,index:n}),t.globals.yTitleCoords.push({width:i[n].width,index:n})})),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var a=this.dimXAxis.getxAxisLabelsCoords(),o=this.dimXAxis.getxAxisGroupLabelsCoords(),s=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(a,s,o),n.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4,n.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(n.rotateXLabels=!1,n.translateXAxisY=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1),n.translateXAxisY=n.translateXAxisY+t.config.xaxis.labels.offsetY,n.translateXAxisX=n.translateXAxisX+t.config.xaxis.labels.offsetX;var l=this.yAxisWidth,u=this.xAxisHeight;n.xAxisLabelsHeight=this.xAxisHeight-s.height,n.xAxisGroupLabelsHeight=n.xAxisLabelsHeight-a.height,n.xAxisLabelsWidth=this.xAxisWidth,n.xAxisHeight=this.xAxisHeight;var c=10;("radar"===t.config.chart.type||this.isSparkline)&&(l=0,u=n.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===t.config.chart.type)&&(l=0,u=0,c=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(a);var d=function(){n.translateX=l,n.gridHeight=n.svgHeight-e.lgRect.height-u-(e.isSparkline||"treemap"===t.config.chart.type?0:t.globals.rotateXLabels?10:15),n.gridWidth=n.svgWidth-l};switch("top"===t.config.xaxis.position&&(c=n.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":n.translateY=c,d();break;case"top":n.translateY=this.lgRect.height+c,d();break;case"left":n.translateY=c,n.translateX=this.lgRect.width+l,n.gridHeight=n.svgHeight-u-12,n.gridWidth=n.svgWidth-this.lgRect.width-l;break;case"right":n.translateY=c,n.translateX=l,n.gridHeight=n.svgHeight-u-12,n.gridWidth=n.svgWidth-this.lgRect.width-l-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(i,r),new $(this.ctx).setYAxisXPosition(r,i)}},{key:"setDimensionsForNonAxisCharts",value:function(){var e=this.w,t=e.globals,n=e.config,r=0;e.config.legend.show&&!e.config.legend.floating&&(r=20);var i="pie"===n.chart.type||"polarArea"===n.chart.type||"donut"===n.chart.type?"pie":"radialBar",a=n.plotOptions[i].offsetY,o=n.plotOptions[i].offsetX;if(!n.legend.show||n.legend.floating)return t.gridHeight=t.svgHeight-n.grid.padding.left+n.grid.padding.right,t.gridWidth=t.gridHeight,t.translateY=a,void(t.translateX=o+(t.svgWidth-t.gridWidth)/2);switch(n.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=a-10,t.translateX=o+(t.svgWidth-t.gridWidth)/2;break;case"top":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=this.lgRect.height+a+10,t.translateX=o+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-r,t.gridHeight="auto"!==n.chart.height?t.svgHeight:t.gridWidth,t.translateY=a,t.translateX=o+this.lgRect.width+r;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-r-5,t.gridHeight="auto"!==n.chart.height?t.svgHeight:t.gridWidth,t.translateY=a,t.translateX=o+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,t,n){var r=this.w,i=r.globals.hasGroups?2:1,a=n.height+e.height+t.height,o=r.globals.isMultiLineX?1.2:r.globals.LINE_HEIGHT_RATIO,s=r.globals.rotateXLabels?22:10,l=r.globals.rotateXLabels&&"bottom"===r.config.legend.position?10:0;this.xAxisHeight=a*o+i*s+l,this.xAxisWidth=e.width,this.xAxisHeight-t.height>r.config.xaxis.labels.maxHeight&&(this.xAxisHeight=r.config.xaxis.labels.maxHeight),r.config.xaxis.labels.minHeight&&this.xAxisHeightc&&(this.yAxisWidth=c)}}]),e}(),ce=function(){function e(t){s(this,e),this.w=t.w,this.lgCtx=t}return u(e,[{key:"getLegendStyles",value:function(){var e=document.createElement("style");e.setAttribute("type","text/css");var t=document.createTextNode("\t\n \t\n .apexcharts-legend {\t\n display: flex;\t\n overflow: auto;\t\n padding: 0 10px;\t\n }\t\n .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\t\n flex-wrap: wrap\t\n }\t\n .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\t\n flex-direction: column;\t\n bottom: 0;\t\n }\t\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\t\n justify-content: flex-start;\t\n }\t\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\t\n justify-content: center; \t\n }\t\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\t\n justify-content: flex-end;\t\n }\t\n .apexcharts-legend-series {\t\n cursor: pointer;\t\n line-height: normal;\t\n }\t\n .apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{\t\n display: flex;\t\n align-items: center;\t\n }\t\n .apexcharts-legend-text {\t\n position: relative;\t\n font-size: 14px;\t\n }\t\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\t\n pointer-events: none;\t\n }\t\n .apexcharts-legend-marker {\t\n position: relative;\t\n display: inline-block;\t\n cursor: pointer;\t\n margin-right: 3px;\t\n border-style: solid;\n }\t\n \t\n .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{\t\n display: inline-block;\t\n }\t\n .apexcharts-legend-series.apexcharts-no-click {\t\n cursor: auto;\t\n }\t\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\t\n display: none !important;\t\n }\t\n .apexcharts-inactive-legend {\t\n opacity: 0.45;\t\n }");return e.appendChild(t),e}},{key:"getLegendBBox",value:function(){var e=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),t=e.width;return{clwh:e.height,clww:t}}},{key:"appendToForeignObject",value:function(){var e=this.w.globals;e.dom.elLegendForeign=document.createElementNS(e.SVGNS,"foreignObject");var t=e.dom.elLegendForeign;t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("width",e.svgWidth),t.setAttribute("height",e.svgHeight),e.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),t.appendChild(e.dom.elLegendWrap),t.appendChild(this.getLegendStyles()),e.dom.Paper.node.insertBefore(t,e.dom.elGraphical.node)}},{key:"toggleDataSeries",value:function(e,t){var n=this,r=this.w;if(r.globals.axisCharts||"radialBar"===r.config.chart.type){r.globals.resized=!0;var i=null,a=null;r.globals.risingSeries=[],r.globals.axisCharts?(i=r.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']")),a=parseInt(i.getAttribute("data:realIndex"),10)):(i=r.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']")),a=parseInt(i.getAttribute("rel"),10)-1),t?[{cs:r.globals.collapsedSeries,csi:r.globals.collapsedSeriesIndices},{cs:r.globals.ancillaryCollapsedSeries,csi:r.globals.ancillaryCollapsedSeriesIndices}].forEach((function(e){n.riseCollapsedSeries(e.cs,e.csi,a)})):this.hideSeries({seriesEl:i,realIndex:a})}else{var o=r.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(e+1,"'] path")),s=r.config.chart.type;if("pie"===s||"polarArea"===s||"donut"===s){var l=r.config.plotOptions.pie.donut.labels;new E(this.lgCtx.ctx).pathMouseDown(o.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(o.members[0].node,l)}o.fire("click")}}},{key:"hideSeries",value:function(e){var t=e.seriesEl,n=e.realIndex,r=this.w,i=_.clone(r.config.series);if(r.globals.axisCharts){var a=!1;if(r.config.yaxis[n]&&r.config.yaxis[n].show&&r.config.yaxis[n].showAlways&&(a=!0,r.globals.ancillaryCollapsedSeriesIndices.indexOf(n)<0&&(r.globals.ancillaryCollapsedSeries.push({index:n,data:i[n].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),r.globals.ancillaryCollapsedSeriesIndices.push(n))),!a){r.globals.collapsedSeries.push({index:n,data:i[n].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),r.globals.collapsedSeriesIndices.push(n);var o=r.globals.risingSeries.indexOf(n);r.globals.risingSeries.splice(o,1)}}else r.globals.collapsedSeries.push({index:n,data:i[n]}),r.globals.collapsedSeriesIndices.push(n);for(var s=t.childNodes,l=0;l0){for(var a=0;a-1&&(e[r].data=[])})):e.forEach((function(n,r){t.globals.collapsedSeriesIndices.indexOf(r)>-1&&(e[r]=0)})),e}}]),e}(),de=function(){function e(t,n){s(this,e),this.ctx=t,this.w=t.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new ce(this)}return u(e,[{key:"init",value:function(){var e=this.w,t=e.globals,n=e.config;if((n.legend.showForSingleSeries&&1===t.series.length||this.isBarsDistributed||t.series.length>1||!t.axisCharts)&&n.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),_.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),"bottom"===n.legend.position||"top"===n.legend.position?this.legendAlignHorizontal():"right"!==n.legend.position&&"left"!==n.legend.position||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var e=this,t=this.w,n=t.config.legend.fontFamily,r=t.globals.seriesNames,i=t.globals.colors.slice();if("heatmap"===t.config.chart.type){var a=t.config.plotOptions.heatmap.colorScale.ranges;r=a.map((function(e){return e.name?e.name:e.from+" - "+e.to})),i=a.map((function(e){return e.color}))}else this.isBarsDistributed&&(r=t.globals.labels.slice());t.config.legend.customLegendItems.length&&(r=t.config.legend.customLegendItems);for(var o=t.globals.legendFormatter,s=t.config.legend.inverseOrder,l=s?r.length-1:0;s?l>=0:l<=r.length-1;s?l--:l++){var u=o(r[l],{seriesIndex:l,w:t}),c=!1,d=!1;if(t.globals.collapsedSeries.length>0)for(var f=0;f0)for(var p=0;p0?l-10:0)+(u>0?u-10:0)}r.style.position="absolute",a=a+e+n.config.legend.offsetX,o=o+t+n.config.legend.offsetY,r.style.left=a+"px",r.style.top=o+"px","bottom"===n.config.legend.position?(r.style.top="auto",r.style.bottom=5-n.config.legend.offsetY+"px"):"right"===n.config.legend.position&&(r.style.left="auto",r.style.right=25+n.config.legend.offsetX+"px"),["width","height"].forEach((function(e){r.style[e]&&(r.style[e]=parseInt(n.config.legend[e],10)+"px")}))}},{key:"legendAlignHorizontal",value:function(){var e=this.w;e.globals.dom.baseEl.querySelector(".apexcharts-legend").style.right=0;var t=this.legendHelpers.getLegendBBox(),n=new ue(this.ctx),r=n.dimHelpers.getTitleSubtitleCoords("title"),i=n.dimHelpers.getTitleSubtitleCoords("subtitle"),a=0;"bottom"===e.config.legend.position?a=-t.clwh/1.8:"top"===e.config.legend.position&&(a=r.height+i.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,a)}},{key:"legendAlignVertical",value:function(){var e=this.w,t=this.legendHelpers.getLegendBBox(),n=0;"left"===e.config.legend.position&&(n=20),"right"===e.config.legend.position&&(n=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(n,20)}},{key:"onLegendHovered",value:function(e){var t=this.w,n=e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker");if("heatmap"===t.config.chart.type||this.isBarsDistributed){if(n){var r=parseInt(e.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,r,this.w]),new j(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&n&&new j(this.ctx).toggleSeriesOnHover(e,e.target)}},{key:"onLegendClick",value:function(e){var t=this.w;if(!t.config.legend.customLegendItems.length&&(e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker"))){var n=parseInt(e.target.getAttribute("rel"),10)-1,r="true"===e.target.getAttribute("data:collapsed"),i=this.w.config.chart.events.legendClick;"function"==typeof i&&i(this.ctx,n,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,n,this.w]);var a=this.w.config.legend.markers.onClick;"function"==typeof a&&e.target.classList.contains("apexcharts-legend-marker")&&(a(this.ctx,n,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,n,this.w])),"treemap"!==t.config.chart.type&&"heatmap"!==t.config.chart.type&&!this.isBarsDistributed&&t.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(n,r)}}}]),e}(),fe=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=n.globals.minX,this.maxX=n.globals.maxX}return u(e,[{key:"createToolbar",value:function(){var e=this,t=this.w,n=function(){return document.createElement("div")},r=n();if(r.setAttribute("class","apexcharts-toolbar"),r.style.top=t.config.chart.toolbar.offsetY+"px",r.style.right=3-t.config.chart.toolbar.offsetX+"px",t.globals.dom.elWrap.appendChild(r),this.elZoom=n(),this.elZoomIn=n(),this.elZoomOut=n(),this.elPan=n(),this.elSelection=n(),this.elZoomReset=n(),this.elMenuIcon=n(),this.elMenu=n(),this.elCustomIcons=[],this.t=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var i=0;i\n \n \n\n'),o("zoomOut",this.elZoomOut,'\n \n \n\n');var s=function(n){e.t[n]&&t.config.chart[n].enabled&&a.push({el:"zoom"===n?e.elZoom:e.elSelection,icon:"string"==typeof e.t[n]?e.t[n]:"zoom"===n?'\n \n \n \n':'\n \n \n',title:e.localeValues["zoom"===n?"selectionZoom":"selection"],class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(n,"-icon")})};s("zoom"),s("selection"),this.t.pan&&t.config.chart.zoom.enabled&&a.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'\n \n \n \n \n \n \n \n',title:this.localeValues.pan,class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),o("reset",this.elZoomReset,'\n \n \n'),this.t.download&&a.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var l=0;l0&&t.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:e.globals.gridWidth,maxY:e.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var e=this.w,t=this.xyRatios;if(!e.globals.zoomEnabled)if(void 0!==e.globals.selection&&null!==e.globals.selection)this.drawSelectionRect(e.globals.selection);else if(void 0!==e.config.chart.selection.xaxis.min&&void 0!==e.config.chart.selection.xaxis.max){var n=(e.config.chart.selection.xaxis.min-e.globals.minX)/t.xRatio,r={x:n,y:0,width:e.globals.gridWidth-(e.globals.maxX-e.config.chart.selection.xaxis.max)/t.xRatio-n,height:e.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(r),this.makeSelectionRectDraggable(),"function"==typeof e.config.chart.events.selection&&e.config.chart.events.selection(this.ctx,{xaxis:{min:e.config.chart.selection.xaxis.min,max:e.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.translateX,o=void 0===a?0:a,s=e.translateY,l=void 0===s?0:s,u=this.w,c=this.zoomRect,d=this.selectionRect;if(this.dragged||null!==u.globals.selection){var f={transform:"translate("+o+", "+l+")"};u.globals.zoomEnabled&&this.dragged&&(r<0&&(r=1),c.attr({x:t,y:n,width:r,height:i,fill:u.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":u.config.chart.zoom.zoomedArea.fill.opacity,stroke:u.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":u.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":u.config.chart.zoom.zoomedArea.stroke.opacity}),E.setAttrs(c.node,f)),u.globals.selectionEnabled&&(d.attr({x:t,y:n,width:r>0?r:0,height:i>0?i:0,fill:u.config.chart.selection.fill.color,"fill-opacity":u.config.chart.selection.fill.opacity,stroke:u.config.chart.selection.stroke.color,"stroke-width":u.config.chart.selection.stroke.width,"stroke-dasharray":u.config.chart.selection.stroke.dashArray,"stroke-opacity":u.config.chart.selection.stroke.opacity}),E.setAttrs(d.node,f))}}},{key:"hideSelectionRect",value:function(e){e&&e.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(e){var t,n=e.context,r=e.zoomtype,i=this.w,a=n,o=this.gridRect.getBoundingClientRect(),s=a.startX-1,l=a.startY,u=!1,c=!1,d=a.clientX-o.left-s,f=a.clientY-o.top-l;return Math.abs(d+s)>i.globals.gridWidth?d=i.globals.gridWidth-s:a.clientX-o.left<0&&(d=s),s>a.clientX-o.left&&(u=!0,d=Math.abs(d)),l>a.clientY-o.top&&(c=!0,f=Math.abs(f)),t="x"===r?{x:u?s-d:s,y:0,width:d,height:i.globals.gridHeight}:"y"===r?{x:0,y:c?l-f:l,width:i.globals.gridWidth,height:f}:{x:u?s-d:s,y:c?l-f:l,width:d,height:f},a.drawSelectionRect(t),a.selectionDragging("resizing"),t}},{key:"selectionDragging",value:function(e,t){var n=this,r=this.w,i=this.xyRatios,a=this.selectionRect,o=0;"resizing"===e&&(o=30);var s=function(e){return parseFloat(a.node.getAttribute(e))},l={x:s("x"),y:s("y"),width:s("width"),height:s("height")};r.globals.selection=l,"function"==typeof r.config.chart.events.selection&&r.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout((function(){var e=n.gridRect.getBoundingClientRect(),t=a.node.getBoundingClientRect(),o={xaxis:{min:r.globals.xAxisScale.niceMin+(t.left-e.left)*i.xRatio,max:r.globals.xAxisScale.niceMin+(t.right-e.left)*i.xRatio},yaxis:{min:r.globals.yAxisScale[0].niceMin+(e.bottom-t.bottom)*i.yRatio[0],max:r.globals.yAxisScale[0].niceMax-(t.top-e.top)*i.yRatio[0]}};r.config.chart.events.selection(n.ctx,o),r.config.chart.brush.enabled&&void 0!==r.config.chart.events.brushScrolled&&r.config.chart.events.brushScrolled(n.ctx,o)}),o))}},{key:"selectionDrawn",value:function(e){var t=e.context,n=e.zoomtype,r=this.w,i=t,a=this.xyRatios,o=this.ctx.toolbar;if(i.startX>i.endX){var s=i.startX;i.startX=i.endX,i.endX=s}if(i.startY>i.endY){var l=i.startY;i.startY=i.endY,i.endY=l}var u=void 0,c=void 0;r.globals.isRangeBar?(u=r.globals.yAxisScale[0].niceMin+i.startX*a.invertedYRatio,c=r.globals.yAxisScale[0].niceMin+i.endX*a.invertedYRatio):(u=r.globals.xAxisScale.niceMin+i.startX*a.xRatio,c=r.globals.xAxisScale.niceMin+i.endX*a.xRatio);var d=[],f=[];if(r.config.yaxis.forEach((function(e,t){d.push(r.globals.yAxisScale[t].niceMax-a.yRatio[t]*i.startY),f.push(r.globals.yAxisScale[t].niceMax-a.yRatio[t]*i.endY)})),i.dragged&&(i.dragX>10||i.dragY>10)&&u!==c)if(r.globals.zoomEnabled){var p=_.clone(r.globals.initialConfig.yaxis),h=_.clone(r.globals.initialConfig.xaxis);if(r.globals.zoomed=!0,r.config.xaxis.convertedCatToNumeric&&(u=Math.floor(u),c=Math.floor(c),u<1&&(u=1,c=r.globals.dataPoints),c-u<2&&(c=u+1)),"xy"!==n&&"x"!==n||(h={min:u,max:c}),"xy"!==n&&"y"!==n||p.forEach((function(e,t){p[t].min=f[t],p[t].max=d[t]})),r.config.chart.zoom.autoScaleYaxis){var m=new X(i.ctx);p=m.autoScaleY(i.ctx,p,{xaxis:h})}if(o){var g=o.getBeforeZoomRange(h,p);g&&(h=g.xaxis?g.xaxis:h,p=g.yaxis?g.yaxis:p)}var v={xaxis:h};r.config.chart.group||(v.yaxis=p),i.ctx.updateHelpers._updateOptions(v,!1,i.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof r.config.chart.events.zoomed&&o.zoomCallback(h,p)}else if(r.globals.selectionEnabled){var y,b=null;y={min:u,max:c},"xy"!==n&&"y"!==n||(b=_.clone(r.config.yaxis)).forEach((function(e,t){b[t].min=f[t],b[t].max=d[t]})),r.globals.selection=i.selection,"function"==typeof r.config.chart.events.selection&&r.config.chart.events.selection(i.ctx,{xaxis:y,yaxis:b})}}},{key:"panDragging",value:function(e){var t=e.context,n=this.w,r=t;if(void 0!==n.globals.lastClientPosition.x){var i=n.globals.lastClientPosition.x-r.clientX,a=n.globals.lastClientPosition.y-r.clientY;Math.abs(i)>Math.abs(a)&&i>0?this.moveDirection="left":Math.abs(i)>Math.abs(a)&&i<0?this.moveDirection="right":Math.abs(a)>Math.abs(i)&&a>0?this.moveDirection="up":Math.abs(a)>Math.abs(i)&&a<0&&(this.moveDirection="down")}n.globals.lastClientPosition={x:r.clientX,y:r.clientY};var o=n.globals.isRangeBar?n.globals.minY:n.globals.minX,s=n.globals.isRangeBar?n.globals.maxY:n.globals.maxX;n.config.xaxis.convertedCatToNumeric||r.panScrolled(o,s)}},{key:"delayedPanScrolled",value:function(){var e=this.w,t=e.globals.minX,n=e.globals.maxX,r=(e.globals.maxX-e.globals.minX)/2;"left"===this.moveDirection?(t=e.globals.minX+r,n=e.globals.maxX+r):"right"===this.moveDirection&&(t=e.globals.minX-r,n=e.globals.maxX-r),t=Math.floor(t),n=Math.floor(n),this.updateScrolledChart({xaxis:{min:t,max:n}},t,n)}},{key:"panScrolled",value:function(e,t){var n=this.w,r=this.xyRatios,i=_.clone(n.globals.initialConfig.yaxis),a=r.xRatio,o=n.globals.minX,s=n.globals.maxX;n.globals.isRangeBar&&(a=r.invertedYRatio,o=n.globals.minY,s=n.globals.maxY),"left"===this.moveDirection?(e=o+n.globals.gridWidth/15*a,t=s+n.globals.gridWidth/15*a):"right"===this.moveDirection&&(e=o-n.globals.gridWidth/15*a,t=s-n.globals.gridWidth/15*a),n.globals.isRangeBar||(en.globals.initialMaxX)&&(e=o,t=s);var l={min:e,max:t};n.config.chart.zoom.autoScaleYaxis&&(i=new X(this.ctx).autoScaleY(this.ctx,i,{xaxis:l}));var u={xaxis:{min:e,max:t}};n.config.chart.group||(u.yaxis=i),this.updateScrolledChart(u,e,t)}},{key:"updateScrolledChart",value:function(e,t,n){var r=this.w;this.ctx.updateHelpers._updateOptions(e,!1,!1),"function"==typeof r.config.chart.events.scrolled&&r.config.chart.events.scrolled(this.ctx,{xaxis:{min:t,max:n}})}}]),n}(),he=function(){function e(t){s(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx}return u(e,[{key:"getNearestValues",value:function(e){var t=e.hoverArea,n=e.elGrid,r=e.clientX,i=e.clientY,a=this.w,o=n.getBoundingClientRect(),s=o.width,l=o.height,u=s/(a.globals.dataPoints-1),c=l/a.globals.dataPoints,d=this.hasBars();!a.globals.comboCharts&&!d||a.config.xaxis.convertedCatToNumeric||(u=s/a.globals.dataPoints);var f=r-o.left-a.globals.barPadForNumericAxis,p=i-o.top;f<0||p<0||f>s||p>l?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):a.globals.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):a.globals.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));var h=Math.round(f/u),m=Math.floor(p/c);d&&!a.config.xaxis.convertedCatToNumeric&&(h=Math.ceil(f/u),h-=1);var g=null,v=null,y=[],b=[];if(a.globals.seriesXvalues.forEach((function(e){y.push([e[0]+1e-6].concat(e))})),a.globals.seriesYvalues.forEach((function(e){b.push([e[0]+1e-6].concat(e))})),y=y.map((function(e){return e.filter((function(e){return _.isNumber(e)}))})),b=b.map((function(e){return e.filter((function(e){return _.isNumber(e)}))})),a.globals.isXNumeric){var x=this.ttCtx.getElGrid().getBoundingClientRect(),E=f*(x.width/s),S=p*(x.height/l);g=(v=this.closestInMultiArray(E,S,y,b)).index,h=v.j,null!==g&&(y=a.globals.seriesXvalues[g],h=(v=this.closestInArray(E,y)).index)}return a.globals.capturedSeriesIndex=null===g?-1:g,(!h||h<1)&&(h=0),a.globals.isBarHorizontal?a.globals.capturedDataPointIndex=m:a.globals.capturedDataPointIndex=h,{capturedSeries:g,j:a.globals.isBarHorizontal?m:h,hoverX:f,hoverY:p}}},{key:"closestInMultiArray",value:function(e,t,n,r){var i=this.w,a=0,o=null,s=-1;i.globals.series.length>1?a=this.getFirstActiveXArray(n):o=0;var l=n[a][0],u=Math.abs(e-l);if(n.forEach((function(t){t.forEach((function(t,n){var r=Math.abs(e-t);r0?t:-1})),i=0;i0)for(var r=0;rn?-1:0}));var t=[];return e.forEach((function(e){t.push(e.querySelector(".apexcharts-marker"))})),t}},{key:"hasMarkers",value:function(){return this.getElMarkers().length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(e){var t=this.w,n=t.config.markers.hover.size;return void 0===n&&(n=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),n}},{key:"toggleAllTooltipSeriesGroups",value:function(e){var t=this.w,n=this.ttCtx;0===n.allTooltipSeriesGroups.length&&(n.allTooltipSeriesGroups=t.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var r=n.allTooltipSeriesGroups,i=0;i ').concat(n.attrs.name,""),t+="
".concat(n.val,"
")})),y.innerHTML=e+"",_.innerHTML=t+""};o?l.globals.seriesGoals[t][n]&&Array.isArray(l.globals.seriesGoals[t][n])?b():(y.innerHTML="",_.innerHTML=""):b()}else y.innerHTML="",_.innerHTML="";null!==h&&(r[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,r[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==h?h:""),o&&m[0]&&(null==c||l.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||l.globals.collapsedSeriesIndices.indexOf(t)>-1?m[0].parentNode.style.display="none":m[0].parentNode.style.display=l.config.tooltip.items.display)}},{key:"toggleActiveInactiveSeries",value:function(e){var t=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var n=t.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");n&&(n.classList.add("apexcharts-active"),n.style.display=t.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(e){var t=e.i,n=e.j,r=this.w,i=this.ctx.series.filteredSeriesX(),a="",o="",s=null,l=null,u={series:r.globals.series,seriesIndex:t,dataPointIndex:n,w:r},c=r.globals.ttZFormatter;null===n?l=r.globals.series[t]:r.globals.isXNumeric&&"treemap"!==r.config.chart.type?(a=i[t][n],0===i[t].length&&(a=i[this.tooltipUtil.getFirstActiveXArray(i)][n])):a=void 0!==r.globals.labels[n]?r.globals.labels[n]:"";var d=a;return a=r.globals.isXNumeric&&"datetime"===r.config.xaxis.type?new V(this.ctx).xLabelFormat(r.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new I(this.ctx).formatDate,w:this.w}):r.globals.isBarHorizontal?r.globals.yLabelFormatters[0](d,u):r.globals.xLabelFormatter(d,u),void 0!==r.config.tooltip.x.formatter&&(a=r.globals.ttKeyFormatter(d,u)),r.globals.seriesZ.length>0&&r.globals.seriesZ[t].length>0&&(s=c(r.globals.seriesZ[t][n],r)),o="function"==typeof r.config.xaxis.tooltip.formatter?r.globals.xaxisTooltipFormatter(d,u):a,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(a)?a.join(" "):a,xAxisTTVal:Array.isArray(o)?o.join(" "):o,zVal:s}}},{key:"handleCustomTooltip",value:function(e){var t=e.i,n=e.j,r=e.y1,i=e.y2,a=e.w,o=this.ttCtx.getElTooltip(),s=a.config.tooltip.custom;Array.isArray(s)&&s[t]&&(s=s[t]),o.innerHTML=s({ctx:this.ctx,series:a.globals.series,seriesIndex:t,dataPointIndex:n,y1:r,y2:i,w:a})}}]),e}(),ge=function(){function e(t){s(this,e),this.ttCtx=t,this.ctx=t.ctx,this.w=t.w}return u(e,[{key:"moveXCrosshairs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.ttCtx,r=this.w,i=n.getElXCrosshairs(),a=e-n.xcrosshairsWidth/2,o=r.globals.labels.slice().length;if(null!==t&&(a=r.globals.gridWidth/o*t),null===i||r.globals.isBarHorizontal||(i.setAttribute("x",a),i.setAttribute("x1",a),i.setAttribute("x2",a),i.setAttribute("y2",r.globals.gridHeight),i.classList.add("apexcharts-active")),a<0&&(a=0),a>r.globals.gridWidth&&(a=r.globals.gridWidth),n.isXAxisTooltipEnabled){var s=a;"tickWidth"!==r.config.xaxis.crosshairs.width&&"barWidth"!==r.config.xaxis.crosshairs.width||(s=a+n.xcrosshairsWidth/2),this.moveXAxisTooltip(s)}}},{key:"moveYCrosshairs",value:function(e){var t=this.ttCtx;null!==t.ycrosshairs&&E.setAttrs(t.ycrosshairs,{y1:e,y2:e}),null!==t.ycrosshairsHidden&&E.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}},{key:"moveXAxisTooltip",value:function(e){var t=this.w,n=this.ttCtx;if(null!==n.xaxisTooltip&&0!==n.xcrosshairsWidth){n.xaxisTooltip.classList.add("apexcharts-active");var r,i=n.xaxisOffY+t.config.xaxis.tooltip.offsetY+t.globals.translateY+1+t.config.xaxis.offsetY;if(e-=n.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(e))e+=t.globals.translateX,r=new E(this.ctx).getTextRects(n.xaxisTooltipText.innerHTML),n.xaxisTooltipText.style.minWidth=r.width+"px",n.xaxisTooltip.style.left=e+"px",n.xaxisTooltip.style.top=i+"px"}}},{key:"moveYAxisTooltip",value:function(e){var t=this.w,n=this.ttCtx;null===n.yaxisTTEls&&(n.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var r=parseInt(n.ycrosshairsHidden.getAttribute("y1"),10),i=t.globals.translateY+r,a=n.yaxisTTEls[e].getBoundingClientRect().height,o=t.globals.translateYAxisX[e]-2;t.config.yaxis[e].opposite&&(o-=26),i-=a/2,-1===t.globals.ignoreYAxisIndexes.indexOf(e)?(n.yaxisTTEls[e].classList.add("apexcharts-active"),n.yaxisTTEls[e].style.top=i+"px",n.yaxisTTEls[e].style.left=o+t.config.yaxis[e].tooltip.offsetX+"px"):n.yaxisTTEls[e].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.w,i=this.ttCtx,a=i.getElTooltip(),o=i.tooltipRect,s=null!==n?parseFloat(n):1,l=parseFloat(e)+s+5,u=parseFloat(t)+s/2;if(l>r.globals.gridWidth/2&&(l=l-o.ttWidth-s-10),l>r.globals.gridWidth-o.ttWidth-10&&(l=r.globals.gridWidth-o.ttWidth),l<-20&&(l=-20),r.config.tooltip.followCursor){var c=i.getElGrid(),d=c.getBoundingClientRect();u=i.e.clientY+r.globals.translateY-d.top-o.ttHeight/2}else r.globals.isBarHorizontal||(o.ttHeight/2+u>r.globals.gridHeight&&(u=r.globals.gridHeight-o.ttHeight+r.globals.translateY),u<0&&(u=0));isNaN(l)||(l+=r.globals.translateX,a.style.left=l+"px",a.style.top=u+"px")}},{key:"moveMarkers",value:function(e,t){var n=this.w,r=this.ttCtx;if(n.globals.markers.size[e]>0)for(var i=n.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),a=0;a0&&(u.setAttribute("r",s),u.setAttribute("cx",n),u.setAttribute("cy",r)),this.moveXCrosshairs(n),a.fixedTooltip||this.moveTooltip(n,r,s)}}},{key:"moveDynamicPointsOnHover",value:function(e){var t,n=this.ttCtx,r=n.w,i=0,a=0,o=r.globals.pointsArray;t=new j(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var s=n.tooltipUtil.getHoverMarkerSize(t);o[t]&&(i=o[t][e][0],a=o[t][e][1]);var l=n.tooltipUtil.getAllMarkers();if(null!==l)for(var u=0;u0?(l[u]&&l[u].setAttribute("r",s),l[u]&&l[u].setAttribute("cy",d)):l[u]&&l[u].setAttribute("r",0)}}if(this.moveXCrosshairs(i),!n.fixedTooltip){var h=a||r.globals.gridHeight;this.moveTooltip(i,h,s)}}},{key:"moveStickyTooltipOverBars",value:function(e){var t=this.w,n=this.ttCtx,r=t.globals.columnSeries?t.globals.columnSeries.length:t.globals.series.length,i=r>=2&&r%2==0?Math.floor(r/2):Math.floor(r/2)+1;t.globals.isBarHorizontal&&(i=new j(this.ctx).getActiveConfigSeriesIndex("desc")+1);var a=t.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(i,"'] path[j='").concat(e,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(i,"'] path[j='").concat(e,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(i,"'] path[j='").concat(e,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(i,"'] path[j='").concat(e,"']")),o=a?parseFloat(a.getAttribute("cx")):0,s=a?parseFloat(a.getAttribute("cy")):0,l=a?parseFloat(a.getAttribute("barWidth")):0,u=a?parseFloat(a.getAttribute("barHeight")):0,c=n.getElGrid().getBoundingClientRect(),d=a.classList.contains("apexcharts-candlestick-area")||a.classList.contains("apexcharts-boxPlot-area");if(t.globals.isXNumeric?(a&&!d&&(o-=r%2!=0?l/2:0),a&&d&&t.globals.comboCharts&&(o-=l/2)):t.globals.isBarHorizontal||(o=n.xAxisTicksPositions[e-1]+n.dataPointsDividedWidth/2,isNaN(o)&&(o=n.xAxisTicksPositions[e]-n.dataPointsDividedWidth/2)),t.globals.isBarHorizontal?(s>t.globals.gridHeight/2&&(s-=n.tooltipRect.ttHeight),(s=s+t.config.grid.padding.top+u/3)+u>t.globals.gridHeight&&(s=t.globals.gridHeight-u)):t.config.tooltip.followCursor?s=n.e.clientY-c.top-n.tooltipRect.ttHeight/2:s+n.tooltipRect.ttHeight+15>t.globals.gridHeight&&(s=t.globals.gridHeight),s<-10&&(s=-10),t.globals.isBarHorizontal||this.moveXCrosshairs(o),!n.fixedTooltip){var f=s||t.globals.gridHeight;this.moveTooltip(o,f)}}}]),e}(),ve=function(){function e(t){s(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new ge(t)}return u(e,[{key:"drawDynamicPoints",value:function(){var e=this.w,t=new E(this.ctx),n=new Z(this.ctx),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");r=g(r),e.config.chart.stacked&&r.sort((function(e,t){return parseFloat(e.getAttribute("data:realIndex"))-parseFloat(t.getAttribute("data:realIndex"))}));for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=this.w;"bubble"!==i.config.chart.type&&this.newPointSize(e,t);var a=t.getAttribute("cx"),o=t.getAttribute("cy");if(null!==n&&null!==r&&(a=n,o=r),this.tooltipPosition.moveXCrosshairs(a),!this.fixedTooltip){if("radar"===i.config.chart.type){var s=this.ttCtx.getElGrid(),l=s.getBoundingClientRect();a=this.ttCtx.e.clientX-l.left}this.tooltipPosition.moveTooltip(a,o,i.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var t=this.w,n=this,r=this.ttCtx,i=e,a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),o=t.config.markers.hover.size,s=0;s=0?e[t].setAttribute("r",n):e[t].setAttribute("r",0)}}}]),e}(),ye=function(){function e(t){s(this,e),this.w=t.w,this.ttCtx=t}return u(e,[{key:"getAttr",value:function(e,t){return parseFloat(e.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(e){var t=e.e,n=e.opt,r=e.x,i=e.y,a=e.type,o=this.ttCtx,s=this.w;if(t.target.classList.contains("apexcharts-".concat(a,"-rect"))){var l=this.getAttr(t,"i"),u=this.getAttr(t,"j"),c=this.getAttr(t,"cx"),d=this.getAttr(t,"cy"),f=this.getAttr(t,"width"),p=this.getAttr(t,"height");if(o.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:l,j:u,shared:!1,e:t}),s.globals.capturedSeriesIndex=l,s.globals.capturedDataPointIndex=u,r=c+o.tooltipRect.ttWidth/2+f,i=d+o.tooltipRect.ttHeight/2-p/2,o.tooltipPosition.moveXCrosshairs(c+f/2),r>s.globals.gridWidth/2&&(r=c-o.tooltipRect.ttWidth/2+f),o.w.config.tooltip.followCursor){var h=s.globals.dom.elWrap.getBoundingClientRect();r=s.globals.clientX-h.left-(r>s.globals.gridWidth/2?o.tooltipRect.ttWidth:0),i=s.globals.clientY-h.top-(i>s.globals.gridHeight/2?o.tooltipRect.ttHeight:0)}}return{x:r,y:i}}},{key:"handleMarkerTooltip",value:function(e){var t,n,r=e.e,i=e.opt,a=e.x,o=e.y,s=this.w,l=this.ttCtx;if(r.target.classList.contains("apexcharts-marker")){var u=parseInt(i.paths.getAttribute("cx"),10),c=parseInt(i.paths.getAttribute("cy"),10),d=parseFloat(i.paths.getAttribute("val"));if(n=parseInt(i.paths.getAttribute("rel"),10),t=parseInt(i.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var f=_.findAncestor(i.paths,"apexcharts-series");f&&(t=parseInt(f.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:t,j:n,shared:!l.showOnIntersect&&s.config.tooltip.shared,e:r}),"mouseup"===r.type&&l.markerClick(r,t,n),s.globals.capturedSeriesIndex=t,s.globals.capturedDataPointIndex=n,a=u,o=c+s.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var p=l.getElGrid().getBoundingClientRect();o=l.e.clientY+s.globals.translateY-p.top}d<0&&(o=c),l.marker.enlargeCurrentPoint(n,i.paths,a,o)}return{x:a,y:o}}},{key:"handleBarTooltip",value:function(e){var t,n,r=e.e,i=e.opt,a=this.w,o=this.ttCtx,s=o.getElTooltip(),l=0,u=0,c=0,d=this.getBarTooltipXY({e:r,opt:i});t=d.i;var f=d.barHeight,p=d.j;a.globals.capturedSeriesIndex=t,a.globals.capturedDataPointIndex=p,a.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||!a.config.tooltip.shared?(u=d.x,c=d.y,n=Array.isArray(a.config.stroke.width)?a.config.stroke.width[t]:a.config.stroke.width,l=u):a.globals.comboCharts||a.config.tooltip.shared||(l/=2),isNaN(c)?c=a.globals.svgHeight-o.tooltipRect.ttHeight:c<0&&(c=0);var h=parseInt(i.paths.parentNode.getAttribute("data:realIndex"),10),m=a.globals.isMultipleYAxis?a.config.yaxis[h]&&a.config.yaxis[h].reversed:a.config.yaxis[0].reversed;if(u+o.tooltipRect.ttWidth>a.globals.gridWidth&&!m?u-=o.tooltipRect.ttWidth:u<0&&(u=0),o.w.config.tooltip.followCursor){var g=o.getElGrid().getBoundingClientRect();c=o.e.clientY-g.top}null===o.tooltip&&(o.tooltip=a.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),a.config.tooltip.shared||(a.globals.comboBarCount>0?o.tooltipPosition.moveXCrosshairs(l+n/2):o.tooltipPosition.moveXCrosshairs(l)),!o.fixedTooltip&&(!a.config.tooltip.shared||a.globals.isBarHorizontal&&o.tooltipUtil.hasBars())&&(m&&(u-=o.tooltipRect.ttWidth)<0&&(u=0),!m||a.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||(c=c+f-2*(a.globals.series[t][p]<0?f:0)),o.tooltipRect.ttHeight+c>a.globals.gridHeight?c=a.globals.gridHeight-o.tooltipRect.ttHeight+a.globals.translateY:(c=c+a.globals.translateY-o.tooltipRect.ttHeight/2)<0&&(c=0),s.style.left=u+a.globals.translateX+"px",s.style.top=c+"px")}},{key:"getBarTooltipXY",value:function(e){var t=e.e,n=e.opt,r=this.w,i=null,a=this.ttCtx,o=0,s=0,l=0,u=0,c=0,d=t.target.classList;if(d.contains("apexcharts-bar-area")||d.contains("apexcharts-candlestick-area")||d.contains("apexcharts-boxPlot-area")||d.contains("apexcharts-rangebar-area")){var f=t.target,p=f.getBoundingClientRect(),h=n.elGrid.getBoundingClientRect(),m=p.height;c=p.height;var g=p.width,v=parseInt(f.getAttribute("cx"),10),y=parseInt(f.getAttribute("cy"),10);u=parseFloat(f.getAttribute("barWidth"));var _="touchmove"===t.type?t.touches[0].clientX:t.clientX;i=parseInt(f.getAttribute("j"),10),o=parseInt(f.parentNode.getAttribute("rel"),10)-1;var b=f.getAttribute("data-range-y1"),x=f.getAttribute("data-range-y2");r.globals.comboCharts&&(o=parseInt(f.parentNode.getAttribute("data:realIndex"),10)),a.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:o,j:i,y1:b?parseInt(b,10):null,y2:x?parseInt(x,10):null,shared:!a.showOnIntersect&&r.config.tooltip.shared,e:t}),r.config.tooltip.followCursor?r.globals.isBarHorizontal?(s=_-h.left+15,l=y-a.dataPointsDividedHeight+m/2-a.tooltipRect.ttHeight/2):(s=r.globals.isXNumeric?v-g/2:v-a.dataPointsDividedWidth+g/2,l=t.clientY-h.top-a.tooltipRect.ttHeight/2-15):r.globals.isBarHorizontal?((s=v)0&&n.setAttribute("width",t.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var e=this.w,t=this.ttCtx;t.ycrosshairs=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(e,t,n){var r=this.ttCtx,i=this.w,a=i.globals.yLabelFormatters[e];if(r.yaxisTooltips[e]){var o=r.getElGrid().getBoundingClientRect(),s=(t-o.top)*n.yRatio[e],l=i.globals.maxYArr[e]-i.globals.minYArr[e],u=i.globals.minYArr[e]+(l-s);r.tooltipPosition.moveYCrosshairs(t-o.top),r.yaxisTooltipText[e].innerHTML=a(u),r.tooltipPosition.moveYAxisTooltip(e)}}}]),e}(),be=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.tConfig=n.config.tooltip,this.tooltipUtil=new he(this),this.tooltipLabels=new me(this),this.tooltipPosition=new ge(this),this.marker=new ve(this),this.intersect=new ye(this),this.axesTooltip=new _e(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!n.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return u(e,[{key:"getElTooltip",value:function(e){return e||(e=this),e.w.globals.dom.baseEl?e.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(e){var t=this.w;this.xyRatios=e,this.isXAxisTooltipEnabled=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map((function(e,n){return!!(e.show&&e.tooltip.enabled&&t.globals.axisCharts)})),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);var n=document.createElement("div");if(n.classList.add("apexcharts-tooltip"),t.config.tooltip.cssClass&&n.classList.add(t.config.tooltip.cssClass),n.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),t.globals.dom.elWrap.appendChild(n),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var r=new Y(this.ctx);this.xAxisTicksPositions=r.getXAxisTicksPositions()}if(!t.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==t.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==t.config.markers.size&&0!==t.globals.markers.largestSize||this.marker.drawDynamicPoints(this),t.globals.collapsedSeries.length!==t.globals.series.length){this.dataPointsDividedHeight=t.globals.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.globals.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,n.appendChild(this.tooltipTitle));var i=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(i=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(i),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var t=this,n=this.w,r=[],i=this.getElTooltip(),a=function(a){var o=document.createElement("div");o.classList.add("apexcharts-tooltip-series-group"),o.style.order=n.config.tooltip.inverseOrder?e-a:a+1,t.tConfig.shared&&t.tConfig.enabledOnSeries&&Array.isArray(t.tConfig.enabledOnSeries)&&t.tConfig.enabledOnSeries.indexOf(a)<0&&o.classList.add("apexcharts-tooltip-series-group-hidden");var s=document.createElement("span");s.classList.add("apexcharts-tooltip-marker"),s.style.backgroundColor=n.globals.colors[a],o.appendChild(s);var l=document.createElement("div");l.classList.add("apexcharts-tooltip-text"),l.style.fontFamily=t.tConfig.style.fontFamily||n.config.chart.fontFamily,l.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach((function(e){var t=document.createElement("div");t.classList.add("apexcharts-tooltip-".concat(e,"-group"));var n=document.createElement("span");n.classList.add("apexcharts-tooltip-text-".concat(e,"-label")),t.appendChild(n);var r=document.createElement("span");r.classList.add("apexcharts-tooltip-text-".concat(e,"-value")),t.appendChild(r),l.appendChild(t)})),o.appendChild(l),i.appendChild(o),r.push(o)},o=0;o0&&this.addPathsEventListeners(p,c),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(c)}}},{key:"drawFixedTooltipRect",value:function(){var e=this.w,t=this.getElTooltip(),n=t.getBoundingClientRect(),r=n.width+10,i=n.height+10,a=this.tConfig.fixed.offsetX,o=this.tConfig.fixed.offsetY,s=this.tConfig.fixed.position.toLowerCase();return s.indexOf("right")>-1&&(a=a+e.globals.svgWidth-r+10),s.indexOf("bottom")>-1&&(o=o+e.globals.svgHeight-i-10),t.style.left=a+"px",t.style.top=o+"px",{x:a,y:o,ttWidth:r,ttHeight:i}}},{key:"addDatapointEventsListeners",value:function(e){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(t,e)}},{key:"addPathsEventListeners",value:function(e,t){for(var n=this,r=function(r){var i={paths:e[r],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map((function(t){return e[r].addEventListener(t,n.onSeriesHover.bind(n,i),{capture:!1,passive:!0})}))},i=0;i=100?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout((function(){n.seriesHover(e,t)}),100-r))}},{key:"seriesHover",value:function(e,t){var n=this;this.lastHoverTime=Date.now();var r=[],i=this.w;i.config.chart.group&&(r=this.ctx.getGroupedCharts()),i.globals.axisCharts&&(i.globals.minX===-1/0&&i.globals.maxX===1/0||0===i.globals.dataPoints)||(r.length?r.forEach((function(r){var i=n.getElTooltip(r),a={paths:e.paths,tooltipEl:i,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:r.w.globals.tooltip.ttItems};r.w.globals.minX===n.w.globals.minX&&r.w.globals.maxX===n.w.globals.maxX&&r.w.globals.tooltip.seriesHoverByContext({chartCtx:r,ttCtx:r.w.globals.tooltip,opt:a,e:t})})):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:t}))}},{key:"seriesHoverByContext",value:function(e){var t=e.chartCtx,n=e.ttCtx,r=e.opt,i=e.e,a=t.w,o=this.getElTooltip();o&&(n.tooltipRect={x:0,y:0,ttWidth:o.getBoundingClientRect().width,ttHeight:o.getBoundingClientRect().height},n.e=i,!n.tooltipUtil.hasBars()||a.globals.comboCharts||n.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new j(t).toggleSeriesOnHover(i,i.target.parentNode),n.fixedTooltip&&n.drawFixedTooltipRect(),a.globals.axisCharts?n.axisChartsTooltips({e:i,opt:r,tooltipRect:n.tooltipRect}):n.nonAxisChartsTooltips({e:i,opt:r,tooltipRect:n.tooltipRect}))}},{key:"axisChartsTooltips",value:function(e){var t,n,r=e.e,i=e.opt,a=this.w,o=i.elGrid.getBoundingClientRect(),s="touchmove"===r.type?r.touches[0].clientX:r.clientX,l="touchmove"===r.type?r.touches[0].clientY:r.clientY;if(this.clientY=l,this.clientX=s,a.globals.capturedSeriesIndex=-1,a.globals.capturedDataPointIndex=-1,lo.top+o.height)this.handleMouseOut(i);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!a.config.tooltip.shared){var u=parseInt(i.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(u)<0)return void this.handleMouseOut(i)}var c=this.getElTooltip(),d=this.getElXCrosshairs(),f=a.globals.xyCharts||"bar"===a.config.chart.type&&!a.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||a.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===r.type||"touchmove"===r.type||"mouseup"===r.type){if(a.globals.collapsedSeries.length+a.globals.ancillaryCollapsedSeries.length===a.globals.series.length)return;null!==d&&d.classList.add("apexcharts-active");var p=this.yaxisTooltips.filter((function(e){return!0===e}));if(null!==this.ycrosshairs&&p.length&&this.ycrosshairs.classList.add("apexcharts-active"),f&&!this.showOnIntersect)this.handleStickyTooltip(r,s,l,i);else if("heatmap"===a.config.chart.type||"treemap"===a.config.chart.type){var h=this.intersect.handleHeatTreeTooltip({e:r,opt:i,x:t,y:n,type:a.config.chart.type});t=h.x,n=h.y,c.style.left=t+"px",c.style.top=n+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:r,opt:i}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:r,opt:i,x:t,y:n});if(this.yaxisTooltips.length)for(var m=0;ml.width?this.handleMouseOut(r):null!==s?this.handleStickyCapturedSeries(e,s,r,o):(this.tooltipUtil.isXoverlap(o)||i.globals.isBarHorizontal)&&this.create(e,this,0,o,r.ttItems)}},{key:"handleStickyCapturedSeries",value:function(e,t,n,r){var i=this.w;this.tConfig.shared||null!==i.globals.series[t][r]?void 0!==i.globals.series[t][r]?this.tConfig.shared&&this.tooltipUtil.isXoverlap(r)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,r,n.ttItems):this.create(e,this,t,r,n.ttItems,!1):this.tooltipUtil.isXoverlap(r)&&this.create(e,this,0,r,n.ttItems):this.handleMouseOut(n)}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,t=new E(this.ctx),n=e.globals.dom.Paper.select(".apexcharts-bar-area"),r=0;r5&&void 0!==arguments[5]?arguments[5]:null,o=this.w,s=t;"mouseup"===e.type&&this.markerClick(e,n,r),null===a&&(a=this.tConfig.shared);var l=this.tooltipUtil.hasMarkers(),u=this.tooltipUtil.getElBars();if(o.config.legend.tooltipHoverFormatter){var c=o.config.legend.tooltipHoverFormatter,d=Array.from(this.legendLabels);d.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)}));for(var f=0;f0?s.marker.enlargePoints(r):s.tooltipPosition.moveDynamicPointsOnHover(r)),this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(u),this.barSeriesHeight>0)){var v=new E(this.ctx),y=o.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(r,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(r);for(var _=0;_i.globals.gridHeight&&(p=i.globals.gridHeight-v)),{bcx:u,bcy:l,dataLabelsX:t,dataLabelsY:p,totalDataLabelsX:r,totalDataLabelsY:n,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this.w,n=e.x,r=e.i,i=e.j,a=e.realIndex,o=e.bcy,s=e.barHeight,l=e.barWidth,u=e.textRects,c=e.dataLabelsX,d=e.strokeWidth,f=e.dataLabelsConfig,p=e.barDataLabelsConfig,h=e.barTotalDataLabelsConfig,m=e.offX,g=e.offY,v=t.globals.gridHeight/t.globals.dataPoints;l=Math.abs(l);var y,_,b=o-(this.barCtx.isRangeBar?0:v)+s/2+u.height/2+g-3,x="start",S=this.barCtx.series[r][i]<0,w=n;switch(this.barCtx.isReversed&&(w=n+l-(S?2*l:0),n=t.globals.gridWidth-l),p.position){case"center":c=S?w+l/2-m:Math.max(u.width/2,w-l/2)+m;break;case"bottom":c=S?w+l-d-Math.round(u.width/2)-m:w-l+d+Math.round(u.width/2)+m;break;case"top":c=S?w-d+Math.round(u.width/2)-m:w-d-Math.round(u.width/2)+m}if(this.barCtx.lastActiveBarSerieIndex===a&&h.enabled){var C=new E(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:a,j:i}),f.fontSize);S?(y=w-d+Math.round(C.width/2)-m-h.offsetX-15,x="end"):y=w-d-Math.round(C.width/2)+m+h.offsetX+15,_=b+h.offsetY}return t.config.chart.stacked||(c<0?c=c+u.width+d:c+u.width/2>t.globals.gridWidth&&(c=t.globals.gridWidth-u.width-d)),{bcx:n,bcy:o,dataLabelsX:c,dataLabelsY:b,totalDataLabelsX:y,totalDataLabelsY:_,totalDataLabelsAnchor:x}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,n=e.y,r=e.val,i=e.i,o=e.j,s=e.textRects,l=e.barHeight,u=e.barWidth,c=e.dataLabelsConfig,d=this.w,f="rotate(0)";"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&(f="rotate(-90, ".concat(t,", ").concat(n,")"));var p=new U(this.barCtx.ctx),h=new E(this.barCtx.ctx),m=c.formatter,g=null,v=d.globals.collapsedSeriesIndices.indexOf(i)>-1;if(c.enabled&&!v){g=h.group({class:"apexcharts-data-labels",transform:f});var y="";void 0!==r&&(y=m(r,a(a({},d),{},{seriesIndex:i,dataPointIndex:o,w:d})));var _=d.globals.series[i][o]<0,b=d.config.plotOptions.bar.dataLabels.position;"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&("top"===b&&(c.textAnchor=_?"end":"start"),"center"===b&&(c.textAnchor="middle"),"bottom"===b&&(c.textAnchor=_?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&uMath.abs(u)&&(y=""):s.height/1.6>Math.abs(l)&&(y=""));var x=a({},c);this.barCtx.isHorizontal&&r<0&&("start"===c.textAnchor?x.textAnchor="end":"end"===c.textAnchor&&(x.textAnchor="start")),p.plotDataLabelsText({x:t,y:n,text:y,i:i,j:o,parent:g,dataLabelsConfig:x,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return g}},{key:"drawTotalDataLabels",value:function(e){var t,n=e.x,r=e.y,i=e.val,a=e.realIndex,o=e.textAnchor,s=e.barTotalDataLabelsConfig,l=new E(this.barCtx.ctx);return s.enabled&&void 0!==n&&void 0!==r&&this.barCtx.lastActiveBarSerieIndex===a&&(t=l.drawText({x:n,y:r,foreColor:s.style.color,text:i,textAnchor:o,fontFamily:s.style.fontFamily,fontSize:s.style.fontSize,fontWeight:s.style.fontWeight})),t}}]),e}(),Ee=function(){function e(t){s(this,e),this.w=t.w,this.barCtx=t}return u(e,[{key:"initVariables",value:function(e){var t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var n=0;n0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[n].length),t.globals.isXNumeric)for(var r=0;rt.globals.minX&&t.globals.seriesX[n][r]0&&(r=l.globals.minXDiff/d),(a=r/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(a=1)}o=l.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?l.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),e=l.globals.padHorizontal+(r-a*this.barCtx.seriesLen)/2}return{x:e,y:t,yDivision:n,xDivision:r,barHeight:i,barWidth:a,zeroH:o,zeroW:s}}},{key:"getPathFillColor",value:function(e,t,n,r){var i,a,o,s,l=this.w,u=new B(this.barCtx.ctx),c=null,d=this.barCtx.barOptions.distributed?n:t;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map((function(r){e[t][n]>=r.from&&e[t][n]<=r.to&&(c=r.color)})),l.config.series[t].data[n]&&l.config.series[t].data[n].fillColor&&(c=l.config.series[t].data[n].fillColor),u.fillPath({seriesNumber:this.barCtx.barOptions.distributed?d:r,dataPointIndex:n,color:c,value:e[t][n],fillConfig:null===(i=l.config.series[t].data[n])||void 0===i?void 0:i.fill,fillType:null!==(a=l.config.series[t].data[n])&&void 0!==a&&null!==(o=a.fill)&&void 0!==o&&o.type?null===(s=l.config.series[t].data[n])||void 0===s?void 0:s.fill.type:l.config.fill.type})}},{key:"getStrokeWidth",value:function(e,t,n){var r=0,i=this.w;return void 0===this.barCtx.series[e][t]||null===this.barCtx.series[e][t]?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,i.config.stroke.show&&(this.barCtx.isNullValue||(r=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[n]:this.barCtx.strokeWidth)),r}},{key:"barBackground",value:function(e){var t=e.j,n=e.i,r=e.x1,i=e.x2,a=e.y1,o=e.y2,s=e.elSeries,l=this.w,u=new E(this.barCtx.ctx),c=new j(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&c===n){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t%=this.barCtx.barOptions.colors.backgroundBarColors.length);var d=this.barCtx.barOptions.colors.backgroundBarColors[t],f=u.drawRect(void 0!==r?r:0,void 0!==a?a:0,void 0!==i?i:l.globals.gridWidth,void 0!==o?o:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,d,this.barCtx.barOptions.colors.backgroundBarOpacity);s.add(f),f.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t=e.barWidth,n=e.barXPosition,r=e.yRatio,i=e.y1,a=e.y2,o=e.strokeWidth,s=e.series,l=e.realIndex,u=e.i,c=e.j,d=e.w,f=new E(this.barCtx.ctx);(o=Array.isArray(o)?o[l]:o)||(o=0);var p={barWidth:t,strokeWidth:o,yRatio:r,barXPosition:n,y1:i,y2:a},h=this.getRoundedBars(d,p,s,u,c),m=n,g=n+t,v=f.move(m,i),y=f.move(m,i),_=f.line(g-o,i);return d.globals.previousPaths.length>0&&(y=this.barCtx.getPreviousPath(l,c,!1)),v=v+f.line(m,h.y2)+h.pathWithRadius+f.line(g-o,h.y2)+_+_+"z",y=y+f.line(m,i)+_+_+_+_+_+f.line(m,i),d.config.chart.stacked&&(this.barCtx.yArrj.push(h.y2WithRadius),this.barCtx.yArrjF.push(Math.abs(i-h.y2WithRadius)),this.barCtx.yArrjVal.push(this.barCtx.series[u][c])),{pathTo:v,pathFrom:y}}},{key:"getBarpaths",value:function(e){var t=e.barYPosition,n=e.barHeight,r=e.x1,i=e.x2,a=e.strokeWidth,o=e.series,s=e.realIndex,l=e.i,u=e.j,c=e.w,d=new E(this.barCtx.ctx);(a=Array.isArray(a)?a[s]:a)||(a=0);var f={barHeight:n,strokeWidth:a,barYPosition:t,x2:i,x1:r},p=this.getRoundedBars(c,f,o,l,u),h=d.move(r,t),m=d.move(r,t);c.globals.previousPaths.length>0&&(m=this.barCtx.getPreviousPath(s,u,!1));var g=t,v=t+n,y=d.line(r,v-a);return h=h+d.line(p.x2,g)+p.pathWithRadius+d.line(p.x2,v-a)+y+y+"z",m=m+d.line(r,g)+y+y+y+y+y+d.line(r,g),c.config.chart.stacked&&(this.barCtx.xArrj.push(p.x2WithRadius),this.barCtx.xArrjF.push(Math.abs(r-p.x2WithRadius)),this.barCtx.xArrjVal.push(this.barCtx.series[l][u])),{pathTo:h,pathFrom:m}}},{key:"getRoundedBars",value:function(e,t,n,r,i){var a=new E(this.barCtx.ctx),o=0,s=e.config.plotOptions.bar.borderRadius,l=Array.isArray(s);if(o=l?s[r>s.length-1?s.length-1:r]:s,e.config.chart.stacked&&n.length>1&&r!==this.barCtx.radiusOnSeriesNumber&&!l&&(o=0),this.barCtx.isHorizontal){var u="",c=t.x2;if(Math.abs(t.x1-t.x2)0:n[r][i]<0;d&&(o*=-1),c-=o,u=a.quadraticCurve(c+o,t.barYPosition,c+o,t.barYPosition+(d?-1*o:o))+a.line(c+o,t.barYPosition+t.barHeight-t.strokeWidth-(d?-1*o:o))+a.quadraticCurve(c+o,t.barYPosition+t.barHeight-t.strokeWidth,c,t.barYPosition+t.barHeight-t.strokeWidth)}return{pathWithRadius:u,x2WithRadius:c+o,x2:c}}var f="",p=t.y2;if(Math.abs(t.y1-t.y2)=0;o--)this.barCtx.zeroSerieses.indexOf(o)>-1&&o===this.radiusOnSeriesNumber&&(this.barCtx.radiusOnSeriesNumber-=1);for(var s=t.length-1;s>=0;s--)n.globals.collapsedSeriesIndices.indexOf(this.barCtx.radiusOnSeriesNumber)>-1&&(this.barCtx.radiusOnSeriesNumber-=1)}},{key:"getXForValue",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=n?t:null;return null!=e&&(r=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),r}},{key:"getYForValue",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=n?t:null;return null!=e&&(r=t-e/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),r}},{key:"getGoalValues",value:function(e,t,n,r,i){var a=this,o=this.w,s=[];return o.globals.seriesGoals[r]&&o.globals.seriesGoals[r][i]&&Array.isArray(o.globals.seriesGoals[r][i])&&o.globals.seriesGoals[r][i].forEach((function(r){var i;s.push((c(i={},e,"x"===e?a.getXForValue(r.value,t,!1):a.getYForValue(r.value,n,!1)),c(i,"attrs",r),i))})),s}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,n=e.barYPosition,r=e.goalX,i=e.goalY,a=e.barWidth,o=e.barHeight,s=new E(this.barCtx.ctx),l=s.group({className:"apexcharts-bar-goals-groups"}),u=null;return this.barCtx.isHorizontal?Array.isArray(r)&&r.forEach((function(e){var t=void 0!==e.attrs.strokeHeight?e.attrs.strokeHeight:o/2,r=n+t+o/2;u=s.drawLine(e.x,r-2*t,e.x,r,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeWidth?e.attrs.strokeWidth:2,e.attrs.strokeLineCap),l.add(u)})):Array.isArray(i)&&i.forEach((function(e){var n=void 0!==e.attrs.strokeWidth?e.attrs.strokeWidth:a/2,r=t+n+a/2;u=s.drawLine(r-2*n,e.y,r,e.y,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeHeight?e.attrs.strokeHeight:2,e.attrs.strokeLineCap),l.add(u)})),l}}]),e}(),Se=function(){function e(t,n){s(this,e),this.ctx=t,this.w=t.w;var r=this.w;this.barOptions=r.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=r.config.stroke.width,this.isNullValue=!1,this.isRangeBar=r.globals.seriesRange.length&&this.isHorizontal,this.xyRatios=n,null!==this.xyRatios&&(this.xRatio=n.xRatio,this.initialXRatio=n.initialXRatio,this.yRatio=n.yRatio,this.invertedXRatio=n.invertedXRatio,this.invertedYRatio=n.invertedYRatio,this.baseLineY=n.baseLineY,this.baseLineInvertedY=n.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0;var i=new j(this.ctx);this.lastActiveBarSerieIndex=i.getActiveConfigSeriesIndex("desc",["bar","column"]);var a=i.getBarSeriesIndices(),o=new S(this.ctx);this.stackedSeriesTotals=o.getStackedSeriesTotals(this.w.config.series.map((function(e,t){return-1===a.indexOf(t)?t:-1})).filter((function(e){return-1!==e}))),this.barHelpers=new Ee(this)}return u(e,[{key:"draw",value:function(e,t){var n=this.w,r=new E(this.ctx),i=new S(this.ctx,n);e=i.getLogSeries(e),this.series=e,this.yRatio=i.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var o=r.group({class:"apexcharts-bar-series apexcharts-plot-series"});n.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering.");for(var s=0,l=0;s0&&(this.visibleI=this.visibleI+1);var b=0,x=0;this.yRatio.length>1&&(this.yaxisIndex=v),this.isReversed=n.config.yaxis[this.yaxisIndex]&&n.config.yaxis[this.yaxisIndex].reversed;var w=this.barHelpers.initialPositions();h=w.y,b=w.barHeight,c=w.yDivision,f=w.zeroW,p=w.x,x=w.barWidth,u=w.xDivision,d=w.zeroH,this.horizontal||g.push(p+x/2);for(var C=r.group({class:"apexcharts-datalabels","data:realIndex":v}),T=r.group({class:"apexcharts-bar-goals-markers",style:"pointer-events: none"}),A=0;A0&&g.push(p+x/2),m.push(h);var R=this.barHelpers.getPathFillColor(e,s,A,v);this.renderSeries({realIndex:v,pathFill:R,j:A,i:s,pathFrom:D.pathFrom,pathTo:D.pathTo,strokeWidth:k,elSeries:y,x:p,y:h,series:e,barHeight:b,barWidth:x,elDataLabelsWrap:C,elGoalsMarkers:T,visibleSeries:this.visibleI,type:"bar"})}n.globals.seriesXvalues[v]=g,n.globals.seriesYvalues[v]=m,o.add(y)}return o}},{key:"renderSeries",value:function(e){var t=e.realIndex,n=e.pathFill,r=e.lineFill,i=e.j,a=e.i,o=e.pathFrom,s=e.pathTo,l=e.strokeWidth,u=e.elSeries,c=e.x,d=e.y,f=e.y1,p=e.y2,h=e.series,m=e.barHeight,g=e.barWidth,v=e.barYPosition,y=e.elDataLabelsWrap,_=e.elGoalsMarkers,b=e.visibleSeries,S=e.type,w=this.w,C=new E(this.ctx);r||(r=this.barOptions.distributed?w.globals.stroke.colors[i]:w.globals.stroke.colors[t]),w.config.series[a].data[i]&&w.config.series[a].data[i].strokeColor&&(r=w.config.series[a].data[i].strokeColor),this.isNullValue&&(n="none");var T=i/w.config.chart.animations.animateGradually.delay*(w.config.chart.animations.speed/w.globals.dataPoints)/2.4,A=C.renderPaths({i:a,j:i,realIndex:t,pathFrom:o,pathTo:s,stroke:r,strokeWidth:l,strokeLineCap:w.config.stroke.lineCap,fill:n,animationDelay:T,initialSpeed:w.config.chart.animations.speed,dataChangeSpeed:w.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(S,"-area")});A.attr("clip-path","url(#gridRectMask".concat(w.globals.cuid,")"));var k=w.config.forecastDataPoints;k.count>0&&i>=w.globals.dataPoints-k.count&&(A.node.setAttribute("stroke-dasharray",k.dashArray),A.node.setAttribute("stroke-width",k.strokeWidth),A.node.setAttribute("fill-opacity",k.fillOpacity)),void 0!==f&&void 0!==p&&(A.attr("data-range-y1",f),A.attr("data-range-y2",p)),new x(this.ctx).setSelectionFilter(A,t,i),u.add(A);var D=new xe(this).handleBarDataLabels({x:c,y:d,y1:f,y2:p,i:a,j:i,series:h,realIndex:t,barHeight:m,barWidth:g,barYPosition:v,renderedPath:A,visibleSeries:b});return null!==D.dataLabels&&y.add(D.dataLabels),D.totalDataLabels&&y.add(D.totalDataLabels),u.add(y),_&&u.add(_),u}},{key:"drawBarPaths",value:function(e){var t=e.indexes,n=e.barHeight,r=e.strokeWidth,i=e.zeroW,a=e.x,o=e.y,s=e.yDivision,l=e.elSeries,u=this.w,c=t.i,d=t.j;u.globals.isXNumeric&&(o=(u.globals.seriesX[c][d]-u.globals.minX)/this.invertedXRatio-n);var f=o+n*this.visibleI;a=this.barHelpers.getXForValue(this.series[c][d],i);var p=this.barHelpers.getBarpaths({barYPosition:f,barHeight:n,x1:i,x2:a,strokeWidth:r,series:this.series,realIndex:t.realIndex,i:c,j:d,w:u});return u.globals.isXNumeric||(o+=s),this.barHelpers.barBackground({j:d,i:c,y1:f-n*this.visibleI,y2:n*this.seriesLen,elSeries:l}),{pathTo:p.pathTo,pathFrom:p.pathFrom,x:a,y:o,goalX:this.barHelpers.getGoalValues("x",i,null,c,d),barYPosition:f}}},{key:"drawColumnPaths",value:function(e){var t=e.indexes,n=e.x,r=e.y,i=e.xDivision,a=e.barWidth,o=e.zeroH,s=e.strokeWidth,l=e.elSeries,u=this.w,c=t.realIndex,d=t.i,f=t.j,p=t.bc;if(u.globals.isXNumeric){var h=c;u.globals.seriesX[c].length||(h=u.globals.maxValsInArrayIndex),n=(u.globals.seriesX[h][f]-u.globals.minX)/this.xRatio-a*this.seriesLen/2}var m=n+a*this.visibleI;r=this.barHelpers.getYForValue(this.series[d][f],o);var g=this.barHelpers.getColumnPaths({barXPosition:m,barWidth:a,y1:o,y2:r,strokeWidth:s,series:this.series,realIndex:t.realIndex,i:d,j:f,w:u});return u.globals.isXNumeric||(n+=i),this.barHelpers.barBackground({bc:p,j:f,i:d,x1:m-s/2-a*this.visibleI,x2:a*this.seriesLen+s/2,elSeries:l}),{pathTo:g.pathTo,pathFrom:g.pathFrom,x:n,y:r,goalY:this.barHelpers.getGoalValues("y",null,o,d,f),barXPosition:m}}},{key:"getPreviousPath",value:function(e,t){for(var n,r=this.w,i=0;i0&&parseInt(a.realIndex,10)===parseInt(e,10)&&void 0!==r.globals.previousPaths[i].paths[t]&&(n=r.globals.previousPaths[i].paths[t].d)}return n}}]),e}(),we=function(e){d(n,Se);var t=m(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"draw",value:function(e,t){var n=this,r=this.w;this.graphics=new E(this.ctx),this.bar=new Se(this.ctx,this.xyRatios);var i=new S(this.ctx,r);e=i.getLogSeries(e),this.yRatio=i.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e),"100%"===r.config.chart.stackType&&(e=r.globals.seriesPercent.slice()),this.series=e,this.totalItems=0,this.prevY=[],this.prevX=[],this.prevYF=[],this.prevXF=[],this.prevYVal=[],this.prevXVal=[],this.xArrj=[],this.xArrjF=[],this.xArrjVal=[],this.yArrj=[],this.yArrjF=[],this.yArrjVal=[];for(var o=0;o0&&(this.totalItems+=e[o].length);for(var s=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),l=0,u=0,c=function(i,o){var c=void 0,d=void 0,f=void 0,p=void 0,h=[],m=[],g=r.globals.comboCharts?t[i]:i;n.yRatio.length>1&&(n.yaxisIndex=g),n.isReversed=r.config.yaxis[n.yaxisIndex]&&r.config.yaxis[n.yaxisIndex].reversed;var v=n.graphics.group({class:"apexcharts-series",seriesName:_.escapeString(r.globals.seriesNames[g]),rel:i+1,"data:realIndex":g});n.ctx.series.addCollapsedClassToSeries(v,g);var y=n.graphics.group({class:"apexcharts-datalabels","data:realIndex":g}),b=n.graphics.group({class:"apexcharts-bar-goals-markers",style:"pointer-events: none"}),x=0,E=0,S=n.initialPositions(l,u,c,d,f,p);u=S.y,x=S.barHeight,d=S.yDivision,p=S.zeroW,l=S.x,E=S.barWidth,c=S.xDivision,f=S.zeroH,n.yArrj=[],n.yArrjF=[],n.yArrjVal=[],n.xArrj=[],n.xArrjF=[],n.xArrjVal=[],1===n.prevY.length&&n.prevY[0].every((function(e){return isNaN(e)}))&&(n.prevY[0]=n.prevY[0].map((function(e){return f})),n.prevYF[0]=n.prevYF[0].map((function(e){return 0})));for(var w=0;w1?(n=l.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:s*parseInt(l.config.plotOptions.bar.columnWidth,10)/100,i=l.globals.gridHeight-this.baseLineY[this.yaxisIndex]+(this.isReversed?l.globals.gridHeight:0)-(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),e=l.globals.padHorizontal+(n-s)/2),{x:e,y:t,yDivision:r,xDivision:n,barHeight:o,barWidth:s,zeroH:i,zeroW:a}}},{key:"drawStackedBarPaths",value:function(e){for(var t,n=e.indexes,r=e.barHeight,i=e.strokeWidth,a=e.zeroW,o=e.x,s=e.y,l=e.yDivision,u=e.elSeries,c=this.w,d=s,f=n.i,p=n.j,h=0,m=0;m0){var g=a;this.prevXVal[f-1][p]<0?g=this.series[f][p]>=0?this.prevX[f-1][p]+h-2*(this.isReversed?h:0):this.prevX[f-1][p]:this.prevXVal[f-1][p]>=0&&(g=this.series[f][p]>=0?this.prevX[f-1][p]:this.prevX[f-1][p]-h+2*(this.isReversed?h:0)),t=g}else t=a;o=null===this.series[f][p]?t:t+this.series[f][p]/this.invertedYRatio-2*(this.isReversed?this.series[f][p]/this.invertedYRatio:0);var v=this.barHelpers.getBarpaths({barYPosition:d,barHeight:r,x1:t,x2:o,strokeWidth:i,series:this.series,realIndex:n.realIndex,i:f,j:p,w:c});return this.barHelpers.barBackground({j:p,i:f,y1:d,y2:r,elSeries:u}),s+=l,{pathTo:v.pathTo,pathFrom:v.pathFrom,goalX:this.barHelpers.getGoalValues("x",a,null,f,p),barYPosition:d,x:o,y:s}}},{key:"drawStackedColumnPaths",value:function(e){var t=e.indexes,n=e.x,r=e.y,i=e.xDivision,a=e.barWidth,o=e.zeroH;e.strokeWidth;var s=e.elSeries,l=this.w,u=t.i,c=t.j,d=t.bc;if(l.globals.isXNumeric){var f=l.globals.seriesX[u][c];f||(f=0),n=(f-l.globals.minX)/this.xRatio-a/2}for(var p,h=n,m=0,g=0;g0&&!l.globals.isXNumeric||u>0&&l.globals.isXNumeric&&l.globals.seriesX[u-1][c]===l.globals.seriesX[u][c]){var v,y,_=Math.min(this.yRatio.length+1,u+1);if(void 0!==this.prevY[u-1])for(var b=1;b<_;b++)if(!isNaN(this.prevY[u-b][c])){y=this.prevY[u-b][c];break}for(var x=1;x<_;x++){if(this.prevYVal[u-x][c]<0){v=this.series[u][c]>=0?y-m+2*(this.isReversed?m:0):y;break}if(this.prevYVal[u-x][c]>=0){v=this.series[u][c]>=0?y:y+m-2*(this.isReversed?m:0);break}}void 0===v&&(v=l.globals.gridHeight),p=this.prevYF[0].every((function(e){return 0===e}))&&this.prevYF.slice(1,u).every((function(e){return e.every((function(e){return isNaN(e)}))}))?o:v}else p=o;r=p-this.series[u][c]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[u][c]/this.yRatio[this.yaxisIndex]:0);var E=this.barHelpers.getColumnPaths({barXPosition:h,barWidth:a,y1:p,y2:r,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,realIndex:t.realIndex,i:u,j:c,w:l});return this.barHelpers.barBackground({bc:d,j:c,i:u,x1:h,x2:a,elSeries:s}),n+=i,{pathTo:E.pathTo,pathFrom:E.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,o,u,c),barXPosition:h,x:l.globals.isXNumeric?n-i:n,y:r}}}]),n}(),Ce=function(e){d(n,Se);var t=m(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"draw",value:function(e,t){var n=this,r=this.w,i=new E(this.ctx),o=new B(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=r.config.plotOptions.bar.horizontal;var s=new S(this.ctx,r);e=s.getLogSeries(e),this.series=e,this.yRatio=s.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);for(var l=i.group({class:"apexcharts-".concat(r.config.chart.type,"-series apexcharts-plot-series")}),u=function(s){n.isBoxPlot="boxPlot"===r.config.chart.type||"boxPlot"===r.config.series[s].type;var u,c,d,f,p,h,m=void 0,g=void 0,v=[],y=[],b=r.globals.comboCharts?t[s]:s,x=i.group({class:"apexcharts-series",seriesName:_.escapeString(r.globals.seriesNames[b]),rel:s+1,"data:realIndex":b});n.ctx.series.addCollapsedClassToSeries(x,b),e[s].length>0&&(n.visibleI=n.visibleI+1),n.yRatio.length>1&&(n.yaxisIndex=b);var E=n.barHelpers.initialPositions();g=E.y,p=E.barHeight,c=E.yDivision,f=E.zeroW,m=E.x,h=E.barWidth,u=E.xDivision,d=E.zeroH,y.push(m+h/2);for(var S=i.group({class:"apexcharts-datalabels","data:realIndex":b}),w=function(t){var i=n.barHelpers.getStrokeWidth(s,t,b),l=null,_={indexes:{i:s,j:t,realIndex:b},x:m,y:g,strokeWidth:i,elSeries:x};l=n.isHorizontal?n.drawHorizontalBoxPaths(a(a({},_),{},{yDivision:c,barHeight:p,zeroW:f})):n.drawVerticalBoxPaths(a(a({},_),{},{xDivision:u,barWidth:h,zeroH:d})),g=l.y,m=l.x,t>0&&y.push(m+h/2),v.push(g),l.pathTo.forEach((function(a,u){var c=!n.isBoxPlot&&n.candlestickOptions.wick.useFillColor?l.color[u]:r.globals.stroke.colors[s],d=o.fillPath({seriesNumber:b,dataPointIndex:t,color:l.color[u],value:e[s][t]});n.renderSeries({realIndex:b,pathFill:d,lineFill:c,j:t,i:s,pathFrom:l.pathFrom,pathTo:a,strokeWidth:i,elSeries:x,x:m,y:g,series:e,barHeight:p,barWidth:h,elDataLabelsWrap:S,visibleSeries:n.visibleI,type:r.config.chart.type})}))},C=0;Cv.c&&(d=!1);var b=Math.min(v.o,v.c),x=Math.max(v.o,v.c),S=v.m;s.globals.isXNumeric&&(n=(s.globals.seriesX[g][c]-s.globals.minX)/this.xRatio-i/2);var w=n+i*this.visibleI;void 0===this.series[u][c]||null===this.series[u][c]?(b=a,x=a):(b=a-b/m,x=a-x/m,y=a-v.h/m,_=a-v.l/m,S=a-v.m/m);var C=l.move(w,a),T=l.move(w+i/2,b);return s.globals.previousPaths.length>0&&(T=this.getPreviousPath(g,c,!0)),C=this.isBoxPlot?[l.move(w,b)+l.line(w+i/2,b)+l.line(w+i/2,y)+l.line(w+i/4,y)+l.line(w+i-i/4,y)+l.line(w+i/2,y)+l.line(w+i/2,b)+l.line(w+i,b)+l.line(w+i,S)+l.line(w,S)+l.line(w,b+o/2),l.move(w,S)+l.line(w+i,S)+l.line(w+i,x)+l.line(w+i/2,x)+l.line(w+i/2,_)+l.line(w+i-i/4,_)+l.line(w+i/4,_)+l.line(w+i/2,_)+l.line(w+i/2,x)+l.line(w,x)+l.line(w,S)+"z"]:[l.move(w,x)+l.line(w+i/2,x)+l.line(w+i/2,y)+l.line(w+i/2,x)+l.line(w+i,x)+l.line(w+i,b)+l.line(w+i/2,b)+l.line(w+i/2,_)+l.line(w+i/2,b)+l.line(w,b)+l.line(w,x-o/2)],T+=l.move(w,b),s.globals.isXNumeric||(n+=r),{pathTo:C,pathFrom:T,x:n,y:x,barXPosition:w,color:this.isBoxPlot?h:d?[f]:[p]}}},{key:"drawHorizontalBoxPaths",value:function(e){var t=e.indexes;e.x;var n=e.y,r=e.yDivision,i=e.barHeight,a=e.zeroW,o=e.strokeWidth,s=this.w,l=new E(this.ctx),u=t.i,c=t.j,d=this.boxOptions.colors.lower;this.isBoxPlot&&(d=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var f=this.invertedYRatio,p=t.realIndex,h=this.getOHLCValue(p,c),m=a,g=a,v=Math.min(h.o,h.c),y=Math.max(h.o,h.c),_=h.m;s.globals.isXNumeric&&(n=(s.globals.seriesX[p][c]-s.globals.minX)/this.invertedXRatio-i/2);var b=n+i*this.visibleI;void 0===this.series[u][c]||null===this.series[u][c]?(v=a,y=a):(v=a+v/f,y=a+y/f,m=a+h.h/f,g=a+h.l/f,_=a+h.m/f);var x=l.move(a,b),S=l.move(v,b+i/2);return s.globals.previousPaths.length>0&&(S=this.getPreviousPath(p,c,!0)),x=[l.move(v,b)+l.line(v,b+i/2)+l.line(m,b+i/2)+l.line(m,b+i/2-i/4)+l.line(m,b+i/2+i/4)+l.line(m,b+i/2)+l.line(v,b+i/2)+l.line(v,b+i)+l.line(_,b+i)+l.line(_,b)+l.line(v+o/2,b),l.move(_,b)+l.line(_,b+i)+l.line(y,b+i)+l.line(y,b+i/2)+l.line(g,b+i/2)+l.line(g,b+i-i/4)+l.line(g,b+i/4)+l.line(g,b+i/2)+l.line(y,b+i/2)+l.line(y,b)+l.line(_,b)+"z"],S+=l.move(v,b),s.globals.isXNumeric||(n+=r),{pathTo:x,pathFrom:S,x:y,y:n,barYPosition:b,color:d}}},{key:"getOHLCValue",value:function(e,t){var n=this.w;return{o:this.isBoxPlot?n.globals.seriesCandleH[e][t]:n.globals.seriesCandleO[e][t],h:this.isBoxPlot?n.globals.seriesCandleO[e][t]:n.globals.seriesCandleH[e][t],m:n.globals.seriesCandleM[e][t],l:this.isBoxPlot?n.globals.seriesCandleC[e][t]:n.globals.seriesCandleL[e][t],c:this.isBoxPlot?n.globals.seriesCandleL[e][t]:n.globals.seriesCandleC[e][t]}}}]),n}(),Te=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return u(e,[{key:"checkColorRange",value:function(){var e=this.w,t=!1,n=e.config.plotOptions[e.config.chart.type];return n.colorScale.ranges.length>0&&n.colorScale.ranges.map((function(e,n){e.from<=0&&(t=!0)})),t}},{key:"getShadeColor",value:function(e,t,n,r){var i=this.w,a=1,o=i.config.plotOptions[e].shadeIntensity,s=this.determineColor(e,t,n);i.globals.hasNegs||r?a=i.config.plotOptions[e].reverseNegativeShade?s.percent<0?s.percent/100*(1.25*o):(1-s.percent/100)*(1.25*o):s.percent<=0?1-(1+s.percent/100)*o:(1-s.percent/100)*o:(a=1-s.percent/100,"treemap"===e&&(a=(1-s.percent/100)*(1.25*o)));var l=s.color,u=new _;return i.config.plotOptions[e].enableShades&&(l="dark"===this.w.config.theme.mode?_.hexToRgba(u.shadeColor(-1*a,s.color),i.config.fill.opacity):_.hexToRgba(u.shadeColor(a,s.color),i.config.fill.opacity)),{color:l,colorProps:s}}},{key:"determineColor",value:function(e,t,n){var r=this.w,i=r.globals.series[t][n],a=r.config.plotOptions[e],o=a.colorScale.inverse?n:t;a.distributed&&"treemap"===r.config.chart.type&&(o=n);var s=r.globals.colors[o],l=null,u=Math.min.apply(Math,g(r.globals.series[t])),c=Math.max.apply(Math,g(r.globals.series[t]));a.distributed||"heatmap"!==e||(u=r.globals.minY,c=r.globals.maxY),void 0!==a.colorScale.min&&(u=a.colorScale.minr.globals.maxY?a.colorScale.max:r.globals.maxY);var d=Math.abs(c)+Math.abs(u),f=100*i/(0===d?d-1e-6:d);return a.colorScale.ranges.length>0&&a.colorScale.ranges.map((function(e,t){if(i>=e.from&&i<=e.to){s=e.color,l=e.foreColor?e.foreColor:null,u=e.from,c=e.to;var n=Math.abs(c)+Math.abs(u);f=100*i/(0===n?n-1e-6:n)}})),{color:s,foreColor:l,percent:f}}},{key:"calculateDataLabels",value:function(e){var t=e.text,n=e.x,r=e.y,i=e.i,a=e.j,o=e.colorProps,s=e.fontSize,l=this.w.config.dataLabels,u=new E(this.ctx),c=new U(this.ctx),d=null;if(l.enabled){d=u.group({class:"apexcharts-data-labels"});var f=l.offsetX,p=l.offsetY,h=n+f,m=r+parseFloat(l.style.fontSize)/3+p;c.plotDataLabelsText({x:h,y:m,text:t,i:i,j:a,color:o.foreColor,parent:d,fontSize:s,dataLabelsConfig:l})}return d}},{key:"addListeners",value:function(e){var t=new E(this.ctx);e.node.addEventListener("mouseenter",t.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",t.pathMouseLeave.bind(this,e)),e.node.addEventListener("mousedown",t.pathMouseDown.bind(this,e))}}]),e}(),Ae=function(){function e(t,n){s(this,e),this.ctx=t,this.w=t.w,this.xRatio=n.xRatio,this.yRatio=n.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new Te(t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return u(e,[{key:"draw",value:function(e){var t=this.w,n=new E(this.ctx),r=n.group({class:"apexcharts-heatmap"});r.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var i=t.globals.gridWidth/t.globals.dataPoints,a=t.globals.gridHeight/t.globals.series.length,o=0,s=!1;this.negRange=this.helpers.checkColorRange();var l=e.slice();t.config.yaxis[0].reversed&&(s=!0,l.reverse());for(var u=s?0:l.length-1;s?u=0;s?u++:u--){var c=n.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:_.escapeString(t.globals.seriesNames[u]),rel:u+1,"data:realIndex":u});if(this.ctx.series.addCollapsedClassToSeries(c,u),t.config.chart.dropShadow.enabled){var d=t.config.chart.dropShadow;new x(this.ctx).dropShadow(c,d,u)}for(var f=0,p=t.config.plotOptions.heatmap.shadeIntensity,h=0;h-1&&this.pieClicked(d),n.config.dataLabels.enabled){var S=y.x,w=y.y,C=100*p/this.fullAngle+"%";if(0!==p&&n.config.plotOptions.pie.dataLabels.minAngleToShowLabelthis.fullAngle?t.endAngle=t.endAngle-(r+o):r+o=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(s=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(s)>this.fullAngle&&(s-=this.fullAngle);var l=Math.PI*(s-90)/180,u=t.centerX+i*Math.cos(o),c=t.centerY+i*Math.sin(o),d=t.centerX+i*Math.cos(l),f=t.centerY+i*Math.sin(l),p=_.polarToCartesian(t.centerX,t.centerY,t.donutSize,s),h=_.polarToCartesian(t.centerX,t.centerY,t.donutSize,a),m=r>180?1:0,g=["M",u,c,"A",i,i,0,m,1,d,f];return"donut"===t.chartType?[].concat(g,["L",p.x,p.y,"A",t.donutSize,t.donutSize,0,m,0,h.x,h.y,"L",u,c,"z"]).join(" "):"pie"===t.chartType||"polarArea"===t.chartType?[].concat(g,["L",t.centerX,t.centerY,"L",u,c]).join(" "):[].concat(g).join(" ")}},{key:"drawPolarElements",value:function(e){var t=this.w,n=new X(this.ctx),r=new E(this.ctx),i=new ke(this.ctx),a=r.group(),o=r.group(),s=n.niceScale(0,Math.ceil(this.maxY),t.config.yaxis[0].tickAmount,0,!0),l=s.result.reverse(),u=s.result.length;this.maxY=s.niceMax;for(var c=t.globals.radialSize,d=c/(u-1),f=0;f1&&e.total.show&&(i=e.total.color);var o=a.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),s=a.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");n=(0,e.value.formatter)(n,a),r||"function"!=typeof e.total.formatter||(n=e.total.formatter(a));var l=t===e.total.label;t=e.name.formatter(t,l,a),null!==o&&(o.textContent=t),null!==s&&(s.textContent=n),null!==o&&(o.style.fill=i)}},{key:"printDataLabelsInner",value:function(e,t){var n=this.w,r=e.getAttribute("data:value"),i=n.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];n.globals.series.length>1&&this.printInnerLabels(t,i,r,e);var a=n.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==a&&(a.style.opacity=1)}},{key:"drawSpokes",value:function(e){var t=this,n=this.w,r=new E(this.ctx),i=n.config.plotOptions.polarArea.spokes;if(0!==i.strokeWidth){for(var a=[],o=360/n.globals.series.length,s=0;s1)o&&!t.total.showAlways?l({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(t,t.total.label,t.total.formatter(i));else if(l({makeSliceOut:!1,printLabel:!0}),!o)if(i.globals.selectedDataPoints.length&&i.globals.series.length>1)if(i.globals.selectedDataPoints[0].length>0){var u=i.globals.selectedDataPoints[0],c=i.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(u));this.printDataLabelsInner(c,t)}else a&&i.globals.selectedDataPoints.length&&0===i.globals.selectedDataPoints[0].length&&(a.style.opacity=0);else a&&i.globals.series.length>1&&(a.style.opacity=0)}}]),e}(),Oe=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var n=this.w;this.graphics=new E(this.ctx),this.lineColorArr=void 0!==n.globals.stroke.colors?n.globals.stroke.colors:n.globals.colors,this.defaultSize=n.globals.svgHeight0&&(m=t.getPreviousPath(s));for(var g=0;g=10?e.x>0?(n="start",r+=10):e.x<0&&(n="end",r-=10):n="middle",Math.abs(e.y)>=t-10&&(e.y<0?i-=10:e.y>0&&(i+=10)),{textAnchor:n,newX:r,newY:i}}},{key:"getPreviousPath",value:function(e){for(var t=this.w,n=null,r=0;r0&&parseInt(i.realIndex,10)===parseInt(e,10)&&void 0!==t.globals.previousPaths[r].paths[0]&&(n=t.globals.previousPaths[r].paths[0].d)}return n}},{key:"getDataPointsPos",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;e=e||[],t=t||[];for(var r=[],i=0;i=360&&(f=360-Math.abs(this.startAngle)-.1);var p=n.drawPath({d:"",stroke:c,strokeWidth:o*parseInt(u.strokeWidth,10)/100,fill:"none",strokeOpacity:u.opacity,classes:"apexcharts-radialbar-area"});if(u.dropShadow.enabled){var h=u.dropShadow;i.dropShadow(p,h)}l.add(p),p.attr("id","apexcharts-radialbarTrack-"+s),this.animatePaths(p,{centerX:e.centerX,centerY:e.centerY,endAngle:f,startAngle:d,size:e.size,i:s,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:t.globals.easing})}return r}},{key:"drawArcs",value:function(e){var t=this.w,n=new E(this.ctx),r=new B(this.ctx),i=new x(this.ctx),a=n.group(),o=this.getStrokeWidth(e);e.size=e.size-o/2;var s=t.config.plotOptions.radialBar.hollow.background,l=e.size-o*e.series.length-this.margin*e.series.length-o*parseInt(t.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,u=l-t.config.plotOptions.radialBar.hollow.margin;void 0!==t.config.plotOptions.radialBar.hollow.image&&(s=this.drawHollowImage(e,a,l,s));var c=this.drawHollow({size:u,centerX:e.centerX,centerY:e.centerY,fill:s||"transparent"});if(t.config.plotOptions.radialBar.hollow.dropShadow.enabled){var d=t.config.plotOptions.radialBar.hollow.dropShadow;i.dropShadow(c,d)}var f=1;!this.radialDataLabels.total.show&&t.globals.series.length>1&&(f=0);var p=null;this.radialDataLabels.show&&(p=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:l,centerX:e.centerX,centerY:e.centerY,opacity:f})),"back"===t.config.plotOptions.radialBar.hollow.position&&(a.add(c),p&&a.add(p));var h=!1;t.config.plotOptions.radialBar.inverseOrder&&(h=!0);for(var m=h?e.series.length-1:0;h?m>=0:m100?100:e.series[m])/100,w=Math.round(this.totalAngle*S)+this.startAngle,C=void 0;t.globals.dataChanged&&(b=this.startAngle,C=Math.round(this.totalAngle*_.negToZero(t.globals.previousPaths[m])/100)+b),Math.abs(w)+Math.abs(y)>=360&&(w-=.01),Math.abs(C)+Math.abs(b)>=360&&(C-=.01);var T=w-y,A=Array.isArray(t.config.stroke.dashArray)?t.config.stroke.dashArray[m]:t.config.stroke.dashArray,k=n.drawPath({d:"",stroke:v,strokeWidth:o,fill:"none",fillOpacity:t.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+m,strokeDashArray:A});if(E.setAttrs(k.node,{"data:angle":T,"data:value":e.series[m]}),t.config.chart.dropShadow.enabled){var D=t.config.chart.dropShadow;i.dropShadow(k,D,m)}i.setSelectionFilter(k,0,m),this.addListeners(k,this.radialDataLabels),g.add(k),k.attr({index:0,j:m});var O=0;!this.initialAnim||t.globals.resized||t.globals.dataChanged||(O=t.config.chart.animations.speed),t.globals.dataChanged&&(O=t.config.chart.animations.dynamicAnimation.speed),this.animDur=O/(1.2*e.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(k,{centerX:e.centerX,centerY:e.centerY,endAngle:w,startAngle:y,prevEndAngle:C,prevStartAngle:b,size:e.size,i:m,totalItems:2,animBeginArr:this.animBeginArr,dur:O,shouldSetPrevPaths:!0,easing:t.globals.easing})}return{g:a,elHollow:c,dataLabels:p}}},{key:"drawHollow",value:function(e){var t=new E(this.ctx).drawCircle(2*e.size);return t.attr({class:"apexcharts-radialbar-hollow",cx:e.centerX,cy:e.centerY,r:e.size,fill:e.fill}),t}},{key:"drawHollowImage",value:function(e,t,n,r){var i=this.w,a=new B(this.ctx),o=_.randomId(),s=i.config.plotOptions.radialBar.hollow.image;if(i.config.plotOptions.radialBar.hollow.imageClipped)a.clippedImgArea({width:n,height:n,image:s,patternID:"pattern".concat(i.globals.cuid).concat(o)}),r="url(#pattern".concat(i.globals.cuid).concat(o,")");else{var l=i.config.plotOptions.radialBar.hollow.imageWidth,u=i.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===u){var c=i.globals.dom.Paper.image(s).loaded((function(t){this.move(e.centerX-t.width/2+i.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-t.height/2+i.config.plotOptions.radialBar.hollow.imageOffsetY)}));t.add(c)}else{var d=i.globals.dom.Paper.image(s).loaded((function(t){this.move(e.centerX-l/2+i.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-u/2+i.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,u)}));t.add(d)}}return r}},{key:"getStrokeWidth",value:function(e){var t=this.w;return e.size*(100-parseInt(t.config.plotOptions.radialBar.hollow.size,10))/100/(e.series.length+1)-this.margin}}]),n}(),Re=function(e){d(n,Se);var t=m(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"draw",value:function(e,t){var n=this.w,r=new E(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=e,this.seriesRangeStart=n.globals.seriesRangeStart,this.seriesRangeEnd=n.globals.seriesRangeEnd,this.barHelpers.initVariables(e);for(var i=r.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),o=0;o0&&(this.visibleI=this.visibleI+1);var m=0,g=0;this.yRatio.length>1&&(this.yaxisIndex=p);var v=this.barHelpers.initialPositions();d=v.y,u=v.zeroW,c=v.x,g=v.barWidth,s=v.xDivision,l=v.zeroH;for(var y=r.group({class:"apexcharts-datalabels","data:realIndex":p}),b=r.group({class:"apexcharts-rangebar-goals-markers",style:"pointer-events: none"}),x=0;x0}));return r=l.config.plotOptions.bar.rangeBarGroupRows?i+o*f:i+a*this.visibleI+o*f,p>-1&&!l.config.plotOptions.bar.rangeBarOverlap&&(u=l.globals.seriesRange[t][p].overlaps).indexOf(c)>-1&&(r=(a=s.barHeight/u.length)*this.visibleI+o*(100-parseInt(this.barOptions.barHeight,10))/100/2+a*(this.visibleI+u.indexOf(c))+o*f),{barYPosition:r,barHeight:a}}},{key:"drawRangeColumnPaths",value:function(e){var t=e.indexes,n=e.x;e.strokeWidth;var r=e.xDivision,i=e.barWidth,a=e.zeroH,o=this.w,s=t.i,l=t.j,u=this.yRatio[this.yaxisIndex],c=t.realIndex,d=this.getRangeValue(c,l),f=Math.min(d.start,d.end),p=Math.max(d.start,d.end);o.globals.isXNumeric&&(n=(o.globals.seriesX[s][l]-o.globals.minX)/this.xRatio-i/2);var h=n+i*this.visibleI;void 0===this.series[s][l]||null===this.series[s][l]?f=a:(f=a-f/u,p=a-p/u);var m=Math.abs(p-f),g=this.barHelpers.getColumnPaths({barXPosition:h,barWidth:i,y1:f,y2:p,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:t.realIndex,i:c,j:l,w:o});return o.globals.isXNumeric||(n+=r),{pathTo:g.pathTo,pathFrom:g.pathFrom,barHeight:m,x:n,y:p,goalY:this.barHelpers.getGoalValues("y",null,a,s,l),barXPosition:h}}},{key:"drawRangeBarPaths",value:function(e){var t=e.indexes,n=e.y,r=e.y1,i=e.y2,a=e.yDivision,o=e.barHeight,s=e.barYPosition,l=e.zeroW,u=this.w,c=l+r/this.invertedYRatio,d=l+i/this.invertedYRatio,f=Math.abs(d-c),p=this.barHelpers.getBarpaths({barYPosition:s,barHeight:o,x1:c,x2:d,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:t.realIndex,realIndex:t.realIndex,j:t.j,w:u});return u.globals.isXNumeric||(n+=a),{pathTo:p.pathTo,pathFrom:p.pathFrom,barWidth:f,x:d,goalX:this.barHelpers.getGoalValues("x",l,null,t.realIndex,t.j),y:n}}},{key:"getRangeValue",value:function(e,t){var n=this.w;return{start:n.globals.seriesRangeStart[e][t],end:n.globals.seriesRangeEnd[e][t]}}}]),n}(),Ne=function(){function e(t){s(this,e),this.w=t.w,this.lineCtx=t}return u(e,[{key:"sameValueSeriesFix",value:function(e,t){var n=this.w;if(("gradient"===n.config.fill.type||"gradient"===n.config.fill.type[e])&&new S(this.lineCtx.ctx,n).seriesHaveSameValues(e)){var r=t[e].slice();r[r.length-1]=r[r.length-1]+1e-6,t[e]=r}return t}},{key:"calculatePoints",value:function(e){var t=e.series,n=e.realIndex,r=e.x,i=e.y,a=e.i,o=e.j,s=e.prevY,l=this.w,u=[],c=[];if(0===o){var d=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;l.globals.isXNumeric&&(d=(l.globals.seriesX[n][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),u.push(d),c.push(_.isNumber(t[a][0])?s+l.config.markers.offsetY:null),u.push(r+l.config.markers.offsetX),c.push(_.isNumber(t[a][o+1])?i+l.config.markers.offsetY:null)}else u.push(r+l.config.markers.offsetX),c.push(_.isNumber(t[a][o+1])?i+l.config.markers.offsetY:null);return{x:u,y:c}}},{key:"checkPreviousPaths",value:function(e){for(var t=e.pathFromLine,n=e.pathFromArea,r=e.realIndex,i=this.w,a=0;a0&&parseInt(o.realIndex,10)===parseInt(r,10)&&("line"===o.type?(this.lineCtx.appendPathFrom=!1,t=i.globals.previousPaths[a].paths[0].d):"area"===o.type&&(this.lineCtx.appendPathFrom=!1,n=i.globals.previousPaths[a].paths[0].d,i.config.stroke.show&&i.globals.previousPaths[a].paths[1]&&(t=i.globals.previousPaths[a].paths[1].d)))}return{pathFromLine:t,pathFromArea:n}}},{key:"determineFirstPrevY",value:function(e){var t,n=e.i,r=e.series,i=e.prevY,a=e.lineYPosition,o=this.w;if(void 0!==(null===(t=r[n])||void 0===t?void 0:t[0]))i=(a=o.config.chart.stacked&&n>0?this.lineCtx.prevSeriesY[n-1][0]:this.lineCtx.zeroY)-r[n][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?r[n][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(o.config.chart.stacked&&n>0&&void 0===r[n][0])for(var s=n-1;s>=0;s--)if(null!==r[s][0]&&void 0!==r[s][0]){i=a=this.lineCtx.prevSeriesY[s][0];break}return{prevY:i,lineYPosition:a}}}]),e}(),Me=function(){function e(t,n,r){s(this,e),this.ctx=t,this.w=t.w,this.xyRatios=n,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||r,this.scatter=new z(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Ne(this),this.markers=new Z(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return u(e,[{key:"draw",value:function(e,t,n,r){var i=this.w,o=new E(this.ctx),s=i.globals.comboCharts?t:i.config.chart.type,l=o.group({class:"apexcharts-".concat(s,"-series apexcharts-plot-series")}),u=new S(this.ctx,i);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=u.getLogSeries(e),this.yRatio=u.getLogYRatios(this.yRatio);for(var c=[],d=0;d0&&(m=(i.globals.seriesX[f][0]-i.globals.minX)/this.xRatio),h.push(m);var g,v=m,y=void 0,_=v,b=this.zeroY,x=this.zeroY;b=this.lineHelpers.determineFirstPrevY({i:d,series:e,prevY:b,lineYPosition:0}).prevY,p.push(b),g=b,"rangeArea"===s&&(y=x=this.lineHelpers.determineFirstPrevY({i:d,series:r,prevY:x,lineYPosition:0}).prevY);var w={type:s,series:e,realIndex:f,i:d,x:m,y:1,pX:v,pY:g,pathsFrom:this._calculatePathsFrom({type:s,series:e,i:d,realIndex:f,prevX:_,prevY:b,prevY2:x}),linePaths:[],areaPaths:[],seriesIndex:n,lineYPosition:0,xArrj:h,yArrj:p,seriesRangeEnd:r},C=this._iterateOverDataPoints(a(a({},w),{},{iterations:"rangeArea"===s?e[d].length-1:void 0,isRangeStart:!0}));if("rangeArea"===s){var T=this._calculatePathsFrom({series:r,i:d,realIndex:f,prevX:_,prevY:x}),A=this._iterateOverDataPoints(a(a({},w),{},{series:r,pY:y,pathsFrom:T,iterations:r[d].length-1,isRangeStart:!1}));C.linePaths[0]=A.linePath+C.linePath,C.pathFromLine=A.pathFromLine+C.pathFromLine}this._handlePaths({type:s,realIndex:f,i:d,paths:C}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),c.push(this.elSeries)}if(i.config.chart.stacked)for(var k=c.length;k>0;k--)l.add(c[k-1]);else for(var D=0;D1&&(this.yaxisIndex=n),this.isReversed=r.config.yaxis[this.yaxisIndex]&&r.config.yaxis[this.yaxisIndex].reversed,this.zeroY=r.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?r.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>r.globals.gridHeight||"end"===r.config.plotOptions.area.fillTo)&&(this.areaBottomY=r.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=i.group({class:"apexcharts-series",seriesName:_.escapeString(r.globals.seriesNames[n])}),this.elPointsMain=i.group({class:"apexcharts-series-markers-wrap","data:realIndex":n}),this.elDataLabelsWrap=i.group({class:"apexcharts-datalabels","data:realIndex":n});var a=e[t].length===r.globals.dataPoints;this.elSeries.attr({"data:longestSeries":a,rel:t+1,"data:realIndex":n}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(e){var t,n,r,i,a=e.type,o=e.series,s=e.i,l=e.realIndex,u=e.prevX,c=e.prevY,d=e.prevY2,f=this.w,p=new E(this.ctx);if(null===o[s][0]){for(var h=0;h0){var m=this.lineHelpers.checkPreviousPaths({pathFromLine:r,pathFromArea:i,realIndex:l});r=m.pathFromLine,i=m.pathFromArea}return{prevX:u,prevY:c,linePath:t,areaPath:n,pathFromLine:r,pathFromArea:i}}},{key:"_handlePaths",value:function(e){var t=e.type,n=e.realIndex,r=e.i,i=e.paths,o=this.w,s=new E(this.ctx),l=new B(this.ctx);this.prevSeriesY.push(i.yArrj),o.globals.seriesXvalues[n]=i.xArrj,o.globals.seriesYvalues[n]=i.yArrj;var u=o.config.forecastDataPoints;if(u.count>0&&"rangeArea"!==t){var c=o.globals.seriesXvalues[n][o.globals.seriesXvalues[n].length-u.count-1],d=s.drawRect(c,0,o.globals.gridWidth,o.globals.gridHeight,0);o.globals.dom.elForecastMask.appendChild(d.node);var f=s.drawRect(0,0,c,o.globals.gridHeight,0);o.globals.dom.elNonForecastMask.appendChild(f.node)}this.pointsChart||o.globals.delayedElements.push({el:this.elPointsMain.node,index:n});var p={i:r,realIndex:n,animationDelay:r,initialSpeed:o.config.chart.animations.speed,dataChangeSpeed:o.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if("area"===t)for(var h=l.fillPath({seriesNumber:n}),m=0;m0&&"rangeArea"!==t){var w=s.renderPaths(x);w.node.setAttribute("stroke-dasharray",u.dashArray),u.strokeWidth&&w.node.setAttribute("stroke-width",u.strokeWidth),this.elSeries.add(w),w.attr("clip-path","url(#forecastMask".concat(o.globals.cuid,")")),S.attr("clip-path","url(#nonForecastMask".concat(o.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){var t=e.type,n=e.series,r=e.iterations,i=e.realIndex,a=e.i,o=e.x,s=e.y,l=e.pX,u=e.pY,c=e.pathsFrom,d=e.linePaths,f=e.areaPaths,p=e.seriesIndex,h=e.lineYPosition,m=e.xArrj,g=e.yArrj,v=e.isRangeStart,y=e.seriesRangeEnd,b=this.w,x=new E(this.ctx),S=this.yRatio,w=c.prevY,C=c.linePath,T=c.areaPath,A=c.pathFromLine,k=c.pathFromArea,D=_.isNumber(b.globals.minYArr[i])?b.globals.minYArr[i]:b.globals.minY;r||(r=b.globals.dataPoints>1?b.globals.dataPoints-1:b.globals.dataPoints);for(var O=s,I=0;I0&&b.globals.collapsedSeries.length-1){t--;break}return t>=0?t:0}(a-1)][I+1]:this.zeroY,R?s=h-D/S[this.yaxisIndex]+2*(this.isReversed?D/S[this.yaxisIndex]:0):(s=h-n[a][I+1]/S[this.yaxisIndex]+2*(this.isReversed?n[a][I+1]/S[this.yaxisIndex]:0),"rangeArea"===t&&(O=h-y[a][I+1]/S[this.yaxisIndex]+2*(this.isReversed?y[a][I+1]/S[this.yaxisIndex]:0))),m.push(o),g.push(s);var M=this.lineHelpers.calculatePoints({series:n,x:o,y:s,realIndex:i,i:a,j:I,prevY:w}),P=this._createPaths({type:t,series:n,i:a,realIndex:i,j:I,x:o,y:s,y2:O,pX:l,pY:u,linePath:C,areaPath:T,linePaths:d,areaPaths:f,seriesIndex:p,isRangeStart:v});f=P.areaPaths,d=P.linePaths,l=P.pX,u=P.pY,T=P.areaPath,C=P.linePath,this.appendPathFrom&&(A+=x.line(o,this.zeroY),k+=x.line(o,this.zeroY)),this.handleNullDataPoints(n,M,a,I,i),this._handleMarkersAndLabels({type:t,pointsPos:M,i:a,j:I,realIndex:i,isRangeStart:v})}return{yArrj:g,xArrj:m,pathFromArea:k,areaPaths:f,pathFromLine:A,linePaths:d,linePath:C,areaPath:T}}},{key:"_handleMarkersAndLabels",value:function(e){var t=e.type,n=e.pointsPos,r=e.isRangeStart,i=e.i,a=e.j,o=e.realIndex,s=this.w,l=new U(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,a,{realIndex:o,pointsPos:n,zRatio:this.zRatio,elParent:this.elPointsMain});else{s.globals.series[i].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var u=this.markers.plotChartMarkers(n,o,a+1);null!==u&&this.elPointsMain.add(u)}var c=l.drawDataLabel({type:t,isRangeStart:r,pos:n,i:o,j:a+1});null!==c&&this.elDataLabelsWrap.add(c)}},{key:"_createPaths",value:function(e){var t=e.type,n=e.series,r=e.i,i=e.realIndex,a=e.j,o=e.x,s=e.y,l=e.y2,u=e.pX,c=e.pY,d=e.linePath,f=e.areaPath,p=e.linePaths,h=e.areaPaths,m=e.seriesIndex,g=e.isRangeStart,v=this.w,y=new E(this.ctx),_=v.config.stroke.curve,b=this.areaBottomY;if(Array.isArray(v.config.stroke.curve)&&(_=Array.isArray(m)?v.config.stroke.curve[m[r]]:v.config.stroke.curve[r]),"smooth"===_){var x=.35*(o-u);v.globals.hasNullValues?(null!==n[r][a]&&(null!==n[r][a+1]?(d=y.move(u,c)+y.curve(u+x,c,o-x,s,o+1,s),f=y.move(u+1,c)+y.curve(u+x,c,o-x,s,o+1,s)+y.line(o,b)+y.line(u,b)+"z"):(d=y.move(u,c),f=y.move(u,c)+"z")),p.push(d),h.push(f)):(d+=y.curve(u+x,c,o-x,s,o,s),f+=y.curve(u+x,c,o-x,s,o,s)),u=o,c=s,a===n[r].length-2&&(f=f+y.curve(u,c,o,s,o,b)+y.move(o,s)+"z","rangeArea"===t&&g?d=d+y.curve(u,c,o,s,o,l)+y.move(o,l)+"z":v.globals.hasNullValues||(p.push(d),h.push(f)))}else{if(null===n[r][a+1]){d+=y.move(o,s);var S=v.globals.isXNumeric?(v.globals.seriesX[i][a]-v.globals.minX)/this.xRatio:o-this.xDivision;f=f+y.line(S,b)+y.move(o,s)+"z"}null===n[r][a]&&(d+=y.move(o,s),f+=y.move(o,b)),"stepline"===_?(d=d+y.line(o,null,"H")+y.line(null,s,"V"),f=f+y.line(o,null,"H")+y.line(null,s,"V")):"straight"===_&&(d+=y.line(o,s),f+=y.line(o,s)),a===n[r].length-2&&(f=f+y.line(o,b)+y.move(o,s)+"z","rangeArea"===t&&g?d=d+y.line(o,l)+y.move(o,l)+"z":(p.push(d),h.push(f)))}return{linePaths:p,areaPaths:h,pX:u,pY:c,linePath:d,areaPath:f}}},{key:"handleNullDataPoints",value:function(e,t,n,r,i){var a=this.w;if(null===e[n][r]&&a.config.markers.showNullDataPoints||1===e[n].length){var o=this.markers.plotChartMarkers(t,i,r+1,this.strokeWidth-a.config.markers.strokeWidth/2,!0);null!==o&&this.elPointsMain.add(o)}}}]),e}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function e(t,n,r,i){this.xoffset=t,this.yoffset=n,this.height=i,this.width=r,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(e){var t,n=[],r=this.xoffset,i=this.yoffset,o=a(e)/this.height,s=a(e)/this.width;if(this.width>=this.height)for(t=0;t=this.height){var r=t/this.height,i=this.width-r;n=new e(this.xoffset+r,this.yoffset,i,this.height)}else{var a=t/this.width,o=this.height-a;n=new e(this.xoffset,this.yoffset+a,this.width,o)}return n}}function t(t,r,i,o,s){o=void 0===o?0:o,s=void 0===s?0:s;var l=n(function(e,t){var n,r=[],i=t/a(e);for(n=0;n=r(i,n))}(t,l=e[0],s)?(t.push(l),n(e.slice(1),t,i,o)):(u=i.cutArea(a(t),o),o.push(i.getCoordinates(t)),n(e,[],u,o)),o;o.push(i.getCoordinates(t))}function r(e,t){var n=Math.min.apply(Math,e),r=Math.max.apply(Math,e),i=a(e);return Math.max(Math.pow(t,2)*r/Math.pow(i,2),Math.pow(i,2)/(Math.pow(t,2)*n))}function i(e){return e&&e.constructor===Array}function a(e){var t,n=0;for(t=0;ta-r&&l.width<=o-i){var u=s.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(-90 ".concat(u.x," ").concat(u.y,")"))}}},{key:"animateTreemap",value:function(e,t,n,r){var i=new b(this.ctx);i.animateRect(e,{x:t.x,y:t.y,width:t.width,height:t.height},{x:n.x,y:n.y,width:n.width,height:n.height},r,(function(){i.animationCompleted(e)}))}}]),e}(),Be=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return u(e,[{key:"calculateTimeScaleTicks",value:function(e,t){var n=this,r=this.w;if(r.globals.allSeriesCollapsed)return r.globals.labels=[],r.globals.timescaleLabels=[],[];var i=new I(this.ctx),o=(t-e)/864e5;this.determineInterval(o),r.globals.disableZoomIn=!1,r.globals.disableZoomOut=!1,o<.00011574074074074075?r.globals.disableZoomIn=!0:o>5e4&&(r.globals.disableZoomOut=!0);var s=i.getTimeUnitsfromTimestamp(e,t,this.utc),l=r.globals.gridWidth/o,u=l/24,c=u/60,d=c/60,f=Math.floor(24*o),p=Math.floor(1440*o),h=Math.floor(86400*o),m=Math.floor(o),g=Math.floor(o/30),v=Math.floor(o/365),y={minMillisecond:s.minMillisecond,minSecond:s.minSecond,minMinute:s.minMinute,minHour:s.minHour,minDate:s.minDate,minMonth:s.minMonth,minYear:s.minYear},_={firstVal:y,currentMillisecond:y.minMillisecond,currentSecond:y.minSecond,currentMinute:y.minMinute,currentHour:y.minHour,currentMonthDate:y.minDate,currentDate:y.minDate,currentMonth:y.minMonth,currentYear:y.minYear,daysWidthOnXAxis:l,hoursWidthOnXAxis:u,minutesWidthOnXAxis:c,secondsWidthOnXAxis:d,numberOfSeconds:h,numberOfMinutes:p,numberOfHours:f,numberOfDays:m,numberOfMonths:g,numberOfYears:v};switch(this.tickInterval){case"years":this.generateYearScale(_);break;case"months":case"half_year":this.generateMonthScale(_);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(_);break;case"hours":this.generateHourScale(_);break;case"minutes_fives":case"minutes":this.generateMinuteScale(_);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(_)}var b=this.timeScaleArray.map((function(e){var t={position:e.position,unit:e.unit,year:e.year,day:e.day?e.day:1,hour:e.hour?e.hour:0,month:e.month+1};return"month"===e.unit?a(a({},t),{},{day:1,value:e.value+1}):"day"===e.unit||"hour"===e.unit?a(a({},t),{},{value:e.value}):"minute"===e.unit?a(a({},t),{},{value:e.value,minute:e.value}):"second"===e.unit?a(a({},t),{},{value:e.value,minute:e.minute,second:e.second}):e}));return b.filter((function(e){var t=1,i=Math.ceil(r.globals.gridWidth/120),a=e.value;void 0!==r.config.xaxis.tickAmount&&(i=r.config.xaxis.tickAmount),b.length>i&&(t=Math.floor(b.length/i));var o=!1,s=!1;switch(n.tickInterval){case"years":"year"===e.unit&&(o=!0);break;case"half_year":t=7,"year"===e.unit&&(o=!0);break;case"months":t=1,"year"===e.unit&&(o=!0);break;case"months_fortnight":t=15,"year"!==e.unit&&"month"!==e.unit||(o=!0),30===a&&(s=!0);break;case"months_days":t=10,"month"===e.unit&&(o=!0),30===a&&(s=!0);break;case"week_days":t=8,"month"===e.unit&&(o=!0);break;case"days":t=1,"month"===e.unit&&(o=!0);break;case"hours":"day"===e.unit&&(o=!0);break;case"minutes_fives":case"seconds_fives":a%5!=0&&(s=!0);break;case"seconds_tens":a%10!=0&&(s=!0)}if("hours"===n.tickInterval||"minutes_fives"===n.tickInterval||"seconds_tens"===n.tickInterval||"seconds_fives"===n.tickInterval){if(!s)return!0}else if((a%t==0||o)&&!s)return!0}))}},{key:"recalcDimensionsBasedOnFormat",value:function(e,t){var n=this.w,r=this.formatDates(e),i=this.removeOverlappingTS(r);n.globals.timescaleLabels=i.slice(),new ue(this.ctx).plotCoords()}},{key:"determineInterval",value:function(e){var t=24*e,n=60*t;switch(!0){case e/365>5:this.tickInterval="years";break;case e>800:this.tickInterval="half_year";break;case e>180:this.tickInterval="months";break;case e>90:this.tickInterval="months_fortnight";break;case e>60:this.tickInterval="months_days";break;case e>30:this.tickInterval="week_days";break;case e>2:this.tickInterval="days";break;case t>2.4:this.tickInterval="hours";break;case n>15:this.tickInterval="minutes_fives";break;case n>5:this.tickInterval="minutes";break;case n>1:this.tickInterval="seconds_tens";break;case 60*n>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(e){var t=e.firstVal,n=e.currentMonth,r=e.currentYear,i=e.daysWidthOnXAxis,a=e.numberOfYears,o=t.minYear,s=0,l=new I(this.ctx),u="year";if(t.minDate>1||t.minMonth>0){var c=l.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);s=(l.determineDaysOfYear(t.minYear)-c+1)*i,o=t.minYear+1,this.timeScaleArray.push({position:s,value:o,unit:u,year:o,month:_.monthMod(n+1)})}else 1===t.minDate&&0===t.minMonth&&this.timeScaleArray.push({position:s,value:o,unit:u,year:r,month:_.monthMod(n+1)});for(var d=o,f=s,p=0;p1){l=(u.determineDaysOfMonths(r+1,t.minYear)-n+1)*a,s=_.monthMod(r+1);var f=i+d,p=_.monthMod(s),h=s;0===s&&(c="year",h=f,p=1,f+=d+=1),this.timeScaleArray.push({position:l,value:h,unit:c,year:f,month:p})}else this.timeScaleArray.push({position:l,value:s,unit:c,year:i,month:_.monthMod(r)});for(var m=s+1,g=l,v=0,y=1;vo.determineDaysOfMonths(t+1,n)?(u=1,s="month",f=t+=1,t):t},d=(24-t.minHour)*i,f=l,p=c(u,n,r);0===t.minHour&&1===t.minDate?(d=0,f=_.monthMod(t.minMonth),s="month",u=t.minDate,a++):1!==t.minDate&&0===t.minHour&&0===t.minMinute&&(d=0,l=t.minDate,f=l,p=c(u=l,n,r)),this.timeScaleArray.push({position:d,value:f,unit:s,year:this._getYear(r,p,0),month:_.monthMod(p),day:u});for(var h=d,m=0;ms.determineDaysOfMonths(t+1,i)&&(m=1,t+=1),{month:t,date:m}},c=function(e,t){return e>s.determineDaysOfMonths(t+1,i)?t+=1:t},d=60-(t.minMinute+t.minSecond/60),f=d*a,p=t.minHour+1,h=p+1;60===d&&(f=0,h=(p=t.minHour)+1);var m=n,g=c(m,r);this.timeScaleArray.push({position:f,value:p,unit:l,day:m,hour:h,year:i,month:_.monthMod(g)});for(var v=f,y=0;y=24&&(h=0,l="day",g=u(m+=1,g).month,g=c(m,g));var b=this._getYear(i,g,0);v=0===h&&0===y?d*a:60*a+v;var x=0===h?m:h;this.timeScaleArray.push({position:v,value:x,unit:l,hour:h,day:m,year:b,month:_.monthMod(g)}),h++}}},{key:"generateMinuteScale",value:function(e){for(var t=e.currentMillisecond,n=e.currentSecond,r=e.currentMinute,i=e.currentHour,a=e.currentDate,o=e.currentMonth,s=e.currentYear,l=e.minutesWidthOnXAxis,u=e.secondsWidthOnXAxis,c=e.numberOfMinutes,d=r+1,f=a,p=o,h=s,m=i,g=(60-n-t/1e3)*u,v=0;v=60&&(d=0,24===(m+=1)&&(m=0)),this.timeScaleArray.push({position:g,value:d,unit:"minute",hour:m,minute:d,day:f,year:this._getYear(h,p,0),month:_.monthMod(p)}),g+=l,d++}},{key:"generateSecondScale",value:function(e){for(var t=e.currentMillisecond,n=e.currentSecond,r=e.currentMinute,i=e.currentHour,a=e.currentDate,o=e.currentMonth,s=e.currentYear,l=e.secondsWidthOnXAxis,u=e.numberOfSeconds,c=n+1,d=r,f=a,p=o,h=s,m=i,g=(1e3-t)/1e3*l,v=0;v=60&&(c=0,++d>=60&&(d=0,24===++m&&(m=0))),this.timeScaleArray.push({position:g,value:c,unit:"second",hour:m,minute:d,second:c,day:f,year:this._getYear(h,p,0),month:_.monthMod(p)}),g+=l,c++}},{key:"createRawDateString",value:function(e,t){var n=e.year;return 0===e.month&&(e.month=1),n+="-"+("0"+e.month.toString()).slice(-2),"day"===e.unit?n+="day"===e.unit?"-"+("0"+t).slice(-2):"-01":n+="-"+("0"+(e.day?e.day:"1")).slice(-2),"hour"===e.unit?n+="hour"===e.unit?"T"+("0"+t).slice(-2):"T00":n+="T"+("0"+(e.hour?e.hour:"0")).slice(-2),"minute"===e.unit?n+=":"+("0"+t).slice(-2):n+=":"+(e.minute?("0"+e.minute).slice(-2):"00"),"second"===e.unit?n+=":"+("0"+t).slice(-2):n+=":00",this.utc&&(n+=".000Z"),n}},{key:"formatDates",value:function(e){var t=this,n=this.w;return e.map((function(e){var r=e.value.toString(),i=new I(t.ctx),a=t.createRawDateString(e,r),o=i.getDate(i.parseDate(a));if(t.utc||(o=i.getDate(i.parseDateWithTimezone(a))),void 0===n.config.xaxis.labels.format){var s="dd MMM",l=n.config.xaxis.labels.datetimeFormatter;"year"===e.unit&&(s=l.year),"month"===e.unit&&(s=l.month),"day"===e.unit&&(s=l.day),"hour"===e.unit&&(s=l.hour),"minute"===e.unit&&(s=l.minute),"second"===e.unit&&(s=l.second),r=i.formatDate(o,s)}else r=i.formatDate(o,n.config.xaxis.labels.format);return{dateString:a,position:e.position,value:r,unit:e.unit,year:e.year,month:e.month}}))}},{key:"removeOverlappingTS",value:function(e){var t,n=this,r=new E(this.ctx),i=!1;e.length>0&&e[0].value&&e.every((function(t){return t.value.length===e[0].value.length}))&&(i=!0,t=r.getTextRects(e[0].value).width);var a=0,o=e.map((function(o,s){if(s>0&&n.w.config.xaxis.labels.hideOverlappingLabels){var l=i?t:r.getTextRects(e[a].value).width,u=e[a].position;return o.position>u+l+10?(a=s,o):null}return o}));return o.filter((function(e){return null!==e}))}},{key:"_getYear",value:function(e,t,n){return e+Math.floor(t/12)+n}}]),e}(),Ze=function(){function e(t,n){s(this,e),this.ctx=n,this.w=n.w,this.el=t}return u(e,[{key:"setupElements",value:function(){var e=this.w.globals,t=this.w.config,n=t.chart.type;e.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(n)>-1,e.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(n)>-1,e.isBarHorizontal=("bar"===t.chart.type||"rangeBar"===t.chart.type||"boxPlot"===t.chart.type)&&t.plotOptions.bar.horizontal,e.chartClass=".apexcharts"+e.chartID,e.dom.baseEl=this.el,e.dom.elWrap=document.createElement("div"),E.setAttrs(e.dom.elWrap,{id:e.chartClass.substring(1),class:"apexcharts-canvas "+e.chartClass.substring(1)}),this.el.appendChild(e.dom.elWrap),e.dom.Paper=new window.SVG.Doc(e.dom.elWrap),e.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(t.chart.offsetX,", ").concat(t.chart.offsetY,")")}),e.dom.Paper.node.style.background=t.chart.background,this.setSVGDimensions(),e.dom.elGraphical=e.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),e.dom.elAnnotations=e.dom.Paper.group().attr({class:"apexcharts-annotations"}),e.dom.elDefs=e.dom.Paper.defs(),e.dom.elLegendWrap=document.createElement("div"),e.dom.elLegendWrap.classList.add("apexcharts-legend"),e.dom.elWrap.appendChild(e.dom.elLegendWrap),e.dom.Paper.add(e.dom.elGraphical),e.dom.elGraphical.add(e.dom.elDefs)}},{key:"plotChartType",value:function(e,t){var n=this.w,r=n.config,i=n.globals,a={series:[],i:[]},o={series:[],i:[]},s={series:[],i:[]},l={series:[],i:[]},u={series:[],i:[]},c={series:[],i:[]},d={series:[],i:[]},f={series:[],i:[]},p={series:[],seriesRangeEnd:[],i:[]};i.series.map((function(t,h){var m=0;void 0!==e[h].type?("column"===e[h].type||"bar"===e[h].type?(i.series.length>1&&r.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),u.series.push(t),u.i.push(h),m++,n.globals.columnSeries=u.series):"area"===e[h].type?(o.series.push(t),o.i.push(h),m++):"line"===e[h].type?(a.series.push(t),a.i.push(h),m++):"scatter"===e[h].type?(s.series.push(t),s.i.push(h)):"bubble"===e[h].type?(l.series.push(t),l.i.push(h),m++):"candlestick"===e[h].type?(c.series.push(t),c.i.push(h),m++):"boxPlot"===e[h].type?(d.series.push(t),d.i.push(h),m++):"rangeBar"===e[h].type?(f.series.push(t),f.i.push(h),m++):"rangeArea"===e[h].type?(p.series.push(i.seriesRangeStart[h]),p.seriesRangeEnd.push(i.seriesRangeEnd[h]),p.i.push(h),m++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble"),m>1&&(i.comboCharts=!0)):(a.series.push(t),a.i.push(h))}));var h=new Me(this.ctx,t),m=new Ce(this.ctx,t);this.ctx.pie=new De(this.ctx);var g=new Ie(this.ctx);this.ctx.rangeBar=new Re(this.ctx,t);var v=new Oe(this.ctx),y=[];if(i.comboCharts){if(o.series.length>0&&y.push(h.draw(o.series,"area",o.i)),u.series.length>0)if(n.config.chart.stacked){var _=new we(this.ctx,t);y.push(_.draw(u.series,u.i))}else this.ctx.bar=new Se(this.ctx,t),y.push(this.ctx.bar.draw(u.series,u.i));if(p.series.length>0&&y.push(h.draw(p.series,"rangeArea",p.i,p.seriesRangeEnd)),a.series.length>0&&y.push(h.draw(a.series,"line",a.i)),c.series.length>0&&y.push(m.draw(c.series,c.i)),d.series.length>0&&y.push(m.draw(d.series,d.i)),f.series.length>0&&y.push(this.ctx.rangeBar.draw(f.series,f.i)),s.series.length>0){var b=new Me(this.ctx,t,!0);y.push(b.draw(s.series,"scatter",s.i))}if(l.series.length>0){var x=new Me(this.ctx,t,!0);y.push(x.draw(l.series,"bubble",l.i))}}else switch(r.chart.type){case"line":y=h.draw(i.series,"line");break;case"area":y=h.draw(i.series,"area");break;case"bar":r.chart.stacked?y=new we(this.ctx,t).draw(i.series):(this.ctx.bar=new Se(this.ctx,t),y=this.ctx.bar.draw(i.series));break;case"candlestick":case"boxPlot":y=new Ce(this.ctx,t).draw(i.series);break;case"rangeBar":y=this.ctx.rangeBar.draw(i.series);break;case"rangeArea":y=h.draw(i.seriesRangeStart,"rangeArea",void 0,i.seriesRangeEnd);break;case"heatmap":y=new Ae(this.ctx,t).draw(i.series);break;case"treemap":y=new Fe(this.ctx,t).draw(i.series);break;case"pie":case"donut":case"polarArea":y=this.ctx.pie.draw(i.series);break;case"radialBar":y=g.draw(i.series);break;case"radar":y=v.draw(i.series);break;default:y=h.draw(i.series)}return y}},{key:"setSVGDimensions",value:function(){var e=this.w.globals,t=this.w.config;e.svgWidth=t.chart.width,e.svgHeight=t.chart.height;var n=_.getDimensions(this.el),r=t.chart.width.toString().split(/[0-9]+/g).pop();"%"===r?_.isNumber(n[0])&&(0===n[0].width&&(n=_.getDimensions(this.el.parentNode)),e.svgWidth=n[0]*parseInt(t.chart.width,10)/100):"px"!==r&&""!==r||(e.svgWidth=parseInt(t.chart.width,10));var i=t.chart.height.toString().split(/[0-9]+/g).pop();if("auto"!==e.svgHeight&&""!==e.svgHeight)if("%"===i){var a=_.getDimensions(this.el.parentNode);e.svgHeight=a[1]*parseInt(t.chart.height,10)/100}else e.svgHeight=parseInt(t.chart.height,10);else e.axisCharts?e.svgHeight=e.svgWidth/1.61:e.svgHeight=e.svgWidth/1.2;if(e.svgWidth<0&&(e.svgWidth=0),e.svgHeight<0&&(e.svgHeight=0),E.setAttrs(e.dom.Paper.node,{width:e.svgWidth,height:e.svgHeight}),"%"!==i){var o=t.chart.sparkline.enabled?0:e.axisCharts?t.chart.parentHeightOffset:0;e.dom.Paper.node.parentNode.parentNode.style.minHeight=e.svgHeight+o+"px"}e.dom.elWrap.style.width=e.svgWidth+"px",e.dom.elWrap.style.height=e.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var e=this.w.globals,t=e.translateY,n={transform:"translate("+e.translateX+", "+t+")"};E.setAttrs(e.dom.elGraphical.node,n)}},{key:"resizeNonAxisCharts",value:function(){var e=this.w,t=e.globals,n=0,r=e.config.chart.sparkline.enabled?1:15;r+=e.config.grid.padding.bottom,"top"!==e.config.legend.position&&"bottom"!==e.config.legend.position||!e.config.legend.show||e.config.legend.floating||(n=new de(this.ctx).legendHelpers.getLegendBBox().clwh+10);var i=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),a=2.05*e.globals.radialSize;if(i&&!e.config.chart.sparkline.enabled&&0!==e.config.plotOptions.radialBar.startAngle){var o=_.getBoundingClientRect(i);a=o.bottom;var s=o.bottom-o.top;a=Math.max(2.05*e.globals.radialSize,s)}var l=a+t.translateY+n+r;t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",l),e.config.chart.height&&String(e.config.chart.height).indexOf("%")>0||(t.dom.elWrap.style.height=l+"px",E.setAttrs(t.dom.Paper.node,{height:l}),t.dom.Paper.node.parentNode.parentNode.style.minHeight=l+"px")}},{key:"coreCalculations",value:function(){new K(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,t=function(){return e.w.config.series.map((function(e){return[]}))},n=new L,r=this.w.globals;n.initGlobalVars(r),r.seriesXvalues=t(),r.seriesYvalues=t()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var e=null,t=this.w;if(t.globals.axisCharts){if("back"===t.config.xaxis.crosshairs.position&&new te(this.ctx).drawXCrosshairs(),"back"===t.config.yaxis[0].crosshairs.position&&new te(this.ctx).drawYCrosshairs(),"datetime"===t.config.xaxis.type&&void 0===t.config.xaxis.labels.formatter){this.ctx.timeScale=new Be(this.ctx);var n=[];isFinite(t.globals.minX)&&isFinite(t.globals.maxX)&&!t.globals.isBarHorizontal?n=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minX,t.globals.maxX):t.globals.isBarHorizontal&&(n=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minY,t.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(n)}e=new S(this.ctx).getCalculatedRatios()}return e}},{key:"updateSourceChart",value:function(e){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var e=this,t=this.w;if(t.config.chart.brush.enabled&&"function"!=typeof t.config.chart.events.selection){var n=t.config.chart.brush.targets||[t.config.chart.brush.target];n.forEach((function(t){var n=ApexCharts.getChartByID(t);n.w.globals.brushSource=e.ctx,"function"!=typeof n.w.config.chart.events.zoomed&&(n.w.config.chart.events.zoomed=function(){e.updateSourceChart(n)}),"function"!=typeof n.w.config.chart.events.scrolled&&(n.w.config.chart.events.scrolled=function(){e.updateSourceChart(n)})})),t.config.chart.events.selection=function(e,r){n.forEach((function(e){var n=ApexCharts.getChartByID(e),i=_.clone(t.config.yaxis);if(t.config.chart.brush.autoScaleYaxis&&1===n.w.globals.series.length){var o=new X(n);i=o.autoScaleY(n,i,r)}var s=n.w.config.yaxis.reduce((function(e,t,r){return[].concat(g(e),[a(a({},n.w.config.yaxis[r]),{},{min:i[0].min,max:i[0].max})])}),[]);n.ctx.updateHelpers._updateOptions({xaxis:{min:r.xaxis.min,max:r.xaxis.max},yaxis:s},!1,!1,!1,!1)}))}}}}]),e}(),ze=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return u(e,[{key:"_updateOptions",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise((function(s){var l=[t.ctx];i&&(l=t.ctx.getSyncedCharts()),t.ctx.w.globals.isExecCalled&&(l=[t.ctx],t.ctx.w.globals.isExecCalled=!1),l.forEach((function(i,u){var c=i.w;if(c.globals.shouldAnimate=r,n||(c.globals.resized=!0,c.globals.dataChanged=!0,r&&i.series.getPreviousPaths()),e&&"object"===o(e)&&(i.config=new P(e),e=S.extendArrayProps(i.config,e,c),i.w.globals.chartID!==t.ctx.w.globals.chartID&&delete e.series,c.config=_.extend(c.config,e),a&&(c.globals.lastXAxis=e.xaxis?_.clone(e.xaxis):[],c.globals.lastYAxis=e.yaxis?_.clone(e.yaxis):[],c.globals.initialConfig=_.extend({},c.config),c.globals.initialSeries=_.clone(c.config.series),e.series))){for(var d=0;d2&&void 0!==arguments[2]&&arguments[2];return new Promise((function(i){var a,o=n.w;return o.globals.shouldAnimate=t,o.globals.dataChanged=!0,t&&n.ctx.series.getPreviousPaths(),o.globals.axisCharts?(0===(a=e.map((function(e,t){return n._extendSeries(e,t)}))).length&&(a=[{data:[]}]),o.config.series=a):o.config.series=e.slice(),r&&(o.globals.initialConfig.series=_.clone(o.config.series),o.globals.initialSeries=_.clone(o.config.series)),n.ctx.update().then((function(){i(n.ctx)}))}))}},{key:"_extendSeries",value:function(e,t){var n=this.w,r=n.config.series[t];return a(a({},n.config.series[t]),{},{name:e.name?e.name:r&&r.name,color:e.color?e.color:r&&r.color,type:e.type?e.type:r&&r.type,data:e.data?e.data:r&&r.data})}},{key:"toggleDataPointSelection",value:function(e,t){var n=this.w,r=null,i=".apexcharts-series[data\\:realIndex='".concat(e,"']");return n.globals.axisCharts?r=n.globals.dom.Paper.select("".concat(i," path[j='").concat(t,"'], ").concat(i," circle[j='").concat(t,"'], ").concat(i," rect[j='").concat(t,"']")).members[0]:void 0===t&&(r=n.globals.dom.Paper.select("".concat(i," path[j='").concat(e,"']")).members[0],"pie"!==n.config.chart.type&&"polarArea"!==n.config.chart.type&&"donut"!==n.config.chart.type||this.ctx.pie.pieClicked(e)),r?(new E(this.ctx).pathMouseDown(r,null),r.node?r.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(e){var t=this.w;if(["min","max"].forEach((function(n){void 0!==e.xaxis[n]&&(t.config.xaxis[n]=e.xaxis[n],t.globals.lastXAxis[n]=e.xaxis[n])})),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric){var n=new M(e);e=n.convertCatToNumericXaxis(e,this.ctx)}return e}},{key:"forceYAxisUpdate",value:function(e){return e.chart&&e.chart.stacked&&"100%"===e.chart.stackType&&(Array.isArray(e.yaxis)?e.yaxis.forEach((function(t,n){e.yaxis[n].min=0,e.yaxis[n].max=100})):(e.yaxis.min=0,e.yaxis.max=100)),e}},{key:"revertDefaultAxisMinMax",value:function(e){var t=this,n=this.w,r=n.globals.lastXAxis,i=n.globals.lastYAxis;e&&e.xaxis&&(r=e.xaxis),e&&e.yaxis&&(i=e.yaxis),n.config.xaxis.min=r.min,n.config.xaxis.max=r.max;n.config.yaxis.map((function(e,r){n.globals.zoomed||void 0!==i[r]?function(e){void 0!==i[e]&&(n.config.yaxis[e].min=i[e].min,n.config.yaxis[e].max=i[e].max)}(r):void 0!==t.ctx.opts.yaxis[r]&&(e.min=t.ctx.opts.yaxis[r].min,e.max=t.ctx.opts.yaxis[r].max)}))}}]),e}();Pe="undefined"!=typeof window?window:void 0,Le=function(e,t){var n=(void 0!==this?this:e).SVG=function(e){if(n.supported)return e=new n.Doc(e),n.parser.draw||n.prepare(),e};if(n.ns="http://www.w3.org/2000/svg",n.xmlns="http://www.w3.org/2000/xmlns/",n.xlink="http://www.w3.org/1999/xlink",n.svgjs="http://svgjs.dev",n.supported=!0,!n.supported)return!1;n.did=1e3,n.eid=function(e){return"Svgjs"+d(e)+n.did++},n.create=function(e){var n=t.createElementNS(this.ns,e);return n.setAttribute("id",this.eid(e)),n},n.extend=function(){var e,t;t=(e=[].slice.call(arguments)).pop();for(var r=e.length-1;r>=0;r--)if(e[r])for(var i in t)e[r].prototype[i]=t[i];n.Set&&n.Set.inherit&&n.Set.inherit()},n.invent=function(e){var t="function"==typeof e.create?e.create:function(){this.constructor.call(this,n.create(e.create))};return e.inherit&&(t.prototype=new e.inherit),e.extend&&n.extend(t,e.extend),e.construct&&n.extend(e.parent||n.Container,e.construct),t},n.adopt=function(t){return t?t.instance?t.instance:((r="svg"==t.nodeName?t.parentNode instanceof e.SVGElement?new n.Nested:new n.Doc:"linearGradient"==t.nodeName?new n.Gradient("linear"):"radialGradient"==t.nodeName?new n.Gradient("radial"):n[d(t.nodeName)]?new(n[d(t.nodeName)]):new n.Element(t)).type=t.nodeName,r.node=t,t.instance=r,r instanceof n.Doc&&r.namespace().defs(),r.setData(JSON.parse(t.getAttribute("svgjs:data"))||{}),r):null;var r},n.prepare=function(){var e=t.getElementsByTagName("body")[0],r=(e?new n.Doc(e):n.adopt(t.documentElement).nested()).size(2,0);n.parser={body:e||t.documentElement,draw:r.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:r.polyline().node,path:r.path().node,native:n.create("svg")}},n.parser={native:n.create("svg")},t.addEventListener("DOMContentLoaded",(function(){n.parser.draw||n.prepare()}),!1),n.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},n.utils={map:function(e,t){for(var n=e.length,r=[],i=0;i1?1:e,new n.Color({r:~~(this.r+(this.destination.r-this.r)*e),g:~~(this.g+(this.destination.g-this.g)*e),b:~~(this.b+(this.destination.b-this.b)*e)})):this}}),n.Color.test=function(e){return e+="",n.regex.isHex.test(e)||n.regex.isRgb.test(e)},n.Color.isRgb=function(e){return e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b},n.Color.isColor=function(e){return n.Color.isRgb(e)||n.Color.test(e)},n.Array=function(e,t){0==(e=(e||[]).valueOf()).length&&t&&(e=t.valueOf()),this.value=this.parse(e)},n.extend(n.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(e){return e=e.valueOf(),Array.isArray(e)?e:this.split(e)}}),n.PointArray=function(e,t){n.Array.call(this,e,t||[[0,0]])},n.PointArray.prototype=new n.Array,n.PointArray.prototype.constructor=n.PointArray;for(var r={M:function(e,t,n){return t.x=n.x=e[0],t.y=n.y=e[1],["M",t.x,t.y]},L:function(e,t){return t.x=e[0],t.y=e[1],["L",e[0],e[1]]},H:function(e,t){return t.x=e[0],["H",e[0]]},V:function(e,t){return t.y=e[0],["V",e[0]]},C:function(e,t){return t.x=e[4],t.y=e[5],["C",e[0],e[1],e[2],e[3],e[4],e[5]]},Q:function(e,t){return t.x=e[2],t.y=e[3],["Q",e[0],e[1],e[2],e[3]]},Z:function(e,t,n){return t.x=n.x,t.y=n.y,["Z"]}},i="mlhvqtcsaz".split(""),a=0,s=i.length;al);return a},bbox:function(){return n.parser.draw||n.prepare(),n.parser.path.setAttribute("d",this.toString()),n.parser.path.getBBox()}}),n.Number=n.invent({create:function(e,t){this.value=0,this.unit=t||"","number"==typeof e?this.value=isNaN(e)?0:isFinite(e)?e:e<0?-34e37:34e37:"string"==typeof e?(t=e.match(n.regex.numberAndUnit))&&(this.value=parseFloat(t[1]),"%"==t[5]?this.value/=100:"s"==t[5]&&(this.value*=1e3),this.unit=t[5]):e instanceof n.Number&&(this.value=e.valueOf(),this.unit=e.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(e){return e=new n.Number(e),new n.Number(this+e,this.unit||e.unit)},minus:function(e){return e=new n.Number(e),new n.Number(this-e,this.unit||e.unit)},times:function(e){return e=new n.Number(e),new n.Number(this*e,this.unit||e.unit)},divide:function(e){return e=new n.Number(e),new n.Number(this/e,this.unit||e.unit)},to:function(e){var t=new n.Number(this);return"string"==typeof e&&(t.unit=e),t},morph:function(e){return this.destination=new n.Number(e),e.relative&&(this.destination.value+=this.value),this},at:function(e){return this.destination?new n.Number(this.destination).minus(this).times(e).plus(this):this}}}),n.Element=n.invent({create:function(e){this._stroke=n.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=e)&&(this.type=e.nodeName,this.node.instance=this,this._stroke=e.getAttribute("stroke")||this._stroke)},extend:{x:function(e){return this.attr("x",e)},y:function(e){return this.attr("y",e)},cx:function(e){return null==e?this.x()+this.width()/2:this.x(e-this.width()/2)},cy:function(e){return null==e?this.y()+this.height()/2:this.y(e-this.height()/2)},move:function(e,t){return this.x(e).y(t)},center:function(e,t){return this.cx(e).cy(t)},width:function(e){return this.attr("width",e)},height:function(e){return this.attr("height",e)},size:function(e,t){var r=p(this,e,t);return this.width(new n.Number(r.width)).height(new n.Number(r.height))},clone:function(e){this.writeDataToDom();var t=g(this.node.cloneNode(!0));return e?e.add(t):this.after(t),t},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(e){return this.after(e).remove(),e},addTo:function(e){return e.put(this)},putIn:function(e){return e.add(this)},id:function(e){return this.attr("id",e)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var e=this.attr("class");return null==e?[]:e.trim().split(n.regex.delimiter)},hasClass:function(e){return-1!=this.classes().indexOf(e)},addClass:function(e){if(!this.hasClass(e)){var t=this.classes();t.push(e),this.attr("class",t.join(" "))}return this},removeClass:function(e){return this.hasClass(e)&&this.attr("class",this.classes().filter((function(t){return t!=e})).join(" ")),this},toggleClass:function(e){return this.hasClass(e)?this.removeClass(e):this.addClass(e)},reference:function(e){return n.get(this.attr(e))},parent:function(t){var r=this;if(!r.node.parentNode)return null;if(r=n.adopt(r.node.parentNode),!t)return r;for(;r&&r.node instanceof e.SVGElement;){if("string"==typeof t?r.matches(t):r instanceof t)return r;if(!r.node.parentNode||"#document"==r.node.parentNode.nodeName)return null;r=n.adopt(r.node.parentNode)}},doc:function(){return this instanceof n.Doc?this:this.parent(n.Doc)},parents:function(e){var t=[],n=this;do{if(!(n=n.parent(e))||!n.node)break;t.push(n)}while(n.parent);return t},matches:function(e){return function(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,t)}(this.node,e)},native:function(){return this.node},svg:function(e){var r=t.createElement("svg");if(!(e&&this instanceof n.Parent))return r.appendChild(e=t.createElement("svg")),this.writeDataToDom(),e.appendChild(this.node.cloneNode(!0)),r.innerHTML.replace(/^/,"").replace(/<\/svg>$/,"");r.innerHTML=""+e.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2>")+"";for(var i=0,a=r.firstChild.childNodes.length;i":function(e){return-Math.cos(e*Math.PI)/2+.5},">":function(e){return Math.sin(e*Math.PI/2)},"<":function(e){return 1-Math.cos(e*Math.PI/2)}},n.morph=function(e){return function(t,r){return new n.MorphObj(t,r).at(e)}},n.Situation=n.invent({create:function(e){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new n.Number(e.duration).valueOf(),this.delay=new n.Number(e.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=e.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),n.FX=n.invent({create:function(e){this._target=e,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(e,t,r){"object"===o(e)&&(t=e.ease,r=e.delay,e=e.duration);var i=new n.Situation({duration:e||1e3,delay:r||0,ease:n.easing[t||"-"]||t});return this.queue(i),this},target:function(e){return e&&e instanceof n.Element?(this._target=e,this):this._target},timeToAbsPos:function(e){return(e-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(e){return this.situation.duration/this._speed*e+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=e.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){e.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(e){return("function"==typeof e||e instanceof n.Situation)&&this.situations.push(e),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof n.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var e,t=this.situation;if(t.init)return this;for(var r in t.animations){e=this.target()[r](),Array.isArray(e)||(e=[e]),Array.isArray(t.animations[r])||(t.animations[r]=[t.animations[r]]);for(var i=e.length;i--;)t.animations[r][i]instanceof n.Number&&(e[i]=new n.Number(e[i])),t.animations[r][i]=e[i].morph(t.animations[r][i])}for(var r in t.attrs)t.attrs[r]=new n.MorphObj(this.target().attr(r),t.attrs[r]);for(var r in t.styles)t.styles[r]=new n.MorphObj(this.target().style(r),t.styles[r]);return t.initialTransformation=this.target().matrixify(),t.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(e,t){var n=this.active;return this.active=!1,t&&this.clearQueue(),e&&this.situation&&(!n&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(e){var t=this.last();return this.target().on("finished.fx",(function n(r){r.detail.situation==t&&(e.call(this,t),this.off("finished.fx",n))})),this._callStart()},during:function(e){var t=this.last(),r=function(r){r.detail.situation==t&&e.call(this,r.detail.pos,n.morph(r.detail.pos),r.detail.eased,t)};return this.target().off("during.fx",r).on("during.fx",r),this.after((function(){this.off("during.fx",r)})),this._callStart()},afterAll:function(e){var t=function t(n){e.call(this),this.off("allfinished.fx",t)};return this.target().off("allfinished.fx",t).on("allfinished.fx",t),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(e,t,n){return this.last()[n||"animations"][e]=t,this._callStart()},step:function(e){var t,n,r;e||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(t=Math.max(this.absPos,0),n=Math.floor(t),!0===this.situation.loops||nthis.lastPos&&a<=i&&(this.situation.once[a].call(this.target(),this.pos,i),delete this.situation.once[a]);return this.active&&this.target().fire("during",{pos:this.pos,eased:i,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=i,this):this},eachAt:function(){var e,t=this,r=this.target(),i=this.situation;for(var a in i.animations)e=[].concat(i.animations[a]).map((function(e){return"string"!=typeof e&&e.at?e.at(i.ease(t.pos),t.pos):e})),r[a].apply(r,e);for(var a in i.attrs)e=[a].concat(i.attrs[a]).map((function(e){return"string"!=typeof e&&e.at?e.at(i.ease(t.pos),t.pos):e})),r.attr.apply(r,e);for(var a in i.styles)e=[a].concat(i.styles[a]).map((function(e){return"string"!=typeof e&&e.at?e.at(i.ease(t.pos),t.pos):e})),r.style.apply(r,e);if(i.transforms.length){e=i.initialTransformation,a=0;for(var o=i.transforms.length;a=0;--r)this[_[r]]=null!=e[_[r]]?e[_[r]]:t[_[r]]},extend:{extract:function(){var e=h(this,0,1);h(this,1,0);var t=180/Math.PI*Math.atan2(e.y,e.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(t*Math.PI/180)+this.f*Math.sin(t*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(t*Math.PI/180)+this.e*Math.sin(-t*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:t,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new n.Matrix(this)}},clone:function(){return new n.Matrix(this)},morph:function(e){return this.destination=new n.Matrix(e),this},multiply:function(e){return new n.Matrix(this.native().multiply(function(e){return e instanceof n.Matrix||(e=new n.Matrix(e)),e}(e).native()))},inverse:function(){return new n.Matrix(this.native().inverse())},translate:function(e,t){return new n.Matrix(this.native().translate(e||0,t||0))},native:function(){for(var e=n.parser.native.createSVGMatrix(),t=_.length-1;t>=0;t--)e[_[t]]=this[_[t]];return e},toString:function(){return"matrix("+y(this.a)+","+y(this.b)+","+y(this.c)+","+y(this.d)+","+y(this.e)+","+y(this.f)+")"}},parent:n.Element,construct:{ctm:function(){return new n.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof n.Nested){var e=this.rect(1,1),t=e.node.getScreenCTM();return e.remove(),new n.Matrix(t)}return new n.Matrix(this.node.getScreenCTM())}}}),n.Point=n.invent({create:function(e,t){var n;n=Array.isArray(e)?{x:e[0],y:e[1]}:"object"===o(e)?{x:e.x,y:e.y}:null!=e?{x:e,y:null!=t?t:e}:{x:0,y:0},this.x=n.x,this.y=n.y},extend:{clone:function(){return new n.Point(this)},morph:function(e,t){return this.destination=new n.Point(e,t),this}}}),n.extend(n.Element,{point:function(e,t){return new n.Point(e,t).transform(this.screenCTM().inverse())}}),n.extend(n.Element,{attr:function(e,t,r){if(null==e){for(e={},r=(t=this.node.attributes).length-1;r>=0;r--)e[t[r].nodeName]=n.regex.isNumber.test(t[r].nodeValue)?parseFloat(t[r].nodeValue):t[r].nodeValue;return e}if("object"===o(e))for(var i in e)this.attr(i,e[i]);else if(null===t)this.node.removeAttribute(e);else{if(null==t)return null==(t=this.node.getAttribute(e))?n.defaults.attrs[e]:n.regex.isNumber.test(t)?parseFloat(t):t;"stroke-width"==e?this.attr("stroke",parseFloat(t)>0?this._stroke:null):"stroke"==e&&(this._stroke=t),"fill"!=e&&"stroke"!=e||(n.regex.isImage.test(t)&&(t=this.doc().defs().image(t,0,0)),t instanceof n.Image&&(t=this.doc().defs().pattern(0,0,(function(){this.add(t)})))),"number"==typeof t?t=new n.Number(t):n.Color.isColor(t)?t=new n.Color(t):Array.isArray(t)&&(t=new n.Array(t)),"leading"==e?this.leading&&this.leading(t):"string"==typeof r?this.node.setAttributeNS(r,e,t.toString()):this.node.setAttribute(e,t.toString()),!this.rebuild||"font-size"!=e&&"x"!=e||this.rebuild(e,t)}return this}}),n.extend(n.Element,{transform:function(e,t){var r;return"object"!==o(e)?(r=new n.Matrix(this).extract(),"string"==typeof e?r[e]:r):(r=new n.Matrix(this),t=!!t||!!e.relative,null!=e.a&&(r=t?r.multiply(new n.Matrix(e)):new n.Matrix(e)),this.attr("transform",r))}}),n.extend(n.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(n.regex.transforms).slice(0,-1).map((function(e){var t=e.trim().split("(");return[t[0],t[1].split(n.regex.delimiter).map((function(e){return parseFloat(e)}))]})).reduce((function(e,t){return"matrix"==t[0]?e.multiply(m(t[1])):e[t[0]].apply(e,t[1])}),new n.Matrix)},toParent:function(e){if(this==e)return this;var t=this.screenCTM(),n=e.screenCTM().inverse();return this.addTo(e).untransform().transform(n.multiply(t)),this},toDoc:function(){return this.toParent(this.doc())}}),n.Transformation=n.invent({create:function(e,t){if(arguments.length>1&&"boolean"!=typeof t)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(e))for(var n=0,r=this.arguments.length;n=0},index:function(e){return[].slice.call(this.node.childNodes).indexOf(e.node)},get:function(e){return n.adopt(this.node.childNodes[e])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(e,t){for(var r=this.children(),i=0,a=r.length;i=0;r--)t.childNodes[r]instanceof e.SVGElement&&g(t.childNodes[r]);return n.adopt(t).id(n.eid(t.nodeName))}function v(e){return null==e.x&&(e.x=0,e.y=0,e.width=0,e.height=0),e.w=e.width,e.h=e.height,e.x2=e.x+e.width,e.y2=e.y+e.height,e.cx=e.x+e.width/2,e.cy=e.y+e.height/2,e}function y(e){return Math.abs(e)>1e-37?e:0}["fill","stroke"].forEach((function(e){var t={};t[e]=function(t){if(void 0===t)return this;if("string"==typeof t||n.Color.isRgb(t)||t&&"function"==typeof t.fill)this.attr(e,t);else for(var r=l[e].length-1;r>=0;r--)null!=t[l[e][r]]&&this.attr(l.prefix(e,l[e][r]),t[l[e][r]]);return this},n.extend(n.Element,n.FX,t)})),n.extend(n.Element,n.FX,{translate:function(e,t){return this.transform({x:e,y:t})},matrix:function(e){return this.attr("transform",new n.Matrix(6==arguments.length?[].slice.call(arguments):e))},opacity:function(e){return this.attr("opacity",e)},dx:function(e){return this.x(new n.Number(e).plus(this instanceof n.FX?0:this.x()),!0)},dy:function(e){return this.y(new n.Number(e).plus(this instanceof n.FX?0:this.y()),!0)}}),n.extend(n.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(e){return this.node.getPointAtLength(e)}}),n.Set=n.invent({create:function(e){Array.isArray(e)?this.members=e:this.clear()},extend:{add:function(){for(var e=[].slice.call(arguments),t=0,n=e.length;t-1&&this.members.splice(t,1),this},each:function(e){for(var t=0,n=this.members.length;t=0},index:function(e){return this.members.indexOf(e)},get:function(e){return this.members[e]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(e){return new n.Set(e)}}}),n.FX.Set=n.invent({create:function(e){this.set=e}}),n.Set.inherit=function(){var e=[];for(var t in n.Shape.prototype)"function"==typeof n.Shape.prototype[t]&&"function"!=typeof n.Set.prototype[t]&&e.push(t);for(var t in e.forEach((function(e){n.Set.prototype[e]=function(){for(var t=0,r=this.members.length;t=0;e--)delete this.memory()[arguments[e]];return this},memory:function(){return this._memory||(this._memory={})}}),n.get=function(e){var r=t.getElementById(function(e){var t=(e||"").toString().match(n.regex.reference);if(t)return t[1]}(e)||e);return n.adopt(r)},n.select=function(e,r){return new n.Set(n.utils.map((r||t).querySelectorAll(e),(function(e){return n.adopt(e)})))},n.extend(n.Parent,{select:function(e){return n.select(e,this.node)}});var _="abcdef".split("");if("function"!=typeof e.CustomEvent){var b=function(e,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var r=t.createEvent("CustomEvent");return r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r};b.prototype=e.Event.prototype,n.CustomEvent=b}else n.CustomEvent=e.CustomEvent;return n},void 0!==(r=function(){return Le(Pe,Pe.document)}.call(t,n,t,e))&&(e.exports=r),function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(e,t){return this.add(e,t),!e.attr("in")&&this.autoSetIn&&e.attr("in",this.source),e.attr("result")||e.attr("result",e),e},blend:function(e,t,n){return this.put(new SVG.BlendEffect(e,t,n))},colorMatrix:function(e,t){return this.put(new SVG.ColorMatrixEffect(e,t))},convolveMatrix:function(e){return this.put(new SVG.ConvolveMatrixEffect(e))},componentTransfer:function(e){return this.put(new SVG.ComponentTransferEffect(e))},composite:function(e,t,n){return this.put(new SVG.CompositeEffect(e,t,n))},flood:function(e,t){return this.put(new SVG.FloodEffect(e,t))},offset:function(e,t){return this.put(new SVG.OffsetEffect(e,t))},image:function(e){return this.put(new SVG.ImageEffect(e))},merge:function(){var e=[void 0];for(var t in arguments)e.push(arguments[t]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,e)))},gaussianBlur:function(e,t){return this.put(new SVG.GaussianBlurEffect(e,t))},morphology:function(e,t){return this.put(new SVG.MorphologyEffect(e,t))},diffuseLighting:function(e,t,n){return this.put(new SVG.DiffuseLightingEffect(e,t,n))},displacementMap:function(e,t,n,r,i){return this.put(new SVG.DisplacementMapEffect(e,t,n,r,i))},specularLighting:function(e,t,n,r){return this.put(new SVG.SpecularLightingEffect(e,t,n,r))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(e,t,n,r,i){return this.put(new SVG.TurbulenceEffect(e,t,n,r,i))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(e){var t=this.put(new SVG.Filter);return"function"==typeof e&&e.call(t,t),t}}),SVG.extend(SVG.Container,{filter:function(e){return this.defs().filter(e)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(e){return this.filterer=e instanceof SVG.Element?e:this.doc().filter(e),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(e){return this.filterer&&!0===e&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",e)},result:function(e){return null==e?this.attr("result"):this.attr("result",e)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",e)},result:function(e){return null==e?this.attr("result"):this.attr("result",e)},toString:function(){return this.result()}}});var e={blend:function(e,t){return this.parent()&&this.parent().blend(this,e,t)},colorMatrix:function(e,t){return this.parent()&&this.parent().colorMatrix(e,t).in(this)},convolveMatrix:function(e){return this.parent()&&this.parent().convolveMatrix(e).in(this)},componentTransfer:function(e){return this.parent()&&this.parent().componentTransfer(e).in(this)},composite:function(e,t){return this.parent()&&this.parent().composite(this,e,t)},flood:function(e,t){return this.parent()&&this.parent().flood(e,t)},offset:function(e,t){return this.parent()&&this.parent().offset(e,t).in(this)},image:function(e){return this.parent()&&this.parent().image(e)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(e,t){return this.parent()&&this.parent().gaussianBlur(e,t).in(this)},morphology:function(e,t){return this.parent()&&this.parent().morphology(e,t).in(this)},diffuseLighting:function(e,t,n){return this.parent()&&this.parent().diffuseLighting(e,t,n).in(this)},displacementMap:function(e,t,n,r){return this.parent()&&this.parent().displacementMap(this,e,t,n,r)},specularLighting:function(e,t,n,r){return this.parent()&&this.parent().specularLighting(e,t,n,r).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(e,t,n,r,i){return this.parent()&&this.parent().turbulence(e,t,n,r,i).in(this)}};SVG.extend(SVG.Effect,e),SVG.extend(SVG.ParentEffect,e),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(e){this.attr("in",e)}}});var t={blend:function(e,t,n){this.attr({in:e,in2:t,mode:n||"normal"})},colorMatrix:function(e,t){"matrix"==e&&(t=i(t)),this.attr({type:e,values:void 0===t?null:t})},convolveMatrix:function(e){e=i(e),this.attr({order:Math.sqrt(e.split(" ").length),kernelMatrix:e})},composite:function(e,t,n){this.attr({in:e,in2:t,operator:n})},flood:function(e,t){this.attr("flood-color",e),null!=t&&this.attr("flood-opacity",t)},offset:function(e,t){this.attr({dx:e,dy:t})},image:function(e){this.attr("href",e,SVG.xlink)},displacementMap:function(e,t,n,r,i){this.attr({in:e,in2:t,scale:n,xChannelSelector:r,yChannelSelector:i})},gaussianBlur:function(e,t){null!=e||null!=t?this.attr("stdDeviation",a(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(e,t){this.attr({operator:e,radius:t})},tile:function(){},turbulence:function(e,t,n,r,i){this.attr({numOctaves:t,seed:n,stitchTiles:r,baseFrequency:e,type:i})}},n={merge:function(){var e;if(arguments[0]instanceof SVG.Set){var t=this;arguments[0].each((function(e){this instanceof SVG.MergeNode?t.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&t.put(new SVG.MergeNode(this))}))}else{e=Array.isArray(arguments[0])?arguments[0]:arguments;for(var n=0;n1&&(k*=r=Math.sqrt(r),D*=r),i=(new SVG.Matrix).rotate(O).scale(1/k,1/D).rotate(-O),P=P.transform(i),s=(a=[(L=L.transform(i)).x-P.x,L.y-P.y])[0]*a[0]+a[1]*a[1],o=Math.sqrt(s),a[0]/=o,a[1]/=o,l=s<4?Math.sqrt(1-s/4):0,I===R&&(l*=-1),u=new SVG.Point((L.x+P.x)/2+l*-a[1],(L.y+P.y)/2+l*a[0]),c=new SVG.Point(P.x-u.x,P.y-u.y),d=new SVG.Point(L.x-u.x,L.y-u.y),f=Math.acos(c.x/Math.sqrt(c.x*c.x+c.y*c.y)),c.y<0&&(f*=-1),p=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(p*=-1),R&&f>p&&(p+=2*Math.PI),!R&&fa.maxX-t.width&&(o=(r=a.maxX-t.width)-this.startPoints.box.x),null!=a.minY&&ia.maxY-t.height&&(s=(i=a.maxY-t.height)-this.startPoints.box.y),null!=a.snapToGrid&&(r-=r%a.snapToGrid,i-=i%a.snapToGrid,o-=o%a.snapToGrid,s-=s%a.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:o,y:s},!0):this.el.move(r,i));return n},e.prototype.end=function(e){var t=this.drag(e);this.el.fire("dragend",{event:e,p:t,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(t,n){"function"!=typeof t&&"object"!=typeof t||(n=t,t=!0);var r=this.remember("_draggable")||new e(this);return(t=void 0===t||t)?r.init(n||{},t):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function e(e){this.el=e,e.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(e,t,n){var r="string"!=typeof e?e:t[e];return n?r/2:r},this.pointCoords=function(e,t){var n=this.pointsList[e];return{x:this.pointCoord(n[0],t,"t"===e||"b"===e),y:this.pointCoord(n[1],t,"r"===e||"l"===e)}}}e.prototype.init=function(e,t){var n=this.el.bbox();this.options={};var r=this.el.selectize.defaults.points;for(var i in this.el.selectize.defaults)this.options[i]=this.el.selectize.defaults[i],void 0!==t[i]&&(this.options[i]=t[i]);var a=["points","pointsExclude"];for(var i in a){var o=this.options[a[i]];"string"==typeof o?o=o.length>0?o.split(/\s*,\s*/i):[]:"boolean"==typeof o&&"points"===a[i]&&(o=o?r:[]),this.options[a[i]]=o}this.options.points=[r,this.options.points].reduce((function(e,t){return e.filter((function(e){return t.indexOf(e)>-1}))})),this.options.points=[this.options.points,this.options.pointsExclude].reduce((function(e,t){return e.filter((function(e){return t.indexOf(e)<0}))})),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(n.x,n.y)),this.options.deepSelect&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(e):this.selectRect(e),this.observe(),this.cleanup()},e.prototype.selectPoints=function(e){return this.pointSelection.isSelected=e,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},e.prototype.getPointArray=function(){var e=this.el.bbox();return this.el.array().valueOf().map((function(t){return[t[0]-e.x,t[1]-e.y]}))},e.prototype.drawPoints=function(){for(var e=this,t=this.getPointArray(),n=0,r=t.length;n0&&this.parameters.box.height-n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-n[0]);n=this.checkAspectRatio(n),this.el.move(this.parameters.box.x+n[0],this.parameters.box.y+n[1]).size(this.parameters.box.width-n[0],this.parameters.box.height-n[1])}};break;case"rt":this.calc=function(e,t){var n=this.snapToGrid(e,t,2);if(this.parameters.box.width+n[0]>0&&this.parameters.box.height-n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+n[0]);n=this.checkAspectRatio(n,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+n[1]).size(this.parameters.box.width+n[0],this.parameters.box.height-n[1])}};break;case"rb":this.calc=function(e,t){var n=this.snapToGrid(e,t,0);if(this.parameters.box.width+n[0]>0&&this.parameters.box.height+n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+n[0]);n=this.checkAspectRatio(n),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+n[0],this.parameters.box.height+n[1])}};break;case"lb":this.calc=function(e,t){var n=this.snapToGrid(e,t,1);if(this.parameters.box.width-n[0]>0&&this.parameters.box.height+n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-n[0]);n=this.checkAspectRatio(n,!0),this.el.move(this.parameters.box.x+n[0],this.parameters.box.y).size(this.parameters.box.width-n[0],this.parameters.box.height+n[1])}};break;case"t":this.calc=function(e,t){var n=this.snapToGrid(e,t,2);if(this.parameters.box.height-n[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y+n[1]).height(this.parameters.box.height-n[1])}};break;case"r":this.calc=function(e,t){var n=this.snapToGrid(e,t,0);if(this.parameters.box.width+n[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+n[0])}};break;case"b":this.calc=function(e,t){var n=this.snapToGrid(e,t,0);if(this.parameters.box.height+n[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+n[1])}};break;case"l":this.calc=function(e,t){var n=this.snapToGrid(e,t,1);if(this.parameters.box.width-n[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x+n[0],this.parameters.box.y).width(this.parameters.box.width-n[0])}};break;case"rot":this.calc=function(e,t){var n=e+this.parameters.p.x,r=t+this.parameters.p.y,i=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),a=Math.atan2(r-this.parameters.box.y-this.parameters.box.height/2,n-this.parameters.box.x-this.parameters.box.width/2),o=this.parameters.rotation+180*(a-i)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(o-o%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(e,t){var n=this.snapToGrid(e,t,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),r=this.el.array().valueOf();r[this.parameters.i][0]=this.parameters.pointCoords[0]+n[0],r[this.parameters.i][1]=this.parameters.pointCoords[1]+n[1],this.el.plot(r)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:e}),SVG.on(window,"touchmove.resize",(function(e){t.update(e||window.event)})),SVG.on(window,"touchend.resize",(function(){t.done()})),SVG.on(window,"mousemove.resize",(function(e){t.update(e||window.event)})),SVG.on(window,"mouseup.resize",(function(){t.done()}))},e.prototype.update=function(e){if(e){var t=this._extractPosition(e),n=this.transformPoint(t.x,t.y),r=n.x-this.parameters.p.x,i=n.y-this.parameters.p.y;this.lastUpdateCall=[r,i],this.calc(r,i),this.el.fire("resizing",{dx:r,dy:i,event:e})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},e.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},e.prototype.snapToGrid=function(e,t,n,r){var i;return void 0!==r?i=[(n+e)%this.options.snapToGrid,(r+t)%this.options.snapToGrid]:(n=null==n?3:n,i=[(this.parameters.box.x+e+(1&n?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+t+(2&n?0:this.parameters.box.height))%this.options.snapToGrid]),e<0&&(i[0]-=this.options.snapToGrid),t<0&&(i[1]-=this.options.snapToGrid),e-=Math.abs(i[0])o.maxX&&(e=o.maxX-i),void 0!==o.minY&&a+to.maxY&&(t=o.maxY-a),[e,t]},e.prototype.checkAspectRatio=function(e,t){if(!this.options.saveAspectRatio)return e;var n=e.slice(),r=this.parameters.box.width/this.parameters.box.height,i=this.parameters.box.width+e[0],a=this.parameters.box.height-e[1],o=i/a;return or&&(n[0]=this.parameters.box.width-a*r,t&&(n[0]=-n[0])),n},SVG.extend(SVG.Element,{resize:function(t){return(this.remember("_resizeHandler")||new e(this)).init(t||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),void 0===window.Apex&&(window.Apex={});var Ue=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return u(e,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new b(this.ctx),this.ctx.axes=new ee(this.ctx),this.ctx.core=new Ze(this.ctx.el,this.ctx),this.ctx.config=new P({}),this.ctx.data=new G(this.ctx),this.ctx.grid=new W(this.ctx),this.ctx.graphics=new E(this.ctx),this.ctx.coreUtils=new S(this.ctx),this.ctx.crosshairs=new te(this.ctx),this.ctx.events=new Q(this.ctx),this.ctx.exports=new H(this.ctx),this.ctx.localization=new J(this.ctx),this.ctx.options=new D,this.ctx.responsive=new ne(this.ctx),this.ctx.series=new j(this.ctx),this.ctx.theme=new re(this.ctx),this.ctx.formatters=new V(this.ctx),this.ctx.titleSubtitle=new ie(this.ctx),this.ctx.legend=new de(this.ctx),this.ctx.toolbar=new fe(this.ctx),this.ctx.tooltip=new be(this.ctx),this.ctx.dimensions=new ue(this.ctx),this.ctx.updateHelpers=new ze(this.ctx),this.ctx.zoomPanSelection=new pe(this.ctx),this.ctx.w.globals.tooltip=new be(this.ctx)}}]),e}(),je=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return u(e,[{key:"clear",value:function(e){var t=e.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:t})}},{key:"killSVG",value:function(e){e.each((function(e,t){this.removeClass("*"),this.off(),this.stop()}),!0),e.ungroup(),e.clear()}},{key:"clearDomElements",value:function(e){var t=this,n=e.isUpdating,r=this.w.globals.dom.Paper.node;r.parentNode&&r.parentNode.parentNode&&!n&&(r.parentNode.parentNode.style.minHeight="unset");var i=this.w.globals.dom.baseEl;i&&this.ctx.eventList.forEach((function(e){i.removeEventListener(e,t.ctx.events.documentEvent)}));var a=this.w.globals.dom;if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(a.Paper),a.Paper.remove(),a.elWrap=null,a.elGraphical=null,a.elAnnotations=null,a.elLegendWrap=null,a.baseEl=null,a.elGridRect=null,a.elGridRectMask=null,a.elGridRectMarkerMask=null,a.elForecastMask=null,a.elNonForecastMask=null,a.elDefs=null}}]),e}(),Ge=new WeakMap,Ve=function(){function e(t,n){s(this,e),this.opts=n,this.ctx=this,this.w=new F(n).init(),this.el=t,this.w.globals.cuid=_.randomId(),this.w.globals.chartID=this.w.config.chart.id?_.escapeString(this.w.config.chart.id):this.w.globals.cuid,new Ue(this).initModules(),this.create=_.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return u(e,[{key:"render",value:function(){var e=this;return new Promise((function(t,n){if(null!==e.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),e.w.config.chart.id&&Apex._chartInstances.push({id:e.w.globals.chartID,group:e.w.config.chart.group,chart:e}),e.setLocale(e.w.config.chart.defaultLocale);var r=e.w.config.chart.events.beforeMount;if("function"==typeof r&&r(e,e.w),e.events.fireEvent("beforeMount",[e,e.w]),window.addEventListener("resize",e.windowResizeHandler),function(e,t){var n=!1;if(e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var r=e.getBoundingClientRect();"none"!==e.style.display&&0!==r.width||(n=!0)}var i=new ResizeObserver((function(r){n&&t.call(e,r),n=!0}));e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(e.children).forEach((function(e){return i.observe(e)})):i.observe(e),Ge.set(t,i)}(e.el.parentNode,e.parentResizeHandler),!e.css){var i=e.el.getRootNode&&e.el.getRootNode(),a=_.is("ShadowRoot",i),o=e.el.ownerDocument,s=o.getElementById("apexcharts-css");!a&&s||(e.css=document.createElement("style"),e.css.id="apexcharts-css",e.css.textContent='@keyframes opaque {\n 0% {\n opacity: 0\n }\n\n to {\n opacity: 1\n }\n}\n\n@keyframes resizeanim {\n 0%,to {\n opacity: 0\n }\n}\n\n.apexcharts-canvas {\n position: relative;\n user-select: none\n}\n\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0,0,0,.5);\n box-shadow: 0 0 1px rgba(255,255,255,.5);\n -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5)\n}\n\n.apexcharts-inner {\n position: relative\n}\n\n.apexcharts-text tspan {\n font-family: inherit\n}\n\n.legend-mouseover-inactive {\n transition: .15s ease all;\n opacity: .2\n}\n\n.apexcharts-series-collapsed {\n opacity: 0\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n border: 1px solid #e3e3e3;\n background: rgba(255,255,255,.96)\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n color: #fff;\n background: rgba(30,30,30,.8)\n}\n\n.apexcharts-tooltip * {\n font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n background: #eceff1;\n border-bottom: 1px solid #ddd\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n background: rgba(0,0,0,.7);\n border-bottom: 1px solid #333\n}\n\n.apexcharts-tooltip-text-goals-value,.apexcharts-tooltip-text-y-value,.apexcharts-tooltip-text-z-value {\n display: inline-block;\n margin-left: 5px;\n font-weight: 600\n}\n\n.apexcharts-tooltip-text-goals-label:empty,.apexcharts-tooltip-text-goals-value:empty,.apexcharts-tooltip-text-y-label:empty,.apexcharts-tooltip-text-y-value:empty,.apexcharts-tooltip-text-z-value:empty,.apexcharts-tooltip-title:empty {\n display: none\n}\n\n.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {\n padding: 6px 0 5px\n}\n\n.apexcharts-tooltip-goals-group,.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {\n display: flex\n}\n\n.apexcharts-tooltip-text-goals-label:not(:empty),.apexcharts-tooltip-text-goals-value:not(:empty) {\n margin-top: -6px\n}\n\n.apexcharts-tooltip-marker {\n width: 12px;\n height: 12px;\n position: relative;\n top: 0;\n margin-right: 10px;\n border-radius: 50%\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n opacity: 1\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,.apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px\n}\n\n.apexcharts-tooltip-series-group-hidden {\n opacity: 0;\n height: 0;\n line-height: 0;\n padding: 0!important\n}\n\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px\n}\n\n.apexcharts-custom-tooltip,.apexcharts-tooltip-box {\n padding: 4px 8px\n}\n\n.apexcharts-tooltip-boxPlot {\n display: flex;\n flex-direction: column-reverse\n}\n\n.apexcharts-tooltip-box>div {\n margin: 4px 0\n}\n\n.apexcharts-tooltip-box span.value {\n font-weight: 700\n}\n\n.apexcharts-tooltip-rangebar {\n padding: 5px 8px\n}\n\n.apexcharts-tooltip-rangebar .category {\n font-weight: 600;\n color: #777\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n font-weight: 700;\n display: block;\n margin-bottom: 5px\n}\n\n.apexcharts-xaxistooltip,.apexcharts-yaxistooltip {\n opacity: 0;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #eceff1;\n border: 1px solid #90a4ae\n}\n\n.apexcharts-xaxistooltip {\n padding: 9px 10px;\n transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n background: rgba(0,0,0,.7);\n border: 1px solid rgba(0,0,0,.5);\n color: #fff\n}\n\n.apexcharts-xaxistooltip:after,.apexcharts-xaxistooltip:before {\n left: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-xaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-left: -6px\n}\n\n.apexcharts-xaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-left: -7px\n}\n\n.apexcharts-xaxistooltip-bottom:after,.apexcharts-xaxistooltip-bottom:before {\n bottom: 100%\n}\n\n.apexcharts-xaxistooltip-top:after,.apexcharts-xaxistooltip-top:before {\n top: 100%\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n border-bottom-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n border-top-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n padding: 4px 10px\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n background: rgba(0,0,0,.7);\n border: 1px solid rgba(0,0,0,.5);\n color: #fff\n}\n\n.apexcharts-yaxistooltip:after,.apexcharts-yaxistooltip:before {\n top: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-yaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-top: -6px\n}\n\n.apexcharts-yaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-top: -7px\n}\n\n.apexcharts-yaxistooltip-left:after,.apexcharts-yaxistooltip-left:before {\n left: 100%\n}\n\n.apexcharts-yaxistooltip-right:after,.apexcharts-yaxistooltip-right:before {\n right: 100%\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n border-left-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n border-right-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n display: none\n}\n\n.apexcharts-xcrosshairs,.apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: .15s ease all\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,.apexcharts-ycrosshairs.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0\n}\n\n.apexcharts-selection-rect {\n cursor: move\n}\n\n.svg_select_boundingRect,.svg_select_points_rot {\n pointer-events: none;\n opacity: 0;\n visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_boundingRect,.apexcharts-selection-rect+g .svg_select_points_rot {\n opacity: 0;\n visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_points_l,.apexcharts-selection-rect+g .svg_select_points_r {\n cursor: ew-resize;\n opacity: 1;\n visibility: visible\n}\n\n.svg_select_points {\n fill: #efefef;\n stroke: #333;\n rx: 2\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n cursor: move\n}\n\n.apexcharts-menu-icon,.apexcharts-pan-icon,.apexcharts-reset-icon,.apexcharts-selection-icon,.apexcharts-toolbar-custom-icon,.apexcharts-zoom-icon,.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6e8192;\n text-align: center\n}\n\n.apexcharts-menu-icon svg,.apexcharts-reset-icon svg,.apexcharts-zoom-icon svg,.apexcharts-zoomin-icon svg,.apexcharts-zoomout-icon svg {\n fill: #6e8192\n}\n\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(.76)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon svg,.apexcharts-theme-dark .apexcharts-pan-icon svg,.apexcharts-theme-dark .apexcharts-reset-icon svg,.apexcharts-theme-dark .apexcharts-selection-icon svg,.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,.apexcharts-theme-dark .apexcharts-zoom-icon svg,.apexcharts-theme-dark .apexcharts-zoomin-icon svg,.apexcharts-theme-dark .apexcharts-zoomout-icon svg {\n fill: #f3f4f5\n}\n\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {\n fill: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg,.apexcharts-theme-light .apexcharts-reset-icon:hover svg,.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {\n fill: #333\n}\n\n.apexcharts-menu-icon,.apexcharts-selection-icon {\n position: relative\n}\n\n.apexcharts-reset-icon {\n margin-left: 5px\n}\n\n.apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon {\n transform: scale(.85)\n}\n\n.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {\n transform: scale(.7)\n}\n\n.apexcharts-zoomout-icon {\n margin-right: 3px\n}\n\n.apexcharts-pan-icon {\n transform: scale(.62);\n position: relative;\n left: 1px;\n top: 0\n}\n\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6e8192;\n stroke-width: 2\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n stroke: #008ffb\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n stroke: #333\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0 6px 2px;\n display: flex;\n justify-content: space-between;\n align-items: center\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: .15s ease all;\n pointer-events: none\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n opacity: 1;\n pointer-events: all;\n transition: .15s ease all\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n background: #eee\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n background: rgba(0,0,0,.7);\n color: #fff\n}\n\n@media screen and (min-width:768px) {\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1\n }\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,.apexcharts-datalabel.apexcharts-element-hidden,.apexcharts-hide .apexcharts-series-points {\n opacity: 0\n}\n\n.apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value,.apexcharts-datalabels,.apexcharts-pie-label {\n cursor: default;\n pointer-events: none\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: .3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease\n}\n\n.apexcharts-annotation-rect,.apexcharts-area-series .apexcharts-area,.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-gridline,.apexcharts-line,.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-point-annotation-label,.apexcharts-radar-series path,.apexcharts-radar-series polygon,.apexcharts-toolbar svg,.apexcharts-tooltip .apexcharts-marker,.apexcharts-xaxis-annotation-label,.apexcharts-yaxis-annotation-label,.apexcharts-zoom-rect {\n pointer-events: none\n}\n\n.apexcharts-marker {\n transition: .15s ease all\n}\n\n.resize-triggers {\n animation: 1ms resizeanim;\n visibility: hidden;\n opacity: 0;\n height: 100%;\n width: 100%;\n overflow: hidden\n}\n\n.contract-trigger:before,.resize-triggers,.resize-triggers>div {\n content: " ";\n display: block;\n position: absolute;\n top: 0;\n left: 0\n}\n\n.resize-triggers>div {\n height: 100%;\n width: 100%;\n background: #eee;\n overflow: auto\n}\n\n.contract-trigger:before {\n overflow: hidden;\n width: 200%;\n height: 200%\n}',a?i.prepend(e.css):o.head.appendChild(e.css))}var l=e.create(e.w.config.series,{});if(!l)return t(e);e.mount(l).then((function(){"function"==typeof e.w.config.chart.events.mounted&&e.w.config.chart.events.mounted(e,e.w),e.events.fireEvent("mounted",[e,e.w]),t(l)})).catch((function(e){n(e)}))}else n(new Error("Element not found"))}))}},{key:"create",value:function(e,t){var n=this.w;new Ue(this).initModules();var r=this.w.globals;if(r.noData=!1,r.animationEnded=!1,this.responsive.checkResponsiveConfig(t),n.config.xaxis.convertedCatToNumeric&&new M(n.config).convertCatToNumericXaxis(n.config,this.ctx),null===this.el)return r.animationEnded=!0,null;if(this.core.setupElements(),"treemap"===n.config.chart.type&&(n.config.grid.show=!1,n.config.yaxis[0].show=!1),0===r.svgWidth)return r.animationEnded=!0,null;var i=S.checkComboSeries(e);r.comboCharts=i.comboCharts,r.comboBarCount=i.comboBarCount;var a=e.every((function(e){return e.data&&0===e.data.length}));(0===e.length||a)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(e),this.theme.init(),new Z(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),r.noData&&r.collapsedSeries.length!==r.series.length&&!n.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),r.axisCharts&&(this.core.coreCalculations(),"category"!==n.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=n.globals.minX,this.ctx.toolbar.maxX=n.globals.maxX),this.formatters.heatmapLabelFormatters(),new S(this).getLargestMarkerSize(),this.dimensions.plotCoords();var o=this.core.xySettings();this.grid.createGridMask();var s=this.core.plotChartType(e,o),l=new U(this);l.bringForward(),n.config.dataLabels.background.enabled&&l.dataLabelsBackground(),this.core.shiftGraphPosition();var u={plot:{left:n.globals.translateX,top:n.globals.translateY,width:n.globals.gridWidth,height:n.globals.gridHeight}};return{elGraph:s,xyRatios:o,elInner:n.globals.dom.elGraphical,dimensions:u}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=this,r=n.w;return new Promise((function(i,a){if(null===n.el)return a(new Error("Not enough data to display or target element not found"));(null===t||r.globals.allSeriesCollapsed)&&n.series.handleNoData(),"treemap"!==r.config.chart.type&&n.axes.drawAxis(r.config.chart.type,t.xyRatios),n.grid=new W(n);var o=n.grid.drawGrid();n.annotations=new O(n),n.annotations.drawImageAnnos(),n.annotations.drawTextAnnos(),"back"===r.config.grid.position&&o&&r.globals.dom.elGraphical.add(o.el);var s=new Y(e.ctx),l=new $(e.ctx);if(null!==o&&(s.xAxisLabelCorrections(o.xAxisTickWidth),l.setYAxisTextAlignments(),r.config.yaxis.map((function(e,t){-1===r.globals.ignoreYAxisIndexes.indexOf(t)&&l.yAxisTitleRotate(t,e.opposite)}))),"back"===r.config.annotations.position&&(r.globals.dom.Paper.add(r.globals.dom.elAnnotations),n.annotations.drawAxesAnnotations()),Array.isArray(t.elGraph))for(var u=0;u0&&r.globals.memory.methodsToExec.forEach((function(e){e.method(e.params,!1,e.context)})),r.globals.axisCharts||r.globals.noData||n.core.resizeNonAxisCharts(),i(n)}))}},{key:"destroy",value:function(){var e,t;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,e=this.parentResizeHandler,(t=Ge.get(e))&&(t.disconnect(),Ge.delete(e));var n=this.w.config.chart.id;n&&Apex._chartInstances.forEach((function(e,t){e.id===_.escapeString(n)&&Apex._chartInstances.splice(t,1)})),new je(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=this.w;return o.globals.selection=void 0,e.series&&(this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map((function(e,n){return t.updateHelpers._extendSeries(e,n)}))),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),o.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,n,r,i,a)}},{key:"updateSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,n)}},{key:"appendSeries",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.w.config.series.slice();return r.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(r,t,n)}},{key:"appendData",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this;n.w.globals.dataChanged=!0,n.series.getPreviousPaths();for(var r=n.w.config.series.slice(),i=0;i0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.series.resetSeries(e,t)}},{key:"addEventListener",value:function(e,t){this.events.addEventListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.events.removeEventListener(e,t)}},{key:"addXaxisAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this;n&&(r=n),r.annotations.addXaxisAnnotationExternal(e,t,r)}},{key:"addYaxisAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this;n&&(r=n),r.annotations.addYaxisAnnotationExternal(e,t,r)}},{key:"addPointAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this;n&&(r=n),r.annotations.addPointAnnotationExternal(e,t,r)}},{key:"clearAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this;e&&(t=e),t.annotations.clearAnnotations(t)}},{key:"removeAnnotation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=this;t&&(n=t),n.annotations.removeAnnotation(n,e)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}},{key:"getHighestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=new K(this.ctx);return t.getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=new K(this.ctx);return t.getMinYMaxY(e).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}},{key:"zoomX",value:function(e,t){this.ctx.toolbar.zoomUpdateOptions(e,t)}},{key:"setLocale",value:function(e){this.localization.setCurrentLocaleValues(e)}},{key:"dataURI",value:function(e){return new H(this.ctx).dataURI(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new H(this.ctx);return t.exportToCSV(e)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var e=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout((function(){e.w.globals.resized=!0,e.w.globals.dataChanged=!1,e.ctx.update()}),150)}},{key:"_windowResizeHandler",value:function(){var e=this.w.config.chart.redrawOnWindowResize;"function"==typeof e&&(e=e()),e&&this._windowResize()}}],[{key:"getChartByID",value:function(e){var t=_.escapeString(e),n=Apex._chartInstances.filter((function(e){return e.id===t}))[0];return n&&n.chart}},{key:"initOnLoad",value:function(){for(var t=document.querySelectorAll("[data-apexcharts]"),n=0;n2?i-2:0),o=2;o0?o-4:o;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=16383,s=0,l=r-i;sl?l:s+o));1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return a.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var i,a,o=[],s=t;s>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},40918:function(e,t,n){"use strict";var r=n(56690).default,i=n(89728).default,a=n(66115).default,o=n(61655).default,s=n(26389).default,l=n(2470),u=n(60545),c="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=p,t.SlowBuffer=function(e){+e!=e&&(e=0);return p.alloc(+e)},t.INSPECT_MAX_BYTES=50;var d=2147483647;function f(e){if(e>d)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,p.prototype),t}function p(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return g(e)}return h(e,t,n)}function h(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!p.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|b(e,t),r=f(n),i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(ee(e,Uint8Array)){var t=new Uint8Array(e);return y(t.buffer,t.byteOffset,t.byteLength)}return v(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ee(e,ArrayBuffer)||e&&ee(e.buffer,ArrayBuffer))return y(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(ee(e,SharedArrayBuffer)||e&&ee(e.buffer,SharedArrayBuffer)))return y(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return p.from(r,t,n);var i=function(e){if(p.isBuffer(e)){var t=0|_(e.length),n=f(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||te(e.length)?f(0):v(e);if("Buffer"===e.type&&Array.isArray(e.data))return v(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return p.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function m(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function g(e){return m(e),f(e<0?0:0|_(e))}function v(e){for(var t=e.length<0?0:0|_(e.length),n=f(t),r=0;r=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return 0|e}function b(e,t){if(p.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ee(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(i)return r?-1:$(e).length;t=(""+t).toLowerCase(),i=!0}}function x(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return N(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function E(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function S(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),te(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=p.from(t,r)),p.isBuffer(t))return 0===t.length?-1:w(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):w(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;as&&(n=s-l),a=n;a>=0;a--){for(var d=!0,f=0;fi&&(r=i):r=i;var a,o=t.length;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function O(e,t,n){return 0===t&&n===e.length?l.fromByteArray(e):l.fromByteArray(e.slice(t,n))}function I(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:a>223?3:a>191?2:1;if(i+s<=n){var l=void 0,u=void 0,c=void 0,d=void 0;switch(s){case 1:a<128&&(o=a);break;case 2:128===(192&(l=e[i+1]))&&(d=(31&a)<<6|63&l)>127&&(o=d);break;case 3:l=e[i+1],u=e[i+2],128===(192&l)&&128===(192&u)&&(d=(15&a)<<12|(63&l)<<6|63&u)>2047&&(d<55296||d>57343)&&(o=d);break;case 4:l=e[i+1],u=e[i+2],c=e[i+3],128===(192&l)&&128===(192&u)&&128===(192&c)&&(d=(15&a)<<18|(63&l)<<12|(63&u)<<6|63&c)>65535&&d<1114112&&(o=d)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(e){var t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rr.length?(p.isBuffer(a)||(a=p.from(a)),a.copy(r,i)):Uint8Array.prototype.set.call(r,a,i);else{if(!p.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i)}i+=a.length}return r},p.byteLength=b,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},c&&(p.prototype[c]=p.prototype.inspect),p.prototype.compare=function(e,t,n,r,i){if(ee(e,Uint8Array)&&(e=p.from(e,e.offset,e.byteLength)),!p.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),c=0;c>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return C(this,e,t,n);case"utf8":case"utf-8":return T(this,e,t,n);case"ascii":case"latin1":case"binary":return A(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function N(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,n,r,i,a){if(!p.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function Z(e,t,n,r,i){Y(t,r,i,e,n,7);var a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function z(e,t,n,r,i){Y(t,r,i,e,n,7);var a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function U(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,i){return t=+t,n>>>=0,i||U(e,0,n,4),u.write(e,t,n,r,23,4),n+4}function G(e,t,n,r,i){return t=+t,n>>>=0,i||U(e,0,n,8),u.write(e,t,n,r,52,8),n+8}p.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||F(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||F(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},p.prototype.readUint8=p.prototype.readUInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),this[e]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]|this[e+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]<<8|this[e+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},p.prototype.readBigUInt64LE=re((function(e){W(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||X(e,this.length-8);var r=t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24),i=this[++e]+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+n*Math.pow(2,24);return BigInt(r)+(BigInt(i)<>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||X(e,this.length-8);var r=t*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e],i=this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+n;return(BigInt(r)<>>=0,t>>>=0,n||F(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},p.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||F(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},p.prototype.readInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},p.prototype.readInt16LE=function(e,t){e>>>=0,t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},p.prototype.readInt16BE=function(e,t){e>>>=0,t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},p.prototype.readInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},p.prototype.readInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},p.prototype.readBigInt64LE=re((function(e){W(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||X(e,this.length-8);var r=this[e+4]+this[e+5]*Math.pow(2,8)+this[e+6]*Math.pow(2,16)+(n<<24);return(BigInt(r)<>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||X(e,this.length-8);var r=(t<<24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e];return(BigInt(r)<>>=0,t||F(e,4,this.length),u.read(this,e,!0,23,4)},p.prototype.readFloatBE=function(e,t){return e>>>=0,t||F(e,4,this.length),u.read(this,e,!1,23,4)},p.prototype.readDoubleLE=function(e,t){return e>>>=0,t||F(e,8,this.length),u.read(this,e,!0,52,8)},p.prototype.readDoubleBE=function(e,t){return e>>>=0,t||F(e,8,this.length),u.read(this,e,!1,52,8)},p.prototype.writeUintLE=p.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||B(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,r)||B(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},p.prototype.writeUint8=p.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,1,255,0),this[t]=255&e,t+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},p.prototype.writeBigUInt64LE=re((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Z(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),p.prototype.writeBigUInt64BE=re((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return z(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),p.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},p.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},p.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},p.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},p.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},p.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},p.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},p.prototype.writeBigInt64LE=re((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Z(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),p.prototype.writeBigInt64BE=re((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return z(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),p.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},p.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},p.prototype.writeDoubleLE=function(e,t,n){return G(this,e,t,!0,n)},p.prototype.writeDoubleBE=function(e,t,n){return G(this,e,t,!1,n)},p.prototype.copy=function(e,t,n,r){if(!p.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function Y(e,t,n,r,i,a){if(e>n||e3?0===t||t===BigInt(0)?">= 0".concat(s," and < 2").concat(s," ** ").concat(8*(a+1)).concat(s):">= -(2".concat(s," ** ").concat(8*(a+1)-1).concat(s,") and < 2 ** ")+"".concat(8*(a+1)-1).concat(s):">= ".concat(t).concat(s," and <= ").concat(n).concat(s),new V.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||X(t,e.length-(n+1))}(r,i,a)}function W(e,t){if("number"!==typeof e)throw new V.ERR_INVALID_ARG_TYPE(t,"number",e)}function X(e,t,n){if(Math.floor(e)!==e)throw W(e,n),new V.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new V.ERR_BUFFER_OUT_OF_BOUNDS;throw new V.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}q("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),q("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),q("ERR_OUT_OF_RANGE",(function(e,t,n){var r='The value of "'.concat(e,'" is out of range.'),i=n;return Number.isInteger(n)&&Math.abs(n)>Math.pow(2,32)?i=H(String(n)):"bigint"===typeof n&&(i=String(n),(n>Math.pow(BigInt(2),BigInt(32))||n<-Math.pow(BigInt(2),BigInt(32)))&&(i=H(i)),i+="n"),r+=" It must be ".concat(t,". Received ").concat(i)}),RangeError);var K=/[^+/0-9A-Za-z-_]/g;function $(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function Q(e){return l.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(K,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function J(e,t,n,r){var i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function ee(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function te(e){return e!==e}var ne=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}();function re(e){return"undefined"===typeof BigInt?ie:e}function ie(){throw new Error("BigInt not supported")}},16225:function(e){var t=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=t},83061:function(e,t,n){"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;tc;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},79056:function(e,t,n){var r=n(25852),i=n(34534),a=n(70769),o=n(11446),s=n(76425),l=n(41180),u=i([].push),c=function(e){var t=1==e,n=2==e,i=3==e,c=4==e,d=6==e,f=7==e,p=5==e||d;return function(h,m,g,v){for(var y,_,b=o(h),x=a(b),E=r(m,g),S=s(x),w=0,C=v||l,T=t?C(h,S):n||f?C(h,0):void 0;S>w;w++)if((p||w in x)&&(_=E(y=x[w],w,b),e))if(t)T[w]=_;else if(_)switch(e){case 3:return!0;case 5:return y;case 6:return w;case 2:u(T,y)}else switch(e){case 4:return!1;case 7:u(T,y)}return d?-1:i||c?c:T}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},76205:function(e,t,n){var r=n(66111),i=n(75508),a=n(32504),o=i("species");e.exports=function(e){return a>=51||!r((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},11689:function(e,t,n){"use strict";var r=n(66111);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},69998:function(e,t,n){var r=n(68973),i=n(11446),a=n(70769),o=n(76425),s=TypeError,l=function(e){return function(t,n,l,u){r(n);var c=i(t),d=a(c),f=o(c),p=e?f-1:0,h=e?-1:1;if(l<2)for(;;){if(p in d){u=d[p],p+=h;break}if(p+=h,e?p<0:f<=p)throw s("Reduce of empty array with no initial value")}for(;e?p>=0:f>p;p+=h)p in d&&(u=n(u,d[p],p,c));return u}};e.exports={left:l(!1),right:l(!0)}},92914:function(e,t,n){var r=n(53864),i=n(76425),a=n(36072),o=Array,s=Math.max;e.exports=function(e,t,n){for(var l=i(e),u=r(t,l),c=r(void 0===n?l:n,l),d=o(s(c-u,0)),f=0;u0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},28605:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},73587:function(e,t,n){var r=n(19782),i=n(82530).f,a=n(87454),o=n(63609),s=n(92164),l=n(11147),u=n(79492);e.exports=function(e,t){var n,c,d,f,p,h=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[h]||s(h,{}):(r[h]||{}).prototype)for(c in t){if(f=t[c],d=e.dontCallGetSet?(p=i(n,c))&&p.value:n[c],!u(m?c:h+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&a(f,"sham",!0),o(n,c,f,e)}}},66111:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},88635:function(e,t,n){"use strict";n(4541);var r=n(34534),i=n(63609),a=n(75493),o=n(66111),s=n(75508),l=n(87454),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,d){var f=s(e),p=!o((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),h=p&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!p||!h||n){var m=r(/./[f]),g=t(f,""[e],(function(e,t,n,i,o){var s=r(e),l=t.exec;return l===a||l===c.exec?p&&!o?{done:!0,value:m(t,n,i)}:{done:!0,value:s(n,t,i)}:{done:!1}}));i(String.prototype,e,g[0]),i(c,f,g[1])}d&&l(c[f],"sham",!0)}},31561:function(e,t,n){var r=n(66111);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},12256:function(e,t,n){var r=n(55830),i=Function.prototype,a=i.apply,o=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},25852:function(e,t,n){var r=n(34534),i=n(68973),a=n(55830),o=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:a?o(e,t):function(){return e.apply(t,arguments)}}},55830:function(e,t,n){var r=n(66111);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},37892:function(e,t,n){var r=n(55830),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},21774:function(e,t,n){var r=n(37420),i=n(78320),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&o(a,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},83108:function(e,t,n){var r=n(55830),i=Function.prototype,a=i.call,o=r&&i.bind.bind(a,a);e.exports=function(e){return r?o(e):function(){return a.apply(e,arguments)}}},34534:function(e,t,n){var r=n(73135),i=n(83108);e.exports=function(e){if("Function"===r(e))return i(e)}},66780:function(e,t,n){var r=n(19782),i=n(30171),a=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}},84284:function(e,t,n){var r=n(5249),i=n(62135),a=n(90486),o=n(55706),s=n(75508)("iterator");e.exports=function(e){if(!a(e))return i(e,s)||i(e,"@@iterator")||o[r(e)]}},68029:function(e,t,n){var r=n(37892),i=n(68973),a=n(59799),o=n(5065),s=n(84284),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return a(r(n,e));throw l(o(e)+" is not iterable")}},62135:function(e,t,n){var r=n(68973),i=n(90486);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},24527:function(e,t,n){var r=n(34534),i=n(11446),a=Math.floor,o=r("".charAt),s=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,f){var p=n+e.length,h=r.length,m=c;return void 0!==d&&(d=i(d),m=u),s(f,m,(function(i,s){var u;switch(o(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,p);case"<":u=d[l(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>h){var f=a(c/10);return 0===f?i:f<=h?void 0===r[f-1]?o(s,1):r[f-1]+o(s,1):i}u=r[c-1]}return void 0===u?"":u}))}},19782:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},78320:function(e,t,n){var r=n(34534),i=n(11446),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},52819:function(e){e.exports={}},4836:function(e,t,n){var r=n(66780);e.exports=r("document","documentElement")},53373:function(e,t,n){var r=n(37420),i=n(66111),a=n(20916);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},70769:function(e,t,n){var r=n(34534),i=n(66111),a=n(73135),o=Object,s=r("".split);e.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?s(e,""):o(e)}:o},2142:function(e,t,n){var r=n(30171),i=n(62362),a=n(32695);e.exports=function(e,t,n){var o,s;return a&&r(o=t.constructor)&&o!==n&&i(s=o.prototype)&&s!==n.prototype&&a(e,s),e}},50112:function(e,t,n){var r=n(34534),i=n(30171),a=n(58749),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},36781:function(e,t,n){var r=n(73587),i=n(34534),a=n(52819),o=n(62362),s=n(78320),l=n(81684).f,u=n(59814),c=n(64350),d=n(61481),f=n(39020),p=n(31561),h=!1,m=f("meta"),g=0,v=function(e){l(e,m,{value:{objectID:"O"+g++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},h=!0;var e=u.f,t=i([].splice),n={};n[m]=1,e(n).length&&(u.f=function(n){for(var r=e(n),i=0,a=r.length;iy;y++)if((b=O(e[y]))&&u(m,b))return b;return new h(!1)}g=c(e,v)}for(x=C?e.next:g.next;!(E=i(x,g)).done;){try{b=O(E.value)}catch(I){f(g,"throw",I)}if("object"==typeof b&&b&&u(m,b))return b}return new h(!1)}},78300:function(e,t,n){var r=n(37892),i=n(59799),a=n(62135);e.exports=function(e,t,n){var o,s;i(e);try{if(!(o=a(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(l){s=!0,o=l}if("throw"===t)throw n;if(s)throw o;return i(o),n}},82992:function(e,t,n){"use strict";var r=n(11647).IteratorPrototype,i=n(83302),a=n(80431),o=n(21117),s=n(55706),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=i(r,{next:a(+!u,n)}),o(e,c,!1,!0),s[c]=l,e}},67432:function(e,t,n){"use strict";var r=n(73587),i=n(37892),a=n(42192),o=n(21774),s=n(30171),l=n(82992),u=n(7209),c=n(32695),d=n(21117),f=n(87454),p=n(63609),h=n(75508),m=n(55706),g=n(11647),v=o.PROPER,y=o.CONFIGURABLE,_=g.IteratorPrototype,b=g.BUGGY_SAFARI_ITERATORS,x=h("iterator"),E="keys",S="values",w="entries",C=function(){return this};e.exports=function(e,t,n,o,h,g,T){l(n,t,o);var A,k,D,O=function(e){if(e===h&&P)return P;if(!b&&e in N)return N[e];switch(e){case E:case S:case w:return function(){return new n(this,e)}}return function(){return new n(this)}},I=t+" Iterator",R=!1,N=e.prototype,M=N[x]||N["@@iterator"]||h&&N[h],P=!b&&M||O(h),L="Array"==t&&N.entries||M;if(L&&(A=u(L.call(new e)))!==Object.prototype&&A.next&&(a||u(A)===_||(c?c(A,_):s(A[x])||p(A,x,C)),d(A,I,!0,!0),a&&(m[I]=C)),v&&h==S&&M&&M.name!==S&&(!a&&y?f(N,"name",S):(R=!0,P=function(){return i(M,this)})),h)if(k={values:O(S),keys:g?P:O(E),entries:O(w)},T)for(D in k)(b||R||!(D in N))&&p(N,D,k[D]);else r({target:t,proto:!0,forced:b||R},k);return a&&!T||N[x]===P||p(N,x,P,{name:h}),m[t]=P,k}},11647:function(e,t,n){"use strict";var r,i,a,o=n(66111),s=n(30171),l=n(62362),u=n(83302),c=n(7209),d=n(63609),f=n(75508),p=n(42192),h=f("iterator"),m=!1;[].keys&&("next"in(a=[].keys())?(i=c(c(a)))!==Object.prototype&&(r=i):m=!0),!l(r)||o((function(){var e={};return r[h].call(e)!==e}))?r={}:p&&(r=u(r)),s(r[h])||d(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},55706:function(e){e.exports={}},76425:function(e,t,n){var r=n(61234);e.exports=function(e){return r(e.length)}},18138:function(e,t,n){var r=n(66111),i=n(30171),a=n(78320),o=n(37420),s=n(21774).CONFIGURABLE,l=n(50112),u=n(72592),c=u.enforce,d=u.get,f=Object.defineProperty,p=o&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),h=String(String).split("String"),m=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||s&&e.name!==t)&&(o?f(e,"name",{value:t,configurable:!0}):e.name=t),p&&n&&a(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?o&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=c(e);return a(r,"source")||(r.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=m((function(){return i(this)&&d(this).source||l(this)}),"toString")},70596:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},39232:function(e,t,n){var r=n(19782),i=n(66111),a=n(34534),o=n(55217),s=n(58119).trim,l=n(31136),u=r.parseInt,c=r.Symbol,d=c&&c.iterator,f=/^[+-]?0x/i,p=a(f.exec),h=8!==u(l+"08")||22!==u(l+"0x16")||d&&!i((function(){u(Object(d))}));e.exports=h?function(e,t){var n=s(o(e));return u(n,t>>>0||(p(f,n)?16:10))}:u},85698:function(e,t,n){"use strict";var r=n(37420),i=n(34534),a=n(37892),o=n(66111),s=n(11467),l=n(51186),u=n(23509),c=n(11446),d=n(70769),f=Object.assign,p=Object.defineProperty,h=i([].concat);e.exports=!f||o((function(){if(r&&1!==f({b:1},f(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=f({},e)[n]||s(f({},t)).join("")!=i}))?function(e,t){for(var n=c(e),i=arguments.length,o=1,f=l.f,p=u.f;i>o;)for(var m,g=d(arguments[o++]),v=f?h(s(g),f(g)):s(g),y=v.length,_=0;y>_;)m=v[_++],r&&!a(p,g,m)||(n[m]=g[m]);return n}:f},83302:function(e,t,n){var r,i=n(59799),a=n(3415),o=n(28605),s=n(52819),l=n(4836),u=n(20916),c=n(59325),d=c("IE_PROTO"),f=function(){},p=function(e){return"24)throw new Error("maxZoom should be in the 0-24 range");if(t.promoteId&&t.generateId)throw new Error("promoteId and generateId cannot be used together.");var r=function(e,t){var n=[];if("FeatureCollection"===e.type)for(var r=0;r1&&console.time("creation"),f=this.tiles[d]=Se(e,t,n,r,l),this.tileCoords.push({z:t,x:n,y:r}),u)){u>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,n,r,f.numFeatures,f.numPoints,f.numSimplified),console.timeEnd("creation"));var p="z"+t;this.stats[p]=(this.stats[p]||0)+1,this.total++}if(f.source=e,i){if(t===l.maxZoom||t===i)continue;var h=1<1&&console.time("clipping");var m,g,v,y,_,b,x=.5*l.buffer/l.extent,E=.5-x,S=.5+x,w=1+x;m=g=v=y=null,_=de(e,c,n-x,n+S,0,f.minX,f.maxX,l),b=de(e,c,n+E,n+w,0,f.minX,f.maxX,l),e=null,_&&(m=de(_,c,r-x,r+S,1,f.minY,f.maxY,l),g=de(_,c,r+E,r+w,1,f.minY,f.maxY,l),_=null),b&&(v=de(b,c,r-x,r+S,1,f.minY,f.maxY,l),y=de(b,c,r+E,r+w,1,f.minY,f.maxY,l),b=null),u>1&&console.timeEnd("clipping"),s.push(m||[],t+1,2*n,2*r),s.push(g||[],t+1,2*n,2*r+1),s.push(v||[],t+1,2*n+1,2*r),s.push(y||[],t+1,2*n+1,2*r+1)}}},Te.prototype.getTile=function(e,t,n){var r=this.options,i=r.extent,a=r.debug;if(e<0||e>24)return null;var o=1<1&&console.log("drilling down to z%d-%d-%d",e,t,n);for(var l,u=e,c=t,d=n;!l&&u>0;)u--,c=Math.floor(c/2),d=Math.floor(d/2),l=this.tiles[Ae(u,c,d)];return l&&l.source?(a>1&&console.log("found parent tile z%d-%d-%d",u,c,d),a>1&&console.time("drilling down"),this.splitTile(l.source,u,c,d,e,t,n),a>1&&console.timeEnd("drilling down"),this.tiles[s]?xe(this.tiles[s],i):null):null};var De=function(t){h(r,t);var n=m(r);function r(e,t,i,a,o){var s;return g(this,r),s=n.call(this,e,t,i,a,ke),o&&(s.loadGeoJSON=o),s}return v(r,[{key:"loadData",value:function(t,n){var r=this,i=t&&t.request,o=i&&i.collectResourceTiming;this.loadGeoJSON(t,(function(s,l){if(s||!l)return n(s);if("object"!=typeof l)return n(new Error("Input data given to '".concat(t.source,"' is not a valid GeoJSON object.")));a(l,!0);try{if(t.filter){var u=e.createExpression(t.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===u.result)throw new Error(u.value.map((function(e){return"".concat(e.key,": ").concat(e.message)})).join(", "));var c=l.features.filter((function(e){return u.value.evaluate({zoom:0},e)}));l={type:"FeatureCollection",features:c}}r._geoJSONIndex=t.cluster?new V(function(t){var n=t.superclusterOptions,r=t.clusterProperties;if(!r||!n)return n;for(var i={},a={},o={accumulated:null,zoom:0},s={properties:null},l=Object.keys(r),u=0,c=l;u=0?0:t.button}function O(t,n,r){var i=t.offsetWidth===n.width?1:t.offsetWidth/n.width;return new e.pointGeometry((r.clientX-n.left)*i,(r.clientY-n.top)*i)}function I(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n*a-i*r;return o?(e[0]=a*(o=1/o),e[1]=-r*o,e[2]=-i*o,e[3]=n*o,e):null}function R(e){var t=e.userImage;return!!(t&&t.render&&t.render())&&(e.data.replace(new Uint8Array(t.data.buffer)),!0)}var N=function(t){h(r,t);var n=m(r);function r(){var t;return g(this,r),(t=n.call(this)).images={},t.updatedImages={},t.callbackDispatchedThisFrame={},t.loaded=!1,t.requestors=[],t.patterns={},t.atlasImage=new e.RGBAImage({width:1,height:1}),t.dirty=!0,t}return v(r,[{key:"isLoaded",value:function(){return this.loaded}},{key:"setLoaded",value:function(e){if(this.loaded!==e&&(this.loaded=e,e)){var t,n=f(this.requestors);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.ids,a=r.callback;this._notify(i,a)}}catch(o){n.e(o)}finally{n.f()}this.requestors=[]}}},{key:"hasImage",value:function(e){return!!this.getImage(e)}},{key:"getImage",value:function(e){return this.images[e]}},{key:"addImage",value:function(e,t){this._validate(e,t)&&(this.images[e]=t)}},{key:"_validate",value:function(t,n){var r=!0;return this._validateStretch(n.stretchX,n.data&&n.data.width)||(this.fire(new e.ErrorEvent(new Error('Image "'.concat(t,'" has invalid "stretchX" value')))),r=!1),this._validateStretch(n.stretchY,n.data&&n.data.height)||(this.fire(new e.ErrorEvent(new Error('Image "'.concat(t,'" has invalid "stretchY" value')))),r=!1),this._validateContent(n.content,n)||(this.fire(new e.ErrorEvent(new Error('Image "'.concat(t,'" has invalid "content" value')))),r=!1),r}},{key:"_validateStretch",value:function(e,t){if(!e)return!0;var n,r=0,i=f(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a[0]1&&void 0!==arguments[1]?arguments[1]:{};if(!this._validate(e.validateLight,t,n))for(var r in t){var i=t[r];e.endsWith(r,P)?this._transitionable.setTransition(r.slice(0,-P.length),i):this._transitionable.setValue(r,i)}}},{key:"updateTransitions",value:function(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}},{key:"hasTransition",value:function(){return this._transitioning.hasTransition()}},{key:"recalculate",value:function(e){this.properties=this._transitioning.possiblyEvaluate(e)}},{key:"_validate",value:function(t,n,r){return(!r||!1!==r.validate)&&e.emitValidationErrors(this,t.call(e.validateStyle,e.extend({value:n,style:{glyphs:!0,sprite:!0},styleSpec:e.spec})))}}]),r}(e.Evented),F=new e.Properties({source:new e.DataConstantProperty(e.spec.terrain.source),exaggeration:new e.DataConstantProperty(e.spec.terrain.exaggeration)}),B="-transition",Z=function(t){h(r,t);var n=m(r);function r(t,i){var a;return g(this,r),(a=n.call(this))._transitionable=new e.Transitionable(F),a.set(t),a._transitioning=a._transitionable.untransitioned(),a.drapeRenderMode=i,a}return v(r,[{key:"get",value:function(){return this._transitionable.serialize()}},{key:"set",value:function(t){for(var n in t){var r=t[n];e.endsWith(n,B)?this._transitionable.setTransition(n.slice(0,-B.length),r):this._transitionable.setValue(n,r)}}},{key:"updateTransitions",value:function(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}},{key:"hasTransition",value:function(){return this._transitioning.hasTransition()}},{key:"recalculate",value:function(e){this.properties=this._transitioning.possiblyEvaluate(e)}}]),r}(e.Evented);function z(t,n,r,i){var a=e.smoothstep(45,65,r),o=U(t,i),s=d(o,2),l=s[0],u=s[1],c=e.length(n),f=1-Math.min(1,Math.exp((c-l)/(u-l)*-6));return f*=f*f,(f=Math.min(1,1.00747*f))*a*t.alpha}function U(e,t){var n=.5/Math.tan(.5*t);return[e.range[0]+n,e.range[1]+n]}var j=new e.Properties({range:new e.DataConstantProperty(e.spec.fog.range),color:new e.DataConstantProperty(e.spec.fog.color),"high-color":new e.DataConstantProperty(e.spec.fog["high-color"]),"space-color":new e.DataConstantProperty(e.spec.fog["space-color"]),"horizon-blend":new e.DataConstantProperty(e.spec.fog["horizon-blend"]),"star-intensity":new e.DataConstantProperty(e.spec.fog["star-intensity"])}),G="-transition",V=function(t){h(r,t);var n=m(r);function r(t,i){var a;return g(this,r),(a=n.call(this))._transitionable=new e.Transitionable(j),a.set(t),a._transitioning=a._transitionable.untransitioned(),a._transform=i,a}return v(r,[{key:"state",get:function(){var t=this._transform,n="globe"===t.projection.name,r=e.globeToMercatorTransition(t.zoom),i=this.properties.get("range"),a=[.5,3];return{range:n?[e.number(a[0],i[0],r),e.number(a[1],i[1],r)]:i,horizonBlend:this.properties.get("horizon-blend"),alpha:this.properties.get("color").a}}},{key:"get",value:function(){return this._transitionable.serialize()}},{key:"set",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this._validate(e.validateFog,t,n)){for(var r=0,i=Object.keys(e.spec.fog);rr.y&&(this.cameraPoint.x>n.x&&this.cameraPoint.x=r.x?i[2]=this.cameraPoint:this.cameraPoint.x<=n.x&&(i[3]=this.cameraPoint)),e.bufferConvexPolygon(i,t)}},{key:"bufferedCameraGeometryGlobe",value:function(t){var n=this.screenBounds[0],r=1===this.screenBounds.length?this.screenBounds[0].add(new e.pointGeometry(1,1)):this.screenBounds[1],i=e.polygonizeBounds(n,r,t),a=this.cameraPoint.clone();switch(3*((a.y>n.y)+(a.y>r.y))+((a.x>n.x)+(a.x>r.x))){case 0:i[0]=a,i[4]=a.clone();break;case 1:i.splice(1,0,a);break;case 2:i[1]=a;break;case 3:i.splice(4,0,a);break;case 5:i.splice(2,0,a);break;case 6:i[3]=a;break;case 7:i.splice(3,0,a);break;case 8:i[2]=a}return i}},{key:"containsTile",value:function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=t.queryPadding/n._pixelsPerMercatorPixel+1,o=r?this._bufferedCameraMercator(a,n):this._bufferedScreenMercator(a,n),s=t.tileID.wrap+(o.unwrapped?i:0),l=o.polygon.map((function(n){return e.getTilePoint(t.tileTransform,n,s)}));if(e.polygonIntersectsBox(l,0,0,e.EXTENT,e.EXTENT)){s=t.tileID.wrap+(this.screenGeometryMercator.unwrapped?i:0);var u,c=this.screenGeometryMercator.polygon.map((function(n){return e.getTileVec3(t.tileTransform,n,s)})),d=c.map((function(t){return new e.pointGeometry(t[0],t[1])})),f=n.getFreeCameraOptions().position||new e.MercatorCoordinate(0,0,0),p=e.getTileVec3(t.tileTransform,f,s),h=c.map((function(t){var n=e.sub(t,t,p);return e.normalize(n,n),new e.Ray(p,n)})),m=H(t,1,n.zoom)*n._pixelsPerMercatorPixel;return{queryGeometry:this,tilespaceGeometry:d,tilespaceRays:h,bufferedTilespaceGeometry:l,bufferedTilespaceBounds:(u=e.getBounds(l),u.min.x=e.clamp(u.min.x,0,e.EXTENT),u.min.y=e.clamp(u.min.y,0,e.EXTENT),u.max.x=e.clamp(u.max.x,0,e.EXTENT),u.max.y=e.clamp(u.max.y,0,e.EXTENT),u),tile:t,tileID:t.tileID,pixelToTileUnitsFactor:m}}}},{key:"_bufferedScreenMercator",value:function(e,t){var n,r=K(e);return this._screenRaycastCache[r]?this._screenRaycastCache[r]:(n="globe"===t.projection.name?this._projectAndResample(this.bufferedScreenGeometry(e),t):{polygon:this.bufferedScreenGeometry(e).map((function(e){return t.pointCoordinate3D(e)})),unwrapped:!0},this._screenRaycastCache[r]=n,n)}},{key:"_bufferedCameraMercator",value:function(e,t){var n,r=K(e);return this._cameraRaycastCache[r]?this._cameraRaycastCache[r]:(n="globe"===t.projection.name?this._projectAndResample(this.bufferedCameraGeometryGlobe(e),t):{polygon:this.bufferedCameraGeometry(e).map((function(e){return t.pointCoordinate3D(e)})),unwrapped:!0},this._cameraRaycastCache[r]=n,n)}},{key:"_projectAndResample",value:function(t,n){var r=function(t,n){var r=e.multiply([],n.pixelMatrix,n.globeMatrix),i=[0,-e.GLOBE_RADIUS,0,1],a=[0,e.GLOBE_RADIUS,0,1],o=[0,0,0,1];e.transformMat4$1(i,i,r),e.transformMat4$1(a,a,r),e.transformMat4$1(o,o,r);var s=new e.pointGeometry(i[0]/i[3],i[1]/i[3]),l=new e.pointGeometry(a[0]/a[3],a[1]/a[3]),u=e.polygonContainsPoint(t,s)&&i[3]1?W(t.slice(0,p),n):[],g=pi&&(i=t[o].x,a=o);for(var s=0;s.5&&(u.x=r&&t.x=i&&t.y=2,a=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),i,this.tileSize);t.request=e.getImage(this.map._requestManager.transformRequest(a,e.ResourceType.Tile),(function(i,a,o,s){return delete t.request,t.aborted?(t.state="unloaded",n(null)):i?(t.state="errored",n(i)):a?(r.map._refreshExpiredTiles&&t.setExpiryData({cacheControl:o,expires:s}),t.setTexture(a,r.map.painter),t.state="loaded",e.cacheEntryPossiblyAdded(r.dispatcher),void n(null)):n(null)}))}},{key:"abortTile",value:function(e,t){e.request&&(e.request.cancel(),delete e.request),t()}},{key:"unloadTile",value:function(e,t){e.texture&&this.map.painter.saveTileTexture(e.texture),t()}},{key:"hasTransition",value:function(){return!1}}],[{key:"loadTileData",value:function(e,t,n){e.setTexture(t,n)}},{key:"unloadTileData",value:function(e,t){e.texture&&t.saveTileTexture(e.texture)}}]),r}(e.Evented);function je(t,n,r,i,a,o,s,l){var u=[t,r,a,n,i,o,1,1,1],c=[s,l,1],f=e.adjoint([],u),p=e.transformMat3(c,c,e.transpose(f,f)),h=d(p,3),m=h[0],g=h[1],v=h[2];return e.multiply$1(u,[m,0,0,0,g,0,0,0,v],u)}var Ge=function(t){h(r,t);var n=m(r);function r(e,t,i,a){var o;return g(this,r),(o=n.call(this)).id=e,o.dispatcher=i,o.coordinates=t.coordinates,o.type="image",o.minzoom=0,o.maxzoom=22,o.tileSize=512,o.tiles={},o._loaded=!1,o.setEventedParent(a),o.options=t,o}return v(r,[{key:"load",value:function(t,n){var r=this;this._loaded=n||!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this.url=this.options.url,e.getImage(this.map._requestManager.transformRequest(this.url,e.ResourceType.Image),(function(n,i){if(r._loaded=!0,n)r.fire(new e.ErrorEvent(n));else if(i){var a=e.window.HTMLImageElement;r.image=i instanceof a?e.exported.getImageData(i):i,r.width=r.image.width,r.height=r.image.height,t&&(r.coordinates=t),r._finishLoading()}}))}},{key:"loaded",value:function(){return this._loaded}},{key:"updateImage",value:function(e){return this.image&&e.url?(this.options.url=e.url,this.load(e.coordinates,this._loaded),this):this}},{key:"_finishLoading",value:function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})))}},{key:"onAdd",value:function(e){this.map=e,this.load()}},{key:"onRemove",value:function(){this.texture&&this.texture.destroy()}},{key:"setCoordinates",value:function(t){this.coordinates=t,this._boundsArray=void 0;var n=t.map(e.MercatorCoordinate.fromLngLat);return this.tileID=function(t){var n,r=1/0,i=1/0,a=-1/0,o=-1/0,s=f(t);try{for(s.s();!(n=s.n()).done;){var l=n.value;r=Math.min(r,l.x),i=Math.min(i,l.y),a=Math.max(a,l.x),o=Math.max(o,l.y)}}catch(p){s.e(p)}finally{s.f()}var u=Math.max(a-r,o-i),c=Math.max(0,Math.floor(-Math.log(u)/Math.LN2)),d=Math.pow(2,c);return new e.CanonicalTileID(c,Math.floor((r+a)/2*d),Math.floor((i+o)/2*d))}(n),this.minzoom=this.maxzoom=this.tileID.z,this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})),this}},{key:"_clear",value:function(){this._boundsArray=void 0}},{key:"_prepareData",value:function(t){for(var n in this.tiles){var r=this.tiles[n];"loaded"!==r.state&&(r.state="loaded",r.texture=this.texture)}if(!this._boundsArray){var i=e.tileTransform(this.tileID,this.map.transform.projection),a=this.coordinates.map((function(t){var n=i.projection.project(t[0],t[1]);return e.getTilePoint(i,n)._round()})),o=d(a,4),s=o[0],l=o[1],u=o[2],c=o[3];this.perspectiveTransform=function(t,n,r,i,a,o,s,l,u,c){var d=je(0,0,t,0,0,n,t,n),f=je(r,i,a,o,s,l,u,c);return e.multiply$1(f,e.adjoint(d,d),f),[f[6]/f[8]*t/e.EXTENT,f[7]/f[8]*n/e.EXTENT]}(this.width,this.height,s.x,s.y,l.x,l.y,c.x,c.y,u.x,u.y);var f=this._boundsArray=new e.StructArrayLayout4i8;f.emplaceBack(s.x,s.y,0,0),f.emplaceBack(l.x,l.y,e.EXTENT,0),f.emplaceBack(c.x,c.y,0,e.EXTENT),f.emplaceBack(u.x,u.y,e.EXTENT,e.EXTENT),this.boundsBuffer&&this.boundsBuffer.destroy(),this.boundsBuffer=t.createVertexBuffer(f,e.boundsAttributes.members),this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)}}},{key:"prepare",value:function(){if(0!==Object.keys(this.tiles).length&&this.image){var t=this.map.painter.context,n=t.gl;this.texture?this.texture.update(this.image):(this.texture=new e.Texture(t,this.image,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this._prepareData(t)}}},{key:"loadTile",value:function(e,t){this.tileID&&this.tileID.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={},t(null)):(e.state="errored",t(null))}},{key:"serialize",value:function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}},{key:"hasTransition",value:function(){return!1}}]),r}(e.Evented),Ve={vector:function(t){h(r,t);var n=m(r);function r(t,a,o,s){var u;if(g(this,r),(u=n.call(this)).id=t,u.dispatcher=o,u.type="vector",u.minzoom=0,u.maxzoom=22,u.scheme="xyz",u.tileSize=512,u.reparseOverscaled=!0,u.isTileClipped=!0,u._loaded=!1,e.extend(i(u),e.pick(a,["url","scheme","tileSize","promoteId"])),u._options=e.extend({type:"vector"},a),u._collectResourceTiming=a.collectResourceTiming,512!==u.tileSize)throw new Error("vector tile sources must have a tileSize of 512");return u.setEventedParent(s),u._tileWorkers={},u._deduped=new e.DedupedRequest,l(u)}return v(r,[{key:"load",value:function(t){var n=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"}));var r=this.language||this.map._language,i=this.worldview||this.map._worldview;this._tileJSONRequest=$(this._options,this.map._requestManager,r,i,(function(a,o){n._tileJSONRequest=null,n._loaded=!0,a?(r&&console.warn("Ensure that your requested language string is a valid BCP-47 code. Found: ".concat(r)),i&&2!==i.length&&console.warn("Requested worldview strings must be a valid ISO alpha-2 code. Found: ".concat(i)),n.fire(new e.ErrorEvent(a))):o&&(e.extend(n,o),o.bounds&&(n.tileBounds=new J(o.bounds,n.minzoom,n.maxzoom)),e.postTurnstileEvent(o.tiles,n.map._requestManager._customAccessToken),n.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),n.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"}))),t&&t(a)}))}},{key:"loaded",value:function(){return this._loaded}},{key:"hasTile",value:function(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}},{key:"onAdd",value:function(e){this.map=e,this.load()}},{key:"setSourceProperty",value:function(e){var t=this;this._tileJSONRequest&&this._tileJSONRequest.cancel(),e(),this.load((function(){var e,n=t.map.style._getSourceCaches(t.id),r=f(n);try{for(r.s();!(e=r.n()).done;)e.value.clearTiles()}catch(i){r.e(i)}finally{r.f()}}))}},{key:"setTiles",value:function(e){var t=this;return this.setSourceProperty((function(){t._options.tiles=e})),this}},{key:"setUrl",value:function(e){var t=this;return this.setSourceProperty((function(){t.url=e,t._options.url=e})),this}},{key:"_setLanguage",value:function(e){var t=this;return e===this.language||this.setSourceProperty((function(){t.language=e})),this}},{key:"_setWorldview",value:function(e){var t=this;return e===this.worldview?this:this.worldviewOptions&&e&&!this.worldviewOptions[e]?(console.warn('Vector tile source "'.concat(this.id,'" does not support worldview "').concat(e,'".')),this):(this.setSourceProperty((function(){t.worldview=e})),this)}},{key:"onRemove",value:function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}},{key:"serialize",value:function(){return e.extend({},this._options)}},{key:"loadTile",value:function(t,n){var r=this,i=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme)),a={request:this.map._requestManager.transformRequest(i,e.ResourceType.Tile),data:void 0,uid:t.uid,tileID:t.tileID,tileZoom:t.tileZoom,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:e.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,isSymbolTile:t.isSymbolTile};if(a.request.collectResourceTiming=this._collectResourceTiming,t.actor&&"expired"!==t.state)"loading"===t.state?t.reloadCallback=n:t.request=t.actor.send("reloadTile",a,s.bind(this));else if(t.actor=this._tileWorkers[i]=this._tileWorkers[i]||this.dispatcher.getActor(),this.dispatcher.ready)t.request=t.actor.send("loadTile",a,s.bind(this),void 0,!0);else{var o=e.loadVectorTile.call({deduped:this._deduped},a,(function(e,n){e||!n?s.call(r,e):(a.data={cacheControl:n.cacheControl,expires:n.expires,rawData:n.rawData.slice(0)},t.actor&&t.actor.send("loadTile",a,s.bind(r),void 0,!0))}),!0);t.request={cancel:o}}function s(r,i){return delete t.request,t.aborted?n(null):r&&404!==r.status?n(r):(i&&i.resourceTiming&&(t.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&&i&&t.setExpiryData(i),t.loadVectorData(i,this.map.painter),e.cacheEntryPossiblyAdded(this.dispatcher),n(null),void(t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)))}}},{key:"abortTile",value:function(e){e.request&&(e.request.cancel(),delete e.request),e.actor&&e.actor.send("abortTile",{uid:e.uid,type:this.type,source:this.id})}},{key:"unloadTile",value:function(e){e.unloadVectorData(),e.actor&&e.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id})}},{key:"hasTransition",value:function(){return!1}},{key:"afterUpdate",value:function(){this._tileWorkers={}}}]),r}(e.Evented),raster:Ue,"raster-dem":function(t){h(r,t);var n=m(r);function r(t,i,a,o){var s;return g(this,r),(s=n.call(this,t,i,a,o)).type="raster-dem",s.maxzoom=22,s._options=e.extend({type:"raster-dem"},i),s.encoding=i.encoding||"mapbox",s}return v(r,[{key:"loadTile",value:function(t,n){var r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize);function i(e,r){e&&(t.state="errored",n(e)),r&&(t.dem=r,t.dem.onDeserialize(),t.needsHillshadePrepare=!0,t.needsDEMTextureUpload=!0,t.state="loaded",n(null))}t.request=e.getImage(this.map._requestManager.transformRequest(r,e.ResourceType.Tile),function(r,a,o,s){if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(r)t.state="errored",n(r);else if(a){this.map._refreshExpiredTiles&&t.setExpiryData({cacheControl:o,expires:s});var l=e.window.ImageBitmap&&a instanceof e.window.ImageBitmap&&(null==Q&&(Q=e.window.OffscreenCanvas&&new e.window.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof e.window.createImageBitmap),Q),u=1-(a.width-e.prevPowerOfTwo(a.width))/2;u<1||t.neighboringTiles||(t.neighboringTiles=this._getNeighboringTiles(t.tileID));var c=l?a:e.exported.getImageData(a,u),d={uid:t.uid,coord:t.tileID,source:this.id,rawImageData:c,encoding:this.encoding,padding:u};t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getActor(),t.actor.send("loadDEMTile",d,i.bind(this),void 0,!0))}}.bind(this))}},{key:"_getNeighboringTiles",value:function(t){var n=t.canonical,r=Math.pow(2,n.z),i=(n.x-1+r)%r,a=0===n.x?t.wrap-1:t.wrap,o=(n.x+1+r)%r,s=n.x+1===r?t.wrap+1:t.wrap,l={};return l[new e.OverscaledTileID(t.overscaledZ,a,n.z,i,n.y).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,s,n.z,o,n.y).key]={backfilled:!1},n.y>0&&(l[new e.OverscaledTileID(t.overscaledZ,a,n.z,i,n.y-1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,t.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,s,n.z,o,n.y-1).key]={backfilled:!1}),n.y+1n.end(0)?this.fire(new e.ErrorEvent(new e.ValidationError("sources.".concat(this.id),null,"Playback for this video can be set only between the ".concat(n.start(0)," and ").concat(n.end(0),"-second mark.")))):this.video.currentTime=t}}},{key:"getVideo",value:function(){return this.video}},{key:"onAdd",value:function(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}},{key:"prepare",value:function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var t=this.map.painter.context,n=t.gl;this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new e.Texture(t,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),this.width=this.video.videoWidth,this.height=this.video.videoHeight),this._prepareData(t)}}},{key:"serialize",value:function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}},{key:"hasTransition",value:function(){return this.video&&!this.video.paused}}]),r}(Ge),image:Ge,canvas:function(t){h(r,t);var n=m(r);function r(t,i,a,o){var s;return g(this,r),s=n.call(this,t,i,a,o),i.coordinates?Array.isArray(i.coordinates)&&4===i.coordinates.length&&!i.coordinates.some((function(e){return!Array.isArray(e)||2!==e.length||e.some((function(e){return"number"!=typeof e}))}))||s.fire(new e.ErrorEvent(new e.ValidationError("sources.".concat(t),null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):s.fire(new e.ErrorEvent(new e.ValidationError("sources.".concat(t),null,'missing required property "coordinates"'))),i.animate&&"boolean"!=typeof i.animate&&s.fire(new e.ErrorEvent(new e.ValidationError("sources.".concat(t),null,'optional "animate" property must be a boolean value'))),i.canvas?"string"==typeof i.canvas||i.canvas instanceof e.window.HTMLCanvasElement||s.fire(new e.ErrorEvent(new e.ValidationError("sources.".concat(t),null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):s.fire(new e.ErrorEvent(new e.ValidationError("sources.".concat(t),null,'missing required property "canvas"'))),s.options=i,s.animate=void 0===i.animate||i.animate,s}return v(r,[{key:"load",value:function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof e.window.HTMLCanvasElement?this.options.canvas:e.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new e.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}},{key:"getCanvas",value:function(){return this.canvas}},{key:"onAdd",value:function(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()}},{key:"onRemove",value:function(){this.pause()}},{key:"prepare",value:function(){var t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var n=this.map.painter.context;this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new e.Texture(n,this.canvas,n.gl.RGBA,{premultiply:!0}),this._prepareData(n)}}},{key:"serialize",value:function(){return{type:"canvas",coordinates:this.coordinates}}},{key:"hasTransition",value:function(){return this._playing}},{key:"_hasInvalidDimensions",value:function(){for(var e=0,t=[this.canvas.width,this.canvas.height];e7&&void 0!==arguments[7]&&arguments[7],l=e.tilesIn(r,o,s);l.sort(Xe);var u,c=[],d=f(l);try{for(d.s();!(u=d.n()).done;){var p=u.value;c.push({wrappedTileID:p.tile.tileID.wrapped().key,queryResults:p.tile.queryRenderedFeatures(t,n,e._state,p,i,a,He(e.transform,p.tile.tileID),s)})}}catch(g){d.e(g)}finally{d.f()}var h=function(e){var t,n={},r={},i=f(e);try{for(i.s();!(t=i.n()).done;){var a=t.value,o=a.queryResults,s=a.wrappedTileID,l=r[s]=r[s]||{};for(var u in o){var c,d=o[u],p=l[u]=l[u]||{},h=n[u]=n[u]||[],m=f(d);try{for(m.s();!(c=m.n()).done;){var v=c.value;p[v.featureIndex]||(p[v.featureIndex]=!0,h.push(v))}}catch(g){m.e(g)}finally{m.f()}}}}catch(g){i.e(g)}finally{i.f()}return n}(c);for(var m in h)h[m].forEach((function(t){var n=t.feature,r=n.layer;r&&"background"!==r.type&&"sky"!==r.type&&(n.source=r.source,r["source-layer"]&&(n.sourceLayer=r["source-layer"]),n.state=void 0!==n.id?e.getFeatureState(r["source-layer"],n.id):{})}));return h}function We(e,t){for(var n=e.getRenderableIds().map((function(t){return e.getTileByID(t)})),r=[],i={},a=0;a0?(i-o)/s:0;return this.points[a].mult(1-l).add(this.points[n].mult(l))}}]),t}(),ft=function(){function e(t,n,r){g(this,e);var i=this.boxCells=[],a=this.circleCells=[];this.xCellCount=Math.ceil(t/r),this.yCellCount=Math.ceil(n/r);for(var o=0;othis.width||r<0||t>this.height)return!i&&[];var o=[];if(e<=0&&t<=0&&this.width<=n&&this.height<=r){if(i)return!0;for(var s=0;s0:o}},{key:"_queryCircle",value:function(e,t,n,r,i){var a=e-n,o=e+n,s=t-n,l=t+n;if(o<0||a>this.width||l<0||s>this.height)return!r&&[];var u=[];return this._forEachCell(a,s,o,l,this._queryCellCircle,u,{hitTest:r,circle:{x:e,y:t,radius:n},seenUids:{box:{},circle:{}}},i),r?u.length>0:u}},{key:"query",value:function(e,t,n,r,i){return this._query(e,t,n,r,!1,i)}},{key:"hitTest",value:function(e,t,n,r,i){return this._query(e,t,n,r,!0,i)}},{key:"hitTestCircle",value:function(e,t,n,r){return this._queryCircle(e,t,n,!0,r)}},{key:"_queryCell",value:function(e,t,n,r,i,a,o,s){var l=o.seenUids,u=this.boxCells[i];if(null!==u){var c,d=this.bboxes,p=f(u);try{for(p.s();!(c=p.n()).done;){var h=c.value;if(!l.box[h]){l.box[h]=!0;var m=4*h;if(e<=d[m+2]&&t<=d[m+3]&&n>=d[m+0]&&r>=d[m+1]&&(!s||s(this.boxKeys[h]))){if(o.hitTest)return a.push(!0),!0;a.push({key:this.boxKeys[h],x1:d[m],y1:d[m+1],x2:d[m+2],y2:d[m+3]})}}}}catch(C){p.e(C)}finally{p.f()}}var g=this.circleCells[i];if(null!==g){var v,y=this.circles,_=f(g);try{for(_.s();!(v=_.n()).done;){var b=v.value;if(!l.circle[b]){l.circle[b]=!0;var x=3*b;if(this._circleAndRectCollide(y[x],y[x+1],y[x+2],e,t,n,r)&&(!s||s(this.circleKeys[b]))){if(o.hitTest)return a.push(!0),!0;var E=y[x],S=y[x+1],w=y[x+2];a.push({key:this.circleKeys[b],x1:E-w,y1:S-w,x2:E+w,y2:S+w})}}}}catch(C){_.e(C)}finally{_.f()}}}},{key:"_queryCellCircle",value:function(e,t,n,r,i,a,o,s){var l=o.circle,u=o.seenUids,c=this.boxCells[i];if(null!==c){var d,p=this.bboxes,h=f(c);try{for(h.s();!(d=h.n()).done;){var m=d.value;if(!u.box[m]){u.box[m]=!0;var g=4*m;if(this._circleAndRectCollide(l.x,l.y,l.radius,p[g+0],p[g+1],p[g+2],p[g+3])&&(!s||s(this.boxKeys[m])))return a.push(!0),!0}}}catch(S){h.e(S)}finally{h.f()}}var v=this.circleCells[i];if(null!==v){var y,_=this.circles,b=f(v);try{for(b.s();!(y=b.n()).done;){var x=y.value;if(!u.circle[x]){u.circle[x]=!0;var E=3*x;if(this._circlesCollide(_[E],_[E+1],_[E+2],l.x,l.y,l.radius)&&(!s||s(this.circleKeys[x])))return a.push(!0),!0}}}catch(S){b.e(S)}finally{b.f()}}}},{key:"_forEachCell",value:function(e,t,n,r,i,a,o,s){for(var l=this._convertToXCellCoord(e),u=this._convertToYCellCoord(t),c=this._convertToXCellCoord(n),d=this._convertToYCellCoord(r),f=l;f<=c;f++)for(var p=u;p<=d;p++)if(i.call(this,e,t,n,r,this.xCellCount*p+f,a,o,s))return}},{key:"_convertToXCellCoord",value:function(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}},{key:"_convertToYCellCoord",value:function(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}},{key:"_circlesCollide",value:function(e,t,n,r,i,a){var o=r-e,s=i-t,l=n+a;return l*l>o*o+s*s}},{key:"_circleAndRectCollide",value:function(e,t,n,r,i,a,o){var s=(a-r)/2,l=Math.abs(e-(r+s));if(l>s+n)return!1;var u=(o-i)/2,c=Math.abs(t-(i+u));if(c>u+n)return!1;if(l<=s||c<=u)return!0;var d=l-s,f=c-u;return d*d+f*f<=n*n}}]),e}(),pt=Math.tan(85*Math.PI/180);function ht(t,n,r,i,a,o,s){var l=e.create();if(r)if("globe"===o.name){var u=e.calculateGlobeLabelMatrix(a,n);e.multiply(l,l,u)}else{var c=I([],s);l[0]=c[0],l[1]=c[1],l[4]=c[2],l[5]=c[3],i||e.rotateZ(l,l,a.angle)}else e.multiply(l,a.labelPlaneMatrix,t);return l}function mt(e,t,n,r,i,a,o){var s=ht(e,t,n,r,i,a,o);return"globe"===a.name&&n||(s[2]=s[6]=s[10]=s[14]=0),s}function gt(t,n,r,i,a,o,s){if(r){if("globe"===o.name){var l=ht(t,n,r,i,a,o,s);return e.invert(l,l),e.multiply(l,t,l),l}var u=e.clone(t),c=e.identity([]);return c[0]=s[0],c[1]=s[1],c[4]=s[2],c[5]=s[3],e.multiply(u,u,c),i||e.rotateZ(u,u,-a.angle),u}return a.glCoordMatrix}function vt(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=[t.x,t.y,r,1];r?e.transformMat4$1(i,i,n):Ot(i,i,n);var a=i[3];return{point:[i[0]/a,i[1]/a,i[2]/a],signedDistanceFromCamera:a}}function yt(t,n){var r=[t[0],t[1],t[2],1];e.transformMat4$1(r,r,n);var i=r[3];return{point:[r[0]/i,r[1]/i,r[2]/i],signedDistanceFromCamera:i}}function _t(e,t){return Math.min(.5+e/t*.5,1.5)}function bt(e,t){var n=e[0]/e[3],r=e[1]/e[3];return n>=-t[0]&&n<=t[0]&&r>=-t[1]&&r<=t[1]}function xt(t,n,r,i,a,o,s,l,u,c){var d=r.transform,f=i?t.textSizeData:t.iconSizeData,p=e.evaluateSizeForZoom(f,r.transform.zoom),h="globe"===d.projection.name,m=[256/r.width*2+1,256/r.height*2+1],g=i?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;g.clear();var v=null;h&&(v=i?t.text.globeExtVertexArray:t.icon.globeExtVertexArray);for(var y=t.lineVertexArray,_=i?t.text.placedSymbolArray:t.icon.placedSymbolArray,b=r.transform.width/r.transform.height,x=!1,E=0;E<_.length;E++){var S=_.get(E);if(S.writingMode!==e.WritingMode.vertical||x||0!==E&&_.get(E-1).writingMode===e.WritingMode.horizontal||(x=!0),!S.hidden&&S.writingMode!==e.WritingMode.vertical||x){x=!1;var w=new e.pointGeometry(S.tileAnchorX,S.tileAnchorY),C=u?u(w):[0,0,0],T=d.projection.projectTilePoint(w.x,w.y,c.canonical),A=[T.x+C[0],T.y+C[1],T.z+C[2]],k=[].concat(A,[1]);if(e.transformMat4$1(k,k,n),bt(k,m)){var D=_t(r.transform.cameraToCenterDistance,k[3]),O=e.evaluateSizeForFeature(f,p,S),I=s?O/D:O*D,R=vt(new e.pointGeometry(A[0],A[1]),a,A[2]);if(R.signedDistanceFromCamera<=0)Dt(S.numGlyphs,g);else{var N={},M=s?null:u,P=wt(S,I,!1,l,n,a,o,t.glyphOffsetArray,y,g,v,R.point,w,N,b,M,d.projection,c,s);x=P.useVertical,M&&P.needsFlipping&&(N={}),(P.notEnoughRoom||x||P.needsFlipping&&wt(S,I,!0,l,n,a,o,t.glyphOffsetArray,y,g,v,R.point,w,N,b,M,d.projection,c,s).notEnoughRoom)&&Dt(S.numGlyphs,g)}}else Dt(S.numGlyphs,g)}else Dt(S.numGlyphs,g)}i?(t.text.dynamicLayoutVertexBuffer.updateData(g),v&&t.text.globeExtVertexBuffer.updateData(v)):(t.icon.dynamicLayoutVertexBuffer.updateData(g),v&&t.icon.globeExtVertexBuffer.updateData(v))}function Et(e,t,n,r,i,a,o,s,l,u,c,d,f,p,h,m){var g=s.glyphStartIndex+s.numGlyphs,v=s.lineStartIndex,y=s.lineStartIndex+s.lineLength,_=t.getoffsetX(s.glyphStartIndex),b=t.getoffsetX(g-1),x=At(e*_,n,r,i,a,o,s.segment,v,y,l,u,c,d,f,!0,p,h,m);if(!x)return null;var E=At(e*b,n,r,i,a,o,s.segment,v,y,l,u,c,d,f,!0,p,h,m);return E?{first:x,last:E}:null}function St(t,n,r,i){return t.writingMode===e.WritingMode.horizontal&&Math.abs(r.y-n.y)>Math.abs(r.x-n.x)*i?{useVertical:!0}:t.writingMode===e.WritingMode.vertical?n.ypt}(n,r,i)?1===t.flipState?{needsFlipping:!0}:null:n.x>r.x?{needsFlipping:!0}:null}function wt(t,n,r,i,a,o,s,l,u,c,d,p,h,m,g,v,y,_,b){var x,E=n/24,S=t.lineOffsetX*E,w=t.lineOffsetY*E;if(t.numGlyphs>1){var C=t.glyphStartIndex+t.numGlyphs,T=t.lineStartIndex,A=t.lineStartIndex+t.lineLength,k=Et(E,l,S,w,r,p,h,t,u,o,m,v,!1,y,_,b);if(!k)return{notEnoughRoom:!0};var D=yt(k.first.point,s).point,O=yt(k.last.point,s).point,I=new e.pointGeometry(D[0],D[1]),R=new e.pointGeometry(O[0],O[1]);if(i&&!r){var N=St(t,I,R,g);if(t.flipState=N&&N.needsFlipping?1:2,N)return N}x=[k.first];for(var M=t.glyphStartIndex+1;M0?B.point:Tt(h,F,P,1,a,void 0,y,_.canonical),z=St(t,new e.pointGeometry(P[0],P[1]),new e.pointGeometry(Z[0],Z[1]),g);if(t.flipState=z&&z.needsFlipping?1:2,z)return z}var U=At(E*l.getoffsetX(t.glyphStartIndex),S,w,r,p,h,t.segment,t.lineStartIndex,t.lineStartIndex+t.lineLength,u,o,m,v,!1,!1,y,_,b);if(!U)return{notEnoughRoom:!0};x=[U]}if(d){var j,G=f(x);try{for(G.s();!(j=G.n()).done;){var V=j.value;e.updateGlobeVertexNormal(d,c.length+0,V.up[0],V.up[1],V.up[2]),e.updateGlobeVertexNormal(d,c.length+1,V.up[0],V.up[1],V.up[2]),e.updateGlobeVertexNormal(d,c.length+2,V.up[0],V.up[1],V.up[2]),e.updateGlobeVertexNormal(d,c.length+3,V.up[0],V.up[1],V.up[2]),e.addDynamicAttributes(c,V.point[0],V.point[1],V.point[2],V.angle)}}catch(W){G.e(W)}finally{G.f()}}else{var q,H=f(x);try{for(H.s();!(q=H.n()).done;){var Y=q.value;e.addDynamicAttributes(c,Y.point[0],Y.point[1],Y.point[2],Y.angle)}}catch(W){H.e(W)}finally{H.f()}}return{}}function Ct(t,n,r,i,a){var o=i.projectTilePoint(t.x,t.y,n);if(!a)return vt(o,r,o.z);var s=a(t);return vt(new e.pointGeometry(o.x+s[0],o.y+s[1]),r,o.z+s[2])}function Tt(t,n,r,i,a,o,s,l){var u=Ct(t.add(t.sub(n)._unit()),l,a,s,o).point,c=e.sub([],r,u);return e.scaleAndAdd([],r,c,i/e.length(c))}function At(t,n,r,i,a,o,s,l,u,c,d,f,p,h,m,g,v,y){var _=i?t-n:t+n,b=_>0?1:-1,x=0;i&&(b*=-1,x=Math.PI),b<0&&(x+=Math.PI);for(var E=b>0?l+s:l+s+1,S=a,w=a,C=0,T=0,A=Math.abs(_),k=[],D=[],O=o,I=function(){var t=E-b;return 0===C?o:new e.pointGeometry(c.getx(t),c.gety(t))},R=function(){return Tt(I(),O,w,A-C+1,d,p,g,v.canonical)};C+T<=A;){if((E+=b)=u)return null;if(w=S,k.push(S),h&&D.push(O||I()),void 0===(S=f[E])){var N=Ct(O=new e.pointGeometry(c.getx(E),c.gety(E)),v.canonical,d,g,p);S=N.signedDistanceFromCamera>0?f[E]=N.point:R()}else O=null;C+=T,T=e.distance(w,S)}O=O||new e.pointGeometry(c.getx(E),c.gety(E));var M=I();m&&p&&(f[E]=S=void 0===f[E]?S:R(),T=e.distance(w,S));var P=(A-C)/T,L=O.sub(M).mult(P)._add(M),F=e.sub([],S,w),B=e.scaleAndAdd([],w,F,P),Z=[0,0,1],z=F[0],U=F[1];if(y&&(0!==(Z=g.upVector(v.canonical,L.x,L.y))[0]||0!==Z[1]||1!==Z[2])){var j=[1,0,0],G=[0,1,0];j[0]=Z[2],j[1]=0,j[2]=-Z[0],e.cross(G,Z,j),e.normalize(j,j),e.normalize(G,G),z=e.dot(F,j),U=e.dot(F,G)}if(r){var V=e.cross([],Z,F);e.normalize(V,V),e.scaleAndAdd(B,B,V,r*b)}var q=x+Math.atan2(U,z);return k.push(B),h&&D.push(L),{point:B,angle:q,path:k,tilePath:D,up:Z}}var kt=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Dt(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:new ft(e.width+200,e.height+200,25),i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new ft(e.width+200,e.height+200,25);g(this,t),this.transform=e,this.grid=r,this.ignoredGrid=i,this.pitchfactor=Math.cos(e._pitch)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+It,this.screenBottomBoundary=e.height+It,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200,this.fogState=n}return v(t,[{key:"placeCollisionBox",value:function(e,t,n,r,i,a,o,s){var l=n.projectedAnchorX,u=n.projectedAnchorY,c=n.projectedAnchorZ,d=n.elevation,f=n.tileID;if(d&&f){var p=e.getProjection().upVector(f.canonical,n.tileAnchorX,n.tileAnchorY),h=e.getProjection().upVectorScale(f.canonical,this.transform.center.lat,this.transform.worldSize).metersToTile;l+=p[0]*d*h,u+=p[1]*d*h,c+=p[2]*d*h}var m=this.projectAndGetPerspectiveRatio(o,[l,u,c],n.tileID,"globe"===e.projection.name||!!d||this.transform.pitch>0,e.getProjection()),g=a*m.perspectiveRatio,v=(n.x1*t+r.x-n.padding)*g+m.point.x,y=(n.y1*t+r.y-n.padding)*g+m.point.y,_=(n.x2*t+r.x+n.padding)*g+m.point.x,b=(n.y2*t+r.y+n.padding)*g+m.point.y,x=m.perspectiveRatio<=.55||m.occluded;return!this.isInsideGrid(v,y,_,b)||!i&&this.grid.hitTest(v,y,_,b,s)||x?{box:[],offscreen:!1,occluded:m.occluded}:{box:[v,y,_,b],offscreen:this.isOffscreen(v,y,_,b),occluded:!1}}},{key:"placeCollisionCircles",value:function(t,n,r,i,a,o,s,l,u,c,d,p,h,m,g){var v=[],y=this.transform.elevation,_=y?y.getAtTileOffsetFunc(g,this.transform.center.lat,this.transform.worldSize,t.getProjection()):function(e){return[0,0,0]},b=new e.pointGeometry(r.tileAnchorX,r.tileAnchorY),x=t.getProjection().projectTilePoint(r.tileAnchorX,r.tileAnchorY,g.canonical),E=_(b),S=[x.x+E[0],x.y+E[1],x.z+E[2]],w="globe"===t.projection.name,C=this.projectAndGetPerspectiveRatio(s,[S[0],S[1],S[2]],g,w||!!y||this.transform.pitch>0,t.getProjection()),T=C.perspectiveRatio,A=(d?o/T:o*T)/e.ONE_EM,k=vt(new e.pointGeometry(S[0],S[1]),l,S[2]).point,D=C.signedDistanceFromCamera>0?Et(A,a,r.lineOffsetX*A,r.lineOffsetY*A,!1,k,b,r,i,l,{},y&&!d?_:null,d&&!!y,t.getProjection(),g,d):null,O=!1,I=!1,R=!0;if(D&&!C.occluded){for(var N=.5*h*T+m,M=new e.pointGeometry(-100,-100),P=new e.pointGeometry(this.screenRightBoundary,this.screenBottomBoundary),L=new dt,F=D.first,B=D.last,Z=[],z=F.path.length-1;z>=1;z--)Z.push(F.path[z]);for(var U=1;U0){for(var q=Z.map((function(t){return new e.pointGeometry(t[0],t[1])})),H=1/0,Y=-1/0,W=1/0,X=-1/0,K=0;K=M.x&&Y<=P.x&&W>=M.y&&X<=P.y?[q]:YP.x||XP.y?[]:e.clipLine([q],M.x,M.y,P.x,P.y)}var $,Q=f(V);try{for(Q.s();!($=Q.n()).done;){var J=$.value;L.reset(J,.25*N);var ee=0;ee=L.length<=.5*N?1:Math.ceil(L.paddedLength/j)+1;for(var te=0;te0){e.transformMat4$1(o,o,t);var l="globe"===a.name;this.fogState&&r&&!l&&(s=function(t,n,r,i,a,o){var s=o.calculateFogTileMatrix(a),l=[n,r,i];return e.transformMat4(l,l,s),z(t,l,o.pitch,o._fov)}(this.fogState,n[0],n[1],n[2],r.toUnwrapped(),this.transform)>.9)}else Ot(o,o,t);return{point:new e.pointGeometry((o[0]/o[3]+1)/2*this.transform.width+It,(-o[1]/o[3]+1)/2*this.transform.height+It),perspectiveRatio:Math.min(.5+this.transform.getCameraToCenterDistance(a)/o[3]*.5,1.5),signedDistanceFromCamera:o[3],occluded:i&&o[2]>o[3]||s}}},{key:"isOffscreen",value:function(e,t,n,r){return n=this.screenRightBoundary||rthis.screenBottomBoundary}},{key:"isInsideGrid",value:function(e,t,n,r){return n>=0&&e=0&&t5&&void 0!==arguments[5]&&arguments[5];g(this,e),this.text=new Lt(t?t.text:null,n,r,a),this.icon=new Lt(t?t.icon:null,n,i,a),this.clipped=o}return v(e,[{key:"isHidden",value:function(){return this.text.isHidden()&&this.icon.isHidden()}}]),e}(),Bt=v((function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];g(this,e),this.text=t,this.icon=n,this.skipFade=r,this.clipped=i})),Zt=v((function t(){g(this,t),this.invProjMatrix=e.create(),this.viewportMatrix=e.create(),this.circles=[]})),zt=v((function e(t,n,r,i,a){g(this,e),this.bucketInstanceId=t,this.featureIndex=n,this.sourceLayerIndex=r,this.bucketIndex=i,this.tileID=a})),Ut=function(){function e(t){g(this,e),this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}}return v(e,[{key:"get",value:function(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){var t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:function(e){return e.collisionGroupID===t}}}return this.collisionGroups[e]}}]),e}();function jt(t,n,r,i,a){var o=e.getAnchorAlignment(t),s=-(o.horizontalAlign-.5)*n,l=-(o.verticalAlign-.5)*r,u=e.evaluateVariableOffset(t,i);return new e.pointGeometry(s+u[0]*a,l+u[1]*a)}function Gt(t,n,r,i,a){var o=new e.pointGeometry(t,n);return r&&o._rotate(i?a:-a),o}var Vt=function(){function t(e,n,r,i,a){g(this,t),this.transform=e.clone(),this.projection=e.projection.name,this.collisionIndex=new Rt(this.transform,a),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=n,this.retainedQueryData={},this.collisionGroups=new Ut(r),this.collisionCircleArrays={},this.prevPlacement=i,i&&(i.prevPlacement=void 0),this.placedOrientations={}}return v(t,[{key:"getBucketParts",value:function(t,n,r,i){var a=r.getBucket(n),o=r.latestFeatureIndex;if(a&&o&&n.id===a.layerIds[0]){var s=a.layers[0].layout,l=r.collisionBoxArray,u=Math.pow(2,this.transform.zoom-r.tileID.overscaledZ),c=r.tileSize/e.EXTENT,d=r.tileID.toUnwrapped();this.transform.setProjection(a.projection);var p,h,m,g=(p=r.tileID,h=a.getProjection(),m=this.transform,h.name===this.projection?m.calculateProjMatrix(p.toUnwrapped()):Nt(m,h,p)),v="map"===s.get("text-pitch-alignment"),y="map"===s.get("text-rotation-alignment");n.compileFilter();var _=n.dynamicFilter(),b=n.dynamicFilterNeedsFeature(),x=this.transform.calculatePixelsToTileUnitsMatrix(r),E=mt(g,r.tileID.canonical,v,y,this.transform,a.getProjection(),x),S=null;if(v){var w=gt(g,r.tileID.canonical,v,y,this.transform,a.getProjection(),x);S=e.multiply([],this.transform.labelPlaneMatrix,w)}var C=null;_&&r.latestFeatureIndex&&(C={unwrappedTileID:d,dynamicFilter:_,dynamicFilterNeedsFeature:b,featureIndex:r.latestFeatureIndex}),this.retainedQueryData[a.bucketInstanceId]=new zt(a.bucketInstanceId,o,a.sourceLayerIndex,a.index,r.tileID);var T={bucket:a,layout:s,posMatrix:g,textLabelPlaneMatrix:E,labelToScreenMatrix:S,clippingData:C,scale:u,textPixelRatio:c,holdingForFade:r.holdingForFade(),collisionBoxArray:l,partiallyEvaluatedTextSize:e.evaluateSizeForZoom(a.textSizeData,this.transform.zoom),partiallyEvaluatedIconSize:e.evaluateSizeForZoom(a.iconSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(a.sourceID)};if(i){var A,k=f(a.sortKeyRanges);try{for(k.s();!(A=k.n()).done;){var D=A.value,O=D.sortKey,I=D.symbolInstanceStart,R=D.symbolInstanceEnd;t.push({sortKey:O,symbolInstanceStart:I,symbolInstanceEnd:R,parameters:T})}}catch(N){k.e(N)}finally{k.f()}}else t.push({symbolInstanceStart:0,symbolInstanceEnd:a.symbolInstances.length,parameters:T})}}},{key:"attemptAnchorPlacement",value:function(e,t,n,r,i,a,o,s,l,u,c,d,f,p,h,m,g,v){var y,_=[d.textOffset0,d.textOffset1],b=jt(e,n,r,_,i),x=this.collisionIndex.placeCollisionBox(p,i,t,Gt(b.x,b.y,a,o,this.transform.angle),c,s,l,u.predicate);if((!m||0!==this.collisionIndex.placeCollisionBox(p,p.getSymbolInstanceIconSize(v,this.transform.zoom,f),m,Gt(b.x,b.y,a,o,this.transform.angle),c,s,l,u.predicate).box.length)&&x.box.length>0)return this.prevPlacement&&this.prevPlacement.variableOffsets[d.crossTileID]&&this.prevPlacement.placements[d.crossTileID]&&this.prevPlacement.placements[d.crossTileID].text&&(y=this.prevPlacement.variableOffsets[d.crossTileID].anchor),this.variableOffsets[d.crossTileID]={textOffset:_,width:n,height:r,anchor:e,textScale:i,prevAnchor:y},this.markUsedJustification(p,e,d,h),p.allowVerticalPlacement&&(this.markUsedOrientation(p,h,d),this.placedOrientations[d.crossTileID]=h),{shift:b,placedGlyphBoxes:x}}},{key:"placeLayerBucketPart",value:function(t,n,r,i){var a=this,o=t.parameters,s=o.bucket,l=o.layout,u=o.posMatrix,c=o.textLabelPlaneMatrix,d=o.labelToScreenMatrix,p=o.clippingData,h=o.textPixelRatio,m=o.holdingForFade,g=o.collisionBoxArray,v=o.partiallyEvaluatedTextSize,y=o.partiallyEvaluatedIconSize,_=o.collisionGroup,b=l.get("text-optional"),x=l.get("icon-optional"),E=l.get("text-allow-overlap"),S=l.get("icon-allow-overlap"),w="map"===l.get("text-rotation-alignment"),C="map"===l.get("text-pitch-alignment"),T="none"!==l.get("icon-text-fit"),A="viewport-y"===l.get("symbol-z-order");this.transform.setProjection(s.projection);var k=E&&(S||!s.hasIconData()||x),D=S&&(E||!s.hasTextData()||b);!s.collisionArrays&&g&&s.deserializeCollisionBoxes(g),r&&i&&s.updateCollisionDebugBuffers(this.transform.zoom,g);var O=function(t,i,o){if(p){var g={zoom:a.transform.zoom,pitch:a.transform.pitch},A=null;if(p.dynamicFilterNeedsFeature){var O=a.retainedQueryData[s.bucketInstanceId];A=p.featureIndex.loadFeature({featureIndex:t.featureIndex,bucketIndex:O.bucketIndex,sourceLayerIndex:O.sourceLayerIndex,layoutVertexArrayOffset:0})}if(!(0,p.dynamicFilter)(g,A,a.retainedQueryData[s.bucketInstanceId].tileID.canonical,new e.pointGeometry(t.tileAnchorX,t.tileAnchorY),a.transform.calculateDistanceTileData(p.unwrappedTileID)))return a.placements[t.crossTileID]=new Bt(!1,!1,!1,!0),void(n[t.crossTileID]=!0)}if(!n[t.crossTileID])if(m)a.placements[t.crossTileID]=new Bt(!1,!1,!1);else{var I=!1,R=!1,N=!0,M=!1,P=!1,L=null,F={box:null,offscreen:null,occluded:null},B={box:null,offscreen:null,occluded:null},Z=null,z=null,U=null,j=0,G=0,V=0;o.textFeatureIndex?j=o.textFeatureIndex:t.useRuntimeCollisionCircles&&(j=t.featureIndex),o.verticalTextFeatureIndex&&(G=o.verticalTextFeatureIndex);var q=function(e){e.tileID=a.retainedQueryData[s.bucketInstanceId].tileID,(a.transform.elevation||e.elevation)&&(e.elevation=a.transform.elevation?a.transform.elevation.getAtTileOffset(a.retainedQueryData[s.bucketInstanceId].tileID,e.tileAnchorX,e.tileAnchorY):0)},H=o.textBox;if(H){q(H);var Y=function(n){var r=e.WritingMode.horizontal;if(s.allowVerticalPlacement&&!n&&a.prevPlacement){var i=a.prevPlacement.placedOrientations[t.crossTileID];i&&(a.placedOrientations[t.crossTileID]=i,r=i,a.markUsedOrientation(s,r,t))}return r},W=function(n,r){if(s.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&o.verticalTextBox){var i,a=f(s.writingModes);try{for(a.s();!(i=a.n()).done&&(i.value===e.WritingMode.vertical?(F=r(),B=F):F=n(),!(F&&F.box&&F.box.length)););}catch(l){a.e(l)}finally{a.f()}}else F=n()};if(l.get("text-variable-anchor")){var X=l.get("text-variable-anchor");if(a.prevPlacement&&a.prevPlacement.variableOffsets[t.crossTileID]){var K=a.prevPlacement.variableOffsets[t.crossTileID];X.indexOf(K.anchor)>0&&(X=X.filter((function(e){return e!==K.anchor})),X.unshift(K.anchor))}var $=function(e,n,r){var o=s.getSymbolInstanceTextSize(v,t,a.transform.zoom,i),l=(e.x2-e.x1)*o+2*e.padding,c=(e.y2-e.y1)*o+2*e.padding,d=T&&!S?n:null;d&&q(d);for(var f={box:[],offscreen:!1,occluded:!1},p=E?2*X.length:X.length,m=0;m=X.length,t,i,s,r,d,v,y);if(g&&(f=g.placedGlyphBoxes)&&f.box&&f.box.length){I=!0,L=g.shift;break}}return f};W((function(){return $(H,o.iconBox,e.WritingMode.horizontal)}),(function(){var n=o.verticalTextBox;return n&&q(n),s.allowVerticalPlacement&&!(F&&F.box&&F.box.length)&&t.numVerticalGlyphVertices>0&&n?$(n,o.verticalIconBox,e.WritingMode.vertical):{box:null,offscreen:null,occluded:null}})),F&&(I=F.box,N=F.offscreen,M=F.occluded);var Q=Y(F&&F.box);if(!I&&a.prevPlacement){var J=a.prevPlacement.variableOffsets[t.crossTileID];J&&(a.variableOffsets[t.crossTileID]=J,a.markUsedJustification(s,J.anchor,t,Q))}}else{var ee=function(n,r){var o=s.getSymbolInstanceTextSize(v,t,a.transform.zoom,i),l=a.collisionIndex.placeCollisionBox(s,o,n,new e.pointGeometry(0,0),E,h,u,_.predicate);return l&&l.box&&l.box.length&&(a.markUsedOrientation(s,r,t),a.placedOrientations[t.crossTileID]=r),l};W((function(){return ee(H,e.WritingMode.horizontal)}),(function(){var n=o.verticalTextBox;return s.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&n?(q(n),ee(n,e.WritingMode.vertical)):{box:null,offscreen:null,occluded:null}})),Y(F&&F.box&&F.box.length)}}if(I=(Z=F)&&Z.box&&Z.box.length>0,N=Z&&Z.offscreen,M=Z&&Z.occluded,t.useRuntimeCollisionCircles){var te=s.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex>=0?t.centerJustifiedTextSymbolIndex:t.verticalPlacedTextSymbolIndex),ne=e.evaluateSizeForFeature(s.textSizeData,v,te),re=l.get("text-padding");z=a.collisionIndex.placeCollisionCircles(s,E,te,s.lineVertexArray,s.glyphOffsetArray,ne,u,c,d,r,C,_.predicate,t.collisionCircleDiameter*ne/e.ONE_EM,re,a.retainedQueryData[s.bucketInstanceId].tileID),I=E||z.circles.length>0&&!z.collisionDetected,N=N&&z.offscreen,M=z.occluded}if(o.iconFeatureIndex&&(V=o.iconFeatureIndex),o.iconBox){var ie=function(t){q(t);var n=T&&L?Gt(L.x,L.y,w,C,a.transform.angle):new e.pointGeometry(0,0),r=s.getSymbolInstanceIconSize(y,a.transform.zoom,i);return a.collisionIndex.placeCollisionBox(s,r,t,n,S,h,u,_.predicate)};R=B&&B.box&&B.box.length&&o.verticalIconBox?(U=ie(o.verticalIconBox)).box.length>0:(U=ie(o.iconBox)).box.length>0,N=N&&U.offscreen,P=U.occluded}var ae=b||0===t.numHorizontalGlyphVertices&&0===t.numVerticalGlyphVertices,oe=x||0===t.numIconVertices;if(ae||oe?oe?ae||(R=R&&I):I=R&&I:R=I=R&&I,I&&Z&&Z.box&&a.collisionIndex.insertCollisionBox(Z.box,l.get("text-ignore-placement"),s.bucketInstanceId,B&&B.box&&G?G:j,_.ID),R&&U&&a.collisionIndex.insertCollisionBox(U.box,l.get("icon-ignore-placement"),s.bucketInstanceId,V,_.ID),z&&(I&&a.collisionIndex.insertCollisionCircles(z.circles,l.get("text-ignore-placement"),s.bucketInstanceId,j,_.ID),r)){var se=s.bucketInstanceId,le=a.collisionCircleArrays[se];void 0===le&&(le=a.collisionCircleArrays[se]=new Zt);for(var ue=0;ue=0;--R){var N=I[R];O(s.symbolInstances.get(N),N,s.collisionArrays[N])}else for(var M=t.symbolInstanceStart;M=0&&(t.text.placedSymbolArray.get(l).crossTileID=a>=0&&l!==a?0:r.crossTileID)}}},{key:"markUsedOrientation",value:function(t,n,r){for(var i=n===e.WritingMode.horizontal||n===e.WritingMode.horizontalOnly?n:0,a=n===e.WritingMode.vertical?n:0,o=0,s=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];o0||u>0,b=a.numIconVertices>0,x=i.placedOrientations[a.crossTileID],E=x===e.WritingMode.vertical,S=x===e.WritingMode.horizontal||x===e.WritingMode.horizontalOnly;if(!_&&!b||y.isHidden()||g++,_){var w=Jt(y.text);m(t.text,l,E?en:w),m(t.text,u,S?en:w);var C=y.text.isHidden();[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((function(e){e>=0&&(t.text.placedSymbolArray.get(e).hidden=C||E?1:0)})),a.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).hidden=C||S?1:0);var T=i.variableOffsets[a.crossTileID];T&&i.markUsedJustification(t,T.anchor,a,x);var A=i.placedOrientations[a.crossTileID];A&&(i.markUsedJustification(t,"left",a,A),i.markUsedOrientation(t,A,a))}if(b){var k=Jt(y.icon);a.placedIconSymbolIndex>=0&&(m(t.icon,a.numIconVertices,E?en:k),t.icon.placedSymbolArray.get(a.placedIconSymbolIndex).hidden=y.icon.isHidden()),a.verticalPlacedIconSymbolIndex>=0&&(m(t.icon,a.numVerticalIconVertices,S?en:k),t.icon.placedSymbolArray.get(a.verticalPlacedIconSymbolIndex).hidden=y.icon.isHidden())}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){var D=t.collisionArrays[r];if(D){var O=new e.pointGeometry(0,0),I=!0;if(D.textBox||D.verticalTextBox){if(c){var R=i.variableOffsets[v];R?(O=jt(R.anchor,R.width,R.height,R.textOffset,R.textScale),d&&O._rotate(f?i.transform.angle:-i.transform.angle)):I=!1}o&&(I=!y.clipped),D.textBox&&qt(t.textCollisionBox.collisionVertexArray,y.text.placed,!I||E,O.x,O.y),D.verticalTextBox&&qt(t.textCollisionBox.collisionVertexArray,y.text.placed,!I||S,O.x,O.y)}var N=I&&Boolean(!S&&D.verticalIconBox);D.iconBox&&qt(t.iconCollisionBox.collisionVertexArray,y.icon.placed,N,p?O.x:0,p?O.y:0),D.verticalIconBox&&qt(t.iconCollisionBox.collisionVertexArray,y.icon.placed,!N,p?O.x:0,p?O.y:0)}}},y=0;ye}},{key:"setStale",value:function(){this.stale=!0}}]),t}();function qt(e,t,n,r,i){e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0)}var Ht=Math.pow(2,25),Yt=Math.pow(2,24),Wt=Math.pow(2,17),Xt=Math.pow(2,16),Kt=Math.pow(2,9),$t=Math.pow(2,8),Qt=Math.pow(2,1);function Jt(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 4294967295;var t=e.placed?1:0,n=Math.floor(127*e.opacity);return n*Ht+t*Yt+n*Wt+t*Xt+n*Kt+t*$t+n*Qt+t}var en=0,tn=function(){function e(t){g(this,e),this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&void 0!==t.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}return v(e,[{key:"continuePlacement",value:function(e,t,n,r,i){for(var a=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var s=n[t[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if("symbol"===s.type&&(!s.minzoom||s.minzoom<=l)&&(!s.maxzoom||s.maxzoom>l)){if(this._inProgressLayer||(this._inProgressLayer=new tn(s)),this._inProgressLayer.continuePlacement(r[s.source],this.placement,this._showCollisionBoxes,s,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}},{key:"commit",value:function(e){return this.placement.commit(e),this.placement}}]),t}(),rn=512/e.EXTENT/2,an=function(){function t(e,n,r){g(this,t),this.tileID=e,this.indexedSymbolInstances={},this.bucketInstanceId=r;for(var i=0;ie.overscaledZ)for(var s in o){var l=o[s];l.tileID.isChildOf(e)&&l.findMatches(t.symbolInstances,e,i)}else{var u=o[e.scaledTo(Number(a)).key];u&&u.findMatches(t.symbolInstances,e,i)}}for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:{};g(this,a),(n=r.call(this)).map=t,n.dispatcher=new q(et(),i(n)),n.imageManager=new N,n.imageManager.setEventedParent(i(n)),n.glyphManager=new e.GlyphManager(t._requestManager,o.localFontFamily?e.LocalGlyphMode.all:o.localIdeographFontFamily?e.LocalGlyphMode.ideographs:e.LocalGlyphMode.none,o.localFontFamily||o.localIdeographFontFamily),n.lineAtlas=new e.LineAtlas(256,512),n.crossTileSymbolIndex=new ln,n._layers={},n._num3DLayers=0,n._numSymbolLayers=0,n._numCircleLayers=0,n._serializedLayers={},n._sourceCaches={},n._otherSourceCaches={},n._symbolSourceCaches={},n.zoomHistory=new e.ZoomHistory,n._loaded=!1,n._availableImages=[],n._order=[],n._drapedFirstOrder=[],n._markersNeedUpdate=!1,n._resetUpdates(),n.dispatcher.broadcast("setReferrer",e.getReferrer());var s=i(n);return n._rtlTextPluginCallback=a.registerForPluginStateChange((function(t){s.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:t.pluginStatus,pluginURL:t.pluginURL},(function(t,n){if(e.triggerPluginCompletionEvent(t),n&&n.every((function(e){return e})))for(var r in s._sourceCaches){var i=s._sourceCaches[r],a=i.getSource().type;"vector"!==a&&"geojson"!==a||i.reload()}}))})),n.on("data",(function(e){if("source"===e.dataType&&"metadata"===e.sourceDataType){var t=n.getSource(e.sourceId);if(t&&t.vectorLayerIds)for(var r in n._layers){var i=n._layers[r];i.source===t.id&&n._validateLayer(i)}}})),n}return v(a,[{key:"loadURL",value:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.fire(new e.Event("dataloading",{dataType:"style"}));var i="boolean"==typeof r.validate?r.validate:!e.isMapboxURL(t);t=this.map._requestManager.normalizeStyleURL(t,r.accessToken);var a=this.map._requestManager.transformRequest(t,e.ResourceType.Style);this._request=e.getJSON(a,(function(t,r){n._request=null,t?n.fire(new e.ErrorEvent(t)):r&&n._load(r,i)}))}},{key:"loadJSON",value:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.fire(new e.Event("dataloading",{dataType:"style"})),this._request=e.exported.frame((function(){n._request=null,n._load(t,!1!==r.validate)}))}},{key:"loadEmpty",value:function(){this.fire(new e.Event("dataloading",{dataType:"style"})),this._load(fn,!1)}},{key:"_updateLayerCount",value:function(e,t){var n=t?1:-1;e.is3D()&&(this._num3DLayers+=n),"circle"===e.type&&(this._numCircleLayers+=n),"symbol"===e.type&&(this._numSymbolLayers+=n)}},{key:"_load",value:function(t,n){if(!n||!un(this,e.validateStyle(t))){for(var r in this._loaded=!0,this.stylesheet=e.clone$1(t),this._updateMapProjection(),t.sources)this.addSource(r,t.sources[r],{validate:!1});this._changed=!1,t.sprite?this._loadSprite(t.sprite):(this.imageManager.setLoaded(!0),this.dispatcher.broadcast("spriteLoaded",!0)),this.glyphManager.setURL(t.glyphs);var i=nt(this.stylesheet.layers);this._order=i.map((function(e){return e.id})),this._layers={},this._serializedLayers={};var a,o=f(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;(s=e.createStyleLayer(s)).setEventedParent(this,{layer:{id:s.id}}),this._layers[s.id]=s,this._serializedLayers[s.id]=s.serialize(),this._updateLayerCount(s,!0)}}catch(l){o.e(l)}finally{o.f()}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new L(this.stylesheet.light),this.stylesheet.terrain&&!this.terrainSetForDrapingOnly()&&this._createTerrain(this.stylesheet.terrain,1),this.stylesheet.fog&&this._createFog(this.stylesheet.fog),this._updateDrapeFirstLayers(),this.fire(new e.Event("data",{dataType:"style"})),this.fire(new e.Event("style.load"))}}},{key:"terrainSetForDrapingOnly",value:function(){return!!this.terrain&&0===this.terrain.drapeRenderMode}},{key:"setProjection",value:function(e){e?this.stylesheet.projection=e:delete this.stylesheet.projection,this._updateMapProjection()}},{key:"applyProjectionUpdate",value:function(){this._loaded&&(this.dispatcher.broadcast("setProjection",this.map.transform.projectionOptions),this.map.transform.projection.requiresDraping?this.getTerrain()||this.stylesheet.terrain||this.setTerrainForDraping():this.terrainSetForDrapingOnly()&&this.setTerrain(null))}},{key:"_updateMapProjection",value:function(){this.map._useExplicitProjection?this.applyProjectionUpdate():this.map._prioritizeAndUpdateProjection(null,this.stylesheet.projection)}},{key:"_loadSprite",value:function(t){var n=this;this._spriteRequest=function(t,n,r){var i,a,o,s=e.exported.devicePixelRatio>1?"@2x":"",l=e.getJSON(n.transformRequest(n.normalizeSpriteURL(t,s,".json"),e.ResourceType.SpriteJSON),(function(e,t){l=null,o||(o=e,i=t,c())})),u=e.getImage(n.transformRequest(n.normalizeSpriteURL(t,s,".png"),e.ResourceType.SpriteImage),(function(e,t){u=null,o||(o=e,a=t,c())}));function c(){if(o)r(o);else if(i&&a){var t=e.exported.getImageData(a),n={};for(var s in i){var l=i[s],u=l.width,c=l.height,d=l.x,f=l.y,p=l.sdf,h=l.pixelRatio,m=l.stretchX,g=l.stretchY,v=l.content,y=new e.RGBAImage({width:u,height:c});e.RGBAImage.copy(t,y,{x:d,y:f},{x:0,y:0},{width:u,height:c}),n[s]={data:y,pixelRatio:h,sdf:p,stretchX:m,stretchY:g,content:v}}r(null,n)}}return{cancel:function(){l&&(l.cancel(),l=null),u&&(u.cancel(),u=null)}}}(t,this.map._requestManager,(function(t,r){if(n._spriteRequest=null,t)n.fire(new e.ErrorEvent(t));else if(r)for(var i in r)n.imageManager.addImage(i,r[i]);n.imageManager.setLoaded(!0),n._availableImages=n.imageManager.listImages(),n.dispatcher.broadcast("setImages",n._availableImages),n.dispatcher.broadcast("spriteLoaded",!0),n.fire(new e.Event("data",{dataType:"style"}))}))}},{key:"_validateLayer",value:function(t){var n=this.getSource(t.source);if(n){var r=t.sourceLayer;r&&("geojson"===n.type||n.vectorLayerIds&&-1===n.vectorLayerIds.indexOf(r))&&this.fire(new e.ErrorEvent(new Error('Source layer "'.concat(r,'" does not exist on source "').concat(n.id,'" as specified by style layer "').concat(t.id,'"'))))}}},{key:"loaded",value:function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var e in this._sourceCaches)if(!this._sourceCaches[e].loaded())return!1;return!!this.imageManager.isLoaded()}},{key:"_serializeLayers",value:function(e){var t,n=[],r=f(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,a=this._layers[i];"custom"!==a.type&&n.push(a.serialize())}}catch(o){r.e(o)}finally{r.f()}return n}},{key:"hasTransitions",value:function(){if(this.light&&this.light.hasTransition())return!0;if(this.fog&&this.fog.hasTransition())return!0;for(var e in this._sourceCaches)if(this._sourceCaches[e].hasTransition())return!0;for(var t in this._layers)if(this._layers[t].hasTransition())return!0;return!1}},{key:"order",get:function(){return this.map._optimizeForTerrain&&this.terrain?this._drapedFirstOrder:this._order}},{key:"isLayerDraped",value:function(e){return!!this.terrain&&pn[e.type]}},{key:"_checkLoaded",value:function(){if(!this._loaded)throw new Error("Style is not done loading")}},{key:"update",value:function(t){if(this._loaded){var n=this._changed;if(this._changed){var r=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);for(var a in(r.length||i.length)&&this._updateWorkerLayers(r,i),this._updatedSources){var o=this._updatedSources[a];"reload"===o?this._reloadSource(a):"clear"===o&&this._clearSource(a)}for(var s in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[s].updateTransitions(t);this.light.updateTransitions(t),this.fog&&this.fog.updateTransitions(t),this._resetUpdates()}var l={};for(var u in this._sourceCaches){var c=this._sourceCaches[u];l[u]=c.used,c.used=!1}var d,p=f(this._order);try{for(p.s();!(d=p.n()).done;){var h=d.value,m=this._layers[h];if(m.recalculate(t,this._availableImages),!m.isHidden(t.zoom)){var g=this._getLayerSourceCache(m);g&&(g.used=!0)}var v=this.map.painter;if(v){var y=m.getProgramIds();if(!y)continue;var _,b=m.getProgramConfiguration(t.zoom),x=f(y);try{for(x.s();!(_=x.n()).done;){var E=_.value;v.useProgram(E,b)}}catch(C){x.e(C)}finally{x.f()}}}}catch(C){p.e(C)}finally{p.f()}for(var S in l){var w=this._sourceCaches[S];l[S]!==w.used&&w.getSource().fire(new e.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:w.getSource().id}))}this.light.recalculate(t),this.terrain&&this.terrain.recalculate(t),this.fog&&this.fog.recalculate(t),this.z=t.zoom,this._markersNeedUpdate&&(this._updateMarkersOpacity(),this._markersNeedUpdate=!1),n&&this.fire(new e.Event("data",{dataType:"style"}))}}},{key:"_updateTilesForChangedImages",value:function(){var e=Object.keys(this._changedImages);if(e.length){for(var t in this._sourceCaches)this._sourceCaches[t].reloadTilesForDependencies(["icons","patterns"],e);this._changedImages={}}}},{key:"_updateWorkerLayers",value:function(e,t){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(e),removedIds:t})}},{key:"_resetUpdates",value:function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}}},{key:"setState",value:function(n){var r=this;if(this._checkLoaded(),un(this,e.validateStyle(n)))return!1;(n=e.clone$1(n)).layers=nt(n.layers);var i=function(e,n){if(!e)return[{command:rt.setStyle,args:[n]}];var r=[];try{if(!t(e.version,n.version))return[{command:rt.setStyle,args:[n]}];t(e.center,n.center)||r.push({command:rt.setCenter,args:[n.center]}),t(e.zoom,n.zoom)||r.push({command:rt.setZoom,args:[n.zoom]}),t(e.bearing,n.bearing)||r.push({command:rt.setBearing,args:[n.bearing]}),t(e.pitch,n.pitch)||r.push({command:rt.setPitch,args:[n.pitch]}),t(e.sprite,n.sprite)||r.push({command:rt.setSprite,args:[n.sprite]}),t(e.glyphs,n.glyphs)||r.push({command:rt.setGlyphs,args:[n.glyphs]}),t(e.transition,n.transition)||r.push({command:rt.setTransition,args:[n.transition]}),t(e.light,n.light)||r.push({command:rt.setLight,args:[n.light]}),t(e.fog,n.fog)||r.push({command:rt.setFog,args:[n.fog]}),t(e.projection,n.projection)||r.push({command:rt.setProjection,args:[n.projection]});var i={},a=[];!function(e,n,r,i){var a;for(a in n=n||{},e=e||{})e.hasOwnProperty(a)&&(n.hasOwnProperty(a)||at(a,r,i));for(a in n)n.hasOwnProperty(a)&&(e.hasOwnProperty(a)?t(e[a],n[a])||("geojson"===e[a].type&&"geojson"===n[a].type&&st(e,n,a)?r.push({command:rt.setGeoJSONSourceData,args:[a,n[a].data]}):ot(a,n,r,i)):it(a,n,r))}(e.sources,n.sources,a,i);var o=[];e.layers&&e.layers.forEach((function(e){e.source&&i[e.source]?r.push({command:rt.removeLayer,args:[e.id]}):o.push(e)}));var s=e.terrain;s&&i[s.source]&&(r.push({command:rt.setTerrain,args:[void 0]}),s=void 0),r=r.concat(a),t(s,n.terrain)||r.push({command:rt.setTerrain,args:[n.terrain]}),function(e,n,r){n=n||[];var i,a,o,s,l,u,c,d=(e=e||[]).map(ut),f=n.map(ut),p=e.reduce(ct,{}),h=n.reduce(ct,{}),m=d.slice(),g=Object.create(null);for(i=0,a=0;i0)throw new Error("Unimplemented: ".concat(a.map((function(e){return e.command})).join(", "),"."));return i.forEach((function(e){"setTransition"!==e.command&&"setProjection"!==e.command&&r[e.command].apply(r,e.args)})),this.stylesheet=n,this._updateMapProjection(),!0}},{key:"addImage",value:function(t,n){return this.getImage(t)?this.fire(new e.ErrorEvent(new Error("An image with this name already exists."))):(this.imageManager.addImage(t,n),this._afterImageUpdated(t),this)}},{key:"updateImage",value:function(e,t){this.imageManager.updateImage(e,t)}},{key:"getImage",value:function(e){return this.imageManager.getImage(e)}},{key:"removeImage",value:function(t){return this.getImage(t)?(this.imageManager.removeImage(t),this._afterImageUpdated(t),this):this.fire(new e.ErrorEvent(new Error("No image with this name exists.")))}},{key:"_afterImageUpdated",value:function(t){this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.Event("data",{dataType:"style"}))}},{key:"listImages",value:function(){return this._checkLoaded(),this._availableImages.slice()}},{key:"addSource",value:function(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this._checkLoaded(),void 0!==this.getSource(t))throw new Error("There is already a source with this ID");if(!n.type)throw new Error("The type property must be defined, but only the following properties were given: ".concat(Object.keys(n).join(", "),"."));if(!(["vector","raster","geojson","video","image"].indexOf(n.type)>=0&&this._validate(e.validateSource,"sources.".concat(t),n,null,i))){this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);var a=qe(t,n,this.dispatcher,this);a.setEventedParent(this,(function(){return{isSourceLoaded:r._isSourceCacheLoaded(t),source:a.serialize(),sourceId:t}}));var o=function(n){var i=(n?"symbol:":"other:")+t,o=r._sourceCaches[i]=new e.SourceCache(i,a,n);(n?r._symbolSourceCaches:r._otherSourceCaches)[t]=o,o.style=r,o.onAdd(r.map)};o(!1),"vector"!==n.type&&"geojson"!==n.type||o(!0),a.onAdd&&a.onAdd(this.map),this._changed=!0}}},{key:"removeSource",value:function(t){this._checkLoaded();var n=this.getSource(t);if(!n)throw new Error("There is no source with this ID");for(var r in this._layers)if(this._layers[r].source===t)return this.fire(new e.ErrorEvent(new Error('Source "'.concat(t,'" cannot be removed while layer "').concat(r,'" is using it.'))));if(this.terrain&&this.terrain.get().source===t)return this.fire(new e.ErrorEvent(new Error('Source "'.concat(t,'" cannot be removed while terrain is using it.'))));var i,a=this._getSourceCaches(t),o=f(a);try{for(o.s();!(i=o.n()).done;){var s=i.value;delete this._sourceCaches[s.id],delete this._updatedSources[s.id],s.fire(new e.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:s.getSource().id})),s.setEventedParent(null),s.clearTiles()}}catch(l){o.e(l)}finally{o.f()}return delete this._otherSourceCaches[t],delete this._symbolSourceCaches[t],n.setEventedParent(null),n.onRemove&&n.onRemove(this.map),this._changed=!0,this}},{key:"setGeoJSONSourceData",value:function(e,t){this._checkLoaded(),this.getSource(e).setData(t),this._changed=!0}},{key:"getSource",value:function(e){var t=this._getSourceCache(e);return t&&t.getSource()}},{key:"addLayer",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._checkLoaded();var i=t.id;if(this.getLayer(i))this.fire(new e.ErrorEvent(new Error('Layer with id "'.concat(i,'" already exists on this map'))));else{var a;if("custom"===t.type){if(un(this,e.validateCustomStyleLayer(t)))return;a=e.createStyleLayer(t)}else{if("object"==typeof t.source&&(this.addSource(i,t.source),t=e.clone$1(t),t=e.extend(t,{source:i})),this._validate(e.validateLayer,"layers.".concat(i),t,{arrayIndex:-1},r))return;a=e.createStyleLayer(t),this._validateLayer(a),a.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[a.id]=a.serialize(),this._updateLayerCount(a,!0)}var o=n?this._order.indexOf(n):this._order.length;if(n&&-1===o)this.fire(new e.ErrorEvent(new Error('Layer with id "'.concat(n,'" does not exist on this map.'))));else{this._order.splice(o,0,i),this._layerOrderChanged=!0,this._layers[i]=a;var s=this._getLayerSourceCache(a);if(this._removedLayers[i]&&a.source&&s&&"custom"!==a.type){var l=this._removedLayers[i];delete this._removedLayers[i],l.type!==a.type?this._updatedSources[a.source]="clear":(this._updatedSources[a.source]="reload",s.pause())}this._updateLayer(a),a.onAdd&&a.onAdd(this.map),this._updateDrapeFirstLayers()}}}},{key:"moveLayer",value:function(t,n){if(this._checkLoaded(),this._changed=!0,this._layers[t]){if(t!==n){var r=this._order.indexOf(t);this._order.splice(r,1);var i=n?this._order.indexOf(n):this._order.length;n&&-1===i?this.fire(new e.ErrorEvent(new Error('Layer with id "'.concat(n,'" does not exist on this map.')))):(this._order.splice(i,0,t),this._layerOrderChanged=!0,this._updateDrapeFirstLayers())}}else this.fire(new e.ErrorEvent(new Error("The layer '".concat(t,"' does not exist in the map's style and cannot be moved."))))}},{key:"removeLayer",value:function(t){this._checkLoaded();var n=this._layers[t];if(n){n.setEventedParent(null),this._updateLayerCount(n,!1);var r=this._order.indexOf(t);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=n,delete this._layers[t],delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],n.onRemove&&n.onRemove(this.map),this._updateDrapeFirstLayers()}else this.fire(new e.ErrorEvent(new Error("The layer '".concat(t,"' does not exist in the map's style and cannot be removed."))))}},{key:"getLayer",value:function(e){return this._layers[e]}},{key:"hasLayer",value:function(e){return e in this._layers}},{key:"hasLayerType",value:function(e){for(var t in this._layers)if(this._layers[t].type===e)return!0;return!1}},{key:"setLayerZoomRange",value:function(t,n,r){this._checkLoaded();var i=this.getLayer(t);i?i.minzoom===n&&i.maxzoom===r||(null!=n&&(i.minzoom=n),null!=r&&(i.maxzoom=r),this._updateLayer(i)):this.fire(new e.ErrorEvent(new Error("The layer '".concat(t,"' does not exist in the map's style and cannot have zoom extent."))))}},{key:"setFilter",value:function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._checkLoaded();var a=this.getLayer(n);if(a){if(!t(a.filter,r))return null==r?(a.filter=void 0,void this._updateLayer(a)):void(this._validate(e.validateFilter,"layers.".concat(a.id,".filter"),r,{layerType:a.type},i)||(a.filter=e.clone$1(r),this._updateLayer(a)))}else this.fire(new e.ErrorEvent(new Error("The layer '".concat(n,"' does not exist in the map's style and cannot be filtered."))))}},{key:"getFilter",value:function(t){var n=this.getLayer(t);return n&&e.clone$1(n.filter)}},{key:"setLayoutProperty",value:function(n,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this._checkLoaded();var o=this.getLayer(n);o?t(o.getLayoutProperty(r),i)||(o.setLayoutProperty(r,i,a),this._updateLayer(o)):this.fire(new e.ErrorEvent(new Error("The layer '".concat(n,"' does not exist in the map's style and cannot be styled."))))}},{key:"getLayoutProperty",value:function(t,n){var r=this.getLayer(t);if(r)return r.getLayoutProperty(n);this.fire(new e.ErrorEvent(new Error("The layer '".concat(t,"' does not exist in the map's style."))))}},{key:"setPaintProperty",value:function(n,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this._checkLoaded();var o=this.getLayer(n);o?t(o.getPaintProperty(r),i)||(o.setPaintProperty(r,i,a)&&this._updateLayer(o),this._changed=!0,this._updatedPaintProps[n]=!0):this.fire(new e.ErrorEvent(new Error("The layer '".concat(n,"' does not exist in the map's style and cannot be styled."))))}},{key:"getPaintProperty",value:function(e,t){var n=this.getLayer(e);return n&&n.getPaintProperty(t)}},{key:"setFeatureState",value:function(t,n){this._checkLoaded();var r=t.source,i=t.sourceLayer,a=this.getSource(r);if(a){var o=a.type;if("geojson"===o&&i)this.fire(new e.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));else if("vector"!==o||i){void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided.")));var s,l=this._getSourceCaches(r),u=f(l);try{for(u.s();!(s=u.n()).done;)s.value.setFeatureState(i,t.id,n)}catch(c){u.e(c)}finally{u.f()}}else this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '".concat(r,"' does not exist in the map's style."))))}},{key:"removeFeatureState",value:function(t,n){this._checkLoaded();var r=t.source,i=this.getSource(r);if(i){var a=i.type,o="vector"===a?t.sourceLayer:void 0;if("vector"!==a||o)if(n&&"string"!=typeof t.id&&"number"!=typeof t.id)this.fire(new e.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));else{var s,l=this._getSourceCaches(r),u=f(l);try{for(u.s();!(s=u.n()).done;)s.value.removeFeatureState(o,t.id,n)}catch(c){u.e(c)}finally{u.f()}}else this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '".concat(r,"' does not exist in the map's style."))))}},{key:"getFeatureState",value:function(t){this._checkLoaded();var n=t.source,r=t.sourceLayer,i=this.getSource(n);if(i){if("vector"!==i.type||r)return void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),this._getSourceCaches(n)[0].getFeatureState(r,t.id);this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '".concat(n,"' does not exist in the map's style."))))}},{key:"getTransition",value:function(){return e.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}},{key:"serialize",value:function(){var t={};for(var n in this._sourceCaches){var r=this._sourceCaches[n].getSource();t[r.id]||(t[r.id]=r.serialize())}return e.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,terrain:this.stylesheet.terrain,fog:this.stylesheet.fog,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,projection:this.stylesheet.projection,sources:t,layers:this._serializeLayers(this._order)},(function(e){return void 0!==e}))}},{key:"_updateLayer",value:function(e){this._updatedLayers[e.id]=!0;var t=this._getLayerSourceCache(e);e.source&&!this._updatedSources[e.source]&&t&&"raster"!==t.getSource().type&&(this._updatedSources[e.source]="reload",t.pause()),this._changed=!0,e.invalidateCompiledFilter()}},{key:"_flattenAndSortRenderedFeatures",value:function(e){for(var t=this,n=function(e){return"fill-extrusion"===t._layers[e].type},r={},i=[],a=this._order.length-1;a>=0;a--){var o=this._order[a];if(n(o)){r[o]=a;var s,l=f(e);try{for(l.s();!(s=l.n()).done;){var u=s.value[o];if(u){var c,d=f(u);try{for(d.s();!(c=d.n()).done;){var p=c.value;i.push(p)}}catch(C){d.e(C)}finally{d.f()}}}}catch(C){l.e(C)}finally{l.f()}}}i.sort((function(e,t){return t.intersectionZ-e.intersectionZ}));for(var h=[],m=this._order.length-1;m>=0;m--){var g=this._order[m];if(n(g))for(var v=i.length-1;v>=0;v--){var y=i[v].feature;if(r[y.layer.id]1&&void 0!==arguments[1]?arguments[1]:{};this._checkLoaded();var r=this.light.getLight(),i=!1;for(var a in e)if(!t(e[a],r[a])){i=!0;break}if(i){var o=this._setTransitionParameters({duration:300,delay:0});this.light.setLight(e,n),this.light.updateTransitions(o)}}},{key:"getTerrain",value:function(){return this.terrain&&1===this.terrain.drapeRenderMode?this.terrain.get():null}},{key:"setTerrainForDraping",value:function(){this.setTerrain({source:"",exaggeration:0},0)}},{key:"setTerrain",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this._checkLoaded(),!n)return delete this.terrain,delete this.stylesheet.terrain,this.dispatcher.broadcast("enableTerrain",!1),this._force3DLayerUpdate(),void(this._markersNeedUpdate=!0);if(1===r){if("object"==typeof n.source){var i="terrain-dem-src";this.addSource(i,n.source),n=e.clone$1(n),n=e.extend(n,{source:i})}if(this._validate(e.validateTerrain,"terrain",n))return}if(!this.terrain||this.terrain&&r!==this.terrain.drapeRenderMode)this._createTerrain(n,r);else{for(var a=this.terrain,o=a.get(),s=0,l=Object.keys(e.spec.terrain);s4&&void 0!==arguments[4]?arguments[4]:{};return(!a||!1!==a.validate)&&un(this,t.call(e.validateStyle,e.extend({key:n,style:this.serialize(),value:r,styleSpec:e.spec},i)))}},{key:"_remove",value:function(){for(var t in this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),e.evented.off("pluginStateChange",this._rtlTextPluginCallback),this._layers)this._layers[t].setEventedParent(null);for(var n in this._sourceCaches)this._sourceCaches[n].clearTiles(),this._sourceCaches[n].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()}},{key:"_clearSource",value:function(e){var t,n=this._getSourceCaches(e),r=f(n);try{for(r.s();!(t=r.n()).done;)t.value.clearTiles()}catch(i){r.e(i)}finally{r.f()}}},{key:"_reloadSource",value:function(e){var t,n=this._getSourceCaches(e),r=f(n);try{for(r.s();!(t=r.n()).done;){var i=t.value;i.resume(),i.reload()}}catch(a){r.e(a)}finally{r.f()}}},{key:"_updateSources",value:function(e){for(var t in this._sourceCaches)this._sourceCaches[t].update(e)}},{key:"_generateCollisionBoxes",value:function(){for(var e in this._sourceCaches){var t=this._sourceCaches[e];t.resume(),t.reload()}}},{key:"_updatePlacement",value:function(t,n,r,i){var a,o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=!1,u=!1,c={},d=f(this._order);try{for(d.s();!(a=d.n()).done;){var p=a.value,h=this._layers[p];if("symbol"===h.type){if(!c[h.source]){var m=function(){var e=o._getLayerSourceCache(h);if(!e)return"continue";c[h.source]=e.getRenderableIds(!0).map((function(t){return e.getTileByID(t)})).sort((function(e,t){return t.tileID.overscaledZ-e.tileID.overscaledZ||(e.tileID.isLessThan(t.tileID)?-1:1)}))}();if("continue"===m)continue}var g=this.crossTileSymbolIndex.addLayer(h,c[h.source],t.center.lng,t.projection);l=l||g}}}catch(x){d.e(x)}finally{d.f()}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),s=s||this._layerOrderChanged||0===r,this._layerOrderChanged&&this.fire(new e.Event("neworder")),(s||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(e.exported.now(),t.zoom))&&(this.pauseablePlacement=new nn(t,this._order,s,n,r,i,this.placement,this.fog&&t.projection.supportsFog?this.fog.state:null),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,c),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(e.exported.now()),u=!0),l&&this.pauseablePlacement.placement.setStale()),u||l){var v,y=f(this._order);try{for(y.s();!(v=y.n()).done;){var _=v.value,b=this._layers[_];"symbol"===b.type&&this.placement.updateLayerOpacities(b,c[b.source])}}catch(x){y.e(x)}finally{y.f()}}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(e.exported.now())}},{key:"_releaseSymbolFadeTiles",value:function(){for(var e in this._sourceCaches)this._sourceCaches[e].releaseSymbolFadeTiles()}},{key:"getImages",value:function(e,t,n){this.imageManager.getImages(t.icons,n),this._updateTilesForChangedImages();var r=function(e){e&&e.setDependencies(t.tileID.key,t.type,t.icons)};r(this._otherSourceCaches[t.source]),r(this._symbolSourceCaches[t.source])}},{key:"getGlyphs",value:function(e,t,n){this.glyphManager.getGlyphs(t.stacks,n)}},{key:"getResource",value:function(t,n,r){return e.makeRequest(n,r)}},{key:"_getSourceCache",value:function(e){return this._otherSourceCaches[e]}},{key:"_getLayerSourceCache",value:function(e){return"symbol"===e.type?this._symbolSourceCaches[e.source]:this._otherSourceCaches[e.source]}},{key:"_getSourceCaches",value:function(e){var t=[];return this._otherSourceCaches[e]&&t.push(this._otherSourceCaches[e]),this._symbolSourceCaches[e]&&t.push(this._symbolSourceCaches[e]),t}},{key:"_isSourceCacheLoaded",value:function(t){var n=this._getSourceCaches(t);return 0===n.length?(this.fire(new e.ErrorEvent(new Error("There is no source with ID '".concat(t,"'")))),!1):n.every((function(e){return e.loaded()}))}},{key:"has3DLayers",value:function(){return this._num3DLayers>0}},{key:"hasSymbolLayers",value:function(){return this._numSymbolLayers>0}},{key:"hasCircleLayers",value:function(){return this._numCircleLayers>0}},{key:"_clearWorkerCaches",value:function(){this.dispatcher.broadcast("clearCaches")}},{key:"destroy",value:function(){this._clearWorkerCaches(),this.terrainSetForDrapingOnly()&&(delete this.terrain,delete this.stylesheet.terrain)}}]),a}(e.Evented);hn.getSourceType=function(e){return Ve[e]},hn.setSourceType=function(e,t){Ve[e]=t},hn.registerForPluginStateChange=e.registerForPluginStateChange;var mn="\n#define EPSILON 0.0000001\n#define PI 3.141592653589793\n#define EXTENT 8192.0\n#define HALF_PI PI/2.0\n#define QUARTER_PI PI/4.0\n#define RAD_TO_DEG 180.0/PI\n#define DEG_TO_RAD PI/180.0\n#define GLOBE_RADIUS EXTENT/PI/2.0",gn="attribute highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;varying highp vec3 v_uv;void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}",vn="\n#define ELEVATION_SCALE 7.0\n#define ELEVATION_OFFSET 450.0\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_tl_up;uniform vec3 u_tile_tr_up;uniform vec3 u_tile_br_up;uniform vec3 u_tile_bl_up;uniform float u_tile_up_scale;vec3 elevationVector(vec2 pos) {vec2 uv=pos/EXTENT;vec3 up=normalize(mix(\nmix(u_tile_tl_up,u_tile_tr_up,uv.xxx),mix(u_tile_bl_up,u_tile_br_up,uv.xxx),uv.yyy));return up*u_tile_up_scale;}\n#else\nvec3 elevationVector(vec2 pos) { return vec3(0,0,1); }\n#endif\n#ifdef TERRAIN\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nuniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;\n#else\nuniform sampler2D u_dem;uniform sampler2D u_dem_prev;\n#endif\nuniform vec4 u_dem_unpack;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;uniform sampler2D u_depth;uniform vec2 u_depth_size_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}float decodeElevation(vec4 v) {return dot(vec4(v.xyz*255.0,-1.0),u_dem_unpack);}float currentElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale+u_dem_tl)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem,pos));\n#ifdef TERRAIN_DEM_NEAREST_FILTER\nreturn u_exaggeration*tl;\n#endif\nfloat tr=decodeElevation(texture2D(u_dem,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}float prevElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale_prev+u_dem_tl_prev)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem_prev,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem_prev,pos));float tr=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem_prev,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}\n#ifdef TERRAIN_VERTEX_MORPHING\nfloat elevation(vec2 apos) {float nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}\n#else\nfloat elevation(vec2 apos) {return currentElevation(apos);}\n#endif\nhighp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}bool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;float depth=unpack_depth(texture2D(u_depth,(coord.xy+1.0)*0.5));return coord.z > depth+0.0005;}float occlusionFade(vec4 frag) {vec3 coord=frag.xyz/frag.w;vec3 df=vec3(5.0*u_depth_size_inv,0.0);vec2 uv=0.5*coord.xy+0.5;vec4 depth=vec4(\nunpack_depth(texture2D(u_depth,uv-df.xz)),unpack_depth(texture2D(u_depth,uv+df.xz)),unpack_depth(texture2D(u_depth,uv-df.zy)),unpack_depth(texture2D(u_depth,uv+df.zy))\n);return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z-0.001)-depth),0.0,1.0));}vec4 fourSample(vec2 pos,vec2 off) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nfloat tl=texture2D(u_dem,pos).a;float tr=texture2D(u_dem,pos+vec2(off.x,0.0)).a;float bl=texture2D(u_dem,pos+vec2(0.0,off.y)).a;float br=texture2D(u_dem,pos+off).a;\n#else\nvec4 demtl=vec4(texture2D(u_dem,pos).xyz*255.0,-1.0);float tl=dot(demtl,u_dem_unpack);vec4 demtr=vec4(texture2D(u_dem,pos+vec2(off.x,0.0)).xyz*255.0,-1.0);float tr=dot(demtr,u_dem_unpack);vec4 dembl=vec4(texture2D(u_dem,pos+vec2(0.0,off.y)).xyz*255.0,-1.0);float bl=dot(dembl,u_dem_unpack);vec4 dembr=vec4(texture2D(u_dem,pos+off).xyz*255.0,-1.0);float br=dot(dembr,u_dem_unpack);\n#endif\nreturn vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;vec4 bounds=vec4(d,vec2(1.0)-d);h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*(word/ELEVATION_SCALE-ELEVATION_OFFSET);}\n#else\nfloat elevation(vec2 pos) { return 0.0; }bool isOccluded(vec4 frag) { return false; }float occlusionFade(vec4 frag) { return 1.0; }\n#endif",yn="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump mat4 u_fog_matrix;varying vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);}\n#endif",_n="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump float u_fog_temporal_offset;varying vec3 v_fog_pos;uniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform highp vec2 u_viewport;uniform float u_globe_transition;uniform int u_is_globe;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}float globe_glow_progress() {highp vec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);highp vec3 dir=normalize(ray_dir);highp vec3 closest_point=dot(u_globe_pos,dir)*dir;highp float sdf=length(closest_point-u_globe_pos)/u_globe_radius;return sdf+PI*0.5;}float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos) {float depth=length(pos);float opacity;if (u_is_globe==1) {float glow_progress=globe_glow_progress();float t=mix(glow_progress,depth,u_globe_transition);opacity=fog_opacity(fog_range(t));} else {opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);}return mix(color,u_fog_color.rgb,opacity);}vec4 fog_apply_from_vert(vec4 color,float fog_opac) {float alpha=EPSILON+color.a;color.rgb=mix(color.rgb/alpha,u_fog_color.rgb,fog_opac)*alpha;return color;}vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb=fog_apply(color.rgb/alpha,pos)*alpha;return color;}vec3 fog_dither(vec3 color) {vec2 dither_seed=gl_FragCoord.xy+u_fog_temporal_offset;return dither(color,dither_seed);}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}\n#endif",bn={},xn={},En=[];An(mn,En),An(vn,En),An(yn,En),An(_n,En),bn=kn("",vn),xn=kn(_n,yn);var Sn=kn("\nhighp vec3 hash(highp vec2 p) {highp vec3 p3=fract(p.xyx*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract((p3.xxy+p3.yzz)*p3.zyx);}vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;return color+rnd/255.0;}highp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}highp vec4 pack_depth(highp float ndc_z) {highp float depth=ndc_z*0.5+0.5;const highp vec4 bit_shift=vec4(255.0*255.0*255.0,255.0*255.0,255.0,1.0);const highp vec4 bit_mask =vec4(0.0,1.0/255.0,1.0/255.0,1.0/255.0);highp vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}","\nfloat wrap(float n,float min,float max) {float d=max-min;float w=mod(mod(n-min,d)+d,d)+min;return (w==min) ? max : w;}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_tile_position(mat4 matrix,vec2 tile_anchor,vec3 tile_id,vec2 mercator_center) {\n#ifndef PROJECTED_POS_ON_VIEWPORT\nfloat tiles=tile_id.z;vec2 mercator=(tile_anchor/EXTENT+tile_id.xy)/tiles;mercator-=mercator_center;mercator.x=wrap(mercator.x,-0.5,0.5);vec4 mercator_tile=vec4(mercator.xy*EXTENT,EXTENT/(2.0*PI),1.0);mercator_tile=matrix*mercator_tile;return mercator_tile.xyz;\n#else\nreturn vec3(0.0);\n#endif\n}vec3 mix_globe_mercator(vec3 globe,vec3 mercator,float t) {return mix(globe,mercator,t);}mat3 globe_mercator_surface_vectors(vec3 pos_normal,vec3 up_dir,float zoom_transition) {vec3 normal=zoom_transition==0.0 ? pos_normal : normalize(mix(pos_normal,up_dir,zoom_transition));vec3 xAxis=normalize(vec3(normal.z,0.0,-normal.x));vec3 yAxis=normalize(cross(normal,xAxis));return mat3(xAxis,yAxis,normal);}\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(\nunpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}const vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);//Normalized device coordinate that is not rendered."),wn=mn,Cn="\n#ifdef GL_ES\nprecision mediump float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif",Tn={background:kn("uniform vec4 u_color;uniform float u_opacity;void main() {vec4 out_color=u_color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),backgroundPattern:kn("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_mix);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),circle:kn("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(\nantialiased_blur,0.0,extrude_length-radius/(radius+stroke_width)\n);vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef FOG\nout_color=fog_apply_premultiplied(out_color,v_fog_pos);\n#endif\ngl_FragColor=out_color*(v_visibility*opacity_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","#define NUM_VISIBILITY_RINGS 2\n#define INV_SQRT2 0.70710678\n#define ELEVATION_BIAS 0.0001\n#define NUM_SAMPLES_PER_RING 16\nuniform mat4 u_matrix;uniform mat2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*view_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) {\n#if defined(TERRAIN)\nreturn elevation(pos)+ELEVATION_BIAS;\n#else\nreturn 0.0;\n#endif\n}vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale,mat3 surface_vectors) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale);\n#ifdef PITCH_WITH_MAP\n#ifdef PROJECTION_GLOBE_VIEW\nreturn u_matrix*( world_center+vec4(sample_offset.x*surface_vectors[0]+sample_offset.y*surface_vectors[1],0) );\n#else\nreturn u_matrix*( world_center+vec4(sample_offset,0,0) );\n#endif\n#else\nreturn projected_center+vec4(sample_offset,0,0);\n#endif\n}float get_sample_step() {\n#ifdef PITCH_WITH_MAP\nreturn 2.0*PI/float(NUM_SAMPLES_PER_RING);\n#else\nreturn PI/float(NUM_SAMPLES_PER_RING);\n#endif\n}void main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(circle_center)*circle_elevation(circle_center);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*circle_elevation(circle_center);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,circle_center,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);vec4 world_center=vec4(pos,1);\n#else \nmat3 surface_vectors=mat3(1.0);float height=circle_elevation(circle_center);vec4 world_center=vec4(circle_center,height,1);\n#endif\nvec4 projected_center=u_matrix*world_center;float view_scale=0.0;\n#ifdef PITCH_WITH_MAP\n#ifdef SCALE_WITH_MAP\nview_scale=1.0;\n#else\nview_scale=projected_center.w/u_camera_to_center_distance;\n#endif\n#else\n#ifdef SCALE_WITH_MAP\nview_scale=u_camera_to_center_distance;\n#else\nview_scale=projected_center.w;\n#endif\n#endif\ngl_Position=project_vertex(extrude,world_center,projected_center,radius,stroke_width,view_scale,surface_vectors);float visibility=0.0;\n#ifdef TERRAIN\nfloat step=get_sample_step();\n#ifdef PITCH_WITH_MAP\nfloat cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);vec4 occlusion_world_center=vec4(circle_center,cantilevered_height,1);vec4 occlusion_projected_center=u_matrix*occlusion_world_center;\n#else\nvec4 occlusion_world_center=world_center;vec4 occlusion_projected_center=projected_center;\n#endif\nfor(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale,surface_vectors);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING);\n#else\nvisibility=1.0;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nvisibility=1.0;\n#endif\nv_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);\n#ifdef FOG\nv_fog_pos=fog_position(world_center.xyz);\n#endif\n}"),clippingMask:kn("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:kn("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef FOG\nif (u_is_globe==0) {gl_FragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);}\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 tilePos=floor(a_pos*0.5);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(tilePos)*elevation(tilePos);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*elevation(tilePos);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,tilePos,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#else\nvec3 pos=vec3(tilePos+extrude,elevation(tilePos));\n#endif\ngl_Position=u_matrix*vec4(pos,1);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),heatmapTexture:kn("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}"),collisionBox:kn("varying float v_placed;varying float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);gl_FragColor =mix(red,blue,step(0.5,v_placed))*0.5;gl_FragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}","attribute vec3 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;attribute float a_size_scale;attribute vec2 a_padding;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_pos+elevationVector(a_anchor_pos)*elevation(a_anchor_pos),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:kn("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos_2f;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(\nmix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:kn("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;\n#endif\nvarying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0;\n#ifdef PROJECTION_GLOBE_VIEW\ngl_Position=u_matrix*vec4(a_pos_3+elevationVector(a_pos)*h,1);\n#else\ngl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);\n#endif\n}"),fill:kn("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\nvec4 out_color=color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutline:kn("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=outline_color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutlinePattern:kn("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=mix(color1,color2,u_fade);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillPattern:kn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_fade);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillExtrusion:kn("uniform lowp vec3 u_lightpos;varying vec4 v_color;\n#ifdef RENDER_SHADOWS\nvarying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;varying highp vec3 v_normal;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\nvoid main() {vec4 color=v_color;\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);color.rgb=color.rgb*shade;\n#endif\n#ifdef RENDER_SHADOWS\ncolor.xyz=shadowed_color_normal(color.xyz,normalize(v_normal),v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform float u_edge_radius;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec4 v_color;\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying highp vec3 v_normal;varying float v_depth;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec4 pos_nx=floor(a_pos_normal_ed*0.5);vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));base=max(0.0,base);height=max(0.0,top_up_ny.y==0.0 && top_up_ny.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=0.0;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);vec3 pos=vec3(pos_nx.xy,h);\n#else\nh=t > 0.0 ? height : base;vec3 pos=vec3(pos_nx.xy,h);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*h);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,pos.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*pos.z;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);\n#ifdef RENDER_SHADOWS\nv_pos_light_view_0=u_light_matrix_0*vec4(pos,1);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1);v_normal=normal;v_depth=gl_Position.w;\n#endif\nfloat colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);directional*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\nv_color.rgb+=clamp(color.rgb*directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_color*=u_opacity;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),fillExtrusionPattern:kn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\nvarying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_fade);out_color=out_color*v_lighting;\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);out_color.rgb=out_color.rgb*shade;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec4 pos_nx=floor(a_pos_normal_ed*0.5);mediump vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;mediump vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=z;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);vec3 p=vec3(pos_nx.xy,h);\n#else\nvec3 p=vec3(pos_nx.xy,z);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(p.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,p.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*p.z;p=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(p,1),AWAY,hidden);vec2 pos=normal.z==1.0\n? pos_nx.xy\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);directional*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\nv_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;\n#ifdef FOG\nv_fog_pos=fog_position(p);\n#endif\n}"),hillshadePrepare:kn("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nreturn texture2D(u_image,coord).a/4.0;\n#else\nvec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;\n#endif\n}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos);float f=getElevation(v_pos+vec2(epsilon.x,0));float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float h=getElevation(v_pos+vec2(0,epsilon.y));float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(\n(c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c)\n)/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(\nderiv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:kn("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef FOG\ngl_FragColor=fog_dither(fog_apply_premultiplied(gl_FragColor,v_fog_pos));\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),line:kn("uniform lowp float u_device_pixel_ratio;uniform float u_alpha_discard_threshold;uniform highp vec2 u_trim_offset;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform sampler2D u_dash_image;uniform float u_mix;uniform vec3 u_scale;varying vec2 v_tex_a;varying vec2 v_tex_b;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform sampler2D u_gradient_image;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash_from\n#pragma mapbox: define lowp vec4 dash_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash_from\n#pragma mapbox: initialize lowp vec4 dash_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);\n#ifdef RENDER_LINE_DASH\nfloat sdfdist_a=texture2D(u_dash_image,v_tex_a).a;float sdfdist_b=texture2D(u_dash_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);float sdfwidth=min(dash_from.z*u_scale.y,dash_to.z*u_scale.z);float sdfgamma=1.0/(2.0*u_device_pixel_ratio)/sdfwidth;alpha*=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);\n#endif\n#ifdef RENDER_LINE_GRADIENT\nhighp vec4 out_color=texture2D(u_gradient_image,v_uv.xy);\n#else\nvec4 out_color=color;\n#endif\n#ifdef RENDER_LINE_TRIM_OFFSET\nhighp float start=v_uv[2];highp float end=v_uv[3];highp float trim_start=u_trim_offset[0];highp float trim_end=u_trim_offset[1];highp float line_progress=(start+(v_uv.x)*(end-start));if (trim_end > trim_start) {if (line_progress <=trim_end && line_progress >=trim_start) {out_color=vec4(0,0,0,0);}}\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\n#ifdef RENDER_LINE_ALPHA_DISCARD\nif (alpha < u_alpha_discard_threshold) {discard;}\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define EXTRUDE_SCALE 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nattribute highp vec4 a_packed;\n#endif\n#ifdef RENDER_LINE_DASH\nattribute float a_linesofar;\n#endif\nuniform mat4 u_matrix;uniform mat2 u_pixels_to_tile_units;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform vec2 u_texsize;uniform mediump vec3 u_scale;varying vec2 v_tex_a;varying vec2 v_tex_b;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform float u_image_height;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash_from\n#pragma mapbox: define lowp vec4 dash_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash_from\n#pragma mapbox: initialize lowp vec4 dash_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*EXTRUDE_SCALE;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*EXTRUDE_SCALE*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nfloat a_uv_x=a_packed[0];float a_split_index=a_packed[1];highp float a_clip_start=a_packed[2];highp float a_clip_end=a_packed[3];\n#ifdef RENDER_LINE_GRADIENT\nhighp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec4(a_uv_x,a_split_index*texel_height-half_texel_height,a_clip_start,a_clip_end);\n#else\nv_uv=vec4(a_uv_x,0.0,a_clip_start,a_clip_end);\n#endif\n#endif\n#ifdef RENDER_LINE_DASH\nfloat tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;float scaleA=dash_from.z==0.0 ? 0.0 : tileZoomRatio/(dash_from.z*fromScale);float scaleB=dash_to.z==0.0 ? 0.0 : tileZoomRatio/(dash_to.z*toScale);float heightA=dash_from.y;float heightB=dash_to.y;v_tex_a=vec2(a_linesofar*scaleA/floorwidth,(-normal.y*heightA+dash_from.x+0.5)/u_texsize.y);v_tex_b=vec2(a_linesofar*scaleB/floorwidth,(-normal.y*heightB+dash_to.x+0.5)/u_texsize.y);\n#endif\nv_width2=vec2(outset,inset);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),linePattern:kn("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_linesofar;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mat2 u_pixels_to_tile_units;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),raster:kn("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(\ndot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);vec3 out_color=mix(u_high_vec,u_low_vec,rgb);\n#ifdef FOG\nout_color=fog_dither(fog_apply(out_color,v_fog_pos));\n#endif\ngl_FragColor=vec4(out_color*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform vec2 u_perspective_transform;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {float w=1.0+dot(a_texture_pos,u_perspective_transform);gl_Position=u_matrix*vec4(a_pos*w,0,w);v_pos0=a_texture_pos/8192.0;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),symbolIcon:kn("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform vec3 u_up_vector;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_min_font_scale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;float globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nvec3 world_pos=vec3(tile_anchor,0)+h;float globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);vec4 offsetProjected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\n#else\nvec4 offsetProjected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\n#endif\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetProjected_point.xy/offsetProjected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);vec4 projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nvec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_min_font_scale,font_scale)+a_pxoffset/16.0);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change))*projection_transition_fade;}"),symbolSDF:kn("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;float globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nvec3 world_pos=vec3(tile_anchor,0)+h;float globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);vec4 offsetprojected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\n#else\nvec4 offsetprojected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\n#endif\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetprojected_point.xy/offsetprojected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);vec4 projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nvec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat gamma_scale=gl_Position.w;float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade);}"),symbolTextAndIcon:kn("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;uniform vec2 u_texsize_icon;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;float globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nvec3 world_pos=vec3(tile_anchor,0)+h;float globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offset_projected_point=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projected_point.xy/projected_point.w;vec2 b=offset_projected_point.xy/offset_projected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);vec4 projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nvec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*font_scale);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade,is_sdf);}"),terrainRaster:kn("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nvarying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nvoid main() {vec4 color=texture2D(u_image0,v_pos0);\n#ifdef RENDER_SHADOWS\ncolor.xyz=shadowed_color(color.xyz,v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_from_vert(color,v_fog_opacity));\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_skirt_height;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nconst float skirtOffset=24575.0;const float wireframeOffset=0.00015;void main() {v_pos0=a_texture_pos/8192.0;float skirt=float(a_pos.x >=skirtOffset);float elevation=elevation(a_texture_pos)-skirt*u_skirt_height;\n#ifdef TERRAIN_WIREFRAME\nelevation+=u_skirt_height*u_skirt_height*wireframeOffset;\n#endif\nvec2 decodedPos=a_pos-vec2(skirt*skirtOffset,0.0);gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);\n#ifdef FOG\nv_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));\n#endif\n#ifdef RENDER_SHADOWS\nvec3 pos=vec3(decodedPos,elevation);v_pos_light_view_0=u_light_matrix_0*vec4(pos,1.);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1.);v_depth=gl_Position.w;\n#endif\n}"),terrainDepth:kn("#ifdef GL_ES\nprecision highp float;\n#endif\nvarying float v_depth;void main() {gl_FragColor=pack_depth(v_depth);}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying float v_depth;void main() {float elevation=elevation(a_texture_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}"),skybox:kn("\nvarying lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(\ncos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=textureCube(u_cubemap,uv).rgb;\n#ifdef FOG\nsky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color);\n#endif\nsky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);gl_FragColor=vec4(sky_color*u_opacity,u_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",gn),skyboxGradient:kn("varying highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform highp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture2D(u_color_ramp,vec2(progress,0.5));\n#ifdef FOG\ncolor.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a;\n#endif\ncolor*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",gn),skyboxCapture:kn("\nvarying highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;\n#ifdef GL_ES\nprecision highp float;\n#endif\n#define BETA_R vec3(5.5e-6,13.0e-6,22.4e-6)\n#define BETA_M vec3(21e-6,21e-6,21e-6)\n#define MIE_G 0.76\n#define DENSITY_HEIGHT_SCALE_R 8000.0\n#define DENSITY_HEIGHT_SCALE_M 1200.0\n#define PLANET_RADIUS 6360e3\n#define ATMOSPHERE_RADIUS 6420e3\n#define SAMPLE_STEPS 10\n#define DENSITY_STEPS 4\nfloat ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;gl_FragColor=vec4(color,1.0);}","attribute highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;varying highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}"),globeRaster:kn("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifndef FOG\nuniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform vec2 u_viewport;\n#endif\nvoid main() {\n#ifdef CUSTOM_ANTIALIASING\nvec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);vec3 dir=normalize(ray_dir);vec3 closest_point=dot(u_globe_pos,dir)*dir;float norm_dist_from_center=1.0-length(closest_point-u_globe_pos)/u_globe_radius;const float antialias_pixel=2.0;float antialias_factor=antialias_pixel*fwidth(norm_dist_from_center);float antialias=smoothstep(0.0,antialias_factor,norm_dist_from_center);vec4 raster=texture2D(u_image0,v_pos0);vec4 color=vec4(raster.rgb*antialias,raster.a*antialias);\n#else\nvec4 color=texture2D(u_image0,v_pos0);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_proj_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform float u_zoom_transition;uniform vec2 u_merc_center;uniform mat3 u_grid_matrix;\n#ifdef GLOBE_POLES\nattribute vec3 a_globe_pos;attribute vec2 a_uv;\n#else\nattribute vec2 a_pos;\n#endif\nvarying vec2 v_pos0;const float wireframeOffset=1e3;float mercatorXfromLng(float lng) {return (180.0+lng)/360.0;}float mercatorYfromLat(float lat) {return (180.0-(RAD_TO_DEG*log(tan(QUARTER_PI+lat/2.0*DEG_TO_RAD))))/360.0;}vec3 latLngToECEF(vec2 latLng) {latLng=DEG_TO_RAD*latLng;float cosLat=cos(latLng[0]);float sinLat=sin(latLng[0]);float cosLng=cos(latLng[1]);float sinLng=sin(latLng[1]);float sx=cosLat*sinLng*GLOBE_RADIUS;float sy=-sinLat*GLOBE_RADIUS;float sz=cosLat*cosLng*GLOBE_RADIUS;return vec3(sx,sy,sz);}void main() {\n#ifdef GLOBE_POLES\nvec3 globe_pos=a_globe_pos;vec2 uv=a_uv;\n#else\nfloat tiles=u_grid_matrix[0][2];float idy=u_grid_matrix[1][2];float S=u_grid_matrix[2][2];vec3 latLng=u_grid_matrix*vec3(a_pos,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float uvY=mercatorY*tiles-idy;float mercatorX=mercatorXfromLng(latLng[1]);float uvX=a_pos[0]*S;vec3 globe_pos=latLngToECEF(latLng.xy);vec2 merc_pos=vec2(mercatorX,mercatorY);vec2 uv=vec2(uvX,uvY);\n#endif\nv_pos0=uv;vec2 tile_pos=uv*EXTENT;\n#ifdef GLOBE_POLES\nvec3 up_vector=normalize(globe_pos)*u_tile_up_scale;\n#else\nvec3 up_vector=elevationVector(tile_pos);\n#endif\nfloat height=elevation(tile_pos);\n#ifdef TERRAIN_WIREFRAME\nheight+=wireframeOffset;\n#endif\nglobe_pos+=up_vector*height;\n#ifdef GLOBE_POLES\nvec4 interpolated_pos=u_globe_matrix*vec4(globe_pos,1.0);\n#else\nvec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);if (u_zoom_transition > 0.0) {merc_world_pos=vec4(merc_pos,height,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition),1.0);\n#endif\ngl_Position=u_proj_matrix*interpolated_pos;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);\n#endif\n}"),globeAtmosphere:kn("uniform float u_transition;uniform highp float u_fadeout_range;uniform highp float u_temporal_offset;uniform vec3 u_start_color;uniform vec4 u_color;uniform vec4 u_space_color;uniform vec4 u_high_color;uniform float u_star_intensity;uniform float u_star_size;uniform float u_star_density;uniform float u_horizon_angle;uniform mat4 u_rotation_matrix;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;highp float random(highp vec3 p) {p=fract(p*vec3(23.2342,97.1231,91.2342));p+=dot(p.zxy,p.yxz+123.1234);return fract(p.x*p.y);}float stars(vec3 p,float scale,vec2 offset) {vec2 uv_scale=(u_viewport/u_star_size)*scale;vec3 position=vec3(p.xy*uv_scale+offset*u_viewport,p.z);vec3 q=fract(position)-0.5;vec3 id=floor(position);float random_visibility=step(random(id),u_star_density);float circle=smoothstep(0.5+u_star_intensity,0.5,length(q));return circle*random_visibility;}void main() {highp vec3 dir=normalize(v_ray_dir);\n#ifdef PROJECTION_GLOBE_VIEW\nfloat globe_pos_dot_dir=dot(u_globe_pos,dir);highp vec3 closest_point_forward=abs(globe_pos_dot_dir)*dir;float norm_dist_from_center=length(closest_point_forward-u_globe_pos)/u_globe_radius;if (norm_dist_from_center < 0.98) {discard;return;}\n#endif\nhighp vec3 horizon_dir=normalize(v_horizon_dir);float horizon_angle_mercator=dir.y < horizon_dir.y ?\n0.0 : max(acos(dot(dir,horizon_dir)),0.0);\n#ifdef PROJECTION_GLOBE_VIEW\nhighp vec3 closest_point=globe_pos_dot_dir*dir;float closest_point_to_center=length(closest_point-u_globe_pos);float theta=asin(clamp(closest_point_to_center/length(u_globe_pos),-1.0,1.0));float horizon_angle=globe_pos_dot_dir < 0.0 ?\nPI-theta-u_horizon_angle : theta-u_horizon_angle;float angle_t=pow(u_transition,10.0);horizon_angle=mix(horizon_angle,horizon_angle_mercator,angle_t);\n#else\nfloat horizon_angle=horizon_angle_mercator;\n#endif\nhorizon_angle/=PI;float t=exp(-horizon_angle/u_fadeout_range);float alpha_0=u_color.a;float alpha_1=u_high_color.a;float alpha_2=u_space_color.a;vec3 color_stop_0=u_color.rgb;vec3 color_stop_1=u_high_color.rgb;vec3 color_stop_2=u_space_color.rgb;vec3 c0=mix(color_stop_2,color_stop_1,alpha_1);vec3 c1=mix(c0,color_stop_0,alpha_0);vec3 c2=mix(c0,c1,t);vec3 c =mix(color_stop_2,c2,t);float a0=mix(alpha_2,1.0,alpha_1);float a1=mix(a0,1.0,alpha_0);float a2=mix(a0,a1,t);float a =mix(alpha_2,a2,t);vec2 uv=gl_FragCoord.xy/u_viewport-0.5;float aspect_ratio=u_viewport.x/u_viewport.y;vec4 uv_dir=vec4(normalize(vec3(uv.x*aspect_ratio,uv.y,1.0)),1.0);uv_dir=u_rotation_matrix*uv_dir;vec3 n=abs(uv_dir.xyz);vec2 uv_remap=(n.x > n.y && n.x > n.z) ? uv_dir.yz/uv_dir.x:\n(n.y > n.x && n.y > n.z) ? uv_dir.zx/uv_dir.y:\nuv_dir.xy/uv_dir.z;uv_remap.x/=aspect_ratio;vec3 D=vec3(uv_remap,1.0);highp float star_field=0.0;if (u_star_intensity > 0.0) {star_field+=stars(D,1.2,vec2(0.0,0.0));star_field+=stars(D,1.0,vec2(1.0,0.0));star_field+=stars(D,0.8,vec2(0.0,1.0));star_field+=stars(D,0.6,vec2(1.0,1.0));star_field*=(1.0-pow(t,0.25+(1.0-u_high_color.a)*0.75));c+=star_field*alpha_2;}c=dither(c,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=vec4(c,a);}","attribute vec3 a_pos;attribute vec2 a_uv;uniform vec3 u_frustum_tl;uniform vec3 u_frustum_tr;uniform vec3 u_frustum_br;uniform vec3 u_frustum_bl;uniform float u_horizon;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;void main() {v_ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,a_uv.x),mix(u_frustum_bl,u_frustum_br,a_uv.x),a_uv.y);v_horizon_dir=mix(\nmix(u_frustum_tl,u_frustum_bl,u_horizon),mix(u_frustum_tr,u_frustum_br,u_horizon),a_uv.x);gl_Position=vec4(a_pos,1.0);}")};function An(e,t){var n,r=e.replace(/\s*\/\/[^\n]*\n/g,"\n").split("\n"),i=f(r);try{for(i.s();!(n=i.n()).done;){var a=n.value;if("#"===(a=a.trim())[0]&&a.includes("if")&&!a.includes("endif")){var o,s=(a=a.replace("#","").replace(/ifdef|ifndef|elif|if/g,"").replace(/!|defined|\(|\)|\|\||&&/g,"").replace(/\s+/g," ").trim()).split(" "),l=f(s);try{for(l.s();!(o=l.n()).done;){var u=o.value;t.includes(u)||t.push(u)}}catch(c){l.e(c)}finally{l.f()}}}}catch(c){i.e(c)}finally{i.f()}}function kn(e,t){var n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=t.match(/attribute (highp |mediump |lowp )?([\w]+) ([\w]+)/g),i={},a=[].concat(En);return An(e,a),An(t,a),{fragmentSource:e=e.replace(n,(function(e,t,n,r,a){return i[a]=!0,"define"===t?"\n#ifndef HAS_UNIFORM_u_".concat(a,"\nvarying ").concat(n," ").concat(r," ").concat(a,";\n#else\nuniform ").concat(n," ").concat(r," u_").concat(a,";\n#endif\n"):"\n#ifdef HAS_UNIFORM_u_".concat(a,"\n ").concat(n," ").concat(r," ").concat(a," = u_").concat(a,";\n#endif\n")})),vertexSource:t=t.replace(n,(function(e,t,n,r,a){var o="float"===r?"vec2":"vec4",s=a.match(/color/)?"color":o;return i[a]?"define"===t?"\n#ifndef HAS_UNIFORM_u_".concat(a,"\nuniform lowp float u_").concat(a,"_t;\nattribute ").concat(n," ").concat(o," a_").concat(a,";\nvarying ").concat(n," ").concat(r," ").concat(a,";\n#else\nuniform ").concat(n," ").concat(r," u_").concat(a,";\n#endif\n"):"vec4"===s?"\n#ifndef HAS_UNIFORM_u_".concat(a,"\n ").concat(a," = a_").concat(a,";\n#else\n ").concat(n," ").concat(r," ").concat(a," = u_").concat(a,";\n#endif\n"):"\n#ifndef HAS_UNIFORM_u_".concat(a,"\n ").concat(a," = unpack_mix_").concat(s,"(a_").concat(a,", u_").concat(a,"_t);\n#else\n ").concat(n," ").concat(r," ").concat(a," = u_").concat(a,";\n#endif\n"):"define"===t?"\n#ifndef HAS_UNIFORM_u_".concat(a,"\nuniform lowp float u_").concat(a,"_t;\nattribute ").concat(n," ").concat(o," a_").concat(a,";\n#else\nuniform ").concat(n," ").concat(r," u_").concat(a,";\n#endif\n"):"vec4"===s?"\n#ifndef HAS_UNIFORM_u_".concat(a,"\n ").concat(n," ").concat(r," ").concat(a," = a_").concat(a,";\n#else\n ").concat(n," ").concat(r," ").concat(a," = u_").concat(a,";\n#endif\n"):"\n#ifndef HAS_UNIFORM_u_".concat(a,"\n ").concat(n," ").concat(r," ").concat(a," = unpack_mix_").concat(s,"(a_").concat(a,", u_").concat(a,"_t);\n#else\n ").concat(n," ").concat(r," ").concat(a," = u_").concat(a,";\n#endif\n")})),staticAttributes:r,usedDefines:a}}var Dn=function(){function e(){g(this,e),this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffers=[],this.vao=null}return v(e,[{key:"bind",value:function(e,t,n,r,i,a,o){this.context=e;for(var s=this.boundPaintVertexBuffers.length!==r.length,l=0;!s&&l=1||!this._validOp(n);)if(!this._nextOp(n,e)){delete this.operations[t];break}}}},{key:"_nextOp",value:function(e,t){return!!e.queued&&(e.from=e.to,e.to=e.queued,e.queued=null,e.phase=0,e.startTime=t,!0)}},{key:"_validOp",value:function(e){return e.from.hasData()&&e.to.hasData()}}]),e}()),Zn={0:null,1:"TERRAIN_VERTEX_MORPHING",2:"TERRAIN_WIREFRAME"};function zn(e,t){var n=1<0){var o=e.exported.now(),s=(o-t.timeAdded)/a,l=n?(o-n.timeAdded)/a:-1,u=r.getSource(),c=i.coveringZoomLevel({tileSize:u.tileSize,roundZoom:u.roundZoom}),d=!n||Math.abs(n.tileID.overscaledZ-c)>Math.abs(t.tileID.overscaledZ-c),f=d&&t.refreshedUponExpiration?1:e.clamp(d?s:1-l,0,1);return t.refreshedUponExpiration&&s>=1&&(t.refreshedUponExpiration=!1),n?{opacity:1,mix:1-f}:{opacity:f,mix:0}}return{opacity:1,mix:0}}var Gn=function(e){h(n,e);var t=m(n);function n(e){var r;g(this,n);var a={type:"raster-dem",maxzoom:e.transform.maxZoom},o=new q(et(),null),s=qe("mock-dem",a,o,e.style);return r=t.call(this,"mock-dem",s,!1),s.setEventedParent(i(r)),r._sourceLoaded=!0,r}return v(n,[{key:"_loadTile",value:function(e,t){e.state="loaded",t(null)}}]),n}(e.SourceCache),Vn=function(t){h(r,t);var n=m(r);function r(e){var t;g(this,r);var a=qe("proxy",{type:"geojson",maxzoom:e.transform.maxZoom},new q(et(),null),e.style);return t=n.call(this,"proxy",a,!1),a.setEventedParent(i(t)),t.map=t.getSource().map=e,t.used=t._sourceLoaded=!0,t.renderCache=[],t.renderCachePool=[],t.proxyCachedFBO={},t}return v(r,[{key:"update",value:function(t,n,r){var i=this;if(!t.freezeTileCoverage){this.transform=t;var a=t.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}).reduce((function(n,r){if(n[r.key]="",!i._tiles[r.key]){var a=new e.Tile(r,i._source.tileSize*r.overscaleFactor(),t.tileZoom);a.state="loaded",i._tiles[r.key]=a}return n}),{});for(var o in this._tiles)o in a||(this.freeFBO(o),this._tiles[o].unloadVectorData(),delete this._tiles[o])}}},{key:"freeFBO",value:function(e){var t=this.proxyCachedFBO[e];if(void 0!==t){var n,r=Object.values(t);(n=this.renderCachePool).push.apply(n,r),delete this.proxyCachedFBO[e]}}},{key:"deallocRenderCache",value:function(){this.renderCache.forEach((function(e){return e.fb.destroy()})),this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}}]),r}(e.SourceCache),qn=function(e){h(n,e);var t=m(n);function n(e,r,i){var a;return g(this,n),(a=t.call(this,e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)).proxyTileKey=r,a.projMatrix=i,a}return v(n)}(e.OverscaledTileID),Hn=function(t){h(r,t);var n=m(r);function r(t,i){var a;g(this,r),(a=n.call(this)).painter=t,a.terrainTileForTile={},a.prevTerrainTileForTile={};var o=function(t){var n=new e.StructArrayLayout4i8,r=new e.StructArrayLayout3ui6,i=131;n.reserve(17161),r.reserve(33800);for(var a=e.EXTENT/128,o=e.EXTENT+a/2,s=o+a,l=-a;lo||l<0||l>o?24575:0,d=e.clamp(Math.round(u),0,e.EXTENT),f=e.clamp(Math.round(l),0,e.EXTENT);n.emplaceBack(d+c,f,d,f)}for(var p=function(e,t){var n=t*i+e;r.emplaceBack(n+1,n,n+i),r.emplaceBack(n+i,n+i+1,n+1)},h=1;h<129;h++)for(var m=1;m<129;m++)p(m,h);return[0,129].forEach((function(e){for(var t=0;t<130;t++)p(t,e),p(e,t)})),[n,r,32768]}(),s=d(o,3),l=s[0],u=s[1],c=s[2],f=t.context;a.gridBuffer=f.createVertexBuffer(l,e.boundsAttributes.members),a.gridIndexBuffer=f.createIndexBuffer(u),a.gridSegments=e.SegmentVector.simpleSegment(0,0,l.length,u.length),a.gridNoSkirtSegments=e.SegmentVector.simpleSegment(0,0,l.length,c),a.proxyCoords=[],a.proxiedCoords={},a._visibleDemTiles=[],a._drapedRenderBatches=[],a._sourceTilesOverlap={},a.proxySourceCache=new Vn(i.map),a.orthoMatrix=e.create(),e.ortho(a.orthoMatrix,0,e.EXTENT,0,e.EXTENT,0,1);var p=f.gl;return a._overlapStencilMode=new e.StencilMode({func:p.GEQUAL,mask:255},0,255,p.KEEP,p.KEEP,p.REPLACE),a._previousZoom=t.transform.zoom,a.pool=[],a._findCoveringTileCache={},a._tilesDirty={},a.style=i,a._useVertexMorphing=!0,a._exaggeration=1,a._mockSourceCache=new Gn(i.map),a}return v(r,[{key:"style",set:function(e){e.on("data",this._onStyleDataEvent.bind(this)),e.on("neworder",this._checkRenderCacheEfficiency.bind(this)),this._style=e,this._checkRenderCacheEfficiency()}},{key:"update",value:function(t,n,r){var i=this;if(t&&t.terrain){this._style!==t&&(this.style=t),this.enabled=!0;var a=t.terrain.properties;this.sourceCache=0===t.terrain.drapeRenderMode?this._mockSourceCache:t._getSourceCache(a.get("source")),this._exaggeration=a.get("exaggeration");var o=function(){i.sourceCache.used&&e.warnOnce("Raster DEM source '".concat(i.sourceCache.id,"' is used both for terrain and as layer source.\nThis leads to lower resolution of hillshade. For full hillshade resolution but higher memory consumption, define another raster DEM source."));var t=i.getScaledDemTileSize();i.sourceCache.update(n,t,!0),i.resetTileLookupCache(i.sourceCache.id)};this.sourceCache.usedForTerrain||(this.resetTileLookupCache(this.sourceCache.id),this.sourceCache.usedForTerrain=!0,o(),this._initializing=!0),o(),n.updateElevation(!r),this.resetTileLookupCache(this.proxySourceCache.id),this.proxySourceCache.update(n),this._emptyDEMTextureDirty=!0}else this._disable()}},{key:"resetTileLookupCache",value:function(e){this._findCoveringTileCache[e]={}}},{key:"getScaledDemTileSize",value:function(){return this.sourceCache.getSource().tileSize/128*this.proxySourceCache.getSource().tileSize}},{key:"_checkRenderCacheEfficiency",value:function(){var t=this.renderCacheEfficiency(this._style);this._style.map._optimizeForTerrain||100!==t.efficiency&&e.warnOnce("Terrain render cache efficiency is not optimal (".concat(t.efficiency,"%) and performance\n may be affected negatively, consider placing all background, fill and line layers before layer\n with id '").concat(t.firstUndrapedLayer,"' or create a map using optimizeForTerrain: true option."))}},{key:"_onStyleDataEvent",value:function(e){e.coord&&"source"===e.dataType?this._clearRenderCacheForTile(e.sourceCacheId,e.coord):"style"===e.dataType&&(this._invalidateRenderCache=!0)}},{key:"_disable",value:function(){if(this.enabled&&(this.enabled=!1,this._sharedDepthStencil=void 0,this.proxySourceCache.deallocRenderCache(),this._style))for(var e in this._style._sourceCaches)this._style._sourceCaches[e].usedForTerrain=!1}},{key:"destroy",value:function(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this._emptyDepthBufferTexture&&this._emptyDepthBufferTexture.destroy(),this.pool.forEach((function(e){return e.fb.destroy()})),this.pool=[],this._depthFBO&&(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0)}},{key:"_source",value:function(){return this.enabled?this.sourceCache:null}},{key:"exaggeration",value:function(){return this._exaggeration}},{key:"visibleDemTiles",get:function(){return this._visibleDemTiles}},{key:"drapeBufferSize",get:function(){var e=2*this.proxySourceCache.getSource().tileSize;return[e,e]}},{key:"useVertexMorphing",set:function(e){this._useVertexMorphing=e}},{key:"updateTileBinding",value:function(t){var n=this;if(this.enabled){this.prevTerrainTileForTile=this.terrainTileForTile;var r=this.proxySourceCache,i=this.painter.transform;this._initializing&&(this._initializing=0===i._centerAltitude&&-1===this.getAtPointOrZero(e.MercatorCoordinate.fromLngLat(i.center),-1),this._emptyDEMTextureDirty=!this._initializing);var a=this.proxyCoords=r.getIds().map((function(e){var t=r.getTileByID(e).tileID;return t.projMatrix=i.calculateProjMatrix(t.toUnwrapped()),t}));!function(t,n){var r=n.transform.pointCoordinate(n.transform.getCameraPoint()),i=new e.pointGeometry(r.x,r.y);t.sort((function(t,n){if(n.overscaledZ-t.overscaledZ)return n.overscaledZ-t.overscaledZ;var r=new e.pointGeometry(t.canonical.x+(1<0&&e++,t+r}),0);return e?t/e:0}},{key:"_updateEmptyDEMTexture",value:function(){var t=this.painter.context,n=t.gl;t.activeTexture.set(n.TEXTURE2);var r=this._getLoadedAreaMinimum(),i=new e.RGBAImage({width:1,height:1},new Uint8Array(e.DEMData.pack(r,this.sourceCache.getSource().encoding)));this._emptyDEMTextureDirty=!1;var a=this._emptyDEMTexture;return a?a.update(i,{premultiply:!1}):a=this._emptyDEMTexture=new e.Texture(t,i,n.RGBA,{premultiply:!1}),a}},{key:"setupElevationDraw",value:function(t,n,r){var i,a=this.painter.context,o=a.gl,s=(i=this.sourceCache.getSource().encoding,{u_dem:2,u_dem_prev:4,u_dem_unpack:e.DEMData.getUnpackVector(i),u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_exaggeration:0,u_tile_tl_up:[0,0,1],u_tile_tr_up:[0,0,1],u_tile_br_up:[0,0,1],u_tile_bl_up:[0,0,1],u_tile_up_scale:1});s.u_dem_size=this.sourceCache.getSource().tileSize,s.u_exaggeration=this.exaggeration();var l=this.painter.transform,u=l.projection,c=t.tileID.canonical;s.u_tile_tl_up=u.upVector(c,0,0),s.u_tile_tr_up=u.upVector(c,e.EXTENT,0),s.u_tile_br_up=u.upVector(c,e.EXTENT,e.EXTENT),s.u_tile_bl_up=u.upVector(c,0,e.EXTENT),s.u_tile_up_scale=r&&r.useDenormalizedUpVectorScale?e.GLOBE_METERS_TO_ECEF:u.upVectorScale(c,l.center.lat,l.worldSize).metersToTile;var d=null,f=null,p=1;if(r&&r.morphing&&this._useVertexMorphing){var h=r.morphing.srcDemTile,m=r.morphing.dstDemTile;p=r.morphing.phase,h&&m&&(this._prepareDemTileUniforms(t,h,s,"_prev")&&(f=h),this._prepareDemTileUniforms(t,m,s)&&(d=m))}if(f&&d?(a.activeTexture.set(o.TEXTURE2),d.demTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE,o.NEAREST),a.activeTexture.set(o.TEXTURE4),f.demTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE,o.NEAREST),s.u_dem_lerp=p):(d=this.terrainTileForTile[t.tileID.key],a.activeTexture.set(o.TEXTURE2),(this._prepareDemTileUniforms(t,d,s)?d.demTexture:this.emptyDEMTexture).bind(o.NEAREST,o.CLAMP_TO_EDGE)),a.activeTexture.set(o.TEXTURE3),r&&r.useDepthForOcclusion?(this._depthTexture&&this._depthTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE),this._depthFBO&&(s.u_depth_size_inv=[1/this._depthFBO.width,1/this._depthFBO.height])):(this.emptyDepthBufferTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE),s.u_depth_size_inv=[1,1]),r&&r.useMeterToDem&&d){var g=(1<t.renderCachePool.length){var n=Object.values(t.proxyCachedFBO);t.proxyCachedFBO={};for(var r=0;r=0;l--){var u=o[l];if(t.getTileByID(u.key),void 0!==t.proxyCachedFBO[u.key]){var d=e[u.key],p=this.proxyToSource[u.key],h=0,m=function(e){var t=p[e],n=d[e];if(!n||n.length!==t.length||t.some((function(t,r){return t!==n[r]||s[e]&&s[e].hasOwnProperty(t.key)})))return h=-1,"break";++h};for(var g in p)if("break"===m(g))break;for(var v in t.proxyCachedFBO[u.key])t.renderCache[t.proxyCachedFBO[u.key][v]].dirty=h<0||h!==Object.values(d).length}}var y=c(this._drapedRenderBatches);y.sort((function(e,t){return t.end-t.start-(e.end-e.start)}));var _,b=f(y);try{for(b.s();!(_=b.n()).done;){var x,E=_.value,S=f(o);try{for(S.s();!(x=S.n()).done;){var w=x.value;if(!t.proxyCachedFBO[w.key]){var C=t.renderCachePool.pop();void 0===C&&t.renderCache.length<50&&(C=t.renderCache.length,t.renderCache.push(this._createFBO())),void 0!==C&&(t.proxyCachedFBO[w.key]={},t.proxyCachedFBO[w.key][E.start]=C,t.renderCache[C].dirty=!0)}}}catch(T){S.e(T)}finally{S.f()}}}catch(T){b.e(T)}finally{b.f()}this._tilesDirty={}}}},{key:"_setupStencil",value:function(e,t,n,r){if(r&&this._sourceTilesOverlap[r.id]){var i=this.painter.context,a=i.gl;if(t.length<=1)this._overlapStencilType=!1;else{var o;if(n.isTileClipped())o=t.length,this._overlapStencilMode.test={func:a.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(t[0].overscaledZ>t[t.length-1].overscaledZ))return void(this._overlapStencilType=!1);o=1,this._overlapStencilMode.test={func:a.GREATER,mask:255},this._overlapStencilType="Mask"}this._stencilRef+o>255&&(i.clear({stencil:0}),this._stencilRef=0),this._stencilRef+=o,this._overlapStencilMode.ref=this._stencilRef,n.isTileClipped()&&this._renderTileClippingMasks(t,this._overlapStencilMode.ref)}}else this._overlapStencilType&&(this._overlapStencilType=!1)}},{key:"clipOrMaskOverlapStencilType",value:function(){return"Clip"===this._overlapStencilType||"Mask"===this._overlapStencilType}},{key:"stencilModeForRTTOverlap",value:function(t){return this.renderingToTexture&&this._overlapStencilType?("Clip"===this._overlapStencilType&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs[t.key]),this._overlapStencilMode):e.StencilMode.disabled}},{key:"_renderTileClippingMasks",value:function(t,n){var r=this.painter,i=this.painter.context,a=i.gl;r._tileClippingMaskIDs={},i.setColorMode(e.ColorMode.disabled),i.setDepthMode(e.DepthMode.disabled);var o,s=r.useProgram("clippingMask"),l=f(t);try{for(l.s();!(o=l.n()).done;){var u=o.value,c=r._tileClippingMaskIDs[u.key]=--n;s.draw(i,a.TRIANGLES,e.DepthMode.disabled,new e.StencilMode({func:a.ALWAYS,mask:0},c,255,a.KEEP,a.KEEP,a.REPLACE),e.ColorMode.disabled,e.CullFaceMode.disabled,Un(u.projMatrix),"$clipping",r.tileExtentBuffer,r.quadTriangleIndexBuffer,r.tileExtentSegments)}}catch(d){l.e(d)}finally{l.f()}}},{key:"pointCoordinate",value:function(t){var n=this.painter.transform;if(t.x<0||t.x>n.width||t.y<0||t.y>n.height)return null;var r=[t.x,t.y,1,1];e.transformMat4$1(r,r,n.pixelMatrixInverse),e.scale$1(r,r,1/r[3]),r[0]/=n.worldSize,r[1]/=n.worldSize;var i=n._camera.position,a=e.mercatorZfromAltitude(1,n.center.lat),o=[i[0],i[1],i[2]/a,0],s=e.subtract([],r.slice(0,3),o);e.normalize(s,s);var l=this.raycast(o,s,this._exaggeration);return null!==l&&l?(e.scaleAndAdd(o,o,s,l),o[3]=o[2],o[2]*=a,o):null}},{key:"drawDepth",value:function(){var t=this.painter,n=t.context,r=this.proxySourceCache,i=Math.ceil(t.width),a=Math.ceil(t.height);if(!this._depthFBO||this._depthFBO.width===i&&this._depthFBO.height===a||(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0),!this._depthFBO){var o=n.gl,s=n.createFramebuffer(i,a,!0);n.activeTexture.set(o.TEXTURE0);var l=new e.Texture(n,{width:i,height:a,data:null},o.RGBA);l.bind(o.NEAREST,o.CLAMP_TO_EDGE),s.colorAttachment.set(l.texture);var u=n.createRenderbuffer(n.gl.DEPTH_COMPONENT16,i,a);s.depthAttachment.set(u),this._depthFBO=s,this._depthTexture=l}n.bindFramebuffer.set(this._depthFBO.framebuffer),n.viewport.set([0,0,i,a]),function(t,n,r,i){if("globe"!==t.transform.projection.name){var a=t.context,o=a.gl;a.clear({depth:1});var s,l=t.useProgram("terrainDepth"),u=new e.DepthMode(o.LESS,e.DepthMode.ReadWrite,t.depthRangeFor3D),c=f(i);try{for(c.s();!(s=c.n()).done;){var d=s.value,p=r.getTile(d),h=Pn(d.projMatrix,0);n.setupElevationDraw(p,l),l.draw(a,o.TRIANGLES,u,e.StencilMode.disabled,e.ColorMode.unblended,e.CullFaceMode.backCCW,h,"terrain_depth",n.gridBuffer,n.gridIndexBuffer,n.gridNoSkirtSegments)}}catch(m){c.e(m)}finally{c.f()}}}(t,this,r,this.proxyCoords)}},{key:"_setupProxiedCoordsForOrtho",value:function(e,t,n){if(e.getSource()instanceof Ge)return this._setupProxiedCoordsForImageSource(e,t,n);this._findCoveringTileCache[e.id]=this._findCoveringTileCache[e.id]||{};for(var r=this.proxiedCoords[e.id]=[],i=this.proxyCoords,a=0;ao+l.max.x||i+as+l.max.y},c=0;c0?(s=(o=e.EXTENT>>u)*((n.tileID.canonical.x<=c){var d=t.canonical.z-c;n.getSource().reparseOverscaled?(s=Math.max(t.canonical.z+2,n.transform.tileZoom),o=new e.OverscaledTileID(s,t.wrap,c,t.canonical.x>>d,t.canonical.y>>d)):0!==d&&(s=c,o=new e.OverscaledTileID(s,t.wrap,c,t.canonical.x>>d,t.canonical.y>>d))}o.key!==t.key&&(u.push(o.key),r=n.getTile(o))}var f=function(e){u.forEach((function(t){i[t]=e})),u.length=0};for(s-=1;s>=l&&(!r||!r.hasData());s--){r&&f(r.tileID.key);var p=o.calculateScaledKey(s);if((r=n.getTileByID(p))&&r.hasData())break;var h=i[p];if(null===h)break;void 0===h?u.push(p):r=n.getTileByID(h)}return f(r?r.tileID.key:null),r&&r.hasData()?r:null}},{key:"findDEMTileFor",value:function(e){return this.enabled?this._findTileCoveringTileID(e,this.sourceCache):null}},{key:"prepareDrawTile",value:function(){this.renderedToTile=!0}},{key:"_clearRenderCacheForTile",value:function(e,t){var n=this._tilesDirty[e];n||(n=this._tilesDirty[e]={}),n[t.key]=!0}},{key:"getWirefameBuffer",value:function(){if(!this.wireframeSegments){var t=function(t){for(var n=0,r=new e.StructArrayLayout2ui4,i=131,a=1;a<129;a++){for(var o=1;o<129;o++)n=a*i+o,r.emplaceBack(n,n+1),r.emplaceBack(n,n+i),r.emplaceBack(n+1,n+i),128===a&&r.emplaceBack(n+i,n+i+1);r.emplaceBack(n+1,n+1+i)}return r}();this.wireframeIndexBuffer=this.painter.context.createIndexBuffer(t),this.wireframeSegments=e.SegmentVector.simpleSegment(0,0,this.gridBuffer.length,t.length)}return[this.wireframeIndexBuffer,this.wireframeSegments]}}]),r}(e.Elevation),Yn=function(){function t(n,r,i,a,o,s){g(this,t);var l=n.gl;this.program=l.createProgram();var u=function(e){for(var t=[],n=0;n>16,s>>16],u_pixel_coord_lower:[65535&o,65535&s]}}var Xn=e.create(),Kn=function(t,n,r,i,a,o,s,l,u,c,d){var f=n.style.light,p=f.properties.get("position"),h=[p.x,p.y,p.z],m=e.create$1();"viewport"===f.properties.get("anchor")&&(e.fromRotation(m,-n.transform.angle),e.transformMat3(h,h,m));var g=f.properties.get("color"),v=n.transform,y={u_matrix:t,u_lightpos:h,u_lightintensity:f.properties.get("intensity"),u_lightcolor:[g.r,g.g,g.b],u_vertical_gradient:+r,u_opacity:i,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:Xn,u_merc_center:[0,0],u_up_dir:[0,0,0],u_height_lift:0,u_ao:a,u_edge_radius:o};return"globe"===v.projection.name&&(y.u_tile_id=[s.canonical.x,s.canonical.y,1<2&&void 0!==arguments[2]?arguments[2]:1}},sr=e.create(),lr=function(t,n,r,i,a,o,s){var l=t.transform,u="globe"===l.projection.name,c=u?e.globePixelsToTileUnits(l.zoom,n.canonical)*l._pixelsPerMercatorPixel:H(r,1,o),d={u_matrix:n.projMatrix,u_extrude_scale:c,u_intensity:s,u_inv_rot_matrix:sr,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(u){d.u_inv_rot_matrix=i,d.u_merc_center=a,d.u_tile_id=[n.canonical.x,n.canonical.y,1<0?1-1/(1.001-s):-s),u_contrast_factor:(o=i.paint.get("raster-contrast"),o>0?1/(1-o):1+o),u_spin_weights:mr(i.paint.get("raster-hue-rotate")),u_perspective_transform:a};var o,s};function mr(e){e*=Math.PI/180;var t=Math.sin(e),n=Math.cos(e);return[(2*n+1)/3,(-Math.sqrt(3)*t-n+1)/3,(Math.sqrt(3)*t-n+1)/3]}var gr,vr=e.create(),yr=function(t,n,r,i,a,o,s,l,u,c,d,f,p,h,m,g){var v=a.transform,y={u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:n?n.uSizeT:0,u_size:n?n.uSize:0,u_camera_to_center_distance:v.cameraToCenterDistance,u_rotate_symbol:+r,u_aspect_ratio:v.width/v.height,u_fade_change:a.options.fadeDuration?a.symbolFadeChange:1,u_matrix:o,u_label_plane_matrix:s,u_coord_matrix:l,u_is_text:+u,u_pitch_with_map:+i,u_texsize:c,u_texture:0,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:vr,u_merc_center:[0,0],u_camera_forward:[0,0,0],u_ecef_origin:[0,0,0],u_tile_matrix:vr,u_up_vector:[0,-1,0]};return"globe"===g.name&&(y.u_tile_id=[d.canonical.x,d.canonical.y,1<>16,f>>16],u_pixel_coord_lower:[65535&d,65535&f]}}(i,o,r,a),{u_matrix:t,u_opacity:n})},Sr={fillExtrusion:function(t){return{u_matrix:new e.UniformMatrix4f(t),u_lightpos:new e.Uniform3f(t),u_lightintensity:new e.Uniform1f(t),u_lightcolor:new e.Uniform3f(t),u_vertical_gradient:new e.Uniform1f(t),u_opacity:new e.Uniform1f(t),u_edge_radius:new e.Uniform1f(t),u_ao:new e.Uniform2f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_up_dir:new e.Uniform3f(t),u_height_lift:new e.Uniform1f(t)}},fillExtrusionPattern:function(t){return{u_matrix:new e.UniformMatrix4f(t),u_lightpos:new e.Uniform3f(t),u_lightintensity:new e.Uniform1f(t),u_lightcolor:new e.Uniform3f(t),u_vertical_gradient:new e.Uniform1f(t),u_height_factor:new e.Uniform1f(t),u_edge_radius:new e.Uniform1f(t),u_ao:new e.Uniform2f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_up_dir:new e.Uniform3f(t),u_height_lift:new e.Uniform1f(t),u_image:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_pixel_coord_upper:new e.Uniform2f(t),u_pixel_coord_lower:new e.Uniform2f(t),u_scale:new e.Uniform3f(t),u_fade:new e.Uniform1f(t),u_opacity:new e.Uniform1f(t)}},fill:function(t){return{u_matrix:new e.UniformMatrix4f(t)}},fillPattern:function(t){return{u_matrix:new e.UniformMatrix4f(t),u_image:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_pixel_coord_upper:new e.Uniform2f(t),u_pixel_coord_lower:new e.Uniform2f(t),u_scale:new e.Uniform3f(t),u_fade:new e.Uniform1f(t)}},fillOutline:function(t){return{u_matrix:new e.UniformMatrix4f(t),u_world:new e.Uniform2f(t)}},fillOutlinePattern:function(t){return{u_matrix:new e.UniformMatrix4f(t),u_world:new e.Uniform2f(t),u_image:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_pixel_coord_upper:new e.Uniform2f(t),u_pixel_coord_lower:new e.Uniform2f(t),u_scale:new e.Uniform3f(t),u_fade:new e.Uniform1f(t)}},circle:function(t){return{u_camera_to_center_distance:new e.Uniform1f(t),u_extrude_scale:new e.UniformMatrix2f(t),u_device_pixel_ratio:new e.Uniform1f(t),u_matrix:new e.UniformMatrix4f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_up_dir:new e.Uniform3f(t)}},collisionBox:function(t){return{u_matrix:new e.UniformMatrix4f(t),u_camera_to_center_distance:new e.Uniform1f(t),u_extrude_scale:new e.Uniform2f(t)}},collisionCircle:function(t){return{u_matrix:new e.UniformMatrix4f(t),u_inv_matrix:new e.UniformMatrix4f(t),u_camera_to_center_distance:new e.Uniform1f(t),u_viewport_size:new e.Uniform2f(t)}},debug:function(t){return{u_color:new e.UniformColor(t),u_matrix:new e.UniformMatrix4f(t),u_overlay:new e.Uniform1i(t),u_overlay_scale:new e.Uniform1f(t)}},clippingMask:function(t){return{u_matrix:new e.UniformMatrix4f(t)}},heatmap:function(t){return{u_extrude_scale:new e.Uniform1f(t),u_intensity:new e.Uniform1f(t),u_matrix:new e.UniformMatrix4f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_up_dir:new e.Uniform3f(t)}},heatmapTexture:function(t){return{u_image:new e.Uniform1i(t),u_color_ramp:new e.Uniform1i(t),u_opacity:new e.Uniform1f(t)}},hillshade:function(t){return{u_matrix:new e.UniformMatrix4f(t),u_image:new e.Uniform1i(t),u_latrange:new e.Uniform2f(t),u_light:new e.Uniform2f(t),u_shadow:new e.UniformColor(t),u_highlight:new e.UniformColor(t),u_accent:new e.UniformColor(t)}},hillshadePrepare:function(t){return{u_matrix:new e.UniformMatrix4f(t),u_image:new e.Uniform1i(t),u_dimension:new e.Uniform2f(t),u_zoom:new e.Uniform1f(t),u_unpack:new e.Uniform4f(t)}},line:function(t){return{u_matrix:new e.UniformMatrix4f(t),u_pixels_to_tile_units:new e.UniformMatrix2f(t),u_device_pixel_ratio:new e.Uniform1f(t),u_units_to_pixels:new e.Uniform2f(t),u_dash_image:new e.Uniform1i(t),u_gradient_image:new e.Uniform1i(t),u_image_height:new e.Uniform1f(t),u_texsize:new e.Uniform2f(t),u_scale:new e.Uniform3f(t),u_mix:new e.Uniform1f(t),u_alpha_discard_threshold:new e.Uniform1f(t),u_trim_offset:new e.Uniform2f(t)}},linePattern:function(t){return{u_matrix:new e.UniformMatrix4f(t),u_texsize:new e.Uniform2f(t),u_pixels_to_tile_units:new e.UniformMatrix2f(t),u_device_pixel_ratio:new e.Uniform1f(t),u_image:new e.Uniform1i(t),u_units_to_pixels:new e.Uniform2f(t),u_scale:new e.Uniform3f(t),u_fade:new e.Uniform1f(t),u_alpha_discard_threshold:new e.Uniform1f(t)}},raster:function(t){return{u_matrix:new e.UniformMatrix4f(t),u_tl_parent:new e.Uniform2f(t),u_scale_parent:new e.Uniform1f(t),u_fade_t:new e.Uniform1f(t),u_opacity:new e.Uniform1f(t),u_image0:new e.Uniform1i(t),u_image1:new e.Uniform1i(t),u_brightness_low:new e.Uniform1f(t),u_brightness_high:new e.Uniform1f(t),u_saturation_factor:new e.Uniform1f(t),u_contrast_factor:new e.Uniform1f(t),u_spin_weights:new e.Uniform3f(t),u_perspective_transform:new e.Uniform2f(t)}},symbolIcon:function(t){return{u_is_size_zoom_constant:new e.Uniform1i(t),u_is_size_feature_constant:new e.Uniform1i(t),u_size_t:new e.Uniform1f(t),u_size:new e.Uniform1f(t),u_camera_to_center_distance:new e.Uniform1f(t),u_rotate_symbol:new e.Uniform1i(t),u_aspect_ratio:new e.Uniform1f(t),u_fade_change:new e.Uniform1f(t),u_matrix:new e.UniformMatrix4f(t),u_label_plane_matrix:new e.UniformMatrix4f(t),u_coord_matrix:new e.UniformMatrix4f(t),u_is_text:new e.Uniform1i(t),u_pitch_with_map:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_camera_forward:new e.Uniform3f(t),u_tile_matrix:new e.UniformMatrix4f(t),u_up_vector:new e.Uniform3f(t),u_ecef_origin:new e.Uniform3f(t),u_texture:new e.Uniform1i(t)}},symbolSDF:function(t){return{u_is_size_zoom_constant:new e.Uniform1i(t),u_is_size_feature_constant:new e.Uniform1i(t),u_size_t:new e.Uniform1f(t),u_size:new e.Uniform1f(t),u_camera_to_center_distance:new e.Uniform1f(t),u_rotate_symbol:new e.Uniform1i(t),u_aspect_ratio:new e.Uniform1f(t),u_fade_change:new e.Uniform1f(t),u_matrix:new e.UniformMatrix4f(t),u_label_plane_matrix:new e.UniformMatrix4f(t),u_coord_matrix:new e.UniformMatrix4f(t),u_is_text:new e.Uniform1i(t),u_pitch_with_map:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_texture:new e.Uniform1i(t),u_gamma_scale:new e.Uniform1f(t),u_device_pixel_ratio:new e.Uniform1f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_camera_forward:new e.Uniform3f(t),u_tile_matrix:new e.UniformMatrix4f(t),u_up_vector:new e.Uniform3f(t),u_ecef_origin:new e.Uniform3f(t),u_is_halo:new e.Uniform1i(t)}},symbolTextAndIcon:function(t){return{u_is_size_zoom_constant:new e.Uniform1i(t),u_is_size_feature_constant:new e.Uniform1i(t),u_size_t:new e.Uniform1f(t),u_size:new e.Uniform1f(t),u_camera_to_center_distance:new e.Uniform1f(t),u_rotate_symbol:new e.Uniform1i(t),u_aspect_ratio:new e.Uniform1f(t),u_fade_change:new e.Uniform1f(t),u_matrix:new e.UniformMatrix4f(t),u_label_plane_matrix:new e.UniformMatrix4f(t),u_coord_matrix:new e.UniformMatrix4f(t),u_is_text:new e.Uniform1i(t),u_pitch_with_map:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_texsize_icon:new e.Uniform2f(t),u_texture:new e.Uniform1i(t),u_texture_icon:new e.Uniform1i(t),u_gamma_scale:new e.Uniform1f(t),u_device_pixel_ratio:new e.Uniform1f(t),u_is_halo:new e.Uniform1i(t)}},background:function(t){return{u_matrix:new e.UniformMatrix4f(t),u_opacity:new e.Uniform1f(t),u_color:new e.UniformColor(t)}},backgroundPattern:function(t){return{u_matrix:new e.UniformMatrix4f(t),u_opacity:new e.Uniform1f(t),u_image:new e.Uniform1i(t),u_pattern_tl_a:new e.Uniform2f(t),u_pattern_br_a:new e.Uniform2f(t),u_pattern_tl_b:new e.Uniform2f(t),u_pattern_br_b:new e.Uniform2f(t),u_texsize:new e.Uniform2f(t),u_mix:new e.Uniform1f(t),u_pattern_size_a:new e.Uniform2f(t),u_pattern_size_b:new e.Uniform2f(t),u_scale_a:new e.Uniform1f(t),u_scale_b:new e.Uniform1f(t),u_pixel_coord_upper:new e.Uniform2f(t),u_pixel_coord_lower:new e.Uniform2f(t),u_tile_units_to_pixels:new e.Uniform1f(t)}},terrainRaster:Mn,terrainDepth:Mn,skybox:function(t){return{u_matrix:new e.UniformMatrix4f(t),u_sun_direction:new e.Uniform3f(t),u_cubemap:new e.Uniform1i(t),u_opacity:new e.Uniform1f(t),u_temporal_offset:new e.Uniform1f(t)}},skyboxGradient:function(t){return{u_matrix:new e.UniformMatrix4f(t),u_color_ramp:new e.Uniform1i(t),u_center_direction:new e.Uniform3f(t),u_radius:new e.Uniform1f(t),u_opacity:new e.Uniform1f(t),u_temporal_offset:new e.Uniform1f(t)}},skyboxCapture:function(t){return{u_matrix_3f:new e.UniformMatrix3f(t),u_sun_direction:new e.Uniform3f(t),u_sun_intensity:new e.Uniform1f(t),u_color_tint_r:new e.Uniform4f(t),u_color_tint_m:new e.Uniform4f(t),u_luminance:new e.Uniform1f(t)}},globeRaster:function(t){return{u_proj_matrix:new e.UniformMatrix4f(t),u_globe_matrix:new e.UniformMatrix4f(t),u_normalize_matrix:new e.UniformMatrix4f(t),u_merc_matrix:new e.UniformMatrix4f(t),u_zoom_transition:new e.Uniform1f(t),u_merc_center:new e.Uniform2f(t),u_image0:new e.Uniform1i(t),u_grid_matrix:new e.UniformMatrix3f(t),u_frustum_tl:new e.Uniform3f(t),u_frustum_tr:new e.Uniform3f(t),u_frustum_br:new e.Uniform3f(t),u_frustum_bl:new e.Uniform3f(t),u_globe_pos:new e.Uniform3f(t),u_globe_radius:new e.Uniform1f(t),u_viewport:new e.Uniform2f(t)}},globeAtmosphere:function(t){return{u_frustum_tl:new e.Uniform3f(t),u_frustum_tr:new e.Uniform3f(t),u_frustum_br:new e.Uniform3f(t),u_frustum_bl:new e.Uniform3f(t),u_horizon:new e.Uniform1f(t),u_transition:new e.Uniform1f(t),u_fadeout_range:new e.Uniform1f(t),u_color:new e.Uniform4f(t),u_high_color:new e.Uniform4f(t),u_space_color:new e.Uniform4f(t),u_star_intensity:new e.Uniform1f(t),u_star_density:new e.Uniform1f(t),u_star_size:new e.Uniform1f(t),u_temporal_offset:new e.Uniform1f(t),u_horizon_angle:new e.Uniform1f(t),u_rotation_matrix:new e.UniformMatrix4f(t)}}};function wr(t,n,r,i,a,o,s){for(var l=t.context,u=l.gl,c=t.transform,d=t.useProgram("collisionBox"),f=[],p=0,h=0,m=0;m0){var S=e.create(),w=b;e.mul(S,y.placementInvProjMatrix,c.glCoordMatrix),e.mul(S,S,y.placementViewportMatrix),f.push({circleArray:E,circleOffset:h,transform:w,invTransform:S,projection:y.getProjection()}),h=p+=E.length/4}x&&(t.terrain&&t.terrain.setupElevationDraw(v,d),d.draw(l,u.LINES,e.DepthMode.disabled,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.disabled,ar(b,c,v,y.getProjection()),r.id,x.layoutVertexBuffer,x.indexBuffer,x.segments,null,c.zoom,null,[x.collisionVertexBuffer,x.collisionVertexBufferExt]))}}if(s&&f.length){var C=t.useProgram("collisionCircle"),T=new e.StructArrayLayout2f1f2i16;T.resize(4*p),T._trim();for(var A=0,k=0,D=f;k=0&&(m[b.associatedIconIndex]={shiftedAnchor:R,angle:Z})}else Dt(b.numGlyphs,p)}if(d){h.clear();for(var U=t.icon.placedSymbolArray,j=0;j0&&E.push("FAUX_AO");var S,w=f(i);try{for(w.s();!(S=w.n()).done;){var C=S.value,T=n.getTile(C),A=T.getBucket(r);if(A&&A.projection.name===c.projection.name){var k=A.programConfigurations.get(r.id),D=t.useProgram(p?"fillExtrusionPattern":"fillExtrusion",k,E);if(t.terrain){var O=t.terrain;if(t.style.terrainSetForDrapingOnly())O.setupElevationDraw(T,D,{useMeterToDem:!0});else{if(!A.enableTerrain)continue;if(O.setupElevationDraw(T,D,{useMeterToDem:!0}),Nr(l,n,C,A,r,O),!A.centroidVertexBuffer){var I=D.attributes.a_centroid_pos;void 0!==I&&u.vertexAttrib2f(I,0,0)}}}p&&(t.context.activeTexture.set(u.TEXTURE0),T.imageAtlasTexture.bind(u.LINEAR,u.CLAMP_TO_EDGE),k.updatePaintBuffers(h));var R=d.constantOr(null);if(R&&T.imageAtlas){var N=T.imageAtlas,M=N.patternPositions[R.to.toString()],P=N.patternPositions[R.from.toString()];M&&P&&k.setConstantPatternPositions(M,P)}var L=t.translatePosMatrix(C.projMatrix,T,r.paint.get("fill-extrusion-translate"),r.paint.get("fill-extrusion-translate-anchor")),F=c.projection.createInversionMatrix(c,C.canonical),B=r.paint.get("fill-extrusion-vertical-gradient"),Z=p?$n(L,t,B,m,g,v,C,h,T,y,b,x,F):Kn(L,t,B,m,g,v,C,y,b,x,F);t.prepareDrawProgram(l,D,C.toUnwrapped());var z=[];t.terrain&&z.push(A.centroidVertexBuffer),_&&z.push(A.layoutVertexExtBuffer),D.draw(l,l.gl.TRIANGLES,a,o,s,e.CullFaceMode.backCCW,Z,r.id,A.layoutVertexBuffer,A.indexBuffer,A.segments,r.paint,t.transform.zoom,k,z)}}}catch(U){w.e(U)}finally{w.f()}}function Nr(t,n,r,i,a,o){for(var s,l,u,c=[function(t){var n=t.canonical.x-1,r=t.wrap;return n<0&&(n=(1<t.max.x?n.min.x-e.EXTENT:t.max.x,p},m=function(t,n){return p[0]=Math.min(t.min.x,n.min.x),p[1]=Math.max(t.max.x,n.max.x),p[2]=e.EXTENT-n.min.y>t.max.y?n.min.y-e.EXTENT:t.max.y,p},g=[function(e,t){return h(e,t)},function(e,t){return h(t,e)},function(e,t){return m(e,t)},function(e,t){return m(t,e)}],v=new e.pointGeometry(0,0),y=function(t,n,i,a,c){var d=[[a?i:t,a?t:i,0],[a?i:n,a?n:i,0]],f=c<0?e.EXTENT+c:c,p=[a?f:(t+n)/2,a?(t+n)/2:f,0];return 0===i&&c<0||0!==i&&c>0?o.getForTilePoints(u,[p],!0,l):d.push(p),o.getForTilePoints(r,d,!0,s),Math.max(d[0][2],d[1][2],p[2])/o.exaggeration()},_=0;_<4;_++){var b=(_<2?1:5)-_,x=i.borders[_];if(0!==x.length){var E=u=c[_](r),S=d(E);if(S&&S instanceof e.FillExtrusionBucket&&S.enableTerrain&&(i.borderDoneWithNeighborZ[_]!==S.canonical.z||S.borderDoneWithNeighborZ[b]!==i.canonical.z)&&(l=o.findDEMTileFor(E))&&l.dem){if(!s){var w=o.findDEMTileFor(r);if(!w||!w.dem)return;s=w}var C=S.borders[b],T=0,A=S.borderDoneWithNeighborZ[b]!==i.canonical.z;if(i.canonical.z===S.canonical.z){for(var k=0;kO[0]+3);)A&&S.encodeCentroid(void 0,I,!1),T++;if(I&&TO[1]-3)&&(N++,++T!==C.length);)I=S.featuresOnBorder[C[T]];if(I=S.featuresOnBorder[C[R]],D.intersectsCount()>1||I.intersectsCount()>1||1!==N){1!==N&&(T=R),i.encodeCentroid(void 0,D,!1),A&&S.encodeCentroid(void 0,I,!1);continue}var M=g[_](D,I),P=_%2?e.EXTENT-1:0;v.x=y(M[0],Math.min(e.EXTENT-1,M[1]),P,_<2,M[2]),v.y=0,i.encodeCentroid(v,D,!1),A&&S.encodeCentroid(v,I,!1)}else i.encodeCentroid(void 0,D,!1)}i.borderDoneWithNeighborZ[_]=S.canonical.z,i.needsCentroidUpdate=!0,A&&(S.borderDoneWithNeighborZ[b]=i.canonical.z,S.needsCentroidUpdate=!0)}else{var L,F=f(x);try{for(F.s();!(L=F.n()).done;){var B=L.value;i.encodeCentroid(void 0,i.featuresOnBorder[B],!1)}}catch(j){F.e(j)}finally{F.f()}if(A){var Z,z=f(C);try{for(z.s();!(Z=z.n()).done;){var U=Z.value;S.encodeCentroid(void 0,S.featuresOnBorder[U],!1)}}catch(j){z.e(j)}finally{z.f()}S.borderDoneWithNeighborZ[b]=i.canonical.z,S.needsCentroidUpdate=!0}i.borderDoneWithNeighborZ[_]=S.canonical.z,i.needsCentroidUpdate=!0}}}}(i.needsCentroidUpdate||!i.centroidVertexBuffer&&0!==i.centroidVertexArray.length)&&i.uploadCentroid(t)}var Mr=new e.Color(1,0,0,1),Pr=new e.Color(0,1,0,1),Lr=new e.Color(0,0,1,1),Fr=new e.Color(1,0,1,1),Br=new e.Color(0,1,1,1);function Zr(t,n,r){var i=t.context,a=t.transform,o=i.gl,s="globe"===a.projection.name,l=s?["PROJECTION_GLOBE_VIEW"]:null,u=r.projMatrix;if(s&&e.globeToMercatorTransition(a.zoom)>0){var c=e.transitionTileAABBinECEF(r.canonical,a),d=e.globeDenormalizeECEF(c);u=e.multiply(new Float32Array(16),a.globeMatrix,d),e.multiply(u,a.projMatrix,u)}var f=t.useProgram("debug",null,l),p=n.getTileByID(r.key);t.terrain&&t.terrain.setupElevationDraw(p,f);var h=e.DepthMode.disabled,m=e.StencilMode.disabled,g=t.colorModeForRenderPass(),v="$debug";i.activeTexture.set(o.TEXTURE0),t.emptyTexture.bind(o.LINEAR,o.CLAMP_TO_EDGE),s?p._makeGlobeTileDebugBuffers(t.context,a):p._makeDebugTileBoundsBuffers(t.context,a.projection);var y=p._tileDebugBuffer||t.debugBuffer,_=p._tileDebugIndexBuffer||t.debugIndexBuffer,b=p._tileDebugSegments||t.debugSegments;f.draw(i,o.LINE_STRIP,h,m,g,e.CullFaceMode.disabled,or(u,e.Color.red),v,y,_,b,null,null,null,[p._globeTileDebugBorderBuffer]);var x=p.latestRawTileData,E=Math.floor((x&&x.byteLength||0)/1024),S=n.getTile(r).tileSize,w=512/Math.min(S,512)*(r.overscaledZ/a.zoom)*.5,C=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(C+=" => ".concat(r.overscaledZ)),function(e,t){e.initDebugOverlayCanvas();var n=e.debugOverlayCanvas,r=e.context.gl,i=e.debugOverlayCanvas.getContext("2d");i.clearRect(0,0,n.width,n.height),i.shadowColor="white",i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle="white",i.textBaseline="top",i.font="bold 36px Open Sans, sans-serif",i.fillText(t,5,5),i.strokeText(t,5,5),e.debugOverlayTexture.update(n),e.debugOverlayTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}(t,C+=" ".concat(E,"kb"));var T=p._tileDebugTextBuffer||t.debugBuffer,A=p._tileDebugTextIndexBuffer||t.quadTriangleIndexBuffer,k=p._tileDebugTextSegments||t.debugSegments;f.draw(i,o.TRIANGLES,h,m,e.ColorMode.alphaBlended,e.CullFaceMode.disabled,or(u,e.Color.transparent,w),v,T,A,k,null,null,null,[p._globeTileDebugTextBuffer])}function zr(e,t,n,r){jr(e,0,t+n/2,e.transform.width,n,r)}function Ur(e,t,n,r){jr(e,t-n/2,0,n,e.transform.height,r)}function jr(t,n,r,i,a,o){var s=t.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(n*e.exported.devicePixelRatio,r*e.exported.devicePixelRatio,i*e.exported.devicePixelRatio,a*e.exported.devicePixelRatio),s.clear({color:o}),l.disable(l.SCISSOR_TEST)}var Gr=e.createLayout([{name:"a_pos_3f",components:3,type:"Float32"}]).members;function Vr(e,t,n,r){e.emplaceBack(t,n,r)}var qr=v((function t(n){g(this,t),this.vertexArray=new e.StructArrayLayout3f12,this.indices=new e.StructArrayLayout3ui6,Vr(this.vertexArray,-1,-1,1),Vr(this.vertexArray,1,-1,1),Vr(this.vertexArray,-1,1,1),Vr(this.vertexArray,1,1,1),Vr(this.vertexArray,-1,-1,-1),Vr(this.vertexArray,1,-1,-1),Vr(this.vertexArray,-1,1,-1),Vr(this.vertexArray,1,1,-1),this.indices.emplaceBack(5,1,3),this.indices.emplaceBack(3,7,5),this.indices.emplaceBack(6,2,0),this.indices.emplaceBack(0,4,6),this.indices.emplaceBack(2,6,7),this.indices.emplaceBack(7,3,2),this.indices.emplaceBack(5,4,0),this.indices.emplaceBack(0,1,5),this.indices.emplaceBack(0,2,3),this.indices.emplaceBack(3,1,0),this.indices.emplaceBack(7,6,4),this.indices.emplaceBack(4,5,7),this.vertexBuffer=n.createVertexBuffer(this.vertexArray,Gr),this.indexBuffer=n.createIndexBuffer(this.indices),this.segment=e.SegmentVector.simpleSegment(0,0,36,12)}));function Hr(t,n,r,i,a,o){var s=t.gl,l=n.paint.get("sky-atmosphere-color"),u=n.paint.get("sky-atmosphere-halo-color"),c=n.paint.get("sky-atmosphere-sun-intensity"),d=function(e,t,n,r,i){return{u_matrix_3f:e,u_sun_direction:t,u_sun_intensity:n,u_color_tint_r:[r.r,r.g,r.b,r.a],u_color_tint_m:[i.r,i.g,i.b,i.a],u_luminance:5e-5}}(e.fromMat4(e.create$1(),i),a,c,l,u);s.framebufferTexture2D(s.FRAMEBUFFER,s.COLOR_ATTACHMENT0,s.TEXTURE_CUBE_MAP_POSITIVE_X+o,n.skyboxTexture,0),r.draw(t,s.TRIANGLES,e.DepthMode.disabled,e.StencilMode.disabled,e.ColorMode.unblended,e.CullFaceMode.frontCW,d,"skyboxCapture",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}var Yr=e.createLayout([{type:"Float32",name:"a_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),Wr=function(){function t(n){g(this,t);var r=new e.StructArrayLayout5f20;r.emplaceBack(-1,1,1,0,0),r.emplaceBack(1,1,1,1,0),r.emplaceBack(1,-1,1,1,1),r.emplaceBack(-1,-1,1,0,1);var i=new e.StructArrayLayout3ui6;i.emplaceBack(0,1,2),i.emplaceBack(2,3,0),this.vertexBuffer=n.createVertexBuffer(r,Yr.members),this.indexBuffer=n.createIndexBuffer(i),this.segments=e.SegmentVector.simpleSegment(0,0,4,2)}return v(t,[{key:"destroy",value:function(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy()}}]),t}(),Xr={symbol:function(t,n,r,i,a){if("translucent"===t.renderPass){var o=e.StencilMode.disabled,s=t.colorModeForRenderPass();r.layout.get("text-variable-anchor")&&function(t,n,r,i,a,o,s){var l,u=n.transform,c="map"===a,d="map"===o,p=f(t);try{for(p.s();!(l=p.n()).done;){var h=l.value,m=i.getTile(h),g=m.getBucket(r);if(g&&g.text&&g.text.segments.get().length){var v=e.evaluateSizeForZoom(g.textSizeData,u.zoom),y=Pt(h,g.getProjection(),u),_=u.calculatePixelsToTileUnitsMatrix(m),b=ht(y,m.tileID.canonical,d,c,u,g.getProjection(),_),x="none"!==r.layout.get("icon-text-fit")&&g.hasIconData();if(v){var E=Math.pow(2,u.zoom-m.tileID.overscaledZ);Ar(g,c,d,s,e.symbolSize,u,b,h,E,v,x)}}}}catch(S){p.e(S)}finally{p.f()}}(i,t,r,n,r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),a),0!==r.paint.get("icon-opacity").constantOr(1)&&Dr(t,n,r,i,!1,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),r.layout.get("icon-rotation-alignment"),r.layout.get("icon-pitch-alignment"),r.layout.get("icon-keep-upright"),o,s),0!==r.paint.get("text-opacity").constantOr(1)&&Dr(t,n,r,i,!0,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),r.layout.get("text-keep-upright"),o,s),n.map.showCollisionBoxes&&(wr(t,n,r,i,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),!0),wr(t,n,r,i,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),!1))}},circle:function(t,n,r,i){if("translucent"===t.renderPass){var a=r.paint.get("circle-opacity"),o=r.paint.get("circle-stroke-width"),s=r.paint.get("circle-stroke-opacity"),l=void 0!==r.layout.get("circle-sort-key").constantOr(1);if(0!==a.constantOr(1)||0!==o.constantOr(1)&&0!==s.constantOr(1)){for(var u=t.context,c=u.gl,d=t.transform,p=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),h=e.StencilMode.disabled,m=t.colorModeForRenderPass(),g="globe"===d.projection.name,v=[e.mercatorXfromLng(d.center.lng),e.mercatorYfromLat(d.center.lat)],y=[],_=0;_a)this.transform.fogCullDistSq=null;else{var o=i+.78*(a-i);this.transform.fogCullDistSq=o*o}}}},{key:"terrain",get:function(){return this.transform._terrainEnabled()&&this._terrain&&this._terrain.enabled?this._terrain:null}},{key:"resize",value:function(t,n){if(this.width=t*e.exported.devicePixelRatio,this.height=n*e.exported.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style){var r,i=f(this.style.order);try{for(i.s();!(r=i.n()).done;){var a=r.value;this.style._layers[a].resize()}}catch(o){i.e(o)}finally{i.f()}}}},{key:"setup",value:function(){var t=this.context,n=new e.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(e.EXTENT,0),n.emplaceBack(0,e.EXTENT),n.emplaceBack(e.EXTENT,e.EXTENT),this.tileExtentBuffer=t.createVertexBuffer(n,e.posAttributes.members),this.tileExtentSegments=e.SegmentVector.simpleSegment(0,0,4,2);var r=new e.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(e.EXTENT,0),r.emplaceBack(0,e.EXTENT),r.emplaceBack(e.EXTENT,e.EXTENT),this.debugBuffer=t.createVertexBuffer(r,e.posAttributes.members),this.debugSegments=e.SegmentVector.simpleSegment(0,0,4,5);var i=new e.StructArrayLayout2i4;i.emplaceBack(-1,-1),i.emplaceBack(1,-1),i.emplaceBack(-1,1),i.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(i,e.posAttributes.members),this.viewportSegments=e.SegmentVector.simpleSegment(0,0,4,2);var a=new e.StructArrayLayout4i8;a.emplaceBack(0,0,0,0),a.emplaceBack(e.EXTENT,0,e.EXTENT,0),a.emplaceBack(0,e.EXTENT,0,e.EXTENT),a.emplaceBack(e.EXTENT,e.EXTENT,e.EXTENT,e.EXTENT),this.mercatorBoundsBuffer=t.createVertexBuffer(a,e.boundsAttributes.members),this.mercatorBoundsSegments=e.SegmentVector.simpleSegment(0,0,4,2);var o=new e.StructArrayLayout3ui6;o.emplaceBack(0,1,2),o.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(o);for(var s=new e.StructArrayLayout1ui2,l=0,u=[0,1,3,2,0];l256&&this.clearStencil(),l.setColorMode(e.ColorMode.disabled),l.setDepthMode(e.DepthMode.disabled);var c=this.useProgram("clippingMask");this._tileClippingMaskIDs={};var d,p=f(r);try{for(p.s();!(d=p.n()).done;){var h=d.value,m=n.getTile(h),g=this._tileClippingMaskIDs[h.key]=this.nextStencilID++,v=this.getTileBoundsBuffers(m),y=v.tileBoundsBuffer,_=v.tileBoundsIndexBuffer,b=v.tileBoundsSegments;c.draw(l,u.TRIANGLES,e.DepthMode.disabled,new e.StencilMode({func:u.ALWAYS,mask:0},g,255,u.KEEP,u.KEEP,u.REPLACE),e.ColorMode.disabled,e.CullFaceMode.disabled,Un(h.projMatrix),"$clipping",y,_,b)}}catch(x){p.e(x)}finally{p.f()}}}},{key:"stencilModeFor3D",value:function(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();var t=this.nextStencilID++,n=this.context.gl;return new e.StencilMode({func:n.NOTEQUAL,mask:255},t,255,n.KEEP,n.KEEP,n.REPLACE)}},{key:"stencilModeForClipping",value:function(t){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(t);var n=this.context.gl;return new e.StencilMode({func:n.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,n.KEEP,n.KEEP,n.REPLACE)}},{key:"stencilConfigForOverlap",value:function(t){var n=this.context.gl,i=t.sort((function(e,t){return t.overscaledZ-e.overscaledZ})),a=i[i.length-1].overscaledZ,o=i[0].overscaledZ-a+1;if(o>1){this.currentStencilSource=void 0,this.nextStencilID+o>256&&this.clearStencil();for(var s={},l=0;l=0;this.currentLayer--){var x=this.style._layers[i[this.currentLayer]],E=t._getLayerSourceCache(x);if(!x.isSky()){var S=E?u[E.id]:void 0;this._renderTileClippingMasks(x,E,S),this.renderLayer(this,E,x,S)}}if(this.style.fog&&this.transform.projection.supportsFog&&function(t,n){var r=t.context,i=r.gl,a=t.transform,o=new e.DepthMode(i.LEQUAL,e.DepthMode.ReadOnly,[0,1]),s=t.useProgram("globeAtmosphere",null,"globe"===a.projection.name?["PROJECTION_GLOBE_VIEW","FOG"]:["FOG"]),l=e.globeToMercatorTransition(a.zoom),u=n.properties.get("color").toArray01(),c=n.properties.get("high-color").toArray01(),d=n.properties.get("space-color").toArray01PremultipliedAlpha(),f=e.identity$1([]);e.rotateY$1(f,f,-e.degToRad(a._center.lng)),e.rotateX$1(f,f,e.degToRad(a._center.lat)),e.rotateZ$1(f,f,a.angle),e.rotateX$1(f,f,-a._pitch);var p=e.fromQuat(new Float32Array(16),f),h=e.mapValue(n.properties.get("star-intensity"),0,1,0,.25),m=5e-4,g=e.mapValue(n.properties.get("horizon-blend"),0,1,m,.25),v=e.globeUseCustomAntiAliasing(t,r,a)&&g===m?a.worldSize/(2*Math.PI*1.025)-1:a.globeRadius,y=t.frameCounter/1e3%1,_=e.length(a.globeCenterInViewSpace),b=Math.sqrt(Math.pow(_,2)-Math.pow(v,2)),x=Math.acos(b/_),E=function(t,n,r,i,a,o,s,l,u,c,d,f,p,h){return{u_frustum_tl:t,u_frustum_tr:n,u_frustum_br:r,u_frustum_bl:i,u_horizon:a,u_transition:o,u_fadeout_range:s,u_color:l,u_high_color:u,u_space_color:c,u_star_intensity:d,u_star_size:5*e.exported.devicePixelRatio,u_star_density:0,u_temporal_offset:f,u_horizon_angle:p,u_rotation_matrix:h}}(a.frustumCorners.TL,a.frustumCorners.TR,a.frustumCorners.BR,a.frustumCorners.BL,a.frustumCorners.horizon,l,g,u,c,d,h,y,x,p);t.prepareDrawProgram(r,s);var S=t.atmosphereBuffer;S&&s.draw(r,i.TRIANGLES,o,e.StencilMode.disabled,e.ColorMode.alphaBlended,e.CullFaceMode.backCW,E,"skybox",S.vertexBuffer,S.indexBuffer,S.segments)}(this,this.style.fog),this.renderPass="sky",(e.globeToMercatorTransition(this.transform.zoom)>0||"globe"!==this.transform.projection.name)&&this.transform.isHorizonVisible())for(this.currentLayer=0;this.currentLayer0?t.pop():null}},{key:"isPatternMissing",value:function(e){if(!e)return!1;if(!e.from||!e.to)return!0;var t=this.imageManager.getPattern(e.from.toString()),n=this.imageManager.getPattern(e.to.toString());return!t||!n}},{key:"currentGlobalDefines",value:function(){var e=this.terrain&&this.terrain.renderingToTexture,t=this.style&&this.style.fog,n=[];return this.terrain&&!this.terrain.renderingToTexture&&n.push("TERRAIN"),t&&!e&&0!==t.getOpacity(this.transform.pitch)&&n.push("FOG"),e&&n.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&n.push("OVERDRAW_INSPECTOR"),n}},{key:"useProgram",value:function(e,t,n){this.cache=this.cache||{};var r=n||[],i=this.currentGlobalDefines().concat(r),a=Yn.cacheKey(Tn[e],e,i,t);return this.cache[a]||(this.cache[a]=new Yn(this.context,e,Tn[e],t,Sr[e],i)),this.cache[a]}},{key:"setCustomLayerDefaults",value:function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.frontFace.setDefault(),this.context.cullFaceSide.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}},{key:"setBaseState",value:function(){var e=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(e.FUNC_ADD)}},{key:"initDebugOverlayCanvas",value:function(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=e.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new e.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}},{key:"destroy",value:function(){this._terrain&&this._terrain.destroy(),this.globeSharedBuffers&&this.globeSharedBuffers.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this.atmosphereBuffer&&this.atmosphereBuffer.destroy()}},{key:"prepareDrawTile",value:function(){this.terrain&&this.terrain.prepareDrawTile()}},{key:"prepareDrawProgram",value:function(t,n,r){if(!this.terrain||!this.terrain.renderingToTexture){var i=this.style.fog;if(i){var a=i.getOpacity(this.transform.pitch),o=function(t,n,r,i,a,o,s,l,u,c,d){var f=t.transform,p=n.properties.get("color").toArray01();p[3]=i;var h=t.frameCounter/1e3%1;return{u_fog_matrix:r?f.calculateFogTileMatrix(r):t.identityMat,u_fog_range:n.getFovAdjustedRange(f._fov),u_fog_color:p,u_fog_horizon_blend:n.properties.get("horizon-blend"),u_fog_temporal_offset:h,u_frustum_tl:a,u_frustum_tr:o,u_frustum_br:s,u_frustum_bl:l,u_globe_pos:u,u_globe_radius:c,u_viewport:d,u_globe_transition:e.globeToMercatorTransition(f.zoom),u_is_globe:+("globe"===f.projection.name)}}(this,i,r,a,this.transform.frustumCorners.TL,this.transform.frustumCorners.TR,this.transform.frustumCorners.BR,this.transform.frustumCorners.BL,this.transform.globeCenterInViewSpace,this.transform.globeRadius,[this.transform.width*e.exported.devicePixelRatio,this.transform.height*e.exported.devicePixelRatio]);n.setFogUniformValues(t,o)}}}},{key:"setTileLoadedFlag",value:function(e){this.tileLoaded=e}},{key:"saveCanvasCopy",value:function(){this.frameCopies.push(this.canvasCopy()),this.tileLoaded=!1}},{key:"canvasCopy",value:function(){var e=this.context.gl,t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.copyTexImage2D(e.TEXTURE_2D,0,e.RGBA,0,0,e.drawingBufferWidth,e.drawingBufferHeight,0),t}},{key:"getCanvasCopiesAndTimestamps",value:function(){return{canvasCopies:this.frameCopies,timeStamps:this.loadTimeStamps}}},{key:"averageElevationNeedsEasing",value:function(){if(!this.transform._elevation)return!1;var e=this.style&&this.style.fog;return!!e&&0!==e.getOpacity(this.transform.pitch)}},{key:"getBackgroundTiles",value:function(){var t,n=this._backgroundTiles,r=this._backgroundTiles={},i=this.transform.coveringTiles({tileSize:512}),a=f(i);try{for(a.s();!(t=a.n()).done;){var o=t.value;r[o.key]=n[o.key]||new e.Tile(o,512,this.transform.tileZoom,this)}}catch(s){a.e(s)}finally{a.f()}return r}},{key:"clearBackgroundTiles",value:function(){this._backgroundTiles={}}}]),t}(),$r=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(g(this,t),isNaN(e)||e<0||isNaN(n)||n<0||isNaN(r)||r<0||isNaN(i)||i<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=e,this.bottom=n,this.left=r,this.right=i}return v(t,[{key:"interpolate",value:function(t,n,r){return null!=n.top&&null!=t.top&&(this.top=e.number(t.top,n.top,r)),null!=n.bottom&&null!=t.bottom&&(this.bottom=e.number(t.bottom,n.bottom,r)),null!=n.left&&null!=t.left&&(this.left=e.number(t.left,n.left,r)),null!=n.right&&null!=t.right&&(this.right=e.number(t.right,n.right,r)),this}},{key:"getCenter",value:function(t,n){var r=e.clamp((this.left+t-this.right)/2,0,t),i=e.clamp((this.top+n-this.bottom)/2,0,n);return new e.pointGeometry(r,i)}},{key:"equals",value:function(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right}},{key:"clone",value:function(){return new t(this.top,this.bottom,this.left,this.right)}},{key:"toJSON",value:function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}]),t}();function Qr(t,n){var r=e.getColumn(t,3);e.fromQuat(t,n),e.setColumn(t,3,r)}function Jr(t,n){var r=e.identity$1([]);return e.rotateZ$1(r,r,-n),e.rotateX$1(r,r,-t),r}function ei(t,n){var r=[t[0],t[1],0],i=[n[0],n[1],0];if(e.length(r)>=1e-15){var a=e.normalize([],r);e.scale$2(i,a,e.dot(i,a)),n[0]=i[0],n[1]=i[1]}var o=e.cross([],n,t);if(e.len(o)<1e-15)return null;var s=Math.atan2(-o[1],o[0]);return Jr(Math.atan2(Math.sqrt(t[0]*t[0]+t[1]*t[1]),-t[2]),s)}var ti=function(){function t(e,n){g(this,t),this.position=e,this.orientation=n}return v(t,[{key:"position",get:function(){return this._position},set:function(t){if(t){var n=t instanceof e.MercatorCoordinate?t:new e.MercatorCoordinate(t[0],t[1],t[2]);this._renderWorldCopies&&(n.x=e.wrap(n.x,0,1)),this._position=n}else this._position=null}},{key:"lookAtPoint",value:function(t,n){if(this.orientation=null,this.position){var r=this._elevation?this._elevation.getAtPointOrZero(e.MercatorCoordinate.fromLngLat(t)):0,i=this.position,a=e.MercatorCoordinate.fromLngLat(t,r),o=[a.x-i.x,a.y-i.y,a.z-i.z];n||(n=[0,0,1]),n[2]=Math.abs(n[2]),this.orientation=ei(o,n)}}},{key:"setPitchBearing",value:function(t,n){this.orientation=Jr(e.degToRad(t),e.degToRad(-n))}}]),t}(),ni=function(){function t(n,r){g(this,t),this._transform=e.identity([]),this.orientation=r,this.position=n}return v(t,[{key:"mercatorPosition",get:function(){var t=this.position;return new e.MercatorCoordinate(t[0],t[1],t[2])}},{key:"position",get:function(){var t=e.getColumn(this._transform,3);return[t[0],t[1],t[2]]},set:function(t){var n;t&&e.setColumn(this._transform,3,[(n=t)[0],n[1],n[2],1])}},{key:"orientation",get:function(){return this._orientation},set:function(t){this._orientation=t||e.identity$1([]),t&&Qr(this._transform,this._orientation)}},{key:"getPitchBearing",value:function(){var e=this.forward(),t=this.right();return{bearing:Math.atan2(-t[1],t[0]),pitch:Math.atan2(Math.sqrt(e[0]*e[0]+e[1]*e[1]),-e[2])}}},{key:"setPitchBearing",value:function(e,t){this._orientation=Jr(e,t),Qr(this._transform,this._orientation)}},{key:"forward",value:function(){var t=e.getColumn(this._transform,2);return[-t[0],-t[1],-t[2]]}},{key:"up",value:function(){var t=e.getColumn(this._transform,1);return[-t[0],-t[1],-t[2]]}},{key:"right",value:function(){var t=e.getColumn(this._transform,0);return[t[0],t[1],t[2]]}},{key:"getCameraToWorld",value:function(t,n){var r=new Float64Array(16);return e.invert(r,this.getWorldToCamera(t,n)),r}},{key:"getWorldToCameraPosition",value:function(t,n,r){var i=this.position;e.scale$2(i,i,-t);var a=new Float64Array(16);return e.fromScaling(a,[r,r,r]),e.translate(a,a,i),a[10]*=n,a}},{key:"getWorldToCamera",value:function(t,n){var r=new Float64Array(16),i=new Float64Array(4),a=this.position;return e.conjugate(i,this._orientation),e.scale$2(a,a,-t),e.fromQuat(r,i),e.translate(r,r,a),r[1]*=-1,r[5]*=-1,r[9]*=-1,r[13]*=-1,r[8]*=n,r[9]*=n,r[10]*=n,r[11]*=n,r}},{key:"getCameraToClipPerspective",value:function(t,n,r,i){var a=new Float64Array(16);return e.perspective(a,t,n,r,i),a}},{key:"getDistanceToElevation",value:function(t){var n=0===t?0:e.mercatorZfromAltitude(t,this.position[1]),r=this.forward();return(n-this.position[2])/r[2]}},{key:"clone",value:function(){return new t(c(this.position),c(this.orientation))}}]),t}();function ri(t,n){var r=ai(t.projection,t.zoom,t.width,t.height),i=function(t,n,r,i,a){var o=new e.LngLat(r.lng-180*oi,r.lat),s=new e.LngLat(r.lng+180*oi,r.lat),l=t.project(o.lng,o.lat),u=t.project(s.lng,s.lat),c=-Math.atan2(u.y-l.y,u.x-l.x),d=e.MercatorCoordinate.fromLngLat(r);d.y=e.clamp(d.y,-.999975,.999975);var f=d.toLngLat(),p=t.project(f.lng,f.lat),h=e.MercatorCoordinate.fromLngLat(f);h.x+=oi;var m=h.toLngLat(),g=t.project(m.lng,m.lat),v=li(g.x-p.x,g.y-p.y,c),y=e.MercatorCoordinate.fromLngLat(f);y.y+=oi;var _=y.toLngLat(),b=t.project(_.lng,_.lat),x=li(b.x-p.x,b.y-p.y,c),E=Math.abs(v.x)/Math.abs(x.y),S=e.identity([]);e.rotateZ(S,S,-c*(1-(a?0:i)));var w=e.identity([]);return e.scale(w,w,[1,1-(1-E)*i,1]),w[4]=-x.x/x.y*i,e.rotateZ(w,w,c),e.multiply(w,S,w),w}(t.projection,0,t.center,r,n),a=ii(t);return e.scale(i,i,[a,a,1]),i}function ii(t){var n=t.projection,r=ai(t.projection,t.zoom,t.width,t.height),i=si(n,t.center),a=si(n,e.LngLat.convert(n.center));return Math.pow(2,i*r+(1-r)*a)}function ai(t,n,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1/0,o=t.range;if(!o)return 0;var s=Math.min(a,Math.max(r,i)),l=Math.log(s/1024)/Math.LN2;return e.smoothstep(o[0]+l,o[1]+l,n)}var oi=1/4e4;function si(t,n){var r=e.clamp(n.lat,-e.MAX_MERCATOR_LATITUDE,e.MAX_MERCATOR_LATITUDE),i=new e.LngLat(n.lng-180*oi,r),a=new e.LngLat(n.lng+180*oi,r),o=t.project(i.lng,r),s=t.project(a.lng,r),l=e.MercatorCoordinate.fromLngLat(i),u=e.MercatorCoordinate.fromLngLat(a),c=s.x-o.x,d=s.y-o.y,f=u.x-l.x,p=u.y-l.y,h=Math.sqrt((f*f+p*p)/(c*c+d*d));return Math.log(h)/Math.LN2}function li(e,t,n){var r=Math.cos(n),i=Math.sin(n);return{x:e*r-t*i,y:e*i+t*r}}var ui=function(){function n(t,r,i,a,o,s,l){g(this,n),this.tileSize=512,this._renderWorldCopies=void 0===o||o,this._minZoom=t||0,this._maxZoom=r||22,this._minPitch=null==i?0:i,this._maxPitch=null==a?60:a,this.setProjection(s),this.setMaxBounds(l),this.width=0,this.height=0,this._center=new e.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._nearZ=0,this._farZ=0,this._unmodified=!0,this._edgeInsets=new $r,this._projMatrixCache={},this._alignedProjMatrixCache={},this._fogTileMatrixCache={},this._distanceTileDataCache={},this._camera=new ni,this._centerAltitude=0,this._averageElevation=0,this.cameraElevationReference="ground",this._pixelsPerMercatorPixel=1,this.globeRadius=0,this.globeCenterInViewSpace=[0,0,0],this._horizonShift=.1}return v(n,[{key:"clone",value:function(){var e=new n(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies,this.getProjection());return e._elevation=this._elevation,e._centerAltitude=this._centerAltitude,e._centerAltitudeValidForExaggeration=this._centerAltitudeValidForExaggeration,e.tileSize=this.tileSize,e.width=this.width,e.height=this.height,e.cameraElevationReference=this.cameraElevationReference,e._center=this._center,e._setZoom(this.zoom),e._seaLevelZoom=this._seaLevelZoom,e.angle=this.angle,e._fov=this._fov,e._pitch=this._pitch,e._nearZ=this._nearZ,e._farZ=this._farZ,e._averageElevation=this._averageElevation,e._unmodified=this._unmodified,e._edgeInsets=this._edgeInsets.clone(),e._camera=this._camera.clone(),e._calcMatrices(),e.freezeTileCoverage=this.freezeTileCoverage,e.frustumCorners=this.frustumCorners,e}},{key:"elevation",get:function(){return this._elevation},set:function(e){this._elevation!==e&&(this._elevation=e,this._updateCameraOnTerrain(),this._calcMatrices())}},{key:"updateElevation",value:function(e){var t=this._elevation&&this._elevation.exaggeration()!==this._centerAltitudeValidForExaggeration;(null==this._seaLevelZoom||t)&&this._updateCameraOnTerrain(),(e||t)&&this._constrainCameraAltitude(),this._calcMatrices()}},{key:"getProjection",value:function(){return e.pick(this.projection,["name","center","parallels"])}},{key:"setProjection",value:function(n){this.projectionOptions=n||{name:"mercator"};var r=this.projection?this.getProjection():void 0;this.projection=e.getProjection(this.projectionOptions);var i=!t(r,this.getProjection());return i&&this._calcMatrices(),this.mercatorFromTransition=!1,i}},{key:"setMercatorFromTransition",value:function(){var t=this.projection.name;this.mercatorFromTransition=!0,this.projectionOptions={name:"mercator"},this.projection=e.getProjection({name:"mercator"});var n=t!==this.projection.name;return n&&this._calcMatrices(),n}},{key:"minZoom",get:function(){return this._minZoom},set:function(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))}},{key:"maxZoom",get:function(){return this._maxZoom},set:function(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))}},{key:"minPitch",get:function(){return this._minPitch},set:function(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))}},{key:"maxPitch",get:function(){return this._maxPitch},set:function(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))}},{key:"renderWorldCopies",get:function(){return this._renderWorldCopies&&!0===this.projection.supportsWorldCopies},set:function(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e}},{key:"worldSize",get:function(){return this.tileSize*this.scale}},{key:"cameraWorldSize",get:function(){var e=Math.max(this._camera.getDistanceToElevation(this._averageElevation),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(e))}},{key:"pixelsPerMeter",get:function(){return this.projection.pixelsPerMeter(this.center.lat,this.worldSize)}},{key:"cameraPixelsPerMeter",get:function(){return e.mercatorZfromAltitude(this.center.lat,this.cameraWorldSize)}},{key:"centerOffset",get:function(){return this.centerPoint._sub(this.size._div(2))}},{key:"size",get:function(){return new e.pointGeometry(this.width,this.height)}},{key:"bearing",get:function(){return e.wrap(this.rotation,-180,180)},set:function(e){this.rotation=e}},{key:"rotation",get:function(){return-this.angle/Math.PI*180},set:function(t){var n,r=-t*Math.PI/180;this.angle!==r&&(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=(n=new e.ARRAY_TYPE(4),e.ARRAY_TYPE!=Float32Array&&(n[1]=0,n[2]=0),n[0]=1,n[3]=1,n),function(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=Math.sin(n),l=Math.cos(n);e[0]=r*l+a*s,e[1]=i*l+o*s,e[2]=r*-s+a*l,e[3]=i*-s+o*l}(this.rotationMatrix,this.rotationMatrix,this.angle))}},{key:"pitch",get:function(){return this._pitch/Math.PI*180},set:function(t){var n=e.clamp(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==n&&(this._unmodified=!1,this._pitch=n,this._calcMatrices())}},{key:"fov",get:function(){return this._fov/Math.PI*180},set:function(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=e/180*Math.PI,this._calcMatrices())}},{key:"averageElevation",get:function(){return this._averageElevation},set:function(e){this._averageElevation=e,this._calcFogMatrices(),this._distanceTileDataCache={}}},{key:"zoom",get:function(){return this._zoom},set:function(e){var t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==t&&(this._unmodified=!1,this._setZoom(t),this._updateSeaLevelZoom(),this._constrain(),this._calcMatrices())}},{key:"_setZoom",value:function(e){this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom}},{key:"_updateCameraOnTerrain",value:function(){if(!this._elevation||!this._elevation.isDataAvailableAtPoint(this.locationCoordinate(this.center)))return this._centerAltitude=0,this._seaLevelZoom=null,void(this._centerAltitudeValidForExaggeration=void 0);var e=this._elevation;this._centerAltitude=e.getAtPointOrZero(this.locationCoordinate(this.center)),this._centerAltitudeValidForExaggeration=e.exaggeration(),this._updateSeaLevelZoom()}},{key:"_updateSeaLevelZoom",value:function(){void 0!==this._centerAltitudeValidForExaggeration&&(this._seaLevelZoom=this._zoomFromMercatorZ((this.pixelsPerMeter*this._centerAltitude+this.cameraToCenterDistance)/this.worldSize))}},{key:"sampleAverageElevation",value:function(){if(!this._elevation)return 0;for(var t=this._elevation,n=[[.5,.2],[.3,.5],[.5,.5],[.7,.5],[.5,.8]],r=this.horizonLineFromTop(),i=0,a=0,o=0;ot.maxzoom&&(r=t.maxzoom);var s=this.locationCoordinate(this.center),l=this.center.lat,u=1<=.9)return!0}else if(a&&(s=D(t.aabb.distanceZ(v)*m)),n.projection.isReprojectedInTileSpace&&i<=5){var b=Math.pow(2,t.zoom),x=S(new e.MercatorCoordinate((t.x+.5)/b,(t.y+.5)/b));u=x>.85?1:x}var E=r*r+o*o+s;return E0;){var M=C.pop(),P=M.x,L=M.y,F=M.fullyVisible;if(!F){var B=M.aabb.intersects(p);if(0===B)continue;F=2===B}if(M.zoom!==A&&R(M))for(var Z=0;Z<4;Z++){var z=(P<<1)+Z%2,U=(L<<1)+(Z>>1),j={aabb:o?M.aabb.quadrant(Z):e.tileAABB(this,u,M.zoom+1,z,U,M.wrap,M.minZ,M.maxZ,this.projection),zoom:M.zoom+1,x:z,y:U,wrap:M.wrap,fullyVisible:F,tileID:void 0,shouldSplit:void 0,minZ:M.minZ,maxZ:M.maxZ};a&&!d&&(j.tileID=new e.OverscaledTileID(M.zoom+1===A?k:M.zoom+1,M.wrap,M.zoom+1,z,U),I(j)),C.push(j)}else{var G=M.zoom===A?k:M.zoom;if(t.minzoom&&t.minzoom>G)continue;var V=c[0]-(.5+P+(M.wrap<Y&&0!==W){var c,d=n.calculateProjMatrix(r.tileID.toUnwrapped());t.isTerrainDEM||(c=u.getMinMaxForTile(r.tileID)),c||(c={min:x,max:b});var f=e.furthestTileCorner(n.rotation),p=[f[0]*e.EXTENT,f[1]*e.EXTENT,c.max];e.transformMat4(p,p,d),l=(1-p[1])*n.height*.51&&void 0!==arguments[1]?arguments[1]:this._centerAltitude;return this.projection.pointCoordinate(this,e.x,e.y,t)}},{key:"pointCoordinate3D",value:function(t){if(!this.elevation)return this.pointCoordinate(t);var n=this.projection.pointCoordinate3D(this,t.x,t.y);if(n)return new e.MercatorCoordinate(n[0],n[1],n[2]);var r=0,i=this.horizonLineFromTop();if(t.y>i)return this.pointCoordinate(t);for(var a=.02*i,o=t.clone(),s=0;s<10&&i-r>a;s++){o.y=e.number(r,i,.66);var l=this.projection.pointCoordinate3D(this,o.x,o.y);l?(i=o.y,n=l):r=o.y}return n?new e.MercatorCoordinate(n[0],n[1],n[2]):this.pointCoordinate(t)}},{key:"isPointAboveHorizon",value:function(e){return this.projection.isPointAboveHorizon(this,e)}},{key:"_coordinatePoint",value:function(t,n){var r=n&&this.elevation?this.elevation.getAtPointOrZero(t,this._centerAltitude):this._centerAltitude,i=[t.x*this.worldSize,t.y*this.worldSize,r+t.toAltitude(),1];return e.transformMat4$1(i,i,this.pixelMatrix),i[3]>0?new e.pointGeometry(i[0]/i[3],i[1]/i[3]):new e.pointGeometry(Number.MAX_VALUE,Number.MAX_VALUE)}},{key:"_getBounds",value:function(t,n){var r=new e.pointGeometry(this._edgeInsets.left,this._edgeInsets.top),i=new e.pointGeometry(this.width-this._edgeInsets.right,this._edgeInsets.top),a=new e.pointGeometry(this.width-this._edgeInsets.right,this.height-this._edgeInsets.bottom),o=new e.pointGeometry(this._edgeInsets.left,this.height-this._edgeInsets.bottom),s=this.pointCoordinate(r,t),l=this.pointCoordinate(i,t),u=this.pointCoordinate(a,n),c=this.pointCoordinate(o,n),d=function(e,t){return(t.y-e.y)/(t.x-e.x)};return s.y>1&&l.y>=0?s=new e.MercatorCoordinate((1-c.y)/d(c,s)+c.x,1):s.y<0&&l.y<=1&&(s=new e.MercatorCoordinate(-c.y/d(c,s)+c.x,0)),l.y>1&&s.y>=0?l=new e.MercatorCoordinate((1-u.y)/d(u,l)+u.x,1):l.y<0&&s.y<=1&&(l=new e.MercatorCoordinate(-u.y/d(u,l)+u.x,0)),(new e.LngLatBounds).extend(this.coordinateLocation(s)).extend(this.coordinateLocation(l)).extend(this.coordinateLocation(c)).extend(this.coordinateLocation(u))}},{key:"_getBounds3D",value:function(){var e=this.elevation;if(!e.visibleDemTiles.length)return this._getBounds(0,0);var t=e.visibleDemTiles.reduce((function(e,t){if(t.dem){var n=t.dem.tree;e.min=Math.min(e.min,n.minimums[0]),e.max=Math.max(e.max,n.maximums[0])}return e}),{min:Number.MAX_VALUE,max:0});return this._getBounds(t.min*e.exaggeration(),t.max*e.exaggeration())}},{key:"getBounds",value:function(){return this._terrainEnabled()?this._getBounds3D():this._getBounds(0,0)}},{key:"horizonLineFromTop",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))+this.centerOffset.y,n=this.height/2-t*(1-this._horizonShift);return e?Math.max(0,n):n}},{key:"getMaxBounds",value:function(){return this.maxBounds}},{key:"setMaxBounds",value:function(t){this.maxBounds=t,this.minLat=-e.MAX_MERCATOR_LATITUDE,this.maxLat=e.MAX_MERCATOR_LATITUDE,this.minLng=-180,this.maxLng=180,t&&(this.minLat=t.getSouth(),this.maxLat=t.getNorth(),this.minLng=t.getWest(),this.maxLng=t.getEast(),this.maxLng1&&void 0!==arguments[1]&&arguments[1],r=t.key,i=n?this._alignedProjMatrixCache:this._projMatrixCache;if(i[r])return i[r];var a=this.calculatePosMatrix(t,this.worldSize);return e.multiply(a,this.projection.isReprojectedInTileSpace?this.mercatorMatrix:n?this.alignedProjMatrix:this.projMatrix,a),i[r]=new Float32Array(a),i[r]}},{key:"calculatePixelsToTileUnitsMatrix",value:function(t){var n=t.tileID.key,r=this._pixelsToTileUnitsCache;if(r[n])return r[n];var i=function(t,n){var r,i,a,o,s,l,u,c,d=t.tileTransform.scale*e.EXTENT/(t.tileSize*Math.pow(2,n.zoom-t.tileID.overscaledZ+t.tileID.canonical.z));return r=new Float32Array(4),o=(i=n.inverseAdjustmentMatrix)[1],s=i[2],l=i[3],c=(a=[d,d])[1],r[0]=i[0]*(u=a[0]),r[1]=o*u,r[2]=s*c,r[3]=l*c,r}(t,this);return r[n]=i,r[n]}},{key:"customLayerMatrix",value:function(){return this.mercatorMatrix.slice()}},{key:"recenterOnTerrain",value:function(){if(this._elevation&&"globe"!==this.projection.name){var t=this._elevation;this._updateCameraState();var n=e.mercatorZfromAltitude(1,this._center.lat)*this.worldSize,r=this._computeCameraPosition(n),i=this._camera.forward(),a=e.mercatorZfromAltitude(1,this._center.lat);r[2]/=a,i[2]/=a,e.normalize(i,i);var o=t.raycast(r,i,t.exaggeration());if(o){var s=e.scaleAndAdd([],r,i,o),l=new e.MercatorCoordinate(s[0],s[1],e.mercatorZfromAltitude(s[2],e.latFromMercatorY(s[1]))),u=(l.z+e.length([l.x-r[0],l.y-r[1],l.z-r[2]*a]))*this._pixelsPerMercatorPixel;this._seaLevelZoom=this._zoomFromMercatorZ(u),this._centerAltitude=l.toAltitude(),this._center=this.coordinateLocation(l),this._updateZoomFromElevation(),this._constrain(),this._calcMatrices()}}}},{key:"_constrainCameraAltitude",value:function(){if(this._elevation){var t=this._elevation;this._updateCameraState();var n=e.mercatorZfromAltitude(1,this._center.lat)*this.worldSize,r=this._computeCameraPosition(n),i=t.getAtPointOrZero(a(e.MercatorCoordinate,c(r))),o=this._minimumHeightOverTerrain()*Math.cos(e.degToRad(this._maxPitch)),s=this._camera.position[2]-this.pixelsPerMeter/this.worldSize*i;if(sp&&(u=p-d),p-fm&&(l=m-c),m-h.5?b-1:b,x>.5?x-1:x,0]),this.alignedProjMatrix=E,o=e.create(),e.scale(o,o,[this.width/2,-this.height/2,1]),e.translate(o,o,[1,-1,0]),this.labelPlaneMatrix=o,o=e.create(),e.scale(o,o,[1,-1,1]),e.translate(o,o,[-1,-1,0]),e.scale(o,o,[2/this.width,2/this.height,1]),this.glCoordMatrix=o,this.pixelMatrix=e.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),this._calcFogMatrices(),this._distanceTileDataCache={},!(o=e.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");if(this.pixelMatrixInverse=o,"globe"===this.projection.name||this.mercatorFromTransition){this.globeMatrix=e.calculateGlobeMatrix(this);var S=[this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]];this.globeCenterInViewSpace=e.transformMat4(S,S,i),this.globeRadius=this.worldSize/2/Math.PI-1}else this.globeMatrix=o;this._projMatrixCache={},this._alignedProjMatrixCache={},this._pixelsToTileUnitsCache={}}}},{key:"_calcFogMatrices",value:function(){this._fogTileMatrixCache={};var t=this.cameraWorldSize,n=this.cameraPixelsPerMeter,r=this._camera.position,i=1/this.height/this._pixelsPerMercatorPixel,a=[t,t,n];e.scale$2(a,a,i),e.scale$2(r,r,-1),e.multiply$2(r,r,a);var o=e.create();e.translate(o,o,r),e.scale(o,o,a),this.mercatorFogMatrix=o,this.worldToFogMatrix=this._camera.getWorldToCameraPosition(t,n,i)}},{key:"_computeCameraPosition",value:function(e){var t=(e=e||this.pixelsPerMeter)/this.pixelsPerMeter,n=this._camera.forward(),r=this.point,i=this._mercatorZfromZoom(this._seaLevelZoom?this._seaLevelZoom:this._zoom)*t-e/this.worldSize*this._centerAltitude;return[r.x/this.worldSize-n[0]*i,r.y/this.worldSize-n[1]*i,e/this.worldSize*this._centerAltitude-n[2]*i]}},{key:"_updateCameraState",value:function(){this.height&&(this._camera.setPitchBearing(this._pitch,this.angle),this._camera.position=this._computeCameraPosition())}},{key:"_translateCameraConstrained",value:function(t){var n=this._maxCameraBoundsDistance()*Math.cos(this._pitch),r=t[2],i=1;r>0&&(i=Math.min((n-this._camera.position[2])/r,1)),this._camera.position=e.scaleAndAdd([],this._camera.position,t,i),this._updateStateFromCamera(),this.projection.wrap&&(this.center=this.center.wrap())}},{key:"_updateStateFromCamera",value:function(){var t=this._camera.position,n=this._camera.forward(),r=this._camera.getPitchBearing(),i=r.pitch,a=r.bearing,o=e.mercatorZfromAltitude(this._centerAltitude,this.center.lat)*this._pixelsPerMercatorPixel,s=this._mercatorZfromZoom(this._maxZoom)*Math.cos(e.degToRad(this._maxPitch)),l=Math.max((t[2]-o)/Math.cos(i),s),u=this._zoomFromMercatorZ(l);e.scaleAndAdd(t,t,n,l),this._pitch=e.clamp(i,e.degToRad(this.minPitch),e.degToRad(this.maxPitch)),this.angle=e.wrap(a,-Math.PI,Math.PI),this._setZoom(e.clamp(u,this._minZoom,this._maxZoom)),this._updateSeaLevelZoom(),this._center=this.coordinateLocation(new e.MercatorCoordinate(t[0],t[1],t[2])),this._unmodified=!1,this._constrain(),this._calcMatrices()}},{key:"_worldSizeFromZoom",value:function(e){return Math.pow(2,e)*this.tileSize}},{key:"_mercatorZfromZoom",value:function(e){return this.cameraToCenterDistance/this._worldSizeFromZoom(e)}},{key:"_minimumHeightOverTerrain",value:function(){var e=Math.min((null!=this._seaLevelZoom?this._seaLevelZoom:this._zoom)+2,this._maxZoom);return this._mercatorZfromZoom(e)}},{key:"_zoomFromMercatorZ",value:function(e){return this.scaleZoom(this.cameraToCenterDistance/(e*this.tileSize))}},{key:"_terrainEnabled",value:function(){return!(!this._elevation||!this.projection.supportsTerrain&&(e.warnOnce("Terrain is not yet supported with alternate projections. Use mercator or globe to enable terrain."),1))}},{key:"anyCornerOffEdge",value:function(t,n){var r=Math.min(t.x,n.x),i=Math.max(t.x,n.x),a=Math.min(t.y,n.y),o=Math.max(t.y,n.y);if(au||h.y>1)return!0}return!1}},{key:"isHorizonVisible",value:function(){return this.pitch+e.radToDeg(this.fovAboveCenter)>88||this.anyCornerOffEdge(new e.pointGeometry(0,0),new e.pointGeometry(this.width,this.height))}},{key:"zoomDeltaToMovement",value:function(t,n){var r=e.length(e.sub([],this._camera.position,t)),i=this._zoomFromMercatorZ(r)+n;return r-this._mercatorZfromZoom(i)}},{key:"getCameraPoint",value:function(){if("globe"===this.projection.name){var t=function(t,n){var r=[t[0],t[1],t[2],1];e.transformMat4$1(r,r,n);var i=Math.max(r[3],1e-6);return[r[0]/i,r[1]/i,r[2]/i,i]}([this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]],this.pixelMatrix);return new e.pointGeometry(t[0],t[1])}var n=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.pointGeometry(0,n))}},{key:"getCameraToCenterDistance",value:function(e){var t=ai(e,this.zoom,this.width,this.height,1024),n=e.pixelSpaceConversion(this.center.lat,this.worldSize,t);return.5/Math.tan(.5*this._fov)*this.height*n}}]),n}();function ci(e,t){var n=!1,r=null,i=function i(){r=null,n&&(e(),r=setTimeout(i,t),n=!1)};return function(){return n=!0,r||i(),r}}var di=function(){function t(n){g(this,t),this._hashName=n&&encodeURIComponent(n),e.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=ci(this._updateHashUnthrottled.bind(this),300)}return v(t,[{key:"addTo",value:function(t){return this._map=t,e.window.addEventListener("hashchange",this._onHashChange,!1),t.on("moveend",this._updateHash),this}},{key:"remove",value:function(){return this._map?(this._map.off("moveend",this._updateHash),e.window.removeEventListener("hashchange",this._onHashChange,!1),clearTimeout(this._updateHash()),this._map=void 0,this):this}},{key:"getHashString",value:function(){var t=this._map;if(!t)return"";var n=fi(t);if(this._hashName){var r=this._hashName,i=!1,a=e.window.location.hash.slice(1).split("&").map((function(e){var t=e.split("=")[0];return t===r?(i=!0,"".concat(t,"=").concat(n)):e})).filter((function(e){return e}));return i||a.push("".concat(r,"=").concat(n)),"#".concat(a.join("&"))}return"#".concat(n)}},{key:"_getCurrentHash",value:function(){var t,n=this,r=e.window.location.hash.replace("#","");return this._hashName?(r.split("&").map((function(e){return e.split("=")})).forEach((function(e){e[0]===n._hashName&&(t=e)})),(t&&t[1]||"").split("/")):r.split("/")}},{key:"_onHashChange",value:function(){var e=this._map;if(!e)return!1;var t=this._getCurrentHash();if(t.length>=3&&!t.some((function(e){return isNaN(e)}))){var n=e.dragRotate.isEnabled()&&e.touchZoomRotate.isEnabled()?+(t[3]||0):e.getBearing();return e.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:n,pitch:+(t[4]||0)}),!0}return!1}},{key:"_updateHashUnthrottled",value:function(){var t=e.window.location.href.replace(/(#.+)?$/,this.getHashString());e.window.history.replaceState(e.window.history.state,null,t)}}]),t}();function fi(e,t){var n=e.getCenter(),r=Math.round(100*e.getZoom())/100,i=Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),a=Math.pow(10,i),o=Math.round(n.lng*a)/a,s=Math.round(n.lat*a)/a,l=e.getBearing(),u=e.getPitch(),c=t?"/".concat(o,"/").concat(s,"/").concat(r):"".concat(r,"/").concat(s,"/").concat(o);return(l||u)&&(c+="/"+Math.round(10*l)/10),u&&(c+="/".concat(Math.round(u))),c}var pi={linearity:.3,easing:e.bezier(0,0,.3,1)},hi=e.extend({deceleration:2500,maxSpeed:1400},pi),mi=e.extend({deceleration:20,maxSpeed:1400},pi),gi=e.extend({deceleration:1e3,maxSpeed:360},pi),vi=e.extend({deceleration:1e3,maxSpeed:90},pi),yi=function(){function t(e){g(this,t),this._map=e,this.clear()}return v(t,[{key:"clear",value:function(){this._inertiaBuffer=[]}},{key:"record",value:function(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:e.exported.now(),settings:t})}},{key:"_drainInertiaBuffer",value:function(){for(var t=this._inertiaBuffer,n=e.exported.now();t.length>0&&n-t[0].time>160;)t.shift()}},{key:"_onMoveEnd",value:function(t){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){var n,r={zoom:0,bearing:0,pitch:0,pan:new e.pointGeometry(0,0),pinchAround:void 0,around:void 0},i=f(this._inertiaBuffer);try{for(i.s();!(n=i.n()).done;){var a=n.value.settings;r.zoom+=a.zoomDelta||0,r.bearing+=a.bearingDelta||0,r.pitch+=a.pitchDelta||0,a.panDelta&&r.pan._add(a.panDelta),a.around&&(r.around=a.around),a.pinchAround&&(r.pinchAround=a.pinchAround)}}catch(h){i.e(h)}finally{i.f()}var o=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,s={};if(r.pan.mag()){var l=bi(r.pan.mag(),o,e.extend({},hi,t||{}));s.offset=r.pan.mult(l.amount/r.pan.mag()),s.center=this._map.transform.center,_i(s,l)}if(r.zoom){var u=bi(r.zoom,o,mi);s.zoom=this._map.transform.zoom+u.amount,_i(s,u)}if(r.bearing){var c=bi(r.bearing,o,gi);s.bearing=this._map.transform.bearing+e.clamp(c.amount,-179,179),_i(s,c)}if(r.pitch){var d=bi(r.pitch,o,vi);s.pitch=this._map.transform.pitch+d.amount,_i(s,d)}if(s.zoom||s.bearing){var p=void 0===r.pinchAround?r.around:r.pinchAround;s.around=p?this._map.unproject(p):this._map.getCenter()}return this.clear(),s.noMoveStart=!0,s}}}]),t}();function _i(e,t){(!e.duration||e.duration3&&void 0!==arguments[3]?arguments[3]:{};g(this,r);var l=A(i.getCanvasContainer(),a),u=i.unproject(l);return(o=n.call(this,t,e.extend({point:l,lngLat:u,originalEvent:a},s)))._defaultPrevented=!1,o.target=i,o}return v(r,[{key:"preventDefault",value:function(){this._defaultPrevented=!0}},{key:"defaultPrevented",get:function(){return this._defaultPrevented}}]),r}(e.Event),Ei=function(t){h(r,t);var n=m(r);function r(t,i,a){var o;g(this,r);var s="touchend"===t?a.changedTouches:a.touches,l=k(i.getCanvasContainer(),s),u=l.map((function(e){return i.unproject(e)})),c=l.reduce((function(e,t,n,r){return e.add(t.div(r.length))}),new e.pointGeometry(0,0));return(o=n.call(this,t,{points:l,point:c,lngLats:u,lngLat:i.unproject(c),originalEvent:a}))._defaultPrevented=!1,o}return v(r,[{key:"preventDefault",value:function(){this._defaultPrevented=!0}},{key:"defaultPrevented",get:function(){return this._defaultPrevented}}]),r}(e.Event),Si=function(e){h(n,e);var t=m(n);function n(e,r,i){var a;return g(this,n),(a=t.call(this,e,{originalEvent:i}))._defaultPrevented=!1,a}return v(n,[{key:"preventDefault",value:function(){this._defaultPrevented=!0}},{key:"defaultPrevented",get:function(){return this._defaultPrevented}}]),n}(e.Event),wi=function(){function t(e,n){g(this,t),this._map=e,this._clickTolerance=n.clickTolerance}return v(t,[{key:"reset",value:function(){this._mousedownPos=void 0}},{key:"wheel",value:function(e){return this._firePreventable(new Si(e.type,this._map,e))}},{key:"mousedown",value:function(e,t){return this._mousedownPos=t,this._firePreventable(new xi(e.type,this._map,e))}},{key:"mouseup",value:function(e){this._map.fire(new xi(e.type,this._map,e))}},{key:"preclick",value:function(t){var n=e.extend({},t);n.type="preclick",this._map.fire(new xi(n.type,this._map,n))}},{key:"click",value:function(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||(this.preclick(e),this._map.fire(new xi(e.type,this._map,e)))}},{key:"dblclick",value:function(e){return this._firePreventable(new xi(e.type,this._map,e))}},{key:"mouseover",value:function(e){this._map.fire(new xi(e.type,this._map,e))}},{key:"mouseout",value:function(e){this._map.fire(new xi(e.type,this._map,e))}},{key:"touchstart",value:function(e){return this._firePreventable(new Ei(e.type,this._map,e))}},{key:"touchmove",value:function(e){this._map.fire(new Ei(e.type,this._map,e))}},{key:"touchend",value:function(e){this._map.fire(new Ei(e.type,this._map,e))}},{key:"touchcancel",value:function(e){this._map.fire(new Ei(e.type,this._map,e))}},{key:"_firePreventable",value:function(e){if(this._map.fire(e),e.defaultPrevented)return{}}},{key:"isEnabled",value:function(){return!0}},{key:"isActive",value:function(){return!1}},{key:"enable",value:function(){}},{key:"disable",value:function(){}}]),t}(),Ci=function(){function e(t){g(this,e),this._map=t}return v(e,[{key:"reset",value:function(){this._delayContextMenu=!1,this._contextMenuEvent=void 0}},{key:"mousemove",value:function(e){this._map.fire(new xi(e.type,this._map,e))}},{key:"mousedown",value:function(){this._delayContextMenu=!0}},{key:"mouseup",value:function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new xi("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}},{key:"contextmenu",value:function(e){this._delayContextMenu?this._contextMenuEvent=e:this._map.fire(new xi(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}},{key:"isEnabled",value:function(){return!0}},{key:"isActive",value:function(){return!1}},{key:"enable",value:function(){}},{key:"disable",value:function(){}}]),e}(),Ti=function(){function t(e,n){g(this,t),this._map=e,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=n.clickTolerance||1}return v(t,[{key:"isEnabled",value:function(){return!!this._enabled}},{key:"isActive",value:function(){return!!this._active}},{key:"enable",value:function(){this.isEnabled()||(this._enabled=!0)}},{key:"disable",value:function(){this.isEnabled()&&(this._enabled=!1)}},{key:"mousedown",value:function(e,t){this.isEnabled()&&e.shiftKey&&0===e.button&&(S(),this._startPos=this._lastPos=t,this._active=!0)}},{key:"mousemoveWindow",value:function(e,t){var n=this;if(this._active){var r=t;if(!(this._lastPos.equals(r)||!this._box&&r.dist(this._startPos)this.numTouches)&&(this.aborted=!0),this.aborted||(0===this.startTime&&(this.startTime=t.timeStamp),r.length===this.numTouches&&(this.centroid=function(t){var n,r=new e.pointGeometry(0,0),i=f(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;r._add(a)}}catch(o){i.e(o)}finally{i.f()}return r.div(t.length)}(n),this.touches=Ai(r,n)))}},{key:"touchmove",value:function(e,t,n){if(!this.aborted&&this.centroid){var r=Ai(n,t);for(var i in this.touches){var a=this.touches[i],o=r[i];(!o||o.dist(a)>30)&&(this.aborted=!0)}}}},{key:"touchend",value:function(e,t,n){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),0===n.length){var r=!this.aborted&&this.centroid;if(this.reset(),r)return r}}}]),t}(),Di=function(){function e(t){g(this,e),this.singleTap=new ki(t),this.numTaps=t.numTaps,this.reset()}return v(e,[{key:"reset",value:function(){this.lastTime=1/0,this.lastTap=void 0,this.count=0,this.singleTap.reset()}},{key:"touchstart",value:function(e,t,n){this.singleTap.touchstart(e,t,n)}},{key:"touchmove",value:function(e,t,n){this.singleTap.touchmove(e,t,n)}},{key:"touchend",value:function(e,t,n){var r=this.singleTap.touchend(e,t,n);if(r){var i=e.timeStamp-this.lastTime<500,a=!this.lastTap||this.lastTap.dist(r)<30;if(i&&a||this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}}}]),e}(),Oi=function(){function e(){g(this,e),this._zoomIn=new Di({numTouches:1,numTaps:2}),this._zoomOut=new Di({numTouches:2,numTaps:1}),this.reset()}return v(e,[{key:"reset",value:function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}},{key:"touchstart",value:function(e,t,n){this._zoomIn.touchstart(e,t,n),this._zoomOut.touchstart(e,t,n)}},{key:"touchmove",value:function(e,t,n){this._zoomIn.touchmove(e,t,n),this._zoomOut.touchmove(e,t,n)}},{key:"touchend",value:function(e,t,n){var r=this,i=this._zoomIn.touchend(e,t,n),a=this._zoomOut.touchend(e,t,n);return i?(this._active=!0,e.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(t){return t.easeTo({duration:300,zoom:t.getZoom()+1,around:t.unproject(i)},{originalEvent:e})}}):a?(this._active=!0,e.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(t){return t.easeTo({duration:300,zoom:t.getZoom()-1,around:t.unproject(a)},{originalEvent:e})}}):void 0}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(){this._enabled=!0}},{key:"disable",value:function(){this._enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this._enabled}},{key:"isActive",value:function(){return this._active}}]),e}(),Ii={0:1,2:2},Ri=function(){function e(t){g(this,e),this.reset(),this._clickTolerance=t.clickTolerance||1}return v(e,[{key:"blur",value:function(){this.reset()}},{key:"reset",value:function(){this._active=!1,this._moved=!1,this._lastPoint=void 0,this._eventButton=void 0}},{key:"_correctButton",value:function(e,t){return!1}},{key:"_move",value:function(e,t){return{}}},{key:"mousedown",value:function(e,t){if(!this._lastPoint){var n=D(e);this._correctButton(e,n)&&(this._lastPoint=t,this._eventButton=n)}}},{key:"mousemoveWindow",value:function(e,t){var n=this._lastPoint;if(n)if(e.preventDefault(),null!=this._eventButton&&function(e,t){var n=Ii[t];return void 0===e.buttons||(e.buttons&n)!==n}(e,this._eventButton))this.reset();else if(this._moved||!(t.dist(n)0&&(this._active=!0);var i=Ai(r,n),a=new e.pointGeometry(0,0),o=new e.pointGeometry(0,0),s=0;for(var l in i){var u=i[l],c=this._touches[l];c&&(a._add(u),o._add(u.sub(c)),s++,i[l]=u)}if(this._touches=i,!(sMath.abs(e.x)}var Vi=function(e){h(n,e);var t=m(n);function n(e){var r;return g(this,n),(r=t.call(this))._map=e,r}return v(n,[{key:"reset",value:function(){o(s(n.prototype),"reset",this).call(this),this._valid=void 0,this._firstMove=void 0,this._lastPoints=void 0}},{key:"_start",value:function(e){this._lastPoints=e,Gi(e[0].sub(e[1]))&&(this._valid=!1)}},{key:"_move",value:function(e,t,n){var r=this._lastPoints;if(r){var i=e[0].sub(r[0]),a=e[1].sub(r[1]);return this._map._cooperativeGestures&&n.touches.length<3||(this._valid=this.gestureBeginsVertically(i,a,n.timeStamp),!this._valid)?void 0:(this._lastPoints=e,this._active=!0,{pitchDelta:(i.y+a.y)/2*-.5})}}},{key:"gestureBeginsVertically",value:function(e,t,n){if(void 0!==this._valid)return this._valid;var r=e.mag()>=2,i=t.mag()>=2;if(r||i){if(!r||!i)return null==this._firstMove&&(this._firstMove=n),n-this._firstMove<100&&void 0;var a=e.y>0==t.y>0;return Gi(e)&&Gi(t)&&a}}}]),n}(Fi),qi={panStep:100,bearingStep:15,pitchStep:10},Hi=function(){function e(){g(this,e);var t=qi;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep,this._rotationDisabled=!1}return v(e,[{key:"blur",value:function(){this.reset()}},{key:"reset",value:function(){this._active=!1}},{key:"keydown",value:function(e){var t=this;if(!(e.altKey||e.ctrlKey||e.metaKey)){var n=0,r=0,i=0,a=0,o=0;switch(e.keyCode){case 61:case 107:case 171:case 187:n=1;break;case 189:case 109:case 173:n=-1;break;case 37:e.shiftKey?r=-1:(e.preventDefault(),a=-1);break;case 39:e.shiftKey?r=1:(e.preventDefault(),a=1);break;case 38:e.shiftKey?i=1:(e.preventDefault(),o=-1);break;case 40:e.shiftKey?i=-1:(e.preventDefault(),o=1);break;default:return}return this._rotationDisabled&&(r=0,i=0),{cameraAnimation:function(s){var l=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:Yi,zoom:n?Math.round(l)+n*(e.shiftKey?2:1):l,bearing:s.getBearing()+r*t._bearingStep,pitch:s.getPitch()+i*t._pitchStep,offset:[-a*t._panStep,-o*t._panStep],center:s.getCenter()},{originalEvent:e})}}}}},{key:"enable",value:function(){this._enabled=!0}},{key:"disable",value:function(){this._enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this._enabled}},{key:"isActive",value:function(){return this._active}},{key:"disableRotation",value:function(){this._rotationDisabled=!0}},{key:"enableRotation",value:function(){this._rotationDisabled=!1}}]),e}();function Yi(e){return e*(2-e)}var Wi=4.000244140625,Xi=function(){function t(n,r){g(this,t),this._map=n,this._el=n.getCanvasContainer(),this._handler=r,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,e.bindAll(["_onTimeout","_addScrollZoomBlocker","_showBlockerAlert"],this)}return v(t,[{key:"setZoomRate",value:function(e){this._defaultZoomRate=e}},{key:"setWheelZoomRate",value:function(e){this._wheelZoomRate=e}},{key:"isEnabled",value:function(){return!!this._enabled}},{key:"isActive",value:function(){return this._active||void 0!==this._finishTimeout}},{key:"isZooming",value:function(){return!!this._zooming}},{key:"enable",value:function(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around,this._map._cooperativeGestures&&this._addScrollZoomBlocker())}},{key:"disable",value:function(){this.isEnabled()&&(this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove()))}},{key:"wheel",value:function(t){if(this.isEnabled()){if(this._map._cooperativeGestures){if(!(t.ctrlKey||t.metaKey||this.isZooming()||e.isFullscreen()))return void this._showBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}var n=t.deltaMode===e.window.WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY,r=e.exported.now(),i=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,0!==n&&n%Wi==0?this._type="wheel":0!==n&&Math.abs(n)<4?this._type="trackpad":i>400?(this._type=null,this._lastValue=n,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(i*n)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,n+=this._lastValue)),t.shiftKey&&n&&(n/=4),this._type&&(this._lastWheelEvent=t,this._delta-=n,this._active||this._start(t)),t.preventDefault()}}},{key:"_onTimeout",value:function(e){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(e)}},{key:"_start",value:function(e){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var t=A(this._el,e);this._aroundPoint=this._aroundCenter?this._map.transform.centerPoint:t,this._aroundCoord=this._map.transform.pointCoordinate3D(this._aroundPoint),this._targetZoom=void 0,this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}}},{key:"renderFrame",value:function(){var t=this;if(this._frameId&&(this._frameId=null,this.isActive())){var n=this._map.transform,r=function(){return n._terrainEnabled()&&t._aroundCoord?n.computeZoomRelativeTo(t._aroundCoord):n.zoom};if(0!==this._delta){var i="wheel"===this._type&&Math.abs(this._delta)>Wi?this._wheelZoomRate:this._defaultZoomRate,a=2/(1+Math.exp(-Math.abs(this._delta*i)));this._delta<0&&0!==a&&(a=1/a);var o=r(),s=Math.pow(2,o),l="number"==typeof this._targetZoom?n.zoomScale(this._targetZoom):s;this._targetZoom=Math.min(n.maxZoom,Math.max(n.minZoom,n.scaleZoom(l*a))),"wheel"===this._type&&(this._startZoom=o,this._easing=this._smoothOutEasing(200)),this._delta=0}var u,c="number"==typeof this._targetZoom?this._targetZoom:r(),d=this._startZoom,f=this._easing,p=!1;if("wheel"===this._type&&d&&f){var h=Math.min((e.exported.now()-this._lastWheelEventTime)/200,1),m=f(h);u=e.number(d,c,m),h<1?this._frameId||(this._frameId=!0):p=!0}else u=c,p=!0;return this._active=!0,p&&(this._active=!1,this._finishTimeout=setTimeout((function(){t._zooming=!1,t._handler._triggerRenderFrame(),delete t._targetZoom,delete t._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!p,zoomDelta:u-r(),around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}}},{key:"_smoothOutEasing",value:function(t){var n=e.ease;if(this._prevEase){var r=this._prevEase,i=(e.exported.now()-r.start)/r.duration,a=r.easing(i+.01)-r.easing(i),o=.27/Math.sqrt(a*a+1e-4)*.01,s=Math.sqrt(.0729-o*o);n=e.bezier(o,s,.25,1)}return this._prevEase={start:e.exported.now(),duration:t,easing:n},n}},{key:"blur",value:function(){this.reset()}},{key:"reset",value:function(){this._active=!1}},{key:"_addScrollZoomBlocker",value:function(){this._map&&!this._alertContainer&&(this._alertContainer=y("div","mapboxgl-scroll-zoom-blocker",this._map._container),this._alertContainer.textContent=/(Mac|iPad)/i.test(e.window.navigator.userAgent)?this._map._getUIString("ScrollZoomBlocker.CmdMessage"):this._map._getUIString("ScrollZoomBlocker.CtrlMessage"),this._alertContainer.style.fontSize="".concat(Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth))),"px"))}},{key:"_showBlockerAlert",value:function(){var e=this;this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout((function(){e._alertContainer.classList.remove("mapboxgl-scroll-zoom-blocker-show"),e._alertContainer.setAttribute("role","null")}),200)}}]),t}(),Ki=function(){function e(t,n){g(this,e),this._clickZoom=t,this._tapZoom=n}return v(e,[{key:"enable",value:function(){this._clickZoom.enable(),this._tapZoom.enable()}},{key:"disable",value:function(){this._clickZoom.disable(),this._tapZoom.disable()}},{key:"isEnabled",value:function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}},{key:"isActive",value:function(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}]),e}(),$i=function(){function e(){g(this,e),this.reset()}return v(e,[{key:"reset",value:function(){this._active=!1}},{key:"blur",value:function(){this.reset()}},{key:"dblclick",value:function(e,t){return e.preventDefault(),{cameraAnimation:function(n){n.easeTo({duration:300,zoom:n.getZoom()+(e.shiftKey?-1:1),around:n.unproject(t)},{originalEvent:e})}}}},{key:"enable",value:function(){this._enabled=!0}},{key:"disable",value:function(){this._enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this._enabled}},{key:"isActive",value:function(){return this._active}}]),e}(),Qi=function(){function e(){g(this,e),this._tap=new Di({numTouches:1,numTaps:1}),this.reset()}return v(e,[{key:"reset",value:function(){this._active=!1,this._swipePoint=void 0,this._swipeTouch=0,this._tapTime=0,this._tap.reset()}},{key:"touchstart",value:function(e,t,n){this._swipePoint||(this._tapTime&&e.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?n.length>0&&(this._swipePoint=t[0],this._swipeTouch=n[0].identifier):this._tap.touchstart(e,t,n))}},{key:"touchmove",value:function(e,t,n){if(this._tapTime){if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;var r=t[0],i=r.y-this._swipePoint.y;return this._swipePoint=r,e.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(e,t,n)}},{key:"touchend",value:function(e,t,n){this._tapTime?this._swipePoint&&0===n.length&&this.reset():this._tap.touchend(e,t,n)&&(this._tapTime=e.timeStamp)}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(){this._enabled=!0}},{key:"disable",value:function(){this._enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this._enabled}},{key:"isActive",value:function(){return this._active}}]),e}(),Ji=function(){function e(t,n,r){g(this,e),this._el=t,this._mousePan=n,this._touchPan=r}return v(e,[{key:"enable",value:function(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")}},{key:"disable",value:function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")}},{key:"isEnabled",value:function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}},{key:"isActive",value:function(){return this._mousePan.isActive()||this._touchPan.isActive()}}]),e}(),ea=function(){function e(t,n,r){g(this,e),this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=n,this._mousePitch=r}return v(e,[{key:"enable",value:function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}},{key:"disable",value:function(){this._mouseRotate.disable(),this._mousePitch.disable()}},{key:"isEnabled",value:function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}},{key:"isActive",value:function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}]),e}(),ta=function(){function e(t,n,r,i){g(this,e),this._el=t,this._touchZoom=n,this._touchRotate=r,this._tapDragZoom=i,this._rotationDisabled=!1,this._enabled=!0}return v(e,[{key:"enable",value:function(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")}},{key:"disable",value:function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")}},{key:"isEnabled",value:function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}},{key:"isActive",value:function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}},{key:"disableRotation",value:function(){this._rotationDisabled=!0,this._touchRotate.disable()}},{key:"enableRotation",value:function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}]),e}(),na=function(e){return e.zoom||e.drag||e.pitch||e.rotate},ra=function(e){h(n,e);var t=m(n);function n(){return g(this,n),t.apply(this,arguments)}return v(n)}(e.Event),ia=function(){function t(){g(this,t),this.constants=[1,1,.01],this.radius=0}return v(t,[{key:"setup",value:function(t,n){var r=e.sub([],n,t);this.radius=e.length(r[2]<0?e.div([],r,this.constants):[r[0],r[1],0])}},{key:"projectRay",value:function(t){e.div(t,t,this.constants),e.normalize(t,t),e.mul$1(t,t,this.constants);var n=e.scale$2([],t,this.radius);if(n[2]>0){var r=e.scale$2([],[0,0,1],e.dot(n,[0,0,1])),i=e.scale$2([],e.normalize([],[n[0],n[1],0]),this.radius),a=e.add([],n,e.scale$2([],e.sub([],e.add([],i,r),n),2));n[0]=a[0],n[1]=a[1]}return n}}]),t}();function aa(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}var oa=function(){function t(n,r){g(this,t),this._map=n,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new yi(n),this._bearingSnap=r.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new ia,this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(r),e.bindAll(["handleEvent","handleWindowEvent"],this);var i=this._el;this._listeners=[[i,"touchstart",{passive:!0}],[i,"touchmove",{passive:!1}],[i,"touchend",void 0],[i,"touchcancel",void 0],[i,"mousedown",void 0],[i,"mousemove",void 0],[i,"mouseup",void 0],[e.window.document,"mousemove",{capture:!0}],[e.window.document,"mouseup",void 0],[i,"mouseover",void 0],[i,"mouseout",void 0],[i,"dblclick",void 0],[i,"click",void 0],[i,"keydown",{capture:!1}],[i,"keyup",void 0],[i,"wheel",{passive:!1}],[i,"contextmenu",void 0],[e.window,"blur",void 0]];var a,o=f(this._listeners);try{for(o.s();!(a=o.n()).done;){var s=d(a.value,3),l=s[0],u=s[1],c=s[2];l.addEventListener(u,l===e.window.document?this.handleWindowEvent:this.handleEvent,c)}}catch(p){o.e(p)}finally{o.f()}}return v(t,[{key:"destroy",value:function(){var t,n=f(this._listeners);try{for(n.s();!(t=n.n()).done;){var r=d(t.value,3),i=r[0],a=r[1],o=r[2];i.removeEventListener(a,i===e.window.document?this.handleWindowEvent:this.handleEvent,o)}}catch(s){n.e(s)}finally{n.f()}}},{key:"_addDefaultHandlers",value:function(e){var t=this._map,n=t.getCanvasContainer();this._add("mapEvent",new wi(t,e));var r=t.boxZoom=new Ti(t,e);this._add("boxZoom",r);var i=new Oi,a=new $i;t.doubleClickZoom=new Ki(a,i),this._add("tapZoom",i),this._add("clickZoom",a);var o=new Qi;this._add("tapDragZoom",o);var s=t.touchPitch=new Vi(t);this._add("touchPitch",s);var l=new Mi(e),u=new Pi(e);t.dragRotate=new ea(e,l,u),this._add("mouseRotate",l,["mousePitch"]),this._add("mousePitch",u,["mouseRotate"]);var c=new Ni(e),d=new Li(t,e);t.dragPan=new Ji(n,c,d),this._add("mousePan",c),this._add("touchPan",d,["touchZoom","touchRotate"]);var f=new ji,p=new zi;t.touchZoomRotate=new ta(n,p,f,o),this._add("touchRotate",f,["touchPan","touchZoom"]),this._add("touchZoom",p,["touchPan","touchRotate"]),this._add("blockableMapEvent",new Ci(t));var h=t.scrollZoom=new Xi(t,this);this._add("scrollZoom",h,["mousePan"]);var m=t.keyboard=new Hi;this._add("keyboard",m);for(var g=0,v=["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"];g1e-4&&o.recenterOnTerrain(),o.cameraElevationReference="ground",this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(n,r,!0)}else this._fireEvents(n,r,!0)}},{key:"_fireEvents",value:function(t,n,r){var i=this,a=na(this._eventsInProgress),o=na(t),s={};for(var l in t){var u=t[l].originalEvent;this._eventsInProgress[l]||(s["".concat(l,"start")]=u),this._eventsInProgress[l]=t[l]}for(var c in!a&&o&&this._fireEvent("movestart",o.originalEvent),s)this._fireEvent(c,s[c]);for(var d in o&&this._fireEvent("move",o.originalEvent),t){var f=t[d].originalEvent;this._fireEvent(d,f)}var p,h={};for(var m in this._eventsInProgress){var g=this._eventsInProgress[m],v=g.handlerName,y=g.originalEvent;this._handlersById[v].isActive()||(delete this._eventsInProgress[m],p=n[v]||y,h["".concat(m,"end")]=p)}for(var _ in h)this._fireEvent(_,h[_]);var b=na(this._eventsInProgress);if(r&&(a||o)&&!b){this._updatingCamera=!0;var x=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),E=function(e){return 0!==e&&-i._bearingSnapl?Math.min(2,C):Math.max(.5,C),b=Math.pow(_,1-v),x=s.unproject(a.add(o.mult(v*b)).mult(y));s.setLocationAtPoint(s.renderWorldCopies?x.wrap():x,i)}return t.preloadOnly||r._fireMoveEvents(n),s}};if(t.preloadOnly){var I=this._emulate(O,t.duration,s);return this._preloadTiles(I),this}var R={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=T,this._rotating=A,this._pitching=k,this._padding=D,this._easeId=t.easeId,this._prepareEase(n,t.noMoveStart,R),this._ease(O(s),(function(e){s.recenterOnTerrain(),r._afterEase(n,e)}),t),this}},{key:"_prepareEase",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._moving=!0,this.transform.cameraElevationReference="sea",n||r.moving||this.fire(new e.Event("movestart",t)),this._zooming&&!r.zooming&&this.fire(new e.Event("zoomstart",t)),this._rotating&&!r.rotating&&this.fire(new e.Event("rotatestart",t)),this._pitching&&!r.pitching&&this.fire(new e.Event("pitchstart",t))}},{key:"_fireMoveEvents",value:function(t){this.fire(new e.Event("move",t)),this._zooming&&this.fire(new e.Event("zoom",t)),this._rotating&&this.fire(new e.Event("rotate",t)),this._pitching&&this.fire(new e.Event("pitch",t))}},{key:"_afterEase",value:function(t,n){if(!this._easeId||!n||this._easeId!==n){this._easeId=void 0,this.transform.cameraElevationReference="ground";var r=this._zooming,i=this._rotating,a=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,r&&this.fire(new e.Event("zoomend",t)),i&&this.fire(new e.Event("rotateend",t)),a&&this.fire(new e.Event("pitchend",t)),this.fire(new e.Event("moveend",t))}}},{key:"flyTo",value:function(t,n){var r=this;if(!t.essential&&e.exported.prefersReducedMotion){var i=e.pick(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(i,n)}this.stop(),t=e.extend({offset:[0,0],speed:1.2,curve:1.42,easing:e.ease},t);var a=this.transform,o=this.getZoom(),s=this.getBearing(),l=this.getPitch(),u=this.getPadding(),c="zoom"in t?e.clamp(+t.zoom,a.minZoom,a.maxZoom):o,d="bearing"in t?this._normalizeBearing(t.bearing,s):s,f="pitch"in t?+t.pitch:l,p="padding"in t?t.padding:a.padding,h=a.zoomScale(c-o),m=e.pointGeometry.convert(t.offset),g=a.centerPoint.add(m),v=a.pointLocation(g),y=e.LngLat.convert(t.center||v);this._normalizeCenter(y);var _=a.project(v),b=a.project(y).sub(_),x=t.curve,E=Math.max(a.width,a.height),S=E/h,w=b.mag();if("minZoom"in t){var C=e.clamp(Math.min(t.minZoom,o,c),a.minZoom,a.maxZoom),T=E/a.zoomScale(C-o);x=Math.sqrt(T/w*2)}var A=x*x;function k(e){var t=(S*S-E*E+(e?-1:1)*A*A*w*w)/(2*(e?S:E)*A*w);return Math.log(Math.sqrt(t*t+1)-t)}function D(e){return(Math.exp(e)-Math.exp(-e))/2}function O(e){return(Math.exp(e)+Math.exp(-e))/2}var I=k(0),R=function(e){return O(I)/O(I+x*e)},N=function(e){return E*((O(I)*(D(t=I+x*e)/O(t))-D(I))/A)/w;var t},M=(k(1)-I)/x;if(Math.abs(w)<1e-6||!isFinite(M)){if(Math.abs(E-S)<1e-6)return this.easeTo(t,n);var P=St.maxDuration&&(t.duration=0);var L=s!==d,F=f!==l,B=!a.isPaddingEqual(p),Z=function(i){return function(a){var h=a*M,v=1/R(h);i.zoom=1===a?c:o+i.scaleZoom(v),L&&(i.bearing=e.number(s,d,a)),F&&(i.pitch=e.number(l,f,a)),B&&(i.interpolatePadding(u,p,a),g=i.centerPoint.add(m));var x=1===a?y:i.unproject(_.add(b.mult(N(h))).mult(v));return i.setLocationAtPoint(i.renderWorldCopies?x.wrap():x,g),i._updateCameraOnTerrain(),t.preloadOnly||r._fireMoveEvents(n),i}};if(t.preloadOnly){var z=this._emulate(Z,t.duration,a);return this._preloadTiles(z),this}return this._zooming=!0,this._rotating=L,this._pitching=F,this._padding=B,this._prepareEase(n,!1),this._ease(Z(a),(function(){return r._afterEase(n)}),t),this}},{key:"isEasing",value:function(){return!!this._easeFrameId}},{key:"stop",value:function(){return this._stop()}},{key:"_stop",value:function(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),this._easeFrameId=void 0,this._onEaseFrame=void 0),this._onEaseEnd){var n=this._onEaseEnd;this._onEaseEnd=void 0,n.call(this,t)}if(!e){var r=this.handlers;r&&r.stop(!1)}return this}},{key:"_ease",value:function(t,n,r){!1===r.animate||0===r.duration?(t(1),n()):(this._easeStart=e.exported.now(),this._easeOptions=r,this._onEaseFrame=t,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}},{key:"_renderFrameCallback",value:function(){var t=Math.min((e.exported.now()-this._easeStart)/this._easeOptions.duration,1),n=this._onEaseFrame;n&&n(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}},{key:"_normalizeBearing",value:function(t,n){t=e.wrap(t,-180,180);var r=Math.abs(t-n);return Math.abs(t-360-n)180?-360:n<-180?360:0}}},{key:"_emulate",value:function(e,t,n){for(var r=Math.ceil(15*t/1e3),i=[],a=e(n.clone()),o=0;o<=r;o++){var s=a(o/r);i.push(s.clone())}return i}}]),r}(e.Evented),ua=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};g(this,t),this.options=n,e.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)}return v(t,[{key:"getDefaultPosition",value:function(){return"bottom-right"}},{key:"onAdd",value:function(e){var t=this.options&&this.options.compact;return this._map=e,this._container=y("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=y("button","mapboxgl-ctrl-attrib-button",this._container),y("span","mapboxgl-ctrl-icon",this._compactButton).setAttribute("aria-hidden","true"),this._compactButton.type="button",this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=y("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),t&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===t&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container}},{key:"onRemove",value:function(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0}},{key:"_setElementTitle",value:function(e,t){var n=this._map._getUIString("AttributionControl.".concat(t));e.setAttribute("aria-label",n),e.removeAttribute("title"),e.firstElementChild&&e.firstElementChild.setAttribute("title",n)}},{key:"_toggleAttribution",value:function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","true"))}},{key:"_updateEditLink",value:function(){var t=this._editLink;t||(t=this._editLink=this._container.querySelector(".mapbox-improve-map"));var n=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||e.config.ACCESS_TOKEN}];if(t){var r=n.reduce((function(e,t,r){return t.value&&(e+="".concat(t.key,"=").concat(t.value).concat(r=0)return!1;return!0})),this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=[].concat(c(this.options.customAttribution),c(e)):e.unshift(this.options.customAttribution));var o=e.join(" | ");o!==this._attribHTML&&(this._attribHTML=o,e.length?(this._innerContainer.innerHTML=o,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}}},{key:"_updateCompact",value:function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")}}]),t}(),ca=function(){function t(){g(this,t),e.bindAll(["_updateLogo","_updateCompact"],this)}return v(t,[{key:"onAdd",value:function(e){this._map=e,this._container=y("div","mapboxgl-ctrl");var t=y("a","mapboxgl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://www.mapbox.com/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}},{key:"onRemove",value:function(){this._container.remove(),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)}},{key:"getDefaultPosition",value:function(){return"bottom-left"}},{key:"_updateLogo",value:function(e){e&&"metadata"!==e.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")}},{key:"_logoRequired",value:function(){if(!this._map.style)return!0;var e=this._map.style._sourceCaches;if(0===Object.entries(e).length)return!0;for(var t in e){var n=e[t].getSource();if(n.hasOwnProperty("mapbox_logo")&&!n.mapbox_logo)return!1}return!0}},{key:"_updateCompact",value:function(){var e=this._container.children;if(e.length){var t=e[0];this._map.getCanvasContainer().offsetWidth<250?t.classList.add("mapboxgl-compact"):t.classList.remove("mapboxgl-compact")}}}]),t}(),da=function(){function e(){g(this,e),this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}return v(e,[{key:"add",value:function(e){var t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t}},{key:"remove",value:function(e){var t,n=this._currentlyRunning,r=n?this._queue.concat(n):this._queue,i=f(r);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(a.id===e)return void(a.cancelled=!0)}}catch(o){i.e(o)}finally{i.f()}}},{key:"run",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this._currentlyRunning=this._queue;this._queue=[];var n,r=f(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!i.cancelled&&(i.callback(e),this._cleared))break}}catch(a){r.e(a)}finally{r.f()}this._cleared=!1,this._currentlyRunning=!1}},{key:"clear",value:function(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}]),e}();function fa(t,n,r){if(t=new e.LngLat(t.lng,t.lat),n){var i=new e.LngLat(t.lng-360,t.lat),a=new e.LngLat(t.lng+360,t.lat),o=360*Math.ceil(Math.abs(t.lng-r.center.lng)/360),s=r.locationPoint(t).distSqr(n),l=n.x<0||n.y<0||n.x>r.width||n.y>r.height;r.locationPoint(i).distSqr(n)180;){var u=r.locationPoint(t);if(u.x>=0&&u.y>=0&&u.x<=r.width&&u.y<=r.height)break;t.lng>r.center.lng?t.lng-=360:t.lng+=360}return t}var pa={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"},ha=function(t){h(r,t);var n=m(r);function r(t,a){var o;if(g(this,r),o=n.call(this),(t instanceof e.window.HTMLElement||a)&&(t=e.extend({element:t},a)),e.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress","_clearFadeTimer"],i(o)),o._anchor=t&&t.anchor||"center",o._color=t&&t.color||"#3FB1CE",o._scale=t&&t.scale||1,o._draggable=t&&t.draggable||!1,o._clickTolerance=t&&t.clickTolerance||0,o._isDragging=!1,o._state="inactive",o._rotation=t&&t.rotation||0,o._rotationAlignment=t&&t.rotationAlignment||"auto",o._pitchAlignment=t&&t.pitchAlignment&&t.pitchAlignment||"auto",o._updateMoving=function(){return o._update(!0)},t&&t.element)o._element=t.element,o._offset=e.pointGeometry.convert(t&&t.offset||[0,0]);else{o._defaultMarker=!0,o._element=y("div");var s=41,u=27,c=_("svg",{display:"block",height:s*o._scale+"px",width:u*o._scale+"px",viewBox:"0 0 ".concat(u," ").concat(s)},o._element),d=_("radialGradient",{id:"shadowGradient"},_("defs",{},c));_("stop",{offset:"10%","stop-opacity":.4},d),_("stop",{offset:"100%","stop-opacity":.05},d),_("ellipse",{cx:13.5,cy:34.8,rx:10.5,ry:5.25,fill:"url(#shadowGradient)"},c),_("path",{fill:o._color,d:"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z"},c),_("path",{opacity:.25,d:"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z"},c),_("circle",{fill:"white",cx:13.5,cy:13.5,r:5.5},c),o._offset=e.pointGeometry.convert(t&&t.offset||[0,-14])}o._element.hasAttribute("aria-label")||o._element.setAttribute("aria-label","Map marker"),o._element.classList.add("mapboxgl-marker"),o._element.addEventListener("dragstart",(function(e){e.preventDefault()})),o._element.addEventListener("mousedown",(function(e){e.preventDefault()}));var f=o._element.classList;for(var p in pa)f.remove("mapboxgl-marker-anchor-".concat(p));return f.add("mapboxgl-marker-anchor-".concat(o._anchor)),o._popup=null,l(o)}return v(r,[{key:"addTo",value:function(e){return e===this._map||(this.remove(),this._map=e,e.getCanvasContainer().appendChild(this._element),e.on("move",this._updateMoving),e.on("moveend",this._update),e.on("remove",this._clearFadeTimer),e._addMarker(this),this.setDraggable(this._draggable),this._update(),e.on("click",this._onMapClick)),this}},{key:"remove",value:function(){var e=this._map;return e&&(e.off("click",this._onMapClick),e.off("move",this._updateMoving),e.off("moveend",this._update),e.off("mousedown",this._addDragHandler),e.off("touchstart",this._addDragHandler),e.off("mouseup",this._onUp),e.off("touchend",this._onUp),e.off("mousemove",this._onMove),e.off("touchmove",this._onMove),e.off("remove",this._clearFadeTimer),e._removeMarker(this),this._map=void 0),this._clearFadeTimer(),this._element.remove(),this._popup&&this._popup.remove(),this}},{key:"getLngLat",value:function(){return this._lngLat}},{key:"setLngLat",value:function(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(!0),this}},{key:"getElement",value:function(){return this._element}},{key:"setPopup",value:function(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeAttribute("role"),this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),e){if(!("offset"in e.options)){var t=38.1,n=13.5,r=Math.sqrt(Math.pow(n,2)/2);e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-t],"bottom-left":[r,-1*(t-n+r)],"bottom-right":[-r,-1*(t-n+r)],left:[n,-1*(t-n)],right:[-n,-1*(t-n)]}:this._offset}this._popup=e,e._marker=this,this._lngLat&&this._popup.setLngLat(this._lngLat),this._element.setAttribute("role","button"),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress),this._element.setAttribute("aria-expanded","false")}return this}},{key:"_onKeyPress",value:function(e){var t=e.code,n=e.charCode||e.keyCode;"Space"!==t&&"Enter"!==t&&32!==n&&13!==n||this.togglePopup()}},{key:"_onMapClick",value:function(e){var t=e.originalEvent.target,n=this._element;this._popup&&(t===n||n.contains(t))&&this.togglePopup()}},{key:"getPopup",value:function(){return this._popup}},{key:"togglePopup",value:function(){var e=this._popup;return e?(e.isOpen()?(e.remove(),this._element.setAttribute("aria-expanded","false")):this._map&&(e.addTo(this._map),this._element.setAttribute("aria-expanded","true")),this):this}},{key:"_behindTerrain",value:function(){var e=this._map;if(!e)return!1;var t=e.unproject(this._pos),n=e.getFreeCameraOptions();if(!n.position)return!1;var r=n.position.toLngLat();return r.distanceTo(t)<.9*r.distanceTo(this._lngLat)}},{key:"_evaluateOpacity",value:function(){var t=this._map;if(t){var n=this._pos;if(!n||n.x<0||n.x>t.transform.width||n.y<0||n.y>t.transform.height)this._clearFadeTimer();else{var r,i=t.unproject(n);t._showingGlobe()&&e.isLngLatBehindGlobe(t.transform,this._lngLat)?r=0:(r=1-t._queryFogOpacity(i),t.transform._terrainEnabled()&&t.getTerrain()&&this._behindTerrain()&&(r*=.2)),this._element.style.opacity="".concat(r),this._element.style.pointerEvents=r>0?"auto":"none",this._popup&&this._popup._setOpacity(r),this._fadeTimer=null}}}},{key:"_clearFadeTimer",value:function(){this._fadeTimer&&(clearTimeout(this._fadeTimer),this._fadeTimer=null)}},{key:"_updateDOM",value:function(){var e=this._pos;if(e&&this._map){var t=this._offset.mult(this._scale);this._element.style.transform="\n translate(".concat(e.x,"px,").concat(e.y,"px)\n ").concat(pa[this._anchor],"\n ").concat(this._calculateXYTransform()," ").concat(this._calculateZTransform(),"\n translate(").concat(t.x,"px,").concat(t.y,"px)\n ")}}},{key:"_calculateXYTransform",value:function(){var t=this._pos,n=this._map,r=this.getPitchAlignment();if(!n||!t||"map"!==r)return"";if(!n._showingGlobe()){var i=n.getPitch();return i?"rotateX(".concat(i,"deg)"):""}var a=e.radToDeg(e.globeTiltAtLngLat(n.transform,this._lngLat)),o=t.sub(e.globeCenterToScreenPoint(n.transform)),s=Math.abs(o.x)+Math.abs(o.y);if(0===s)return"";var l=a/s;return"rotateX(".concat(-o.y*l,"deg) rotateY(").concat(o.x*l,"deg)")}},{key:"_calculateZTransform",value:function(){var t=this._pos,n=this._map;if(!n||!t)return"";var r=0,i=this.getRotationAlignment();if("map"===i)if(n._showingGlobe()){var a=n.project(new e.LngLat(this._lngLat.lng,this._lngLat.lat+.001)),o=n.project(new e.LngLat(this._lngLat.lng,this._lngLat.lat-.001)).sub(a);r=e.radToDeg(Math.atan2(o.y,o.x))-90}else r=-n.getBearing();else if("horizon"===i){var s=e.smoothstep(4,6,n.getZoom()),l=e.globeCenterToScreenPoint(n.transform);l.y+=s*n.transform.height;var u=t.sub(l),c=e.radToDeg(Math.atan2(u.y,u.x));r=(c>90?c-270:c+90)*(1-s)}return(r+=this._rotation)?"rotateZ(".concat(r,"deg)"):""}},{key:"_update",value:function(t){var n=this;e.window.cancelAnimationFrame(this._updateFrameId);var r=this._map;r&&(r.transform.renderWorldCopies&&(this._lngLat=fa(this._lngLat,this._pos,r.transform)),this._pos=r.project(this._lngLat),!0===t?this._updateFrameId=e.window.requestAnimationFrame((function(){n._element&&n._pos&&n._anchor&&(n._pos=n._pos.round(),n._updateDOM())})):this._pos=this._pos.round(),r._requestDomTask((function(){n._map&&(n._element&&n._pos&&n._anchor&&n._updateDOM(),(r._showingGlobe()||r.getTerrain()||r.getFog())&&!n._fadeTimer&&(n._fadeTimer=setTimeout(n._evaluateOpacity.bind(n),60)))})))}},{key:"getOffset",value:function(){return this._offset}},{key:"setOffset",value:function(t){return this._offset=e.pointGeometry.convert(t),this._update(),this}},{key:"_onMove",value:function(t){var n=this._map;if(n){if(!this._isDragging){var r=this._clickTolerance||n._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=r}this._isDragging&&(this._pos=t.point.sub(this._positionDelta),this._lngLat=n.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new e.Event("dragstart"))),this.fire(new e.Event("drag")))}}},{key:"_onUp",value:function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1;var t=this._map;t&&(t.off("mousemove",this._onMove),t.off("touchmove",this._onMove)),"active"===this._state&&this.fire(new e.Event("dragend")),this._state="inactive"}},{key:"_addDragHandler",value:function(e){var t=this._map;t&&this._element.contains(e.originalEvent.target)&&(e.preventDefault(),this._positionDelta=e.point.sub(this._pos),this._pointerdownPos=e.point,this._state="pending",t.on("mousemove",this._onMove),t.on("touchmove",this._onMove),t.once("mouseup",this._onUp),t.once("touchend",this._onUp))}},{key:"setDraggable",value:function(e){this._draggable=!!e;var t=this._map;return t&&(e?(t.on("mousedown",this._addDragHandler),t.on("touchstart",this._addDragHandler)):(t.off("mousedown",this._addDragHandler),t.off("touchstart",this._addDragHandler))),this}},{key:"isDraggable",value:function(){return this._draggable}},{key:"setRotation",value:function(e){return this._rotation=e||0,this._update(),this}},{key:"getRotation",value:function(){return this._rotation}},{key:"setRotationAlignment",value:function(e){return this._rotationAlignment=e||"auto",this._update(),this}},{key:"getRotationAlignment",value:function(){return"auto"===this._rotationAlignment||"horizon"===this._rotationAlignment&&this._map&&!this._map._showingGlobe()?"viewport":this._rotationAlignment}},{key:"setPitchAlignment",value:function(e){return this._pitchAlignment=e||"auto",this._update(),this}},{key:"getPitchAlignment",value:function(){return"auto"===this._pitchAlignment?this.getRotationAlignment():this._pitchAlignment}}]),r}(e.Evented),ma=function(){function t(e){g(this,t),this.jumpTo(e)}return v(t,[{key:"getValue",value:function(t){if(t<=this._startTime)return this._start;if(t>=this._endTime)return this._end;var n=e.easeCubicInOut((t-this._startTime)/(this._endTime-this._startTime));return this._start*(1-n)+this._end*n}},{key:"isEasing",value:function(e){return e>=this._startTime&&e<=this._endTime}},{key:"jumpTo",value:function(e){this._startTime=-1/0,this._endTime=-1/0,this._start=e,this._end=e}},{key:"easeTo",value:function(e,t,n){this._start=this.getValue(t),this._end=e,this._startTime=t,this._endTime=t+n}}]),t}(),ga={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","Map.Title":"Map","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use \u2318 + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"},va={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,optimizeForTerrain:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,minTileCacheSize:null,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0};function ya(e){e.parentNode&&e.parentNode.removeChild(e)}var _a={showCompass:!0,showZoom:!0,visualizePitch:!1},ba=function(){function t(n,r){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];g(this,t),this._clickTolerance=10,this.element=r,this.mouseRotate=new Mi({clickTolerance:n.dragRotate._mouseRotate._clickTolerance}),this.map=n,i&&(this.mousePitch=new Pi({clickTolerance:n.dragRotate._mousePitch._clickTolerance})),e.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),r.addEventListener("mousedown",this.mousedown),r.addEventListener("touchstart",this.touchstart,{passive:!1}),r.addEventListener("touchmove",this.touchmove),r.addEventListener("touchend",this.touchend),r.addEventListener("touchcancel",this.reset)}return v(t,[{key:"down",value:function(e,t){this.mouseRotate.mousedown(e,t),this.mousePitch&&this.mousePitch.mousedown(e,t),S()}},{key:"move",value:function(e,t){var n=this.map,r=this.mouseRotate.mousemoveWindow(e,t),i=r&&r.bearingDelta;if(i&&n.setBearing(n.getBearing()+i),this.mousePitch){var a=this.mousePitch.mousemoveWindow(e,t),o=a&&a.pitchDelta;o&&n.setPitch(n.getPitch()+o)}}},{key:"off",value:function(){var e=this.element;e.removeEventListener("mousedown",this.mousedown),e.removeEventListener("touchstart",this.touchstart,{passive:!1}),e.removeEventListener("touchmove",this.touchmove),e.removeEventListener("touchend",this.touchend),e.removeEventListener("touchcancel",this.reset),this.offTemp()}},{key:"offTemp",value:function(){w(),e.window.removeEventListener("mousemove",this.mousemove),e.window.removeEventListener("mouseup",this.mouseup)}},{key:"mousedown",value:function(t){this.down(e.extend({},t,{ctrlKey:!0,preventDefault:function(){return t.preventDefault()}}),A(this.element,t)),e.window.addEventListener("mousemove",this.mousemove),e.window.addEventListener("mouseup",this.mouseup)}},{key:"mousemove",value:function(e){this.move(e,A(this.element,e))}},{key:"mouseup",value:function(e){this.mouseRotate.mouseupWindow(e),this.mousePitch&&this.mousePitch.mouseupWindow(e),this.offTemp()}},{key:"touchstart",value:function(e){1!==e.targetTouches.length?this.reset():(this._startPos=this._lastPos=k(this.element,e.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return e.preventDefault()}},this._startPos))}},{key:"touchmove",value:function(e){1!==e.targetTouches.length?this.reset():(this._lastPos=k(this.element,e.targetTouches)[0],this.move({preventDefault:function(){return e.preventDefault()}},this._lastPos))}},{key:"touchend",value:function(e){0===e.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=10?10:n>=5?5:n>=3?3:n>=2?2:n>=1?1:function(e){var t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(n),t*n}var Ca={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Ta=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function Aa(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new e.pointGeometry(0,0),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bottom";if("number"==typeof t){var r=Math.round(Math.sqrt(.5*Math.pow(t,2)));switch(n){case"top":return new e.pointGeometry(0,t);case"top-left":return new e.pointGeometry(r,r);case"top-right":return new e.pointGeometry(-r,r);case"bottom":return new e.pointGeometry(0,-t);case"bottom-left":return new e.pointGeometry(r,-r);case"bottom-right":return new e.pointGeometry(-r,-r);case"left":return new e.pointGeometry(t,0);case"right":return new e.pointGeometry(-t,0)}return new e.pointGeometry(0,0)}return t instanceof e.pointGeometry||Array.isArray(t)?e.pointGeometry.convert(t):e.pointGeometry.convert(t[n]||[0,0])}var ka={version:e.version,supported:n,setRTLTextPlugin:e.setRTLTextPlugin,getRTLTextPluginStatus:e.getRTLTextPluginStatus,Map:function(t){h(c,t);var a=m(c);function c(t){var n;if(g(this,c),null!=(t=e.extend({},va,t)).minZoom&&null!=t.maxZoom&&t.minZoom>t.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=t.minPitch&&null!=t.maxPitch&&t.minPitch>t.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=t.minPitch&&t.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=t.maxPitch&&t.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(t.antialias&&e.isSafariWithAntialiasingBug(e.window)&&(t.antialias=!1,e.warnOnce("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),(n=a.call(this,new ui(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies),t))._interactive=t.interactive,n._minTileCacheSize=t.minTileCacheSize,n._maxTileCacheSize=t.maxTileCacheSize,n._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,n._preserveDrawingBuffer=t.preserveDrawingBuffer,n._antialias=t.antialias,n._trackResize=t.trackResize,n._bearingSnap=t.bearingSnap,n._refreshExpiredTiles=t.refreshExpiredTiles,n._fadeDuration=t.fadeDuration,n._isInitialLoad=!0,n._crossSourceCollisions=t.crossSourceCollisions,n._crossFadingFactor=1,n._collectResourceTiming=t.collectResourceTiming,n._optimizeForTerrain=t.optimizeForTerrain,n._language="auto"===t.language?e.window.navigator.language:t.language,n._worldview=t.worldview,n._renderTaskQueue=new da,n._domRenderTaskQueue=new da,n._controls=[],n._markers=[],n._mapId=e.uniqueId(),n._locale=e.extend({},ga,t.locale),n._clickTolerance=t.clickTolerance,n._cooperativeGestures=t.cooperativeGestures,n._containerWidth=0,n._containerHeight=0,n._averageElevationLastSampledAt=-1/0,n._averageElevationExaggeration=0,n._averageElevation=new ma(0),n._useExplicitProjection=!1,n._requestManager=new e.RequestManager(t.transformRequest,t.accessToken,t.testMode),n._silenceAuthErrors=!!t.testMode,"string"==typeof t.container){if(n._container=e.window.document.getElementById(t.container),!n._container)throw new Error("Container '".concat(t.container,"' not found."))}else{if(!(t.container instanceof e.window.HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");n._container=t.container}if(n._container.childNodes.length>0&&e.warnOnce("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),t.maxBounds&&n.setMaxBounds(t.maxBounds),e.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],i(n)),n._setupContainer(),n._setupPainter(),void 0===n.painter)throw new Error("Failed to initialize WebGL.");return n.on("move",(function(){return n._update(!1)})),n.on("moveend",(function(){return n._update(!1)})),n.on("zoom",(function(){return n._update(!0)})),void 0!==e.window&&(e.window.addEventListener("online",n._onWindowOnline,!1),e.window.addEventListener("resize",n._onWindowResize,!1),e.window.addEventListener("orientationchange",n._onWindowResize,!1),e.window.addEventListener("webkitfullscreenchange",n._onWindowResize,!1)),n.handlers=new oa(i(n),t),n._localFontFamily=t.localFontFamily,n._localIdeographFontFamily=t.localIdeographFontFamily,t.style&&n.setStyle(t.style,{localFontFamily:n._localFontFamily,localIdeographFontFamily:n._localIdeographFontFamily}),t.projection&&n.setProjection(t.projection),n._hash=t.hash&&new di("string"==typeof t.hash&&t.hash||void 0).addTo(i(n)),n._hash&&n._hash._onHashChange()||(n.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}),t.bounds&&(n.resize(),n.fitBounds(t.bounds,e.extend({},t.fitBoundsOptions,{duration:0})))),n.resize(),t.attributionControl&&n.addControl(new ua({customAttribution:t.customAttribution})),n._logoControl=new ca,n.addControl(n._logoControl,t.logoPosition),n.on("style.load",(function(){n.transform.unmodified&&n.jumpTo(n.style.stylesheet)})),n.on("data",(function(t){n._update("style"===t.dataType),n.fire(new e.Event("".concat(t.dataType,"data"),t))})),n.on("dataloading",(function(t){n.fire(new e.Event("".concat(t.dataType,"dataloading"),t))})),l(n)}return v(c,[{key:"_getMapId",value:function(){return this._mapId}},{key:"addControl",value:function(t,n){if(void 0===n&&(n=t.getDefaultPosition?t.getDefaultPosition():"top-right"),!t||!t.onAdd)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var r=t.onAdd(this);this._controls.push(t);var i=this._controlPositions[n];return-1!==n.indexOf("bottom")?i.insertBefore(r,i.firstChild):i.appendChild(r),this}},{key:"removeControl",value:function(t){if(!t||!t.onRemove)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var n=this._controls.indexOf(t);return n>-1&&this._controls.splice(n,1),t.onRemove(this),this}},{key:"hasControl",value:function(e){return this._controls.indexOf(e)>-1}},{key:"getContainer",value:function(){return this._container}},{key:"getCanvasContainer",value:function(){return this._canvasContainer}},{key:"getCanvas",value:function(){return this._canvas}},{key:"resize",value:function(t){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));var n=!this._moving;return n&&this.fire(new e.Event("movestart",t)).fire(new e.Event("move",t)),this.fire(new e.Event("resize",t)),n&&this.fire(new e.Event("moveend",t)),this}},{key:"getBounds",value:function(){return"globe"===this.transform.projection.name&&e.warnOnce('Globe projection does not support getBounds API, this API may behave unexpectedly."'),this.transform.getBounds()}},{key:"getMaxBounds",value:function(){return this.transform.getMaxBounds()||null}},{key:"setMaxBounds",value:function(t){return this.transform.setMaxBounds(e.LngLatBounds.convert(t)),this._update()}},{key:"setMinZoom",value:function(t){if((t=null==t?-2:t)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t?this.setZoom(t):this.fire(new e.Event("zoomstart")).fire(new e.Event("zoom")).fire(new e.Event("zoomend")),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(t){if((t=null==t?0:t)<0)throw new Error("minPitch must be greater than or equal to 0");if(t>=0&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t?this.setPitch(t):this.fire(new e.Event("pitchstart")).fire(new e.Event("pitch")).fire(new e.Event("pitchend")),this;throw new Error("maxPitch must be greater than or equal to minPitch")}},{key:"getMaxPitch",value:function(){return this.transform.maxPitch}},{key:"getRenderWorldCopies",value:function(){return this.transform.renderWorldCopies}},{key:"setRenderWorldCopies",value:function(e){return this.transform.renderWorldCopies=e,this._update()}},{key:"getLanguage",value:function(){return this._language}},{key:"setLanguage",value:function(t){if(this._language="auto"===t?e.window.navigator.language:t,this.style)for(var n in this.style._sourceCaches){var r=this.style._sourceCaches[n]._source;r._setLanguage&&r._setLanguage(this._language)}var i,a=f(this._controls);try{for(a.s();!(i=a.n()).done;){var o=i.value;o._setLanguage&&o._setLanguage(this._language)}}catch(s){a.e(s)}finally{a.f()}return this}},{key:"getWorldview",value:function(){return this._worldview}},{key:"setWorldview",value:function(e){if(this._worldview=e,this.style)for(var t in this.style._sourceCaches){var n=this.style._sourceCaches[t]._source;n._setWorldview&&n._setWorldview(e)}return this}},{key:"getProjection",value:function(){return this.transform.mercatorFromTransition?{name:"globe",center:[0,0]}:this.transform.getProjection()}},{key:"_showingGlobe",value:function(){return"globe"===this.transform.projection.name}},{key:"setProjection",value:function(e){return this._lazyInitEmptyStyle(),e?"string"==typeof e&&(e={name:e}):e=null,this._useExplicitProjection=!!e,this._prioritizeAndUpdateProjection(e,this.style.stylesheet?this.style.stylesheet.projection:null)}},{key:"_updateProjectionTransition",value:function(){if("globe"===this.getProjection().name){var t,n=this.transform,r=n.projection.name;"globe"===r&&n.zoom>=e.GLOBE_ZOOM_THRESHOLD_MAX?(n.setMercatorFromTransition(),t=!0):"mercator"===r&&n.zoom=e.GLOBE_ZOOM_THRESHOLD_MAX?this.transform.setMercatorFromTransition():this.transform.setProjection(t),this.style.applyProjectionUpdate(),n){for(var r in this.painter.clearBackgroundTiles(),this.style._sourceCaches)this.style._sourceCaches[r].clearTiles();this._update(!0)}return this}},{key:"project",value:function(t){return this.transform.locationPoint3D(e.LngLat.convert(t))}},{key:"unproject",value:function(t){return this.transform.pointLocation3D(e.pointGeometry.convert(t))}},{key:"isMoving",value:function(){return this._moving||this.handlers&&this.handlers.isMoving()||!1}},{key:"isZooming",value:function(){return this._zooming||this.handlers&&this.handlers.isZooming()||!1}},{key:"isRotating",value:function(){return this._rotating||this.handlers&&this.handlers.isRotating()||!1}},{key:"_createDelegatedListener",value:function(e,t,n){var i=this;if("mouseenter"===e||"mouseover"===e){var a=!1,o=function(r){var o=t.filter((function(e){return i.getLayer(e)})),s=o.length?i.queryRenderedFeatures(r.point,{layers:o}):[];s.length?a||(a=!0,n.call(i,new xi(e,i,r.originalEvent,{features:s}))):a=!1},s=function(){a=!1};return{layers:new Set(t),listener:n,delegates:{mousemove:o,mouseout:s}}}if("mouseleave"===e||"mouseout"===e){var l=!1,u=function(r){var a=t.filter((function(e){return i.getLayer(e)}));(a.length?i.queryRenderedFeatures(r.point,{layers:a}):[]).length?l=!0:l&&(l=!1,n.call(i,new xi(e,i,r.originalEvent)))},c=function(t){l&&(l=!1,n.call(i,new xi(e,i,t.originalEvent)))};return{layers:new Set(t),listener:n,delegates:{mousemove:u,mouseout:c}}}var d=function(e){var r=t.filter((function(e){return i.getLayer(e)})),a=r.length?i.queryRenderedFeatures(e.point,{layers:r}):[];a.length&&(e.features=a,n.call(i,e),delete e.features)};return{layers:new Set(t),listener:n,delegates:r({},e,d)}}},{key:"on",value:function(e,t,n){if(void 0===n)return o(s(c.prototype),"on",this).call(this,e,t);Array.isArray(t)||(t=[t]);var r=this._createDelegatedListener(e,t,n);for(var i in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(r),r.delegates)this.on(i,r.delegates[i]);return this}},{key:"once",value:function(e,t,n){if(void 0===n)return o(s(c.prototype),"once",this).call(this,e,t);Array.isArray(t)||(t=[t]);var r=this._createDelegatedListener(e,t,n);for(var i in r.delegates)this.once(i,r.delegates[i]);return this}},{key:"off",value:function(e,t,n){var r=this;if(void 0===n)return o(s(c.prototype),"off",this).call(this,e,t);t=new Set(Array.isArray(t)?t:[t]);var i=function(e,t){if(e.size!==t.size)return!1;var n,r=f(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!t.has(i))return!1}}catch(a){r.e(a)}finally{r.f()}return!0},a=this._delegatedListeners?this._delegatedListeners[e]:void 0;return a&&function(e){for(var a=0;a2&&void 0!==arguments[2]?arguments[2]:{},i=r.pixelRatio,a=void 0===i?1:i,o=r.sdf,s=void 0!==o&&o,l=r.stretchX,u=r.stretchY,c=r.content;if(this._lazyInitEmptyStyle(),n instanceof e.window.HTMLImageElement||e.window.ImageBitmap&&n instanceof e.window.ImageBitmap){var d=e.exported.getImageData(n),f=d.width,p=d.height,h=d.data;this.style.addImage(t,{data:new e.RGBAImage({width:f,height:p},h),pixelRatio:a,stretchX:l,stretchY:u,content:c,sdf:s,version:0})}else if(void 0===n.width||void 0===n.height)this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));else{var m=n.width,g=n.height,v=n;this.style.addImage(t,{data:new e.RGBAImage({width:m,height:g},new Uint8Array(v.data)),pixelRatio:a,stretchX:l,stretchY:u,content:c,sdf:s,version:0,userImage:v}),v.onAdd&&v.onAdd(this,t)}}},{key:"updateImage",value:function(t,n){var r=this.style.getImage(t);if(r){var i=n instanceof e.window.HTMLImageElement||e.window.ImageBitmap&&n instanceof e.window.ImageBitmap?e.exported.getImageData(n):n,a=i.width,o=i.height;void 0!==a&&void 0!==o?a===r.data.width&&o===r.data.height?(r.data.replace(i.data,!(n instanceof e.window.HTMLImageElement||e.window.ImageBitmap&&n instanceof e.window.ImageBitmap)),this.style.updateImage(t,r)):this.fire(new e.ErrorEvent(new Error("The width and height of the updated image (".concat(a,", ").concat(o,")\n must be that same as the previous version of the image\n (").concat(r.data.width,", ").concat(r.data.height,")")))):this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")))}else this.fire(new e.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")))}},{key:"hasImage",value:function(t){return t?!!this.style.getImage(t):(this.fire(new e.ErrorEvent(new Error("Missing required image id"))),!1)}},{key:"removeImage",value:function(e){this.style.removeImage(e)}},{key:"loadImage",value:function(t,n){e.getImage(this._requestManager.transformRequest(t,e.ResourceType.Image),(function(t,r){n(t,r instanceof e.window.HTMLImageElement?e.exported.getImageData(r):r)}))}},{key:"listImages",value:function(){return this.style.listImages()}},{key:"addLayer",value:function(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)}},{key:"moveLayer",value:function(e,t){return this.style.moveLayer(e,t),this._update(!0)}},{key:"removeLayer",value:function(e){return this.style.removeLayer(e),this._update(!0)}},{key:"getLayer",value:function(e){return this.style.getLayer(e)}},{key:"setLayerZoomRange",value:function(e,t,n){return this.style.setLayerZoomRange(e,t,n),this._update(!0)}},{key:"setFilter",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.style.setFilter(e,t,n),this._update(!0)}},{key:"getFilter",value:function(e){return this.style.getFilter(e)}},{key:"setPaintProperty",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.style.setPaintProperty(e,t,n,r),this._update(!0)}},{key:"getPaintProperty",value:function(e,t){return this.style.getPaintProperty(e,t)}},{key:"setLayoutProperty",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.style.setLayoutProperty(e,t,n,r),this._update(!0)}},{key:"getLayoutProperty",value:function(e,t){return this.style.getLayoutProperty(e,t)}},{key:"setLight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)}},{key:"getLight",value:function(){return this.style.getLight()}},{key:"setTerrain",value:function(e){return this._lazyInitEmptyStyle(),!e&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(e),this._averageElevationLastSampledAt=-1/0,this._update(!0)}},{key:"getTerrain",value:function(){return this.style?this.style.getTerrain():null}},{key:"setFog",value:function(e){return this._lazyInitEmptyStyle(),this.style.setFog(e),this._update(!0)}},{key:"getFog",value:function(){return this.style?this.style.getFog():null}},{key:"_queryFogOpacity",value:function(t){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(e.LngLat.convert(t),this.transform):0}},{key:"setFeatureState",value:function(e,t){return this.style.setFeatureState(e,t),this._update()}},{key:"removeFeatureState",value:function(e,t){return this.style.removeFeatureState(e,t),this._update()}},{key:"getFeatureState",value:function(e){return this.style.getFeatureState(e)}},{key:"_updateContainerDimensions",value:function(){if(this._container){for(var t,n,r,i=this._container.getBoundingClientRect().width||400,a=this._container.getBoundingClientRect().height||300,o=this._container;o&&(!n||!r);){var s=e.window.getComputedStyle(o).transform;s&&"none"!==s&&((t=s.match(/matrix.*\((.+)\)/)[1].split(", "))[0]&&"0"!==t[0]&&"1"!==t[0]&&(n=t[0]),t[3]&&"0"!==t[3]&&"1"!==t[3]&&(r=t[3])),o=o.parentElement}this._containerWidth=n?Math.abs(i/n):i,this._containerHeight=r?Math.abs(a/r):a}}},{key:"_detectMissingCSS",value:function(){"rgb(250, 128, 114)"!==e.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&e.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")}},{key:"_setupContainer",value:function(){var e=this._container;e.classList.add("mapboxgl-map"),(this._missingCSSCanary=y("div","mapboxgl-canary",e)).style.visibility="hidden",this._detectMissingCSS();var t=this._canvasContainer=y("div","mapboxgl-canvas-container",e);this._interactive&&t.classList.add("mapboxgl-interactive"),this._canvas=y("canvas","mapboxgl-canvas",t),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);var n=this._controlContainer=y("div","mapboxgl-control-container",e),r=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach((function(e){r[e]=y("div","mapboxgl-ctrl-".concat(e),n)})),this._container.addEventListener("scroll",this._onMapScroll,!1)}},{key:"_resizeCanvas",value:function(t,n){var r=e.exported.devicePixelRatio||1;this._canvas.width=r*Math.ceil(t),this._canvas.height=r*Math.ceil(n),this._canvas.style.width="".concat(t,"px"),this._canvas.style.height="".concat(n,"px")}},{key:"_addMarker",value:function(e){this._markers.push(e)}},{key:"_removeMarker",value:function(e){var t=this._markers.indexOf(e);-1!==t&&this._markers.splice(t,1)}},{key:"_setupPainter",value:function(){var t=this,r=e.extend({},n.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),i=this._canvas.getContext("webgl",r)||this._canvas.getContext("experimental-webgl",r);i?(e.storeAuthState(i,!0),this.painter=new Kr(i,this.transform),this.on("data",(function(e){"source"===e.dataType&&t.painter.setTileLoadedFlag(!0)})),e.exported$1.testSupport(i)):this.fire(new e.ErrorEvent(new Error("Failed to initialize WebGL")))}},{key:"_contextLost",value:function(t){t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new e.Event("webglcontextlost",{originalEvent:t}))}},{key:"_contextRestored",value:function(t){this._setupPainter(),this.resize(),this._update(),this.fire(new e.Event("webglcontextrestored",{originalEvent:t}))}},{key:"_onMapScroll",value:function(e){if(e.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}},{key:"loaded",value:function(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}},{key:"_update",value:function(e){return this.style?(this._styleDirty=this._styleDirty||e,this._sourcesDirty=!0,this.triggerRepaint(),this):this}},{key:"_requestRenderFrame",value:function(e){return this._update(),this._renderTaskQueue.add(e)}},{key:"_cancelRenderFrame",value:function(e){this._renderTaskQueue.remove(e)}},{key:"_requestDomTask",value:function(e){!this.loaded()||this.loaded()&&!this.isMoving()?e():this._domRenderTaskQueue.add(e)}},{key:"_render",value:function(t){var n,r=this,i=this.painter.context.extTimerQuery,a=e.exported.now();if(this.listens("gpu-timing-frame")&&(n=i.createQueryEXT(),i.beginQueryEXT(i.TIME_ELAPSED_EXT,n)),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(t),this._domRenderTaskQueue.run(t),!this._removed){this._updateProjectionTransition();var o=!1,s=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;var l=this.transform.zoom,u=this.transform.pitch,c=e.exported.now();this.style.zoomHistory.update(l,c);var d=new e.EvaluationParameters(l,{now:c,fadeDuration:s,pitch:u,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),f=d.crossFadingFactor();1===f&&f===this._crossFadingFactor||(o=!0,this._crossFadingFactor=f),this.style.update(d)}this.style&&this.style.fog&&this.style.fog.hasTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);var p=!1;if(this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),p=this._updateAverageElevation(a),this.style._updateSources(this.transform),this._forceMarkerUpdate()):p=this._updateAverageElevation(a),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,s,this._crossSourceCollisions),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showTerrainWireframe:this.showTerrainWireframe,showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:s,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new e.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new e.Event("load"))),this.style&&(this.style.hasTransitions()||o)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),n){var h=e.exported.now()-a;i.endQueryEXT(i.TIME_ELAPSED_EXT,n),setTimeout((function(){var t=i.getQueryObjectEXT(n,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(n),r.fire(new e.Event("gpu-timing-frame",{cpuTime:h,gpuTime:t})),e.window.performance.mark("frame-gpu",{startTime:a,detail:{gpuTime:t}})}),50)}if(this.listens("gpu-timing-layer")){var m=this.painter.collectGpuTimers();setTimeout((function(){var t=r.painter.queryGpuTimers(m);r.fire(new e.Event("gpu-timing-layer",{layerTimes:t}))}),50)}if(this.listens("gpu-timing-deferred-render")){var g=this.painter.collectDeferredRenderGpuQueries();setTimeout((function(){var t=r.painter.queryGpuTimeDeferredRender(g);r.fire(new e.Event("gpu-timing-deferred-render",{gpuTime:t}))}),50)}var v=this._sourcesDirty||this._styleDirty||this._placementDirty||p;if(v||this._repaint)this.triggerRepaint();else{var y=!this.isMoving()&&this.loaded();if(y&&(p=this._updateAverageElevation(a,!0)),p)this.triggerRepaint();else if(this._triggerFrame(!1),y&&(this.fire(new e.Event("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){var _=this._calculateSpeedIndex();this.fire(new e.Event("speedindexcompleted",{speedIndex:_})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||v||(this._fullyLoaded=!0,this._authenticate())}}},{key:"_forceMarkerUpdate",value:function(){var e,t=f(this._markers);try{for(t.s();!(e=t.n()).done;)e.value._update()}catch(n){t.e(n)}finally{t.f()}}},{key:"_updateAverageElevation",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=function(e){return t.transform.averageElevation=e,t._update(!1),!0};if(!this.painter.averageElevationNeedsEasing())return 0!==this.transform.averageElevation&&r(0);if((n||e-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(e)){var i=this.transform.averageElevation,a=this.transform.sampleAverageElevation(),o=!1;this.transform.elevation&&(o=this.transform.elevation.exaggeration()!==this._averageElevationExaggeration,this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(a)?a=0:this._averageElevationLastSampledAt=e;var s=Math.abs(i-a);if(s>1){if(this._isInitialLoad||o)return this._averageElevation.jumpTo(a),r(a);this._averageElevation.easeTo(a,e,300)}else if(s>1e-4)return this._averageElevation.jumpTo(a),r(a)}return!!this._averageElevation.isEasing(e)&&r(this._averageElevation.getValue(e))}},{key:"_authenticate",value:function(){var t=this;e.getMapSessionAPI(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,(function(n){if(n&&(n.message===e.AUTH_ERR_MSG||401===n.status)){var r=t.painter.context.gl;e.storeAuthState(r,!1),t._logoControl instanceof ca&&t._logoControl._updateLogo(),r&&r.clear(r.DEPTH_BUFFER_BIT|r.COLOR_BUFFER_BIT|r.STENCIL_BUFFER_BIT),t._silenceAuthErrors||t.fire(new e.ErrorEvent(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}})),e.postMapLoadEvent(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,(function(){}))}},{key:"_updateTerrain",value:function(){this.painter.updateTerrain(this.style,this.isMoving()||this.isRotating()||this.isZooming())}},{key:"_calculateSpeedIndex",value:function(){var e=this.painter.canvasCopy(),t=this.painter.getCanvasCopiesAndTimestamps();t.timeStamps.push(performance.now());var n=this.painter.context.gl,r=n.createFramebuffer();function i(e){n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,e,0);var t=new Uint8Array(n.drawingBufferWidth*n.drawingBufferHeight*4);return n.readPixels(0,0,n.drawingBufferWidth,n.drawingBufferHeight,n.RGBA,n.UNSIGNED_BYTE,t),t}return n.bindFramebuffer(n.FRAMEBUFFER,r),this._canvasPixelComparison(i(e),t.canvasCopies.map(i),t.timeStamps)}},{key:"_canvasPixelComparison",value:function(e,t,n){for(var r=n[1]-n[0],i=e.length/4,a=0;at.getEast()||n.latitudet.getNorth())}},{key:"_setErrorState",value:function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}},{key:"_onSuccess",value:function(t){if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new e.Event("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("geolocate",t)),this._finish()}}},{key:"_updateCamera",value:function(t){var n=new e.LngLat(t.coords.longitude,t.coords.latitude),r=t.coords.accuracy,i=this._map.getBearing(),a=e.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(n.toBounds(r),a,{geolocateSource:!0})}},{key:"_updateMarker",value:function(t){if(t){var n=new e.LngLat(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}},{key:"_updateCircleRadius",value:function(){var t=this._map.transform,n=e.mercatorZfromAltitude(1,t._center.lat)*t.worldSize,r=Math.ceil(2*this._accuracy*n);this._circleElement.style.width="".concat(r,"px"),this._circleElement.style.height="".concat(r,"px")}},{key:"_onZoom",value:function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}},{key:"_updateMarkerRotation",value:function(){this._userLocationDotMarker&&"number"==typeof this._heading?(this._userLocationDotMarker.setRotation(this._heading),this._dotElement.classList.add("mapboxgl-user-location-show-heading")):(this._dotElement.classList.remove("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}},{key:"_onError",value:function(t){if(this._map){if(this.options.trackUserLocation)if(1===t.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var n=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",n),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",n),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&this._noTimeout)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("error",t)),this._finish()}}},{key:"_finish",value:function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}},{key:"_setupUI",value:function(t){var n=this;if(this._container.addEventListener("contextmenu",(function(e){return e.preventDefault()})),this._geolocateButton=y("button","mapboxgl-ctrl-geolocate",this._container),y("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",!1===t){e.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",r),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",r)}else{var i=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",i),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",i)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=y("div","mapboxgl-user-location"),this._dotElement.appendChild(y("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(y("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new ha({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=y("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new ha({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(function(t){t.geolocateSource||"ACTIVE_LOCK"!==n._watchState||t.originalEvent&&"resize"===t.originalEvent.type||(n._watchState="BACKGROUND",n._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),n._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),n.fire(new e.Event("trackuserlocationend")))}))}},{key:"_onDeviceOrientation",value:function(e){this._userLocationDotMarker&&(e.webkitCompassHeading?this._heading=e.webkitCompassHeading:!0===e.absolute&&(this._heading=-1*e.alpha),this._updateMarkerRotationThrottled())}},{key:"trigger",value:function(){if(!this._setup)return e.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new e.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new e.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var t;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(t={maximumAge:6e5,timeout:0},this._noTimeout=!0):(t=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,t),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}},{key:"_addDeviceOrientationListener",value:function(){var t=this,n=function(){e.window.addEventListener("ondeviceorientationabsolute"in e.window?"deviceorientationabsolute":"deviceorientation",t._onDeviceOrientation)};void 0!==e.window.DeviceMotionEvent&&"function"==typeof e.window.DeviceMotionEvent.requestPermission?DeviceOrientationEvent.requestPermission().then((function(e){"granted"===e&&n()})).catch(console.error):n()}},{key:"_clearWatch",value:function(){this.options.geolocation.clearWatch(this._geolocationWatchID),e.window.removeEventListener("deviceorientation",this._onDeviceOrientation),e.window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}}]),r}(e.Evented),AttributionControl:ua,ScaleControl:function(){function t(n){g(this,t),this.options=e.extend({},Ea,n),function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"narrow",unit:"meter"}),!0}catch(e){return!1}}()||(this._setScale=Sa.bind(this)),e.bindAll(["_update","_setScale","setUnit"],this)}return v(t,[{key:"getDefaultPosition",value:function(){return"bottom-left"}},{key:"_update",value:function(){var e=this.options.maxWidth||100,t=this._map,n=t._containerHeight/2,r=t._containerWidth/2-e/2,i=t.unproject([r,n]),a=t.unproject([r+e,n]),o=i.distanceTo(a);if("imperial"===this.options.unit){var s=3.2808*o;s>5280?this._setScale(e,s/5280,"mile"):this._setScale(e,s,"foot")}else"nautical"===this.options.unit?this._setScale(e,o/1852,"nautical-mile"):o>=1e3?this._setScale(e,o/1e3,"kilometer"):this._setScale(e,o,"meter")}},{key:"_setScale",value:function(e,t,n){var r=this,i=wa(t),a=i/t;this._map._requestDomTask((function(){r._container.style.width=e*a+"px",r._container.innerHTML="nautical-mile"!==n?new Intl.NumberFormat(r._language,{style:"unit",unitDisplay:"narrow",unit:n}).format(i):"".concat(i," nm")}))}},{key:"onAdd",value:function(e){return this._map=e,this._language=e.getLanguage(),this._container=y("div","mapboxgl-ctrl mapboxgl-ctrl-scale",e.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}},{key:"onRemove",value:function(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}},{key:"_setLanguage",value:function(e){this._language=e,this._update()}},{key:"setUnit",value:function(e){this.options.unit=e,this._update()}}]),t}(),FullscreenControl:function(){function t(n){g(this,t),this._fullscreen=!1,n&&n.container&&(n.container instanceof e.window.HTMLElement?this._container=n.container:e.warnOnce("Full screen control 'container' must be a DOM element.")),e.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in e.window.document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in e.window.document&&(this._fullscreenchange="webkitfullscreenchange")}return v(t,[{key:"onAdd",value:function(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=y("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",e.warnOnce("This device does not support fullscreen mode.")),this._controlContainer}},{key:"onRemove",value:function(){this._controlContainer.remove(),this._map=null,e.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)}},{key:"_checkFullscreenSupport",value:function(){return!(!e.window.document.fullscreenEnabled&&!e.window.document.webkitFullscreenEnabled)}},{key:"_setupUI",value:function(){var t=this._fullscreenButton=y("button","mapboxgl-ctrl-fullscreen",this._controlContainer);y("span","mapboxgl-ctrl-icon",t).setAttribute("aria-hidden","true"),t.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),e.window.document.addEventListener(this._fullscreenchange,this._changeIcon)}},{key:"_updateTitle",value:function(){var e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",e)}},{key:"_getTitle",value:function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}},{key:"_isFullscreen",value:function(){return this._fullscreen}},{key:"_changeIcon",value:function(){(e.window.document.fullscreenElement||e.window.document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}},{key:"_onClickFullscreen",value:function(){this._isFullscreen()?e.window.document.exitFullscreen?e.window.document.exitFullscreen():e.window.document.webkitCancelFullScreen&&e.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}}]),t}(),Popup:function(t){h(r,t);var n=m(r);function r(t){var a;return g(this,r),(a=n.call(this)).options=e.extend(Object.create(Ca),t),e.bindAll(["_update","_onClose","remove","_onMouseEvent"],i(a)),a._classList=new Set(t&&t.className?t.className.trim().split(/\s+/):[]),a}return v(r,[{key:"addTo",value:function(t){return this._map&&this.remove(),this._map=t,this.options.closeOnClick&&t.on("preclick",this._onClose),this.options.closeOnMove&&t.on("move",this._onClose),t.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(t.on("mousemove",this._onMouseEvent),t.on("mouseup",this._onMouseEvent),t._canvasContainer.classList.add("mapboxgl-track-pointer")):t.on("move",this._update),this.fire(new e.Event("open")),this}},{key:"isOpen",value:function(){return!!this._map}},{key:"remove",value:function(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);var t=this._map;return t&&(t.off("move",this._update),t.off("move",this._onClose),t.off("preclick",this._onClose),t.off("click",this._onClose),t.off("remove",this.remove),t.off("mousemove",this._onMouseEvent),t.off("mouseup",this._onMouseEvent),t.off("drag",this._onMouseEvent),this._map=void 0),this.fire(new e.Event("close")),this}},{key:"getLngLat",value:function(){return this._lngLat}},{key:"setLngLat",value:function(t){this._lngLat=e.LngLat.convert(t),this._pos=null,this._trackPointer=!1,this._update();var n=this._map;return n&&(n.on("move",this._update),n.off("mousemove",this._onMouseEvent),n._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}},{key:"trackPointer",value:function(){this._trackPointer=!0,this._pos=null,this._update();var e=this._map;return e&&(e.off("move",this._update),e.on("mousemove",this._onMouseEvent),e.on("drag",this._onMouseEvent),e._canvasContainer.classList.add("mapboxgl-track-pointer")),this}},{key:"getElement",value:function(){return this._container}},{key:"setText",value:function(t){return this.setDOMContent(e.window.document.createTextNode(t))}},{key:"setHTML",value:function(t){var n,r=e.window.document.createDocumentFragment(),i=e.window.document.createElement("body");for(i.innerHTML=t;n=i.firstChild;)r.appendChild(n);return this.setDOMContent(r)}},{key:"getMaxWidth",value:function(){return this._container&&this._container.style.maxWidth}},{key:"setMaxWidth",value:function(e){return this.options.maxWidth=e,this._update(),this}},{key:"setDOMContent",value:function(e){var t=this._content;if(t)for(;t.hasChildNodes();)t.firstChild&&t.removeChild(t.firstChild);else t=this._content=y("div","mapboxgl-popup-content",this._container||void 0);if(t.appendChild(e),this.options.closeButton){var n=this._closeButton=y("button","mapboxgl-popup-close-button",t);n.type="button",n.setAttribute("aria-label","Close popup"),n.setAttribute("aria-hidden","true"),n.innerHTML="×",n.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}},{key:"addClassName",value:function(e){return this._classList.add(e),this._updateClassList(),this}},{key:"removeClassName",value:function(e){return this._classList.delete(e),this._updateClassList(),this}},{key:"setOffset",value:function(e){return this.options.offset=e,this._update(),this}},{key:"toggleClassName",value:function(e){var t;return this._classList.delete(e)?t=!1:(this._classList.add(e),t=!0),this._updateClassList(),t}},{key:"_onMouseEvent",value:function(e){this._update(e.point)}},{key:"_getAnchor",value:function(e){if(this.options.anchor)return this.options.anchor;var t=this._map,n=this._container,r=this._pos;if(!t||!n||!r)return"bottom";var i=n.offsetWidth,a=n.offsetHeight,o=r.xt.transform.width-i/2;if(r.y+et.transform.height-a){if(o)return"bottom-left";if(s)return"bottom-right"}return o?"left":s?"right":"bottom"}},{key:"_updateClassList",value:function(){var e=this._container;if(e){var t=c(this._classList);t.push("mapboxgl-popup"),this._anchor&&t.push("mapboxgl-popup-anchor-".concat(this._anchor)),this._trackPointer&&t.push("mapboxgl-popup-track-pointer"),e.className=t.join(" ")}}},{key:"_update",value:function(t){var n=this,r=this._map,i=this._content;if(r&&(this._lngLat||this._trackPointer)&&i){var a=this._container;if(a||(a=this._container=y("div","mapboxgl-popup",r.getContainer()),this._tip=y("div","mapboxgl-popup-tip",a),a.appendChild(i)),this.options.maxWidth&&a.style.maxWidth!==this.options.maxWidth&&(a.style.maxWidth=this.options.maxWidth),r.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=fa(this._lngLat,this._pos,r.transform)),!this._trackPointer||t){var o=this._pos=this._trackPointer&&t?t:r.project(this._lngLat),s=Aa(this.options.offset),l=this._anchor=this._getAnchor(s.y),u=Aa(this.options.offset,l),c=o.add(u).round();r._requestDomTask((function(){n._container&&l&&(n._container.style.transform="".concat(pa[l]," translate(").concat(c.x,"px,").concat(c.y,"px)"))}))}if(!this._marker&&r._showingGlobe()){var d=e.isLngLatBehindGlobe(r.transform,this._lngLat)?0:1;this._setOpacity(d)}this._updateClassList()}}},{key:"_focusFirstElement",value:function(){if(this.options.focusAfterOpen&&this._container){var e=this._container.querySelector(Ta);e&&e.focus()}}},{key:"_onClose",value:function(){this.remove()}},{key:"_setOpacity",value:function(e){this._container&&(this._container.style.opacity="".concat(e)),this._content&&(this._content.style.pointerEvents=e?"auto":"none")}}]),r}(e.Evented),Marker:ha,Style:hn,LngLat:e.LngLat,LngLatBounds:e.LngLatBounds,Point:e.pointGeometry,MercatorCoordinate:e.MercatorCoordinate,FreeCameraOptions:ti,Evented:e.Evented,config:e.config,prewarm:function(){et().acquire(Qe)},clearPrewarmedResources:function(){var e=$e;e&&(e.isPreloaded()&&1===e.numActive()?(e.release(Qe),$e=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return e.config.ACCESS_TOKEN},set accessToken(t){e.config.ACCESS_TOKEN=t},get baseApiUrl(){return e.config.API_URL},set baseApiUrl(t){e.config.API_URL=t},get workerCount(){return Je.workerCount},set workerCount(e){Je.workerCount=e},get maxParallelImageRequests(){return e.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){e.config.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage:function(t){e.clearTileCache(t)},workerUrl:"",workerClass:null,setNow:e.exported.setNow,restoreNow:e.exported.restoreNow};return ka})),n}()},31733:function(e,t,n){var r,i;r=function(){var e,t,n="2.0.6",r={},i={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},o={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function s(e,t){this._input=e,this._value=t}return(e=function(n){var i,a,l,u;if(e.isNumeral(n))i=n.value();else if(0===n||"undefined"===typeof n)i=0;else if(null===n||t.isNaN(n))i=null;else if("string"===typeof n)if(o.zeroFormat&&n===o.zeroFormat)i=0;else if(o.nullFormat&&n===o.nullFormat||!n.replace(/[^0-9]+/g,"").length)i=null;else{for(a in r)if((u="function"===typeof r[a].regexps.unformat?r[a].regexps.unformat():r[a].regexps.unformat)&&n.match(u)){l=r[a].unformat;break}i=(l=l||e._.stringToNumber)(n)}else i=Number(n)||null;return new s(n,i)}).version=n,e.isNumeral=function(e){return e instanceof s},e._=t={numberToFormat:function(t,n,r){var a,o,s,l,u,c,d,f=i[e.options.currentLocale],p=!1,h=!1,m=0,g="",v=1e12,y=1e9,_=1e6,b=1e3,x="",E=!1;if(t=t||0,o=Math.abs(t),e._.includes(n,"(")?(p=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(u=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(a=!!(a=n.match(/a(k|m|b|t)?/))&&a[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),o>=v&&!a||"t"===a?(g+=f.abbreviations.trillion,t/=v):o=y&&!a||"b"===a?(g+=f.abbreviations.billion,t/=y):o=_&&!a||"m"===a?(g+=f.abbreviations.million,t/=_):(o<_&&o>=b&&!a||"k"===a)&&(g+=f.abbreviations.thousand,t/=b)),e._.includes(n,"[.]")&&(h=!0,n=n.replace("[.]",".")),s=t.toString().split(".")[0],l=n.split(".")[1],c=n.indexOf(","),m=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(e._.includes(l,"[")?(l=(l=l.replace("]","")).split("["),x=e._.toFixed(t,l[0].length+l[1].length,r,l[1].length)):x=e._.toFixed(t,l.length,r),s=x.split(".")[0],x=e._.includes(x,".")?f.delimiters.decimal+x.split(".")[1]:"",h&&0===Number(x.slice(1))&&(x="")):s=e._.toFixed(t,0,r),g&&!a&&Number(s)>=1e3&&g!==f.abbreviations.trillion)switch(s=String(Number(s)/1e3),g){case f.abbreviations.thousand:g=f.abbreviations.million;break;case f.abbreviations.million:g=f.abbreviations.billion;break;case f.abbreviations.billion:g=f.abbreviations.trillion}if(e._.includes(s,"-")&&(s=s.slice(1),E=!0),s.length0;S--)s="0"+s;return c>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),0===n.indexOf(".")&&(s=""),d=s+x+(g||""),p?d=(p&&E?"(":"")+d+(p&&E?")":""):u>=0?d=0===u?(E?"-":"+")+d:d+(E?"-":"+"):E&&(d="-"+d),d},stringToNumber:function(e){var t,n,r,a=i[o.currentLocale],s=e,l={thousand:3,million:6,billion:9,trillion:12};if(o.zeroFormat&&e===o.zeroFormat)n=0;else if(o.nullFormat&&e===o.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==a.delimiters.decimal&&(e=e.replace(/\./g,"").replace(a.delimiters.decimal,".")),l)if(r=new RegExp("[^a-zA-Z]"+a.abbreviations[t]+"(?:\\)|(\\"+a.currency.symbol+")?(?:\\))?)?$"),s.match(r)){n*=Math.pow(10,l[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return"number"===typeof e&&isNaN(e)})),includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),i=r.length>>>0,a=0;if(3===arguments.length)n=arguments[2];else{for(;a=i)throw new TypeError("Reduce of empty array with no initial value");n=r[a++]}for(;ar?e:r}),1)},toFixed:function(e,t,n,r){var i,a,o,s,l=e.toString().split("."),u=t-(r||0);return i=2===l.length?Math.min(Math.max(l[1].length,u),t):u,o=Math.pow(10,i),s=(n(e+"e+"+i)/o).toFixed(i),r>t-i&&(a=new RegExp("\\.?0{1,"+(r-(t-i))+"}$"),s=s.replace(a,"")),s}},e.options=o,e.formats=r,e.locales=i,e.locale=function(e){return e&&(o.currentLocale=e.toLowerCase()),o.currentLocale},e.localeData=function(e){if(!e)return i[o.currentLocale];if(e=e.toLowerCase(),!i[e])throw new Error("Unknown locale : "+e);return i[e]},e.reset=function(){for(var e in a)o[e]=a[e]},e.zeroFormat=function(e){o.zeroFormat="string"===typeof e?e:null},e.nullFormat=function(e){o.nullFormat="string"===typeof e?e:null},e.defaultFormat=function(e){o.defaultFormat="string"===typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,i,a,o,s,l,u,c;if("string"!==typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{u=e.localeData(n)}catch(d){u=e.localeData(e.locale())}return a=u.currency.symbol,s=u.abbreviations,r=u.delimiters.decimal,i="."===u.delimiters.thousands?"\\.":u.delimiters.thousands,(null===(c=t.match(/^[^\d]+/))||(t=t.substr(1),c[0]===a))&&(null===(c=t.match(/[^\d]+$/))||(t=t.slice(0,-1),c[0]===s.thousand||c[0]===s.million||c[0]===s.billion||c[0]===s.trillion))&&(l=new RegExp(i+"{2}"),!t.match(/[^\d.,]/g)&&!((o=t.split(r)).length>2)&&(o.length<2?!!o[0].match(/^\d+.*\d$/)&&!o[0].match(l):1===o[0].length?!!o[0].match(/^\d+$/)&&!o[0].match(l)&&!!o[1].match(/^\d+$/):!!o[0].match(/^\d+.*\d$/)&&!o[0].match(l)&&!!o[1].match(/^\d+$/)))},e.fn=s.prototype={clone:function(){return e(this)},format:function(t,n){var i,a,s,l=this._value,u=t||o.defaultFormat;if(n=n||Math.round,0===l&&null!==o.zeroFormat)a=o.zeroFormat;else if(null===l&&null!==o.nullFormat)a=o.nullFormat;else{for(i in r)if(u.match(r[i].regexps.format)){s=r[i].format;break}a=(s=s||e._.numberToFormat)(l,u,n)}return a},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e+Math.round(n*t)}return this._value=t.reduce([this._value,e],r,0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e-Math.round(n*t)}return this._value=t.reduce([e],r,Math.round(this._value*n))/n,this},multiply:function(e){function n(e,n,r,i){var a=t.correctionFactor(e,n);return Math.round(e*a)*Math.round(n*a)/Math.round(a*a)}return this._value=t.reduce([this._value,e],n,1),this},divide:function(e){function n(e,n,r,i){var a=t.correctionFactor(e,n);return Math.round(e*a)/Math.round(n*a)}return this._value=t.reduce([this._value,e],n),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var i,a=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,a+"BPS"),i=i.join("")):i=i+a+"BPS",i},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),function(){var t={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r=t.suffixes.concat(n.suffixes.filter((function(e){return t.suffixes.indexOf(e)<0}))).join("|");r="("+r.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(r)},format:function(r,i,a){var o,s,l,u=e._.includes(i,"ib")?n:t,c=e._.includes(i," b")||e._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),o=0;o<=u.suffixes.length;o++)if(s=Math.pow(u.base,o),l=Math.pow(u.base,o+1),null===r||0===r||r>=s&&r0&&(r/=s);break}return e._.numberToFormat(r,i,a)+c},unformat:function(r){var i,a,o=e._.stringToNumber(r);if(o){for(i=t.suffixes.length-1;i>=0;i--){if(e._.includes(r,t.suffixes[i])){a=Math.pow(t.base,i);break}if(e._.includes(r,n.suffixes[i])){a=Math.pow(n.base,i);break}}o*=a||1}return o}})}(),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var i,a,o=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),a=0;a=0;a--)switch(s.after[a]){case"$":i=a===s.after.length-1?i+o.currency.symbol:e._.insert(i,o.currency.symbol,-(s.after.length-(1+a)));break;case" ":i=a===s.after.length-1?i+" ":e._.insert(i," ",-(s.after.length-(1+a)+o.currency.symbol.length-1))}return i}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var i=("number"!==typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(i[0]),n,r)+"e"+i[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),i=Number(n[1]);function a(t,n,r,i){var a=e._.correctionFactor(t,n);return t*a*(n*a)/(a*a)}return i=e._.includes(t,"e-")?i*=-1:i,e._.reduce([r,Math.pow(10,i)],a,1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var i=e.locales[e.options.currentLocale],a=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),a+=i.ordinal(t),e._.numberToFormat(t,n,r)+a}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var i,a=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,a+"%"),i=i.join("")):i=i+a+"%",i},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),i=Math.floor((e-60*r*60)/60),a=Math.round(e-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e},void 0===(i="function"===typeof r?r.call(t,n,t,e):r)||(e.exports=i)},7490:function(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"===typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s,l=[],u=!1,c=-1;function d(){u&&s&&(u=!1,s.length?l=s.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=o(d);u=!0;for(var t=l.length;t;){for(s=l,l=[];++c1)for(var n=1;n=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,a=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),u=new t(512);function c(e){return s.get(e)||s.set(e,d(e).map((function(e){return e.replace(o,"$2")})))}function d(e){return e.match(n)||[""]}function f(e){return"string"===typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function p(e){return!f(e)&&(function(e){return e.match(i)&&!e.match(r)}(e)||function(e){return a.test(e)}(e))}e.exports={Cache:t,split:d,normalizePath:c,setter:function(e){var t=c(e);return l.get(e)||l.set(e,(function(e,n){for(var r=0,i=t.length,a=e;r1)return t.map((function(t){return e(t)}));var r=t[0];if("string"!==typeof r.blotName&&"string"!==typeof r.attrName)throw new i("Invalid definition");if("abstract"===r.blotName)throw new i("Cannot register abstract class");if(u[r.blotName||r.attrName]=r,"string"===typeof r.keyName)o[r.keyName]=r;else if(null!=r.className&&(s[r.className]=r),null!=r.tagName){Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(e){return e.toUpperCase()})):r.tagName=r.tagName.toUpperCase();var a=Array.isArray(r.tagName)?r.tagName:[r.tagName];a.forEach((function(e){null!=l[e]&&null!=r.className||(l[e]=r)}))}return r}},function(e,t,n){var r=n(51),i=n(11),a=n(3),o=n(20),s=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=a(!0,{},e),"object"===typeof n){if("number"===typeof e.delete&&"number"===typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"===typeof n.delete&&null!=e.insert&&(t-=1,"object"!==typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+o.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+o.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!==typeof t&&(t=1/0);for(var n=[],r=o.iterator(this.ops),i=0;i0&&n.next(a.retain-s)}for(var u=new l(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),d=t.next(c),f=n.next(c);if("number"===typeof f.retain){var p={};"number"===typeof d.retain?p.retain=c:p.insert=d.insert;var h=o.attributes.compose(d.attributes,f.attributes,"number"===typeof d.retain);if(h&&(p.attributes=h),u.push(p),!n.hasNext()&&i(u.ops[u.ops.length-1],p)){var m=new l(t.rest());return u.concat(m).chop()}}else"number"===typeof f.delete&&"number"===typeof d.retain&&u.push(f)}return u.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),a=new l,u=r(n[0],n[1],t),c=o.iterator(this.ops),d=o.iterator(e.ops);return u.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(d.peekLength(),t),a.push(d.next(n));break;case r.DELETE:n=Math.min(t,c.peekLength()),c.next(n),a.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),d.peekLength(),t);var s=c.next(n),l=d.next(n);i(s.insert,l.insert)?a.retain(n,o.attributes.diff(s.attributes,l.attributes)):a.push(l).delete(n)}t-=n}})),a.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";for(var n=o.iterator(this.ops),r=new l,i=0;n.hasNext();){if("insert"!==n.peekType())return;var a=n.peek(),s=o.length(a)-n.peekLength(),u="string"===typeof a.insert?a.insert.indexOf(t,s)-s:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===e(r,n.next(1).attributes||{},i))return;i+=1,r=new l}}r.length()>0&&e(r,{},i)},l.prototype.transform=function(e,t){if(t=!!t,"number"===typeof e)return this.transformPosition(e,t);for(var n=o.iterator(this.ops),r=o.iterator(e.ops),i=new l;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var a=Math.min(n.peekLength(),r.peekLength()),s=n.next(a),u=r.next(a);if(s.delete)continue;u.delete?i.push(u):i.retain(a,o.attributes.transform(s.attributes,u.attributes,t))}else i.retain(o.length(n.next()));return i.chop()},l.prototype.transformPosition=function(e,t){t=!!t;for(var n=o.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var i=n.peekLength(),a=n.peekType();n.next(),"delete"!==a?("insert"===a&&(r0&&(e1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var a=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},a}}]),t}(s.default.Block);function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"===typeof e.formats&&(t=(0,a.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:v(e.parent,t))}g.blotName="block",g.tagName="P",g.defaultChild="break",g.allowedChildren=[u.default,s.default.Embed,c.default],t.bubbleFormats=v,t.BlockEmbed=m,t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(l){i=!0,a=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(y(this,e),this.options=x(t,r),this.container=this.options.container,null==this.container)return _.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new l.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new s.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e){e===l.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(l.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;E.call(n,(function(){return n.editor.update(null,t,i)}),e)}));var a=this.clipboard.convert("
"+i+"


");this.setContents(a),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return a(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&_.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e){var i=e.attrName||e.blotName;"string"===typeof i?this.register("formats/"+i,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||_.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"===typeof t.register&&t.register()}}]),a(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,a=S(e,t,n),o=i(a,4);return e=o[0],t=o[1],n=o[3],E.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;return E.call(this,(function(){var r=n.getSelection(!0),i=new o.default;if(null==r)return i;if(c.default.query(e,c.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,v({},e,t));else{if(0===r.length)return n.selection.format(e,t),i;i=n.editor.formatText(r.index,r.length,v({},e,t))}return n.setSelection(r,l.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(e,t,n,r,a){var o,s=this,l=S(e,t,n,r,a),u=i(l,4);return e=u[0],t=u[1],o=u[2],a=u[3],E.call(this,(function(){return s.editor.formatLine(e,t,o)}),a,e,0)}},{key:"formatText",value:function(e,t,n,r,a){var o,s=this,l=S(e,t,n,r,a),u=i(l,4);return e=u[0],t=u[1],o=u[2],a=u[3],E.call(this,(function(){return s.editor.formatText(e,t,o)}),a,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=S(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=S(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return E.call(this,(function(){return i.editor.insertEmbed(t,n,r)}),a,t)}},{key:"insertText",value:function(e,t,n,r,a){var o,s=this,l=S(e,0,n,r,a),u=i(l,4);return e=u[0],o=u[2],a=u[3],E.call(this,(function(){return s.editor.insertText(e,t,o)}),a,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,a=S(e,t,n),o=i(a,4);return e=o[0],t=o[1],n=o[3],E.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return E.call(this,(function(){e=new o.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),i=t.editor.applyDelta(e),a=i.ops[i.ops.length-1];return null!=a&&"string"===typeof a.insert&&"\n"===a.insert[a.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),i.delete(1)),r.compose(i)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var a=S(t,n,r),o=i(a,4);t=o[0],n=o[1],r=o[3],this.selection.setRange(new d.Range(t,n),r),r!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API,n=(new o.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return E.call(this,(function(){return e=new o.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function x(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==b.DEFAULTS.theme){if(t.theme=b.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=m.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=b.import("modules/"+t);return null==n?_.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},b.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"===typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function E(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===l.default.sources.USER)return new o.default;var i=null==n?null:this.getSelection(),a=this.editor.delta,s=e();if(null!=i&&(!0===n&&(n=i.index),null==r?i=w(i,s,t):0!==r&&(i=w(i,n,r,t)),this.setSelection(i,l.default.sources.SILENT)),s.length()>0){var u,c,d=[l.default.events.TEXT_CHANGE,s,a,t];(u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(d)),t!==l.default.sources.SILENT&&(c=this.emitter).emit.apply(c,d)}return s}function S(e,t,n,i,a){var o={};return"number"===typeof e.index&&"number"===typeof e.length?"number"!==typeof t?(a=i,i=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!==typeof t&&(a=i,i=n,n=t,t=0),"object"===("undefined"===typeof n?"undefined":r(n))?(o=n,a=i):"string"===typeof n&&(null!=i?o[n]=i:a=n),[e,t,o,a=a||l.default.sources.API]}function w(e,t,n,r){if(null==e)return null;var a=void 0,s=void 0;if(t instanceof o.default){var u=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==l.default.sources.USER)})),c=i(u,2);a=c[0],s=c[1]}else{var f=[e.index,e.index+e.length].map((function(e){return e=0?e+n:Math.max(t,e+n)})),p=i(f,2);a=p[0],s=p[1]}return new d.Range(a,s-a)}b.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},b.events=l.default.events,b.sources=l.default.sources,b.version="1.3.7",b.imports={delta:o.default,parchment:c.default,"core/module":u.default,"core/theme":m.default},t.expandConfig=x,t.overload=S,t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),i=t.order.indexOf(n);return r>=0||i>=0?r-i:e===n?0:e1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.quill=t,this.options=n};i.DEFAULTS={},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function a(e){if(r.indexOf(e)<=r.indexOf(i)){for(var t,n=arguments.length,a=Array(n>1?n-1:0),o=1;o=0;u--)if(d[u]!=f[u])return!1;for(u=d.length-1;u>=0;u--)if(c=d[u],!o(e[c],t[c],n))return!1;return typeof e===typeof t}(e,t,n))};function s(e){return null===e||void 0===e}function l(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&"function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"===typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(l){i=!0,a=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n=e+n)){var o=this.newlineIndex(e,!0)+1,l=a-o+1,u=this.isolate(o,l),c=u.next;u.format(r,i),c instanceof t&&c.formatAt(0,e-o+n-l,r,i)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var i=this.descendant(c.default,e),a=r(i,2),o=a[0],s=a[1];o.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(s.default.create("text","\n")),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=s.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof s.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(l.default);g.blotName="code-block",g.tagName="PRE",g.TAB=" ",t.Code=m,t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(l){i=!0,a=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var n=0;n=a&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),m=i(h,2),v=m[0],y=m[1],_=(0,g.default)({},(0,d.bubbleFormats)(v));if(v instanceof f.default){var b=v.descendant(l.default.Leaf,y),x=i(b,1)[0];_=(0,g.default)(_,(0,d.bubbleFormats)(x))}c=s.default.attributes.diff(_,c)||{}}else if("object"===r(o.insert)){var E=Object.keys(o.insert)[0];if(null==E)return e;t.scroll.insertAt(e,E,o.insert[E])}a+=u}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,u,n,c[n])})),e+u}),0),e.reduce((function(e,n){return"number"===typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new o.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var a=n.scroll.lines(e,Math.max(t,1)),o=t;a.forEach((function(t){var a=t.length();if(t instanceof u.default){var s=e-t.offset(n.scroll),l=t.newlineIndex(s+o)-s+1;t.formatAt(s,l,i,r[i])}else t.format(i,r[i]);o-=a}))}})),this.scroll.optimize(),this.update((new o.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t,i,r[i])})),this.update((new o.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new o.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=i(e,1)[0];t instanceof f.default?n.push(t):t instanceof l.default.Leaf&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(l.default.Leaf,e,t));var a=[n,r].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=b((0,d.bubbleFormats)(n),t)}return t}));return g.default.apply(g.default,a)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"===typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new o.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t.length,i,r[i])})),this.update((new o.default).retain(e).insert(t,(0,h.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===f.default.blotName&&!(e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),a=i(r,2),s=a[0],l=a[1],c=0,d=new o.default;null!=s&&(c=s instanceof u.default?s.newlineIndex(l)-l+1:s.length()-l,d=s.delta().slice(l,l+c-1).insert("\n"));var f=this.getContents(e,t+c).diff((new o.default).insert(n).concat(d)),p=(new o.default).retain(e).concat(f);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(y)&&l.default.find(t[0].target)){var i=l.default.find(t[0].target),a=(0,d.bubbleFormats)(i),s=i.offset(this.scroll),u=t[0].oldValue.replace(c.default.CONTENTS,""),f=(new o.default).insert(u),p=(new o.default).insert(i.value()),h=(new o.default).retain(s).concat(f.diff(p,n));e=h.reduce((function(e,t){return t.insert?e.insert(t.insert,a):e.push(t)}),new o.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,m.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function b(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(l){i=!0,a=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var r=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,l.default.sources.USER),1)})),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.TEXT_CHANGE&&t.length()>0&&r.update(l.default.sources.SILENT)})),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(l.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))}})),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,i=n.startNode,a=n.startOffset,o=n.endNode,s=n.endOffset;r.setNativeRange(i,a,o,s)}})),this.update(l.default.sources.SILENT)}return i(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(l.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!a.default.query(e,a.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=a.default.find(n.start.node,!1);if(null==r)return;if(r instanceof a.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var i=void 0,a=this.scroll.leaf(e),o=r(a,2),s=o[0],l=o[1];if(null==s)return null;var u=s.position(l,!0),c=r(u,2);i=c[0],l=c[1];var d=document.createRange();if(t>0){d.setStart(i,l);var f=this.scroll.leaf(e+t),p=r(f,2);if(s=p[0],l=p[1],null==s)return null;var h=s.position(l,!0),m=r(h,2);return i=m[0],l=m[1],d.setEnd(i,l),d.getBoundingClientRect()}var g="left",v=void 0;return i instanceof Text?(l0&&(g="right")),{bottom:v.top+v.height,height:v.height,left:v[g],right:v[g],top:v.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return f.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var i=n.map((function(e){var n=r(e,2),i=n[0],o=n[1],s=a.default.find(i,!0),l=s.offset(t.scroll);return 0===o?l:s instanceof a.default.Container?l+s.length():l+s.index(i,o)})),o=Math.min(Math.max.apply(Math,c(i)),this.scroll.length()-1),s=Math.min.apply(Math,[o].concat(c(i)));return new p(s,o-s)}},{key:"normalizeNative",value:function(e){if(!m(this.root,e.startContainer)||!e.collapsed&&!m(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],i=[],a=this.scroll.length();return n.forEach((function(e,n){e=Math.min(a-1,e);var o,s=t.scroll.leaf(e),l=r(s,2),u=l[0],c=l[1],d=u.position(c,0!==n),f=r(d,2);o=f[0],c=f[1],i.push(o,c)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var i=this.scroll.length()-1,a=this.scroll.line(Math.min(t.index,i)),o=r(a,1)[0],s=o;if(t.length>0){var l=this.scroll.line(Math.min(t.index+t.length,i));s=r(l,1)[0]}if(null!=o&&null!=s){var u=e.getBoundingClientRect();n.topu.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(f.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var a=document.getSelection();if(null!=a)if(null!=e){this.hasFocus()||this.root.focus();var o=(this.getNativeRange()||{}).native;if(null==o||i||e!==o.startContainer||t!==o.startOffset||n!==o.endContainer||r!==o.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(n,r),a.removeAllRanges(),a.addRange(s)}}else a.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"===typeof t&&(n=t,t=!1),f.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,c(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.lastRange,n=this.getRange(),i=r(n,2),a=i[0],u=i[1];if(this.lastRange=a,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(t,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var d,f=[l.default.events.SELECTION_CHANGE,(0,o.default)(this.lastRange),(0,o.default)(t),e];(c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(f)),e!==l.default.sources.SILENT&&(d=this.emitter).emit.apply(d,f)}}}]),e}();function m(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=o},function(e,t,n){var r=n(11),i=n(3),a={attributes:{compose:function(e,t,n){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var r=i(!0,{},t);for(var a in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[a]&&void 0===t[a]&&(r[a]=e[a]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,i){return r(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new o(e)},length:function(e){return"number"===typeof e.delete?e.delete:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function o(e){this.ops=e,this.index=0,this.offset=0}o.prototype.hasNext=function(){return this.peekLength()<1/0},o.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=a.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t.delete)return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"===typeof t.retain?i.retain=e:"string"===typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},o.prototype.peek=function(){return this.ops[this.index]},o.prototype.peekLength=function(){return this.ops[this.index]?a.length(this.ops[this.index])-this.offset:1/0},o.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index].delete?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},o.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=a},function(e,t){var n=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(l){t=function(){}}try{n=Set}catch(l){n=function(){}}try{r=Promise}catch(l){r=function(){}}function a(o,l,u,c,d){"object"===typeof l&&(u=l.depth,c=l.prototype,d=l.includeNonEnumerable,l=l.circular);var f=[],p=[],h="undefined"!=typeof i;return"undefined"==typeof l&&(l=!0),"undefined"==typeof u&&(u=1/0),function o(u,m){if(null===u)return null;if(0===m)return u;var g,v;if("object"!=typeof u)return u;if(e(u,t))g=new t;else if(e(u,n))g=new n;else if(e(u,r))g=new r((function(e,t){u.then((function(t){e(o(t,m-1))}),(function(e){t(o(e,m-1))}))}));else if(a.__isArray(u))g=[];else if(a.__isRegExp(u))g=new RegExp(u.source,s(u)),u.lastIndex&&(g.lastIndex=u.lastIndex);else if(a.__isDate(u))g=new Date(u.getTime());else{if(h&&i.isBuffer(u))return g=i.allocUnsafe?i.allocUnsafe(u.length):new i(u.length),u.copy(g),g;e(u,Error)?g=Object.create(u):"undefined"==typeof c?(v=Object.getPrototypeOf(u),g=Object.create(v)):(g=Object.create(c),v=c)}if(l){var y=f.indexOf(u);if(-1!=y)return p[y];f.push(u),p.push(g)}for(var _ in e(u,t)&&u.forEach((function(e,t){var n=o(t,m-1),r=o(e,m-1);g.set(n,r)})),e(u,n)&&u.forEach((function(e){var t=o(e,m-1);g.add(t)})),u){var b;v&&(b=Object.getOwnPropertyDescriptor(v,_)),b&&null==b.set||(g[_]=o(u[_],m-1))}if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(u);for(_=0;_0){if(s instanceof l.BlockEmbed||p instanceof l.BlockEmbed)return void this.optimize();if(s instanceof d.default){var h=s.newlineIndex(s.length(),!0);if(h>-1&&(s=s.split(h+1))===p)return void this.optimize()}else if(p instanceof d.default){var m=p.newlineIndex(0);m>-1&&p.split(m+1)}var g=p.children.head instanceof c.default?null:p.children.head;s.moveChildren(p,g),s.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,i){(null==this.whitelist||this.whitelist[r])&&(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==o.default.query(n,o.default.Scope.BLOCK)){var i=o.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var s=o.default.create(n,r);this.appendChild(s)}else a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===o.default.Scope.INLINE_BLOT){var r=o.default.create(this.statics.defaultChild);r.appendChild(e),e=r}a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,r){var i=[],a=r;return t.children.forEachAt(n,r,(function(t,n,r){h(t)?i.push(t):t instanceof o.default.Container&&(i=i.concat(e(t,n,a))),a-=r})),i};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=s.default.sources.USER;"string"===typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,n,e),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,n,e)}}}]),t}(o.default.Scroll);m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[u.default,l.BlockEmbed,f.default],t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(l){i=!0,a=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=A(e);if(null==r||null==r.key)return v.warn("Attempted to add invalid keyboard binding",r);"function"===typeof t&&(t={handler:t}),"function"===typeof n&&(n={handler:n}),r=(0,l.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var a=n.which||n.keyCode,o=(e.bindings[a]||[]).filter((function(e){return t.match(n,e)}));if(0!==o.length){var l=e.quill.getSelection();if(null!=l&&e.quill.hasFocus()){var u=e.quill.getLine(l.index),c=i(u,2),f=c[0],p=c[1],h=e.quill.getLeaf(l.index),m=i(h,2),g=m[0],v=m[1],y=0===l.length?[g,v]:e.quill.getLeaf(l.index+l.length),_=i(y,2),b=_[0],x=_[1],E=g instanceof d.default.Text?g.value().slice(0,v):"",S=b instanceof d.default.Text?b.value().slice(x):"",w={collapsed:0===l.length,empty:0===l.length&&f.length()<=1,format:e.quill.getFormat(l),offset:p,prefix:E,suffix:S};o.some((function(t){if(null!=t.collapsed&&t.collapsed!==w.collapsed)return!1;if(null!=t.empty&&t.empty!==w.empty)return!1;if(null!=t.offset&&t.offset!==w.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==w.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=w.format[e]:!1===t.format[e]?null==w.format[e]:(0,s.default)(t.format[e],w.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(w.prefix))&&!(null!=t.suffix&&!t.suffix.test(w.suffix))&&!0!==t.handler.call(e,l,w)}))&&n.preventDefault()}}}}))}}]),t}(h.default);function b(e,t){var n,r=e===_.keys.LEFT?"prefix":"suffix";return g(n={key:e,shiftKey:t,altKey:null},r,/^$/),g(n,"handler",(function(n){var r=n.index;e===_.keys.RIGHT&&(r+=n.length+1);var a=this.quill.getLeaf(r);return!(i(a,1)[0]instanceof d.default.Embed)||(e===_.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index-1,f.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index+n.length+1,f.default.sources.USER),!1)})),n}function x(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=i(n,1)[0],a={};if(0===t.offset){var o=this.quill.getLine(e.index-1),s=i(o,1)[0];if(null!=s&&s.length()>1){var l=r.formats(),u=this.quill.getFormat(e.index-1,1);a=c.default.attributes.diff(l,u)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,f.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(e.index-d,d,a,f.default.sources.USER),this.quill.focus()}}function E(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},a=0,o=this.quill.getLine(e.index),s=i(o,1)[0];if(t.offset>=s.length()-1){var l=this.quill.getLine(e.index+1),u=i(l,1)[0];if(u){var d=s.formats(),p=this.quill.getFormat(e.index,1);r=c.default.attributes.diff(d,p)||{},a=u.length()}}this.quill.deleteText(e.index,n,f.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+a-1,n,r,f.default.sources.USER)}}function S(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),i=t[t.length-1].formats();n=c.default.attributes.diff(i,r)||{}}this.quill.deleteText(e,f.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,f.default.sources.USER),this.quill.setSelection(e.index,f.default.sources.SILENT),this.quill.focus()}function w(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],f.default.sources.USER))}))}function C(e){return{key:_.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),r=t.index,a=t.length,o=this.quill.scroll.descendant(n,r),s=i(o,2),l=s[0],u=s[1];if(null!=l){var c=this.quill.getIndex(l),p=l.newlineIndex(u,!0)+1,h=l.newlineIndex(c+u+a),m=l.domNode.textContent.slice(p,h).split("\n");u=0,m.forEach((function(t,i){e?(l.insertAt(p+u,n.TAB),u+=n.TAB.length,0===i?r+=n.TAB.length:a+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(p+u,n.TAB.length),u-=n.TAB.length,0===i?r-=n.TAB.length:a-=n.TAB.length),u+=t.length+1})),this.quill.update(f.default.sources.USER),this.quill.setSelection(r,a,f.default.sources.SILENT)}}}}function T(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],f.default.sources.USER)}}}function A(e){if("string"===typeof e||"number"===typeof e)return A({key:e});if("object"===("undefined"===typeof e?"undefined":r(e))&&(e=(0,o.default)(e,!1)),"string"===typeof e.key)if(null!=_.keys[e.key.toUpperCase()])e.key=_.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[y]=e.shortKey,delete e.shortKey),e}_.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},_.DEFAULTS={bindings:{bold:T("bold"),italic:T("italic"),underline:T("underline"),indent:{key:_.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:_.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:_.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",f.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":C(!0),"outdent code-block":C(!1),"remove tab":{key:_.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,f.default.sources.USER)}},tab:{key:_.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new u.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,f.default.sources.SILENT)}},"list empty enter":{key:_.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,f.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:_.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],a=n[1],o=(0,l.default)({},r.formats(),{list:"checked"}),s=(new u.default).retain(e.index).insert("\n",o).retain(r.length()-a-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:_.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=i(n,2),a=r[0],o=r[1],s=(new u.default).retain(e.index).insert("\n",t.format).retain(a.length()-o-1).retain(1,{header:null});this.quill.updateContents(s,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),a=i(r,2),o=a[0],s=a[1];if(s>n)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",f.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(e.index-s).delete(n+1).retain(o.length()-2-s).retain(1,{list:l});this.quill.updateContents(c,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,f.default.sources.SILENT)}},"code exit":{key:_.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],a=n[1],o=(new u.default).retain(e.index+r.length()-a-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(o,f.default.sources.USER)}},"embed left":b(_.keys.LEFT,!1),"embed left shift":b(_.keys.LEFT,!0),"embed right":b(_.keys.RIGHT,!1),"embed right shift":b(_.keys.RIGHT,!0)}},t.default=_,t.SHORTKEY=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(l){i=!0,a=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=function(){function e(e,t){for(var n=0;n-1}u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=u,t.sanitize=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=v(n(0)),i=v(n(5)),a=n(4),o=v(a),s=v(n(16)),l=v(n(25)),u=v(n(24)),c=v(n(35)),d=v(n(6)),f=v(n(22)),p=v(n(7)),h=v(n(55)),m=v(n(42)),g=v(n(23));function v(e){return e&&e.__esModule?e:{default:e}}i.default.register({"blots/block":o.default,"blots/block/embed":a.BlockEmbed,"blots/break":s.default,"blots/container":l.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":d.default,"blots/scroll":f.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":m.default,"modules/keyboard":g.default}),r.default.register(o.default,s.default,u.default,d.default,f.default,p.default),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"===typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"===typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,i){var a=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&i)a.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var o=r.create(this.statics.scope);a.wrap(o),o.format(n,i)}},e.prototype.insertAt=function(e,t,n){var i=null==n?r.create("text",t):r.create(t,n),a=this.split(e);this.parent.insertBefore(i,a)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"===typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"===typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=n(32),a=n(33),o=n(1),s=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=a.default.keys(this.domNode);t.concat(n).concat(s).forEach((function(t){var n=o.query(t,o.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;nr&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),e=i.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(o(n(9)).default);function l(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"===typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=i.default.query(e,i.default.Scope.BLOCK)})))}(e)&&(n-=1),n}s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=s,t.getLastChangeIndex=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,s.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=function(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,s.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",s.default.sources.USER),this.quill.setSelection(r+2,s.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=w,t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var i=n.length();if(eo?n(r,e-o,Math.min(t,o+l-e)):n(r,0,Math.min(l,e+t-o)),o+=l}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),a=n(1),o={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,o),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,i){this.update(),e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)t.push(o.pop());for(var s=function e(t,n){void 0===n&&(n=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[a.DATA_KEY].mutations&&(t.domNode[a.DATA_KEY].mutations=[]),n&&e(t.parent))},l=function e(t){null!=t.domNode[a.DATA_KEY]&&null!=t.domNode[a.DATA_KEY].mutations&&(t instanceof i.default&&t.children.forEach(e),t.optimize(n))},u=t,c=0;u.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(s(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);s(t,!1),t instanceof i.default&&t.children.forEach((function(e){s(e,!1)}))}))):"attributes"===e.type&&s(t.prev)),s(t))})),this.children.forEach(l),o=(u=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)t.push(o.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var a=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),a.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,i){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof t&&i.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,i.formats())&&(i.moveChildren(this),i.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var r=a.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,i){null!=a.query(r,a.Scope.BLOCK)?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var i=this.split(t),o=a.create(n,r);i.parent.insertBefore(o,i)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,i){0===t&&n===this.length()?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),a=n(1),o=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=o},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)===!t?t:i.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!==typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,i=arguments[1],a=0;at.length?e:t,u=e.length>t.length?t:e,c=l.indexOf(u);if(-1!=c)return s=[[1,l.substring(0,c)],[0,u],[1,l.substring(c+u.length)]],e.length>t.length&&(s[0][0]=s[2][0]=n),s;if(1==u.length)return[[n,e],[1,t]];var d=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,i,s,l,d]:null}var s,l,u,c,d,f=i(n,r,Math.ceil(n.length/4)),p=i(n,r,Math.ceil(n.length/2));if(!f&&!p)return null;s=p?f&&f[4].length>p[4].length?f:p:f,e.length>t.length?(l=s[0],u=s[1],c=s[2],d=s[3]):(c=s[0],d=s[1],l=s[2],u=s[3]);var h=s[4];return[l,u,c,d,h]}(e,t);if(d){var f=d[0],p=d[1],h=d[2],m=d[3],g=d[4],v=r(f,h),y=r(p,m);return v.concat([[0,g]],y)}return function(e,t){for(var r=e.length,a=t.length,o=Math.ceil((r+a)/2),s=o,l=2*o,u=new Array(l),c=new Array(l),d=0;dr)m+=2;else if(x>a)h+=2;else if(p&&(w=s+f-_)>=0&&w=(S=r-c[w]))return i(e,t,T,x)}for(var E=-y+g;E<=y-v;E+=2){for(var S,w=s+E,C=(S=E==-y||E!=y&&c[w-1]r)v+=2;else if(C>a)g+=2;else if(!p){var T;if((b=s+f-E)>=0&&b=(S=r-S))return i(e,t,T,x)}}}return[[n,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-c),t=t.substring(0,t.length-c));return d&&p.unshift([0,d]),f&&p.push([0,f]),s(p),null!=l&&(p=function(e,t){var r=function(e,t){if(0===t)return[0,e];for(var r=0,i=0;i0&&i.splice(a+2,0,[s[0],l]),u(i,a,3)}return e}(p,l)),p=function(e){for(var t=!1,r=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},i=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},a=2;a0&&o.push(e[a]);return o}(p)}function i(e,t,n,i){var a=e.substring(0,n),o=t.substring(0,i),s=e.substring(n),l=t.substring(i),u=r(a,o),c=r(s,l);return u.concat(c)}function a(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,a=0;n1?(0!==i&&0!==l&&(0!==(t=a(c,u))&&(r-i-l>0&&0==e[r-i-l-1][0]?e[r-i-l-1][1]+=c.substring(0,t):(e.splice(0,0,[0,c.substring(0,t)]),r++),c=c.substring(t),u=u.substring(t)),0!==(t=o(c,u))&&(e[r][1]=c.substring(c.length-t)+e[r][1],c=c.substring(0,c.length-t),u=u.substring(0,u.length-t))),0===i?e.splice(r-l,i+l,[1,c]):0===l?e.splice(r-i,i+l,[n,u]):e.splice(r-i-l,i+l,[n,u],[1,c]),r=r-i-l+(i?1:0)+(l?1:0)+1):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,l=0,i=0,u="",c=""}""===e[e.length-1][1]&&e.pop();var d=!1;for(r=1;r=0&&r>=t-1;r--)if(r+1=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=A(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new s.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=l.default.query(e);if(null==n||"list-item"!==n.blotName||!D(t,"\n"))return t;for(var r=-1,i=e.parentNode;!i.classList.contains("ql-clipboard");)"list"===(l.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?t:t.compose((new s.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",R.bind(R,"bold")],["i",R.bind(R,"italic")],["style",function(){return new s.default}]],w=[f.AlignAttribute,g.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),C=[f.AlignStyle,p.BackgroundStyle,m.ColorStyle,g.DirectionStyle,v.FontStyle,y.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),T=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],S.concat(r.options.matchers).forEach((function(e){var t=i(e,2),a=t[0],o=t[1];(n.matchVisual||o!==L)&&r.addMatcher(a,o)})),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"===typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\<"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(n,b({},h.default.blotName,t[h.default.blotName]))}var r=this.prepareMatching(),a=i(r,2),o=a[0],l=a[1],u=I(this.container,o,l);return D(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new s.default).retain(u.length()-1).delete(1))),x.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"===typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new s.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new s.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,u.default.sources.USER),t.quill.setSelection(r.length()-n.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=i,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var a=i(r,2),o=a[0],s=a[1];switch(o){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(o),(function(e){e[E]=e[E]||[],e[E].push(s)}))}})),[t,n]}}]),t}(d.default);function A(e,t,n){return"object"===("undefined"===typeof t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return A(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,o.default)({},b({},t,n),r.attributes))}),new s.default)}function k(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function D(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length-1}function I(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new s.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,i){var a=I(i,t,n);return i.nodeType===e.ELEMENT_NODE&&(a=t.reduce((function(e,t){return t(i,e)}),a),a=(i[E]||[]).reduce((function(e,t){return t(i,e)}),a)),r.concat(a)}),new s.default):new s.default}function R(e,t,n){return A(n,e,!0)}function N(e,t){var n=l.default.Attributor.Attribute.keys(e),r=l.default.Attributor.Class.keys(e),i=l.default.Attributor.Style.keys(e),a={};return n.concat(r).concat(i).forEach((function(t){var n=l.default.query(t,l.default.Scope.ATTRIBUTE);null!=n&&(a[n.attrName]=n.value(e),a[n.attrName])||(null==(n=w[t])||n.attrName!==t&&n.keyName!==t||(a[n.attrName]=n.value(e)||void 0),null==(n=C[t])||n.attrName!==t&&n.keyName!==t||(n=C[t],a[n.attrName]=n.value(e)||void 0))})),Object.keys(a).length>0&&(t=A(t,a)),t}function M(e,t){var n=l.default.query(e);if(null==n)return t;if(n.prototype instanceof l.default.Embed){var r={},i=n.value(e);null!=i&&(r[n.blotName]=i,t=(new s.default).insert(r,n.formats(e)))}else"function"===typeof n.formats&&(t=A(t,n.blotName,n.formats(e)));return t}function P(e,t){return D(t,"\n")||(O(e)||t.length()>0&&e.nextSibling&&O(e.nextSibling))&&t.insert("\n"),t}function L(e,t){if(O(e)&&null!=e.nextElementSibling&&!D(t,"\n\n")){var n=e.offsetHeight+parseFloat(k(e).marginTop)+parseFloat(k(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function F(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!k(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&O(e.parentNode)||null!=e.previousSibling&&O(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&O(e.parentNode)||null!=e.nextSibling&&O(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}T.DEFAULTS={matchers:[],matchVisual:!0},t.default=T,t.matchAttributor=N,t.matchBlot=M,t.matchNewline=P,t.matchSpacing=L,t.matchText=F},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n '},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;nr.right&&(a=r.right-i.right,this.root.style.left=t+a+"px"),i.leftr.bottom){var o=i.bottom-i.top,s=e.bottom-e.top+o;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return a}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(l){i=!0,a=l}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=function(){function e(e,t){for(var n=0;n','','',''].join(""),t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=P(n(29)),i=n(36),a=n(38),o=n(64),s=P(n(65)),l=P(n(66)),u=n(67),c=P(u),d=n(37),f=n(26),p=n(39),h=n(40),m=P(n(56)),g=P(n(68)),v=P(n(27)),y=P(n(69)),_=P(n(70)),b=P(n(71)),x=P(n(72)),E=P(n(73)),S=n(13),w=P(S),C=P(n(74)),T=P(n(75)),A=P(n(57)),k=P(n(41)),D=P(n(28)),O=P(n(59)),I=P(n(60)),R=P(n(61)),N=P(n(108)),M=P(n(62));function P(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),r.default.register({"formats/align":i.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":o.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":s.default,"formats/code-block":w.default,"formats/header":l.default,"formats/list":c.default,"formats/bold":m.default,"formats/code":S.Code,"formats/italic":g.default,"formats/link":v.default,"formats/script":y.default,"formats/strike":_.default,"formats/underline":b.default,"formats/image":x.default,"formats/video":E.default,"formats/list/item":u.ListItem,"modules/formula":C.default,"modules/syntax":T.default,"modules/toolbar":A.default,"themes/bubble":N.default,"themes/snow":M.default,"ui/icons":k.default,"ui/picker":D.default,"ui/icon-picker":I.default,"ui/color-picker":O.default,"ui/tooltip":R.default},!0),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,i=function(){function e(e,t){for(var n=0;n0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof f)i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),a=this.split(r);a.parent.insertBefore(e,a)}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=a.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(s.default);p.blotName="list",p.scope=a.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[f],t.ListItem=f,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(56);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var s=function(e){function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default);s.blotName="italic",s.tagName=["EM","I"],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,l.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(s.default.Embed);f.blotName="image",f.tagName="IMG",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return l.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(o.BlockEmbed);f.blotName="video",f.className="ql-video",f.tagName="IFRAME",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(l(n(13)).default);f.className="ql-syntax";var p=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),h=function(e){function t(e,n){u(this,t);var r=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!==typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(o.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return d(t,e),r(t,null,[{key:"register",value:function(){o.default.register(p,!0),o.default.register(f,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(o.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(f).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(o.default.sources.SILENT),null!=t&&this.quill.setSelection(t,o.default.sources.SILENT)}}}]),t}(s.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=f,t.CodeToken=p,t.default=h},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},i=function(){function e(e,t){for(var n=0;n0&&i===o.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var a=r.quill.getLines(t.index,t.length);if(1===a.length)r.position(r.quill.getBounds(t));else{var s=a[a.length-1],l=r.quill.getIndex(s),c=Math.min(s.length()-1,t.index+t.length-l),d=r.quill.getBounds(new u.Range(l,c));r.position(d)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return h(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(o.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),t}(s.BaseTooltip);v.TEMPLATE=['','
','','',"
"].join(""),t.BubbleTooltip=v,t.default=g},function(e,t,n){e.exports=n(63)}]).default},e.exports=r()},58446:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t