Files
YoutubeDL-Material/backend/public/1-es5.03b4c023d6407f6a04b5.js
Isaac Grynsztein e97e9ec717 Logs viewer will now color-code logs based on type (error, warning, info, etc.)
You can also clear logs from the logs viewer as well
2020-07-05 22:17:54 -04:00

1 line
1.3 MiB

function _templateObject245(){var t=_taggedTemplateLiteral([":No downloads label\u241f7117fc42f860e86d983bfccfcf2654e5750f3406\u241f6454341788755868274:No downloads available!"]);return _templateObject245=function(){return t},t}function _templateObject244(){var t=_taggedTemplateLiteral([":Current session\u241feb98135e35af26a9a326ee69bd8ff104d36dd8ec\u241f2634265024545519524:(current)"]);return _templateObject244=function(){return t},t}function _templateObject243(){var t=_taggedTemplateLiteral([":Session ID\u241fa1ad8b1be9be43b5183bd2c3186d4e19496f2a0b\u241f98219539077594180:Session ID:"]);return _templateObject243=function(){return t},t}function _templateObject242(){var t=_taggedTemplateLiteral([":File path(s) label\u241fad127117f9471612f47d01eae09709da444a36a4\u241f3348508922595416508:File path(s):"]);return _templateObject242=function(){return t},t}function _templateObject241(){var t=_taggedTemplateLiteral([":Download end label\u241f08ff9375ec078065bcdd7637b7ea65fce2979266\u241f8797064057284793198:Download end:"]);return _templateObject241=function(){return t},t}function _templateObject240(){var t=_taggedTemplateLiteral([":Download start label\u241f77b0c73840665945b25bd128709aa64c8f017e1c\u241f2437792661281269671:Download start:"]);return _templateObject240=function(){return t},t}function _templateObject239(){var t=_taggedTemplateLiteral([":Error label\u241fe9aff8e6df2e2bf6299ea27bb2894c70bc48bd4d\u241f7911469195681429827:An error has occurred:"]);return _templateObject239=function(){return t},t}function _templateObject238(){var t=_taggedTemplateLiteral([":Details\u241f4f8b2bb476981727ab34ed40fde1218361f92c45\u241f5028777105388019087:Details"]);return _templateObject238=function(){return t},t}function _templateObject237(){var t=_taggedTemplateLiteral([":Download ID\u241fca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1\u241f1074038423230804155:ID:"]);return _templateObject237=function(){return t},t}function _templateObject236(){var t=_taggedTemplateLiteral([":Register\u241fcfc2f436ec2beffb042e7511a73c89c372e86a6c\u241f3301086086650990787:Register"]);return _templateObject236=function(){return t},t}function _templateObject235(){var t=_taggedTemplateLiteral([":Login\u241f6765b4c916060f6bc42d9bb69e80377dbcb5e4e9\u241f2454050363478003966:Login"]);return _templateObject235=function(){return t},t}function _templateObject234(){var t=_taggedTemplateLiteral([":Subscription videos search placeholder\u241f7e892ba15f2c6c17e83510e273b3e10fc32ea016\u241f4580988005648117665:Search"]);return _templateObject234=function(){return t},t}function _templateObject233(){var t=_taggedTemplateLiteral([":Subscription videos title\u241fa52dae09be10ca3a65da918533ced3d3f4992238\u241f8936704404804793618:Videos"]);return _templateObject233=function(){return t},t}function _templateObject232(){var t=_taggedTemplateLiteral([":Delete forever subscription video button\u241f2031adb51e07a41844e8ba7704b054e98345c9c1\u241f880206287081443054:Delete forever"]);return _templateObject232=function(){return t},t}function _templateObject231(){var t=_taggedTemplateLiteral([":Delete and redownload subscription video button\u241f94e01842dcee90531caa52e4147f70679bac87fe\u241f8460889291602192517:Delete and redownload"]);return _templateObject231=function(){return t},t}function _templateObject230(){var t=_taggedTemplateLiteral([":Subscription video info button\u241f321e4419a943044e674beb55b8039f42a9761ca5\u241f314315645942131479:Info"]);return _templateObject230=function(){return t},t}function _templateObject229(){var t=_taggedTemplateLiteral([":Video duration label\u241f2054791b822475aeaea95c0119113de3200f5e1c\u241f7115285952699064699:Length:"]);return _templateObject229=function(){return t},t}function _templateObject228(){var t=_taggedTemplateLiteral([":No playlist subscriptions text\u241f587b57ced54965d8874c3fd0e9dfedb987e5df04\u241f3403368727234976136:You have no playlist subscriptions."]);return _templateObject228=function(){return t},t}function _templateObject227(){var t=_taggedTemplateLiteral([":Subscription playlist not available text\u241f2e0a410652cb07d069f576b61eab32586a18320d\u241f4161141077899894301:Name not available. Playlist retrieval in progress."]);return _templateObject227=function(){return t},t}function _templateObject226(){var t=_taggedTemplateLiteral([":No channel subscriptions text\u241f4636cd4a1379c50d471e98786098c4d39e1e82ad\u241f2560406180065361139:You have no channel subscriptions."]);return _templateObject226=function(){return t},t}function _templateObject225(){var t=_taggedTemplateLiteral([":Subscription playlist not available text\u241f29b89f751593e1b347eef103891b7a1ff36ec03f\u241f973700466393519727:Name not available. Channel retrieval in progress."]);return _templateObject225=function(){return t},t}function _templateObject224(){var t=_taggedTemplateLiteral([":Subscriptions playlists title\u241f47546e45bbb476baaaad38244db444c427ddc502\u241f1823843876735462104:Playlists"]);return _templateObject224=function(){return t},t}function _templateObject223(){var t=_taggedTemplateLiteral([":Subscriptions channels title\u241f807cf11e6ac1cde912496f764c176bdfdd6b7e19\u241f8181077408762380407:Channels"]);return _templateObject223=function(){return t},t}function _templateObject222(){var t=_taggedTemplateLiteral([":Subscriptions title\u241fe2319dec5b4ccfb6ed9f55ccabd63650a8fdf547\u241f3180145612302390475:Your subscriptions"]);return _templateObject222=function(){return t},t}function _templateObject221(){var t=_taggedTemplateLiteral([":Subscription ID property\u241fa44d86aa1e6c20ced07aca3a7c081d8db9ded1c6\u241f2158775445713924699:Archive:"]);return _templateObject221=function(){return t},t}function _templateObject220(){var t=_taggedTemplateLiteral([":Unsubscribe button\u241f3042bd3ad8dffcfeca5fd1ae6159fd1047434e95\u241f1698114086921246480:Unsubscribe"]);return _templateObject220=function(){return t},t}function _templateObject219(){var t=_taggedTemplateLiteral([":Export Archive button\u241f8efc77bf327659c0fec1f518cf48a98cdcd9dddf\u241f5613381975493898311:Export Archive"]);return _templateObject219=function(){return t},t}function _templateObject218(){var t=_taggedTemplateLiteral([":Close subscription info button\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return _templateObject218=function(){return t},t}function _templateObject217(){var t=_taggedTemplateLiteral([":Subscription ID property\u241fca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1\u241f1074038423230804155:ID:"]);return _templateObject217=function(){return t},t}function _templateObject216(){var t=_taggedTemplateLiteral([":Subscription URL property\u241fc52db455cca9109ee47e1a612c3f4117c09eb71b\u241f8598886608217248074:URL:"]);return _templateObject216=function(){return t},t}function _templateObject215(){var t=_taggedTemplateLiteral([":Subscription type property\u241fe78c0d60ac39787f62c9159646fe0b3c1ed55a1d\u241f2736556170366900089:Type:"]);return _templateObject215=function(){return t},t}function _templateObject214(){var t=_taggedTemplateLiteral([":Download time range prefix\u241f28a678e9cabf86e44c32594c43fa0e890135c20f\u241f2424458468042538424:Download videos uploaded in the last"]);return _templateObject214=function(){return t},t}function _templateObject213(){var t=_taggedTemplateLiteral([":Subscribe button\u241fd0336848b0c375a1c25ba369b3481ee383217a4f\u241f1144407473317535723:Subscribe"]);return _templateObject213=function(){return t},t}function _templateObject212(){var t=_taggedTemplateLiteral([":Subscribe cancel button\u241fd7b35c384aecd25a516200d6921836374613dfe7\u241f2159130950882492111:Cancel"]);return _templateObject212=function(){return t},t}function _templateObject211(){var t=_taggedTemplateLiteral([":Custom Output input hint\u241f19d1ae64d94d28a29b2c57ae8671aace906b5401\u241f3584692608114953661:Path is relative to the config download path. Don't include extension."]);return _templateObject211=function(){return t},t}function _templateObject210(){var t=_taggedTemplateLiteral([":Custom output template documentation link\u241ffcfd4675b4c90f08d18d3abede9a9a4dff4cfdc7\u241f4895326106573044490:Documentation"]);return _templateObject210=function(){return t},t}function _templateObject209(){var t=_taggedTemplateLiteral([":Subscription custom file output placeholder\u241f98b6ec9ec138186d663e64770267b67334353d63\u241f4096999545370137829:Custom file output"]);return _templateObject209=function(){return t},t}function _templateObject208(){var t=_taggedTemplateLiteral([":Custom args hint\u241ff432e1a8d6adb12e612127978ce2e0ced933959c\u241f6149317832585935644:These are added after the standard args."]);return _templateObject208=function(){return t},t}function _templateObject207(){var t=_taggedTemplateLiteral([":Subscription custom args placeholder\u241fad2f8ac8b7de7945b80c8e424484da94e597125f\u241f7810908229283352132:Custom args"]);return _templateObject207=function(){return t},t}function _templateObject206(){var t=_taggedTemplateLiteral([":Streaming-only mode\u241f408ca4911457e84a348cecf214f02c69289aa8f1\u241f1474682218975380155:Streaming-only mode"]);return _templateObject206=function(){return t},t}function _templateObject205(){var t=_taggedTemplateLiteral([":Streaming-only mode\u241fc76a955642714b8949ff3e4b4990864a2e2cac95\u241f4743212858568319264:Audio-only mode"]);return _templateObject205=function(){return t},t}function _templateObject204(){var t=_taggedTemplateLiteral([":Download all uploads subscription setting\u241fea30873bd3f0d5e4fb2378eec3f0a1db77634a28\u241f2789218157148692814:Download all uploads"]);return _templateObject204=function(){return t},t}function _templateObject203(){var t=_taggedTemplateLiteral([":Subscription custom name placeholder\u241f08f5d0ef937ae17feb1b04aff15ad88911e87baf\u241f1402261878731426139:Custom name"]);return _templateObject203=function(){return t},t}function _templateObject202(){var t=_taggedTemplateLiteral([":Subscription URL input hint\u241f93efc99ae087fc116de708ecd3ace86ca237cf30\u241f6758330192665823220:The playlist or channel URL"]);return _templateObject202=function(){return t},t}function _templateObject201(){var t=_taggedTemplateLiteral([":Subscription URL input placeholder\u241f801b98c6f02fe3b32f6afa3ee854c99ed83474e6\u241f2375260419993138758:URL"]);return _templateObject201=function(){return t},t}function _templateObject200(){var t=_taggedTemplateLiteral([":Subscribe dialog title\u241fa9806cf78ce00eb2613eeca11354a97e033377b8\u241f4500902888758611270:Subscribe to playlist or channel"]);return _templateObject200=function(){return t},t}function _templateObject199(){var t=_taggedTemplateLiteral([":Playlist save changes button\u241f5b3075e8dc3f3921ec316b0bd83b6d14a06c1a4f\u241f7000649363168371045:Save changes"]);return _templateObject199=function(){return t},t}function _templateObject198(){var t=_taggedTemplateLiteral([":Share audio dialog title\u241f1d540dcd271b316545d070f9d182c372d923aadd\u241f3735500696745720245:Share audio"]);return _templateObject198=function(){return t},t}function _templateObject197(){var t=_taggedTemplateLiteral([":Share video dialog title\u241f15da89490e04496ca9ea1e1b3d44fb5efd4a75d9\u241f1305889615005911428:Share video"]);return _templateObject197=function(){return t},t}function _templateObject196(){var t=_taggedTemplateLiteral([":Share playlist dialog title\u241fa249a5ae13e0835383885aaf697d2890cc3e53e9\u241f3024429387570590252:Share playlist"]);return _templateObject196=function(){return t},t}function _templateObject195(){var t=_taggedTemplateLiteral([":Close button\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return _templateObject195=function(){return t},t}function _templateObject194(){var t=_taggedTemplateLiteral([":Copy to clipboard button\u241f3a6e5a6aa78ca864f6542410c5dafb6334538106\u241f8738732372986673558:Copy to clipboard"]);return _templateObject194=function(){return t},t}function _templateObject193(){var t=_taggedTemplateLiteral([":Seconds\u241f4f2ed9e71a7c981db3e50ae2fedb28aff2ec4e6c\u241f8874012390997067175:Seconds"]);return _templateObject193=function(){return t},t}function _templateObject192(){var t=_taggedTemplateLiteral([":Use timestamp\u241f6580b6a950d952df847cb3d8e7176720a740adc8\u241f2355512602260135881:Use timestamp"]);return _templateObject192=function(){return t},t}function _templateObject191(){var t=_taggedTemplateLiteral([":Enable sharing checkbox\u241f1f6d14a780a37a97899dc611881e6bc971268285\u241f3852386690131857488:Enable sharing"]);return _templateObject191=function(){return t},t}function _templateObject190(){var t=_taggedTemplateLiteral([":Delete and blacklist video button\u241f34504b488c24c27e68089be549f0eeae6ebaf30b\u241f593208667984994894:Delete and blacklist"]);return _templateObject190=function(){return t},t}function _templateObject189(){var t=_taggedTemplateLiteral([":Playlist video count\u241fe684046d73bcee88e82f7ff01e2852789a05fc32\u241f6836949342567686088:Count:"]);return _templateObject189=function(){return t},t}function _templateObject188(){var t=_taggedTemplateLiteral([":Delete video button\u241f826b25211922a1b46436589233cb6f1a163d89b7\u241f7022070615528435141:Delete"]);return _templateObject188=function(){return t},t}function _templateObject187(){var t=_taggedTemplateLiteral([":Video info button\u241f321e4419a943044e674beb55b8039f42a9761ca5\u241f314315645942131479:Info"]);return _templateObject187=function(){return t},t}function _templateObject186(){var t=_taggedTemplateLiteral([":Delete playlist\u241f826b25211922a1b46436589233cb6f1a163d89b7\u241f7022070615528435141:Delete"]);return _templateObject186=function(){return t},t}function _templateObject185(){var t=_taggedTemplateLiteral([":Playlist edit button\u241f28f86ffd419b869711aa13f5e5ff54be6d70731c\u241f7585826646011739428:Edit"]);return _templateObject185=function(){return t},t}function _templateObject184(){var t=_taggedTemplateLiteral([":File or playlist ID\u241fca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1\u241f1074038423230804155:ID:"]);return _templateObject184=function(){return t},t}function _templateObject183(){var t=_taggedTemplateLiteral([":Name\u241fcff1428d10d59d14e45edec3c735a27b5482db59\u241f8953033926734869941:Name"]);return _templateObject183=function(){return t},t}function _templateObject182(){var t=_taggedTemplateLiteral([":Modify playlist dialog title\u241f4f389e41e4592f7f9bb76abdd8af4afdfb13f4f1\u241f6411548663373200045:Modify playlist"]);return _templateObject182=function(){return t},t}function _templateObject181(){var t=_taggedTemplateLiteral([":Close subscription info button\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return _templateObject181=function(){return t},t}function _templateObject180(){var t=_taggedTemplateLiteral([":Video upload date property\u241fa67e7d843cef735c79d5ef1c8ba4af3e758912bb\u241f73382088968432490:Upload Date:"]);return _templateObject180=function(){return t},t}function _templateObject179(){var t=_taggedTemplateLiteral([":Video path property\u241fbd630d8669b16e5f264ec4649d9b469fe03e5ff4\u241f2612252809311306032:Path:"]);return _templateObject179=function(){return t},t}function _templateObject178(){var t=_taggedTemplateLiteral([":Video file size property\u241f109c6f4a5e46efb933612ededfaf52a13178b7e0\u241f8712868262622854125:File size:"]);return _templateObject178=function(){return t},t}function _templateObject177(){var t=_taggedTemplateLiteral([":Video ID property\u241fc6eb45d085384903e53ab001a3513d1de6a1dbac\u241f6975318892267864632:Uploader:"]);return _templateObject177=function(){return t},t}function _templateObject176(){var t=_taggedTemplateLiteral([":Video URL property\u241fc52db455cca9109ee47e1a612c3f4117c09eb71b\u241f8598886608217248074:URL:"]);return _templateObject176=function(){return t},t}function _templateObject175(){var t=_taggedTemplateLiteral([":Video name property\u241f616e206cb4f25bd5885fc35925365e43cf5fb929\u241f7658402240953727096:Name:"]);return _templateObject175=function(){return t},t}function _templateObject174(){var t=_taggedTemplateLiteral([":No video playlists available text\u241f0f59c46ca29e9725898093c9ea6b586730d0624e\u241f6806070849891381327: No playlists available. Create one from your downloading video files by clicking the blue plus button. "]);return _templateObject174=function(){return t},t}function _templateObject173(){var t=_taggedTemplateLiteral([":Playlists title\u241f47546e45bbb476baaaad38244db444c427ddc502\u241f1823843876735462104:Playlists"]);return _templateObject173=function(){return t},t}function _templateObject172(){var t=_taggedTemplateLiteral([":No video playlists available text\u241f78bd81adb4609b68cfa4c589222bdc233ba1faaa\u241f5049342015162771379: No playlists available. Create one from your downloading audio files by clicking the blue plus button. "]);return _templateObject172=function(){return t},t}function _templateObject171(){var t=_taggedTemplateLiteral([":Playlists title\u241f47546e45bbb476baaaad38244db444c427ddc502\u241f1823843876735462104:Playlists"]);return _templateObject171=function(){return t},t}function _templateObject170(){var t=_taggedTemplateLiteral([":Video files description\u241f960582a8b9d7942716866ecfb7718309728f2916\u241f691504174199627518: Your video files are here "]);return _templateObject170=function(){return t},t}function _templateObject169(){var t=_taggedTemplateLiteral([":Video files title\u241f9d2b62bb0b91e2e17fb4177a7e3d6756a2e6ee33\u241f429855630861441368: Video "]);return _templateObject169=function(){return t},t}function _templateObject168(){var t=_taggedTemplateLiteral([":Audio files description\u241f9779715ac05308973d8f1c8658b29b986e92450f\u241f3371870979788549262: Your audio files are here "]);return _templateObject168=function(){return t},t}function _templateObject167(){var t=_taggedTemplateLiteral([":Audio files title\u241f4a0dada6e841a425de3e5006e6a04df26c644fa5\u241f520791250454025553: Audio "]);return _templateObject167=function(){return t},t}function _templateObject166(){var t=_taggedTemplateLiteral([":YT Password placeholder\u241fc32ef07f8803a223a83ed17024b38e8d82292407\u241f1431416938026210429:Password"]);return _templateObject166=function(){return t},t}function _templateObject165(){var t=_taggedTemplateLiteral([":YT Username placeholder\u241f08c74dc9762957593b91f6eb5d65efdfc975bf48\u241f5248717555542428023:Username"]);return _templateObject165=function(){return t},t}function _templateObject164(){var t=_taggedTemplateLiteral([":Use authentication checkbox\u241f8fad10737d3e3735a6699a4d89cbf6c20f6bb55f\u241f294759932648923187: Use authentication "]);return _templateObject164=function(){return t},t}function _templateObject163(){var t=_taggedTemplateLiteral([":Simulated command label\u241fb7ffe7c6586d6f3f18a9246806a7c7d5538ab43e\u241f4637303589735709945: Simulated command: "]);return _templateObject163=function(){return t},t}function _templateObject162(){var t=_taggedTemplateLiteral([":Custom Output input hint\u241f19d1ae64d94d28a29b2c57ae8671aace906b5401\u241f3584692608114953661:Path is relative to the config download path. Don't include extension."]);return _templateObject162=function(){return t},t}function _templateObject161(){var t=_taggedTemplateLiteral([":Youtube-dl output template documentation link\u241ffcfd4675b4c90f08d18d3abede9a9a4dff4cfdc7\u241f4895326106573044490:Documentation"]);return _templateObject161=function(){return t},t}function _templateObject160(){var t=_taggedTemplateLiteral([":Custom output placeholder\u241fd9c02face477f2f9cdaae318ccee5f89856851fb\u241f3075663591125020403:Custom output"]);return _templateObject160=function(){return t},t}function _templateObject159(){var t=_taggedTemplateLiteral([":Use custom output checkbox\u241f3a92a3443c65a52f37ca7efb8f453b35dbefbf29\u241f5904983012542242085: Use custom output "]);return _templateObject159=function(){return t},t}function _templateObject158(){var t=_taggedTemplateLiteral([":Custom Args input hint\u241fa6911c2157f1b775284bbe9654ce5eb30cf45d7f\u241f1027155491043285709: No need to include URL, just everything after. Args are delimited using two commas like so: ,, "]);return _templateObject158=function(){return t},t}function _templateObject157(){var t=_taggedTemplateLiteral([":Custom args placeholder\u241fad2f8ac8b7de7945b80c8e424484da94e597125f\u241f7810908229283352132:Custom args"]);return _templateObject157=function(){return t},t}function _templateObject156(){var t=_taggedTemplateLiteral([":Use custom args checkbox\u241f4e4c721129466be9c3862294dc40241b64045998\u241f5091669664044282329: Use custom args "]);return _templateObject156=function(){return t},t}function _templateObject155(){var t=_taggedTemplateLiteral([":Advanced download mode panel\u241f322ed150e02666fe2259c5b4614eac7066f4ffa0\u241f7427754392029374006: Advanced "]);return _templateObject155=function(){return t},t}function _templateObject154(){var t=_taggedTemplateLiteral([":Cancel download button\u241f6a3777f913cf3f288664f0632b9f24794fdcc24e\u241f6991067716289442185: Cancel "]);return _templateObject154=function(){return t},t}function _templateObject153(){var t=_taggedTemplateLiteral([":Multi-download Mode checkbox\u241f96a01fafe135afc58b0f8071a4ab00234495ce18\u241f1215999553275961560: Multi-download Mode "]);return _templateObject153=function(){return t},t}function _templateObject152(){var t=_taggedTemplateLiteral([":YT search View button for searched video\u241fd3f02f845e62cebd75fde451ab8479d2a8ad784d\u241f3757598085627016432: View "]);return _templateObject152=function(){return t},t}function _templateObject151(){var t=_taggedTemplateLiteral([":YT search Use URL button for searched video\u241f4be966a9dcfbc9b54dfcc604b831c0289f847fa4\u241f1403543919071826528:Use URL"]);return _templateObject151=function(){return t},t}function _templateObject150(){var t=_taggedTemplateLiteral([":Quality select label\u241fa38ae1082fec79ba1f379978337385a539a28e73\u241f5496522374593352740: Quality "]);return _templateObject150=function(){return t},t}function _templateObject149(){var t=_taggedTemplateLiteral([":Main download button\u241f6a21ba5fb0ac804a525bf9ab168038c3ee88e661\u241f4646958190966105516: Download "]);return _templateObject149=function(){return t},t}function _templateObject148(){var t=_taggedTemplateLiteral([":Only Audio checkbox\u241f4a9889d36910edc8323d7bab60858ab3da6d91df\u241f4309609853428050389: Only Audio "]);return _templateObject148=function(){return t},t}function _templateObject147(){var t=_taggedTemplateLiteral([":Youtube downloader home page label\u241f038ebcb2a89155d90c24fa1c17bfe83dbadc3c20\u241f8791777206240453371:Youtube Downloader"]);return _templateObject147=function(){return t},t}function _templateObject146(){var t=_taggedTemplateLiteral([":Videos title\u241fa52dae09be10ca3a65da918533ced3d3f4992238\u241f8936704404804793618:Videos"]);return _templateObject146=function(){return t},t}function _templateObject145(){var t=_taggedTemplateLiteral([":Audio files title\u241ff47e2d56dd8a145b2e9599da9730c049d52962a2\u241f253926325379303932:Audio files"]);return _templateObject145=function(){return t},t}function _templateObject144(){var t=_taggedTemplateLiteral([":Playlist name placeholder\u241fcff1428d10d59d14e45edec3c735a27b5482db59\u241f8953033926734869941:Name"]);return _templateObject144=function(){return t},t}function _templateObject143(){var t=_taggedTemplateLiteral([":Create a playlist dialog title\u241f17f0ea5d2d7a262b0e875acc70475f102aee84e6\u241f3949911572988594237:Create a playlist"]);return _templateObject143=function(){return t},t}function _templateObject142(){var t=_taggedTemplateLiteral([":Navigation menu Downloads Page title\u241f822fab38216f64e8166d368b59fe756ca39d301b\u241f9040361513231775562:Downloads"]);return _templateObject142=function(){return t},t}function _templateObject141(){var t=_taggedTemplateLiteral([":Navigation menu Subscriptions Page title\u241f357064ca9d9ac859eb618e28e8126fa32be049e2\u241f1812379335568847528:Subscriptions"]);return _templateObject141=function(){return t},t}function _templateObject140(){var t=_taggedTemplateLiteral([":Navigation menu Login Page title\u241f6765b4c916060f6bc42d9bb69e80377dbcb5e4e9\u241f2454050363478003966:Login"]);return _templateObject140=function(){return t},t}function _templateObject139(){var t=_taggedTemplateLiteral([":Navigation menu Home Page title\u241f92eee6be6de0b11c924e3ab27db30257159c0a7c\u241f2821179408673282599:Home"]);return _templateObject139=function(){return t},t}function _templateObject138(){var t=_taggedTemplateLiteral([":Settings menu label\u241f121cc5391cd2a5115bc2b3160379ee5b36cd7716\u241f4930506384627295710:Settings"]);return _templateObject138=function(){return t},t}function _templateObject137(){var t=_taggedTemplateLiteral([":Dark mode toggle label\u241fadb4562d2dbd3584370e44496969d58c511ecb63\u241f3892161059518616136:Dark"]);return _templateObject137=function(){return t},t}function _templateObject136(){var t=_taggedTemplateLiteral([":Profile menu label\u241f994363f08f9fbfa3b3994ff7b35c6904fdff18d8\u241f4915431133669985304:Profile"]);return _templateObject136=function(){return t},t}function _templateObject135(){var t=_taggedTemplateLiteral([":About menu label\u241f004b222ff9ef9dd4771b777950ca1d0e4cd4348a\u241f1726363342938046830:About"]);return _templateObject135=function(){return t},t}function _templateObject134(){var t=_taggedTemplateLiteral([":Create\u241f70a67e04629f6d412db0a12d51820b480788d795\u241f5674286808255988565:Create"]);return _templateObject134=function(){return t},t}function _templateObject133(){var t=_taggedTemplateLiteral([":Password\u241fc32ef07f8803a223a83ed17024b38e8d82292407\u241f1431416938026210429:Password"]);return _templateObject133=function(){return t},t}function _templateObject132(){var t=_taggedTemplateLiteral([":No default admin detected explanation\u241f2d2adf3ca26a676bca2269295b7455a26fd26980\u241f1428648941210584739:No default admin account detected. This will create and set the password for an admin account with the user name as 'admin'."]);return _templateObject132=function(){return t},t}function _templateObject131(){var t=_taggedTemplateLiteral([":Create admin account dialog title\u241fa1dbca87b9f36d2b06a5cbcffb5814c4ae9b798a\u241f1671378244656756701:Create admin account"]);return _templateObject131=function(){return t},t}function _templateObject130(){var t=_taggedTemplateLiteral([":Login\u241f6765b4c916060f6bc42d9bb69e80377dbcb5e4e9\u241f2454050363478003966:Login"]);return _templateObject130=function(){return t},t}function _templateObject129(){var t=_taggedTemplateLiteral([":Not logged in notification\u241ffa96f2137af0a24e6d6d54c598c0af7d5d5ad344\u241f276791482480581557:You are not logged in."]);return _templateObject129=function(){return t},t}function _templateObject128(){var t=_taggedTemplateLiteral([":Created\u241fa5ed099ffc9e96f6970df843289ade8a7d20ab9f\u241f1616250945945379783:Created:"]);return _templateObject128=function(){return t},t}function _templateObject127(){var t=_taggedTemplateLiteral([":UID\u241fac9d09de42edca1296371e4d801349c9096ac8de\u241f5524669285756836501:UID:"]);return _templateObject127=function(){return t},t}function _templateObject126(){var t=_taggedTemplateLiteral([":Name\u241f616e206cb4f25bd5885fc35925365e43cf5fb929\u241f7658402240953727096:Name:"]);return _templateObject126=function(){return t},t}function _templateObject125(){var t=_taggedTemplateLiteral([":Logout\u241fbb694b49d408265c91c62799c2b3a7e3151c824d\u241f3797778920049399855:Logout"]);return _templateObject125=function(){return t},t}function _templateObject124(){var t=_taggedTemplateLiteral([":Close\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return _templateObject124=function(){return t},t}function _templateObject123(){var t=_taggedTemplateLiteral([":User profile dialog title\u241f42ff677ec14f111e88bd6cdd30145378e994d1bf\u241f3496181279436331299:Your Profile"]);return _templateObject123=function(){return t},t}function _templateObject122(){var t=_taggedTemplateLiteral([":View latest update\u241fa16e92385b4fd9677bb830a4b796b8b79c113290\u241f509090351011426949:Update available"]);return _templateObject122=function(){return t},t}function _templateObject121(){var t=_taggedTemplateLiteral([":Checking for updates text\u241fe22f3a5351944f3a1a10cfc7da6f65dfbe0037fe\u241f9163379406577397382:Checking for updates..."]);return _templateObject121=function(){return t},t}function _templateObject120(){var t=_taggedTemplateLiteral([":About bug suffix\u241fe1f398f38ff1534303d4bb80bd6cece245f24016\u241f1971178156716923826:to create an issue!"]);return _templateObject120=function(){return t},t}function _templateObject119(){var t=_taggedTemplateLiteral([":About bug click here\u241f9b3cedfa83c6d7acb3210953289d1be4aab115c7\u241f5261595325941116751:Click here"]);return _templateObject119=function(){return t},t}function _templateObject118(){var t=_taggedTemplateLiteral([":About bug prefix\u241fb33536f59b94ec935a16bd6869d836895dc5300c\u241f3353248286278121979:Found a bug or have a suggestion?"]);return _templateObject118=function(){return t},t}function _templateObject117(){var t=_taggedTemplateLiteral([":Update through settings menu hint\u241f189b28aaa19b3c51c6111ad039c4fd5e2a22e370\u241f41092526824232895:You can update from the settings menu."]);return _templateObject117=function(){return t},t}function _templateObject116(){var t=_taggedTemplateLiteral([":Version label\u241fa45e3b05f0529dc5246d70ef62304c94426d4c81\u241f5296103174605274070:Installed version:"]);return _templateObject116=function(){return t},t}function _templateObject115(){var t=_taggedTemplateLiteral([":About second paragraph\u241fbc0ad0ee6630acb7fcb7802ec79f5a0ee943c1a7\u241f786314306504588277:has some awesome features included! An extensive API, Docker support, and localization (translation) support. Read up on all the supported features by clicking on the GitHub icon above."]);return _templateObject115=function(){return t},t}function _templateObject114(){var t=_taggedTemplateLiteral([":About first paragraph\u241f199c17e5d6a419313af3c325f06dcbb9645ca618\u241f7048705050249868840:is an open-source YouTube downloader built under Google's Material Design specifications. You can seamlessly download your favorite videos as video or audio files, and even subscribe to your favorite channels and playlists to keep updated with their new videos."]);return _templateObject114=function(){return t},t}function _templateObject113(){var t=_taggedTemplateLiteral([":About dialog title\u241fcec82c0a545f37420d55a9b6c45c20546e82f94e\u241f8863443674032361244:About YoutubeDL-Material"]);return _templateObject113=function(){return t},t}function _templateObject112(){var t=_taggedTemplateLiteral([":Logs settings label\u241feb3d5aefff38a814b76da74371cbf02c0789a1ef\u241f4804785061014590286:Logs"]);return _templateObject112=function(){return t},t}function _templateObject111(){var t=_taggedTemplateLiteral([":Allow registration setting\u241f37224420db54d4bc7696f157b779a7225f03ca9d\u241f7605921570763703610:Allow user registration"]);return _templateObject111=function(){return t},t}function _templateObject110(){var t=_taggedTemplateLiteral([":Users settings label\u241f4d13a9cd5ed3dcee0eab22cb25198d43886942be\u241f4555457172864212828:Users"]);return _templateObject110=function(){return t},t}function _templateObject109(){var t=_taggedTemplateLiteral([":Set cookies button\u241f80651a7ad1229ea6613557d3559f702cfa5aecf5\u241f7799461682551341531:Set Cookies"]);return _templateObject109=function(){return t},t}function _templateObject108(){var t=_taggedTemplateLiteral([":Use cookies setting\u241f431e5f3a0dde88768d1074baedd65266412b3f02\u241f7284221456145715230:Use Cookies"]);return _templateObject108=function(){return t},t}function _templateObject107(){var t=_taggedTemplateLiteral([":Allow advanced downloading setting\u241fdc3d990391c944d1fbfc7cfb402f7b5e112fb3a8\u241f4097058672287489906:Allow advanced download"]);return _templateObject107=function(){return t},t}function _templateObject106(){var t=_taggedTemplateLiteral([":Logger level select label\u241f00e274c496b094a019f0679c3fab3945793f3335\u241f6118371693924897057:Select a logger level"]);return _templateObject106=function(){return t},t}function _templateObject105(){var t=_taggedTemplateLiteral([":Custom downloader select label\u241fec71e08aee647ea4a71fd6b7510c54d84a797ca6\u241f13573305706839101:Select a downloader"]);return _templateObject105=function(){return t},t}function _templateObject104(){var t=_taggedTemplateLiteral([":Use default downloading agent setting\u241f5fab47f146b0a4b809dcebf3db9da94df6299ea1\u241f1862425442411516950:Use default downloading agent"]);return _templateObject104=function(){return t},t}function _templateObject103(){var t=_taggedTemplateLiteral([":Generate audio only bookmarklet checkbox\u241fc505d6c5de63cc700f0aaf8a4b31fae9e18024e5\u241f7868265792526063076:Generate 'audio only' bookmarklet"]);return _templateObject103=function(){return t},t}function _templateObject102(){var t=_taggedTemplateLiteral([":Bookmarklet instructions\u241f61b81b11aad0b9d970ece2fce18405f07eac69c2\u241f907045314542317789:Drag the link below to your bookmarks, and you're good to go! Just navigate to the YouTube video you'd like to download, and click the bookmark."]);return _templateObject102=function(){return t},t}function _templateObject101(){var t=_taggedTemplateLiteral([":Firefox setup suffix\u241fcb17ff8fe3961cf90f44bee97c88a3f3347a7e55\u241f5226296152980000564:Not much is required other than changing the extension's settings to set the frontend URL."]);return _templateObject101=function(){return t},t}function _templateObject100(){var t=_taggedTemplateLiteral([":Firefox setup prefix link\u241feb81be6b49e195e5307811d1d08a19259d411f37\u241f3930152199106610543:Detailed setup instructions."]);return _templateObject100=function(){return t},t}function _templateObject99(){var t=_taggedTemplateLiteral([":Firefox click here suffix\u241f9a2ec6da48771128384887525bdcac992632c863\u241f8910153976238540666:to install the official YoutubeDL-Material Firefox extension right off the Firefox extensions page."]);return _templateObject99=function(){return t},t}function _templateObject98(){var t=_taggedTemplateLiteral([":Firefox ext click here\u241f9b3cedfa83c6d7acb3210953289d1be4aab115c7\u241f5261595325941116751:Click here"]);return _templateObject98=function(){return t},t}function _templateObject97(){var t=_taggedTemplateLiteral([":Chrome setup suffix\u241f5b5296423906ab3371fdb2b5a5aaa83acaa2ee52\u241f8028660067162629884:You must manually load the extension and modify the extension's settings to set the frontend URL."]);return _templateObject97=function(){return t},t}function _templateObject96(){var t=_taggedTemplateLiteral([":Chrome click here suffix\u241f7f09776373995003161235c0c8d02b7f91dbc4df\u241f2498765655243362925:to download the official YoutubeDL-Material Chrome extension manually."]);return _templateObject96=function(){return t},t}function _templateObject95(){var t=_taggedTemplateLiteral([":Chrome ext click here\u241f9b3cedfa83c6d7acb3210953289d1be4aab115c7\u241f5261595325941116751:Click here"]);return _templateObject95=function(){return t},t}function _templateObject94(){var t=_taggedTemplateLiteral([":Youtube API Key setting hint\u241f8602e313cdfa7c4cc475ccbe86459fce3c3fd986\u241f3231872778665115286:Generating a key is easy!"]);return _templateObject94=function(){return t},t}function _templateObject93(){var t=_taggedTemplateLiteral([":Youtube API Key setting placeholder\u241fce10d31febb3d9d60c160750570310f303a22c22\u241f8352766560503075759:Youtube API Key"]);return _templateObject93=function(){return t},t}function _templateObject92(){var t=_taggedTemplateLiteral([":Use YouTube API setting\u241fd5d7c61349f3b0859336066e6d453fc35d334fe5\u241f921806454742404419:Use YouTube API"]);return _templateObject92=function(){return t},t}function _templateObject91(){var t=_taggedTemplateLiteral([":Generate key button\u241f1b258b258b4cc475ceb2871305b61756b0134f4a\u241f5193539160604294602:Generate"]);return _templateObject91=function(){return t},t}function _templateObject90(){var t=_taggedTemplateLiteral([":View API docs setting hint\u241f41016a73d8ad85e6cb26dffa0a8fab9fe8f60d8e\u241f7819423665857999846:View documentation"]);return _templateObject90=function(){return t},t}function _templateObject89(){var t=_taggedTemplateLiteral([":Public API Key setting placeholder\u241f23bd81dcc30b74d06279a26d7a42e8901c1b124e\u241f5137591319364175431:Public API Key"]);return _templateObject89=function(){return t},t}function _templateObject88(){var t=_taggedTemplateLiteral([":Enable Public API key setting\u241f1c4dbce56d96b8974aac24a02f7ab2ee81415014\u241f1129973800849533636:Enable Public API"]);return _templateObject88=function(){return t},t}function _templateObject87(){var t=_taggedTemplateLiteral([":Set new pin button\u241ff5ec7b2cdf87d41154f4fcbc86e856314409dcb9\u241f5079149426228636902:Set New Pin"]);return _templateObject87=function(){return t},t}function _templateObject86(){var t=_taggedTemplateLiteral([":Require pin for settings setting\u241fd8b47221b5af9e9e4cd5cb434d76fc0c91611409\u241f8888472341408176239:Require pin for settings"]);return _templateObject86=function(){return t},t}function _templateObject85(){var t=_taggedTemplateLiteral([":Allow multi-download mode setting\u241f09d31c803a7252658694e1e3176b97f5655a3fe3\u241f1457782201611151239:Allow multi-download mode"]);return _templateObject85=function(){return t},t}function _templateObject84(){var t=_taggedTemplateLiteral([":Download only mode setting\u241fbda5508e24e0d77debb28bcd9194d8fefb1cfb92\u241f2765258699599899343:Download only mode"]);return _templateObject84=function(){return t},t}function _templateObject83(){var t=_taggedTemplateLiteral([":Allow quality seelct setting\u241fc33bd5392b39dbed36b8e5a1145163a15d45835f\u241f2252491142626131446:Allow quality select"]);return _templateObject83=function(){return t},t}function _templateObject82(){var t=_taggedTemplateLiteral([":Downloads manager enabled setting\u241fa5a1be0a5df07de9eec57f5d2a86ed0204b2e75a\u241f316726944811110918:Downloads manager enabled"]);return _templateObject82=function(){return t},t}function _templateObject81(){var t=_taggedTemplateLiteral([":File manager enabled setting\u241f78d3531417c0d4ba4c90f0d4ae741edc261ec8df\u241f488432415925701010:File manager enabled"]);return _templateObject81=function(){return t},t}function _templateObject80(){var t=_taggedTemplateLiteral([":Top title input placeholder\u241f61f8fd90b5f8cb20c70371feb2ee5e1fac5a9095\u241f1974727764328838461:Top title"]);return _templateObject80=function(){return t},t}function _templateObject79(){var t=_taggedTemplateLiteral([":Safe download override setting\u241fd01715b75228878a773ae6d059acc639d4898a03\u241f8028244888189462244:Safe download override"]);return _templateObject79=function(){return t},t}function _templateObject78(){var t=_taggedTemplateLiteral([":Use youtubedl archive setting\u241f78e49b7339b4fa7184dd21bcaae107ce9b7076f6\u241f7083950546207237945:Use youtube-dl archive"]);return _templateObject78=function(){return t},t}function _templateObject77(){var t=_taggedTemplateLiteral([":Custom args setting input hint\u241f6b995e7130b4d667eaab6c5f61b362ace486d26d\u241f5003828392179181130:Global custom args for downloads on the home page. Args are delimited using two commas like so: ,,"]);return _templateObject77=function(){return t},t}function _templateObject76(){var t=_taggedTemplateLiteral([":Custom args input placeholder\u241fad2f8ac8b7de7945b80c8e424484da94e597125f\u241f7810908229283352132:Custom args"]);return _templateObject76=function(){return t},t}function _templateObject75(){var t=_taggedTemplateLiteral([":Video path setting input hint\u241f17c92e6d47a213fa95b5aa344b3f258147123f93\u241f2955739827391836971:Path for video downloads. It is relative to YTDL-Material's root folder."]);return _templateObject75=function(){return t},t}function _templateObject74(){var t=_taggedTemplateLiteral([":Video folder path input placeholder\u241f46826331da1949bd6fb74624447057099c9d20cd\u241f3354965786971797948:Video folder path"]);return _templateObject74=function(){return t},t}function _templateObject73(){var t=_taggedTemplateLiteral([":Aduio path setting input hint\u241fc2c89cdf45d46ea64d2ed2f9ac15dfa4d77e26ca\u241f3848357852843054025:Path for audio only downloads. It is relative to YTDL-Material's root folder."]);return _templateObject73=function(){return t},t}function _templateObject72(){var t=_taggedTemplateLiteral([":Audio folder path input placeholder\u241fab2756805742e84ad0cc0468f4be2d8aa9f855a5\u241f3475061775640312711:Audio folder path"]);return _templateObject72=function(){return t},t}function _templateObject71(){var t=_taggedTemplateLiteral([":Language select label\u241ffe46ccaae902ce974e2441abe752399288298619\u241f2826581353496868063:Language"]);return _templateObject71=function(){return t},t}function _templateObject70(){var t=_taggedTemplateLiteral([":Allow theme change setting\u241f7a6bacee4c31cb5c0ac2d24274fb4610d8858602\u241f8325128210832071900:Allow theme change"]);return _templateObject70=function(){return t},t}function _templateObject69(){var t=_taggedTemplateLiteral([":Dark theme label\u241fadb4562d2dbd3584370e44496969d58c511ecb63\u241f3892161059518616136:Dark"]);return _templateObject69=function(){return t},t}function _templateObject68(){var t=_taggedTemplateLiteral([":Default theme label\u241fff7cee38a2259526c519f878e71b964f41db4348\u241f5607669932062416162:Default"]);return _templateObject68=function(){return t},t}function _templateObject67(){var t=_taggedTemplateLiteral([":Theme select label\u241f27a56aad79d8b61269ed303f11664cc78bcc2522\u241f7103588127254721505:Theme"]);return _templateObject67=function(){return t},t}function _templateObject66(){var t=_taggedTemplateLiteral([":youtube-dl archive explanation suffix\u241f29ed79a98fc01e7f9537777598e31dbde3aa7981\u241f6686872891691588730:This enables the ability to permanently delete videos from your subscriptions without unsubscribing, and allows you to record which videos you downloaded in case of data loss."]);return _templateObject66=function(){return t},t}function _templateObject65(){var t=_taggedTemplateLiteral([":youtube-dl archive explanation middle\u241f09006404cccc24b7a8f8d1ce0b39f2761ab841d8\u241f954972440308853962:feature, downloaded videos from your subscriptions get recorded in a text file in the subscriptions archive sub-directory."]);return _templateObject65=function(){return t},t}function _templateObject64(){var t=_taggedTemplateLiteral([":youtube-dl archive explanation prefix link\u241ffa9fe4255231dd1cc6b29d3d254a25cb7c764f0f\u241f6707903974690925048:With youtube-dl's archive"]);return _templateObject64=function(){return t},t}function _templateObject63(){var t=_taggedTemplateLiteral([":Use youtube-dl archive setting\u241f78e49b7339b4fa7184dd21bcaae107ce9b7076f6\u241f7083950546207237945:Use youtube-dl archive"]);return _templateObject63=function(){return t},t}function _templateObject62(){var t=_taggedTemplateLiteral([":Check interval setting input hint\u241f0f56a7449b77630c114615395bbda4cab398efd8\u241f1580663059483543498:Unit is seconds, only include numbers."]);return _templateObject62=function(){return t},t}function _templateObject61(){var t=_taggedTemplateLiteral([":Check interval input setting placeholder\u241f5bef4b25ba680da7fff06b86a91b1fc7e6a926e3\u241f5349606203941321178:Check interval"]);return _templateObject61=function(){return t},t}function _templateObject60(){var t=_taggedTemplateLiteral([":Subscriptions base path setting input hint\u241fbc9892814ee2d119ae94378c905ea440a249b84a\u241f2622759576830659218:Base path for videos from your subscribed channels and playlists. It is relative to YTDL-Material's root folder."]);return _templateObject60=function(){return t},t}function _templateObject59(){var t=_taggedTemplateLiteral([":Subscriptions base path input setting placeholder\u241f4bee2a4bef2d26d37c9b353c278e24e5cd309ce3\u241f6919010605968316948:Subscriptions base path"]);return _templateObject59=function(){return t},t}function _templateObject58(){var t=_taggedTemplateLiteral([":Allow subscriptions setting\u241f4e3120311801c4acd18de7146add2ee4a4417773\u241f5800596718492516574:Allow subscriptions"]);return _templateObject58=function(){return t},t}function _templateObject57(){var t=_taggedTemplateLiteral([":Key file path input placeholder\u241f736551b93461d2de64b118cf4043eee1d1c2cb2c\u241f2320113463068090884:Key file path"]);return _templateObject57=function(){return t},t}function _templateObject56(){var t=_taggedTemplateLiteral([":Cert file path input placeholder\u241f0c1875a79b7ecc792cc1bebca3e063e40b5764f9\u241f2857997144709025078:Cert file path"]);return _templateObject56=function(){return t},t}function _templateObject55(){var t=_taggedTemplateLiteral([":Use encryption setting\u241fcbe16a57be414e84b6a68309d08fad894df797d6\u241f5503616660881623306:Use encryption"]);return _templateObject55=function(){return t},t}function _templateObject54(){var t=_taggedTemplateLiteral([":Users base path hint\u241fa64505c41150663968e277ec9b3ddaa5f4838798\u241f7466856953916038997:Base path for users and their downloaded videos."]);return _templateObject54=function(){return t},t}function _templateObject53(){var t=_taggedTemplateLiteral([":Users base path placeholder\u241f2eb03565fcdce7a7a67abc277a936a32fcf51557\u241f553126943997197705:Users base path"]);return _templateObject53=function(){return t},t}function _templateObject52(){var t=_taggedTemplateLiteral([":Multi user mode setting\u241fd4477669a560750d2064051a510ef4d7679e2f3e\u241f8189972369495207275:Multi-user mode"]);return _templateObject52=function(){return t},t}function _templateObject51(){var t=_taggedTemplateLiteral([":Port setting input hint\u241f22e8f1d0423a3b784fe40fab187b92c06541b577\u241f12816402920404434:The desired port. Default is 17442."]);return _templateObject51=function(){return t},t}function _templateObject50(){var t=_taggedTemplateLiteral([":Port input placeholder\u241fcb2741a46e3560f6bc6dfd99d385e86b08b26d72\u241f6117946241126833991:Port"]);return _templateObject50=function(){return t},t}function _templateObject49(){var t=_taggedTemplateLiteral([":URL setting input hint\u241f54c512cca1923ab72faf1a0bd98d3d172469629a\u241f5463756323010996100:URL this app will be accessed from, without the port."]);return _templateObject49=function(){return t},t}function _templateObject48(){var t=_taggedTemplateLiteral([":URL input placeholder\u241f801b98c6f02fe3b32f6afa3ee854c99ed83474e6\u241f2375260419993138758:URL"]);return _templateObject48=function(){return t},t}function _templateObject47(){var t=_taggedTemplateLiteral([":Settings cancel and close button\u241ffe8fd36dbf5deee1d56564965787a782a66eba44\u241f1370226763724525124:{VAR_SELECT, select, true {Close} false {Cancel} other {otha}}"]);return _templateObject47=function(){return t},t}function _templateObject46(){var t=_taggedTemplateLiteral([":Settings save button\u241f52c9a103b812f258bcddc3d90a6e3f46871d25fe\u241f3768927257183755959:Save"]);return _templateObject46=function(){return t},t}function _templateObject45(){var t=_taggedTemplateLiteral([":Host settings label\u241fbc2e854e111ecf2bd7db170da5e3c2ed08181d88\u241f6201638315245239510:Advanced"]);return _templateObject45=function(){return t},t}function _templateObject44(){var t=_taggedTemplateLiteral([":Extra settings label\u241fd5f69691f9f05711633128b5a3db696783266b58\u241f7419412790104674886:Extra"]);return _templateObject44=function(){return t},t}function _templateObject43(){var t=_taggedTemplateLiteral([":Downloader settings label\u241f0ba25ad86a240576c4f20a2fada4722ebba77b1e\u241f5385813889746830226:Downloader"]);return _templateObject43=function(){return t},t}function _templateObject42(){var t=_taggedTemplateLiteral([":Main settings label\u241f82421c3e46a0453a70c42900eab51d58d79e6599\u241f3815928829326879804:Main"]);return _templateObject42=function(){return t},t}function _templateObject41(){var t=_taggedTemplateLiteral([":Settings title\u241f121cc5391cd2a5115bc2b3160379ee5b36cd7716\u241f4930506384627295710:Settings"]);return _templateObject41=function(){return t},t}function _templateObject40(){var t=_taggedTemplateLiteral([":Clear logs button\u241f8a0bda4c47f10b2423ff183acefbf70d4ab52ea2\u241f440654097944535156:Clear logs"]);return _templateObject40=function(){return t},t}function _templateObject39(){var t=_taggedTemplateLiteral([":Label for lines select in logger view\u241f5009630cdf32ab4f1c78737b9617b8773512c05a\u241f1273958037222279236:Lines:"]);return _templateObject39=function(){return t},t}function _templateObject38(){var t=_taggedTemplateLiteral([":Actions users table header\u241f59a8c38db3091a63ac1cb9590188dc3a972acfb3\u241f4360239040231802726: Actions "]);return _templateObject38=function(){return t},t}function _templateObject37(){var t=_taggedTemplateLiteral([":Role users table header\u241f52c1447c1ec9570a2a3025c7e566557b8d19ed92\u241f2803298218425845065: Role "]);return _templateObject37=function(){return t},t}function _templateObject36(){var t=_taggedTemplateLiteral([":Username users table header\u241f746f64ddd9001ac456327cd9a3d5152203a4b93c\u241f5277049347608663780: User name "]);return _templateObject36=function(){return t},t}function _templateObject35(){var t=_taggedTemplateLiteral([":Edit role\u241fb0d7dd8a1b0349622d6e0c6e643e24a9ea0efa1d\u241f7421160648436431593:Edit Role"]);return _templateObject35=function(){return t},t}function _templateObject34(){var t=_taggedTemplateLiteral([":Add users button\u241f4d92a0395dd66778a931460118626c5794a3fc7a\u241f506553185810307410:Add Users"]);return _templateObject34=function(){return t},t}function _templateObject33(){var t=_taggedTemplateLiteral([":No\u241f3d3ae7deebc5949b0c1c78b9847886a94321d9fd\u241f3542042671420335679:No"]);return _templateObject33=function(){return t},t}function _templateObject32(){var t=_taggedTemplateLiteral([":Yes\u241f4f20f2d5a6882190892e58b85f6ccbedfa737952\u241f2807800733729323332:Yes"]);return _templateObject32=function(){return t},t}function _templateObject31(){var t=_taggedTemplateLiteral([":Manage role dialog title\u241f57c6c05d8ebf4ef1180c2705033c044f655bb2c4\u241f6937165687043532169:Manage role"]);return _templateObject31=function(){return t},t}function _templateObject30(){var t=_taggedTemplateLiteral([":Close\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return _templateObject30=function(){return t},t}function _templateObject29(){var t=_taggedTemplateLiteral([":No\u241f3d3ae7deebc5949b0c1c78b9847886a94321d9fd\u241f3542042671420335679:No"]);return _templateObject29=function(){return t},t}function _templateObject28(){var t=_taggedTemplateLiteral([":Yes\u241f4f20f2d5a6882190892e58b85f6ccbedfa737952\u241f2807800733729323332:Yes"]);return _templateObject28=function(){return t},t}function _templateObject27(){var t=_taggedTemplateLiteral([":Use default\u241f40da072004086c9ec00d125165da91eaade7f541\u241f1641415171855135728:Use default"]);return _templateObject27=function(){return t},t}function _templateObject26(){var t=_taggedTemplateLiteral([":Set new password\u241f6498fa1b8f563988f769654a75411bb8060134b9\u241f4099895221156718403:Set new password"]);return _templateObject26=function(){return t},t}function _templateObject25(){var t=_taggedTemplateLiteral([":New password placeholder\u241fe70e209561583f360b1e9cefd2cbb1fe434b6229\u241f3588415639242079458:New password"]);return _templateObject25=function(){return t},t}function _templateObject24(){var t=_taggedTemplateLiteral([":User UID\u241f29c97c8e76763bb15b6d515648fa5bd1eb0f7510\u241f1937680469704133878:User UID:"]);return _templateObject24=function(){return t},t}function _templateObject23(){var t=_taggedTemplateLiteral([":Manage user dialog title\u241f2bd201aea09e43fbfd3cd15ec0499b6755302329\u241f4975588549700433407:Manage user"]);return _templateObject23=function(){return t},t}function _templateObject22(){var t=_taggedTemplateLiteral([":Close\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return _templateObject22=function(){return t},t}function _templateObject21(){var t=_taggedTemplateLiteral([":Close button\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return _templateObject21=function(){return t},t}function _templateObject20(){var t=_taggedTemplateLiteral([":Register user button\u241fcfc2f436ec2beffb042e7511a73c89c372e86a6c\u241f3301086086650990787:Register"]);return _templateObject20=function(){return t},t}function _templateObject19(){var t=_taggedTemplateLiteral([":Password placeholder\u241fc32ef07f8803a223a83ed17024b38e8d82292407\u241f1431416938026210429:Password"]);return _templateObject19=function(){return t},t}function _templateObject18(){var t=_taggedTemplateLiteral([":User name placeholder\u241f024886ca34a6f309e3e51c2ed849320592c3faaa\u241f5312727456282218392:User name"]);return _templateObject18=function(){return t},t}function _templateObject17(){var t=_taggedTemplateLiteral([":Register user dialog title\u241fb7ff2e2b909c53abe088fe60b9f4b6ac7757247f\u241f1815535846517216306:Register a user"]);return _templateObject17=function(){return t},t}function _templateObject16(){var t=_taggedTemplateLiteral([":Select a version\u241f1372e61c5bd06100844bd43b98b016aabc468f62\u241f5795132952021594188:Select a version:"]);return _templateObject16=function(){return t},t}function _templateObject15(){var t=_taggedTemplateLiteral([":Close update progress dialog\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return _templateObject15=function(){return t},t}function _templateObject14(){var t=_taggedTemplateLiteral([":Update progress dialog title\u241f91ecce65f1d23f9419d1c953cd6b7bc7f91c110e\u241f7113575027620819093:Updater"]);return _templateObject14=function(){return t},t}function _templateObject13(){var t=_taggedTemplateLiteral([":Drag and Drop\u241f98a8a42e5efffe17ab786636ed0139b4c7032d0e\u241f5214302308131956174:Drag and Drop"]);return _templateObject13=function(){return t},t}function _templateObject12(){var t=_taggedTemplateLiteral([":Close\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return _templateObject12=function(){return t},t}function _templateObject11(){var t=_taggedTemplateLiteral([":Cookies upload warning\u241f85e0725c870b28458fd3bbba905397d890f00a69\u241f8128925538914530324:NOTE: Uploading new cookies will overrride your previous cookies. Also note that cookies are instance-wide, not per-user."]);return _templateObject11=function(){return t},t}function _templateObject10(){var t=_taggedTemplateLiteral([":Cookies uploader dialog title\u241febadf946ae90f13ecd0c70f09edbc0f983af8a0f\u241f3873596794856864418:Upload new cookies"]);return _templateObject10=function(){return t},t}function _templateObject9(){var t=_taggedTemplateLiteral([":Arg value placeholder\u241f25d8ad5eba2ec24e68295a27d6a4bb9b49e3dacd\u241f9086775160067017111:Arg value"]);return _templateObject9=function(){return t},t}function _templateObject8(){var t=_taggedTemplateLiteral([":Arg modifier modify button\u241fb2623aee44b70c9a4ba1fce16c8a593b0a4c7974\u241f3251759404563225821:Modify"]);return _templateObject8=function(){return t},t}function _templateObject7(){var t=_taggedTemplateLiteral([":Arg modifier cancel button\u241fd7b35c384aecd25a516200d6921836374613dfe7\u241f2159130950882492111:Cancel"]);return _templateObject7=function(){return t},t}function _templateObject6(){var t=_taggedTemplateLiteral([":Search args by category button\u241f7de2451ed3fb8d8b847979bd3f0c740b970f167b\u241f1014075402717090995:Add arg"]);return _templateObject6=function(){return t},t}function _templateObject5(){var t=_taggedTemplateLiteral([":Use arg value checkbox\u241f9eeb91caef5a50256dd87e1c4b7b3e8216479377\u241f5487374754798278253:Use arg value"]);return _templateObject5=function(){return t},t}function _templateObject4(){var t=_taggedTemplateLiteral([":Search args by category button\u241fc8b0e59eb491f2ac7505f0fbab747062e6b32b23\u241f827176536271704947:Search by category"]);return _templateObject4=function(){return t},t}function _templateObject3(){var t=_taggedTemplateLiteral([":Add arg card title\u241f0b71824ae71972f236039bed43f8d2323e8fd570\u241f7066397187762906016:Add an arg"]);return _templateObject3=function(){return t},t}function _templateObject2(){var t=_taggedTemplateLiteral([":Simulated args title\u241f7fc1946abe2b40f60059c6cd19975d677095fd19\u241f3319938540903314395:Simulated new args"]);return _templateObject2=function(){return t},t}function _templateObject(){var t=_taggedTemplateLiteral([":Modify args title\u241fd9e83ac17026e70ef6e9c0f3240a3b2450367f40\u241f3653857180335075556:Modify youtube-dl args"]);return _templateObject=function(){return t},t}function _taggedTemplateLiteral(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function _defineProperty(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _get(t,e,i){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=_superPropBase(t,e);if(n){var a=Object.getOwnPropertyDescriptor(n,e);return a.get?a.get.call(i):a.value}})(t,e,i||t)}function _superPropBase(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}function _createForOfIteratorHelper(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=_unsupportedIterableToArray(t))){var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a,r=!0,o=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return r=t.done,t},e:function(t){o=!0,a=t},f:function(){try{r||null==n.return||n.return()}finally{if(o)throw a}}}}function _createSuper(t){return function(){var e,i=_getPrototypeOf(t);if(_isNativeReflectConstruct()){var n=_getPrototypeOf(this).constructor;e=Reflect.construct(i,arguments,n)}else e=i.apply(this,arguments);return _possibleConstructorReturn(this,e)}}function _possibleConstructorReturn(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(c){a=!0,r=c}finally{try{n||null==s.return||s.return()}finally{if(a)throw r}}return i}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(t,e):void 0}}function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function _defineProperties(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _createClass(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),t}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"2Yyj":function(t,e,i){var n,a,r;!function(o){if("object"==typeof t.exports){var s=o(0,e);void 0!==s&&(t.exports=s)}else a=[i,e],void 0===(r="function"==typeof(n=o)?n.apply(e,a):n)||(t.exports=r)}((function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=void 0;e.default=["es",[["a.\xa0m.","p.\xa0m."],i,i],i,[["D","L","M","X","J","V","S"],["dom.","lun.","mar.","mi\xe9.","jue.","vie.","s\xe1b."],["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"],["DO","LU","MA","MI","JU","VI","SA"]],i,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sept.","oct.","nov.","dic."],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],i,[["a. C.","d. C."],i,["antes de Cristo","despu\xe9s de Cristo"]],1,[6,0],["d/M/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss (zzzz)"],["{1} {0}",i,"{1}, {0}",i],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{AUD:[i,"$"],BRL:[i,"R$"],CNY:[i,"\xa5"],EGP:[],ESP:["\u20a7"],GBP:[i,"\xa3"],HKD:[i,"$"],ILS:[i,"\u20aa"],INR:[i,"\u20b9"],JPY:[i,"\xa5"],KRW:[i,"\u20a9"],MXN:[i,"$"],NZD:[i,"$"],RON:[i,"L"],THB:["\u0e3f"],TWD:[i,"NT$"],USD:["US$","$"],XAF:[],XCD:[i,"$"],XOF:[]},"ltr",function(t){return 1===t?1:5}]}))},"4fRq":function(t,e){var i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(i){var n=new Uint8Array(16);t.exports=function(){return i(n),n}}else{var a=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),a[e]=t>>>((3&e)<<3)&255;return a}}},"6BPK":function(t,e,i){var n,a;!function(r,o,s){"use strict";"undefined"!=typeof window&&i("PDX0")?void 0===(a="function"==typeof(n=s)?n.call(e,i,e,t):n)||(t.exports=a):t.exports?t.exports=s():o.exports?o.exports=s():o.Fingerprint2=s()}(0,this,(function(){"use strict";var t=function(t,e){var i=[0,0,0,0];return i[3]+=(t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]])[3]+(e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]])[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=t[2]+e[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=t[1]+e[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=t[0]+e[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},e=function(t,e){var i=[0,0,0,0];return i[3]+=(t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]])[3]*(e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]])[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=t[2]*e[3],i[1]+=i[2]>>>16,i[2]&=65535,i[2]+=t[3]*e[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=t[1]*e[3],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=t[2]*e[2],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=t[3]*e[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},i=function(t,e){return 32==(e%=64)?[t[1],t[0]]:e<32?[t[0]<<e|t[1]>>>32-e,t[1]<<e|t[0]>>>32-e]:[t[1]<<(e-=32)|t[0]>>>32-e,t[0]<<e|t[1]>>>32-e]},n=function(t,e){return 0==(e%=64)?t:e<32?[t[0]<<e|t[1]>>>32-e,t[1]<<e]:[t[1]<<e-32,0]},a=function(t,e){return[t[0]^e[0],t[1]^e[1]]},r=function(t){return t=a(t,[0,t[0]>>>1]),t=e(t,[4283543511,3981806797]),t=a(t,[0,t[0]>>>1]),t=e(t,[3301882366,444984403]),a(t,[0,t[0]>>>1])},o=function(o,s){for(var c=(o=o||"").length%16,l=o.length-c,u=[0,s=s||0],d=[0,s],h=[0,0],p=[0,0],f=[2277735313,289559509],m=[1291169091,658871167],g=0;g<l;g+=16)h=[255&o.charCodeAt(g+4)|(255&o.charCodeAt(g+5))<<8|(255&o.charCodeAt(g+6))<<16|(255&o.charCodeAt(g+7))<<24,255&o.charCodeAt(g)|(255&o.charCodeAt(g+1))<<8|(255&o.charCodeAt(g+2))<<16|(255&o.charCodeAt(g+3))<<24],p=[255&o.charCodeAt(g+12)|(255&o.charCodeAt(g+13))<<8|(255&o.charCodeAt(g+14))<<16|(255&o.charCodeAt(g+15))<<24,255&o.charCodeAt(g+8)|(255&o.charCodeAt(g+9))<<8|(255&o.charCodeAt(g+10))<<16|(255&o.charCodeAt(g+11))<<24],h=e(h,f),h=i(h,31),h=e(h,m),u=a(u,h),u=i(u,27),u=t(u,d),u=t(e(u,[0,5]),[0,1390208809]),p=e(p,m),p=i(p,33),p=e(p,f),d=a(d,p),d=i(d,31),d=t(d,u),d=t(e(d,[0,5]),[0,944331445]);switch(h=[0,0],p=[0,0],c){case 15:p=a(p,n([0,o.charCodeAt(g+14)],48));case 14:p=a(p,n([0,o.charCodeAt(g+13)],40));case 13:p=a(p,n([0,o.charCodeAt(g+12)],32));case 12:p=a(p,n([0,o.charCodeAt(g+11)],24));case 11:p=a(p,n([0,o.charCodeAt(g+10)],16));case 10:p=a(p,n([0,o.charCodeAt(g+9)],8));case 9:p=a(p,[0,o.charCodeAt(g+8)]),p=e(p,m),p=i(p,33),p=e(p,f),d=a(d,p);case 8:h=a(h,n([0,o.charCodeAt(g+7)],56));case 7:h=a(h,n([0,o.charCodeAt(g+6)],48));case 6:h=a(h,n([0,o.charCodeAt(g+5)],40));case 5:h=a(h,n([0,o.charCodeAt(g+4)],32));case 4:h=a(h,n([0,o.charCodeAt(g+3)],24));case 3:h=a(h,n([0,o.charCodeAt(g+2)],16));case 2:h=a(h,n([0,o.charCodeAt(g+1)],8));case 1:h=a(h,[0,o.charCodeAt(g)]),h=e(h,f),h=i(h,31),h=e(h,m),u=a(u,h)}return u=a(u,[0,o.length]),d=a(d,[0,o.length]),u=t(u,d),d=t(d,u),u=r(u),d=r(d),u=t(u,d),d=t(d,u),("00000000"+(u[0]>>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)+("00000000"+(d[0]>>>0).toString(16)).slice(-8)+("00000000"+(d[1]>>>0).toString(16)).slice(-8)},s={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},c=function(t,e){if(Array.prototype.forEach&&t.forEach===Array.prototype.forEach)t.forEach(e);else if(t.length===+t.length)for(var i=0,n=t.length;i<n;i++)e(t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e(t[a],a,t)},l=function(t,e){var i=[];return null==t?i:Array.prototype.map&&t.map===Array.prototype.map?t.map(e):(c(t,(function(t,n,a){i.push(e(t,n,a))})),i)},u=function(t){if(null==navigator.plugins)return t.NOT_AVAILABLE;for(var e=[],i=0,n=navigator.plugins.length;i<n;i++)navigator.plugins[i]&&e.push(navigator.plugins[i]);return d(t)&&(e=e.sort((function(t,e){return t.name>e.name?1:t.name<e.name?-1:0}))),l(e,(function(t){var e=l(t,(function(t){return[t.type,t.suffixes]}));return[t.name,t.description,e]}))},d=function(t){for(var e=!1,i=0,n=t.plugins.sortPluginsFor.length;i<n;i++)if(navigator.userAgent.match(t.plugins.sortPluginsFor[i])){e=!0;break}return e},h=function(){var t=document.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))},p=function(){if(!h())return!1;var t=f();return!!window.WebGLRenderingContext&&!!t},f=function(){var t=document.createElement("canvas"),e=null;try{e=t.getContext("webgl")||t.getContext("experimental-webgl")}catch(i){}return e||(e=null),e},m=[{key:"userAgent",getData:function(t){t(navigator.userAgent)}},{key:"webdriver",getData:function(t,e){t(null==navigator.webdriver?e.NOT_AVAILABLE:navigator.webdriver)}},{key:"language",getData:function(t,e){t(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||e.NOT_AVAILABLE)}},{key:"colorDepth",getData:function(t,e){t(window.screen.colorDepth||e.NOT_AVAILABLE)}},{key:"deviceMemory",getData:function(t,e){t(navigator.deviceMemory||e.NOT_AVAILABLE)}},{key:"pixelRatio",getData:function(t,e){t(window.devicePixelRatio||e.NOT_AVAILABLE)}},{key:"hardwareConcurrency",getData:function(t,e){t(function(t){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:t.NOT_AVAILABLE}(e))}},{key:"screenResolution",getData:function(t,e){t(function(t){var e=[window.screen.width,window.screen.height];return t.screen.detectScreenOrientation&&e.sort().reverse(),e}(e))}},{key:"availableScreenResolution",getData:function(t,e){t(function(t){if(window.screen.availWidth&&window.screen.availHeight){var e=[window.screen.availHeight,window.screen.availWidth];return t.screen.detectScreenOrientation&&e.sort().reverse(),e}return t.NOT_AVAILABLE}(e))}},{key:"timezoneOffset",getData:function(t){t((new Date).getTimezoneOffset())}},{key:"timezone",getData:function(t,e){window.Intl&&window.Intl.DateTimeFormat?t((new window.Intl.DateTimeFormat).resolvedOptions().timeZone):t(e.NOT_AVAILABLE)}},{key:"sessionStorage",getData:function(t,e){t(function(t){try{return!!window.sessionStorage}catch(e){return t.ERROR}}(e))}},{key:"localStorage",getData:function(t,e){t(function(t){try{return!!window.localStorage}catch(e){return t.ERROR}}(e))}},{key:"indexedDb",getData:function(t,e){t(function(t){try{return!!window.indexedDB}catch(e){return t.ERROR}}(e))}},{key:"addBehavior",getData:function(t){t(!(!document.body||!document.body.addBehavior))}},{key:"openDatabase",getData:function(t){t(!!window.openDatabase)}},{key:"cpuClass",getData:function(t,e){t(function(t){return navigator.cpuClass||t.NOT_AVAILABLE}(e))}},{key:"platform",getData:function(t,e){t(function(t){return navigator.platform?navigator.platform:t.NOT_AVAILABLE}(e))}},{key:"doNotTrack",getData:function(t,e){t(function(t){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:t.NOT_AVAILABLE}(e))}},{key:"plugins",getData:function(t,e){"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&/Trident/.test(navigator.userAgent)?t(e.plugins.excludeIE?e.EXCLUDED:function(t){var e=[];return Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window?e=l(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],(function(e){try{return new window.ActiveXObject(e),e}catch(i){return t.ERROR}})):e.push(t.NOT_AVAILABLE),navigator.plugins&&(e=e.concat(u(t))),e}(e)):t(u(e))}},{key:"canvas",getData:function(t,e){h()?t(function(t){var e=[],i=document.createElement("canvas");i.width=2e3,i.height=200,i.style.display="inline";var n=i.getContext("2d");return n.rect(0,0,10,10),n.rect(2,2,6,6),e.push("canvas winding:"+(!1===n.isPointInPath(5,5,"evenodd")?"yes":"no")),n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(125,1,62,20),n.fillStyle="#069",n.font=t.dontUseFakeFontInCanvas?"11pt Arial":"11pt no-real-font-123",n.fillText("Cwm fjordbank glyphs vext quiz, \ud83d\ude03",2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText("Cwm fjordbank glyphs vext quiz, \ud83d\ude03",4,45),n.globalCompositeOperation="multiply",n.fillStyle="rgb(255,0,255)",n.beginPath(),n.arc(50,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(0,255,255)",n.beginPath(),n.arc(100,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,255,0)",n.beginPath(),n.arc(75,100,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,0,255)",n.arc(75,75,75,0,2*Math.PI,!0),n.arc(75,75,25,0,2*Math.PI,!0),n.fill("evenodd"),i.toDataURL&&e.push("canvas fp:"+i.toDataURL()),e}(e)):t(e.NOT_AVAILABLE)}},{key:"webgl",getData:function(t,e){p()?t(function(){var t,e=function(e){return t.clearColor(0,0,0,1),t.enable(t.DEPTH_TEST),t.depthFunc(t.LEQUAL),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),"["+e[0]+", "+e[1]+"]"};if(!(t=f()))return null;var i=[],n=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,n);var a=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);t.bufferData(t.ARRAY_BUFFER,a,t.STATIC_DRAW),n.itemSize=3,n.numItems=3;var r=t.createProgram(),o=t.createShader(t.VERTEX_SHADER);t.shaderSource(o,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),t.compileShader(o);var s=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(s,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),t.compileShader(s),t.attachShader(r,o),t.attachShader(r,s),t.linkProgram(r),t.useProgram(r),r.vertexPosAttrib=t.getAttribLocation(r,"attrVertex"),r.offsetUniform=t.getUniformLocation(r,"uniformOffset"),t.enableVertexAttribArray(r.vertexPosArray),t.vertexAttribPointer(r.vertexPosAttrib,n.itemSize,t.FLOAT,!1,0,0),t.uniform2f(r.offsetUniform,1,1),t.drawArrays(t.TRIANGLE_STRIP,0,n.numItems);try{i.push(t.canvas.toDataURL())}catch(u){}i.push("extensions:"+(t.getSupportedExtensions()||[]).join(";")),i.push("webgl aliased line width range:"+e(t.getParameter(t.ALIASED_LINE_WIDTH_RANGE))),i.push("webgl aliased point size range:"+e(t.getParameter(t.ALIASED_POINT_SIZE_RANGE))),i.push("webgl alpha bits:"+t.getParameter(t.ALPHA_BITS)),i.push("webgl antialiasing:"+(t.getContextAttributes().antialias?"yes":"no")),i.push("webgl blue bits:"+t.getParameter(t.BLUE_BITS)),i.push("webgl depth bits:"+t.getParameter(t.DEPTH_BITS)),i.push("webgl green bits:"+t.getParameter(t.GREEN_BITS)),i.push("webgl max anisotropy:"+function(t){var e=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic");if(e){var i=t.getParameter(e.MAX_TEXTURE_MAX_ANISOTROPY_EXT);return 0===i&&(i=2),i}return null}(t)),i.push("webgl max combined texture image units:"+t.getParameter(t.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),i.push("webgl max cube map texture size:"+t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE)),i.push("webgl max fragment uniform vectors:"+t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS)),i.push("webgl max render buffer size:"+t.getParameter(t.MAX_RENDERBUFFER_SIZE)),i.push("webgl max texture image units:"+t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS)),i.push("webgl max texture size:"+t.getParameter(t.MAX_TEXTURE_SIZE)),i.push("webgl max varying vectors:"+t.getParameter(t.MAX_VARYING_VECTORS)),i.push("webgl max vertex attribs:"+t.getParameter(t.MAX_VERTEX_ATTRIBS)),i.push("webgl max vertex texture image units:"+t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),i.push("webgl max vertex uniform vectors:"+t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS)),i.push("webgl max viewport dims:"+e(t.getParameter(t.MAX_VIEWPORT_DIMS))),i.push("webgl red bits:"+t.getParameter(t.RED_BITS)),i.push("webgl renderer:"+t.getParameter(t.RENDERER)),i.push("webgl shading language version:"+t.getParameter(t.SHADING_LANGUAGE_VERSION)),i.push("webgl stencil bits:"+t.getParameter(t.STENCIL_BITS)),i.push("webgl vendor:"+t.getParameter(t.VENDOR)),i.push("webgl version:"+t.getParameter(t.VERSION));try{var l=t.getExtension("WEBGL_debug_renderer_info");l&&(i.push("webgl unmasked vendor:"+t.getParameter(l.UNMASKED_VENDOR_WEBGL)),i.push("webgl unmasked renderer:"+t.getParameter(l.UNMASKED_RENDERER_WEBGL)))}catch(u){}return t.getShaderPrecisionFormat?(c(["FLOAT","INT"],(function(e){c(["VERTEX","FRAGMENT"],(function(n){c(["HIGH","MEDIUM","LOW"],(function(a){c(["precision","rangeMin","rangeMax"],(function(r){var o=t.getShaderPrecisionFormat(t[n+"_SHADER"],t[a+"_"+e])[r];"precision"!==r&&(r="precision "+r);var s=["webgl ",n.toLowerCase()," shader ",a.toLowerCase()," ",e.toLowerCase()," ",r,":",o].join("");i.push(s)}))}))}))})),i):i}()):t(e.NOT_AVAILABLE)}},{key:"webglVendorAndRenderer",getData:function(t){p()?t(function(){try{var t=f(),e=t.getExtension("WEBGL_debug_renderer_info");return t.getParameter(e.UNMASKED_VENDOR_WEBGL)+"~"+t.getParameter(e.UNMASKED_RENDERER_WEBGL)}catch(i){return null}}()):t()}},{key:"adBlock",getData:function(t){t(function(){var t=document.createElement("div");t.innerHTML="&nbsp;",t.className="adsbox";var e=!1;try{document.body.appendChild(t),e=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(t)}catch(i){e=!1}return e}())}},{key:"hasLiedLanguages",getData:function(t){t(function(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(t){return!0}return!1}())}},{key:"hasLiedResolution",getData:function(t){t(window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight)}},{key:"hasLiedOs",getData:function(t){t(function(){var t,e=navigator.userAgent.toLowerCase(),i=navigator.oscpu,n=navigator.platform.toLowerCase();if(t=e.indexOf("windows phone")>=0?"Windows Phone":e.indexOf("win")>=0?"Windows":e.indexOf("android")>=0?"Android":e.indexOf("linux")>=0||e.indexOf("cros")>=0?"Linux":e.indexOf("iphone")>=0||e.indexOf("ipad")>=0?"iOS":e.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==t&&"Android"!==t&&"iOS"!==t&&"Other"!==t)return!0;if(void 0!==i){if((i=i.toLowerCase()).indexOf("win")>=0&&"Windows"!==t&&"Windows Phone"!==t)return!0;if(i.indexOf("linux")>=0&&"Linux"!==t&&"Android"!==t)return!0;if(i.indexOf("mac")>=0&&"Mac"!==t&&"iOS"!==t)return!0;if((-1===i.indexOf("win")&&-1===i.indexOf("linux")&&-1===i.indexOf("mac"))!=("Other"===t))return!0}return n.indexOf("win")>=0&&"Windows"!==t&&"Windows Phone"!==t||(n.indexOf("linux")>=0||n.indexOf("android")>=0||n.indexOf("pike")>=0)&&"Linux"!==t&&"Android"!==t||(n.indexOf("mac")>=0||n.indexOf("ipad")>=0||n.indexOf("ipod")>=0||n.indexOf("iphone")>=0)&&"Mac"!==t&&"iOS"!==t||(n.indexOf("win")<0&&n.indexOf("linux")<0&&n.indexOf("mac")<0&&n.indexOf("iphone")<0&&n.indexOf("ipad")<0)!=("Other"===t)||void 0===navigator.plugins&&"Windows"!==t&&"Windows Phone"!==t}())}},{key:"hasLiedBrowser",getData:function(t){t(function(){var t,e=navigator.userAgent.toLowerCase(),i=navigator.productSub;if(("Chrome"==(t=e.indexOf("firefox")>=0?"Firefox":e.indexOf("opera")>=0||e.indexOf("opr")>=0?"Opera":e.indexOf("chrome")>=0?"Chrome":e.indexOf("safari")>=0?"Safari":e.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===t||"Opera"===t)&&"20030107"!==i)return!0;var n,a=eval.toString().length;if(37===a&&"Safari"!==t&&"Firefox"!==t&&"Other"!==t)return!0;if(39===a&&"Internet Explorer"!==t&&"Other"!==t)return!0;if(33===a&&"Chrome"!==t&&"Opera"!==t&&"Other"!==t)return!0;try{throw"a"}catch(r){try{r.toSource(),n=!0}catch(o){n=!1}}return n&&"Firefox"!==t&&"Other"!==t}())}},{key:"touchSupport",getData:function(t){t(function(){var t,e=0;void 0!==navigator.maxTouchPoints?e=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(e=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(i){t=!1}return[e,t,"ontouchstart"in window]}())}},{key:"fonts",getData:function(t,e){var i=["monospace","sans-serif","serif"],n=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];e.fonts.extendedJsFonts&&(n=n.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),n=(n=n.concat(e.fonts.userDefinedFonts)).filter((function(t,e){return n.indexOf(t)===e}));var a=document.getElementsByTagName("body")[0],r=document.createElement("div"),o=document.createElement("div"),s={},c={},l=function(){var t=document.createElement("span");return t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="72px",t.style.fontStyle="normal",t.style.fontWeight="normal",t.style.letterSpacing="normal",t.style.lineBreak="auto",t.style.lineHeight="normal",t.style.textTransform="none",t.style.textAlign="left",t.style.textDecoration="none",t.style.textShadow="none",t.style.whiteSpace="normal",t.style.wordBreak="normal",t.style.wordSpacing="normal",t.innerHTML="mmmmmmmmmmlli",t},u=function(t,e){var i=l();return i.style.fontFamily="'"+t+"',"+e,i},d=function(t){for(var e=!1,n=0;n<i.length;n++)if(e=t[n].offsetWidth!==s[i[n]]||t[n].offsetHeight!==c[i[n]])return e;return e},h=function(){for(var t=[],e=0,n=i.length;e<n;e++){var a=l();a.style.fontFamily=i[e],r.appendChild(a),t.push(a)}return t}();a.appendChild(r);for(var p=0,f=i.length;p<f;p++)s[i[p]]=h[p].offsetWidth,c[i[p]]=h[p].offsetHeight;var m=function(){for(var t={},e=0,a=n.length;e<a;e++){for(var r=[],s=0,c=i.length;s<c;s++){var l=u(n[e],i[s]);o.appendChild(l),r.push(l)}t[n[e]]=r}return t}();a.appendChild(o);for(var g=[],v=0,b=n.length;v<b;v++)d(m[n[v]])&&g.push(n[v]);a.removeChild(o),a.removeChild(r),t(g)},pauseBefore:!0},{key:"fontsFlash",getData:function(t,e){return void 0!==window.swfobject?window.swfobject.hasFlashPlayerVersion("9.0.0")?e.fonts.swfPath?void function(t,e){window.___fp_swf_loaded=function(e){t(e)};var i,n=e.fonts.swfContainerId;(i=document.createElement("div")).setAttribute("id",(void 0).fonts.swfContainerId),document.body.appendChild(i),window.swfobject.embedSWF(e.fonts.swfPath,n,"1","1","9.0.0",!1,{onReady:"___fp_swf_loaded"},{allowScriptAccess:"always",menu:"false"},{})}((function(e){t(e)}),e):t("missing options.fonts.swfPath"):t("flash not installed"):t("swf object not loaded")},pauseBefore:!0},{key:"audio",getData:function(t,e){var i=e.audio;if(i.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return t(e.EXCLUDED);var n=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(null==n)return t(e.NOT_AVAILABLE);var a=new n(1,44100,44100),r=a.createOscillator();r.type="triangle",r.frequency.setValueAtTime(1e4,a.currentTime);var o=a.createDynamicsCompressor();c([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],(function(t){void 0!==o[t[0]]&&"function"==typeof o[t[0]].setValueAtTime&&o[t[0]].setValueAtTime(t[1],a.currentTime)})),r.connect(o),o.connect(a.destination),r.start(0),a.startRendering();var s=setTimeout((function(){return console.warn('Audio fingerprint timed out. Please report bug at https://github.com/Valve/fingerprintjs2 with your user agent: "'+navigator.userAgent+'".'),a.oncomplete=function(){},a=null,t("audioTimeout")}),i.timeout);a.oncomplete=function(e){var i;try{clearTimeout(s),i=e.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(t,e){return t+Math.abs(e)}),0).toString(),r.disconnect(),o.disconnect()}catch(n){return void t(n)}t(i)}}},{key:"enumerateDevices",getData:function(t,e){if(!navigator.mediaDevices||!navigator.mediaDevices.enumerateDevices)return t(e.NOT_AVAILABLE);navigator.mediaDevices.enumerateDevices().then((function(e){t(e.map((function(t){return"id="+t.deviceId+";gid="+t.groupId+";"+t.kind+";"+t.label})))})).catch((function(e){t(e)}))}}],g=function(t){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/Valve/fingerprintjs2#upgrade-guide-from-182-to-200")};return g.get=function(t,e){e?t||(t={}):(e=t,t={}),function(t,e){if(null==e)return t;var i,n;for(n in e)null==(i=e[n])||Object.prototype.hasOwnProperty.call(t,n)||(t[n]=i)}(t,s),t.components=t.extraComponents.concat(m);var i={data:[],addPreprocessedComponent:function(e,n){"function"==typeof t.preprocessor&&(n=t.preprocessor(e,n)),i.data.push({key:e,value:n})}},n=-1;!function a(r){if((n+=1)>=t.components.length)e(i.data);else{var o=t.components[n];if(t.excludes[o.key])a(!1);else{if(!r&&o.pauseBefore)return n-=1,void setTimeout((function(){a(!0)}),1);try{o.getData((function(t){i.addPreprocessedComponent(o.key,t),a(!1)}),t)}catch(s){i.addPreprocessedComponent(o.key,String(s)),a(!1)}}}}(!1)},g.getPromise=function(t){return new Promise((function(e,i){g.get(t,e)}))},g.getV18=function(t,e){return null==e&&(e=t,t={}),g.get(t,(function(i){for(var n=[],a=0;a<i.length;a++){var r=i[a];if(r.value===(t.NOT_AVAILABLE||"not available"))n.push({key:r.key,value:"unknown"});else if("plugins"===r.key)n.push({key:"plugins",value:l(r.value,(function(t){var e=l(t[2],(function(t){return t.join?t.join("~"):t})).join(",");return[t[0],t[1],e].join("::")}))});else if(-1!==["canvas","webgl"].indexOf(r.key))n.push({key:r.key,value:r.value.join("~")});else if(-1!==["sessionStorage","localStorage","indexedDb","addBehavior","openDatabase"].indexOf(r.key)){if(!r.value)continue;n.push({key:r.key,value:1})}else n.push(r.value?r.value.join?{key:r.key,value:r.value.join(";")}:r:{key:r.key,value:r.value})}var s=o(l(n,(function(t){return t.value})).join("~~~"),31);e(s,n)}))},g.x64hash128=o,g.VERSION="2.1.0",g}))},EcEN:function(t,e,i){var n=i("xDdU"),a=i("xk4V"),r=a;r.v1=n,r.v4=a,t.exports=r},I2ZF:function(t,e){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},Iab2:function(t,e,i){var n,a;void 0===(a="function"==typeof(n=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){r(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,r=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(t,r,o){var s=a.URL||a.webkitURL,c=document.createElement("a");c.download=r=r||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,r,o):n(c,c.target="_blank")):(c.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(c.href)}),4e4),setTimeout((function(){n(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,a,r){if(a=a||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,r),a);else if(i(t))e(t,a,r);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout((function(){n(o)}))}}:function(t,i,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var o="application/octet-stream"===t.type,s=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&s)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},l.readAsDataURL(t)}else{var u=a.URL||a.webkitURL,d=u.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout((function(){u.revokeObjectURL(d)}),4e4)}});a.saveAs=r.saveAs=r,t.exports=r})?n.apply(e,[]):n)||(t.exports=a)},PDX0:function(t,e){(function(e){t.exports=e}).call(this,{})},XypG:function(t,e){},ZAI4:function(t,e,i){"use strict";i.r(e),i.d(e,"isVisible",(function(){return kB})),i.d(e,"AppModule",(function(){return CB}));var n=i("jhN1"),a=i("fXoL"),r=function t(){_classCallCheck(this,t)};function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:t,options:e}}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function u(t){return{type:6,styles:t,offset:null}}function d(t,e,i){return{type:0,name:t,styles:e,options:i}}function h(t){return{type:5,steps:t}}function p(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:i}}function f(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function m(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:t,animation:e,options:i}}function g(t){Promise.resolve(null).then(t)}var v=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+i}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;g((function(){return t._onFinish()}))}},{key:"_onStart",value:function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(t){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}}]),t}(),b=function(){function t(e){var i=this;_classCallCheck(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,a=0,r=0,o=this.players.length;0==o?g((function(){return i._onFinish()})):this.players.forEach((function(t){t.onDone((function(){++n==o&&i._onFinish()})),t.onDestroy((function(){++a==o&&i._onDestroy()})),t.onStart((function(){++r==o&&i._onStart()}))})),this.totalTime=this.players.reduce((function(t,e){return Math.max(t,e.totalTime)}),0)}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach((function(t){return t.init()}))}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(t){return t.play()}))}},{key:"pause",value:function(){this.players.forEach((function(t){return t.pause()}))}},{key:"restart",value:function(){this.players.forEach((function(t){return t.restart()}))}},{key:"finish",value:function(){this._onFinish(),this.players.forEach((function(t){return t.finish()}))}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(t){return t.destroy()})),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach((function(t){return t.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach((function(t){var i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)}))}},{key:"getPosition",value:function(){var t=0;return this.players.forEach((function(e){var i=e.getPosition();t=Math.min(i,t)})),t}},{key:"beforeDestroy",value:function(){this.players.forEach((function(t){t.beforeDestroy&&t.beforeDestroy()}))}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}}]),t}();function _(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function y(t){switch(t.length){case 0:return new v;case 1:return t[0];default:return new b(t)}}function k(t,e,i,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],c=-1,l=null;if(n.forEach((function(t){var i=t.offset,n=i==c,u=n&&l||{};Object.keys(t).forEach((function(i){var n=i,s=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,o),s){case"!":s=a[i];break;case"*":s=r[i];break;default:s=e.normalizeStyleValue(i,n,s,o)}u[n]=s})),n||s.push(u),l=u,c=i})),o.length){var u="\n - ";throw new Error("Unable to animate due to the following errors:".concat(u).concat(o.join(u)))}return s}function w(t,e,i,n){switch(e){case"start":t.onStart((function(){return n(i&&C(i,"start",t))}));break;case"done":t.onDone((function(){return n(i&&C(i,"done",t))}));break;case"destroy":t.onDestroy((function(){return n(i&&C(i,"destroy",t))}))}}function C(t,e,i){var n=i.totalTime,a=x(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),r=t._data;return null!=r&&(a._data=r),a}function x(t,e,i,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:i,toState:n,phaseName:a,totalTime:r,disabled:!!o}}function S(t,e,i){var n;return t instanceof Map?(n=t.get(e))||t.set(e,n=i):(n=t[e])||(n=t[e]=i),n}function I(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var O=function(t,e){return!1},D=function(t,e){return!1},E=function(t,e,i){return[]},A=_();(A||"undefined"!=typeof Element)&&(O=function(t,e){return t.contains(e)},D=function(){if(A||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,i){return e.apply(t,[i])}:D}(),E=function(t,e,i){var n=[];if(i)n.push.apply(n,_toConsumableArray(t.querySelectorAll(e)));else{var a=t.querySelector(e);a&&n.push(a)}return n});var T=null,P=!1;function R(t){T||(T=("undefined"!=typeof document?document.body:null)||{},P=!!T.style&&"WebkitAppearance"in T.style);var e=!0;return T.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(!(e=t in T.style)&&P)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in T.style),e}var M=D,L=O,j=E;function F(t){var e={};return Object.keys(t).forEach((function(i){var n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]})),e}var N,z=((N=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return R(t)}},{key:"matchesElement",value:function(t,e){return M(t,e)}},{key:"containsElement",value:function(t,e){return L(t,e)}},{key:"query",value:function(t,e,i){return j(t,e,i)}},{key:"computeStyle",value:function(t,e,i){return i||""}},{key:"animate",value:function(t,e,i,n,a){return arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&arguments[6],new v(i,n)}}]),t}()).\u0275fac=function(t){return new(t||N)},N.\u0275prov=a.zc({token:N,factory:N.\u0275fac}),N),B=function(){var t=function t(){_classCallCheck(this,t)};return t.NOOP=new z,t}();function J(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:V(parseFloat(e[1]),e[2])}function V(t,e){switch(e){case"s":return 1e3*t;default:return t}}function H(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){var n,a=0,r="";if("string"==typeof t){var o=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return e.push('The provided timing value "'.concat(t,'" is invalid.')),{duration:0,delay:0,easing:""};n=V(parseFloat(o[1]),o[2]);var s=o[3];null!=s&&(a=V(parseFloat(s),o[4]));var c=o[5];c&&(r=c)}else n=t;if(!i){var l=!1,u=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),l=!0),a<0&&(e.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&e.splice(u,0,'The provided timing value "'.concat(t,'" is invalid.'))}return{duration:n,delay:a,easing:r}}(t,e,i)}function U(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach((function(i){e[i]=t[i]})),e}function G(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var n in t)i[n]=t[n];else U(t,i);return i}function W(t,e,i){return i?e+":"+i+";":""}function q(t){for(var e="",i=0;i<t.style.length;i++){var n=t.style.item(i);e+=W(0,n,t.style.getPropertyValue(n))}for(var a in t.style)t.style.hasOwnProperty(a)&&!a.startsWith("_")&&(e+=W(0,a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[a]));t.setAttribute("style",e)}function $(t,e,i){t.style&&(Object.keys(e).forEach((function(n){var a=it(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[a]),t.style[a]=e[n]})),_()&&q(t))}function K(t,e){t.style&&(Object.keys(e).forEach((function(e){var i=it(e);t.style[i]=""})),_()&&q(t))}function X(t){return Array.isArray(t)?1==t.length?t[0]:l(t):t}var Y=new RegExp("{{\\s*(.+?)\\s*}}","g");function Z(t){var e=[];if("string"==typeof t){for(var i;i=Y.exec(t);)e.push(i[1]);Y.lastIndex=0}return e}function Q(t,e,i){var n=t.toString(),a=n.replace(Y,(function(t,n){var a=e[n];return e.hasOwnProperty(n)||(i.push("Please provide a value for the animation param ".concat(n)),a=""),a.toString()}));return a==n?t:a}function tt(t){for(var e=[],i=t.next();!i.done;)e.push(i.value),i=t.next();return e}var et=/-+([a-z0-9])/g;function it(t){return t.replace(et,(function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return e[1].toUpperCase()}))}function nt(t,e){return 0===t||0===e}function at(t,e,i){var n=Object.keys(i);if(n.length&&e.length){var a=e[0],r=[];if(n.forEach((function(t){a.hasOwnProperty(t)||r.push(t),a[t]=i[t]})),r.length)for(var o=function(){var i=e[s];r.forEach((function(e){i[e]=ot(t,e)}))},s=1;s<e.length;s++)o()}return e}function rt(t,e,i){switch(e.type){case 7:return t.visitTrigger(e,i);case 0:return t.visitState(e,i);case 1:return t.visitTransition(e,i);case 2:return t.visitSequence(e,i);case 3:return t.visitGroup(e,i);case 4:return t.visitAnimate(e,i);case 5:return t.visitKeyframes(e,i);case 6:return t.visitStyle(e,i);case 8:return t.visitReference(e,i);case 9:return t.visitAnimateChild(e,i);case 10:return t.visitAnimateRef(e,i);case 11:return t.visitQuery(e,i);case 12:return t.visitStagger(e,i);default:throw new Error("Unable to resolve animation metadata node #".concat(e.type))}}function ot(t,e){return window.getComputedStyle(t)[e]}var st=new Set(["true","1"]),ct=new Set(["false","0"]);function lt(t,e){var i=st.has(t)||ct.has(t),n=st.has(e)||ct.has(e);return function(a,r){var o="*"==t||t==a,s="*"==e||e==r;return!o&&i&&"boolean"==typeof a&&(o=a?st.has(t):ct.has(t)),!s&&n&&"boolean"==typeof r&&(s=r?st.has(e):ct.has(e)),o&&s}}var ut=new RegExp("s*:selfs*,?","g");function dt(t,e,i){return new ht(t).build(e,i)}var ht=function(){function t(e){_classCallCheck(this,t),this._driver=e}return _createClass(t,[{key:"build",value:function(t,e){var i=new pt(e);return this._resetContextStyleTimingState(i),rt(this,X(t),i)}},{key:"_resetContextStyleTimingState",value:function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}},{key:"visitTrigger",value:function(t,e){var i=this,n=e.queryCount=0,a=e.depCount=0,r=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach((function(t){if(i._resetContextStyleTimingState(e),0==t.type){var s=t,c=s.name;c.toString().split(/\s*,\s*/).forEach((function(t){s.name=t,r.push(i.visitState(s,e))})),s.name=c}else if(1==t.type){var l=i.visitTransition(t,e);n+=l.queryCount,a+=l.depCount,o.push(l)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")})),{type:7,name:t.name,states:r,transitions:o,queryCount:n,depCount:a,options:null}}},{key:"visitState",value:function(t,e){var i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){var a=new Set,r=n||{};if(i.styles.forEach((function(t){if(ft(t)){var e=t;Object.keys(e).forEach((function(t){Z(e[t]).forEach((function(t){r.hasOwnProperty(t)||a.add(t)}))}))}})),a.size){var o=tt(a.values());e.errors.push('state("'.concat(t.name,'", ...) must define default values for all the following style substitutions: ').concat(o.join(", ")))}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}},{key:"visitTransition",value:function(t,e){e.queryCount=0,e.depCount=0;var i,n,a,r=rt(this,X(t.animation),e);return{type:1,matchers:(i=t.expr,n=e.errors,a=[],"string"==typeof i?i.split(/\s*,\s*/).forEach((function(t){return function(t,e,i){if(":"==t[0]){var n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e)<parseFloat(t)};default:return e.push('The transition alias value "'.concat(t,'" is not supported')),"* => *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}var a=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==a||a.length<4)return i.push('The provided transition expression "'.concat(t,'" is not supported')),e;var r=a[1],o=a[2],s=a[3];e.push(lt(r,s)),"<"!=o[0]||"*"==r&&"*"==s||e.push(lt(s,r))}(t,a,n)})):a.push(i),a),animation:r,queryCount:e.queryCount,depCount:e.depCount,options:mt(t.options)}}},{key:"visitSequence",value:function(t,e){var i=this;return{type:2,steps:t.steps.map((function(t){return rt(i,t,e)})),options:mt(t.options)}}},{key:"visitGroup",value:function(t,e){var i=this,n=e.currentTime,a=0,r=t.steps.map((function(t){e.currentTime=n;var r=rt(i,t,e);return a=Math.max(a,e.currentTime),r}));return e.currentTime=a,{type:3,steps:r,options:mt(t.options)}}},{key:"visitAnimate",value:function(t,e){var i,n=function(t,e){var i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return gt(H(t,e).duration,0,"");var n=t;if(n.split(/\s+/).some((function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)}))){var a=gt(0,0,"");return a.dynamic=!0,a.strValue=n,a}return gt((i=i||H(n,e)).duration,i.delay,i.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;var a=t.styles?t.styles:u({});if(5==a.type)i=this.visitKeyframes(a,e);else{var r=t.styles,o=!1;if(!r){o=!0;var s={};n.easing&&(s.easing=n.easing),r=u(s)}e.currentTime+=n.duration+n.delay;var c=this.visitStyle(r,e);c.isEmptyStep=o,i=c}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}},{key:"visitStyle",value:function(t,e){var i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}},{key:"_makeStyleAst",value:function(t,e){var i=[];Array.isArray(t.styles)?t.styles.forEach((function(t){"string"==typeof t?"*"==t?i.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):i.push(t)})):i.push(t.styles);var n=!1,a=null;return i.forEach((function(t){if(ft(t)){var e=t,i=e.easing;if(i&&(a=i,delete e.easing),!n)for(var r in e)if(e[r].toString().indexOf("{{")>=0){n=!0;break}}})),{type:6,styles:i,easing:a,offset:t.offset,containsDynamicStyles:n,options:null}}},{key:"_validateStyleAst",value:function(t,e){var i=this,n=e.currentAnimateTimings,a=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),t.styles.forEach((function(t){"string"!=typeof t&&Object.keys(t).forEach((function(n){if(i._driver.validateStyleProperty(n)){var o,s,c,l,u,d=e.collectedStyles[e.currentQuerySelector],h=d[n],p=!0;h&&(r!=a&&r>=h.startTime&&a<=h.endTime&&(e.errors.push('The CSS property "'.concat(n,'" that exists between the times of "').concat(h.startTime,'ms" and "').concat(h.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(r,'ms" and "').concat(a,'ms"')),p=!1),r=h.startTime),p&&(d[n]={startTime:r,endTime:a}),e.options&&(o=t[n],s=e.options,c=e.errors,l=s.params||{},(u=Z(o)).length&&u.forEach((function(t){l.hasOwnProperty(t)||c.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))})))}else e.errors.push('The provided animation property "'.concat(n,'" is not a supported CSS property for animations'))}))}))}},{key:"visitKeyframes",value:function(t,e){var i=this,n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;var a=0,r=[],o=!1,s=!1,c=0,l=t.steps.map((function(t){var n=i._makeStyleAst(t,e),l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach((function(t){if(ft(t)&&t.hasOwnProperty("offset")){var i=t;e=parseFloat(i.offset),delete i.offset}}));else if(ft(t)&&t.hasOwnProperty("offset")){var i=t;e=parseFloat(i.offset),delete i.offset}return e}(n.styles),u=0;return null!=l&&(a++,u=n.offset=l),s=s||u<0||u>1,o=o||u<c,c=u,r.push(u),n}));s&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),o&&e.errors.push("Please ensure that all keyframe offsets are in order");var u=t.steps.length,d=0;a>0&&a<u?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==a&&(d=1/(u-1));var h=u-1,p=e.currentTime,f=e.currentAnimateTimings,m=f.duration;return l.forEach((function(t,a){var o=d>0?a==h?1:d*a:r[a],s=o*m;e.currentTime=p+f.delay+s,f.duration=s,i._validateStyleAst(t,e),t.offset=o,n.styles.push(t)})),n}},{key:"visitReference",value:function(t,e){return{type:8,animation:rt(this,X(t.animation),e),options:mt(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:mt(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:mt(t.options)}}},{key:"visitQuery",value:function(t,e){var i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;var a=_slicedToArray(function(t){var e=!!t.split(/\s*,\s*/).find((function(t){return":self"==t}));return e&&(t=t.replace(ut,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(t){return".ng-trigger-"+t.substr(1)})).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),r=a[0],o=a[1];e.currentQuerySelector=i.length?i+" "+r:r,S(e.collectedStyles,e.currentQuerySelector,{});var s=rt(this,X(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:s,originalSelector:t.selector,options:mt(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var i="full"===t.timings?{duration:0,delay:0,easing:"full"}:H(t.timings,e.errors,!0);return{type:12,animation:rt(this,X(t.animation),e),timings:i,options:null}}}]),t}(),pt=function t(e){_classCallCheck(this,t),this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function ft(t){return!Array.isArray(t)&&"object"==typeof t}function mt(t){var e;return t?(t=U(t)).params&&(t.params=(e=t.params)?U(e):null):t={},t}function gt(t,e,i){return{duration:t,delay:e,easing:i}}function vt(t,e,i,n,a,r){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:a,delay:r,totalTime:a+r,easing:o,subTimeline:s}}var bt=function(){function t(){_classCallCheck(this,t),this._map=new Map}return _createClass(t,[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var i,n=this._map.get(t);n||this._map.set(t,n=[]),(i=n).push.apply(i,_toConsumableArray(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),_t=new RegExp(":enter","g"),yt=new RegExp(":leave","g");function kt(t,e,i,n,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new wt).buildKeyframes(t,e,i,n,a,r,o,s,c,l)}var wt=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"buildKeyframes",value:function(t,e,i,n,a,r,o,s,c){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new bt;var u=new xt(t,e,c,n,a,l,[]);u.options=s,u.currentTimeline.setStyles([r],null,u.errors,s),rt(this,i,u);var d=u.timelines.filter((function(t){return t.containsAnimation()}));if(d.length&&Object.keys(o).length){var h=d[d.length-1];h.allowOnlyTimelineStyles()||h.setStyles([o],null,u.errors,s)}return d.length?d.map((function(t){return t.buildKeyframes()})):[vt(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var i=e.subInstructions.consume(e.element);if(i){var n=e.createSubContext(t.options),a=e.currentTimeline.currentTime,r=this._visitSubInstructions(i,n,n.options);a!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,i){var n=e.currentTimeline.currentTime,a=null!=i.duration?J(i.duration):null,r=null!=i.delay?J(i.delay):null;return 0!==a&&t.forEach((function(t){var i=e.appendInstructionToTimeline(t,a,r);n=Math.max(n,i.duration+i.delay)})),n}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),rt(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var i=this,n=e.subContextCount,a=e,r=t.options;if(r&&(r.params||r.delay)&&((a=e.createSubContext(r)).transformIntoNewTimeline(),null!=r.delay)){6==a.previousNode.type&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=Ct);var o=J(r.delay);a.delayNextStep(o)}t.steps.length&&(t.steps.forEach((function(t){return rt(i,t,a)})),a.currentTimeline.applyStylesToKeyframe(),a.subContextCount>n&&a.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var i=this,n=[],a=e.currentTimeline.currentTime,r=t.options&&t.options.delay?J(t.options.delay):0;t.steps.forEach((function(o){var s=e.createSubContext(t.options);r&&s.delayNextStep(r),rt(i,o,s),a=Math.max(a,s.currentTimeline.currentTime),n.push(s.currentTimeline)})),n.forEach((function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)})),e.transformIntoNewTimeline(a),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var i=t.strValue;return H(e.params?Q(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());var a=t.style;5==a.type?this.visitKeyframes(a,e):(e.incrementTime(i.duration),this.visitStyle(a,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();var a=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(a):i.setStyles(t.styles,a,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var i=e.currentAnimateTimings,n=e.currentTimeline.duration,a=i.duration,r=e.createSubContext().currentTimeline;r.easing=i.easing,t.styles.forEach((function(t){r.forwardTime((t.offset||0)*a),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()})),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(n+a),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var i=this,n=e.currentTimeline.currentTime,a=t.options||{},r=a.delay?J(a.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ct);var o=n,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!a.optional,e.errors);e.currentQueryTotal=s.length;var c=null;s.forEach((function(n,a){e.currentQueryIndex=a;var s=e.createSubContext(t.options,n);r&&s.delayNextStep(r),n===e.element&&(c=s.currentTimeline),rt(i,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var i=e.parentContext,n=e.currentTimeline,a=t.timings,r=Math.abs(a.duration),o=r*(e.currentQueryTotal-1),s=r*e.currentQueryIndex;switch(a.duration<0?"reverse":a.easing){case"reverse":s=o-s;break;case"full":s=i.currentStaggerTime}var c=e.currentTimeline;s&&c.delayNextStep(s);var l=c.currentTime;rt(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-l+(n.startTime-i.currentTimeline.startTime)}}]),t}(),Ct={},xt=function(){function t(e,i,n,a,r,o,s,c){_classCallCheck(this,t),this._driver=e,this.element=i,this.subInstructions=n,this._enterClassName=a,this._leaveClassName=r,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ct,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new St(this._driver,i,0),s.push(this.currentTimeline)}return _createClass(t,[{key:"updateOptions",value:function(t,e){var i=this;if(t){var n=t,a=this.options;null!=n.duration&&(a.duration=J(n.duration)),null!=n.delay&&(a.delay=J(n.delay));var r=n.params;if(r){var o=a.params;o||(o=this.options.params={}),Object.keys(r).forEach((function(t){e&&o.hasOwnProperty(t)||(o[t]=Q(r[t],o,i.errors))}))}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var i=t.params={};Object.keys(e).forEach((function(t){i[t]=e[t]}))}}return t}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=i||this.element,r=new t(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=Ct,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,i){var n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},a=new It(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(a),n}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,i,n,a,r){var o=[];if(n&&o.push(this.element),t.length>0){t=(t=t.replace(_t,"."+this._enterClassName)).replace(yt,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=i);0!==i&&(s=i<0?s.slice(s.length+i,s.length):s.slice(0,i)),o.push.apply(o,_toConsumableArray(s))}return a||0!=o.length||r.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),o}},{key:"params",get:function(){return this.options.params}}]),t}(),St=function(){function t(e,i,n,a){_classCallCheck(this,t),this._driver=e,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=a,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(t,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(e,i){return this.applyStylesToKeyframe(),new t(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach((function(t){e._backFill[t]=e._globalTimelineStyles[t]||"*",e._currentKeyframe[t]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,i,n){var a=this;e&&(this._previousKeyframe.easing=e);var r=n&&n.params||{},o=function(t,e){var i,n={};return t.forEach((function(t){"*"===t?(i=i||Object.keys(e)).forEach((function(t){n[t]="*"})):G(t,!1,n)})),n}(t,this._globalTimelineStyles);Object.keys(o).forEach((function(t){var e=Q(o[t],r,i);a._pendingStyles[t]=e,a._localTimelineStyles.hasOwnProperty(t)||(a._backFill[t]=a._globalTimelineStyles.hasOwnProperty(t)?a._globalTimelineStyles[t]:"*"),a._updateStyle(t,e)}))}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,i=Object.keys(e);0!=i.length&&(this._pendingStyles={},i.forEach((function(i){t._currentKeyframe[i]=e[i]})),Object.keys(this._localTimelineStyles).forEach((function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])})))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach((function(e){var i=t._localTimelineStyles[e];t._pendingStyles[e]=i,t._updateStyle(e,i)}))}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach((function(i){var n=e._styleSummary[i],a=t._styleSummary[i];(!n||a.time>n.time)&&e._updateStyle(i,a.value)}))}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,i=new Set,n=1===this._keyframes.size&&0===this.duration,a=[];this._keyframes.forEach((function(r,o){var s=G(r,!0);Object.keys(s).forEach((function(t){var n=s[t];"!"==n?e.add(t):"*"==n&&i.add(t)})),n||(s.offset=o/t.duration),a.push(s)}));var r=e.size?tt(e.values()):[],o=i.size?tt(i.values()):[];if(n){var s=a[0],c=U(s);s.offset=0,c.offset=1,a=[s,c]}return vt(this.element,a,r,o,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}}]),t}(),It=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o,s){var c,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,i),(c=e.call(this,t,n,s.delay)).element=n,c.keyframes=a,c.preStyleProps=r,c.postStyleProps=o,c._stretchStartingKeyframe=l,c.timings={duration:s.duration,delay:s.delay,easing:s.easing},c}return _createClass(i,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,i=e.delay,n=e.duration,a=e.easing;if(this._stretchStartingKeyframe&&i){var r=[],o=n+i,s=i/o,c=G(t[0],!1);c.offset=0,r.push(c);var l=G(t[0],!1);l.offset=Ot(s),r.push(l);for(var u=t.length-1,d=1;d<=u;d++){var h=G(t[d],!1);h.offset=Ot((i+h.offset*n)/o),r.push(h)}n=o,i=0,a="",t=r}return vt(this.element,t,this.preStyleProps,this.postStyleProps,n,i,a,!0)}}]),i}(St);function Ot(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,i=Math.pow(10,e-1);return Math.round(t*i)/i}var Dt=function t(){_classCallCheck(this,t)},Et=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"normalizePropertyName",value:function(t,e){return it(t)}},{key:"normalizeStyleValue",value:function(t,e,i,n){var a="",r=i.toString().trim();if(At[e]&&0!==i&&"0"!==i)if("number"==typeof i)a="px";else{var o=i.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&n.push("Please provide a CSS unit value for ".concat(t,":").concat(i))}return r+a}}]),i}(Dt),At=function(t){var e={};return t.forEach((function(t){return e[t]=!0})),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Tt(t,e,i,n,a,r,o,s,c,l,u,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:a,fromState:i,fromStyles:r,toState:n,toStyles:o,timelines:s,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:h}}var Pt={},Rt=function(){function t(e,i,n){_classCallCheck(this,t),this._triggerName=e,this.ast=i,this._stateStyles=n}return _createClass(t,[{key:"match",value:function(t,e,i,n){return function(t,e,i,n,a){return t.some((function(t){return t(e,i,n,a)}))}(this.ast.matchers,t,e,i,n)}},{key:"buildStyles",value:function(t,e,i){var n=this._stateStyles["*"],a=this._stateStyles[t],r=n?n.buildStyles(e,i):{};return a?a.buildStyles(e,i):r}},{key:"build",value:function(t,e,i,n,a,r,o,s,c,l){var u=[],d=this.ast.options&&this.ast.options.params||Pt,h=this.buildStyles(i,o&&o.params||Pt,u),p=s&&s.params||Pt,f=this.buildStyles(n,p,u),m=new Set,g=new Map,v=new Map,b="void"===n,_={params:Object.assign(Object.assign({},d),p)},y=l?[]:kt(t,e,this.ast.animation,a,r,h,f,_,c,u),k=0;if(y.forEach((function(t){k=Math.max(t.duration+t.delay,k)})),u.length)return Tt(e,this._triggerName,i,n,b,h,f,[],[],g,v,k,u);y.forEach((function(t){var i=t.element,n=S(g,i,{});t.preStyleProps.forEach((function(t){return n[t]=!0}));var a=S(v,i,{});t.postStyleProps.forEach((function(t){return a[t]=!0})),i!==e&&m.add(i)}));var w=tt(m.values());return Tt(e,this._triggerName,i,n,b,h,f,y,w,g,v,k)}}]),t}(),Mt=function(){function t(e,i){_classCallCheck(this,t),this.styles=e,this.defaultParams=i}return _createClass(t,[{key:"buildStyles",value:function(t,e){var i={},n=U(this.defaultParams);return Object.keys(t).forEach((function(e){var i=t[e];null!=i&&(n[e]=i)})),this.styles.styles.forEach((function(t){if("string"!=typeof t){var a=t;Object.keys(a).forEach((function(t){var r=a[t];r.length>1&&(r=Q(r,n,e)),i[t]=r}))}})),i}}]),t}(),Lt=function(){function t(e,i){var n=this;_classCallCheck(this,t),this.name=e,this.ast=i,this.transitionFactories=[],this.states={},i.states.forEach((function(t){n.states[t.name]=new Mt(t.style,t.options&&t.options.params||{})})),jt(this.states,"true","1"),jt(this.states,"false","0"),i.transitions.forEach((function(t){n.transitionFactories.push(new Rt(e,t,n.states))})),this.fallbackTransition=new Rt(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(t,[{key:"matchTransition",value:function(t,e,i,n){return this.transitionFactories.find((function(a){return a.match(t,e,i,n)}))||null}},{key:"matchStyles",value:function(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),t}();function jt(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}var Ft=new bt,Nt=function(){function t(e,i,n){_classCallCheck(this,t),this.bodyNode=e,this._driver=i,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return _createClass(t,[{key:"register",value:function(t,e){var i=[],n=dt(this._driver,e,i);if(i.length)throw new Error("Unable to build the animation due to the following errors: ".concat(i.join("\n")));this._animations[t]=n}},{key:"_buildPlayer",value:function(t,e,i){var n=t.element,a=k(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,a,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var i,n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],o=this._animations[t],s=new Map;if(o?(i=kt(this._driver,e,o,"ng-enter","ng-leave",{},{},a,Ft,r)).forEach((function(t){var e=S(s,t.element,{});t.postStyleProps.forEach((function(t){return e[t]=null}))})):(r.push("The requested animation doesn't exist or has already been destroyed"),i=[]),r.length)throw new Error("Unable to create the animation due to the following errors: ".concat(r.join("\n")));s.forEach((function(t,e){Object.keys(t).forEach((function(i){t[i]=n._driver.computeStyle(e,i,"*")}))}));var c=y(i.map((function(t){var e=s.get(t.element);return n._buildPlayer(t,{},e)})));return this._playersById[t]=c,c.onDestroy((function(){return n.destroy(t)})),this.players.push(c),c}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by ".concat(t));return e}},{key:"listen",value:function(t,e,i,n){var a=x(e,"","","");return w(this._getPlayer(t),i,a,n),function(){}}},{key:"command",value:function(t,e,i,n){if("register"!=i)if("create"!=i){var a=this._getPlayer(t);switch(i){case"play":a.play();break;case"pause":a.pause();break;case"reset":a.reset();break;case"restart":a.restart();break;case"finish":a.finish();break;case"init":a.init();break;case"setPosition":a.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,n[0]||{});else this.register(t,n[0])}}]),t}(),zt=[],Bt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Jt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vt=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,t),this.namespaceId=i;var n,a=e&&e.hasOwnProperty("value");if(this.value=null!=(n=a?e.value:e)?n:null,a){var r=U(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return _createClass(t,[{key:"absorbOptions",value:function(t){var e=t.params;if(e){var i=this.options.params;Object.keys(e).forEach((function(t){null==i[t]&&(i[t]=e[t])}))}}},{key:"params",get:function(){return this.options.params}}]),t}(),Ht=new Vt("void"),Ut=function(){function t(e,i,n){_classCallCheck(this,t),this.id=e,this.hostElement=i,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Yt(i,this._hostClassName)}return _createClass(t,[{key:"listen",value:function(t,e,i,n){var a,r=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(i,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==i||0==i.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(a=i)&&"done"!=a)throw new Error('The provided animation trigger event "'.concat(i,'" for the animation trigger "').concat(e,'" is not supported!'));var o=S(this._elementListeners,t,[]),s={name:e,phase:i,callback:n};o.push(s);var c=S(this._engine.statesByElement,t,{});return c.hasOwnProperty(e)||(Yt(t,"ng-trigger"),Yt(t,"ng-trigger-"+e),c[e]=Ht),function(){r._engine.afterFlush((function(){var t=o.indexOf(s);t>=0&&o.splice(t,1),r._triggers[e]||delete c[e]}))}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,i){var n=this,a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=this._getTrigger(e),o=new Wt(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Yt(t,"ng-trigger"),Yt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var c=s[e],l=new Vt(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),s[e]=l,c||(c=Ht),"void"===l.value||c.value!==l.value){var u=S(this._engine.playersByElement,t,[]);u.forEach((function(t){t.namespaceId==n.id&&t.triggerName==e&&t.queued&&t.destroy()}));var d=r.matchTransition(c.value,l.value,t,l.params),h=!1;if(!d){if(!a)return;d=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:d,fromState:c,toState:l,player:o,isFallbackTransition:h}),h||(Yt(t,"ng-animate-queued"),o.onStart((function(){Zt(t,"ng-animate-queued")}))),o.onDone((function(){var e=n.players.indexOf(o);e>=0&&n.players.splice(e,1);var i=n._engine.playersByElement.get(t);if(i){var a=i.indexOf(o);a>=0&&i.splice(a,1)}})),this.players.push(o),u.push(o),o}if(!function(t,e){var i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(var a=0;a<i.length;a++){var r=i[a];if(!e.hasOwnProperty(r)||t[r]!==e[r])return!1}return!0}(c.params,l.params)){var p=[],f=r.matchStyles(c.value,c.params,p),m=r.matchStyles(l.value,l.params,p);p.length?this._engine.reportError(p):this._engine.afterFlush((function(){K(t,f),$(t,m)}))}}},{key:"deregister",value:function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach((function(e,i){delete e[t]})),this._elementListeners.forEach((function(i,n){e._elementListeners.set(n,i.filter((function(e){return e.name!=t})))}))}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach((function(t){return t.destroy()})),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,e){var i=this,n=this._engine.driver.query(t,".ng-trigger",!0);n.forEach((function(t){if(!t.__ng_removed){var n=i._engine.fetchNamespacesByElement(t);n.size?n.forEach((function(i){return i.triggerLeaveAnimation(t,e,!1,!0)})):i.clearElementCache(t)}})),this._engine.afterFlushAnimationsDone((function(){return n.forEach((function(t){return i.clearElementCache(t)}))}))}},{key:"triggerLeaveAnimation",value:function(t,e,i,n){var a=this,r=this._engine.statesByElement.get(t);if(r){var o=[];if(Object.keys(r).forEach((function(e){if(a._triggers[e]){var i=a.trigger(t,e,"void",n);i&&o.push(i)}})),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&y(o).onDone((function(){return a._engine.processLeaveNode(t)})),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var e=this,i=this._elementListeners.get(t);if(i){var n=new Set;i.forEach((function(i){var a=i.name;if(!n.has(a)){n.add(a);var r=e._triggers[a].fallbackTransition,o=e._engine.statesByElement.get(t)[a]||Ht,s=new Vt("void"),c=new Wt(e.id,a,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:a,transition:r,fromState:o,toState:s,player:c,isFallbackTransition:!0})}}))}}},{key:"removeNode",value:function(t,e){var i=this,n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),!this.triggerLeaveAnimation(t,e,!0)){var a=!1;if(n.totalAnimations){var r=n.players.length?n.playersByQueriedElement.get(t):[];if(r&&r.length)a=!0;else for(var o=t;o=o.parentNode;)if(n.statesByElement.get(o)){a=!0;break}}if(this.prepareLeaveAnimationListeners(t),a)n.markElementAsRemoved(this.id,t,!1,e);else{var s=t.__ng_removed;s&&s!==Bt||(n.afterFlush((function(){return i.clearElementCache(t)})),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}}},{key:"insertNode",value:function(t,e){Yt(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var e=this,i=[];return this._queue.forEach((function(n){var a=n.player;if(!a.destroyed){var r=n.element,o=e._elementListeners.get(r);o&&o.forEach((function(e){if(e.name==n.triggerName){var i=x(r,n.triggerName,n.fromState.value,n.toState.value);i._data=t,w(n.player,e.phase,i,e.callback)}})),a.markedForDestroy?e._engine.afterFlush((function(){a.destroy()})):i.push(n)}})),this._queue=[],i.sort((function(t,i){var n=t.transition.ast.depCount,a=i.transition.ast.depCount;return 0==n||0==a?n-a:e._engine.driver.containsElement(t.element,i.element)?1:-1}))}},{key:"destroy",value:function(t){this.players.forEach((function(t){return t.destroy()})),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find((function(e){return e.element===t}))||e}}]),t}(),Gt=function(){function t(e,i,n){_classCallCheck(this,t),this.bodyNode=e,this.driver=i,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(t,e){}}return _createClass(t,[{key:"_onRemovalComplete",value:function(t,e){this.onRemovalComplete(t,e)}},{key:"createNamespace",value:function(t,e){var i=new Ut(t,e,this);return e.parentNode?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}},{key:"_balanceNamespaceList",value:function(t,e){var i=this._namespaceList.length-1;if(i>=0){for(var n=!1,a=i;a>=0;a--)if(this.driver.containsElement(this._namespaceList[a].hostElement,e)){this._namespaceList.splice(a+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}},{key:"register",value:function(t,e){var i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}},{key:"registerTrigger",value:function(t,e,i){var n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var i=this;if(t){var n=this._fetchNamespace(t);this.afterFlush((function(){i.namespacesByHostElement.delete(n.hostElement),delete i._namespaceLookup[t];var e=i._namespaceList.indexOf(n);e>=0&&i._namespaceList.splice(e,1)})),this.afterFlushAnimationsDone((function(){return n.destroy(e)}))}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,i=this.statesByElement.get(t);if(i)for(var n=Object.keys(i),a=0;a<n.length;a++){var r=i[n[a]].namespaceId;if(r){var o=this._fetchNamespace(r);o&&e.add(o)}}return e}},{key:"trigger",value:function(t,e,i,n){if(qt(e)){var a=this._fetchNamespace(t);if(a)return a.trigger(e,i,n),!0}return!1}},{key:"insertNode",value:function(t,e,i,n){if(qt(e)){var a=e.__ng_removed;if(a&&a.setForRemoval){a.setForRemoval=!1,a.setForMove=!0;var r=this.collectedLeaveElements.indexOf(e);r>=0&&this.collectedLeaveElements.splice(r,1)}if(t){var o=this._fetchNamespace(t);o&&o.insertNode(e,i)}n&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Yt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Zt(t,"ng-animate-disabled"))}},{key:"removeNode",value:function(t,e,i,n){if(qt(e)){var a=t?this._fetchNamespace(t):null;if(a?a.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){var r=this.namespacesByHostElement.get(e);r&&r.id!==t&&r.removeNode(e,n)}}else this._onRemovalComplete(e,n)}},{key:"markElementAsRemoved",value:function(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,i,n,a){return qt(e)?this._fetchNamespace(t).listen(e,i,n,a):function(){}}},{key:"_buildInstruction",value:function(t,e,i,n,a){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,a)}},{key:"destroyInnerAnimations",value:function(t){var e=this,i=this.driver.query(t,".ng-trigger",!0);i.forEach((function(t){return e.destroyActiveAnimationsForElement(t)})),0!=this.playersByQueriedElement.size&&(i=this.driver.query(t,".ng-animating",!0)).forEach((function(t){return e.finishActiveQueriedAnimationOnElement(t)}))}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach((function(t){t.queued?t.markedForDestroy=!0:t.destroy()}))}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach((function(t){return t.finish()}))}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise((function(e){if(t.players.length)return y(t.players).onDone((function(){return e()}));e()}))}},{key:"processLeaveNode",value:function(t){var e=this,i=t.__ng_removed;if(i&&i.setForRemoval){if(t.__ng_removed=Bt,i.namespaceId){this.destroyInnerAnimations(t);var n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach((function(t){e.markElementAsDisabled(t,!1)}))}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(e,i){return t._balanceNamespaceList(e,i)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var n=0;n<this.collectedEnterElements.length;n++)Yt(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var a=[];try{i=this._flushAnimations(a,e)}finally{for(var r=0;r<a.length;r++)a[r]()}}else for(var o=0;o<this.collectedLeaveElements.length;o++)this.processLeaveNode(this.collectedLeaveElements[o]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach((function(t){return t()})),this._flushFns=[],this._whenQuietFns.length){var s=this._whenQuietFns;this._whenQuietFns=[],i.length?y(i).onDone((function(){s.forEach((function(t){return t()}))})):s.forEach((function(t){return t()}))}}},{key:"reportError",value:function(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(t.join("\n")))}},{key:"_flushAnimations",value:function(t,e){var i=this,n=new bt,a=[],r=new Map,o=[],s=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach((function(t){u.add(t);for(var e=i.driver.query(t,".ng-animate-queued",!0),n=0;n<e.length;n++)u.add(e[n])}));var d=this.bodyNode,h=Array.from(this.statesByElement.keys()),p=Xt(h,this.collectedEnterElements),f=new Map,m=0;p.forEach((function(t,e){var i="ng-enter"+m++;f.set(e,i),t.forEach((function(t){return Yt(t,i)}))}));for(var g=[],v=new Set,b=new Set,_=0;_<this.collectedLeaveElements.length;_++){var k=this.collectedLeaveElements[_],w=k.__ng_removed;w&&w.setForRemoval&&(g.push(k),v.add(k),w.hasAnimation?this.driver.query(k,".ng-star-inserted",!0).forEach((function(t){return v.add(t)})):b.add(k))}var C=new Map,x=Xt(h,Array.from(v));x.forEach((function(t,e){var i="ng-leave"+m++;C.set(e,i),t.forEach((function(t){return Yt(t,i)}))})),t.push((function(){p.forEach((function(t,e){var i=f.get(e);t.forEach((function(t){return Zt(t,i)}))})),x.forEach((function(t,e){var i=C.get(e);t.forEach((function(t){return Zt(t,i)}))})),g.forEach((function(t){i.processLeaveNode(t)}))}));for(var I=[],O=[],D=this._namespaceList.length-1;D>=0;D--)this._namespaceList[D].drainQueuedTransitions(e).forEach((function(t){var e=t.player,r=t.element;if(I.push(e),i.collectedEnterElements.length){var u=r.__ng_removed;if(u&&u.setForMove)return void e.destroy()}var h=!d||!i.driver.containsElement(d,r),p=C.get(r),m=f.get(r),g=i._buildInstruction(t,n,m,p,h);if(!g.errors||!g.errors.length)return h||t.isFallbackTransition?(e.onStart((function(){return K(r,g.fromStyles)})),e.onDestroy((function(){return $(r,g.toStyles)})),void a.push(e)):(g.timelines.forEach((function(t){return t.stretchStartingKeyframe=!0})),n.append(r,g.timelines),o.push({instruction:g,player:e,element:r}),g.queriedElements.forEach((function(t){return S(s,t,[]).push(e)})),g.preStyleProps.forEach((function(t,e){var i=Object.keys(t);if(i.length){var n=c.get(e);n||c.set(e,n=new Set),i.forEach((function(t){return n.add(t)}))}})),void g.postStyleProps.forEach((function(t,e){var i=Object.keys(t),n=l.get(e);n||l.set(e,n=new Set),i.forEach((function(t){return n.add(t)}))})));O.push(g)}));if(O.length){var E=[];O.forEach((function(t){E.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach((function(t){return E.push("- ".concat(t,"\n"))}))})),I.forEach((function(t){return t.destroy()})),this.reportError(E)}var A=new Map,T=new Map;o.forEach((function(t){var e=t.element;n.has(e)&&(T.set(e,e),i._beforeAnimationBuild(t.player.namespaceId,t.instruction,A))})),a.forEach((function(t){var e=t.element;i._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((function(t){S(A,e,[]).push(t),t.destroy()}))}));var P=g.filter((function(t){return te(t,c,l)})),R=new Map;Kt(R,this.driver,b,l,"*").forEach((function(t){te(t,c,l)&&P.push(t)}));var M=new Map;p.forEach((function(t,e){Kt(M,i.driver,new Set(t),c,"!")})),P.forEach((function(t){var e=R.get(t),i=M.get(t);R.set(t,Object.assign(Object.assign({},e),i))}));var L=[],j=[],F={};o.forEach((function(t){var e=t.element,o=t.player,s=t.instruction;if(n.has(e)){if(u.has(e))return o.onDestroy((function(){return $(e,s.toStyles)})),o.disabled=!0,o.overrideTotalTime(s.totalTime),void a.push(o);var c=F;if(T.size>1){for(var l=e,d=[];l=l.parentNode;){var h=T.get(l);if(h){c=h;break}d.push(l)}d.forEach((function(t){return T.set(t,c)}))}var p=i._buildAnimation(o.namespaceId,s,A,r,M,R);if(o.setRealPlayer(p),c===F)L.push(o);else{var f=i.playersByElement.get(c);f&&f.length&&(o.parentPlayer=y(f)),a.push(o)}}else K(e,s.fromStyles),o.onDestroy((function(){return $(e,s.toStyles)})),j.push(o),u.has(e)&&a.push(o)})),j.forEach((function(t){var e=r.get(t.element);if(e&&e.length){var i=y(e);t.setRealPlayer(i)}})),a.forEach((function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(var N=0;N<g.length;N++){var z=g[N],B=z.__ng_removed;if(Zt(z,"ng-leave"),!B||!B.hasAnimation){var J=[];if(s.size){var V=s.get(z);V&&V.length&&J.push.apply(J,_toConsumableArray(V));for(var H=this.driver.query(z,".ng-animating",!0),U=0;U<H.length;U++){var G=s.get(H[U]);G&&G.length&&J.push.apply(J,_toConsumableArray(G))}}var W=J.filter((function(t){return!t.destroyed}));W.length?Qt(this,z,W):this.processLeaveNode(z)}}return g.length=0,L.forEach((function(t){i.players.push(t),t.onDone((function(){t.destroy();var e=i.players.indexOf(t);i.players.splice(e,1)})),t.play()})),L}},{key:"elementContainsData",value:function(t,e){var i=!1,n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}},{key:"afterFlush",value:function(t){this._flushFns.push(t)}},{key:"afterFlushAnimationsDone",value:function(t){this._whenQuietFns.push(t)}},{key:"_getPreviousPlayers",value:function(t,e,i,n,a){var r=[];if(e){var o=this.playersByQueriedElement.get(t);o&&(r=o)}else{var s=this.playersByElement.get(t);if(s){var c=!a||"void"==a;s.forEach((function(t){t.queued||(c||t.triggerName==n)&&r.push(t)}))}}return(i||n)&&(r=r.filter((function(t){return!(i&&i!=t.namespaceId||n&&n!=t.triggerName)}))),r}},{key:"_beforeAnimationBuild",value:function(t,e,i){var n,a=this,r=e.element,o=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName,c=_createForOfIteratorHelper(e.timelines);try{var l=function(){var t=n.value.element,c=t!==r,l=S(i,t,[]);a._getPreviousPlayers(t,c,o,s,e.toState).forEach((function(t){var e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)}))};for(c.s();!(n=c.n()).done;)l()}catch(u){c.e(u)}finally{c.f()}K(r,e.fromStyles)}},{key:"_buildAnimation",value:function(t,e,i,n,a,r){var o=this,s=e.triggerName,c=e.element,l=[],u=new Set,d=new Set,h=e.timelines.map((function(e){var h=e.element;u.add(h);var p=h.__ng_removed;if(p&&p.removedBeforeQueried)return new v(e.duration,e.delay);var f,m,g=h!==c,_=(f=(i.get(h)||zt).map((function(t){return t.getRealPlayer()})),m=[],function t(e,i){for(var n=0;n<e.length;n++){var a=e[n];a instanceof b?t(a.players,i):i.push(a)}}(f,m),m).filter((function(t){return!!t.element&&t.element===h})),y=a.get(h),w=r.get(h),C=k(0,o._normalizer,0,e.keyframes,y,w),x=o._buildPlayer(e,C,_);if(e.subTimeline&&n&&d.add(h),g){var S=new Wt(t,s,h);S.setRealPlayer(x),l.push(S)}return x}));l.forEach((function(t){S(o.playersByQueriedElement,t.element,[]).push(t),t.onDone((function(){return function(t,e,i){var n;if(t instanceof Map){if(n=t.get(e)){if(n.length){var a=n.indexOf(i);n.splice(a,1)}0==n.length&&t.delete(e)}}else if(n=t[e]){if(n.length){var r=n.indexOf(i);n.splice(r,1)}0==n.length&&delete t[e]}return n}(o.playersByQueriedElement,t.element,t)}))})),u.forEach((function(t){return Yt(t,"ng-animating")}));var p=y(h);return p.onDestroy((function(){u.forEach((function(t){return Zt(t,"ng-animating")})),$(c,e.toStyles)})),d.forEach((function(t){S(n,t,[]).push(p)})),p}},{key:"_buildPlayer",value:function(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new v(t.duration,t.delay)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach((function(e){e.players.forEach((function(e){e.queued&&t.push(e)}))})),t}}]),t}(),Wt=function(){function t(e,i,n){_classCallCheck(this,t),this.namespaceId=e,this.triggerName=i,this.element=n,this._player=new v,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach((function(i){e._queuedCallbacks[i].forEach((function(e){return w(t,i,void 0,e)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,i=this._player;i.triggerCallback&&t.onStart((function(){return i.triggerCallback("start")})),t.onDone((function(){return e.finish()})),t.onDestroy((function(){return e.destroy()}))}},{key:"_queueEvent",value:function(t,e){S(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),t}();function qt(t){return t&&1===t.nodeType}function $t(t,e){var i=t.style.display;return t.style.display=null!=e?e:"none",i}function Kt(t,e,i,n,a){var r=[];i.forEach((function(t){return r.push($t(t))}));var o=[];n.forEach((function(i,n){var r={};i.forEach((function(t){var i=r[t]=e.computeStyle(n,t,a);i&&0!=i.length||(n.__ng_removed=Jt,o.push(n))})),t.set(n,r)}));var s=0;return i.forEach((function(t){return $t(t,r[s++])})),o}function Xt(t,e){var i=new Map;if(t.forEach((function(t){return i.set(t,[])})),0==e.length)return i;var n=new Set(e),a=new Map;return e.forEach((function(t){var e=function t(e){if(!e)return 1;var r=a.get(e);if(r)return r;var o=e.parentNode;return r=i.has(o)?o:n.has(o)?1:t(o),a.set(e,r),r}(t);1!==e&&i.get(e).push(t)})),i}function Yt(t,e){if(t.classList)t.classList.add(e);else{var i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Zt(t,e){if(t.classList)t.classList.remove(e);else{var i=t.$$classes;i&&delete i[e]}}function Qt(t,e,i){y(i).onDone((function(){return t.processLeaveNode(e)}))}function te(t,e,i){var n=i.get(t);if(!n)return!1;var a=e.get(t);return a?n.forEach((function(t){return a.add(t)})):e.set(t,n),i.delete(t),!0}var ee=function(){function t(e,i,n){var a=this;_classCallCheck(this,t),this.bodyNode=e,this._driver=i,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Gt(e,i,n),this._timelineEngine=new Nt(e,i,n),this._transitionEngine.onRemovalComplete=function(t,e){return a.onRemovalComplete(t,e)}}return _createClass(t,[{key:"registerTrigger",value:function(t,e,i,n,a){var r=t+"-"+n,o=this._triggerCache[r];if(!o){var s=[],c=dt(this._driver,a,s);if(s.length)throw new Error('The animation trigger "'.concat(n,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));o=function(t,e){return new Lt(t,e)}(n,c),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,n,o)}},{key:"register",value:function(t,e){this._transitionEngine.register(t,e)}},{key:"destroy",value:function(t,e){this._transitionEngine.destroy(t,e)}},{key:"onInsert",value:function(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}},{key:"onRemove",value:function(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}},{key:"disableAnimations",value:function(t,e){this._transitionEngine.markElementAsDisabled(t,e)}},{key:"process",value:function(t,e,i,n){if("@"==i.charAt(0)){var a=_slicedToArray(I(i),2),r=a[0],o=a[1];this._timelineEngine.command(r,e,o,n)}else this._transitionEngine.trigger(t,e,i,n)}},{key:"listen",value:function(t,e,i,n,a){if("@"==i.charAt(0)){var r=_slicedToArray(I(i),2),o=r[0],s=r[1];return this._timelineEngine.listen(o,e,s,a)}return this._transitionEngine.listen(t,e,i,n,a)}},{key:"flush",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),t}();function ie(t,e){var i=null,n=null;return Array.isArray(e)&&e.length?(i=ae(e[0]),e.length>1&&(n=ae(e[e.length-1]))):e&&(i=ae(e)),i||n?new ne(t,i,n):null}var ne=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;var a=t.initialStylesByElement.get(e);a||t.initialStylesByElement.set(e,a={}),this._initialStyles=a}return _createClass(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&$(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&($(this._element,this._initialStyles),this._endStyles&&($(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(K(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(K(this._element,this._endStyles),this._endStyles=null),$(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function ae(t){for(var e=null,i=Object.keys(t),n=0;n<i.length;n++){var a=i[n];re(a)&&((e=e||{})[a]=t[a])}return e}function re(t){return"display"===t||"position"===t}var oe=function(){function t(e,i,n,a,r,o,s){var c=this;_classCallCheck(this,t),this._element=e,this._name=i,this._duration=n,this._delay=a,this._easing=r,this._fillMode=o,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(t){return c._handleCallback(t)}}return _createClass(t,[{key:"apply",value:function(){var t,e,i;t=this._element,e="".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name),(i=he(t,"").trim()).length&&(function(t,e){for(var i=0;i<t.length;i++)t.charAt(i)}(i),e="".concat(i,", ").concat(e)),de(t,"",e),ue(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){se(this._element,this._name,"paused")}},{key:"resume",value:function(){se(this._element,this._name,"running")}},{key:"setPosition",value:function(t){var e=ce(this._element,this._name);this._position=t*this._duration,de(this._element,"Delay","-".concat(this._position,"ms"),e)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(t){var e=t._ngTestManualTimestamp||Date.now(),i=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&i>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),ue(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,i,n;this._destroyed||(this._destroyed=!0,this.finish(),t=this._element,e=this._name,i=he(t,"").split(","),(n=le(i,e))>=0&&(i.splice(n,1),de(t,"",i.join(","))))}}]),t}();function se(t,e,i){de(t,"PlayState",i,ce(t,e))}function ce(t,e){var i=he(t,"");return i.indexOf(",")>0?le(i.split(","),e):le([i],e)}function le(t,e){for(var i=0;i<t.length;i++)if(t[i].indexOf(e)>=0)return i;return-1}function ue(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function de(t,e,i,n){var a="animation"+e;if(null!=n){var r=t.style[a];if(r.length){var o=r.split(",");o[n]=i,i=o.join(",")}}t.style[a]=i}function he(t,e){return t.style["animation"+e]}var pe=function(){function t(e,i,n,a,r,o,s,c){_classCallCheck(this,t),this.element=e,this.keyframes=i,this.animationName=n,this._duration=a,this._delay=r,this._finalStyles=s,this._specialStyles=c,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=a+r,this._buildStyler()}return _createClass(t,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new oe(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return t.finish()}))}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var e={};if(this.hasStarted()){var i=this._state>=3;Object.keys(this._finalStyles).forEach((function(n){"offset"!=n&&(e[n]=i?t._finalStyles[n]:ot(t.element,n))}))}this.currentSnapshot=e}}]),t}(),fe=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this)).element=t,a._startingStyles={},a.__initialized=!1,a._styles=F(n),a}return _createClass(i,[{key:"init",value:function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(e){t._startingStyles[e]=t.element.style[e]})),_get(_getPrototypeOf(i.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(e){return t.element.style.setProperty(e,t._styles[e])})),_get(_getPrototypeOf(i.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(e){var i=t._startingStyles[e];i?t.element.style.setProperty(e,i):t.element.style.removeProperty(e)})),this._startingStyles=null,_get(_getPrototypeOf(i.prototype),"destroy",this).call(this))}}]),i}(v),me=function(){function t(){_classCallCheck(this,t),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return R(t)}},{key:"matchesElement",value:function(t,e){return M(t,e)}},{key:"containsElement",value:function(t,e){return L(t,e)}},{key:"query",value:function(t,e,i){return j(t,e,i)}},{key:"computeStyle",value:function(t,e,i){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,i){i=i.map((function(t){return F(t)}));var n="@keyframes ".concat(e," {\n"),a="";i.forEach((function(t){a=" ";var e=parseFloat(t.offset);n+="".concat(a).concat(100*e,"% {\n"),a+=" ",Object.keys(t).forEach((function(e){var i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+="".concat(a,"animation-timing-function: ").concat(i,";\n")));default:return void(n+="".concat(a).concat(e,": ").concat(i,";\n"))}})),n+="".concat(a,"}\n")})),n+="}\n";var r=document.createElement("style");return r.innerHTML=n,r}},{key:"animate",value:function(t,e,i,n,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;o&&this._notifyFaultyScrubber();var s=r.filter((function(t){return t instanceof pe})),c={};nt(i,n)&&s.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return c[t]=e[t]}))}));var l=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach((function(t){Object.keys(t).forEach((function(i){"offset"!=i&&"easing"!=i&&(e[i]=t[i])}))})),e}(e=at(t,e,c));if(0==i)return new fe(t,l);var u="gen_css_kf_".concat(this._count++),d=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(d);var h=ie(t,e),p=new pe(t,e,u,i,n,a,l,h);return p.onDestroy((function(){var t;(t=d).parentNode.removeChild(t)})),p}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),t}(),ge=function(){function t(e,i,n,a){_classCallCheck(this,t),this.element=e,this.keyframes=i,this.options=n,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return t._onFinish()}))}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,i){return t.animate(e,i)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(i){"offset"!=i&&(e[i]=t._finished?t._finalKeyframe[i]:ot(t.element,i))})),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),t}(),ve=function(){function t(){_classCallCheck(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(be().toString()),this._cssKeyframesDriver=new me}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return R(t)}},{key:"matchesElement",value:function(t,e){return M(t,e)}},{key:"containsElement",value:function(t,e){return L(t,e)}},{key:"query",value:function(t,e,i){return j(t,e,i)}},{key:"computeStyle",value:function(t,e,i){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,i,n,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,a,r);var s={duration:i,delay:n,fill:0==n?"both":"forwards"};a&&(s.easing=a);var c={},l=r.filter((function(t){return t instanceof ge}));nt(i,n)&&l.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return c[t]=e[t]}))}));var u=ie(t,e=at(t,e=e.map((function(t){return G(t,!1)})),c));return new ge(t,e,s,u)}}]),t}();function be(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var _e,ye=i("ofXK"),ke=((_e=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this))._nextAnimationId=0,r._renderer=t.createRenderer(n.body,{id:"0",encapsulation:a.db.None,styles:[],data:{animation:[]}}),r}return _createClass(i,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var i=Array.isArray(t)?l(t):t;return xe(this._renderer,null,e,"register",[i]),new we(e,this._renderer)}}]),i}(r)).\u0275fac=function(t){return new(t||_e)(a.Sc(a.Q),a.Sc(ye.e))},_e.\u0275prov=a.zc({token:_e,factory:_e.\u0275fac}),_e),we=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this))._id=t,a._renderer=n,a}return _createClass(i,[{key:"create",value:function(t,e){return new Ce(this._id,t,e||{},this._renderer)}}]),i}(function(){return function t(){_classCallCheck(this,t)}}()),Ce=function(){function t(e,i,n,a){_classCallCheck(this,t),this.id=e,this.element=i,this._renderer=a,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return _createClass(t,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return xe(this._renderer,this.element,this.id,t,i)}},{key:"onDone",value:function(t){this._listen("done",t)}},{key:"onStart",value:function(t){this._listen("start",t)}},{key:"onDestroy",value:function(t){this._listen("destroy",t)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset")}},{key:"setPosition",value:function(t){this._command("setPosition",t)}},{key:"getPosition",value:function(){return 0}}]),t}();function xe(t,e,i,n,a){return t.setProperty(e,"@@".concat(i,":").concat(n),a)}var Se,Ie,Oe,De=((Se=function(){function t(e,i,n){_classCallCheck(this,t),this.delegate=e,this.engine=i,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=function(t,e){e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}return _createClass(t,[{key:"createRenderer",value:function(t,e){var i=this,n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){var a=this._rendererCache.get(n);return a||(a=new Ee("",n,this.engine),this._rendererCache.set(n,a)),a}var r=e.id,o=e.id+"-"+this._currentId;return this._currentId++,this.engine.register(o,t),e.data.animation.forEach((function e(n){Array.isArray(n)?n.forEach(e):i.engine.registerTrigger(r,o,t,n.name,n)})),new Ae(this,o,n,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var t=this;this.promise.then((function(){t._microtaskId++}))}},{key:"scheduleListenerCallback",value:function(t,e,i){var n=this;t>=0&&t<this._microtaskId?this._zone.run((function(){return e(i)})):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then((function(){n._zone.run((function(){n._animationCallbacksBuffer.forEach((function(t){var e=_slicedToArray(t,2);(0,e[0])(e[1])})),n._animationCallbacksBuffer=[]}))})),this._animationCallbacksBuffer.push([e,i]))}},{key:"end",value:function(){var t=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular((function(){t._scheduleCountTask(),t.engine.flush(t._microtaskId)})),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),t}()).\u0275fac=function(t){return new(t||Se)(a.Sc(a.Q),a.Sc(ee),a.Sc(a.I))},Se.\u0275prov=a.zc({token:Se,factory:Se.\u0275fac}),Se),Ee=function(){function t(e,i,n){_classCallCheck(this,t),this.namespaceId=e,this.delegate=i,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(t){return i.destroyNode(t)}:null}return _createClass(t,[{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(t,e){return this.delegate.createElement(t,e)}},{key:"createComment",value:function(t){return this.delegate.createComment(t)}},{key:"createText",value:function(t){return this.delegate.createText(t)}},{key:"appendChild",value:function(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}},{key:"insertBefore",value:function(t,e,i){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,!0)}},{key:"removeChild",value:function(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}},{key:"removeAttribute",value:function(t,e,i){this.delegate.removeAttribute(t,e,i)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,i,n){this.delegate.setStyle(t,e,i,n)}},{key:"removeStyle",value:function(t,e,i){this.delegate.removeStyle(t,e,i)}},{key:"setProperty",value:function(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,i){return this.delegate.listen(t,e,i)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}},{key:"data",get:function(){return this.delegate.data}}]),t}(),Ae=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this,n,a,r)).factory=t,o.namespaceId=n,o}return _createClass(i,[{key:"setProperty",value:function(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}},{key:"listen",value:function(t,e,i){var n,a,r=this;if("@"==e.charAt(0)){var o,s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),c=e.substr(1),l="";return"@"!=c.charAt(0)&&(a=(n=c).indexOf("."),c=(o=_slicedToArray([n.substring(0,a),n.substr(a+1)],2))[0],l=o[1]),this.engine.listen(this.namespaceId,s,c,l,(function(t){r.factory.scheduleListenerCallback(t._data||-1,i,t)}))}return this.delegate.listen(t,e,i)}}]),i}(Ee),Te=((Ie=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){return _classCallCheck(this,i),e.call(this,t.body,n,a)}return i}(ee)).\u0275fac=function(t){return new(t||Ie)(a.Sc(ye.e),a.Sc(B),a.Sc(Dt))},Ie.\u0275prov=a.zc({token:Ie,factory:Ie.\u0275fac}),Ie),Pe=new a.x("AnimationModuleType"),Re=[{provide:B,useFactory:function(){return"function"==typeof be()?new ve:new me}},{provide:Pe,useValue:"BrowserAnimations"},{provide:r,useClass:ke},{provide:Dt,useFactory:function(){return new Et}},{provide:ee,useClass:Te},{provide:a.Q,useFactory:function(t,e,i){return new De(t,e,i)},deps:[n.d,ee,a.I]}],Me=((Oe=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Oe}),Oe.\u0275inj=a.Ac({factory:function(t){return new(t||Oe)},providers:Re,imports:[n.a]}),Oe),Le=i("XNiG"),je=i("quSY"),Fe=i("z+Ro"),Ne=i("yCtX"),ze=i("jZKg");function Be(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e[e.length-1];return Object(Fe.a)(n)?(e.pop(),Object(ze.a)(e,n)):Object(Ne.a)(e)}function Je(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return i.length?i.some((function(e){return t[e]})):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Ve=i("7o/Q"),He=i("KqfI"),Ue=i("n6bG");function Ge(t,e,i){return function(n){return n.lift(new We(t,e,i))}}var We=function(){function t(e,i,n){_classCallCheck(this,t),this.nextOrObserver=e,this.error=i,this.complete=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new qe(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),qe=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this,t))._tapNext=He.a,o._tapError=He.a,o._tapComplete=He.a,o._tapError=a||He.a,o._tapComplete=r||He.a,Object(Ue.a)(n)?(o._context=_assertThisInitialized(o),o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||He.a,o._tapError=n.error||He.a,o._tapComplete=n.complete||He.a),o}return _createClass(i,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),i}(Ve.a),$e=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t,n)).scheduler=t,a.work=n,a.pending=!1,a}return _createClass(i,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}},{key:"requestAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),i)}},{key:"recycleAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value:function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(t,e){var i=!1,n=void 0;try{this.work(t)}catch(a){i=!0,n=!!a&&a||new Error(a)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}]),i}(function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){return _classCallCheck(this,i),e.call(this)}return _createClass(i,[{key:"schedule",value:function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),i}(je.a)),Ke=function(){var t=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;_classCallCheck(this,t),this.SchedulerAction=e,this.now=i}return _createClass(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(i,e)}}]),t}();return t.now=function(){return Date.now()},t}(),Xe=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ke.now;return _classCallCheck(this,i),(n=e.call(this,t,(function(){return i.delegate&&i.delegate!==_assertThisInitialized(n)?i.delegate.now():a()}))).actions=[],n.active=!1,n.scheduled=void 0,n}return _createClass(i,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return i.delegate&&i.delegate!==this?i.delegate.schedule(t,e,n):_get(_getPrototypeOf(i.prototype),"schedule",this).call(this,t,e,n)}},{key:"flush",value:function(t){var e=this.actions;if(this.active)e.push(t);else{var i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}}]),i}(Ke),Ye=new Xe($e);function Ze(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ye;return function(i){return i.lift(new Qe(t,e))}}var Qe=function(){function t(e,i){_classCallCheck(this,t),this.dueTime=e,this.scheduler=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new ti(t,this.dueTime,this.scheduler))}}]),t}(),ti=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,t)).dueTime=n,r.scheduler=a,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return _createClass(i,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ei,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}]),i}(Ve.a);function ei(t){t.debouncedNext()}function ii(t,e){return function(i){return i.lift(new ni(t,e))}}var ni=function(){function t(e,i){_classCallCheck(this,t),this.predicate=e,this.thisArg=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new ai(t,this.predicate,this.thisArg))}}]),t}(),ai=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,t)).predicate=n,r.thisArg=a,r.count=0,r}return _createClass(i,[{key:"_next",value:function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}]),i}(Ve.a),ri=i("lJxs"),oi=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),si=i("HDdC"),ci=new si.a((function(t){return t.complete()}));function li(t){return t?function(t){return new si.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):ci}function ui(t){return function(e){return 0===t?li():e.lift(new hi(t))}}var di,hi=function(){function t(e){if(_classCallCheck(this,t),this.total=e,this.total<0)throw new oi}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new pi(t,this.total))}}]),t}(),pi=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t)).total=n,a.count=0,a}return _createClass(i,[{key:"_next",value:function(t){var e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}]),i}(Ve.a);function fi(t){return null!=t&&"false"!=="".concat(t)}function mi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return gi(t)?Number(t):e}function gi(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function vi(t){return Array.isArray(t)?t:[t]}function bi(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function _i(t){return t instanceof a.r?t.nativeElement:t}try{di="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(xB){di=!1}var yi,ki,wi,Ci,xi,Si,Ii=((wi=function t(e){_classCallCheck(this,t),this._platformId=e,this.isBrowser=this._platformId?Object(ye.I)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!di)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}).\u0275fac=function(t){return new(t||wi)(a.Sc(a.M,8))},wi.\u0275prov=Object(a.zc)({factory:function(){return new wi(Object(a.Sc)(a.M,8))},token:wi,providedIn:"root"}),wi),Oi=((ki=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:ki}),ki.\u0275inj=a.Ac({factory:function(t){return new(t||ki)}}),ki),Di=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ei(){if(yi)return yi;if("object"!=typeof document||!document)return yi=new Set(Di);var t=document.createElement("input");return yi=new Set(Di.filter((function(e){return t.setAttribute("type",e),t.type===e})))}function Ai(t){return function(){if(null==Ci&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Ci=!0}}))}finally{Ci=Ci||!1}return Ci}()?t:!!t.capture}function Ti(){if("object"!=typeof document||!document)return 0;if(null==xi){var t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";var i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),xi=0,0===t.scrollLeft&&(t.scrollLeft=1,xi=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return xi}function Pi(t){if(function(){if(null==Si){var t="undefined"!=typeof document?document.head:null;Si=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Si}()){var e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}var Ri,Mi,Li,ji,Fi=((ji=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"create",value:function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}]),t}()).\u0275fac=function(t){return new(t||ji)},ji.\u0275prov=Object(a.zc)({factory:function(){return new ji},token:ji,providedIn:"root"}),ji),Ni=((Li=function(){function t(e){_classCallCheck(this,t),this._mutationObserverFactory=e,this._observedElements=new Map}return _createClass(t,[{key:"ngOnDestroy",value:function(){var t=this;this._observedElements.forEach((function(e,i){return t._cleanupObserver(i)}))}},{key:"observe",value:function(t){var e=this,i=_i(t);return new si.a((function(t){var n=e._observeElement(i).subscribe(t);return function(){n.unsubscribe(),e._unobserveElement(i)}}))}},{key:"_observeElement",value:function(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{var e=new Le.a,i=this._mutationObserverFactory.create((function(t){return e.next(t)}));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}},{key:"_unobserveElement",value:function(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}},{key:"_cleanupObserver",value:function(t){if(this._observedElements.has(t)){var e=this._observedElements.get(t),i=e.observer,n=e.stream;i&&i.disconnect(),n.complete(),this._observedElements.delete(t)}}}]),t}()).\u0275fac=function(t){return new(t||Li)(a.Sc(Fi))},Li.\u0275prov=Object(a.zc)({factory:function(){return new Li(Object(a.Sc)(Fi))},token:Li,providedIn:"root"}),Li),zi=((Mi=function(){function t(e,i,n){_classCallCheck(this,t),this._contentObserver=e,this._elementRef=i,this._ngZone=n,this.event=new a.u,this._disabled=!1,this._currentSubscription=null}return _createClass(t,[{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var t=this;this._unsubscribe();var e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular((function(){t._currentSubscription=(t.debounce?e.pipe(Ze(t.debounce)):e).subscribe(t.event)}))}},{key:"_unsubscribe",value:function(){this._currentSubscription&&this._currentSubscription.unsubscribe()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=fi(t),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(t){this._debounce=mi(t),this._subscribe()}}]),t}()).\u0275fac=function(t){return new(t||Mi)(a.Dc(Ni),a.Dc(a.r),a.Dc(a.I))},Mi.\u0275dir=a.yc({type:Mi,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),Mi),Bi=((Ri=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Ri}),Ri.\u0275inj=a.Ac({factory:function(t){return new(t||Ri)},providers:[Fi]}),Ri);function Ji(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var Vi,Hi,Ui=0,Gi=new Map,Wi=null,qi=((Vi=function(){function t(e){_classCallCheck(this,t),this._document=e}return _createClass(t,[{key:"describe",value:function(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Gi.set(e,{messageElement:e,referenceCount:0})):Gi.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}},{key:"removeDescription",value:function(t,e){if(this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){var i=Gi.get(e);i&&0===i.referenceCount&&this._deleteMessageElement(e)}Wi&&0===Wi.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var t=this._document.querySelectorAll("[cdk-describedby-host]"),e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute("cdk-describedby-host");Wi&&this._deleteMessagesContainer(),Gi.clear()}},{key:"_createMessageElement",value:function(t){var e=this._document.createElement("div");this._setMessageId(e),e.textContent=t,this._createMessagesContainer(),Wi.appendChild(e),Gi.set(t,{messageElement:e,referenceCount:0})}},{key:"_setMessageId",value:function(t){t.id||(t.id="cdk-describedby-message-".concat(Ui++))}},{key:"_deleteMessageElement",value:function(t){var e=Gi.get(t),i=e&&e.messageElement;Wi&&i&&Wi.removeChild(i),Gi.delete(t)}},{key:"_createMessagesContainer",value:function(){if(!Wi){var t=this._document.getElementById("cdk-describedby-message-container");t&&t.parentNode.removeChild(t),(Wi=this._document.createElement("div")).id="cdk-describedby-message-container",Wi.setAttribute("aria-hidden","true"),Wi.style.display="none",this._document.body.appendChild(Wi)}}},{key:"_deleteMessagesContainer",value:function(){Wi&&Wi.parentNode&&(Wi.parentNode.removeChild(Wi),Wi=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(t){var e=Ji(t,"aria-describedby").filter((function(t){return 0!=t.indexOf("cdk-describedby-message")}));t.setAttribute("aria-describedby",e.join(" "))}},{key:"_addMessageReference",value:function(t,e){var i,n,a,r,o=Gi.get(e);i=t,n="aria-describedby",a=o.messageElement.id,(r=Ji(i,n)).some((function(t){return t.trim()==a.trim()}))||(r.push(a.trim()),i.setAttribute(n,r.join(" "))),t.setAttribute("cdk-describedby-host",""),o.referenceCount++}},{key:"_removeMessageReference",value:function(t,e){var i,n,a,r,o=Gi.get(e);o.referenceCount--,i=t,n="aria-describedby",a=o.messageElement.id,(r=Ji(i,n).filter((function(t){return t!=a.trim()}))).length?i.setAttribute(n,r.join(" ")):i.removeAttribute(n),t.removeAttribute("cdk-describedby-host")}},{key:"_isElementDescribedByMessage",value:function(t,e){var i=Ji(t,"aria-describedby"),n=Gi.get(e),a=n&&n.messageElement.id;return!!a&&-1!=i.indexOf(a)}},{key:"_canBeDescribed",value:function(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;var i=null==e?"":"".concat(e).trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}},{key:"_isElementNode",value:function(t){return t.nodeType===this._document.ELEMENT_NODE}}]),t}()).\u0275fac=function(t){return new(t||Vi)(a.Sc(ye.e))},Vi.\u0275prov=Object(a.zc)({factory:function(){return new Vi(Object(a.Sc)(ye.e))},token:Vi,providedIn:"root"}),Vi),$i=function(){function t(e){var i=this;_classCallCheck(this,t),this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Le.a,this._typeaheadSubscription=je.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=function(t){return t.disabled},this._pressedLetters=[],this.tabOut=new Le.a,this.change=new Le.a,e instanceof a.O&&e.changes.subscribe((function(t){if(i._activeItem){var e=t.toArray().indexOf(i._activeItem);e>-1&&e!==i._activeItemIndex&&(i._activeItemIndex=e)}}))}return _createClass(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;if(this._items.length&&this._items.some((function(t){return"function"!=typeof t.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ge((function(e){return t._pressedLetters.push(e)})),Ze(e),ii((function(){return t._pressedLetters.length>0})),Object(ri.a)((function(){return t._pressedLetters.join("")}))).subscribe((function(e){for(var i=t._getItemsArray(),n=1;n<i.length+1;n++){var a=(t._activeItemIndex+n)%i.length,r=i[a];if(!t._skipPredicateFn(r)&&0===r.getLabel().toUpperCase().trim().indexOf(e)){t.setActiveItem(a);break}}t._pressedLetters=[]})),this}},{key:"setActiveItem",value:function(t){var e=this._activeItemIndex;this.updateActiveItem(t),this._activeItemIndex!==e&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var e=this,i=t.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every((function(i){return!t[i]||e._allowedModifierKeys.indexOf(i)>-1}));switch(i){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((n||Je(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(i>=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i))))}this._pressedLetters=[],t.preventDefault()}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),i=1;i<=e.length;i++){var n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof a.O?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),t}(),Ki=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(i.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),i}($i),Xi=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._origin="program",t}return _createClass(i,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){_get(_getPrototypeOf(i.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),i}($i),Yi=((Hi=function(){function t(e){_classCallCheck(this,t),this._platform=e}return _createClass(t,[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,i=function(t){try{return t.frameElement}catch(xB){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(i){var n=i&&i.nodeName.toLowerCase();if(-1===Qi(i))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===n)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(i))return!1}var a=t.nodeName.toLowerCase(),r=Qi(t);if(t.hasAttribute("contenteditable"))return-1!==r;if("iframe"===a)return!1;if("audio"===a){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===a){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==a||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}},{key:"isFocusable",value:function(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Zi(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}]),t}()).\u0275fac=function(t){return new(t||Hi)(a.Sc(Ii))},Hi.\u0275prov=Object(a.zc)({factory:function(){return new Hi(Object(a.Sc)(Ii))},token:Hi,providedIn:"root"}),Hi);function Zi(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Qi(t){if(!Zi(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var tn,en=function(){function t(e,i,n,a){var r=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,t),this._element=e,this._checker=i,this._ngZone=n,this._document=a,this._hasAttached=!1,this.startAnchorListener=function(){return r.focusLastTabbableElement()},this.endAnchorListener=function(){return r.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return _createClass(t,[{key:"destroy",value:function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusInitialElement())}))}))}},{key:"focusFirstTabbableElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusFirstTabbableElement())}))}))}},{key:"focusLastTabbableElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusLastTabbableElement())}))}))}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]")),i=0;i<e.length;i++)e[i].hasAttribute("cdk-focus-".concat(t))?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(t,"', ")+"use 'cdkFocusRegion".concat(t,"' instead. The deprecated ")+"attribute will be removed in 8.0.0.",e[i]):e[i].hasAttribute("cdk-focus-region-".concat(t))&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(t,"', ")+"use 'cdkFocusRegion".concat(t,"' instead. The deprecated attribute ")+"will be removed in 8.0.0.",e[i]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(){var t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return t?(t.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",t),Object(a.jb)()&&!this._checker.isFocusable(t)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",t),t.focus(),!0):this.focusFirstTabbableElement()}},{key:"focusFirstTabbableElement",value:function(){var t=this._getRegionBoundary("start");return t&&t.focus(),!!t}},{key:"focusLastTabbableElement",value:function(){var t=this._getRegionBoundary("end");return t&&t.focus(),!!t}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,i=0;i<e.length;i++){var n=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(n)return n}return null}},{key:"_getLastTabbableElement",value:function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,i=e.length-1;i>=0;i--){var n=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(n)return n}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(ui(1)).subscribe(t)}},{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}}]),t}(),nn=((tn=function(){function t(e,i,n){_classCallCheck(this,t),this._checker=e,this._ngZone=i,this._document=n}return _createClass(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new en(t,this._checker,this._ngZone,this._document,e)}}]),t}()).\u0275fac=function(t){return new(t||tn)(a.Sc(Yi),a.Sc(a.I),a.Sc(ye.e))},tn.\u0275prov=Object(a.zc)({factory:function(){return new tn(Object(a.Sc)(Yi),Object(a.Sc)(a.I),Object(a.Sc)(ye.e))},token:tn,providedIn:"root"}),tn);"undefined"!=typeof Element&&Element;var an,rn=new a.x("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),on=new a.x("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),sn=((an=function(){function t(e,i,n,a){_classCallCheck(this,t),this._ngZone=i,this._defaultOptions=a,this._document=n,this._liveElement=e||this._createLiveElement()}return _createClass(t,[{key:"announce",value:function(t){for(var e,i,n,a=this,r=this._defaultOptions,o=arguments.length,s=new Array(o>1?o-1:0),c=1;c<o;c++)s[c-1]=arguments[c];return 1===s.length&&"number"==typeof s[0]?n=s[0]:(i=(e=_slicedToArray(s,2))[0],n=e[1]),this.clear(),clearTimeout(this._previousTimeout),i||(i=r&&r.politeness?r.politeness:"polite"),null==n&&r&&(n=r.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular((function(){return new Promise((function(e){clearTimeout(a._previousTimeout),a._previousTimeout=setTimeout((function(){a._liveElement.textContent=t,e(),"number"==typeof n&&(a._previousTimeout=setTimeout((function(){return a.clear()}),n))}),100)}))}))}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}},{key:"_createLiveElement",value:function(){for(var t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div"),i=0;i<t.length;i++)t[i].parentNode.removeChild(t[i]);return e.classList.add("cdk-live-announcer-element"),e.classList.add("cdk-visually-hidden"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),e}}]),t}()).\u0275fac=function(t){return new(t||an)(a.Sc(rn,8),a.Sc(a.I),a.Sc(ye.e),a.Sc(on,8))},an.\u0275prov=Object(a.zc)({factory:function(){return new an(Object(a.Sc)(rn,8),Object(a.Sc)(a.I),Object(a.Sc)(ye.e),Object(a.Sc)(on,8))},token:an,providedIn:"root"}),an);function cn(t){return 0===t.buttons}var ln,un=new a.x("cdk-focus-monitor-default-options"),dn=Ai({passive:!0,capture:!0}),hn=((ln=function(){function t(e,i,n,a){var r=this;_classCallCheck(this,t),this._ngZone=e,this._platform=i,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){r._lastTouchTarget=null,r._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(t){if(!r._lastTouchTarget){var e=cn(t)?"keyboard":"mouse";r._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=function(t){null!=r._touchTimeoutId&&clearTimeout(r._touchTimeoutId),r._lastTouchTarget=pn(t),r._touchTimeoutId=setTimeout((function(){return r._lastTouchTarget=null}),650)},this._windowFocusListener=function(){r._windowFocused=!0,r._windowFocusTimeoutId=setTimeout((function(){return r._windowFocused=!1}))},this._rootNodeFocusAndBlurListener=function(t){for(var e=pn(t),i="focus"===t.type?r._onFocus:r._onBlur,n=e;n;n=n.parentElement)i.call(r,t,n)},this._document=n,this._detectionMode=(null==a?void 0:a.detectionMode)||0}return _createClass(t,[{key:"monitor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._platform.isBrowser)return Be(null);var i=_i(t),n=Pi(i)||this._getDocument(),a=this._elementInfo.get(i);if(a)return e&&(a.checkChildren=!0),a.subject.asObservable();var r={checkChildren:e,subject:new Le.a,rootNode:n};return this._elementInfo.set(i,r),this._registerGlobalListeners(r),r.subject.asObservable()}},{key:"stopMonitoring",value:function(t){var e=_i(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}},{key:"focusVia",value:function(t,e,i){var n=_i(t);this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i)}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach((function(e,i){return t.stopMonitoring(i)}))}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,i){i?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}},{key:"_setClasses",value:function(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}},{key:"_setOriginForCurrentEventQueue",value:function(t){var e=this;this._ngZone.runOutsideAngular((function(){e._origin=t,0===e._detectionMode&&(e._originTimeoutId=setTimeout((function(){return e._origin=null}),1))}))}},{key:"_wasCausedByTouch",value:function(t){var e=pn(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(t,e){var i=this._elementInfo.get(e);if(i&&(i.checkChildren||e===pn(t))){var n=this._getFocusOrigin(t);this._setClasses(e,n),this._emitOrigin(i.subject,n),this._lastFocusOrigin=n}}},{key:"_onBlur",value:function(t,e){var i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run((function(){return t.next(e)}))}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var i=t.rootNode,n=this._rootNodeFocusListenerCount.get(i)||0;n||this._ngZone.runOutsideAngular((function(){i.addEventListener("focus",e._rootNodeFocusAndBlurListener,dn),i.addEventListener("blur",e._rootNodeFocusAndBlurListener,dn)})),this._rootNodeFocusListenerCount.set(i,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular((function(){var t=e._getDocument(),i=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,dn),t.addEventListener("mousedown",e._documentMousedownListener,dn),t.addEventListener("touchstart",e._documentTouchstartListener,dn),i.addEventListener("focus",e._windowFocusListener)}))}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var i=this._rootNodeFocusListenerCount.get(e);i>1?this._rootNodeFocusListenerCount.set(e,i-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,dn),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,dn),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){var n=this._getDocument(),a=this._getWindow();n.removeEventListener("keydown",this._documentKeydownListener,dn),n.removeEventListener("mousedown",this._documentMousedownListener,dn),n.removeEventListener("touchstart",this._documentTouchstartListener,dn),a.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}]),t}()).\u0275fac=function(t){return new(t||ln)(a.Sc(a.I),a.Sc(Ii),a.Sc(ye.e,8),a.Sc(un,8))},ln.\u0275prov=Object(a.zc)({factory:function(){return new ln(Object(a.Sc)(a.I),Object(a.Sc)(Ii),Object(a.Sc)(ye.e,8),Object(a.Sc)(un,8))},token:ln,providedIn:"root"}),ln);function pn(t){return t.composedPath?t.composedPath()[0]:t.target}var fn,mn,gn,vn,bn,_n,yn=((gn=function(){function t(e,i){var n=this;_classCallCheck(this,t),this._elementRef=e,this._focusMonitor=i,this.cdkFocusChange=new a.u,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe((function(t){return n.cdkFocusChange.emit(t)}))}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}]),t}()).\u0275fac=function(t){return new(t||gn)(a.Dc(a.r),a.Dc(hn))},gn.\u0275dir=a.yc({type:gn,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),gn),kn=((mn=function(){function t(e,i){_classCallCheck(this,t),this._platform=e,this._document=i}return _createClass(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");var e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}]),t}()).\u0275fac=function(t){return new(t||mn)(a.Sc(Ii),a.Sc(ye.e))},mn.\u0275prov=Object(a.zc)({factory:function(){return new mn(Object(a.Sc)(Ii),Object(a.Sc)(ye.e))},token:mn,providedIn:"root"}),mn),wn=((fn=function t(e){_classCallCheck(this,t),e._applyBodyHighContrastModeCssClasses()}).\u0275mod=a.Bc({type:fn}),fn.\u0275inj=a.Ac({factory:function(t){return new(t||fn)(a.Sc(kn))},imports:[[Oi,Bi]]}),fn),Cn=new a.x("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(a.ib)(ye.e)}}),xn=((_n=function(){function t(e){if(_classCallCheck(this,t),this.value="ltr",this.change=new a.u,e){var i=e.documentElement?e.documentElement.dir:null,n=(e.body?e.body.dir:null)||i;this.value="ltr"===n||"rtl"===n?n:"ltr"}}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}()).\u0275fac=function(t){return new(t||_n)(a.Sc(Cn,8))},_n.\u0275prov=Object(a.zc)({factory:function(){return new _n(Object(a.Sc)(Cn,8))},token:_n,providedIn:"root"}),_n),Sn=((bn=function(){function t(){_classCallCheck(this,t),this._dir="ltr",this._isInitialized=!1,this.change=new a.u}return _createClass(t,[{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){this.change.complete()}},{key:"dir",get:function(){return this._dir},set:function(t){var e=this._dir,i=t?t.toLowerCase():t;this._rawDir=t,this._dir="ltr"===i||"rtl"===i?i:"ltr",e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}},{key:"value",get:function(){return this.dir}}]),t}()).\u0275fac=function(t){return new(t||bn)},bn.\u0275dir=a.yc({type:bn,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.qc("dir",e._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[a.oc([{provide:xn,useExisting:bn}])]}),bn),In=((vn=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:vn}),vn.\u0275inj=a.Ac({factory:function(t){return new(t||vn)}}),vn),On=new a.ab("9.2.4"),Dn=i("bHdf");function En(){return Object(Dn.a)(1)}function An(){return En()(Be.apply(void 0,arguments))}function Tn(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e[e.length-1];return Object(Fe.a)(n)?(e.pop(),function(t){return An(e,t,n)}):function(t){return An(e,t)}}var Pn=["*",[["mat-option"],["ng-container"]]],Rn=["*","mat-option, ng-container"];function Mn(t,e){if(1&t&&a.Ec(0,"mat-pseudo-checkbox",3),2&t){var i=a.ad();a.gd("state",i.selected?"checked":"unchecked")("disabled",i.disabled)}}var Ln,jn=["*"],Fn=function(){var t=function t(){_classCallCheck(this,t)};return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t}(),Nn=function(){var t=function t(){_classCallCheck(this,t)};return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t}(),zn=new a.ab("9.2.0"),Bn=new a.x("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Jn=((Ln=function(){function t(e,i,n){_classCallCheck(this,t),this._hasDoneGlobalChecks=!1,this._document=n,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return _createClass(t,[{key:"_getDocument",value:function(){var t=this._document||document;return"object"==typeof t&&t?t:null}},{key:"_getWindow",value:function(){var t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Object(a.jb)()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var t=this._getWindow();return t&&(t.__karma__||t.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){var t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){var t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(!t&&e&&e.body&&"function"==typeof getComputedStyle){var i=e.createElement("div");i.classList.add("mat-theme-loaded-marker"),e.body.appendChild(i);var n=getComputedStyle(i);n&&"none"!==n.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(i)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&zn.full!==On.full&&console.warn("The Angular Material version ("+zn.full+") does not match the Angular CDK version ("+On.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),t}()).\u0275mod=a.Bc({type:Ln}),Ln.\u0275inj=a.Ac({factory:function(t){return new(t||Ln)(a.Sc(kn),a.Sc(Bn,8),a.Sc(ye.e,8))},imports:[[In],In]}),Ln);function Vn(t){return function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;_classCallCheck(this,i);for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a)))._disabled=!1,t}return _createClass(i,[{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=fi(t)}}]),i}(t)}function Hn(t,e){return function(t){_inherits(n,t);var i=_createSuper(n);function n(){var t;_classCallCheck(this,n);for(var a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];return(t=i.call.apply(i,[this].concat(r))).color=e,t}return _createClass(n,[{key:"color",get:function(){return this._color},set:function(t){var i=t||e;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),i&&this._elementRef.nativeElement.classList.add("mat-".concat(i)),this._color=i)}}]),n}(t)}function Un(t){return function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;_classCallCheck(this,i);for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a)))._disableRipple=!1,t}return _createClass(i,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=fi(t)}}]),i}(t)}function Gn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(t){_inherits(n,t);var i=_createSuper(n);function n(){var t;_classCallCheck(this,n);for(var a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];return(t=i.call.apply(i,[this].concat(r)))._tabIndex=e,t}return _createClass(n,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(t){this._tabIndex=null!=t?t:e}}]),n}(t)}function Wn(t){return function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;_classCallCheck(this,i);for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a))).errorState=!1,t.stateChanges=new Le.a,t}return _createClass(i,[{key:"updateErrorState",value:function(){var t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}]),i}(t)}function qn(t){return function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;_classCallCheck(this,i);for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a)))._isInitialized=!1,t._pendingSubscribers=[],t.initialized=new si.a((function(e){t._isInitialized?t._notifySubscriber(e):t._pendingSubscribers.push(e)})),t}return _createClass(i,[{key:"_markInitialized",value:function(){if(this._isInitialized)throw Error("This directive has already been marked as initialized and should not be called twice.");this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}},{key:"_notifySubscriber",value:function(t){t.next(),t.complete()}}]),i}(t)}var $n,Kn=new a.x("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(a.ib)(a.C)}}),Xn=function(){function t(){_classCallCheck(this,t),this._localeChanges=new Le.a}return _createClass(t,[{key:"deserialize",value:function(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}},{key:"setLocale",value:function(t){this.locale=t,this._localeChanges.next()}},{key:"compareDate",value:function(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}},{key:"sameDate",value:function(t,e){if(t&&e){var i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}},{key:"clampDate",value:function(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}},{key:"localeChanges",get:function(){return this._localeChanges}}]),t}(),Yn=new a.x("mat-date-formats");try{$n="undefined"!=typeof Intl}catch(xB){$n=!1}var Zn={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Qn=ia(31,(function(t){return String(t+1)})),ta={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},ea=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function ia(t,e){for(var i=Array(t),n=0;n<t;n++)i[n]=e(n);return i}var na,aa,ra,oa,sa,ca=((aa=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this)).useUtcForDisplay=!0,_get(_getPrototypeOf(i.prototype),"setLocale",_assertThisInitialized(a)).call(_assertThisInitialized(a),t),a.useUtcForDisplay=!n.TRIDENT,a._clampDate=n.TRIDENT||n.EDGE,a}return _createClass(i,[{key:"getYear",value:function(t){return t.getFullYear()}},{key:"getMonth",value:function(t){return t.getMonth()}},{key:"getDate",value:function(t){return t.getDate()}},{key:"getDayOfWeek",value:function(t){return t.getDay()}},{key:"getMonthNames",value:function(t){var e=this;if($n){var i=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return ia(12,(function(t){return e._stripDirectionalityCharacters(e._format(i,new Date(2017,t,1)))}))}return Zn[t]}},{key:"getDateNames",value:function(){var t=this;if($n){var e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return ia(31,(function(i){return t._stripDirectionalityCharacters(t._format(e,new Date(2017,0,i+1)))}))}return Qn}},{key:"getDayOfWeekNames",value:function(t){var e=this;if($n){var i=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return ia(7,(function(t){return e._stripDirectionalityCharacters(e._format(i,new Date(2017,0,t+1)))}))}return ta[t]}},{key:"getYearName",value:function(t){if($n){var e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}},{key:"getFirstDayOfWeek",value:function(){return 0}},{key:"getNumDaysInMonth",value:function(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}},{key:"clone",value:function(t){return new Date(t.getTime())}},{key:"createDate",value:function(t,e,i){if(e<0||e>11)throw Error('Invalid month index "'.concat(e,'". Month index has to be between 0 and 11.'));if(i<1)throw Error('Invalid date "'.concat(i,'". Date has to be greater than 0.'));var n=this._createDateWithOverflow(t,e,i);if(n.getMonth()!=e)throw Error('Invalid date "'.concat(i,'" for month with index "').concat(e,'".'));return n}},{key:"today",value:function(){return new Date}},{key:"parse",value:function(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}},{key:"format",value:function(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if($n){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});var i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}},{key:"addCalendarYears",value:function(t,e){return this.addCalendarMonths(t,12*e)}},{key:"addCalendarMonths",value:function(t,e){var i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}},{key:"addCalendarDays",value:function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}},{key:"toIso8601",value:function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}},{key:"deserialize",value:function(t){if("string"==typeof t){if(!t)return null;if(ea.test(t)){var e=new Date(t);if(this.isValid(e))return e}}return _get(_getPrototypeOf(i.prototype),"deserialize",this).call(this,t)}},{key:"isDateInstance",value:function(t){return t instanceof Date}},{key:"isValid",value:function(t){return!isNaN(t.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(t,e,i){var n=new Date(t,e,i);return t>=0&&t<100&&n.setFullYear(this.getYear(n)-1900),n}},{key:"_2digit",value:function(t){return("00"+t).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(t){return t.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(t,e){var i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(i)}}]),i}(Xn)).\u0275fac=function(t){return new(t||aa)(a.Sc(Kn,8),a.Sc(Ii))},aa.\u0275prov=a.zc({token:aa,factory:aa.\u0275fac}),aa),la=((na=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:na}),na.\u0275inj=a.Ac({factory:function(t){return new(t||na)},providers:[{provide:Xn,useClass:ca}],imports:[[Oi]]}),na),ua={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},da=((sa=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:sa}),sa.\u0275inj=a.Ac({factory:function(t){return new(t||sa)},providers:[{provide:Yn,useValue:ua}],imports:[[la]]}),sa),ha=((oa=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"isErrorState",value:function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}]),t}()).\u0275fac=function(t){return new(t||oa)},oa.\u0275prov=Object(a.zc)({factory:function(){return new oa},token:oa,providedIn:"root"}),oa),pa=((ra=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||ra)},ra.\u0275dir=a.yc({type:ra,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),ra);function fa(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";t.changes.pipe(Tn(t)).subscribe((function(t){var n=t.length;ma(e,"".concat(i,"-2-line"),!1),ma(e,"".concat(i,"-3-line"),!1),ma(e,"".concat(i,"-multi-line"),!1),2===n||3===n?ma(e,"".concat(i,"-").concat(n,"-line"),!0):n>3&&ma(e,"".concat(i,"-multi-line"),!0)}))}function ma(t,e,i){var n=t.nativeElement.classList;i?n.add(e):n.remove(e)}var ga,va,ba,_a,ya,ka,wa,Ca=((ga=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:ga}),ga.\u0275inj=a.Ac({factory:function(t){return new(t||ga)},imports:[[Jn],Jn]}),ga),xa=function(){function t(e,i,n){_classCallCheck(this,t),this._renderer=e,this.element=i,this.config=n,this.state=3}return _createClass(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),Sa={enterDuration:450,exitDuration:400},Ia=Ai({passive:!0}),Oa=function(){function t(e,i,n,a){var r=this;_classCallCheck(this,t),this._target=e,this._ngZone=i,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=function(t){var e=cn(t),i=r._lastTouchStartEvent&&Date.now()<r._lastTouchStartEvent+800;r._target.rippleDisabled||e||i||(r._isPointerDown=!0,r.fadeInRipple(t.clientX,t.clientY,r._target.rippleConfig))},this._onTouchStart=function(t){if(!r._target.rippleDisabled){r._lastTouchStartEvent=Date.now(),r._isPointerDown=!0;for(var e=t.changedTouches,i=0;i<e.length;i++)r.fadeInRipple(e[i].clientX,e[i].clientY,r._target.rippleConfig)}},this._onPointerUp=function(){r._isPointerDown&&(r._isPointerDown=!1,r._activeRipples.forEach((function(t){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()})))},a.isBrowser&&(this._containerElement=_i(n),this._triggerEvents.set("mousedown",this._onMousedown).set("mouseup",this._onPointerUp).set("mouseleave",this._onPointerUp).set("touchstart",this._onTouchStart).set("touchend",this._onPointerUp).set("touchcancel",this._onPointerUp))}return _createClass(t,[{key:"fadeInRipple",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},Sa),n.animation);n.centered&&(t=a.left+a.width/2,e=a.top+a.height/2);var o=n.radius||function(t,e,i){var n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),a=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+a*a)}(t,e,a),s=t-a.left,c=e-a.top,l=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left="".concat(s-o,"px"),u.style.top="".concat(c-o,"px"),u.style.height="".concat(2*o,"px"),u.style.width="".concat(2*o,"px"),null!=n.color&&(u.style.backgroundColor=n.color),u.style.transitionDuration="".concat(l,"ms"),this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";var d=new xa(this,u,n);return d.state=0,this._activeRipples.add(d),n.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone((function(){var t=d===i._mostRecentTransientRipple;d.state=1,n.persistent||t&&i._isPointerDown||d.fadeOut()}),l),d}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var i=t.element,n=Object.assign(Object.assign({},Sa),t.config.animation);i.style.transitionDuration="".concat(n.exitDuration,"ms"),i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone((function(){t.state=3,i.parentNode.removeChild(i)}),n.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach((function(t){return t.fadeOut()}))}},{key:"setupTriggerEvents",value:function(t){var e=this,i=_i(t);i&&i!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular((function(){e._triggerEvents.forEach((function(t,e){i.addEventListener(e,t,Ia)}))})),this._triggerElement=i)}},{key:"_runTimeoutOutsideZone",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular((function(){return setTimeout(t,e)}))}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&this._triggerEvents.forEach((function(e,i){t._triggerElement.removeEventListener(i,e,Ia)}))}}]),t}(),Da=new a.x("mat-ripple-global-options"),Ea=((ya=function(){function t(e,i,n,a,r){_classCallCheck(this,t),this._elementRef=e,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new Oa(this,i,e,n),"NoopAnimations"===r&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}return _createClass(t,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign({},this._globalOptions.animation),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),t}()).\u0275fac=function(t){return new(t||ya)(a.Dc(a.r),a.Dc(a.I),a.Dc(Ii),a.Dc(Da,8),a.Dc(Pe,8))},ya.\u0275dir=a.yc({type:ya,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&a.tc("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),ya),Aa=((_a=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:_a}),_a.\u0275inj=a.Ac({factory:function(t){return new(t||_a)},imports:[[Jn,Oi],Jn]}),_a),Ta=((ba=function t(e){_classCallCheck(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1}).\u0275fac=function(t){return new(t||ba)(a.Dc(Pe,8))},ba.\u0275cmp=a.xc({type:ba,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&a.tc("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),ba),Pa=((va=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:va}),va.\u0275inj=a.Ac({factory:function(t){return new(t||va)}}),va),Ra=Vn((function t(){_classCallCheck(this,t)})),Ma=0,La=((ka=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._labelId="mat-optgroup-label-".concat(Ma++),t}return i}(Ra)).\u0275fac=function(t){return ja(t||ka)},ka.\u0275cmp=a.xc({type:ka,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(a.qc("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),a.tc("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[a.mc],ngContentSelectors:Rn,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(a.fd(Pn),a.Jc(0,"label",0),a.Bd(1),a.ed(2),a.Ic(),a.ed(3,1)),2&t&&(a.gd("id",e._labelId),a.pc(1),a.Dd("",e.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),ka),ja=a.Lc(La),Fa=0,Na=function t(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,t),this.source=e,this.isUserInput=i},za=new a.x("MAT_OPTION_PARENT_COMPONENT"),Ba=((wa=function(){function t(e,i,n,r){_classCallCheck(this,t),this._element=e,this._changeDetectorRef=i,this._parent=n,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(Fa++),this.onSelectionChange=new a.u,this._stateChanges=new Le.a}return _createClass(t,[{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(t,e){var i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(t){13!==t.keyCode&&32!==t.keyCode||Je(t)||(this._selectViaInteraction(),t.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new Na(this,t))}},{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=fi(t)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}}]),t}()).\u0275fac=function(t){return new(t||wa)(a.Dc(a.r),a.Dc(a.j),a.Dc(za,8),a.Dc(La,8))},wa.\u0275cmp=a.xc({type:wa,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&a.Wc("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(a.Mc("id",e.id),a.qc("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),a.tc("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:jn,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(a.fd(),a.zd(0,Mn,1,2,"mat-pseudo-checkbox",0),a.Jc(1,"span",1),a.ed(2),a.Ic(),a.Ec(3,"div",2)),2&t&&(a.gd("ngIf",e.multiple),a.pc(3),a.gd("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[ye.t,Ea,Ta],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),wa);function Ja(t,e,i){if(i.length){for(var n=e.toArray(),a=i.toArray(),r=0,o=0;o<t+1;o++)n[o].group&&n[o].group===a[r]&&r++;return r}return 0}function Va(t,e,i,n){var a=t*e;return a<i?a:a+e>i+n?Math.max(0,a-n+e):i}var Ha,Ua,Ga,Wa,qa=((Ha=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Ha}),Ha.\u0275inj=a.Ac({factory:function(t){return new(t||Ha)},imports:[[Aa,ye.c,Pa]]}),Ha),$a=new a.x("mat-label-global-options"),Ka=["mat-button",""],Xa=["*"],Ya=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Za=Hn(Vn(Un((function t(e){_classCallCheck(this,t),this._elementRef=e})))),Qa=((Wa=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;_classCallCheck(this,i),(r=e.call(this,t))._focusMonitor=n,r._animationMode=a,r.isRoundButton=r._hasHostAttributes("mat-fab","mat-mini-fab"),r.isIconButton=r._hasHostAttributes("mat-icon-button");var o,s=_createForOfIteratorHelper(Ya);try{for(s.s();!(o=s.n()).done;){var c=o.value;r._hasHostAttributes(c)&&r._getHostElement().classList.add(c)}}catch(l){s.e(l)}finally{s.f()}return t.nativeElement.classList.add("mat-button-base"),r._focusMonitor.monitor(r._elementRef,!0),r.isRoundButton&&(r.color="accent"),r}return _createClass(i,[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),t,e)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return i.some((function(e){return t._getHostElement().hasAttribute(e)}))}}]),i}(Za)).\u0275fac=function(t){return new(t||Wa)(a.Dc(a.r),a.Dc(hn),a.Dc(Pe,8))},Wa.\u0275cmp=a.xc({type:Wa,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){var i;1&t&&a.Fd(Ea,!0),2&t&&a.md(i=a.Xc())&&(e.ripple=i.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:3,hostBindings:function(t,e){2&t&&(a.qc("disabled",e.disabled||null),a.tc("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[a.mc],attrs:Ka,ngContentSelectors:Xa,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(a.fd(),a.Jc(0,"span",0),a.ed(1),a.Ic(),a.Ec(2,"div",1),a.Ec(3,"div",2)),2&t&&(a.pc(2),a.tc("mat-button-ripple-round",e.isRoundButton||e.isIconButton),a.gd("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Ea],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),Wa),tr=((Ga=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){return _classCallCheck(this,i),e.call(this,n,t,a)}return _createClass(i,[{key:"_haltDisabledEvents",value:function(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}]),i}(Qa)).\u0275fac=function(t){return new(t||Ga)(a.Dc(hn),a.Dc(a.r),a.Dc(Pe,8))},Ga.\u0275cmp=a.xc({type:Ga,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){1&t&&a.Wc("click",(function(t){return e._haltDisabledEvents(t)})),2&t&&(a.qc("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),a.tc("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[a.mc],attrs:Ka,ngContentSelectors:Xa,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(a.fd(),a.Jc(0,"span",0),a.ed(1),a.Ic(),a.Ec(2,"div",1),a.Ec(3,"div",2)),2&t&&(a.pc(2),a.tc("mat-button-ripple-round",e.isRoundButton||e.isIconButton),a.gd("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Ea],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),Ga),er=((Ua=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Ua}),Ua.\u0275inj=a.Ac({factory:function(t){return new(t||Ua)},imports:[[Aa,Jn],Jn]}),Ua);function ir(t){return t&&"function"==typeof t.connect}var nr,ar=function(){function t(){var e=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,t),this._multiple=i,this._emitChanges=a,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Le.a,n&&n.length&&(i?n.forEach((function(t){return e._markSelected(t)})):this._markSelected(n[0]),this._selectedToEmit.length=0)}return _createClass(t,[{key:"select",value:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];this._verifyValueAssignment(i),i.forEach((function(e){return t._markSelected(e)})),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];this._verifyValueAssignment(i),i.forEach((function(e){return t._unmarkSelected(e)})),this._emitChangeEvent()}},{key:"toggle",value:function(t){this.isSelected(t)?this.deselect(t):this.select(t)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(t){return this._selection.has(t)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(t){this._multiple&&this.selected&&this._selected.sort(t)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}},{key:"_unmarkSelected",value:function(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}},{key:"_unmarkAll",value:function(){var t=this;this.isEmpty()||this._selection.forEach((function(e){return t._unmarkSelected(e)}))}},{key:"_verifyValueAssignment",value:function(t){if(t.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}},{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}}]),t}(),rr=((nr=function(){function t(){_classCallCheck(this,t),this._listeners=[]}return _createClass(t,[{key:"notify",value:function(t,e){var i,n=_createForOfIteratorHelper(this._listeners);try{for(n.s();!(i=n.n()).done;)(0,i.value)(t,e)}catch(a){n.e(a)}finally{n.f()}}},{key:"listen",value:function(t){var e=this;return this._listeners.push(t),function(){e._listeners=e._listeners.filter((function(e){return t!==e}))}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),t}()).\u0275fac=function(t){return new(t||nr)},nr.\u0275prov=Object(a.zc)({factory:function(){return new nr},token:nr,providedIn:"root"}),nr),or=i("DH7j"),sr=i("XoHu"),cr=i("Cfvw");function lr(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];if(1===e.length){var n=e[0];if(Object(or.a)(n))return ur(n,null);if(Object(sr.a)(n)&&Object.getPrototypeOf(n)===Object.prototype){var a=Object.keys(n);return ur(a.map((function(t){return n[t]})),a)}}if("function"==typeof e[e.length-1]){var r=e.pop();return ur(e=1===e.length&&Object(or.a)(e[0])?e[0]:e,null).pipe(Object(ri.a)((function(t){return r.apply(void 0,_toConsumableArray(t))})))}return ur(e,null)}function ur(t,e){return new si.a((function(i){var n=t.length;if(0!==n)for(var a=new Array(n),r=0,o=0,s=function(s){var c=Object(cr.a)(t[s]),l=!1;i.add(c.subscribe({next:function(t){l||(l=!0,o++),a[s]=t},error:function(t){return i.error(t)},complete:function(){++r!==n&&l||(o===n&&i.next(e?e.reduce((function(t,e,i){return t[e]=a[i],t}),{}):a),i.complete())}}))},c=0;c<n;c++)s(c);else i.complete()}))}var dr,hr,pr,fr,mr=new a.x("NgValueAccessor"),gr={provide:mr,useExisting:Object(a.hb)((function(){return vr})),multi:!0},vr=((dr=function(){function t(e,i){_classCallCheck(this,t),this._renderer=e,this._elementRef=i,this.onChange=function(t){},this.onTouched=function(){}}return _createClass(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}()).\u0275fac=function(t){return new(t||dr)(a.Dc(a.P),a.Dc(a.r))},dr.\u0275dir=a.yc({type:dr,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&a.Wc("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[a.oc([gr])]}),dr),br={provide:mr,useExisting:Object(a.hb)((function(){return yr})),multi:!0},_r=new a.x("CompositionEventMode"),yr=((fr=function(){function t(e,i,n){var a;_classCallCheck(this,t),this._renderer=e,this._elementRef=i,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(a=Object(ye.N)()?Object(ye.N)().getUserAgent():"",!/android (\d+)/.test(a.toLowerCase())))}return _createClass(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_handleInput",value:function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}]),t}()).\u0275fac=function(t){return new(t||fr)(a.Dc(a.P),a.Dc(a.r),a.Dc(_r,8))},fr.\u0275dir=a.yc({type:fr,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&a.Wc("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[a.oc([br])]}),fr),kr=((pr=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"reset",value:function(t){this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}}]),t}()).\u0275fac=function(t){return new(t||pr)},pr.\u0275dir=a.yc({type:pr}),pr),wr=((hr=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),i}(kr)).\u0275fac=function(t){return Cr(t||hr)},hr.\u0275dir=a.yc({type:hr,features:[a.mc]}),hr),Cr=a.Lc(wr);function xr(){throw new Error("unimplemented")}var Sr,Ir,Or=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return _createClass(i,[{key:"validator",get:function(){return xr()}},{key:"asyncValidator",get:function(){return xr()}}]),i}(kr),Dr=function(){function t(e){_classCallCheck(this,t),this._cd=e}return _createClass(t,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),t}(),Er=((Ir=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){return _classCallCheck(this,i),e.call(this,t)}return i}(Dr)).\u0275fac=function(t){return new(t||Ir)(a.Dc(Or,2))},Ir.\u0275dir=a.yc({type:Ir,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&a.tc("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[a.mc]}),Ir),Ar=((Sr=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){return _classCallCheck(this,i),e.call(this,t)}return i}(Dr)).\u0275fac=function(t){return new(t||Sr)(a.Dc(wr,2))},Sr.\u0275dir=a.yc({type:Sr,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&a.tc("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[a.mc]}),Sr);function Tr(t){return null==t||0===t.length}var Pr=new a.x("NgValidators"),Rr=new a.x("NgAsyncValidators"),Mr=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Lr=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"min",value:function(t){return function(e){if(Tr(e.value)||Tr(t))return null;var i=parseFloat(e.value);return!isNaN(i)&&i<t?{min:{min:t,actual:e.value}}:null}}},{key:"max",value:function(t){return function(e){if(Tr(e.value)||Tr(t))return null;var i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}},{key:"required",value:function(t){return Tr(t.value)?{required:!0}:null}},{key:"requiredTrue",value:function(t){return!0===t.value?null:{required:!0}}},{key:"email",value:function(t){return Tr(t.value)||Mr.test(t.value)?null:{email:!0}}},{key:"minLength",value:function(t){return function(e){if(Tr(e.value))return null;var i=e.value?e.value.length:0;return i<t?{minlength:{requiredLength:t,actualLength:i}}:null}}},{key:"maxLength",value:function(t){return function(e){var i=e.value?e.value.length:0;return i>t?{maxlength:{requiredLength:t,actualLength:i}}:null}}},{key:"pattern",value:function(e){return e?("string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),i=new RegExp(n)):(n=e.toString(),i=e),function(t){if(Tr(t.value))return null;var e=t.value;return i.test(e)?null:{pattern:{requiredPattern:n,actualValue:e}}}):t.nullValidator;var i,n}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){if(!t)return null;var e=t.filter(jr);return 0==e.length?null:function(t){return Nr(function(t,e){return e.map((function(e){return e(t)}))}(t,e))}}},{key:"composeAsync",value:function(t){if(!t)return null;var e=t.filter(jr);return 0==e.length?null:function(t){return lr(function(t,e){return e.map((function(e){return e(t)}))}(t,e).map(Fr)).pipe(Object(ri.a)(Nr))}}}]),t}();function jr(t){return null!=t}function Fr(t){var e=Object(a.Sb)(t)?Object(cr.a)(t):t;if(!Object(a.Rb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Nr(t){var e={};return t.forEach((function(t){e=null!=t?Object.assign(Object.assign({},e),t):e})),0===Object.keys(e).length?null:e}function zr(t){return t.validate?function(e){return t.validate(e)}:t}function Br(t){return t.validate?function(e){return t.validate(e)}:t}var Jr,Vr,Hr,Ur,Gr={provide:mr,useExisting:Object(a.hb)((function(){return Wr})),multi:!0},Wr=((Jr=function(){function t(e,i){_classCallCheck(this,t),this._renderer=e,this._elementRef=i,this.onChange=function(t){},this.onTouched=function(){}}return _createClass(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}()).\u0275fac=function(t){return new(t||Jr)(a.Dc(a.P),a.Dc(a.r))},Jr.\u0275dir=a.yc({type:Jr,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&a.Wc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[a.oc([Gr])]}),Jr),qr={provide:mr,useExisting:Object(a.hb)((function(){return Kr})),multi:!0},$r=((Hr=function(){function t(){_classCallCheck(this,t),this._accessors=[]}return _createClass(t,[{key:"add",value:function(t,e){this._accessors.push([t,e])}},{key:"remove",value:function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}},{key:"select",value:function(t){var e=this;this._accessors.forEach((function(i){e._isSameGroup(i,t)&&i[1]!==t&&i[1].fireUncheck(t.value)}))}},{key:"_isSameGroup",value:function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}]),t}()).\u0275fac=function(t){return new(t||Hr)},Hr.\u0275prov=a.zc({token:Hr,factory:Hr.\u0275fac}),Hr),Kr=((Vr=function(){function t(e,i,n,a){_classCallCheck(this,t),this._renderer=e,this._elementRef=i,this._registry=n,this._injector=a,this.onChange=function(){},this.onTouched=function(){}}return _createClass(t,[{key:"ngOnInit",value:function(){this._control=this._injector.get(Or),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}}},{key:"fireUncheck",value:function(t){this.writeValue(t)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}},{key:"_throwNameError",value:function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')}}]),t}()).\u0275fac=function(t){return new(t||Vr)(a.Dc(a.P),a.Dc(a.r),a.Dc($r),a.Dc(a.y))},Vr.\u0275dir=a.yc({type:Vr,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&a.Wc("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[a.oc([qr])]}),Vr),Xr={provide:mr,useExisting:Object(a.hb)((function(){return Yr})),multi:!0},Yr=((Ur=function(){function t(e,i){_classCallCheck(this,t),this._renderer=e,this._elementRef=i,this.onChange=function(t){},this.onTouched=function(){}}return _createClass(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}()).\u0275fac=function(t){return new(t||Ur)(a.Dc(a.P),a.Dc(a.r))},Ur.\u0275dir=a.yc({type:Ur,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&a.Wc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[a.oc([Xr])]}),Ur),Zr='\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Qr='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',to='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',eo=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"controlParentException",value:function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat(Zr))}},{key:"ngModelGroupException",value:function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '.concat(Qr,"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ").concat(to))}},{key:"missingFormException",value:function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ".concat(Zr))}},{key:"groupParentException",value:function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat(Qr))}},{key:"arrayParentException",value:function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')}},{key:"disabledAttrWarning",value:function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}},{key:"ngModelWarning",value:function(t){console.warn("\n It looks like you're using ngModel on the same form field as ".concat(t,". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/").concat("formControl"===t?"FormControlDirective":"FormControlName","#use-with-ngmodel\n "))}}]),t}(),io={provide:mr,useExisting:Object(a.hb)((function(){return oo})),multi:!0};function no(t,e){return null==t?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}var ao,ro,oo=((ro=function(){function t(e,i){_classCallCheck(this,t),this._renderer=e,this._elementRef=i,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=a.Tb}return _createClass(t,[{key:"writeValue",value:function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var i=no(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",i)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(i){e.value=e._getOptionValue(i),t(e.value)}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,i=Array.from(this._optionMap.keys());e<i.length;e++){var n=i[e];if(this._compareWith(this._optionMap.get(n),t))return n}return null}},{key:"_getOptionValue",value:function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}},{key:"compareWith",set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received ".concat(JSON.stringify(t)));this._compareWith=t}}]),t}()).\u0275fac=function(t){return new(t||ro)(a.Dc(a.P),a.Dc(a.r))},ro.\u0275dir=a.yc({type:ro,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&a.Wc("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[a.oc([io])]}),ro),so=((ao=function(){function t(e,i,n){_classCallCheck(this,t),this._element=e,this._renderer=i,this._select=n,this._select&&(this.id=this._select._registerOption())}return _createClass(t,[{key:"_setElementValue",value:function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}},{key:"ngValue",set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(no(this.id,t)),this._select.writeValue(this._select.value))}},{key:"value",set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}}]),t}()).\u0275fac=function(t){return new(t||ao)(a.Dc(a.r),a.Dc(a.P),a.Dc(oo,9))},ao.\u0275dir=a.yc({type:ao,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),ao),co={provide:mr,useExisting:Object(a.hb)((function(){return po})),multi:!0};function lo(t,e){return null==t?"".concat(e):("string"==typeof e&&(e="'".concat(e,"'")),e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}var uo,ho,po=((ho=function(){function t(e,i){_classCallCheck(this,t),this._renderer=e,this._elementRef=i,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=a.Tb}return _createClass(t,[{key:"writeValue",value:function(t){var e,i=this;if(this.value=t,Array.isArray(t)){var n=t.map((function(t){return i._getOptionId(t)}));e=function(t,e){t._setSelected(n.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(i){var n=[];if(i.hasOwnProperty("selectedOptions"))for(var a=i.selectedOptions,r=0;r<a.length;r++){var o=a.item(r),s=e._getOptionValue(o.value);n.push(s)}else for(var c=i.options,l=0;l<c.length;l++){var u=c.item(l);if(u.selected){var d=e._getOptionValue(u.value);n.push(d)}}e.value=n,t(n)}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_registerOption",value:function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}},{key:"_getOptionId",value:function(t){for(var e=0,i=Array.from(this._optionMap.keys());e<i.length;e++){var n=i[e];if(this._compareWith(this._optionMap.get(n)._value,t))return n}return null}},{key:"_getOptionValue",value:function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}},{key:"compareWith",set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received ".concat(JSON.stringify(t)));this._compareWith=t}}]),t}()).\u0275fac=function(t){return new(t||ho)(a.Dc(a.P),a.Dc(a.r))},ho.\u0275dir=a.yc({type:ho,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&a.Wc("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[a.oc([co])]}),ho),fo=((uo=function(){function t(e,i,n){_classCallCheck(this,t),this._element=e,this._renderer=i,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return _createClass(t,[{key:"_setElementValue",value:function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}},{key:"_setSelected",value:function(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}},{key:"ngValue",set:function(t){null!=this._select&&(this._value=t,this._setElementValue(lo(this.id,t)),this._select.writeValue(this._select.value))}},{key:"value",set:function(t){this._select?(this._value=t,this._setElementValue(lo(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}}]),t}()).\u0275fac=function(t){return new(t||uo)(a.Dc(a.r),a.Dc(a.P),a.Dc(po,9))},uo.\u0275dir=a.yc({type:uo,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),uo);function mo(t,e){return[].concat(_toConsumableArray(e.path),[t])}function go(t,e){t||yo(e,"Cannot find control with"),e.valueAccessor||yo(e,"No value accessor for form control with"),t.validator=Lr.compose([t.validator,e.validator]),t.asyncValidator=Lr.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange((function(i){t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&vo(t,e)}))}(t,e),function(t,e){t.registerOnChange((function(t,i){e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)}))}(t,e),function(t,e){e.valueAccessor.registerOnTouched((function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&vo(t,e),"submit"!==t.updateOn&&t.markAsTouched()}))}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange((function(t){e.valueAccessor.setDisabledState(t)})),e._rawValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange((function(){return t.updateValueAndValidity()}))})),e._rawAsyncValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange((function(){return t.updateValueAndValidity()}))}))}function vo(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function bo(t,e){null==t&&yo(e,"Cannot find control with"),t.validator=Lr.compose([t.validator,e.validator]),t.asyncValidator=Lr.composeAsync([t.asyncValidator,e.asyncValidator])}function _o(t){return yo(t,"There is no FormControl instance attached to form control element with")}function yo(t,e){var i;throw i=t.path.length>1?"path: '".concat(t.path.join(" -> "),"'"):t.path[0]?"name: '".concat(t.path,"'"):"unspecified name attribute",new Error("".concat(e," ").concat(i))}function ko(t){return null!=t?Lr.compose(t.map(zr)):null}function wo(t){return null!=t?Lr.composeAsync(t.map(Br)):null}function Co(t,e){if(!t.hasOwnProperty("model"))return!1;var i=t.model;return!!i.isFirstChange()||!Object(a.Tb)(e,i.currentValue)}var xo=[vr,Yr,Wr,oo,po,Kr];function So(t,e){t._syncPendingControls(),e.forEach((function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}))}function Io(t,e){if(!e)return null;Array.isArray(e)||yo(t,"Value accessor was not provided as an array for form control with");var i=void 0,n=void 0,a=void 0;return e.forEach((function(e){var r;e.constructor===yr?i=e:(r=e,xo.some((function(t){return r.constructor===t}))?(n&&yo(t,"More than one built-in value accessor matches form control with"),n=e):(a&&yo(t,"More than one custom value accessor matches form control with"),a=e))})),a||n||i||(yo(t,"No valid value accessor for form control with"),null)}function Oo(t,e){var i=t.indexOf(e);i>-1&&t.splice(i,1)}function Do(t,e,i,n){Object(a.jb)()&&"never"!==n&&((null!==n&&"once"!==n||e._ngModelWarningSentOnce)&&("always"!==n||i._ngModelWarningSent)||(eo.ngModelWarning(t),e._ngModelWarningSentOnce=!0,i._ngModelWarningSent=!0))}function Eo(t){var e=To(t)?t.validators:t;return Array.isArray(e)?ko(e):e||null}function Ao(t,e){var i=To(e)?e.asyncValidators:t;return Array.isArray(i)?wo(i):i||null}function To(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var Po,Ro,Mo,Lo,jo,Fo,No,zo,Bo,Jo=function(){function t(e,i){_classCallCheck(this,t),this.validator=e,this.asyncValidator=i,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return _createClass(t,[{key:"setValidators",value:function(t){this.validator=Eo(t)}},{key:"setAsyncValidators",value:function(t){this.asyncValidator=Ao(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(t){return t.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(t){t.markAsUntouched({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(t){t.markAsPristine({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(e){e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!0)}))}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild((function(e){e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!1)}))}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(e){return e._updateTreeValidity(t)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var i=Fr(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe((function(i){return e.setErrors(i,{emitEvent:t})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var n=t;return e.forEach((function(t){n=n instanceof Ho?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof Uo&&n.at(t)||null})),n}(this,t)}},{key:"getError",value:function(t,e){var i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new a.u,this.statusChanges=new a.u}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls((function(e){return e.status===t}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(t){return t.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(t){return t.touched}))}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){To(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}}]),t}(),Vo=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,i),(t=e.call(this,Eo(a),Ao(r,a)))._onChange=[],t._applyFormState(n),t._setUpdateStrategy(a),t.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),t._initObservables(),t}return _createClass(i,[{key:"setValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==i.emitModelToViewChange&&this._onChange.forEach((function(t){return t(e.value,!1!==i.emitViewToModelChange)})),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}]),i}(Jo),Ho=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,Eo(n),Ao(a,n))).controls=t,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return _createClass(i,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach((function(n){e._throwIfControlMissing(n),e.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((function(n){e.controls[n]&&e.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(i,n){i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(t,e,i){return t[i]=e instanceof Vo?e.value:e.getRawValue(),t}))}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,(function(t,e){return!!e._syncPendingControls()||t}));return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach((function(i){return t(e.controls[i],i)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){var e=this,i=!1;return this._forEachChild((function(n,a){i=i||e.contains(a)&&t(n)})),i}},{key:"_reduceValue",value:function(){var t=this;return this._reduceChildren({},(function(e,i,n){return(i.enabled||t.disabled)&&(e[n]=i.value),e}))}},{key:"_reduceChildren",value:function(t,e){var i=t;return this._forEachChild((function(t,n){i=e(i,t,n)})),i}},{key:"_allControlsDisabled",value:function(){for(var t=0,e=Object.keys(this.controls);t<e.length;t++){var i=e[t];if(this.controls[i].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,i){if(void 0===t[i])throw new Error("Must supply a value for form control with name: '".concat(i,"'."))}))}}]),i}(Jo),Uo=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,Eo(n),Ao(a,n))).controls=t,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return _createClass(i,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}},{key:"removeAt",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),this.updateValueAndValidity()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach((function(t,n){e._throwIfControlMissing(n),e.at(n).setValue(t,{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach((function(t,n){e.at(n)&&e.at(n).patchValue(t,{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(i,n){i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map((function(t){return t instanceof Vo?t.value:t.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(t){return t._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce((function(t,e){return!!e._syncPendingControls()||t}),!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach((function(e,i){t(e,i)}))}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter((function(e){return e.enabled||t.disabled})).map((function(t){return t.value}))}},{key:"_anyControls",value:function(t){return this.controls.some((function(e){return e.enabled&&t(e)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){return t._registerControl(e)}))}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,i){if(void 0===t[i])throw new Error("Must supply a value for form control at index: ".concat(i,"."))}))}},{key:"_allControlsDisabled",value:function(){var t,e=_createForOfIteratorHelper(this.controls);try{for(e.s();!(t=e.n()).done;){if(t.value.enabled)return!1}}catch(i){e.e(i)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),i}(Jo),Go={provide:wr,useExisting:Object(a.hb)((function(){return qo}))},Wo=Promise.resolve(null),qo=((Ro=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new a.u,r.form=new Ho({},ko(t),wo(n)),r}return _createClass(i,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(t){var e=this;Wo.then((function(){var i=e._findContainer(t.path);t.control=i.registerControl(t.name,t.control),go(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)}))}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;Wo.then((function(){var i=e._findContainer(t.path);i&&i.removeControl(t.name),Oo(e._directives,t)}))}},{key:"addFormGroup",value:function(t){var e=this;Wo.then((function(){var i=e._findContainer(t.path),n=new Ho({});bo(n,t),i.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(t){var e=this;Wo.then((function(){var i=e._findContainer(t.path);i&&i.removeControl(t.name)}))}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var i=this;Wo.then((function(){i.form.get(t.path).setValue(e)}))}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,So(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),i}(wr)).\u0275fac=function(t){return new(t||Ro)(a.Dc(Pr,10),a.Dc(Rr,10))},Ro.\u0275dir=a.yc({type:Ro,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&a.Wc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a.oc([Go]),a.mc]}),Ro),$o=((Po=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return mo(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return ko(this._validators)}},{key:"asyncValidator",get:function(){return wo(this._asyncValidators)}}]),i}(wr)).\u0275fac=function(t){return Ko(t||Po)},Po.\u0275dir=a.yc({type:Po,features:[a.mc]}),Po),Ko=a.Lc($o),Xo=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"modelParentException",value:function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '.concat(Zr,'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n '))}},{key:"formGroupNameException",value:function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ".concat(Qr,"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ").concat(to))}},{key:"missingNameException",value:function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}},{key:"modelGroupParentException",value:function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ".concat(Qr,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(to))}}]),t}(),Yo={provide:wr,useExisting:Object(a.hb)((function(){return Zo}))},Zo=((Mo=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this))._parent=t,r._validators=n,r._asyncValidators=a,r}return _createClass(i,[{key:"_checkParentType",value:function(){this._parent instanceof i||this._parent instanceof qo||Xo.modelGroupParentException()}}]),i}($o)).\u0275fac=function(t){return new(t||Mo)(a.Dc(wr,5),a.Dc(Pr,10),a.Dc(Rr,10))},Mo.\u0275dir=a.yc({type:Mo,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[a.oc([Yo]),a.mc]}),Mo),Qo={provide:Or,useExisting:Object(a.hb)((function(){return es}))},ts=Promise.resolve(null),es=((jo=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var s;return _classCallCheck(this,i),(s=e.call(this)).control=new Vo,s._registered=!1,s.update=new a.u,s._parent=t,s._rawValidators=n||[],s._rawAsyncValidators=r||[],s.valueAccessor=Io(_assertThisInitialized(s),o),s}return _createClass(i,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Co(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){go(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){!(this._parent instanceof Zo)&&this._parent instanceof $o?Xo.formGroupNameException():this._parent instanceof Zo||this._parent instanceof qo||Xo.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Xo.missingNameException()}},{key:"_updateValue",value:function(t){var e=this;ts.then((function(){e.control.setValue(t,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(t){var e=this,i=t.isDisabled.currentValue,n=""===i||i&&"false"!==i;ts.then((function(){n&&!e.control.disabled?e.control.disable():!n&&e.control.disabled&&e.control.enable()}))}},{key:"path",get:function(){return this._parent?mo(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return ko(this._rawValidators)}},{key:"asyncValidator",get:function(){return wo(this._rawAsyncValidators)}}]),i}(Or)).\u0275fac=function(t){return new(t||jo)(a.Dc(wr,9),a.Dc(Pr,10),a.Dc(Rr,10),a.Dc(mr,10))},jo.\u0275dir=a.yc({type:jo,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a.oc([Qo]),a.mc,a.nc]}),jo),is=((Lo=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Lo)},Lo.\u0275dir=a.yc({type:Lo,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Lo),ns=new a.x("NgModelWithFormControlWarning"),as={provide:Or,useExisting:Object(a.hb)((function(){return rs}))},rs=((Fo=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var s;return _classCallCheck(this,i),(s=e.call(this))._ngModelWarningConfig=o,s.update=new a.u,s._ngModelWarningSent=!1,s._rawValidators=t||[],s._rawAsyncValidators=n||[],s.valueAccessor=Io(_assertThisInitialized(s),r),s}return _createClass(i,[{key:"ngOnChanges",value:function(t){this._isControlChanged(t)&&(go(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Co(t,this.viewModel)&&(Do("formControl",i,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_isControlChanged",value:function(t){return t.hasOwnProperty("form")}},{key:"isDisabled",set:function(t){eo.disabledAttrWarning()}},{key:"path",get:function(){return[]}},{key:"validator",get:function(){return ko(this._rawValidators)}},{key:"asyncValidator",get:function(){return wo(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}}]),i}(Or)).\u0275fac=function(t){return new(t||Fo)(a.Dc(Pr,10),a.Dc(Rr,10),a.Dc(mr,10),a.Dc(ns,8))},Fo.\u0275dir=a.yc({type:Fo,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a.oc([as]),a.mc,a.nc]}),Fo._ngModelWarningSentOnce=!1,Fo),os={provide:wr,useExisting:Object(a.hb)((function(){return ss}))},ss=((No=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this))._validators=t,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new a.u,r}return _createClass(i,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return go(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){Oo(this.directives,t)}},{key:"addFormGroup",value:function(t){var e=this.form.get(t.path);bo(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(t){}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){var e=this.form.get(t.path);bo(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(t){}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,So(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach((function(e){var i=t.form.get(e.path);e.control!==i&&(function(t,e){e.valueAccessor.registerOnChange((function(){return _o(e)})),e.valueAccessor.registerOnTouched((function(){return _o(e)})),e._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),e._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),t&&t._clearChangeFns()}(e.control,e),i&&go(i,e),e.control=i)})),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var t=this;this.form._registerOnCollectionChange((function(){return t._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form}},{key:"_updateValidators",value:function(){var t=ko(this._validators);this.form.validator=Lr.compose([this.form.validator,t]);var e=wo(this._asyncValidators);this.form.asyncValidator=Lr.composeAsync([this.form.asyncValidator,e])}},{key:"_checkFormPresent",value:function(){this.form||eo.missingFormException()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),i}(wr)).\u0275fac=function(t){return new(t||No)(a.Dc(Pr,10),a.Dc(Rr,10))},No.\u0275dir=a.yc({type:No,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&a.Wc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a.oc([os]),a.mc,a.nc]}),No),cs={provide:wr,useExisting:Object(a.hb)((function(){return ls}))},ls=((zo=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this))._parent=t,r._validators=n,r._asyncValidators=a,r}return _createClass(i,[{key:"_checkParentType",value:function(){hs(this._parent)&&eo.groupParentException()}}]),i}($o)).\u0275fac=function(t){return new(t||zo)(a.Dc(wr,13),a.Dc(Pr,10),a.Dc(Rr,10))},zo.\u0275dir=a.yc({type:zo,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[a.oc([cs]),a.mc]}),zo),us={provide:wr,useExisting:Object(a.hb)((function(){return ds}))},ds=((Bo=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this))._parent=t,r._validators=n,r._asyncValidators=a,r}return _createClass(i,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"_checkParentType",value:function(){hs(this._parent)&&eo.arrayParentException()}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return mo(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"validator",get:function(){return ko(this._validators)}},{key:"asyncValidator",get:function(){return wo(this._asyncValidators)}}]),i}(wr)).\u0275fac=function(t){return new(t||Bo)(a.Dc(wr,13),a.Dc(Pr,10),a.Dc(Rr,10))},Bo.\u0275dir=a.yc({type:Bo,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[a.oc([us]),a.mc]}),Bo);function hs(t){return!(t instanceof ls||t instanceof ss||t instanceof ds)}var ps,fs,ms,gs,vs,bs,_s,ys,ks,ws,Cs,xs,Ss,Is,Os,Ds,Es,As,Ts,Ps,Rs,Ms,Ls,js,Fs,Ns,zs,Bs,Js,Vs,Hs,Us,Gs,Ws={provide:Or,useExisting:Object(a.hb)((function(){return qs}))},qs=((ps=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,s){var c;return _classCallCheck(this,i),(c=e.call(this))._ngModelWarningConfig=s,c._added=!1,c.update=new a.u,c._ngModelWarningSent=!1,c._parent=t,c._rawValidators=n||[],c._rawAsyncValidators=r||[],c.valueAccessor=Io(_assertThisInitialized(c),o),c}return _createClass(i,[{key:"ngOnChanges",value:function(t){this._added||this._setUpControl(),Co(t,this.viewModel)&&(Do("formControlName",i,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_checkParentType",value:function(){!(this._parent instanceof ls)&&this._parent instanceof $o?eo.ngModelGroupException():this._parent instanceof ls||this._parent instanceof ss||this._parent instanceof ds||eo.controlParentException()}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}},{key:"isDisabled",set:function(t){eo.disabledAttrWarning()}},{key:"path",get:function(){return mo(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return ko(this._rawValidators)}},{key:"asyncValidator",get:function(){return wo(this._rawAsyncValidators)}}]),i}(Or)).\u0275fac=function(t){return new(t||ps)(a.Dc(wr,13),a.Dc(Pr,10),a.Dc(Rr,10),a.Dc(mr,10),a.Dc(ns,8))},ps.\u0275dir=a.yc({type:ps,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[a.oc([Ws]),a.mc,a.nc]}),ps._ngModelWarningSentOnce=!1,ps),$s={provide:Pr,useExisting:Object(a.hb)((function(){return Xs})),multi:!0},Ks={provide:Pr,useExisting:Object(a.hb)((function(){return Ys})),multi:!0},Xs=((ms=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validate",value:function(t){return this.required?Lr.required(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"required",get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&"false"!=="".concat(t),this._onChange&&this._onChange()}}]),t}()).\u0275fac=function(t){return new(t||ms)},ms.\u0275dir=a.yc({type:ms,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&a.qc("required",e.required?"":null)},inputs:{required:"required"},features:[a.oc([$s])]}),ms),Ys=((fs=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"validate",value:function(t){return this.required?Lr.requiredTrue(t):null}}]),i}(Xs)).\u0275fac=function(t){return Zs(t||fs)},fs.\u0275dir=a.yc({type:fs,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.qc("required",e.required?"":null)},features:[a.oc([Ks]),a.mc]}),fs),Zs=a.Lc(Ys),Qs={provide:Pr,useExisting:Object(a.hb)((function(){return tc})),multi:!0},tc=((gs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validate",value:function(t){return this._enabled?Lr.email(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"email",set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}}]),t}()).\u0275fac=function(t){return new(t||gs)},gs.\u0275dir=a.yc({type:gs,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[a.oc([Qs])]}),gs),ec={provide:Pr,useExisting:Object(a.hb)((function(){return ic})),multi:!0},ic=((vs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnChanges",value:function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return null==this.minlength?null:this._validator(t)}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=Lr.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}]),t}()).\u0275fac=function(t){return new(t||vs)},vs.\u0275dir=a.yc({type:vs,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.qc("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[a.oc([ec]),a.nc]}),vs),nc={provide:Pr,useExisting:Object(a.hb)((function(){return ac})),multi:!0},ac=((bs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnChanges",value:function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return null!=this.maxlength?this._validator(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=Lr.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),t}()).\u0275fac=function(t){return new(t||bs)},bs.\u0275dir=a.yc({type:bs,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.qc("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[a.oc([nc]),a.nc]}),bs),rc={provide:Pr,useExisting:Object(a.hb)((function(){return oc})),multi:!0},oc=((Cs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnChanges",value:function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return this._validator(t)}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=Lr.pattern(this.pattern)}}]),t}()).\u0275fac=function(t){return new(t||Cs)},Cs.\u0275dir=a.yc({type:Cs,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.qc("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[a.oc([rc]),a.nc]}),Cs),sc=((ws=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:ws}),ws.\u0275inj=a.Ac({factory:function(t){return new(t||ws)}}),ws),cc=((ks=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"group",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this._reduceControls(t),n=null,a=null,r=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(n=null!=e.validators?e.validators:null,a=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(n=null!=e.validator?e.validator:null,a=null!=e.asyncValidator?e.asyncValidator:null)),new Ho(i,{asyncValidators:a,updateOn:r,validators:n})}},{key:"control",value:function(t,e,i){return new Vo(t,e,i)}},{key:"array",value:function(t,e,i){var n=this,a=t.map((function(t){return n._createControl(t)}));return new Uo(a,e,i)}},{key:"_reduceControls",value:function(t){var e=this,i={};return Object.keys(t).forEach((function(n){i[n]=e._createControl(t[n])})),i}},{key:"_createControl",value:function(t){return t instanceof Vo||t instanceof Ho||t instanceof Uo?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}()).\u0275fac=function(t){return new(t||ks)},ks.\u0275prov=a.zc({token:ks,factory:ks.\u0275fac}),ks),lc=((ys=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:ys}),ys.\u0275inj=a.Ac({factory:function(t){return new(t||ys)},providers:[$r],imports:[sc]}),ys),uc=((_s=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:ns,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}()).\u0275mod=a.Bc({type:_s}),_s.\u0275inj=a.Ac({factory:function(t){return new(t||_s)},providers:[cc,$r],imports:[sc]}),_s),dc=["button"],hc=["*"],pc=new a.x("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),fc={provide:mr,useExisting:Object(a.hb)((function(){return bc})),multi:!0},mc=function t(){_classCallCheck(this,t)},gc=0,vc=function t(e,i){_classCallCheck(this,t),this.source=e,this.value=i},bc=((xs=function(){function t(e,i){_classCallCheck(this,t),this._changeDetector=e,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=function(){},this._onTouched=function(){},this._name="mat-button-toggle-group-".concat(gc++),this.valueChange=new a.u,this.change=new a.u,this.appearance=i&&i.appearance?i.appearance:"standard"}return _createClass(t,[{key:"ngOnInit",value:function(){this._selectionModel=new ar(this.multiple,void 0,!1)}},{key:"ngAfterContentInit",value:function(){var t;(t=this._selectionModel).select.apply(t,_toConsumableArray(this._buttonToggles.filter((function(t){return t.checked}))))}},{key:"writeValue",value:function(t){this.value=t,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"_emitChangeEvent",value:function(){var t=this.selected,e=Array.isArray(t)?t[t.length-1]:t,i=new vc(e,this.value);this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}},{key:"_syncButtonToggle",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.multiple||!this.selected||t.checked||(this.selected.checked=!1),this._selectionModel?e?this._selectionModel.select(t):this._selectionModel.deselect(t):a=!0,a?Promise.resolve((function(){return i._updateModelValue(n)})):this._updateModelValue(n)}},{key:"_isSelected",value:function(t){return this._selectionModel&&this._selectionModel.isSelected(t)}},{key:"_isPrechecked",value:function(t){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some((function(e){return null!=t.value&&e===t.value})):t.value===this._rawValue)}},{key:"_setSelectionByValue",value:function(t){var e=this;if(this._rawValue=t,this._buttonToggles)if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._clearSelection(),t.forEach((function(t){return e._selectValue(t)}))}else this._clearSelection(),this._selectValue(t)}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach((function(t){return t.checked=!1}))}},{key:"_selectValue",value:function(t){var e=this._buttonToggles.find((function(e){return null!=e.value&&e.value===t}));e&&(e.checked=!0,this._selectionModel.select(e))}},{key:"_updateModelValue",value:function(t){t&&this._emitChangeEvent(),this.valueChange.emit(this.value)}},{key:"name",get:function(){return this._name},set:function(t){var e=this;this._name=t,this._buttonToggles&&this._buttonToggles.forEach((function(t){t.name=e._name,t._markForCheck()}))}},{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=fi(t)}},{key:"value",get:function(){var t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map((function(t){return t.value})):t[0]?t[0].value:void 0},set:function(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}},{key:"selected",get:function(){var t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=fi(t)}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=fi(t),this._buttonToggles&&this._buttonToggles.forEach((function(t){return t._markForCheck()}))}}]),t}()).\u0275fac=function(t){return new(t||xs)(a.Dc(a.j),a.Dc(pc,8))},xs.\u0275dir=a.yc({type:xs,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,i){var n;1&t&&a.vc(i,yc,!0),2&t&&a.md(n=a.Xc())&&(e._buttonToggles=n)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(a.qc("aria-disabled",e.disabled),a.tc("mat-button-toggle-vertical",e.vertical)("mat-button-toggle-group-appearance-standard","standard"===e.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[a.oc([fc,{provide:mc,useExisting:xs}])]}),xs),_c=Un((function t(){_classCallCheck(this,t)})),yc=((Is=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,s,c){var l;_classCallCheck(this,i),(l=e.call(this))._changeDetectorRef=n,l._elementRef=r,l._focusMonitor=o,l._isSingleSelector=!1,l._checked=!1,l.ariaLabelledby=null,l._disabled=!1,l.change=new a.u;var u=Number(s);return l.tabIndex=u||0===u?u:null,l.buttonToggleGroup=t,l.appearance=c&&c.appearance?c.appearance:"standard",l}return _createClass(i,[{key:"ngOnInit",value:function(){this._isSingleSelector=this.buttonToggleGroup&&!this.buttonToggleGroup.multiple,this._type=this._isSingleSelector?"radio":"checkbox",this.id=this.id||"mat-button-toggle-".concat(gc++),this._isSingleSelector&&(this.name=this.buttonToggleGroup.name),this.buttonToggleGroup&&this.buttonToggleGroup._isPrechecked(this)&&(this.checked=!0),this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(t){this._buttonElement.nativeElement.focus(t)}},{key:"_onButtonClick",value:function(){var t=!!this._isSingleSelector||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new vc(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"buttonId",get:function(){return"".concat(this.id,"-button")}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(t){this._appearance=t}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(t){var e=fi(t);e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled},set:function(t){this._disabled=fi(t)}}]),i}(_c)).\u0275fac=function(t){return new(t||Is)(a.Dc(bc,8),a.Dc(a.j),a.Dc(a.r),a.Dc(hn),a.Tc("tabindex"),a.Dc(pc,8))},Is.\u0275cmp=a.xc({type:Is,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var i;1&t&&a.Fd(dc,!0),2&t&&a.md(i=a.Xc())&&(e._buttonElement=i.first)},hostAttrs:[1,"mat-button-toggle","mat-focus-indicator"],hostVars:11,hostBindings:function(t,e){1&t&&a.Wc("focus",(function(){return e.focus()})),2&t&&(a.qc("tabindex",-1)("id",e.id)("name",null),a.tc("mat-button-toggle-standalone",!e.buttonToggleGroup)("mat-button-toggle-checked",e.checked)("mat-button-toggle-disabled",e.disabled)("mat-button-toggle-appearance-standard","standard"===e.appearance))},inputs:{disableRipple:"disableRipple",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[a.mc],ngContentSelectors:hc,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,e){if(1&t&&(a.fd(),a.Jc(0,"button",0,1),a.Wc("click",(function(){return e._onButtonClick()})),a.Jc(2,"div",2),a.ed(3),a.Ic(),a.Ic(),a.Ec(4,"div",3),a.Ec(5,"div",4)),2&t){var i=a.nd(1);a.gd("id",e.buttonId)("disabled",e.disabled||null),a.qc("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),a.pc(5),a.gd("matRippleTrigger",i)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[Ea],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:48px;padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 48px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),Is),kc=((Ss=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Ss}),Ss.\u0275inj=a.Ac({factory:function(t){return new(t||Ss)},imports:[[Jn,Aa],Jn]}),Ss),wc=["*",[["mat-card-footer"]]],Cc=["*","mat-card-footer"],xc=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],Sc=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],Ic=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],Oc=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"],Dc=((Js=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Js)},Js.\u0275dir=a.yc({type:Js,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Js),Ec=((Bs=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Bs)},Bs.\u0275dir=a.yc({type:Bs,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),Bs),Ac=((zs=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||zs)},zs.\u0275dir=a.yc({type:zs,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),zs),Tc=((Ns=function t(){_classCallCheck(this,t),this.align="start"}).\u0275fac=function(t){return new(t||Ns)},Ns.\u0275dir=a.yc({type:Ns,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,e){2&t&&a.tc("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),Ns),Pc=((Fs=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Fs)},Fs.\u0275dir=a.yc({type:Fs,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),Fs),Rc=((js=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||js)},js.\u0275dir=a.yc({type:js,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),js),Mc=((Ls=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ls)},Ls.\u0275dir=a.yc({type:Ls,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),Ls),Lc=((Ms=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ms)},Ms.\u0275dir=a.yc({type:Ms,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),Ms),jc=((Rs=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Rs)},Rs.\u0275dir=a.yc({type:Rs,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),Rs),Fc=((Ps=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ps)},Ps.\u0275dir=a.yc({type:Ps,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),Ps),Nc=((Ts=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ts)},Ts.\u0275dir=a.yc({type:Ts,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),Ts),zc=((As=function t(e){_classCallCheck(this,t),this._animationMode=e}).\u0275fac=function(t){return new(t||As)(a.Dc(Pe,8))},As.\u0275cmp=a.xc({type:As,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&a.tc("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:Cc,decls:2,vars:0,template:function(t,e){1&t&&(a.fd(wc),a.ed(0),a.ed(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),As),Bc=((Es=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Es)},Es.\u0275cmp=a.xc({type:Es,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:Sc,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(a.fd(xc),a.ed(0),a.Jc(1,"div",0),a.ed(2,1),a.Ic(),a.ed(3,2))},encapsulation:2,changeDetection:0}),Es),Jc=((Ds=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ds)},Ds.\u0275cmp=a.xc({type:Ds,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:Oc,decls:4,vars:0,template:function(t,e){1&t&&(a.fd(Ic),a.Jc(0,"div"),a.ed(1),a.Ic(),a.ed(2,1),a.ed(3,2))},encapsulation:2,changeDetection:0}),Ds),Vc=((Os=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Os}),Os.\u0275inj=a.Ac({factory:function(t){return new(t||Os)},imports:[[Jn],Jn]}),Os),Hc=["input"],Uc=function(){return{enterDuration:150}},Gc=["*"],Wc=new a.x("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),qc=new a.x("mat-checkbox-click-action"),$c=0,Kc={provide:mr,useExisting:Object(a.hb)((function(){return Zc})),multi:!0},Xc=function t(){_classCallCheck(this,t)},Yc=Gn(Hn(Un(Vn((function t(e){_classCallCheck(this,t),this._elementRef=e}))))),Zc=((Vs=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,s,c,l,u){var d;return _classCallCheck(this,i),(d=e.call(this,t))._changeDetectorRef=n,d._focusMonitor=r,d._ngZone=o,d._clickAction=c,d._animationMode=l,d._options=u,d.ariaLabel="",d.ariaLabelledby=null,d._uniqueId="mat-checkbox-".concat(++$c),d.id=d._uniqueId,d.labelPosition="after",d.name=null,d.change=new a.u,d.indeterminateChange=new a.u,d._onTouched=function(){},d._currentAnimationClass="",d._currentCheckState=0,d._controlValueAccessorChangeFn=function(){},d._checked=!1,d._disabled=!1,d._indeterminate=!1,d._options=d._options||{},d._options.color&&(d.color=d._options.color),d.tabIndex=parseInt(s)||0,d._focusMonitor.monitor(t,!0).subscribe((function(t){t||Promise.resolve().then((function(){d._onTouched(),n.markForCheck()}))})),d._clickAction=d._clickAction||d._options.clickAction,d}return _createClass(i,[{key:"ngAfterViewInit",value:function(){this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(t){var e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);var n=this._currentAnimationClass;this._ngZone.runOutsideAngular((function(){setTimeout((function(){i.classList.remove(n)}),1e3)}))}}},{key:"_emitChangeEvent",value:function(){var t=new Xc;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(t){var e=this;t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then((function(){e._indeterminate=!1,e.indeterminateChange.emit(e._indeterminate)})),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"keyboard",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._inputElement,t,e)}},{key:"_onInteractionEvent",value:function(t){t.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(t,e){if("NoopAnimations"===this._animationMode)return"";var i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(i)}},{key:"_syncIndeterminate",value:function(t){var e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(t){this._required=fi(t)}},{key:"checked",get:function(){return this._checked},set:function(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){var e=fi(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(t){var e=t!=this._indeterminate;this._indeterminate=fi(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}}]),i}(Yc)).\u0275fac=function(t){return new(t||Vs)(a.Dc(a.r),a.Dc(a.j),a.Dc(hn),a.Dc(a.I),a.Tc("tabindex"),a.Dc(qc,8),a.Dc(Pe,8),a.Dc(Wc,8))},Vs.\u0275cmp=a.xc({type:Vs,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var i;1&t&&(a.Fd(Hc,!0),a.Fd(Ea,!0)),2&t&&(a.md(i=a.Xc())&&(e._inputElement=i.first),a.md(i=a.Xc())&&(e.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(a.Mc("id",e.id),a.qc("tabindex",null),a.tc("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[a.oc([Kc]),a.mc],ngContentSelectors:Gc,decls:17,vars:19,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(a.fd(),a.Jc(0,"label",0,1),a.Jc(2,"div",2),a.Jc(3,"input",3,4),a.Wc("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),a.Ic(),a.Jc(5,"div",5),a.Ec(6,"div",6),a.Ic(),a.Ec(7,"div",7),a.Jc(8,"div",8),a.Zc(),a.Jc(9,"svg",9),a.Ec(10,"path",10),a.Ic(),a.Yc(),a.Ec(11,"div",11),a.Ic(),a.Ic(),a.Jc(12,"span",12,13),a.Wc("cdkObserveContent",(function(){return e._onLabelTextChange()})),a.Jc(14,"span",14),a.Bd(15,"\xa0"),a.Ic(),a.ed(16),a.Ic(),a.Ic()),2&t){var i=a.nd(1),n=a.nd(13);a.qc("for",e.inputId),a.pc(2),a.tc("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),a.pc(1),a.gd("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),a.qc("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked()),a.pc(2),a.gd("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",a.id(18,Uc))}},directives:[Ea,zi],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),Vs),Qc={provide:Pr,useExisting:Object(a.hb)((function(){return tl})),multi:!0},tl=((Hs=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(Ys)).\u0275fac=function(t){return el(t||Hs)},Hs.\u0275dir=a.yc({type:Hs,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[a.oc([Qc]),a.mc]}),Hs),el=a.Lc(tl),il=((Gs=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Gs}),Gs.\u0275inj=a.Ac({factory:function(t){return new(t||Gs)}}),Gs),nl=((Us=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Us}),Us.\u0275inj=a.Ac({factory:function(t){return new(t||Us)},imports:[[Aa,Jn,Bi,il],Jn,il]}),Us);function al(t){return new si.a((function(e){var i;try{i=t()}catch(n){return void e.error(n)}return(i?Object(cr.a)(i):li()).subscribe(e)}))}var rl=i("VRyK");function ol(t,e,i,n){return Object(Ue.a)(i)&&(n=i,i=void 0),n?ol(t,e,i).pipe(Object(ri.a)((function(t){return Object(or.a)(t)?n.apply(void 0,_toConsumableArray(t)):n(t)}))):new si.a((function(n){!function t(e,i,n,a,r){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(i,n,r),o=function(){return s.removeEventListener(i,n,r)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var c=e;e.on(i,n),o=function(){return c.off(i,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var l=e;e.addListener(i,n),o=function(){return l.removeListener(i,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,d=e.length;u<d;u++)t(e[u],i,n,a,r)}a.add(o)}(t,e,(function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),n,i)}))}var sl=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t,n)).scheduler=t,a.work=n,a}return _createClass(i,[{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0?_get(_getPrototypeOf(i.prototype),"requestAsyncId",this).call(this,t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(null)}))))}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&n>0||null===n&&this.delay>0)return _get(_getPrototypeOf(i.prototype),"recycleAsyncId",this).call(this,t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}]),i}($e),cl=new(function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,i=this.actions,n=-1,a=i.length;t=t||i.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n<a&&(t=i.shift()));if(this.active=!1,e){for(;++n<a&&(t=i.shift());)t.unsubscribe();throw e}}}]),i}(Xe))(sl),ll=1,ul=Promise.resolve(),dl={};function hl(t){return t in dl&&(delete dl[t],!0)}var pl=function(t){var e=ll++;return dl[e]=!0,ul.then((function(){return hl(e)&&t()})),e},fl=function(t){hl(t)},ml=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t,n)).scheduler=t,a.work=n,a}return _createClass(i,[{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0?_get(_getPrototypeOf(i.prototype),"requestAsyncId",this).call(this,t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=pl(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&n>0||null===n&&this.delay>0)return _get(_getPrototypeOf(i.prototype),"recycleAsyncId",this).call(this,t,e,n);0===t.actions.length&&(fl(e),t.scheduled=void 0)}}]),i}($e),gl=new(function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,i=this.actions,n=-1,a=i.length;t=t||i.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n<a&&(t=i.shift()));if(this.active=!1,e){for(;++n<a&&(t=i.shift());)t.unsubscribe();throw e}}}]),i}(Xe))(ml);function vl(t,e){return function(i){return i.lift(new bl(t,e))}}var bl=function(){function t(e,i){_classCallCheck(this,t),this.compare=e,this.keySelector=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new _l(t,this.compare,this.keySelector))}}]),t}(),_l=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,t)).keySelector=a,r.hasKey=!1,"function"==typeof n&&(r.compare=n),r}return _createClass(i,[{key:"compare",value:function(t,e){return t===e}},{key:"_next",value:function(t){var e;try{var i=this.keySelector;e=i?i(t):t}catch(a){return this.destination.error(a)}var n=!1;if(this.hasKey)try{n=(0,this.compare)(this.key,e)}catch(a){return this.destination.error(a)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}]),i}(Ve.a),yl=i("l7GE"),kl=i("ZUHj"),wl=function(){function t(e){_classCallCheck(this,t),this.durationSelector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Cl(t,this.durationSelector))}}]),t}(),Cl=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t)).durationSelector=n,a.hasValue=!1,a}return _createClass(i,[{key:"_next",value:function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e;try{e=(0,this.durationSelector)(t)}catch(n){return this.destination.error(n)}var i=Object(kl.a)(this,e);!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}},{key:"clearThrottle",value:function(){var t=this.value,e=this.hasValue,i=this.throttled;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}},{key:"notifyNext",value:function(t,e,i,n){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),i}(yl.a);function xl(t){return!Object(or.a)(t)&&t-parseFloat(t)+1>=0}function Sl(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,n=-1;return xl(e)?n=Number(e)<1?1:Number(e):Object(Fe.a)(e)&&(i=e),Object(Fe.a)(i)||(i=Ye),new si.a((function(e){var a=xl(t)?t:+t-i.now();return i.schedule(Il,a,{index:0,period:n,subscriber:e})}))}function Il(t){var e=t.index,i=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function Ol(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ye;return e=function(){return Sl(t,i)},function(t){return t.lift(new wl(e))}}function Dl(t){return function(e){return e.lift(new El(t))}}var El=function(){function t(e){_classCallCheck(this,t),this.notifier=e}return _createClass(t,[{key:"call",value:function(t,e){var i=new Al(t),n=Object(kl.a)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}]),t}(),Al=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this,t)).seenValue=!1,n}return _createClass(i,[{key:"notifyNext",value:function(t,e,i,n,a){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),i}(yl.a),Tl=i("51Dv");function Pl(t,e){return"function"==typeof e?function(i){return i.pipe(Pl((function(i,n){return Object(cr.a)(t(i,n)).pipe(Object(ri.a)((function(t,a){return e(i,t,n,a)})))})))}:function(e){return e.lift(new Rl(t))}}var Rl=function(){function t(e){_classCallCheck(this,t),this.project=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Ml(t,this.project))}}]),t}(),Ml=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t)).project=n,a.index=0,a}return _createClass(i,[{key:"_next",value:function(t){var e,i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}},{key:"_innerSub",value:function(t,e,i){var n=this.innerSubscription;n&&n.unsubscribe();var a=new Tl.a(this,e,i),r=this.destination;r.add(a),this.innerSubscription=Object(kl.a)(this,t,void 0,void 0,a),this.innerSubscription!==a&&r.add(this.innerSubscription)}},{key:"_complete",value:function(){var t=this.innerSubscription;t&&!t.closed||_get(_getPrototypeOf(i.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&_get(_getPrototypeOf(i.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(t,e,i,n,a){this.destination.next(e)}}]),i}(yl.a),Ll=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t,n)).scheduler=t,a.work=n,a}return _createClass(i,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e>0?_get(_getPrototypeOf(i.prototype),"schedule",this).call(this,t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}},{key:"execute",value:function(t,e){return e>0||this.closed?_get(_getPrototypeOf(i.prototype),"execute",this).call(this,t,e):this._execute(t,e)}},{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0||null===n&&this.delay>0?_get(_getPrototypeOf(i.prototype),"requestAsyncId",this).call(this,t,e,n):t.flush(this)}}]),i}($e),jl=new(function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(Xe))(Ll);function Fl(t,e){return new si.a(e?function(i){return e.schedule(Nl,0,{error:t,subscriber:i})}:function(e){return e.error(t)})}function Nl(t){var e=t.error;t.subscriber.error(e)}var zl,Bl,Jl,Vl,Hl,Ul,Gl=((zl=function(){function t(e,i,n){_classCallCheck(this,t),this.kind=e,this.value=i,this.error=n,this.hasValue="N"===e}return _createClass(t,[{key:"observe",value:function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}},{key:"do",value:function(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}},{key:"accept",value:function(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Be(this.value);case"E":return Fl(this.error);case"C":return li()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}]),t}()).completeNotification=new zl("C"),zl.undefinedValueNotification=new zl("N",void 0),zl),Wl=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,i),(a=e.call(this,t)).scheduler=n,a.delay=r,a}return _createClass(i,[{key:"scheduleMessage",value:function(t){this.destination.add(this.scheduler.schedule(i.dispatch,this.delay,new ql(t,this.destination)))}},{key:"_next",value:function(t){this.scheduleMessage(Gl.createNext(t))}},{key:"_error",value:function(t){this.scheduleMessage(Gl.createError(t)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(Gl.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){var e=t.notification,i=t.destination;e.observe(i),this.unsubscribe()}}]),i}(Ve.a),ql=function t(e,i){_classCallCheck(this,t),this.notification=e,this.destination=i},$l=i("9ppp"),Kl=i("Ylt2"),Xl=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,r=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,i),(t=e.call(this)).scheduler=r,t._events=[],t._infiniteTimeWindow=!1,t._bufferSize=n<1?1:n,t._windowTime=a<1?1:a,a===Number.POSITIVE_INFINITY?(t._infiniteTimeWindow=!0,t.next=t.nextInfiniteTimeWindow):t.next=t.nextTimeWindow,t}return _createClass(i,[{key:"nextInfiniteTimeWindow",value:function(t){var e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),_get(_getPrototypeOf(i.prototype),"next",this).call(this,t)}},{key:"nextTimeWindow",value:function(t){this._events.push(new Yl(this._getNow(),t)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(i.prototype),"next",this).call(this,t)}},{key:"_subscribe",value:function(t){var e,i=this._infiniteTimeWindow,n=i?this._events:this._trimBufferThenGetEvents(),a=this.scheduler,r=n.length;if(this.closed)throw new $l.a;if(this.isStopped||this.hasError?e=je.a.EMPTY:(this.observers.push(t),e=new Kl.a(this,t)),a&&t.add(t=new Wl(t,a)),i)for(var o=0;o<r&&!t.closed;o++)t.next(n[o]);else for(var s=0;s<r&&!t.closed;s++)t.next(n[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e}},{key:"_getNow",value:function(){return(this.scheduler||jl).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var t=this._getNow(),e=this._bufferSize,i=this._windowTime,n=this._events,a=n.length,r=0;r<a&&!(t-n[r].time<i);)r++;return a>e&&(r=Math.max(r,a-e)),r>0&&n.splice(0,r),n}}]),i}(Le.a),Yl=function t(e,i){_classCallCheck(this,t),this.time=e,this.value=i},Zl=((Ul=function(){function t(e,i,n){_classCallCheck(this,t),this._ngZone=e,this._platform=i,this._scrolled=new Le.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}return _createClass(t,[{key:"register",value:function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe((function(){return e._scrolled.next(t)})))}},{key:"deregister",value:function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}},{key:"scrolled",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new si.a((function(i){t._globalSubscription||t._addGlobalListener();var n=e>0?t._scrolled.pipe(Ol(e)).subscribe(i):t._scrolled.subscribe(i);return t._scrolledCount++,function(){n.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}})):Be()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(e,i){return t.deregister(i)})),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(ii((function(t){return!t||i.indexOf(t)>-1})))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,i=[];return this.scrollContainers.forEach((function(n,a){e._scrollableContainsElement(a,t)&&i.push(a)})),i}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var i=e.nativeElement,n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){return ol(t._getWindow().document,"scroll").subscribe((function(){return t._scrolled.next()}))}))}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}()).\u0275fac=function(t){return new(t||Ul)(a.Sc(a.I),a.Sc(Ii),a.Sc(ye.e,8))},Ul.\u0275prov=Object(a.zc)({factory:function(){return new Ul(Object(a.Sc)(a.I),Object(a.Sc)(Ii),Object(a.Sc)(ye.e,8))},token:Ul,providedIn:"root"}),Ul),Ql=((Hl=function(){function t(e,i,n,a){var r=this;_classCallCheck(this,t),this.elementRef=e,this.scrollDispatcher=i,this.ngZone=n,this.dir=a,this._destroyed=new Le.a,this._elementScrolled=new si.a((function(t){return r.ngZone.runOutsideAngular((function(){return ol(r.elementRef.nativeElement,"scroll").pipe(Dl(r._destroyed)).subscribe(t)}))}))}return _createClass(t,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(t){var e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=Ti()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Ti()?t.left=t.right:1==Ti()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}},{key:"_applyScrollToOptions",value:function(t){var e=this.elementRef.nativeElement;"object"==typeof document&&"scrollBehavior"in document.documentElement.style?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}},{key:"measureScrollOffset",value:function(t){var e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;var i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==Ti()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==Ti()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}]),t}()).\u0275fac=function(t){return new(t||Hl)(a.Dc(a.r),a.Dc(Zl),a.Dc(a.I),a.Dc(xn,8))},Hl.\u0275dir=a.yc({type:Hl,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Hl),tu=((Vl=function(){function t(e,i,n){var a=this;_classCallCheck(this,t),this._platform=e,this._document=n,i.runOutsideAngular((function(){var t=a._getWindow();a._change=e.isBrowser?Object(rl.a)(ol(t,"resize"),ol(t,"orientationchange")):Be(),a._invalidateCache=a.change().subscribe((function(){return a._updateViewportSize()}))}))}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._invalidateCache.unsubscribe()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),i=e.width,n=e.height;return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+i,height:n,width:i}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._getDocument(),e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(Ol(t)):this._change}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),t}()).\u0275fac=function(t){return new(t||Vl)(a.Sc(Ii),a.Sc(a.I),a.Sc(ye.e,8))},Vl.\u0275prov=Object(a.zc)({factory:function(){return new Vl(Object(a.Sc)(Ii),Object(a.Sc)(a.I),Object(a.Sc)(ye.e,8))},token:Vl,providedIn:"root"}),Vl),eu=((Jl=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Jl}),Jl.\u0275inj=a.Ac({factory:function(t){return new(t||Jl)}}),Jl),iu=((Bl=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Bl}),Bl.\u0275inj=a.Ac({factory:function(t){return new(t||Bl)},imports:[[In,Oi,eu],In,eu]}),Bl);function nu(){throw Error("Host already has a portal attached")}var au,ru,ou,su,cu=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"attach",value:function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&nu(),this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),t}(),lu=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this)).component=t,o.viewContainerRef=n,o.injector=a,o.componentFactoryResolver=r,o}return i}(cu),uu=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this)).templateRef=t,r.viewContainerRef=n,r.context=a,r}return _createClass(i,[{key:"attach",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=e,_get(_getPrototypeOf(i.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(i.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),i}(cu),du=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this)).element=t instanceof a.r?t.nativeElement:t,n}return i}(cu),hu=function(){function t(){_classCallCheck(this,t),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(t,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&nu(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof lu?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof uu?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof du?(this._attachedPortal=t,this.attachDomPortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),t}(),pu=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o){var s;return _classCallCheck(this,i),(s=e.call(this)).outletElement=t,s._componentFactoryResolver=n,s._appRef=a,s._defaultInjector=r,s.attachDomPortal=function(t){if(!s._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");var n=s._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),s.outletElement.appendChild(e),_get(_getPrototypeOf(i.prototype),"setDisposeFn",_assertThisInitialized(s)).call(_assertThisInitialized(s),(function(){n.parentNode&&n.parentNode.replaceChild(e,n)}))},s._document=o,s}return _createClass(i,[{key:"attachComponentPortal",value:function(t){var e,i=this,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(n,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn((function(){return e.destroy()}))):(e=n.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn((function(){i._appRef.detachView(e.hostView),e.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(e)),e}},{key:"attachTemplatePortal",value:function(t){var e=this,i=t.viewContainerRef,n=i.createEmbeddedView(t.templateRef,t.context);return n.detectChanges(),n.rootNodes.forEach((function(t){return e.outletElement.appendChild(t)})),this.setDisposeFn((function(){var t=i.indexOf(n);-1!==t&&i.remove(t)})),n}},{key:"dispose",value:function(){_get(_getPrototypeOf(i.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),i}(hu),fu=((ou=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){return _classCallCheck(this,i),e.call(this,t,n)}return i}(uu)).\u0275fac=function(t){return new(t||ou)(a.Dc(a.Y),a.Dc(a.cb))},ou.\u0275dir=a.yc({type:ou,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[a.mc]}),ou),mu=((ru=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this))._componentFactoryResolver=t,o._viewContainerRef=n,o._isInitialized=!1,o.attached=new a.u,o.attachDomPortal=function(t){if(!o._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");var n=o._document.createComment("dom-portal");t.setAttachedHost(_assertThisInitialized(o)),e.parentNode.insertBefore(n,e),o._getRootNode().appendChild(e),_get(_getPrototypeOf(i.prototype),"setDisposeFn",_assertThisInitialized(o)).call(_assertThisInitialized(o),(function(){n.parentNode&&n.parentNode.replaceChild(e,n)}))},o._document=r,o}return _createClass(i,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),a=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),_get(_getPrototypeOf(i.prototype),"setDisposeFn",this).call(this,(function(){return a.destroy()})),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}},{key:"attachTemplatePortal",value:function(t){var e=this;t.setAttachedHost(this);var n=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return _get(_getPrototypeOf(i.prototype),"setDisposeFn",this).call(this,(function(){return e._viewContainerRef.clear()})),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}},{key:"_getRootNode",value:function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}},{key:"portal",get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&_get(_getPrototypeOf(i.prototype),"detach",this).call(this),t&&_get(_getPrototypeOf(i.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),i}(hu)).\u0275fac=function(t){return new(t||ru)(a.Dc(a.n),a.Dc(a.cb),a.Dc(ye.e))},ru.\u0275dir=a.yc({type:ru,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.mc]}),ru),gu=((au=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(mu)).\u0275fac=function(t){return vu(t||au)},au.\u0275dir=a.yc({type:au,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[a.oc([{provide:mu,useExisting:au}]),a.mc]}),au),vu=a.Lc(gu),bu=((su=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:su}),su.\u0275inj=a.Ac({factory:function(t){return new(t||su)}}),su),_u=function(){function t(e,i){_classCallCheck(this,t),this._parentInjector=e,this._customTokens=i}return _createClass(t,[{key:"get",value:function(t,e){var i=this._customTokens.get(t);return void 0!==i?i:this._parentInjector.get(t,e)}}]),t}(),yu=function(){function t(e,i){_classCallCheck(this,t),this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=i}return _createClass(t,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=bi(-this._previousScrollPosition.left),t.style.top=bi(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",a=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=i.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=n,i.scrollBehavior=a}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}]),t}();function ku(){return Error("Scroll strategy has already been attached.")}var wu=function(){function t(e,i,n,a){var r=this;_classCallCheck(this,t),this._scrollDispatcher=e,this._ngZone=i,this._viewportRuler=n,this._config=a,this._scrollSubscription=null,this._detach=function(){r.disable(),r._overlayRef.hasAttached()&&r._ngZone.run((function(){return r._overlayRef.detach()}))}}return _createClass(t,[{key:"attach",value:function(t){if(this._overlayRef)throw ku();this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe((function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()}))):this._scrollSubscription=e.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),Cu=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function xu(t,e){return e.some((function(e){return t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right}))}function Su(t,e){return e.some((function(e){return t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right}))}var Iu,Ou=function(){function t(e,i,n,a){_classCallCheck(this,t),this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this._config=a,this._scrollSubscription=null}return _createClass(t,[{key:"attach",value:function(t){if(this._overlayRef)throw ku();this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),i=t._viewportRuler.getViewportSize(),n=i.width,a=i.height;xu(e,[{width:n,height:a,bottom:a,right:n,top:0,left:0}])&&(t.disable(),t._ngZone.run((function(){return t._overlayRef.detach()})))}})))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),Du=((Iu=function t(e,i,n,a){var r=this;_classCallCheck(this,t),this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this.noop=function(){return new Cu},this.close=function(t){return new wu(r._scrollDispatcher,r._ngZone,r._viewportRuler,t)},this.block=function(){return new yu(r._viewportRuler,r._document)},this.reposition=function(t){return new Ou(r._scrollDispatcher,r._viewportRuler,r._ngZone,t)},this._document=a}).\u0275fac=function(t){return new(t||Iu)(a.Sc(Zl),a.Sc(tu),a.Sc(a.I),a.Sc(ye.e))},Iu.\u0275prov=Object(a.zc)({factory:function(){return new Iu(Object(a.Sc)(Zl),Object(a.Sc)(tu),Object(a.Sc)(a.I),Object(a.Sc)(ye.e))},token:Iu,providedIn:"root"}),Iu),Eu=function t(e){if(_classCallCheck(this,t),this.scrollStrategy=new Cu,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var i=0,n=Object.keys(e);i<n.length;i++){var a=n[i];void 0!==e[a]&&(this[a]=e[a])}},Au=function t(e,i,n,a,r){_classCallCheck(this,t),this.offsetX=n,this.offsetY=a,this.panelClass=r,this.originX=e.originX,this.originY=e.originY,this.overlayX=i.overlayX,this.overlayY=i.overlayY},Tu=function t(e,i){_classCallCheck(this,t),this.connectionPair=e,this.scrollableViewProperties=i};function Pu(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid ".concat(t,' "').concat(e,'". ')+'Expected "top", "bottom" or "center".')}function Ru(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid ".concat(t,' "').concat(e,'". ')+'Expected "start", "end" or "center".')}var Mu,Lu,ju=((Mu=function(){function t(e){var i=this;_classCallCheck(this,t),this._attachedOverlays=[],this._keydownListener=function(t){for(var e=i._attachedOverlays,n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}},this._document=e}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._detach()}},{key:"add",value:function(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}},{key:"remove",value:function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}},{key:"_detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),t}()).\u0275fac=function(t){return new(t||Mu)(a.Sc(ye.e))},Mu.\u0275prov=Object(a.zc)({factory:function(){return new Mu(Object(a.Sc)(ye.e))},token:Mu,providedIn:"root"}),Mu),Fu=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),Nu=((Lu=function(){function t(e,i){_classCallCheck(this,t),this._platform=i,this._document=e}return _createClass(t,[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||Fu)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),i=0;i<e.length;i++)e[i].parentNode.removeChild(e[i]);var n=this._document.createElement("div");n.classList.add("cdk-overlay-container"),Fu?n.setAttribute("platform","test"):t||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}]),t}()).\u0275fac=function(t){return new(t||Lu)(a.Sc(ye.e),a.Sc(Ii))},Lu.\u0275prov=Object(a.zc)({factory:function(){return new Lu(Object(a.Sc)(ye.e),Object(a.Sc)(Ii))},token:Lu,providedIn:"root"}),Lu),zu=function(){function t(e,i,n,a,r,o,s,c){var l=this;_classCallCheck(this,t),this._portalOutlet=e,this._host=i,this._pane=n,this._config=a,this._ngZone=r,this._keyboardDispatcher=o,this._document=s,this._location=c,this._backdropElement=null,this._backdropClick=new Le.a,this._attachments=new Le.a,this._detachments=new Le.a,this._locationChanges=je.a.EMPTY,this._backdropClickHandler=function(t){return l._backdropClick.next(t)},this._keydownEvents=new Le.a,a.scrollStrategy&&(this._scrollStrategy=a.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=a.positionStrategy}return _createClass(t,[{key:"attach",value:function(t){var e=this,i=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(ui(1)).subscribe((function(){e.hasAttached()&&e.updatePosition()})),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe((function(){return e.dispose()}))),i}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}}},{key:"dispose",value:function(){var t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick.asObservable()}},{key:"attachments",value:function(){return this._attachments.asObservable()}},{key:"detachments",value:function(){return this._detachments.asObservable()}},{key:"keydownEvents",value:function(){return this._keydownEvents.asObservable()}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}},{key:"setDirection",value:function(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}},{key:"addPanelClass",value:function(t){this._pane&&this._toggleClasses(this._pane,t,!0)}},{key:"removePanelClass",value:function(t){this._pane&&this._toggleClasses(this._pane,t,!1)}},{key:"getDirection",value:function(){var t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}},{key:"updateScrollStrategy",value:function(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var t=this._pane.style;t.width=bi(this._config.width),t.height=bi(this._config.height),t.minWidth=bi(this._config.minWidth),t.minHeight=bi(this._config.minHeight),t.maxWidth=bi(this._config.maxWidth),t.maxHeight=bi(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(t){this._pane.style.pointerEvents=t?"auto":"none"}},{key:"_attachBackdrop",value:function(){var t=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){t._backdropElement&&t._backdropElement.classList.add("cdk-overlay-backdrop-showing")}))})):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var t,e=this,i=this._backdropElement;if(i){var n=function n(){i&&(i.removeEventListener("click",e._backdropClickHandler),i.removeEventListener("transitionend",n),i.parentNode&&i.parentNode.removeChild(i)),e._backdropElement==i&&(e._backdropElement=null),e._config.backdropClass&&e._toggleClasses(i,e._config.backdropClass,!1),clearTimeout(t)};i.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular((function(){i.addEventListener("transitionend",n)})),i.style.pointerEvents="none",t=this._ngZone.runOutsideAngular((function(){return setTimeout(n,500)}))}}},{key:"_toggleClasses",value:function(t,e,i){var n=t.classList;vi(e).forEach((function(t){t&&(i?n.add(t):n.remove(t))}))}},{key:"_detachContentWhenStable",value:function(){var t=this;this._ngZone.runOutsideAngular((function(){var e=t._ngZone.onStable.asObservable().pipe(Dl(Object(rl.a)(t._attachments,t._detachments))).subscribe((function(){t._pane&&t._host&&0!==t._pane.children.length||(t._pane&&t._config.panelClass&&t._toggleClasses(t._pane,t._config.panelClass,!1),t._host&&t._host.parentElement&&(t._previousHostParent=t._host.parentElement,t._previousHostParent.removeChild(t._host)),e.unsubscribe())}))}))}},{key:"_disposeScrollStrategy",value:function(){var t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}},{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}}]),t}(),Bu=/([A-Za-z%]+)$/,Ju=function(){function t(e,i,n,a,r){_classCallCheck(this,t),this._viewportRuler=i,this._document=n,this._platform=a,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Le.a,this._resizeSubscription=je.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(e)}return _createClass(t,[{key:"attach",value:function(t){var e=this;if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe((function(){e._isInitialRender=!0,e.apply()}))}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var t,e,i=this._originRect,n=this._overlayRect,a=this._viewportRect,r=[],o=_createForOfIteratorHelper(this._preferredPositions);try{for(o.s();!(e=o.n()).done;){var s=e.value,c=this._getOriginPoint(i,s),l=this._getOverlayPoint(c,n,s),u=this._getOverlayFit(l,n,a,s);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,c);this._canFitWithFlexibleDimensions(u,l,a)?r.push({position:s,origin:c,overlayRect:n,boundingBoxRect:this._calculateBoundingBoxRect(c,s)}):(!t||t.overlayFit.visibleArea<u.visibleArea)&&(t={overlayFit:u,overlayPoint:l,originPoint:c,position:s,overlayRect:n})}}catch(v){o.e(v)}finally{o.f()}if(r.length){var d,h=null,p=-1,f=_createForOfIteratorHelper(r);try{for(f.s();!(d=f.n()).done;){var m=d.value,g=m.boundingBoxRect.width*m.boundingBoxRect.height*(m.position.weight||1);g>p&&(p=g,h=m)}}catch(v){f.e(v)}finally{f.f()}return this._isPushed=!1,void this._applyPosition(h.position,h.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Vu(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,e){var i;if("center"==e.originX)i=t.left+t.width/2;else{var n=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;i="start"==e.originX?n:a}return{x:i,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,e,i){var n,a;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,a="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+a}}},{key:"_getOverlayFit",value:function(t,e,i,n){var a=t.x,r=t.y,o=this._getOffset(n,"x"),s=this._getOffset(n,"y");o&&(a+=o),s&&(r+=s);var c=0-r,l=r+e.height-i.height,u=this._subtractOverflows(e.width,0-a,a+e.width-i.width),d=this._subtractOverflows(e.height,c,l),h=u*d;return{visibleArea:h,isCompletelyWithinViewport:e.width*e.height===h,fitsInViewportVertically:d===e.height,fitsInViewportHorizontally:u==e.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,i){if(this._hasFlexibleDimensions){var n=i.bottom-e.y,a=i.right-e.x,r=Hu(this._overlayRef.getConfig().minHeight),o=Hu(this._overlayRef.getConfig().minWidth),s=t.fitsInViewportHorizontally||null!=o&&o<=a;return(t.fitsInViewportVertically||null!=r&&r<=n)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var n,a,r=this._viewportRect,o=Math.max(t.x+e.width-r.right,0),s=Math.max(t.y+e.height-r.bottom,0),c=Math.max(r.top-i.top-t.y,0),l=Math.max(r.left-i.left-t.x,0);return n=e.width<=r.width?l||-o:t.x<this._viewportMargin?r.left-i.left-t.x:0,a=e.height<=r.height?c||-s:t.y<this._viewportMargin?r.top-i.top-t.y:0,this._previousPushAmount={x:n,y:a},{x:t.x+n,y:t.y+a}}},{key:"_applyPosition",value:function(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){var i=this._getScrollVisibility(),n=new Tu(t,i);this._positionChanges.next(n)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(t){if(this._transformOriginSelector){var e,i=this._boundingBox.querySelectorAll(this._transformOriginSelector),n=t.overlayY;e="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(var a=0;a<i.length;a++)i[a].style.transformOrigin="".concat(e," ").concat(n)}}},{key:"_calculateBoundingBoxRect",value:function(t,e){var i,n,a,r,o,s,c=this._viewportRect,l=this._isRtl();if("top"===e.overlayY)n=t.y,i=c.height-n+this._viewportMargin;else if("bottom"===e.overlayY)a=c.height-t.y+2*this._viewportMargin,i=c.height-a+this._viewportMargin;else{var u=Math.min(c.bottom-t.y+c.top,t.y),d=this._lastBoundingBoxSize.height;i=2*u,n=t.y-u,i>d&&!this._isInitialRender&&!this._growAfterOpen&&(n=t.y-d/2)}if("end"===e.overlayX&&!l||"start"===e.overlayX&&l)s=c.width-t.x+this._viewportMargin,r=t.x-this._viewportMargin;else if("start"===e.overlayX&&!l||"end"===e.overlayX&&l)o=t.x,r=c.right-t.x;else{var h=Math.min(c.right-t.x+c.left,t.x),p=this._lastBoundingBoxSize.width;r=2*h,o=t.x-h,r>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.x-p/2)}return{top:n,left:o,bottom:a,right:s,width:r,height:i}}},{key:"_setBoundingBoxStyles",value:function(t,e){var i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));var n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{var a=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;n.height=bi(i.height),n.top=bi(i.top),n.bottom=bi(i.bottom),n.width=bi(i.width),n.left=bi(i.left),n.right=bi(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",a&&(n.maxHeight=bi(a)),r&&(n.maxWidth=bi(r))}this._lastBoundingBoxSize=i,Vu(this._boundingBox.style,n)}},{key:"_resetBoundingBoxStyles",value:function(){Vu(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Vu(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var i={},n=this._hasExactPosition(),a=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(n){var o=this._viewportRuler.getViewportScrollPosition();Vu(i,this._getExactOverlayY(e,t,o)),Vu(i,this._getExactOverlayX(e,t,o))}else i.position="static";var s="",c=this._getOffset(e,"x"),l=this._getOffset(e,"y");c&&(s+="translateX(".concat(c,"px) ")),l&&(s+="translateY(".concat(l,"px)")),i.transform=s.trim(),r.maxHeight&&(n?i.maxHeight=bi(r.maxHeight):a&&(i.maxHeight="")),r.maxWidth&&(n?i.maxWidth=bi(r.maxWidth):a&&(i.maxWidth="")),Vu(this._pane.style,i)}},{key:"_getExactOverlayY",value:function(t,e,i){var n={top:"",bottom:""},a=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,i));var r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return a.y-=r,"bottom"===t.overlayY?n.bottom="".concat(this._document.documentElement.clientHeight-(a.y+this._overlayRect.height),"px"):n.top=bi(a.y),n}},{key:"_getExactOverlayX",value:function(t,e,i){var n={left:"",right:""},a=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,i)),"right"===(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?n.right="".concat(this._document.documentElement.clientWidth-(a.x+this._overlayRect.width),"px"):n.left=bi(a.x),n}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map((function(t){return t.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:Su(t,i),isOriginOutsideView:xu(t,i),isOverlayClipped:Su(e,i),isOverlayOutsideView:xu(e,i)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return i.reduce((function(t,e){return t-Math.max(e,0)}),t)}},{key:"_getNarrowedViewportRect",value:function(){var t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}},{key:"_validatePositions",value:function(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach((function(t){Ru("originX",t.originX),Pu("originY",t.originY),Ru("overlayX",t.overlayX),Pu("overlayY",t.overlayY)}))}},{key:"_addPanelClasses",value:function(t){var e=this;this._pane&&vi(t).forEach((function(t){""!==t&&-1===e._appliedPanelClasses.indexOf(t)&&(e._appliedPanelClasses.push(t),e._pane.classList.add(t))}))}},{key:"_clearPanelClasses",value:function(){var t=this;this._pane&&(this._appliedPanelClasses.forEach((function(e){t._pane.classList.remove(e)})),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var t=this._origin;if(t instanceof a.r)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();var e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}},{key:"positions",get:function(){return this._preferredPositions}}]),t}();function Vu(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Hu(t){if("number"!=typeof t&&null!=t){var e=_slicedToArray(t.split(Bu),2),i=e[0],n=e[1];return n&&"px"!==n?null:parseFloat(i)}return t||null}var Uu,Gu,Wu,qu,$u,Ku=function(){function t(e,i,n,a,r,o,s){_classCallCheck(this,t),this._preferredPositions=[],this._positionStrategy=new Ju(n,a,r,o,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(e,i)}return _createClass(t,[{key:"attach",value:function(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(t){this._positionStrategy.withScrollableContainers(t)}},{key:"withFallbackPosition",value:function(t,e,i,n){var a=new Au(t,e,i,n);return this._preferredPositions.push(a),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}},{key:"withOffsetX",value:function(t){return this._positionStrategy.withDefaultOffsetX(t),this}},{key:"withOffsetY",value:function(t){return this._positionStrategy.withDefaultOffsetY(t),this}},{key:"withLockedPosition",value:function(t){return this._positionStrategy.withLockedPosition(t),this}},{key:"withPositions",value:function(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(t){return this._positionStrategy.setOrigin(t),this}},{key:"_isRtl",get:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"onPositionChange",get:function(){return this._positionStrategy.positionChanges}},{key:"positions",get:function(){return this._preferredPositions}}]),t}(),Xu=function(){function t(){_classCallCheck(this,t),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return _createClass(t,[{key:"attach",value:function(t){var e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}},{key:"top",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),n=i.width,a=i.height,r=i.maxWidth,o=i.maxHeight,s=!("100%"!==n&&"100vw"!==n||r&&"100%"!==r&&"100vw"!==r),c=!("100%"!==a&&"100vh"!==a||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),t}(),Yu=((Gu=function(){function t(e,i,n,a){_classCallCheck(this,t),this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=a}return _createClass(t,[{key:"global",value:function(){return new Xu}},{key:"connectedTo",value:function(t,e,i){return new Ku(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new Ju(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}()).\u0275fac=function(t){return new(t||Gu)(a.Sc(tu),a.Sc(ye.e),a.Sc(Ii),a.Sc(Nu))},Gu.\u0275prov=Object(a.zc)({factory:function(){return new Gu(Object(a.Sc)(tu),Object(a.Sc)(ye.e),Object(a.Sc)(Ii),Object(a.Sc)(Nu))},token:Gu,providedIn:"root"}),Gu),Zu=0,Qu=((Uu=function(){function t(e,i,n,a,r,o,s,c,l,u){_classCallCheck(this,t),this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=n,this._positionBuilder=a,this._keyboardDispatcher=r,this._injector=o,this._ngZone=s,this._document=c,this._directionality=l,this._location=u}return _createClass(t,[{key:"create",value:function(t){var e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),a=new Eu(t);return a.direction=a.direction||this._directionality.value,new zu(n,e,i,a,this._ngZone,this._keyboardDispatcher,this._document,this._location)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-".concat(Zu++),e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(a.g)),new pu(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}()).\u0275fac=function(t){return new(t||Uu)(a.Sc(Du),a.Sc(Nu),a.Sc(a.n),a.Sc(Yu),a.Sc(ju),a.Sc(a.y),a.Sc(a.I),a.Sc(ye.e),a.Sc(xn),a.Sc(ye.n,8))},Uu.\u0275prov=a.zc({token:Uu,factory:Uu.\u0275fac}),Uu),td=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ed=new a.x("cdk-connected-overlay-scroll-strategy"),id=((qu=function t(e){_classCallCheck(this,t),this.elementRef=e}).\u0275fac=function(t){return new(t||qu)(a.Dc(a.r))},qu.\u0275dir=a.yc({type:qu,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),qu),nd=((Wu=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=je.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new a.u,this.positionChange=new a.u,this.attach=new a.u,this.detach=new a.u,this.overlayKeydown=new a.u,this._templatePortal=new uu(i,n),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var t=this;this.positions&&this.positions.length||(this.positions=td),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe((function(e){t.overlayKeydown.next(e),27!==e.keyCode||Je(e)||(e.preventDefault(),t._detachOverlay())}))}},{key:"_buildConfig",value:function(){var t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new Eu({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}},{key:"_updatePositionStrategy",value:function(t){var e=this,i=this.positions.map((function(t){return{originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||e.offsetX,offsetY:t.offsetY||e.offsetY,panelClass:t.panelClass||void 0}}));return t.setOrigin(this.origin.elementRef).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var t=this,e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e.positionChanges.subscribe((function(e){return t.positionChange.emit(e)})),e}},{key:"_attachOverlay",value:function(){var t=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe((function(e){t.backdropClick.emit(e)})):this._backdropSubscription.unsubscribe()}},{key:"_detachOverlay",value:function(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}},{key:"offsetX",get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=fi(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=fi(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=fi(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=fi(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=fi(t)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),t}()).\u0275fac=function(t){return new(t||Wu)(a.Dc(Qu),a.Dc(a.Y),a.Dc(a.cb),a.Dc(ed),a.Dc(xn,8))},Wu.\u0275dir=a.yc({type:Wu,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown"},exportAs:["cdkConnectedOverlay"],features:[a.nc]}),Wu),ad={provide:ed,deps:[Qu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},rd=(($u=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:$u}),$u.\u0275inj=a.Ac({factory:function(t){return new(t||$u)},providers:[Qu,ad],imports:[[In,bu,iu],iu]}),$u),od=["underline"],sd=["connectionContainer"],cd=["inputContainer"],ld=["label"];function ud(t,e){1&t&&(a.Hc(0),a.Jc(1,"div",14),a.Ec(2,"div",15),a.Ec(3,"div",16),a.Ec(4,"div",17),a.Ic(),a.Jc(5,"div",18),a.Ec(6,"div",15),a.Ec(7,"div",16),a.Ec(8,"div",17),a.Ic(),a.Gc())}function dd(t,e){1&t&&(a.Jc(0,"div",19),a.ed(1,1),a.Ic())}function hd(t,e){if(1&t&&(a.Hc(0),a.ed(1,2),a.Jc(2,"span"),a.Bd(3),a.Ic(),a.Gc()),2&t){var i=a.ad(2);a.pc(3),a.Cd(i._control.placeholder)}}function pd(t,e){1&t&&a.ed(0,3,["*ngSwitchCase","true"])}function fd(t,e){1&t&&(a.Jc(0,"span",23),a.Bd(1," *"),a.Ic())}function md(t,e){if(1&t){var i=a.Kc();a.Jc(0,"label",20,21),a.Wc("cdkObserveContent",(function(){return a.rd(i),a.ad().updateOutlineGap()})),a.zd(2,hd,4,1,"ng-container",12),a.zd(3,pd,1,0,void 0,12),a.zd(4,fd,2,0,"span",22),a.Ic()}if(2&t){var n=a.ad();a.tc("mat-empty",n._control.empty&&!n._shouldAlwaysFloat)("mat-form-field-empty",n._control.empty&&!n._shouldAlwaysFloat)("mat-accent","accent"==n.color)("mat-warn","warn"==n.color),a.gd("cdkObserveContentDisabled","outline"!=n.appearance)("id",n._labelId)("ngSwitch",n._hasLabel()),a.qc("for",n._control.id)("aria-owns",n._control.id),a.pc(2),a.gd("ngSwitchCase",!1),a.pc(1),a.gd("ngSwitchCase",!0),a.pc(1),a.gd("ngIf",!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)}}function gd(t,e){1&t&&(a.Jc(0,"div",24),a.ed(1,4),a.Ic())}function vd(t,e){if(1&t&&(a.Jc(0,"div",25,26),a.Ec(2,"span",27),a.Ic()),2&t){var i=a.ad();a.pc(2),a.tc("mat-accent","accent"==i.color)("mat-warn","warn"==i.color)}}function bd(t,e){if(1&t&&(a.Jc(0,"div"),a.ed(1,5),a.Ic()),2&t){var i=a.ad();a.gd("@transitionMessages",i._subscriptAnimationState)}}function _d(t,e){if(1&t&&(a.Jc(0,"div",31),a.Bd(1),a.Ic()),2&t){var i=a.ad(2);a.gd("id",i._hintLabelId),a.pc(1),a.Cd(i.hintLabel)}}function yd(t,e){if(1&t&&(a.Jc(0,"div",28),a.zd(1,_d,2,2,"div",29),a.ed(2,6),a.Ec(3,"div",30),a.ed(4,7),a.Ic()),2&t){var i=a.ad();a.gd("@transitionMessages",i._subscriptAnimationState),a.pc(1),a.gd("ngIf",i.hintLabel)}}var kd,wd,Cd=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],xd=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Sd=0,Id=((kd=function t(){_classCallCheck(this,t),this.id="mat-error-".concat(Sd++)}).\u0275fac=function(t){return new(t||kd)},kd.\u0275dir=a.yc({type:kd,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&a.qc("id",e.id)},inputs:{id:"id"}}),kd),Od={transitionMessages:o("transitionMessages",[d("enter",u({opacity:1,transform:"translateY(0%)"})),p("void => enter",[u({opacity:0,transform:"translateY(-100%)"}),s("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Dd=((wd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||wd)},wd.\u0275dir=a.yc({type:wd}),wd);function Ed(t){return Error("A hint was already declared for 'align=\"".concat(t,"\"'."))}var Ad,Td,Pd,Rd,Md,Ld,jd,Fd=0,Nd=((Md=function t(){_classCallCheck(this,t),this.align="start",this.id="mat-hint-".concat(Fd++)}).\u0275fac=function(t){return new(t||Md)},Md.\u0275dir=a.yc({type:Md,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(a.qc("id",e.id)("align",null),a.tc("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),Md),zd=((Rd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Rd)},Rd.\u0275dir=a.yc({type:Rd,selectors:[["mat-label"]]}),Rd),Bd=((Pd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Pd)},Pd.\u0275dir=a.yc({type:Pd,selectors:[["mat-placeholder"]]}),Pd),Jd=((Td=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Td)},Td.\u0275dir=a.yc({type:Td,selectors:[["","matPrefix",""]]}),Td),Vd=((Ad=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ad)},Ad.\u0275dir=a.yc({type:Ad,selectors:[["","matSuffix",""]]}),Ad),Hd=0,Ud=Hn((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),Gd=new a.x("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Wd=new a.x("MatFormField"),qd=((jd=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o,s,c,l){var u;return _classCallCheck(this,i),(u=e.call(this,t))._elementRef=t,u._changeDetectorRef=n,u._dir=r,u._defaults=o,u._platform=s,u._ngZone=c,u._outlineGapCalculationNeededImmediately=!1,u._outlineGapCalculationNeededOnStable=!1,u._destroyed=new Le.a,u._showAlwaysAnimate=!1,u._subscriptAnimationState="",u._hintLabel="",u._hintLabelId="mat-hint-".concat(Hd++),u._labelId="mat-form-field-label-".concat(Hd++),u._labelOptions=a||{},u.floatLabel=u._getDefaultFloatLabelState(),u._animationsEnabled="NoopAnimations"!==l,u.appearance=o&&o.appearance?o.appearance:"legacy",u._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,u}return _createClass(i,[{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(e.controlType)),e.stateChanges.pipe(Tn(null)).subscribe((function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Dl(this._destroyed)).subscribe((function(){return t._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(Dl(t._destroyed)).subscribe((function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()}))})),Object(rl.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(Tn(null)).subscribe((function(){t._processHints(),t._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(Tn(null)).subscribe((function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(Dl(this._destroyed)).subscribe((function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return t.updateOutlineGap()}))})):t.updateOutlineGap()}))}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!!this._labelChild}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,ol(this._label.nativeElement,"transitionend").pipe(ui(1)).subscribe((function(){t._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){var t,e,i=this;this._hintChildren&&this._hintChildren.forEach((function(n){if("start"===n.align){if(t||i.hintLabel)throw Ed("start");t=n}else if("end"===n.align){if(e)throw Ed("end");e=n}}))}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find((function(t){return"start"===t.align})):null,i=this._hintChildren?this._hintChildren.find((function(t){return"end"===t.align})):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&(t=this._errorChildren.map((function(t){return t.id})));this._control.setDescribedByIds(t)}}},{key:"_validateControlChild",value:function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}},{key:"updateOutlineGap",value:function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var e=0,i=0,n=this._connectionContainerRef.nativeElement,a=n.querySelectorAll(".mat-form-field-outline-start"),r=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var o=n.getBoundingClientRect();if(0===o.width&&0===o.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);var s,c=this._getStartEnd(o),l=this._getStartEnd(t.children[0].getBoundingClientRect()),u=0,d=_createForOfIteratorHelper(t.children);try{for(d.s();!(s=d.n()).done;)u+=s.value.offsetWidth}catch(f){d.e(f)}finally{d.f()}e=Math.abs(l-c)-5,i=u>0?.75*u+10:0}for(var h=0;h<a.length;h++)a[h].style.width="".concat(e,"px");for(var p=0;p<r.length;p++)r[p].style.width="".concat(i,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}else this._outlineGapCalculationNeededImmediately=!0}},{key:"_getStartEnd",value:function(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left}},{key:"_isAttachedToDOM",value:function(){var t=this._elementRef.nativeElement;if(t.getRootNode){var e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)}},{key:"appearance",get:function(){return this._appearance},set:function(t){var e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=fi(t)}},{key:"_shouldAlwaysFloat",get:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",get:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(t){this._explicitFormFieldControl=t}},{key:"_labelChild",get:function(){return this._labelChildNonStatic||this._labelChildStatic}}]),i}(Ud)).\u0275fac=function(t){return new(t||jd)(a.Dc(a.r),a.Dc(a.j),a.Dc($a,8),a.Dc(xn,8),a.Dc(Gd,8),a.Dc(Ii),a.Dc(a.I),a.Dc(Pe,8))},jd.\u0275cmp=a.xc({type:jd,selectors:[["mat-form-field"]],contentQueries:function(t,e,i){var n;1&t&&(a.vc(i,Dd,!0),a.wd(i,Dd,!0),a.vc(i,zd,!0),a.wd(i,zd,!0),a.vc(i,Bd,!0),a.vc(i,Id,!0),a.vc(i,Nd,!0),a.vc(i,Jd,!0),a.vc(i,Vd,!0)),2&t&&(a.md(n=a.Xc())&&(e._controlNonStatic=n.first),a.md(n=a.Xc())&&(e._controlStatic=n.first),a.md(n=a.Xc())&&(e._labelChildNonStatic=n.first),a.md(n=a.Xc())&&(e._labelChildStatic=n.first),a.md(n=a.Xc())&&(e._placeholderChild=n.first),a.md(n=a.Xc())&&(e._errorChildren=n),a.md(n=a.Xc())&&(e._hintChildren=n),a.md(n=a.Xc())&&(e._prefixChildren=n),a.md(n=a.Xc())&&(e._suffixChildren=n))},viewQuery:function(t,e){var i;1&t&&(a.Fd(od,!0),a.xd(sd,!0),a.Fd(cd,!0),a.Fd(ld,!0)),2&t&&(a.md(i=a.Xc())&&(e.underlineRef=i.first),a.md(i=a.Xc())&&(e._connectionContainerRef=i.first),a.md(i=a.Xc())&&(e._inputContainerRef=i.first),a.md(i=a.Xc())&&(e._label=i.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(t,e){2&t&&a.tc("mat-form-field-appearance-standard","standard"==e.appearance)("mat-form-field-appearance-fill","fill"==e.appearance)("mat-form-field-appearance-outline","outline"==e.appearance)("mat-form-field-appearance-legacy","legacy"==e.appearance)("mat-form-field-invalid",e._control.errorState)("mat-form-field-can-float",e._canLabelFloat)("mat-form-field-should-float",e._shouldLabelFloat())("mat-form-field-has-label",e._hasFloatingLabel())("mat-form-field-hide-placeholder",e._hideControlPlaceholder())("mat-form-field-disabled",e._control.disabled)("mat-form-field-autofilled",e._control.autofilled)("mat-focused",e._control.focused)("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)("ng-untouched",e._shouldForward("untouched"))("ng-touched",e._shouldForward("touched"))("ng-pristine",e._shouldForward("pristine"))("ng-dirty",e._shouldForward("dirty"))("ng-valid",e._shouldForward("valid"))("ng-invalid",e._shouldForward("invalid"))("ng-pending",e._shouldForward("pending"))("_mat-animation-noopable",!e._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[a.oc([{provide:Wd,useExisting:jd}]),a.mc],ngContentSelectors:xd,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(t,e){1&t&&(a.fd(Cd),a.Jc(0,"div",0),a.Jc(1,"div",1,2),a.Wc("click",(function(t){return e._control.onContainerClick&&e._control.onContainerClick(t)})),a.zd(3,ud,9,0,"ng-container",3),a.zd(4,dd,2,0,"div",4),a.Jc(5,"div",5,6),a.ed(7),a.Jc(8,"span",7),a.zd(9,md,5,16,"label",8),a.Ic(),a.Ic(),a.zd(10,gd,2,0,"div",9),a.Ic(),a.zd(11,vd,3,4,"div",10),a.Jc(12,"div",11),a.zd(13,bd,2,1,"div",12),a.zd(14,yd,5,2,"div",13),a.Ic(),a.Ic()),2&t&&(a.pc(3),a.gd("ngIf","outline"==e.appearance),a.pc(1),a.gd("ngIf",e._prefixChildren.length),a.pc(5),a.gd("ngIf",e._hasFloatingLabel()),a.pc(1),a.gd("ngIf",e._suffixChildren.length),a.pc(1),a.gd("ngIf","outline"!=e.appearance),a.pc(1),a.gd("ngSwitch",e._getDisplayedMessages()),a.pc(1),a.gd("ngSwitchCase","error"),a.pc(1),a.gd("ngSwitchCase","hint"))},directives:[ye.t,ye.x,ye.y,zi],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[Od.transitionMessages]},changeDetection:0}),jd),$d=((Ld=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Ld}),Ld.\u0275inj=a.Ac({factory:function(t){return new(t||Ld)},imports:[[ye.c,Bi]]}),Ld);function Kd(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ye,n=(e=t)instanceof Date&&!isNaN(+e)?+t-i.now():Math.abs(t);return function(t){return t.lift(new Xd(n,i))}}var Xd=function(){function t(e,i){_classCallCheck(this,t),this.delay=e,this.scheduler=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Yd(t,this.delay,this.scheduler))}}]),t}(),Yd=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,t)).delay=n,r.scheduler=a,r.queue=[],r.active=!1,r.errored=!1,r}return _createClass(i,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(i.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,i=new Zd(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(Gl.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Gl.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){for(var e=t.source,i=e.queue,n=t.scheduler,a=t.destination;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(a);if(i.length>0){var r=Math.max(0,i[0].time-n.now());this.schedule(t,r)}else this.unsubscribe(),e.active=!1}}]),i}(Ve.a),Zd=function t(e,i){_classCallCheck(this,t),this.time=e,this.notification=i},Qd=["panel"];function th(t,e){if(1&t&&(a.Jc(0,"div",0,1),a.ed(2),a.Ic()),2&t){var i=a.ad();a.gd("id",i.id)("ngClass",i._classList)}}var eh,ih,nh,ah,rh=["*"],oh=0,sh=function t(e,i){_classCallCheck(this,t),this.source=e,this.option=i},ch=Un((function t(){_classCallCheck(this,t)})),lh=new a.x("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),uh=((ih=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this))._changeDetectorRef=t,o._elementRef=n,o._activeOptionChanges=je.a.EMPTY,o.showPanel=!1,o._isOpen=!1,o.displayWith=null,o.optionSelected=new a.u,o.opened=new a.u,o.closed=new a.u,o.optionActivated=new a.u,o._classList={},o.id="mat-autocomplete-".concat(oh++),o._autoActiveFirstOption=!!r.autoActiveFirstOption,o}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new Ki(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe((function(e){t.optionActivated.emit({source:t,option:t.options.toArray()[e]||null})})),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(t){var e=new sh(this,t);this.optionSelected.emit(e)}},{key:"_setVisibilityClasses",value:function(t){t["mat-autocomplete-visible"]=this.showPanel,t["mat-autocomplete-hidden"]=!this.showPanel}},{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(t){this._autoActiveFirstOption=fi(t)}},{key:"classList",set:function(t){this._classList=t&&t.length?t.split(" ").reduce((function(t,e){return t[e.trim()]=!0,t}),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}}]),i}(ch)).\u0275fac=function(t){return new(t||ih)(a.Dc(a.j),a.Dc(a.r),a.Dc(lh))},ih.\u0275cmp=a.xc({type:ih,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){var n;1&t&&(a.vc(i,Ba,!0),a.vc(i,La,!0)),2&t&&(a.md(n=a.Xc())&&(e.options=n),a.md(n=a.Xc())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(a.xd(a.Y,!0),a.Fd(Qd,!0)),2&t&&(a.md(i=a.Xc())&&(e.template=i.first),a.md(i=a.Xc())&&(e.panel=i.first))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple",displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[a.oc([{provide:za,useExisting:ih}]),a.mc],ngContentSelectors:rh,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(a.fd(),a.zd(0,th,3,2,"ng-template"))},directives:[ye.q],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),ih),dh=((eh=function t(e){_classCallCheck(this,t),this.elementRef=e}).\u0275fac=function(t){return new(t||eh)(a.Dc(a.r))},eh.\u0275dir=a.yc({type:eh,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"]}),eh),hh=new a.x("mat-autocomplete-scroll-strategy"),ph={provide:hh,deps:[Qu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},fh={provide:mr,useExisting:Object(a.hb)((function(){return mh})),multi:!0},mh=((ah=function(){function t(e,i,n,a,r,o,s,c,l,u){var d=this;_classCallCheck(this,t),this._element=e,this._overlay=i,this._viewContainerRef=n,this._zone=a,this._changeDetectorRef=r,this._dir=s,this._formField=c,this._document=l,this._viewportRuler=u,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=je.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Le.a,this._windowBlurHandler=function(){d._canOpenOnNextFocus=d._document.activeElement!==d._element.nativeElement||d.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=al((function(){return d.autocomplete&&d.autocomplete.options?Object(rl.a).apply(void 0,_toConsumableArray(d.autocomplete.options.map((function(t){return t.onSelectionChange})))):d._zone.onStable.asObservable().pipe(ui(1),Pl((function(){return d.optionSelections})))})),this._scrollStrategy=o}return _createClass(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._getWindow();void 0!==e&&(this._zone.runOutsideAngular((function(){e.addEventListener("blur",t._windowBlurHandler)})),this._isInsideShadowRoot=!!Pi(this._element.nativeElement))}},{key:"ngOnChanges",value:function(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"_getOutsideClickStream",value:function(){var t=this;return Object(rl.a)(ol(this._document,"click"),ol(this._document,"touchend")).pipe(ii((function(e){var i=t._isInsideShadowRoot&&e.composedPath?e.composedPath()[0]:e.target,n=t._formField?t._formField._elementRef.nativeElement:null;return t._overlayAttached&&i!==t._element.nativeElement&&(!n||!n.contains(i))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(i)})))}},{key:"writeValue",value:function(t){var e=this;Promise.resolve(null).then((function(){return e._setTriggerValue(t)}))}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this._element.nativeElement.disabled=t}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;if(27===e&&t.preventDefault(),this.activeOption&&13===e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){var i=this.autocomplete._keyManager.activeItem,n=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption()}}},{key:"_handleInput",value:function(t){var e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_scrollToOption",value:function(){var t=this.autocomplete._keyManager.activeItemIndex||0,e=Ja(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{var i=Va(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(i)}}},{key:"_subscribeToClosingActions",value:function(){var t=this,e=this._zone.onStable.asObservable().pipe(ui(1)),i=this.autocomplete.options.changes.pipe(Ge((function(){return t._positionStrategy.reapplyLastPosition()})),Kd(0));return Object(rl.a)(e,i).pipe(Pl((function(){var e=t.panelOpen;return t._resetActiveItem(),t.autocomplete._setVisibility(),t.panelOpen&&(t._overlayRef.updatePosition(),e!==t.panelOpen&&t.autocomplete.opened.emit()),t.panelClosingActions})),ui(1)).subscribe((function(e){return t._setValueAndClose(e)}))}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(t){var e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}},{key:"_setValueAndClose",value:function(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(t){this.autocomplete.options.forEach((function(e){e!=t&&e.selected&&e.deselect()}))}},{key:"_attachOverlay",value:function(){var t=this;if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");var e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new uu(this.autocomplete.template,this._viewContainerRef),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe((function(e){(27===e.keyCode||38===e.keyCode&&e.altKey)&&(t._resetActiveItem(),t._closeKeyEventStream.next(),e.stopPropagation(),e.preventDefault())})),this._viewportRuler&&(this._viewportSubscription=this._viewportRuler.change().subscribe((function(){t.panelOpen&&e&&e.updateSize({width:t._getPanelWidth()})})))),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){return new Eu({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})}},{key:"_getOverlayPosition",value:function(){var t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}},{key:"_setStrategyPositions",value:function(t){var e,i={originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},n={originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"};e="above"===this.position?[n]:"below"===this.position?[i]:[i,n],t.withPositions(e)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}},{key:"_canOpen",value:function(){var t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}},{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=fi(t)}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"panelClosingActions",get:function(){var t=this;return Object(rl.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(ii((function(){return t._overlayAttached}))),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(ii((function(){return t._overlayAttached}))):Be()).pipe(Object(ri.a)((function(t){return t instanceof Na?t:null})))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}]),t}()).\u0275fac=function(t){return new(t||ah)(a.Dc(a.r),a.Dc(Qu),a.Dc(a.cb),a.Dc(a.I),a.Dc(a.j),a.Dc(hh),a.Dc(xn,8),a.Dc(Wd,9),a.Dc(ye.e,8),a.Dc(tu))},ah.\u0275dir=a.yc({type:ah,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&a.Wc("focusin",(function(){return e._handleFocus()}))("blur",(function(){return e._onTouched()}))("input",(function(t){return e._handleInput(t)}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&a.qc("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},exportAs:["matAutocompleteTrigger"],features:[a.oc([fh]),a.nc]}),ah),gh=((nh=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:nh}),nh.\u0275inj=a.Ac({factory:function(t){return new(t||nh)},providers:[ph],imports:[[qa,rd,Jn,ye.c],qa,Jn]}),nh);function vh(t,e){}var bh=function t(){_classCallCheck(this,t),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},_h={dialogContainer:o("dialogContainer",[d("void, exit",u({opacity:0,transform:"scale(0.7)"})),d("enter",u({transform:"none"})),p("* => enter",s("150ms cubic-bezier(0, 0, 0.2, 1)",u({transform:"none",opacity:1}))),p("* => void, * => exit",s("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",u({opacity:0})))])};function yh(){throw Error("Attempting to attach dialog content after content is already attached")}var kh,wh,Ch,xh,Sh,Ih,Oh=((kh=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,s){var c;return _classCallCheck(this,i),(c=e.call(this))._elementRef=t,c._focusTrapFactory=n,c._changeDetectorRef=r,c._config=s,c._elementFocusedBeforeDialogWasOpened=null,c._state="enter",c._animationStateChanged=new a.u,c.attachDomPortal=function(t){return c._portalOutlet.hasAttached()&&yh(),c._savePreviouslyFocusedElement(),c._portalOutlet.attachDomPortal(t)},c._ariaLabelledBy=s.ariaLabelledBy||null,c._document=o,c}return _createClass(i,[{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached()&&yh(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached()&&yh(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)}},{key:"_trapFocus",value:function(){var t=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(t)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{var e=this._document.activeElement;e===t||t.contains(e)||t.focus()}}},{key:"_restoreFocus",value:function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var e=this._document.activeElement,i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||t.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_savePreviouslyFocusedElement",value:function(){var t=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return t._elementRef.nativeElement.focus()})))}},{key:"_onAnimationDone",value:function(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)}},{key:"_onAnimationStart",value:function(t){this._animationStateChanged.emit(t)}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),i}(hu)).\u0275fac=function(t){return new(t||kh)(a.Dc(a.r),a.Dc(nn),a.Dc(a.j),a.Dc(ye.e,8),a.Dc(bh))},kh.\u0275cmp=a.xc({type:kh,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var i;1&t&&a.xd(mu,!0),2&t&&a.md(i=a.Xc())&&(e._portalOutlet=i.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&a.uc("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(a.qc("id",e._id)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),a.Ed("@dialogContainer",e._state))},features:[a.mc],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&a.zd(0,vh,0,0,"ng-template",0)},directives:[mu],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[_h.dialogContainer]}}),kh),Dh=0,Eh=function(){function t(e,i){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(Dh++);_classCallCheck(this,t),this._overlayRef=e,this._containerInstance=i,this.id=a,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Le.a,this._afterClosed=new Le.a,this._beforeClosed=new Le.a,this._state=0,i._id=a,i._animationStateChanged.pipe(ii((function(t){return"done"===t.phaseName&&"enter"===t.toState})),ui(1)).subscribe((function(){n._afterOpened.next(),n._afterOpened.complete()})),i._animationStateChanged.pipe(ii((function(t){return"done"===t.phaseName&&"exit"===t.toState})),ui(1)).subscribe((function(){clearTimeout(n._closeFallbackTimeout),n._overlayRef.dispose()})),e.detachments().subscribe((function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()})),e.keydownEvents().pipe(ii((function(t){return 27===t.keyCode&&!n.disableClose&&!Je(t)}))).subscribe((function(t){t.preventDefault(),n.close()}))}return _createClass(t,[{key:"close",value:function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(ii((function(t){return"start"===t.phaseName})),ui(1)).subscribe((function(i){e._beforeClosed.next(t),e._beforeClosed.complete(),e._state=2,e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout((function(){e._overlayRef.dispose()}),i.totalTime+100)})),this._containerInstance._startExitAnimation(),this._state=1}},{key:"afterOpened",value:function(){return this._afterOpened.asObservable()}},{key:"afterClosed",value:function(){return this._afterClosed.asObservable()}},{key:"beforeClosed",value:function(){return this._beforeClosed.asObservable()}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),t}(),Ah=new a.x("MatDialogData"),Th=new a.x("mat-dialog-default-options"),Ph=new a.x("mat-dialog-scroll-strategy"),Rh={provide:Ph,deps:[Qu],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},Mh=((Ih=function(){function t(e,i,n,a,r,o,s){var c=this;_classCallCheck(this,t),this._overlay=e,this._injector=i,this._defaultOptions=a,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Le.a,this._afterOpenedAtThisLevel=new Le.a,this._ariaHiddenElements=new Map,this.afterAllClosed=al((function(){return c.openDialogs.length?c._afterAllClosed:c._afterAllClosed.pipe(Tn(void 0))})),this._scrollStrategy=r}return _createClass(t,[{key:"open",value:function(t,e){var i=this;if((e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new bh)).id&&this.getDialogById(e.id))throw Error('Dialog with id "'.concat(e.id,'" exists already. The dialog id must be unique.'));var n=this._createOverlay(e),a=this._attachDialogContainer(n,e),r=this._attachDialogContent(t,a,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe((function(){return i._removeOpenDialog(r)})),this.afterOpened.next(r),r}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(t){return this.openDialogs.find((function(e){return e.id===t}))}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)}},{key:"_getOverlayConfig",value:function(t){var e=new Eu({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}},{key:"_attachDialogContainer",value:function(t,e){var i=a.y.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:bh,useValue:e}]}),n=new lu(Oh,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}},{key:"_attachDialogContent",value:function(t,e,i,n){var r=new Eh(i,e,n.id);if(n.hasBackdrop&&i.backdropClick().subscribe((function(){r.disableClose||r.close()})),t instanceof a.Y)e.attachTemplatePortal(new uu(t,null,{$implicit:n.data,dialogRef:r}));else{var o=this._createInjector(n,r,e),s=e.attachComponentPortal(new lu(t,n.viewContainerRef,o));r.componentInstance=s.instance}return r.updateSize(n.width,n.height).updatePosition(n.position),r}},{key:"_createInjector",value:function(t,e,i){var n=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:Oh,useValue:i},{provide:Ah,useValue:t.data},{provide:Eh,useValue:e}];return!t.direction||n&&n.get(xn,null)||r.push({provide:xn,useValue:{value:t.direction,change:Be()}}),a.y.create({parent:n||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,i=e.length-1;i>-1;i--){var n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(t){for(var e=t.length;e--;)t[e].close()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_afterAllClosed",get:function(){var t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel}}]),t}()).\u0275fac=function(t){return new(t||Ih)(a.Sc(Qu),a.Sc(a.y),a.Sc(ye.n,8),a.Sc(Th,8),a.Sc(Ph),a.Sc(Ih,12),a.Sc(Nu))},Ih.\u0275prov=a.zc({token:Ih,factory:Ih.\u0275fac}),Ih),Lh=0,jh=((Sh=function(){function t(e,i,n){_classCallCheck(this,t),this.dialogRef=e,this._elementRef=i,this._dialog=n,this.type="button"}return _createClass(t,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=Bh(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}}]),t}()).\u0275fac=function(t){return new(t||Sh)(a.Dc(Eh,8),a.Dc(a.r),a.Dc(Mh))},Sh.\u0275dir=a.yc({type:Sh,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&a.Wc("click",(function(){return e.dialogRef.close(e.dialogResult)})),2&t&&a.qc("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[a.nc]}),Sh),Fh=((xh=function(){function t(e,i,n){_classCallCheck(this,t),this._dialogRef=e,this._elementRef=i,this._dialog=n,this.id="mat-dialog-title-".concat(Lh++)}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this._dialogRef||(this._dialogRef=Bh(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then((function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)}))}}]),t}()).\u0275fac=function(t){return new(t||xh)(a.Dc(Eh,8),a.Dc(a.r),a.Dc(Mh))},xh.\u0275dir=a.yc({type:xh,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&a.Mc("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),xh),Nh=((Ch=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ch)},Ch.\u0275dir=a.yc({type:Ch,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),Ch),zh=((wh=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||wh)},wh.\u0275dir=a.yc({type:wh,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),wh);function Bh(t,e){for(var i=t.nativeElement.parentElement;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find((function(t){return t.id===i.id})):null}var Jh,Vh,Hh,Uh,Gh=((Uh=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Uh}),Uh.\u0275inj=a.Ac({factory:function(t){return new(t||Uh)},providers:[Mh,Rh],imports:[[rd,bu,Jn],Jn]}),Uh),Wh=0,qh=((Hh=function(){function t(){_classCallCheck(this,t),this._stateChanges=new Le.a,this._openCloseAllActions=new Le.a,this.id="cdk-accordion-".concat(Wh++),this._multi=!1}return _createClass(t,[{key:"openAll",value:function(){this._openCloseAll(!0)}},{key:"closeAll",value:function(){this._openCloseAll(!1)}},{key:"ngOnChanges",value:function(t){this._stateChanges.next(t)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_openCloseAll",value:function(t){this.multi&&this._openCloseAllActions.next(t)}},{key:"multi",get:function(){return this._multi},set:function(t){this._multi=fi(t)}}]),t}()).\u0275fac=function(t){return new(t||Hh)},Hh.\u0275dir=a.yc({type:Hh,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[a.nc]}),Hh),$h=0,Kh=((Vh=function(){function t(e,i,n){var r=this;_classCallCheck(this,t),this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=n,this._openCloseAllSubscription=je.a.EMPTY,this.closed=new a.u,this.opened=new a.u,this.destroyed=new a.u,this.expandedChange=new a.u,this.id="cdk-accordion-child-".concat($h++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=n.listen((function(t,e){r.accordion&&!r.accordion.multi&&r.accordion.id===e&&r.id!==t&&(r.expanded=!1)})),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var t=this;return this.accordion._openCloseAllActions.subscribe((function(e){t.disabled||(t.expanded=e)}))}},{key:"expanded",get:function(){return this._expanded},set:function(t){t=fi(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=fi(t)}}]),t}()).\u0275fac=function(t){return new(t||Vh)(a.Dc(qh,12),a.Dc(a.j),a.Dc(rr))},Vh.\u0275dir=a.yc({type:Vh,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[a.oc([{provide:qh,useValue:void 0}])]}),Vh),Xh=((Jh=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Jh}),Jh.\u0275inj=a.Ac({factory:function(t){return new(t||Jh)}}),Jh),Yh=["body"];function Zh(t,e){}var Qh=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],tp=["mat-expansion-panel-header","*","mat-action-row"],ep=function(t,e){return{collapsedHeight:t,expandedHeight:e}},ip=function(t,e){return{value:t,params:e}};function np(t,e){if(1&t&&a.Ec(0,"span",2),2&t){var i=a.ad();a.gd("@indicatorRotate",i._getExpandedState())}}var ap,rp,op,sp,cp,lp,up,dp,hp,pp,fp,mp,gp,vp=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],bp=["mat-panel-title","mat-panel-description","*"],_p=new a.x("MAT_ACCORDION"),yp={indicatorRotate:o("indicatorRotate",[d("collapsed, void",u({transform:"rotate(0deg)"})),d("expanded",u({transform:"rotate(180deg)"})),p("expanded <=> collapsed, void => collapsed",s("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:o("expansionHeight",[d("collapsed, void",u({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),d("expanded",u({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),p("expanded <=> collapsed, void => collapsed",c([m("@indicatorRotate",f(),{optional:!0}),s("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:o("bodyExpansion",[d("collapsed, void",u({height:"0px",visibility:"hidden"})),d("expanded",u({height:"*",visibility:"visible"})),p("expanded <=> collapsed, void => collapsed",s("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},kp=((ap=function t(e){_classCallCheck(this,t),this._template=e}).\u0275fac=function(t){return new(t||ap)(a.Dc(a.Y))},ap.\u0275dir=a.yc({type:ap,selectors:[["ng-template","matExpansionPanelContent",""]]}),ap),wp=0,Cp=new a.x("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),xp=((up=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,s,c,l){var u;return _classCallCheck(this,i),(u=e.call(this,t,n,r))._viewContainerRef=o,u._animationMode=c,u._hideToggle=!1,u.afterExpand=new a.u,u.afterCollapse=new a.u,u._inputChanges=new Le.a,u._headerId="mat-expansion-panel-header-".concat(wp++),u._bodyAnimationDone=new Le.a,u.accordion=t,u._document=s,u._bodyAnimationDone.pipe(vl((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){"void"!==t.fromState&&("expanded"===t.toState?u.afterExpand.emit():"collapsed"===t.toState&&u.afterCollapse.emit())})),l&&(u.hideToggle=l.hideToggle),u}return _createClass(i,[{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var t=this;this._lazyContent&&this.opened.pipe(Tn(null),ii((function(){return t.expanded&&!t._portal})),ui(1)).subscribe((function(){t._portal=new uu(t._lazyContent._template,t._viewContainerRef)}))}},{key:"ngOnChanges",value:function(t){this._inputChanges.next(t)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}},{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(t){this._hideToggle=fi(t)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(t){this._togglePosition=t}}]),i}(Kh)).\u0275fac=function(t){return new(t||up)(a.Dc(_p,12),a.Dc(a.j),a.Dc(rr),a.Dc(a.cb),a.Dc(ye.e),a.Dc(Pe,8),a.Dc(Cp,8))},up.\u0275cmp=a.xc({type:up,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){var n;1&t&&a.vc(i,kp,!0),2&t&&a.md(n=a.Xc())&&(e._lazyContent=n.first)},viewQuery:function(t,e){var i;1&t&&a.Fd(Yh,!0),2&t&&a.md(i=a.Xc())&&(e._body=i.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&a.tc("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[a.oc([{provide:_p,useValue:void 0}]),a.mc,a.nc],ngContentSelectors:tp,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(a.fd(Qh),a.ed(0),a.Jc(1,"div",0,1),a.Wc("@bodyExpansion.done",(function(t){return e._bodyAnimationDone.next(t)})),a.Jc(3,"div",2),a.ed(4,1),a.zd(5,Zh,0,0,"ng-template",3),a.Ic(),a.ed(6,2),a.Ic()),2&t&&(a.pc(1),a.gd("@bodyExpansion",e._getExpandedState())("id",e.id),a.qc("aria-labelledby",e._headerId),a.pc(4),a.gd("cdkPortalOutlet",e._portal))},directives:[mu],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[yp.bodyExpansion]},changeDetection:0}),up),Sp=((lp=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||lp)},lp.\u0275dir=a.yc({type:lp,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),lp),Ip=((cp=function(){function t(e,i,n,a,r){var o=this;_classCallCheck(this,t),this.panel=e,this._element=i,this._focusMonitor=n,this._changeDetectorRef=a,this._parentChangeSubscription=je.a.EMPTY,this._animationsDisabled=!0;var s=e.accordion?e.accordion._stateChanges.pipe(ii((function(t){return!(!t.hideToggle&&!t.togglePosition)}))):ci;this._parentChangeSubscription=Object(rl.a)(e.opened,e.closed,s,e._inputChanges.pipe(ii((function(t){return!!(t.hideToggle||t.disabled||t.togglePosition)})))).subscribe((function(){return o._changeDetectorRef.markForCheck()})),e.closed.pipe(ii((function(){return e._containsFocus()}))).subscribe((function(){return n.focusVia(i,"program")})),n.monitor(i).subscribe((function(t){t&&e.accordion&&e.accordion._handleHeaderFocus(o)})),r&&(this.expandedHeight=r.expandedHeight,this.collapsedHeight=r.collapsedHeight)}return _createClass(t,[{key:"_animationStarted",value:function(){this._animationsDisabled=!1}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_keydown",value:function(t){switch(t.keyCode){case 32:case 13:Je(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._element,t,e)}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}},{key:"disabled",get:function(){return this.panel.disabled}}]),t}()).\u0275fac=function(t){return new(t||cp)(a.Dc(xp,1),a.Dc(a.r),a.Dc(hn),a.Dc(a.j),a.Dc(Cp,8))},cp.\u0275cmp=a.xc({type:cp,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header"],hostVars:19,hostBindings:function(t,e){1&t&&(a.uc("@expansionHeight.start",(function(){return e._animationStarted()})),a.Wc("click",(function(){return e._toggle()}))("keydown",(function(t){return e._keydown(t)}))),2&t&&(a.qc("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),a.Ed("@.disabled",e._animationsDisabled)("@expansionHeight",a.kd(16,ip,e._getExpandedState(),a.kd(13,ep,e.collapsedHeight,e.expandedHeight))),a.tc("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:bp,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(a.fd(vp),a.Jc(0,"span",0),a.ed(1),a.ed(2,1),a.ed(3,2),a.Ic(),a.zd(4,np,1,1,"span",1)),2&t&&(a.pc(4),a.gd("ngIf",e._showToggle()))},directives:[ye.t],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[yp.indicatorRotate,yp.expansionHeaderHeight]},changeDetection:0}),cp),Op=((sp=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||sp)},sp.\u0275dir=a.yc({type:sp,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),sp),Dp=((op=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||op)},op.\u0275dir=a.yc({type:op,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),op),Ep=((rp=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._ownHeaders=new a.O,t._hideToggle=!1,t.displayMode="default",t.togglePosition="after",t}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._headers.changes.pipe(Tn(this._headers)).subscribe((function(e){t._ownHeaders.reset(e.filter((function(e){return e.panel.accordion===t}))),t._ownHeaders.notifyOnChanges()})),this._keyManager=new Xi(this._ownHeaders).withWrap()}},{key:"_handleHeaderKeydown",value:function(t){var e=t.keyCode,i=this._keyManager;36===e?Je(t)||(i.setFirstItemActive(),t.preventDefault()):35===e?Je(t)||(i.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)}},{key:"_handleHeaderFocus",value:function(t){this._keyManager.updateActiveItem(t)}},{key:"hideToggle",get:function(){return this._hideToggle},set:function(t){this._hideToggle=fi(t)}}]),i}(qh)).\u0275fac=function(t){return Ap(t||rp)},rp.\u0275dir=a.yc({type:rp,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){var n;1&t&&a.vc(i,Ip,!0),2&t&&a.md(n=a.Xc())&&(e._headers=n)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&a.tc("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[a.oc([{provide:_p,useExisting:rp}]),a.mc]}),rp),Ap=a.Lc(Ep),Tp=((dp=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:dp}),dp.\u0275inj=a.Ac({factory:function(t){return new(t||dp)},imports:[[ye.c,Xh,bu]]}),dp),Pp=["*"],Rp=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],Mp=["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],Lp=new a.x("MAT_GRID_LIST"),jp=((gp=function(){function t(e,i){_classCallCheck(this,t),this._element=e,this._gridList=i,this._rowspan=1,this._colspan=1}return _createClass(t,[{key:"_setStyle",value:function(t,e){this._element.nativeElement.style[t]=e}},{key:"rowspan",get:function(){return this._rowspan},set:function(t){this._rowspan=Math.round(mi(t))}},{key:"colspan",get:function(){return this._colspan},set:function(t){this._colspan=Math.round(mi(t))}}]),t}()).\u0275fac=function(t){return new(t||gp)(a.Dc(a.r),a.Dc(Lp,8))},gp.\u0275cmp=a.xc({type:gp,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(t,e){2&t&&a.qc("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:Pp,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(t,e){1&t&&(a.fd(),a.Jc(0,"figure",0),a.ed(1),a.Ic())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),gp),Fp=((mp=function(){function t(e){_classCallCheck(this,t),this._element=e}return _createClass(t,[{key:"ngAfterContentInit",value:function(){fa(this._lines,this._element)}}]),t}()).\u0275fac=function(t){return new(t||mp)(a.Dc(a.r))},mp.\u0275cmp=a.xc({type:mp,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(t,e,i){var n;1&t&&a.vc(i,pa,!0),2&t&&a.md(n=a.Xc())&&(e._lines=n)},ngContentSelectors:Mp,decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(t,e){1&t&&(a.fd(Rp),a.ed(0),a.Jc(1,"div",0),a.ed(2,1),a.Ic(),a.ed(3,2))},encapsulation:2,changeDetection:0}),mp),Np=((fp=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||fp)},fp.\u0275dir=a.yc({type:fp,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]}),fp),zp=((pp=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||pp)},pp.\u0275dir=a.yc({type:pp,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]}),pp),Bp=((hp=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||hp)},hp.\u0275dir=a.yc({type:hp,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]}),hp),Jp=function(){function t(){_classCallCheck(this,t),this.columnIndex=0,this.rowIndex=0}return _createClass(t,[{key:"update",value:function(t,e){var i=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map((function(t){return i._trackTile(t)}))}},{key:"_trackTile",value:function(t){var e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new Vp(this.rowIndex,e)}},{key:"_findMatchingGap",value:function(t){if(t>this.tracker.length)throw Error("mat-grid-list: tile with colspan ".concat(t," is wider than ")+'grid with cols="'.concat(this.tracker.length,'".'));var e=-1,i=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(e)):-1!=(e=this.tracker.indexOf(0,this.columnIndex))?(i=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(e))}while(i-e<t||0==i);return Math.max(e,0)}},{key:"_nextRow",value:function(){this.columnIndex=0,this.rowIndex++;for(var t=0;t<this.tracker.length;t++)this.tracker[t]=Math.max(0,this.tracker[t]-1)}},{key:"_findGapEndIndex",value:function(t){for(var e=t+1;e<this.tracker.length;e++)if(0!=this.tracker[e])return e;return this.tracker.length}},{key:"_markTilePosition",value:function(t,e){for(var i=0;i<e.colspan;i++)this.tracker[t+i]=e.rowspan}},{key:"rowCount",get:function(){return this.rowIndex+1}},{key:"rowspan",get:function(){var t=Math.max.apply(Math,_toConsumableArray(this.tracker));return t>1?this.rowCount+t-1:this.rowCount}}]),t}(),Vp=function t(e,i){_classCallCheck(this,t),this.row=e,this.col=i},Hp=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,Up=function(){function t(){_classCallCheck(this,t),this._rows=0,this._rowspan=0}return _createClass(t,[{key:"init",value:function(t,e,i,n){this._gutterSize=Kp(t),this._rows=e.rowCount,this._rowspan=e.rowspan,this._cols=i,this._direction=n}},{key:"getBaseTileSize",value:function(t,e){return"(".concat(t,"% - (").concat(this._gutterSize," * ").concat(e,"))")}},{key:"getTilePosition",value:function(t,e){return 0===e?"0":$p("(".concat(t," + ").concat(this._gutterSize,") * ").concat(e))}},{key:"getTileSize",value:function(t,e){return"(".concat(t," * ").concat(e,") + (").concat(e-1," * ").concat(this._gutterSize,")")}},{key:"setStyle",value:function(t,e,i){var n=100/this._cols,a=(this._cols-1)/this._cols;this.setColStyles(t,i,n,a),this.setRowStyles(t,e,n,a)}},{key:"setColStyles",value:function(t,e,i,n){var a=this.getBaseTileSize(i,n);t._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(a,e)),t._setStyle("width",$p(this.getTileSize(a,t.colspan)))}},{key:"getGutterSpan",value:function(){return"".concat(this._gutterSize," * (").concat(this._rowspan," - 1)")}},{key:"getTileSpan",value:function(t){return"".concat(this._rowspan," * ").concat(this.getTileSize(t,1))}},{key:"getComputedHeight",value:function(){return null}}]),t}(),Gp=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this)).fixedRowHeight=t,n}return _createClass(i,[{key:"init",value:function(t,e,n,a){if(_get(_getPrototypeOf(i.prototype),"init",this).call(this,t,e,n,a),this.fixedRowHeight=Kp(this.fixedRowHeight),!Hp.test(this.fixedRowHeight))throw Error('Invalid value "'.concat(this.fixedRowHeight,'" set as rowHeight.'))}},{key:"setRowStyles",value:function(t,e){t._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),t._setStyle("height",$p(this.getTileSize(this.fixedRowHeight,t.rowspan)))}},{key:"getComputedHeight",value:function(){return["height",$p("".concat(this.getTileSpan(this.fixedRowHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(t){t._setListStyle(["height",null]),t._tiles&&t._tiles.forEach((function(t){t._setStyle("top",null),t._setStyle("height",null)}))}}]),i}(Up),Wp=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._parseRatio(t),n}return _createClass(i,[{key:"setRowStyles",value:function(t,e,i,n){this.baseTileHeight=this.getBaseTileSize(i/this.rowHeightRatio,n),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",$p(this.getTileSize(this.baseTileHeight,t.rowspan)))}},{key:"getComputedHeight",value:function(){return["paddingBottom",$p("".concat(this.getTileSpan(this.baseTileHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(t){t._setListStyle(["paddingBottom",null]),t._tiles.forEach((function(t){t._setStyle("marginTop",null),t._setStyle("paddingTop",null)}))}},{key:"_parseRatio",value:function(t){var e=t.split(":");if(2!==e.length)throw Error('mat-grid-list: invalid ratio given for row-height: "'.concat(t,'"'));this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}}]),i}(Up),qp=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"setRowStyles",value:function(t,e){var i=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);t._setStyle("top",this.getTilePosition(i,e)),t._setStyle("height",$p(this.getTileSize(i,t.rowspan)))}},{key:"reset",value:function(t){t._tiles&&t._tiles.forEach((function(t){t._setStyle("top",null),t._setStyle("height",null)}))}}]),i}(Up);function $p(t){return"calc(".concat(t,")")}function Kp(t){return t.match(/([A-Za-z%]+)$/)?t:"".concat(t,"px")}var Xp,Yp,Zp=((Yp=function(){function t(e,i){_classCallCheck(this,t),this._element=e,this._dir=i,this._gutter="1px"}return _createClass(t,[{key:"ngOnInit",value:function(){this._checkCols(),this._checkRowHeight()}},{key:"ngAfterContentChecked",value:function(){this._layoutTiles()}},{key:"_checkCols",value:function(){if(!this.cols)throw Error('mat-grid-list: must pass in number of columns. Example: <mat-grid-list cols="3">')}},{key:"_checkRowHeight",value:function(){this._rowHeight||this._setTileStyler("1:1")}},{key:"_setTileStyler",value:function(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new qp:t&&t.indexOf(":")>-1?new Wp(t):new Gp(t)}},{key:"_layoutTiles",value:function(){var t=this;this._tileCoordinator||(this._tileCoordinator=new Jp);var e=this._tileCoordinator,i=this._tiles.filter((function(e){return!e._gridList||e._gridList===t})),n=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,i),this._tileStyler.init(this.gutterSize,e,this.cols,n),i.forEach((function(i,n){var a=e.positions[n];t._tileStyler.setStyle(i,a.row,a.col)})),this._setListStyle(this._tileStyler.getComputedHeight())}},{key:"_setListStyle",value:function(t){t&&(this._element.nativeElement.style[t[0]]=t[1])}},{key:"cols",get:function(){return this._cols},set:function(t){this._cols=Math.max(1,Math.round(mi(t)))}},{key:"gutterSize",get:function(){return this._gutter},set:function(t){this._gutter="".concat(null==t?"":t)}},{key:"rowHeight",get:function(){return this._rowHeight},set:function(t){var e="".concat(null==t?"":t);e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))}}]),t}()).\u0275fac=function(t){return new(t||Yp)(a.Dc(a.r),a.Dc(xn,8))},Yp.\u0275cmp=a.xc({type:Yp,selectors:[["mat-grid-list"]],contentQueries:function(t,e,i){var n;1&t&&a.vc(i,jp,!0),2&t&&a.md(n=a.Xc())&&(e._tiles=n)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,e){2&t&&a.qc("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[a.oc([{provide:Lp,useExisting:Yp}])],ngContentSelectors:Pp,decls:2,vars:0,template:function(t,e){1&t&&(a.fd(),a.Jc(0,"div"),a.ed(1),a.Ic())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),Yp),Qp=((Xp=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Xp}),Xp.\u0275inj=a.Ac({factory:function(t){return new(t||Xp)},imports:[[Ca,Jn],Ca,Jn]}),Xp);function tf(t){return function(e){var i=new ef(t),n=e.lift(i);return i.caught=n}}var ef=function(){function t(e){_classCallCheck(this,t),this.selector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new nf(t,this.selector,this.caught))}}]),t}(),nf=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,t)).selector=n,r.caught=a,r}return _createClass(i,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(r){return void _get(_getPrototypeOf(i.prototype),"error",this).call(this,r)}this._unsubscribeAndRecycle();var n=new Tl.a(this,void 0,void 0);this.add(n);var a=Object(kl.a)(this,e,void 0,void 0,n);a!==n&&this.add(a)}}}]),i}(yl.a);function af(t){return function(e){return e.lift(new rf(t))}}var rf=function(){function t(e){_classCallCheck(this,t),this.callback=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new of(t,this.callback))}}]),t}(),of=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t)).add(new je.a(n)),a}return i}(Ve.a),sf=i("w1tV"),cf=i("5+tZ");function lf(t,e){return Object(cf.a)(t,e,1)}var uf=function t(){_classCallCheck(this,t)},df=function t(){_classCallCheck(this,t)},hf=function(){function t(e){var i=this;_classCallCheck(this,t),this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){i.headers=new Map,e.split("\n").forEach((function(t){var e=t.indexOf(":");if(e>0){var n=t.slice(0,e),a=n.toLowerCase(),r=t.slice(e+1).trim();i.maybeSetNormalizedName(n,a),i.headers.has(a)?i.headers.get(a).push(r):i.headers.set(a,[r])}}))}:function(){i.headers=new Map,Object.keys(e).forEach((function(t){var n=e[t],a=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(i.headers.set(a,n),i.maybeSetNormalizedName(t,a))}))}:this.headers=new Map}return _createClass(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(t){return e.applyUpdate(t)})),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach((function(i){e.headers.set(i,t.headers.get(i)),e.normalizedNames.set(i,t.normalizedNames.get(i))}))}},{key:"clone",value:function(e){var i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);var n=("a"===t.op?this.headers.get(e):void 0)||[];n.push.apply(n,_toConsumableArray(i)),this.headers.set(e,n);break;case"d":var a=t.value;if(a){var r=this.headers.get(e);if(!r)return;0===(r=r.filter((function(t){return-1===a.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,r)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(i){return t(e.normalizedNames.get(i),e.headers.get(i))}))}}]),t}(),pf=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encodeKey",value:function(t){return ff(t)}},{key:"encodeValue",value:function(t){return ff(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function ff(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var mf=function(){function t(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,t),this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new pf,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){var i=new Map;return t.length>0&&t.split("&").forEach((function(t){var n=t.indexOf("="),a=_slicedToArray(-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],2),r=a[0],o=a[1],s=i.get(r)||[];s.push(o),i.set(r,s)})),i}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach((function(t){var n=i.fromObject[t];e.map.set(t,Array.isArray(n)?n:[n])}))):this.map=null}return _createClass(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map((function(e){var i=t.encoder.encodeKey(e);return t.map.get(e).map((function(e){return i+"="+t.encoder.encodeValue(e)})).join("&")})).filter((function(t){return""!==t})).join("&")}},{key:"clone",value:function(e){var i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat([e]),i}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(e){return t.map.set(e,t.cloneFrom.map.get(e))})),this.updates.forEach((function(e){switch(e.op){case"a":case"s":var i=("a"===e.op?t.map.get(e.param):void 0)||[];i.push(e.value),t.map.set(e.param,i);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var n=t.map.get(e.param)||[],a=n.indexOf(e.value);-1!==a&&n.splice(a,1),n.length>0?t.map.set(e.param,n):t.map.delete(e.param)}})),this.cloneFrom=this.updates=null)}}]),t}();function gf(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function vf(t){return"undefined"!=typeof Blob&&t instanceof Blob}function bf(t){return"undefined"!=typeof FormData&&t instanceof FormData}var _f=function(){function t(e,i,n,a){var r;if(_classCallCheck(this,t),this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||a?(this.body=void 0!==n?n:null,r=a):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new hf),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=i;else{var s=i.indexOf("?");this.urlWithParams=i+(-1===s?"?":s<i.length-1?"&":"")+o}}else this.params=new mf,this.urlWithParams=i}return _createClass(t,[{key:"serializeBody",value:function(){return null===this.body?null:gf(this.body)||vf(this.body)||bf(this.body)||"string"==typeof this.body?this.body:this.body instanceof mf?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||bf(this.body)?null:vf(this.body)?this.body.type||null:gf(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof mf?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.method||this.method,n=e.url||this.url,a=e.responseType||this.responseType,r=void 0!==e.body?e.body:this.body,o=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,c=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((function(t,i){return t.set(i,e.setHeaders[i])}),c)),e.setParams&&(l=Object.keys(e.setParams).reduce((function(t,i){return t.set(i,e.setParams[i])}),l)),new t(i,n,r,{params:l,headers:c,reportProgress:s,responseType:a,withCredentials:o})}}]),t}(),yf=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}(),kf=function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,t),this.headers=e.headers||new hf,this.status=void 0!==e.status?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},wf=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,i),(t=e.call(this,n)).type=yf.ResponseHeader,t}return _createClass(i,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),i}(kf),Cf=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,i),(t=e.call(this,n)).type=yf.Response,t.body=void 0!==n.body?n.body:null,t}return _createClass(i,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),i}(kf),xf=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),n.error=t.error||null,n}return i}(kf);function Sf(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var If,Of,Df,Ef,Af,Tf,Pf,Rf,Mf,Lf=((If=function(){function t(e){_classCallCheck(this,t),this.handler=e}return _createClass(t,[{key:"request",value:function(t,e){var i,n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof _f)i=t;else{var r=void 0;r=a.headers instanceof hf?a.headers:new hf(a.headers);var o=void 0;a.params&&(o=a.params instanceof mf?a.params:new mf({fromObject:a.params})),i=new _f(t,e,void 0!==a.body?a.body:null,{headers:r,params:o,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials})}var s=Be(i).pipe(lf((function(t){return n.handler.handle(t)})));if(t instanceof _f||"events"===a.observe)return s;var c=s.pipe(ii((function(t){return t instanceof Cf})));switch(a.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return c.pipe(Object(ri.a)((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return c.pipe(Object(ri.a)((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return c.pipe(Object(ri.a)((function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body})));case"json":default:return c.pipe(Object(ri.a)((function(t){return t.body})))}case"response":return c;default:throw new Error("Unreachable: unhandled observe type ".concat(a.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new mf).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,Sf(i,e))}},{key:"post",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,Sf(i,e))}},{key:"put",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,Sf(i,e))}}]),t}()).\u0275fac=function(t){return new(t||If)(a.Sc(uf))},If.\u0275prov=a.zc({token:If,factory:If.\u0275fac}),If),jf=function(){function t(e,i){_classCallCheck(this,t),this.next=e,this.interceptor=i}return _createClass(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),Ff=new a.x("HTTP_INTERCEPTORS"),Nf=((Of=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}()).\u0275fac=function(t){return new(t||Of)},Of.\u0275prov=a.zc({token:Of,factory:Of.\u0275fac}),Of),zf=/^\)\]\}',?\n/,Bf=function t(){_classCallCheck(this,t)},Jf=((Ef=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}()).\u0275fac=function(t){return new(t||Ef)},Ef.\u0275prov=a.zc({token:Ef,factory:Ef.\u0275fac}),Ef),Vf=((Df=function(){function t(e){_classCallCheck(this,t),this.xhrFactory=e}return _createClass(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new si.a((function(i){var n=e.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((function(t,e){return n.setRequestHeader(t,e.join(","))})),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var a=t.detectContentTypeHeader();null!==a&&n.setRequestHeader("Content-Type",a)}if(t.responseType){var r=t.responseType.toLowerCase();n.responseType="json"!==r?r:"text"}var o=t.serializeBody(),s=null,c=function(){if(null!==s)return s;var e=1223===n.status?204:n.status,i=n.statusText||"OK",a=new hf(n.getAllResponseHeaders()),r=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new wf({headers:a,status:e,statusText:i,url:r})},l=function(){var e=c(),a=e.headers,r=e.status,o=e.statusText,s=e.url,l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);var u=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof l){var d=l;l=l.replace(zf,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=d,u&&(u=!1,l={error:h,text:l})}}u?(i.next(new Cf({body:l,headers:a,status:r,statusText:o,url:s||void 0})),i.complete()):i.error(new xf({error:l,headers:a,status:r,statusText:o,url:s||void 0}))},u=function(t){var e=c().url,a=new xf({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:e||void 0});i.error(a)},d=!1,h=function(e){d||(i.next(c()),d=!0);var a={type:yf.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(a.total=e.total),"text"===t.responseType&&n.responseText&&(a.partialText=n.responseText),i.next(a)},p=function(t){var e={type:yf.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),i.next(e)};return n.addEventListener("load",l),n.addEventListener("error",u),t.reportProgress&&(n.addEventListener("progress",h),null!==o&&n.upload&&n.upload.addEventListener("progress",p)),n.send(o),i.next({type:yf.Sent}),function(){n.removeEventListener("error",u),n.removeEventListener("load",l),t.reportProgress&&(n.removeEventListener("progress",h),null!==o&&n.upload&&n.upload.removeEventListener("progress",p)),n.abort()}}))}}]),t}()).\u0275fac=function(t){return new(t||Df)(a.Sc(Bf))},Df.\u0275prov=a.zc({token:Df,factory:Df.\u0275fac}),Df),Hf=new a.x("XSRF_COOKIE_NAME"),Uf=new a.x("XSRF_HEADER_NAME"),Gf=function t(){_classCallCheck(this,t)},Wf=((Mf=function(){function t(e,i,n){_classCallCheck(this,t),this.doc=e,this.platform=i,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(ye.O)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}()).\u0275fac=function(t){return new(t||Mf)(a.Sc(ye.e),a.Sc(a.M),a.Sc(Hf))},Mf.\u0275prov=a.zc({token:Mf,factory:Mf.\u0275fac}),Mf),qf=((Rf=function(){function t(e,i){_classCallCheck(this,t),this.tokenService=e,this.headerName=i}return _createClass(t,[{key:"intercept",value:function(t,e){var i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);var n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}]),t}()).\u0275fac=function(t){return new(t||Rf)(a.Sc(Gf),a.Sc(Uf))},Rf.\u0275prov=a.zc({token:Rf,factory:Rf.\u0275fac}),Rf),$f=((Pf=function(){function t(e,i){_classCallCheck(this,t),this.backend=e,this.injector=i,this.chain=null}return _createClass(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(Ff,[]);this.chain=e.reduceRight((function(t,e){return new jf(t,e)}),this.backend)}return this.chain.handle(t)}}]),t}()).\u0275fac=function(t){return new(t||Pf)(a.Sc(df),a.Sc(a.y))},Pf.\u0275prov=a.zc({token:Pf,factory:Pf.\u0275fac}),Pf),Kf=((Tf=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:qf,useClass:Nf}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:Hf,useValue:e.cookieName}:[],e.headerName?{provide:Uf,useValue:e.headerName}:[]]}}}]),t}()).\u0275mod=a.Bc({type:Tf}),Tf.\u0275inj=a.Ac({factory:function(t){return new(t||Tf)},providers:[qf,{provide:Ff,useExisting:qf,multi:!0},{provide:Gf,useClass:Wf},{provide:Hf,useValue:"XSRF-TOKEN"},{provide:Uf,useValue:"X-XSRF-TOKEN"}]}),Tf),Xf=((Af=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Af}),Af.\u0275inj=a.Ac({factory:function(t){return new(t||Af)},providers:[Lf,{provide:uf,useClass:$f},Vf,{provide:df,useExisting:Vf},Jf,{provide:Bf,useExisting:Jf}],imports:[[Kf.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Af),Yf=["*"];function Zf(t){return Error('Unable to find icon with the name "'.concat(t,'"'))}function Qf(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(t,'".'))}function tm(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(t,'".'))}var em,im=function t(e,i){_classCallCheck(this,t),this.options=i,e.nodeName?this.svgElement=e:this.url=e},nm=((em=function(){function t(e,i,n,a){_classCallCheck(this,t),this._httpClient=e,this._sanitizer=i,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}return _createClass(t,[{key:"addSvgIcon",value:function(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}},{key:"addSvgIconLiteral",value:function(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}},{key:"addSvgIconInNamespace",value:function(t,e,i,n){return this._addSvgIconConfig(t,e,new im(i,n))}},{key:"addSvgIconLiteralInNamespace",value:function(t,e,i,n){var r=this._sanitizer.sanitize(a.T.HTML,i);if(!r)throw tm(i);var o=this._createSvgElementForSingleIcon(r,n);return this._addSvgIconConfig(t,e,new im(o,n))}},{key:"addSvgIconSet",value:function(t,e){return this.addSvgIconSetInNamespace("",t,e)}},{key:"addSvgIconSetLiteral",value:function(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}},{key:"addSvgIconSetInNamespace",value:function(t,e,i){return this._addSvgIconSetConfig(t,new im(e,i))}},{key:"addSvgIconSetLiteralInNamespace",value:function(t,e,i){var n=this._sanitizer.sanitize(a.T.HTML,e);if(!n)throw tm(e);var r=this._svgElementFromString(n);return this._addSvgIconSetConfig(t,new im(r,i))}},{key:"registerFontClassAlias",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this._fontCssClassesByAlias.set(t,e),this}},{key:"classNameForFontAlias",value:function(t){return this._fontCssClassesByAlias.get(t)||t}},{key:"setDefaultFontSetClass",value:function(t){return this._defaultFontSetClass=t,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(t){var e=this,i=this._sanitizer.sanitize(a.T.RESOURCE_URL,t);if(!i)throw Qf(t);var n=this._cachedIconsByUrl.get(i);return n?Be(am(n)):this._loadSvgIconFromConfig(new im(t)).pipe(Ge((function(t){return e._cachedIconsByUrl.set(i,t)})),Object(ri.a)((function(t){return am(t)})))}},{key:"getNamedSvgIcon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=rm(e,t),n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);var a=this._iconSetConfigs.get(e);return a?this._getSvgFromIconSetConfigs(t,a):Fl(Zf(i))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(t){return t.svgElement?Be(am(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(Ge((function(e){return t.svgElement=e})),Object(ri.a)((function(t){return am(t)})))}},{key:"_getSvgFromIconSetConfigs",value:function(t,e){var i=this,n=this._extractIconWithNameFromAnySet(t,e);return n?Be(n):lr(e.filter((function(t){return!t.svgElement})).map((function(t){return i._loadSvgIconSetFromConfig(t).pipe(tf((function(e){var n="Loading icon set URL: ".concat(i._sanitizer.sanitize(a.T.RESOURCE_URL,t.url)," failed: ").concat(e.message);return i._errorHandler?i._errorHandler.handleError(new Error(n)):console.error(n),Be(null)})))}))).pipe(Object(ri.a)((function(){var n=i._extractIconWithNameFromAnySet(t,e);if(!n)throw Zf(t);return n})))}},{key:"_extractIconWithNameFromAnySet",value:function(t,e){for(var i=e.length-1;i>=0;i--){var n=e[i];if(n.svgElement){var a=this._extractSvgIconFromSet(n.svgElement,t,n.options);if(a)return a}}return null}},{key:"_loadSvgIconFromConfig",value:function(t){var e=this;return this._fetchUrl(t.url).pipe(Object(ri.a)((function(i){return e._createSvgElementForSingleIcon(i,t.options)})))}},{key:"_loadSvgIconSetFromConfig",value:function(t){var e=this;return t.svgElement?Be(t.svgElement):this._fetchUrl(t.url).pipe(Object(ri.a)((function(i){return t.svgElement||(t.svgElement=e._svgElementFromString(i)),t.svgElement})))}},{key:"_createSvgElementForSingleIcon",value:function(t,e){var i=this._svgElementFromString(t);return this._setSvgAttributes(i,e),i}},{key:"_extractSvgIconFromSet",value:function(t,e,i){var n=t.querySelector('[id="'.concat(e,'"]'));if(!n)return null;var a=n.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,i);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),i);var r=this._svgElementFromString("<svg></svg>");return r.appendChild(a),this._setSvgAttributes(r,i)}},{key:"_svgElementFromString",value:function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var i=e.querySelector("svg");if(!i)throw Error("<svg> tag not found");return i}},{key:"_toSvgElement",value:function(t){for(var e=this._svgElementFromString("<svg></svg>"),i=t.attributes,n=0;n<i.length;n++){var a=i[n],r=a.name,o=a.value;"id"!==r&&e.setAttribute(r,o)}for(var s=0;s<t.childNodes.length;s++)t.childNodes[s].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[s].cloneNode(!0));return e}},{key:"_setSvgAttributes",value:function(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}},{key:"_fetchUrl",value:function(t){var e=this;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==t)throw Error('Cannot fetch icon from URL "'.concat(t,'".'));var i=this._sanitizer.sanitize(a.T.RESOURCE_URL,t);if(!i)throw Qf(t);var n=this._inProgressUrlFetches.get(i);if(n)return n;var r=this._httpClient.get(i,{responseType:"text"}).pipe(af((function(){return e._inProgressUrlFetches.delete(i)})),Object(sf.a)());return this._inProgressUrlFetches.set(i,r),r}},{key:"_addSvgIconConfig",value:function(t,e,i){return this._svgIconConfigs.set(rm(t,e),i),this}},{key:"_addSvgIconSetConfig",value:function(t,e){var i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}}]),t}()).\u0275fac=function(t){return new(t||em)(a.Sc(Lf,8),a.Sc(n.b),a.Sc(ye.e,8),a.Sc(a.t,8))},em.\u0275prov=Object(a.zc)({factory:function(){return new em(Object(a.Sc)(Lf,8),Object(a.Sc)(n.b),Object(a.Sc)(ye.e,8),Object(a.Sc)(a.t,8))},token:em,providedIn:"root"}),em);function am(t){return t.cloneNode(!0)}function rm(t,e){return t+":"+e}var om,sm,cm,lm,um,dm,hm,pm,fm,mm,gm,vm=Hn((function t(e){_classCallCheck(this,t),this._elementRef=e})),bm=new a.x("mat-icon-location",{providedIn:"root",factory:function(){var t=Object(a.ib)(ye.e),e=t?t.location:null;return{getPathname:function(){return e?e.pathname+e.search:""}}}}),_m=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ym=_m.map((function(t){return"[".concat(t,"]")})).join(", "),km=/^url\(['"]?#(.*?)['"]?\)$/,wm=((sm=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o){var s;return _classCallCheck(this,i),(s=e.call(this,t))._iconRegistry=n,s._location=r,s._errorHandler=o,s._inline=!1,a||t.nativeElement.setAttribute("aria-hidden","true"),s}return _createClass(i,[{key:"_splitIconName",value:function(t){if(!t)return["",""];var e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error('Invalid icon name: "'.concat(t,'"'))}}},{key:"ngOnChanges",value:function(t){var e=this,i=t.svgIcon;if(i)if(this.svgIcon){var n=_slicedToArray(this._splitIconName(this.svgIcon),2),a=n[0],r=n[1];this._iconRegistry.getNamedSvgIcon(r,a).pipe(ui(1)).subscribe((function(t){return e._setSvgElement(t)}),(function(t){var i="Error retrieving icon ".concat(a,":").concat(r,"! ").concat(t.message);e._errorHandler?e._errorHandler.handleError(new Error(i)):console.error(i)}))}else i.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}},{key:"ngOnInit",value:function(){this._usingFontIcon()&&this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var t=this._elementsWithExternalReferences;if(t&&this._location&&t.size){var e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e))}}},{key:"ngOnDestroy",value:function(){this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(t){this._clearSvgElement();for(var e=t.querySelectorAll("style"),i=0;i<e.length;i++)e[i].textContent+=" ";if(this._location){var n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(n)}this._elementRef.nativeElement.appendChild(t)}},{key:"_clearSvgElement",value:function(){var t=this._elementRef.nativeElement,e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){var i=t.childNodes[e];1===i.nodeType&&"svg"!==i.nodeName.toLowerCase()||t.removeChild(i)}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var t=this._elementRef.nativeElement,e=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),e&&t.classList.add(e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(t){return"string"==typeof t?t.trim().split(" ")[0]:t}},{key:"_prependPathToReferences",value:function(t){var e=this._elementsWithExternalReferences;e&&e.forEach((function(e,i){e.forEach((function(e){i.setAttribute(e.name,"url('".concat(t,"#").concat(e.value,"')"))}))}))}},{key:"_cacheChildrenWithExternalReferences",value:function(t){for(var e=t.querySelectorAll(ym),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,n=function(t){_m.forEach((function(n){var a=e[t],r=a.getAttribute(n),o=r?r.match(km):null;if(o){var s=i.get(a);s||(s=[],i.set(a,s)),s.push({name:n,value:o[1]})}}))},a=0;a<e.length;a++)n(a)}},{key:"inline",get:function(){return this._inline},set:function(t){this._inline=fi(t)}},{key:"fontSet",get:function(){return this._fontSet},set:function(t){this._fontSet=this._cleanupFontValue(t)}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(t){this._fontIcon=this._cleanupFontValue(t)}}]),i}(vm)).\u0275fac=function(t){return new(t||sm)(a.Dc(a.r),a.Dc(nm),a.Tc("aria-hidden"),a.Dc(bm,8),a.Dc(a.t,8))},sm.\u0275cmp=a.xc({type:sm,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:4,hostBindings:function(t,e){2&t&&a.tc("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color)},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[a.mc,a.nc],ngContentSelectors:Yf,decls:1,vars:0,template:function(t,e){1&t&&(a.fd(),a.ed(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),sm),Cm=((om=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:om}),om.\u0275inj=a.Ac({factory:function(t){return new(t||om)},imports:[[Jn],Jn]}),om),xm=Ai({passive:!0}),Sm=((hm=function(){function t(e,i){_classCallCheck(this,t),this._platform=e,this._ngZone=i,this._monitoredElements=new Map}return _createClass(t,[{key:"monitor",value:function(t){var e=this;if(!this._platform.isBrowser)return ci;var i=_i(t),n=this._monitoredElements.get(i);if(n)return n.subject.asObservable();var a=new Le.a,r="cdk-text-field-autofilled",o=function(t){"cdk-text-field-autofill-start"!==t.animationName||i.classList.contains(r)?"cdk-text-field-autofill-end"===t.animationName&&i.classList.contains(r)&&(i.classList.remove(r),e._ngZone.run((function(){return a.next({target:t.target,isAutofilled:!1})}))):(i.classList.add(r),e._ngZone.run((function(){return a.next({target:t.target,isAutofilled:!0})})))};return this._ngZone.runOutsideAngular((function(){i.addEventListener("animationstart",o,xm),i.classList.add("cdk-text-field-autofill-monitored")})),this._monitoredElements.set(i,{subject:a,unlisten:function(){i.removeEventListener("animationstart",o,xm)}}),a.asObservable()}},{key:"stopMonitoring",value:function(t){var e=_i(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}},{key:"ngOnDestroy",value:function(){var t=this;this._monitoredElements.forEach((function(e,i){return t.stopMonitoring(i)}))}}]),t}()).\u0275fac=function(t){return new(t||hm)(a.Sc(Ii),a.Sc(a.I))},hm.\u0275prov=Object(a.zc)({factory:function(){return new hm(Object(a.Sc)(Ii),Object(a.Sc)(a.I))},token:hm,providedIn:"root"}),hm),Im=((dm=function(){function t(e,i){_classCallCheck(this,t),this._elementRef=e,this._autofillMonitor=i,this.cdkAutofill=new a.u}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this._autofillMonitor.monitor(this._elementRef).subscribe((function(e){return t.cdkAutofill.emit(e)}))}},{key:"ngOnDestroy",value:function(){this._autofillMonitor.stopMonitoring(this._elementRef)}}]),t}()).\u0275fac=function(t){return new(t||dm)(a.Dc(a.r),a.Dc(Sm))},dm.\u0275dir=a.yc({type:dm,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),dm),Om=((um=function(){function t(e,i,n,a){_classCallCheck(this,t),this._elementRef=e,this._platform=i,this._ngZone=n,this._destroyed=new Le.a,this._enabled=!0,this._previousMinRows=-1,this._document=a,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=i.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}return _createClass(t,[{key:"_setMinHeight",value:function(){var t=this.minRows&&this._cachedLineHeight?"".concat(this.minRows*this._cachedLineHeight,"px"):null;t&&(this._textareaElement.style.minHeight=t)}},{key:"_setMaxHeight",value:function(){var t=this.maxRows&&this._cachedLineHeight?"".concat(this.maxRows*this._cachedLineHeight,"px"):null;t&&(this._textareaElement.style.maxHeight=t)}},{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular((function(){ol(t._getWindow(),"resize").pipe(Ol(16),Dl(t._destroyed)).subscribe((function(){return t.resizeToFitContent(!0)}))})))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cachedLineHeight)){var i=this._elementRef.nativeElement,n=i.value;if(e||this._minRows!==this._previousMinRows||n!==this._previousValue){var a=i.placeholder;i.classList.add(this._measuringClass),i.placeholder="",i.style.height="".concat(i.scrollHeight-4,"px"),i.classList.remove(this._measuringClass),i.placeholder=a,this._ngZone.runOutsideAngular((function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame((function(){return t._scrollToCaretPosition(i)})):setTimeout((function(){return t._scrollToCaretPosition(i)}))})),this._previousValue=n,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(t){var e=t.selectionStart,i=t.selectionEnd,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}},{key:"minRows",get:function(){return this._minRows},set:function(t){this._minRows=mi(t),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(t){this._maxRows=mi(t),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(t){t=fi(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}}]),t}()).\u0275fac=function(t){return new(t||um)(a.Dc(a.r),a.Dc(Ii),a.Dc(a.I),a.Dc(ye.e,8))},um.\u0275dir=a.yc({type:um,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&a.Wc("input",(function(){return e._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),um),Dm=((lm=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:lm}),lm.\u0275inj=a.Ac({factory:function(t){return new(t||lm)},imports:[[Oi]]}),lm),Em=((cm=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"matAutosizeMinRows",get:function(){return this.minRows},set:function(t){this.minRows=t}},{key:"matAutosizeMaxRows",get:function(){return this.maxRows},set:function(t){this.maxRows=t}},{key:"matAutosize",get:function(){return this.enabled},set:function(t){this.enabled=t}},{key:"matTextareaAutosize",get:function(){return this.enabled},set:function(t){this.enabled=t}}]),i}(Om)).\u0275fac=function(t){return Am(t||cm)},cm.\u0275dir=a.yc({type:cm,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[a.mc]}),cm),Am=a.Lc(Em),Tm=new a.x("MAT_INPUT_VALUE_ACCESSOR"),Pm=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Rm=0,Mm=Wn((function t(e,i,n,a){_classCallCheck(this,t),this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=a})),Lm=((gm=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o,s,c,l,u){var d;_classCallCheck(this,i),(d=e.call(this,s,r,o,a))._elementRef=t,d._platform=n,d.ngControl=a,d._autofillMonitor=l,d._uid="mat-input-".concat(Rm++),d._isServer=!1,d._isNativeSelect=!1,d.focused=!1,d.stateChanges=new Le.a,d.controlType="mat-input",d.autofilled=!1,d._disabled=!1,d._required=!1,d._type="text",d._readonly=!1,d._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(t){return Ei().has(t)}));var h=d._elementRef.nativeElement;return d._inputValueAccessor=c||h,d._previousNativeValue=d.value,d.id=d.id,n.IOS&&u.runOutsideAngular((function(){t.nativeElement.addEventListener("keyup",(function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))}))})),d._isServer=!d._platform.isBrowser,d._isNativeSelect="select"===h.nodeName.toLowerCase(),d._isNativeSelect&&(d.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select"),d}return _createClass(i,[{key:"ngOnInit",value:function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe((function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()}))}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_focusChanged",value:function(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_isTextarea",value:function(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()}},{key:"_dirtyCheckNativeValue",value:function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}},{key:"_validateType",value:function(){if(Pm.indexOf(this._type)>-1)throw Error('Input type "'.concat(this._type,"\" isn't supported by matInput."))}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=fi(t),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=fi(t)}},{key:"type",get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&Ei().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(t){this._readonly=fi(t)}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}}]),i}(Mm)).\u0275fac=function(t){return new(t||gm)(a.Dc(a.r),a.Dc(Ii),a.Dc(Or,10),a.Dc(qo,8),a.Dc(ss,8),a.Dc(ha),a.Dc(Tm,10),a.Dc(Sm),a.Dc(a.I))},gm.\u0275dir=a.yc({type:gm,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(t,e){1&t&&a.Wc("blur",(function(){return e._focusChanged(!1)}))("focus",(function(){return e._focusChanged(!0)}))("input",(function(){return e._onInput()})),2&t&&(a.Mc("disabled",e.disabled)("required",e.required),a.qc("id",e.id)("placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),a.tc("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[a.oc([{provide:Dd,useExisting:gm}]),a.mc,a.nc]}),gm),jm=((mm=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:mm}),mm.\u0275inj=a.Ac({factory:function(t){return new(t||mm)},providers:[ha],imports:[[Dm,$d],Dm,$d]}),mm),Fm=((fm=function(){function t(){_classCallCheck(this,t),this._vertical=!1,this._inset=!1}return _createClass(t,[{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=fi(t)}},{key:"inset",get:function(){return this._inset},set:function(t){this._inset=fi(t)}}]),t}()).\u0275fac=function(t){return new(t||fm)},fm.\u0275cmp=a.xc({type:fm,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(a.qc("aria-orientation",e.vertical?"vertical":"horizontal"),a.tc("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),fm),Nm=((pm=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:pm}),pm.\u0275inj=a.Ac({factory:function(t){return new(t||pm)},imports:[[Jn],Jn]}),pm),zm=["*"],Bm=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Jm=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Vm=["text"];function Hm(t,e){if(1&t&&a.Ec(0,"mat-pseudo-checkbox",5),2&t){var i=a.ad();a.gd("state",i.selected?"checked":"unchecked")("disabled",i.disabled)}}var Um,Gm,Wm,qm,$m,Km,Xm,Ym,Zm,Qm=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],tg=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],eg=Vn(Un((function t(){_classCallCheck(this,t)}))),ig=Un((function t(){_classCallCheck(this,t)})),ng=((Um=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._stateChanges=new Le.a,t}return _createClass(i,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(eg)).\u0275fac=function(t){return ag(t||Um)},Um.\u0275cmp=a.xc({type:Um,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[a.mc,a.nc],ngContentSelectors:zm,decls:1,vars:0,template:function(t,e){1&t&&(a.fd(),a.ed(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),Um),ag=a.Lc(ng),rg=((Km=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._elementRef=t,n._stateChanges=new Le.a,"action-list"===n._getListType()&&t.nativeElement.classList.add("mat-action-list"),n}return _createClass(i,[{key:"_getListType",value:function(){var t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(eg)).\u0275fac=function(t){return new(t||Km)(a.Dc(a.r))},Km.\u0275cmp=a.xc({type:Km,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[a.mc,a.nc],ngContentSelectors:zm,decls:1,vars:0,template:function(t,e){1&t&&(a.fd(),a.ed(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),Km),og=(($m=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||$m)},$m.\u0275dir=a.yc({type:$m,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),$m),sg=((qm=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||qm)},qm.\u0275dir=a.yc({type:qm,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),qm),cg=((Wm=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Wm)},Wm.\u0275dir=a.yc({type:Wm,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),Wm),lg=((Gm=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;_classCallCheck(this,i),(o=e.call(this))._element=t,o._isInteractiveList=!1,o._destroyed=new Le.a,o._disabled=!1,o._isInteractiveList=!!(a||r&&"action-list"===r._getListType()),o._list=a||r;var s=o._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),o._list&&o._list._stateChanges.pipe(Dl(o._destroyed)).subscribe((function(){n.markForCheck()})),o}return _createClass(i,[{key:"ngAfterContentInit",value:function(){fa(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(t){this._disabled=fi(t)}}]),i}(ig)).\u0275fac=function(t){return new(t||Gm)(a.Dc(a.r),a.Dc(a.j),a.Dc(ng,8),a.Dc(rg,8))},Gm.\u0275cmp=a.xc({type:Gm,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){var n;1&t&&(a.vc(i,og,!0),a.vc(i,sg,!0),a.vc(i,pa,!0)),2&t&&(a.md(n=a.Xc())&&(e._avatar=n.first),a.md(n=a.Xc())&&(e._icon=n.first),a.md(n=a.Xc())&&(e._lines=n))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&a.tc("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[a.mc],ngContentSelectors:Jm,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(a.fd(Bm),a.Jc(0,"div",0),a.Ec(1,"div",1),a.ed(2),a.Jc(3,"div",2),a.ed(4,1),a.Ic(),a.ed(5,2),a.Ic()),2&t&&(a.pc(1),a.gd("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[Ea],encapsulation:2,changeDetection:0}),Gm),ug=Un((function t(){_classCallCheck(this,t)})),dg=Un((function t(){_classCallCheck(this,t)})),hg={provide:mr,useExisting:Object(a.hb)((function(){return mg})),multi:!0},pg=function t(e,i){_classCallCheck(this,t),this.source=e,this.option=i},fg=((Zm=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this))._element=t,r._changeDetector=n,r.selectionList=a,r._selected=!1,r._disabled=!1,r._hasFocus=!1,r.checkboxPosition="after",r._inputsInitialized=!1,r}return _createClass(i,[{key:"ngOnInit",value:function(){var t=this,e=this.selectionList;e._value&&e._value.some((function(i){return e.compareWith(i,t._value)}))&&this._setSelected(!0);var i=this._selected;Promise.resolve().then((function(){(t._selected||i)&&(t.selected=!0,t._changeDetector.markForCheck())})),this._inputsInitialized=!0}},{key:"ngAfterContentInit",value:function(){fa(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){var t=this;this.selected&&Promise.resolve().then((function(){t.selected=!1}));var e=this._hasFocus,i=this.selectionList._removeOptionFromList(this);e&&i&&i.focus()}},{key:"toggle",value:function(){this.selected=!this.selected}},{key:"focus",value:function(){this._element.nativeElement.focus()}},{key:"getLabel",value:function(){return this._text&&this._text.nativeElement.textContent||""}},{key:"_isRippleDisabled",value:function(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}},{key:"_handleClick",value:function(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent(this))}},{key:"_handleFocus",value:function(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}},{key:"_handleBlur",value:function(){this.selectionList._onTouched(),this._hasFocus=!1}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"_setSelected",value:function(t){return t!==this._selected&&(this._selected=t,t?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"color",get:function(){return this._color||this.selectionList.color},set:function(t){this._color=t}},{key:"value",get:function(){return this._value},set:function(t){this.selected&&t!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=t}},{key:"disabled",get:function(){return this._disabled||this.selectionList&&this.selectionList.disabled},set:function(t){var e=fi(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())}},{key:"selected",get:function(){return this.selectionList.selectedOptions.isSelected(this)},set:function(t){var e=fi(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())}}]),i}(dg)).\u0275fac=function(t){return new(t||Zm)(a.Dc(a.r),a.Dc(a.j),a.Dc(Object(a.hb)((function(){return mg}))))},Zm.\u0275cmp=a.xc({type:Zm,selectors:[["mat-list-option"]],contentQueries:function(t,e,i){var n;1&t&&(a.vc(i,og,!0),a.vc(i,sg,!0),a.vc(i,pa,!0)),2&t&&(a.md(n=a.Xc())&&(e._avatar=n.first),a.md(n=a.Xc())&&(e._icon=n.first),a.md(n=a.Xc())&&(e._lines=n))},viewQuery:function(t,e){var i;1&t&&a.Fd(Vm,!0),2&t&&a.md(i=a.Xc())&&(e._text=i.first)},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&a.Wc("focus",(function(){return e._handleFocus()}))("blur",(function(){return e._handleBlur()}))("click",(function(){return e._handleClick()})),2&t&&(a.qc("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),a.tc("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)("mat-primary","primary"===e.color)("mat-accent","primary"!==e.color&&"warn"!==e.color)("mat-warn","warn"===e.color)("mat-list-single-selected-option",e.selected&&!e.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},exportAs:["matListOption"],features:[a.mc],ngContentSelectors:tg,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(t,e){1&t&&(a.fd(Qm),a.Jc(0,"div",0),a.Ec(1,"div",1),a.zd(2,Hm,1,2,"mat-pseudo-checkbox",2),a.Jc(3,"div",3,4),a.ed(5),a.Ic(),a.ed(6,1),a.Ic()),2&t&&(a.tc("mat-list-item-content-reverse","after"==e.checkboxPosition),a.pc(1),a.gd("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),a.pc(1),a.gd("ngIf",e.selectionList.multiple))},directives:[Ea,ye.t,Ta],encapsulation:2,changeDetection:0}),Zm),mg=((Ym=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this))._element=t,o._changeDetector=r,o._multiple=!0,o._contentInitialized=!1,o.selectionChange=new a.u,o.tabIndex=0,o.color="accent",o.compareWith=function(t,e){return t===e},o._disabled=!1,o.selectedOptions=new ar(o._multiple),o._tabIndex=-1,o._onChange=function(t){},o._destroyed=new Le.a,o._onTouched=function(){},o}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._contentInitialized=!0,this._keyManager=new Xi(this.options).withWrap().withTypeAhead().skipPredicate((function(){return!1})).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Dl(this._destroyed)).subscribe((function(){t._allowFocusEscape()})),this.options.changes.pipe(Tn(null),Dl(this._destroyed)).subscribe((function(){t._updateTabIndex()})),this.selectedOptions.changed.pipe(Dl(this._destroyed)).subscribe((function(t){if(t.added){var e,i=_createForOfIteratorHelper(t.added);try{for(i.s();!(e=i.n()).done;)e.value.selected=!0}catch(r){i.e(r)}finally{i.f()}}if(t.removed){var n,a=_createForOfIteratorHelper(t.removed);try{for(a.s();!(n=a.n()).done;)n.value.selected=!1}catch(r){a.e(r)}finally{a.f()}}}))}},{key:"ngOnChanges",value:function(t){var e=t.disableRipple,i=t.color;(e&&!e.firstChange||i&&!i.firstChange)&&this._markOptionsForCheck()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}},{key:"focus",value:function(t){this._element.nativeElement.focus(t)}},{key:"selectAll",value:function(){this._setAllOptionsSelected(!0)}},{key:"deselectAll",value:function(){this._setAllOptionsSelected(!1)}},{key:"_setFocusedOption",value:function(t){this._keyManager.updateActiveItem(t)}},{key:"_removeOptionFromList",value:function(t){var e=this._getOptionIndex(t);return e>-1&&this._keyManager.activeItemIndex===e&&(e>0?this._keyManager.updateActiveItem(e-1):0===e&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(e+1,this.options.length-1))),this._keyManager.activeItem}},{key:"_keydown",value:function(t){var e=t.keyCode,i=this._keyManager,n=i.activeItemIndex,a=Je(t);switch(e){case 32:case 13:a||i.isTyping()||(this._toggleFocusedOption(),t.preventDefault());break;case 36:case 35:a||(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault());break;default:65===e&&this.multiple&&Je(t,"ctrlKey")&&!i.isTyping()?(this.options.find((function(t){return!t.selected}))?this.selectAll():this.deselectAll(),t.preventDefault()):i.onKeydown(t)}this.multiple&&(38===e||40===e)&&t.shiftKey&&i.activeItemIndex!==n&&this._toggleFocusedOption()}},{key:"_reportValueChange",value:function(){if(this.options&&!this._isDestroyed){var t=this._getSelectedOptionValues();this._onChange(t),this._value=t}}},{key:"_emitChangeEvent",value:function(t){this.selectionChange.emit(new pg(this,t))}},{key:"_onFocus",value:function(){var t=this._keyManager.activeItemIndex;t&&-1!==t?this._keyManager.setActiveItem(t):this._keyManager.setFirstItemActive()}},{key:"writeValue",value:function(t){this._value=t,this.options&&this._setOptionsFromValues(t||[])}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"_setOptionsFromValues",value:function(t){var e=this;this.options.forEach((function(t){return t._setSelected(!1)})),t.forEach((function(t){var i=e.options.find((function(i){return!i.selected&&e.compareWith(i.value,t)}));i&&i._setSelected(!0)}))}},{key:"_getSelectedOptionValues",value:function(){return this.options.filter((function(t){return t.selected})).map((function(t){return t.value}))}},{key:"_toggleFocusedOption",value:function(){var t=this._keyManager.activeItemIndex;if(null!=t&&this._isValidIndex(t)){var e=this.options.toArray()[t];!e||e.disabled||!this._multiple&&e.selected||(e.toggle(),this._emitChangeEvent(e))}}},{key:"_setAllOptionsSelected",value:function(t){var e=!1;this.options.forEach((function(i){i._setSelected(t)&&(e=!0)})),e&&this._reportValueChange()}},{key:"_isValidIndex",value:function(t){return t>=0&&t<this.options.length}},{key:"_getOptionIndex",value:function(t){return this.options.toArray().indexOf(t)}},{key:"_markOptionsForCheck",value:function(){this.options&&this.options.forEach((function(t){return t._markForCheck()}))}},{key:"_allowFocusEscape",value:function(){var t=this;this._tabIndex=-1,setTimeout((function(){t._tabIndex=0,t._changeDetector.markForCheck()}))}},{key:"_updateTabIndex",value:function(){this._tabIndex=0===this.options.length?-1:0}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=fi(t),this._markOptionsForCheck()}},{key:"multiple",get:function(){return this._multiple},set:function(t){var e=fi(t);if(e!==this._multiple){if(Object(a.jb)()&&this._contentInitialized)throw new Error("Cannot change `multiple` mode of mat-selection-list after initialization.");this._multiple=e,this.selectedOptions=new ar(this._multiple,this.selectedOptions.selected)}}}]),i}(ug)).\u0275fac=function(t){return new(t||Ym)(a.Dc(a.r),a.Tc("tabindex"),a.Dc(a.j))},Ym.\u0275cmp=a.xc({type:Ym,selectors:[["mat-selection-list"]],contentQueries:function(t,e,i){var n;1&t&&a.vc(i,fg,!0),2&t&&a.md(n=a.Xc())&&(e.options=n)},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(t,e){1&t&&a.Wc("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onTouched()}))("keydown",(function(t){return e._keydown(t)})),2&t&&a.qc("aria-multiselectable",e.multiple)("aria-disabled",e.disabled.toString())("tabindex",e._tabIndex)},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[a.oc([hg]),a.mc,a.nc],ngContentSelectors:zm,decls:1,vars:0,template:function(t,e){1&t&&(a.fd(),a.ed(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),Ym),gg=((Xm=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Xm}),Xm.\u0275inj=a.Ac({factory:function(t){return new(t||Xm)},imports:[[Ca,Aa,Jn,Pa,ye.c],Ca,Jn,Pa,Nm]}),Xm),vg=["mat-menu-item",""],bg=["*"];function _g(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",0),a.Wc("keydown",(function(t){return a.rd(i),a.ad()._handleKeydown(t)}))("click",(function(){return a.rd(i),a.ad().closed.emit("click")}))("@transformMenu.start",(function(t){return a.rd(i),a.ad()._onAnimationStart(t)}))("@transformMenu.done",(function(t){return a.rd(i),a.ad()._onAnimationDone(t)})),a.Jc(1,"div",1),a.ed(2),a.Ic(),a.Ic()}if(2&t){var n=a.ad();a.gd("id",n.panelId)("ngClass",n._classList)("@transformMenu",n._panelAnimationState),a.qc("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null)("aria-describedby",n.ariaDescribedby||null)}}var yg,kg,wg,Cg,xg,Sg,Ig,Og,Dg={transformMenu:o("transformMenu",[d("void",u({opacity:0,transform:"scale(0.8)"})),p("void => enter",c([m(".mat-menu-content, .mat-mdc-menu-content",s("100ms linear",u({opacity:1}))),s("120ms cubic-bezier(0, 0, 0.2, 1)",u({transform:"scale(1)"}))])),p("* => void",s("100ms 25ms linear",u({opacity:0})))]),fadeInItems:o("fadeInItems",[d("showing",u({opacity:1})),p("void => *",[u({opacity:0}),s("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Eg=((yg=function(){function t(e,i,n,a,r,o,s){_classCallCheck(this,t),this._template=e,this._componentFactoryResolver=i,this._appRef=n,this._injector=a,this._viewContainerRef=r,this._document=o,this._changeDetectorRef=s,this._attached=new Le.a}return _createClass(t,[{key:"attach",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new uu(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new pu(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),t}()).\u0275fac=function(t){return new(t||yg)(a.Dc(a.Y),a.Dc(a.n),a.Dc(a.g),a.Dc(a.y),a.Dc(a.cb),a.Dc(ye.e),a.Dc(a.j))},yg.\u0275dir=a.yc({type:yg,selectors:[["ng-template","matMenuContent",""]]}),yg),Ag=new a.x("MAT_MENU_PANEL"),Tg=Un(Vn((function t(){_classCallCheck(this,t)}))),Pg=((kg=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this))._elementRef=t,o._focusMonitor=a,o._parentMenu=r,o.role="menuitem",o._hovered=new Le.a,o._focused=new Le.a,o._highlighted=!1,o._triggersSubmenu=!1,a&&a.monitor(o._elementRef,!1),r&&r.addItem&&r.addItem(_assertThisInitialized(o)),o._document=n,o}return _createClass(i,[{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){var t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3,i="";if(t.childNodes)for(var n=t.childNodes.length,a=0;a<n;a++)t.childNodes[a].nodeType===e&&(i+=t.childNodes[a].textContent);return i.trim()}}]),i}(Tg)).\u0275fac=function(t){return new(t||kg)(a.Dc(a.r),a.Dc(ye.e),a.Dc(hn),a.Dc(Ag,8))},kg.\u0275cmp=a.xc({type:kg,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(t,e){1&t&&a.Wc("click",(function(t){return e._checkDisabled(t)}))("mouseenter",(function(){return e._handleMouseEnter()})),2&t&&(a.qc("role",e.role)("tabindex",e._getTabIndex())("aria-disabled",e.disabled.toString())("disabled",e.disabled||null),a.tc("mat-menu-item",!0)("mat-menu-item-highlighted",e._highlighted)("mat-menu-item-submenu-trigger",e._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[a.mc],attrs:vg,ngContentSelectors:bg,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(t,e){1&t&&(a.fd(),a.ed(0),a.Ec(1,"div",0)),2&t&&(a.pc(1),a.gd("matRippleDisabled",e.disableRipple||e.disabled)("matRippleTrigger",e._getHostElement()))},directives:[Ea],encapsulation:2,changeDetection:0}),kg),Rg=new a.x("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),Mg=0,Lg=((Cg=function(){function t(e,i,n){_classCallCheck(this,t),this._elementRef=e,this._ngZone=i,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new a.O,this._tabSubscription=je.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Le.a,this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new a.u,this.close=this.closed,this.panelId="mat-menu-panel-".concat(Mg++)}return _createClass(t,[{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var t=this;this._updateDirectDescendants(),this._keyManager=new Xi(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe((function(){return t.closed.emit("tab")})),this._directDescendantItems.changes.pipe(Tn(this._directDescendantItems),Pl((function(t){return Object(rl.a).apply(void 0,_toConsumableArray(t.map((function(t){return t._focused}))))}))).subscribe((function(e){return t._keyManager.updateActiveItem(e)}))}},{key:"ngOnDestroy",value:function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}},{key:"_hovered",value:function(){return this._directDescendantItems.changes.pipe(Tn(this._directDescendantItems),Pl((function(t){return Object(rl.a).apply(void 0,_toConsumableArray(t.map((function(t){return t._hovered}))))})))}},{key:"addItem",value:function(t){}},{key:"removeItem",value:function(t){}},{key:"_handleKeydown",value:function(t){var e=t.keyCode,i=this._keyManager;switch(e){case 27:Je(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;case 36:case 35:Je(t)||(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault());break;default:38!==e&&40!==e||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}},{key:"focusFirstItem",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.asObservable().pipe(ui(1)).subscribe((function(){return t._focusFirstItem(e)})):this._focusFirstItem(e)}},{key:"_focusFirstItem",value:function(t){var e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length)for(var i=this._directDescendantItems.first._getHostElement().parentElement;i;){if("menu"===i.getAttribute("role")){i.focus();break}i=i.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(t){var e="mat-elevation-z".concat(Math.min(4+t,24)),i=Object.keys(this._classList).find((function(t){return t.startsWith("mat-elevation-z")}));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}},{key:"setPositionClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(t){this._animationDone.next(t),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var t=this;this._allItems.changes.pipe(Tn(this._allItems)).subscribe((function(e){t._directDescendantItems.reset(e.filter((function(e){return e._parentMenu===t}))),t._directDescendantItems.notifyOnChanges()}))}},{key:"xPosition",get:function(){return this._xPosition},set:function(t){"before"!==t&&"after"!==t&&function(){throw Error('xPosition value must be either \'before\' or after\'.\n Example: <mat-menu xPosition="before" #menu="matMenu"></mat-menu>')}(),this._xPosition=t,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(t){"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: <mat-menu yPosition="above" #menu="matMenu"></mat-menu>')}(),this._yPosition=t,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(t){this._overlapTrigger=fi(t)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=fi(t)}},{key:"panelClass",set:function(t){var e=this,i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach((function(t){e._classList[t]=!1})),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach((function(t){e._classList[t]=!0})),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(t){this.panelClass=t}}]),t}()).\u0275fac=function(t){return new(t||Cg)(a.Dc(a.r),a.Dc(a.I),a.Dc(Rg))},Cg.\u0275dir=a.yc({type:Cg,contentQueries:function(t,e,i){var n;1&t&&(a.vc(i,Eg,!0),a.vc(i,Pg,!0),a.vc(i,Pg,!1)),2&t&&(a.md(n=a.Xc())&&(e.lazyContent=n.first),a.md(n=a.Xc())&&(e._allItems=n),a.md(n=a.Xc())&&(e.items=n))},viewQuery:function(t,e){var i;1&t&&a.Fd(a.Y,!0),2&t&&a.md(i=a.Xc())&&(e.templateRef=i.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),Cg),jg=((wg=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(Lg)).\u0275fac=function(t){return Fg(t||wg)},wg.\u0275dir=a.yc({type:wg,features:[a.mc]}),wg),Fg=a.Lc(jg),Ng=((xg=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){return _classCallCheck(this,i),e.call(this,t,n,a)}return i}(jg)).\u0275fac=function(t){return new(t||xg)(a.Dc(a.r),a.Dc(a.I),a.Dc(Rg))},xg.\u0275cmp=a.xc({type:xg,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[a.oc([{provide:Ag,useExisting:jg},{provide:jg,useExisting:xg}]),a.mc],ngContentSelectors:bg,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(a.fd(),a.zd(0,_g,3,6,"ng-template"))},directives:[ye.q],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[Dg.transformMenu,Dg.fadeInItems]},changeDetection:0}),xg),zg=new a.x("mat-menu-scroll-strategy"),Bg={provide:zg,deps:[Qu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Jg=Ai({passive:!0}),Vg=((Og=function(){function t(e,i,n,r,o,s,c,l){var u=this;_classCallCheck(this,t),this._overlay=e,this._element=i,this._viewContainerRef=n,this._parentMenu=o,this._menuItemInstance=s,this._dir=c,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=je.a.EMPTY,this._hoverSubscription=je.a.EMPTY,this._menuCloseSubscription=je.a.EMPTY,this._handleTouchStart=function(){return u._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new a.u,this.onMenuOpen=this.menuOpened,this.menuClosed=new a.u,this.onMenuClose=this.menuClosed,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,Jg),s&&(s._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=r}return _createClass(t,[{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Jg),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),i=e.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe((function(){return t.closeMenu()})),this._initMenu(),this.menu instanceof jg&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"_destroyMenu",value:function(){var t=this;if(this._overlayRef&&this.menuOpen){var e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),e instanceof jg?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(ii((function(t){return"void"===t.toState})),ui(1),Dl(e.lazyContent._attached)).subscribe({next:function(){return e.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}},{key:"_restoreFocus",value:function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}},{key:"_setIsMenuOpen",value:function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}},{key:"_checkMenu",value:function(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n <mat-menu #menu="matMenu"></mat-menu>\n <button [matMenuTriggerFor]="menu"></button>')}()}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new Eu({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe((function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")}))}},{key:"_setPosition",value:function(t){var e=_slicedToArray("before"===this.menu.xPosition?["end","start"]:["start","end"],2),i=e[0],n=e[1],a=_slicedToArray("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),r=a[0],o=a[1],s=r,c=o,l=i,u=n,d=0;this.triggersSubmenu()?(u=i="before"===this.menu.xPosition?"start":"end",n=l="end"===i?"start":"end",d="bottom"===r?8:-8):this.menu.overlapTrigger||(s="top"===r?"bottom":"top",c="top"===o?"bottom":"top"),t.withPositions([{originX:i,originY:s,overlayX:l,overlayY:r,offsetY:d},{originX:n,originY:s,overlayX:u,overlayY:r,offsetY:d},{originX:i,originY:c,overlayX:l,overlayY:o,offsetY:-d},{originX:n,originY:c,overlayX:u,overlayY:o,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments(),n=this._parentMenu?this._parentMenu.closed:Be(),a=this._parentMenu?this._parentMenu._hovered().pipe(ii((function(e){return e!==t._menuItemInstance})),ii((function(){return t._menuOpen}))):Be();return Object(rl.a)(e,n,a,i)}},{key:"_handleMousedown",value:function(t){cn(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()}},{key:"_handleClick",value:function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var t=this;this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(ii((function(e){return e===t._menuItemInstance&&!e.disabled})),Kd(0,gl)).subscribe((function(){t._openedBy="mouse",t.menu instanceof jg&&t.menu._isAnimating?t.menu._animationDone.pipe(ui(1),Kd(0,gl),Dl(t._parentMenu._hovered())).subscribe((function(){return t.openMenu()})):t.openMenu()})))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new uu(this.menu.templateRef,this._viewContainerRef)),this._portal}},{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(t){this.menu=t}},{key:"menu",get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.asObservable().subscribe((function(t){e._destroyMenu(),"click"!==t&&"tab"!==t||!e._parentMenu||e._parentMenu.closed.emit(t)}))))}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}}]),t}()).\u0275fac=function(t){return new(t||Og)(a.Dc(Qu),a.Dc(a.r),a.Dc(a.cb),a.Dc(zg),a.Dc(jg,8),a.Dc(Pg,10),a.Dc(xn,8),a.Dc(hn))},Og.\u0275dir=a.yc({type:Og,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&a.Wc("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&a.qc("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),Og),Hg=((Ig=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Ig}),Ig.\u0275inj=a.Ac({factory:function(t){return new(t||Ig)},providers:[Bg],imports:[Jn]}),Ig),Ug=((Sg=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Sg}),Sg.\u0275inj=a.Ac({factory:function(t){return new(t||Sg)},providers:[Bg],imports:[[ye.c,Jn,Aa,rd,Hg],Hg]}),Sg),Gg={};function Wg(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=null,a=null;return Object(Fe.a)(e[e.length-1])&&(a=e.pop()),"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&Object(or.a)(e[0])&&(e=e[0]),Object(Ne.a)(e,a).lift(new Kg(n))}var qg,$g,Kg=function(){function t(e){_classCallCheck(this,t),this.resultSelector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Xg(t,this.resultSelector))}}]),t}(),Xg=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t)).resultSelector=n,a.active=0,a.values=[],a.observables=[],a}return _createClass(i,[{key:"_next",value:function(t){this.values.push(Gg),this.observables.push(t)}},{key:"_complete",value:function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var i=0;i<e;i++){var n=t[i];this.add(Object(kl.a)(this,n,n,i))}}}},{key:"notifyComplete",value:function(t){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(t,e,i,n,a){var r=this.values,o=this.toRespond?r[i]===Gg?--this.toRespond:this.toRespond:0;r[i]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}},{key:"_tryResultSelector",value:function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}]),i}(yl.a),Yg=function(){function t(e){_classCallCheck(this,t),this.total=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Zg(t,this.total))}}]),t}(),Zg=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t)).total=n,a.count=0,a}return _createClass(i,[{key:"_next",value:function(t){++this.count>this.total&&this.destination.next(t)}}]),i}(Ve.a),Qg=new Set,tv=(($g=function(){function t(e){_classCallCheck(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ev}return _createClass(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!Qg.has(t))try{qg||((qg=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(qg)),qg.sheet&&(qg.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),Qg.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}()).\u0275fac=function(t){return new(t||$g)(a.Sc(Ii))},$g.\u0275prov=Object(a.zc)({factory:function(){return new $g(Object(a.Sc)(Ii))},token:$g,providedIn:"root"}),$g);function ev(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var iv,nv=((iv=function(){function t(e,i){_classCallCheck(this,t),this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new Le.a}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(t){var e=this;return av(vi(t)).some((function(t){return e._registerQuery(t).mql.matches}))}},{key:"observe",value:function(t){var e=this,i=Wg(av(vi(t)).map((function(t){return e._registerQuery(t).observable})));return(i=An(i.pipe(ui(1)),i.pipe((function(t){return t.lift(new Yg(1))}),Ze(0)))).pipe(Object(ri.a)((function(t){var e={matches:!1,breakpoints:{}};return t.forEach((function(t){e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches})),e})))}},{key:"_registerQuery",value:function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var i=this._mediaMatcher.matchMedia(t),n={observable:new si.a((function(t){var n=function(i){return e._zone.run((function(){return t.next(i)}))};return i.addListener(n),function(){i.removeListener(n)}})).pipe(Tn(i),Object(ri.a)((function(e){return{query:t,matches:e.matches}})),Dl(this._destroySubject)),mql:i};return this._queries.set(t,n),n}}]),t}()).\u0275fac=function(t){return new(t||iv)(a.Sc(tv),a.Sc(a.I))},iv.\u0275prov=Object(a.zc)({factory:function(){return new iv(Object(a.Sc)(tv),Object(a.Sc)(a.I))},token:iv,providedIn:"root"}),iv);function av(t){return t.map((function(t){return t.split(",")})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.trim()}))}var rv={tooltipState:o("state",[d("initial, void, hidden",u({opacity:0,transform:"scale(0)"})),d("visible",u({transform:"scale(1)"})),p("* => visible",s("200ms cubic-bezier(0, 0, 0.2, 1)",h([u({opacity:0,transform:"scale(0)",offset:0}),u({opacity:.5,transform:"scale(0.99)",offset:.5}),u({opacity:1,transform:"scale(1)",offset:1})]))),p("* => hidden",s("100ms cubic-bezier(0, 0, 0.2, 1)",u({opacity:0})))])},ov=Ai({passive:!0});function sv(t){return Error('Tooltip position "'.concat(t,'" is invalid.'))}var cv,lv,uv,dv,hv=new a.x("mat-tooltip-scroll-strategy"),pv={provide:hv,deps:[Qu],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},fv=new a.x("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),mv=((uv=function(){function t(e,i,n,a,r,o,s,c,l,u,d,h){var p=this;_classCallCheck(this,t),this._overlay=e,this._elementRef=i,this._scrollDispatcher=n,this._viewContainerRef=a,this._ngZone=r,this._platform=o,this._ariaDescriber=s,this._focusMonitor=c,this._dir=u,this._defaultOptions=d,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new Le.a,this._handleKeydown=function(t){p._isTooltipVisible()&&27===t.keyCode&&!Je(t)&&(t.preventDefault(),t.stopPropagation(),p._ngZone.run((function(){return p.hide(0)})))},this._scrollStrategy=l,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),c.monitor(i).pipe(Dl(this._destroyed)).subscribe((function(t){t?"keyboard"===t&&r.run((function(){return p.show()})):r.run((function(){return p.hide(0)}))})),r.runOutsideAngular((function(){i.nativeElement.addEventListener("keydown",p._handleKeydown)}))}return _createClass(t,[{key:"ngOnInit",value:function(){this._setupPointerEvents()}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((function(e,i){t.removeEventListener(i,e,ov)})),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var i=this._createOverlay();this._detach(),this._portal=this._portal||new lu(gv,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Dl(this._destroyed)).subscribe((function(){return t._detach()})),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(t)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(e);return i.positionChanges.pipe(Dl(this._destroyed)).subscribe((function(e){t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run((function(){return t.hide(0)}))})),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Dl(this._destroyed)).subscribe((function(){return t._detach()})),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),i.main),Object.assign(Object.assign({},e.fallback),i.fallback)])}},{key:"_getOrigin",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,i=this.position;if("above"==i||"below"==i)t={originX:"center",originY:"above"==i?"top":"bottom"};else if("before"==i||"left"==i&&e||"right"==i&&!e)t={originX:"start",originY:"center"};else{if(!("after"==i||"right"==i&&e||"left"==i&&!e))throw sv(i);t={originX:"end",originY:"center"}}var n=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:n.x,originY:n.y}}}},{key:"_getOverlayPosition",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,i=this.position;if("above"==i)t={overlayX:"center",overlayY:"bottom"};else if("below"==i)t={overlayX:"center",overlayY:"top"};else if("before"==i||"left"==i&&e||"right"==i&&!e)t={overlayX:"end",overlayY:"center"};else{if(!("after"==i||"right"==i&&e||"left"==i&&!e))throw sv(i);t={overlayX:"start",overlayY:"center"}}var n=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:n.x,overlayY:n.y}}}},{key:"_updateTooltipMessage",value:function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(ui(1),Dl(this._destroyed)).subscribe((function(){t._tooltipInstance&&t._overlayRef.updatePosition()})))}},{key:"_setTooltipClass",value:function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}},{key:"_setupPointerEvents",value:function(){var t=this;if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var e=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",e).set("touchcancel",e).set("touchstart",(function(){clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout((function(){return t.show()}),500)}))}}else this._passiveListeners.set("mouseenter",(function(){return t.show()})).set("mouseleave",(function(){return t.hide()}));this._passiveListeners.forEach((function(e,i){t._elementRef.nativeElement.addEventListener(i,e,ov)}))}},{key:"_disableNativeGesturesIfNecessary",value:function(){var t=this._elementRef.nativeElement,e=t.style,i=this.touchGestures;"off"!==i&&(("on"===i||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==i&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent")}},{key:"position",get:function(){return this._position},set:function(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=fi(t),this._disabled&&this.hide(0)}},{key:"message",get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?"".concat(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular((function(){Promise.resolve().then((function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message)}))})))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}]),t}()).\u0275fac=function(t){return new(t||uv)(a.Dc(Qu),a.Dc(a.r),a.Dc(Zl),a.Dc(a.cb),a.Dc(a.I),a.Dc(Ii),a.Dc(qi),a.Dc(hn),a.Dc(hv),a.Dc(xn,8),a.Dc(fv,8),a.Dc(a.r))},uv.\u0275dir=a.yc({type:uv,selectors:[["","matTooltip",""]],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),uv),gv=((lv=function(){function t(e,i){_classCallCheck(this,t),this._changeDetectorRef=e,this._breakpointObserver=i,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Le.a,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}return _createClass(t,[{key:"show",value:function(t){var e=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout((function(){e._visibility="visible",e._showTimeoutId=null,e._markForCheck()}),t)}},{key:"hide",value:function(t){var e=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout((function(){e._visibility="hidden",e._hideTimeoutId=null,e._markForCheck()}),t)}},{key:"afterHidden",value:function(){return this._onHide.asObservable()}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),t}()).\u0275fac=function(t){return new(t||lv)(a.Dc(a.j),a.Dc(nv))},lv.\u0275cmp=a.xc({type:lv,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&a.Wc("click",(function(){return e._handleBodyInteraction()}),!1,a.od),2&t&&a.yd("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(a.Jc(0,"div",0),a.Wc("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),a.bd(1,"async"),a.Bd(2),a.Ic()),2&t){var i,n=null==(i=a.cd(1,5,e._isHandset))?null:i.matches;a.tc("mat-tooltip-handset",n),a.gd("ngClass",e.tooltipClass)("@state",e._visibility),a.pc(2),a.Cd(e.message)}},directives:[ye.q],pipes:[ye.b],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[rv.tooltipState]},changeDetection:0}),lv),vv=((cv=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:cv}),cv.\u0275inj=a.Ac({factory:function(t){return new(t||cv)},providers:[pv],imports:[[wn,ye.c,rd,Jn],Jn]}),cv),bv=["primaryValueBar"],_v=Hn((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),yv=new a.x("mat-progress-bar-location",{providedIn:"root",factory:function(){var t=Object(a.ib)(ye.e),e=t?t.location:null;return{getPathname:function(){return e?e.pathname+e.search:""}}}}),kv=0,wv=((dv=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var s;_classCallCheck(this,i),(s=e.call(this,t))._elementRef=t,s._ngZone=n,s._animationMode=r,s._isNoopAnimation=!1,s._value=0,s._bufferValue=0,s.animationEnd=new a.u,s._animationEndSubscription=je.a.EMPTY,s.mode="determinate",s.progressbarId="mat-progress-bar-".concat(kv++);var c=o?o.getPathname().split("#")[0]:"";return s._rectangleFillValue="url('".concat(c,"#").concat(s.progressbarId,"')"),s._isNoopAnimation="NoopAnimations"===r,s}return _createClass(i,[{key:"_primaryTransform",value:function(){return{transform:"scaleX(".concat(this.value/100,")")}}},{key:"_bufferTransform",value:function(){return"buffer"===this.mode?{transform:"scaleX(".concat(this.bufferValue/100,")")}:null}},{key:"ngAfterViewInit",value:function(){var t=this;this._ngZone.runOutsideAngular((function(){var e=t._primaryValueBar.nativeElement;t._animationEndSubscription=ol(e,"transitionend").pipe(ii((function(t){return t.target===e}))).subscribe((function(){"determinate"!==t.mode&&"buffer"!==t.mode||t._ngZone.run((function(){return t.animationEnd.next({value:t.value})}))}))}))}},{key:"ngOnDestroy",value:function(){this._animationEndSubscription.unsubscribe()}},{key:"value",get:function(){return this._value},set:function(t){this._value=Cv(mi(t)||0)}},{key:"bufferValue",get:function(){return this._bufferValue},set:function(t){this._bufferValue=Cv(t||0)}}]),i}(_v)).\u0275fac=function(t){return new(t||dv)(a.Dc(a.r),a.Dc(a.I),a.Dc(Pe,8),a.Dc(yv,8))},dv.\u0275cmp=a.xc({type:dv,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){var i;1&t&&a.Fd(bv,!0),2&t&&a.md(i=a.Xc())&&(e._primaryValueBar=i.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(a.qc("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),a.tc("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[a.mc],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(a.Zc(),a.Jc(0,"svg",0),a.Jc(1,"defs"),a.Jc(2,"pattern",1),a.Ec(3,"circle",2),a.Ic(),a.Ic(),a.Ec(4,"rect",3),a.Ic(),a.Yc(),a.Ec(5,"div",4),a.Ec(6,"div",5,6),a.Ec(8,"div",7)),2&t&&(a.pc(2),a.gd("id",e.progressbarId),a.pc(2),a.qc("fill",e._rectangleFillValue),a.pc(1),a.gd("ngStyle",e._bufferTransform()),a.pc(1),a.gd("ngStyle",e._primaryTransform()))},directives:[ye.w],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),dv);function Cv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.max(e,Math.min(i,t))}var xv,Sv=((xv=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:xv}),xv.\u0275inj=a.Ac({factory:function(t){return new(t||xv)},imports:[[ye.c,Jn],Jn]}),xv);function Iv(t,e){if(1&t&&(a.Zc(),a.Ec(0,"circle",3)),2&t){var i=a.ad();a.yd("animation-name","mat-progress-spinner-stroke-rotate-"+i.diameter)("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),a.qc("r",i._circleRadius)}}function Ov(t,e){if(1&t&&(a.Zc(),a.Ec(0,"circle",3)),2&t){var i=a.ad();a.yd("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),a.qc("r",i._circleRadius)}}function Dv(t,e){if(1&t&&(a.Zc(),a.Ec(0,"circle",3)),2&t){var i=a.ad();a.yd("animation-name","mat-progress-spinner-stroke-rotate-"+i.diameter)("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),a.qc("r",i._circleRadius)}}function Ev(t,e){if(1&t&&(a.Zc(),a.Ec(0,"circle",3)),2&t){var i=a.ad();a.yd("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),a.qc("r",i._circleRadius)}}var Av,Tv,Pv,Rv,Mv,Lv,jv=Hn((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),Fv=new a.x("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),Nv=((Pv=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o){var s;_classCallCheck(this,i),(s=e.call(this,t))._elementRef=t,s._document=a,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var c=i._diameters;return c.has(a.head)||c.set(a.head,new Set([100])),s._fallbackAnimation=n.EDGE||n.TRIDENT,s._noopAnimations="NoopAnimations"===r&&!!o&&!o._forceAnimations,o&&(o.diameter&&(s.diameter=o.diameter),o.strokeWidth&&(s.strokeWidth=o.strokeWidth)),s}return _createClass(i,[{key:"ngOnInit",value:function(){var t=this._elementRef.nativeElement;this._styleRoot=Pi(t)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation"))}},{key:"_attachStyleNode",value:function(){var t=this._styleRoot,e=this._diameter,n=i._diameters,a=n.get(t);if(!a||!a.has(e)){var r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",e+""),r.textContent=this._getAnimationText(),t.appendChild(r),a||(a=new Set,n.set(t,a)),a.add(e)}}},{key:"_getAnimationText",value:function(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,"".concat(.95*this._strokeCircumference)).replace(/END_VALUE/g,"".concat(.2*this._strokeCircumference)).replace(/DIAMETER/g,"".concat(this.diameter))}},{key:"diameter",get:function(){return this._diameter},set:function(t){this._diameter=mi(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=mi(t)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,mi(t)))}},{key:"_circleRadius",get:function(){return(this.diameter-10)/2}},{key:"_viewBox",get:function(){var t=2*this._circleRadius+this.strokeWidth;return"0 0 ".concat(t," ").concat(t)}},{key:"_strokeCircumference",get:function(){return 2*Math.PI*this._circleRadius}},{key:"_strokeDashOffset",get:function(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null}},{key:"_circleStrokeWidth",get:function(){return this.strokeWidth/this.diameter*100}}]),i}(jv)).\u0275fac=function(t){return new(t||Pv)(a.Dc(a.r),a.Dc(Ii),a.Dc(ye.e,8),a.Dc(Pe,8),a.Dc(Fv))},Pv.\u0275cmp=a.xc({type:Pv,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(a.qc("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),a.yd("width",e.diameter,"px")("height",e.diameter,"px"),a.tc("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[a.mc],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(a.Zc(),a.Jc(0,"svg",0),a.zd(1,Iv,1,9,"circle",1),a.zd(2,Ov,1,7,"circle",2),a.Ic()),2&t&&(a.yd("width",e.diameter,"px")("height",e.diameter,"px"),a.gd("ngSwitch","indeterminate"===e.mode),a.qc("viewBox",e._viewBox),a.pc(1),a.gd("ngSwitchCase",!0),a.pc(1),a.gd("ngSwitchCase",!1))},directives:[ye.x,ye.y],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),Pv._diameters=new WeakMap,Pv),zv=((Tv=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o){var s;return _classCallCheck(this,i),(s=e.call(this,t,n,a,r,o)).mode="indeterminate",s}return i}(Nv)).\u0275fac=function(t){return new(t||Tv)(a.Dc(a.r),a.Dc(Ii),a.Dc(ye.e,8),a.Dc(Pe,8),a.Dc(Fv))},Tv.\u0275cmp=a.xc({type:Tv,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(a.yd("width",e.diameter,"px")("height",e.diameter,"px"),a.tc("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[a.mc],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(a.Zc(),a.Jc(0,"svg",0),a.zd(1,Dv,1,9,"circle",1),a.zd(2,Ev,1,7,"circle",2),a.Ic()),2&t&&(a.yd("width",e.diameter,"px")("height",e.diameter,"px"),a.gd("ngSwitch","indeterminate"===e.mode),a.qc("viewBox",e._viewBox),a.pc(1),a.gd("ngSwitchCase",!0),a.pc(1),a.gd("ngSwitchCase",!1))},directives:[ye.x,ye.y],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),Tv),Bv=((Av=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Av}),Av.\u0275inj=a.Ac({factory:function(t){return new(t||Av)},imports:[[Jn,ye.c],Jn]}),Av),Jv=["input"],Vv=function(){return{enterDuration:150}},Hv=["*"],Uv=new a.x("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),Gv=0,Wv={provide:mr,useExisting:Object(a.hb)((function(){return $v})),multi:!0},qv=function t(e,i){_classCallCheck(this,t),this.source=e,this.value=i},$v=((Rv=function(){function t(e){_classCallCheck(this,t),this._changeDetector=e,this._value=null,this._name="mat-radio-group-".concat(Gv++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new a.u}return _createClass(t,[{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var t=this;this._radios&&this._radios.forEach((function(e){e.name=t.name,e._markForCheck()}))}},{key:"_updateSelectedRadioFromValue",value:function(){var t=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach((function(e){e.checked=t.value===e.value,e.checked&&(t._selected=e)})))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new qv(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach((function(t){return t._markForCheck()}))}},{key:"writeValue",value:function(t){this.value=t,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetector.markForCheck()}},{key:"name",get:function(){return this._name},set:function(t){this._name=t,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=fi(t),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(t){this._required=fi(t),this._markRadiosForCheck()}}]),t}()).\u0275fac=function(t){return new(t||Rv)(a.Dc(a.j))},Rv.\u0275dir=a.yc({type:Rv,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){var n;1&t&&a.vc(i,Xv,!0),2&t&&a.md(n=a.Xc())&&(e._radios=n)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[a.oc([Wv])]}),Rv),Kv=Un(Gn((function t(e){_classCallCheck(this,t),this._elementRef=e}))),Xv=((Lv=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,s,c,l){var u;return _classCallCheck(this,i),(u=e.call(this,n))._changeDetector=r,u._focusMonitor=o,u._radioDispatcher=s,u._animationMode=c,u._providerOverride=l,u._uniqueId="mat-radio-".concat(++Gv),u.id=u._uniqueId,u.change=new a.u,u._checked=!1,u._value=null,u._removeUniqueSelectionListener=function(){},u.radioGroup=t,u._removeUniqueSelectionListener=s.listen((function(t,e){t!==u.id&&e===u.name&&(u.checked=!1)})),u}return _createClass(i,[{key:"focus",value:function(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){!e&&t.radioGroup&&t.radioGroup._touch()}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new qv(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(t){t.stopPropagation()}},{key:"_onInputChange",value:function(t){t.stopPropagation();var e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}},{key:"_setDisabled",value:function(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}},{key:"checked",get:function(){return this._checked},set:function(t){var e=fi(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",get:function(){return this._value},set:function(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(t){this._labelPosition=t}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(t){this._setDisabled(fi(t))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(t){this._required=fi(t)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(t){this._color=t}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}}]),i}(Kv)).\u0275fac=function(t){return new(t||Lv)(a.Dc($v,8),a.Dc(a.r),a.Dc(a.j),a.Dc(hn),a.Dc(rr),a.Dc(Pe,8),a.Dc(Uv,8))},Lv.\u0275cmp=a.xc({type:Lv,selectors:[["mat-radio-button"]],viewQuery:function(t,e){var i;1&t&&a.Fd(Jv,!0),2&t&&a.md(i=a.Xc())&&(e._inputElement=i.first)},hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&a.Wc("focus",(function(){return e._inputElement.nativeElement.focus()})),2&t&&(a.qc("tabindex",-1)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),a.tc("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},exportAs:["matRadioButton"],features:[a.mc],ngContentSelectors:Hv,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,e){if(1&t&&(a.fd(),a.Jc(0,"label",0,1),a.Jc(2,"div",2),a.Ec(3,"div",3),a.Ec(4,"div",4),a.Jc(5,"input",5,6),a.Wc("change",(function(t){return e._onInputChange(t)}))("click",(function(t){return e._onInputClick(t)})),a.Ic(),a.Jc(7,"div",7),a.Ec(8,"div",8),a.Ic(),a.Ic(),a.Jc(9,"div",9),a.Jc(10,"span",10),a.Bd(11,"\xa0"),a.Ic(),a.ed(12),a.Ic(),a.Ic()),2&t){var i=a.nd(1);a.qc("for",e.inputId),a.pc(5),a.gd("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),a.qc("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),a.pc(2),a.gd("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",a.id(18,Vv)),a.pc(2),a.tc("mat-radio-label-before","before"==e.labelPosition)}},directives:[Ea],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),Lv),Yv=((Mv=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Mv}),Mv.\u0275inj=a.Ac({factory:function(t){return new(t||Mv)},imports:[[Aa,Jn],Jn]}),Mv),Zv=["trigger"],Qv=["panel"];function tb(t,e){if(1&t&&(a.Jc(0,"span",8),a.Bd(1),a.Ic()),2&t){var i=a.ad();a.pc(1),a.Cd(i.placeholder||"\xa0")}}function eb(t,e){if(1&t&&(a.Jc(0,"span"),a.Bd(1),a.Ic()),2&t){var i=a.ad(2);a.pc(1),a.Cd(i.triggerValue||"\xa0")}}function ib(t,e){1&t&&a.ed(0,0,["*ngSwitchCase","true"])}function nb(t,e){if(1&t&&(a.Jc(0,"span",9),a.zd(1,eb,2,1,"span",10),a.zd(2,ib,1,0,void 0,11),a.Ic()),2&t){var i=a.ad();a.gd("ngSwitch",!!i.customTrigger),a.pc(2),a.gd("ngSwitchCase",!0)}}function ab(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",12),a.Jc(1,"div",13,14),a.Wc("@transformPanel.done",(function(t){return a.rd(i),a.ad()._panelDoneAnimatingStream.next(t.toState)}))("keydown",(function(t){return a.rd(i),a.ad()._handleKeydown(t)})),a.ed(3,1),a.Ic(),a.Ic()}if(2&t){var n=a.ad();a.gd("@transformPanelWrap",void 0),a.pc(1),a.sc("mat-select-panel ",n._getPanelTheme(),""),a.yd("transform-origin",n._transformOrigin)("font-size",n._triggerFontSize,"px"),a.gd("ngClass",n.panelClass)("@transformPanel",n.multiple?"showing-multiple":"showing")}}var rb,ob,sb,cb=[[["mat-select-trigger"]],"*"],lb=["mat-select-trigger","*"],ub={transformPanelWrap:o("transformPanelWrap",[p("* => void",m("@transformPanel",[f()],{optional:!0}))]),transformPanel:o("transformPanel",[d("void",u({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),d("showing",u({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),d("showing-multiple",u({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),p("void => *",s("120ms cubic-bezier(0, 0, 0.2, 1)")),p("* => void",s("100ms 25ms linear",u({opacity:0})))])},db=0,hb=new a.x("mat-select-scroll-strategy"),pb=new a.x("MAT_SELECT_CONFIG"),fb={provide:hb,deps:[Qu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},mb=function t(e,i){_classCallCheck(this,t),this.source=e,this.value=i},gb=Un(Gn(Vn(Wn((function t(e,i,n,a,r){_classCallCheck(this,t),this._elementRef=e,this._defaultErrorStateMatcher=i,this._parentForm=n,this._parentFormGroup=a,this.ngControl=r}))))),vb=((sb=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||sb)},sb.\u0275dir=a.yc({type:sb,selectors:[["mat-select-trigger"]]}),sb),bb=((ob=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,s,c,l,u,d,h,p,f,m,g){var v;return _classCallCheck(this,i),(v=e.call(this,s,o,l,u,h))._viewportRuler=t,v._changeDetectorRef=n,v._ngZone=r,v._dir=c,v._parentFormField=d,v.ngControl=h,v._liveAnnouncer=m,v._panelOpen=!1,v._required=!1,v._scrollTop=0,v._multiple=!1,v._compareWith=function(t,e){return t===e},v._uid="mat-select-".concat(db++),v._destroy=new Le.a,v._triggerFontSize=0,v._onChange=function(){},v._onTouched=function(){},v._optionIds="",v._transformOrigin="top",v._panelDoneAnimatingStream=new Le.a,v._offsetY=0,v._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],v._disableOptionCentering=!1,v._focused=!1,v.controlType="mat-select",v.ariaLabel="",v.optionSelectionChanges=al((function(){var t=v.options;return t?t.changes.pipe(Tn(t),Pl((function(){return Object(rl.a).apply(void 0,_toConsumableArray(t.map((function(t){return t.onSelectionChange}))))}))):v._ngZone.onStable.asObservable().pipe(ui(1),Pl((function(){return v.optionSelectionChanges})))})),v.openedChange=new a.u,v._openedStream=v.openedChange.pipe(ii((function(t){return t})),Object(ri.a)((function(){}))),v._closedStream=v.openedChange.pipe(ii((function(t){return!t})),Object(ri.a)((function(){}))),v.selectionChange=new a.u,v.valueChange=new a.u,v.ngControl&&(v.ngControl.valueAccessor=_assertThisInitialized(v)),v._scrollStrategyFactory=f,v._scrollStrategy=v._scrollStrategyFactory(),v.tabIndex=parseInt(p)||0,v.id=v.id,g&&(null!=g.disableOptionCentering&&(v.disableOptionCentering=g.disableOptionCentering),null!=g.typeaheadDebounceInterval&&(v.typeaheadDebounceInterval=g.typeaheadDebounceInterval)),v}return _createClass(i,[{key:"ngOnInit",value:function(){var t=this;this._selectionModel=new ar(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(vl(),Dl(this._destroy)).subscribe((function(){t.panelOpen?(t._scrollTop=0,t.openedChange.emit(!0)):(t.openedChange.emit(!1),t.overlayDir.offsetX=0,t._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe(Dl(this._destroy)).subscribe((function(){t._panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())}))}},{key:"ngAfterContentInit",value:function(){var t=this;this._initKeyManager(),this._selectionModel.changed.pipe(Dl(this._destroy)).subscribe((function(t){t.added.forEach((function(t){return t.select()})),t.removed.forEach((function(t){return t.deselect()}))})),this.options.changes.pipe(Tn(null),Dl(this._destroy)).subscribe((function(){t._resetOptions(),t._initializeSelection()}))}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){var t=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(ui(1)).subscribe((function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(t._triggerFontSize,"px"))})))}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(t){this.options&&this._setSelectionByValue(t)}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}},{key:"_handleClosedKeydown",value:function(t){var e=t.keyCode,i=40===e||38===e||37===e||39===e,n=13===e||32===e,a=this._keyManager;if(!a.isTyping()&&n&&!Je(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){var r=this.selected;36===e||35===e?(36===e?a.setFirstItemActive():a.setLastItemActive(),t.preventDefault()):a.onKeydown(t);var o=this.selected;o&&r!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(t){var e=this._keyManager,i=t.keyCode,n=40===i||38===i,a=e.isTyping();if(36===i||35===i)t.preventDefault(),36===i?e.setFirstItemActive():e.setLastItemActive();else if(n&&t.altKey)t.preventDefault(),this.close();else if(a||13!==i&&32!==i||!e.activeItem||Je(t))if(!a&&this._multiple&&65===i&&t.ctrlKey){t.preventDefault();var r=this.options.some((function(t){return!t.disabled&&!t.selected}));this.options.forEach((function(t){t.disabled||(r?t.select():t.deselect())}))}else{var o=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==o&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var t=this;this.overlayDir.positionChange.pipe(ui(1)).subscribe((function(){t._changeDetectorRef.detectChanges(),t._calculateOverlayOffsetX(),t.panel.nativeElement.scrollTop=t._scrollTop}))}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then((function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()}))}},{key:"_setSelectionByValue",value:function(t){var e=this;if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach((function(t){return e._selectValue(t)})),this._sortValues()}else{this._selectionModel.clear();var i=this._selectValue(t);i?this._keyManager.setActiveItem(i):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(t){var e=this,i=this.options.find((function(i){try{return null!=i.value&&e._compareWith(i.value,t)}catch(n){return Object(a.jb)()&&console.warn(n),!1}}));return i&&this._selectionModel.select(i),i}},{key:"_initKeyManager",value:function(){var t=this;this._keyManager=new Ki(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Dl(this._destroy)).subscribe((function(){!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close()})),this._keyManager.change.pipe(Dl(this._destroy)).subscribe((function(){t._panelOpen&&t.panel?t._scrollActiveOptionIntoView():t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()}))}},{key:"_resetOptions",value:function(){var t=this,e=Object(rl.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Dl(e)).subscribe((function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())})),Object(rl.a).apply(void 0,_toConsumableArray(this.options.map((function(t){return t._stateChanges})))).pipe(Dl(e)).subscribe((function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})),this._setOptionIds()}},{key:"_onSelect",value:function(t,e){var i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort((function(i,n){return t.sortComparator?t.sortComparator(i,n,e):e.indexOf(i)-e.indexOf(n)})),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(t){var e;e=this.multiple?this.selected.map((function(t){return t.value})):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new mb(this,e)),this._changeDetectorRef.markForCheck()}},{key:"_setOptionIds",value:function(){this._optionIds=this.options.map((function(t){return t.id})).join(" ")}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_scrollActiveOptionIntoView",value:function(){var t=this._keyManager.activeItemIndex||0,e=Ja(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=Va(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_getOptionIndex",value:function(t){return this.options.reduce((function(e,i,n){return void 0!==e?e:t===i?n:void 0}),void 0)}},{key:"_calculateOverlayPosition",value:function(){var t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,256),n=e*t-i,a=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);a+=Ja(a,this.options,this.optionGroups);var r=i/2;this._scrollTop=this._calculateOverlayScroll(a,r,n),this._offsetY=this._calculateOverlayOffsetY(a,r,n),this._checkOverlayWithinViewport(n)}},{key:"_calculateOverlayScroll",value:function(t,e,i){var n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}},{key:"_getAriaLabel",value:function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}},{key:"_getAriaLabelledby",value:function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_calculateOverlayOffsetX",value:function(){var t,e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),n=this._isRtl(),a=this.multiple?56:32;if(this.multiple)t=40;else{var r=this._selectionModel.selected[0]||this.options.first;t=r&&r.group?32:16}n||(t*=-1);var o=0-(e.left+t-(n?a:0)),s=e.right+t-i.width+(n?0:a);o>0?t+=o+8:s>0&&(t-=s+8),this.overlayDir.offsetX=Math.round(t),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(t,e,i){var n,a=this._getItemHeight(),r=(a-this._triggerRect.height)/2,o=Math.floor(256/a);return this._disableOptionCentering?0:(n=0===this._scrollTop?t*a:this._scrollTop===i?(t-(this._getItemCount()-o))*a+(a-(this._getItemCount()*a-256)%a):e-a/2,Math.round(-1*n-r))}},{key:"_checkOverlayWithinViewport",value:function(t){var e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,a=i.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>a?this._adjustPanelUp(o,a):r>n?this._adjustPanelDown(r,n,t):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(t,e){var i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(t,e,i){var n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_getOriginBasedOnOption",value:function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-e+t/2,"px 0px")}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(t){this._required=fi(t),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=fi(t)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=fi(t)}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){t!==this._value&&(this.writeValue(t),this._value=t)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=mi(t)}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map((function(t){return t.viewValue}));return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),i}(gb)).\u0275fac=function(t){return new(t||ob)(a.Dc(tu),a.Dc(a.j),a.Dc(a.I),a.Dc(ha),a.Dc(a.r),a.Dc(xn,8),a.Dc(qo,8),a.Dc(ss,8),a.Dc(Wd,8),a.Dc(Or,10),a.Tc("tabindex"),a.Dc(hb),a.Dc(sn),a.Dc(pb,8))},ob.\u0275cmp=a.xc({type:ob,selectors:[["mat-select"]],contentQueries:function(t,e,i){var n;1&t&&(a.vc(i,vb,!0),a.vc(i,Ba,!0),a.vc(i,La,!0)),2&t&&(a.md(n=a.Xc())&&(e.customTrigger=n.first),a.md(n=a.Xc())&&(e.options=n),a.md(n=a.Xc())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(a.Fd(Zv,!0),a.Fd(Qv,!0),a.Fd(nd,!0)),2&t&&(a.md(i=a.Xc())&&(e.trigger=i.first),a.md(i=a.Xc())&&(e.panel=i.first),a.md(i=a.Xc())&&(e.overlayDir=i.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&a.Wc("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(a.qc("id",e.id)("tabindex",e.tabIndex)("aria-label",e._getAriaLabel())("aria-labelledby",e._getAriaLabelledby())("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-owns",e.panelOpen?e._optionIds:null)("aria-multiselectable",e.multiple)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),a.tc("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[a.oc([{provide:Dd,useExisting:ob},{provide:za,useExisting:ob}]),a.mc,a.nc],ngContentSelectors:lb,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(a.fd(cb),a.Jc(0,"div",0,1),a.Wc("click",(function(){return e.toggle()})),a.Jc(3,"div",2),a.zd(4,tb,2,1,"span",3),a.zd(5,nb,3,2,"span",4),a.Ic(),a.Jc(6,"div",5),a.Ec(7,"div",6),a.Ic(),a.Ic(),a.zd(8,ab,4,10,"ng-template",7),a.Wc("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){var i=a.nd(1);a.pc(3),a.gd("ngSwitch",e.empty),a.pc(1),a.gd("ngSwitchCase",!0),a.pc(1),a.gd("ngSwitchCase",!1),a.pc(3),a.gd("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",i)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[id,ye.x,ye.y,nd,ye.z,ye.q],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[ub.transformPanelWrap,ub.transformPanel]},changeDetection:0}),ob),_b=((rb=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:rb}),rb.\u0275inj=a.Ac({factory:function(t){return new(t||rb)},providers:[fb],imports:[[ye.c,rd,qa,Jn],$d,qa,Jn]}),rb),yb=["*"];function kb(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",2),a.Wc("click",(function(){return a.rd(i),a.ad()._onBackdropClicked()})),a.Ic()}if(2&t){var n=a.ad();a.tc("mat-drawer-shown",n._isShowingBackdrop())}}function wb(t,e){1&t&&(a.Jc(0,"mat-drawer-content"),a.ed(1,2),a.Ic())}var Cb=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],xb=["mat-drawer","mat-drawer-content","*"];function Sb(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",2),a.Wc("click",(function(){return a.rd(i),a.ad()._onBackdropClicked()})),a.Ic()}if(2&t){var n=a.ad();a.tc("mat-drawer-shown",n._isShowingBackdrop())}}function Ib(t,e){1&t&&(a.Jc(0,"mat-sidenav-content",3),a.ed(1,2),a.Ic())}var Ob=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Db=["mat-sidenav","mat-sidenav-content","*"],Eb={transformDrawer:o("transform",[d("open, open-instant",u({transform:"none",visibility:"visible"})),d("void",u({"box-shadow":"none",visibility:"hidden"})),p("void => open-instant",s("0ms")),p("void <=> open, open-instant => void",s("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function Ab(t){throw Error("A drawer was already declared for 'position=\"".concat(t,"\"'"))}var Tb,Pb,Rb,Mb,Lb,jb,Fb,Nb,zb,Bb,Jb,Vb=new a.x("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),Hb=new a.x("MAT_DRAWER_CONTAINER"),Ub=((Lb=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o){var s;return _classCallCheck(this,i),(s=e.call(this,a,r,o))._changeDetectorRef=t,s._container=n,s}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._container._contentMarginChanges.subscribe((function(){t._changeDetectorRef.markForCheck()}))}}]),i}(Ql)).\u0275fac=function(t){return new(t||Lb)(a.Dc(a.j),a.Dc(Object(a.hb)((function(){return Wb}))),a.Dc(a.r),a.Dc(Zl),a.Dc(a.I))},Lb.\u0275cmp=a.xc({type:Lb,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&a.yd("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[a.mc],ngContentSelectors:yb,decls:1,vars:0,template:function(t,e){1&t&&(a.fd(),a.ed(0))},encapsulation:2,changeDetection:0}),Lb),Gb=((Mb=function(){function t(e,i,n,r,o,s,c){var l=this;_classCallCheck(this,t),this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=n,this._platform=r,this._ngZone=o,this._doc=s,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Le.a,this._animationEnd=new Le.a,this._animationState="void",this.openedChange=new a.u(!0),this._destroyed=new Le.a,this.onPositionChanged=new a.u,this._modeChanged=new Le.a,this.openedChange.subscribe((function(t){t?(l._doc&&(l._elementFocusedBeforeDrawerWasOpened=l._doc.activeElement),l._takeFocus()):l._restoreFocus()})),this._ngZone.runOutsideAngular((function(){ol(l._elementRef.nativeElement,"keydown").pipe(ii((function(t){return 27===t.keyCode&&!l.disableClose&&!Je(t)})),Dl(l._destroyed)).subscribe((function(t){return l._ngZone.run((function(){l.close(),t.stopPropagation(),t.preventDefault()}))}))})),this._animationEnd.pipe(vl((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){var e=t.fromState,i=t.toState;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&l.openedChange.emit(l._opened)}))}return _createClass(t,[{key:"_takeFocus",value:function(){var t=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then((function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()}))}},{key:"_restoreFocus",value:function(){if(this.autoFocus){var t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(t){return this.toggle(!0,t)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"toggle",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"program";return this._opened=e,e?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise((function(e){t.openedChange.pipe(ui(1)).subscribe((function(t){return e(t?"open":"close")}))}))}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(t){this._animationStarted.next(t)}},{key:"_animationDoneListener",value:function(t){this._animationEnd.next(t)}},{key:"position",get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(t){this._disableClose=fi(t)}},{key:"autoFocus",get:function(){var t=this._autoFocus;return null==t?"side"!==this.mode:t},set:function(t){this._autoFocus=fi(t)}},{key:"opened",get:function(){return this._opened},set:function(t){this.toggle(fi(t))}},{key:"_openedStream",get:function(){return this.openedChange.pipe(ii((function(t){return t})),Object(ri.a)((function(){})))}},{key:"openedStart",get:function(){return this._animationStarted.pipe(ii((function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")})),Object(ri.a)((function(){})))}},{key:"_closedStream",get:function(){return this.openedChange.pipe(ii((function(t){return!t})),Object(ri.a)((function(){})))}},{key:"closedStart",get:function(){return this._animationStarted.pipe(ii((function(t){return t.fromState!==t.toState&&"void"===t.toState})),Object(ri.a)((function(){})))}},{key:"_width",get:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}}]),t}()).\u0275fac=function(t){return new(t||Mb)(a.Dc(a.r),a.Dc(nn),a.Dc(hn),a.Dc(Ii),a.Dc(a.I),a.Dc(ye.e,8),a.Dc(Hb,8))},Mb.\u0275cmp=a.xc({type:Mb,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&a.uc("@transform.start",(function(t){return e._animationStartListener(t)}))("@transform.done",(function(t){return e._animationDoneListener(t)})),2&t&&(a.qc("align",null),a.Ed("@transform",e._animationState),a.tc("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:yb,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(a.fd(),a.Jc(0,"div",0),a.ed(1),a.Ic())},encapsulation:2,data:{animation:[Eb.transformDrawer]},changeDetection:0}),Mb),Wb=((Rb=function(){function t(e,i,n,r,o){var s=this,c=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0;_classCallCheck(this,t),this._dir=e,this._element=i,this._ngZone=n,this._changeDetectorRef=r,this._animationMode=l,this._drawers=new a.O,this.backdropClick=new a.u,this._destroyed=new Le.a,this._doCheckSubject=new Le.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Le.a,e&&e.change.pipe(Dl(this._destroyed)).subscribe((function(){s._validateDrawers(),s.updateContentMargins()})),o.change().pipe(Dl(this._destroyed)).subscribe((function(){return s.updateContentMargins()})),this._autosize=c}return _createClass(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._allDrawers.changes.pipe(Tn(this._allDrawers),Dl(this._destroyed)).subscribe((function(e){t._drawers.reset(e.filter((function(e){return!e._container||e._container===t}))),t._drawers.notifyOnChanges()})),this._drawers.changes.pipe(Tn(null)).subscribe((function(){t._validateDrawers(),t._drawers.forEach((function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)})),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t.updateContentMargins(),t._changeDetectorRef.markForCheck()})),this._doCheckSubject.pipe(Ze(10),Dl(this._destroyed)).subscribe((function(){return t.updateContentMargins()}))}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach((function(t){return t.open()}))}},{key:"close",value:function(){this._drawers.forEach((function(t){return t.close()}))}},{key:"updateContentMargins",value:function(){var t=this,e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._width;else if("push"==this._left.mode){var n=this._left._width;e+=n,i-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._width;else if("push"==this._right.mode){var a=this._right._width;i+=a,e-=a}i=i||null,(e=e||null)===this._contentMargins.left&&i===this._contentMargins.right||(this._contentMargins={left:e,right:i},this._ngZone.run((function(){return t._contentMarginChanges.next(t._contentMargins)})))}},{key:"ngDoCheck",value:function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular((function(){return t._doCheckSubject.next()}))}},{key:"_watchDrawerToggle",value:function(t){var e=this;t._animationStarted.pipe(ii((function(t){return t.fromState!==t.toState})),Dl(this._drawers.changes)).subscribe((function(t){"open-instant"!==t.toState&&"NoopAnimations"!==e._animationMode&&e._element.nativeElement.classList.add("mat-drawer-transition"),e.updateContentMargins(),e._changeDetectorRef.markForCheck()})),"side"!==t.mode&&t.openedChange.pipe(Dl(this._drawers.changes)).subscribe((function(){return e._setContainerClass(t.opened)}))}},{key:"_watchDrawerPosition",value:function(t){var e=this;t&&t.onPositionChanged.pipe(Dl(this._drawers.changes)).subscribe((function(){e._ngZone.onMicrotaskEmpty.asObservable().pipe(ui(1)).subscribe((function(){e._validateDrawers()}))}))}},{key:"_watchDrawerMode",value:function(t){var e=this;t&&t._modeChanged.pipe(Dl(Object(rl.a)(this._drawers.changes,this._destroyed))).subscribe((function(){e.updateContentMargins(),e._changeDetectorRef.markForCheck()}))}},{key:"_setContainerClass",value:function(t){var e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}},{key:"_validateDrawers",value:function(){var t=this;this._start=this._end=null,this._drawers.forEach((function(e){"end"==e.position?(null!=t._end&&Ab("end"),t._end=e):(null!=t._start&&Ab("start"),t._start=e)})),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawer()}},{key:"_closeModalDrawer",value:function(){var t=this;[this._start,this._end].filter((function(e){return e&&!e.disableClose&&t._canHaveBackdrop(e)})).forEach((function(t){return t.close()}))}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(t){return"side"!==t.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(t){return null!=t&&t.opened}},{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(t){this._autosize=fi(t)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(t){this._backdropOverride=null==t?null:fi(t)}},{key:"scrollable",get:function(){return this._userContent||this._content}}]),t}()).\u0275fac=function(t){return new(t||Rb)(a.Dc(xn,8),a.Dc(a.r),a.Dc(a.I),a.Dc(a.j),a.Dc(tu),a.Dc(Vb),a.Dc(Pe,8))},Rb.\u0275cmp=a.xc({type:Rb,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){var n;1&t&&(a.vc(i,Ub,!0),a.vc(i,Gb,!0)),2&t&&(a.md(n=a.Xc())&&(e._content=n.first),a.md(n=a.Xc())&&(e._allDrawers=n))},viewQuery:function(t,e){var i;1&t&&a.Fd(Ub,!0),2&t&&a.md(i=a.Xc())&&(e._userContent=i.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&a.tc("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a.oc([{provide:Hb,useExisting:Rb}])],ngContentSelectors:xb,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(a.fd(Cb),a.zd(0,kb,1,2,"div",0),a.ed(1),a.ed(2,1),a.zd(3,wb,2,0,"mat-drawer-content",1)),2&t&&(a.gd("ngIf",e.hasBackdrop),a.pc(3),a.gd("ngIf",!e._content))},directives:[ye.t,Ub],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Rb),qb=((Pb=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o){return _classCallCheck(this,i),e.call(this,t,n,a,r,o)}return i}(Ub)).\u0275fac=function(t){return new(t||Pb)(a.Dc(a.j),a.Dc(Object(a.hb)((function(){return Xb}))),a.Dc(a.r),a.Dc(Zl),a.Dc(a.I))},Pb.\u0275cmp=a.xc({type:Pb,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&a.yd("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[a.mc],ngContentSelectors:yb,decls:1,vars:0,template:function(t,e){1&t&&(a.fd(),a.ed(0))},encapsulation:2,changeDetection:0}),Pb),$b=((Tb=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._fixedInViewport=!1,t._fixedTopGap=0,t._fixedBottomGap=0,t}return _createClass(i,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=fi(t)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=mi(t)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=mi(t)}}]),i}(Gb)).\u0275fac=function(t){return Kb(t||Tb)},Tb.\u0275cmp=a.xc({type:Tb,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(a.qc("align",null),a.yd("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),a.tc("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[a.mc],ngContentSelectors:yb,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(a.fd(),a.Jc(0,"div",0),a.ed(1),a.Ic())},encapsulation:2,data:{animation:[Eb.transformDrawer]},changeDetection:0}),Tb),Kb=a.Lc($b),Xb=((jb=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(Wb)).\u0275fac=function(t){return Yb(t||jb)},jb.\u0275cmp=a.xc({type:jb,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){var n;1&t&&(a.vc(i,qb,!0),a.vc(i,$b,!0)),2&t&&(a.md(n=a.Xc())&&(e._content=n.first),a.md(n=a.Xc())&&(e._allDrawers=n))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&a.tc("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[a.oc([{provide:Hb,useExisting:jb}]),a.mc],ngContentSelectors:Db,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(a.fd(Ob),a.zd(0,Sb,1,2,"div",0),a.ed(1),a.ed(2,1),a.zd(3,Ib,2,0,"mat-sidenav-content",1)),2&t&&(a.gd("ngIf",e.hasBackdrop),a.pc(3),a.gd("ngIf",!e._content))},directives:[ye.t,qb,Ql],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),jb),Yb=a.Lc(Xb),Zb=((Fb=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Fb}),Fb.\u0275inj=a.Ac({factory:function(t){return new(t||Fb)},imports:[[ye.c,Jn,iu,Oi],Jn]}),Fb),Qb=["thumbContainer"],t_=["toggleBar"],e_=["input"],i_=function(){return{enterDuration:150}},n_=["*"],a_=new a.x("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),r_=0,o_={provide:mr,useExisting:Object(a.hb)((function(){return l_})),multi:!0},s_=function t(e,i){_classCallCheck(this,t),this.source=e,this.checked=i},c_=Gn(Hn(Un(Vn((function t(e){_classCallCheck(this,t),this._elementRef=e}))),"accent")),l_=((Nb=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,s,c,l,u){var d;return _classCallCheck(this,i),(d=e.call(this,t))._focusMonitor=n,d._changeDetectorRef=r,d.defaults=c,d._animationMode=l,d._onChange=function(t){},d._onTouched=function(){},d._uniqueId="mat-slide-toggle-".concat(++r_),d._required=!1,d._checked=!1,d.name=null,d.id=d._uniqueId,d.labelPosition="after",d.ariaLabel=null,d.ariaLabelledby=null,d.change=new a.u,d.toggleChange=new a.u,d.dragChange=new a.u,d.tabIndex=parseInt(o)||0,d}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){"keyboard"===e||"program"===e?t._inputElement.nativeElement.focus():e||Promise.resolve().then((function(){return t._onTouched()}))}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(t){t.stopPropagation()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new s_(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"required",get:function(){return this._required},set:function(t){this._required=fi(t)}},{key:"checked",get:function(){return this._checked},set:function(t){this._checked=fi(t),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}}]),i}(c_)).\u0275fac=function(t){return new(t||Nb)(a.Dc(a.r),a.Dc(hn),a.Dc(a.j),a.Tc("tabindex"),a.Dc(a.I),a.Dc(a_),a.Dc(Pe,8),a.Dc(xn,8))},Nb.\u0275cmp=a.xc({type:Nb,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var i;1&t&&(a.Fd(Qb,!0),a.Fd(t_,!0),a.Fd(e_,!0)),2&t&&(a.md(i=a.Xc())&&(e._thumbEl=i.first),a.md(i=a.Xc())&&(e._thumbBarEl=i.first),a.md(i=a.Xc())&&(e._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(a.Mc("id",e.id),a.qc("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),a.tc("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange",dragChange:"dragChange"},exportAs:["matSlideToggle"],features:[a.oc([o_]),a.mc],ngContentSelectors:n_,decls:16,vars:18,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(a.fd(),a.Jc(0,"label",0,1),a.Jc(2,"div",2,3),a.Jc(4,"input",4,5),a.Wc("change",(function(t){return e._onChangeEvent(t)}))("click",(function(t){return e._onInputClick(t)})),a.Ic(),a.Jc(6,"div",6,7),a.Ec(8,"div",8),a.Jc(9,"div",9),a.Ec(10,"div",10),a.Ic(),a.Ic(),a.Ic(),a.Jc(11,"span",11,12),a.Wc("cdkObserveContent",(function(){return e._onLabelTextChange()})),a.Jc(13,"span",13),a.Bd(14,"\xa0"),a.Ic(),a.ed(15),a.Ic(),a.Ic()),2&t){var i=a.nd(1),n=a.nd(12);a.qc("for",e.inputId),a.pc(2),a.tc("mat-slide-toggle-bar-no-side-margin",!n.textContent||!n.textContent.trim()),a.pc(2),a.gd("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),a.qc("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),a.pc(5),a.gd("matRippleTrigger",i)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",a.id(17,i_))}},directives:[Ea,zi],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),Nb),u_={provide:Pr,useExisting:Object(a.hb)((function(){return d_})),multi:!0},d_=((zb=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(Ys)).\u0275fac=function(t){return h_(t||zb)},zb.\u0275dir=a.yc({type:zb,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[a.oc([u_]),a.mc]}),zb),h_=a.Lc(d_),p_=((Jb=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Jb}),Jb.\u0275inj=a.Ac({factory:function(t){return new(t||Jb)}}),Jb),f_=((Bb=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Bb}),Bb.\u0275inj=a.Ac({factory:function(t){return new(t||Bb)},imports:[[p_,Aa,Jn,Bi],p_,Jn]}),Bb);function m_(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",1),a.Jc(1,"button",2),a.Wc("click",(function(){return a.rd(i),a.ad().action()})),a.Bd(2),a.Ic(),a.Ic()}if(2&t){var n=a.ad();a.pc(2),a.Cd(n.data.action)}}function g_(t,e){}var v_,b_,__,y_,k_,w_,C_,x_=Math.pow(2,31)-1,S_=function(){function t(e,i){var n=this;_classCallCheck(this,t),this._overlayRef=i,this._afterDismissed=new Le.a,this._afterOpened=new Le.a,this._onAction=new Le.a,this._dismissedByAction=!1,this.containerInstance=e,this.onAction().subscribe((function(){return n.dismiss()})),e._onExit.subscribe((function(){return n._finishDismiss()}))}return _createClass(t,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(t){var e=this;this._durationTimeoutId=setTimeout((function(){return e.dismiss()}),Math.min(t,x_))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed.asObservable()}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction.asObservable()}}]),t}(),I_=new a.x("MatSnackBarData"),O_=function t(){_classCallCheck(this,t),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},D_=((v_=function(){function t(e,i){_classCallCheck(this,t),this.snackBarRef=e,this.data=i}return _createClass(t,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),t}()).\u0275fac=function(t){return new(t||v_)(a.Dc(S_),a.Dc(I_))},v_.\u0275cmp=a.xc({type:v_,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(a.Jc(0,"span"),a.Bd(1),a.Ic(),a.zd(2,m_,3,1,"div",0)),2&t&&(a.pc(1),a.Cd(e.data.message),a.pc(1),a.gd("ngIf",e.hasAction))},directives:[ye.t,Qa],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),v_),E_={snackBarState:o("state",[d("void, hidden",u({transform:"scale(0.8)",opacity:0})),d("visible",u({transform:"scale(1)",opacity:1})),p("* => visible",s("150ms cubic-bezier(0, 0, 0.2, 1)")),p("* => void, * => hidden",s("75ms cubic-bezier(0.4, 0.0, 1, 1)",u({opacity:0})))])},A_=((__=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this))._ngZone=t,o._elementRef=n,o._changeDetectorRef=a,o.snackBarConfig=r,o._destroyed=!1,o._onExit=new Le.a,o._onEnter=new Le.a,o._animationState="void",o.attachDomPortal=function(t){return o._assertNotAttached(),o._applySnackBarClasses(),o._portalOutlet.attachDomPortal(t)},o._role="assertive"!==r.politeness||r.announcementMessage?"off"===r.politeness?null:"status":"alert",o}return _createClass(i,[{key:"attachComponentPortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}},{key:"onAnimationEnd",value:function(t){var e=t.fromState,i=t.toState;if(("void"===i&&"void"!==e||"hidden"===i)&&this._completeExit(),"visible"===i){var n=this._onEnter;this._ngZone.run((function(){n.next(),n.complete()}))}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var t=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(ui(1)).subscribe((function(){t._onExit.next(),t._onExit.complete()}))}},{key:"_applySnackBarClasses",value:function(){var t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach((function(e){return t.classList.add(e)})):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}]),i}(hu)).\u0275fac=function(t){return new(t||__)(a.Dc(a.I),a.Dc(a.r),a.Dc(a.j),a.Dc(O_))},__.\u0275cmp=a.xc({type:__,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var i;1&t&&a.xd(mu,!0),2&t&&a.md(i=a.Xc())&&(e._portalOutlet=i.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&a.uc("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(a.qc("role",e._role),a.Ed("@state",e._animationState))},features:[a.mc],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&a.zd(0,g_,0,0,"ng-template",0)},directives:[mu],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[E_.snackBarState]}}),__),T_=((b_=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:b_}),b_.\u0275inj=a.Ac({factory:function(t){return new(t||b_)},imports:[[rd,bu,ye.c,er,Jn],Jn]}),b_),P_=new a.x("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new O_}}),R_=((y_=function(){function t(e,i,n,a,r,o){_classCallCheck(this,t),this._overlay=e,this._live=i,this._injector=n,this._breakpointObserver=a,this._parentSnackBar=r,this._defaultConfig=o,this._snackBarRefAtThisLevel=null}return _createClass(t,[{key:"openFromComponent",value:function(t,e){return this._attach(t,e)}},{key:"openFromTemplate",value:function(t,e){return this._attach(t,e)}},{key:"open",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,n=Object.assign(Object.assign({},this._defaultConfig),i);return n.data={message:t,action:e},n.announcementMessage||(n.announcementMessage=t),this.openFromComponent(D_,n)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(t,e){var i=new _u(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[O_,e]])),n=new lu(A_,e.viewContainerRef,i),a=t.attach(n);return a.instance.snackBarConfig=e,a.instance}},{key:"_attach",value:function(t,e){var i=Object.assign(Object.assign(Object.assign({},new O_),this._defaultConfig),e),n=this._createOverlay(i),r=this._attachSnackBarContainer(n,i),o=new S_(r,n);if(t instanceof a.Y){var s=new uu(t,null,{$implicit:i.data,snackBarRef:o});o.instance=r.attachTemplatePortal(s)}else{var c=this._createInjector(i,o),l=new lu(t,void 0,c),u=r.attachComponentPortal(l);o.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(Dl(n.detachments())).subscribe((function(t){var e=n.overlayElement.classList;t.matches?e.add("mat-snack-bar-handset"):e.remove("mat-snack-bar-handset")})),this._animateSnackBar(o,i),this._openedSnackBarRef=o,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(t,e){var i=this;t.afterDismissed().subscribe((function(){i._openedSnackBarRef==t&&(i._openedSnackBarRef=null),e.announcementMessage&&i._live.clear()})),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe((function(){t.containerInstance.enter()})),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe((function(){return t._dismissAfter(e.duration)})),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)}},{key:"_createOverlay",value:function(t){var e=new Eu;e.direction=t.direction;var i=this._overlay.position().global(),n="rtl"===t.direction,a="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!n||"end"===t.horizontalPosition&&n,r=!a&&"center"!==t.horizontalPosition;return a?i.left("0"):r?i.right("0"):i.centerHorizontally(),"top"===t.verticalPosition?i.top("0"):i.bottom("0"),e.positionStrategy=i,this._overlay.create(e)}},{key:"_createInjector",value:function(t,e){return new _u(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[S_,e],[I_,t.data]]))}},{key:"_openedSnackBarRef",get:function(){var t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}}]),t}()).\u0275fac=function(t){return new(t||y_)(a.Sc(Qu),a.Sc(sn),a.Sc(a.y),a.Sc(nv),a.Sc(y_,12),a.Sc(P_))},y_.\u0275prov=Object(a.zc)({factory:function(){return new y_(Object(a.Sc)(Qu),Object(a.Sc)(sn),Object(a.Sc)(a.v),Object(a.Sc)(nv),Object(a.Sc)(y_,12),Object(a.Sc)(P_))},token:y_,providedIn:T_}),y_),M_=["*",[["mat-toolbar-row"]]],L_=["*","mat-toolbar-row"],j_=Hn((function t(e){_classCallCheck(this,t),this._elementRef=e})),F_=((C_=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||C_)},C_.\u0275dir=a.yc({type:C_,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),C_),N_=((w_=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,t))._platform=n,r._document=a,r}return _createClass(i,[{key:"ngAfterViewInit",value:function(){var t=this;Object(a.jb)()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe((function(){return t._checkToolbarMixedModes()})))}},{key:"_checkToolbarMixedModes",value:function(){var t=this;this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter((function(t){return!(t.classList&&t.classList.contains("mat-toolbar-row"))})).filter((function(e){return e.nodeType!==(t._document?t._document.COMMENT_NODE:8)})).some((function(t){return!(!t.textContent||!t.textContent.trim())}))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content inside of a `<mat-toolbar>` for a single row.")}()}}]),i}(j_)).\u0275fac=function(t){return new(t||w_)(a.Dc(a.r),a.Dc(Ii),a.Dc(ye.e))},w_.\u0275cmp=a.xc({type:w_,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){var n;1&t&&a.vc(i,F_,!0),2&t&&a.md(n=a.Xc())&&(e._toolbarRows=n)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&a.tc("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[a.mc],ngContentSelectors:L_,decls:2,vars:0,template:function(t,e){1&t&&(a.fd(M_),a.ed(0),a.ed(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),w_),z_=((k_=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:k_}),k_.\u0275inj=a.Ac({factory:function(t){return new(t||k_)},imports:[[Jn],Jn]}),k_);function B_(t,e){1&t&&a.ed(0)}var J_=["*"];function V_(t,e){}var H_=function(t){return{animationDuration:t}},U_=function(t,e){return{value:t,params:e}},G_=["tabBodyWrapper"],W_=["tabHeader"];function q_(t,e){}function $_(t,e){if(1&t&&a.zd(0,q_,0,0,"ng-template",9),2&t){var i=a.ad().$implicit;a.gd("cdkPortalOutlet",i.templateLabel)}}function K_(t,e){if(1&t&&a.Bd(0),2&t){var i=a.ad().$implicit;a.Cd(i.textLabel)}}function X_(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",6),a.Wc("click",(function(){a.rd(i);var t=e.$implicit,n=e.index,r=a.ad(),o=a.nd(1);return r._handleClick(t,o,n)})),a.Jc(1,"div",7),a.zd(2,$_,1,1,"ng-template",8),a.zd(3,K_,1,1,"ng-template",8),a.Ic(),a.Ic()}if(2&t){var n=e.$implicit,r=e.index,o=a.ad();a.tc("mat-tab-label-active",o.selectedIndex==r),a.gd("id",o._getTabLabelId(r))("disabled",n.disabled)("matRippleDisabled",n.disabled||o.disableRipple),a.qc("tabIndex",o._getTabIndex(n,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",n.ariaLabel||null)("aria-labelledby",!n.ariaLabel&&n.ariaLabelledby?n.ariaLabelledby:null),a.pc(2),a.gd("ngIf",n.templateLabel),a.pc(1),a.gd("ngIf",!n.templateLabel)}}function Y_(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-tab-body",10),a.Wc("_onCentered",(function(){return a.rd(i),a.ad()._removeTabBodyWrapperHeight()}))("_onCentering",(function(t){return a.rd(i),a.ad()._setTabBodyWrapperHeight(t)})),a.Ic()}if(2&t){var n=e.$implicit,r=e.index,o=a.ad();a.tc("mat-tab-body-active",o.selectedIndex==r),a.gd("id",o._getTabContentId(r))("content",n.content)("position",n.position)("origin",n.origin)("animationDuration",o.animationDuration),a.qc("aria-labelledby",o._getTabLabelId(r))}}var Z_,Q_,ty,ey,iy,ny,ay,ry,oy,sy,cy,ly,uy,dy,hy,py,fy,my,gy=["tabListContainer"],vy=["tabList"],by=["nextPaginator"],_y=["previousPaginator"],yy=["mat-tab-nav-bar",""],ky=new a.x("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),wy=((ty=function(){function t(e,i,n,a){_classCallCheck(this,t),this._elementRef=e,this._ngZone=i,this._inkBarPositioner=n,this._animationMode=a}return _createClass(t,[{key:"alignToElement",value:function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return e._setStyles(t)}))})):this._setStyles(t)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(t){var e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}]),t}()).\u0275fac=function(t){return new(t||ty)(a.Dc(a.r),a.Dc(a.I),a.Dc(ky),a.Dc(Pe,8))},ty.\u0275dir=a.yc({type:ty,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&a.tc("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),ty),Cy=((Q_=function t(e){_classCallCheck(this,t),this.template=e}).\u0275fac=function(t){return new(t||Q_)(a.Dc(a.Y))},Q_.\u0275dir=a.yc({type:Q_,selectors:[["","matTabContent",""]]}),Q_),xy=((Z_=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(fu)).\u0275fac=function(t){return Sy(t||Z_)},Z_.\u0275dir=a.yc({type:Z_,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a.mc]}),Z_),Sy=a.Lc(xy),Iy=Vn((function t(){_classCallCheck(this,t)})),Oy=new a.x("MAT_TAB_GROUP"),Dy=((ey=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this))._viewContainerRef=t,a._closestTabGroup=n,a.textLabel="",a._contentPortal=null,a._stateChanges=new Le.a,a.position=null,a.origin=null,a.isActive=!1,a}return _createClass(i,[{key:"ngOnChanges",value:function(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new uu(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"templateLabel",get:function(){return this._templateLabel},set:function(t){t&&(this._templateLabel=t)}},{key:"content",get:function(){return this._contentPortal}}]),i}(Iy)).\u0275fac=function(t){return new(t||ey)(a.Dc(a.cb),a.Dc(Oy,8))},ey.\u0275cmp=a.xc({type:ey,selectors:[["mat-tab"]],contentQueries:function(t,e,i){var n;1&t&&(a.vc(i,xy,!0),a.wd(i,Cy,!0,a.Y)),2&t&&(a.md(n=a.Xc())&&(e.templateLabel=n.first),a.md(n=a.Xc())&&(e._explicitContent=n.first))},viewQuery:function(t,e){var i;1&t&&a.xd(a.Y,!0),2&t&&a.md(i=a.Xc())&&(e._implicitContent=i.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.mc,a.nc],ngContentSelectors:J_,decls:1,vars:0,template:function(t,e){1&t&&(a.fd(),a.zd(0,B_,1,0,"ng-template"))},encapsulation:2}),ey),Ey={translateTab:o("translateTab",[d("center, void, left-origin-center, right-origin-center",u({transform:"none"})),d("left",u({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),d("right",u({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),p("* => left, * => right, left => center, right => center",s("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),p("void => left-origin-center",[u({transform:"translate3d(-100%, 0, 0)"}),s("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),p("void => right-origin-center",[u({transform:"translate3d(100%, 0, 0)"}),s("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Ay=((ay=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n,r))._host=a,o._centeringSub=je.a.EMPTY,o._leavingSub=je.a.EMPTY,o}return _createClass(i,[{key:"ngOnInit",value:function(){var t=this;_get(_getPrototypeOf(i.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Tn(this._host._isCenterPosition(this._host._position))).subscribe((function(e){e&&!t.hasAttached()&&t.attach(t._host._content)})),this._leavingSub=this._host._afterLeavingCenter.subscribe((function(){t.detach()}))}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),i}(mu)).\u0275fac=function(t){return new(t||ay)(a.Dc(a.n),a.Dc(a.cb),a.Dc(Object(a.hb)((function(){return Py}))),a.Dc(ye.e))},ay.\u0275dir=a.yc({type:ay,selectors:[["","matTabBodyHost",""]],features:[a.mc]}),ay),Ty=((ny=function(){function t(e,i,n){var r=this;_classCallCheck(this,t),this._elementRef=e,this._dir=i,this._dirChangeSubscription=je.a.EMPTY,this._translateTabComplete=new Le.a,this._onCentering=new a.u,this._beforeCentering=new a.u,this._afterLeavingCenter=new a.u,this._onCentered=new a.u(!0),this.animationDuration="500ms",i&&(this._dirChangeSubscription=i.change.subscribe((function(t){r._computePositionAnimationState(t),n.markForCheck()}))),this._translateTabComplete.pipe(vl((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){r._isCenterPosition(t.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(t.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()}))}return _createClass(t,[{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}},{key:"_computePositionAnimationState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(t){var e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}},{key:"position",set:function(t){this._positionIndex=t,this._computePositionAnimationState()}}]),t}()).\u0275fac=function(t){return new(t||ny)(a.Dc(a.r),a.Dc(xn,8),a.Dc(a.j))},ny.\u0275dir=a.yc({type:ny,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),ny),Py=((iy=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){return _classCallCheck(this,i),e.call(this,t,n,a)}return i}(Ty)).\u0275fac=function(t){return new(t||iy)(a.Dc(a.r),a.Dc(xn,8),a.Dc(a.j))},iy.\u0275cmp=a.xc({type:iy,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var i;1&t&&a.Fd(gu,!0),2&t&&a.md(i=a.Xc())&&(e._portalHost=i.first)},hostAttrs:[1,"mat-tab-body"],features:[a.mc],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(a.Jc(0,"div",0,1),a.Wc("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),a.zd(2,V_,0,0,"ng-template",2),a.Ic()),2&t&&a.gd("@translateTab",a.kd(3,U_,e._position,a.jd(1,H_,e.animationDuration)))},directives:[Ay],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Ey.translateTab]}}),iy),Ry=new a.x("MAT_TABS_CONFIG"),My=0,Ly=function t(){_classCallCheck(this,t)},jy=Hn(Un((function t(e){_classCallCheck(this,t),this._elementRef=e})),"primary"),Fy=((oy=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var s;return _classCallCheck(this,i),(s=e.call(this,t))._changeDetectorRef=n,s._animationMode=o,s._tabs=new a.O,s._indexToSelect=0,s._tabBodyWrapperHeight=0,s._tabsSubscription=je.a.EMPTY,s._tabLabelSubscription=je.a.EMPTY,s._dynamicHeight=!1,s._selectedIndex=null,s.headerPosition="above",s.selectedIndexChange=new a.u,s.focusChange=new a.u,s.animationDone=new a.u,s.selectedTabChange=new a.u(!0),s._groupId=My++,s.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",s.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,s}return _createClass(i,[{key:"ngAfterContentChecked",value:function(){var t=this,e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){var i=null==this._selectedIndex;i||this.selectedTabChange.emit(this._createChangeEvent(e)),Promise.resolve().then((function(){t._tabs.forEach((function(t,i){return t.isActive=i===e})),i||t.selectedIndexChange.emit(e)}))}this._tabs.forEach((function(i,n){i.position=n-e,null==t._selectedIndex||0!=i.position||i.origin||(i.origin=e-t._selectedIndex)})),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var t=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe((function(){if(t._clampTabIndex(t._indexToSelect)===t._selectedIndex)for(var e=t._tabs.toArray(),i=0;i<e.length;i++)if(e[i].isActive){t._indexToSelect=t._selectedIndex=i;break}t._changeDetectorRef.markForCheck()}))}},{key:"_subscribeToAllTabChanges",value:function(){var t=this;this._allTabs.changes.pipe(Tn(this._allTabs)).subscribe((function(e){t._tabs.reset(e.filter((function(e){return!e._closestTabGroup||e._closestTabGroup===t}))),t._tabs.notifyOnChanges()}))}},{key:"ngOnDestroy",value:function(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}},{key:"realignInkBar",value:function(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}},{key:"_focusChanged",value:function(t){this.focusChange.emit(this._createChangeEvent(t))}},{key:"_createChangeEvent",value:function(t){var e=new Ly;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}},{key:"_subscribeToTabLabels",value:function(){var t=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Object(rl.a).apply(void 0,_toConsumableArray(this._tabs.map((function(t){return t._stateChanges})))).subscribe((function(){return t._changeDetectorRef.markForCheck()}))}},{key:"_clampTabIndex",value:function(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}},{key:"_getTabLabelId",value:function(t){return"mat-tab-label-".concat(this._groupId,"-").concat(t)}},{key:"_getTabContentId",value:function(t){return"mat-tab-content-".concat(this._groupId,"-").concat(t)}},{key:"_setTabBodyWrapperHeight",value:function(t){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(t,e,i){t.disabled||(this.selectedIndex=e.focusIndex=i)}},{key:"_getTabIndex",value:function(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}},{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=fi(t)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){this._indexToSelect=mi(t,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement;e.classList.remove("mat-background-".concat(this.backgroundColor)),t&&e.classList.add("mat-background-".concat(t)),this._backgroundColor=t}}]),i}(jy)).\u0275fac=function(t){return new(t||oy)(a.Dc(a.r),a.Dc(a.j),a.Dc(Ry,8),a.Dc(Pe,8))},oy.\u0275dir=a.yc({type:oy,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.mc]}),oy),Ny=((ry=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){return _classCallCheck(this,i),e.call(this,t,n,a,r)}return i}(Fy)).\u0275fac=function(t){return new(t||ry)(a.Dc(a.r),a.Dc(a.j),a.Dc(Ry,8),a.Dc(Pe,8))},ry.\u0275cmp=a.xc({type:ry,selectors:[["mat-tab-group"]],contentQueries:function(t,e,i){var n;1&t&&a.vc(i,Dy,!0),2&t&&a.md(n=a.Xc())&&(e._allTabs=n)},viewQuery:function(t,e){var i;1&t&&(a.Fd(G_,!0),a.Fd(W_,!0)),2&t&&(a.md(i=a.Xc())&&(e._tabBodyWrapper=i.first),a.md(i=a.Xc())&&(e._tabHeader=i.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&a.tc("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a.oc([{provide:Oy,useExisting:ry}]),a.mc],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(a.Jc(0,"mat-tab-header",0,1),a.Wc("indexFocused",(function(t){return e._focusChanged(t)}))("selectFocusedIndex",(function(t){return e.selectedIndex=t})),a.zd(2,X_,4,14,"div",2),a.Ic(),a.Jc(3,"div",3,4),a.zd(5,Y_,1,8,"mat-tab-body",5),a.Ic()),2&t&&(a.gd("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),a.pc(2),a.gd("ngForOf",e._tabs),a.pc(1),a.tc("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.pc(2),a.gd("ngForOf",e._tabs))},directives:function(){return[Uy,ye.s,By,Ea,yn,ye.t,mu,Py]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),ry),zy=Vn((function t(){_classCallCheck(this,t)})),By=((sy=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this)).elementRef=t,n}return _createClass(i,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),i}(zy)).\u0275fac=function(t){return new(t||sy)(a.Dc(a.r))},sy.\u0275dir=a.yc({type:sy,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(a.qc("aria-disabled",!!e.disabled),a.tc("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[a.mc]}),sy),Jy=Ai({passive:!0}),Vy=((hy=function(){function t(e,i,n,r,o,s,c){var l=this;_classCallCheck(this,t),this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=n,this._dir=r,this._ngZone=o,this._platform=s,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Le.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Le.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.u,this.indexFocused=new a.u,o.runOutsideAngular((function(){ol(e.nativeElement,"mouseleave").pipe(Dl(l._destroyed)).subscribe((function(){l._stopInterval()}))}))}return _createClass(t,[{key:"ngAfterViewInit",value:function(){var t=this;ol(this._previousPaginator.nativeElement,"touchstart",Jy).pipe(Dl(this._destroyed)).subscribe((function(){t._handlePaginatorPress("before")})),ol(this._nextPaginator.nativeElement,"touchstart",Jy).pipe(Dl(this._destroyed)).subscribe((function(){t._handlePaginatorPress("after")}))}},{key:"ngAfterContentInit",value:function(){var t=this,e=this._dir?this._dir.change:Be(null),i=this._viewportRuler.change(150),n=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new Xi(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),Object(rl.a)(e,i,this._items.changes).pipe(Dl(this._destroyed)).subscribe((function(){n(),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())})),this._keyManager.change.pipe(Dl(this._destroyed)).subscribe((function(e){t.indexFocused.emit(e),t._setTabFocus(e)}))}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(t){if(!Je(t))switch(t.keyCode){case 36:this._keyManager.setFirstItemActive(),t.preventDefault();break;case 35:this._keyManager.setLastItemActive(),t.preventDefault();break;case 13:case 32:this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t);break;default:this._keyManager.onKeydown(t)}}},{key:"_onContentChanges",value:function(){var t=this,e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run((function(){t.updatePagination(),t._alignInkBarToSelectedTab(),t._changeDetectorRef.markForCheck()})))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"_isValidIndex",value:function(t){if(!this._items)return!0;var e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}},{key:"_setTabFocus",value:function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();var e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var t=this.scrollDistance,e=this._platform,i="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(i),"px)"),e&&(e.TRIDENT||e.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"_scrollHeader",value:function(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(t){this._stopInterval(),this._scrollHeader(t)}},{key:"_scrollToLabel",value:function(t){if(!this.disablePagination){var e=this._items?this._items.toArray()[t]:null;if(e){var i,n,a=this._tabListContainer.nativeElement.offsetWidth,r=e.elementRef.nativeElement,o=r.offsetLeft,s=r.offsetWidth;"ltr"==this._getLayoutDirection()?n=(i=o)+s:i=(n=this._tabList.nativeElement.offsetWidth-o)-s;var c=this.scrollDistance,l=this.scrollDistance+a;i<c?this.scrollDistance-=c-i+60:n>l&&(this.scrollDistance+=n-l+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(t,e){var i=this;e&&null!=e.button&&0!==e.button||(this._stopInterval(),Sl(650,100).pipe(Dl(Object(rl.a)(this._stopScrolling,this._destroyed))).subscribe((function(){var e=i._scrollHeader(t),n=e.maxScrollDistance,a=e.distance;(0===a||a>=n)&&i._stopInterval()})))}},{key:"_scrollTo",value:function(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){t=mi(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(t){this._scrollTo(t)}}]),t}()).\u0275fac=function(t){return new(t||hy)(a.Dc(a.r),a.Dc(a.j),a.Dc(tu),a.Dc(xn,8),a.Dc(a.I),a.Dc(Ii),a.Dc(Pe,8))},hy.\u0275dir=a.yc({type:hy,inputs:{disablePagination:"disablePagination"}}),hy),Hy=((dy=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o,s,c){var l;return _classCallCheck(this,i),(l=e.call(this,t,n,a,r,o,s,c))._disableRipple=!1,l}return _createClass(i,[{key:"_itemSelected",value:function(t){t.preventDefault()}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=fi(t)}}]),i}(Vy)).\u0275fac=function(t){return new(t||dy)(a.Dc(a.r),a.Dc(a.j),a.Dc(tu),a.Dc(xn,8),a.Dc(a.I),a.Dc(Ii),a.Dc(Pe,8))},dy.\u0275dir=a.yc({type:dy,inputs:{disableRipple:"disableRipple"},features:[a.mc]}),dy),Uy=((uy=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o,s,c){return _classCallCheck(this,i),e.call(this,t,n,a,r,o,s,c)}return i}(Hy)).\u0275fac=function(t){return new(t||uy)(a.Dc(a.r),a.Dc(a.j),a.Dc(tu),a.Dc(xn,8),a.Dc(a.I),a.Dc(Ii),a.Dc(Pe,8))},uy.\u0275cmp=a.xc({type:uy,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){var n;1&t&&a.vc(i,By,!1),2&t&&a.md(n=a.Xc())&&(e._items=n)},viewQuery:function(t,e){var i;1&t&&(a.xd(wy,!0),a.xd(gy,!0),a.xd(vy,!0),a.Fd(by,!0),a.Fd(_y,!0)),2&t&&(a.md(i=a.Xc())&&(e._inkBar=i.first),a.md(i=a.Xc())&&(e._tabListContainer=i.first),a.md(i=a.Xc())&&(e._tabList=i.first),a.md(i=a.Xc())&&(e._nextPaginator=i.first),a.md(i=a.Xc())&&(e._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&a.tc("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.mc],ngContentSelectors:J_,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(a.fd(),a.Jc(0,"div",0,1),a.Wc("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),a.Ec(2,"div",2),a.Ic(),a.Jc(3,"div",3,4),a.Wc("keydown",(function(t){return e._handleKeydown(t)})),a.Jc(5,"div",5,6),a.Wc("cdkObserveContent",(function(){return e._onContentChanges()})),a.Jc(7,"div",7),a.ed(8),a.Ic(),a.Ec(9,"mat-ink-bar"),a.Ic(),a.Ic(),a.Jc(10,"div",8,9),a.Wc("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),a.Ec(12,"div",2),a.Ic()),2&t&&(a.tc("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.gd("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.pc(5),a.tc("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.pc(5),a.tc("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.gd("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[Ea,zi,wy],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center] .mat-tab-labels{justify-content:center}[mat-align-tabs=end] .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),uy),Gy=((ly=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o,s,c){var l;return _classCallCheck(this,i),(l=e.call(this,t,r,o,n,a,s,c))._disableRipple=!1,l.color="primary",l}return _createClass(i,[{key:"_itemSelected",value:function(){}},{key:"ngAfterContentInit",value:function(){var t=this;this._items.changes.pipe(Tn(null),Dl(this._destroyed)).subscribe((function(){t.updateActiveLink()})),_get(_getPrototypeOf(i.prototype),"ngAfterContentInit",this).call(this)}},{key:"updateActiveLink",value:function(t){if(this._items){for(var e=this._items.toArray(),i=0;i<e.length;i++)if(e[i].active)return this.selectedIndex=i,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement.classList;e.remove("mat-background-".concat(this.backgroundColor)),t&&e.add("mat-background-".concat(t)),this._backgroundColor=t}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=fi(t)}}]),i}(Vy)).\u0275fac=function(t){return new(t||ly)(a.Dc(a.r),a.Dc(xn,8),a.Dc(a.I),a.Dc(a.j),a.Dc(tu),a.Dc(Ii,8),a.Dc(Pe,8))},ly.\u0275dir=a.yc({type:ly,inputs:{color:"color",backgroundColor:"backgroundColor",disableRipple:"disableRipple"},features:[a.mc]}),ly),Wy=((cy=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o,s,c){return _classCallCheck(this,i),e.call(this,t,n,a,r,o,s,c)}return i}(Gy)).\u0275fac=function(t){return new(t||cy)(a.Dc(a.r),a.Dc(xn,8),a.Dc(a.I),a.Dc(a.j),a.Dc(tu),a.Dc(Ii,8),a.Dc(Pe,8))},cy.\u0275cmp=a.xc({type:cy,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(t,e,i){var n;1&t&&a.vc(i,Ky,!0),2&t&&a.md(n=a.Xc())&&(e._items=n)},viewQuery:function(t,e){var i;1&t&&(a.xd(wy,!0),a.xd(gy,!0),a.xd(vy,!0),a.Fd(by,!0),a.Fd(_y,!0)),2&t&&(a.md(i=a.Xc())&&(e._inkBar=i.first),a.md(i=a.Xc())&&(e._tabListContainer=i.first),a.md(i=a.Xc())&&(e._tabList=i.first),a.md(i=a.Xc())&&(e._nextPaginator=i.first),a.md(i=a.Xc())&&(e._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(t,e){2&t&&a.tc("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())("mat-primary","warn"!==e.color&&"accent"!==e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[a.mc],attrs:yy,ngContentSelectors:J_,decls:13,vars:6,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(a.fd(),a.Jc(0,"div",0,1),a.Wc("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),a.Ec(2,"div",2),a.Ic(),a.Jc(3,"div",3,4),a.Wc("keydown",(function(t){return e._handleKeydown(t)})),a.Jc(5,"div",5,6),a.Wc("cdkObserveContent",(function(){return e._onContentChanges()})),a.Jc(7,"div",7),a.ed(8),a.Ic(),a.Ec(9,"mat-ink-bar"),a.Ic(),a.Ic(),a.Jc(10,"div",8,9),a.Wc("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),a.Ec(12,"div",2),a.Ic()),2&t&&(a.tc("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.gd("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.pc(10),a.tc("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.gd("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[Ea,zi,wy],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center] .mat-tab-links{justify-content:center}[mat-align-tabs=end] .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),cy),qy=Gn(Un(Vn((function t(){_classCallCheck(this,t)})))),$y=((my=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o,s){var c;return _classCallCheck(this,i),(c=e.call(this))._tabNavBar=t,c.elementRef=n,c._focusMonitor=o,c._isActive=!1,c.rippleConfig=a||{},c.tabIndex=parseInt(r)||0,"NoopAnimations"===s&&(c.rippleConfig.animation={enterDuration:0,exitDuration:0}),o.monitor(n),c}return _createClass(i,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this.elementRef)}},{key:"active",get:function(){return this._isActive},set:function(t){t!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink(this.elementRef))}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}}]),i}(qy)).\u0275fac=function(t){return new(t||my)(a.Dc(Gy),a.Dc(a.r),a.Dc(Da,8),a.Tc("tabindex"),a.Dc(hn),a.Dc(Pe,8))},my.\u0275dir=a.yc({type:my,inputs:{active:"active"},features:[a.mc]}),my),Ky=((fy=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o,s,c,l){var u;return _classCallCheck(this,i),(u=e.call(this,t,n,o,s,c,l))._tabLinkRipple=new Oa(_assertThisInitialized(u),a,n,r),u._tabLinkRipple.setupTriggerEvents(n.nativeElement),u}return _createClass(i,[{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this),this._tabLinkRipple._removeTriggerEvents()}}]),i}($y)).\u0275fac=function(t){return new(t||fy)(a.Dc(Wy),a.Dc(a.r),a.Dc(a.I),a.Dc(Ii),a.Dc(Da,8),a.Tc("tabindex"),a.Dc(hn),a.Dc(Pe,8))},fy.\u0275dir=a.yc({type:fy,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){2&t&&(a.qc("aria-current",e.active?"page":null)("aria-disabled",e.disabled)("tabIndex",e.tabIndex),a.tc("mat-tab-disabled",e.disabled)("mat-tab-label-active",e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[a.mc]}),fy),Xy=((py=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:py}),py.\u0275inj=a.Ac({factory:function(t){return new(t||py)},imports:[[ye.c,Jn,bu,Aa,Bi,wn],Jn]}),py);function Yy(t,e){if(1&t&&(a.Jc(0,"mat-option",19),a.Bd(1),a.Ic()),2&t){var i=e.$implicit;a.gd("value",i),a.pc(1),a.Dd(" ",i," ")}}function Zy(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-form-field",16),a.Jc(1,"mat-select",17),a.Wc("selectionChange",(function(t){return a.rd(i),a.ad(2)._changePageSize(t.value)})),a.zd(2,Yy,2,2,"mat-option",18),a.Ic(),a.Ic()}if(2&t){var n=a.ad(2);a.gd("color",n.color),a.pc(1),a.gd("value",n.pageSize)("disabled",n.disabled)("aria-label",n._intl.itemsPerPageLabel),a.pc(1),a.gd("ngForOf",n._displayedPageSizeOptions)}}function Qy(t,e){if(1&t&&(a.Jc(0,"div",20),a.Bd(1),a.Ic()),2&t){var i=a.ad(2);a.pc(1),a.Cd(i.pageSize)}}function tk(t,e){if(1&t&&(a.Jc(0,"div",12),a.Jc(1,"div",13),a.Bd(2),a.Ic(),a.zd(3,Zy,3,5,"mat-form-field",14),a.zd(4,Qy,2,1,"div",15),a.Ic()),2&t){var i=a.ad();a.pc(2),a.Dd(" ",i._intl.itemsPerPageLabel," "),a.pc(1),a.gd("ngIf",i._displayedPageSizeOptions.length>1),a.pc(1),a.gd("ngIf",i._displayedPageSizeOptions.length<=1)}}function ek(t,e){if(1&t){var i=a.Kc();a.Jc(0,"button",21),a.Wc("click",(function(){return a.rd(i),a.ad().firstPage()})),a.Zc(),a.Jc(1,"svg",7),a.Ec(2,"path",22),a.Ic(),a.Ic()}if(2&t){var n=a.ad();a.gd("matTooltip",n._intl.firstPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),a.qc("aria-label",n._intl.firstPageLabel)}}function ik(t,e){if(1&t){var i=a.Kc();a.Zc(),a.Yc(),a.Jc(0,"button",23),a.Wc("click",(function(){return a.rd(i),a.ad().lastPage()})),a.Zc(),a.Jc(1,"svg",7),a.Ec(2,"path",24),a.Ic(),a.Ic()}if(2&t){var n=a.ad();a.gd("matTooltip",n._intl.lastPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),a.qc("aria-label",n._intl.lastPageLabel)}}var nk,ak,rk,ok=((nk=function t(){_classCallCheck(this,t),this.changes=new Le.a,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,e,i){if(0==i||0==e)return"0 of ".concat(i);var n=t*e;return"".concat(n+1," \u2013 ").concat(n<(i=Math.max(i,0))?Math.min(n+e,i):n+e," of ").concat(i)}}).\u0275fac=function(t){return new(t||nk)},nk.\u0275prov=Object(a.zc)({factory:function(){return new nk},token:nk,providedIn:"root"}),nk),sk={provide:ok,deps:[[new a.J,new a.U,ok]],useFactory:function(t){return t||new ok}},ck=new a.x("MAT_PAGINATOR_DEFAULT_OPTIONS"),lk=Vn(qn((function t(){_classCallCheck(this,t)}))),uk=((rk=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;if(_classCallCheck(this,i),(o=e.call(this))._intl=t,o._changeDetectorRef=n,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new a.u,o._intlChanges=t.changes.subscribe((function(){return o._changeDetectorRef.markForCheck()})),r){var s=r.pageSize,c=r.pageSizeOptions,l=r.hidePageSize,u=r.showFirstLastButtons;null!=s&&(o._pageSize=s),null!=c&&(o._pageSizeOptions=c),null!=l&&(o._hidePageSize=l),null!=u&&(o._showFirstLastButtons=u)}return _possibleConstructorReturn(o)}return _createClass(i,[{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var t=this.getNumberOfPages()-1;return this.pageIndex<t&&0!=this.pageSize}},{key:"getNumberOfPages",value:function(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}},{key:"_changePageSize",value:function(t){var e=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/t)||0,this.pageSize=t,this._emitPageEvent(e)}},{key:"_nextButtonsDisabled",value:function(){return this.disabled||!this.hasNextPage()}},{key:"_previousButtonsDisabled",value:function(){return this.disabled||!this.hasPreviousPage()}},{key:"_updateDisplayedPageSizeOptions",value:function(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((function(t,e){return t-e})),this._changeDetectorRef.markForCheck())}},{key:"_emitPageEvent",value:function(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}},{key:"pageIndex",get:function(){return this._pageIndex},set:function(t){this._pageIndex=Math.max(mi(t),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(t){this._length=mi(t),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(t){this._pageSize=Math.max(mi(t),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(t){this._pageSizeOptions=(t||[]).map((function(t){return mi(t)})),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(t){this._hidePageSize=fi(t)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(t){this._showFirstLastButtons=fi(t)}}]),i}(lk)).\u0275fac=function(t){return new(t||rk)(a.Dc(ok),a.Dc(a.j),a.Dc(ck,8))},rk.\u0275cmp=a.xc({type:rk,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},exportAs:["matPaginator"],features:[a.mc],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(a.Jc(0,"div",0),a.Jc(1,"div",1),a.zd(2,tk,5,3,"div",2),a.Jc(3,"div",3),a.Jc(4,"div",4),a.Bd(5),a.Ic(),a.zd(6,ek,3,5,"button",5),a.Jc(7,"button",6),a.Wc("click",(function(){return e.previousPage()})),a.Zc(),a.Jc(8,"svg",7),a.Ec(9,"path",8),a.Ic(),a.Ic(),a.Yc(),a.Jc(10,"button",9),a.Wc("click",(function(){return e.nextPage()})),a.Zc(),a.Jc(11,"svg",7),a.Ec(12,"path",10),a.Ic(),a.Ic(),a.zd(13,ik,3,5,"button",11),a.Ic(),a.Ic(),a.Ic()),2&t&&(a.pc(2),a.gd("ngIf",!e.hidePageSize),a.pc(3),a.Dd(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),a.pc(1),a.gd("ngIf",e.showFirstLastButtons),a.pc(1),a.gd("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),a.qc("aria-label",e._intl.previousPageLabel),a.pc(3),a.gd("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),a.qc("aria-label",e._intl.nextPageLabel),a.pc(3),a.gd("ngIf",e.showFirstLastButtons))},directives:[ye.t,Qa,mv,qd,bb,ye.s,Ba],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;min-height:56px;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),rk),dk=((ak=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:ak}),ak.\u0275inj=a.Ac({factory:function(t){return new(t||ak)},providers:[sk],imports:[[ye.c,er,_b,vv]]}),ak),hk=["mat-sort-header",""];function pk(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",3),a.Wc("@arrowPosition.start",(function(){return a.rd(i),a.ad()._disableViewStateAnimation=!0}))("@arrowPosition.done",(function(){return a.rd(i),a.ad()._disableViewStateAnimation=!1})),a.Ec(1,"div",4),a.Jc(2,"div",5),a.Ec(3,"div",6),a.Ec(4,"div",7),a.Ec(5,"div",8),a.Ic(),a.Ic()}if(2&t){var n=a.ad();a.gd("@arrowOpacity",n._getArrowViewState())("@arrowPosition",n._getArrowViewState())("@allowChildren",n._getArrowDirectionState()),a.pc(2),a.gd("@indicator",n._getArrowDirectionState()),a.pc(1),a.gd("@leftPointer",n._getArrowDirectionState()),a.pc(1),a.gd("@rightPointer",n._getArrowDirectionState())}}var fk,mk,gk,vk,bk=["*"],_k=qn(Vn((function t(){_classCallCheck(this,t)}))),yk=((fk=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments)).sortables=new Map,t._stateChanges=new Le.a,t.start="asc",t._direction="",t.sortChange=new a.u,t}return _createClass(i,[{key:"register",value:function(t){if(!t.id)throw Error("MatSortHeader must be provided with a unique id.");if(this.sortables.has(t.id))throw Error("Cannot have two MatSortables with the same id (".concat(t.id,")."));this.sortables.set(t.id,t)}},{key:"deregister",value:function(t){this.sortables.delete(t.id)}},{key:"sort",value:function(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(t){if(!t)return"";var e,i,n,a=(e=t.start||this.start,i=null!=t.disableClear?t.disableClear:this.disableClear,n=["asc","desc"],"desc"==e&&n.reverse(),i||n.push(""),n),r=a.indexOf(this.direction)+1;return r>=a.length&&(r=0),a[r]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"direction",get:function(){return this._direction},set:function(t){if(Object(a.jb)()&&t&&"asc"!==t&&"desc"!==t)throw function(t){return Error("".concat(t," is not a valid sort direction ('asc' or 'desc')."))}(t);this._direction=t}},{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=fi(t)}}]),i}(_k)).\u0275fac=function(t){return kk(t||fk)},fk.\u0275dir=a.yc({type:fk,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[a.mc,a.nc]}),fk),kk=a.Lc(yk),wk=Nn.ENTERING+" "+Fn.STANDARD_CURVE,Ck={indicator:o("indicator",[d("active-asc, asc",u({transform:"translateY(0px)"})),d("active-desc, desc",u({transform:"translateY(10px)"})),p("active-asc <=> active-desc",s(wk))]),leftPointer:o("leftPointer",[d("active-asc, asc",u({transform:"rotate(-45deg)"})),d("active-desc, desc",u({transform:"rotate(45deg)"})),p("active-asc <=> active-desc",s(wk))]),rightPointer:o("rightPointer",[d("active-asc, asc",u({transform:"rotate(45deg)"})),d("active-desc, desc",u({transform:"rotate(-45deg)"})),p("active-asc <=> active-desc",s(wk))]),arrowOpacity:o("arrowOpacity",[d("desc-to-active, asc-to-active, active",u({opacity:1})),d("desc-to-hint, asc-to-hint, hint",u({opacity:.54})),d("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",u({opacity:0})),p("* => asc, * => desc, * => active, * => hint, * => void",s("0ms")),p("* <=> *",s(wk))]),arrowPosition:o("arrowPosition",[p("* => desc-to-hint, * => desc-to-active",s(wk,h([u({transform:"translateY(-25%)"}),u({transform:"translateY(0)"})]))),p("* => hint-to-desc, * => active-to-desc",s(wk,h([u({transform:"translateY(0)"}),u({transform:"translateY(25%)"})]))),p("* => asc-to-hint, * => asc-to-active",s(wk,h([u({transform:"translateY(25%)"}),u({transform:"translateY(0)"})]))),p("* => hint-to-asc, * => active-to-asc",s(wk,h([u({transform:"translateY(0)"}),u({transform:"translateY(-25%)"})]))),d("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",u({transform:"translateY(0)"})),d("hint-to-desc, active-to-desc, desc",u({transform:"translateY(-25%)"})),d("hint-to-asc, active-to-asc, asc",u({transform:"translateY(25%)"}))]),allowChildren:o("allowChildren",[p("* <=> *",[m("@*",f(),{optional:!0})])])},xk=((mk=function t(){_classCallCheck(this,t),this.changes=new Le.a,this.sortButtonLabel=function(t){return"Change sorting for ".concat(t)}}).\u0275fac=function(t){return new(t||mk)},mk.\u0275prov=Object(a.zc)({factory:function(){return new mk},token:mk,providedIn:"root"}),mk),Sk={provide:xk,deps:[[new a.J,new a.U,xk]],useFactory:function(t){return t||new xk}},Ik=Vn((function t(){_classCallCheck(this,t)})),Ok=((vk=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o,s){var c;if(_classCallCheck(this,i),(c=e.call(this))._intl=t,c._sort=a,c._columnDef=r,c._focusMonitor=o,c._elementRef=s,c._showIndicatorHint=!1,c._arrowDirection="",c._disableViewStateAnimation=!1,c.arrowPosition="after",!a)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");return c._rerenderSubscription=Object(rl.a)(a.sortChange,a._stateChanges,t.changes).subscribe((function(){c._isSorted()&&c._updateArrowDirection(),!c._isSorted()&&c._viewState&&"active"===c._viewState.toState&&(c._disableViewStateAnimation=!1,c._setAnimationTransitionState({fromState:"active",toState:c._arrowDirection})),n.markForCheck()})),o&&s&&o.monitor(s,!0).subscribe((function(t){return c._setIndicatorHintVisible(!!t)})),_possibleConstructorReturn(c)}return _createClass(i,[{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._elementRef&&this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}},{key:"_handleClick",value:function(){if(!this._isDisabled()){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);var t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var t=this._viewState.fromState;return(t?"".concat(t,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":null}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=fi(t)}}]),i}(Ik)).\u0275fac=function(t){return new(t||vk)(a.Dc(xk),a.Dc(a.j),a.Dc(yk,8),a.Dc("MAT_SORT_HEADER_COLUMN_DEF",8),a.Dc(hn),a.Dc(a.r))},vk.\u0275cmp=a.xc({type:vk,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&a.Wc("click",(function(){return e._handleClick()}))("mouseenter",(function(){return e._setIndicatorHintVisible(!0)}))("mouseleave",(function(){return e._setIndicatorHintVisible(!1)})),2&t&&(a.qc("aria-sort",e._getAriaSortAttribute()),a.tc("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[a.mc],attrs:hk,ngContentSelectors:bk,decls:4,vars:7,consts:[[1,"mat-sort-header-container"],["type","button",1,"mat-sort-header-button","mat-focus-indicator"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(a.fd(),a.Jc(0,"div",0),a.Jc(1,"button",1),a.ed(2),a.Ic(),a.zd(3,pk,6,6,"div",2),a.Ic()),2&t&&(a.tc("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),a.pc(1),a.qc("disabled",e._isDisabled()||null)("aria-label",e._intl.sortButtonLabel(e.id)),a.pc(2),a.gd("ngIf",e._renderArrow()))},directives:[ye.t],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:inherit;outline:0;font:inherit;color:currentColor;position:relative}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-button,[mat-sort-header].cdk-program-focused .mat-sort-header-button{border-bottom:solid 1px currentColor}.mat-sort-header-button::-moz-focus-inner{border:0}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[Ck.indicator,Ck.leftPointer,Ck.rightPointer,Ck.arrowOpacity,Ck.arrowPosition,Ck.allowChildren]},changeDetection:0}),vk),Dk=((gk=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:gk}),gk.\u0275inj=a.Ac({factory:function(t){return new(t||gk)},providers:[Sk],imports:[[ye.c]]}),gk),Ek=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._value=t,n}return _createClass(i,[{key:"_subscribe",value:function(t){var e=_get(_getPrototypeOf(i.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new $l.a;return this._value}},{key:"next",value:function(t){_get(_getPrototypeOf(i.prototype),"next",this).call(this,this._value=t)}},{key:"value",get:function(){return this.getValue()}}]),i}(Le.a),Ak=[[["caption"]]],Tk=["caption"];function Pk(t,e){if(1&t&&(a.Jc(0,"th",3),a.Bd(1),a.Ic()),2&t){var i=a.ad();a.yd("text-align",i.justify),a.pc(1),a.Dd(" ",i.headerText," ")}}function Rk(t,e){if(1&t&&(a.Jc(0,"td",4),a.Bd(1),a.Ic()),2&t){var i=e.$implicit,n=a.ad();a.yd("text-align",n.justify),a.pc(1),a.Dd(" ",n.dataAccessor(i,n.name)," ")}}function Mk(t){return function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;_classCallCheck(this,i);for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a)))._sticky=!1,t._hasStickyChanged=!1,t}return _createClass(i,[{key:"hasStickyChanged",value:function(){var t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}},{key:"resetStickyChanged",value:function(){this._hasStickyChanged=!1}},{key:"sticky",get:function(){return this._sticky},set:function(t){var e=this._sticky;this._sticky=fi(t),this._hasStickyChanged=e!==this._sticky}}]),i}(t)}var Lk,jk,Fk,Nk,zk,Bk,Jk,Vk,Hk,Uk,Gk,Wk,qk,$k,Kk,Xk=new a.x("CDK_TABLE"),Yk=new a.x("text-column-options"),Zk=((Fk=function t(e){_classCallCheck(this,t),this.template=e}).\u0275fac=function(t){return new(t||Fk)(a.Dc(a.Y))},Fk.\u0275dir=a.yc({type:Fk,selectors:[["","cdkCellDef",""]]}),Fk),Qk=((jk=function t(e){_classCallCheck(this,t),this.template=e}).\u0275fac=function(t){return new(t||jk)(a.Dc(a.Y))},jk.\u0275dir=a.yc({type:jk,selectors:[["","cdkHeaderCellDef",""]]}),jk),tw=((Lk=function t(e){_classCallCheck(this,t),this.template=e}).\u0275fac=function(t){return new(t||Lk)(a.Dc(a.Y))},Lk.\u0275dir=a.yc({type:Lk,selectors:[["","cdkFooterCellDef",""]]}),Lk),ew=Mk((function t(){_classCallCheck(this,t)})),iw=((Nk=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._table=t,n._stickyEnd=!1,n}return _createClass(i,[{key:"name",get:function(){return this._name},set:function(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"))}},{key:"stickyEnd",get:function(){return this._stickyEnd},set:function(t){var e=this._stickyEnd;this._stickyEnd=fi(t),this._hasStickyChanged=e!==this._stickyEnd}}]),i}(ew)).\u0275fac=function(t){return new(t||Nk)(a.Dc(Xk,8))},Nk.\u0275dir=a.yc({type:Nk,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){var n;1&t&&(a.vc(i,Zk,!0),a.vc(i,Qk,!0),a.vc(i,tw,!0)),2&t&&(a.md(n=a.Xc())&&(e.cell=n.first),a.md(n=a.Xc())&&(e.headerCell=n.first),a.md(n=a.Xc())&&(e.footerCell=n.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[a.oc([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Nk}]),a.mc]}),Nk),nw=function t(e,i){_classCallCheck(this,t),i.nativeElement.classList.add("cdk-column-".concat(e.cssClassFriendlyName))},aw=((Vk=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){return _classCallCheck(this,i),e.call(this,t,n)}return i}(nw)).\u0275fac=function(t){return new(t||Vk)(a.Dc(iw),a.Dc(a.r))},Vk.\u0275dir=a.yc({type:Vk,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[a.mc]}),Vk),rw=((Jk=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){return _classCallCheck(this,i),e.call(this,t,n)}return i}(nw)).\u0275fac=function(t){return new(t||Jk)(a.Dc(iw),a.Dc(a.r))},Jk.\u0275dir=a.yc({type:Jk,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[a.mc]}),Jk),ow=((Bk=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){return _classCallCheck(this,i),e.call(this,t,n)}return i}(nw)).\u0275fac=function(t){return new(t||Bk)(a.Dc(iw),a.Dc(a.r))},Bk.\u0275dir=a.yc({type:Bk,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[a.mc]}),Bk),sw=((zk=function(){function t(e,i){_classCallCheck(this,t),this.template=e,this._differs=i}return _createClass(t,[{key:"ngOnChanges",value:function(t){if(!this._columnsDiffer){var e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}},{key:"getColumnsDiff",value:function(){return this._columnsDiffer.diff(this.columns)}},{key:"extractCellTemplate",value:function(t){return this instanceof lw?t.headerCell.template:this instanceof dw?t.footerCell.template:t.cell.template}}]),t}()).\u0275fac=function(t){return new(t||zk)(a.Dc(a.Y),a.Dc(a.A))},zk.\u0275dir=a.yc({type:zk,features:[a.nc]}),zk),cw=Mk(function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(sw)),lw=((Hk=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,t,n))._table=a,r}return _createClass(i,[{key:"ngOnChanges",value:function(t){_get(_getPrototypeOf(i.prototype),"ngOnChanges",this).call(this,t)}}]),i}(cw)).\u0275fac=function(t){return new(t||Hk)(a.Dc(a.Y),a.Dc(a.A),a.Dc(Xk,8))},Hk.\u0275dir=a.yc({type:Hk,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[a.mc,a.nc]}),Hk),uw=Mk(function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(sw)),dw=((Kk=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,t,n))._table=a,r}return _createClass(i,[{key:"ngOnChanges",value:function(t){_get(_getPrototypeOf(i.prototype),"ngOnChanges",this).call(this,t)}}]),i}(uw)).\u0275fac=function(t){return new(t||Kk)(a.Dc(a.Y),a.Dc(a.A),a.Dc(Xk,8))},Kk.\u0275dir=a.yc({type:Kk,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[a.mc,a.nc]}),Kk),hw=(($k=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,t,n))._table=a,r}return i}(sw)).\u0275fac=function(t){return new(t||$k)(a.Dc(a.Y),a.Dc(a.A),a.Dc(Xk,8))},$k.\u0275dir=a.yc({type:$k,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[a.mc]}),$k),pw=((qk=function(){function t(e){_classCallCheck(this,t),this._viewContainer=e,t.mostRecentCellOutlet=this}return _createClass(t,[{key:"ngOnDestroy",value:function(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}]),t}()).\u0275fac=function(t){return new(t||qk)(a.Dc(a.cb))},qk.\u0275dir=a.yc({type:qk,selectors:[["","cdkCellOutlet",""]]}),qk.mostRecentCellOutlet=null,qk),fw=((Wk=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Wk)},Wk.\u0275cmp=a.xc({type:Wk,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&a.Fc(0,0)},directives:[pw],encapsulation:2}),Wk),mw=((Gk=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Gk)},Gk.\u0275cmp=a.xc({type:Gk,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&a.Fc(0,0)},directives:[pw],encapsulation:2}),Gk),gw=((Uk=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Uk)},Uk.\u0275cmp=a.xc({type:Uk,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&a.Fc(0,0)},directives:[pw],encapsulation:2}),Uk),vw=["top","bottom","left","right"],bw=function(){function t(e,i,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];_classCallCheck(this,t),this._isNativeHtmlTable=e,this._stickCellCss=i,this.direction=n,this._isBrowser=a}return _createClass(t,[{key:"clearStickyPositioning",value:function(t,e){var i,n=_createForOfIteratorHelper(t);try{for(n.s();!(i=n.n()).done;){var a=i.value;if(a.nodeType===a.ELEMENT_NODE){this._removeStickyStyle(a,e);for(var r=0;r<a.children.length;r++)this._removeStickyStyle(a.children[r],e)}}}catch(o){n.e(o)}finally{n.f()}}},{key:"updateStickyColumns",value:function(t,e,i){var n=e.some((function(t){return t}))||i.some((function(t){return t}));if(t.length&&n&&this._isBrowser){var a,r=t[0],o=r.children.length,s=this._getCellWidths(r),c=this._getStickyStartColumnPositions(s,e),l=this._getStickyEndColumnPositions(s,i),u="rtl"===this.direction,d=_createForOfIteratorHelper(t);try{for(d.s();!(a=d.n()).done;)for(var h=a.value,p=0;p<o;p++){var f=h.children[p];e[p]&&this._addStickyStyle(f,u?"right":"left",c[p]),i[p]&&this._addStickyStyle(f,u?"left":"right",l[p])}}catch(m){d.e(m)}finally{d.f()}}}},{key:"stickRows",value:function(t,e,i){if(this._isBrowser)for(var n="bottom"===i?t.reverse():t,a=0,r=0;r<n.length;r++)if(e[r]){var o=n[r];if(this._isNativeHtmlTable)for(var s=0;s<o.children.length;s++)this._addStickyStyle(o.children[s],i,a);else this._addStickyStyle(o,i,a);if(r===n.length-1)return;a+=o.getBoundingClientRect().height}}},{key:"updateStickyFooterContainer",value:function(t,e){if(this._isNativeHtmlTable){var i=t.querySelector("tfoot");e.some((function(t){return!t}))?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0)}}},{key:"_removeStickyStyle",value:function(t,e){var i,n=_createForOfIteratorHelper(e);try{for(n.s();!(i=n.n()).done;){var a=i.value;t.style[a]=""}}catch(r){n.e(r)}finally{n.f()}t.style.zIndex=this._getCalculatedZIndex(t),vw.some((function(e){return!!t.style[e]}))||(t.style.position="",t.classList.remove(this._stickCellCss))}},{key:"_addStickyStyle",value:function(t,e,i){t.classList.add(this._stickCellCss),t.style[e]="".concat(i,"px"),t.style.cssText+="position: -webkit-sticky; position: sticky; ",t.style.zIndex=this._getCalculatedZIndex(t)}},{key:"_getCalculatedZIndex",value:function(t){var e,i={top:100,bottom:10,left:1,right:1},n=0,a=_createForOfIteratorHelper(vw);try{for(a.s();!(e=a.n()).done;){var r=e.value;t.style[r]&&(n+=i[r])}}catch(o){a.e(o)}finally{a.f()}return n?"".concat(n):""}},{key:"_getCellWidths",value:function(t){for(var e=[],i=t.children,n=0;n<i.length;n++)e.push(i[n].getBoundingClientRect().width);return e}},{key:"_getStickyStartColumnPositions",value:function(t,e){for(var i=[],n=0,a=0;a<t.length;a++)e[a]&&(i[a]=n,n+=t[a]);return i}},{key:"_getStickyEndColumnPositions",value:function(t,e){for(var i=[],n=0,a=t.length;a>0;a--)e[a]&&(i[a]=n,n+=t[a]);return i}}]),t}();function _w(t){return Error('Could not find column with id "'.concat(t,'".'))}var yw,kw,ww,Cw,xw=((Cw=function t(e,i){_classCallCheck(this,t),this.viewContainer=e,this.elementRef=i}).\u0275fac=function(t){return new(t||Cw)(a.Dc(a.cb),a.Dc(a.r))},Cw.\u0275dir=a.yc({type:Cw,selectors:[["","rowOutlet",""]]}),Cw),Sw=((ww=function t(e,i){_classCallCheck(this,t),this.viewContainer=e,this.elementRef=i}).\u0275fac=function(t){return new(t||ww)(a.Dc(a.cb),a.Dc(a.r))},ww.\u0275dir=a.yc({type:ww,selectors:[["","headerRowOutlet",""]]}),ww),Iw=((kw=function t(e,i){_classCallCheck(this,t),this.viewContainer=e,this.elementRef=i}).\u0275fac=function(t){return new(t||kw)(a.Dc(a.cb),a.Dc(a.r))},kw.\u0275dir=a.yc({type:kw,selectors:[["","footerRowOutlet",""]]}),kw),Ow=((yw=function(){function t(e,i,n,a,r,o,s){_classCallCheck(this,t),this._differs=e,this._changeDetectorRef=i,this._elementRef=n,this._dir=r,this._platform=s,this._onDestroy=new Le.a,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._multiTemplateDataRows=!1,this.viewChange=new Ek({start:0,end:Number.MAX_VALUE}),a||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((function(e,i){return t.trackBy?t.trackBy(i.dataIndex,i.data):i}))}},{key:"ngAfterContentChecked",value:function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&this._observeRenderChanges(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),ir(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var i=this._rowOutlet.viewContainer;e.forEachOperation((function(e,n,a){if(null==e.previousIndex)t._insertRow(e.item,a);else if(null==a)i.remove(n);else{var r=i.get(n);i.move(r,a)}})),this._updateRowIndexContext(),e.forEachIdentityChange((function(t){i.get(t.currentIndex).context.$implicit=t.item.data})),this.updateStickyColumnStyles()}}},{key:"setHeaderRowDef",value:function(t){this._customHeaderRowDefs=new Set([t]),this._headerRowDefChanged=!0}},{key:"setFooterRowDef",value:function(t){this._customFooterRowDefs=new Set([t]),this._footerRowDefChanged=!0}},{key:"addColumnDef",value:function(t){this._customColumnDefs.add(t)}},{key:"removeColumnDef",value:function(t){this._customColumnDefs.delete(t)}},{key:"addRowDef",value:function(t){this._customRowDefs.add(t)}},{key:"removeRowDef",value:function(t){this._customRowDefs.delete(t)}},{key:"addHeaderRowDef",value:function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}},{key:"updateStickyHeaderRowStyles",value:function(){var t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");var i=this._headerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach((function(t){return t.resetStickyChanged()}))}},{key:"updateStickyFooterRowStyles",value:function(){var t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");var i=this._footerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach((function(t){return t.resetStickyChanged()}))}},{key:"updateStickyColumnStyles",value:function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([].concat(_toConsumableArray(e),_toConsumableArray(i),_toConsumableArray(n)),["left","right"]),e.forEach((function(e,i){t._addStickyColumnStyles([e],t._headerRowDefs[i])})),this._rowDefs.forEach((function(e){for(var n=[],a=0;a<i.length;a++)t._renderRows[a].rowDef===e&&n.push(i[a]);t._addStickyColumnStyles(n,e)})),n.forEach((function(e,i){t._addStickyColumnStyles([e],t._footerRowDefs[i])})),Array.from(this._columnDefsByName.values()).forEach((function(t){return t.resetStickyChanged()}))}},{key:"_getAllRenderRows",value:function(){var t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var i=0;i<this._data.length;i++){var n=this._data[i],a=this._getRenderRowsForData(n,i,e.get(n));this._cachedRenderRowsMap.has(n)||this._cachedRenderRowsMap.set(n,new WeakMap);for(var r=0;r<a.length;r++){var o=a[r],s=this._cachedRenderRowsMap.get(o.data);s.has(o.rowDef)?s.get(o.rowDef).push(o):s.set(o.rowDef,[o]),t.push(o)}}return t}},{key:"_getRenderRowsForData",value:function(t,e,i){return this._getRowDefs(t,e).map((function(n){var a=i&&i.has(n)?i.get(n):[];if(a.length){var r=a.shift();return r.dataIndex=e,r}return{data:t,rowDef:n,dataIndex:e}}))}},{key:"_cacheColumnDefs",value:function(){var t=this;this._columnDefsByName.clear(),Dw(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach((function(e){if(t._columnDefsByName.has(e.name))throw Error('Duplicate column definition name provided: "'.concat(e.name,'".'));t._columnDefsByName.set(e.name,e)}))}},{key:"_cacheRowDefs",value:function(){this._headerRowDefs=Dw(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Dw(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Dw(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);var t=this._rowDefs.filter((function(t){return!t.when}));if(!this.multiTemplateDataRows&&t.length>1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=t[0]}},{key:"_renderUpdatedColumns",value:function(){var t=function(t,e){return t||!!e.getColumnsDiff()};this._rowDefs.reduce(t,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(t,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(t,!1)&&this._forceRenderFooterRows()}},{key:"_switchDataSource",value:function(t){this._data=[],ir(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}},{key:"_observeRenderChanges",value:function(){var t=this;if(this.dataSource){var e,i;if(ir(this.dataSource)?e=this.dataSource.connect(this):(i=this.dataSource)&&(i instanceof si.a||"function"==typeof i.lift&&"function"==typeof i.subscribe)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Be(this.dataSource)),void 0===e)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=e.pipe(Dl(this._onDestroy)).subscribe((function(e){t._data=e||[],t.renderRows()}))}}},{key:"_forceRenderHeaderRows",value:function(){var t=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((function(e,i){return t._renderRow(t._headerRowOutlet,e,i)})),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()}},{key:"_forceRenderFooterRows",value:function(){var t=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((function(e,i){return t._renderRow(t._footerRowOutlet,e,i)})),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()}},{key:"_addStickyColumnStyles",value:function(t,e){var i=this,n=Array.from(e.columns||[]).map((function(t){var e=i._columnDefsByName.get(t);if(!e)throw _w(t);return e})),a=n.map((function(t){return t.sticky})),r=n.map((function(t){return t.stickyEnd}));this._stickyStyler.updateStickyColumns(t,a,r)}},{key:"_getRenderedRows",value:function(t){for(var e=[],i=0;i<t.viewContainer.length;i++){var n=t.viewContainer.get(i);e.push(n.rootNodes[0])}return e}},{key:"_getRowDefs",value:function(t,e){if(1==this._rowDefs.length)return[this._rowDefs[0]];var i=[];if(this.multiTemplateDataRows)i=this._rowDefs.filter((function(i){return!i.when||i.when(e,t)}));else{var n=this._rowDefs.find((function(i){return i.when&&i.when(e,t)}))||this._defaultRowDef;n&&i.push(n)}if(!i.length)throw function(t){return Error("Could not find a matching row definition for the"+"provided row data: ".concat(JSON.stringify(t)))}(t);return i}},{key:"_insertRow",value:function(t,e){this._renderRow(this._rowOutlet,t.rowDef,e,{$implicit:t.data})}},{key:"_renderRow",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t.viewContainer.createEmbeddedView(e.template,n,i);var a,r=_createForOfIteratorHelper(this._getCellTemplates(e));try{for(r.s();!(a=r.n()).done;){var o=a.value;pw.mostRecentCellOutlet&&pw.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n)}}catch(s){r.e(s)}finally{r.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var t=this._rowOutlet.viewContainer,e=0,i=t.length;e<i;e++){var n=t.get(e).context;n.count=i,n.first=0===e,n.last=e===i-1,n.even=e%2==0,n.odd=!n.even,this.multiTemplateDataRows?(n.dataIndex=this._renderRows[e].dataIndex,n.renderIndex=e):n.index=this._renderRows[e].dataIndex}}},{key:"_getCellTemplates",value:function(t){var e=this;return t&&t.columns?Array.from(t.columns,(function(i){var n=e._columnDefsByName.get(i);if(!n)throw _w(i);return t.extractCellTemplate(n)})):[]}},{key:"_applyNativeTableSections",value:function(){for(var t=this._document.createDocumentFragment(),e=0,i=[{tag:"thead",outlet:this._headerRowOutlet},{tag:"tbody",outlet:this._rowOutlet},{tag:"tfoot",outlet:this._footerRowOutlet}];e<i.length;e++){var n=i[e],a=this._document.createElement(n.tag);a.setAttribute("role","rowgroup"),a.appendChild(n.outlet.elementRef.nativeElement),t.appendChild(a)}this._elementRef.nativeElement.appendChild(t)}},{key:"_forceRenderDataRows",value:function(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows(),this.updateStickyColumnStyles()}},{key:"_checkStickyStates",value:function(){var t=function(t,e){return t||e.hasStickyChanged()};this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&this.updateStickyColumnStyles()}},{key:"_setupStickyStyler",value:function(){var t=this;this._stickyStyler=new bw(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._platform.isBrowser),(this._dir?this._dir.change:Be()).pipe(Dl(this._onDestroy)).subscribe((function(e){t._stickyStyler.direction=e,t.updateStickyColumnStyles()}))}},{key:"_getOwnDefs",value:function(t){var e=this;return t.filter((function(t){return!t._table||t._table===e}))}},{key:"trackBy",get:function(){return this._trackByFn},set:function(t){Object(a.jb)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received ".concat(JSON.stringify(t),".")),this._trackByFn=t}},{key:"dataSource",get:function(){return this._dataSource},set:function(t){this._dataSource!==t&&this._switchDataSource(t)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(t){this._multiTemplateDataRows=fi(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&this._forceRenderDataRows()}}]),t}()).\u0275fac=function(t){return new(t||yw)(a.Dc(a.A),a.Dc(a.j),a.Dc(a.r),a.Tc("role"),a.Dc(xn,8),a.Dc(ye.e),a.Dc(Ii))},yw.\u0275cmp=a.xc({type:yw,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){var n;1&t&&(a.vc(i,iw,!0),a.vc(i,hw,!0),a.vc(i,lw,!0),a.vc(i,dw,!0)),2&t&&(a.md(n=a.Xc())&&(e._contentColumnDefs=n),a.md(n=a.Xc())&&(e._contentRowDefs=n),a.md(n=a.Xc())&&(e._contentHeaderRowDefs=n),a.md(n=a.Xc())&&(e._contentFooterRowDefs=n))},viewQuery:function(t,e){var i;1&t&&(a.xd(xw,!0),a.xd(Sw,!0),a.xd(Iw,!0)),2&t&&(a.md(i=a.Xc())&&(e._rowOutlet=i.first),a.md(i=a.Xc())&&(e._headerRowOutlet=i.first),a.md(i=a.Xc())&&(e._footerRowOutlet=i.first))},hostAttrs:[1,"cdk-table"],inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows"},exportAs:["cdkTable"],features:[a.oc([{provide:Xk,useExisting:yw}])],ngContentSelectors:Tk,decls:4,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(a.fd(Ak),a.ed(0),a.Fc(1,0),a.Fc(2,1),a.Fc(3,2))},directives:[Sw,xw,Iw],encapsulation:2}),yw);function Dw(t,e){return t.concat(Array.from(e))}var Ew,Aw,Tw=((Aw=function(){function t(e,i){_classCallCheck(this,t),this._table=e,this._options=i,this.justify="start",this._options=i||{}}return _createClass(t,[{key:"ngOnInit",value:function(){if(this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||function(t,e){return t[e]}),!this._table)throw Error("Text column could not find a parent table for registration.");this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef)}},{key:"ngOnDestroy",value:function(){this._table&&this._table.removeColumnDef(this.columnDef)}},{key:"_createDefaultHeaderText",value:function(){var t=this.name;if(Object(a.jb)()&&!t)throw Error("Table text column must have a name.");return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(t):t[0].toUpperCase()+t.slice(1)}},{key:"_syncColumnDefName",value:function(){this.columnDef&&(this.columnDef.name=this.name)}},{key:"name",get:function(){return this._name},set:function(t){this._name=t,this._syncColumnDefName()}}]),t}()).\u0275fac=function(t){return new(t||Aw)(a.Dc(Ow,8),a.Dc(Yk,8))},Aw.\u0275cmp=a.xc({type:Aw,selectors:[["cdk-text-column"]],viewQuery:function(t,e){var i;1&t&&(a.xd(iw,!0),a.xd(Zk,!0),a.xd(Qk,!0)),2&t&&(a.md(i=a.Xc())&&(e.columnDef=i.first),a.md(i=a.Xc())&&(e.cell=i.first),a.md(i=a.Xc())&&(e.headerCell=i.first))},inputs:{justify:"justify",name:"name",headerText:"headerText",dataAccessor:"dataAccessor"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(t,e){1&t&&(a.Hc(0,0),a.zd(1,Pk,2,3,"th",1),a.zd(2,Rk,2,3,"td",2),a.Gc())},directives:[iw,Qk,Zk,aw,ow],encapsulation:2}),Aw),Pw=((Ew=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Ew}),Ew.\u0275inj=a.Ac({factory:function(t){return new(t||Ew)}}),Ew),Rw=[[["caption"]]],Mw=["caption"];function Lw(t,e){if(1&t&&(a.Jc(0,"th",3),a.Bd(1),a.Ic()),2&t){var i=a.ad();a.yd("text-align",i.justify),a.pc(1),a.Dd(" ",i.headerText," ")}}function jw(t,e){if(1&t&&(a.Jc(0,"td",4),a.Bd(1),a.Ic()),2&t){var i=e.$implicit,n=a.ad();a.yd("text-align",n.justify),a.pc(1),a.Dd(" ",n.dataAccessor(i,n.name)," ")}}var Fw,Nw,zw,Bw,Jw,Vw,Hw,Uw,Gw,Ww,qw,$w,Kw,Xw,Yw,Zw,Qw=((Fw=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments)).stickyCssClass="mat-table-sticky",t}return i}(Ow)).\u0275fac=function(t){return tC(t||Fw)},Fw.\u0275cmp=a.xc({type:Fw,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],exportAs:["matTable"],features:[a.oc([{provide:Ow,useExisting:Fw},{provide:Xk,useExisting:Fw}]),a.mc],ngContentSelectors:Mw,decls:4,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(a.fd(Rw),a.ed(0),a.Fc(1,0),a.Fc(2,1),a.Fc(3,2))},directives:[Sw,xw,Iw],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type,[dir=rtl] mat-header-cell:first-of-type,[dir=rtl] mat-footer-cell:first-of-type{padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type,[dir=rtl] mat-header-cell:last-of-type,[dir=rtl] mat-footer-cell:last-of-type{padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type,[dir=rtl] td.mat-cell:first-of-type,[dir=rtl] td.mat-footer-cell:first-of-type{padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type,[dir=rtl] td.mat-cell:last-of-type,[dir=rtl] td.mat-footer-cell:last-of-type{padding-right:0;padding-left:24px}\n'],encapsulation:2}),Fw),tC=a.Lc(Qw),eC=((Nw=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(Zk)).\u0275fac=function(t){return iC(t||Nw)},Nw.\u0275dir=a.yc({type:Nw,selectors:[["","matCellDef",""]],features:[a.oc([{provide:Zk,useExisting:Nw}]),a.mc]}),Nw),iC=a.Lc(eC),nC=((zw=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(Qk)).\u0275fac=function(t){return aC(t||zw)},zw.\u0275dir=a.yc({type:zw,selectors:[["","matHeaderCellDef",""]],features:[a.oc([{provide:Qk,useExisting:zw}]),a.mc]}),zw),aC=a.Lc(nC),rC=((Bw=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(tw)).\u0275fac=function(t){return oC(t||Bw)},Bw.\u0275dir=a.yc({type:Bw,selectors:[["","matFooterCellDef",""]],features:[a.oc([{provide:tw,useExisting:Bw}]),a.mc]}),Bw),oC=a.Lc(rC),sC=((Jw=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(iw)).\u0275fac=function(t){return cC(t||Jw)},Jw.\u0275dir=a.yc({type:Jw,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[a.oc([{provide:iw,useExisting:Jw},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Jw}]),a.mc]}),Jw),cC=a.Lc(sC),lC=((Gw=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),a=e.call(this,t,n),n.nativeElement.classList.add("mat-column-".concat(t.cssClassFriendlyName)),a}return i}(aw)).\u0275fac=function(t){return new(t||Gw)(a.Dc(iw),a.Dc(a.r))},Gw.\u0275dir=a.yc({type:Gw,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[a.mc]}),Gw),uC=((Uw=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),a=e.call(this,t,n),n.nativeElement.classList.add("mat-column-".concat(t.cssClassFriendlyName)),a}return i}(rw)).\u0275fac=function(t){return new(t||Uw)(a.Dc(iw),a.Dc(a.r))},Uw.\u0275dir=a.yc({type:Uw,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[a.mc]}),Uw),dC=((Hw=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),a=e.call(this,t,n),n.nativeElement.classList.add("mat-column-".concat(t.cssClassFriendlyName)),a}return i}(ow)).\u0275fac=function(t){return new(t||Hw)(a.Dc(iw),a.Dc(a.r))},Hw.\u0275dir=a.yc({type:Hw,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[a.mc]}),Hw),hC=((Vw=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(lw)).\u0275fac=function(t){return pC(t||Vw)},Vw.\u0275dir=a.yc({type:Vw,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[a.oc([{provide:lw,useExisting:Vw}]),a.mc]}),Vw),pC=a.Lc(hC),fC=((Ww=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(dw)).\u0275fac=function(t){return mC(t||Ww)},Ww.\u0275dir=a.yc({type:Ww,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[a.oc([{provide:dw,useExisting:Ww}]),a.mc]}),Ww),mC=a.Lc(fC),gC=((qw=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(hw)).\u0275fac=function(t){return vC(t||qw)},qw.\u0275dir=a.yc({type:qw,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[a.oc([{provide:hw,useExisting:qw}]),a.mc]}),qw),vC=a.Lc(gC),bC=(($w=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(fw)).\u0275fac=function(t){return _C(t||$w)},$w.\u0275cmp=a.xc({type:$w,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[a.oc([{provide:fw,useExisting:$w}]),a.mc],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&a.Fc(0,0)},directives:[pw],encapsulation:2}),$w),_C=a.Lc(bC),yC=((Kw=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(mw)).\u0275fac=function(t){return kC(t||Kw)},Kw.\u0275cmp=a.xc({type:Kw,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[a.oc([{provide:mw,useExisting:Kw}]),a.mc],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&a.Fc(0,0)},directives:[pw],encapsulation:2}),Kw),kC=a.Lc(yC),wC=((Xw=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(gw)).\u0275fac=function(t){return CC(t||Xw)},Xw.\u0275cmp=a.xc({type:Xw,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[a.oc([{provide:gw,useExisting:Xw}]),a.mc],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&a.Fc(0,0)},directives:[pw],encapsulation:2}),Xw),CC=a.Lc(wC),xC=((Yw=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(Tw)).\u0275fac=function(t){return SC(t||Yw)},Yw.\u0275cmp=a.xc({type:Yw,selectors:[["mat-text-column"]],features:[a.mc],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(t,e){1&t&&(a.Hc(0,0),a.zd(1,Lw,2,3,"th",1),a.zd(2,jw,2,3,"td",2),a.Gc())},directives:[sC,nC,eC,lC,dC],encapsulation:2}),Yw),SC=a.Lc(xC),IC=((Zw=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:Zw}),Zw.\u0275inj=a.Ac({factory:function(t){return new(t||Zw)},imports:[[Pw,Jn]]}),Zw),OC=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return _classCallCheck(this,i),(t=e.call(this))._renderData=new Ek([]),t._filter=new Ek(""),t._internalPageChanges=new Le.a,t._renderChangesSubscription=je.a.EMPTY,t.sortingDataAccessor=function(t,e){var i=t[e];if(gi(i)){var n=Number(i);return n<9007199254740991?n:i}return i},t.sortData=function(e,i){var n=i.active,a=i.direction;return n&&""!=a?e.sort((function(e,i){var r=t.sortingDataAccessor(e,n),o=t.sortingDataAccessor(i,n),s=0;return null!=r&&null!=o?r>o?s=1:r<o&&(s=-1):null!=r?s=1:null!=o&&(s=-1),s*("asc"==a?1:-1)})):e},t.filterPredicate=function(t,e){var i=Object.keys(t).reduce((function(e,i){return e+t[i]+"\u25ec"}),"").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},t._data=new Ek(n),t._updateChangeSubscription(),t}return _createClass(i,[{key:"_updateChangeSubscription",value:function(){var t=this,e=this._sort?Object(rl.a)(this._sort.sortChange,this._sort.initialized):Be(null),i=this._paginator?Object(rl.a)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Be(null),n=Wg([this._data,this._filter]).pipe(Object(ri.a)((function(e){var i=_slicedToArray(e,1)[0];return t._filterData(i)}))),a=Wg([n,e]).pipe(Object(ri.a)((function(e){var i=_slicedToArray(e,1)[0];return t._orderData(i)}))),r=Wg([a,i]).pipe(Object(ri.a)((function(e){var i=_slicedToArray(e,1)[0];return t._pageData(i)})));this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=r.subscribe((function(e){return t._renderData.next(e)}))}},{key:"_filterData",value:function(t){var e=this;return this.filteredData=this.filter?t.filter((function(t){return e.filterPredicate(t,e.filter)})):t,this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}},{key:"_orderData",value:function(t){return this.sort?this.sortData(t.slice(),this.sort):t}},{key:"_pageData",value:function(t){if(!this.paginator)return t;var e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}},{key:"_updatePaginator",value:function(t){var e=this;Promise.resolve().then((function(){var i=e.paginator;if(i&&(i.length=t,i.pageIndex>0)){var n=Math.ceil(i.length/i.pageSize)-1||0,a=Math.min(i.pageIndex,n);a!==i.pageIndex&&(i.pageIndex=a,e._internalPageChanges.next())}}))}},{key:"connect",value:function(){return this._renderData}},{key:"disconnect",value:function(){}},{key:"data",get:function(){return this._data.value},set:function(t){this._data.next(t)}},{key:"filter",get:function(){return this._filter.value},set:function(t){this._filter.next(t)}},{key:"sort",get:function(){return this._sort},set:function(t){this._sort=t,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(t){this._paginator=t,this._updateChangeSubscription()}}]),i}(function(){return function t(){_classCallCheck(this,t)}}());function DC(t){var e=t.subscriber,i=t.counter,n=t.period;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function EC(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function AC(t,e){var i=e?"":"none";EC(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function TC(t){var e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function PC(t,e){return t.getPropertyValue(e).split(",").map((function(t){return t.trim()}))}function RC(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function MC(t,e,i){var n=t.top,a=t.bottom,r=t.left,o=t.right;return i>=n&&i<=a&&e>=r&&e<=o}function LC(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function jC(t,e,i,n){var a=t.top,r=t.right,o=t.bottom,s=t.left,c=t.width*e,l=t.height*e;return n>a-l&&n<o+l&&i>s-c&&i<r+c}var FC=function(){function t(e,i){_classCallCheck(this,t),this._document=e,this._viewportRuler=i,this.positions=new Map}return _createClass(t,[{key:"clear",value:function(){this.positions.clear()}},{key:"cache",value:function(t){var e=this;this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),t.forEach((function(t){e.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:RC(t)})}))}},{key:"handleScroll",value:function(t){var e=t.target,i=this.positions.get(e);if(!i)return null;var n,a,r=e===this._document?e.documentElement:e,o=i.scrollPosition;if(e===this._document){var s=this._viewportRuler.getViewportScrollPosition();n=s.top,a=s.left}else n=e.scrollTop,a=e.scrollLeft;var c=o.top-n,l=o.left-a;return this.positions.forEach((function(t,i){t.clientRect&&e!==i&&r.contains(i)&&LC(t.clientRect,c,l)})),o.top=n,o.left=a,{top:c,left:l}}}]),t}(),NC=Ai({passive:!0}),zC=Ai({passive:!1}),BC=function(){function t(e,i,n,a,r,o){var s=this;_classCallCheck(this,t),this._config=i,this._document=n,this._ngZone=a,this._viewportRuler=r,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new Le.a,this._pointerMoveSubscription=je.a.EMPTY,this._pointerUpSubscription=je.a.EMPTY,this._scrollSubscription=je.a.EMPTY,this._resizeSubscription=je.a.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new Le.a,this.started=new Le.a,this.released=new Le.a,this.ended=new Le.a,this.entered=new Le.a,this.exited=new Le.a,this.dropped=new Le.a,this.moved=this._moveEvents.asObservable(),this._pointerDown=function(t){if(s.beforeStarted.next(),s._handles.length){var e=s._handles.find((function(e){var i=t.target;return!!i&&(i===e||e.contains(i))}));!e||s._disabledHandles.has(e)||s.disabled||s._initializeDragSequence(e,t)}else s.disabled||s._initializeDragSequence(s._rootElement,t)},this._pointerMove=function(t){t.preventDefault();var e=s._getPointerPositionOnPage(t);if(s._hasStartedDragging){s._boundaryElement&&(s._previewRect&&(s._previewRect.width||s._previewRect.height)||(s._previewRect=(s._preview||s._rootElement).getBoundingClientRect()));var i=s._getConstrainedPointerPosition(e);if(s._hasMoved=!0,s._updatePointerDirectionDelta(i),s._dropContainer)s._updateActiveDropContainer(i);else{var n=s._activeTransform;n.x=i.x-s._pickupPositionOnPage.x+s._passiveTransform.x,n.y=i.y-s._pickupPositionOnPage.y+s._passiveTransform.y,s._applyRootElementTransform(n.x,n.y),"undefined"!=typeof SVGElement&&s._rootElement instanceof SVGElement&&s._rootElement.setAttribute("transform","translate(".concat(n.x," ").concat(n.y,")"))}s._moveEvents.observers.length&&s._ngZone.run((function(){s._moveEvents.next({source:s,pointerPosition:i,event:t,distance:s._getDragDistance(i),delta:s._pointerDirectionDelta})}))}else if(Math.abs(e.x-s._pickupPositionOnPage.x)+Math.abs(e.y-s._pickupPositionOnPage.y)>=s._config.dragStartThreshold){if(!(Date.now()>=s._dragStartTime+s._getDragStartDelay(t)))return void s._endDragSequence(t);s._dropContainer&&s._dropContainer.isDragging()||(s._hasStartedDragging=!0,s._ngZone.run((function(){return s._startDragSequence(t)})))}},this._pointerUp=function(t){s._endDragSequence(t)},this.withRootElement(e),this._parentPositions=new FC(n,r),o.registerDragItem(this)}return _createClass(t,[{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(t){return this._handles=t.map((function(t){return _i(t)})),this._handles.forEach((function(t){return AC(t,!1)})),this._toggleNativeDragInteractions(),this}},{key:"withPreviewTemplate",value:function(t){return this._previewTemplate=t,this}},{key:"withPlaceholderTemplate",value:function(t){return this._placeholderTemplate=t,this}},{key:"withRootElement",value:function(t){var e=this,i=_i(t);return i!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular((function(){i.addEventListener("mousedown",e._pointerDown,zC),i.addEventListener("touchstart",e._pointerDown,NC)})),this._initialTransform=void 0,this._rootElement=i),this}},{key:"withBoundaryElement",value:function(t){var e=this;return this._boundaryElement=t?_i(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe((function(){return e._containInsideBoundaryOnResize()}))),this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&UC(this._rootElement),UC(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(t){this._handles.indexOf(t)>-1&&this._disabledHandles.add(t)}},{key:"enableHandle",value:function(t){this._disabledHandles.delete(t)}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"_withDropContainer",value:function(t){this._dropContainer=t}},{key:"getFreeDragPosition",value:function(){var t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}},{key:"setFreeDragPosition",value:function(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}},{key:"_sortFromLastPointerPosition",value:function(){var t=this._pointerPositionAtLastDirectionChange;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t))}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&UC(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&UC(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(t){var e=this;this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then((function(){e._cleanupDragArtifacts(t),e._cleanupCachedDimensions(),e._dragDropRegistry.stopDragging(e)}))):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run((function(){e.ended.next({source:e,distance:e._getDragDistance(e._getPointerPositionOnPage(t))})})),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}},{key:"_startDragSequence",value:function(t){this.started.next({source:this}),GC(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var e,i=this._dropContainer;if(i){var n=this._rootElement,a=n.parentNode,r=this._preview=this._createPreviewElement(),o=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment("");a.insertBefore(s,n),n.style.display="none",this._document.body.appendChild(a.replaceChild(o,n)),(e=this._document,e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body).appendChild(r),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(t,e){var i=this;e.stopPropagation();var n=this.isDragging(),a=GC(e),r=!a&&0!==e.button,o=this._rootElement,s=!a&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),!(n||r||s)){this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor,o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe((function(t){i._updateOnScroll(t)})),this._boundaryElement&&(this._boundaryRect=RC(this._boundaryElement));var c=this._previewTemplate;this._pickupPositionInElement=c&&c.template&&!c.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);var l=this._pickupPositionOnPage=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}}},{key:"_cleanupDragArtifacts",value:function(t){var e=this;this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run((function(){var i=e._dropContainer,n=i.getItemIndex(e),a=e._getPointerPositionOnPage(t),r=e._getDragDistance(e._getPointerPositionOnPage(t)),o=i._isOverContainer(a.x,a.y);e.ended.next({source:e,distance:r}),e.dropped.next({item:e,currentIndex:n,previousIndex:e._initialIndex,container:i,previousContainer:e._initialContainer,isPointerOverContainer:o,distance:r}),i.drop(e,n,e._initialContainer,o,r,e._initialIndex),e._dropContainer=e._initialContainer}))}},{key:"_updateActiveDropContainer",value:function(t){var e=this,i=t.x,n=t.y,a=this._initialContainer._getSiblingContainerFromPosition(this,i,n);!a&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,n)&&(a=this._initialContainer),a&&a!==this._dropContainer&&this._ngZone.run((function(){e.exited.next({item:e,container:e._dropContainer}),e._dropContainer.exit(e),e._dropContainer=a,e._dropContainer.enter(e,i,n,a===e._initialContainer&&a.sortingDisabled?e._initialIndex:void 0),e.entered.next({item:e,container:a,currentIndex:a.getItemIndex(e)})})),this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,i,n,this._pointerDirectionDelta),this._preview.style.transform=JC(i-this._pickupPositionInElement.x,n-this._pickupPositionInElement.y)}},{key:"_createPreviewElement",value:function(){var t,e=this._previewTemplate,i=this.previewClass,n=e?e.template:null;if(n&&e){var a=e.matchSize?this._rootElement.getBoundingClientRect():null,r=e.viewContainer.createEmbeddedView(n,e.context);r.detectChanges(),t=WC(r,this._document),this._previewRef=r,e.matchSize?qC(t,a):t.style.transform=JC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var o=this._rootElement;qC(t=VC(o),o.getBoundingClientRect())}return EC(t.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"".concat(this._config.zIndex||1e3)}),AC(t,!1),t.classList.add("cdk-drag-preview"),t.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach((function(e){return t.classList.add(e)})):t.classList.add(i)),t}},{key:"_animatePreviewToPlaceholder",value:function(){var t=this;if(!this._hasMoved)return Promise.resolve();var e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=JC(e.left,e.top);var i=function(t){var e=getComputedStyle(t),i=PC(e,"transition-property"),n=i.find((function(t){return"transform"===t||"all"===t}));if(!n)return 0;var a=i.indexOf(n),r=PC(e,"transition-duration"),o=PC(e,"transition-delay");return TC(r[a])+TC(o[a])}(this._preview);return 0===i?Promise.resolve():this._ngZone.runOutsideAngular((function(){return new Promise((function(e){var n=function i(n){(!n||n.target===t._preview&&"transform"===n.propertyName)&&(t._preview.removeEventListener("transitionend",i),e(),clearTimeout(a))},a=setTimeout(n,1.5*i);t._preview.addEventListener("transitionend",n)}))}))}},{key:"_createPlaceholderElement",value:function(){var t,e=this._placeholderTemplate,i=e?e.template:null;return i?(this._placeholderRef=e.viewContainer.createEmbeddedView(i,e.context),this._placeholderRef.detectChanges(),t=WC(this._placeholderRef,this._document)):t=VC(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}},{key:"_getPointerPositionInElement",value:function(t,e){var i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,a=n?n.getBoundingClientRect():i,r=GC(e)?e.targetTouches[0]:e,o=this._getViewportScrollPosition();return{x:a.left-i.left+(r.pageX-a.left-o.left),y:a.top-i.top+(r.pageY-a.top-o.top)}}},{key:"_getPointerPositionOnPage",value:function(t){var e=GC(t)?t.touches[0]||t.changedTouches[0]:t,i=this._getViewportScrollPosition();return{x:e.pageX-i.left,y:e.pageY-i.top}}},{key:"_getConstrainedPointerPosition",value:function(t){var e=this.constrainPosition?this.constrainPosition(t,this):t,i=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===i?e.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==i||(e.x=this._pickupPositionOnPage.x),this._boundaryRect){var n=this._pickupPositionInElement,a=n.x,r=n.y,o=this._boundaryRect,s=this._previewRect,c=o.top+r,l=o.bottom-(s.height-r);e.x=HC(e.x,o.left+a,o.right-(s.width-a)),e.y=HC(e.y,c,l)}return e}},{key:"_updatePointerDirectionDelta",value:function(t){var e=t.x,i=t.y,n=this._pointerDirectionDelta,a=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-a.x),o=Math.abs(i-a.y);return r>this._config.pointerDirectionChangeThreshold&&(n.x=e>a.x?1:-1,a.x=e),o>this._config.pointerDirectionChangeThreshold&&(n.y=i>a.y?1:-1,a.y=i),n}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,AC(this._rootElement,t))}}},{key:"_removeRootElementListeners",value:function(t){t.removeEventListener("mousedown",this._pointerDown,zC),t.removeEventListener("touchstart",this._pointerDown,NC)}},{key:"_applyRootElementTransform",value:function(t,e){var i=JC(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?i+" "+this._initialTransform:i}},{key:"_getDragDistance",value:function(t){var e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var t=this._passiveTransform,e=t.x,i=t.y;if(!(0===e&&0===i||this.isDragging())&&this._boundaryElement){var n=this._boundaryElement.getBoundingClientRect(),a=this._rootElement.getBoundingClientRect();if(!(0===n.width&&0===n.height||0===a.width&&0===a.height)){var r=n.left-a.left,o=a.right-n.right,s=n.top-a.top,c=a.bottom-n.bottom;n.width>a.width?(r>0&&(e+=r),o>0&&(e-=o)):e=0,n.height>a.height?(s>0&&(i+=s),c>0&&(i-=c)):i=0,e===this._passiveTransform.x&&i===this._passiveTransform.y||this.setFreeDragPosition({y:i,x:e})}}}},{key:"_getDragStartDelay",value:function(t){var e=this.dragStartDelay;return"number"==typeof e?e:GC(t)?e.touch:e?e.mouse:0}},{key:"_updateOnScroll",value:function(t){var e=this._parentPositions.handleScroll(t);this._boundaryRect&&e&&LC(this._boundaryRect,e.top,e.left)}},{key:"_getViewportScrollPosition",value:function(){var t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var e=fi(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())}}]),t}();function JC(t,e){return"translate3d(".concat(Math.round(t),"px, ").concat(Math.round(e),"px, 0)")}function VC(t){var e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.querySelectorAll("canvas");e.removeAttribute("id");for(var a=0;a<i.length;a++)i[a].removeAttribute("id");if(n.length)for(var r=e.querySelectorAll("canvas"),o=0;o<n.length;o++){var s=r[o].getContext("2d");s&&s.drawImage(n[o],0,0)}return e}function HC(t,e,i){return Math.max(e,Math.min(i,t))}function UC(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function GC(t){return"t"===t.type[0]}function WC(t,e){var i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];var n=e.createElement("div");return i.forEach((function(t){return n.appendChild(t)})),n}function qC(t,e){t.style.width="".concat(e.width,"px"),t.style.height="".concat(e.height,"px"),t.style.transform=JC(e.left,e.top)}function $C(t,e,i){var n=KC(e,t.length-1),a=KC(i,t.length-1);if(n!==a){for(var r=t[n],o=a<n?-1:1,s=n;s!==a;s+=o)t[s]=t[s+o];t[a]=r}}function KC(t,e){return Math.max(0,Math.min(e,t))}var XC=function(){function t(e,i,n,a,r){var o=this;_classCallCheck(this,t),this._dragDropRegistry=i,this._ngZone=a,this._viewportRuler=r,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.enterPredicate=function(){return!0},this.beforeStarted=new Le.a,this.entered=new Le.a,this.exited=new Le.a,this.dropped=new Le.a,this.sorted=new Le.a,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0},this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=je.a.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Le.a,this._cachedShadowRoot=null,this._startScrollInterval=function(){o._stopScrolling(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ye;return(!xl(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Ye),new si.a((function(i){return i.add(e.schedule(DC,t,{subscriber:i,counter:0,period:t})),i}))}(0,cl).pipe(Dl(o._stopScrollTimers)).subscribe((function(){var t=o._scrollNode;1===o._verticalScrollDirection?ZC(t,-2):2===o._verticalScrollDirection&&ZC(t,2),1===o._horizontalScrollDirection?QC(t,-2):2===o._horizontalScrollDirection&&QC(t,2)}))},this.element=_i(e),this._document=n,this.withScrollableParents([this.element]),i.registerDropContainer(this),this._parentPositions=new FC(n,r)}return _createClass(t,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){var t=this,e=_i(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach((function(e){return e._startReceiving(t)})),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"enter",value:function(t,e,i,n){var a;this.start(),null==n?-1===(a=this.sortingDisabled?this._draggables.indexOf(t):-1)&&(a=this._getItemIndexFromPointerPosition(t,e,i)):a=n;var r=this._activeDraggables,o=r.indexOf(t),s=t.getPlaceholderElement(),c=r[a];if(c===t&&(c=r[a+1]),o>-1&&r.splice(o,1),c&&!this._dragDropRegistry.isDragging(c)){var l=c.getRootElement();l.parentElement.insertBefore(s,l),r.splice(a,0,t)}else{var u=_i(this.element);this._shouldEnterAsFirstChild(e,i)?(u.insertBefore(s,r[0].getRootElement()),r.unshift(t)):(u.appendChild(s),r.push(t))}s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}},{key:"exit",value:function(t){this._reset(),this.exited.next({item:t,container:this})}},{key:"drop",value:function(t,e,i,n,a,r){this._reset(),null==r&&(r=i.getItemIndex(t)),this.dropped.next({item:t,currentIndex:e,previousIndex:r,container:this,previousContainer:i,isPointerOverContainer:n,distance:a})}},{key:"withItems",value:function(t){var e=this,i=this._draggables;return this._draggables=t,t.forEach((function(t){return t._withDropContainer(e)})),this.isDragging()&&(i.filter((function(t){return t.isDragging()})).every((function(e){return-1===t.indexOf(e)}))?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"connectedTo",value:function(t){return this._siblings=t.slice(),this}},{key:"withOrientation",value:function(t){return this._orientation=t,this}},{key:"withScrollableParents",value:function(t){var e=_i(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e].concat(_toConsumableArray(t)):t.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(t){return this._isDragging?YC("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,(function(e){return e.drag===t})):this._draggables.indexOf(t)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(t,e,i,n){if(!this.sortingDisabled&&jC(this._clientRect,.05,e,i)){var a=this._itemPositions,r=this._getItemIndexFromPointerPosition(t,e,i,n);if(!(-1===r&&a.length>0)){var o="horizontal"===this._orientation,s=YC(a,(function(e){return e.drag===t})),c=a[r],l=a[s].clientRect,u=c.clientRect,d=s>r?1:-1;this._previousSwap.drag=c.drag,this._previousSwap.delta=o?n.x:n.y;var h=this._getItemOffsetPx(l,u,d),p=this._getSiblingOffsetPx(s,a,d),f=a.slice();$C(a,s,r),this.sorted.next({previousIndex:s,currentIndex:r,container:this,item:t}),a.forEach((function(e,i){if(f[i]!==e){var n=e.drag===t,a=n?h:p,r=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=a,o?(r.style.transform="translate3d(".concat(Math.round(e.offset),"px, 0, 0)"),LC(e.clientRect,0,a)):(r.style.transform="translate3d(0, ".concat(Math.round(e.offset),"px, 0)"),LC(e.clientRect,a,0))}}))}}}},{key:"_startScrollingIfNecessary",value:function(t,e){var i=this;if(!this.autoScrollDisabled){var n,a=0,r=0;if(this._parentPositions.positions.forEach((function(o,s){var c;s!==i._document&&o.clientRect&&!n&&jC(o.clientRect,.05,t,e)&&(c=_slicedToArray(function(t,e,i,n){var a=tx(e,n),r=ex(e,i),o=0,s=0;if(a){var c=t.scrollTop;1===a?c>0&&(o=1):t.scrollHeight-c>t.clientHeight&&(o=2)}if(r){var l=t.scrollLeft;1===r?l>0&&(s=1):t.scrollWidth-l>t.clientWidth&&(s=2)}return[o,s]}(s,o.clientRect,t,e),2),a=c[0],r=c[1],(a||r)&&(n=s))})),!a&&!r){var o=this._viewportRuler.getViewportSize(),s=o.width,c=o.height,l={width:s,height:c,top:0,right:s,bottom:c,left:0};a=tx(l,e),r=ex(l,t),n=window}!n||a===this._verticalScrollDirection&&r===this._horizontalScrollDirection&&n===this._scrollNode||(this._verticalScrollDirection=a,this._horizontalScrollDirection=r,this._scrollNode=n,(a||r)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_cacheParentPositions",value:function(){var t=_i(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}},{key:"_cacheItemPositions",value:function(){var t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map((function(t){var e=t.getVisibleElement();return{drag:t,offset:0,clientRect:RC(e)}})).sort((function(e,i){return t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top}))}},{key:"_reset",value:function(){var t=this;this._isDragging=!1;var e=_i(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach((function(t){var e=t.getRootElement();e&&(e.style.transform="")})),this._siblings.forEach((function(e){return e._stopReceiving(t)})),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(t,e,i){var n="horizontal"===this._orientation,a=e[t].clientRect,r=e[t+-1*i],o=a[n?"width":"height"]*i;if(r){var s=n?"left":"top",c=n?"right":"bottom";-1===i?o-=r.clientRect[s]-a[c]:o+=a[s]-r.clientRect[c]}return o}},{key:"_getItemOffsetPx",value:function(t,e,i){var n="horizontal"===this._orientation,a=n?e.left-t.left:e.top-t.top;return-1===i&&(a+=n?e.width-t.width:e.height-t.height),a}},{key:"_shouldEnterAsFirstChild",value:function(t,e){if(!this._activeDraggables.length)return!1;var i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){var a=i[i.length-1].clientRect;return n?t>=a.right:e>=a.bottom}var r=i[0].clientRect;return n?t<=r.left:e<=r.top}},{key:"_getItemIndexFromPointerPosition",value:function(t,e,i,n){var a=this,r="horizontal"===this._orientation;return YC(this._itemPositions,(function(o,s,c){var l=o.drag,u=o.clientRect;if(l===t)return c.length<2;if(n){var d=r?n.x:n.y;if(l===a._previousSwap.drag&&d===a._previousSwap.delta)return!1}return r?e>=Math.floor(u.left)&&e<Math.floor(u.right):i>=Math.floor(u.top)&&i<Math.floor(u.bottom)}))}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_isOverContainer",value:function(t,e){return MC(this._clientRect,t,e)}},{key:"_getSiblingContainerFromPosition",value:function(t,e,i){return this._siblings.find((function(n){return n._canReceive(t,e,i)}))}},{key:"_canReceive",value:function(t,e,i){if(!MC(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;var n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;var a=_i(this.element);return n===a||a.contains(n)}},{key:"_startReceiving",value:function(t){var e=this._activeSiblings;e.has(t)||(e.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var t=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe((function(e){if(t.isDragging()){var i=t._parentPositions.handleScroll(e);i&&(t._itemPositions.forEach((function(t){LC(t.clientRect,i.top,i.left)})),t._itemPositions.forEach((function(e){var i=e.drag;t._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})))}else t.isReceiving()&&t._cacheParentPositions()}))}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var t=Pi(_i(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}}]),t}();function YC(t,e){for(var i=0;i<t.length;i++)if(e(t[i],i,t))return i;return-1}function ZC(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function QC(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function tx(t,e){var i=t.top,n=t.bottom,a=.05*t.height;return e>=i-a&&e<=i+a?1:e>=n-a&&e<=n+a?2:0}function ex(t,e){var i=t.left,n=t.right,a=.05*t.width;return e>=i-a&&e<=i+a?1:e>=n-a&&e<=n+a?2:0}var ix,nx,ax,rx,ox,sx,cx=Ai({passive:!1,capture:!0}),lx=((ix=function(){function t(e,i){var n=this;_classCallCheck(this,t),this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new Le.a,this.pointerUp=new Le.a,this.scroll=new Le.a,this._preventDefaultWhileDragging=function(t){n._activeDragInstances.size&&t.preventDefault()},this._document=i}return _createClass(t,[{key:"registerDropContainer",value:function(t){this._dropInstances.has(t)||this._dropInstances.add(t)}},{key:"registerDragItem",value:function(t){var e=this;this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular((function(){e._document.addEventListener("touchmove",e._preventDefaultWhileDragging,cx)}))}},{key:"removeDropContainer",value:function(t){this._dropInstances.delete(t)}},{key:"removeDragItem",value:function(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,cx)}},{key:"startDragging",value:function(t,e){var i=this;if(!this._activeDragInstances.has(t)&&(this._activeDragInstances.add(t),1===this._activeDragInstances.size)){var n=e.type.startsWith("touch"),a=n?"touchend":"mouseup";this._globalListeners.set(n?"touchmove":"mousemove",{handler:function(t){return i.pointerMove.next(t)},options:cx}).set(a,{handler:function(t){return i.pointerUp.next(t)},options:!0}).set("scroll",{handler:function(t){return i.scroll.next(t)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:cx}),this._ngZone.runOutsideAngular((function(){i._globalListeners.forEach((function(t,e){i._document.addEventListener(e,t.handler,t.options)}))}))}}},{key:"stopDragging",value:function(t){this._activeDragInstances.delete(t),0===this._activeDragInstances.size&&this._clearGlobalListeners()}},{key:"isDragging",value:function(t){return this._activeDragInstances.has(t)}},{key:"ngOnDestroy",value:function(){var t=this;this._dragInstances.forEach((function(e){return t.removeDragItem(e)})),this._dropInstances.forEach((function(e){return t.removeDropContainer(e)})),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var t=this;this._globalListeners.forEach((function(e,i){t._document.removeEventListener(i,e.handler,e.options)})),this._globalListeners.clear()}}]),t}()).\u0275fac=function(t){return new(t||ix)(a.Sc(a.I),a.Sc(ye.e))},ix.\u0275prov=Object(a.zc)({factory:function(){return new ix(Object(a.Sc)(a.I),Object(a.Sc)(ye.e))},token:ix,providedIn:"root"}),ix),ux={dragStartThreshold:5,pointerDirectionChangeThreshold:5},dx=((nx=function(){function t(e,i,n,a){_classCallCheck(this,t),this._document=e,this._ngZone=i,this._viewportRuler=n,this._dragDropRegistry=a}return _createClass(t,[{key:"createDrag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ux;return new BC(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(t){return new XC(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),t}()).\u0275fac=function(t){return new(t||nx)(a.Sc(ye.e),a.Sc(a.I),a.Sc(tu),a.Sc(lx))},nx.\u0275prov=Object(a.zc)({factory:function(){return new nx(Object(a.Sc)(ye.e),Object(a.Sc)(a.I),Object(a.Sc)(tu),Object(a.Sc)(lx))},token:nx,providedIn:"root"}),nx),hx=new a.x("CDK_DRAG_PARENT"),px=((ox=function(){function t(e,i){_classCallCheck(this,t),this.element=e,this._stateChanges=new Le.a,this._disabled=!1,this._parentDrag=i,AC(e.nativeElement,!1)}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=fi(t),this._stateChanges.next(this)}}]),t}()).\u0275fac=function(t){return new(t||ox)(a.Dc(a.r),a.Dc(hx,8))},ox.\u0275dir=a.yc({type:ox,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),ox),fx=((rx=function t(e){_classCallCheck(this,t),this.templateRef=e}).\u0275fac=function(t){return new(t||rx)(a.Dc(a.Y))},rx.\u0275dir=a.yc({type:rx,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"}}),rx),mx=((ax=function(){function t(e){_classCallCheck(this,t),this.templateRef=e,this._matchSize=!1}return _createClass(t,[{key:"matchSize",get:function(){return this._matchSize},set:function(t){this._matchSize=fi(t)}}]),t}()).\u0275fac=function(t){return new(t||ax)(a.Dc(a.Y))},ax.\u0275dir=a.yc({type:ax,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"}}),ax),gx=new a.x("CDK_DRAG_CONFIG"),vx=new a.x("CDK_DROP_LIST"),bx=((sx=function(){function t(e,i,n,r,o,s,c,l,u){var d=this;_classCallCheck(this,t),this.element=e,this.dropContainer=i,this._document=n,this._ngZone=r,this._viewContainerRef=o,this._dir=c,this._changeDetectorRef=u,this._destroyed=new Le.a,this.started=new a.u,this.released=new a.u,this.ended=new a.u,this.entered=new a.u,this.exited=new a.u,this.dropped=new a.u,this.moved=new si.a((function(t){var e=d._dragRef.moved.pipe(Object(ri.a)((function(t){return{source:d,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}}))).subscribe(t);return function(){e.unsubscribe()}})),this._dragRef=l.createDrag(e,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:null==s?void 0:s.zIndex}),this._dragRef.data=this,s&&this._assignDefaults(s),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return _createClass(t,[{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var t=this;this._ngZone.onStable.asObservable().pipe(ui(1),Dl(this._destroyed)).subscribe((function(){t._updateRootElement(),t._handles.changes.pipe(Tn(t._handles),Ge((function(e){var i=e.filter((function(e){return e._parentDrag===t})).map((function(t){return t.element}));t._dragRef.withHandles(i)})),Pl((function(t){return Object(rl.a).apply(void 0,_toConsumableArray(t.map((function(t){return t._stateChanges.pipe(Tn(t))}))))})),Dl(t._destroyed)).subscribe((function(e){var i=t._dragRef,n=e.element.nativeElement;e.disabled?i.disableHandle(n):i.enableHandle(n)})),t.freeDragPosition&&t._dragRef.setFreeDragPosition(t.freeDragPosition)}))}},{key:"ngOnChanges",value:function(t){var e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var t=this.element.nativeElement,e=this.rootElementSelector?_x(t,this.rootElementSelector):t;if(e&&e.nodeType!==this._document.ELEMENT_NODE)throw Error("cdkDrag must be attached to an element node. "+'Currently attached to "'.concat(e.nodeName,'".'));this._dragRef.withRootElement(e||t)}},{key:"_getBoundaryElement",value:function(){var t=this.boundaryElement;if(!t)return null;if("string"==typeof t)return _x(this.element.nativeElement,t);var e=_i(t);if(Object(a.jb)()&&!e.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return e}},{key:"_syncInputs",value:function(t){var e=this;t.beforeStarted.subscribe((function(){if(!t.isDragging()){var i=e._dir,n=e.dragStartDelay,a=e._placeholderTemplate?{template:e._placeholderTemplate.templateRef,context:e._placeholderTemplate.data,viewContainer:e._viewContainerRef}:null,r=e._previewTemplate?{template:e._previewTemplate.templateRef,context:e._previewTemplate.data,matchSize:e._previewTemplate.matchSize,viewContainer:e._viewContainerRef}:null;t.disabled=e.disabled,t.lockAxis=e.lockAxis,t.dragStartDelay="object"==typeof n&&n?n:mi(n),t.constrainPosition=e.constrainPosition,t.previewClass=e.previewClass,t.withBoundaryElement(e._getBoundaryElement()).withPlaceholderTemplate(a).withPreviewTemplate(r),i&&t.withDirection(i.value)}}))}},{key:"_handleEvents",value:function(t){var e=this;t.started.subscribe((function(){e.started.emit({source:e}),e._changeDetectorRef.markForCheck()})),t.released.subscribe((function(){e.released.emit({source:e})})),t.ended.subscribe((function(t){e.ended.emit({source:e,distance:t.distance}),e._changeDetectorRef.markForCheck()})),t.entered.subscribe((function(t){e.entered.emit({container:t.container.data,item:e,currentIndex:t.currentIndex})})),t.exited.subscribe((function(t){e.exited.emit({container:t.container.data,item:e})})),t.dropped.subscribe((function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:e,distance:t.distance})}))}},{key:"_assignDefaults",value:function(t){var e=t.lockAxis,i=t.dragStartDelay,n=t.constrainPosition,a=t.previewClass,r=t.boundaryElement,o=t.draggingDisabled,s=t.rootElementSelector;this.disabled=null!=o&&o,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),a&&(this.previewClass=a),r&&(this.boundaryElement=r),s&&(this.rootElementSelector=s)}},{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(t){this._disabled=fi(t),this._dragRef.disabled=this._disabled}}]),t}()).\u0275fac=function(t){return new(t||sx)(a.Dc(a.r),a.Dc(vx,12),a.Dc(ye.e),a.Dc(a.I),a.Dc(a.cb),a.Dc(gx,8),a.Dc(xn,8),a.Dc(dx),a.Dc(a.j))},sx.\u0275dir=a.yc({type:sx,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){var n;1&t&&(a.vc(i,mx,!0),a.vc(i,fx,!0),a.vc(i,px,!0)),2&t&&(a.md(n=a.Xc())&&(e._previewTemplate=n.first),a.md(n=a.Xc())&&(e._placeholderTemplate=n.first),a.md(n=a.Xc())&&(e._handles=n))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&a.tc("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[a.oc([{provide:hx,useExisting:sx}]),a.nc]}),sx);function _x(t,e){for(var i=t.parentElement;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}var yx,kx,wx,Cx,xx,Sx,Ix=((wx=function(){function t(){_classCallCheck(this,t),this._items=new Set,this._disabled=!1}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._items.clear()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=fi(t)}}]),t}()).\u0275fac=function(t){return new(t||wx)},wx.\u0275dir=a.yc({type:wx,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"]}),wx),Ox=0,Dx=((kx=function(){function t(e,i,n,r,o,s,c){var l=this;_classCallCheck(this,t),this.element=e,this._changeDetectorRef=n,this._dir=r,this._group=o,this._scrollDispatcher=s,this._destroyed=new Le.a,this.connectedTo=[],this.id="cdk-drop-list-".concat(Ox++),this.enterPredicate=function(){return!0},this.dropped=new a.u,this.entered=new a.u,this.exited=new a.u,this.sorted=new a.u,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,c&&this._assignDefaults(c),this._dropListRef.enterPredicate=function(t,e){return l.enterPredicate(t.data,e.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),o&&o._items.add(this)}return _createClass(t,[{key:"addItem",value:function(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort((function(t,e){return t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}))}},{key:"ngOnDestroy",value:function(){var e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"start",value:function(){this._dropListRef.start()}},{key:"drop",value:function(t,e,i,n){this._dropListRef.drop(t._dragRef,e,i._dropListRef,n,{x:0,y:0})}},{key:"enter",value:function(t,e,i){this._dropListRef.enter(t._dragRef,e,i)}},{key:"exit",value:function(t){this._dropListRef.exit(t._dragRef)}},{key:"getItemIndex",value:function(t){return this._dropListRef.getItemIndex(t._dragRef)}},{key:"_setupInputSyncSubscription",value:function(e){var i=this;this._dir&&this._dir.change.pipe(Tn(this._dir.value),Dl(this._destroyed)).subscribe((function(t){return e.withDirection(t)})),e.beforeStarted.subscribe((function(){var n=vi(i.connectedTo).map((function(e){return"string"==typeof e?t._dropLists.find((function(t){return t.id===e})):e}));if(i._group&&i._group._items.forEach((function(t){-1===n.indexOf(t)&&n.push(t)})),!i._scrollableParentsResolved&&i._scrollDispatcher){var a=i._scrollDispatcher.getAncestorScrollContainers(i.element).map((function(t){return t.getElementRef().nativeElement}));i._dropListRef.withScrollableParents(a),i._scrollableParentsResolved=!0}e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.sortingDisabled=fi(i.sortingDisabled),e.autoScrollDisabled=fi(i.autoScrollDisabled),e.connectedTo(n.filter((function(t){return t&&t!==i})).map((function(t){return t._dropListRef}))).withOrientation(i.orientation)}))}},{key:"_handleEvents",value:function(t){var e=this;t.beforeStarted.subscribe((function(){e._syncItemsWithRef(),e._changeDetectorRef.markForCheck()})),t.entered.subscribe((function(t){e.entered.emit({container:e,item:t.item.data,currentIndex:t.currentIndex})})),t.exited.subscribe((function(t){e.exited.emit({container:e,item:t.item.data}),e._changeDetectorRef.markForCheck()})),t.sorted.subscribe((function(t){e.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:e,item:t.item.data})})),t.dropped.subscribe((function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance}),e._changeDetectorRef.markForCheck()}))}},{key:"_assignDefaults",value:function(t){var e=t.lockAxis,i=t.draggingDisabled,n=t.sortingDisabled,a=t.listAutoScrollDisabled,r=t.listOrientation;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=a&&a,this.orientation=r||"vertical",e&&(this.lockAxis=e)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map((function(t){return t._dragRef})))}},{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(t){this._dropListRef.disabled=this._disabled=fi(t)}}]),t}()).\u0275fac=function(t){return new(t||kx)(a.Dc(a.r),a.Dc(dx),a.Dc(a.j),a.Dc(xn,8),a.Dc(Ix,12),a.Dc(Zl),a.Dc(gx,8))},kx.\u0275dir=a.yc({type:kx,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(a.Mc("id",e.id),a.tc("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[a.oc([{provide:Ix,useValue:void 0},{provide:vx,useExisting:kx}])]}),kx._dropLists=[],kx),Ex=((yx=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:yx}),yx.\u0275inj=a.Ac({factory:function(t){return new(t||yx)},providers:[dx],imports:[eu]}),yx),Ax=function(){function t(e,i){_classCallCheck(this,t),this._document=i;var n=this._textarea=this._document.createElement("textarea"),a=n.style;a.opacity="0",a.position="absolute",a.left=a.top="-999em",n.setAttribute("aria-hidden","true"),n.value=e,this._document.body.appendChild(n)}return _createClass(t,[{key:"copy",value:function(){var t=this._textarea,e=!1;try{if(t){var i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(xB){}return e}},{key:"destroy",value:function(){var t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}]),t}(),Tx=((Cx=function(){function t(e){_classCallCheck(this,t),this._document=e}return _createClass(t,[{key:"copy",value:function(t){var e=this.beginCopy(t),i=e.copy();return e.destroy(),i}},{key:"beginCopy",value:function(t){return new Ax(t,this._document)}}]),t}()).\u0275fac=function(t){return new(t||Cx)(a.Sc(ye.e))},Cx.\u0275prov=Object(a.zc)({factory:function(){return new Cx(Object(a.Sc)(ye.e))},token:Cx,providedIn:"root"}),Cx),Px=new a.x("CKD_COPY_TO_CLIPBOARD_CONFIG"),Rx=((Sx=function(){function t(e,i,n){_classCallCheck(this,t),this._clipboard=e,this._ngZone=i,this.text="",this.attempts=1,this.copied=new a.u,this._deprecatedCopied=this.copied,this._pending=new Set,n&&null!=n.attempts&&(this.attempts=n.attempts)}return _createClass(t,[{key:"copy",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attempts;if(e>1){var i=e,n=this._clipboard.beginCopy(this.text);this._pending.add(n);var a=function e(){var a=n.copy();a||!--i||t._destroyed?(t._currentTimeout=null,t._pending.delete(n),n.destroy(),t.copied.emit(a)):t._currentTimeout=t._ngZone?t._ngZone.runOutsideAngular((function(){return setTimeout(e,1)})):setTimeout(e,1)};a()}else this.copied.emit(this._clipboard.copy(this.text))}},{key:"ngOnDestroy",value:function(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach((function(t){return t.destroy()})),this._pending.clear(),this._destroyed=!0}}]),t}()).\u0275fac=function(t){return new(t||Sx)(a.Dc(Tx),a.Dc(a.I),a.Dc(Px,8))},Sx.\u0275dir=a.yc({type:Sx,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&a.Wc("click",(function(){return e.copy()}))},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied",_deprecatedCopied:"copied"}}),Sx),Mx=((xx=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:xx}),xx.\u0275inj=a.Ac({factory:function(t){return new(t||xx)}}),xx);function Lx(t){return tf(t)(this)}si.a.prototype.map=function(t,e){return Object(ri.a)(t,e)(this)},si.a.prototype.catch=Lx,si.a.prototype._catch=Lx,si.a.throw=Fl,si.a.throwError=Fl;var jx={default:{key:"default",background_color:"ghostwhite",alternate_color:"gray",css_label:"default-theme",social_theme:"material-light"},dark:{key:"dark",background_color:"#141414",alternate_color:"#695959",css_label:"dark-theme",social_theme:"material-dark"},light:{key:"light",background_color:"white",css_label:"light-theme",social_theme:"material-light"}},Fx=i("6BPK"),Nx=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}();function zx(t){return function(e){return 0===t?li():e.lift(new Bx(t))}}var Bx=function(){function t(e){if(_classCallCheck(this,t),this.total=e,this.total<0)throw new oi}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Jx(t,this.total))}}]),t}(),Jx=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t)).total=n,a.ring=new Array,a.count=0,a}return _createClass(i,[{key:"_next",value:function(t){var e=this.ring,i=this.total,n=this.count++;e.length<i?e.push(t):e[n%i]=t}},{key:"_complete",value:function(){var t=this.destination,e=this.count;if(e>0)for(var i=this.count>=this.total?this.total:this.count,n=this.ring,a=0;a<i;a++){var r=e++%i;t.next(n[r])}t.complete()}}]),i}(Ve.a);function Vx(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gx;return function(e){return e.lift(new Hx(t))}}var Hx=function(){function t(e){_classCallCheck(this,t),this.errorFactory=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Ux(t,this.errorFactory))}}]),t}(),Ux=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t)).errorFactory=n,a.hasValue=!1,a}return _createClass(i,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),i}(Ve.a);function Gx(){return new Nx}function Wx(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new qx(t))}}var qx=function(){function t(e){_classCallCheck(this,t),this.defaultValue=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new $x(t,this.defaultValue))}}]),t}(),$x=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t)).defaultValue=n,a.isEmpty=!0,a}return _createClass(i,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),i}(Ve.a),Kx=i("SpAZ");function Xx(t,e){var i=arguments.length>=2;return function(n){return n.pipe(t?ii((function(e,i){return t(e,i,n)})):Kx.a,zx(1),i?Wx(e):Vx((function(){return new Nx})))}}function Yx(t,e){var i=arguments.length>=2;return function(n){return n.pipe(t?ii((function(e,i){return t(e,i,n)})):Kx.a,ui(1),i?Wx(e):Vx((function(){return new Nx})))}}var Zx=function(){function t(e,i,n){_classCallCheck(this,t),this.predicate=e,this.thisArg=i,this.source=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Qx(t,this.predicate,this.thisArg,this.source))}}]),t}(),Qx=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this,t)).predicate=n,o.thisArg=a,o.source=r,o.index=0,o.thisArg=a||_assertThisInitialized(o),o}return _createClass(i,[{key:"notifyComplete",value:function(t){this.destination.next(t),this.destination.complete()}},{key:"_next",value:function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(i){return void this.destination.error(i)}e||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),i}(Ve.a);function tS(t,e){var i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new iS(t,e,i))}}var eS,iS=function(){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,t),this.accumulator=e,this.seed=i,this.hasSeed=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new nS(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),nS=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this,t)).accumulator=n,o._seed=a,o.hasSeed=r,o.index=0,o}return _createClass(i,[{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,i=this.index++;try{e=this.accumulator(this.seed,t,i)}catch(n){this.destination.error(n)}this.seed=e,this.destination.next(e)}},{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}}]),i}(Ve.a),aS=i("mCNh"),rS=function t(e,i){_classCallCheck(this,t),this.id=e,this.url=i},oS=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,i),(a=e.call(this,t,n)).navigationTrigger=r,a.restoredState=o,a}return _createClass(i,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(rS),sS=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,t,n)).urlAfterRedirects=a,r}return _createClass(i,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),i}(rS),cS=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,t,n)).reason=a,r}return _createClass(i,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(rS),lS=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a){var r;return _classCallCheck(this,i),(r=e.call(this,t,n)).error=a,r}return _createClass(i,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),i}(rS),uS=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n)).urlAfterRedirects=a,o.state=r,o}return _createClass(i,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(rS),dS=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n)).urlAfterRedirects=a,o.state=r,o}return _createClass(i,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(rS),hS=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r,o){var s;return _classCallCheck(this,i),(s=e.call(this,t,n)).urlAfterRedirects=a,s.state=r,s.shouldActivate=o,s}return _createClass(i,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),i}(rS),pS=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n)).urlAfterRedirects=a,o.state=r,o}return _createClass(i,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(rS),fS=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n)).urlAfterRedirects=a,o.state=r,o}return _createClass(i,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(rS),mS=function(){function t(e){_classCallCheck(this,t),this.route=e}return _createClass(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),gS=function(){function t(e){_classCallCheck(this,t),this.route=e}return _createClass(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),vS=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),bS=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),_S=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),yS=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),kS=function(){function t(e,i,n){_classCallCheck(this,t),this.routerEvent=e,this.position=i,this.anchor=n}return _createClass(t,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),t}(),wS=((eS=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||eS)},eS.\u0275cmp=a.xc({type:eS,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&a.Ec(0,"router-outlet")},directives:function(){return[RO]},encapsulation:2}),eS),CS=function(){function t(e){_classCallCheck(this,t),this.params=e||{}}return _createClass(t,[{key:"has",value:function(t){return this.params.hasOwnProperty(t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function xS(t){return new CS(t)}function SS(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function IS(t,e,i){var n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.length<t.length))return null;for(var a={},r=0;r<n.length;r++){var o=n[r],s=t[r];if(o.startsWith(":"))a[o.substring(1)]=s;else if(o!==s.path)return null}return{consumed:t.slice(0,n.length),posParams:a}}var OS=function t(e,i){_classCallCheck(this,t),this.routes=e,this.module=i};function DS(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=0;i<t.length;i++){var n=t[i];ES(n,AS(e,n))}}function ES(t,e){if(!t)throw new Error("\n Invalid configuration of route '".concat(e,"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n "));if(Array.isArray(t))throw new Error("Invalid configuration of route '".concat(e,"': Array cannot be specified"));if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error("Invalid configuration of route '".concat(e,"': a componentless route without children or loadChildren cannot have a named outlet set"));if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '".concat(e,"': redirectTo and children cannot be used together"));if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '".concat(e,"': redirectTo and loadChildren cannot be used together"));if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '".concat(e,"': children and loadChildren cannot be used together"));if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '".concat(e,"': redirectTo and component cannot be used together"));if(t.path&&t.matcher)throw new Error("Invalid configuration of route '".concat(e,"': path and matcher cannot be used together"));if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '".concat(e,"'. One of the following must be provided: component, redirectTo, children or loadChildren"));if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '".concat(e,"': routes must have either a path or a matcher specified"));if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '".concat(e,"': path cannot start with a slash"));if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error("Invalid configuration of route '{path: \"".concat(e,'", redirectTo: "').concat(t.redirectTo,"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'."));if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '".concat(e,"': pathMatch can only be set to 'prefix' or 'full'"));t.children&&DS(t.children,e)}function AS(t,e){return e?t||e.path?t&&!e.path?"".concat(t,"/"):!t&&e.path?e.path:"".concat(t,"/").concat(e.path):"":t}function TS(t){var e=t.children&&t.children.map(TS),i=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!i.component&&(e||i.loadChildren)&&i.outlet&&"primary"!==i.outlet&&(i.component=wS),i}function PS(t,e){var i,n=Object.keys(t),a=Object.keys(e);if(!n||!a||n.length!=a.length)return!1;for(var r=0;r<n.length;r++)if(!RS(t[i=n[r]],e[i]))return!1;return!0}function RS(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every((function(t){return e.indexOf(t)>-1})):t===e}function MS(t){return Array.prototype.concat.apply([],t)}function LS(t){return t.length>0?t[t.length-1]:null}function jS(t,e){for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)}function FS(t){return Object(a.Rb)(t)?t:Object(a.Sb)(t)?Object(cr.a)(Promise.resolve(t)):Be(t)}function NS(t,e,i){return i?function(t,e){return PS(t,e)}(t.queryParams,e.queryParams)&&function t(e,i){if(!VS(e.segments,i.segments))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(var n in i.children){if(!e.children[n])return!1;if(!t(e.children[n],i.children[n]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every((function(i){return RS(t[i],e[i])}))}(t.queryParams,e.queryParams)&&function t(e,i){return function e(i,n,a){if(i.segments.length>a.length)return!!VS(i.segments.slice(0,a.length),a)&&!n.hasChildren();if(i.segments.length===a.length){if(!VS(i.segments,a))return!1;for(var r in n.children){if(!i.children[r])return!1;if(!t(i.children[r],n.children[r]))return!1}return!0}var o=a.slice(0,i.segments.length),s=a.slice(i.segments.length);return!!VS(i.segments,o)&&!!i.children.primary&&e(i.children.primary,n,s)}(e,i,i.segments)}(t.root,e.root)}var zS=function(){function t(e,i,n){_classCallCheck(this,t),this.root=e,this.queryParams=i,this.fragment=n}return _createClass(t,[{key:"toString",value:function(){return WS.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=xS(this.queryParams)),this._queryParamMap}}]),t}(),BS=function(){function t(e,i){var n=this;_classCallCheck(this,t),this.segments=e,this.children=i,this.parent=null,jS(i,(function(t,e){return t.parent=n}))}return _createClass(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return qS(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),t}(),JS=function(){function t(e,i){_classCallCheck(this,t),this.path=e,this.parameters=i}return _createClass(t,[{key:"toString",value:function(){return QS(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=xS(this.parameters)),this._parameterMap}}]),t}();function VS(t,e){return t.length===e.length&&t.every((function(t,i){return t.path===e[i].path}))}function HS(t,e){var i=[];return jS(t.children,(function(t,n){"primary"===n&&(i=i.concat(e(t,n)))})),jS(t.children,(function(t,n){"primary"!==n&&(i=i.concat(e(t,n)))})),i}var US=function t(){_classCallCheck(this,t)},GS=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"parse",value:function(t){var e=new aI(t);return new zS(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,i,n;return"".concat("/".concat(function t(e,i){if(!e.hasChildren())return qS(e);if(i){var n=e.children.primary?t(e.children.primary,!1):"",a=[];return jS(e.children,(function(e,i){"primary"!==i&&a.push("".concat(i,":").concat(t(e,!1)))})),a.length>0?"".concat(n,"(").concat(a.join("//"),")"):n}var r=HS(e,(function(i,n){return"primary"===n?[t(e.children.primary,!1)]:["".concat(n,":").concat(t(i,!1))]}));return"".concat(qS(e),"/(").concat(r.join("//"),")")}(t.root,!0)),(i=t.queryParams,n=Object.keys(i).map((function(t){var e=i[t];return Array.isArray(e)?e.map((function(e){return"".concat(KS(t),"=").concat(KS(e))})).join("&"):"".concat(KS(t),"=").concat(KS(e))})),n.length?"?".concat(n.join("&")):"")).concat("string"==typeof t.fragment?"#".concat((e=t.fragment,encodeURI(e))):"")}}]),t}(),WS=new GS;function qS(t){return t.segments.map((function(t){return QS(t)})).join("/")}function $S(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function KS(t){return $S(t).replace(/%3B/gi,";")}function XS(t){return $S(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function YS(t){return decodeURIComponent(t)}function ZS(t){return YS(t.replace(/\+/g,"%20"))}function QS(t){return"".concat(XS(t.path)).concat((e=t.parameters,Object.keys(e).map((function(t){return";".concat(XS(t),"=").concat(XS(e[t]))})).join("")));var e}var tI=/^[^\/()?;=#]+/;function eI(t){var e=t.match(tI);return e?e[0]:""}var iI=/^[^=?&#]+/,nI=/^[^?&#]+/,aI=function(){function t(e){_classCallCheck(this,t),this.url=e,this.remaining=e}return _createClass(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new BS([],{}):new BS([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new BS(t,e)),i}},{key:"parseSegment",value:function(){var t=eI(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new JS(YS(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=eI(this.remaining);if(e){this.capture(e);var i="";if(this.consumeOptional("=")){var n=eI(this.remaining);n&&(i=n,this.capture(i))}t[YS(e)]=YS(i)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(iI);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var i="";if(this.consumeOptional("=")){var n=function(t){var e=t.match(nI);return e?e[0]:""}(this.remaining);n&&(i=n,this.capture(i))}var a=ZS(e),r=ZS(i);if(t.hasOwnProperty(a)){var o=t[a];Array.isArray(o)||(o=[o],t[a]=o),o.push(r)}else t[a]=r}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var i=eI(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '".concat(this.url,"'"));var a=void 0;i.indexOf(":")>-1?(a=i.substr(0,i.indexOf(":")),this.capture(a),this.capture(":")):t&&(a="primary");var r=this.parseChildren();e[a]=1===Object.keys(r).length?r.primary:new BS([],r),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),rI=function(){function t(e){_classCallCheck(this,t),this._root=e}return _createClass(t,[{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=oI(t,this._root);return e?e.children.map((function(t){return t.value})):[]}},{key:"firstChild",value:function(t){var e=oI(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=sI(t,this._root);return e.length<2?[]:e[e.length-2].children.map((function(t){return t.value})).filter((function(e){return e!==t}))}},{key:"pathFromRoot",value:function(t){return sI(t,this._root).map((function(t){return t.value}))}},{key:"root",get:function(){return this._root.value}}]),t}();function oI(t,e){if(t===e.value)return e;var i,n=_createForOfIteratorHelper(e.children);try{for(n.s();!(i=n.n()).done;){var a=oI(t,i.value);if(a)return a}}catch(r){n.e(r)}finally{n.f()}return null}function sI(t,e){if(t===e.value)return[e];var i,n=_createForOfIteratorHelper(e.children);try{for(n.s();!(i=n.n()).done;){var a=sI(t,i.value);if(a.length)return a.unshift(e),a}}catch(r){n.e(r)}finally{n.f()}return[]}var cI=function(){function t(e,i){_classCallCheck(this,t),this.value=e,this.children=i}return _createClass(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function lI(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var uI=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t)).snapshot=n,gI(_assertThisInitialized(a),t),a}return _createClass(i,[{key:"toString",value:function(){return this.snapshot.toString()}}]),i}(rI);function dI(t,e){var i=function(t,e){var i=new fI([],{},{},"",{},"primary",e,null,t.root,-1,{});return new mI("",new cI(i,[]))}(t,e),n=new Ek([new JS("",{})]),a=new Ek({}),r=new Ek({}),o=new Ek({}),s=new Ek(""),c=new hI(n,a,o,s,r,"primary",e,i.root);return c.snapshot=i.root,new uI(new cI(c,[]),i)}var hI=function(){function t(e,i,n,a,r,o,s,c){_classCallCheck(this,t),this.url=e,this.params=i,this.queryParams=n,this.fragment=a,this.data=r,this.outlet=o,this.component=s,this._futureSnapshot=c}return _createClass(t,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(ri.a)((function(t){return xS(t)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(ri.a)((function(t){return xS(t)})))),this._queryParamMap}}]),t}();function pI(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",i=t.pathFromRoot,n=0;if("always"!==e)for(n=i.length-1;n>=1;){var a=i[n],r=i[n-1];if(a.routeConfig&&""===a.routeConfig.path)n--;else{if(r.component)break;n--}}return function(t){return t.reduce((function(t,e){return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}}),{params:{},data:{},resolve:{}})}(i.slice(n))}var fI=function(){function t(e,i,n,a,r,o,s,c,l,u,d){_classCallCheck(this,t),this.url=e,this.params=i,this.queryParams=n,this.fragment=a,this.data=r,this.outlet=o,this.component=s,this.routeConfig=c,this._urlSegment=l,this._lastPathIndex=u,this._resolve=d}return _createClass(t,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(t){return t.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=xS(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=xS(this.queryParams)),this._queryParamMap}}]),t}(),mI=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,n)).url=t,gI(_assertThisInitialized(a),n),a}return _createClass(i,[{key:"toString",value:function(){return vI(this._root)}}]),i}(rI);function gI(t,e){e.value._routerState=t,e.children.forEach((function(e){return gI(t,e)}))}function vI(t){var e=t.children.length>0?" { ".concat(t.children.map(vI).join(", ")," } "):"";return"".concat(t.value).concat(e)}function bI(t){if(t.snapshot){var e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,PS(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),PS(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(var i=0;i<t.length;++i)if(!PS(t[i],e[i]))return!1;return!0}(e.url,i.url)||t.url.next(i.url),PS(e.data,i.data)||t.data.next(i.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function _I(t,e){var i,n;return PS(t.params,e.params)&&VS(i=t.url,n=e.url)&&i.every((function(t,e){return PS(t.parameters,n[e].parameters)}))&&!(!t.parent!=!e.parent)&&(!t.parent||_I(t.parent,e.parent))}function yI(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function kI(t,e,i,n,a){var r={};return n&&jS(n,(function(t,e){r[e]=Array.isArray(t)?t.map((function(t){return"".concat(t)})):"".concat(t)})),new zS(i.root===t?e:function t(e,i,n){var a={};return jS(e.children,(function(e,r){a[r]=e===i?n:t(e,i,n)})),new BS(e.segments,a)}(i.root,t,e),r,a)}var wI=function(){function t(e,i,n){if(_classCallCheck(this,t),this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=n,e&&n.length>0&&yI(n[0]))throw new Error("Root segment cannot have matrix parameters");var a=n.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(a&&a!==LS(n))throw new Error("{outlets:{}} has to be the last command")}return _createClass(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),CI=function t(e,i,n){_classCallCheck(this,t),this.segmentGroup=e,this.processChildren=i,this.index=n};function xI(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:"".concat(t)}function SI(t,e,i){if(t||(t=new BS([],{})),0===t.segments.length&&t.hasChildren())return II(t,e,i);var n=function(t,e,i){for(var n=0,a=e,r={match:!1,pathIndex:0,commandIndex:0};a<t.segments.length;){if(n>=i.length)return r;var o=t.segments[a],s=xI(i[n]),c=n<i.length-1?i[n+1]:null;if(a>0&&void 0===s)break;if(s&&c&&"object"==typeof c&&void 0===c.outlets){if(!AI(s,c,o))return r;n+=2}else{if(!AI(s,{},o))return r;n++}a++}return{match:!0,pathIndex:a,commandIndex:n}}(t,e,i),a=i.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){var r=new BS(t.segments.slice(0,n.pathIndex),{});return r.children.primary=new BS(t.segments.slice(n.pathIndex),t.children),II(r,0,a)}return n.match&&0===a.length?new BS(t.segments,{}):n.match&&!t.hasChildren()?OI(t,e,i):n.match?II(t,0,a):OI(t,e,i)}function II(t,e,i){if(0===i.length)return new BS(t.segments,{});var n=function(t){return"object"!=typeof t[0]||void 0===t[0].outlets?{primary:t}:t[0].outlets}(i),a={};return jS(n,(function(i,n){null!==i&&(a[n]=SI(t.children[n],e,i))})),jS(t.children,(function(t,e){void 0===n[e]&&(a[e]=t)})),new BS(t.segments,a)}function OI(t,e,i){for(var n=t.segments.slice(0,e),a=0;a<i.length;){if("object"==typeof i[a]&&void 0!==i[a].outlets){var r=DI(i[a].outlets);return new BS(n,r)}if(0===a&&yI(i[0]))n.push(new JS(t.segments[e].path,i[0])),a++;else{var o=xI(i[a]),s=a<i.length-1?i[a+1]:null;o&&s&&yI(s)?(n.push(new JS(o,EI(s))),a+=2):(n.push(new JS(o,{})),a++)}}return new BS(n,{})}function DI(t){var e={};return jS(t,(function(t,i){null!==t&&(e[i]=OI(new BS([],{}),0,t))})),e}function EI(t){var e={};return jS(t,(function(t,i){return e[i]="".concat(t)})),e}function AI(t,e,i){return t==i.path&&PS(e,i.parameters)}var TI=function(){function t(e,i,n,a){_classCallCheck(this,t),this.routeReuseStrategy=e,this.futureState=i,this.currState=n,this.forwardEvent=a}return _createClass(t,[{key:"activate",value:function(t){var e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),bI(this.futureState.root),this.activateChildRoutes(e,i,t)}},{key:"deactivateChildRoutes",value:function(t,e,i){var n=this,a=lI(e);t.children.forEach((function(t){var e=t.value.outlet;n.deactivateRoutes(t,a[e],i),delete a[e]})),jS(a,(function(t,e){n.deactivateRouteAndItsChildren(t,i)}))}},{key:"deactivateRoutes",value:function(t,e,i){var n=t.value,a=e?e.value:null;if(n===a)if(n.component){var r=i.getContext(n.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,i);else a&&this.deactivateRouteAndItsChildren(e,i)}},{key:"deactivateRouteAndItsChildren",value:function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}},{key:"detachAndStoreRouteSubtree",value:function(t,e){var i=e.getContext(t.value.outlet);if(i&&i.outlet){var n=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:n,route:t,contexts:a})}}},{key:"deactivateRouteAndOutlet",value:function(t,e){var i=this,n=e.getContext(t.value.outlet);if(n){var a=lI(t),r=t.value.component?n.children:e;jS(a,(function(t,e){return i.deactivateRouteAndItsChildren(t,r)})),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}},{key:"activateChildRoutes",value:function(t,e,i){var n=this,a=lI(e);t.children.forEach((function(t){n.activateRoutes(t,a[t.value.outlet],i),n.forwardEvent(new yS(t.value.snapshot))})),t.children.length&&this.forwardEvent(new bS(t.value.snapshot))}},{key:"activateRoutes",value:function(t,e,i){var n=t.value,a=e?e.value:null;if(bI(n),n===a)if(n.component){var r=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,i);else if(n.component){var o=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){var s=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),PI(s.route)}else{var c=function(t){for(var e=t.parent;e;e=e.parent){var i=e.routeConfig;if(i&&i._loadedConfig)return i._loadedConfig;if(i&&i.component)return null}return null}(n.snapshot),l=c?c.module.componentFactoryResolver:null;o.attachRef=null,o.route=n,o.resolver=l,o.outlet&&o.outlet.activateWith(n,l),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,i)}}]),t}();function PI(t){bI(t.value),t.children.forEach(PI)}function RI(t){return"function"==typeof t}function MI(t){return t instanceof zS}var LI=function t(e){_classCallCheck(this,t),this.segmentGroup=e||null},jI=function t(e){_classCallCheck(this,t),this.urlTree=e};function FI(t){return new si.a((function(e){return e.error(new LI(t))}))}function NI(t){return new si.a((function(e){return e.error(new jI(t))}))}function zI(t){return new si.a((function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))}))}var BI=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.configLoader=i,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=e.get(a.G)}return _createClass(t,[{key:"apply",value:function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(ri.a)((function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)}))).pipe(tf((function(e){if(e instanceof jI)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof LI)throw t.noMatchError(e);throw e})))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(ri.a)((function(i){return e.createUrlTree(i,t.queryParams,t.fragment)}))).pipe(tf((function(t){if(t instanceof LI)throw e.noMatchError(t);throw t})))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,i){var n=t.segments.length>0?new BS([],{primary:t}):t;return new zS(n,e,i)}},{key:"expandSegmentGroup",value:function(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(Object(ri.a)((function(t){return new BS([],t)}))):this.expandSegment(t,i,e,i.segments,n,!0)}},{key:"expandChildren",value:function(t,e,i){var n=this;return function(i,a){if(0===Object.keys(i).length)return Be({});var r=[],o=[],s={};return jS(i,(function(i,a){var c,l,u=(c=a,l=i,n.expandSegmentGroup(t,e,l,c)).pipe(Object(ri.a)((function(t){return s[a]=t})));"primary"===a?r.push(u):o.push(u)})),Be.apply(null,r.concat(o)).pipe(En(),Xx(),Object(ri.a)((function(){return s})))}(i.children)}},{key:"expandSegment",value:function(t,e,i,n,a,r){var o=this;return Be.apply(void 0,_toConsumableArray(i)).pipe(Object(ri.a)((function(s){return o.expandSegmentAgainstRoute(t,e,i,s,n,a,r).pipe(tf((function(t){if(t instanceof LI)return Be(null);throw t})))})),En(),Yx((function(t){return!!t})),tf((function(t,i){if(t instanceof Nx||"EmptyError"===t.name){if(o.noLeftoversInUrl(e,n,a))return Be(new BS([],{}));throw new LI(e)}throw t})))}},{key:"noLeftoversInUrl",value:function(t,e,i){return 0===e.length&&!t.children[i]}},{key:"expandSegmentAgainstRoute",value:function(t,e,i,n,a,r,o){return UI(n)!==r?FI(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,a,r):FI(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,i,n,a,r){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,a,r)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,i,n){var a=this,r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?NI(r):this.lineralizeSegments(i,r).pipe(Object(cf.a)((function(i){var r=new BS(i,{});return a.expandSegment(t,r,e,i,n,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,i,n,a,r){var o=this,s=JI(e,n,a),c=s.matched,l=s.consumedSegments,u=s.lastChild,d=s.positionalParamSegments;if(!c)return FI(e);var h=this.applyRedirectCommands(l,n.redirectTo,d);return n.redirectTo.startsWith("/")?NI(h):this.lineralizeSegments(n,h).pipe(Object(cf.a)((function(n){return o.expandSegment(t,e,i,n.concat(a.slice(u)),r,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(t,e,i,n){var a=this;if("**"===i.path)return i.loadChildren?this.configLoader.load(t.injector,i).pipe(Object(ri.a)((function(t){return i._loadedConfig=t,new BS(n,{})}))):Be(new BS(n,{}));var r=JI(e,i,n),o=r.matched,s=r.consumedSegments,c=r.lastChild;if(!o)return FI(e);var l=n.slice(c);return this.getChildConfig(t,i,n).pipe(Object(cf.a)((function(t){var i=t.module,n=t.routes,r=function(t,e,i,n){return i.length>0&&function(t,e,i){return i.some((function(i){return HI(t,e,i)&&"primary"!==UI(i)}))}(t,i,n)?{segmentGroup:VI(new BS(e,function(t,e){var i={};i.primary=e;var n,a=_createForOfIteratorHelper(t);try{for(a.s();!(n=a.n()).done;){var r=n.value;""===r.path&&"primary"!==UI(r)&&(i[UI(r)]=new BS([],{}))}}catch(o){a.e(o)}finally{a.f()}return i}(n,new BS(i,t.children)))),slicedSegments:[]}:0===i.length&&function(t,e,i){return i.some((function(i){return HI(t,e,i)}))}(t,i,n)?{segmentGroup:VI(new BS(t.segments,function(t,e,i,n){var a,r={},o=_createForOfIteratorHelper(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;HI(t,e,s)&&!n[UI(s)]&&(r[UI(s)]=new BS([],{}))}}catch(c){o.e(c)}finally{o.f()}return Object.assign(Object.assign({},n),r)}(t,i,n,t.children))),slicedSegments:i}:{segmentGroup:t,slicedSegments:i}}(e,s,l,n),o=r.segmentGroup,c=r.slicedSegments;return 0===c.length&&o.hasChildren()?a.expandChildren(i,n,o).pipe(Object(ri.a)((function(t){return new BS(s,t)}))):0===n.length&&0===c.length?Be(new BS(s,{})):a.expandSegment(i,o,n,c,"primary",!0).pipe(Object(ri.a)((function(t){return new BS(s.concat(t.segments),t.children)})))})))}},{key:"getChildConfig",value:function(t,e,i){var n=this;return e.children?Be(new OS(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Be(e._loadedConfig):function(t,e,i){var n,a=e.canLoad;return a&&0!==a.length?Object(cr.a)(a).pipe(Object(ri.a)((function(n){var a,r=t.get(n);if(function(t){return t&&RI(t.canLoad)}(r))a=r.canLoad(e,i);else{if(!RI(r))throw new Error("Invalid CanLoad guard");a=r(e,i)}return FS(a)}))).pipe(En(),(n=function(t){return!0===t},function(t){return t.lift(new Zx(n,void 0,t))})):Be(!0)}(t.injector,e,i).pipe(Object(cf.a)((function(i){return i?n.configLoader.load(t.injector,e).pipe(Object(ri.a)((function(t){return e._loadedConfig=t,t}))):function(t){return new si.a((function(e){return e.error(SS("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))}))}(e)}))):Be(new OS([],t))}},{key:"lineralizeSegments",value:function(t,e){for(var i=[],n=e.root;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Be(i);if(n.numberOfChildren>1||!n.children.primary)return zI(t.redirectTo);n=n.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,i,n){var a=this.createSegmentGroup(t,e.root,i,n);return new zS(a,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var i={};return jS(t,(function(t,n){if("string"==typeof t&&t.startsWith(":")){var a=t.substring(1);i[n]=e[a]}else i[n]=t})),i}},{key:"createSegmentGroup",value:function(t,e,i,n){var a=this,r=this.createSegments(t,e.segments,i,n),o={};return jS(e.children,(function(e,r){o[r]=a.createSegmentGroup(t,e,i,n)})),new BS(r,o)}},{key:"createSegments",value:function(t,e,i,n){var a=this;return e.map((function(e){return e.path.startsWith(":")?a.findPosParam(t,e,n):a.findOrReturn(e,i)}))}},{key:"findPosParam",value:function(t,e,i){var n=i[e.path.substring(1)];if(!n)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return n}},{key:"findOrReturn",value:function(t,e){var i,n=0,a=_createForOfIteratorHelper(e);try{for(a.s();!(i=a.n()).done;){var r=i.value;if(r.path===t.path)return e.splice(n),r;n++}}catch(o){a.e(o)}finally{a.f()}return t}}]),t}();function JI(t,e,i){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var n=(e.matcher||IS)(i,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function VI(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new BS(t.segments.concat(e.segments),e.children)}return t}function HI(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0!==i.redirectTo}function UI(t){return t.outlet||"primary"}var GI=function t(e){_classCallCheck(this,t),this.path=e,this.route=this.path[this.path.length-1]},WI=function t(e,i){_classCallCheck(this,t),this.component=e,this.route=i};function qI(t,e,i){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var i=e.routeConfig;if(i&&i._loadedConfig)return i._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function $I(t,e,i){var n=lI(t),a=t.value;jS(n,(function(t,n){$I(t,a.component?e?e.children.getContext(n):null:e,i)})),i.canDeactivateChecks.push(new WI(a.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,a))}var KI=Symbol("INITIAL_VALUE");function XI(){return Pl((function(t){return Wg.apply(void 0,_toConsumableArray(t.map((function(t){return t.pipe(ui(1),Tn(KI))})))).pipe(tS((function(t,e){var i=!1;return e.reduce((function(t,n,a){if(t!==KI)return t;if(n===KI&&(i=!0),!i){if(!1===n)return n;if(a===e.length-1||MI(n))return n}return t}),t)}),KI),ii((function(t){return t!==KI})),Object(ri.a)((function(t){return MI(t)?t:!0===t})),ui(1))}))}function YI(t,e){return null!==t&&e&&e(new _S(t)),Be(!0)}function ZI(t,e){return null!==t&&e&&e(new vS(t)),Be(!0)}function QI(t,e,i){var n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Be(n.map((function(n){return al((function(){var a,r=qI(n,e,i);if(function(t){return t&&RI(t.canActivate)}(r))a=FS(r.canActivate(e,t));else{if(!RI(r))throw new Error("Invalid CanActivate guard");a=FS(r(e,t))}return a.pipe(Yx())}))}))).pipe(XI()):Be(!0)}function tO(t,e,i){var n=e[e.length-1],a=e.slice(0,e.length-1).reverse().map((function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)})).filter((function(t){return null!==t})).map((function(e){return al((function(){return Be(e.guards.map((function(a){var r,o=qI(a,e.node,i);if(function(t){return t&&RI(t.canActivateChild)}(o))r=FS(o.canActivateChild(n,t));else{if(!RI(o))throw new Error("Invalid CanActivateChild guard");r=FS(o(n,t))}return r.pipe(Yx())}))).pipe(XI())}))}));return Be(a).pipe(XI())}var eO=function t(){_classCallCheck(this,t)},iO=function(){function t(e,i,n,a,r,o){_classCallCheck(this,t),this.rootComponentType=e,this.config=i,this.urlTree=n,this.url=a,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}return _createClass(t,[{key:"recognize",value:function(){try{var t=rO(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),i=new fI([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new cI(i,e),a=new mI(this.url,n);return this.inheritParamsAndData(a._root),Be(a)}catch(r){return new si.a((function(t){return t.error(r)}))}}},{key:"inheritParamsAndData",value:function(t){var e=this,i=t.value,n=pI(i,this.paramsInheritanceStrategy);i.params=Object.freeze(n.params),i.data=Object.freeze(n.data),t.children.forEach((function(t){return e.inheritParamsAndData(t)}))}},{key:"processSegmentGroup",value:function(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}},{key:"processChildren",value:function(t,e){var i,n=this,a=HS(e,(function(e,i){return n.processSegmentGroup(t,e,i)}));return i={},a.forEach((function(t){var e=i[t.value.outlet];if(e){var n=e.url.map((function(t){return t.toString()})).join("/"),a=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(n,"' and '").concat(a,"'."))}i[t.value.outlet]=t.value})),a.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)})),a}},{key:"processSegment",value:function(t,e,i,n){var a,r=_createForOfIteratorHelper(t);try{for(r.s();!(a=r.n()).done;){var o=a.value;try{return this.processSegmentAgainstRoute(o,e,i,n)}catch(s){if(!(s instanceof eO))throw s}}}catch(c){r.e(c)}finally{r.f()}if(this.noLeftoversInUrl(e,i,n))return[];throw new eO}},{key:"noLeftoversInUrl",value:function(t,e,i){return 0===e.length&&!t.children[i]}},{key:"processSegmentAgainstRoute",value:function(t,e,i,n){if(t.redirectTo)throw new eO;if((t.outlet||"primary")!==n)throw new eO;var a,r=[],o=[];if("**"===t.path){var s=i.length>0?LS(i).parameters:{};a=new fI(i,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cO(t),n,t.component,t,nO(e),aO(e)+i.length,lO(t))}else{var c=function(t,e,i){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||i.length>0))throw new eO;return{consumedSegments:[],lastChild:0,parameters:{}}}var n=(e.matcher||IS)(i,t,e);if(!n)throw new eO;var a={};jS(n.posParams,(function(t,e){a[e]=t.path}));var r=n.consumed.length>0?Object.assign(Object.assign({},a),n.consumed[n.consumed.length-1].parameters):a;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:r}}(e,t,i);r=c.consumedSegments,o=i.slice(c.lastChild),a=new fI(r,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cO(t),n,t.component,t,nO(e),aO(e)+r.length,lO(t))}var l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),u=rO(e,r,o,l,this.relativeLinkResolution),d=u.segmentGroup,h=u.slicedSegments;if(0===h.length&&d.hasChildren()){var p=this.processChildren(l,d);return[new cI(a,p)]}if(0===l.length&&0===h.length)return[new cI(a,[])];var f=this.processSegment(l,d,h,"primary");return[new cI(a,f)]}}]),t}();function nO(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function aO(t){for(var e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)i+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return i-1}function rO(t,e,i,n,a){if(i.length>0&&function(t,e,i){return i.some((function(i){return oO(t,e,i)&&"primary"!==sO(i)}))}(t,i,n)){var r=new BS(e,function(t,e,i,n){var a={};a.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;var r,o=_createForOfIteratorHelper(i);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(""===s.path&&"primary"!==sO(s)){var c=new BS([],{});c._sourceSegment=t,c._segmentIndexShift=e.length,a[sO(s)]=c}}}catch(l){o.e(l)}finally{o.f()}return a}(t,e,n,new BS(i,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some((function(i){return oO(t,e,i)}))}(t,i,n)){var o=new BS(t.segments,function(t,e,i,n,a,r){var o,s={},c=_createForOfIteratorHelper(n);try{for(c.s();!(o=c.n()).done;){var l=o.value;if(oO(t,i,l)&&!a[sO(l)]){var u=new BS([],{});u._sourceSegment=t,u._segmentIndexShift="legacy"===r?t.segments.length:e.length,s[sO(l)]=u}}}catch(d){c.e(d)}finally{c.f()}return Object.assign(Object.assign({},a),s)}(t,e,i,n,t.children,a));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}var s=new BS(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:i}}function oO(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0===i.redirectTo}function sO(t){return t.outlet||"primary"}function cO(t){return t.data||{}}function lO(t){return t.resolve||{}}function uO(t,e,i,n){var a=qI(t,e,n);return FS(a.resolve?a.resolve(e,i):a(e,i))}function dO(t){return function(e){return e.pipe(Pl((function(e){var i=t(e);return i?Object(cr.a)(i).pipe(Object(ri.a)((function(){return e}))):Object(cr.a)([e])})))}}var hO=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}(),pO=new a.x("ROUTES"),fO=function(){function t(e,i,n,a){_classCallCheck(this,t),this.loader=e,this.compiler=i,this.onLoadStartListener=n,this.onLoadEndListener=a}return _createClass(t,[{key:"load",value:function(t,e){var i=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(ri.a)((function(n){i.onLoadEndListener&&i.onLoadEndListener(e);var a=n.create(t);return new OS(MS(a.injector.get(pO)).map(TS),a)})))}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?Object(cr.a)(this.loader.load(t)):FS(t()).pipe(Object(cf.a)((function(t){return t instanceof a.E?Be(t):Object(cr.a)(e.compiler.compileModuleAsync(t))})))}}]),t}(),mO=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function gO(t){throw t}function vO(t,e,i){return e.parse("/")}function bO(t,e){return Be(null)}var _O,yO,kO,wO=((kO=function(){function t(e,i,n,r,o,s,c,l){var u=this;_classCallCheck(this,t),this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=n,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Le.a,this.errorHandler=gO,this.malformedUriErrorHandler=vO,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:bO,afterPreactivation:bO},this.urlHandlingStrategy=new mO,this.routeReuseStrategy=new hO,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(a.G),this.console=o.get(a.nb);var d=o.get(a.I);this.isNgZoneEnabled=d instanceof a.I,this.resetConfig(l),this.currentUrlTree=new zS(new BS([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new fO(s,c,(function(t){return u.triggerEvent(new mS(t))}),(function(t){return u.triggerEvent(new gS(t))})),this.routerState=dI(this.currentUrlTree,this.rootComponentType),this.transitions=new Ek({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(t,[{key:"setupNavigations",value:function(t){var e=this,i=this.events;return t.pipe(ii((function(t){return 0!==t.id})),Object(ri.a)((function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})})),Pl((function(t){var n,a,r,o=!1,s=!1;return Be(t).pipe(Ge((function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}})),Pl((function(t){var n,a,r,o,s=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||s)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Be(t).pipe(Pl((function(t){var n=e.transitions.getValue();return i.next(new oS(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==e.transitions.getValue()?ci:[t]})),Pl((function(t){return Promise.resolve(t)})),(n=e.ngModule.injector,a=e.configLoader,r=e.urlSerializer,o=e.config,function(t){return t.pipe(Pl((function(t){return function(t,e,i,n,a){return new BI(t,e,i,n,a).apply()}(n,a,r,t.extractedUrl,o).pipe(Object(ri.a)((function(e){return Object.assign(Object.assign({},t),{urlAfterRedirects:e})})))})))}),Ge((function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})})),function(t,i,n,a,r){return function(n){return n.pipe(Object(cf.a)((function(n){return function(t,e,i,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new iO(t,e,i,n,a,r).recognize()}(t,i,n.urlAfterRedirects,(o=n.urlAfterRedirects,e.serializeUrl(o)),a,r).pipe(Object(ri.a)((function(t){return Object.assign(Object.assign({},n),{targetSnapshot:t})})));var o})))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),Ge((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),Ge((function(t){var n=new uS(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);i.next(n)})));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var c=t.id,l=t.extractedUrl,u=t.source,d=t.restoredState,h=t.extras,p=new oS(c,e.serializeUrl(l),u,d);i.next(p);var f=dI(l,e.rootComponentType).snapshot;return Be(Object.assign(Object.assign({},t),{targetSnapshot:f,urlAfterRedirects:l,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),ci})),dO((function(t){var i=t.targetSnapshot,n=t.id,a=t.extractedUrl,r=t.rawUrl,o=t.extras,s=o.skipLocationChange,c=o.replaceUrl;return e.hooks.beforePreactivation(i,{navigationId:n,appliedUrlTree:a,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!c})})),Ge((function(t){var i=new dS(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)})),Object(ri.a)((function(t){return Object.assign(Object.assign({},t),{guards:(i=t.targetSnapshot,n=t.currentSnapshot,a=e.rootContexts,r=i._root,function t(e,i,n,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=lI(i);return e.children.forEach((function(e){!function(e,i,n,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,s=i?i.value:null,c=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){var l=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!VS(t.url,e.url);case"pathParamsOrQueryParamsChange":return!VS(t.url,e.url)||!PS(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!_I(t,e)||!PS(t.queryParams,e.queryParams);case"paramsChange":default:return!_I(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new GI(a)):(o.data=s.data,o._resolvedData=s._resolvedData),t(e,i,o.component?c?c.children:null:n,a,r),l&&r.canDeactivateChecks.push(new WI(c&&c.outlet&&c.outlet.component||null,s))}else s&&$I(i,c,r),r.canActivateChecks.push(new GI(a)),t(e,null,o.component?c?c.children:null:n,a,r)}(e,o[e.value.outlet],n,a.concat([e.value]),r),delete o[e.value.outlet]})),jS(o,(function(t,e){return $I(t,n.getContext(e),r)})),r}(r,n?n._root:null,a,[r.value]))});var i,n,a,r})),function(t,e){return function(i){return i.pipe(Object(cf.a)((function(i){var n=i.targetSnapshot,a=i.currentSnapshot,r=i.guards,o=r.canActivateChecks,s=r.canDeactivateChecks;return 0===s.length&&0===o.length?Be(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return Object(cr.a)(t).pipe(Object(cf.a)((function(t){return function(t,e,i,n,a){var r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Be(r.map((function(r){var o,s=qI(r,e,a);if(function(t){return t&&RI(t.canDeactivate)}(s))o=FS(s.canDeactivate(t,e,i,n));else{if(!RI(s))throw new Error("Invalid CanDeactivate guard");o=FS(s(t,e,i,n))}return o.pipe(Yx())}))).pipe(XI()):Be(!0)}(t.component,t.route,i,e,n)})),Yx((function(t){return!0!==t}),!0))}(s,n,a,t).pipe(Object(cf.a)((function(i){return i&&"boolean"==typeof i?function(t,e,i,n){return Object(cr.a)(e).pipe(lf((function(e){return Object(cr.a)([ZI(e.route.parent,n),YI(e.route,n),tO(t,e.path,i),QI(t,e.route,i)]).pipe(En(),Yx((function(t){return!0!==t}),!0))})),Yx((function(t){return!0!==t}),!0))}(n,o,t,e):Be(i)})),Object(ri.a)((function(t){return Object.assign(Object.assign({},i),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),Ge((function(t){if(MI(t.guardsResult)){var i=SS('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw i.url=t.guardsResult,i}})),Ge((function(t){var i=new hS(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(i)})),ii((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var n=new cS(t.id,e.serializeUrl(t.extractedUrl),"");return i.next(n),t.resolve(!1),!1}return!0})),dO((function(t){if(t.guards.canActivateChecks.length)return Be(t).pipe(Ge((function(t){var i=new pS(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)})),(i=e.paramsInheritanceStrategy,n=e.ngModule.injector,function(t){return t.pipe(Object(cf.a)((function(t){var e=t.targetSnapshot,a=t.guards.canActivateChecks;return a.length?Object(cr.a)(a).pipe(lf((function(t){return function(t,e,i,n){return function(t,e,i,n){var a=Object.keys(t);if(0===a.length)return Be({});if(1===a.length){var r=a[0];return uO(t[r],e,i,n).pipe(Object(ri.a)((function(t){return _defineProperty({},r,t)})))}var o={};return Object(cr.a)(a).pipe(Object(cf.a)((function(a){return uO(t[a],e,i,n).pipe(Object(ri.a)((function(t){return o[a]=t,t})))}))).pipe(Xx(),Object(ri.a)((function(){return o})))}(t._resolve,t,e,n).pipe(Object(ri.a)((function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),pI(t,i).resolve),null})))}(t.route,e,i,n)})),function(t,e){return arguments.length>=2?function(i){return Object(aS.a)(tS(t,e),zx(1),Wx(e))(i)}:function(e){return Object(aS.a)(tS((function(e,i,n){return t(e,i,n+1)})),zx(1))(e)}}((function(t,e){return t})),Object(ri.a)((function(e){return t}))):Be(t)})))}),Ge((function(t){var i=new fS(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)})));var i,n})),dO((function(t){var i=t.targetSnapshot,n=t.id,a=t.extractedUrl,r=t.rawUrl,o=t.extras,s=o.skipLocationChange,c=o.replaceUrl;return e.hooks.afterPreactivation(i,{navigationId:n,appliedUrlTree:a,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!c})})),Object(ri.a)((function(t){var i=function(t,e,i){var n=function t(e,i,n){if(n&&e.shouldReuseRoute(i.value,n.value.snapshot)){var a=n.value;a._futureSnapshot=i.value;var r=function(e,i,n){return i.children.map((function(i){var a,r=_createForOfIteratorHelper(n.children);try{for(r.s();!(a=r.n()).done;){var o=a.value;if(e.shouldReuseRoute(o.value.snapshot,i.value))return t(e,i,o)}}catch(s){r.e(s)}finally{r.f()}return t(e,i)}))}(e,i,n);return new cI(a,r)}var o=e.retrieve(i.value);if(o){var s=o.route;return function t(e,i){if(e.value.routeConfig!==i.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==i.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");i.value._futureSnapshot=e.value;for(var n=0;n<e.children.length;++n)t(e.children[n],i.children[n])}(i,s),s}var c,l=new hI(new Ek((c=i.value).url),new Ek(c.params),new Ek(c.queryParams),new Ek(c.fragment),new Ek(c.data),c.outlet,c.component,c),u=i.children.map((function(i){return t(e,i)}));return new cI(l,u)}(t,e._root,i?i._root:void 0);return new uI(n,e)}(e.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:i})})),Ge((function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),(n=e.rootContexts,a=e.routeReuseStrategy,r=function(t){return e.triggerEvent(t)},Object(ri.a)((function(t){return new TI(a,t.targetRouterState,t.currentRouterState,r).activate(n),t}))),Ge({next:function(){o=!0},complete:function(){o=!0}}),af((function(){if(!o&&!s){e.resetUrlToCurrentUrlTree();var n=new cS(t.id,e.serializeUrl(t.extractedUrl),"Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId));i.next(n),t.resolve(!1)}e.currentNavigation=null})),tf((function(n){if(s=!0,(c=n)&&c.ngNavigationCancelingError){var a=MI(n.url);a||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var r=new cS(t.id,e.serializeUrl(t.extractedUrl),n.message);i.next(r),a?setTimeout((function(){var i=e.urlHandlingStrategy.merge(n.url,e.rawUrlTree);return e.scheduleNavigation(i,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})}),0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var o=new lS(t.id,e.serializeUrl(t.extractedUrl),n);i.next(o);try{t.resolve(e.errorHandler(n))}catch(l){t.reject(l)}}var c;return ci})))})))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe((function(e){var i=t.parseUrl(e.url),n="popstate"===e.type?"popstate":"hashchange",a=e.state&&e.state.navigationId?e.state:null;setTimeout((function(){t.scheduleNavigation(i,n,a,{replaceUrl:!0})}),0)})))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){DS(t),this.config=t.map(TS),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.relativeTo,n=e.queryParams,r=e.fragment,o=e.preserveQueryParams,s=e.queryParamsHandling,c=e.preserveFragment;Object(a.jb)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=i||this.routerState.root,u=c?this.currentUrlTree.fragment:r,d=null;if(s)switch(s){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=n||null}else d=o?this.currentUrlTree.queryParams:n||null;return null!==d&&(d=this.removeEmptyProps(d)),function(t,e,i,n,a){if(0===i.length)return kI(e.root,e.root,e,n,a);var r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new wI(!0,0,t);var e=0,i=!1,n=t.reduce((function(t,n,a){if("object"==typeof n&&null!=n){if(n.outlets){var r={};return jS(n.outlets,(function(t,e){r[e]="string"==typeof t?t.split("/"):t})),[].concat(_toConsumableArray(t),[{outlets:r}])}if(n.segmentPath)return[].concat(_toConsumableArray(t),[n.segmentPath])}return"string"!=typeof n?[].concat(_toConsumableArray(t),[n]):0===a?(n.split("/").forEach((function(n,a){0==a&&"."===n||(0==a&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))})),t):[].concat(_toConsumableArray(t),[n])}),[]);return new wI(i,e,n)}(i);if(r.toRoot())return kI(e.root,new BS([],{}),e,n,a);var o=function(t,e,i){if(t.isAbsolute)return new CI(e.root,!0,0);if(-1===i.snapshot._lastPathIndex)return new CI(i.snapshot._urlSegment,!0,0);var n=yI(t.commands[0])?0:1;return function(t,e,i){for(var n=t,a=e,r=i;r>a;){if(r-=a,!(n=n.parent))throw new Error("Invalid number of '../'");a=n.segments.length}return new CI(n,!1,a-r)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(r,e,t),s=o.processChildren?II(o.segmentGroup,o.index,r.commands):SI(o.segmentGroup,o.index,r.commands);return kI(o.segmentGroup,s,e,n,a)}(l,this.currentUrlTree,t,d,u)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};Object(a.jb)()&&this.isNgZoneEnabled&&!a.I.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var i=MI(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(t){for(var e=0;e<t.length;e++){var i=t[e];if(null==i)throw new Error("The requested path contains ".concat(i," segment at index ").concat(e))}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}},{key:"serializeUrl",value:function(t){return this.urlSerializer.serialize(t)}},{key:"parseUrl",value:function(t){var e;try{e=this.urlSerializer.parse(t)}catch(i){e=this.malformedUriErrorHandler(i,this.urlSerializer,t)}return e}},{key:"isActive",value:function(t,e){if(MI(t))return NS(this.currentUrlTree,t,e);var i=this.parseUrl(t);return NS(this.currentUrlTree,i,e)}},{key:"removeEmptyProps",value:function(t){return Object.keys(t).reduce((function(e,i){var n=t[i];return null!=n&&(e[i]=n),e}),{})}},{key:"processNavigations",value:function(){var t=this;this.navigations.subscribe((function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new sS(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,t.currentNavigation=null,e.resolve(!0)}),(function(e){t.console.warn("Unhandled Navigation Error: ")}))}},{key:"scheduleNavigation",value:function(t,e,i,n,a){var r,o,s,c=this.getTransition();if(c&&"imperative"!==e&&"imperative"===c.source&&c.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(c&&"hashchange"==e&&"popstate"===c.source&&c.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(c&&"popstate"==e&&"hashchange"===c.source&&c.rawUrl.toString()===t.toString())return Promise.resolve(!0);a?(r=a.resolve,o=a.reject,s=a.promise):s=new Promise((function(t,e){r=t,o=e}));var l=++this.navigationId;return this.setTransition({id:l,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:r,reject:o,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch((function(t){return Promise.reject(t)}))}},{key:"setBrowserUrl",value:function(t,e,i,n){var a=this.urlSerializer.serialize(t);n=n||{},this.location.isCurrentPathEqualTo(a)||e?this.location.replaceState(a,"",Object.assign(Object.assign({},n),{navigationId:i})):this.location.go(a,"",Object.assign(Object.assign({},n),{navigationId:i}))}},{key:"resetStateAndUrl",value:function(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}}]),t}()).\u0275fac=function(t){a.Vc()},kO.\u0275dir=a.yc({type:kO}),kO),CO=((yO=function(){function t(e,i,n,a,r){_classCallCheck(this,t),this.router=e,this.route=i,this.commands=[],null==n&&a.setAttribute(r.nativeElement,"tabindex","0")}return _createClass(t,[{key:"onClick",value:function(){var t={skipLocationChange:SO(this.skipLocationChange),replaceUrl:SO(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0}},{key:"routerLink",set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}},{key:"preserveQueryParams",set:function(t){Object(a.jb)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:SO(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:SO(this.preserveFragment)})}}]),t}()).\u0275fac=function(t){return new(t||yO)(a.Dc(wO),a.Dc(hI),a.Tc("tabindex"),a.Dc(a.P),a.Dc(a.r))},yO.\u0275dir=a.yc({type:yO,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&a.Wc("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),yO),xO=((_O=function(){function t(e,i,n){var a=this;_classCallCheck(this,t),this.router=e,this.route=i,this.locationStrategy=n,this.commands=[],this.subscription=e.events.subscribe((function(t){t instanceof sS&&a.updateTargetUrlAndHref()}))}return _createClass(t,[{key:"ngOnChanges",value:function(t){this.updateTargetUrlAndHref()}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(t,e,i,n){if(0!==t||e||i||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var a={skipLocationChange:SO(this.skipLocationChange),replaceUrl:SO(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"routerLink",set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}},{key:"preserveQueryParams",set:function(t){Object(a.jb)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:SO(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:SO(this.preserveFragment)})}}]),t}()).\u0275fac=function(t){return new(t||_O)(a.Dc(wO),a.Dc(hI),a.Dc(ye.o))},_O.\u0275dir=a.yc({type:_O,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&a.Wc("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(a.Mc("href",e.href,a.td),a.qc("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[a.nc]}),_O);function SO(t){return""===t||!!t}var IO,OO,DO,EO,AO=((IO=function(){function t(e,i,n,a,r){var o=this;_classCallCheck(this,t),this.router=e,this.element=i,this.renderer=n,this.link=a,this.linkWithHref=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=e.events.subscribe((function(t){t instanceof sS&&o.update()}))}return _createClass(t,[{key:"ngAfterContentInit",value:function(){var t=this;this.links.changes.subscribe((function(e){return t.update()})),this.linksWithHrefs.changes.subscribe((function(e){return t.update()})),this.update()}},{key:"ngOnChanges",value:function(t){this.update()}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"update",value:function(){var t=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then((function(){var e=t.hasActiveLinks();t.isActive!==e&&(t.isActive=e,t.classes.forEach((function(i){e?t.renderer.addClass(t.element.nativeElement,i):t.renderer.removeClass(t.element.nativeElement,i)})))}))}},{key:"isLinkActive",value:function(t){var e=this;return function(i){return t.isActive(i.urlTree,e.routerLinkActiveOptions.exact)}}},{key:"hasActiveLinks",value:function(){var t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}},{key:"routerLinkActive",set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter((function(t){return!!t}))}}]),t}()).\u0275fac=function(t){return new(t||IO)(a.Dc(wO),a.Dc(a.r),a.Dc(a.P),a.Dc(CO,8),a.Dc(xO,8))},IO.\u0275dir=a.yc({type:IO,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,i){var n;1&t&&(a.vc(i,CO,!0),a.vc(i,xO,!0)),2&t&&(a.md(n=a.Xc())&&(e.links=n),a.md(n=a.Xc())&&(e.linksWithHrefs=n))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[a.nc]}),IO),TO=function t(){_classCallCheck(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new PO,this.attachRef=null},PO=function(){function t(){_classCallCheck(this,t),this.contexts=new Map}return _createClass(t,[{key:"onChildOutletCreated",value:function(t,e){var i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new TO,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),t}(),RO=((OO=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.parentContexts=e,this.location=i,this.resolver=n,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new a.u,this.deactivateEvents=new a.u,this.name=r||"primary",e.onChildOutletCreated(this.name,this)}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t}},{key:"attach",value:function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}},{key:"deactivate",value:function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}},{key:"activateWith",value:function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,a=new MO(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,a),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}}]),t}()).\u0275fac=function(t){return new(t||OO)(a.Dc(PO),a.Dc(a.cb),a.Dc(a.n),a.Tc("name"),a.Dc(a.j))},OO.\u0275dir=a.yc({type:OO,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),OO),MO=function(){function t(e,i,n){_classCallCheck(this,t),this.route=e,this.childContexts=i,this.parent=n}return _createClass(t,[{key:"get",value:function(t,e){return t===hI?this.route:t===PO?this.childContexts:this.parent.get(t,e)}}]),t}(),LO=function t(){_classCallCheck(this,t)},jO=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"preload",value:function(t,e){return Be(null)}}]),t}(),FO=((EO=function(){function t(e,i,n,a,r){_classCallCheck(this,t),this.router=e,this.injector=a,this.preloadingStrategy=r,this.loader=new fO(i,n,(function(t){return e.triggerEvent(new mS(t))}),(function(t){return e.triggerEvent(new gS(t))}))}return _createClass(t,[{key:"setUpPreloading",value:function(){var t=this;this.subscription=this.router.events.pipe(ii((function(t){return t instanceof sS})),lf((function(){return t.preload()}))).subscribe((function(){}))}},{key:"preload",value:function(){var t=this.injector.get(a.G);return this.processRoutes(t,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"processRoutes",value:function(t,e){var i,n=[],a=_createForOfIteratorHelper(e);try{for(a.s();!(i=a.n()).done;){var r=i.value;if(r.loadChildren&&!r.canLoad&&r._loadedConfig){var o=r._loadedConfig;n.push(this.processRoutes(o.module,o.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children))}}catch(s){a.e(s)}finally{a.f()}return Object(cr.a)(n).pipe(Object(Dn.a)(),Object(ri.a)((function(t){})))}},{key:"preloadConfig",value:function(t,e){var i=this;return this.preloadingStrategy.preload(e,(function(){return i.loader.load(t.injector,e).pipe(Object(cf.a)((function(t){return e._loadedConfig=t,i.processRoutes(t.module,t.routes)})))}))}}]),t}()).\u0275fac=function(t){return new(t||EO)(a.Sc(wO),a.Sc(a.F),a.Sc(a.k),a.Sc(a.y),a.Sc(LO))},EO.\u0275prov=a.zc({token:EO,factory:EO.\u0275fac}),EO),NO=((DO=function(){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,t),this.router=e,this.viewportScroller=i,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return _createClass(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof oS?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof sS&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof kS&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new kS(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}()).\u0275fac=function(t){a.Vc()},DO.\u0275dir=a.yc({type:DO}),DO),zO=new a.x("ROUTER_CONFIGURATION"),BO=new a.x("ROUTER_FORROOT_GUARD"),JO=[ye.n,{provide:US,useClass:GS},{provide:wO,useFactory:function(t,e,i,n,a,r,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,u=new wO(null,t,e,i,n,a,r,MS(o));if(c&&(u.urlHandlingStrategy=c),l&&(u.routeReuseStrategy=l),s.errorHandler&&(u.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(u.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var d=Object(ye.N)();u.events.subscribe((function(t){d.logGroup("Router Event: ".concat(t.constructor.name)),d.log(t.toString()),d.log(t),d.logGroupEnd()}))}return s.onSameUrlNavigation&&(u.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(u.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(u.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(u.relativeLinkResolution=s.relativeLinkResolution),u},deps:[US,PO,ye.n,a.y,a.F,a.k,pO,zO,[function(){return function t(){_classCallCheck(this,t)}}(),new a.J],[function(){return function t(){_classCallCheck(this,t)}}(),new a.J]]},PO,{provide:hI,useFactory:function(t){return t.routerState.root},deps:[wO]},{provide:a.F,useClass:a.V},FO,jO,function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"preload",value:function(t,e){return e().pipe(tf((function(){return Be(null)})))}}]),t}(),{provide:zO,useValue:{enableTracing:!1}}];function VO(){return new a.H("Router",wO)}var HO,UO=((HO=function(){function t(e,i){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(e,i){return{ngModule:t,providers:[JO,$O(e),{provide:BO,useFactory:qO,deps:[[wO,new a.J,new a.U]]},{provide:zO,useValue:i||{}},{provide:ye.o,useFactory:WO,deps:[ye.D,[new a.w(ye.a),new a.J],zO]},{provide:NO,useFactory:GO,deps:[wO,ye.H,zO]},{provide:LO,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:jO},{provide:a.H,multi:!0,useFactory:VO},[XO,{provide:a.d,multi:!0,useFactory:YO,deps:[XO]},{provide:tD,useFactory:ZO,deps:[XO]},{provide:a.b,multi:!0,useExisting:tD}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[$O(e)]}}}]),t}()).\u0275mod=a.Bc({type:HO}),HO.\u0275inj=a.Ac({factory:function(t){return new(t||HO)(a.Sc(BO,8),a.Sc(wO,8))}}),HO);function GO(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new NO(t,e,i)}function WO(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.useHash?new ye.h(t,e):new ye.B(t,e)}function qO(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function $O(t){return[{provide:a.a,multi:!0,useValue:t},{provide:pO,multi:!0,useValue:t}]}var KO,XO=((KO=function(){function t(e){_classCallCheck(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new Le.a}return _createClass(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(ye.m,Promise.resolve(null)).then((function(){var e=null,i=new Promise((function(t){return e=t})),n=t.injector.get(wO),a=t.injector.get(zO);if(t.isLegacyDisabled(a)||t.isLegacyEnabled(a))e(!0);else if("disabled"===a.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==a.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(a.initialNavigation,"'"));n.hooks.afterPreactivation=function(){return t.initNavigation?Be(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},n.initialNavigation()}return i}))}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(zO),i=this.injector.get(FO),n=this.injector.get(NO),r=this.injector.get(wO),o=this.injector.get(a.g);t===o.components[0]&&(this.isLegacyEnabled(e)?r.initialNavigation():this.isLegacyDisabled(e)&&r.setUpLocationChangeListener(),i.setUpPreloading(),n.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}},{key:"isLegacyDisabled",value:function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}]),t}()).\u0275fac=function(t){return new(t||KO)(a.Sc(a.y))},KO.\u0275prov=a.zc({token:KO,factory:KO.\u0275fac}),KO);function YO(t){return t.appInitializer.bind(t)}function ZO(t){return t.bootstrapListener.bind(t)}var QO,tD=new a.x("Router Initializer"),eD=((QO=function(){function t(e,i,n,r){var o=this;_classCallCheck(this,t),this.http=e,this.router=i,this.document=n,this.snackBar=r,this.path="",this.audioFolder="",this.videoFolder="",this.startPath=null,this.startPathSSL=null,this.handShakeComplete=!1,this.THEMES_CONFIG=jx,this.settings_changed=new Ek(!1),this.auth_token="4241b401-7236-493e-92b5-b72696b9d853",this.session_id=null,this.httpOptions=null,this.http_params=null,this.unauthorized=!1,this.debugMode=!1,this.isLoggedIn=!1,this.token=null,this.user=null,this.permissions=null,this.available_permissions=null,this.reload_config=new Ek(!1),this.config_reloaded=new Ek(!1),this.service_initialized=new Ek(!1),this.initialized=!1,this.open_create_default_admin_dialog=new Ek(!1),this.config=null,console.log("PostsService Initialized..."),this.path=this.document.location.origin+"/api/",Object(a.jb)()&&(this.debugMode=!0,this.path="http://localhost:17442/api/"),this.http_params="apiKey=".concat(this.auth_token),this.httpOptions={params:new mf({fromString:this.http_params})},Fx.get((function(t){o.session_id=Fx.x64hash128(t.map((function(t){return t.value})).join(),31),o.httpOptions.params=o.httpOptions.params.set("sessionID",o.session_id)}));var s=window.location.href.includes("/player")||window.location.href.includes("/login");this.loadNavItems().subscribe((function(t){var e=o.debugMode?t:t.config_file;e&&(o.config=e.YoutubeDLMaterial,o.config.Advanced.multi_user_mode?localStorage.getItem("jwt_token")&&"null"!==localStorage.getItem("jwt_token")?(o.token=localStorage.getItem("jwt_token"),o.httpOptions.params=o.httpOptions.params.set("jwt",o.token),o.jwtAuth()):s?o.setInitialized():o.sendToLogin():o.setInitialized())})),this.reload_config.subscribe((function(t){t&&o.reloadConfig()}))}return _createClass(t,[{key:"canActivate",value:function(t,e){return new Promise((function(t){t(!0)}))}},{key:"setTheme",value:function(t){this.theme=this.THEMES_CONFIG[t]}},{key:"startHandshake",value:function(t){return this.http.get(t+"geturl")}},{key:"startHandshakeSSL",value:function(t){return this.http.get(t+"geturl")}},{key:"reloadConfig",value:function(){var t=this;this.loadNavItems().subscribe((function(e){var i=t.debugMode?e:e.config_file;i&&(t.config=i.YoutubeDLMaterial,t.config_reloaded.next(!0))}))}},{key:"getVideoFolder",value:function(){return this.http.get(this.startPath+"videofolder")}},{key:"getAudioFolder",value:function(){return this.http.get(this.startPath+"audiofolder")}},{key:"makeMP3",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;return this.http.post(this.path+"tomp3",{url:t,maxBitrate:e,customQualityConfiguration:i,customArgs:n,customOutput:a,youtubeUsername:r,youtubePassword:o,ui_uid:s},this.httpOptions)}},{key:"makeMP4",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;return this.http.post(this.path+"tomp4",{url:t,selectedHeight:e,customQualityConfiguration:i,customArgs:n,customOutput:a,youtubeUsername:r,youtubePassword:o,ui_uid:s},this.httpOptions)}},{key:"getFileStatusMp3",value:function(t){return this.http.post(this.path+"fileStatusMp3",{name:t},this.httpOptions)}},{key:"getFileStatusMp4",value:function(t){return this.http.post(this.path+"fileStatusMp4",{name:t},this.httpOptions)}},{key:"loadNavItems",value:function(){return Object(a.jb)()?this.http.get("./assets/default.json"):this.http.get(this.path+"config",this.httpOptions)}},{key:"loadAsset",value:function(t){return this.http.get("./assets/".concat(t))}},{key:"setConfig",value:function(t){return this.http.post(this.path+"setConfig",{new_config_file:t},this.httpOptions)}},{key:"deleteFile",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.http.post(e?this.path+"deleteMp3":this.path+"deleteMp4",{uid:t,blacklistMode:i},this.httpOptions)}},{key:"getMp3s",value:function(){return this.http.get(this.path+"getMp3s",this.httpOptions)}},{key:"getMp4s",value:function(){return this.http.get(this.path+"getMp4s",this.httpOptions)}},{key:"getFile",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.http.post(this.path+"getFile",{uid:t,type:e,uuid:i},this.httpOptions)}},{key:"downloadFileFromServer",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;return this.http.post(this.path+"downloadFile",{fileNames:t,type:e,zip_mode:Array.isArray(t),outputName:i,fullPathProvided:n,subscriptionName:a,subPlaylist:r,uuid:s,uid:o},{responseType:"blob",params:this.httpOptions.params})}},{key:"uploadCookiesFile",value:function(t){return this.http.post(this.path+"uploadCookies",t,this.httpOptions)}},{key:"downloadArchive",value:function(t){return this.http.post(this.path+"downloadArchive",{sub:t},{responseType:"blob",params:this.httpOptions.params})}},{key:"getFileInfo",value:function(t,e,i){return this.http.post(this.path+"getVideoInfos",{fileNames:t,type:e,urlMode:i},this.httpOptions)}},{key:"getLogs",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50;return this.http.post(this.path+"logs",{lines:t},this.httpOptions)}},{key:"clearAllLogs",value:function(){return this.http.post(this.path+"clearAllLogs",{},this.httpOptions)}},{key:"isPinSet",value:function(){return this.http.post(this.path+"isPinSet",{},this.httpOptions)}},{key:"setPin",value:function(t){return this.http.post(this.path+"setPin",{pin:t},this.httpOptions)}},{key:"checkPin",value:function(t){return this.http.post(this.path+"checkPin",{input_pin:t},this.httpOptions)}},{key:"generateNewAPIKey",value:function(){return this.http.post(this.path+"generateNewAPIKey",{},this.httpOptions)}},{key:"enableSharing",value:function(t,e,i){return this.http.post(this.path+"enableSharing",{uid:t,type:e,is_playlist:i},this.httpOptions)}},{key:"disableSharing",value:function(t,e,i){return this.http.post(this.path+"disableSharing",{uid:t,type:e,is_playlist:i},this.httpOptions)}},{key:"createPlaylist",value:function(t,e,i,n){return this.http.post(this.path+"createPlaylist",{playlistName:t,fileNames:e,type:i,thumbnailURL:n},this.httpOptions)}},{key:"getPlaylist",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.http.post(this.path+"getPlaylist",{playlistID:t,type:e,uuid:i},this.httpOptions)}},{key:"updatePlaylist",value:function(t){return this.http.post(this.path+"updatePlaylist",{playlist:t},this.httpOptions)}},{key:"updatePlaylistFiles",value:function(t,e,i){return this.http.post(this.path+"updatePlaylistFiles",{playlistID:t,fileNames:e,type:i},this.httpOptions)}},{key:"removePlaylist",value:function(t,e){return this.http.post(this.path+"deletePlaylist",{playlistID:t,type:e},this.httpOptions)}},{key:"createSubscription",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;return this.http.post(this.path+"subscribe",{url:t,name:e,timerange:i,streamingOnly:n,audioOnly:a,customArgs:r,customFileOutput:o},this.httpOptions)}},{key:"unsubscribe",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.http.post(this.path+"unsubscribe",{sub:t,deleteMode:e},this.httpOptions)}},{key:"deleteSubscriptionFile",value:function(t,e,i,n){return this.http.post(this.path+"deleteSubscriptionFile",{sub:t,file:e,deleteForever:i,file_uid:n},this.httpOptions)}},{key:"getSubscription",value:function(t){return this.http.post(this.path+"getSubscription",{id:t},this.httpOptions)}},{key:"getAllSubscriptions",value:function(){return this.http.post(this.path+"getAllSubscriptions",{},this.httpOptions)}},{key:"getCurrentDownloads",value:function(){return this.http.get(this.path+"downloads",this.httpOptions)}},{key:"getCurrentDownload",value:function(t,e){return this.http.post(this.path+"download",{download_id:e,session_id:t},this.httpOptions)}},{key:"clearDownloads",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.http.post(this.path+"clearDownloads",{delete_all:t,download_id:i,session_id:e||this.session_id},this.httpOptions)}},{key:"updateServer",value:function(t){return this.http.post(this.path+"updateServer",{tag:t},this.httpOptions)}},{key:"getUpdaterStatus",value:function(){return this.http.get(this.path+"updaterStatus",this.httpOptions)}},{key:"getLatestGithubRelease",value:function(){return this.http.get("https://api.github.com/repos/tzahi12345/youtubedl-material/releases/latest")}},{key:"getAvailableRelease",value:function(){return this.http.get("https://api.github.com/repos/tzahi12345/youtubedl-material/releases")}},{key:"afterLogin",value:function(t,e,i,n){this.isLoggedIn=!0,this.user=t,this.permissions=i,this.available_permissions=n,this.token=e,localStorage.setItem("jwt_token",this.token),this.httpOptions.params=this.httpOptions.params.set("jwt",this.token),this.setInitialized(),this.config_reloaded.next(!0),"/login"===this.router.url&&this.router.navigate(["/home"])}},{key:"login",value:function(t,e){return this.http.post(this.path+"auth/login",{userid:t,password:e},this.httpOptions)}},{key:"jwtAuth",value:function(){var t=this,e=this.http.post(this.path+"auth/jwtAuth",{},this.httpOptions);return e.subscribe((function(e){e.token&&t.afterLogin(e.user,e.token,e.permissions,e.available_permissions)}),(function(e){401===e.status&&t.sendToLogin(),console.log(e)})),e}},{key:"logout",value:function(){this.user=null,this.permissions=null,this.isLoggedIn=!1,this.token=null,localStorage.setItem("jwt_token",null),"/login"!==this.router.url&&this.router.navigate(["/login"]),this.http_params="apiKey=".concat(this.auth_token,"&sessionID=").concat(this.session_id),this.httpOptions={params:new mf({fromString:this.http_params})}}},{key:"register",value:function(t,e){return this.http.post(this.path+"auth/register",{userid:t,username:t,password:e},this.httpOptions)}},{key:"sendToLogin",value:function(){this.checkAdminCreationStatus(),this.initialized||this.setInitialized(),"/login"!==this.router.url&&(this.router.navigate(["/login"]),this.openSnackBar("You must log in to access this page!"))}},{key:"setInitialized",value:function(){this.service_initialized.next(!0),this.initialized=!0,this.config_reloaded.next(!0)}},{key:"adminExists",value:function(){return this.http.post(this.path+"auth/adminExists",{},this.httpOptions)}},{key:"createAdminAccount",value:function(t){return this.http.post(this.path+"auth/register",{userid:"admin",username:"admin",password:t},this.httpOptions)}},{key:"checkAdminCreationStatus",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(e||this.config.Advanced.multi_user_mode)&&this.adminExists().subscribe((function(e){e.exists||t.open_create_default_admin_dialog.next(!0)}))}},{key:"changeUser",value:function(t){return this.http.post(this.path+"updateUser",{change_object:t},this.httpOptions)}},{key:"deleteUser",value:function(t){return this.http.post(this.path+"deleteUser",{uid:t},this.httpOptions)}},{key:"changeUserPassword",value:function(t,e){return this.http.post(this.path+"auth/changePassword",{user_uid:t,new_password:e},this.httpOptions)}},{key:"getUsers",value:function(){return this.http.post(this.path+"getUsers",{},this.httpOptions)}},{key:"getRoles",value:function(){return this.http.post(this.path+"getRoles",{},this.httpOptions)}},{key:"setUserPermission",value:function(t,e,i){return this.http.post(this.path+"changeUserPermissions",{user_uid:t,permission:e,new_value:i},this.httpOptions)}},{key:"setRolePermission",value:function(t,e,i){return this.http.post(this.path+"changeRolePermissions",{role:t,permission:e,new_value:i},this.httpOptions)}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||QO)(a.Sc(Lf),a.Sc(wO),a.Sc(ye.e),a.Sc(R_))},QO.\u0275prov=a.zc({token:QO,factory:QO.\u0275fac}),QO);si.a.of=Be;var iD=function(){function t(e){_classCallCheck(this,t),this.value=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new nD(t,this.value))}}]),t}(),nD=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var a;return _classCallCheck(this,i),(a=e.call(this,t)).value=n,a}return _createClass(i,[{key:"_next",value:function(t){this.destination.next(this.value)}}]),i}(Ve.a);function aD(t,e,i){return Ge(t,e,i)(this)}function rD(){return Pl(Kx.a)(this)}function oD(t,e){if(1&t&&(a.Jc(0,"h4",5),a.Bd(1),a.Ic()),2&t){var i=a.ad();a.pc(1),a.Cd(i.dialog_title)}}function sD(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"mat-form-field",6),a.Jc(2,"input",7),a.Wc("keyup.enter",(function(){return a.rd(i),a.ad().doAction()}))("ngModelChange",(function(t){return a.rd(i),a.ad().input=t})),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad();a.pc(2),a.gd("ngModel",n.input)("placeholder",n.input_placeholder)}}function cD(t,e){1&t&&(a.Jc(0,"div",8),a.Ec(1,"mat-spinner",9),a.Ic()),2&t&&(a.pc(1),a.gd("diameter",25))}si.a.prototype.mapTo=function(t){return function(t){return function(e){return e.lift(new iD(t))}}(t)(this)},i("XypG"),si.a.fromEvent=ol,si.a.prototype.filter=function(t,e){return ii(t,e)(this)},si.a.prototype.debounceTime=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ye;return Ze(t,e)(this)},si.a.prototype.do=aD,si.a.prototype._do=aD,si.a.prototype.switch=rD,si.a.prototype._switch=rD;var lD,uD,dD,hD,pD,fD,mD,gD,vD,bD,_D,yD,kD,wD,CD,xD,SD=((lD=function(){function t(e,i,n,a){_classCallCheck(this,t),this.postsService=e,this.data=i,this.dialogRef=n,this.snackBar=a,this.pinSetChecked=!1,this.pinSet=!0,this.resetMode=!1,this.dialog_title="",this.input_placeholder=null,this.input="",this.button_label=""}return _createClass(t,[{key:"ngOnInit",value:function(){this.data&&(this.resetMode=this.data.resetMode),this.resetMode?(this.pinSetChecked=!0,this.notSetLogic()):this.isPinSet()}},{key:"isPinSet",value:function(){var t=this;this.postsService.isPinSet().subscribe((function(e){t.pinSetChecked=!0,e.is_set?t.isSetLogic():t.notSetLogic()}))}},{key:"isSetLogic",value:function(){this.pinSet=!0,this.dialog_title="Pin Required",this.input_placeholder="Pin",this.button_label="Submit"}},{key:"notSetLogic",value:function(){this.pinSet=!1,this.dialog_title="Set your pin",this.input_placeholder="New pin",this.button_label="Set Pin"}},{key:"doAction",value:function(){var t=this;this.pinSetChecked&&0!==this.input.length&&(this.pinSet?this.postsService.checkPin(this.input).subscribe((function(e){e.success?t.dialogRef.close(!0):(t.dialogRef.close(!1),t.openSnackBar("Pin is incorrect!"))})):this.postsService.setPin(this.input).subscribe((function(e){e.success?(t.dialogRef.close(!0),t.openSnackBar("Pin successfully set!")):(t.dialogRef.close(!1),t.openSnackBar("Failed to set pin!"))})))}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||lD)(a.Dc(eD),a.Dc(Ah),a.Dc(Eh),a.Dc(R_))},lD.\u0275cmp=a.xc({type:lD,selectors:[["app-check-or-set-pin-dialog"]],decls:8,vars:5,consts:[["mat-dialog-title","",4,"ngIf"],[2,"position","relative"],[4,"ngIf"],["class","spinner-div",4,"ngIf"],["color","accent","mat-raised-button","",2,"margin-bottom","12px",3,"disabled","click"],["mat-dialog-title",""],["color","accent"],["type","password","matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],[1,"spinner-div"],[3,"diameter"]],template:function(t,e){1&t&&(a.zd(0,oD,2,1,"h4",0),a.Jc(1,"mat-dialog-content"),a.Jc(2,"div",1),a.zd(3,sD,3,2,"div",2),a.zd(4,cD,2,1,"div",3),a.Ic(),a.Ic(),a.Jc(5,"mat-dialog-actions"),a.Jc(6,"button",4),a.Wc("click",(function(){return e.doAction()})),a.Bd(7),a.Ic(),a.Ic()),2&t&&(a.gd("ngIf",e.pinSetChecked),a.pc(3),a.gd("ngIf",e.pinSetChecked),a.pc(1),a.gd("ngIf",!e.pinSetChecked),a.pc(2),a.gd("disabled",0===e.input.length),a.pc(1),a.Cd(e.button_label))},directives:[ye.t,Nh,zh,Qa,Fh,qd,Lm,yr,Er,es,zv],styles:[".spinner-div[_ngcontent-%COMP%]{position:absolute;margin:0 auto;top:30%;left:42%}"]}),lD),ID={ab:{name:"Abkhaz",nativeName:"\u0430\u04a7\u0441\u0443\u0430"},aa:{name:"Afar",nativeName:"Afaraf"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"\u12a0\u121b\u122d\u129b"},ar:{name:"Arabic",nativeName:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},an:{name:"Aragonese",nativeName:"Aragon\xe9s"},hy:{name:"Armenian",nativeName:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},as:{name:"Assamese",nativeName:"\u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be"},av:{name:"Avaric",nativeName:"\u0430\u0432\u0430\u0440 \u043c\u0430\u0446\u04c0, \u043c\u0430\u0433\u04c0\u0430\u0440\u0443\u043b \u043c\u0430\u0446\u04c0"},ae:{name:"Avestan",nativeName:"avesta"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"az\u0259rbaycan dili"},bm:{name:"Bambara",nativeName:"bamanankan"},ba:{name:"Bashkir",nativeName:"\u0431\u0430\u0448\u04a1\u043e\u0440\u0442 \u0442\u0435\u043b\u0435"},eu:{name:"Basque",nativeName:"euskara, euskera"},be:{name:"Belarusian",nativeName:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f"},bn:{name:"Bengali",nativeName:"\u09ac\u09be\u0982\u09b2\u09be"},bh:{name:"Bihari",nativeName:"\u092d\u094b\u091c\u092a\u0941\u0930\u0940"},bi:{name:"Bislama",nativeName:"Bislama"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},br:{name:"Breton",nativeName:"brezhoneg"},bg:{name:"Bulgarian",nativeName:"\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 \u0435\u0437\u0438\u043a"},my:{name:"Burmese",nativeName:"\u1017\u1019\u102c\u1005\u102c"},ca:{name:"Catalan; Valencian",nativeName:"Catal\xe0"},ch:{name:"Chamorro",nativeName:"Chamoru"},ce:{name:"Chechen",nativeName:"\u043d\u043e\u0445\u0447\u0438\u0439\u043d \u043c\u043e\u0442\u0442"},ny:{name:"Chichewa; Chewa; Nyanja",nativeName:"chiChe\u0175a, chinyanja"},zh:{name:"Chinese",nativeName:"\u4e2d\u6587 (Zh\u014dngw\xe9n), \u6c49\u8bed, \u6f22\u8a9e"},cv:{name:"Chuvash",nativeName:"\u0447\u04d1\u0432\u0430\u0448 \u0447\u04d7\u043b\u0445\u0438"},kw:{name:"Cornish",nativeName:"Kernewek"},co:{name:"Corsican",nativeName:"corsu, lingua corsa"},cr:{name:"Cree",nativeName:"\u14c0\u1426\u1403\u152d\u140d\u140f\u1423"},hr:{name:"Croatian",nativeName:"hrvatski"},cs:{name:"Czech",nativeName:"\u010desky, \u010de\u0161tina"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi; Dhivehi; Maldivian;",nativeName:"\u078b\u07a8\u0788\u07ac\u0780\u07a8"},nl:{name:"Dutch",nativeName:"Nederlands, Vlaams"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti, eesti keel"},ee:{name:"Ewe",nativeName:"E\u028begbe"},fo:{name:"Faroese",nativeName:"f\xf8royskt"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fi:{name:"Finnish",nativeName:"suomi, suomen kieli"},fr:{name:"French",nativeName:"fran\xe7ais, langue fran\xe7aise"},ff:{name:"Fula; Fulah; Pulaar; Pular",nativeName:"Fulfulde, Pulaar, Pular"},gl:{name:"Galician",nativeName:"Galego"},ka:{name:"Georgian",nativeName:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"},de:{name:"German",nativeName:"Deutsch"},el:{name:"Greek, Modern",nativeName:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},gn:{name:"Guaran\xed",nativeName:"Ava\xf1e\u1ebd"},gu:{name:"Gujarati",nativeName:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0"},ht:{name:"Haitian; Haitian Creole",nativeName:"Krey\xf2l ayisyen"},ha:{name:"Hausa",nativeName:"Hausa, \u0647\u064e\u0648\u064f\u0633\u064e"},he:{name:"Hebrew (modern)",nativeName:"\u05e2\u05d1\u05e8\u05d9\u05ea"},hz:{name:"Herero",nativeName:"Otjiherero"},hi:{name:"Hindi",nativeName:"\u0939\u093f\u0928\u094d\u0926\u0940, \u0939\u093f\u0902\u0926\u0940"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hu:{name:"Hungarian",nativeName:"Magyar"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Originally called Occidental; then Interlingue after WWII"},ga:{name:"Irish",nativeName:"Gaeilge"},ig:{name:"Igbo",nativeName:"As\u1ee5s\u1ee5 Igbo"},ik:{name:"Inupiaq",nativeName:"I\xf1upiaq, I\xf1upiatun"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"\xcdslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"\u1403\u14c4\u1483\u144e\u1450\u1466"},ja:{name:"Japanese",nativeName:"\u65e5\u672c\u8a9e (\u306b\u307b\u3093\u3054\uff0f\u306b\u3063\u307d\u3093\u3054)"},jv:{name:"Javanese",nativeName:"basa Jawa"},kl:{name:"Kalaallisut, Greenlandic",nativeName:"kalaallisut, kalaallit oqaasii"},kn:{name:"Kannada",nativeName:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"\u0915\u0936\u094d\u092e\u0940\u0930\u0940, \u0643\u0634\u0645\u064a\u0631\u064a\u200e"},kk:{name:"Kazakh",nativeName:"\u049a\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456"},km:{name:"Khmer",nativeName:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a"},ki:{name:"Kikuyu, Gikuyu",nativeName:"G\u0129k\u0169y\u0169"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},ky:{name:"Kirghiz, Kyrgyz",nativeName:"\u043a\u044b\u0440\u0433\u044b\u0437 \u0442\u0438\u043b\u0438"},kv:{name:"Komi",nativeName:"\u043a\u043e\u043c\u0438 \u043a\u044b\u0432"},kg:{name:"Kongo",nativeName:"KiKongo"},ko:{name:"Korean",nativeName:"\ud55c\uad6d\uc5b4 (\u97d3\u570b\u8a9e), \uc870\uc120\ub9d0 (\u671d\u9bae\u8a9e)"},ku:{name:"Kurdish",nativeName:"Kurd\xee, \u0643\u0648\u0631\u062f\u06cc\u200e"},kj:{name:"Kwanyama, Kuanyama",nativeName:"Kuanyama"},la:{name:"Latin",nativeName:"latine, lingua latina"},lb:{name:"Luxembourgish, Letzeburgesch",nativeName:"L\xebtzebuergesch"},lg:{name:"Luganda",nativeName:"Luganda"},li:{name:"Limburgish, Limburgan, Limburger",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Ling\xe1la"},lo:{name:"Lao",nativeName:"\u0e9e\u0eb2\u0eaa\u0eb2\u0ea5\u0eb2\u0ea7"},lt:{name:"Lithuanian",nativeName:"lietuvi\u0173 kalba"},lu:{name:"Luba-Katanga",nativeName:""},lv:{name:"Latvian",nativeName:"latvie\u0161u valoda"},gv:{name:"Manx",nativeName:"Gaelg, Gailck"},mk:{name:"Macedonian",nativeName:"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 \u0458\u0430\u0437\u0438\u043a"},mg:{name:"Malagasy",nativeName:"Malagasy fiteny"},ms:{name:"Malay",nativeName:"bahasa Melayu, \u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064a\u0648\u200e"},ml:{name:"Malayalam",nativeName:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02"},mt:{name:"Maltese",nativeName:"Malti"},mi:{name:"M\u0101ori",nativeName:"te reo M\u0101ori"},mr:{name:"Marathi (Mar\u0101\u1e6dh\u012b)",nativeName:"\u092e\u0930\u093e\u0920\u0940"},mh:{name:"Marshallese",nativeName:"Kajin M\u0327aje\u013c"},mn:{name:"Mongolian",nativeName:"\u043c\u043e\u043d\u0433\u043e\u043b"},na:{name:"Nauru",nativeName:"Ekakair\u0169 Naoero"},nv:{name:"Navajo, Navaho",nativeName:"Din\xe9 bizaad, Din\xe9k\u02bceh\u01f0\xed"},nb:{name:"Norwegian Bokm\xe5l",nativeName:"Norsk bokm\xe5l"},nd:{name:"North Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"\u0928\u0947\u092a\u093e\u0932\u0940"},ng:{name:"Ndonga",nativeName:"Owambo"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},ii:{name:"Nuosu",nativeName:"\ua188\ua320\ua4bf Nuosuhxop"},nr:{name:"South Ndebele",nativeName:"isiNdebele"},oc:{name:"Occitan",nativeName:"Occitan"},oj:{name:"Ojibwe, Ojibwa",nativeName:"\u140a\u14c2\u1511\u14c8\u142f\u14a7\u140e\u14d0"},cu:{name:"Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic",nativeName:"\u0469\u0437\u044b\u043a\u044a \u0441\u043b\u043e\u0432\u0463\u043d\u044c\u0441\u043a\u044a"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"\u0b13\u0b21\u0b3c\u0b3f\u0b06"},os:{name:"Ossetian, Ossetic",nativeName:"\u0438\u0440\u043e\u043d \xe6\u0432\u0437\u0430\u0433"},pa:{name:"Panjabi, Punjabi",nativeName:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40, \u067e\u0646\u062c\u0627\u0628\u06cc\u200e"},pi:{name:"P\u0101li",nativeName:"\u092a\u093e\u0934\u093f"},fa:{name:"Persian",nativeName:"\u0641\u0627\u0631\u0633\u06cc"},pl:{name:"Polish",nativeName:"polski"},ps:{name:"Pashto, Pushto",nativeName:"\u067e\u069a\u062a\u0648"},pt:{name:"Portuguese",nativeName:"Portugu\xeas"},qu:{name:"Quechua",nativeName:"Runa Simi, Kichwa"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"kiRundi"},ro:{name:"Romanian, Moldavian, Moldovan",nativeName:"rom\xe2n\u0103"},ru:{name:"Russian",nativeName:"\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a"},sa:{name:"Sanskrit (Sa\u1e41sk\u1e5bta)",nativeName:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"\u0938\u093f\u0928\u094d\u0927\u0940, \u0633\u0646\u068c\u064a\u060c \u0633\u0646\u062f\u06be\u06cc\u200e"},se:{name:"Northern Sami",nativeName:"Davvis\xe1megiella"},sm:{name:"Samoan",nativeName:"gagana faa Samoa"},sg:{name:"Sango",nativeName:"y\xe2ng\xe2 t\xee s\xe4ng\xf6"},sr:{name:"Serbian",nativeName:"\u0441\u0440\u043f\u0441\u043a\u0438 \u0458\u0435\u0437\u0438\u043a"},gd:{name:"Scottish Gaelic; Gaelic",nativeName:"G\xe0idhlig"},sn:{name:"Shona",nativeName:"chiShona"},si:{name:"Sinhala, Sinhalese",nativeName:"\u0dc3\u0dd2\u0d82\u0dc4\u0dbd"},sk:{name:"Slovak",nativeName:"sloven\u010dina"},sl:{name:"Slovene",nativeName:"sloven\u0161\u010dina"},so:{name:"Somali",nativeName:"Soomaaliga, af Soomaali"},st:{name:"Southern Sotho",nativeName:"Sesotho"},es:{name:"Spanish; Castilian",nativeName:"espa\xf1ol"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sw:{name:"Swahili",nativeName:"Kiswahili"},ss:{name:"Swati",nativeName:"SiSwati"},sv:{name:"Swedish",nativeName:"svenska"},ta:{name:"Tamil",nativeName:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd"},te:{name:"Telugu",nativeName:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41"},tg:{name:"Tajik",nativeName:"\u0442\u043e\u04b7\u0438\u043a\u04e3, to\u011fik\u012b, \u062a\u0627\u062c\u06cc\u06a9\u06cc\u200e"},th:{name:"Thai",nativeName:"\u0e44\u0e17\u0e22"},ti:{name:"Tigrinya",nativeName:"\u1275\u130d\u122d\u129b"},bo:{name:"Tibetan Standard, Tibetan, Central",nativeName:"\u0f56\u0f7c\u0f51\u0f0b\u0f61\u0f72\u0f42"},tk:{name:"Turkmen",nativeName:"T\xfcrkmen, \u0422\u04af\u0440\u043a\u043c\u0435\u043d"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog, \u170f\u1712\u1703\u1705\u1714 \u1706\u1704\u170e\u1713\u1704\u1714"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga (Tonga Islands)",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"T\xfcrk\xe7e"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430, tatar\xe7a, \u062a\u0627\u062a\u0627\u0631\u0686\u0627\u200e"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uighur, Uyghur",nativeName:"Uy\u01a3urq\u0259, \u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5\u200e"},uk:{name:"Ukrainian",nativeName:"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},ur:{name:"Urdu",nativeName:"\u0627\u0631\u062f\u0648"},uz:{name:"Uzbek",nativeName:"zbek, \u040e\u0437\u0431\u0435\u043a, \u0623\u06c7\u0632\u0628\u06d0\u0643\u200e"},ve:{name:"Venda",nativeName:"Tshiven\u1e13a"},vi:{name:"Vietnamese",nativeName:"Ti\u1ebfng Vi\u1ec7t"},vo:{name:"Volap\xfck",nativeName:"Volap\xfck"},wa:{name:"Walloon",nativeName:"Walon"},cy:{name:"Welsh",nativeName:"Cymraeg"},wo:{name:"Wolof",nativeName:"Wollof"},fy:{name:"Western Frisian",nativeName:"Frysk"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9"},yo:{name:"Yoruba",nativeName:"Yor\xf9b\xe1"},za:{name:"Zhuang, Chuang",nativeName:"Sa\u026f cue\u014b\u0185, Saw cuengh"}},OD={uncategorized:{label:"Main"},network:{label:"Network"},geo_restriction:{label:"Geo Restriction"},video_selection:{label:"Video Selection"},download:{label:"Download"},filesystem:{label:"Filesystem"},thumbnail:{label:"Thumbnail"},verbosity:{label:"Verbosity"},workarounds:{label:"Workarounds"},video_format:{label:"Video Format"},subtitle:{label:"Subtitle"},authentication:{label:"Authentication"},adobe_pass:{label:"Adobe Pass"},post_processing:{label:"Post Processing"}},DD={uncategorized:[{key:"-h",alt:"--help",description:"Print this help text and exit"},{key:"--version",description:"Print program version and exit"},{key:"-U",alt:"--update",description:"Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)"},{key:"-i",alt:"--ignore-errors",description:"Continue on download errors, for example to skip unavailable videos in a playlist"},{key:"--abort-on-error",description:"Abort downloading of further videos (in the playlist or the command line) if an error occurs"},{key:"--dump-user-agent",description:"Display the current browser identification"},{key:"--list-extractors",description:"List all supported extractors"},{key:"--extractor-descriptions",description:"Output descriptions of all supported extractors"},{key:"--force-generic-extractor",description:"Force extraction to use the generic extractor"},{key:"--default-search",description:'Use this prefix for unqualified URLs. For example "gvsearch2:" downloads two videos from google videos for youtube-dl "large apple". Use the value "auto" to let youtube-dl guess ("auto_warning" to emit awarning when guessing). "error" just throws an error. The default value "fixup_error" repairs broken URLs, but emits an error if this is not possible instead of searching.'},{key:"--ignore-config",description:"Do not read configuration files. When given in the global configuration file /etc/youtube-dl.conf: Do not read the user configuration in ~/.config/youtube-dl/config (%APPDATA%/youtube-dl/config.txt on Windows)"},{key:"--config-location",description:"Location of the configuration file; either the path to the config or its containing directory."},{key:"--flat-playlist",description:"Do not extract the videos of a playlist, only list them."},{key:"--mark-watched",description:"Mark videos watched (YouTube only)"},{key:"--no-mark-watched",description:"Do not mark videos watched (YouTube only)"},{key:"--no-color",description:"Do not emit color codes in output"}],network:[{key:"--proxy",description:'Use the specified HTTP/HTTPS/SOCKS proxy.To enable SOCKS proxy, specify a proper scheme. For example socks5://127.0.0.1:1080/. Pass in an empty string (--proxy "") for direct connection.'},{key:"--socket-timeout",description:"Time to wait before giving up, in seconds"},{key:"--source-address",description:"Client-side IP address to bind to"},{key:"-4",alt:"--force-ipv4",description:"Make all connections via IPv4"},{key:"-6",alt:"--force-ipv6",description:"Make all connections via IPv6"}],geo_restriction:[{key:"--geo-verification-proxy",description:"Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by --proxy', if the option is not present) is used for the actual downloading."},{key:"--geo-bypass",description:"Bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--no-geo-bypass",description:"Do not bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--geo-bypass-country",description:"Force bypass geographic restriction with explicitly provided two-letter ISO 3166-2 country code"},{key:"--geo-bypass-ip-block",description:"Force bypass geographic restriction with explicitly provided IP block in CIDR notation"}],video_selection:[{key:"--playlist-start",description:"Playlist video to start at (default is 1)"},{key:"--playlist-end",description:"Playlist video to end at (default is last)"},{key:"--playlist-items",description:'Playlist video items to download. Specify indices of the videos in the playlist separated by commas like: "--playlist-items 1,2,5,8" if you want to download videos indexed 1, 2, 5, 8 in the playlist. You can specify range: "--playlist-items 1-3,7,10-13", it will download the videos at index 1, 2, 3, 7, 10, 11, 12 and 13.'},{key:"--match-title",description:"Download only matching titles (regex orcaseless sub-string)"},{key:"--reject-title",description:"Skip download for matching titles (regex orcaseless sub-string)"},{key:"--max-downloads",description:"Abort after downloading NUMBER files"},{key:"--min-filesize",description:"Do not download any videos smaller than SIZE (e.g. 50k or 44.6m)"},{key:"--max-filesize",description:"Do not download any videos larger than SIZE (e.g. 50k or 44.6m)"},{key:"--date",description:"Download only videos uploaded in this date"},{key:"--datebefore",description:"Download only videos uploaded on or before this date (i.e. inclusive)"},{key:"--dateafter",description:"Download only videos uploaded on or after this date (i.e. inclusive)"},{key:"--min-views",description:"Do not download any videos with less than COUNT views"},{key:"--max-views",description:"Do not download any videos with more than COUNT views"},{key:"--match-filter",description:'Generic video filter. Specify any key (seethe "OUTPUT TEMPLATE" for a list of available keys) to match if the key is present, !key to check if the key is not present, key > NUMBER (like "comment_count > 12", also works with >=, <, <=, !=, =) to compare against a number, key = \'LITERAL\' (like "uploader = \'Mike Smith\'", also works with !=) to match against a string literal and & to require multiple matches. Values which are not known are excluded unless you put a question mark (?) after the operator. For example, to only match videos that have been liked more than 100 times and disliked less than 50 times (or the dislike functionality is not available at the given service), but who also have a description, use --match-filter'},{key:"--no-playlist",description:"Download only the video, if the URL refers to a video and a playlist."},{key:"--yes-playlist",description:"Download the playlist, if the URL refers to a video and a playlist."},{key:"--age-limit",description:"Download only videos suitable for the given age"},{key:"--download-archive",description:"Download only videos not listed in the archive file. Record the IDs of all downloaded videos in it."},{key:"--include-ads",description:"Download advertisements as well (experimental)"}],download:[{key:"-r",alt:"--limit-rate",description:"Maximum download rate in bytes per second(e.g. 50K or 4.2M)"},{key:"-R",alt:"--retries",description:'Number of retries (default is 10), or "infinite".'},{key:"--fragment-retries",description:'Number of retries for a fragment (default is 10), or "infinite" (DASH, hlsnative and ISM)'},{key:"--skip-unavailable-fragments",description:"Skip unavailable fragments (DASH, hlsnative and ISM)"},{key:"--abort-on-unavailable-fragment",description:"Abort downloading when some fragment is not available"},{key:"--keep-fragments",description:"Keep downloaded fragments on disk after downloading is finished; fragments are erased by default"},{key:"--buffer-size",description:"Size of download buffer (e.g. 1024 or 16K) (default is 1024)"},{key:"--no-resize-buffer",description:"Do not automatically adjust the buffer size. By default, the buffer size is automatically resized from an initial value of SIZE."},{key:"--http-chunk-size",description:"Size of a chunk for chunk-based HTTP downloading (e.g. 10485760 or 10M) (default is disabled). May be useful for bypassing bandwidth throttling imposed by a webserver (experimental)"},{key:"--playlist-reverse",description:"Download playlist videos in reverse order"},{key:"--playlist-random",description:"Download playlist videos in random order"},{key:"--xattr-set-filesize",description:"Set file xattribute ytdl.filesize with expected file size"},{key:"--hls-prefer-native",description:"Use the native HLS downloader instead of ffmpeg"},{key:"--hls-prefer-ffmpeg",description:"Use ffmpeg instead of the native HLS downloader"},{key:"--hls-use-mpegts",description:"Use the mpegts container for HLS videos, allowing to play the video while downloading (some players may not be able to play it)"},{key:"--external-downloader",description:"Use the specified external downloader. Currently supports aria2c,avconv,axel,curl,ffmpeg,httpie,wget"},{key:"--external-downloader-args"}],filesystem:[{key:"-a",alt:"--batch-file",description:"File containing URLs to download ('-' for stdin), one URL per line. Lines starting with '#', ';' or ']' are considered as comments and ignored."},{key:"--id",description:"Use only video ID in file name"},{key:"-o",alt:"--output",description:'Output filename template, see the "OUTPUT TEMPLATE" for all the info'},{key:"--autonumber-start",description:"Specify the start value for %(autonumber)s (default is 1)"},{key:"--restrict-filenames",description:'Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames'},{key:"-w",alt:"--no-overwrites",description:"Do not overwrite files"},{key:"-c",alt:"--continue",description:"Force resume of partially downloaded files. By default, youtube-dl will resume downloads if possible."},{key:"--no-continue",description:"Do not resume partially downloaded files (restart from beginning)"},{key:"--no-part",description:"Do not use .part files - write directlyinto output file"},{key:"--no-mtime",description:"Do not use the Last-modified header to set the file modification time"},{key:"--write-description",description:"Write video description to a .description file"},{key:"--write-info-json",description:"Write video metadata to a .info.json file"},{key:"--write-annotations",description:"Write video annotations to a.annotations.xml file"},{key:"--load-info-json",description:'JSON file containing the video information (created with the "--write-info-json" option)'},{key:"--cookies",description:"File to read cookies from and dump cookie jar in"},{key:"--cache-dir",description:"Location in the file system where youtube-dl can store some downloaded information permanently. By default $XDG_CACHE_HOME/youtube-dl or ~/.cache/youtube-dl . At the moment, only YouTube player files (for videos with obfuscated signatures) are cached, but that may change."},{key:"--no-cache-dir",description:"Disable filesystem caching"},{key:"--rm-cache-dir",description:"Delete all filesystem cache files"}],thumbnail:[{key:"--write-thumbnail",description:"Write thumbnail image to disk"},{key:"--write-all-thumbnails",description:"Write all thumbnail image formats to disk"},{key:"--list-thumbnails",description:"Simulate and list all available thumbnail formats"}],verbosity:[{key:"-q",alt:"--quiet",description:"Activate quiet mode"},{key:"--no-warnings",description:"Ignore warnings"},{key:"-s",alt:"--simulate",description:"Do not download the video and do not writeanything to disk"},{key:"--skip-download",description:"Do not download the video"},{key:"-g",alt:"--get-url",description:"Simulate, quiet but print URL"},{key:"-e",alt:"--get-title",description:"Simulate, quiet but print title"},{key:"--get-id",description:"Simulate, quiet but print id"},{key:"--get-thumbnail",description:"Simulate, quiet but print thumbnail URL"},{key:"--get-description",description:"Simulate, quiet but print video description"},{key:"--get-duration",description:"Simulate, quiet but print video length"},{key:"--get-filename",description:"Simulate, quiet but print output filename"},{key:"--get-format",description:"Simulate, quiet but print output format"},{key:"-j",alt:"--dump-json",description:'Simulate, quiet but print JSON information. See the "OUTPUT TEMPLATE" for a description of available keys.'},{key:"-J",alt:"--dump-single-json",description:"Simulate, quiet but print JSON information for each command-line argument. If the URL refers to a playlist, dump the whole playlist information in a single line."},{key:"--print-json",description:"Be quiet and print the video information as JSON (video is still being downloaded)."},{key:"--newline",description:"Output progress bar as new lines"},{key:"--no-progress",description:"Do not print progress bar"},{key:"--console-title",description:"Display progress in console title bar"},{key:"-v",alt:"--verbose",description:"Print various debugging information"},{key:"--dump-pages",description:"Print downloaded pages encoded using base64 to debug problems (very verbose)"},{key:"--write-pages",description:"Write downloaded intermediary pages to files in the current directory to debug problems"},{key:"--print-traffic",description:"Display sent and read HTTP traffic"},{key:"-C",alt:"--call-home",description:"Contact the youtube-dl server for debugging"},{key:"--no-call-home",description:"Do NOT contact the youtube-dl server for debugging"}],workarounds:[{key:"--encoding",description:"Force the specified encoding (experimental)"},{key:"--no-check-certificate",description:"Suppress HTTPS certificate validation"},{key:"--prefer-insecure",description:"Use an unencrypted connection to retrieve information about the video. (Currently supported only for YouTube)"},{key:"--user-agent",description:"Specify a custom user agent"},{key:"--referer",description:"Specify a custom referer, use if the video access is restricted to one domain"},{key:"--add-header",description:"Specify a custom HTTP header and its value, separated by a colon ':'. You can use this option multiple times"},{key:"--bidi-workaround",description:"Work around terminals that lack bidirectional text support. Requires bidiv or fribidi executable in PATH"},{key:"--sleep-interval",description:"Number of seconds to sleep before each download when used alone or a lower boundof a range for randomized sleep before each download (minimum possible number of seconds to sleep) when used along with --max-sleep-interval"},{key:"--max-sleep-interval",description:"Upper bound of a range for randomized sleep before each download (maximum possible number of seconds to sleep). Must only beused along with --min-sleep-interval"}],video_format:[{key:"-f",alt:"--format",description:'Video format code, see the "FORMAT SELECTION" for all the info'},{key:"--all-formats",description:"Download all available video formats"},{key:"--prefer-free-formats",description:"Prefer free video formats unless a specific one is requested"},{key:"-F",alt:"--list-formats",description:"List all available formats of requested videos"},{key:"--youtube-skip-dash-manifest",description:"Do not download the DASH manifests and related data on YouTube videos"},{key:"--merge-output-format",description:"If a merge is required (e.g. bestvideo+bestaudio), output to given container format. One of mkv, mp4, ogg, webm, flv. Ignored if no merge is required"}],subtitle:[{key:"--write-sub",description:"Write subtitle file"},{key:"--write-auto-sub",description:"Write automatically generated subtitle file (YouTube only)"},{key:"--all-subs",description:"Download all the available subtitles of the video"},{key:"--list-subs",description:"List all available subtitles for the video"},{key:"--sub-format",description:'Subtitle format, accepts formats preference, for example: "srt" or "ass/srt/best"'},{key:"--sub-lang",description:"Languages of the subtitles to download (optional) separated by commas, use --list-subs"}],authentication:[{key:"-u",alt:"--username",description:"Login with this account ID"},{key:"-p",alt:"--password",description:"Account password. If this option is left out, youtube-dl will ask interactively."},{key:"-2",alt:"--twofactor",description:"Two-factor authentication code"},{key:"-n",alt:"--netrc",description:"Use .netrc authentication data"},{key:"--video-password",description:"Video password (vimeo, smotri, youku)"}],adobe_pass:[{key:"--ap-mso",description:"Adobe Pass multiple-system operator (TV provider) identifier, use --ap-list-mso"},{key:"--ap-username",description:"Multiple-system operator account login"},{key:"--ap-password",description:"Multiple-system operator account password. If this option is left out, youtube-dl will ask interactively."},{key:"--ap-list-mso",description:"List all supported multiple-system operators"}],post_processing:[{key:"-x",alt:"--extract-audio",description:"Convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe)"},{key:"--audio-format",description:'Specify audio format: "best", "aac", "flac", "mp3", "m4a", "opus", "vorbis", or "wav"; "best" by default; No effect without -x'},{key:"--audio-quality",description:"Specify ffmpeg/avconv audio quality, insert a value between 0 (better) and 9 (worse)for VBR or a specific bitrate like 128K (default 5)"},{key:"--recode-video",description:"Encode the video to another format if necessary (currently supported:mp4|flv|ogg|webm|mkv|avi)"},{key:"--postprocessor-args",description:"Give these arguments to the postprocessor"},{key:"-k",alt:"--keep-video",description:"Keep the video file on disk after the post-processing; the video is erased by default"},{key:"--no-post-overwrites",description:"Do not overwrite post-processed files; the post-processed files are overwritten by default"},{key:"--embed-subs",description:"Embed subtitles in the video (only for mp4,webm and mkv videos)"},{key:"--embed-thumbnail",description:"Embed thumbnail in the audio as cover art"},{key:"--add-metadata",description:"Write metadata to the video file"},{key:"--metadata-from-title",description:"Parse additional metadata like song title/artist from the video title. The format syntax is the same as --output"},{key:"--xattrs",description:"Write metadata to the video file's xattrs (using dublin core and xdg standards)"},{key:"--fixup",description:"Automatically correct known faults of the file. One of never (do nothing), warn (only emit a warning), detect_or_warn (the default; fix file if we can, warn otherwise)"},{key:"--prefer-avconv",description:"Prefer avconv over ffmpeg for running the postprocessors"},{key:"--prefer-ffmpeg",description:"Prefer ffmpeg over avconv for running the postprocessors (default)"},{key:"--ffmpeg-location",description:"Location of the ffmpeg/avconv binary; either the path to the binary or its containing directory."},{key:"--exec",description:"Execute a command on the file after downloading, similar to find's -exec syntax. Example: --exec"},{key:"--convert-subs",description:"Convert the subtitles to other format (currently supported: srt|ass|vtt|lrc)"}]},ED=["*"],AD=Gn(Hn(Un(Vn((function t(e){_classCallCheck(this,t),this._elementRef=e}))),"primary"),-1),TD=((pD=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||pD)},pD.\u0275dir=a.yc({type:pD,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"]}),pD),PD=((hD=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||hD)},hD.\u0275dir=a.yc({type:hD,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"]}),hD),RD=((dD=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,s,c,l,u){var d;return _classCallCheck(this,i),(d=e.call(this,t))._elementRef=t,d._ngZone=n,d._changeDetectorRef=c,d._hasFocus=!1,d.chipListSelectable=!0,d._chipListMultiple=!1,d._selected=!1,d._selectable=!0,d._removable=!0,d._onFocus=new Le.a,d._onBlur=new Le.a,d.selectionChange=new a.u,d.destroyed=new a.u,d.removed=new a.u,d._addHostClassName(),d._chipRippleTarget=(u||document).createElement("div"),d._chipRippleTarget.classList.add("mat-chip-ripple"),d._elementRef.nativeElement.appendChild(d._chipRippleTarget),d._chipRipple=new Oa(_assertThisInitialized(d),n,d._chipRippleTarget,r),d._chipRipple.setupTriggerEvents(t),d.rippleConfig=o||{},d._animationsDisabled="NoopAnimations"===s,d.tabIndex=null!=l&&parseInt(l)||-1,d}return _createClass(i,[{key:"_addHostClassName",value:function(){var t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._markForCheck())}},{key:"toggleSelected",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(t),this._markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(t){this.disabled?t.preventDefault():t.stopPropagation()}},{key:"_handleKeydown",value:function(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}},{key:"_blur",value:function(){var t=this;this._ngZone.onStable.asObservable().pipe(ui(1)).subscribe((function(){t._ngZone.run((function(){t._hasFocus=!1,t._onBlur.next({chip:t})}))}))}},{key:"_dispatchSelectionChange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}},{key:"_markForCheck",value:function(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(t){var e=fi(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(t){this._value=t}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(t){this._selectable=fi(t)}},{key:"removable",get:function(){return this._removable},set:function(t){this._removable=fi(t)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}}]),i}(AD)).\u0275fac=function(t){return new(t||dD)(a.Dc(a.r),a.Dc(a.I),a.Dc(Ii),a.Dc(Da,8),a.Dc(Pe,8),a.Dc(a.j),a.Tc("tabindex"),a.Dc(ye.e,8))},dD.\u0275dir=a.yc({type:dD,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){var n;1&t&&(a.vc(i,TD,!0),a.vc(i,PD,!0),a.vc(i,MD,!0)),2&t&&(a.md(n=a.Xc())&&(e.avatar=n.first),a.md(n=a.Xc())&&(e.trailingIcon=n.first),a.md(n=a.Xc())&&(e.removeIcon=n.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&a.Wc("click",(function(t){return e._handleClick(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()})),2&t&&(a.qc("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),a.tc("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[a.mc]}),dD),MD=((uD=function(){function t(e,i){_classCallCheck(this,t),this._parentChip=e,i&&"BUTTON"===i.nativeElement.nodeName&&i.nativeElement.setAttribute("type","button")}return _createClass(t,[{key:"_handleClick",value:function(t){var e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}]),t}()).\u0275fac=function(t){return new(t||uD)(a.Dc(RD),a.Dc(a.r))},uD.\u0275dir=a.yc({type:uD,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&a.Wc("click",(function(t){return e._handleClick(t)}))}}),uD),LD=new a.x("mat-chips-default-options"),jD=Wn((function t(e,i,n,a){_classCallCheck(this,t),this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=a})),FD=0,ND=function t(e,i){_classCallCheck(this,t),this.source=e,this.value=i},zD=((mD=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,s,c,l){var u;return _classCallCheck(this,i),(u=e.call(this,c,o,s,l))._elementRef=t,u._changeDetectorRef=n,u._dir=r,u.ngControl=l,u.controlType="mat-chip-list",u._lastDestroyedChipIndex=null,u._destroyed=new Le.a,u._uid="mat-chip-list-".concat(FD++),u._tabIndex=0,u._userTabIndex=null,u._onTouched=function(){},u._onChange=function(){},u._multiple=!1,u._compareWith=function(t,e){return t===e},u._required=!1,u._disabled=!1,u.ariaOrientation="horizontal",u._selectable=!0,u.change=new a.u,u.valueChange=new a.u,u.ngControl&&(u.ngControl.valueAccessor=_assertThisInitialized(u)),u}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new Xi(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Dl(this._destroyed)).subscribe((function(e){return t._keyManager.withHorizontalOrientation(e)})),this._keyManager.tabOut.pipe(Dl(this._destroyed)).subscribe((function(){t._allowFocusEscape()})),this.chips.changes.pipe(Tn(null),Dl(this._destroyed)).subscribe((function(){t.disabled&&Promise.resolve().then((function(){t._syncChipsState()})),t._resetChips(),t._initializeSelection(),t._updateTabIndex(),t._updateFocusForDestroyedChips(),t.stateChanges.next()}))}},{key:"ngOnInit",value:function(){this._selectionModel=new ar(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(t){this._chipInput=t}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"writeValue",value:function(t){this.chips&&this._setSelectionByValue(t,!1)}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this.stateChanges.next()}},{key:"onContainerClick",value:function(t){this._originatesFromChip(t)||this.focus()}},{key:"focus",value:function(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}},{key:"_focusInput",value:function(t){this._chipInput&&this._chipInput.focus(t)}},{key:"_keydown",value:function(t){var e=t.target;8===t.keyCode&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(36===t.keyCode?(this._keyManager.setFirstItemActive(),t.preventDefault()):35===t.keyCode?(this._keyManager.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(t){return t>=0&&t<this.chips.length}},{key:"_isInputEmpty",value:function(t){return!(!t||"input"!==t.nodeName.toLowerCase()||t.value)}},{key:"_setSelectionByValue",value:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach((function(t){return t.deselect()})),Array.isArray(t))t.forEach((function(t){return e._selectValue(t,i)})),this._sortValues();else{var n=this._selectValue(t,i);n&&i&&this._keyManager.setActiveItem(n)}}},{key:"_selectValue",value:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.chips.find((function(i){return null!=i.value&&e._compareWith(i.value,t)}));return n&&(i?n.selectViaInteraction():n.select(),this._selectionModel.select(n)),n}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then((function(){(t.ngControl||t._value)&&(t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value,!1),t.stateChanges.next())}))}},{key:"_clearSelection",value:function(t){this._selectionModel.clear(),this.chips.forEach((function(e){e!==t&&e.deselect()})),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach((function(e){e.selected&&t._selectionModel.select(e)})),this.stateChanges.next())}},{key:"_propagateChanges",value:function(t){var e;e=Array.isArray(this.selected)?this.selected.map((function(t){return t.value})):this.selected?this.selected.value:t,this._value=e,this.change.emit(new ND(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var t=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout((function(){t.focused||t._markAsTouched()})):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var t=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout((function(){t._tabIndex=t._userTabIndex||0,t._changeDetectorRef.markForCheck()})))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var t=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe((function(e){e.source.selected?t._selectionModel.select(e.source):t._selectionModel.deselect(e.source),t.multiple||t.chips.forEach((function(e){!t._selectionModel.isSelected(e)&&e.selected&&e.deselect()})),e.isUserInput&&t._propagateChanges()}))}},{key:"_listenToChipsFocus",value:function(){var t=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe((function(e){var i=t.chips.toArray().indexOf(e.chip);t._isValidIndex(i)&&t._keyManager.updateActiveItem(i),t.stateChanges.next()})),this._chipBlurSubscription=this.chipBlurChanges.subscribe((function(){t._blur(),t.stateChanges.next()}))}},{key:"_listenToChipsRemoved",value:function(){var t=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe((function(e){var i=e.chip,n=t.chips.toArray().indexOf(e.chip);t._isValidIndex(n)&&i._hasFocus&&(t._lastDestroyedChipIndex=n)}))}},{key:"_originatesFromChip",value:function(t){for(var e=t.target;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips.some((function(t){return t._hasFocus}))}},{key:"_syncChipsState",value:function(){var t=this;this.chips&&this.chips.forEach((function(e){e.disabled=t._disabled,e._chipListMultiple=t.multiple}))}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=fi(t),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){this.writeValue(t),this._value=t}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=fi(t),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&0===this.chips.length}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(t){this._disabled=fi(t),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(t){var e=this;this._selectable=fi(t),this.chips&&this.chips.forEach((function(t){return t.chipListSelectable=e._selectable}))}},{key:"tabIndex",set:function(t){this._userTabIndex=t,this._tabIndex=t}},{key:"chipSelectionChanges",get:function(){return Object(rl.a).apply(void 0,_toConsumableArray(this.chips.map((function(t){return t.selectionChange}))))}},{key:"chipFocusChanges",get:function(){return Object(rl.a).apply(void 0,_toConsumableArray(this.chips.map((function(t){return t._onFocus}))))}},{key:"chipBlurChanges",get:function(){return Object(rl.a).apply(void 0,_toConsumableArray(this.chips.map((function(t){return t._onBlur}))))}},{key:"chipRemoveChanges",get:function(){return Object(rl.a).apply(void 0,_toConsumableArray(this.chips.map((function(t){return t.destroyed}))))}}]),i}(jD)).\u0275fac=function(t){return new(t||mD)(a.Dc(a.r),a.Dc(a.j),a.Dc(xn,8),a.Dc(qo,8),a.Dc(ss,8),a.Dc(ha),a.Dc(Or,10))},mD.\u0275cmp=a.xc({type:mD,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){var n;1&t&&a.vc(i,RD,!0),2&t&&a.md(n=a.Xc())&&(e.chips=n)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&a.Wc("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()}))("keydown",(function(t){return e._keydown(t)})),2&t&&(a.Mc("id",e._uid),a.qc("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),a.tc("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[a.oc([{provide:Dd,useExisting:mD}]),a.mc],ngContentSelectors:ED,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(a.fd(),a.Jc(0,"div",0),a.ed(1),a.Ic())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),mD),BD=0,JD=((fD=function(){function t(e,i){_classCallCheck(this,t),this._elementRef=e,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new a.u,this.placeholder="",this.id="mat-chip-list-input-".concat(BD++),this._disabled=!1,this._inputElement=this._elementRef.nativeElement}return _createClass(t,[{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"_keydown",value:function(t){t&&9===t.keyCode&&!Je(t,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(t)}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(t){!this._inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),t&&t.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(t){this._inputElement.focus(t)}},{key:"_isSeparatorKey",value:function(t){if(Je(t))return!1;var e=this.separatorKeyCodes,i=t.keyCode;return Array.isArray(e)?e.indexOf(i)>-1:e.has(i)}},{key:"chipList",set:function(t){t&&(this._chipList=t,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(t){this._addOnBlur=fi(t)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(t){this._disabled=fi(t)}},{key:"empty",get:function(){return!this._inputElement.value}}]),t}()).\u0275fac=function(t){return new(t||fD)(a.Dc(a.r),a.Dc(LD))},fD.\u0275dir=a.yc({type:fD,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&a.Wc("keydown",(function(t){return e._keydown(t)}))("blur",(function(){return e._blur()}))("focus",(function(){return e._focus()}))("input",(function(){return e._onInput()})),2&t&&(a.Mc("id",e.id),a.qc("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[a.nc]}),fD),VD={separatorKeyCodes:[13]},HD=((gD=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:gD}),gD.\u0275inj=a.Ac({factory:function(t){return new(t||gD)},providers:[ha,{provide:LD,useValue:VD}]}),gD),UD=["chipper"];function GD(t,e){1&t&&(a.Jc(0,"mat-icon",27),a.Bd(1,"cancel"),a.Ic())}function WD(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-chip",25),a.Wc("removed",(function(){a.rd(i);var t=e.index;return a.ad().remove(t)})),a.Bd(1),a.zd(2,GD,2,0,"mat-icon",26),a.Ic()}if(2&t){var n=e.$implicit,r=a.ad();a.gd("matTooltip",r.argsByKey[n]?r.argsByKey[n].description:null)("selectable",r.selectable)("removable",r.removable),a.pc(1),a.Dd(" ",n," "),a.pc(1),a.gd("ngIf",r.removable)}}function qD(t,e){if(1&t&&(a.Jc(0,"mat-option",28),a.Ec(1,"span",29),a.bd(2,"highlight"),a.Jc(3,"button",30),a.Jc(4,"mat-icon"),a.Bd(5,"info"),a.Ic(),a.Ic(),a.Ic()),2&t){var i=e.$implicit,n=a.ad();a.gd("value",i.key),a.pc(1),a.gd("innerHTML",a.dd(2,3,i.key,n.chipCtrl.value),a.sd),a.pc(2),a.gd("matTooltip",i.description)}}function $D(t,e){if(1&t&&(a.Jc(0,"mat-option",28),a.Ec(1,"span",29),a.bd(2,"highlight"),a.Jc(3,"button",30),a.Jc(4,"mat-icon"),a.Bd(5,"info"),a.Ic(),a.Ic(),a.Ic()),2&t){var i=e.$implicit,n=a.ad();a.gd("value",i.key),a.pc(1),a.gd("innerHTML",a.dd(2,3,i.key,n.stateCtrl.value),a.sd),a.pc(2),a.gd("matTooltip",i.description)}}function KD(t,e){if(1&t){var i=a.Kc();a.Jc(0,"button",34),a.Wc("click",(function(){a.rd(i);var t=e.$implicit;return a.ad(2).setFirstArg(t.key)})),a.Jc(1,"div",35),a.Bd(2),a.Ic(),a.Bd(3,"\xa0\xa0"),a.Jc(4,"div",36),a.Jc(5,"mat-icon",37),a.Bd(6,"info"),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=e.$implicit;a.pc(2),a.Cd(n.key),a.pc(3),a.gd("matTooltip",n.description)}}function XD(t,e){if(1&t&&(a.Hc(0),a.Jc(1,"button",31),a.Bd(2),a.Ic(),a.Jc(3,"mat-menu",null,32),a.zd(5,KD,7,2,"button",33),a.Ic(),a.Gc()),2&t){var i=e.$implicit,n=a.nd(4),r=a.ad();a.pc(1),a.gd("matMenuTriggerFor",n),a.pc(1),a.Cd(r.argsInfo[i.key].label),a.pc(3),a.gd("ngForOf",i.value)}}vD=$localize(_templateObject()),bD=$localize(_templateObject2()),_D=$localize(_templateObject3()),yD=$localize(_templateObject4()),kD=$localize(_templateObject5()),wD=$localize(_templateObject6()),CD=$localize(_templateObject7()),xD=$localize(_templateObject8());var YD=["placeholder",$localize(_templateObject9())],ZD=function(){return{standalone:!0}};function QD(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"mat-form-field",14),a.Jc(2,"input",38),a.Pc(3,YD),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad().secondArg=t})),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad();a.pc(2),a.gd("ngModelOptions",a.id(3,ZD))("disabled",!n.secondArgEnabled)("ngModel",n.secondArg)}}var tE,eE,iE=((eE=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t,e){var i=e?e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").split(" ").filter((function(t){return t.length>0})).join("|"):void 0,n=new RegExp(i,"gi");return e?t.replace(n,(function(t){return"<b>".concat(t,"</b>")})):t}}]),t}()).\u0275fac=function(t){return new(t||eE)},eE.\u0275pipe=a.Cc({name:"highlight",type:eE,pure:!0}),eE),nE=((tE=function(){function t(e,i,n){_classCallCheck(this,t),this.data=e,this.dialogRef=i,this.dialog=n,this.myGroup=new Vo,this.firstArg="",this.secondArg="",this.secondArgEnabled=!1,this.modified_args="",this.stateCtrl=new Vo,this.chipCtrl=new Vo,this.availableArgs=null,this.argsByCategory=null,this.argsByKey=null,this.argsInfo=null,this.chipInput="",this.visible=!0,this.selectable=!0,this.removable=!0,this.addOnBlur=!1,this.args_array=null,this.separatorKeysCodes=[13,188]}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.data&&(this.modified_args=this.data.initial_args,this.generateArgsArray()),this.getAllPossibleArgs(),this.filteredOptions=this.stateCtrl.valueChanges.pipe(Tn(""),Object(ri.a)((function(e){return t.filter(e)}))),this.filteredChipOptions=this.chipCtrl.valueChanges.pipe(Tn(""),Object(ri.a)((function(e){return t.filter(e)})))}},{key:"ngAfterViewInit",value:function(){var t=this;this.autoTrigger.panelClosingActions.subscribe((function(e){t.autoTrigger.activeOption&&(console.log(t.autoTrigger.activeOption.value),t.chipCtrl.setValue(t.autoTrigger.activeOption.value))}))}},{key:"filter",value:function(t){if(this.availableArgs)return this.availableArgs.filter((function(e){return e.key.toLowerCase().includes(t.toLowerCase())}))}},{key:"addArg",value:function(){this.modified_args||(this.modified_args=""),""!==this.modified_args&&(this.modified_args+=",,"),this.modified_args+=this.stateCtrl.value+(this.secondArgEnabled?",,"+this.secondArg:""),this.generateArgsArray()}},{key:"canAddArg",value:function(){return this.stateCtrl.value&&""!==this.stateCtrl.value&&(!this.secondArgEnabled||this.secondArg&&""!==this.secondArg)}},{key:"getFirstArg",value:function(){var t=this;return new Promise((function(e){e(t.stateCtrl.value)}))}},{key:"getValueAsync",value:function(t){return new Promise((function(e){e(t)}))}},{key:"getAllPossibleArgs",value:function(){var t=DD,e=Object.keys(t).map((function(e){return t[e]})),i=[].concat.apply([],e),n=i.reduce((function(t,e){return t[e.key]=e,t}),{});this.argsByKey=n,this.availableArgs=i,this.argsByCategory=t,this.argsInfo=OD}},{key:"setFirstArg",value:function(t){this.stateCtrl.setValue(t)}},{key:"add",value:function(t){var e=t.input,i=t.value;i&&0!==i.trim().length&&(this.args_array.push(i),this.modified_args.length>0&&(this.modified_args+=",,"),this.modified_args+=i,e&&(e.value=""))}},{key:"remove",value:function(t){this.args_array.splice(t,1),this.modified_args=this.args_array.join(",,")}},{key:"generateArgsArray",value:function(){this.args_array=0!==this.modified_args.trim().length?this.modified_args.split(",,"):[]}},{key:"drop",value:function(t){$C(this.args_array,t.previousIndex,t.currentIndex),this.modified_args=this.args_array.join(",,")}}],[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}()).\u0275fac=function(t){return new(t||tE)(a.Dc(Ah),a.Dc(Eh),a.Dc(Mh))},tE.\u0275cmp=a.xc({type:tE,selectors:[["app-arg-modifier-dialog"]],viewQuery:function(t,e){var i;1&t&&a.Fd(UD,!0,mh),2&t&&a.md(i=a.Xc())&&(e.autoTrigger=i.first)},features:[a.oc([iE])],decls:55,vars:25,consts:[["mat-dialog-title",""],[1,"container"],[1,"row"],[1,"col-12"],[1,"mat-elevation-z6"],["aria-label","Args array","cdkDropList","","cdkDropListDisabled","","cdkDropListOrientation","horizontal",1,"example-chip",3,"cdkDropListDropped"],["chipList",""],["cdkDrag","",3,"matTooltip","selectable","removable","removed",4,"ngFor","ngForOf"],["color","accent",2,"width","100%"],["matInput","",2,"width","100%",3,"formControl","matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["chipper",""],["autochip","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-elevation-z6","my-2"],["color","accent",2,"width","75%"],["matInput","","placeholder","Arg",3,"matAutocomplete","formControl"],["auto","matAutocomplete"],["argsByCategoryMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-stroked-button","",2,"margin-bottom","15px",3,"matMenuTriggerFor"],["color","accent",3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngIf"],["mat-stroked-button","","color","accent",3,"disabled","click"],["mat-button","",3,"mat-dialog-close"],["mat-button","","color","accent",3,"mat-dialog-close"],["cdkDrag","",3,"matTooltip","selectable","removable","removed"],["matChipRemove","",4,"ngIf"],["matChipRemove",""],[3,"value"],[3,"innerHTML"],["mat-icon-button","",2,"float","right",3,"matTooltip"],["mat-menu-item","",3,"matMenuTriggerFor"],["subMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[2,"display","inline-block"],[1,"info-menu-icon"],[3,"matTooltip"],["matInput","",3,"ngModelOptions","disabled","ngModel","ngModelChange",6,"placeholder"]],template:function(t,e){if(1&t&&(a.Jc(0,"h4",0),a.Nc(1,vD),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div",1),a.Jc(4,"div",2),a.Jc(5,"div",3),a.Jc(6,"mat-card",4),a.Jc(7,"h6"),a.Nc(8,bD),a.Ic(),a.Jc(9,"mat-chip-list",5,6),a.Wc("cdkDropListDropped",(function(t){return e.drop(t)})),a.zd(11,WD,3,5,"mat-chip",7),a.Ic(),a.Jc(12,"mat-form-field",8),a.Jc(13,"input",9,10),a.Wc("matChipInputTokenEnd",(function(t){return e.add(t)})),a.Ic(),a.Ic(),a.Jc(15,"mat-autocomplete",null,11),a.zd(17,qD,6,6,"mat-option",12),a.bd(18,"async"),a.Ic(),a.Ic(),a.Ic(),a.Jc(19,"div",3),a.Jc(20,"mat-card",13),a.Jc(21,"h6"),a.Nc(22,_D),a.Ic(),a.Jc(23,"form"),a.Jc(24,"div"),a.Jc(25,"mat-form-field",14),a.Ec(26,"input",15),a.Ic(),a.Jc(27,"mat-autocomplete",null,16),a.zd(29,$D,6,6,"mat-option",12),a.bd(30,"async"),a.Ic(),a.Jc(31,"div"),a.Jc(32,"mat-menu",null,17),a.zd(34,XD,6,3,"ng-container",18),a.bd(35,"keyvalue"),a.Ic(),a.Jc(36,"button",19),a.Hc(37),a.Nc(38,yD),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(39,"div"),a.Jc(40,"mat-checkbox",20),a.Wc("ngModelChange",(function(t){return e.secondArgEnabled=t})),a.Hc(41),a.Nc(42,kD),a.Gc(),a.Ic(),a.Ic(),a.zd(43,QD,4,4,"div",21),a.Ic(),a.Jc(44,"div"),a.Jc(45,"button",22),a.Wc("click",(function(){return e.addArg()})),a.Hc(46),a.Nc(47,wD),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(48,"mat-dialog-actions"),a.Jc(49,"button",23),a.Hc(50),a.Nc(51,CD),a.Gc(),a.Ic(),a.Jc(52,"button",24),a.Hc(53),a.Nc(54,xD),a.Gc(),a.Ic(),a.Ic()),2&t){var i=a.nd(10),n=a.nd(16),r=a.nd(28),o=a.nd(33);a.pc(11),a.gd("ngForOf",e.args_array),a.pc(2),a.gd("formControl",e.chipCtrl)("matAutocomplete",n)("matChipInputFor",i)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",e.addOnBlur),a.pc(4),a.gd("ngForOf",a.cd(18,18,e.filteredChipOptions)),a.pc(9),a.gd("matAutocomplete",r)("formControl",e.stateCtrl),a.pc(3),a.gd("ngForOf",a.cd(30,20,e.filteredOptions)),a.pc(5),a.gd("ngForOf",a.cd(35,22,e.argsByCategory)),a.pc(2),a.gd("matMenuTriggerFor",o),a.pc(4),a.gd("ngModelOptions",a.id(24,ZD))("ngModel",e.secondArgEnabled),a.pc(3),a.gd("ngIf",e.secondArgEnabled),a.pc(2),a.gd("disabled",!e.canAddArg()),a.pc(4),a.gd("mat-dialog-close",null),a.pc(3),a.gd("mat-dialog-close",e.modified_args)}},directives:[Fh,Nh,zc,zD,Dx,ye.s,qd,Lm,yr,mh,JD,Er,rs,uh,is,Ar,qo,Ng,Qa,Vg,Zc,es,ye.t,zh,jh,RD,bx,mv,wm,MD,Ba,Pg],pipes:[ye.b,ye.l,iE],styles:[".info-menu-icon[_ngcontent-%COMP%]{float:right}"]}),tE),aE=["fileSelector"];function rE(t,e){if(1&t&&(a.Jc(0,"div",8),a.Bd(1),a.Ic()),2&t){var i=a.ad(2);a.pc(1),a.Cd(i.dropZoneLabel)}}function oE(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"input",9),a.Wc("click",(function(t){return a.rd(i),a.ad(2).openFileSelector(t)})),a.Ic(),a.Ic()}if(2&t){var n=a.ad(2);a.pc(1),a.hd("value",n.browseBtnLabel),a.gd("className",n.browseBtnClassName)}}function sE(t,e){if(1&t&&(a.zd(0,rE,2,1,"div",6),a.zd(1,oE,2,2,"div",7)),2&t){var i=a.ad();a.gd("ngIf",i.dropZoneLabel),a.pc(1),a.gd("ngIf",i.showBrowseBtn)}}function cE(t,e){}var lE,uE,dE,hE,pE,fE,mE,gE=function(t){return{openFileSelector:t}},vE=function t(e,i){_classCallCheck(this,t),this.relativePath=e,this.fileEntry=i},bE=((lE=function t(e){_classCallCheck(this,t),this.template=e}).\u0275fac=function(t){return new(t||lE)(a.Dc(a.Y))},lE.\u0275dir=a.yc({type:lE,selectors:[["","ngx-file-drop-content-tmp",""]]}),lE),_E=function(t,e,i,n){var a,r=arguments.length,o=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(o=(r<3?a(o):r>3?a(e,i,o):a(e,i))||o);return r>3&&o&&Object.defineProperty(e,i,o),o},yE=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},kE=((dE=function(){function t(e,i){var n=this;_classCallCheck(this,t),this.zone=e,this.renderer=i,this.accept="*",this.directory=!1,this.multiple=!0,this.dropZoneLabel="",this.dropZoneClassName="ngx-file-drop__drop-zone",this.useDragEnter=!1,this.contentClassName="ngx-file-drop__content",this.showBrowseBtn=!1,this.browseBtnClassName="btn btn-primary btn-xs ngx-file-drop__browse-btn",this.browseBtnLabel="Browse files",this.onFileDrop=new a.u,this.onFileOver=new a.u,this.onFileLeave=new a.u,this.isDraggingOverDropZone=!1,this.globalDraggingInProgress=!1,this.files=[],this.numOfActiveReadEntries=0,this.helperFormEl=null,this.fileInputPlaceholderEl=null,this.dropEventTimerSubscription=null,this._disabled=!1,this.openFileSelector=function(t){n.fileSelector&&n.fileSelector.nativeElement&&n.fileSelector.nativeElement.click()},this.globalDragStartListener=this.renderer.listen("document","dragstart",(function(t){n.globalDraggingInProgress=!0})),this.globalDragEndListener=this.renderer.listen("document","dragend",(function(t){n.globalDraggingInProgress=!1}))}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.dropEventTimerSubscription&&(this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=null),this.globalDragStartListener(),this.globalDragEndListener(),this.files=[],this.helperFormEl=null,this.fileInputPlaceholderEl=null}},{key:"onDragOver",value:function(t){this.useDragEnter?this.preventAndStop(t):this.isDropzoneDisabled()||this.useDragEnter||(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(t)),this.preventAndStop(t))}},{key:"onDragEnter",value:function(t){!this.isDropzoneDisabled()&&this.useDragEnter&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(t)),this.preventAndStop(t))}},{key:"onDragLeave",value:function(t){this.isDropzoneDisabled()||(this.isDraggingOverDropZone&&(this.isDraggingOverDropZone=!1,this.onFileLeave.emit(t)),this.preventAndStop(t))}},{key:"dropFiles",value:function(t){var e;!this.isDropzoneDisabled()&&(this.isDraggingOverDropZone=!1,t.dataTransfer)&&(t.dataTransfer.dropEffect="copy",e=t.dataTransfer.items?t.dataTransfer.items:t.dataTransfer.files,this.preventAndStop(t),this.checkFiles(e))}},{key:"uploadFiles",value:function(t){!this.isDropzoneDisabled()&&t.target&&(this.checkFiles(t.target.files||[]),this.resetFileInput())}},{key:"checkFiles",value:function(t){for(var e=this,i=function(i){var n=t[i],a=null;if(e.canGetAsEntry(n)&&(a=n.webkitGetAsEntry()),a)if(a.isFile){var r=new vE(a.name,a);e.addToQueue(r)}else a.isDirectory&&e.traverseFileTree(a,a.name);else if(n){var o={name:n.name,isDirectory:!1,isFile:!0,file:function(t){t(n)}},s=new vE(o.name,o);e.addToQueue(s)}},n=0;n<t.length;n++)i(n);this.dropEventTimerSubscription&&this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=Sl(200,200).subscribe((function(){if(e.files.length>0&&0===e.numOfActiveReadEntries){var t=e.files;e.files=[],e.onFileDrop.emit(t)}}))}},{key:"traverseFileTree",value:function(t,e){var i=this;if(t.isFile){var n=new vE(e,t);this.files.push(n)}else{e+="/";var a=t.createReader(),r=[];!function n(){i.numOfActiveReadEntries++,a.readEntries((function(a){if(a.length)r=r.concat(a),n();else if(0===r.length){var o=new vE(e,t);i.zone.run((function(){i.addToQueue(o)}))}else for(var s=function(t){i.zone.run((function(){i.traverseFileTree(r[t],e+r[t].name)}))},c=0;c<r.length;c++)s(c);i.numOfActiveReadEntries--}))}()}}},{key:"resetFileInput",value:function(){if(this.fileSelector&&this.fileSelector.nativeElement){var t=this.fileSelector.nativeElement,e=t.parentElement,i=this.getHelperFormElement(),n=this.getFileInputPlaceholderElement();e!==i&&(this.renderer.insertBefore(e,n,t),this.renderer.appendChild(i,t),i.reset(),this.renderer.insertBefore(e,t,n),this.renderer.removeChild(e,n))}}},{key:"getHelperFormElement",value:function(){return this.helperFormEl||(this.helperFormEl=this.renderer.createElement("form")),this.helperFormEl}},{key:"getFileInputPlaceholderElement",value:function(){return this.fileInputPlaceholderEl||(this.fileInputPlaceholderEl=this.renderer.createElement("div")),this.fileInputPlaceholderEl}},{key:"canGetAsEntry",value:function(t){return!!t.webkitGetAsEntry}},{key:"isDropzoneDisabled",value:function(){return this.globalDraggingInProgress||this.disabled}},{key:"addToQueue",value:function(t){this.files.push(t)}},{key:"preventAndStop",value:function(t){t.stopPropagation(),t.preventDefault()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=null!=t&&"false"!=="".concat(t)}}]),t}()).\u0275fac=function(t){return new(t||dE)(a.Dc(a.I),a.Dc(a.P))},dE.\u0275cmp=a.xc({type:dE,selectors:[["ngx-file-drop"]],contentQueries:function(t,e,i){var n;1&t&&a.vc(i,bE,!0,a.Y),2&t&&a.md(n=a.Xc())&&(e.contentTemplate=n.first)},viewQuery:function(t,e){var i;1&t&&a.xd(aE,!0),2&t&&a.md(i=a.Xc())&&(e.fileSelector=i.first)},inputs:{accept:"accept",directory:"directory",multiple:"multiple",dropZoneLabel:"dropZoneLabel",dropZoneClassName:"dropZoneClassName",useDragEnter:"useDragEnter",contentClassName:"contentClassName",showBrowseBtn:"showBrowseBtn",browseBtnClassName:"browseBtnClassName",browseBtnLabel:"browseBtnLabel",disabled:"disabled"},outputs:{onFileDrop:"onFileDrop",onFileOver:"onFileOver",onFileLeave:"onFileLeave"},decls:7,vars:15,consts:[[3,"className","drop","dragover","dragenter","dragleave"],[3,"className"],["type","file",1,"ngx-file-drop__file-input",3,"accept","multiple","change"],["fileSelector",""],["defaultContentTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ngx-file-drop__drop-zone-label",4,"ngIf"],[4,"ngIf"],[1,"ngx-file-drop__drop-zone-label"],["type","button",3,"className","value","click"]],template:function(t,e){if(1&t&&(a.Jc(0,"div",0),a.Wc("drop",(function(t){return e.dropFiles(t)}))("dragover",(function(t){return e.onDragOver(t)}))("dragenter",(function(t){return e.onDragEnter(t)}))("dragleave",(function(t){return e.onDragLeave(t)})),a.Jc(1,"div",1),a.Jc(2,"input",2,3),a.Wc("change",(function(t){return e.uploadFiles(t)})),a.Ic(),a.zd(4,sE,2,2,"ng-template",null,4,a.Ad),a.zd(6,cE,0,0,"ng-template",5),a.Ic(),a.Ic()),2&t){var i=a.nd(5);a.tc("ngx-file-drop__drop-zone--over",e.isDraggingOverDropZone),a.gd("className",e.dropZoneClassName),a.pc(1),a.gd("className",e.contentClassName),a.pc(1),a.gd("accept",e.accept)("multiple",e.multiple),a.qc("directory",e.directory||void 0)("webkitdirectory",e.directory||void 0)("mozdirectory",e.directory||void 0)("msdirectory",e.directory||void 0)("odirectory",e.directory||void 0),a.pc(4),a.gd("ngTemplateOutlet",e.contentTemplate||i)("ngTemplateOutletContext",a.jd(13,gE,e.openFileSelector))}},directives:[ye.A,ye.t],styles:[".ngx-file-drop__drop-zone[_ngcontent-%COMP%]{height:100px;margin:auto;border:2px dotted #0782d0;border-radius:30px}.ngx-file-drop__drop-zone--over[_ngcontent-%COMP%]{background-color:rgba(147,147,147,.5)}.ngx-file-drop__content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100px;color:#0782d0}.ngx-file-drop__drop-zone-label[_ngcontent-%COMP%]{text-align:center}.ngx-file-drop__file-input[_ngcontent-%COMP%]{display:none}"]}),_E([Object(a.z)(),yE("design:type",String)],dE.prototype,"accept",void 0),_E([Object(a.z)(),yE("design:type",Boolean)],dE.prototype,"directory",void 0),_E([Object(a.z)(),yE("design:type",Boolean)],dE.prototype,"multiple",void 0),_E([Object(a.z)(),yE("design:type",String)],dE.prototype,"dropZoneLabel",void 0),_E([Object(a.z)(),yE("design:type",String)],dE.prototype,"dropZoneClassName",void 0),_E([Object(a.z)(),yE("design:type",Boolean)],dE.prototype,"useDragEnter",void 0),_E([Object(a.z)(),yE("design:type",String)],dE.prototype,"contentClassName",void 0),_E([Object(a.z)(),yE("design:type",Boolean),yE("design:paramtypes",[Boolean])],dE.prototype,"disabled",null),_E([Object(a.z)(),yE("design:type",Boolean)],dE.prototype,"showBrowseBtn",void 0),_E([Object(a.z)(),yE("design:type",String)],dE.prototype,"browseBtnClassName",void 0),_E([Object(a.z)(),yE("design:type",String)],dE.prototype,"browseBtnLabel",void 0),_E([Object(a.K)(),yE("design:type",a.u)],dE.prototype,"onFileDrop",void 0),_E([Object(a.K)(),yE("design:type",a.u)],dE.prototype,"onFileOver",void 0),_E([Object(a.K)(),yE("design:type",a.u)],dE.prototype,"onFileLeave",void 0),_E([Object(a.p)(bE,{read:a.Y}),yE("design:type",a.Y)],dE.prototype,"contentTemplate",void 0),_E([Object(a.bb)("fileSelector",{static:!0}),yE("design:type",a.r)],dE.prototype,"fileSelector",void 0),dE=_E([yE("design:paramtypes",[a.I,a.P])],dE)),wE=((uE=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:uE,bootstrap:function(){return[kE]}}),uE.\u0275inj=a.Ac({factory:function(t){return new(t||uE)},providers:[],imports:[[ye.c]]}),uE);function CE(t,e){1&t&&(a.Jc(0,"div"),a.Jc(1,"div"),a.Hc(2),a.Nc(3,mE),a.Gc(),a.Ic(),a.Jc(4,"div",11),a.Jc(5,"button",12),a.Wc("click",(function(){return(0,e.openFileSelector)()})),a.Bd(6,"Browse Files"),a.Ic(),a.Ic(),a.Ic())}function xE(t,e){1&t&&a.Ec(0,"mat-spinner",16),2&t&&a.gd("diameter",38)}function SE(t,e){if(1&t){var i=a.Kc();a.Jc(0,"tr"),a.Jc(1,"td",13),a.Jc(2,"strong"),a.Bd(3),a.Ic(),a.Ic(),a.Jc(4,"td"),a.Jc(5,"button",14),a.Wc("click",(function(){return a.rd(i),a.ad().uploadFile()})),a.Jc(6,"mat-icon"),a.Bd(7,"publish"),a.Ic(),a.zd(8,xE,1,1,"mat-spinner",15),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=e.$implicit,r=a.ad();a.pc(3),a.Cd(n.relativePath),a.pc(2),a.gd("disabled",r.uploading||r.uploaded),a.pc(3),a.gd("ngIf",r.uploading)}}hE=$localize(_templateObject10()),pE=$localize(_templateObject11()),fE=$localize(_templateObject12()),mE=$localize(_templateObject13());var IE,OE,DE,EE=((IE=function(){function t(e){_classCallCheck(this,t),this.postsService=e,this.files=[],this.uploading=!1,this.uploaded=!1}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"dropped",value:function(t){this.files=t,this.uploading=!1,this.uploaded=!1}},{key:"uploadFile",value:function(){var t=this;this.uploading=!0;var e,i=_createForOfIteratorHelper(this.files);try{var n=function(){var i=e.value;i.fileEntry.isFile&&i.fileEntry.file((function(e){var n=new FormData;n.append("cookies",e,i.relativePath),t.postsService.uploadCookiesFile(n).subscribe((function(e){t.uploading=!1,e.success&&(t.uploaded=!0,t.postsService.openSnackBar("Cookies successfully uploaded!"))}),(function(e){t.uploading=!1}))}))};for(i.s();!(e=i.n()).done;)n()}catch(a){i.e(a)}finally{i.f()}}},{key:"fileOver",value:function(t){}},{key:"fileLeave",value:function(t){}}]),t}()).\u0275fac=function(t){return new(t||IE)(a.Dc(eD))},IE.\u0275cmp=a.xc({type:IE,selectors:[["app-cookies-uploader-dialog"]],decls:18,vars:2,consts:[["mat-dialog-title",""],[1,"center"],["accept",".txt","dropZoneLabel","Drop files here",3,"multiple","onFileDrop","onFileOver","onFileLeave"],["ngx-file-drop-content-tmp",""],[2,"margin-top","15px"],[2,"font-size","14px"],[2,"margin-top","10px"],[1,"table"],[1,"upload-name-style"],[4,"ngFor","ngForOf"],["mat-dialog-close","","mat-stroked-button","",2,"margin-bottom","5px"],[2,"margin-top","6px"],["mat-stroked-button","",3,"click"],[2,"vertical-align","middle"],["matTooltip","Upload","mat-mini-fab","",2,"float","right",3,"disabled","click"],["class","spinner",3,"diameter",4,"ngIf"],[1,"spinner",3,"diameter"]],template:function(t,e){1&t&&(a.Jc(0,"h4",0),a.Nc(1,hE),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div"),a.Jc(4,"div",1),a.Jc(5,"ngx-file-drop",2),a.Wc("onFileDrop",(function(t){return e.dropped(t)}))("onFileOver",(function(t){return e.fileOver(t)}))("onFileLeave",(function(t){return e.fileLeave(t)})),a.zd(6,CE,7,0,"ng-template",3),a.Ic(),a.Jc(7,"div",4),a.Jc(8,"p",5),a.Nc(9,pE),a.Ic(),a.Ic(),a.Jc(10,"div",6),a.Jc(11,"table",7),a.Jc(12,"tbody",8),a.zd(13,SE,9,3,"tr",9),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(14,"mat-dialog-actions"),a.Jc(15,"button",10),a.Hc(16),a.Nc(17,fE),a.Gc(),a.Ic(),a.Ic()),2&t&&(a.pc(5),a.gd("multiple",!1),a.pc(8),a.gd("ngForOf",e.files))},directives:[Fh,Nh,kE,bE,ye.s,zh,Qa,jh,mv,wm,ye.t,zv],styles:[".spinner[_ngcontent-%COMP%]{bottom:1px;left:.5px;position:absolute}"]}),IE);function AE(t,e){1&t&&(a.Jc(0,"h6"),a.Bd(1,"Update in progress"),a.Ic())}function TE(t,e){1&t&&(a.Jc(0,"h6"),a.Bd(1,"Update failed"),a.Ic())}function PE(t,e){1&t&&(a.Jc(0,"h6"),a.Bd(1,"Update succeeded!"),a.Ic())}function RE(t,e){1&t&&a.Ec(0,"mat-progress-bar",7)}function ME(t,e){1&t&&a.Ec(0,"mat-progress-bar",8)}function LE(t,e){if(1&t&&(a.Jc(0,"p",9),a.Bd(1),a.Ic()),2&t){var i=a.ad(2);a.pc(1),a.Cd(i.updateStatus.details)}}function jE(t,e){if(1&t&&(a.Jc(0,"div"),a.Jc(1,"div",3),a.zd(2,AE,2,0,"h6",1),a.zd(3,TE,2,0,"h6",1),a.zd(4,PE,2,0,"h6",1),a.Ic(),a.zd(5,RE,1,0,"mat-progress-bar",4),a.zd(6,ME,1,0,"mat-progress-bar",5),a.zd(7,LE,2,1,"p",6),a.Ic()),2&t){var i=a.ad();a.pc(2),a.gd("ngIf",i.updateStatus.updating),a.pc(1),a.gd("ngIf",!i.updateStatus.updating&&i.updateStatus.error),a.pc(1),a.gd("ngIf",!i.updateStatus.updating&&!i.updateStatus.error),a.pc(1),a.gd("ngIf",i.updateStatus.updating),a.pc(1),a.gd("ngIf",!i.updateStatus.updating),a.pc(1),a.gd("ngIf",i.updateStatus.details)}}OE=$localize(_templateObject14()),DE=$localize(_templateObject15());var FE,NE,zE=((FE=function(){function t(e,i){_classCallCheck(this,t),this.postsService=e,this.snackBar=i,this.updateStatus=null,this.updateInterval=250,this.errored=!1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.getUpdateProgress(),setInterval((function(){t.updateStatus.updating&&t.getUpdateProgress()}),250)}},{key:"getUpdateProgress",value:function(){var t=this;this.postsService.getUpdaterStatus().subscribe((function(e){e&&(t.updateStatus=e,t.updateStatus&&t.updateStatus.error&&t.openSnackBar("Update failed. Check logs for more details."))}))}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||FE)(a.Dc(eD),a.Dc(R_))},FE.\u0275cmp=a.xc({type:FE,selectors:[["app-update-progress-dialog"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-button","","mat-dialog-close",""],[2,"margin-bottom","8px"],["mode","indeterminate",4,"ngIf"],["mode","determinate","value","100",4,"ngIf"],["style","margin-top: 4px; font-size: 13px;",4,"ngIf"],["mode","indeterminate"],["mode","determinate","value","100"],[2,"margin-top","4px","font-size","13px"]],template:function(t,e){1&t&&(a.Jc(0,"h4",0),a.Nc(1,OE),a.Ic(),a.Jc(2,"mat-dialog-content"),a.zd(3,jE,8,6,"div",1),a.Ic(),a.Jc(4,"mat-dialog-actions"),a.Jc(5,"button",2),a.Hc(6),a.Nc(7,DE),a.Gc(),a.Ic(),a.Ic()),2&t&&(a.pc(3),a.gd("ngIf",e.updateStatus))},directives:[Fh,Nh,ye.t,zh,Qa,jh,wv],styles:[""]}),FE);function BE(t,e){if(1&t&&(a.Jc(0,"mat-option",6),a.Bd(1),a.Ic()),2&t){var i=e.$implicit,n=a.ad(2);a.gd("value",i.tag_name),a.pc(1),a.Dd(" ",i.tag_name+(i===n.latestStableRelease?" - Latest Stable":"")+(i.tag_name===n.CURRENT_VERSION?" - Current Version":"")," ")}}function JE(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",3),a.Jc(1,"mat-form-field"),a.Jc(2,"mat-select",4),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad().selectedVersion=t})),a.zd(3,BE,2,2,"mat-option",5),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad();a.pc(2),a.gd("ngModel",n.selectedVersion),a.pc(1),a.gd("ngForOf",n.availableVersionsFiltered)}}function VE(t,e){1&t&&(a.Hc(0),a.Bd(1,"Upgrade to"),a.Gc())}function HE(t,e){1&t&&(a.Hc(0),a.Bd(1,"Downgrade to"),a.Gc())}function UE(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",3),a.Jc(1,"button",7),a.Wc("click",(function(){return a.rd(i),a.ad().updateServer()})),a.Jc(2,"mat-icon"),a.Bd(3,"update"),a.Ic(),a.Bd(4,"\xa0\xa0 "),a.zd(5,VE,2,0,"ng-container",8),a.zd(6,HE,2,0,"ng-container",8),a.Bd(7),a.Ic(),a.Ic()}if(2&t){var n=a.ad();a.pc(5),a.gd("ngIf",n.selectedVersion>n.CURRENT_VERSION),a.pc(1),a.gd("ngIf",n.selectedVersion<n.CURRENT_VERSION),a.pc(1),a.Dd("\xa0",n.selectedVersion,"")}}NE=$localize(_templateObject16());var GE,WE,qE=((GE=function(){function t(e,i){_classCallCheck(this,t),this.postsService=e,this.dialog=i,this.availableVersions=null,this.availableVersionsFiltered=[],this.versionsShowLimit=5,this.latestStableRelease=null,this.selectedVersion=null,this.CURRENT_VERSION="v4.1"}return _createClass(t,[{key:"ngOnInit",value:function(){this.getAvailableVersions()}},{key:"updateServer",value:function(){var t=this;this.postsService.updateServer(this.selectedVersion).subscribe((function(e){e.success&&t.openUpdateProgressDialog()}))}},{key:"getAvailableVersions",value:function(){var t=this;this.availableVersionsFiltered=[],this.postsService.getAvailableRelease().subscribe((function(e){t.availableVersions=e;for(var i=0;i<t.availableVersions.length;i++){var n=t.availableVersions[i];if(t.latestStableRelease||n.tag_name.includes("rc")||(t.latestStableRelease=n,t.selectedVersion=t.latestStableRelease.tag_name),t.latestStableRelease&&i>=t.versionsShowLimit)break;t.availableVersionsFiltered.push(n)}}))}},{key:"openUpdateProgressDialog",value:function(){this.dialog.open(zE,{minWidth:"300px",minHeight:"200px"})}}]),t}()).\u0275fac=function(t){return new(t||GE)(a.Dc(eD),a.Dc(Mh))},GE.\u0275cmp=a.xc({type:GE,selectors:[["app-updater"]],decls:6,vars:2,consts:[[2,"display","block"],[2,"display","inline-block"],["style","display: inline-block; margin-left: 15px;",4,"ngIf"],[2,"display","inline-block","margin-left","15px"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["color","accent","mat-raised-button","",3,"click"],[4,"ngIf"]],template:function(t,e){1&t&&(a.Jc(0,"div",0),a.Jc(1,"div",1),a.Hc(2),a.Nc(3,NE),a.Gc(),a.Ic(),a.zd(4,JE,4,2,"div",2),a.zd(5,UE,8,3,"div",2),a.Ic()),2&t&&(a.pc(4),a.gd("ngIf",e.availableVersions),a.pc(1),a.gd("ngIf",e.selectedVersion&&e.selectedVersion!==e.CURRENT_VERSION))},directives:[ye.t,qd,bb,Er,es,ye.s,Ba,Qa,wm],styles:[""]}),GE);WE=$localize(_templateObject17());var $E,KE,XE=["placeholder",$localize(_templateObject18())],YE=["placeholder",$localize(_templateObject19())];$E=$localize(_templateObject20()),KE=$localize(_templateObject21());var ZE,QE,tA,eA,iA=((ZE=function(){function t(e,i){_classCallCheck(this,t),this.postsService=e,this.dialogRef=i,this.usernameInput="",this.passwordInput=""}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"createUser",value:function(){var t=this;this.postsService.register(this.usernameInput,this.passwordInput).subscribe((function(e){t.dialogRef.close(e.user?e.user:{error:"Unknown error"})}),(function(e){t.dialogRef.close({error:e})}))}}]),t}()).\u0275fac=function(t){return new(t||ZE)(a.Dc(eD),a.Dc(Eh))},ZE.\u0275cmp=a.xc({type:ZE,selectors:[["app-add-user-dialog"]],decls:18,vars:2,consts:[["mat-dialog-title",""],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["matInput","","type","password",3,"ngModel","ngModelChange",6,"placeholder"],["color","accent","mat-raised-button","",3,"click"],["mat-dialog-close","","mat-button",""]],template:function(t,e){1&t&&(a.Jc(0,"h4",0),a.Nc(1,WE),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div"),a.Jc(4,"mat-form-field"),a.Jc(5,"input",1),a.Pc(6,XE),a.Wc("ngModelChange",(function(t){return e.usernameInput=t})),a.Ic(),a.Ic(),a.Ic(),a.Jc(7,"div"),a.Jc(8,"mat-form-field"),a.Jc(9,"input",2),a.Pc(10,YE),a.Wc("ngModelChange",(function(t){return e.passwordInput=t})),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(11,"mat-dialog-actions"),a.Jc(12,"button",3),a.Wc("click",(function(){return e.createUser()})),a.Hc(13),a.Nc(14,$E),a.Gc(),a.Ic(),a.Jc(15,"button",4),a.Hc(16),a.Nc(17,KE),a.Gc(),a.Ic(),a.Ic()),2&t&&(a.pc(5),a.gd("ngModel",e.usernameInput),a.pc(4),a.gd("ngModel",e.passwordInput))},directives:[Fh,Nh,qd,Lm,yr,Er,es,zh,Qa,jh],styles:[""]}),ZE);function nA(t,e){if(1&t&&(a.Jc(0,"h4",3),a.Hc(1),a.Nc(2,tA),a.Gc(),a.Bd(3),a.Ic()),2&t){var i=a.ad();a.pc(3),a.Dd("\xa0-\xa0",i.user.name,"")}}QE=$localize(_templateObject22()),tA=$localize(_templateObject23()),eA=$localize(_templateObject24());var aA,rA,oA,sA,cA=["placeholder",$localize(_templateObject25())];function lA(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-list-item",8),a.Jc(1,"h3",9),a.Bd(2),a.Ic(),a.Jc(3,"span",9),a.Jc(4,"mat-radio-group",10),a.Wc("change",(function(t){a.rd(i);var n=e.$implicit;return a.ad(2).changeUserPermissions(t,n)}))("ngModelChange",(function(t){a.rd(i);var n=e.$implicit;return a.ad(2).permissions[n]=t})),a.Jc(5,"mat-radio-button",11),a.Hc(6),a.Nc(7,rA),a.Gc(),a.Ic(),a.Jc(8,"mat-radio-button",12),a.Hc(9),a.Nc(10,oA),a.Gc(),a.Ic(),a.Jc(11,"mat-radio-button",13),a.Hc(12),a.Nc(13,sA),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=e.$implicit,r=a.ad(2);a.pc(2),a.Cd(r.permissionToLabel[n]?r.permissionToLabel[n]:n),a.pc(2),a.gd("disabled","settings"===n&&r.postsService.user.uid===r.user.uid)("ngModel",r.permissions[n]),a.qc("aria-label","Give user permission for "+n)}}function uA(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-dialog-content"),a.Jc(1,"p"),a.Hc(2),a.Nc(3,eA),a.Gc(),a.Bd(4),a.Ic(),a.Jc(5,"div"),a.Jc(6,"mat-form-field",4),a.Jc(7,"input",5),a.Pc(8,cA),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad().newPasswordInput=t})),a.Ic(),a.Ic(),a.Jc(9,"button",6),a.Wc("click",(function(){return a.rd(i),a.ad().setNewPassword()})),a.Hc(10),a.Nc(11,aA),a.Gc(),a.Ic(),a.Ic(),a.Jc(12,"div"),a.Jc(13,"mat-list"),a.zd(14,lA,14,4,"mat-list-item",7),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad();a.pc(4),a.Dd("\xa0",n.user.uid,""),a.pc(3),a.gd("ngModel",n.newPasswordInput),a.pc(2),a.gd("disabled",0===n.newPasswordInput.length),a.pc(5),a.gd("ngForOf",n.available_permissions)}}aA=$localize(_templateObject26()),rA=$localize(_templateObject27()),oA=$localize(_templateObject28()),sA=$localize(_templateObject29());var dA,hA,pA,fA,mA,gA=((dA=function(){function t(e,i){_classCallCheck(this,t),this.postsService=e,this.data=i,this.user=null,this.newPasswordInput="",this.available_permissions=null,this.permissions=null,this.permissionToLabel={filemanager:"File manager",settings:"Settings access",subscriptions:"Subscriptions",sharing:"Share files",advanced_download:"Use advanced download mode",downloads_manager:"Use downloads manager"},this.settingNewPassword=!1,this.data&&(this.user=this.data.user,this.available_permissions=this.postsService.available_permissions,this.parsePermissions())}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"parsePermissions",value:function(){this.permissions={};for(var t=0;t<this.available_permissions.length;t++){var e=this.available_permissions[t];this.permissions[e]=this.user.permission_overrides.includes(e)?this.user.permissions.includes(e)?"yes":"no":"default"}}},{key:"changeUserPermissions",value:function(t,e){this.postsService.setUserPermission(this.user.uid,e,t.value).subscribe((function(t){}))}},{key:"setNewPassword",value:function(){var t=this;this.settingNewPassword=!0,this.postsService.changeUserPassword(this.user.uid,this.newPasswordInput).subscribe((function(e){t.newPasswordInput="",t.settingNewPassword=!1}))}}]),t}()).\u0275fac=function(t){return new(t||dA)(a.Dc(eD),a.Dc(Ah))},dA.\u0275cmp=a.xc({type:dA,selectors:[["app-manage-user"]],decls:6,vars:2,consts:[["mat-dialog-title","",4,"ngIf"],[4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-dialog-title",""],[2,"margin-right","15px"],["matInput","","type","password",3,"ngModel","ngModelChange",6,"placeholder"],["mat-raised-button","","color","accent",3,"disabled","click"],["role","listitem",4,"ngFor","ngForOf"],["role","listitem"],["matLine",""],[3,"disabled","ngModel","change","ngModelChange"],["value","default"],["value","yes"],["value","no"]],template:function(t,e){1&t&&(a.zd(0,nA,4,1,"h4",0),a.zd(1,uA,15,4,"mat-dialog-content",1),a.Jc(2,"mat-dialog-actions"),a.Jc(3,"button",2),a.Hc(4),a.Nc(5,QE),a.Gc(),a.Ic(),a.Ic()),2&t&&(a.gd("ngIf",e.user),a.pc(1),a.gd("ngIf",e.user))},directives:[ye.t,zh,Qa,jh,Fh,Nh,qd,Lm,yr,Er,es,rg,ye.s,lg,pa,$v,Xv],styles:[".mat-radio-button[_ngcontent-%COMP%]{margin-right:10px;margin-top:5px}"]}),dA);function vA(t,e){if(1&t&&(a.Jc(0,"h4",3),a.Hc(1),a.Nc(2,pA),a.Gc(),a.Bd(3),a.Ic()),2&t){var i=a.ad();a.pc(3),a.Dd("\xa0-\xa0",i.role.name,"")}}function bA(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-list-item",5),a.Jc(1,"h3",6),a.Bd(2),a.Ic(),a.Jc(3,"span",6),a.Jc(4,"mat-radio-group",7),a.Wc("change",(function(t){a.rd(i);var n=e.$implicit,r=a.ad(2);return r.changeRolePermissions(t,n,r.permissions[n])}))("ngModelChange",(function(t){a.rd(i);var n=e.$implicit;return a.ad(2).permissions[n]=t})),a.Jc(5,"mat-radio-button",8),a.Hc(6),a.Nc(7,fA),a.Gc(),a.Ic(),a.Jc(8,"mat-radio-button",9),a.Hc(9),a.Nc(10,mA),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=e.$implicit,r=a.ad(2);a.pc(2),a.Cd(r.permissionToLabel[n]?r.permissionToLabel[n]:n),a.pc(2),a.gd("disabled","settings"===n&&"admin"===r.role.name)("ngModel",r.permissions[n]),a.qc("aria-label","Give role permission for "+n)}}function _A(t,e){if(1&t&&(a.Jc(0,"mat-dialog-content"),a.Jc(1,"mat-list"),a.zd(2,bA,11,4,"mat-list-item",4),a.Ic(),a.Ic()),2&t){var i=a.ad();a.pc(2),a.gd("ngForOf",i.available_permissions)}}hA=$localize(_templateObject30()),pA=$localize(_templateObject31()),fA=$localize(_templateObject32()),mA=$localize(_templateObject33());var yA,kA,wA,CA,xA,SA,IA=((yA=function(){function t(e,i,n){_classCallCheck(this,t),this.postsService=e,this.dialogRef=i,this.data=n,this.role=null,this.available_permissions=null,this.permissions=null,this.permissionToLabel={filemanager:"File manager",settings:"Settings access",subscriptions:"Subscriptions",sharing:"Share files",advanced_download:"Use advanced download mode",downloads_manager:"Use downloads manager"},this.data&&(this.role=this.data.role,this.available_permissions=this.postsService.available_permissions,this.parsePermissions())}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"parsePermissions",value:function(){this.permissions={};for(var t=0;t<this.available_permissions.length;t++){var e=this.available_permissions[t];this.permissions[e]=this.role.permissions.includes(e)?"yes":"no"}}},{key:"changeRolePermissions",value:function(t,e){var i=this;this.postsService.setRolePermission(this.role.name,e,t.value).subscribe((function(t){t.success||(i.permissions[e]="yes"===i.permissions[e]?"no":"yes")}),(function(t){i.permissions[e]="yes"===i.permissions[e]?"no":"yes"}))}}]),t}()).\u0275fac=function(t){return new(t||yA)(a.Dc(eD),a.Dc(Eh),a.Dc(Ah))},yA.\u0275cmp=a.xc({type:yA,selectors:[["app-manage-role"]],decls:6,vars:2,consts:[["mat-dialog-title","",4,"ngIf"],[4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-dialog-title",""],["role","listitem",4,"ngFor","ngForOf"],["role","listitem"],["matLine",""],[3,"disabled","ngModel","change","ngModelChange"],["value","yes"],["value","no"]],template:function(t,e){1&t&&(a.zd(0,vA,4,1,"h4",0),a.zd(1,_A,3,1,"mat-dialog-content",1),a.Jc(2,"mat-dialog-actions"),a.Jc(3,"button",2),a.Hc(4),a.Nc(5,hA),a.Gc(),a.Ic(),a.Ic()),2&t&&(a.gd("ngIf",e.role),a.pc(1),a.gd("ngIf",e.role))},directives:[ye.t,zh,Qa,jh,Fh,Nh,rg,ye.s,lg,pa,$v,Er,es,Xv],styles:[".mat-radio-button[_ngcontent-%COMP%]{margin-right:10px;margin-top:5px}"]}),yA);function OA(t,e){1&t&&(a.Jc(0,"mat-header-cell",24),a.Hc(1),a.Nc(2,CA),a.Gc(),a.Ic())}function DA(t,e){if(1&t){var i=a.Kc();a.Jc(0,"span"),a.Jc(1,"span",26),a.Jc(2,"mat-form-field"),a.Jc(3,"input",27),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(3).constructedObject.name=t})),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad(3);a.pc(3),a.gd("ngModel",n.constructedObject.name)}}function EA(t,e){if(1&t&&a.Bd(0),2&t){var i=a.ad().$implicit;a.Dd(" ",i.name," ")}}function AA(t,e){if(1&t&&(a.Jc(0,"mat-cell"),a.zd(1,DA,4,1,"span",0),a.zd(2,EA,1,1,"ng-template",null,25,a.Ad),a.Ic()),2&t){var i=e.$implicit,n=a.nd(3),r=a.ad(2);a.pc(1),a.gd("ngIf",r.editObject&&r.editObject.uid===i.uid)("ngIfElse",n)}}function TA(t,e){1&t&&(a.Jc(0,"mat-header-cell",24),a.Hc(1),a.Nc(2,xA),a.Gc(),a.Ic())}function PA(t,e){if(1&t){var i=a.Kc();a.Jc(0,"span"),a.Jc(1,"span",26),a.Jc(2,"mat-form-field"),a.Jc(3,"mat-select",29),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(3).constructedObject.role=t})),a.Jc(4,"mat-option",30),a.Bd(5,"Admin"),a.Ic(),a.Jc(6,"mat-option",31),a.Bd(7,"User"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad(3);a.pc(3),a.gd("ngModel",n.constructedObject.role)}}function RA(t,e){if(1&t&&a.Bd(0),2&t){var i=a.ad().$implicit;a.Dd(" ",i.role," ")}}function MA(t,e){if(1&t&&(a.Jc(0,"mat-cell"),a.zd(1,PA,8,1,"span",0),a.zd(2,RA,1,1,"ng-template",null,28,a.Ad),a.Ic()),2&t){var i=e.$implicit,n=a.nd(3),r=a.ad(2);a.pc(1),a.gd("ngIf",r.editObject&&r.editObject.uid===i.uid)("ngIfElse",n)}}function LA(t,e){1&t&&(a.Jc(0,"mat-header-cell",24),a.Hc(1),a.Nc(2,SA),a.Gc(),a.Ic())}function jA(t,e){if(1&t){var i=a.Kc();a.Jc(0,"span"),a.Jc(1,"button",35),a.Wc("click",(function(){a.rd(i);var t=a.ad().$implicit;return a.ad(2).finishEditing(t.uid)})),a.Jc(2,"mat-icon"),a.Bd(3,"done"),a.Ic(),a.Ic(),a.Jc(4,"button",36),a.Wc("click",(function(){return a.rd(i),a.ad(3).disableEditMode()})),a.Jc(5,"mat-icon"),a.Bd(6,"cancel"),a.Ic(),a.Ic(),a.Ic()}}function FA(t,e){if(1&t){var i=a.Kc();a.Jc(0,"button",37),a.Wc("click",(function(){a.rd(i);var t=a.ad().$implicit;return a.ad(2).enableEditMode(t.uid)})),a.Jc(1,"mat-icon"),a.Bd(2,"edit"),a.Ic(),a.Ic()}}function NA(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-cell"),a.zd(1,jA,7,0,"span",0),a.zd(2,FA,3,0,"ng-template",null,32,a.Ad),a.Jc(4,"button",33),a.Wc("click",(function(){a.rd(i);var t=e.$implicit;return a.ad(2).manageUser(t.uid)})),a.Jc(5,"mat-icon"),a.Bd(6,"settings"),a.Ic(),a.Ic(),a.Jc(7,"button",34),a.Wc("click",(function(){a.rd(i);var t=e.$implicit;return a.ad(2).removeUser(t.uid)})),a.Jc(8,"mat-icon"),a.Bd(9,"delete"),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=e.$implicit,r=a.nd(3),o=a.ad(2);a.pc(1),a.gd("ngIf",o.editObject&&o.editObject.uid===n.uid)("ngIfElse",r),a.pc(3),a.gd("disabled",o.editObject&&o.editObject.uid===n.uid),a.pc(3),a.gd("disabled",o.editObject&&o.editObject.uid===n.uid||n.uid===o.postsService.user.uid)}}function zA(t,e){1&t&&a.Ec(0,"mat-header-row")}function BA(t,e){1&t&&a.Ec(0,"mat-row")}function JA(t,e){if(1&t){var i=a.Kc();a.Jc(0,"button",38),a.Wc("click",(function(){a.rd(i);var t=e.$implicit;return a.ad(2).openModifyRole(t)})),a.Bd(1),a.Ic()}if(2&t){var n=e.$implicit;a.pc(1),a.Cd(n.name)}}function VA(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"div",3),a.Jc(2,"div",4),a.Jc(3,"div",5),a.Jc(4,"div",6),a.Jc(5,"mat-form-field"),a.Jc(6,"input",7),a.Wc("keyup",(function(t){return a.rd(i),a.ad().applyFilter(t.target.value)})),a.Ic(),a.Ic(),a.Ic(),a.Jc(7,"div",8),a.Jc(8,"mat-table",9,10),a.Hc(10,11),a.zd(11,OA,3,0,"mat-header-cell",12),a.zd(12,AA,4,2,"mat-cell",13),a.Gc(),a.Hc(13,14),a.zd(14,TA,3,0,"mat-header-cell",12),a.zd(15,MA,4,2,"mat-cell",13),a.Gc(),a.Hc(16,15),a.zd(17,LA,3,0,"mat-header-cell",12),a.zd(18,NA,10,4,"mat-cell",13),a.Gc(),a.zd(19,zA,1,0,"mat-header-row",16),a.zd(20,BA,1,0,"mat-row",17),a.Ic(),a.Ec(21,"mat-paginator",18,19),a.Jc(23,"button",20),a.Wc("click",(function(){return a.rd(i),a.ad().openAddUserDialog()})),a.Hc(24),a.Nc(25,kA),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(26,"button",21),a.Hc(27),a.Nc(28,wA),a.Gc(),a.Ic(),a.Jc(29,"mat-menu",null,22),a.zd(31,JA,2,1,"button",23),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.nd(30),r=a.ad();a.pc(8),a.gd("dataSource",r.dataSource),a.pc(11),a.gd("matHeaderRowDef",r.displayedColumns),a.pc(1),a.gd("matRowDefColumns",r.displayedColumns),a.pc(1),a.gd("length",r.length)("pageSize",r.pageSize)("pageSizeOptions",r.pageSizeOptions),a.pc(2),a.gd("disabled",!r.users),a.pc(3),a.gd("matMenuTriggerFor",n),a.pc(5),a.gd("ngForOf",r.roles)}}function HA(t,e){1&t&&a.Ec(0,"mat-spinner")}kA=$localize(_templateObject34()),wA=$localize(_templateObject35()),CA=$localize(_templateObject36()),xA=$localize(_templateObject37()),SA=$localize(_templateObject38());var UA,GA=((UA=function(){function t(e,i,n,a){_classCallCheck(this,t),this.postsService=e,this.snackBar=i,this.dialog=n,this.dialogRef=a,this.displayedColumns=["name","role","actions"],this.dataSource=new OC,this.deleteDialogContentSubstring="Are you sure you want delete user ",this.length=100,this.pageSize=5,this.pageSizeOptions=[5,10,25,100],this.editObject=null,this.constructedObject={},this.roles=null}return _createClass(t,[{key:"ngOnInit",value:function(){this.getArray(),this.getRoles()}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}},{key:"afterGetData",value:function(){this.dataSource.sort=this.sort}},{key:"setPageSizeOptions",value:function(t){this.pageSizeOptions=t.split(",").map((function(t){return+t}))}},{key:"applyFilter",value:function(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t}},{key:"getArray",value:function(){var t=this;this.postsService.getUsers().subscribe((function(e){t.users=e.users,t.createAndSortData(),t.afterGetData()}))}},{key:"getRoles",value:function(){var t=this;this.postsService.getRoles().subscribe((function(e){t.roles=[];for(var i=e.roles,n=Object.keys(i),a=0;a<n.length;a++){var r=n[a];t.roles.push({name:r,permissions:i[r].permissions})}}))}},{key:"openAddUserDialog",value:function(){var t=this;this.dialog.open(iA).afterClosed().subscribe((function(e){e&&!e.error?(t.openSnackBar("Successfully added user "+e.name),t.getArray()):e&&e.error&&t.openSnackBar("Failed to add user")}))}},{key:"finishEditing",value:function(t){if(this.constructedObject&&this.constructedObject.name&&this.constructedObject.role&&!WA(this.constructedObject.name)&&!WA(this.constructedObject.role)){var e=this.indexOfUser(t);this.users[e]=this.constructedObject,this.constructedObject={},this.editObject=null,this.setUser(this.users[e]),this.createAndSortData()}}},{key:"enableEditMode",value:function(t){if(this.uidInUserList(t)&&this.indexOfUser(t)>-1){var e=this.indexOfUser(t);this.editObject=this.users[e],this.constructedObject.name=this.users[e].name,this.constructedObject.uid=this.users[e].uid,this.constructedObject.role=this.users[e].role}}},{key:"disableEditMode",value:function(){this.editObject=null}},{key:"uidInUserList",value:function(t){for(var e=0;e<this.users.length;e++)if(this.users[e].uid===t)return!0;return!1}},{key:"indexOfUser",value:function(t){for(var e=0;e<this.users.length;e++)if(this.users[e].uid===t)return e;return-1}},{key:"setUser",value:function(t){var e=this;this.postsService.changeUser(t).subscribe((function(t){e.getArray()}))}},{key:"manageUser",value:function(t){var e=this.indexOfUser(t);this.dialog.open(gA,{data:{user:this.users[e]},width:"65vw"})}},{key:"removeUser",value:function(t){var e=this;this.postsService.deleteUser(t).subscribe((function(t){e.getArray()}),(function(t){e.getArray()}))}},{key:"createAndSortData",value:function(){this.users.sort((function(t,e){return e.name>t.name}));for(var t=[],e=0;e<this.users.length;e++)t.push(JSON.parse(JSON.stringify(this.users[e])));this.dataSource.data=t}},{key:"openModifyRole",value:function(t){var e=this;this.dialog.open(IA,{data:{role:t}}).afterClosed().subscribe((function(t){e.getRoles()}))}},{key:"closeDialog",value:function(){this.dialogRef.close()}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||UA)(a.Dc(eD),a.Dc(R_),a.Dc(Mh),a.Dc(Eh))},UA.\u0275cmp=a.xc({type:UA,selectors:[["app-modify-users"]],viewQuery:function(t,e){var i;1&t&&(a.Fd(uk,!0),a.Fd(yk,!0)),2&t&&(a.md(i=a.Xc())&&(e.paginator=i.first),a.md(i=a.Xc())&&(e.sort=i.first))},inputs:{pageSize:"pageSize"},decls:4,vars:2,consts:[[4,"ngIf","ngIfElse"],[1,"centered",2,"position","absolute"],["loading",""],[2,"padding","15px"],[1,"row"],[1,"table","table-responsive","px-5","pb-4","pt-2"],[1,"example-header"],["matInput","","placeholder","Search",3,"keyup"],[1,"example-container","mat-elevation-z8"],["matSort","",3,"dataSource"],["table",""],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","role"],["matColumnDef","actions"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions"],["paginator",""],["color","primary","mat-raised-button","",2,"float","left","top","-45px","left","15px",3,"disabled","click"],["color","primary","mat-raised-button","",1,"edit-role",3,"matMenuTriggerFor"],["edit_roles_menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-sort-header",""],["noteditingname",""],[2,"width","80%"],["matInput","","type","text",2,"font-size","12px",3,"ngModel","ngModelChange"],["noteditingemail",""],[3,"ngModel","ngModelChange"],["value","admin"],["value","user"],["notediting",""],["mat-icon-button","","matTooltip","Manage user",3,"disabled","click"],["mat-icon-button","","matTooltip","Delete user",3,"disabled","click"],["mat-icon-button","","color","primary","matTooltip","Finish editing user",3,"click"],["mat-icon-button","","matTooltip","Cancel editing user",3,"click"],["mat-icon-button","","matTooltip","Edit user",3,"click"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(a.zd(0,VA,32,9,"div",0),a.Jc(1,"div",1),a.zd(2,HA,1,0,"ng-template",null,2,a.Ad),a.Ic()),2&t){var i=a.nd(3);a.gd("ngIf",e.dataSource)("ngIfElse",i)}},directives:[ye.t,qd,Lm,Qw,yk,sC,nC,eC,hC,gC,uk,Qa,Vg,Ng,ye.s,lC,Ok,dC,yr,Er,es,bb,Ba,mv,wm,bC,wC,Pg,zv],styles:[".edit-role[_ngcontent-%COMP%]{position:relative;top:-50px;left:35px}"]}),UA);function WA(t){return null===t||null!==t.match(/^ *$/)}var qA,$A,KA,XA=((qA=function(){function t(e){_classCallCheck(this,t),this.data=e,this.data.dialogTitle&&(this.dialogTitle=this.data.dialogTitle),this.data.dialogText&&(this.dialogText=this.data.dialogText),this.data.submitText&&(this.submitText=this.data.submitText)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||qA)(a.Dc(Ah))},qA.\u0275cmp=a.xc({type:qA,selectors:[["app-confirm-dialog"]],decls:11,vars:4,consts:[["mat-dialog-title",""],["color","primary","mat-flat-button","","type","submit",3,"mat-dialog-close"],[1,"spacer"],["mat-stroked-button","","mat-dialog-close","",2,"float","right"]],template:function(t,e){1&t&&(a.Jc(0,"h4",0),a.Bd(1),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div"),a.Bd(4),a.Ic(),a.Ic(),a.Jc(5,"mat-dialog-actions"),a.Jc(6,"button",1),a.Bd(7),a.Ic(),a.Ec(8,"span",2),a.Jc(9,"button",3),a.Bd(10,"Cancel"),a.Ic(),a.Ic()),2&t&&(a.pc(1),a.Cd(e.dialogTitle),a.pc(3),a.Dd(" ",e.dialogText," "),a.pc(2),a.gd("mat-dialog-close",!0),a.pc(1),a.Cd(e.submitText))},directives:[Fh,Nh,zh,Qa,jh],styles:[".spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),qA);function YA(t,e){1&t&&(a.Jc(0,"div",12),a.Ec(1,"mat-spinner",13),a.Ic()),2&t&&(a.pc(1),a.gd("diameter",32))}$A=$localize(_templateObject39()),KA=$localize(_templateObject40());var ZA=function(t){return{color:t}};function QA(t,e){if(1&t&&(a.Jc(0,"div",14),a.Jc(1,"span",15),a.Bd(2),a.Ic(),a.Ic()),2&t){var i=e.$implicit;a.pc(1),a.gd("ngStyle",a.jd(2,ZA,i.color)),a.pc(1),a.Cd(i.text)}}var tT,eT,iT=((tT=function(){function t(e,i){_classCallCheck(this,t),this.postsService=e,this.dialog=i,this.logs=null,this.logs_text=null,this.requested_lines=50,this.logs_loading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.getLogs()}},{key:"getLogs",value:function(){var t=this;this.logs||(this.logs_loading=!0),this.postsService.getLogs(0!==this.requested_lines?this.requested_lines:null).subscribe((function(e){t.logs_loading=!1,null!==e.logs||void 0!==e.logs?(t.logs_text=e.logs,t.logs=[],e.logs.split("\n").forEach((function(e){var i="inherit";e.includes("ERROR")?i="red":e.includes("WARN")?i="yellow":e.includes("VERBOSE")&&(i="gray"),t.logs.push({text:e,color:i})}))):t.postsService.openSnackBar("Failed to retrieve logs!")}),(function(e){t.logs_loading=!1,console.error(e),t.postsService.openSnackBar("Failed to retrieve logs!")}))}},{key:"copiedLogsToClipboard",value:function(){this.postsService.openSnackBar("Logs copied to clipboard!")}},{key:"clearLogs",value:function(){var t=this;this.dialog.open(XA,{data:{dialogTitle:"Clear logs",dialogText:"Would you like to clear your logs? This will delete all your current logs, permanently.",submitText:"Clear"}}).afterClosed().subscribe((function(e){e&&t.postsService.clearAllLogs().subscribe((function(e){e.success?(t.logs=[],t.logs_text="",t.getLogs(),t.postsService.openSnackBar("Logs successfully cleared!")):t.postsService.openSnackBar("Failed to clear logs!")}),(function(e){t.postsService.openSnackBar("Failed to clear logs!")}))}))}}]),t}()).\u0275fac=function(t){return new(t||tT)(a.Dc(eD),a.Dc(Mh))},tT.\u0275cmp=a.xc({type:tT,selectors:[["app-logs-viewer"]],decls:28,vars:9,consts:[[2,"height","275px"],["style","z-index: 999; position: absolute; top: 40%; left: 50%",4,"ngIf"],[2,"height","274px","overflow-y","auto"],["class","example-item",4,"ngFor","ngForOf"],["mat-mini-fab","","color","primary",2,"position","absolute","right","0px","top","12px",3,"cdkCopyToClipboard","click"],[2,"font-size","22px !important"],[2,"display","inline-block"],[2,"width","75px"],[3,"ngModel","selectionChange","ngModelChange"],[3,"value"],[1,"spacer"],["mat-stroked-button","","color","warn",2,"float","right","margin-top","12px",3,"click"],[2,"z-index","999","position","absolute","top","40%","left","50%"],[3,"diameter"],[1,"example-item"],[3,"ngStyle"]],template:function(t,e){1&t&&(a.Jc(0,"div",0),a.zd(1,YA,2,1,"div",1),a.Jc(2,"div",2),a.zd(3,QA,3,4,"div",3),a.Ic(),a.Jc(4,"div"),a.Jc(5,"button",4),a.Wc("click",(function(){return e.copiedLogsToClipboard()})),a.Jc(6,"mat-icon",5),a.Bd(7,"content_copy"),a.Ic(),a.Ic(),a.Jc(8,"div",6),a.Hc(9),a.Nc(10,$A),a.Gc(),a.Bd(11,"\xa0 "),a.Jc(12,"mat-form-field",7),a.Jc(13,"mat-select",8),a.Wc("selectionChange",(function(){return e.getLogs()}))("ngModelChange",(function(t){return e.requested_lines=t})),a.Jc(14,"mat-option",9),a.Bd(15,"10"),a.Ic(),a.Jc(16,"mat-option",9),a.Bd(17,"25"),a.Ic(),a.Jc(18,"mat-option",9),a.Bd(19,"50"),a.Ic(),a.Jc(20,"mat-option",9),a.Bd(21,"100"),a.Ic(),a.Jc(22,"mat-option",9),a.Bd(23,"All"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ec(24,"span",10),a.Jc(25,"button",11),a.Wc("click",(function(){return e.clearLogs()})),a.Hc(26),a.Nc(27,KA),a.Gc(),a.Ic(),a.Ic(),a.Ic()),2&t&&(a.pc(1),a.gd("ngIf",e.logs_loading),a.pc(2),a.gd("ngForOf",e.logs),a.pc(2),a.gd("cdkCopyToClipboard",e.logs_text),a.pc(8),a.gd("ngModel",e.requested_lines),a.pc(1),a.gd("value",10),a.pc(2),a.gd("value",25),a.pc(2),a.gd("value",50),a.pc(2),a.gd("value",100),a.pc(2),a.gd("value",0))},directives:[ye.t,ye.s,Qa,Rx,wm,qd,bb,Er,es,Ba,zv,ye.w],styles:[".spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),tT);eT=$localize(_templateObject41());var nT,aT,rT=["label",$localize(_templateObject42())],oT=["label",$localize(_templateObject43())],sT=["label",$localize(_templateObject44())],cT=["label",$localize(_templateObject45())];nT=$localize(_templateObject46()),aT=$localize(_templateObject47()),aT=a.Rc(aT,{VAR_SELECT:"\ufffd0\ufffd"});var lT,uT=["placeholder",$localize(_templateObject48())];lT=$localize(_templateObject49());var dT,hT,pT=["placeholder",$localize(_templateObject50())];function fT(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-form-field",13),a.Jc(4,"input",14),a.Pc(5,uT),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Host.url=t})),a.Ic(),a.Jc(6,"mat-hint"),a.Hc(7),a.Nc(8,lT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(9,"div",15),a.Jc(10,"mat-form-field",13),a.Jc(11,"input",14),a.Pc(12,pT),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Host.port=t})),a.Ic(),a.Jc(13,"mat-hint"),a.Hc(14),a.Nc(15,dT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad(2);a.pc(4),a.gd("ngModel",n.new_config.Host.url),a.pc(7),a.gd("ngModel",n.new_config.Host.port)}}dT=$localize(_templateObject51()),hT=$localize(_templateObject52());var mT,gT,vT=["placeholder",$localize(_templateObject53())];function bT(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Advanced.multi_user_mode=t})),a.Hc(4),a.Nc(5,hT),a.Gc(),a.Ic(),a.Ic(),a.Jc(6,"div",17),a.Jc(7,"mat-form-field",18),a.Jc(8,"input",19),a.Pc(9,vT),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Users.base_path=t})),a.Ic(),a.Jc(10,"mat-hint"),a.Hc(11),a.Nc(12,mT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.Advanced.multi_user_mode),a.pc(5),a.gd("disabled",!n.new_config.Advanced.multi_user_mode)("ngModel",n.new_config.Users.base_path)}}mT=$localize(_templateObject54()),gT=$localize(_templateObject55());var _T,yT=["placeholder",$localize(_templateObject56())],kT=["placeholder",$localize(_templateObject57())];function wT(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Encryption["use-encryption"]=t})),a.Hc(4),a.Nc(5,gT),a.Gc(),a.Ic(),a.Ic(),a.Jc(6,"div",20),a.Jc(7,"mat-form-field",13),a.Jc(8,"input",21),a.Pc(9,yT),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Encryption["cert-file-path"]=t})),a.Ic(),a.Ic(),a.Ic(),a.Jc(10,"div",20),a.Jc(11,"mat-form-field",13),a.Jc(12,"input",21),a.Pc(13,kT),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Encryption["key-file-path"]=t})),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.Encryption["use-encryption"]),a.pc(5),a.gd("disabled",!n.new_config.Encryption["use-encryption"])("ngModel",n.new_config.Encryption["cert-file-path"]),a.pc(4),a.gd("disabled",!n.new_config.Encryption["use-encryption"])("ngModel",n.new_config.Encryption["key-file-path"])}}_T=$localize(_templateObject58());var CT,xT=["placeholder",$localize(_templateObject59())];CT=$localize(_templateObject60());var ST,IT,OT,DT,ET,AT,TT,PT,RT,MT,LT=["placeholder",$localize(_templateObject61())];function jT(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Subscriptions.allow_subscriptions=t})),a.Hc(4),a.Nc(5,_T),a.Gc(),a.Ic(),a.Ic(),a.Jc(6,"div",20),a.Jc(7,"mat-form-field",13),a.Jc(8,"input",21),a.Pc(9,xT),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Subscriptions.subscriptions_base_path=t})),a.Ic(),a.Jc(10,"mat-hint"),a.Hc(11),a.Nc(12,CT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(13,"div",22),a.Jc(14,"mat-form-field",13),a.Jc(15,"input",21),a.Pc(16,LT),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Subscriptions.subscriptions_check_interval=t})),a.Ic(),a.Jc(17,"mat-hint"),a.Hc(18),a.Nc(19,ST),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(20,"div",23),a.Jc(21,"mat-checkbox",24),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Subscriptions.subscriptions_use_youtubedl_archive=t})),a.Hc(22),a.Nc(23,IT),a.Gc(),a.Ic(),a.Jc(24,"p"),a.Jc(25,"a",25),a.Hc(26),a.Nc(27,OT),a.Gc(),a.Ic(),a.Bd(28,"\xa0"),a.Hc(29),a.Nc(30,DT),a.Gc(),a.Ic(),a.Jc(31,"p"),a.Hc(32),a.Nc(33,ET),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.Subscriptions.allow_subscriptions),a.pc(5),a.gd("disabled",!n.new_config.Subscriptions.allow_subscriptions)("ngModel",n.new_config.Subscriptions.subscriptions_base_path),a.pc(7),a.gd("disabled",!n.new_config.Subscriptions.allow_subscriptions)("ngModel",n.new_config.Subscriptions.subscriptions_check_interval),a.pc(6),a.gd("disabled",!n.new_config.Subscriptions.allow_subscriptions)("ngModel",n.new_config.Subscriptions.subscriptions_use_youtubedl_archive)}}function FT(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-form-field"),a.Jc(4,"mat-label"),a.Hc(5),a.Nc(6,AT),a.Gc(),a.Ic(),a.Jc(7,"mat-select",16),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Themes.default_theme=t})),a.Jc(8,"mat-option",26),a.Hc(9),a.Nc(10,TT),a.Gc(),a.Ic(),a.Jc(11,"mat-option",27),a.Hc(12),a.Nc(13,PT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(14,"div",28),a.Jc(15,"mat-checkbox",16),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Themes.allow_theme_change=t})),a.Hc(16),a.Nc(17,RT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad(2);a.pc(7),a.gd("ngModel",n.new_config.Themes.default_theme),a.pc(8),a.gd("ngModel",n.new_config.Themes.allow_theme_change)}}function NT(t,e){if(1&t&&(a.Jc(0,"mat-option",32),a.Bd(1),a.Ic()),2&t){var i=e.$implicit,n=a.ad(3);a.gd("value",i),a.pc(1),a.Dd(" ",n.all_locales[i].nativeName," ")}}function zT(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-form-field",29),a.Jc(4,"mat-label"),a.Hc(5),a.Nc(6,MT),a.Gc(),a.Ic(),a.Jc(7,"mat-select",30),a.Wc("selectionChange",(function(t){return a.rd(i),a.ad(2).localeSelectChanged(t.value)}))("valueChange",(function(t){return a.rd(i),a.ad(2).initialLocale=t})),a.zd(8,NT,2,2,"mat-option",31),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad(2);a.pc(7),a.gd("value",n.initialLocale),a.pc(1),a.gd("ngForOf",n.supported_locales)}}function BT(t,e){if(1&t&&(a.zd(0,fT,16,2,"div",9),a.Ec(1,"mat-divider"),a.zd(2,bT,13,3,"div",9),a.Ec(3,"mat-divider"),a.zd(4,wT,14,5,"div",9),a.Ec(5,"mat-divider"),a.zd(6,jT,34,7,"div",9),a.Ec(7,"mat-divider"),a.zd(8,FT,18,2,"div",9),a.Ec(9,"mat-divider"),a.zd(10,zT,9,2,"div",9)),2&t){var i=a.ad();a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config)}}ST=$localize(_templateObject62()),IT=$localize(_templateObject63()),OT=$localize(_templateObject64()),DT=$localize(_templateObject65()),ET=$localize(_templateObject66()),AT=$localize(_templateObject67()),TT=$localize(_templateObject68()),PT=$localize(_templateObject69()),RT=$localize(_templateObject70()),MT=$localize(_templateObject71());var JT,VT=["placeholder",$localize(_templateObject72())];JT=$localize(_templateObject73());var HT,UT=["placeholder",$localize(_templateObject74())];HT=$localize(_templateObject75());var GT,WT,qT,$T=["placeholder",$localize(_templateObject76())];function KT(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-form-field",13),a.Jc(4,"input",14),a.Pc(5,VT),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Downloader["path-audio"]=t})),a.Ic(),a.Jc(6,"mat-hint"),a.Hc(7),a.Nc(8,JT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(9,"div",22),a.Jc(10,"mat-form-field",13),a.Jc(11,"input",14),a.Pc(12,UT),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Downloader["path-video"]=t})),a.Ic(),a.Jc(13,"mat-hint"),a.Hc(14),a.Nc(15,HT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(16,"div",22),a.Jc(17,"mat-form-field",33),a.Jc(18,"textarea",34),a.Pc(19,$T),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Downloader.custom_args=t})),a.Ic(),a.Jc(20,"mat-hint"),a.Hc(21),a.Nc(22,GT),a.Gc(),a.Ic(),a.Jc(23,"button",35),a.Wc("click",(function(){return a.rd(i),a.ad(2).openArgsModifierDialog()})),a.Jc(24,"mat-icon"),a.Bd(25,"edit"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(26,"div",23),a.Jc(27,"mat-checkbox",16),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Downloader.use_youtubedl_archive=t})),a.Hc(28),a.Nc(29,WT),a.Gc(),a.Ic(),a.Jc(30,"p"),a.Bd(31,"Note: This setting only applies to downloads on the Home page. If you would like to use youtube-dl archive functionality in subscriptions, head to the Main tab and activate this option there."),a.Ic(),a.Ic(),a.Jc(32,"div",12),a.Jc(33,"mat-checkbox",16),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Downloader.safe_download_override=t})),a.Hc(34),a.Nc(35,qT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad(2);a.pc(4),a.gd("ngModel",n.new_config.Downloader["path-audio"]),a.pc(7),a.gd("ngModel",n.new_config.Downloader["path-video"]),a.pc(7),a.gd("ngModel",n.new_config.Downloader.custom_args),a.pc(9),a.gd("ngModel",n.new_config.Downloader.use_youtubedl_archive),a.pc(6),a.gd("ngModel",n.new_config.Downloader.safe_download_override)}}function XT(t,e){if(1&t&&a.zd(0,KT,36,5,"div",9),2&t){var i=a.ad();a.gd("ngIf",i.new_config)}}GT=$localize(_templateObject77()),WT=$localize(_templateObject78()),qT=$localize(_templateObject79());var YT,ZT,QT,tP,eP,iP,nP,aP,rP=["placeholder",$localize(_templateObject80())];function oP(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-form-field",13),a.Jc(4,"input",14),a.Pc(5,rP),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Extra.title_top=t})),a.Ic(),a.Ec(6,"mat-hint"),a.Ic(),a.Ic(),a.Jc(7,"div",20),a.Jc(8,"mat-checkbox",16),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Extra.file_manager_enabled=t})),a.Hc(9),a.Nc(10,YT),a.Gc(),a.Ic(),a.Ic(),a.Jc(11,"div",20),a.Jc(12,"mat-checkbox",16),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Extra.enable_downloads_manager=t})),a.Hc(13),a.Nc(14,ZT),a.Gc(),a.Ic(),a.Ic(),a.Jc(15,"div",20),a.Jc(16,"mat-checkbox",16),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Extra.allow_quality_select=t})),a.Hc(17),a.Nc(18,QT),a.Gc(),a.Ic(),a.Ic(),a.Jc(19,"div",20),a.Jc(20,"mat-checkbox",16),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Extra.download_only_mode=t})),a.Hc(21),a.Nc(22,tP),a.Gc(),a.Ic(),a.Ic(),a.Jc(23,"div",20),a.Jc(24,"mat-checkbox",16),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Extra.allow_multi_download_mode=t})),a.Hc(25),a.Nc(26,eP),a.Gc(),a.Ic(),a.Ic(),a.Jc(27,"div",20),a.Jc(28,"mat-checkbox",24),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Extra.settings_pin_required=t})),a.Hc(29),a.Nc(30,iP),a.Gc(),a.Ic(),a.Jc(31,"button",36),a.Wc("click",(function(){return a.rd(i),a.ad(2).setNewPin()})),a.Hc(32),a.Nc(33,nP),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad(2);a.pc(4),a.gd("ngModel",n.new_config.Extra.title_top),a.pc(4),a.gd("ngModel",n.new_config.Extra.file_manager_enabled),a.pc(4),a.gd("ngModel",n.new_config.Extra.enable_downloads_manager),a.pc(4),a.gd("ngModel",n.new_config.Extra.allow_quality_select),a.pc(4),a.gd("ngModel",n.new_config.Extra.download_only_mode),a.pc(4),a.gd("ngModel",n.new_config.Extra.allow_multi_download_mode),a.pc(4),a.gd("disabled",n.new_config.Advanced.multi_user_mode)("ngModel",n.new_config.Extra.settings_pin_required),a.pc(3),a.gd("disabled",!n.new_config.Extra.settings_pin_required)}}YT=$localize(_templateObject81()),ZT=$localize(_templateObject82()),QT=$localize(_templateObject83()),tP=$localize(_templateObject84()),eP=$localize(_templateObject85()),iP=$localize(_templateObject86()),nP=$localize(_templateObject87()),aP=$localize(_templateObject88());var sP,cP,lP,uP=["placeholder",$localize(_templateObject89())];function dP(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.API.use_API_key=t})),a.Hc(4),a.Nc(5,aP),a.Gc(),a.Ic(),a.Ic(),a.Jc(6,"div",37),a.Jc(7,"div",38),a.Jc(8,"mat-form-field",13),a.Jc(9,"input",19),a.Pc(10,uP),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.API.API_key=t})),a.Ic(),a.Jc(11,"mat-hint"),a.Jc(12,"a",39),a.Hc(13),a.Nc(14,sP),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(15,"div",40),a.Jc(16,"button",41),a.Wc("click",(function(){return a.rd(i),a.ad(2).generateAPIKey()})),a.Hc(17),a.Nc(18,cP),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.API.use_API_key),a.pc(6),a.gd("disabled",!n.new_config.API.use_API_key)("ngModel",n.new_config.API.API_key)}}sP=$localize(_templateObject90()),cP=$localize(_templateObject91()),lP=$localize(_templateObject92());var hP,pP,fP,mP,gP,vP,bP,_P,yP,kP,wP,CP,xP,SP,IP,OP,DP=["placeholder",$localize(_templateObject93())];function EP(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.API.use_youtube_API=t})),a.Hc(4),a.Nc(5,lP),a.Gc(),a.Ic(),a.Ic(),a.Jc(6,"div",37),a.Jc(7,"mat-form-field",13),a.Jc(8,"input",19),a.Pc(9,DP),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.API.youtube_API_key=t})),a.Ic(),a.Jc(10,"mat-hint"),a.Jc(11,"a",42),a.Hc(12),a.Nc(13,hP),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.API.use_youtube_API),a.pc(5),a.gd("disabled",!n.new_config.API.use_youtube_API)("ngModel",n.new_config.API.youtube_API_key)}}function AP(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"h6"),a.Bd(4,"Chrome"),a.Ic(),a.Jc(5,"p"),a.Jc(6,"a",43),a.Hc(7),a.Nc(8,pP),a.Gc(),a.Ic(),a.Bd(9,"\xa0"),a.Hc(10),a.Nc(11,fP),a.Gc(),a.Ic(),a.Jc(12,"p"),a.Hc(13),a.Nc(14,mP),a.Gc(),a.Ic(),a.Ec(15,"mat-divider",44),a.Ic(),a.Jc(16,"div",20),a.Jc(17,"h6"),a.Bd(18,"Firefox"),a.Ic(),a.Jc(19,"p"),a.Jc(20,"a",45),a.Hc(21),a.Nc(22,gP),a.Gc(),a.Ic(),a.Bd(23,"\xa0"),a.Hc(24),a.Nc(25,vP),a.Gc(),a.Ic(),a.Jc(26,"p"),a.Jc(27,"a",46),a.Hc(28),a.Nc(29,bP),a.Gc(),a.Ic(),a.Bd(30,"\xa0"),a.Hc(31),a.Nc(32,_P),a.Gc(),a.Ic(),a.Ec(33,"mat-divider",44),a.Ic(),a.Jc(34,"div",20),a.Jc(35,"h6"),a.Bd(36,"Bookmarklet"),a.Ic(),a.Jc(37,"p"),a.Hc(38),a.Nc(39,yP),a.Gc(),a.Ic(),a.Jc(40,"mat-checkbox",47),a.Wc("change",(function(t){return a.rd(i),a.ad(2).bookmarkletAudioOnlyChanged(t)})),a.Hc(41),a.Nc(42,kP),a.Gc(),a.Ic(),a.Jc(43,"p"),a.Jc(44,"a",48),a.Bd(45,"YTDL-Bookmarklet"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad(2);a.pc(44),a.gd("href",n.generated_bookmarklet_code,a.td)}}function TP(t,e){if(1&t&&(a.zd(0,oP,34,9,"div",9),a.Ec(1,"mat-divider"),a.zd(2,dP,19,3,"div",9),a.Ec(3,"mat-divider"),a.zd(4,EP,14,3,"div",9),a.Ec(5,"mat-divider"),a.zd(6,AP,46,1,"div",9)),2&t){var i=a.ad();a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config)}}function PP(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Advanced.use_default_downloading_agent=t})),a.Hc(4),a.Nc(5,wP),a.Gc(),a.Ic(),a.Ic(),a.Jc(6,"div",20),a.Jc(7,"mat-form-field"),a.Jc(8,"mat-label"),a.Hc(9),a.Nc(10,CP),a.Gc(),a.Ic(),a.Jc(11,"mat-select",24),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Advanced.custom_downloading_agent=t})),a.Jc(12,"mat-option",50),a.Bd(13,"aria2c"),a.Ic(),a.Jc(14,"mat-option",51),a.Bd(15,"avconv"),a.Ic(),a.Jc(16,"mat-option",52),a.Bd(17,"axel"),a.Ic(),a.Jc(18,"mat-option",53),a.Bd(19,"curl"),a.Ic(),a.Jc(20,"mat-option",54),a.Bd(21,"ffmpeg"),a.Ic(),a.Jc(22,"mat-option",55),a.Bd(23,"httpie"),a.Ic(),a.Jc(24,"mat-option",56),a.Bd(25,"wget"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(26,"div",57),a.Jc(27,"mat-form-field"),a.Jc(28,"mat-label"),a.Hc(29),a.Nc(30,xP),a.Gc(),a.Ic(),a.Jc(31,"mat-select",16),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Advanced.logger_level=t})),a.Jc(32,"mat-option",58),a.Bd(33,"Debug"),a.Ic(),a.Jc(34,"mat-option",59),a.Bd(35,"Verbose"),a.Ic(),a.Jc(36,"mat-option",60),a.Bd(37,"Info"),a.Ic(),a.Jc(38,"mat-option",61),a.Bd(39,"Warn"),a.Ic(),a.Jc(40,"mat-option",62),a.Bd(41,"Error"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(42,"div",20),a.Jc(43,"mat-checkbox",16),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Advanced.allow_advanced_download=t})),a.Hc(44),a.Nc(45,SP),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.Advanced.use_default_downloading_agent),a.pc(8),a.gd("disabled",n.new_config.Advanced.use_default_downloading_agent)("ngModel",n.new_config.Advanced.custom_downloading_agent),a.pc(20),a.gd("ngModel",n.new_config.Advanced.logger_level),a.pc(12),a.gd("ngModel",n.new_config.Advanced.allow_advanced_download)}}function RP(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",23),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).new_config.Advanced.use_cookies=t})),a.Hc(4),a.Nc(5,IP),a.Gc(),a.Ic(),a.Jc(6,"button",63),a.Wc("click",(function(){return a.rd(i),a.ad(2).openCookiesUploaderDialog()})),a.Hc(7),a.Nc(8,OP),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.Advanced.use_cookies)}}function MP(t,e){1&t&&(a.Jc(0,"div",64),a.Ec(1,"app-updater"),a.Ic())}function LP(t,e){if(1&t&&(a.zd(0,PP,46,5,"div",9),a.Ec(1,"mat-divider"),a.zd(2,RP,9,1,"div",9),a.Ec(3,"mat-divider"),a.zd(4,MP,2,0,"div",49)),2&t){var i=a.ad();a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config)}}hP=$localize(_templateObject94()),pP=$localize(_templateObject95()),fP=$localize(_templateObject96()),mP=$localize(_templateObject97()),gP=$localize(_templateObject98()),vP=$localize(_templateObject99()),bP=$localize(_templateObject100()),_P=$localize(_templateObject101()),yP=$localize(_templateObject102()),kP=$localize(_templateObject103()),wP=$localize(_templateObject104()),CP=$localize(_templateObject105()),xP=$localize(_templateObject106()),SP=$localize(_templateObject107()),IP=$localize(_templateObject108()),OP=$localize(_templateObject109());var jP,FP=["label",$localize(_templateObject110())];function NP(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-tab",1),a.Pc(1,FP),a.Jc(2,"div",65),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad().new_config.Users.allow_registration=t})),a.Hc(4),a.Nc(5,jP),a.Gc(),a.Ic(),a.Ic(),a.Ec(6,"app-modify-users"),a.Ic()}if(2&t){var n=a.ad();a.pc(3),a.gd("ngModel",n.new_config.Users.allow_registration)}}jP=$localize(_templateObject111());var zP=["label",$localize(_templateObject112())];function BP(t,e){1&t&&(a.Jc(0,"div",66),a.Ec(1,"app-logs-viewer"),a.Ic())}function JP(t,e){1&t&&(a.Jc(0,"mat-tab",1),a.Pc(1,zP),a.zd(2,BP,2,0,"ng-template",3),a.Ic())}var VP,HP,UP,GP,WP,qP,$P,KP,XP,YP,ZP,QP=((VP=function(){function t(e,i,n,a){_classCallCheck(this,t),this.postsService=e,this.snackBar=i,this.sanitizer=n,this.dialog=a,this.all_locales=ID,this.supported_locales=["en","es","de"],this.initialLocale=localStorage.getItem("locale"),this.initial_config=null,this.new_config=null,this.loading_config=!1,this.generated_bookmarklet_code=null,this.bookmarkletAudioOnly=!1,this._settingsSame=!0,this.latestGithubRelease=null,this.CURRENT_VERSION="v4.1"}return _createClass(t,[{key:"ngOnInit",value:function(){this.getConfig(),this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode()),this.getLatestGithubRelease()}},{key:"getConfig",value:function(){this.initial_config=this.postsService.config,this.new_config=JSON.parse(JSON.stringify(this.initial_config))}},{key:"settingsSame",value:function(){return JSON.stringify(this.new_config)===JSON.stringify(this.initial_config)}},{key:"saveSettings",value:function(){var t=this;this.postsService.setConfig({YoutubeDLMaterial:this.new_config}).subscribe((function(e){e.success&&(!t.initial_config.Advanced.multi_user_mode&&t.new_config.Advanced.multi_user_mode&&t.postsService.checkAdminCreationStatus(!0),t.initial_config=JSON.parse(JSON.stringify(t.new_config)),t.postsService.reload_config.next(!0))}),(function(t){console.error("Failed to save config!")}))}},{key:"setNewPin",value:function(){this.dialog.open(SD,{data:{resetMode:!0}})}},{key:"generateAPIKey",value:function(){var t=this;this.postsService.generateNewAPIKey().subscribe((function(e){e.new_api_key&&(t.initial_config.API.API_key=e.new_api_key,t.new_config.API.API_key=e.new_api_key)}))}},{key:"localeSelectChanged",value:function(t){localStorage.setItem("locale",t),this.openSnackBar("Language successfully changed! Reload to update the page.")}},{key:"generateBookmarklet",value:function(){this.bookmarksite("YTDL-Material",this.generated_bookmarklet_code)}},{key:"generateBookmarkletCode",value:function(){return"javascript:(function()%7Bwindow.open('".concat(window.location.href.split("#")[0]+"#/home;url=","' + encodeURIComponent(window.location) + ';audioOnly=").concat(this.bookmarkletAudioOnly,"')%7D)()")}},{key:"bookmarkletAudioOnlyChanged",value:function(t){this.bookmarkletAudioOnly=t.checked,this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode())}},{key:"bookmarksite",value:function(t,e){if(document.all)window.external.AddFavorite(e,t);else if(window.chrome)this.openSnackBar("Chrome users must drag the 'Alternate URL' link to your bookmarks.");else if(window.sidebar)window.sidebar.addPanel(t,e,"");else if(window.opera&&window.print){var i=document.createElement("a");i.setAttribute("href",e),i.setAttribute("title",t),i.setAttribute("rel","sidebar"),i.click()}}},{key:"openArgsModifierDialog",value:function(){var t=this;this.dialog.open(nE,{data:{initial_args:this.new_config.Downloader.custom_args}}).afterClosed().subscribe((function(e){null!=e&&(t.new_config.Downloader.custom_args=e)}))}},{key:"getLatestGithubRelease",value:function(){var t=this;this.postsService.getLatestGithubRelease().subscribe((function(e){t.latestGithubRelease=e}))}},{key:"openCookiesUploaderDialog",value:function(){this.dialog.open(EE,{width:"65vw"})}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}},{key:"settingsAreTheSame",get:function(){return this._settingsSame=this.settingsSame(),this._settingsSame},set:function(t){this._settingsSame=t}}]),t}()).\u0275fac=function(t){return new(t||VP)(a.Dc(eD),a.Dc(R_),a.Dc(n.b),a.Dc(Mh))},VP.\u0275cmp=a.xc({type:VP,selectors:[["app-settings"]],decls:32,vars:5,consts:[["mat-dialog-title",""],[6,"label"],["matTabContent","","style","padding: 15px;"],["matTabContent",""],["label","Users",4,"ngIf"],["label","Logs",4,"ngIf"],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","click"],["mat-flat-button","",3,"mat-dialog-close"],["class","container-fluid",4,"ngIf"],[1,"container-fluid"],[1,"row"],[1,"col-12","mt-3"],["color","accent",1,"text-field"],["matInput","","required","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mb-4"],["color","accent",3,"ngModel","ngModelChange"],[1,"col-12","mt-3","mb-4"],[1,"text-field"],["matInput","","required","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],[1,"col-12"],["matInput","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-5"],[1,"col-12","mt-4"],["color","accent",3,"disabled","ngModel","ngModelChange"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#how-do-i-download-only-new-videos-from-a-playlist"],["value","default"],["value","dark"],[1,"col-12","mb-2"],["color","accent"],[3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["color","accent",1,"text-field",2,"margin-right","12px"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["mat-icon-button","",1,"args-edit-button",3,"click"],["mat-stroked-button","",2,"margin-left","15px","margin-bottom","10px",3,"disabled","click"],[1,"col-12","mb-3"],[1,"enable-api-key-div"],["target","_blank","href","https://stoplight.io/p/docs/gh/tzahi12345/youtubedl-material"],[1,"api-key-div"],["matTooltip-i18n","","matTooltip","This will delete your old API key!","mat-stroked-button","",3,"click"],["target","_blank","href","https://developers.google.com/youtube/v3/getting-started"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/blob/master/chrome-extension/youtubedl-material-chrome-extension.zip?raw=true"],[1,"ext-divider"],["href","https://addons.mozilla.org/en-US/firefox/addon/youtubedl-material/","target","_blank"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/wiki/Firefox-Extension","target","_blank"],[3,"change"],["target","_blank",3,"href"],["class","container-fluid mt-1",4,"ngIf"],["value","aria2c"],["value","avconv"],["value","axel"],["value","curl"],["value","ffmpeg"],["value","httpie"],["value","wget"],[1,"col-12","mt-2","mb-1"],["value","debug"],["value","verbose"],["value","info"],["value","warn"],["value","error"],["mat-stroked-button","",1,"checkbox-button",3,"click"],[1,"container-fluid","mt-1"],[2,"margin-left","48px","margin-top","24px"],[2,"margin-left","48px","margin-top","24px","height","340px"]],template:function(t,e){1&t&&(a.Jc(0,"h4",0),a.Nc(1,eT),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"mat-tab-group"),a.Jc(4,"mat-tab",1),a.Pc(5,rT),a.zd(6,BT,11,6,"ng-template",2),a.Ic(),a.Jc(7,"mat-tab",1),a.Pc(8,oT),a.zd(9,XT,1,1,"ng-template",3),a.Ic(),a.Jc(10,"mat-tab",1),a.Pc(11,sT),a.zd(12,TP,7,4,"ng-template",3),a.Ic(),a.Jc(13,"mat-tab",1),a.Pc(14,cT),a.zd(15,LP,5,3,"ng-template",3),a.Ic(),a.zd(16,NP,7,1,"mat-tab",4),a.zd(17,JP,3,0,"mat-tab",5),a.Ic(),a.Ic(),a.Jc(18,"mat-dialog-actions"),a.Jc(19,"div",6),a.Jc(20,"button",7),a.Wc("click",(function(){return e.saveSettings()})),a.Jc(21,"mat-icon"),a.Bd(22,"done"),a.Ic(),a.Bd(23,"\xa0\xa0 "),a.Hc(24),a.Nc(25,nT),a.Gc(),a.Ic(),a.Jc(26,"button",8),a.Jc(27,"mat-icon"),a.Bd(28,"cancel"),a.Ic(),a.Bd(29,"\xa0\xa0 "),a.Jc(30,"span"),a.Nc(31,aT),a.Ic(),a.Ic(),a.Ic(),a.Ic()),2&t&&(a.pc(16),a.gd("ngIf",e.postsService.config&&e.postsService.config.Advanced.multi_user_mode),a.pc(1),a.gd("ngIf",e.postsService.config),a.pc(3),a.gd("disabled",e.settingsSame()),a.pc(6),a.gd("mat-dialog-close",!1),a.pc(5),a.Qc(e.settingsAreTheSame+""),a.Oc(31))},directives:[Fh,Nh,Ny,Dy,Cy,ye.t,zh,Qa,wm,jh,Fm,qd,Lm,yr,Xs,Er,es,Nd,Zc,zd,bb,Ba,ye.s,mv,qE,GA,iT],styles:[".settings-expansion-panel[_ngcontent-%COMP%]{margin-bottom:20px}.ext-divider[_ngcontent-%COMP%]{margin-bottom:14px}.args-edit-button[_ngcontent-%COMP%]{position:absolute;margin-left:10px;top:20px}.enable-api-key-div[_ngcontent-%COMP%]{margin-bottom:8px;margin-right:15px}.api-key-div[_ngcontent-%COMP%], .enable-api-key-div[_ngcontent-%COMP%]{display:inline-block}.text-field[_ngcontent-%COMP%]{min-width:30%}.checkbox-button[_ngcontent-%COMP%]{margin-left:15px;margin-bottom:12px;bottom:4px}"]}),VP);function tR(t,e){1&t&&(a.Jc(0,"span",12),a.Ec(1,"mat-spinner",13),a.Bd(2,"\xa0"),a.Hc(3),a.Nc(4,YP),a.Gc(),a.Ic()),2&t&&(a.pc(1),a.gd("diameter",22))}function eR(t,e){1&t&&(a.Jc(0,"mat-icon",14),a.Bd(1,"done"),a.Ic())}function iR(t,e){if(1&t&&(a.Jc(0,"a",2),a.Hc(1),a.Nc(2,ZP),a.Gc(),a.Bd(3),a.Ic()),2&t){var i=a.ad();a.gd("href",i.latestUpdateLink,a.td),a.pc(3),a.Dd(" - ",i.latestGithubRelease.tag_name,"")}}function nR(t,e){1&t&&(a.Jc(0,"span"),a.Bd(1,"You are up to date."),a.Ic())}HP=$localize(_templateObject113()),UP=$localize(_templateObject114()),GP=$localize(_templateObject115()),WP=$localize(_templateObject116()),qP=$localize(_templateObject117()),$P=$localize(_templateObject118()),KP=$localize(_templateObject119()),XP=$localize(_templateObject120()),YP=$localize(_templateObject121()),ZP=$localize(_templateObject122());var aR,rR,oR,sR,cR,lR,uR,dR,hR,pR=((aR=function(){function t(e){_classCallCheck(this,t),this.postsService=e,this.projectLink="https://github.com/Tzahi12345/YoutubeDL-Material",this.issuesLink="https://github.com/Tzahi12345/YoutubeDL-Material/issues",this.latestUpdateLink="https://github.com/Tzahi12345/YoutubeDL-Material/releases/latest",this.latestGithubRelease=null,this.checking_for_updates=!0,this.current_version_tag="v4.1"}return _createClass(t,[{key:"ngOnInit",value:function(){this.getLatestGithubRelease()}},{key:"getLatestGithubRelease",value:function(){var t=this;this.postsService.getLatestGithubRelease().subscribe((function(e){t.checking_for_updates=!1,t.latestGithubRelease=e}))}}]),t}()).\u0275fac=function(t){return new(t||aR)(a.Dc(eD))},aR.\u0275cmp=a.xc({type:aR,selectors:[["app-about-dialog"]],decls:49,vars:7,consts:[["mat-dialog-title","",2,"position","relative"],[1,"logo-image"],["target","_blank",3,"href"],["src","assets/images/GitHub-64px.png",2,"width","32px"],["src","assets/images/logo_128px.png",2,"width","32px","margin-left","15px"],[2,"margin-bottom","5px"],[2,"margin-top","10px"],["style","display: inline-block",4,"ngIf"],["class","version-checked-icon",4,"ngIf"],["target","_blank",3,"href",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","","mat-dialog-close","",2,"margin-bottom","5px"],[2,"display","inline-block"],[1,"version-spinner",3,"diameter"],[1,"version-checked-icon"]],template:function(t,e){1&t&&(a.Jc(0,"h4",0),a.Hc(1),a.Nc(2,HP),a.Gc(),a.Jc(3,"span",1),a.Jc(4,"a",2),a.Ec(5,"img",3),a.Ic(),a.Ec(6,"img",4),a.Ic(),a.Ic(),a.Jc(7,"mat-dialog-content"),a.Jc(8,"div",5),a.Jc(9,"p"),a.Jc(10,"i"),a.Bd(11,"YoutubeDL-Material"),a.Ic(),a.Bd(12,"\xa0"),a.Hc(13),a.Nc(14,UP),a.Gc(),a.Ic(),a.Jc(15,"p"),a.Jc(16,"i"),a.Bd(17,"YoutubeDL-Material"),a.Ic(),a.Bd(18,"\xa0"),a.Hc(19),a.Nc(20,GP),a.Gc(),a.Ic(),a.Ec(21,"mat-divider"),a.Jc(22,"h5",6),a.Bd(23,"Installation details:"),a.Ic(),a.Jc(24,"p"),a.Hc(25),a.Nc(26,WP),a.Gc(),a.Bd(27),a.zd(28,tR,5,1,"span",7),a.zd(29,eR,2,0,"mat-icon",8),a.Bd(30,"\xa0\xa0"),a.zd(31,iR,4,2,"a",9),a.Bd(32,". "),a.Hc(33),a.Nc(34,qP),a.Gc(),a.zd(35,nR,2,0,"span",10),a.Ic(),a.Jc(36,"p"),a.Hc(37),a.Nc(38,$P),a.Gc(),a.Bd(39,"\xa0"),a.Jc(40,"a",2),a.Hc(41),a.Nc(42,KP),a.Gc(),a.Ic(),a.Bd(43,"\xa0"),a.Hc(44),a.Nc(45,XP),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(46,"mat-dialog-actions"),a.Jc(47,"button",11),a.Bd(48,"Close"),a.Ic(),a.Ic()),2&t&&(a.pc(4),a.gd("href",e.projectLink,a.td),a.pc(23),a.Dd("\xa0",e.current_version_tag," - "),a.pc(1),a.gd("ngIf",e.checking_for_updates),a.pc(1),a.gd("ngIf",!e.checking_for_updates),a.pc(2),a.gd("ngIf",!e.checking_for_updates&&e.latestGithubRelease.tag_name!==e.current_version_tag),a.pc(4),a.gd("ngIf",!e.checking_for_updates&&e.latestGithubRelease.tag_name===e.current_version_tag),a.pc(5),a.gd("href",e.issuesLink,a.td))},directives:[Fh,Nh,Fm,ye.t,zh,Qa,jh,zv,wm],styles:["i[_ngcontent-%COMP%]{margin-right:1px}.version-spinner[_ngcontent-%COMP%]{top:4px;margin-right:5px;margin-left:5px;display:inline-block}.version-checked-icon[_ngcontent-%COMP%]{top:5px;margin-left:2px;position:relative;margin-right:-3px}.logo-image[_ngcontent-%COMP%]{position:absolute;top:-10px;right:-10px}"]}),aR);function fR(t,e){if(1&t&&(a.Jc(0,"div"),a.Jc(1,"div"),a.Jc(2,"strong"),a.Hc(3),a.Nc(4,cR),a.Gc(),a.Ic(),a.Bd(5),a.Ic(),a.Jc(6,"div"),a.Jc(7,"strong"),a.Hc(8),a.Nc(9,lR),a.Gc(),a.Ic(),a.Bd(10),a.Ic(),a.Jc(11,"div"),a.Jc(12,"strong"),a.Hc(13),a.Nc(14,uR),a.Gc(),a.Ic(),a.Bd(15),a.bd(16,"date"),a.Ic(),a.Ec(17,"div",6),a.Ic()),2&t){var i=a.ad();a.pc(5),a.Dd("\xa0",i.postsService.user.name," "),a.pc(5),a.Dd("\xa0",i.postsService.user.uid," "),a.pc(5),a.Dd("\xa0",i.postsService.user.created?a.cd(16,3,i.postsService.user.created):"N/A"," ")}}function mR(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"h5"),a.Jc(2,"mat-icon"),a.Bd(3,"warn"),a.Ic(),a.Hc(4),a.Nc(5,dR),a.Gc(),a.Ic(),a.Jc(6,"button",7),a.Wc("click",(function(){return a.rd(i),a.ad().loginClicked()})),a.Hc(7),a.Nc(8,hR),a.Gc(),a.Ic(),a.Ic()}}rR=$localize(_templateObject123()),oR=$localize(_templateObject124()),sR=$localize(_templateObject125()),cR=$localize(_templateObject126()),lR=$localize(_templateObject127()),uR=$localize(_templateObject128()),dR=$localize(_templateObject129()),hR=$localize(_templateObject130());var gR,vR,bR,_R=((gR=function(){function t(e,i,n){_classCallCheck(this,t),this.postsService=e,this.router=i,this.dialogRef=n}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"loginClicked",value:function(){this.router.navigate(["/login"]),this.dialogRef.close()}},{key:"logoutClicked",value:function(){this.postsService.logout(),this.dialogRef.close()}}]),t}()).\u0275fac=function(t){return new(t||gR)(a.Dc(eD),a.Dc(wO),a.Dc(Eh))},gR.\u0275cmp=a.xc({type:gR,selectors:[["app-user-profile-dialog"]],decls:14,vars:2,consts:[["mat-dialog-title",""],[4,"ngIf"],[2,"width","100%"],[2,"position","relative"],["mat-stroked-button","","mat-dialog-close","","color","primary"],["mat-stroked-button","","color","warn",2,"position","absolute","right","0px",3,"click"],[2,"margin-top","20px"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(a.Jc(0,"h4",0),a.Nc(1,rR),a.Ic(),a.Jc(2,"mat-dialog-content"),a.zd(3,fR,18,5,"div",1),a.zd(4,mR,9,0,"div",1),a.Ic(),a.Jc(5,"mat-dialog-actions"),a.Jc(6,"div",2),a.Jc(7,"div",3),a.Jc(8,"button",4),a.Hc(9),a.Nc(10,oR),a.Gc(),a.Ic(),a.Jc(11,"button",5),a.Wc("click",(function(){return e.logoutClicked()})),a.Hc(12),a.Nc(13,sR),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()),2&t&&(a.pc(3),a.gd("ngIf",e.postsService.isLoggedIn&&e.postsService.user),a.pc(1),a.gd("ngIf",!e.postsService.isLoggedIn||!e.postsService.user))},directives:[Fh,Nh,ye.t,zh,Qa,jh,wm],pipes:[ye.f],styles:[""]}),gR);vR=$localize(_templateObject131()),bR=$localize(_templateObject132());var yR,kR=["placeholder",$localize(_templateObject133())];function wR(t,e){1&t&&a.Ec(0,"mat-spinner",7),2&t&&a.gd("diameter",25)}yR=$localize(_templateObject134());var CR,xR,SR,IR,OR,DR,ER,AR,TR,PR=((CR=function(){function t(e,i){_classCallCheck(this,t),this.postsService=e,this.dialogRef=i,this.creating=!1,this.input=""}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"create",value:function(){var t=this;this.creating=!0,this.postsService.createAdminAccount(this.input).subscribe((function(e){t.creating=!1,t.dialogRef.close(!!e.success)}),(function(e){console.log(e),t.dialogRef.close(!1)}))}}]),t}()).\u0275fac=function(t){return new(t||CR)(a.Dc(eD),a.Dc(Eh))},CR.\u0275cmp=a.xc({type:CR,selectors:[["app-set-default-admin-dialog"]],decls:18,vars:3,consts:[["mat-dialog-title",""],[2,"position","relative"],["color","accent"],["type","password","matInput","",3,"ngModel","keyup.enter","ngModelChange",6,"placeholder"],["color","accent","mat-raised-button","",2,"margin-bottom","12px",3,"disabled","click"],[1,"spinner-div"],[3,"diameter",4,"ngIf"],[3,"diameter"]],template:function(t,e){1&t&&(a.Jc(0,"h4",0),a.Hc(1),a.Nc(2,vR),a.Gc(),a.Ic(),a.Jc(3,"mat-dialog-content"),a.Jc(4,"div"),a.Jc(5,"p"),a.Nc(6,bR),a.Ic(),a.Ic(),a.Jc(7,"div",1),a.Jc(8,"div"),a.Jc(9,"mat-form-field",2),a.Jc(10,"input",3),a.Pc(11,kR),a.Wc("keyup.enter",(function(){return e.create()}))("ngModelChange",(function(t){return e.input=t})),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(12,"mat-dialog-actions"),a.Jc(13,"button",4),a.Wc("click",(function(){return e.create()})),a.Hc(14),a.Nc(15,yR),a.Gc(),a.Ic(),a.Jc(16,"div",5),a.zd(17,wR,1,1,"mat-spinner",6),a.Ic(),a.Ic()),2&t&&(a.pc(10),a.gd("ngModel",e.input),a.pc(3),a.gd("disabled",0===e.input.length),a.pc(4),a.gd("ngIf",e.creating))},directives:[Fh,Nh,qd,Lm,yr,Er,es,zh,Qa,ye.t,zv],styles:[".spinner-div[_ngcontent-%COMP%]{position:relative;left:10px;bottom:5px}"]}),CR),RR=["sidenav"],MR=["hamburgerMenu"];function LR(t,e){if(1&t){var i=a.Kc();a.Jc(0,"button",21,22),a.Wc("click",(function(){return a.rd(i),a.ad().toggleSidenav()})),a.Jc(2,"mat-icon"),a.Bd(3,"menu"),a.Ic(),a.Ic()}}function jR(t,e){if(1&t){var i=a.Kc();a.Jc(0,"button",23),a.Wc("click",(function(){return a.rd(i),a.ad().goBack()})),a.Jc(1,"mat-icon"),a.Bd(2,"arrow_back"),a.Ic(),a.Ic()}}function FR(t,e){if(1&t){var i=a.Kc();a.Jc(0,"button",13),a.Wc("click",(function(){return a.rd(i),a.ad().openProfileDialog()})),a.Jc(1,"mat-icon"),a.Bd(2,"person"),a.Ic(),a.Jc(3,"span"),a.Nc(4,SR),a.Ic(),a.Ic()}}function NR(t,e){if(1&t){var i=a.Kc();a.Jc(0,"button",13),a.Wc("click",(function(t){return a.rd(i),a.ad().themeMenuItemClicked(t)})),a.Jc(1,"mat-icon"),a.Bd(2),a.Ic(),a.Jc(3,"span"),a.Nc(4,IR),a.Ic(),a.Ec(5,"mat-slide-toggle",24),a.Ic()}if(2&t){var n=a.ad();a.pc(2),a.Cd("default"===n.postsService.theme.key?"brightness_5":"brightness_2"),a.pc(3),a.gd("checked","dark"===n.postsService.theme.key)}}function zR(t,e){if(1&t){var i=a.Kc();a.Jc(0,"button",13),a.Wc("click",(function(){return a.rd(i),a.ad().openSettingsDialog()})),a.Jc(1,"mat-icon"),a.Bd(2,"settings"),a.Ic(),a.Jc(3,"span"),a.Nc(4,OR),a.Ic(),a.Ic()}}function BR(t,e){if(1&t){var i=a.Kc();a.Jc(0,"a",25),a.Wc("click",(function(){return a.rd(i),a.ad(),a.nd(27).close()})),a.Hc(1),a.Nc(2,DR),a.Gc(),a.Ic()}}function JR(t,e){if(1&t){var i=a.Kc();a.Jc(0,"a",26),a.Wc("click",(function(){return a.rd(i),a.ad(),a.nd(27).close()})),a.Hc(1),a.Nc(2,ER),a.Gc(),a.Ic()}}function VR(t,e){if(1&t){var i=a.Kc();a.Jc(0,"a",27),a.Wc("click",(function(){return a.rd(i),a.ad(),a.nd(27).close()})),a.Hc(1),a.Nc(2,AR),a.Gc(),a.Ic()}}function HR(t,e){if(1&t){var i=a.Kc();a.Jc(0,"a",28),a.Wc("click",(function(){return a.rd(i),a.ad(),a.nd(27).close()})),a.Hc(1),a.Nc(2,TR),a.Gc(),a.Ic()}}xR=$localize(_templateObject135()),SR=$localize(_templateObject136()),IR=$localize(_templateObject137()),OR=$localize(_templateObject138()),DR=$localize(_templateObject139()),ER=$localize(_templateObject140()),AR=$localize(_templateObject141()),TR=$localize(_templateObject142());var UR,GR=((UR=function(){function t(e,i,n,a,r,o){var s=this;_classCallCheck(this,t),this.postsService=e,this.snackBar=i,this.dialog=n,this.router=a,this.overlayContainer=r,this.elementRef=o,this.THEMES_CONFIG=jx,this.topBarTitle="Youtube Downloader",this.defaultTheme=null,this.allowThemeChange=null,this.allowSubscriptions=!1,this.enableDownloadsManager=!1,this.settingsPinRequired=!0,this.navigator=null,this.navigator=localStorage.getItem("player_navigator"),this.router.events.subscribe((function(t){t instanceof oS?s.navigator=localStorage.getItem("player_navigator"):t instanceof sS&&s.hamburgerMenuButton&&s.hamburgerMenuButton.nativeElement&&s.hamburgerMenuButton.nativeElement.blur()})),this.postsService.config_reloaded.subscribe((function(t){t&&s.loadConfig()}))}return _createClass(t,[{key:"toggleSidenav",value:function(){this.sidenav.toggle()}},{key:"loadConfig",value:function(){this.topBarTitle=this.postsService.config.Extra.title_top,this.settingsPinRequired=this.postsService.config.Extra.settings_pin_required;var t=this.postsService.config.Themes;this.defaultTheme=t?this.postsService.config.Themes.default_theme:"default",this.allowThemeChange=!t||this.postsService.config.Themes.allow_theme_change,this.allowSubscriptions=this.postsService.config.Subscriptions.allow_subscriptions,this.enableDownloadsManager=this.postsService.config.Extra.enable_downloads_manager,localStorage.getItem("theme")||this.setTheme(t?this.defaultTheme:"default")}},{key:"setTheme",value:function(t){var e=null;this.THEMES_CONFIG[t]?(localStorage.getItem("theme")&&(e=localStorage.getItem("theme"),this.THEMES_CONFIG[e]||(console.log("bad theme found, setting to default"),null===this.defaultTheme?console.error("No default theme detected"):(localStorage.setItem("theme",this.defaultTheme),e=localStorage.getItem("theme")))),localStorage.setItem("theme",t),this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor=this.THEMES_CONFIG[t].background_color,this.postsService.setTheme(t),this.onSetTheme(this.THEMES_CONFIG[t].css_label,e?this.THEMES_CONFIG[e].css_label:e)):console.error("Invalid theme: "+t)}},{key:"onSetTheme",value:function(t,e){e&&(document.body.classList.remove(e),this.overlayContainer.getContainerElement().classList.remove(e)),this.overlayContainer.getContainerElement().classList.add(t),this.componentCssClass=t}},{key:"flipTheme",value:function(){"default"===this.postsService.theme.key?this.setTheme("dark"):"dark"===this.postsService.theme.key&&this.setTheme("default")}},{key:"themeMenuItemClicked",value:function(t){this.flipTheme(),t.stopPropagation()}},{key:"ngOnInit",value:function(){var t=this;localStorage.getItem("theme")&&this.setTheme(localStorage.getItem("theme")),this.postsService.open_create_default_admin_dialog.subscribe((function(e){e&&t.dialog.open(PR).afterClosed().subscribe((function(e){e?"/login"!==t.router.url&&t.router.navigate(["/login"]):console.error("Failed to create default admin account. See logs for details.")}))}))}},{key:"goBack",value:function(){this.navigator?this.router.navigateByUrl(this.navigator):this.router.navigate(["/home"])}},{key:"openSettingsDialog",value:function(){this.settingsPinRequired?this.openPinDialog():this.actuallyOpenSettingsDialog()}},{key:"actuallyOpenSettingsDialog",value:function(){this.dialog.open(QP,{width:"80vw"})}},{key:"openPinDialog",value:function(){var t=this;this.dialog.open(SD,{}).afterClosed().subscribe((function(e){e&&t.actuallyOpenSettingsDialog()}))}},{key:"openAboutDialog",value:function(){this.dialog.open(pR,{width:"80vw"})}},{key:"openProfileDialog",value:function(){this.dialog.open(_R,{width:"60vw"})}}]),t}()).\u0275fac=function(t){return new(t||UR)(a.Dc(eD),a.Dc(R_),a.Dc(Mh),a.Dc(wO),a.Dc(Nu),a.Dc(a.r))},UR.\u0275cmp=a.xc({type:UR,selectors:[["app-root"]],viewQuery:function(t,e){var i;1&t&&(a.Fd(RR,!0),a.Fd(MR,!0,a.r)),2&t&&(a.md(i=a.Xc())&&(e.sidenav=i.first),a.md(i=a.Xc())&&(e.hamburgerMenuButton=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&a.rc(e.componentCssClass)},decls:35,vars:15,consts:[[2,"width","100%","height","100%"],[1,"mat-elevation-z3",2,"position","relative","z-index","10"],["color","primary",1,"sticky-toolbar","top-toolbar"],["width","100%","height","100%",1,"flex-row"],[1,"flex-column",2,"text-align","left","margin-top","1px"],["style","outline: none","mat-icon-button","","aria-label","Toggle side navigation",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"flex-column",2,"text-align","center","margin-top","5px"],[2,"font-size","22px","text-shadow","#141414 0.25px 0.25px 1px"],[1,"flex-column",2,"text-align","right","align-items","flex-end"],["mat-icon-button","",3,"matMenuTriggerFor"],["menuSettings","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"sidenav-container",2,"height","calc(100% - 64px)"],[2,"height","100%"],["sidenav",""],["mat-list-item","","routerLink","/home",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/login",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/subscriptions",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/downloads",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Toggle side navigation",2,"outline","none",3,"click"],["hamburgerMenu",""],["mat-icon-button","",3,"click"],[1,"theme-slide-toggle",3,"checked"],["mat-list-item","","routerLink","/home",3,"click"],["mat-list-item","","routerLink","/login",3,"click"],["mat-list-item","","routerLink","/subscriptions",3,"click"],["mat-list-item","","routerLink","/downloads",3,"click"]],template:function(t,e){if(1&t&&(a.Jc(0,"div",0),a.Jc(1,"div",1),a.Jc(2,"mat-toolbar",2),a.Jc(3,"div",3),a.Jc(4,"div",4),a.zd(5,LR,4,0,"button",5),a.zd(6,jR,3,0,"button",6),a.Ic(),a.Jc(7,"div",7),a.Jc(8,"div",8),a.Bd(9),a.Ic(),a.Ic(),a.Jc(10,"div",9),a.Jc(11,"button",10),a.Jc(12,"mat-icon"),a.Bd(13,"more_vert"),a.Ic(),a.Ic(),a.Jc(14,"mat-menu",null,11),a.zd(16,FR,5,0,"button",12),a.zd(17,NR,6,2,"button",12),a.zd(18,zR,5,0,"button",12),a.Jc(19,"button",13),a.Wc("click",(function(){return e.openAboutDialog()})),a.Jc(20,"mat-icon"),a.Bd(21,"info"),a.Ic(),a.Jc(22,"span"),a.Nc(23,xR),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(24,"div",14),a.Jc(25,"mat-sidenav-container",15),a.Jc(26,"mat-sidenav",null,16),a.Jc(28,"mat-nav-list"),a.zd(29,BR,3,0,"a",17),a.zd(30,JR,3,0,"a",18),a.zd(31,VR,3,0,"a",19),a.zd(32,HR,3,0,"a",20),a.Ic(),a.Ic(),a.Jc(33,"mat-sidenav-content"),a.Ec(34,"router-outlet"),a.Ic(),a.Ic(),a.Ic(),a.Ic()),2&t){var i=a.nd(15);a.yd("background",e.postsService.theme?e.postsService.theme.background_color:null,a.wc),a.pc(5),a.gd("ngIf","/player"!==e.router.url.split(";")[0]),a.pc(1),a.gd("ngIf","/player"===e.router.url.split(";")[0]),a.pc(3),a.Dd(" ",e.topBarTitle," "),a.pc(2),a.gd("matMenuTriggerFor",i),a.pc(5),a.gd("ngIf",e.postsService.isLoggedIn),a.pc(1),a.gd("ngIf",e.allowThemeChange),a.pc(1),a.gd("ngIf",!e.postsService.isLoggedIn||e.postsService.permissions.includes("settings")),a.pc(11),a.gd("ngIf",e.postsService.config&&(!e.postsService.config.Advanced.multi_user_mode||e.postsService.isLoggedIn)),a.pc(1),a.gd("ngIf",e.postsService.config&&e.postsService.config.Advanced.multi_user_mode&&!e.postsService.isLoggedIn),a.pc(1),a.gd("ngIf",e.postsService.config&&e.allowSubscriptions&&(!e.postsService.config.Advanced.multi_user_mode||e.postsService.isLoggedIn&&e.postsService.permissions.includes("subscriptions"))),a.pc(1),a.gd("ngIf",e.postsService.config&&e.enableDownloadsManager&&(!e.postsService.config.Advanced.multi_user_mode||e.postsService.isLoggedIn&&e.postsService.permissions.includes("downloads_manager"))),a.pc(1),a.yd("background",e.postsService.theme?e.postsService.theme.background_color:null,a.wc)}},directives:[N_,ye.t,Qa,Vg,wm,Ng,Pg,Xb,$b,ng,qb,RO,l_,lg,xO],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-basis:100%;flex:1}.theme-slide-toggle[_ngcontent-%COMP%]{top:2px;left:10px;position:relative;pointer-events:none}.sidenav-container[_ngcontent-%COMP%]{z-index:-1!important}.top-toolbar[_ngcontent-%COMP%]{height:64px}"]}),UR);function WR(t,e,i,n){return new(i||(i=Promise))((function(a,r){function o(t){try{c(n.next(t))}catch(e){r(e)}}function s(t){try{c(n.throw(t))}catch(e){r(e)}}function c(t){var e;t.done?a(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,s)}c((n=n.apply(t,e||[])).next())}))}var qR,$R,KR=i("Iab2"),XR=function t(e){_classCallCheck(this,t),this.id=e&&e.id||null,this.title=e&&e.title||null,this.desc=e&&e.desc||null,this.thumbnailUrl=e&&e.thumbnailUrl||null,this.uploaded=e&&e.uploaded||null,this.videoUrl=e&&e.videoUrl||"https://www.youtube.com/watch?v=".concat(this.id),this.uploaded=function(t){var e,i=new Date(t),n=ZR(i.getMonth()+1),a=ZR(i.getDate()),r=i.getFullYear();e=i.getHours();var o=ZR(i.getMinutes()),s="AM",c=parseInt(e,10);return c>12?(s="PM",e=c-12):0===c&&(e="12"),n+"-"+a+"-"+r+" "+(e=ZR(e))+":"+o+" "+s}(Date.parse(this.uploaded))},YR=((qR=function(){function t(e){_classCallCheck(this,t),this.http=e,this.url="https://www.googleapis.com/youtube/v3/search",this.key=null}return _createClass(t,[{key:"initializeAPI",value:function(t){this.key=t}},{key:"search",value:function(t){if(this.ValidURL(t))return new si.a;var e=["q=".concat(t),"key=".concat(this.key),"part=snippet","type=video","maxResults=5"].join("&");return this.http.get("".concat(this.url,"?").concat(e)).map((function(t){return t.items.map((function(t){return new XR({id:t.id.videoId,title:t.snippet.title,desc:t.snippet.description,thumbnailUrl:t.snippet.thumbnails.high.url,uploaded:t.snippet.publishedAt})}))}))}},{key:"ValidURL",value:function(t){return new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(t)}}]),t}()).\u0275fac=function(t){return new(t||qR)(a.Sc(Lf))},qR.\u0275prov=a.zc({token:qR,factory:qR.\u0275fac,providedIn:"root"}),qR);function ZR(t){return t<10?"0"+t:t}$R=$localize(_templateObject143());var QR,tM,eM=["placeholder",$localize(_templateObject144())];function iM(t,e){1&t&&(a.Jc(0,"mat-label"),a.Hc(1),a.Nc(2,QR),a.Gc(),a.Ic())}function nM(t,e){1&t&&(a.Jc(0,"mat-label"),a.Hc(1),a.Nc(2,tM),a.Gc(),a.Ic())}function aM(t,e){if(1&t&&(a.Jc(0,"mat-option",8),a.Bd(1),a.Ic()),2&t){var i=e.$implicit;a.gd("value",i.id),a.pc(1),a.Cd(i.id)}}function rM(t,e){1&t&&(a.Jc(0,"div",9),a.Ec(1,"mat-spinner",10),a.Ic()),2&t&&(a.pc(1),a.gd("diameter",25))}QR=$localize(_templateObject145()),tM=$localize(_templateObject146());var oM,sM,cM,lM,uM,dM=function(){return{standalone:!0}},hM=((oM=function(){function t(e,i,n){_classCallCheck(this,t),this.data=e,this.postsService=i,this.dialogRef=n,this.filesToSelectFrom=null,this.type=null,this.filesSelect=new Vo,this.name="",this.create_in_progress=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.data&&(this.filesToSelectFrom=this.data.filesToSelectFrom,this.type=this.data.type)}},{key:"createPlaylist",value:function(){var t=this,e=this.getThumbnailURL();this.create_in_progress=!0,this.postsService.createPlaylist(this.name,this.filesSelect.value,this.type,e).subscribe((function(e){t.create_in_progress=!1,t.dialogRef.close(!!e.success)}))}},{key:"getThumbnailURL",value:function(){for(var t=0;t<this.filesToSelectFrom.length;t++){var e=this.filesToSelectFrom[t];if(e.id===this.filesSelect.value[0]){if(e.thumbnailURL)return e.thumbnailURL;if(e.thumbnail)return e.thumbnail}}return null}}]),t}()).\u0275fac=function(t){return new(t||oM)(a.Dc(Ah),a.Dc(eD),a.Dc(Eh))},oM.\u0275cmp=a.xc({type:oM,selectors:[["app-create-playlist"]],decls:16,vars:9,consts:[["mat-dialog-title",""],["color","accent"],["matInput","","type","text","required","","aria-required","",3,"ngModel","ngModelOptions","ngModelChange",6,"placeholder"],[4,"ngIf"],["multiple","","required","","aria-required","",3,"formControl"],[3,"value",4,"ngFor","ngForOf"],["style","float: left",4,"ngIf"],["color","primary","mat-flat-button","",2,"float","right",3,"disabled","click"],[3,"value"],[2,"float","left"],[3,"diameter"]],template:function(t,e){1&t&&(a.Jc(0,"h4",0),a.Nc(1,$R),a.Ic(),a.Jc(2,"form"),a.Jc(3,"div"),a.Jc(4,"mat-form-field",1),a.Jc(5,"input",2),a.Pc(6,eM),a.Wc("ngModelChange",(function(t){return e.name=t})),a.Ic(),a.Ic(),a.Ic(),a.Jc(7,"div"),a.Jc(8,"mat-form-field",1),a.zd(9,iM,3,0,"mat-label",3),a.zd(10,nM,3,0,"mat-label",3),a.Jc(11,"mat-select",4),a.zd(12,aM,2,2,"mat-option",5),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.zd(13,rM,2,1,"div",6),a.Jc(14,"button",7),a.Wc("click",(function(){return e.createPlaylist()})),a.Bd(15,"Create"),a.Ic()),2&t&&(a.pc(5),a.gd("ngModel",e.name)("ngModelOptions",a.id(8,dM)),a.pc(4),a.gd("ngIf","audio"===e.type),a.pc(1),a.gd("ngIf","video"===e.type),a.pc(1),a.gd("formControl",e.filesSelect),a.pc(1),a.gd("ngForOf",e.filesToSelectFrom),a.pc(1),a.gd("ngIf",e.create_in_progress),a.pc(1),a.gd("disabled",!e.name||!e.filesSelect.value||0===e.filesSelect.value.length))},directives:[Fh,is,Ar,qo,qd,Lm,yr,Xs,Er,es,ye.t,bb,rs,ye.s,Qa,zd,Ba,zv],styles:[""]}),oM),pM=i("EcEN"),fM=["urlinput"],mM=["audiofilecard"],gM=["videofilecard"];function vM(t,e){if(1&t&&(a.Jc(0,"mat-option",30),a.Bd(1),a.Ic()),2&t){var i=a.ad().$implicit;a.gd("value",i.value),a.pc(1),a.Dd(" ",i.label," ")}}function bM(t,e){if(1&t&&(a.Hc(0),a.zd(1,vM,2,2,"mat-option",29),a.Gc()),2&t){var i=e.$implicit,n=a.ad(2);a.pc(1),a.gd("ngIf",""===i.value||n.url&&n.cachedAvailableFormats[n.url]&&n.cachedAvailableFormats[n.url].formats&&n.cachedAvailableFormats[n.url].formats[n.audioOnly?"audio":"video"][i.value])}}function _M(t,e){1&t&&(a.Jc(0,"div",31),a.Ec(1,"mat-spinner",32),a.Ic()),2&t&&(a.pc(1),a.gd("diameter",25))}sM=$localize(_templateObject147()),cM=$localize(_templateObject148()),lM=$localize(_templateObject149()),uM=$localize(_templateObject150());var yM,kM,wM=function(){return{standalone:!0}};function CM(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",24),a.Jc(1,"mat-form-field",25),a.Jc(2,"mat-label"),a.Hc(3),a.Nc(4,uM),a.Gc(),a.Ic(),a.Jc(5,"mat-select",26),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad().selectedQuality=t})),a.zd(6,bM,2,1,"ng-container",27),a.Ic(),a.zd(7,_M,2,1,"div",28),a.Ic(),a.Ic()}if(2&t){var n=a.ad();a.pc(5),a.gd("ngModelOptions",a.id(4,wM))("ngModel",n.selectedQuality),a.pc(1),a.gd("ngForOf",n.qualityOptions[n.audioOnly?"audio":"video"]),a.pc(1),a.gd("ngIf",""!==n.url&&n.cachedAvailableFormats[n.url]&&n.cachedAvailableFormats[n.url].formats_loading)}}yM=$localize(_templateObject151()),kM=$localize(_templateObject152());var xM,SM,IM,OM,DM=function(t,e,i){return[t,e,i]};function EM(t,e){if(1&t){var i=a.Kc();a.Jc(0,"span"),a.Jc(1,"mat-card",34),a.Jc(2,"div",35),a.Bd(3),a.Ic(),a.Jc(4,"div",36),a.Bd(5),a.Ic(),a.Jc(6,"button",37),a.Wc("click",(function(){a.rd(i);var t=e.$implicit;return a.ad(2).useURL(t.videoUrl)})),a.Hc(7),a.Nc(8,yM),a.Gc(),a.Ic(),a.Jc(9,"button",38),a.Wc("click",(function(){a.rd(i);var t=e.$implicit;return a.ad(2).visitURL(t.videoUrl)})),a.Hc(10),a.Nc(11,kM),a.Gc(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=e.$implicit,r=e.index,o=a.ad(2);a.pc(1),a.gd("ngClass",a.ld(3,DM,0===r&&o.results.length>1?"first-result-card":"",r===o.results.length-1&&o.results.length>1?"last-result-card":"",1===o.results.length?"only-result-card":"")),a.pc(2),a.Dd(" ",n.title," "),a.pc(2),a.Dd(" ",n.uploaded," ")}}function AM(t,e){if(1&t&&(a.Jc(0,"div",33),a.zd(1,EM,12,7,"span",27),a.Ic()),2&t){var i=a.ad();a.pc(1),a.gd("ngForOf",i.results)}}function TM(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-checkbox",39),a.Wc("change",(function(t){return a.rd(i),a.ad().multiDownloadModeChanged(t)}))("ngModelChange",(function(t){return a.rd(i),a.ad().multiDownloadMode=t})),a.Hc(1),a.Nc(2,xM),a.Gc(),a.Ic()}if(2&t){var n=a.ad();a.gd("disabled",n.current_download)("ngModel",n.multiDownloadMode)}}function PM(t,e){if(1&t){var i=a.Kc();a.Jc(0,"button",40),a.Wc("click",(function(){return a.rd(i),a.ad().cancelDownload()})),a.Hc(1),a.Nc(2,SM),a.Gc(),a.Ic()}}xM=$localize(_templateObject153()),SM=$localize(_templateObject154()),IM=$localize(_templateObject155()),OM=$localize(_templateObject156());var RM,MM,LM=["placeholder",$localize(_templateObject157())];RM=$localize(_templateObject158()),MM=$localize(_templateObject159());var jM,FM,NM,zM,BM=["placeholder",$localize(_templateObject160())];function JM(t,e){if(1&t&&(a.Jc(0,"p"),a.Hc(1),a.Nc(2,NM),a.Gc(),a.Bd(3," \xa0"),a.Jc(4,"i"),a.Bd(5),a.Ic(),a.Ic()),2&t){var i=a.ad(2);a.pc(5),a.Cd(i.simulatedOutput)}}jM=$localize(_templateObject161()),FM=$localize(_templateObject162()),NM=$localize(_templateObject163()),zM=$localize(_templateObject164());var VM=["placeholder",$localize(_templateObject165())];function HM(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",52),a.Jc(1,"mat-checkbox",46),a.Wc("change",(function(t){return a.rd(i),a.ad(2).youtubeAuthEnabledChanged(t)}))("ngModelChange",(function(t){return a.rd(i),a.ad(2).youtubeAuthEnabled=t})),a.Hc(2),a.Nc(3,zM),a.Gc(),a.Ic(),a.Jc(4,"mat-form-field",53),a.Jc(5,"input",49),a.Pc(6,VM),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).youtubeUsername=t})),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad(2);a.pc(1),a.gd("disabled",n.current_download)("ngModel",n.youtubeAuthEnabled)("ngModelOptions",a.id(6,wM)),a.pc(4),a.gd("ngModel",n.youtubeUsername)("ngModelOptions",a.id(7,wM))("disabled",!n.youtubeAuthEnabled)}}var UM,GM,WM,qM,$M,KM,XM,YM,ZM=["placeholder",$localize(_templateObject166())];function QM(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",52),a.Jc(1,"mat-form-field",54),a.Jc(2,"input",55),a.Pc(3,ZM),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad(2).youtubePassword=t})),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad(2);a.pc(2),a.gd("ngModel",n.youtubePassword)("ngModelOptions",a.id(3,wM))("disabled",!n.youtubeAuthEnabled)}}function tL(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",0),a.Jc(1,"form",41),a.Jc(2,"mat-expansion-panel",42),a.Jc(3,"mat-expansion-panel-header"),a.Jc(4,"mat-panel-title"),a.Hc(5),a.Nc(6,IM),a.Gc(),a.Ic(),a.Ic(),a.zd(7,JM,6,1,"p",43),a.Jc(8,"div",44),a.Jc(9,"div",5),a.Jc(10,"div",45),a.Jc(11,"mat-checkbox",46),a.Wc("change",(function(t){return a.rd(i),a.ad().customArgsEnabledChanged(t)}))("ngModelChange",(function(t){return a.rd(i),a.ad().customArgsEnabled=t})),a.Hc(12),a.Nc(13,OM),a.Gc(),a.Ic(),a.Jc(14,"button",47),a.Wc("click",(function(){return a.rd(i),a.ad().openArgsModifierDialog()})),a.Jc(15,"mat-icon"),a.Bd(16,"edit"),a.Ic(),a.Ic(),a.Jc(17,"mat-form-field",48),a.Jc(18,"input",49),a.Pc(19,LM),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad().customArgs=t})),a.Ic(),a.Jc(20,"mat-hint"),a.Hc(21),a.Nc(22,RM),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(23,"div",45),a.Jc(24,"mat-checkbox",46),a.Wc("change",(function(t){return a.rd(i),a.ad().customOutputEnabledChanged(t)}))("ngModelChange",(function(t){return a.rd(i),a.ad().customOutputEnabled=t})),a.Hc(25),a.Nc(26,MM),a.Gc(),a.Ic(),a.Jc(27,"mat-form-field",48),a.Jc(28,"input",49),a.Pc(29,BM),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad().customOutput=t})),a.Ic(),a.Jc(30,"mat-hint"),a.Jc(31,"a",50),a.Hc(32),a.Nc(33,jM),a.Gc(),a.Ic(),a.Bd(34,". "),a.Hc(35),a.Nc(36,FM),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.zd(37,HM,7,8,"div",51),a.zd(38,QM,4,4,"div",51),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad();a.pc(7),a.gd("ngIf",n.simulatedOutput),a.pc(4),a.gd("disabled",n.current_download)("ngModel",n.customArgsEnabled)("ngModelOptions",a.id(15,wM)),a.pc(7),a.gd("ngModel",n.customArgs)("ngModelOptions",a.id(16,wM))("disabled",!n.customArgsEnabled),a.pc(6),a.gd("disabled",n.current_download)("ngModel",n.customOutputEnabled)("ngModelOptions",a.id(17,wM)),a.pc(4),a.gd("ngModel",n.customOutput)("ngModelOptions",a.id(18,wM))("disabled",!n.customOutputEnabled),a.pc(9),a.gd("ngIf",!n.youtubeAuthDisabledOverride),a.pc(1),a.gd("ngIf",!n.youtubeAuthDisabledOverride)}}function eL(t,e){1&t&&a.Ec(0,"mat-divider",2)}function iL(t,e){if(1&t){var i=a.Kc();a.Hc(0),a.Jc(1,"app-download-item",60),a.Wc("cancelDownload",(function(t){return a.rd(i),a.ad(3).cancelDownload(t)})),a.Ic(),a.zd(2,eL,1,0,"mat-divider",61),a.Gc()}if(2&t){var n=a.ad(),r=n.$implicit,o=n.index,s=a.ad(2);a.pc(1),a.gd("download",r)("queueNumber",o+1),a.pc(1),a.gd("ngIf",o!==s.downloads.length-1)}}function nL(t,e){if(1&t&&(a.Jc(0,"div",5),a.zd(1,iL,3,3,"ng-container",43),a.Ic()),2&t){var i=e.$implicit,n=a.ad(2);a.pc(1),a.gd("ngIf",n.current_download!==i&&i.downloading)}}function aL(t,e){if(1&t&&(a.Jc(0,"div",56),a.Jc(1,"mat-card",57),a.Jc(2,"div",58),a.zd(3,nL,2,1,"div",59),a.Ic(),a.Ic(),a.Ic()),2&t){var i=a.ad();a.pc(3),a.gd("ngForOf",i.downloads)}}function rL(t,e){if(1&t&&(a.Jc(0,"div",67),a.Ec(1,"mat-progress-bar",68),a.Ec(2,"br"),a.Ic()),2&t){var i=a.ad(2);a.gd("ngClass",i.percentDownloaded-0>99?"make-room-for-spinner":"equal-sizes"),a.pc(1),a.hd("value",i.percentDownloaded)}}function oL(t,e){1&t&&(a.Jc(0,"div",69),a.Ec(1,"mat-spinner",32),a.Ic()),2&t&&(a.pc(1),a.gd("diameter",25))}function sL(t,e){1&t&&a.Ec(0,"mat-progress-bar",70)}function cL(t,e){if(1&t&&(a.Jc(0,"div",62),a.Jc(1,"div",63),a.zd(2,rL,3,2,"div",64),a.zd(3,oL,2,1,"div",65),a.zd(4,sL,1,0,"ng-template",null,66,a.Ad),a.Ic(),a.Ec(6,"br"),a.Ic()),2&t){var i=a.nd(5),n=a.ad();a.pc(2),a.gd("ngIf",n.current_download.percent_complete&&n.current_download.percent_complete>15)("ngIfElse",i),a.pc(1),a.gd("ngIf",n.percentDownloaded-0>99)}}function lL(t,e){}function uL(t,e){1&t&&a.Ec(0,"mat-progress-bar",82)}function dL(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-grid-tile"),a.Jc(1,"app-file-card",79,80),a.Wc("removeFile",(function(t){return a.rd(i),a.ad(3).removeFromMp3(t)})),a.Ic(),a.zd(3,uL,1,0,"mat-progress-bar",81),a.Ic()}if(2&t){var n=e.$implicit,r=a.ad(3);a.pc(1),a.gd("file",n)("title",n.title)("name",n.id)("uid",n.uid)("thumbnailURL",n.thumbnailURL)("length",n.duration)("isAudio",!0)("use_youtubedl_archive",r.use_youtubedl_archive),a.pc(2),a.gd("ngIf",r.downloading_content.audio[n.id])}}function hL(t,e){1&t&&a.Ec(0,"mat-progress-bar",82)}function pL(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-grid-tile"),a.Jc(1,"app-file-card",84,80),a.Wc("removeFile",(function(){a.rd(i);var t=e.$implicit,n=e.index;return a.ad(4).removePlaylistMp3(t.id,n)})),a.Ic(),a.zd(3,hL,1,0,"mat-progress-bar",81),a.Ic()}if(2&t){var n=e.$implicit,r=a.ad(4);a.pc(1),a.gd("title",n.name)("name",n.id)("thumbnailURL",r.playlist_thumbnails[n.id])("length",null)("isAudio",!0)("playlist",n)("count",n.fileNames.length)("use_youtubedl_archive",r.use_youtubedl_archive),a.pc(2),a.gd("ngIf",r.downloading_content.audio[n.id])}}function fL(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-grid-list",83),a.Wc("resize",(function(t){return a.rd(i),a.ad(3).onResize(t)}),!1,a.qd),a.zd(1,pL,4,9,"mat-grid-tile",27),a.Ic()}if(2&t){var n=a.ad(3);a.gd("cols",n.files_cols),a.pc(1),a.gd("ngForOf",n.playlists.audio)}}function mL(t,e){1&t&&(a.Jc(0,"div"),a.Hc(1),a.Nc(2,KM),a.Gc(),a.Ic())}function gL(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"mat-grid-list",74),a.Wc("resize",(function(t){return a.rd(i),a.ad(2).onResize(t)}),!1,a.qd),a.zd(2,dL,4,9,"mat-grid-tile",27),a.Ic(),a.Ec(3,"mat-divider"),a.Jc(4,"div",75),a.Jc(5,"h6"),a.Nc(6,$M),a.Ic(),a.Ic(),a.zd(7,fL,2,2,"mat-grid-list",76),a.Jc(8,"div",77),a.Jc(9,"button",78),a.Wc("click",(function(){return a.rd(i),a.ad(2).openCreatePlaylistDialog("audio")})),a.Jc(10,"mat-icon"),a.Bd(11,"add"),a.Ic(),a.Ic(),a.Ic(),a.zd(12,mL,3,0,"div",43),a.Ic()}if(2&t){var n=a.ad(2);a.pc(1),a.gd("cols",n.files_cols),a.pc(1),a.gd("ngForOf",n.mp3s),a.pc(5),a.gd("ngIf",n.playlists.audio.length>0),a.pc(5),a.gd("ngIf",0===n.playlists.audio.length)}}function vL(t,e){1&t&&a.Ec(0,"mat-progress-bar",82)}function bL(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-grid-tile"),a.Jc(1,"app-file-card",79,85),a.Wc("removeFile",(function(t){return a.rd(i),a.ad(3).removeFromMp4(t)})),a.Ic(),a.zd(3,vL,1,0,"mat-progress-bar",81),a.Ic()}if(2&t){var n=e.$implicit,r=a.ad(3);a.pc(1),a.gd("file",n)("title",n.title)("name",n.id)("uid",n.uid)("thumbnailURL",n.thumbnailURL)("length",n.duration)("isAudio",!1)("use_youtubedl_archive",r.use_youtubedl_archive),a.pc(2),a.gd("ngIf",r.downloading_content.video[n.id])}}function _L(t,e){1&t&&a.Ec(0,"mat-progress-bar",82)}function yL(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-grid-tile"),a.Jc(1,"app-file-card",84,85),a.Wc("removeFile",(function(){a.rd(i);var t=e.$implicit,n=e.index;return a.ad(4).removePlaylistMp4(t.id,n)})),a.Ic(),a.zd(3,_L,1,0,"mat-progress-bar",81),a.Ic()}if(2&t){var n=e.$implicit,r=a.ad(4);a.pc(1),a.gd("title",n.name)("name",n.id)("thumbnailURL",r.playlist_thumbnails[n.id])("length",null)("isAudio",!1)("playlist",n)("count",n.fileNames.length)("use_youtubedl_archive",r.use_youtubedl_archive),a.pc(2),a.gd("ngIf",r.downloading_content.video[n.id])}}function kL(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-grid-list",83),a.Wc("resize",(function(t){return a.rd(i),a.ad(3).onResize(t)}),!1,a.qd),a.zd(1,yL,4,9,"mat-grid-tile",27),a.Ic()}if(2&t){var n=a.ad(3);a.gd("cols",n.files_cols),a.pc(1),a.gd("ngForOf",n.playlists.video)}}function wL(t,e){1&t&&(a.Jc(0,"div"),a.Hc(1),a.Nc(2,YM),a.Gc(),a.Ic())}function CL(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"mat-grid-list",74),a.Wc("resize",(function(t){return a.rd(i),a.ad(2).onResize(t)}),!1,a.qd),a.zd(2,bL,4,9,"mat-grid-tile",27),a.Ic(),a.Ec(3,"mat-divider"),a.Jc(4,"div",75),a.Jc(5,"h6"),a.Nc(6,XM),a.Ic(),a.Ic(),a.zd(7,kL,2,2,"mat-grid-list",76),a.Jc(8,"div",77),a.Jc(9,"button",78),a.Wc("click",(function(){return a.rd(i),a.ad(2).openCreatePlaylistDialog("video")})),a.Jc(10,"mat-icon"),a.Bd(11,"add"),a.Ic(),a.Ic(),a.Ic(),a.zd(12,wL,3,0,"div",43),a.Ic()}if(2&t){var n=a.ad(2);a.pc(1),a.gd("cols",n.files_cols),a.pc(1),a.gd("ngForOf",n.mp4s),a.pc(5),a.gd("ngIf",n.playlists.video.length>0),a.pc(5),a.gd("ngIf",0===n.playlists.video.length)}}function xL(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",71),a.Jc(1,"mat-accordion"),a.Jc(2,"mat-expansion-panel",72),a.Wc("opened",(function(){return a.rd(i),a.ad().accordionOpened("audio")}))("closed",(function(){return a.rd(i),a.ad().accordionClosed("audio")}))("mouseleave",(function(){return a.rd(i),a.ad().accordionLeft("audio")}))("mouseenter",(function(){return a.rd(i),a.ad().accordionEntered("audio")})),a.Jc(3,"mat-expansion-panel-header"),a.Jc(4,"mat-panel-title"),a.Hc(5),a.Nc(6,UM),a.Gc(),a.Ic(),a.Jc(7,"mat-panel-description"),a.Hc(8),a.Nc(9,GM),a.Gc(),a.Ic(),a.Ic(),a.zd(10,gL,13,4,"div",73),a.Ic(),a.Jc(11,"mat-expansion-panel",72),a.Wc("opened",(function(){return a.rd(i),a.ad().accordionOpened("video")}))("closed",(function(){return a.rd(i),a.ad().accordionClosed("video")}))("mouseleave",(function(){return a.rd(i),a.ad().accordionLeft("video")}))("mouseenter",(function(){return a.rd(i),a.ad().accordionEntered("video")})),a.Jc(12,"mat-expansion-panel-header"),a.Jc(13,"mat-panel-title"),a.Hc(14),a.Nc(15,WM),a.Gc(),a.Ic(),a.Jc(16,"mat-panel-description"),a.Hc(17),a.Nc(18,qM),a.Gc(),a.Ic(),a.Ic(),a.zd(19,CL,13,4,"div",73),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad(),r=a.nd(38),o=a.nd(40);a.pc(10),a.gd("ngIf",n.mp3s.length>0)("ngIfElse",r),a.pc(9),a.gd("ngIf",n.mp4s.length>0)("ngIfElse",o)}}function SL(t,e){}function IL(t,e){}UM=$localize(_templateObject167()),GM=$localize(_templateObject168()),WM=$localize(_templateObject169()),qM=$localize(_templateObject170()),$M=$localize(_templateObject171()),KM=$localize(_templateObject172()),XM=$localize(_templateObject173()),YM=$localize(_templateObject174());var OL,DL=!1,EL=!1,AL=!1,TL=!1,PL=((OL=function(){function t(e,i,n,a,r,o,s){_classCallCheck(this,t),this.postsService=e,this.youtubeSearch=i,this.snackBar=n,this.router=a,this.dialog=r,this.platform=o,this.route=s,this.youtubeAuthDisabledOverride=!1,this.iOS=!1,this.determinateProgress=!1,this.downloadingfile=!1,this.multiDownloadMode=!1,this.customArgsEnabled=!1,this.customArgs=null,this.customOutputEnabled=!1,this.customOutput=null,this.youtubeAuthEnabled=!1,this.youtubeUsername=null,this.youtubePassword=null,this.urlError=!1,this.path="",this.url="",this.exists="",this.autoStartDownload=!1,this.fileManagerEnabled=!1,this.allowQualitySelect=!1,this.downloadOnlyMode=!1,this.allowMultiDownloadMode=!1,this.use_youtubedl_archive=!1,this.globalCustomArgs=null,this.allowAdvancedDownload=!1,this.useDefaultDownloadingAgent=!0,this.customDownloadingAgent=null,this.cachedAvailableFormats={},this.youtubeSearchEnabled=!1,this.youtubeAPIKey=null,this.results_loading=!1,this.results_showing=!0,this.results=[],this.mp3s=[],this.mp4s=[],this.files_cols=null,this.playlists={audio:[],video:[]},this.playlist_thumbnails={},this.downloading_content={audio:{},video:{}},this.downloads=[],this.current_download=null,this.urlForm=new Vo("",[Lr.required]),this.qualityOptions={video:[{resolution:null,value:"",label:"Max"},{resolution:"3840x2160",value:"2160",label:"2160p (4K)"},{resolution:"2560x1440",value:"1440",label:"1440p"},{resolution:"1920x1080",value:"1080",label:"1080p"},{resolution:"1280x720",value:"720",label:"720p"},{resolution:"720x480",value:"480",label:"480p"},{resolution:"480x360",value:"360",label:"360p"},{resolution:"360x240",value:"240",label:"240p"},{resolution:"256x144",value:"144",label:"144p"}],audio:[{kbitrate:null,value:"",label:"Max"},{kbitrate:"256",value:"256K",label:"256 Kbps"},{kbitrate:"160",value:"160K",label:"160 Kbps"},{kbitrate:"128",value:"128K",label:"128 Kbps"},{kbitrate:"96",value:"96K",label:"96 Kbps"},{kbitrate:"70",value:"70K",label:"70 Kbps"},{kbitrate:"50",value:"50K",label:"50 Kbps"},{kbitrate:"32",value:"32K",label:"32 Kbps"}]},this.selectedQuality="",this.formats_loading=!1,this.last_valid_url="",this.last_url_check=0,this.test_download={uid:null,type:"audio",percent_complete:0,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,is_playlist:!1,error:!1},this.simulatedOutput="",this.audioOnly=!1}return _createClass(t,[{key:"configLoad",value:function(){return WR(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadConfig();case 2:this.autoStartDownload&&this.downloadClicked(),setInterval((function(){return e.getSimulatedOutput()}),1e3);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"loadConfig",value:function(){return WR(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,i,n,a=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.fileManagerEnabled=this.postsService.config.Extra.file_manager_enabled,this.downloadOnlyMode=this.postsService.config.Extra.download_only_mode,this.allowMultiDownloadMode=this.postsService.config.Extra.allow_multi_download_mode,this.audioFolderPath=this.postsService.config.Downloader["path-audio"],this.videoFolderPath=this.postsService.config.Downloader["path-video"],this.use_youtubedl_archive=this.postsService.config.Downloader.use_youtubedl_archive,this.globalCustomArgs=this.postsService.config.Downloader.custom_args,this.youtubeSearchEnabled=this.postsService.config.API&&this.postsService.config.API.use_youtube_API&&this.postsService.config.API.youtube_API_key,this.youtubeAPIKey=this.youtubeSearchEnabled?this.postsService.config.API.youtube_API_key:null,this.allowQualitySelect=this.postsService.config.Extra.allow_quality_select,this.allowAdvancedDownload=this.postsService.config.Advanced.allow_advanced_download&&(!this.postsService.isLoggedIn||this.postsService.permissions.includes("advanced_download")),this.useDefaultDownloadingAgent=this.postsService.config.Advanced.use_default_downloading_agent,this.customDownloadingAgent=this.postsService.config.Advanced.custom_downloading_agent,this.fileManagerEnabled&&(this.getMp3s(),this.getMp4s()),this.youtubeSearchEnabled&&this.youtubeAPIKey&&(this.youtubeSearch.initializeAPI(this.youtubeAPIKey),this.attachToInput()),this.allowAdvancedDownload&&(null!==localStorage.getItem("customArgsEnabled")&&(this.customArgsEnabled="true"===localStorage.getItem("customArgsEnabled")),null!==localStorage.getItem("customOutputEnabled")&&(this.customOutputEnabled="true"===localStorage.getItem("customOutputEnabled")),null!==localStorage.getItem("youtubeAuthEnabled")&&(this.youtubeAuthEnabled="true"===localStorage.getItem("youtubeAuthEnabled")),e=localStorage.getItem("customArgs"),i=localStorage.getItem("customOutput"),n=localStorage.getItem("youtubeUsername"),e&&"null"!==e&&(this.customArgs=e),i&&"null"!==i&&(this.customOutput=i),n&&"null"!==n&&(this.youtubeUsername=n)),t.abrupt("return",(setInterval((function(){a.current_download&&a.getCurrentDownload()}),500),!0));case 2:case"end":return t.stop()}}),t,this)})))}},{key:"ngOnInit",value:function(){var t=this;this.postsService.initialized?this.configLoad():this.postsService.service_initialized.subscribe((function(e){e&&t.configLoad()})),this.postsService.config_reloaded.subscribe((function(e){e&&t.loadConfig()})),this.iOS=this.platform.IOS,null!==localStorage.getItem("audioOnly")&&(this.audioOnly="true"===localStorage.getItem("audioOnly")),null!==localStorage.getItem("multiDownloadMode")&&(this.multiDownloadMode="true"===localStorage.getItem("multiDownloadMode")),this.route.snapshot.paramMap.get("url")&&(this.url=decodeURIComponent(this.route.snapshot.paramMap.get("url")),this.audioOnly="true"===this.route.snapshot.paramMap.get("audioOnly"),this.autoStartDownload=!0),this.setCols()}},{key:"getMp3s",value:function(){var t=this;this.postsService.getMp3s().subscribe((function(e){var i=e.mp3s,n=e.playlists;JSON.stringify(t.mp3s)!==JSON.stringify(i)&&(t.mp3s=i),t.playlists.audio=n;for(var a=0;a<t.playlists.audio.length;a++){for(var r=t.playlists.audio[a],o=null,s=0;s<t.mp3s.length;s++)t.mp3s[s].id===r.fileNames[0]&&(o=t.mp3s[s]);o&&(t.playlist_thumbnails[r.id]=o.thumbnailURL)}}),(function(t){console.log(t)}))}},{key:"getMp4s",value:function(){var t=this;this.postsService.getMp4s().subscribe((function(e){var i=e.mp4s,n=e.playlists;JSON.stringify(t.mp4s)!==JSON.stringify(i)&&(t.mp4s=i),t.playlists.video=n;for(var a=0;a<t.playlists.video.length;a++){for(var r=t.playlists.video[a],o=null,s=0;s<t.mp4s.length;s++)t.mp4s[s].id===r.fileNames[0]&&(o=t.mp4s[s]);o&&(t.playlist_thumbnails[r.id]=o.thumbnailURL)}}),(function(t){console.log(t)}))}},{key:"setCols",value:function(){this.files_cols=window.innerWidth<=350?1:window.innerWidth<=500?2:window.innerWidth<=750?3:4}},{key:"goToFile",value:function(t,e,i){e?this.downloadHelperMp3(t,i,!1,!1,null,!0):this.downloadHelperMp4(t,i,!1,!1,null,!0)}},{key:"goToPlaylist",value:function(t,e){var i=this.getPlaylistObjectByID(t,e);i?this.downloadOnlyMode?(this.downloading_content[e][t]=!0,this.downloadPlaylist(i.fileNames,e,i.name,t)):(localStorage.setItem("player_navigator",this.router.url),this.router.navigate(["/player",{fileNames:i.fileNames.join("|nvr|"),type:e,id:t,uid:t}])):console.error("Playlist with ID ".concat(t," not found!"))}},{key:"getPlaylistObjectByID",value:function(t,e){for(var i=0;i<this.playlists[e].length;i++){var n=this.playlists[e][i];if(n.id===t)return n}return null}},{key:"removeFromMp3",value:function(t){for(var e=0;e<this.mp3s.length;e++)this.mp3s[e].id!==t&&this.mp3s[e].id+".mp3"!==t||this.mp3s.splice(e,1);this.getMp3s()}},{key:"removePlaylistMp3",value:function(t,e){var i=this;this.postsService.removePlaylist(t,"audio").subscribe((function(t){t.success&&(i.playlists.audio.splice(e,1),i.openSnackBar("Playlist successfully removed.","")),i.getMp3s()}))}},{key:"removeFromMp4",value:function(t){for(var e=0;e<this.mp4s.length;e++)this.mp4s[e].id!==t&&this.mp4s[e].id+".mp4"!==t||this.mp4s.splice(e,1);this.getMp4s()}},{key:"removePlaylistMp4",value:function(t,e){var i=this;this.postsService.removePlaylist(t,"video").subscribe((function(t){t.success&&(i.playlists.video.splice(e,1),i.openSnackBar("Playlist successfully removed.","")),i.getMp4s()}))}},{key:"downloadHelperMp3",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(this.downloadingfile=!1,!this.multiDownloadMode||this.downloadOnlyMode||o)if(!1===a&&this.downloadOnlyMode&&!this.iOS)if(n){var s=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"audio",s)}else this.downloadAudioFile(decodeURI(t));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(n?["/player",{fileNames:t.join("|nvr|"),type:"audio"}]:["/player",{type:"audio",uid:e}]);this.removeDownloadFromCurrentDownloads(r),this.fileManagerEnabled&&(this.getMp3s(),setTimeout((function(){i.audioFileCards.forEach((function(t){t.onHoverResponse()}))}),200))}},{key:"downloadHelperMp4",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(this.downloadingfile=!1,!this.multiDownloadMode||this.downloadOnlyMode||o)if(!1===a&&this.downloadOnlyMode)if(n){var s=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"video",s)}else this.downloadVideoFile(decodeURI(t));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(n?["/player",{fileNames:t.join("|nvr|"),type:"video"}]:["/player",{type:"video",uid:e}]);this.removeDownloadFromCurrentDownloads(r),this.fileManagerEnabled&&(this.getMp4s(),setTimeout((function(){i.videoFileCards.forEach((function(t){t.onHoverResponse()}))}),200))}},{key:"downloadClicked",value:function(){var t=this;if(this.ValidURL(this.url)){this.urlError=!1,this.path="";var e=this.customArgsEnabled?this.customArgs:null,i=this.customOutputEnabled?this.customOutput:null,n=this.youtubeAuthEnabled&&this.youtubeUsername?this.youtubeUsername:null,a=this.youtubeAuthEnabled&&this.youtubePassword?this.youtubePassword:null;if(this.allowAdvancedDownload&&(e&&localStorage.setItem("customArgs",e),i&&localStorage.setItem("customOutput",i),n&&localStorage.setItem("youtubeUsername",n)),this.audioOnly){var r={uid:Object(pM.v4)(),type:"audio",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist"),error:!1};this.downloads.push(r),this.current_download||this.multiDownloadMode||(this.current_download=r),this.downloadingfile=!0;var o=null;""!==this.selectedQuality&&(o=this.getSelectedAudioFormat()),this.postsService.makeMP3(this.url,""===this.selectedQuality?null:this.selectedQuality,o,e,i,n,a,r.uid).subscribe((function(e){r.downloading=!1,r.percent_complete=100;var i=!!e.file_names;t.path=i?e.file_names:e.audiopathEncoded,t.current_download=null,"-1"!==t.path&&t.downloadHelperMp3(t.path,e.uid,i,!1,r)}),(function(e){t.downloadingfile=!1,t.current_download=null,r.downloading=!1;var i=t.downloads.indexOf(r);-1!==i&&t.downloads.splice(i),t.openSnackBar("Download failed!","OK.")}))}else{var s={uid:Object(pM.v4)(),type:"video",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist"),error:!1};this.downloads.push(s),this.current_download||this.multiDownloadMode||(this.current_download=s),this.downloadingfile=!0;var c=this.getSelectedVideoFormat();this.postsService.makeMP4(this.url,""===this.selectedQuality?null:this.selectedQuality,c,e,i,n,a,s.uid).subscribe((function(e){s.downloading=!1,s.percent_complete=100;var i=!!e.file_names;t.path=i?e.file_names:e.videopathEncoded,t.current_download=null,"-1"!==t.path&&t.downloadHelperMp4(t.path,e.uid,i,!1,s)}),(function(e){t.downloadingfile=!1,t.current_download=null,s.downloading=!1;var i=t.downloads.indexOf(s);-1!==i&&t.downloads.splice(i),t.openSnackBar("Download failed!","OK.")}))}this.multiDownloadMode&&(this.url="",this.downloadingfile=!1)}else this.urlError=!0}},{key:"cancelDownload",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t?this.removeDownloadFromCurrentDownloads(t):(this.downloadingfile=!1,this.current_download.downloading=!1,this.current_download=null)}},{key:"getSelectedAudioFormat",value:function(){return""===this.selectedQuality?null:this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats?this.cachedAvailableFormats[this.url].formats.audio[this.selectedQuality].format_id:null}},{key:"getSelectedVideoFormat",value:function(){if(""===this.selectedQuality)return null;if(this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats){var t=this.cachedAvailableFormats[this.url].formats.video;if(t.best_audio_format&&""!==this.selectedQuality)return t[this.selectedQuality].format_id+"+"+t.best_audio_format}return null}},{key:"getDownloadByUID",value:function(t){var e=this.downloads.findIndex((function(e){return e.uid===t}));return-1!==e?this.downloads[e]:null}},{key:"removeDownloadFromCurrentDownloads",value:function(t){this.current_download===t&&(this.current_download=null);var e=this.downloads.indexOf(t);return-1!==e&&(this.downloads.splice(e,1),!0)}},{key:"downloadAudioFile",value:function(t){var e=this;this.downloading_content.audio[t]=!0,this.postsService.downloadFileFromServer(t,"audio").subscribe((function(i){e.downloading_content.audio[t]=!1;var n=i;Object(KR.saveAs)(n,decodeURIComponent(t)+".mp3"),e.fileManagerEnabled||e.postsService.deleteFile(t,!0).subscribe((function(t){e.getMp3s()}))}))}},{key:"downloadVideoFile",value:function(t){var e=this;this.downloading_content.video[t]=!0,this.postsService.downloadFileFromServer(t,"video").subscribe((function(i){e.downloading_content.video[t]=!1;var n=i;Object(KR.saveAs)(n,decodeURIComponent(t)+".mp4"),e.fileManagerEnabled||e.postsService.deleteFile(t,!1).subscribe((function(t){e.getMp4s()}))}))}},{key:"downloadPlaylist",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.postsService.downloadFileFromServer(t,e,n).subscribe((function(t){a&&(i.downloading_content[e][a]=!1);var r=t;Object(KR.saveAs)(r,n+".zip")}))}},{key:"clearInput",value:function(){this.url="",this.results_showing=!1}},{key:"onInputBlur",value:function(){this.results_showing=!1}},{key:"visitURL",value:function(t){window.open(t)}},{key:"useURL",value:function(t){this.results_showing=!1,this.url=t}},{key:"inputChanged",value:function(t){""!==t&&t?this.ValidURL(t)&&(this.results_showing=!1):this.results_showing=!1}},{key:"ValidURL",value:function(t){var e=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(t);return!!e&&(new RegExp(/(?:http(?:s)?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user)\/))([^\?&\"'<> #]+)/),e&&Date.now()-this.last_url_check>1e3&&(t!==this.last_valid_url&&this.allowQualitySelect&&this.getURLInfo(t),this.last_valid_url=t),e)}},{key:"openSnackBar",value:function(t,e){this.snackBar.open(t,e,{duration:2e3})}},{key:"getURLInfo",value:function(t){var e=this;t.includes("playlist")||(this.cachedAvailableFormats[t]||(this.cachedAvailableFormats[t]={}),this.cachedAvailableFormats[t]&&this.cachedAvailableFormats[t].formats||(this.cachedAvailableFormats[t].formats_loading=!0,this.postsService.getFileInfo([t],"irrelevant",!0).subscribe((function(i){e.cachedAvailableFormats[t].formats_loading=!1;var n=i.result;if(n&&n.formats){var a=e.getAudioAndVideoFormats(n.formats);e.cachedAvailableFormats[t].formats={audio:a[0],video:a[1]}}else e.errorFormats(t)}),(function(i){e.errorFormats(t)}))))}},{key:"getSimulatedOutput",value:function(){var t,e,i=this.globalCustomArgs&&""!==this.globalCustomArgs,n=[],a=["youtube-dl",this.url];if(this.customArgsEnabled&&this.customArgs)return this.simulatedOutput=a.join(" ")+" "+this.customArgs.split(",,").join(" "),this.simulatedOutput;(t=n).push.apply(t,a);var r=this.audioOnly?this.audioFolderPath:this.videoFolderPath,o=this.audioOnly?".mp3":".mp4",s=["-o",r+"%(title)s"+o];if(this.customOutputEnabled&&this.customOutput&&(s=["-o",r+this.customOutput+o]),this.useDefaultDownloadingAgent||"aria2c"!==this.customDownloadingAgent||n.push("--external-downloader","aria2c"),(e=n).push.apply(e,_toConsumableArray(s)),this.audioOnly){var c,l=[],u=this.getSelectedAudioFormat();u?l.push("-f",u):this.selectedQuality&&l.push("--audio-quality",this.selectedQuality),(c=n).splice.apply(c,[2,0].concat(l)),n.push("-x","--audio-format","mp3","--write-info-json","--print-json")}else{var d,h=["-f","bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"],p=this.getSelectedVideoFormat();p?h=["-f",p]:this.selectedQuality&&(h=["bestvideo[height=".concat(this.selectedQuality,"]+bestaudio/best[height=").concat(this.selectedQuality,"]")]),(d=n).splice.apply(d,[2,0].concat(_toConsumableArray(h))),n.push("--write-info-json","--print-json")}return this.use_youtubedl_archive&&n.push("--download-archive","archive.txt"),i&&(n=n.concat(this.globalCustomArgs.split(",,"))),this.simulatedOutput=n.join(" "),this.simulatedOutput}},{key:"errorFormats",value:function(t){this.cachedAvailableFormats[t].formats_loading=!1,console.error("Could not load formats for url "+t)}},{key:"attachToInput",value:function(){var t=this;si.a.fromEvent(this.urlInput.nativeElement,"keyup").map((function(t){return t.target.value})).filter((function(t){return t.length>1})).debounceTime(250).do((function(){return t.results_loading=!0})).map((function(e){return t.youtubeSearch.search(e)})).switch().subscribe((function(e){t.results_loading=!1,""!==t.url&&e&&e.length>0?(t.results=e,t.results_showing=!0):t.results_showing=!1}),(function(e){console.log(e),t.results_loading=!1,t.results_showing=!1}),(function(){t.results_loading=!1}))}},{key:"onResize",value:function(t){this.setCols()}},{key:"videoModeChanged",value:function(t){this.selectedQuality="",localStorage.setItem("audioOnly",t.checked.toString())}},{key:"multiDownloadModeChanged",value:function(t){localStorage.setItem("multiDownloadMode",t.checked.toString())}},{key:"customArgsEnabledChanged",value:function(t){localStorage.setItem("customArgsEnabled",t.checked.toString()),!0===t.checked&&this.customOutputEnabled&&(this.customOutputEnabled=!1,localStorage.setItem("customOutputEnabled","false"),this.youtubeAuthEnabled=!1,localStorage.setItem("youtubeAuthEnabled","false"))}},{key:"customOutputEnabledChanged",value:function(t){localStorage.setItem("customOutputEnabled",t.checked.toString()),!0===t.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}},{key:"youtubeAuthEnabledChanged",value:function(t){localStorage.setItem("youtubeAuthEnabled",t.checked.toString()),!0===t.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}},{key:"getAudioAndVideoFormats",value:function(t){for(var e={},i={},n=0;n<t.length;n++){var a={type:null},r=t[n];if(a.type="none"===r.vcodec?"audio":"video","audio"===a.type&&r.abr){var o=r.abr.toString()+"K";a.bitrate=r.abr,a.format_id=r.format_id,a.ext=r.ext,e[o]?"m4a"===r.ext&&(e[o]=a):e[o]=a}else if("video"===a.type){var s=r.height.toString();"mp4"===r.ext&&(a.height=r.height,a.acodec=r.acodec,a.format_id=r.format_id,i[s]&&"none"===a.acodec||(i[s]=a))}}return i.best_audio_format=this.getBestAudioFormatForMp4(e),[e,i]}},{key:"getBestAudioFormatForMp4",value:function(t){for(var e=null,i=0,n=Object.keys(t),a=0;a<n.length;a++){var r=t[n[a]];"m4a"===r.ext&&r.bitrate>i&&(e=r.format_id,i=r.bitrate)}return e}},{key:"accordionEntered",value:function(t){"audio"===t?(DL=!0,this.audioFileCards.forEach((function(t){t.onHoverResponse()}))):"video"===t&&(EL=!0,this.videoFileCards.forEach((function(t){t.onHoverResponse()})))}},{key:"accordionLeft",value:function(t){"audio"===t?DL=!1:"video"===t&&(EL=!1)}},{key:"accordionOpened",value:function(t){"audio"===t?AL=!0:"video"===t&&(TL=!0)}},{key:"accordionClosed",value:function(t){"audio"===t?AL=!1:"video"===t&&(TL=!1)}},{key:"openCreatePlaylistDialog",value:function(t){var e=this;this.dialog.open(hM,{data:{filesToSelectFrom:"audio"===t?this.mp3s:this.mp4s,type:t}}).afterClosed().subscribe((function(i){i?("audio"===t&&e.getMp3s(),"video"===t&&e.getMp4s(),e.openSnackBar("Successfully created playlist!","")):!1===i&&e.openSnackBar("ERROR: failed to create playlist!","")}))}},{key:"openArgsModifierDialog",value:function(){var t=this;this.dialog.open(nE,{data:{initial_args:this.customArgs}}).afterClosed().subscribe((function(e){null!=e&&(t.customArgs=e)}))}},{key:"getCurrentDownload",value:function(){var t=this;if(this.current_download){var e=this.current_download.ui_uid?this.current_download.ui_uid:this.current_download.uid;this.postsService.getCurrentDownload(this.postsService.session_id,e).subscribe((function(i){i.download&&e===i.download.ui_uid&&(t.current_download=i.download,t.percentDownloaded=t.current_download.percent_complete)}))}}}]),t}()).\u0275fac=function(t){return new(t||OL)(a.Dc(eD),a.Dc(YR),a.Dc(R_),a.Dc(wO),a.Dc(Mh),a.Dc(Ii),a.Dc(hI))},OL.\u0275cmp=a.xc({type:OL,selectors:[["app-root"]],viewQuery:function(t,e){var i;1&t&&(a.Fd(fM,!0,a.r),a.Fd(mM,!0),a.Fd(gM,!0)),2&t&&(a.md(i=a.Xc())&&(e.urlInput=i.first),a.md(i=a.Xc())&&(e.audioFileCards=i),a.md(i=a.Xc())&&(e.videoFileCards=i))},decls:41,vars:16,consts:[[1,"big","demo-basic"],["id","card",2,"margin-right","20px","margin-left","20px",3,"ngClass"],[2,"position","relative"],[1,"example-form"],[1,"container-fluid"],[1,"row"],[1,"col-12",3,"ngClass"],["color","accent",1,"example-full-width"],["matInput","","type","url","name","url",2,"padding-right","25px",3,"ngModel","placeholder","keyup.enter","ngModelChange"],["urlinput",""],["type","button","mat-icon-button","",1,"input-clear-button",3,"click"],["class","col-7 col-sm-3",4,"ngIf"],["class","results-div",4,"ngIf"],[2,"float","left","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["style","float: right; margin-top: -12px",3,"disabled","ngModel","change","ngModelChange",4,"ngIf"],["type","submit","mat-stroked-button","","color","accent",2,"margin-left","8px","margin-bottom","8px",3,"disabled","click"],["style","float: right","mat-stroked-button","","color","warn",3,"click",4,"ngIf"],["class","big demo-basic",4,"ngIf"],["style","margin-top: 15px;","class","big demo-basic",4,"ngIf"],["class","centered big","id","bar_div",4,"ngIf","ngIfElse"],["nofile",""],["style","margin: 20px",4,"ngIf"],["nomp3s",""],["nomp4s",""],[1,"col-7","col-sm-3"],["color","accent",2,"display","inline-block","width","inherit","min-width","120px"],[3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["class","spinner-div",4,"ngIf"],[3,"value",4,"ngIf"],[3,"value"],[1,"spinner-div"],[3,"diameter"],[1,"results-div"],[1,"result-card","mat-elevation-z7",3,"ngClass"],[1,"search-card-title"],[2,"font-size","12px","margin-bottom","10px"],["mat-flat-button","","color","primary",2,"float","left",3,"click"],["mat-stroked-button","","color","primary",2,"float","right",3,"click"],[2,"float","right","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["mat-stroked-button","","color","warn",2,"float","right",3,"click"],[2,"margin-left","20px","margin-right","20px"],[1,"big","no-border-radius-top"],[4,"ngIf"],[1,"container",2,"padding-bottom","20px"],[1,"col-12","col-sm-6"],["color","accent",2,"z-index","999",3,"disabled","ngModel","ngModelOptions","change","ngModelChange"],["mat-icon-button","",1,"edit-button",3,"click"],["color","accent",1,"advanced-input",2,"margin-bottom","42px"],["matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template"],["class","col-12 col-sm-6 mt-2",4,"ngIf"],[1,"col-12","col-sm-6","mt-2"],["color","accent",1,"advanced-input"],["color","accent",1,"advanced-input",2,"margin-top","31px"],["type","password","matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],[1,"big","demo-basic",2,"margin-top","15px"],["id","card",2,"margin-right","20px","margin-left","20px"],[1,"container"],["class","row",4,"ngFor","ngForOf"],[2,"width","100%",3,"download","queueNumber","cancelDownload"],["style","position: relative",4,"ngIf"],["id","bar_div",1,"centered","big"],[1,"margined"],["style","display: inline-block; width: 100%; padding-left: 20px",3,"ngClass",4,"ngIf","ngIfElse"],["class","spinner",4,"ngIf"],["indeterminateprogress",""],[2,"display","inline-block","width","100%","padding-left","20px",3,"ngClass"],["mode","determinate",2,"border-radius","5px",3,"value"],[1,"spinner"],["mode","indeterminate",2,"border-radius","5px"],[2,"margin","20px"],[1,"big",3,"opened","closed","mouseleave","mouseenter"],[4,"ngIf","ngIfElse"],["rowHeight","150px",2,"margin-bottom","15px",3,"cols","resize"],[2,"width","100%","text-align","center","margin-top","10px"],["rowHeight","150px",3,"cols","resize",4,"ngIf"],[1,"add-playlist-button"],["mat-fab","",3,"click"],[3,"file","title","name","uid","thumbnailURL","length","isAudio","use_youtubedl_archive","removeFile"],["audiofilecard",""],["class","download-progress-bar","mode","indeterminate",4,"ngIf"],["mode","indeterminate",1,"download-progress-bar"],["rowHeight","150px",3,"cols","resize"],[3,"title","name","thumbnailURL","length","isAudio","playlist","count","use_youtubedl_archive","removeFile"],["videofilecard",""]],template:function(t,e){if(1&t&&(a.Ec(0,"br"),a.Jc(1,"div",0),a.Jc(2,"mat-card",1),a.Jc(3,"mat-card-title"),a.Hc(4),a.Nc(5,sM),a.Gc(),a.Ic(),a.Jc(6,"mat-card-content"),a.Jc(7,"div",2),a.Jc(8,"form",3),a.Jc(9,"div",4),a.Jc(10,"div",5),a.Jc(11,"div",6),a.Jc(12,"mat-form-field",7),a.Jc(13,"input",8,9),a.Wc("keyup.enter",(function(){return e.downloadClicked()}))("ngModelChange",(function(t){return e.inputChanged(t)}))("ngModelChange",(function(t){return e.url=t})),a.Ic(),a.Ic(),a.Jc(15,"button",10),a.Wc("click",(function(){return e.clearInput()})),a.Jc(16,"mat-icon"),a.Bd(17,"clear"),a.Ic(),a.Ic(),a.Ic(),a.zd(18,CM,8,5,"div",11),a.Ic(),a.Ic(),a.zd(19,AM,2,1,"div",12),a.Ic(),a.Ec(20,"br"),a.Jc(21,"mat-checkbox",13),a.Wc("change",(function(t){return e.videoModeChanged(t)}))("ngModelChange",(function(t){return e.audioOnly=t})),a.Hc(22),a.Nc(23,cM),a.Gc(),a.Ic(),a.zd(24,TM,3,2,"mat-checkbox",14),a.Ic(),a.Ic(),a.Jc(25,"mat-card-actions"),a.Jc(26,"button",15),a.Wc("click",(function(){return e.downloadClicked()})),a.Hc(27),a.Nc(28,lM),a.Gc(),a.Ic(),a.zd(29,PM,3,0,"button",16),a.Ic(),a.Ic(),a.Ic(),a.zd(30,tL,39,19,"div",17),a.zd(31,aL,4,1,"div",18),a.Ec(32,"br"),a.zd(33,cL,7,3,"div",19),a.zd(34,lL,0,0,"ng-template",null,20,a.Ad),a.zd(36,xL,20,4,"div",21),a.zd(37,SL,0,0,"ng-template",null,22,a.Ad),a.zd(39,IL,0,0,"ng-template",null,23,a.Ad)),2&t){var i=a.nd(35);a.pc(2),a.gd("ngClass",e.allowAdvancedDownload?"no-border-radius-bottom":null),a.pc(9),a.gd("ngClass",e.allowQualitySelect?"col-sm-9":null),a.pc(2),a.gd("ngModel",e.url)("placeholder","URL"+(e.youtubeSearchEnabled?" or search":"")),a.pc(5),a.gd("ngIf",e.allowQualitySelect),a.pc(1),a.gd("ngIf",e.results_showing),a.pc(2),a.gd("disabled",e.current_download)("ngModel",e.audioOnly),a.pc(3),a.gd("ngIf",e.allowMultiDownloadMode),a.pc(2),a.gd("disabled",e.downloadingfile),a.pc(3),a.gd("ngIf",!!e.current_download),a.pc(1),a.gd("ngIf",e.allowAdvancedDownload),a.pc(1),a.gd("ngIf",e.multiDownloadMode&&e.downloads.length>0&&!e.current_download),a.pc(2),a.gd("ngIf",e.current_download&&e.current_download.downloading)("ngIfElse",i),a.pc(3),a.gd("ngIf",e.fileManagerEnabled&&(!e.postsService.isLoggedIn||e.postsService.permissions.includes("filemanager")))}},styles:[".demo-card[_ngcontent-%COMP%]{margin:16px}.demo-basic[_ngcontent-%COMP%]{padding:0}.demo-basic[_ngcontent-%COMP%] .mat-card-content[_ngcontent-%COMP%]{padding:16px}mat-toolbar.top[_ngcontent-%COMP%]{height:60px;width:100%;text-align:center}.big[_ngcontent-%COMP%]{max-width:800px;margin:0 auto}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.example-full-width[_ngcontent-%COMP%]{width:100%}.example-80-width[_ngcontent-%COMP%]{width:80%}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:24px}.spinner[_ngcontent-%COMP%]{position:absolute;display:inline-block;margin-left:-28px;margin-top:-10px}.make-room-for-spinner[_ngcontent-%COMP%]{padding-right:40px}.equal-sizes[_ngcontent-%COMP%]{padding-right:20px}.search-card-title[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.input-clear-button[_ngcontent-%COMP%]{position:absolute;right:5px;top:22px}.spinner-div[_ngcontent-%COMP%]{display:inline-block;position:absolute;top:15px;right:-40px}.margined[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}.results-div[_ngcontent-%COMP%]{position:relative;top:-15px}.first-result-card[_ngcontent-%COMP%]{border-radius:4px 4px 0 0!important}.last-result-card[_ngcontent-%COMP%]{border-radius:0 0 4px 4px!important}.only-result-card[_ngcontent-%COMP%]{border-radius:4px!important}.result-card[_ngcontent-%COMP%]{height:120px;border-radius:0;padding-bottom:5px}.download-progress-bar[_ngcontent-%COMP%]{z-index:999;position:absolute;bottom:0;width:150px;border-radius:0 0 4px 4px;overflow:hidden;bottom:12px}.add-playlist-button[_ngcontent-%COMP%]{float:right}.advanced-input[_ngcontent-%COMP%]{width:100%}.edit-button[_ngcontent-%COMP%]{margin-left:10px;top:-5px}.no-border-radius-bottom[_ngcontent-%COMP%]{border-radius:4px 4px 0 0}.no-border-radius-top[_ngcontent-%COMP%]{border-radius:0 0 4px 4px}@media (max-width:576px){.download-progress-bar[_ngcontent-%COMP%]{width:125px}}"]}),OL);si.a.merge=rl.a;var RL,ML,LL,jL,FL,NL,zL,BL=i("zuWl"),JL=i.n(BL);RL=$localize(_templateObject175()),ML=$localize(_templateObject176()),LL=$localize(_templateObject177()),jL=$localize(_templateObject178()),FL=$localize(_templateObject179()),NL=$localize(_templateObject180()),zL=$localize(_templateObject181());var VL,HL,UL=((VL=function(){function t(e){_classCallCheck(this,t),this.data=e}return _createClass(t,[{key:"ngOnInit",value:function(){this.filesize=JL.a,this.data&&(this.file=this.data.file)}}]),t}()).\u0275fac=function(t){return new(t||VL)(a.Dc(Ah))},VL.\u0275cmp=a.xc({type:VL,selectors:[["app-video-info-dialog"]],decls:56,vars:8,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-label"],[1,"info-item-value"],["target","_blank",3,"href"],["mat-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(a.Jc(0,"h4",0),a.Bd(1),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div",1),a.Jc(4,"div",2),a.Jc(5,"strong"),a.Hc(6),a.Nc(7,RL),a.Gc(),a.Bd(8,"\xa0"),a.Ic(),a.Ic(),a.Jc(9,"div",3),a.Bd(10),a.Ic(),a.Ic(),a.Jc(11,"div",1),a.Jc(12,"div",2),a.Jc(13,"strong"),a.Hc(14),a.Nc(15,ML),a.Gc(),a.Bd(16,"\xa0"),a.Ic(),a.Ic(),a.Jc(17,"div",3),a.Jc(18,"a",4),a.Bd(19),a.Ic(),a.Ic(),a.Ic(),a.Jc(20,"div",1),a.Jc(21,"div",2),a.Jc(22,"strong"),a.Hc(23),a.Nc(24,LL),a.Gc(),a.Bd(25,"\xa0"),a.Ic(),a.Ic(),a.Jc(26,"div",3),a.Bd(27),a.Ic(),a.Ic(),a.Jc(28,"div",1),a.Jc(29,"div",2),a.Jc(30,"strong"),a.Hc(31),a.Nc(32,jL),a.Gc(),a.Bd(33,"\xa0"),a.Ic(),a.Ic(),a.Jc(34,"div",3),a.Bd(35),a.Ic(),a.Ic(),a.Jc(36,"div",1),a.Jc(37,"div",2),a.Jc(38,"strong"),a.Hc(39),a.Nc(40,FL),a.Gc(),a.Bd(41,"\xa0"),a.Ic(),a.Ic(),a.Jc(42,"div",3),a.Bd(43),a.Ic(),a.Ic(),a.Jc(44,"div",1),a.Jc(45,"div",2),a.Jc(46,"strong"),a.Hc(47),a.Nc(48,NL),a.Gc(),a.Bd(49,"\xa0"),a.Ic(),a.Ic(),a.Jc(50,"div",3),a.Bd(51),a.Ic(),a.Ic(),a.Ic(),a.Jc(52,"mat-dialog-actions"),a.Jc(53,"button",5),a.Hc(54),a.Nc(55,zL),a.Gc(),a.Ic(),a.Ic()),2&t&&(a.pc(1),a.Cd(e.file.title),a.pc(9),a.Cd(e.file.title),a.pc(8),a.gd("href",e.file.url,a.td),a.pc(1),a.Cd(e.file.url),a.pc(8),a.Cd(e.file.uploader?e.file.uploader:"N/A"),a.pc(8),a.Cd(e.file.size?e.filesize(e.file.size):"N/A"),a.pc(8),a.Cd(e.file.path?e.file.path:"N/A"),a.pc(8),a.Cd(e.file.upload_date?e.file.upload_date:"N/A"))},directives:[Fh,Nh,zh,Qa,jh],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px;width:100%}.info-item-value[_ngcontent-%COMP%]{font-size:13px;display:inline-block;width:70%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.info-item-label[_ngcontent-%COMP%]{display:inline-block;width:30%;vertical-align:top}.a-wrap[_ngcontent-%COMP%]{word-wrap:break-word}"]}),VL);HL=$localize(_templateObject182());var GL=["placeholder",$localize(_templateObject183())];function WL(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-button-toggle",11),a.Jc(1,"div"),a.Jc(2,"div",12),a.Bd(3),a.Ic(),a.Jc(4,"button",13),a.Wc("click",(function(){a.rd(i);var t=e.index;return a.ad().removeContent(t)})),a.Jc(5,"mat-icon"),a.Bd(6,"cancel"),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=e.$implicit;a.gd("checked",!1),a.pc(3),a.Cd(n)}}function qL(t,e){if(1&t){var i=a.Kc();a.Jc(0,"button",14),a.Wc("click",(function(){a.rd(i);var t=e.$implicit;return a.ad().addContent(t)})),a.Bd(1),a.Ic()}if(2&t){var n=e.$implicit;a.pc(1),a.Cd(n)}}var $L,KL=(($L=function(){function t(e,i,n){_classCallCheck(this,t),this.data=e,this.postsService=i,this.dialogRef=n,this.original_playlist=null,this.playlist=null,this.available_files=[],this.all_files=[],this.playlist_updated=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.data&&(this.playlist=JSON.parse(JSON.stringify(this.data.playlist)),this.original_playlist=JSON.parse(JSON.stringify(this.data.playlist)),this.getFiles())}},{key:"getFiles",value:function(){var t=this;"audio"===this.playlist.type?this.postsService.getMp3s().subscribe((function(e){t.processFiles(e.mp3s)})):this.postsService.getMp4s().subscribe((function(e){t.processFiles(e.mp4s)}))}},{key:"processFiles",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.all_files=e.map((function(t){return t.id}))),this.available_files=this.all_files.filter((function(e){return!t.playlist.fileNames.includes(e)}))}},{key:"updatePlaylist",value:function(){var t=this;this.postsService.updatePlaylist(this.playlist).subscribe((function(e){t.playlist_updated=!0,t.postsService.openSnackBar("Playlist updated successfully."),t.getPlaylist()}))}},{key:"playlistChanged",value:function(){return JSON.stringify(this.playlist)===JSON.stringify(this.original_playlist)}},{key:"getPlaylist",value:function(){var t=this;this.postsService.getPlaylist(this.playlist.id,this.playlist.type,null).subscribe((function(e){e.playlist&&(t.playlist=e.playlist,t.original_playlist=JSON.parse(JSON.stringify(t.playlist)))}))}},{key:"addContent",value:function(t){this.playlist.fileNames.push(t),this.processFiles()}},{key:"removeContent",value:function(t){this.playlist.fileNames.splice(t,1),this.processFiles()}},{key:"drop",value:function(t){$C(this.playlist.fileNames,t.previousIndex,t.currentIndex)}}]),t}()).\u0275fac=function(t){return new(t||$L)(a.Dc(Ah),a.Dc(eD),a.Dc(Eh))},$L.\u0275cmp=a.xc({type:$L,selectors:[["app-modify-playlist"]],decls:20,vars:7,consts:[["mat-dialog-title",""],["color","accent"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["cdkDropList","","vertical","","name","videoSelect","aria-label","Video Select",1,"media-list",2,"width","80%","left","9%",3,"cdkDropListDropped"],["group","matButtonToggleGroup"],["class","media-box","cdkDrag","",3,"checked",4,"ngFor","ngForOf"],[1,"add-content-button"],["mat-stroked-button","",3,"disabled","matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-raised-button","","color","accent",3,"disabled","click"],["cdkDrag","",1,"media-box",3,"checked"],[1,"playlist-item-text"],["mat-icon-button","",1,"remove-item-button",3,"click"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(a.Jc(0,"h4",0),a.Hc(1),a.Nc(2,HL),a.Gc(),a.Ic(),a.Jc(3,"mat-dialog-content"),a.Jc(4,"div"),a.Jc(5,"mat-form-field",1),a.Jc(6,"input",2),a.Pc(7,GL),a.Wc("ngModelChange",(function(t){return e.playlist.name=t})),a.Ic(),a.Ic(),a.Ic(),a.Jc(8,"mat-button-toggle-group",3,4),a.Wc("cdkDropListDropped",(function(t){return e.drop(t)})),a.zd(10,WL,7,2,"mat-button-toggle",5),a.Ic(),a.Jc(11,"div",6),a.Jc(12,"button",7),a.Bd(13,"Add more content"),a.Ic(),a.Ic(),a.Jc(14,"mat-menu",null,8),a.zd(16,qL,2,1,"button",9),a.Ic(),a.Ic(),a.Jc(17,"mat-dialog-actions"),a.Jc(18,"button",10),a.Wc("click",(function(){return e.updatePlaylist()})),a.Bd(19,"Save"),a.Ic(),a.Ic()),2&t){var i=a.nd(15);a.pc(6),a.gd("ngModel",e.playlist.name),a.pc(4),a.gd("ngForOf",e.playlist.fileNames),a.pc(2),a.gd("disabled",0===e.available_files.length)("matMenuTriggerFor",i),a.pc(4),a.gd("ngForOf",e.available_files),a.pc(2),a.gd("disabled",!e.playlistChanged())("disabled",e.playlistChanged())}},directives:[Fh,Nh,qd,Lm,yr,Er,es,bc,Dx,ye.s,Qa,Vg,Ng,zh,yc,bx,wm,Pg],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.media-box[_ngcontent-%COMP%]:last-child{border:none}.media-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .media-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.add-content-button[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:10px}.remove-item-button[_ngcontent-%COMP%]{right:10px;position:absolute;top:4px}.playlist-item-text[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70%;margin:0 auto}"]}),$L),XL=new si.a(He.a);function YL(t,e){t.className=t.className.replace(e,"")}function ZL(t,e){t.className.includes(e)||(t.className+=" ".concat(e))}function QL(){return"undefined"!=typeof window?window.navigator:void 0}function tj(t){return Boolean(t.parentElement&&"picture"===t.parentElement.nodeName.toLowerCase())}function ej(t){return"img"===t.nodeName.toLowerCase()}function ij(t,e,i){return ej(t)?i&&"srcset"in t?t.srcset=e:t.src=e:t.style.backgroundImage="url('".concat(e,"')"),t}function nj(t){return function(e){for(var i=e.parentElement.getElementsByTagName("source"),n=0;n<i.length;n++){var a=i[n].getAttribute(t);a&&("srcset"in i[n]?i[n].srcset=a:i[n].src=a)}}}var aj=nj("defaultImage"),rj=nj("lazyLoad"),oj=nj("errorImage");function sj(t){return function(e,i,n){ej(e)&&tj(e)&&t(e),i&&ij(e,i,n)}}var cj=sj(aj),lj=sj(rj),uj=sj(oj),dj={finally:function(t){var e=t.element;ZL(e,"ng-lazyloaded"),YL(e,"ng-lazyloading")},loadImage:function(t){var e,i=t.element,n=t.useSrcset,a=t.imagePath,r=t.decode;if(ej(i)&&tj(i)){var o=i.parentNode.cloneNode(!0);e=o.getElementsByTagName("img")[0],rj(e),ij(e,a,n)}else e=new Image,ej(i)&&i.sizes&&(e.sizes=i.sizes),n&&"srcset"in e?e.srcset=a:e.src=a;return r&&e.decode?e.decode().then((function(){return a})):new Promise((function(t,i){e.onload=function(){return t(a)},e.onerror=function(){return i(null)}}))},setErrorImage:function(t){var e=t.element,i=t.errorImagePath,n=t.useSrcset;uj(e,i,n),ZL(e,"ng-failed-lazyloaded")},setLoadedImage:function(t){var e=t.element,i=t.imagePath,n=t.useSrcset;lj(e,i,n)},setup:function(t){var e=t.element,i=t.defaultImagePath,n=t.useSrcset;cj(e,i,n),ZL(e,"ng-lazyloading"),function(t,e){return t.className&&t.className.includes("ng-lazyloaded")}(e)&&YL(e,"ng-lazyloaded")},isBot:function(t){return!(!t||!t.userAgent)&&/googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|duckduckbot/i.test(t.userAgent)}},hj=new WeakMap,pj=new Le.a;function fj(t){t.forEach((function(t){return pj.next(t)}))}var mj,gj,vj,bj,_j,yj,kj,wj,Cj,xj,Sj={},Ij=function(t){var e=t.scrollContainer||Sj,i={root:t.scrollContainer||null};t.offset&&(i.rootMargin="".concat(t.offset,"px"));var n=hj.get(e);return n||(n=new IntersectionObserver(fj,i),hj.set(e,n)),n.observe(t.element),si.a.create((function(e){var i=pj.pipe(ii((function(e){return e.target===t.element}))).subscribe(e);return function(){i.unsubscribe(),n.unobserve(t.element)}}))},Oj=Object.assign({},dj,{isVisible:function(t){return t.event.isIntersecting},getObservable:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ij;return t.customObservable?t.customObservable:e(t)}}),Dj=Object.assign({},dj,{isVisible:function(){return!0},getObservable:function(){return Be("load")},loadImage:function(t){return[t.imagePath]}}),Ej=((mj=function(){function t(e,i,n,r){_classCallCheck(this,t),this.onStateChange=new a.u,this.onLoad=new a.u,this.elementRef=e,this.ngZone=i,this.propertyChanges$=new Xl,this.platformId=n,this.hooks=function(t,e){var i=Oj,n=e&&e.isBot?e.isBot:i.isBot;if(n(QL(),t))return Object.assign(Dj,{isBot:n});if(!e)return i;var a={};return Object.assign(a,e.preset?e.preset:i),Object.keys(e).filter((function(t){return"preset"!==t})).forEach((function(t){a[t]=e[t]})),a}(n,r)}return _createClass(t,[{key:"ngOnChanges",value:function(){!0!==this.debug||this.debugSubscription||(this.debugSubscription=this.onStateChange.subscribe((function(t){return console.log(t)}))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange})}},{key:"ngAfterContentInit",value:function(){var t=this;if(Object(ye.J)(this.platformId)&&!this.hooks.isBot(QL(),this.platformId))return null;this.ngZone.runOutsideAngular((function(){t.loadSubscription=t.propertyChanges$.pipe(Ge((function(t){return t.onStateChange.emit({reason:"setup"})})),Ge((function(e){return t.hooks.setup(e)})),Pl((function(e){return e.imagePath?t.hooks.getObservable(e).pipe(function(t,e){return function(i){return i.pipe(Ge((function(t){return e.onStateChange.emit({reason:"observer-emit",data:t})})),ii((function(i){return t.isVisible({element:e.element,event:i,offset:e.offset,scrollContainer:e.scrollContainer})})),ui(1),Ge((function(){return e.onStateChange.emit({reason:"start-loading"})})),Object(cf.a)((function(){return t.loadImage(e)})),Ge((function(){return e.onStateChange.emit({reason:"mount-image"})})),Ge((function(i){return t.setLoadedImage({element:e.element,imagePath:i,useSrcset:e.useSrcset})})),Ge((function(){return e.onStateChange.emit({reason:"loading-succeeded"})})),Object(ri.a)((function(){return!0})),tf((function(i){return e.onStateChange.emit({reason:"loading-failed",data:i}),t.setErrorImage(e),Be(!1)})),Ge((function(){e.onStateChange.emit({reason:"finally"}),t.finally(e)})))}}(t.hooks,e)):XL}))).subscribe((function(e){return t.onLoad.emit(e)}))}))}},{key:"ngOnDestroy",value:function(){var t,e;null===(t=this.loadSubscription)||void 0===t||t.unsubscribe(),null===(e=this.debugSubscription)||void 0===e||e.unsubscribe()}}]),t}()).\u0275fac=function(t){return new(t||mj)(a.Dc(a.r),a.Dc(a.I),a.Dc(a.M),a.Dc("options",8))},mj.\u0275dir=a.yc({type:mj,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange",onLoad:"onLoad"},features:[a.nc]}),mj),Aj=((vj=gj=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(t){return{ngModule:gj,providers:[{provide:"options",useValue:t}]}}}]),t}()).\u0275mod=a.Bc({type:vj}),vj.\u0275inj=a.Ac({factory:function(t){return new(t||vj)}}),vj);function Tj(t,e){if(1&t&&(a.Jc(0,"div"),a.Hc(1),a.Nc(2,Cj),a.Gc(),a.Bd(3),a.Ic()),2&t){var i=a.ad();a.pc(3),a.Dd("\xa0",i.count,"")}}function Pj(t,e){1&t&&a.Ec(0,"span")}function Rj(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",12),a.Jc(1,"img",13),a.Wc("error",(function(t){return a.rd(i),a.ad().onImgError(t)}))("onLoad",(function(t){return a.rd(i),a.ad().imageLoaded(t)})),a.Ic(),a.zd(2,Pj,1,0,"span",5),a.Ic()}if(2&t){var n=a.ad();a.pc(1),a.gd("id",n.type)("lazyLoad",n.thumbnailURL)("customObservable",n.scrollAndLoad),a.pc(1),a.gd("ngIf",!n.image_loaded)}}function Mj(t,e){if(1&t&&(a.Jc(0,"button",14),a.Jc(1,"mat-icon"),a.Bd(2,"more_vert"),a.Ic(),a.Ic()),2&t){a.ad();var i=a.nd(15);a.gd("matMenuTriggerFor",i)}}function Lj(t,e){if(1&t&&(a.Jc(0,"button",14),a.Jc(1,"mat-icon"),a.Bd(2,"more_vert"),a.Ic(),a.Ic()),2&t){a.ad();var i=a.nd(28);a.gd("matMenuTriggerFor",i)}}function jj(t,e){if(1&t){var i=a.Kc();a.Jc(0,"button",9),a.Wc("click",(function(){return a.rd(i),a.ad().deleteFile(!0)})),a.Jc(1,"mat-icon"),a.Bd(2,"delete_forever"),a.Ic(),a.Hc(3),a.Nc(4,xj),a.Gc(),a.Ic()}}bj=$localize(_templateObject184()),_j=$localize(_templateObject185()),yj=$localize(_templateObject186()),kj=$localize(_templateObject187()),wj=$localize(_templateObject188()),Cj=$localize(_templateObject189()),xj=$localize(_templateObject190());var Fj,Nj=((Fj=function(){function t(e,i,n,r){_classCallCheck(this,t),this.postsService=e,this.snackBar=i,this.mainComponent=n,this.dialog=r,this.isAudio=!0,this.removeFile=new a.u,this.playlist=null,this.count=null,this.use_youtubedl_archive=!1,this.image_loaded=!1,this.image_errored=!1,this.scrollSubject=new Le.a,this.scrollAndLoad=si.a.merge(si.a.fromEvent(window,"scroll"),this.scrollSubject)}return _createClass(t,[{key:"ngOnInit",value:function(){if(this.type=this.isAudio?"audio":"video",this.file&&this.file.url&&this.file.url.includes("youtu")){var t=this.playlist?6:3,e=this.file.url.indexOf(this.playlist?"?list=":"?v=")+t;this.name=this.file.url.substring(e,this.file.url.length)}}},{key:"deleteFile",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.playlist?this.removeFile.emit(this.name):this.postsService.deleteFile(this.uid,this.isAudio,e).subscribe((function(e){e?(t.openSnackBar("Delete success!","OK."),t.removeFile.emit(t.name)):t.openSnackBar("Delete failed!","OK.")}),(function(e){t.openSnackBar("Delete failed!","OK.")}))}},{key:"openVideoInfoDialog",value:function(){this.dialog.open(UL,{data:{file:this.file},minWidth:"50vw"})}},{key:"editPlaylistDialog",value:function(){var t=this,e=this.dialog.open(KL,{data:{playlist:this.playlist,width:"65vw"}});e.afterClosed().subscribe((function(i){e.componentInstance.playlist_updated&&(t.playlist=e.componentInstance.original_playlist,t.title=t.playlist.name,t.count=t.playlist.fileNames.length)}))}},{key:"onImgError",value:function(t){this.image_errored=!0}},{key:"onHoverResponse",value:function(){this.scrollSubject.next()}},{key:"imageLoaded",value:function(t){this.image_loaded=!0}},{key:"openSnackBar",value:function(t,e){this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||Fj)(a.Dc(eD),a.Dc(R_),a.Dc(PL),a.Dc(Mh))},Fj.\u0275cmp=a.xc({type:Fj,selectors:[["app-file-card"]],inputs:{file:"file",title:"title",length:"length",name:"name",uid:"uid",thumbnailURL:"thumbnailURL",isAudio:"isAudio",playlist:"playlist",count:"count",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{removeFile:"removeFile"},decls:40,vars:7,consts:[[1,"example-card","mat-elevation-z6"],[2,"padding","5px"],[2,"height","52px"],["href","javascript:void(0)",1,"file-link",3,"click"],[1,"max-two-lines"],[4,"ngIf"],["class","img-div",4,"ngIf"],["class","deleteButton","mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["playlist_menu","matMenu"],["mat-menu-item","",3,"click"],["action_menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"id","lazyLoad","customObservable","error","onLoad"],["mat-icon-button","",1,"deleteButton",3,"matMenuTriggerFor"]],template:function(t,e){1&t&&(a.Jc(0,"mat-card",0),a.Jc(1,"div",1),a.Jc(2,"div",2),a.Jc(3,"div"),a.Jc(4,"b"),a.Jc(5,"a",3),a.Wc("click",(function(){return e.playlist?e.mainComponent.goToPlaylist(e.name,e.type):e.mainComponent.goToFile(e.name,e.isAudio,e.uid)})),a.Bd(6),a.Ic(),a.Ic(),a.Ic(),a.Jc(7,"span",4),a.Hc(8),a.Nc(9,bj),a.Gc(),a.Bd(10),a.Ic(),a.zd(11,Tj,4,1,"div",5),a.Ic(),a.zd(12,Rj,3,4,"div",6),a.Ic(),a.zd(13,Mj,3,1,"button",7),a.Jc(14,"mat-menu",null,8),a.Jc(16,"button",9),a.Wc("click",(function(){return e.editPlaylistDialog()})),a.Jc(17,"mat-icon"),a.Bd(18,"edit"),a.Ic(),a.Hc(19),a.Nc(20,_j),a.Gc(),a.Ic(),a.Jc(21,"button",9),a.Wc("click",(function(){return e.deleteFile()})),a.Jc(22,"mat-icon"),a.Bd(23,"delete_forever"),a.Ic(),a.Hc(24),a.Nc(25,yj),a.Gc(),a.Ic(),a.Ic(),a.zd(26,Lj,3,1,"button",7),a.Jc(27,"mat-menu",null,10),a.Jc(29,"button",9),a.Wc("click",(function(){return e.openVideoInfoDialog()})),a.Jc(30,"mat-icon"),a.Bd(31,"info"),a.Ic(),a.Hc(32),a.Nc(33,kj),a.Gc(),a.Ic(),a.Jc(34,"button",9),a.Wc("click",(function(){return e.deleteFile()})),a.Jc(35,"mat-icon"),a.Bd(36,"delete"),a.Ic(),a.Hc(37),a.Nc(38,wj),a.Gc(),a.Ic(),a.zd(39,jj,5,0,"button",11),a.Ic(),a.Ic()),2&t&&(a.pc(6),a.Cd(e.title),a.pc(4),a.Dd("\xa0",e.name,""),a.pc(1),a.gd("ngIf",e.playlist),a.pc(1),a.gd("ngIf",!e.image_errored&&e.thumbnailURL),a.pc(1),a.gd("ngIf",e.playlist),a.pc(13),a.gd("ngIf",!e.playlist),a.pc(13),a.gd("ngIf",e.use_youtubedl_archive))},directives:[zc,ye.t,Ng,Pg,wm,Ej,Qa,Vg],styles:[".example-card[_ngcontent-%COMP%]{width:150px;height:125px;padding:0}.deleteButton[_ngcontent-%COMP%]{top:-5px;right:-5px;position:absolute}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:100%}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{height:60px;padding:0;margin:8px 0 0 -5px;width:calc(100% + 10px);overflow:hidden;border-radius:0 0 4px 4px}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;-webkit-box-orient:vertical;-webkit-line-clamp:2}.file-link[_ngcontent-%COMP%], .max-two-lines[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.file-link[_ngcontent-%COMP%]{width:80%;white-space:nowrap;display:block}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:125px!important}}"]}),Fj);function zj(t,e){1&t&&(a.Jc(0,"div",6),a.Ec(1,"mat-spinner",7),a.Ic()),2&t&&(a.pc(1),a.gd("diameter",25))}var Bj,Jj,Vj,Hj=((Bj=function(){function t(e,i){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.inputText="",this.inputSubmitted=!1,this.doneEmitter=null,this.onlyEmitOnDone=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.inputTitle=this.data.inputTitle,this.inputPlaceholder=this.data.inputPlaceholder,this.submitText=this.data.submitText,this.data.doneEmitter&&(this.doneEmitter=this.data.doneEmitter,this.onlyEmitOnDone=!0)}},{key:"enterPressed",value:function(){this.inputText&&(this.onlyEmitOnDone?(this.doneEmitter.emit(this.inputText),this.inputSubmitted=!0):this.dialogRef.close(this.inputText))}}]),t}()).\u0275fac=function(t){return new(t||Bj)(a.Dc(Eh),a.Dc(Ah))},Bj.\u0275cmp=a.xc({type:Bj,selectors:[["app-input-dialog"]],decls:12,vars:6,consts:[["mat-dialog-title",""],["color","accent"],["matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],[1,"mat-spinner"],[3,"diameter"]],template:function(t,e){1&t&&(a.Jc(0,"h4",0),a.Bd(1),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div"),a.Jc(4,"mat-form-field",1),a.Jc(5,"input",2),a.Wc("keyup.enter",(function(){return e.enterPressed()}))("ngModelChange",(function(t){return e.inputText=t})),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(6,"mat-dialog-actions"),a.Jc(7,"button",3),a.Bd(8,"Cancel"),a.Ic(),a.Jc(9,"button",4),a.Wc("click",(function(){return e.enterPressed()})),a.Bd(10),a.Ic(),a.zd(11,zj,2,1,"div",5),a.Ic()),2&t&&(a.pc(1),a.Cd(e.inputTitle),a.pc(4),a.gd("ngModel",e.inputText)("placeholder",e.inputPlaceholder),a.pc(4),a.gd("disabled",!e.inputText),a.pc(1),a.Cd(e.submitText),a.pc(1),a.gd("ngIf",e.inputSubmitted))},directives:[Fh,Nh,qd,Lm,yr,Er,es,zh,Qa,jh,ye.t,zv],styles:[".mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),Bj);Jj=$localize(_templateObject191()),Vj=$localize(_templateObject192());var Uj,Gj,Wj,qj,$j,Kj=["placeholder",$localize(_templateObject193())];function Xj(t,e){1&t&&(a.Hc(0),a.Nc(1,Wj),a.Gc())}function Yj(t,e){1&t&&(a.Hc(0),a.Nc(1,qj),a.Gc())}function Zj(t,e){1&t&&(a.Hc(0),a.Nc(1,$j),a.Gc())}Uj=$localize(_templateObject194()),Gj=$localize(_templateObject195()),Wj=$localize(_templateObject196()),qj=$localize(_templateObject197()),$j=$localize(_templateObject198());var Qj,tF=((Qj=function(){function t(e,i,n,a){_classCallCheck(this,t),this.data=e,this.router=i,this.snackBar=n,this.postsService=a,this.type=null,this.uid=null,this.uuid=null,this.share_url=null,this.default_share_url=null,this.sharing_enabled=null,this.is_playlist=null,this.current_timestamp=null,this.timestamp_enabled=!1}return _createClass(t,[{key:"ngOnInit",value:function(){if(this.data){this.type=this.data.type,this.uid=this.data.uid,this.uuid=this.data.uuid,this.sharing_enabled=this.data.sharing_enabled,this.is_playlist=this.data.is_playlist,this.current_timestamp=(this.data.current_timestamp/1e3).toFixed(2);var t=this.is_playlist?";id=":";uid=";this.default_share_url=window.location.href.split(";")[0]+t+this.uid,this.uuid&&(this.default_share_url+=";uuid="+this.uuid),this.share_url=this.default_share_url}}},{key:"timestampInputChanged",value:function(t){if(this.timestamp_enabled){var e=t.target.value;this.share_url=e>0?this.default_share_url+";timestamp="+e:this.default_share_url}else this.share_url=this.default_share_url}},{key:"useTimestampChanged",value:function(){this.timestampInputChanged({target:{value:this.current_timestamp}})}},{key:"copiedToClipboard",value:function(){this.openSnackBar("Copied to clipboard!")}},{key:"sharingChanged",value:function(t){var e=this;t.checked?this.postsService.enableSharing(this.uid,this.type,this.is_playlist).subscribe((function(t){t.success?(e.openSnackBar("Sharing enabled."),e.sharing_enabled=!0):e.openSnackBar("Failed to enable sharing.")}),(function(t){e.openSnackBar("Failed to enable sharing - server error.")})):this.postsService.disableSharing(this.uid,this.type,this.is_playlist).subscribe((function(t){t.success?(e.openSnackBar("Sharing disabled."),e.sharing_enabled=!1):e.openSnackBar("Failed to disable sharing.")}),(function(t){e.openSnackBar("Failed to disable sharing - server error.")}))}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||Qj)(a.Dc(Ah),a.Dc(wO),a.Dc(R_),a.Dc(eD))},Qj.\u0275cmp=a.xc({type:Qj,selectors:[["app-share-media-dialog"]],decls:28,vars:12,consts:[["mat-dialog-title",""],[4,"ngIf"],[3,"checked","change"],[2,"margin-right","15px",3,"ngModel","change","ngModelChange"],["matInput","","type","number",3,"ngModel","disabled","ngModelChange","change",6,"placeholder"],[2,"width","100%"],["matInput","",3,"disabled","readonly","value"],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","cdkCopyToClipboard","click"],["mat-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(a.Jc(0,"h4",0),a.zd(1,Xj,2,0,"ng-container",1),a.zd(2,Yj,2,0,"ng-container",1),a.zd(3,Zj,2,0,"ng-container",1),a.Ic(),a.Jc(4,"mat-dialog-content"),a.Jc(5,"div"),a.Jc(6,"div"),a.Jc(7,"mat-checkbox",2),a.Wc("change",(function(t){return e.sharingChanged(t)})),a.Hc(8),a.Nc(9,Jj),a.Gc(),a.Ic(),a.Ic(),a.Jc(10,"div"),a.Jc(11,"mat-checkbox",3),a.Wc("change",(function(){return e.useTimestampChanged()}))("ngModelChange",(function(t){return e.timestamp_enabled=t})),a.Hc(12),a.Nc(13,Vj),a.Gc(),a.Ic(),a.Jc(14,"mat-form-field"),a.Jc(15,"input",4),a.Pc(16,Kj),a.Wc("ngModelChange",(function(t){return e.current_timestamp=t}))("change",(function(t){return e.timestampInputChanged(t)})),a.Ic(),a.Ic(),a.Ic(),a.Jc(17,"div"),a.Jc(18,"mat-form-field",5),a.Ec(19,"input",6),a.Ic(),a.Ic(),a.Jc(20,"div",7),a.Jc(21,"button",8),a.Wc("click",(function(){return e.copiedToClipboard()})),a.Hc(22),a.Nc(23,Uj),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(24,"mat-dialog-actions"),a.Jc(25,"button",9),a.Hc(26),a.Nc(27,Gj),a.Gc(),a.Ic(),a.Ic()),2&t&&(a.pc(1),a.gd("ngIf",e.is_playlist),a.pc(1),a.gd("ngIf",!e.is_playlist&&"video"===e.type),a.pc(1),a.gd("ngIf",!e.is_playlist&&"audio"===e.type),a.pc(4),a.gd("checked",e.sharing_enabled),a.pc(4),a.gd("ngModel",e.timestamp_enabled),a.pc(4),a.gd("ngModel",e.current_timestamp)("disabled",!e.timestamp_enabled),a.pc(4),a.gd("disabled",!e.sharing_enabled)("readonly",!0)("value",e.share_url),a.pc(2),a.gd("disabled",!e.sharing_enabled)("cdkCopyToClipboard",e.share_url))},directives:[Fh,ye.t,Nh,Zc,Er,es,qd,Lm,Wr,yr,Qa,Rx,zh,jh],styles:[""]}),Qj),eF=["*"],iF=["volumeBar"],nF=function(t){return{dragging:t}};function aF(t,e){if(1&t&&a.Ec(0,"span",2),2&t){var i=e.$implicit;a.yd("width",null==i.$$style?null:i.$$style.width)("left",null==i.$$style?null:i.$$style.left)}}function rF(t,e){1&t&&a.Ec(0,"span",2)}function oF(t,e){1&t&&(a.Jc(0,"span"),a.Bd(1,"LIVE"),a.Ic())}function sF(t,e){if(1&t&&(a.Jc(0,"span"),a.Bd(1),a.bd(2,"vgUtc"),a.Ic()),2&t){var i=a.ad();a.pc(1),a.Cd(a.dd(2,1,i.getTime(),i.vgFormat))}}function cF(t,e){if(1&t&&(a.Jc(0,"option",4),a.Bd(1),a.Ic()),2&t){var i=e.$implicit;a.gd("value",i.id)("selected",!0===i.selected),a.pc(1),a.Dd(" ",i.label," ")}}function lF(t,e){if(1&t&&(a.Jc(0,"option",4),a.Bd(1),a.Ic()),2&t){var i=e.$implicit,n=a.ad();a.gd("value",i.qualityIndex.toString())("selected",i.qualityIndex===(null==n.bitrateSelected?null:n.bitrateSelected.qualityIndex)),a.pc(1),a.Dd(" ",i.label," ")}}var uF,dF,hF,pF,fF,mF,gF,vF,bF,_F,yF,kF,wF,CF,xF,SF,IF,OF,DF,EF,AF,TF,PF,RF,MF,LF,jF,FF,NF,zF,BF=((NF=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||NF)},NF.\u0275prov=a.zc({token:NF,factory:NF.\u0275fac}),NF.VG_ENDED="ended",NF.VG_PAUSED="paused",NF.VG_PLAYING="playing",NF.VG_LOADING="waiting",NF),JF=((FF=function(){function t(){_classCallCheck(this,t),this.medias={},this.playerReadyEvent=new a.u(!0),this.isPlayerReady=!1}return _createClass(t,[{key:"onPlayerReady",value:function(t){this.fsAPI=t,this.isPlayerReady=!0,this.playerReadyEvent.emit(this)}},{key:"getDefaultMedia",value:function(){for(var t in this.medias)if(this.medias[t])return this.medias[t]}},{key:"getMasterMedia",value:function(){var t;for(var e in this.medias)if("true"===this.medias[e].vgMaster||!0===this.medias[e].vgMaster){t=this.medias[e];break}return t||this.getDefaultMedia()}},{key:"isMasterDefined",value:function(){var t=!1;for(var e in this.medias)if("true"===this.medias[e].vgMaster||!0===this.medias[e].vgMaster){t=!0;break}return t}},{key:"getMediaById",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.medias[t];return t&&"*"!==t||(e=this),e}},{key:"play",value:function(){for(var t in this.medias)this.medias[t]&&this.medias[t].play()}},{key:"pause",value:function(){for(var t in this.medias)this.medias[t]&&this.medias[t].pause()}},{key:"seekTime",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(var i in this.medias)this.medias[i]&&this.$$seek(this.medias[i],t,e)}},{key:"$$seek",value:function(t,e){var i,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=t.duration;n?(this.isMasterDefined()&&(a=this.getMasterMedia().duration),i=e*a/100):i=e,t.currentTime=i}},{key:"addTextTrack",value:function(t,e,i){for(var n in this.medias)this.medias[n]&&this.$$addTextTrack(this.medias[n],t,e,i)}},{key:"$$addTextTrack",value:function(t,e,i,n){t.addTextTrack(e,i,n)}},{key:"$$getAllProperties",value:function(t){var e,i={};for(var n in this.medias)this.medias[n]&&(i[n]=this.medias[n]);switch(Object.keys(i).length){case 0:switch(t){case"state":e=BF.VG_PAUSED;break;case"playbackRate":case"volume":e=1;break;case"time":e={current:0,total:0,left:0}}break;case 1:e=i[Object.keys(i)[0]][t];break;default:e=i[this.getMasterMedia().id][t]}return e}},{key:"$$setAllProperties",value:function(t,e){for(var i in this.medias)this.medias[i]&&(this.medias[i][t]=e)}},{key:"registerElement",value:function(t){this.videogularElement=t}},{key:"registerMedia",value:function(t){this.medias[t.id]=t}},{key:"unregisterMedia",value:function(t){delete this.medias[t.id]}},{key:"duration",get:function(){return this.$$getAllProperties("duration")}},{key:"currentTime",set:function(t){this.$$setAllProperties("currentTime",t)},get:function(){return this.$$getAllProperties("currentTime")}},{key:"state",set:function(t){this.$$setAllProperties("state",t)},get:function(){return this.$$getAllProperties("state")}},{key:"volume",set:function(t){this.$$setAllProperties("volume",t)},get:function(){return this.$$getAllProperties("volume")}},{key:"playbackRate",set:function(t){this.$$setAllProperties("playbackRate",t)},get:function(){return this.$$getAllProperties("playbackRate")}},{key:"canPlay",get:function(){return this.$$getAllProperties("canPlay")}},{key:"canPlayThrough",get:function(){return this.$$getAllProperties("canPlayThrough")}},{key:"isMetadataLoaded",get:function(){return this.$$getAllProperties("isMetadataLoaded")}},{key:"isWaiting",get:function(){return this.$$getAllProperties("isWaiting")}},{key:"isCompleted",get:function(){return this.$$getAllProperties("isCompleted")}},{key:"isLive",get:function(){return this.$$getAllProperties("isLive")}},{key:"isMaster",get:function(){return this.$$getAllProperties("isMaster")}},{key:"time",get:function(){return this.$$getAllProperties("time")}},{key:"buffer",get:function(){return this.$$getAllProperties("buffer")}},{key:"buffered",get:function(){return this.$$getAllProperties("buffered")}},{key:"subscriptions",get:function(){return this.$$getAllProperties("subscriptions")}},{key:"textTracks",get:function(){return this.$$getAllProperties("textTracks")}}]),t}()).\u0275fac=function(t){return new(t||FF)},FF.\u0275prov=a.zc({token:FF,factory:FF.\u0275fac}),FF),VF=((jF=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.checkInterval=50,this.currentPlayPos=0,this.lastPlayPos=0,this.subscriptions=[],this.isBuffering=!1,this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){var t=this;this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.bufferDetected.subscribe((function(e){return t.onUpdateBuffer(e)})))}},{key:"onUpdateBuffer",value:function(t){this.isBuffering=t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||jF)(a.Dc(a.r),a.Dc(JF))},jF.\u0275cmp=a.xc({type:jF,selectors:[["vg-buffering"]],hostVars:2,hostBindings:function(t,e){2&t&&a.tc("is-buffering",e.isBuffering)},inputs:{vgFor:"vgFor"},decls:3,vars:0,consts:[[1,"vg-buffering"],[1,"bufferingContainer"],[1,"loadingSpinner"]],template:function(t,e){1&t&&(a.Jc(0,"div",0),a.Jc(1,"div",1),a.Ec(2,"div",2),a.Ic(),a.Ic())},styles:["\n vg-buffering {\n display: none;\n z-index: 201;\n }\n vg-buffering.is-buffering {\n display: block;\n }\n\n .vg-buffering {\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n }\n .vg-buffering .bufferingContainer {\n width: 100%;\n position: absolute;\n cursor: pointer;\n top: 50%;\n margin-top: -50px;\n zoom: 1;\n filter: alpha(opacity=60);\n opacity: 0.6;\n }\n /* Loading Spinner\n * http://www.alessioatzeni.com/blog/css3-loading-animation-loop/\n */\n .vg-buffering .loadingSpinner {\n background-color: rgba(0, 0, 0, 0);\n border: 5px solid rgba(255, 255, 255, 1);\n opacity: .9;\n border-top: 5px solid rgba(0, 0, 0, 0);\n border-left: 5px solid rgba(0, 0, 0, 0);\n border-radius: 50px;\n box-shadow: 0 0 35px #FFFFFF;\n width: 50px;\n height: 50px;\n margin: 0 auto;\n -moz-animation: spin .5s infinite linear;\n -webkit-animation: spin .5s infinite linear;\n }\n .vg-buffering .loadingSpinner .stop {\n -webkit-animation-play-state: paused;\n -moz-animation-play-state: paused;\n }\n @-moz-keyframes spin {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(360deg);\n }\n }\n @-moz-keyframes spinoff {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(-360deg);\n }\n }\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n @-webkit-keyframes spinoff {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(-360deg);\n }\n }\n "],encapsulation:2}),jF),HF=((LF=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:LF}),LF.\u0275inj=a.Ac({factory:function(t){return new(t||LF)},imports:[[ye.c]]}),LF),UF=((MF=function(){function t(){_classCallCheck(this,t),this.isHiddenSubject=new Le.a,this.isHidden=this.isHiddenSubject.asObservable()}return _createClass(t,[{key:"state",value:function(t){this.isHiddenSubject.next(t)}}]),t}()).\u0275fac=function(t){return new(t||MF)},MF.\u0275prov=a.zc({token:MF,factory:MF.\u0275fac}),MF),GF=((RF=function(){function t(e,i,n){_classCallCheck(this,t),this.API=e,this.ref=i,this.hidden=n,this.isAdsPlaying="initial",this.hideControls=!1,this.vgAutohide=!1,this.vgAutohideTime=3,this.subscriptions=[],this.elem=i.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.mouseMove$=ol(this.API.videogularElement,"mousemove"),this.subscriptions.push(this.mouseMove$.subscribe(this.show.bind(this))),this.touchStart$=ol(this.API.videogularElement,"touchstart"),this.subscriptions.push(this.touchStart$.subscribe(this.show.bind(this))),this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.play.subscribe(this.onPlay.bind(this))),this.subscriptions.push(this.target.subscriptions.pause.subscribe(this.onPause.bind(this))),this.subscriptions.push(this.target.subscriptions.startAds.subscribe(this.onStartAds.bind(this))),this.subscriptions.push(this.target.subscriptions.endAds.subscribe(this.onEndAds.bind(this)))}},{key:"ngAfterViewInit",value:function(){this.vgAutohide?this.hide():this.show()}},{key:"onPlay",value:function(){this.vgAutohide&&this.hide()}},{key:"onPause",value:function(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1)}},{key:"onStartAds",value:function(){this.isAdsPlaying="none"}},{key:"onEndAds",value:function(){this.isAdsPlaying="initial"}},{key:"hide",value:function(){this.vgAutohide&&(clearTimeout(this.timer),this.hideAsync())}},{key:"show",value:function(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1),this.vgAutohide&&this.hideAsync()}},{key:"hideAsync",value:function(){var t=this;this.API.state===BF.VG_PLAYING&&(this.timer=setTimeout((function(){t.hideControls=!0,t.hidden.state(!0)}),1e3*this.vgAutohideTime))}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||RF)(a.Dc(JF),a.Dc(a.r),a.Dc(UF))},RF.\u0275cmp=a.xc({type:RF,selectors:[["vg-controls"]],hostVars:4,hostBindings:function(t,e){2&t&&(a.yd("pointer-events",e.isAdsPlaying),a.tc("hide",e.hideControls))},inputs:{vgAutohide:"vgAutohide",vgAutohideTime:"vgAutohideTime",vgFor:"vgFor"},ngContentSelectors:eF,decls:1,vars:0,template:function(t,e){1&t&&(a.fd(),a.ed(0))},styles:["\n vg-controls {\n position: absolute;\n display: flex;\n width: 100%;\n height: 50px;\n z-index: 300;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-transition: bottom 1s;\n -khtml-transition: bottom 1s;\n -moz-transition: bottom 1s;\n -ms-transition: bottom 1s;\n transition: bottom 1s;\n }\n vg-controls.hide {\n bottom: -50px;\n }\n "],encapsulation:2}),RF),WF=((PF=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"getZIndex",value:function(){for(var t,e=1,i=document.getElementsByTagName("*"),n=0,a=i.length;n<a;n++)(t=parseInt(window.getComputedStyle(i[n])["z-index"],10))>e&&(e=t+1);return e}},{key:"isMobileDevice",value:function(){return void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile")}},{key:"isiOSDevice",value:function(){return navigator.userAgent.match(/ip(hone|ad|od)/i)&&!navigator.userAgent.match(/(iemobile)[\/\s]?([\w\.]*)/i)}},{key:"isCordova",value:function(){return-1===document.URL.indexOf("http://")&&-1===document.URL.indexOf("https://")}}]),t}()).\u0275fac=function(t){return new(t||PF)},PF.\u0275prov=Object(a.zc)({factory:function(){return new PF},token:PF,providedIn:"root"}),PF),qF=((TF=function(){function t(){_classCallCheck(this,t),this.nativeFullscreen=!0,this.isFullscreen=!1,this.onChangeFullscreen=new a.u}return _createClass(t,[{key:"init",value:function(t,e){var i=this;this.videogularElement=t,this.medias=e;var n={w3:{enabled:"fullscreenEnabled",element:"fullscreenElement",request:"requestFullscreen",exit:"exitFullscreen",onchange:"fullscreenchange",onerror:"fullscreenerror"},newWebkit:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitRequestFullscreen",exit:"webkitExitFullscreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},oldWebkit:{enabled:"webkitIsFullScreen",element:"webkitCurrentFullScreenElement",request:"webkitRequestFullScreen",exit:"webkitCancelFullScreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},moz:{enabled:"mozFullScreen",element:"mozFullScreenElement",request:"mozRequestFullScreen",exit:"mozCancelFullScreen",onchange:"mozfullscreenchange",onerror:"mozfullscreenerror"},ios:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitEnterFullscreen",exit:"webkitExitFullscreen",onchange:"webkitendfullscreen",onerror:"webkitfullscreenerror"},ms:{enabled:"msFullscreenEnabled",element:"msFullscreenElement",request:"msRequestFullscreen",exit:"msExitFullscreen",onchange:"MSFullscreenChange",onerror:"MSFullscreenError"}};for(var a in n)if(n[a].enabled in document){this.polyfill=n[a];break}if(WF.isiOSDevice()&&(this.polyfill=n.ios),this.isAvailable=null!=this.polyfill,null!=this.polyfill){var r;switch(this.polyfill.onchange){case"mozfullscreenchange":r=document;break;case"webkitendfullscreen":r=this.medias.toArray()[0].elem;break;default:r=t}this.fsChangeSubscription=ol(r,this.polyfill.onchange).subscribe((function(){i.onFullscreenChange()}))}}},{key:"onFullscreenChange",value:function(){this.isFullscreen=!!document[this.polyfill.element],this.onChangeFullscreen.emit(this.isFullscreen)}},{key:"toggleFullscreen",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.isFullscreen?this.exit():this.request(t)}},{key:"request",value:function(t){t||(t=this.videogularElement),this.isFullscreen=!0,this.onChangeFullscreen.emit(!0),this.isAvailable&&this.nativeFullscreen&&(WF.isMobileDevice()?((!this.polyfill.enabled&&t===this.videogularElement||WF.isiOSDevice())&&(t=this.medias.toArray()[0].elem),this.enterElementInFullScreen(t)):this.enterElementInFullScreen(this.videogularElement))}},{key:"enterElementInFullScreen",value:function(t){t[this.polyfill.request]()}},{key:"exit",value:function(){this.isFullscreen=!1,this.onChangeFullscreen.emit(!1),this.isAvailable&&this.nativeFullscreen&&document[this.polyfill.exit]()}}]),t}()).\u0275fac=function(t){return new(t||TF)},TF.\u0275prov=a.zc({token:TF,factory:TF.\u0275fac}),TF),$F=((AF=function(){function t(e,i,n){_classCallCheck(this,t),this.API=i,this.fsAPI=n,this.isFullscreen=!1,this.subscriptions=[],this.ariaValue="normal mode",this.elem=e.nativeElement,this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this)))}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"onChangeFullscreen",value:function(t){this.ariaValue=t?"fullscren mode":"normal mode",this.isFullscreen=t}},{key:"onClick",value:function(){this.changeFullscreenState()}},{key:"onKeyDown",value:function(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.changeFullscreenState())}},{key:"changeFullscreenState",value:function(){var t=this.target;this.target instanceof JF&&(t=null),this.fsAPI.toggleFullscreen(t)}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||AF)(a.Dc(a.r),a.Dc(JF),a.Dc(qF))},AF.\u0275cmp=a.xc({type:AF,selectors:[["vg-fullscreen"]],hostBindings:function(t,e){1&t&&a.Wc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},decls:1,vars:5,consts:[["tabindex","0","role","button","aria-label","fullscreen button",1,"icon"]],template:function(t,e){1&t&&a.Ec(0,"div",0),2&t&&(a.tc("vg-icon-fullscreen",!e.isFullscreen)("vg-icon-fullscreen_exit",e.isFullscreen),a.qc("aria-valuetext",e.ariaValue))},styles:["\n vg-fullscreen {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n\n vg-fullscreen .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),AF),KF=((EF=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.subscriptions=[],this.ariaValue="unmuted",this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.currentVolume=this.target.volume}},{key:"onClick",value:function(){this.changeMuteState()}},{key:"onKeyDown",value:function(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.changeMuteState())}},{key:"changeMuteState",value:function(){var t=this.getVolume();0===t?(0===this.target.volume&&0===this.currentVolume&&(this.currentVolume=1),this.target.volume=this.currentVolume):(this.currentVolume=t,this.target.volume=0)}},{key:"getVolume",value:function(){var t=this.target?this.target.volume:0;return this.ariaValue=t?"unmuted":"muted",t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||EF)(a.Dc(a.r),a.Dc(JF))},EF.\u0275cmp=a.xc({type:EF,selectors:[["vg-mute"]],hostBindings:function(t,e){1&t&&a.Wc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{vgFor:"vgFor"},decls:1,vars:9,consts:[["tabindex","0","role","button","aria-label","mute button",1,"icon"]],template:function(t,e){1&t&&a.Ec(0,"div",0),2&t&&(a.tc("vg-icon-volume_up",e.getVolume()>=.75)("vg-icon-volume_down",e.getVolume()>=.25&&e.getVolume()<.75)("vg-icon-volume_mute",e.getVolume()>0&&e.getVolume()<.25)("vg-icon-volume_off",0===e.getVolume()),a.qc("aria-valuetext",e.ariaValue))},styles:["\n vg-mute {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-mute .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),EF),XF=((DF=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.subscriptions=[],this.elem=e.nativeElement,this.isDragging=!1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.ariaValue=100*this.getVolume()}},{key:"onClick",value:function(t){this.setVolume(this.calculateVolume(t.clientX))}},{key:"onMouseDown",value:function(t){this.mouseDownPosX=t.clientX,this.isDragging=!0}},{key:"onDrag",value:function(t){this.isDragging&&this.setVolume(this.calculateVolume(t.clientX))}},{key:"onStopDrag",value:function(t){this.isDragging&&(this.isDragging=!1,this.mouseDownPosX===t.clientX&&this.setVolume(this.calculateVolume(t.clientX)))}},{key:"arrowAdjustVolume",value:function(t){38===t.keyCode||39===t.keyCode?(t.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()+10)))):37!==t.keyCode&&40!==t.keyCode||(t.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()-10))))}},{key:"calculateVolume",value:function(t){var e=this.volumeBarRef.nativeElement.getBoundingClientRect();return(t-e.left)/e.width*100}},{key:"setVolume",value:function(t){this.target.volume=Math.max(0,Math.min(1,t/100)),this.ariaValue=100*this.target.volume}},{key:"getVolume",value:function(){return this.target?this.target.volume:0}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||DF)(a.Dc(a.r),a.Dc(JF))},DF.\u0275cmp=a.xc({type:DF,selectors:[["vg-volume"]],viewQuery:function(t,e){var i;1&t&&a.xd(iF,!0),2&t&&a.md(i=a.Xc())&&(e.volumeBarRef=i.first)},hostBindings:function(t,e){1&t&&a.Wc("mousemove",(function(t){return e.onDrag(t)}),!1,a.pd)("mouseup",(function(t){return e.onStopDrag(t)}),!1,a.pd)("keydown",(function(t){return e.arrowAdjustVolume(t)}))},inputs:{vgFor:"vgFor"},decls:5,vars:9,consts:[["tabindex","0","role","slider","aria-label","volume level","aria-level","polite","aria-valuemin","0","aria-valuemax","100","aria-orientation","horizontal",1,"volumeBar",3,"click","mousedown"],["volumeBar",""],[1,"volumeBackground",3,"ngClass"],[1,"volumeValue"],[1,"volumeKnob"]],template:function(t,e){1&t&&(a.Jc(0,"div",0,1),a.Wc("click",(function(t){return e.onClick(t)}))("mousedown",(function(t){return e.onMouseDown(t)})),a.Jc(2,"div",2),a.Ec(3,"div",3),a.Ec(4,"div",4),a.Ic(),a.Ic()),2&t&&(a.qc("aria-valuenow",e.ariaValue)("aria-valuetext",e.ariaValue+"%"),a.pc(2),a.gd("ngClass",a.jd(7,nF,e.isDragging)),a.pc(1),a.yd("width",85*e.getVolume()+"%"),a.pc(1),a.yd("left",85*e.getVolume()+"%"))},directives:[ye.q],styles:["\n vg-volume {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 100px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-volume .volumeBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n }\n vg-volume .volumeBackground {\n display: flex;\n flex-grow: 1;\n height: 5px;\n pointer-events: none;\n background-color: #333;\n }\n vg-volume .volumeValue {\n display: flex;\n height: 5px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeKnob {\n position: absolute;\n width: 15px; height: 15px;\n left: 0; top: 50%;\n transform: translateY(-50%);\n border-radius: 15px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeBackground.dragging .volumeValue,\n vg-volume .volumeBackground.dragging .volumeKnob {\n transition: none;\n }\n "],encapsulation:2}),DF),YF=((OF=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.subscriptions=[],this.ariaValue=BF.VG_PAUSED,this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"onClick",value:function(){this.playPause()}},{key:"onKeyDown",value:function(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.playPause())}},{key:"playPause",value:function(){switch(this.getState()){case BF.VG_PLAYING:this.target.pause();break;case BF.VG_PAUSED:case BF.VG_ENDED:this.target.play()}}},{key:"getState",value:function(){return this.ariaValue=this.target?this.target.state:BF.VG_PAUSED,this.ariaValue}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||OF)(a.Dc(a.r),a.Dc(JF))},OF.\u0275cmp=a.xc({type:OF,selectors:[["vg-play-pause"]],hostBindings:function(t,e){1&t&&a.Wc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{vgFor:"vgFor"},decls:1,vars:6,consts:[["tabindex","0","role","button",1,"icon"]],template:function(t,e){1&t&&a.Ec(0,"div",0),2&t&&(a.tc("vg-icon-pause","playing"===e.getState())("vg-icon-play_arrow","paused"===e.getState()||"ended"===e.getState()),a.qc("aria-label","paused"===e.getState()?"play":"pause")("aria-valuetext",e.ariaValue))},styles:["\n vg-play-pause {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-play-pause .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),OF),ZF=((IF=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.subscriptions=[],this.ariaValue=1,this.elem=e.nativeElement,this.playbackValues=["0.5","1.0","1.5","2.0"],this.playbackIndex=1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"onClick",value:function(){this.updatePlaybackSpeed()}},{key:"onKeyDown",value:function(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.updatePlaybackSpeed())}},{key:"updatePlaybackSpeed",value:function(){this.playbackIndex=++this.playbackIndex%this.playbackValues.length,this.target instanceof JF?this.target.playbackRate=this.playbackValues[this.playbackIndex]:this.target.playbackRate[this.vgFor]=this.playbackValues[this.playbackIndex]}},{key:"getPlaybackRate",value:function(){return this.ariaValue=this.target?this.target.playbackRate:1,this.ariaValue}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||IF)(a.Dc(a.r),a.Dc(JF))},IF.\u0275cmp=a.xc({type:IF,selectors:[["vg-playback-button"]],hostBindings:function(t,e){1&t&&a.Wc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{playbackValues:"playbackValues",vgFor:"vgFor"},decls:2,vars:2,consts:[["tabindex","0","role","button","aria-label","playback speed button",1,"button"]],template:function(t,e){1&t&&(a.Jc(0,"span",0),a.Bd(1),a.Ic()),2&t&&(a.qc("aria-valuetext",e.ariaValue),a.pc(1),a.Dd(" ",e.getPlaybackRate(),"x "))},styles:["\n vg-playback-button {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n vg-playback-button .button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n }\n "],encapsulation:2}),IF),QF=((SF=function(){function t(e,i,n){var a=this;_classCallCheck(this,t),this.API=i,this.hideScrubBar=!1,this.vgSlider=!0,this.isSeeking=!1,this.wasPlaying=!1,this.subscriptions=[],this.elem=e.nativeElement,this.subscriptions.push(n.isHidden.subscribe((function(t){return a.onHideScrubBar(t)})))}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"seekStart",value:function(){this.target.canPlay&&(this.isSeeking=!0,this.target.state===BF.VG_PLAYING&&(this.wasPlaying=!0),this.target.pause())}},{key:"seekMove",value:function(t){if(this.isSeeking){var e=Math.max(Math.min(100*t/this.elem.scrollWidth,99.9),0);this.target.time.current=e*this.target.time.total/100,this.target.seekTime(e,!0)}}},{key:"seekEnd",value:function(t){if(this.isSeeking=!1,this.target.canPlay){var e=Math.max(Math.min(100*t/this.elem.scrollWidth,99.9),0);this.target.seekTime(e,!0),this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}}},{key:"touchEnd",value:function(){this.isSeeking=!1,this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}},{key:"getTouchOffset",value:function(t){for(var e=0,i=t.target;i;)e+=i.offsetLeft,i=i.offsetParent;return t.touches[0].pageX-e}},{key:"onMouseDownScrubBar",value:function(t){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(t.offsetX)))}},{key:"onMouseMoveScrubBar",value:function(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(t.offsetX)}},{key:"onMouseUpScrubBar",value:function(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekEnd(t.offsetX)}},{key:"onTouchStartScrubBar",value:function(t){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(this.getTouchOffset(t))))}},{key:"onTouchMoveScrubBar",value:function(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(this.getTouchOffset(t))}},{key:"onTouchCancelScrubBar",value:function(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}},{key:"onTouchEndScrubBar",value:function(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}},{key:"arrowAdjustVolume",value:function(t){this.target&&(38===t.keyCode||39===t.keyCode?(t.preventDefault(),this.target.seekTime((this.target.time.current+5e3)/1e3,!1)):37!==t.keyCode&&40!==t.keyCode||(t.preventDefault(),this.target.seekTime((this.target.time.current-5e3)/1e3,!1)))}},{key:"getPercentage",value:function(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}},{key:"onHideScrubBar",value:function(t){this.hideScrubBar=t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||SF)(a.Dc(a.r),a.Dc(JF),a.Dc(UF))},SF.\u0275cmp=a.xc({type:SF,selectors:[["vg-scrub-bar"]],hostVars:2,hostBindings:function(t,e){1&t&&a.Wc("mousedown",(function(t){return e.onMouseDownScrubBar(t)}))("mousemove",(function(t){return e.onMouseMoveScrubBar(t)}),!1,a.pd)("mouseup",(function(t){return e.onMouseUpScrubBar(t)}),!1,a.pd)("touchstart",(function(t){return e.onTouchStartScrubBar(t)}))("touchmove",(function(t){return e.onTouchMoveScrubBar(t)}),!1,a.pd)("touchcancel",(function(t){return e.onTouchCancelScrubBar(t)}),!1,a.pd)("touchend",(function(t){return e.onTouchEndScrubBar(t)}),!1,a.pd)("keydown",(function(t){return e.arrowAdjustVolume(t)})),2&t&&a.tc("hide",e.hideScrubBar)},inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},ngContentSelectors:eF,decls:2,vars:2,consts:[["tabindex","0","role","slider","aria-label","scrub bar","aria-level","polite","aria-valuemin","0","aria-valuemax","100",1,"scrubBar"]],template:function(t,e){1&t&&(a.fd(),a.Jc(0,"div",0),a.ed(1),a.Ic()),2&t&&a.qc("aria-valuenow",e.getPercentage())("aria-valuetext",e.getPercentage()+"%")},styles:["\n vg-scrub-bar {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n position: absolute;\n width: 100%;\n height: 5px;\n bottom: 50px;\n margin: 0;\n cursor: pointer;\n align-items: center;\n background: rgba(0, 0, 0, 0.75);\n z-index: 250;\n -webkit-transition: bottom 1s, opacity 0.5s;\n -khtml-transition: bottom 1s, opacity 0.5s;\n -moz-transition: bottom 1s, opacity 0.5s;\n -ms-transition: bottom 1s, opacity 0.5s;\n transition: bottom 1s, opacity 0.5s;\n }\n vg-scrub-bar .scrubBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n height: 100%;\n }\n vg-controls vg-scrub-bar {\n position: relative;\n bottom: 0;\n background: transparent;\n height: 50px;\n flex-grow: 1;\n flex-basis: 0;\n margin: 0 10px;\n -webkit-transition: initial;\n -khtml-transition: initial;\n -moz-transition: initial;\n -ms-transition: initial;\n transition: initial;\n }\n vg-scrub-bar.hide {\n bottom: 0;\n opacity: 0;\n }\n vg-controls vg-scrub-bar.hide {\n bottom: initial;\n opacity: initial;\n }\n "],encapsulation:2}),SF),tN=((xF=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.subscriptions=[],this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"getBufferTime",value:function(){var t="0%";return this.target&&this.target.buffer&&this.target.buffered.length&&(t=0===this.target.time.total?"0%":this.target.buffer.end/this.target.time.total*100+"%"),t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||xF)(a.Dc(a.r),a.Dc(JF))},xF.\u0275cmp=a.xc({type:xF,selectors:[["vg-scrub-bar-buffering-time"]],inputs:{vgFor:"vgFor"},decls:1,vars:2,consts:[[1,"background"]],template:function(t,e){1&t&&a.Ec(0,"div",0),2&t&&a.yd("width",e.getBufferTime())},styles:["\n vg-scrub-bar-buffering-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-buffering-time .background {\n background-color: rgba(255, 255, 255, 0.3);\n }\n vg-controls vg-scrub-bar-buffering-time {\n position: absolute;\n top: calc(50% - 3px);\n }\n vg-controls vg-scrub-bar-buffering-time .background {\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n "],encapsulation:2}),xF),eN=((CF=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.onLoadedMetadataCalled=!1,this.cuePoints=[],this.subscriptions=[],this.totalCues=0,this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.loadedMetadata.subscribe(this.onLoadedMetadata.bind(this))),this.onLoadedMetadataCalled&&this.onLoadedMetadata()}},{key:"onLoadedMetadata",value:function(){if(this.vgCuePoints){this.cuePoints=[];for(var t=0,e=this.vgCuePoints.length;t<e;t++){var i=1e3*((this.vgCuePoints[t].endTime>=0?this.vgCuePoints[t].endTime:this.vgCuePoints[t].startTime+1)-this.vgCuePoints[t].startTime),n="0",a="0";"number"==typeof i&&this.target.time.total&&(a=100*i/this.target.time.total+"%",n=100*this.vgCuePoints[t].startTime/Math.round(this.target.time.total/1e3)+"%"),this.vgCuePoints[t].$$style={width:a,left:n},this.cuePoints.push(this.vgCuePoints[t])}}}},{key:"updateCuePoints",value:function(){this.target?this.onLoadedMetadata():this.onLoadedMetadataCalled=!0}},{key:"ngOnChanges",value:function(t){t.vgCuePoints.currentValue&&this.updateCuePoints()}},{key:"ngDoCheck",value:function(){this.vgCuePoints&&this.totalCues!==this.vgCuePoints.length&&(this.totalCues=this.vgCuePoints.length,this.updateCuePoints())}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||CF)(a.Dc(a.r),a.Dc(JF))},CF.\u0275cmp=a.xc({type:CF,selectors:[["vg-scrub-bar-cue-points"]],inputs:{vgCuePoints:"vgCuePoints",vgFor:"vgFor"},features:[a.nc],decls:2,vars:1,consts:[[1,"cue-point-container"],["class","cue-point",3,"width","left",4,"ngFor","ngForOf"],[1,"cue-point"]],template:function(t,e){1&t&&(a.Jc(0,"div",0),a.zd(1,aF,1,4,"span",1),a.Ic()),2&t&&(a.pc(1),a.gd("ngForOf",e.cuePoints))},directives:[ye.s],styles:["\n vg-scrub-bar-cue-points {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-cue-points .cue-point-container .cue-point {\n position: absolute;\n height: 5px;\n background-color: rgba(255, 204, 0, 0.7);\n }\n vg-controls vg-scrub-bar-cue-points {\n position: absolute;\n top: calc(50% - 3px);\n }\n "],encapsulation:2}),CF),iN=((wF=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.vgSlider=!1,this.subscriptions=[],this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"getPercentage",value:function(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||wF)(a.Dc(a.r),a.Dc(JF))},wF.\u0275cmp=a.xc({type:wF,selectors:[["vg-scrub-bar-current-time"]],inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},decls:2,vars:3,consts:[[1,"background"],["class","slider",4,"ngIf"],[1,"slider"]],template:function(t,e){1&t&&(a.Ec(0,"div",0),a.zd(1,rF,1,0,"span",1)),2&t&&(a.yd("width",e.getPercentage()),a.pc(1),a.gd("ngIf",e.vgSlider))},directives:[ye.t],styles:["\n vg-scrub-bar-current-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-current-time .background {\n background-color: white;\n }\n vg-controls vg-scrub-bar-current-time {\n position: absolute;\n top: calc(50% - 3px);\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n vg-controls vg-scrub-bar-current-time .background {\n border: 1px solid white;\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n\n vg-scrub-bar-current-time .slider{\n background: white;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n box-shadow: 0px 0px 10px black;\n margin-top: -5px;\n margin-left: -10px;\n }\n "],encapsulation:2}),wF),nN=((kF=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t,e){var i=new Date(t),n=e,a=i.getUTCSeconds(),r=i.getUTCMinutes(),o=i.getUTCHours();return a<10&&(a="0"+a),r<10&&(r="0"+r),o<10&&(o="0"+o),n=(n=(n=n.replace(/ss/g,a)).replace(/mm/g,r)).replace(/hh/g,o)}}]),t}()).\u0275fac=function(t){return new(t||kF)},kF.\u0275pipe=a.Cc({name:"vgUtc",type:kF,pure:!0}),kF),aN=((yF=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.vgProperty="current",this.vgFormat="mm:ss",this.subscriptions=[],this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"getTime",value:function(){var t=0;return this.target&&(t=Math.round(this.target.time[this.vgProperty]),t=isNaN(t)||this.target.isLive?0:t),t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||yF)(a.Dc(a.r),a.Dc(JF))},yF.\u0275cmp=a.xc({type:yF,selectors:[["vg-time-display"]],inputs:{vgProperty:"vgProperty",vgFormat:"vgFormat",vgFor:"vgFor"},ngContentSelectors:eF,decls:3,vars:2,consts:[[4,"ngIf"]],template:function(t,e){1&t&&(a.fd(),a.zd(0,oF,2,0,"span",0),a.zd(1,sF,3,4,"span",0),a.ed(2)),2&t&&(a.gd("ngIf",null==e.target?null:e.target.isLive),a.pc(1),a.gd("ngIf",!(null!=e.target&&e.target.isLive)))},directives:[ye.t],pipes:[nN],styles:["\n vg-time-display {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 60px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n pointer-events: none;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n "],encapsulation:2}),yF),rN=((_F=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.subscriptions=[],this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor);var t=Array.from(this.API.getMasterMedia().elem.children).filter((function(t){return"TRACK"===t.tagName})).filter((function(t){return"subtitles"===t.kind})).map((function(t){return{label:t.label,selected:!0===t.default,id:t.srclang}}));this.tracks=[].concat(_toConsumableArray(t),[{id:null,label:"Off",selected:t.every((function(t){return!1===t.selected}))}]);var e=this.tracks.filter((function(t){return!0===t.selected}))[0];this.trackSelected=e.id,this.ariaValue=e.label}},{key:"selectTrack",value:function(t){var e=this;this.trackSelected="null"===t?null:t,this.ariaValue="No track selected",Array.from(this.API.getMasterMedia().elem.textTracks).forEach((function(i){i.language===t?(e.ariaValue=i.label,i.mode="showing"):i.mode="hidden"}))}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||_F)(a.Dc(a.r),a.Dc(JF))},_F.\u0275cmp=a.xc({type:_F,selectors:[["vg-track-selector"]],inputs:{vgFor:"vgFor"},decls:5,vars:5,consts:[[1,"container"],[1,"track-selected"],["tabindex","0","aria-label","track selector",1,"trackSelector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(t,e){1&t&&(a.Jc(0,"div",0),a.Jc(1,"div",1),a.Bd(2),a.Ic(),a.Jc(3,"select",2),a.Wc("change",(function(t){return e.selectTrack(t.target.value)})),a.zd(4,cF,2,3,"option",3),a.Ic(),a.Ic()),2&t&&(a.pc(1),a.tc("vg-icon-closed_caption",!e.trackSelected),a.pc(1),a.Dd(" ",e.trackSelected||""," "),a.pc(1),a.qc("aria-valuetext",e.ariaValue),a.pc(1),a.gd("ngForOf",e.tracks))},directives:[ye.s],styles:["\n vg-track-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-track-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-track-selector select.trackSelector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-track-selector select.trackSelector::-ms-expand {\n display: none;\n }\n vg-track-selector select.trackSelector option {\n color: #000;\n }\n vg-track-selector .track-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-track-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),_F),oN=((bF=function(){function t(e,i){_classCallCheck(this,t),this.API=i,this.onBitrateChange=new a.u,this.subscriptions=[],this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(t){t.bitrates.currentValue&&t.bitrates.currentValue.length&&this.bitrates.forEach((function(t){return t.label=(t.label||Math.round(t.bitrate/1e3)).toString()}))}},{key:"selectBitrate",value:function(t){this.bitrateSelected=this.bitrates[t],this.onBitrateChange.emit(this.bitrates[t])}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||bF)(a.Dc(a.r),a.Dc(JF))},bF.\u0275cmp=a.xc({type:bF,selectors:[["vg-quality-selector"]],inputs:{bitrates:"bitrates"},outputs:{onBitrateChange:"onBitrateChange"},features:[a.nc],decls:5,vars:5,consts:[[1,"container"],[1,"quality-selected"],["tabindex","0","aria-label","quality selector",1,"quality-selector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(t,e){1&t&&(a.Jc(0,"div",0),a.Jc(1,"div",1),a.Bd(2),a.Ic(),a.Jc(3,"select",2),a.Wc("change",(function(t){return e.selectBitrate(t.target.value)})),a.zd(4,lF,2,3,"option",3),a.Ic(),a.Ic()),2&t&&(a.pc(1),a.tc("vg-icon-hd",!e.bitrateSelected),a.pc(1),a.Dd(" ",null==e.bitrateSelected?null:e.bitrateSelected.label," "),a.pc(1),a.qc("aria-valuetext",e.ariaValue),a.pc(1),a.gd("ngForOf",e.bitrates))},directives:[ye.s],styles:["\n vg-quality-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-quality-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-quality-selector select.quality-selector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-quality-selector select.quality-selector::-ms-expand {\n display: none;\n }\n vg-quality-selector select.quality-selector option {\n color: #000;\n }\n vg-quality-selector .quality-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-quality-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),bF),sN=((vF=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:vF}),vF.\u0275inj=a.Ac({factory:function(t){return new(t||vF)},providers:[UF],imports:[[ye.c]]}),vF),cN=((gF=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||gF)},gF.\u0275prov=a.zc({token:gF,factory:gF.\u0275fac}),gF.VG_ABORT="abort",gF.VG_CAN_PLAY="canplay",gF.VG_CAN_PLAY_THROUGH="canplaythrough",gF.VG_DURATION_CHANGE="durationchange",gF.VG_EMPTIED="emptied",gF.VG_ENCRYPTED="encrypted",gF.VG_ENDED="ended",gF.VG_ERROR="error",gF.VG_LOADED_DATA="loadeddata",gF.VG_LOADED_METADATA="loadedmetadata",gF.VG_LOAD_START="loadstart",gF.VG_PAUSE="pause",gF.VG_PLAY="play",gF.VG_PLAYING="playing",gF.VG_PROGRESS="progress",gF.VG_RATE_CHANGE="ratechange",gF.VG_SEEK="seek",gF.VG_SEEKED="seeked",gF.VG_SEEKING="seeking",gF.VG_STALLED="stalled",gF.VG_SUSPEND="suspend",gF.VG_TIME_UPDATE="timeupdate",gF.VG_VOLUME_CHANGE="volumechange",gF.VG_WAITING="waiting",gF.VG_LOAD="load",gF.VG_ENTER="enter",gF.VG_EXIT="exit",gF.VG_START_ADS="startads",gF.VG_END_ADS="endads",gF),lN=((mF=function(){function t(e,i){_classCallCheck(this,t),this.api=e,this.ref=i,this.state=BF.VG_PAUSED,this.time={current:0,total:0,left:0},this.buffer={end:0},this.canPlay=!1,this.canPlayThrough=!1,this.isMetadataLoaded=!1,this.isWaiting=!1,this.isCompleted=!1,this.isLive=!1,this.isBufferDetected=!1,this.checkInterval=200,this.currentPlayPos=0,this.lastPlayPos=0,this.playAtferSync=!1,this.bufferDetected=new Le.a}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.elem=this.vgMedia.nodeName?this.vgMedia:this.vgMedia.elem,this.api.registerMedia(this),this.subscriptions={abort:ol(this.elem,cN.VG_ABORT),canPlay:ol(this.elem,cN.VG_CAN_PLAY),canPlayThrough:ol(this.elem,cN.VG_CAN_PLAY_THROUGH),durationChange:ol(this.elem,cN.VG_DURATION_CHANGE),emptied:ol(this.elem,cN.VG_EMPTIED),encrypted:ol(this.elem,cN.VG_ENCRYPTED),ended:ol(this.elem,cN.VG_ENDED),error:ol(this.elem,cN.VG_ERROR),loadedData:ol(this.elem,cN.VG_LOADED_DATA),loadedMetadata:ol(this.elem,cN.VG_LOADED_METADATA),loadStart:ol(this.elem,cN.VG_LOAD_START),pause:ol(this.elem,cN.VG_PAUSE),play:ol(this.elem,cN.VG_PLAY),playing:ol(this.elem,cN.VG_PLAYING),progress:ol(this.elem,cN.VG_PROGRESS),rateChange:ol(this.elem,cN.VG_RATE_CHANGE),seeked:ol(this.elem,cN.VG_SEEKED),seeking:ol(this.elem,cN.VG_SEEKING),stalled:ol(this.elem,cN.VG_STALLED),suspend:ol(this.elem,cN.VG_SUSPEND),timeUpdate:ol(this.elem,cN.VG_TIME_UPDATE),volumeChange:ol(this.elem,cN.VG_VOLUME_CHANGE),waiting:ol(this.elem,cN.VG_WAITING),startAds:ol(this.elem,cN.VG_START_ADS),endAds:ol(this.elem,cN.VG_END_ADS),mutation:new si.a((function(e){var i=new MutationObserver((function(t){e.next(t)}));return i.observe(t.elem,{childList:!0,attributes:!0}),function(){i.disconnect()}})),bufferDetected:this.bufferDetected},this.mutationObs=this.subscriptions.mutation.subscribe(this.onMutation.bind(this)),this.canPlayObs=this.subscriptions.canPlay.subscribe(this.onCanPlay.bind(this)),this.canPlayThroughObs=this.subscriptions.canPlayThrough.subscribe(this.onCanPlayThrough.bind(this)),this.loadedMetadataObs=this.subscriptions.loadedMetadata.subscribe(this.onLoadMetadata.bind(this)),this.waitingObs=this.subscriptions.waiting.subscribe(this.onWait.bind(this)),this.progressObs=this.subscriptions.progress.subscribe(this.onProgress.bind(this)),this.endedObs=this.subscriptions.ended.subscribe(this.onComplete.bind(this)),this.playingObs=this.subscriptions.playing.subscribe(this.onStartPlaying.bind(this)),this.playObs=this.subscriptions.play.subscribe(this.onPlay.bind(this)),this.pauseObs=this.subscriptions.pause.subscribe(this.onPause.bind(this)),this.timeUpdateObs=this.subscriptions.timeUpdate.subscribe(this.onTimeUpdate.bind(this)),this.volumeChangeObs=this.subscriptions.volumeChange.subscribe(this.onVolumeChange.bind(this)),this.errorObs=this.subscriptions.error.subscribe(this.onError.bind(this)),this.vgMaster&&this.api.playerReadyEvent.subscribe((function(){t.prepareSync()}))}},{key:"prepareSync",value:function(){var t=this,e=[];for(var i in this.api.medias)this.api.medias[i]&&e.push(this.api.medias[i].subscriptions.canPlay);this.canPlayAllSubscription=Wg(e).pipe(Object(ri.a)((function(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];i.some((function(t){return 4===t.target.readyState}))&&!t.syncSubscription&&(t.startSync(),t.syncSubscription.unsubscribe())}))).subscribe()}},{key:"startSync",value:function(){var t=this;this.syncSubscription=Sl(0,1e3).subscribe((function(){for(var e in t.api.medias)if(t.api.medias[e]!==t){var i=t.api.medias[e].currentTime-t.currentTime;i<-.3||i>.3?(t.playAtferSync=t.state===BF.VG_PLAYING,t.pause(),t.api.medias[e].pause(),t.api.medias[e].currentTime=t.currentTime):t.playAtferSync&&(t.play(),t.api.medias[e].play(),t.playAtferSync=!1)}}))}},{key:"onMutation",value:function(t){for(var e=0,i=t.length;e<i;e++){var n=t[e];if("attributes"===n.type&&"src"===n.attributeName){if(n.target.src&&n.target.src.length>0&&n.target.src.indexOf("blob:")<0){this.loadMedia();break}}else if("childList"===n.type&&n.removedNodes.length&&"source"===n.removedNodes[0].nodeName.toLowerCase()){this.loadMedia();break}}}},{key:"loadMedia",value:function(){var t=this;this.vgMedia.pause(),this.vgMedia.currentTime=0,this.stopBufferCheck(),this.isBufferDetected=!0,this.bufferDetected.next(this.isBufferDetected),setTimeout((function(){return t.vgMedia.load()}),10)}},{key:"play",value:function(){var t=this;if(!(this.playPromise||this.state!==BF.VG_PAUSED&&this.state!==BF.VG_ENDED))return this.playPromise=this.vgMedia.play(),this.playPromise&&this.playPromise.then&&this.playPromise.catch&&this.playPromise.then((function(){t.playPromise=null})).catch((function(){t.playPromise=null})),this.playPromise}},{key:"pause",value:function(){var t=this;this.playPromise?this.playPromise.then((function(){t.vgMedia.pause()})):this.vgMedia.pause()}},{key:"onCanPlay",value:function(t){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlay=!0,this.ref.detectChanges()}},{key:"onCanPlayThrough",value:function(t){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlayThrough=!0,this.ref.detectChanges()}},{key:"onLoadMetadata",value:function(t){this.isMetadataLoaded=!0,this.time={current:0,left:0,total:1e3*this.duration},this.state=BF.VG_PAUSED;var e=Math.round(this.time.total);this.isLive=e===1/0,this.ref.detectChanges()}},{key:"onWait",value:function(t){this.isWaiting=!0,this.ref.detectChanges()}},{key:"onComplete",value:function(t){this.isCompleted=!0,this.state=BF.VG_ENDED,this.ref.detectChanges()}},{key:"onStartPlaying",value:function(t){this.state=BF.VG_PLAYING,this.ref.detectChanges()}},{key:"onPlay",value:function(t){this.state=BF.VG_PLAYING,this.vgMaster&&(this.syncSubscription&&!this.syncSubscription.closed||this.startSync()),this.startBufferCheck(),this.ref.detectChanges()}},{key:"onPause",value:function(t){this.state=BF.VG_PAUSED,this.vgMaster&&(this.playAtferSync||this.syncSubscription.unsubscribe()),this.stopBufferCheck(),this.ref.detectChanges()}},{key:"onTimeUpdate",value:function(t){var e=this.buffered.length-1;this.time={current:1e3*this.currentTime,total:this.time.total,left:1e3*(this.duration-this.currentTime)},e>=0&&(this.buffer={end:1e3*this.buffered.end(e)}),this.ref.detectChanges()}},{key:"onProgress",value:function(t){var e=this.buffered.length-1;e>=0&&(this.buffer={end:1e3*this.buffered.end(e)}),this.ref.detectChanges()}},{key:"onVolumeChange",value:function(t){this.ref.detectChanges()}},{key:"onError",value:function(t){this.ref.detectChanges()}},{key:"bufferCheck",value:function(){var t=1/this.checkInterval;this.currentPlayPos=this.currentTime,!this.isBufferDetected&&this.currentPlayPos<this.lastPlayPos+t&&(this.isBufferDetected=!0),this.isBufferDetected&&this.currentPlayPos>this.lastPlayPos+t&&(this.isBufferDetected=!1),this.bufferDetected.closed||this.bufferDetected.next(this.isBufferDetected),this.lastPlayPos=this.currentPlayPos}},{key:"startBufferCheck",value:function(){var t=this;this.checkBufferSubscription=Sl(0,this.checkInterval).subscribe((function(){t.bufferCheck()}))}},{key:"stopBufferCheck",value:function(){this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected)}},{key:"seekTime",value:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=i?t*this.duration/100:t,this.currentTime=e}},{key:"addTextTrack",value:function(t,e,i,n){var a=this.vgMedia.addTextTrack(t,e,i);return n&&(a.mode=n),a}},{key:"ngOnDestroy",value:function(){this.vgMedia.src="",this.mutationObs.unsubscribe(),this.canPlayObs.unsubscribe(),this.canPlayThroughObs.unsubscribe(),this.loadedMetadataObs.unsubscribe(),this.waitingObs.unsubscribe(),this.progressObs.unsubscribe(),this.endedObs.unsubscribe(),this.playingObs.unsubscribe(),this.playObs.unsubscribe(),this.pauseObs.unsubscribe(),this.timeUpdateObs.unsubscribe(),this.volumeChangeObs.unsubscribe(),this.errorObs.unsubscribe(),this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.syncSubscription&&this.syncSubscription.unsubscribe(),this.bufferDetected.complete(),this.bufferDetected.unsubscribe(),this.api.unregisterMedia(this)}},{key:"id",get:function(){var t=void 0;return this.vgMedia&&(t=this.vgMedia.id),t}},{key:"duration",get:function(){return this.vgMedia.duration}},{key:"currentTime",set:function(t){this.vgMedia.currentTime=t},get:function(){return this.vgMedia.currentTime}},{key:"volume",set:function(t){this.vgMedia.volume=t},get:function(){return this.vgMedia.volume}},{key:"playbackRate",set:function(t){this.vgMedia.playbackRate=t},get:function(){return this.vgMedia.playbackRate}},{key:"buffered",get:function(){return this.vgMedia.buffered}},{key:"textTracks",get:function(){return this.vgMedia.textTracks}}]),t}()).\u0275fac=function(t){return new(t||mF)(a.Dc(JF),a.Dc(a.j))},mF.\u0275dir=a.yc({type:mF,selectors:[["","vgMedia",""]],inputs:{vgMedia:"vgMedia",vgMaster:"vgMaster"}}),mF),uN=((fF=function(){function t(e){_classCallCheck(this,t),this.ref=e,this.onEnterCuePoint=new a.u,this.onUpdateCuePoint=new a.u,this.onExitCuePoint=new a.u,this.onCompleteCuePoint=new a.u,this.subscriptions=[],this.cuesSubscriptions=[],this.totalCues=0}return _createClass(t,[{key:"ngOnInit",value:function(){this.onLoad$=ol(this.ref.nativeElement,cN.VG_LOAD),this.subscriptions.push(this.onLoad$.subscribe(this.onLoad.bind(this)))}},{key:"onLoad",value:function(t){if(t.target&&t.target.track){var e=t.target.track.cues;this.ref.nativeElement.cues=e,this.updateCuePoints(e)}else if(t.target&&t.target.textTracks&&t.target.textTracks.length){var i=t.target.textTracks[0].cues;this.ref.nativeElement.cues=i,this.updateCuePoints(i)}}},{key:"updateCuePoints",value:function(t){this.cuesSubscriptions.forEach((function(t){return t.unsubscribe()}));for(var e=0,i=t.length;e<i;e++)this.onEnter$=ol(t[e],cN.VG_ENTER),this.cuesSubscriptions.push(this.onEnter$.subscribe(this.onEnter.bind(this))),this.onExit$=ol(t[e],cN.VG_EXIT),this.cuesSubscriptions.push(this.onExit$.subscribe(this.onExit.bind(this)))}},{key:"onEnter",value:function(t){this.onEnterCuePoint.emit(t.target)}},{key:"onExit",value:function(t){this.onExitCuePoint.emit(t.target)}},{key:"ngDoCheck",value:function(){this.ref.nativeElement.track&&this.ref.nativeElement.track.cues&&this.totalCues!==this.ref.nativeElement.track.cues.length&&(this.totalCues=this.ref.nativeElement.track.cues.length,this.ref.nativeElement.cues=this.ref.nativeElement.track.cues,this.updateCuePoints(this.ref.nativeElement.track.cues))}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||fF)(a.Dc(a.r))},fF.\u0275dir=a.yc({type:fF,selectors:[["","vgCuePoints",""]],outputs:{onEnterCuePoint:"onEnterCuePoint",onUpdateCuePoint:"onUpdateCuePoint",onExitCuePoint:"onExitCuePoint",onCompleteCuePoint:"onCompleteCuePoint"}}),fF),dN=((pF=function(){function t(e,i,n,r){_classCallCheck(this,t),this.api=i,this.fsAPI=n,this.controlsHidden=r,this.isFullscreen=!1,this.isNativeFullscreen=!1,this.areControlsHidden=!1,this.onPlayerReady=new a.u,this.onMediaReady=new a.u,this.subscriptions=[],this.elem=e.nativeElement,this.api.registerElement(this.elem)}return _createClass(t,[{key:"ngAfterContentInit",value:function(){var t=this;this.medias.toArray().forEach((function(e){t.api.registerMedia(e)})),this.fsAPI.init(this.elem,this.medias),this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this))),this.subscriptions.push(this.controlsHidden.isHidden.subscribe(this.onHideControls.bind(this))),this.api.onPlayerReady(this.fsAPI),this.onPlayerReady.emit(this.api)}},{key:"onChangeFullscreen",value:function(t){this.fsAPI.nativeFullscreen?this.isNativeFullscreen=t:(this.isFullscreen=t,this.zIndex=t?WF.getZIndex().toString():"auto")}},{key:"onHideControls",value:function(t){this.areControlsHidden=t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||pF)(a.Dc(a.r),a.Dc(JF),a.Dc(qF),a.Dc(UF))},pF.\u0275cmp=a.xc({type:pF,selectors:[["vg-player"]],contentQueries:function(t,e,i){var n;1&t&&a.vc(i,lN,!1),2&t&&a.md(n=a.Xc())&&(e.medias=n)},hostVars:8,hostBindings:function(t,e){2&t&&(a.yd("z-index",e.zIndex),a.tc("fullscreen",e.isFullscreen)("native-fullscreen",e.isNativeFullscreen)("controls-hidden",e.areControlsHidden))},outputs:{onPlayerReady:"onPlayerReady",onMediaReady:"onMediaReady"},features:[a.oc([JF,qF,UF])],ngContentSelectors:eF,decls:1,vars:0,template:function(t,e){1&t&&(a.fd(),a.ed(0))},styles:["\n vg-player {\n font-family: 'videogular';\n position: relative;\n display: flex;\n width: 100%;\n height: 100%;\n overflow: hidden;\n background-color: black;\n }\n vg-player.fullscreen {\n position: fixed;\n left: 0;\n top: 0;\n }\n vg-player.native-fullscreen.controls-hidden {\n cursor: none;\n }\n "],encapsulation:2}),pF),hN=((hF=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:hF}),hF.\u0275inj=a.Ac({factory:function(t){return new(t||hF)},providers:[JF,qF,WF,UF,BF,cN]}),hF),pN=((dF=function(){function t(e,i,n,a){_classCallCheck(this,t),this.API=i,this.fsAPI=n,this.controlsHidden=a,this.isNativeFullscreen=!1,this.areControlsHidden=!1,this.subscriptions=[],this.isBuffering=!1,this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){var t=this;this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this))),this.subscriptions.push(this.controlsHidden.isHidden.subscribe(this.onHideControls.bind(this))),this.subscriptions.push(this.target.subscriptions.bufferDetected.subscribe((function(e){return t.onUpdateBuffer(e)})))}},{key:"onUpdateBuffer",value:function(t){this.isBuffering=t}},{key:"onChangeFullscreen",value:function(t){this.fsAPI.nativeFullscreen&&(this.isNativeFullscreen=t)}},{key:"onHideControls",value:function(t){this.areControlsHidden=t}},{key:"onClick",value:function(){switch(this.getState()){case BF.VG_PLAYING:this.target.pause();break;case BF.VG_PAUSED:case BF.VG_ENDED:this.target.play()}}},{key:"getState",value:function(){var t=BF.VG_PAUSED;if(this.target)if(this.target.state instanceof Array){for(var e=0,i=this.target.state.length;e<i;e++)if(this.target.state[e]===BF.VG_PLAYING){t=BF.VG_PLAYING;break}}else t=this.target.state;return t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||dF)(a.Dc(a.r),a.Dc(JF),a.Dc(qF),a.Dc(UF))},dF.\u0275cmp=a.xc({type:dF,selectors:[["vg-overlay-play"]],hostVars:2,hostBindings:function(t,e){1&t&&a.Wc("click",(function(){return e.onClick()})),2&t&&a.tc("is-buffering",e.isBuffering)},inputs:{vgFor:"vgFor"},decls:2,vars:6,consts:[[1,"vg-overlay-play"],[1,"overlay-play-container"]],template:function(t,e){1&t&&(a.Jc(0,"div",0),a.Ec(1,"div",1),a.Ic()),2&t&&(a.tc("native-fullscreen",e.isNativeFullscreen)("controls-hidden",e.areControlsHidden),a.pc(1),a.tc("vg-icon-play_arrow","playing"!==e.getState()))},styles:["\n vg-overlay-play {\n z-index: 200;\n }\n vg-overlay-play.is-buffering {\n display: none;\n }\n vg-overlay-play .vg-overlay-play {\n transition: all 0.5s;\n cursor: pointer;\n position: absolute;\n display: block;\n color: white;\n width: 100%;\n height: 100%;\n font-size: 80px;\n filter: alpha(opacity=60);\n opacity: 0.6;\n }\n vg-overlay-play .vg-overlay-play.native-fullscreen.controls-hidden {\n cursor: none;\n }\n vg-overlay-play .vg-overlay-play .overlay-play-container.vg-icon-play_arrow {\n pointer-events: none;\n width: 100%;\n height: 100%;\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 80px;\n }\n vg-overlay-play .vg-overlay-play:hover {\n filter: alpha(opacity=100);\n opacity: 1;\n }\n vg-overlay-play .vg-overlay-play:hover .overlay-play-container.vg-icon-play_arrow:before {\n transform: scale(1.2);\n }\n "],encapsulation:2}),dF),fN=((uF=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:uF}),uF.\u0275inj=a.Ac({factory:function(t){return new(t||uF)},imports:[[ye.c]]}),uF);function mN(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-button-toggle",12),a.Wc("click",(function(){a.rd(i);var t=e.$implicit,n=e.index;return a.ad(2).onClickPlaylistItem(t,n)})),a.Bd(1),a.Ic()}if(2&t){var n=e.$implicit,r=a.ad(2);a.gd("checked",r.currentItem.title===n.title)("value",n.title),a.pc(1),a.Cd(n.label)}}function gN(t,e){1&t&&a.Ec(0,"mat-spinner",17),2&t&&a.gd("diameter",25)}function vN(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",13),a.Jc(1,"div",14),a.zd(2,gN,1,1,"mat-spinner",15),a.Ic(),a.Jc(3,"button",16),a.Wc("click",(function(){return a.rd(i),a.ad(2).updatePlaylist()})),a.Hc(4),a.Nc(5,zF),a.Gc(),a.Bd(6,"\xa0"),a.Jc(7,"mat-icon"),a.Bd(8,"update"),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad(2);a.pc(2),a.gd("ngIf",n.playlist_updating),a.pc(1),a.gd("disabled",n.playlist_updating)}}function bN(t,e){1&t&&a.Ec(0,"mat-spinner",23),2&t&&a.gd("diameter",50)}function _N(t,e){if(1&t){var i=a.Kc();a.Jc(0,"button",24),a.Wc("click",(function(){return a.rd(i),a.ad(3).namePlaylistDialog()})),a.Jc(1,"mat-icon",19),a.Bd(2,"favorite"),a.Ic(),a.Ic()}}function yN(t,e){if(1&t){var i=a.Kc();a.Jc(0,"button",25),a.Wc("click",(function(){return a.rd(i),a.ad(3).openShareDialog()})),a.Jc(1,"mat-icon",19),a.Bd(2,"share"),a.Ic(),a.Ic()}}function kN(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"button",18),a.Wc("click",(function(){return a.rd(i),a.ad(2).downloadContent()})),a.Jc(2,"mat-icon",19),a.Bd(3,"save"),a.Ic(),a.zd(4,bN,1,1,"mat-spinner",20),a.Ic(),a.zd(5,_N,3,0,"button",21),a.zd(6,yN,3,0,"button",22),a.Ic()}if(2&t){var n=a.ad(2);a.pc(1),a.gd("disabled",n.downloading),a.pc(3),a.gd("ngIf",n.downloading),a.pc(1),a.gd("ngIf",!n.id),a.pc(1),a.gd("ngIf",!n.is_shared&&n.id&&(!n.postsService.isLoggedIn||n.postsService.permissions.includes("sharing")))}}function wN(t,e){1&t&&a.Ec(0,"mat-spinner",23),2&t&&a.gd("diameter",50)}function CN(t,e){if(1&t){var i=a.Kc();a.Jc(0,"button",25),a.Wc("click",(function(){return a.rd(i),a.ad(3).openShareDialog()})),a.Jc(1,"mat-icon",19),a.Bd(2,"share"),a.Ic(),a.Ic()}}function xN(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"button",18),a.Wc("click",(function(){return a.rd(i),a.ad(2).downloadFile()})),a.Jc(2,"mat-icon",19),a.Bd(3,"save"),a.Ic(),a.zd(4,wN,1,1,"mat-spinner",20),a.Ic(),a.zd(5,CN,3,0,"button",22),a.Ic()}if(2&t){var n=a.ad(2);a.pc(1),a.gd("disabled",n.downloading),a.pc(3),a.gd("ngIf",n.downloading),a.pc(1),a.gd("ngIf",!n.is_shared&&n.uid&&"false"!==n.uid&&"subscription"!==n.type&&(!n.postsService.isLoggedIn||n.postsService.permissions.includes("sharing")))}}function SN(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"div",1),a.Jc(2,"div",2),a.Jc(3,"div",3),a.Jc(4,"vg-player",4),a.Wc("onPlayerReady",(function(t){return a.rd(i),a.ad().onPlayerReady(t)})),a.Ec(5,"video",5,6),a.Ic(),a.Ic(),a.Jc(7,"div",7),a.Jc(8,"mat-button-toggle-group",8,9),a.Wc("cdkDropListDropped",(function(t){return a.rd(i),a.ad().drop(t)})),a.zd(10,mN,2,3,"mat-button-toggle",10),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.zd(11,vN,9,2,"div",11),a.zd(12,kN,7,4,"div",0),a.zd(13,xN,6,3,"div",0),a.Ic()}if(2&t){var n=a.nd(6),r=a.ad();a.pc(1),a.gd("ngClass","audio"===r.type?null:"container-video"),a.pc(2),a.gd("ngClass","audio"===r.type?"my-2 px-1":"video-col"),a.pc(1),a.yd("background-color","audio"===r.type?"transparent":"black"),a.pc(1),a.gd("ngClass","audio"===r.type?"audio-styles":"video-styles")("vgMedia",n)("src",r.currentItem.src,a.td),a.pc(3),a.gd("cdkDropListSortingDisabled",!r.id),a.pc(2),a.gd("ngForOf",r.playlist),a.pc(1),a.gd("ngIf",r.id&&r.playlistChanged()),a.pc(1),a.gd("ngIf",r.playlist.length>1),a.pc(1),a.gd("ngIf",1===r.playlist.length)}}zF=$localize(_templateObject199());var IN,ON,DN=((IN=function(){function t(e,i,n,a,r){_classCallCheck(this,t),this.postsService=e,this.route=i,this.dialog=n,this.router=a,this.snackBar=r,this.playlist=[],this.original_playlist=null,this.playlist_updating=!1,this.show_player=!1,this.currentIndex=0,this.currentItem=null,this.id=null,this.uid=null,this.subscriptionName=null,this.subPlaylist=null,this.uuid=null,this.timestamp=null,this.is_shared=!1,this.db_playlist=null,this.db_file=null,this.baseStreamPath=null,this.audioFolderPath=null,this.videoFolderPath=null,this.subscriptionFolderPath=null,this.sharingEnabled=null,this.url=null,this.name=null,this.downloading=!1,this.original_volume=null}return _createClass(t,[{key:"onResize",value:function(t){this.innerWidth=window.innerWidth}},{key:"ngOnInit",value:function(){var t=this;this.innerWidth=window.innerWidth,this.type=this.route.snapshot.paramMap.get("type"),this.id=this.route.snapshot.paramMap.get("id"),this.uid=this.route.snapshot.paramMap.get("uid"),this.subscriptionName=this.route.snapshot.paramMap.get("subscriptionName"),this.subPlaylist=this.route.snapshot.paramMap.get("subPlaylist"),this.url=this.route.snapshot.paramMap.get("url"),this.name=this.route.snapshot.paramMap.get("name"),this.uuid=this.route.snapshot.paramMap.get("uuid"),this.timestamp=this.route.snapshot.paramMap.get("timestamp"),this.postsService.initialized?this.processConfig():this.postsService.service_initialized.subscribe((function(e){e&&t.processConfig()}))}},{key:"processConfig",value:function(){this.baseStreamPath=this.postsService.path,this.audioFolderPath=this.postsService.config.Downloader["path-audio"],this.videoFolderPath=this.postsService.config.Downloader["path-video"],this.subscriptionFolderPath=this.postsService.config.Subscriptions.subscriptions_base_path,this.fileNames=this.route.snapshot.paramMap.get("fileNames")?this.route.snapshot.paramMap.get("fileNames").split("|nvr|"):null,this.fileNames||this.type||(this.is_shared=!0),this.uid&&!this.id?this.getFile():this.id&&this.getPlaylistFiles(),this.url?(this.playlist=[],this.playlist.push({title:this.name,label:this.name,src:this.url,type:"video/mp4"}),this.currentItem=this.playlist[0],this.currentIndex=0,this.show_player=!0):(this.subscriptionName||this.fileNames)&&(this.show_player=!0,this.parseFileNames())}},{key:"getFile",value:function(){var t=this,e=!!this.fileNames;this.postsService.getFile(this.uid,null,this.uuid).subscribe((function(i){t.db_file=i.file,t.db_file?(t.sharingEnabled=t.db_file.sharingEnabled,t.fileNames||t.id||(t.fileNames=[t.db_file.id],t.type=t.db_file.isAudio?"audio":"video",e||t.parseFileNames()),t.db_file.sharingEnabled||!t.uuid?t.show_player=!0:e||t.openSnackBar("Error: Sharing has been disabled for this video!","Dismiss")):t.openSnackBar("Failed to get file information from the server.","Dismiss")}))}},{key:"getPlaylistFiles",value:function(){var t=this;this.postsService.getPlaylist(this.id,null,this.uuid).subscribe((function(e){e.playlist?(t.db_playlist=e.playlist,t.fileNames=t.db_playlist.fileNames,t.type=e.type,t.show_player=!0,t.parseFileNames()):t.openSnackBar("Failed to load playlist!","")}),(function(e){t.openSnackBar("Failed to load playlist!","")}))}},{key:"parseFileNames",value:function(){var t=null;"audio"===this.type?t="audio/mp3":"video"===this.type?t="video/mp4":console.error("Must have valid file type! Use 'audio', 'video', or 'subscription'."),this.playlist=[];for(var e=0;e<this.fileNames.length;e++){var i=this.fileNames[e],n=null,a=null;this.subscriptionName?(n="audio"===this.type?"audio/":"video/",a=this.baseStreamPath+n+encodeURIComponent(i)+"?subName="+this.subscriptionName+"&subPlaylist="+this.subPlaylist):(n=this.type+"/",a=this.baseStreamPath+n+encodeURIComponent(i));var r=this.uuid?"&uuid=".concat(this.uuid):"",o=this.id||!this.db_file?"":"&uid=".concat(this.db_file.uid),s=this.id||!this.db_file?"":"&type=".concat(this.db_file.type),c=this.id?"&id=".concat(this.id):"";this.postsService.isLoggedIn?(a+=(this.subscriptionName?"&":"?")+"jwt=".concat(this.postsService.token),this.is_shared&&(a+="".concat(r).concat(o).concat(s).concat(c))):this.is_shared&&(a+=(this.subscriptionName?"&":"?")+"test=test".concat(r).concat(o).concat(s).concat(c));var l,u=decodeURIComponent(i);l=u.includes("/")||u.includes("\\")?u.replace(/^.*[\\\/]/,""):u,this.playlist.push({title:i,src:a,type:t,label:l})}this.currentItem=this.playlist[this.currentIndex],this.original_playlist=JSON.stringify(this.playlist)}},{key:"onPlayerReady",value:function(t){var e=this;this.api=t,localStorage.getItem("player_volume")&&(this.api.volume=parseFloat(localStorage.getItem("player_volume"))),setInterval((function(){return e.saveVolume(e.api)}),2e3),this.api.getDefaultMedia().subscriptions.loadedMetadata.subscribe(this.playVideo.bind(this)),this.api.getDefaultMedia().subscriptions.ended.subscribe(this.nextVideo.bind(this)),this.timestamp&&this.api.seekTime(+this.timestamp)}},{key:"saveVolume",value:function(t){this.original_volume!==t.volume&&(localStorage.setItem("player_volume",t.volume),this.original_volume=t.volume)}},{key:"nextVideo",value:function(){this.currentIndex!==this.playlist.length-1&&(this.currentIndex++,this.currentItem=this.playlist[this.currentIndex])}},{key:"playVideo",value:function(){this.api.play()}},{key:"onClickPlaylistItem",value:function(t,e){this.currentIndex=e,this.currentItem=t}},{key:"getFileInfos",value:function(){var t=this.getFileNames();this.postsService.getFileInfo(t,this.type,!1).subscribe((function(t){}))}},{key:"getFileNames",value:function(){for(var t=[],e=0;e<this.playlist.length;e++)t.push(this.playlist[e].title);return t}},{key:"decodeURI",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){return decodeURI(t)}))},{key:"downloadContent",value:function(){for(var t=this,e=[],i=0;i<this.playlist.length;i++)e.push(this.playlist[i].title);var n=e[0].split(" ")[0]+e[1].split(" ")[0];this.downloading=!0,this.postsService.downloadFileFromServer(e,this.type,n).subscribe((function(e){t.downloading=!1,saveAs(e,n+".zip")}),(function(e){console.log(e),t.downloading=!1}))}},{key:"downloadFile",value:function(){var t=this,e="audio"===this.type?".mp3":".mp4",i=this.playlist[0].title;this.downloading=!0,this.postsService.downloadFileFromServer(i,this.type,null,null,this.subscriptionName,this.subPlaylist,this.is_shared?this.db_file.uid:null,this.uuid).subscribe((function(n){t.downloading=!1,saveAs(n,i+e)}),(function(e){console.log(e),t.downloading=!1}))}},{key:"namePlaylistDialog",value:function(){var t=this,e=new a.u,i=this.dialog.open(Hj,{width:"300px",data:{inputTitle:"Name the playlist",inputPlaceholder:"Name",submitText:"Favorite",doneEmitter:e}});e.subscribe((function(e){if(e){var n=t.getFileNames();t.postsService.createPlaylist(e,n,t.type,null).subscribe((function(n){if(n.success){i.close();var a=n.new_playlist;t.db_playlist=a,t.openSnackBar("Playlist '"+e+"' successfully created!",""),t.playlistPostCreationHandler(a.id)}}))}}))}},{key:"playlistPostCreationHandler",value:function(t){this.id=t,this.router.navigateByUrl(this.router.url+";id="+t)}},{key:"drop",value:function(t){$C(this.playlist,t.previousIndex,t.currentIndex)}},{key:"playlistChanged",value:function(){return JSON.stringify(this.playlist)!==this.original_playlist}},{key:"updatePlaylist",value:function(){var t=this,e=this.getFileNames();this.playlist_updating=!0,this.postsService.updatePlaylistFiles(this.id,e,this.type).subscribe((function(i){if(t.playlist_updating=!1,i.success){var n=e.join("|nvr|");t.router.navigate(["/player",{fileNames:n,type:t.type,id:t.id}]),t.openSnackBar("Successfully updated playlist.",""),t.original_playlist=JSON.stringify(t.playlist)}else t.openSnackBar("ERROR: Failed to update playlist.","")}))}},{key:"openShareDialog",value:function(){var t=this;this.dialog.open(tF,{data:{uid:this.id?this.id:this.uid,type:this.type,sharing_enabled:this.id?this.db_playlist.sharingEnabled:this.db_file.sharingEnabled,is_playlist:!!this.id,uuid:this.postsService.isLoggedIn?this.postsService.user.uid:null,current_timestamp:this.api.time.current},width:"60vw"}).afterClosed().subscribe((function(e){t.id?t.getPlaylistFiles():t.getFile()}))}},{key:"openSnackBar",value:function(t,e){this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||IN)(a.Dc(eD),a.Dc(hI),a.Dc(Mh),a.Dc(wO),a.Dc(R_))},IN.\u0275cmp=a.xc({type:IN,selectors:[["app-player"]],hostBindings:function(t,e){1&t&&a.Wc("resize",(function(t){return e.onResize(t)}),!1,a.qd)},decls:1,vars:1,consts:[[4,"ngIf"],[1,"container",3,"ngClass"],[1,"row",2,"max-width","100%","margin-left","0px","height","70vh"],[1,"col",3,"ngClass"],[3,"onPlayerReady"],["id","singleVideo","preload","auto","controls","",1,"video-player",3,"ngClass","vgMedia","src"],["media",""],[1,"col-12","my-2"],["cdkDropList","","vertical","","name","videoSelect","aria-label","Video Select",2,"width","80%","left","9%",3,"cdkDropListSortingDisabled","cdkDropListDropped"],["group","matButtonToggleGroup"],["cdkDrag","","class","toggle-button",3,"checked","value","click",4,"ngFor","ngForOf"],["class","update-playlist-button-div",4,"ngIf"],["cdkDrag","",1,"toggle-button",3,"checked","value","click"],[1,"update-playlist-button-div"],[1,"spinner-div"],[3,"diameter",4,"ngIf"],["color","primary","mat-raised-button","",3,"disabled","click"],[3,"diameter"],["color","primary","mat-fab","",1,"save-button",3,"disabled","click"],[1,"save-icon"],["class","spinner",3,"diameter",4,"ngIf"],["color","accent","class","favorite-button","color","primary","mat-fab","",3,"click",4,"ngIf"],["class","share-button","color","primary","mat-fab","",3,"click",4,"ngIf"],[1,"spinner",3,"diameter"],["color","accent","color","primary","mat-fab","",1,"favorite-button",3,"click"],["color","primary","mat-fab","",1,"share-button",3,"click"]],template:function(t,e){1&t&&a.zd(0,SN,14,12,"div",0),2&t&&a.gd("ngIf",e.playlist.length>0&&e.show_player)},directives:[ye.t,ye.q,dN,lN,bc,Dx,ye.s,yc,bx,Qa,wm,zv],styles:[".video-player[_ngcontent-%COMP%]{margin:0 auto;min-width:300px}.video-player[_ngcontent-%COMP%]:focus{outline:none}.audio-styles[_ngcontent-%COMP%]{height:50px;background-color:transparent;width:100%}.video-styles[_ngcontent-%COMP%]{width:100%} .mat-button-toggle-label-content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.container-video[_ngcontent-%COMP%]{max-width:100%;padding-left:0;padding-right:0}.progress-bar[_ngcontent-%COMP%]{position:absolute;left:0;bottom:-1px}.spinner[_ngcontent-%COMP%]{width:50px;height:50px;bottom:3px;left:3px;position:absolute}.save-button[_ngcontent-%COMP%]{right:25px;position:fixed;bottom:25px}.favorite-button[_ngcontent-%COMP%], .share-button[_ngcontent-%COMP%]{left:25px;position:fixed;bottom:25px}.video-col[_ngcontent-%COMP%]{padding-right:0;padding-left:.01px;height:100%}.save-icon[_ngcontent-%COMP%]{bottom:1px;position:relative}.update-playlist-button-div[_ngcontent-%COMP%]{float:right;margin-right:30px;margin-top:25px;margin-bottom:15px}.spinner-div[_ngcontent-%COMP%]{position:relative;display:inline-block;margin-right:12px;top:8px}"]}),IN);ON=$localize(_templateObject200());var EN,AN=["placeholder",$localize(_templateObject201())];EN=$localize(_templateObject202());var TN,PN,RN,MN=["placeholder",$localize(_templateObject203())];TN=$localize(_templateObject204()),PN=$localize(_templateObject205()),RN=$localize(_templateObject206());var LN,jN=["placeholder",$localize(_templateObject207())];LN=$localize(_templateObject208());var FN,NN,zN,BN,JN,VN=["placeholder",$localize(_templateObject209())];function HN(t,e){if(1&t&&(a.Jc(0,"mat-option",22),a.Bd(1),a.Ic()),2&t){var i=e.$implicit,n=a.ad(2);a.gd("value",i+(1===n.timerange_amount?"":"s")),a.pc(1),a.Dd(" ",i+(1===n.timerange_amount?"":"s")," ")}}function UN(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",6),a.Hc(1),a.Nc(2,JN),a.Gc(),a.Jc(3,"mat-form-field",18),a.Jc(4,"input",19),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad().timerange_amount=t})),a.Ic(),a.Ic(),a.Jc(5,"mat-select",20),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad().timerange_unit=t})),a.zd(6,HN,2,2,"mat-option",21),a.Ic(),a.Ic()}if(2&t){var n=a.ad();a.pc(4),a.gd("ngModel",n.timerange_amount),a.pc(1),a.gd("ngModel",n.timerange_unit),a.pc(1),a.gd("ngForOf",n.time_units)}}function GN(t,e){1&t&&(a.Jc(0,"div",23),a.Ec(1,"mat-spinner",24),a.Ic()),2&t&&(a.pc(1),a.gd("diameter",25))}FN=$localize(_templateObject210()),NN=$localize(_templateObject211()),zN=$localize(_templateObject212()),BN=$localize(_templateObject213()),JN=$localize(_templateObject214());var WN,qN,$N,KN,XN,YN,ZN,QN,tz=((WN=function(){function t(e,i,n,a){_classCallCheck(this,t),this.postsService=e,this.snackBar=i,this.dialog=n,this.dialogRef=a,this.timerange_unit="days",this.download_all=!0,this.url=null,this.name=null,this.subscribing=!1,this.streamingOnlyMode=!1,this.audioOnlyMode=!1,this.customFileOutput="",this.customArgs="",this.time_units=["day","week","month","year"]}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"subscribeClicked",value:function(){var t=this;if(this.url&&""!==this.url){if(!this.download_all&&!this.timerange_amount)return void this.openSnackBar("You must specify an amount of time");this.subscribing=!0;var e=null;this.download_all||(e="now-"+this.timerange_amount.toString()+this.timerange_unit),this.postsService.createSubscription(this.url,this.name,e,this.streamingOnlyMode,this.audioOnlyMode,this.customArgs,this.customFileOutput).subscribe((function(e){t.subscribing=!1,e.new_sub?t.dialogRef.close(e.new_sub):(e.error&&t.openSnackBar("ERROR: "+e.error),t.dialogRef.close())}))}}},{key:"openArgsModifierDialog",value:function(){var t=this;this.dialog.open(nE,{data:{initial_args:this.customArgs}}).afterClosed().subscribe((function(e){null!=e&&(t.customArgs=e)}))}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||WN)(a.Dc(eD),a.Dc(R_),a.Dc(Mh),a.Dc(Eh))},WN.\u0275cmp=a.xc({type:WN,selectors:[["app-subscribe-dialog"]],decls:63,vars:11,consts:[["mat-dialog-title",""],[1,"container-fluid"],[1,"row"],[1,"col-12","mb-4"],["color","accent"],["matInput","","required","","aria-required","true",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-3"],[3,"ngModel","ngModelChange"],["class","col-12",4,"ngIf"],[3,"disabled","ngModel","ngModelChange"],[1,"col-12","mb-3"],["mat-icon-button","",1,"args-edit-button",3,"click"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],["color","accent",2,"width","50px","text-align","center"],["type","number","matInput","",3,"ngModel","ngModelChange"],["color","accent",1,"unit-select",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-spinner"],[3,"diameter"]],template:function(t,e){1&t&&(a.Jc(0,"h4",0),a.Nc(1,ON),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div",1),a.Jc(4,"div",2),a.Jc(5,"div",3),a.Jc(6,"mat-form-field",4),a.Jc(7,"input",5),a.Pc(8,AN),a.Wc("ngModelChange",(function(t){return e.url=t})),a.Ic(),a.Jc(9,"mat-hint"),a.Hc(10),a.Nc(11,EN),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ec(12,"mat-divider"),a.Jc(13,"div",1),a.Jc(14,"div",2),a.Jc(15,"div",6),a.Jc(16,"mat-form-field",4),a.Jc(17,"input",7),a.Pc(18,MN),a.Wc("ngModelChange",(function(t){return e.name=t})),a.Ic(),a.Ic(),a.Ic(),a.Jc(19,"div",8),a.Jc(20,"mat-checkbox",9),a.Wc("ngModelChange",(function(t){return e.download_all=t})),a.Hc(21),a.Nc(22,TN),a.Gc(),a.Ic(),a.Ic(),a.zd(23,UN,7,3,"div",10),a.Jc(24,"div",6),a.Jc(25,"div"),a.Jc(26,"mat-checkbox",9),a.Wc("ngModelChange",(function(t){return e.audioOnlyMode=t})),a.Hc(27),a.Nc(28,PN),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(29,"div",6),a.Jc(30,"div"),a.Jc(31,"mat-checkbox",11),a.Wc("ngModelChange",(function(t){return e.streamingOnlyMode=t})),a.Hc(32),a.Nc(33,RN),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(34,"div",12),a.Jc(35,"mat-form-field",4),a.Jc(36,"input",7),a.Pc(37,jN),a.Wc("ngModelChange",(function(t){return e.customArgs=t})),a.Ic(),a.Jc(38,"button",13),a.Wc("click",(function(){return e.openArgsModifierDialog()})),a.Jc(39,"mat-icon"),a.Bd(40,"edit"),a.Ic(),a.Ic(),a.Jc(41,"mat-hint"),a.Hc(42),a.Nc(43,LN),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(44,"div",6),a.Jc(45,"mat-form-field",4),a.Jc(46,"input",7),a.Pc(47,VN),a.Wc("ngModelChange",(function(t){return e.customFileOutput=t})),a.Ic(),a.Jc(48,"mat-hint"),a.Jc(49,"a",14),a.Hc(50),a.Nc(51,FN),a.Gc(),a.Ic(),a.Bd(52,". "),a.Hc(53),a.Nc(54,NN),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(55,"mat-dialog-actions"),a.Jc(56,"button",15),a.Hc(57),a.Nc(58,zN),a.Gc(),a.Ic(),a.Jc(59,"button",16),a.Wc("click",(function(){return e.subscribeClicked()})),a.Hc(60),a.Nc(61,BN),a.Gc(),a.Ic(),a.zd(62,GN,2,1,"div",17),a.Ic()),2&t&&(a.pc(7),a.gd("ngModel",e.url),a.pc(10),a.gd("ngModel",e.name),a.pc(3),a.gd("ngModel",e.download_all),a.pc(3),a.gd("ngIf",!e.download_all),a.pc(3),a.gd("ngModel",e.audioOnlyMode),a.pc(5),a.gd("disabled",e.audioOnlyMode)("ngModel",e.streamingOnlyMode),a.pc(5),a.gd("ngModel",e.customArgs),a.pc(10),a.gd("ngModel",e.customFileOutput),a.pc(13),a.gd("disabled",!e.url),a.pc(3),a.gd("ngIf",e.subscribing))},directives:[Fh,Nh,qd,Lm,yr,Xs,Er,es,Nd,Fm,Zc,ye.t,Qa,wm,zh,jh,Wr,bb,ye.s,Ba,zv],styles:[".unit-select[_ngcontent-%COMP%]{width:75px;margin-left:20px}.mat-spinner[_ngcontent-%COMP%]{margin-left:5%}.args-edit-button[_ngcontent-%COMP%]{position:absolute;margin-left:10px}"]}),WN);function ez(t,e){if(1&t&&(a.Jc(0,"div",1),a.Jc(1,"strong"),a.Hc(2),a.Nc(3,QN),a.Gc(),a.Bd(4,"\xa0"),a.Ic(),a.Jc(5,"span",2),a.Bd(6),a.Ic(),a.Ic()),2&t){var i=a.ad();a.pc(6),a.Cd(i.sub.archive)}}qN=$localize(_templateObject215()),$N=$localize(_templateObject216()),KN=$localize(_templateObject217()),XN=$localize(_templateObject218()),YN=$localize(_templateObject219()),ZN=$localize(_templateObject220()),QN=$localize(_templateObject221());var iz,nz,az,rz,oz,sz,cz,lz,uz=((iz=function(){function t(e,i,n){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.postsService=n,this.sub=null,this.unsubbedEmitter=null}return _createClass(t,[{key:"ngOnInit",value:function(){this.data&&(this.sub=this.data.sub,this.unsubbedEmitter=this.data.unsubbedEmitter)}},{key:"unsubscribe",value:function(){var t=this;this.postsService.unsubscribe(this.sub,!0).subscribe((function(e){t.unsubbedEmitter.emit(!0),t.dialogRef.close()}))}},{key:"downloadArchive",value:function(){this.postsService.downloadArchive(this.sub).subscribe((function(t){saveAs(t,"archive.txt")}))}}]),t}()).\u0275fac=function(t){return new(t||iz)(a.Dc(Eh),a.Dc(Ah),a.Dc(eD))},iz.\u0275cmp=a.xc({type:iz,selectors:[["app-subscription-info-dialog"]],decls:36,vars:5,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-value"],["class","info-item",4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-stroked-button","","color","accent",3,"click"],[1,"spacer"],["mat-button","","color","warn",3,"click"]],template:function(t,e){1&t&&(a.Jc(0,"h4",0),a.Bd(1),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div",1),a.Jc(4,"strong"),a.Hc(5),a.Nc(6,qN),a.Gc(),a.Bd(7,"\xa0"),a.Ic(),a.Jc(8,"span",2),a.Bd(9),a.Ic(),a.Ic(),a.Jc(10,"div",1),a.Jc(11,"strong"),a.Hc(12),a.Nc(13,$N),a.Gc(),a.Bd(14,"\xa0"),a.Ic(),a.Jc(15,"span",2),a.Bd(16),a.Ic(),a.Ic(),a.Jc(17,"div",1),a.Jc(18,"strong"),a.Hc(19),a.Nc(20,KN),a.Gc(),a.Bd(21,"\xa0"),a.Ic(),a.Jc(22,"span",2),a.Bd(23),a.Ic(),a.Ic(),a.zd(24,ez,7,1,"div",3),a.Ic(),a.Jc(25,"mat-dialog-actions"),a.Jc(26,"button",4),a.Hc(27),a.Nc(28,XN),a.Gc(),a.Ic(),a.Jc(29,"button",5),a.Wc("click",(function(){return e.downloadArchive()})),a.Hc(30),a.Nc(31,YN),a.Gc(),a.Ic(),a.Ec(32,"span",6),a.Jc(33,"button",7),a.Wc("click",(function(){return e.unsubscribe()})),a.Hc(34),a.Nc(35,ZN),a.Gc(),a.Ic(),a.Ic()),2&t&&(a.pc(1),a.Cd(e.sub.name),a.pc(8),a.Cd(e.sub.isPlaylist?"Playlist":"Channel"),a.pc(7),a.Cd(e.sub.url),a.pc(7),a.Cd(e.sub.id),a.pc(1),a.gd("ngIf",e.sub.archive))},directives:[Fh,Nh,ye.t,zh,Qa,jh],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px}.info-item-value[_ngcontent-%COMP%]{font-size:13px}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),iz);function dz(t,e){if(1&t&&(a.Jc(0,"strong"),a.Bd(1),a.Ic()),2&t){var i=a.ad().$implicit;a.pc(1),a.Cd(i.name)}}function hz(t,e){1&t&&(a.Jc(0,"div"),a.Hc(1),a.Nc(2,oz),a.Gc(),a.Ic())}function pz(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-list-item"),a.Jc(1,"a",9),a.Wc("click",(function(){a.rd(i);var t=e.$implicit;return a.ad().goToSubscription(t)})),a.zd(2,dz,2,1,"strong",10),a.zd(3,hz,3,0,"div",10),a.Ic(),a.Jc(4,"button",11),a.Wc("click",(function(){a.rd(i);var t=e.$implicit;return a.ad().showSubInfo(t)})),a.Jc(5,"mat-icon"),a.Bd(6,"info"),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=e.$implicit;a.pc(2),a.gd("ngIf",n.name),a.pc(1),a.gd("ngIf",!n.name)}}function fz(t,e){1&t&&(a.Jc(0,"div",12),a.Jc(1,"p"),a.Nc(2,sz),a.Ic(),a.Ic())}function mz(t,e){1&t&&(a.Jc(0,"div",14),a.Hc(1),a.Nc(2,cz),a.Gc(),a.Ic())}function gz(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-list-item"),a.Jc(1,"a",9),a.Wc("click",(function(){a.rd(i);var t=e.$implicit;return a.ad().goToSubscription(t)})),a.Jc(2,"strong"),a.Bd(3),a.Ic(),a.zd(4,mz,3,0,"div",13),a.Ic(),a.Jc(5,"button",11),a.Wc("click",(function(){a.rd(i);var t=e.$implicit;return a.ad().showSubInfo(t)})),a.Jc(6,"mat-icon"),a.Bd(7,"info"),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=e.$implicit;a.pc(3),a.Cd(n.name),a.pc(1),a.gd("ngIf",!n.name)}}function vz(t,e){1&t&&(a.Jc(0,"div",12),a.Jc(1,"p"),a.Nc(2,lz),a.Ic(),a.Ic())}function bz(t,e){1&t&&(a.Jc(0,"div",15),a.Ec(1,"mat-progress-bar",16),a.Ic())}nz=$localize(_templateObject222()),az=$localize(_templateObject223()),rz=$localize(_templateObject224()),oz=$localize(_templateObject225()),sz=$localize(_templateObject226()),cz=$localize(_templateObject227()),lz=$localize(_templateObject228());var _z,yz,kz,wz,Cz,xz=((_z=function(){function t(e,i,n,a){_classCallCheck(this,t),this.dialog=e,this.postsService=i,this.router=n,this.snackBar=a,this.playlist_subscriptions=[],this.channel_subscriptions=[],this.subscriptions=null,this.subscriptions_loading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.postsService.initialized&&this.getSubscriptions(),this.postsService.service_initialized.subscribe((function(e){e&&t.getSubscriptions()}))}},{key:"getSubscriptions",value:function(){var t=this;this.subscriptions_loading=!0,this.subscriptions=null,this.postsService.getAllSubscriptions().subscribe((function(e){if(t.channel_subscriptions=[],t.playlist_subscriptions=[],t.subscriptions_loading=!1,t.subscriptions=e.subscriptions,t.subscriptions)for(var i=0;i<t.subscriptions.length;i++){var n=t.subscriptions[i];n.isPlaylist?t.playlist_subscriptions.push(n):t.channel_subscriptions.push(n)}else t.subscriptions=[]}),(function(e){t.subscriptions_loading=!1,console.error("Failed to get subscriptions"),t.openSnackBar("ERROR: Failed to get subscriptions!","OK.")}))}},{key:"goToSubscription",value:function(t){this.router.navigate(["/subscription",{id:t.id}])}},{key:"openSubscribeDialog",value:function(){var t=this;this.dialog.open(tz,{maxWidth:500,width:"80vw"}).afterClosed().subscribe((function(e){e&&(e.isPlaylist?t.playlist_subscriptions.push(e):t.channel_subscriptions.push(e))}))}},{key:"showSubInfo",value:function(t){var e=this,i=new a.u;this.dialog.open(uz,{data:{sub:t,unsubbedEmitter:i}}),i.subscribe((function(i){i&&(e.openSnackBar("".concat(t.name," successfully deleted!")),e.getSubscriptions())}))}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||_z)(a.Dc(Mh),a.Dc(eD),a.Dc(wO),a.Dc(R_))},_z.\u0275cmp=a.xc({type:_z,selectors:[["app-subscriptions"]],decls:19,vars:5,consts:[[2,"text-align","center","margin-bottom","15px"],[2,"width","80%","margin","0 auto"],[2,"text-align","center"],[1,"sub-nav-list"],[4,"ngFor","ngForOf"],["style","width: 80%; margin: 0 auto; padding-left: 15px;",4,"ngIf"],[2,"text-align","center","margin-top","10px"],["style","margin: 0 auto; width: 80%",4,"ngIf"],["mat-fab","",1,"add-subscription-button",3,"click"],["matLine","","href","javascript:void(0)",1,"a-list-item",3,"click"],[4,"ngIf"],["mat-icon-button","",3,"click"],[2,"width","80%","margin","0 auto","padding-left","15px"],["class","content-loading-div",4,"ngIf"],[1,"content-loading-div"],[2,"margin","0 auto","width","80%"],["mode","indeterminate"]],template:function(t,e){1&t&&(a.Ec(0,"br"),a.Jc(1,"h2",0),a.Nc(2,nz),a.Ic(),a.Ec(3,"mat-divider",1),a.Ec(4,"br"),a.Jc(5,"h4",2),a.Nc(6,az),a.Ic(),a.Jc(7,"mat-nav-list",3),a.zd(8,pz,7,2,"mat-list-item",4),a.Ic(),a.zd(9,fz,3,0,"div",5),a.Jc(10,"h4",6),a.Nc(11,rz),a.Ic(),a.Jc(12,"mat-nav-list",3),a.zd(13,gz,8,2,"mat-list-item",4),a.Ic(),a.zd(14,vz,3,0,"div",5),a.zd(15,bz,2,0,"div",7),a.Jc(16,"button",8),a.Wc("click",(function(){return e.openSubscribeDialog()})),a.Jc(17,"mat-icon"),a.Bd(18,"add"),a.Ic(),a.Ic()),2&t&&(a.pc(8),a.gd("ngForOf",e.channel_subscriptions),a.pc(1),a.gd("ngIf",0===e.channel_subscriptions.length&&e.subscriptions),a.pc(4),a.gd("ngForOf",e.playlist_subscriptions),a.pc(1),a.gd("ngIf",0===e.playlist_subscriptions.length&&e.subscriptions),a.pc(1),a.gd("ngIf",e.subscriptions_loading))},directives:[Fm,ng,ye.s,ye.t,Qa,wm,lg,pa,wv],styles:[".add-subscription-button[_ngcontent-%COMP%]{position:fixed;bottom:30px;right:30px}.subscription-card[_ngcontent-%COMP%]{height:200px;width:300px}.content-loading-div[_ngcontent-%COMP%]{position:absolute;width:200px;height:50px;bottom:-18px}.a-list-item[_ngcontent-%COMP%]{height:48px;padding-top:12px!important}.sub-nav-list[_ngcontent-%COMP%]{margin:0 auto;width:80%}"]}),_z);function Sz(t,e){if(1&t){var i=a.Kc();a.Jc(0,"button",4),a.Wc("click",(function(){return a.rd(i),a.ad().deleteForever()})),a.Jc(1,"mat-icon"),a.Bd(2,"delete_forever"),a.Ic(),a.Hc(3),a.Nc(4,Cz),a.Gc(),a.Ic()}}function Iz(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"img",11),a.Wc("error",(function(t){return a.rd(i),a.ad().onImgError(t)})),a.Ic(),a.Ic()}if(2&t){var n=a.ad();a.pc(1),a.gd("src",n.file.thumbnailURL,a.td)}}yz=$localize(_templateObject229()),kz=$localize(_templateObject230()),wz=$localize(_templateObject231()),Cz=$localize(_templateObject232());var Oz,Dz,Ez=((Oz=function(){function t(e,i,n){_classCallCheck(this,t),this.snackBar=e,this.postsService=i,this.dialog=n,this.image_errored=!1,this.image_loaded=!1,this.formattedDuration=null,this.use_youtubedl_archive=!1,this.goToFileEmit=new a.u,this.reloadSubscription=new a.u,this.scrollSubject=new Le.a,this.scrollAndLoad=si.a.merge(si.a.fromEvent(window,"scroll"),this.scrollSubject)}return _createClass(t,[{key:"ngOnInit",value:function(){var t,e,i,n,a;this.file.duration&&(this.formattedDuration=(t=this.file.duration,i=~~(t%3600/60),a="",(e=~~(t/3600))>0&&(a+=e+":"+(i<10?"0":"")),a+=i+":"+((n=~~t%60)<10?"0":""),a+=""+n))}},{key:"onImgError",value:function(t){this.image_errored=!0}},{key:"onHoverResponse",value:function(){this.scrollSubject.next()}},{key:"imageLoaded",value:function(t){this.image_loaded=!0}},{key:"goToFile",value:function(){this.goToFileEmit.emit({name:this.file.id,url:this.file.requested_formats?this.file.requested_formats[0].url:this.file.url})}},{key:"openSubscriptionInfoDialog",value:function(){this.dialog.open(UL,{data:{file:this.file},minWidth:"50vw"})}},{key:"deleteAndRedownload",value:function(){var t=this;this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!1,this.file.uid).subscribe((function(e){t.reloadSubscription.emit(!0),t.openSnackBar("Successfully deleted file: '".concat(t.file.id,"'"),"Dismiss.")}))}},{key:"deleteForever",value:function(){var t=this;this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!0,this.file.uid).subscribe((function(e){t.reloadSubscription.emit(!0),t.openSnackBar("Successfully deleted file: '".concat(t.file.id,"'"),"Dismiss.")}))}},{key:"openSnackBar",value:function(t,e){this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||Oz)(a.Dc(R_),a.Dc(eD),a.Dc(Mh))},Oz.\u0275cmp=a.xc({type:Oz,selectors:[["app-subscription-file-card"]],inputs:{file:"file",sub:"sub",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{goToFileEmit:"goToFileEmit",reloadSubscription:"reloadSubscription"},decls:27,vars:5,consts:[[2,"position","relative","width","fit-content"],[1,"duration-time"],["mat-icon-button","",1,"menuButton",3,"matMenuTriggerFor"],["action_menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["matRipple","",1,"example-card","mat-elevation-z6",3,"click"],[2,"padding","5px"],["class","img-div",4,"ngIf"],[1,"max-two-lines"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"src","error"]],template:function(t,e){if(1&t&&(a.Jc(0,"div",0),a.Jc(1,"div",1),a.Hc(2),a.Nc(3,yz),a.Gc(),a.Bd(4),a.Ic(),a.Jc(5,"button",2),a.Jc(6,"mat-icon"),a.Bd(7,"more_vert"),a.Ic(),a.Ic(),a.Jc(8,"mat-menu",null,3),a.Jc(10,"button",4),a.Wc("click",(function(){return e.openSubscriptionInfoDialog()})),a.Jc(11,"mat-icon"),a.Bd(12,"info"),a.Ic(),a.Hc(13),a.Nc(14,kz),a.Gc(),a.Ic(),a.Jc(15,"button",4),a.Wc("click",(function(){return e.deleteAndRedownload()})),a.Jc(16,"mat-icon"),a.Bd(17,"restore"),a.Ic(),a.Hc(18),a.Nc(19,wz),a.Gc(),a.Ic(),a.zd(20,Sz,5,0,"button",5),a.Ic(),a.Jc(21,"mat-card",6),a.Wc("click",(function(){return e.goToFile()})),a.Jc(22,"div",7),a.zd(23,Iz,2,1,"div",8),a.Jc(24,"span",9),a.Jc(25,"strong"),a.Bd(26),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()),2&t){var i=a.nd(9);a.pc(4),a.Dd("\xa0",e.formattedDuration," "),a.pc(1),a.gd("matMenuTriggerFor",i),a.pc(15),a.gd("ngIf",e.sub.archive&&e.use_youtubedl_archive),a.pc(3),a.gd("ngIf",!e.image_errored&&e.file.thumbnailURL),a.pc(3),a.Cd(e.file.title)}},directives:[Qa,Vg,wm,Ng,Pg,ye.t,zc,Ea],styles:[".example-card[_ngcontent-%COMP%]{width:200px;height:200px;padding:0;cursor:pointer}.menuButton[_ngcontent-%COMP%]{right:0;top:-1px;position:absolute;z-index:999}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:200px;height:112.5px;-o-object-fit:cover;object-fit:cover}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{max-height:80px;padding:0;margin:32px 0 0 -5px;width:calc(100% + 10px)}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2;bottom:5px;position:absolute}.duration-time[_ngcontent-%COMP%]{position:absolute;left:5px;top:5px;z-index:99999}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:175px!important}.image[_ngcontent-%COMP%]{width:175px}}"]}),Oz);function Az(t,e){if(1&t&&(a.Jc(0,"h2",9),a.Bd(1),a.Ic()),2&t){var i=a.ad();a.pc(1),a.Dd(" ",i.subscription.name," ")}}Dz=$localize(_templateObject233());var Tz=["placeholder",$localize(_templateObject234())];function Pz(t,e){if(1&t&&(a.Jc(0,"mat-option",25),a.Bd(1),a.Ic()),2&t){var i=e.$implicit;a.gd("value",i.value),a.pc(1),a.Dd(" ",i.value.label," ")}}function Rz(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div",26),a.Jc(1,"app-subscription-file-card",27),a.Wc("reloadSubscription",(function(){return a.rd(i),a.ad(2).getSubscription()}))("goToFileEmit",(function(t){return a.rd(i),a.ad(2).goToFile(t)})),a.Ic(),a.Ic()}if(2&t){var n=e.$implicit,r=a.ad(2);a.pc(1),a.gd("file",n)("sub",r.subscription)("use_youtubedl_archive",r.use_youtubedl_archive)}}function Mz(t,e){if(1&t){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"div",10),a.Jc(2,"div",11),a.Jc(3,"div",12),a.Jc(4,"mat-select",13),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad().filterProperty=t}))("selectionChange",(function(t){return a.rd(i),a.ad().filterOptionChanged(t.value)})),a.zd(5,Pz,2,2,"mat-option",14),a.bd(6,"keyvalue"),a.Ic(),a.Ic(),a.Jc(7,"div",12),a.Jc(8,"button",15),a.Wc("click",(function(){return a.rd(i),a.ad().toggleModeChange()})),a.Jc(9,"mat-icon"),a.Bd(10),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ec(11,"div",16),a.Jc(12,"div",16),a.Jc(13,"h4",17),a.Nc(14,Dz),a.Ic(),a.Ic(),a.Jc(15,"div",18),a.Jc(16,"mat-form-field",19),a.Jc(17,"input",20),a.Pc(18,Tz),a.Wc("focus",(function(){return a.rd(i),a.ad().searchIsFocused=!0}))("blur",(function(){return a.rd(i),a.ad().searchIsFocused=!1}))("ngModelChange",(function(t){return a.rd(i),a.ad().search_text=t}))("ngModelChange",(function(t){return a.rd(i),a.ad().onSearchInputChanged(t)})),a.Ic(),a.Jc(19,"mat-icon",21),a.Bd(20,"search"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(21,"div",22),a.Jc(22,"div",23),a.zd(23,Rz,2,3,"div",24),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad();a.pc(4),a.gd("ngModel",n.filterProperty),a.pc(1),a.gd("ngForOf",a.cd(6,6,n.filterProperties)),a.pc(5),a.Cd(n.descendingMode?"arrow_downward":"arrow_upward"),a.pc(6),a.gd("ngClass",n.searchIsFocused?"search-bar-focused":"search-bar-unfocused"),a.pc(1),a.gd("ngModel",n.search_text),a.pc(6),a.gd("ngForOf",n.filtered_files)}}function Lz(t,e){1&t&&a.Ec(0,"mat-spinner",28),2&t&&a.gd("diameter",50)}var jz,Fz,Nz,zz=((jz=function(){function t(e,i,n){_classCallCheck(this,t),this.postsService=e,this.route=i,this.router=n,this.id=null,this.subscription=null,this.files=null,this.filtered_files=null,this.use_youtubedl_archive=!1,this.search_mode=!1,this.search_text="",this.searchIsFocused=!1,this.descendingMode=!0,this.filterProperties={upload_date:{key:"upload_date",label:"Upload Date",property:"upload_date"},name:{key:"name",label:"Name",property:"title"},file_size:{key:"file_size",label:"File Size",property:"size"},duration:{key:"duration",label:"Duration",property:"duration"}},this.filterProperty=this.filterProperties.upload_date,this.downloading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.route.snapshot.paramMap.get("id")&&(this.id=this.route.snapshot.paramMap.get("id"),this.postsService.service_initialized.subscribe((function(e){e&&(t.getConfig(),t.getSubscription())})));var e=localStorage.getItem("filter_property");e&&this.filterProperties[e]&&(this.filterProperty=this.filterProperties[e])}},{key:"goBack",value:function(){this.router.navigate(["/subscriptions"])}},{key:"getSubscription",value:function(){var t=this;this.postsService.getSubscription(this.id).subscribe((function(e){t.subscription=e.subscription,t.files=e.files,t.search_mode?t.filterFiles(t.search_text):t.filtered_files=t.files,t.filterByProperty(t.filterProperty.property)}))}},{key:"getConfig",value:function(){this.use_youtubedl_archive=this.postsService.config.Subscriptions.subscriptions_use_youtubedl_archive}},{key:"goToFile",value:function(t){var e=t.name,i=t.url;localStorage.setItem("player_navigator",this.router.url),this.router.navigate(this.subscription.streamingOnly?["/player",{name:e,url:i}]:["/player",{fileNames:e,type:this.subscription.type?this.subscription.type:"video",subscriptionName:this.subscription.name,subPlaylist:this.subscription.isPlaylist,uuid:this.postsService.user?this.postsService.user.uid:null}])}},{key:"onSearchInputChanged",value:function(t){t.length>0?(this.search_mode=!0,this.filterFiles(t)):this.search_mode=!1}},{key:"filterFiles",value:function(t){var e=t.toLowerCase();this.filtered_files=this.files.filter((function(t){return t.id.toLowerCase().includes(e)}))}},{key:"filterByProperty",value:function(t){this.filtered_files=this.filtered_files.sort(this.descendingMode?function(e,i){return e[t]>i[t]?-1:1}:function(e,i){return e[t]>i[t]?1:-1})}},{key:"filterOptionChanged",value:function(t){this.filterByProperty(t.property),localStorage.setItem("filter_property",t.key)}},{key:"toggleModeChange",value:function(){this.descendingMode=!this.descendingMode,this.filterByProperty(this.filterProperty.property)}},{key:"downloadContent",value:function(){for(var t=this,e=[],i=0;i<this.files.length;i++)e.push(this.files[i].path);this.downloading=!0,this.postsService.downloadFileFromServer(e,"video",this.subscription.name,!0).subscribe((function(e){t.downloading=!1,saveAs(e,t.subscription.name+".zip")}),(function(e){console.log(e),t.downloading=!1}))}}]),t}()).\u0275fac=function(t){return new(t||jz)(a.Dc(eD),a.Dc(hI),a.Dc(wO))},jz.\u0275cmp=a.xc({type:jz,selectors:[["app-subscription"]],decls:13,vars:4,consts:[[2,"margin-top","14px"],["mat-icon-button","",1,"back-button",3,"click"],[2,"margin-bottom","15px"],["style","text-align: center;",4,"ngIf"],[2,"width","80%","margin","0 auto"],[4,"ngIf"],["color","primary","mat-fab","",1,"save-button",3,"disabled","click"],[1,"save-icon"],["class","spinner",3,"diameter",4,"ngIf"],[2,"text-align","center"],[1,"flex-grid"],[1,"filter-select-parent"],[2,"display","inline-block"],[2,"width","110px",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["mat-icon-button","",3,"click"],[1,"col"],[2,"text-align","center","margin-bottom","20px"],[1,"col",2,"top","-12px"],["color","accent",1,"search-bar",3,"ngClass"],["type","text","matInput","",1,"search-input",3,"ngModel","focus","blur","ngModelChange",6,"placeholder"],["matSuffix",""],[1,"container"],[1,"row","justify-content-center"],["class","col-6 col-lg-4 mb-2 mt-2 sub-file-col",4,"ngFor","ngForOf"],[3,"value"],[1,"col-6","col-lg-4","mb-2","mt-2","sub-file-col"],[3,"file","sub","use_youtubedl_archive","reloadSubscription","goToFileEmit"],[1,"spinner",3,"diameter"]],template:function(t,e){1&t&&(a.Jc(0,"div",0),a.Jc(1,"button",1),a.Wc("click",(function(){return e.goBack()})),a.Jc(2,"mat-icon"),a.Bd(3,"arrow_back"),a.Ic(),a.Ic(),a.Jc(4,"div",2),a.zd(5,Az,2,1,"h2",3),a.Ic(),a.Ec(6,"mat-divider",4),a.Ec(7,"br"),a.zd(8,Mz,24,8,"div",5),a.Jc(9,"button",6),a.Wc("click",(function(){return e.downloadContent()})),a.Jc(10,"mat-icon",7),a.Bd(11,"save"),a.Ic(),a.zd(12,Lz,1,1,"mat-spinner",8),a.Ic(),a.Ic()),2&t&&(a.pc(5),a.gd("ngIf",e.subscription),a.pc(3),a.gd("ngIf",e.subscription),a.pc(1),a.gd("disabled",e.downloading),a.pc(3),a.gd("ngIf",e.downloading))},directives:[Qa,wm,ye.t,Fm,bb,Er,es,ye.s,qd,ye.q,Lm,yr,Vd,Ba,Ez,zv],pipes:[ye.l],styles:[".sub-file-col[_ngcontent-%COMP%]{max-width:240px}.back-button[_ngcontent-%COMP%]{float:left;position:absolute;left:15px}.filter-select-parent[_ngcontent-%COMP%]{position:absolute;top:0;left:20px;display:block}.search-bar[_ngcontent-%COMP%]{transition:all .5s ease;position:relative;float:right}.search-bar-unfocused[_ngcontent-%COMP%]{width:100px}.search-input[_ngcontent-%COMP%]{transition:all .5s ease}.search-bar-focused[_ngcontent-%COMP%]{width:100%}.flex-grid[_ngcontent-%COMP%]{width:100%;display:block;position:relative}.col[_ngcontent-%COMP%]{width:33%;display:inline-block}.spinner[_ngcontent-%COMP%]{width:50px;height:50px;bottom:3px;left:3px;position:absolute}.save-button[_ngcontent-%COMP%]{right:25px;position:absolute;bottom:25px}.save-icon[_ngcontent-%COMP%]{bottom:1px;position:relative}"]}),jz);function Bz(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-tab",9),a.Jc(1,"div",3),a.Jc(2,"mat-form-field"),a.Jc(3,"input",4),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad().registrationUsernameInput=t})),a.Ic(),a.Ic(),a.Ic(),a.Jc(4,"div"),a.Jc(5,"mat-form-field"),a.Jc(6,"input",10),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad().registrationPasswordInput=t})),a.Ic(),a.Ic(),a.Ic(),a.Jc(7,"div"),a.Jc(8,"mat-form-field"),a.Jc(9,"input",11),a.Wc("ngModelChange",(function(t){return a.rd(i),a.ad().registrationPasswordConfirmationInput=t})),a.Ic(),a.Ic(),a.Ic(),a.Jc(10,"div",6),a.Jc(11,"button",7),a.Wc("click",(function(){return a.rd(i),a.ad().register()})),a.Hc(12),a.Nc(13,Nz),a.Gc(),a.Ic(),a.Ic(),a.Ic()}if(2&t){var n=a.ad();a.pc(3),a.gd("ngModel",n.registrationUsernameInput),a.pc(3),a.gd("ngModel",n.registrationPasswordInput),a.pc(3),a.gd("ngModel",n.registrationPasswordConfirmationInput),a.pc(2),a.gd("disabled",n.registering)}}Fz=$localize(_templateObject235()),Nz=$localize(_templateObject236());var Jz,Vz,Hz,Uz,Gz,Wz,qz,$z=((Jz=function(){function t(e,i,n){_classCallCheck(this,t),this.postsService=e,this.snackBar=i,this.router=n,this.selectedTabIndex=0,this.loginUsernameInput="",this.loginPasswordInput="",this.loggingIn=!1,this.registrationEnabled=!1,this.registrationUsernameInput="",this.registrationPasswordInput="",this.registrationPasswordConfirmationInput="",this.registering=!1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.postsService.isLoggedIn&&this.router.navigate(["/home"]),this.postsService.service_initialized.subscribe((function(e){e&&(t.postsService.config.Advanced.multi_user_mode||t.router.navigate(["/home"]),t.registrationEnabled=t.postsService.config.Users&&t.postsService.config.Users.allow_registration)}))}},{key:"login",value:function(){var t=this;""!==this.loginPasswordInput&&(this.loggingIn=!0,this.postsService.login(this.loginUsernameInput,this.loginPasswordInput).subscribe((function(e){t.loggingIn=!1,e.token?t.postsService.afterLogin(e.user,e.token,e.permissions,e.available_permissions):t.openSnackBar("Login failed, unknown error.")}),(function(e){t.loggingIn=!1;var i=e.status;t.openSnackBar(401===i?"User name or password is incorrect!":404===i?"Login failed, cannot connect to the server.":"Login failed, unknown error.")})))}},{key:"register",value:function(){var t=this;this.registrationUsernameInput&&""!==this.registrationUsernameInput?this.registrationPasswordInput&&""!==this.registrationPasswordInput?this.registrationPasswordConfirmationInput&&""!==this.registrationPasswordConfirmationInput?this.registrationPasswordInput===this.registrationPasswordConfirmationInput?(this.registering=!0,this.postsService.register(this.registrationUsernameInput,this.registrationPasswordInput).subscribe((function(e){t.registering=!1,e&&e.user?(t.openSnackBar("User ".concat(e.user.name," successfully registered.")),t.loginUsernameInput=e.user.name,t.selectedTabIndex=0):t.openSnackBar("Failed to register user, unknown error.")}),(function(e){t.registering=!1,e&&e.error&&"string"==typeof e.error?t.openSnackBar(e.error):console.log(e)}))):this.openSnackBar("Password confirmation is incorrect!"):this.openSnackBar("Password confirmation is required!"):this.openSnackBar("Password is required!"):this.openSnackBar("User name is required!")}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||Jz)(a.Dc(eD),a.Dc(R_),a.Dc(wO))},Jz.\u0275cmp=a.xc({type:Jz,selectors:[["app-login"]],decls:14,vars:5,consts:[[1,"login-card"],[3,"selectedIndex","selectedIndexChange"],["label","Login"],[2,"margin-top","10px"],["matInput","","placeholder","User name",3,"ngModel","ngModelChange"],["type","password","matInput","","placeholder","Password",3,"ngModel","ngModelChange","keyup.enter"],[2,"margin-bottom","10px","margin-top","10px"],["color","primary","mat-raised-button","",3,"disabled","click"],["label","Register",4,"ngIf"],["label","Register"],["type","password","matInput","","placeholder","Password",3,"ngModel","ngModelChange"],["type","password","matInput","","placeholder","Confirm Password",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(a.Jc(0,"mat-card",0),a.Jc(1,"mat-tab-group",1),a.Wc("selectedIndexChange",(function(t){return e.selectedTabIndex=t})),a.Jc(2,"mat-tab",2),a.Jc(3,"div",3),a.Jc(4,"mat-form-field"),a.Jc(5,"input",4),a.Wc("ngModelChange",(function(t){return e.loginUsernameInput=t})),a.Ic(),a.Ic(),a.Ic(),a.Jc(6,"div"),a.Jc(7,"mat-form-field"),a.Jc(8,"input",5),a.Wc("ngModelChange",(function(t){return e.loginPasswordInput=t}))("keyup.enter",(function(){return e.login()})),a.Ic(),a.Ic(),a.Ic(),a.Jc(9,"div",6),a.Jc(10,"button",7),a.Wc("click",(function(){return e.login()})),a.Hc(11),a.Nc(12,Fz),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.zd(13,Bz,14,4,"mat-tab",8),a.Ic(),a.Ic()),2&t&&(a.pc(1),a.gd("selectedIndex",e.selectedTabIndex),a.pc(4),a.gd("ngModel",e.loginUsernameInput),a.pc(3),a.gd("ngModel",e.loginPasswordInput),a.pc(2),a.gd("disabled",e.loggingIn),a.pc(3),a.gd("ngIf",e.registrationEnabled))},directives:[zc,Ny,Dy,qd,Lm,yr,Er,es,Qa,ye.t],styles:[".login-card[_ngcontent-%COMP%]{max-width:600px;width:80%;margin:20px auto 0}"]}),Jz);function Kz(t,e){1&t&&(a.Jc(0,"mat-icon",10),a.Bd(1,"done"),a.Ic())}function Xz(t,e){1&t&&(a.Jc(0,"mat-icon",11),a.Bd(1,"error"),a.Ic())}function Yz(t,e){if(1&t&&(a.Jc(0,"div"),a.Jc(1,"strong"),a.Hc(2),a.Nc(3,Uz),a.Gc(),a.Ic(),a.Ec(4,"br"),a.Bd(5),a.Ic()),2&t){var i=a.ad(2);a.pc(5),a.Dd(" ",i.download.error," ")}}function Zz(t,e){if(1&t&&(a.Jc(0,"div"),a.Jc(1,"strong"),a.Hc(2),a.Nc(3,Gz),a.Gc(),a.Ic(),a.Bd(4),a.bd(5,"date"),a.Ic()),2&t){var i=a.ad(2);a.pc(4),a.Dd("\xa0",a.dd(5,1,i.download.timestamp_start,"medium")," ")}}function Qz(t,e){if(1&t&&(a.Jc(0,"div"),a.Jc(1,"strong"),a.Hc(2),a.Nc(3,Wz),a.Gc(),a.Ic(),a.Bd(4),a.bd(5,"date"),a.Ic()),2&t){var i=a.ad(2);a.pc(4),a.Dd("\xa0",a.dd(5,1,i.download.timestamp_end,"medium")," ")}}function tB(t,e){if(1&t&&(a.Jc(0,"div"),a.Jc(1,"strong"),a.Hc(2),a.Nc(3,qz),a.Gc(),a.Ic(),a.Bd(4),a.Ic()),2&t){var i=a.ad(2);a.pc(4),a.Dd("\xa0",i.download.fileNames.join(", ")," ")}}function eB(t,e){if(1&t&&(a.Jc(0,"mat-expansion-panel",12),a.Jc(1,"mat-expansion-panel-header"),a.Jc(2,"div"),a.Hc(3),a.Nc(4,Hz),a.Gc(),a.Ic(),a.Jc(5,"div",13),a.Jc(6,"div",14),a.Jc(7,"mat-panel-description"),a.Bd(8),a.bd(9,"date"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.zd(10,Yz,6,1,"div",15),a.zd(11,Zz,6,4,"div",15),a.zd(12,Qz,6,4,"div",15),a.zd(13,tB,5,1,"div",15),a.Ic()),2&t){var i=a.ad();a.pc(8),a.Cd(a.dd(9,5,i.download.timestamp_start,"medium")),a.pc(2),a.gd("ngIf",i.download.error),a.pc(1),a.gd("ngIf",i.download.timestamp_start),a.pc(1),a.gd("ngIf",i.download.timestamp_end),a.pc(1),a.gd("ngIf",i.download.fileNames)}}Vz=$localize(_templateObject237()),Hz=$localize(_templateObject238()),Uz=$localize(_templateObject239()),Gz=$localize(_templateObject240()),Wz=$localize(_templateObject241()),qz=$localize(_templateObject242());var iB,nB,aB,rB,oB=((iB=function(){function t(){_classCallCheck(this,t),this.download={uid:null,type:"audio",percent_complete:0,complete:!1,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,timestamp_start:null,timestamp_end:null,is_playlist:!1,error:!1},this.cancelDownload=new a.u,this.queueNumber=null,this.url_id=null}return _createClass(t,[{key:"ngOnInit",value:function(){if(this.download&&this.download.url&&this.download.url.includes("youtu")){var t=this.download.is_playlist?6:3,e=this.download.url.indexOf(this.download.is_playlist?"?list=":"?v=")+t;this.url_id=this.download.url.substring(e,this.download.url.length)}}},{key:"cancelTheDownload",value:function(){this.cancelDownload.emit(this.download)}}]),t}()).\u0275fac=function(t){return new(t||iB)},iB.\u0275cmp=a.xc({type:iB,selectors:[["app-download-item"]],inputs:{download:"download",queueNumber:"queueNumber"},outputs:{cancelDownload:"cancelDownload"},decls:17,vars:11,consts:[[3,"rowHeight","cols"],[3,"colspan"],[2,"display","inline-block","text-align","center","width","100%"],[1,"shorten"],[3,"value","mode"],["style","margin-left: 25px; cursor: default","matTooltip","The download is complete","matTooltip-i18n","",4,"ngIf"],["style","margin-left: 25px; cursor: default","matTooltip","An error has occurred","matTooltip-i18n","",4,"ngIf"],["mat-icon-button","","color","warn",2,"margin-bottom","2px",3,"click"],["fontSet","material-icons-outlined"],["class","ignore-margin",4,"ngIf"],["matTooltip","The download is complete","matTooltip-i18n","",2,"margin-left","25px","cursor","default"],["matTooltip","An error has occurred","matTooltip-i18n","",2,"margin-left","25px","cursor","default"],[1,"ignore-margin"],[2,"width","100%"],[2,"float","right"],[4,"ngIf"]],template:function(t,e){1&t&&(a.Jc(0,"div"),a.Jc(1,"mat-grid-list",0),a.Jc(2,"mat-grid-tile",1),a.Jc(3,"div",2),a.Jc(4,"span",3),a.Hc(5),a.Nc(6,Vz),a.Gc(),a.Bd(7),a.Ic(),a.Ic(),a.Ic(),a.Jc(8,"mat-grid-tile",1),a.Ec(9,"mat-progress-bar",4),a.zd(10,Kz,2,0,"mat-icon",5),a.zd(11,Xz,2,0,"mat-icon",6),a.Ic(),a.Jc(12,"mat-grid-tile",1),a.Jc(13,"button",7),a.Wc("click",(function(){return e.cancelTheDownload()})),a.Jc(14,"mat-icon",8),a.Bd(15,"cancel"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.zd(16,eB,14,8,"mat-expansion-panel",9),a.Ic()),2&t&&(a.pc(1),a.gd("rowHeight",50)("cols",24),a.pc(1),a.gd("colspan",7),a.pc(5),a.Dd("\xa0",e.url_id?e.url_id:e.download.uid,""),a.pc(1),a.gd("colspan",13),a.pc(1),a.gd("value",e.download.complete||e.download.error?100:e.download.percent_complete)("mode",e.download.complete||0!==e.download.percent_complete||e.download.error?"determinate":"indeterminate"),a.pc(1),a.gd("ngIf",e.download.complete),a.pc(1),a.gd("ngIf",e.download.error),a.pc(1),a.gd("colspan",4),a.pc(4),a.gd("ngIf",e.download.timestamp_start))},directives:[Zp,jp,wv,ye.t,Qa,wm,mv,xp,Ip,Op],pipes:[ye.f],styles:[".shorten[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block}.mat-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none}.ignore-margin[_ngcontent-%COMP%]{margin-left:-15px;margin-right:-15px;margin-bottom:-15px}"]}),iB);function sB(t,e){1&t&&(a.Jc(0,"span"),a.Bd(1,"\xa0"),a.Hc(2),a.Nc(3,aB),a.Gc(),a.Ic())}function cB(t,e){if(1&t){var i=a.Kc();a.Jc(0,"mat-card",11),a.Jc(1,"app-download-item",12),a.Wc("cancelDownload",(function(){a.rd(i);var t=a.ad().$implicit,e=a.ad(2).$implicit;return a.ad().clearDownload(e.key,t.value.uid)})),a.Ic(),a.Ic()}if(2&t){var n=a.ad(),r=n.$implicit,o=n.index;a.pc(1),a.gd("download",r.value)("queueNumber",o+1)}}function lB(t,e){if(1&t&&(a.Jc(0,"div",9),a.zd(1,cB,2,2,"mat-card",10),a.Ic()),2&t){var i=e.$implicit;a.pc(1),a.gd("ngIf",i.value)}}function uB(t,e){if(1&t){var i=a.Kc();a.Hc(0),a.Jc(1,"mat-card",3),a.Jc(2,"h4",4),a.Hc(3),a.Nc(4,nB),a.Gc(),a.Bd(5),a.zd(6,sB,4,0,"span",2),a.Ic(),a.Jc(7,"div",5),a.Jc(8,"div",6),a.zd(9,lB,2,1,"div",7),a.bd(10,"keyvalue"),a.Ic(),a.Ic(),a.Jc(11,"div"),a.Jc(12,"button",8),a.Wc("click",(function(){a.rd(i);var t=a.ad().$implicit;return a.ad().clearDownloads(t.key)})),a.Bd(13,"Clear all downloads"),a.Ic(),a.Ic(),a.Ic(),a.Gc()}if(2&t){var n=a.ad().$implicit,r=a.ad();a.pc(5),a.Dd("\xa0",n.key," "),a.pc(1),a.gd("ngIf",n.key===r.postsService.session_id),a.pc(3),a.gd("ngForOf",a.dd(10,3,n.value,r.sort_downloads))}}function dB(t,e){if(1&t&&(a.Jc(0,"div"),a.zd(1,uB,14,6,"ng-container",2),a.Ic()),2&t){var i=e.$implicit,n=a.ad();a.pc(1),a.gd("ngIf",n.keys(i.value).length>0)}}function hB(t,e){1&t&&(a.Jc(0,"div"),a.Jc(1,"h4",4),a.Nc(2,rB),a.Ic(),a.Ic())}nB=$localize(_templateObject243()),aB=$localize(_templateObject244()),rB=$localize(_templateObject245());var pB,fB,mB,gB=((fB=function(){function t(e,i){_classCallCheck(this,t),this.postsService=e,this.router=i,this.downloads_check_interval=1e3,this.downloads={},this.interval_id=null,this.keys=Object.keys,this.valid_sessions_length=0,this.sort_downloads=function(t,e){return e.value.timestamp_start-t.value.timestamp_start}}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.getCurrentDownloads(),this.interval_id=setInterval((function(){t.getCurrentDownloads()}),this.downloads_check_interval),this.postsService.service_initialized.subscribe((function(e){e&&(t.postsService.config.Extra.enable_downloads_manager||t.router.navigate(["/home"]))}))}},{key:"ngOnDestroy",value:function(){this.interval_id&&clearInterval(this.interval_id)}},{key:"getCurrentDownloads",value:function(){var t=this;this.postsService.getCurrentDownloads().subscribe((function(e){e.downloads&&t.assignNewValues(e.downloads)}))}},{key:"clearDownload",value:function(t,e){this.postsService.clearDownloads(!1,t,e).subscribe((function(t){}))}},{key:"clearDownloads",value:function(t){var e=this;this.postsService.clearDownloads(!1,t).subscribe((function(t){t.success&&(e.downloads=t.downloads)}))}},{key:"clearAllDownloads",value:function(){var t=this;this.postsService.clearDownloads(!0).subscribe((function(e){e.success&&(t.downloads=e.downloads)}))}},{key:"assignNewValues",value:function(t){var e,i=this,n=Object.keys(t),a=_createForOfIteratorHelper(Object.keys(this.downloads).filter((function(t){return-1===n.indexOf(t)})));try{for(a.s();!(e=a.n()).done;){var r=e.value;delete this.downloads[r]}}catch(c){a.e(c)}finally{a.f()}for(var o=function(e){var a=n[e],r=t[a],o=Object.keys(r);if(i.downloads[a]){var s,l=_createForOfIteratorHelper(Object.keys(i.downloads[a]).filter((function(t){return-1===o.indexOf(t)})));try{for(l.s();!(s=l.n()).done;){var u=s.value;console.log("removing missing download id"),delete i.downloads[a][u]}}catch(c){l.e(c)}finally{l.f()}}if(i.downloads[a])for(var d=0;d<o.length;d++){var h=o[d],p=t[a][h];if(i.downloads[a][h]){var f=i.downloads[a][h];f.percent_complete=p.percent_complete,f.complete=p.complete,f.timestamp_end=p.timestamp_end,f.downloading=p.downloading,f.error=p.error}else i.downloads[a][h]=p}else i.downloads[a]=r},s=0;s<n.length;s++)o(s)}},{key:"downloadsValid",value:function(){for(var t=!1,e=this.keys(this.downloads),i=0;i<e.length;i++)if(this.keys(this.downloads[e[i]]).length>0){t=!0;break}return t}}]),t}()).\u0275fac=function(t){return new(t||fB)(a.Dc(eD),a.Dc(wO))},fB.\u0275cmp=a.xc({type:fB,selectors:[["app-downloads"]],decls:4,vars:4,consts:[[2,"padding","20px"],[4,"ngFor","ngForOf"],[4,"ngIf"],[2,"padding-bottom","30px","margin-bottom","15px"],[2,"text-align","center"],[1,"container"],[1,"row"],["class","col-12 my-1",4,"ngFor","ngForOf"],["mat-stroked-button","","color","warn",2,"top","15px",3,"click"],[1,"col-12","my-1"],["class","mat-elevation-z3",4,"ngIf"],[1,"mat-elevation-z3"],[3,"download","queueNumber","cancelDownload"]],template:function(t,e){1&t&&(a.Jc(0,"div",0),a.zd(1,dB,2,1,"div",1),a.bd(2,"keyvalue"),a.zd(3,hB,3,0,"div",2),a.Ic()),2&t&&(a.pc(1),a.gd("ngForOf",a.cd(2,2,e.downloads)),a.pc(2),a.gd("ngIf",e.downloads&&!e.downloadsValid()))},directives:[ye.s,ye.t,zc,Qa,oB],pipes:[ye.l],styles:[""],data:{animation:[o("list",[p(":enter",[m("@items",(pB=f(),{type:12,timings:100,animation:pB}),{optional:!0})])]),o("items",[p(":enter",[u({transform:"scale(0.5)",opacity:0}),s("500ms cubic-bezier(.8,-0.6,0.2,1.5)",u({transform:"scale(1)",opacity:1}))]),p(":leave",[u({transform:"scale(1)",opacity:1,height:"*"}),s("1s cubic-bezier(.8,-0.6,0.2,1.5)",u({transform:"scale(0.5)",opacity:0,height:"0px",margin:"0px"}))])])]}}),fB),vB=[{path:"home",component:PL,canActivate:[eD]},{path:"player",component:DN,canActivate:[eD]},{path:"subscriptions",component:xz,canActivate:[eD]},{path:"subscription",component:zz,canActivate:[eD]},{path:"login",component:$z},{path:"downloads",component:gB},{path:"",redirectTo:"/home",pathMatch:"full"}],bB=((mB=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:mB}),mB.\u0275inj=a.Ac({factory:function(t){return new(t||mB)},imports:[[UO.forRoot(vB,{useHash:!0})],UO]}),mB),_B=i("2Yyj"),yB=i.n(_B);function kB(t){return"video"===t.element.id?EL||TL:DL||AL}Object(ye.K)(yB.a,"es");var wB,CB=((wB=function t(){_classCallCheck(this,t)}).\u0275mod=a.Bc({type:wB,bootstrap:[GR]}),wB.\u0275inj=a.Ac({factory:function(t){return new(t||wB)},providers:[eD],imports:[[ye.c,n.a,Me,da,Yv,lc,jm,_b,uc,Xf,z_,Vc,T_,er,nl,Zb,Cm,gg,Qp,Tp,Sv,Bv,kc,Aa,Ug,Gh,f_,Ug,gh,Xy,vv,dk,Dk,IC,HD,Ex,Mx,wE,hN,sN,fN,HF,Aj.forRoot({isVisible:kB}),UO,bB]]}),wB);a.ud(PL,[ye.q,ye.r,ye.s,ye.t,ye.A,ye.w,ye.x,ye.y,ye.z,ye.u,ye.v,$v,Xv,Sn,is,so,fo,yr,Wr,Yr,vr,oo,po,Kr,Er,Ar,Xs,ic,ac,oc,Ys,tc,es,Zo,qo,Im,Om,Id,qd,Nd,zd,Bd,Jd,Vd,Lm,Em,bb,vb,Ba,La,rs,ss,qs,ls,ds,N_,F_,zc,Bc,Jc,Dc,Ec,Ac,Tc,Pc,Mc,Lc,jc,Rc,Fc,Nc,A_,Qa,tr,Zc,tl,Gb,Wb,Ub,$b,Xb,qb,wm,rg,ng,lg,og,pa,sg,cg,Ta,mg,fg,Fm,Zp,jp,Fp,zp,Bp,Np,Ep,xp,Sp,Ip,Dp,Op,kp,wv,Nv,zv,bc,yc,Ea,Ng,Pg,Vg,Eg,Oh,jh,Fh,Nh,zh,d_,l_,uh,mh,dh,Ny,xy,Dy,Wy,Ky,Cy,mv,gv,uk,yk,Ok,Qw,nC,hC,sC,eC,gC,rC,fC,lC,dC,uC,bC,wC,yC,xC,zD,RD,JD,MD,TD,PD,Ql,Dx,Ix,bx,px,mx,fx,Rx,kE,bE,lN,uN,dN,GF,$F,KF,XF,YF,ZF,QF,tN,eN,iN,aN,rN,oN,pN,VF,Ej,RO,CO,xO,AO,wS,GR,Nj,PL,DN,Hj,hM,oB,xz,tz,zz,Ez,uz,QP,SD,pR,UL,nE,qE,zE,tF,$z,gB,_R,PR,GA,iA,gA,IA,EE,iT,KL,XA],[ye.b,ye.G,ye.p,ye.k,ye.E,ye.g,ye.C,ye.F,ye.d,ye.f,ye.i,ye.j,ye.l,nN,iE])},xDdU:function(t,e,i){var n,a,r=i("4fRq"),o=i("I2ZF"),s=0,c=0;t.exports=function(t,e,i){var l=e&&i||0,u=e||[],d=(t=t||{}).node||n,h=void 0!==t.clockseq?t.clockseq:a;if(null==d||null==h){var p=r();null==d&&(d=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==h&&(h=a=16383&(p[6]<<8|p[7]))}var f=void 0!==t.msecs?t.msecs:(new Date).getTime(),m=void 0!==t.nsecs?t.nsecs:c+1,g=f-s+(m-c)/1e4;if(g<0&&void 0===t.clockseq&&(h=h+1&16383),(g<0||f>s)&&void 0===t.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=f,c=m,a=h;var v=(1e4*(268435455&(f+=122192928e5))+m)%4294967296;u[l++]=v>>>24&255,u[l++]=v>>>16&255,u[l++]=v>>>8&255,u[l++]=255&v;var b=f/4294967296*1e4&268435455;u[l++]=b>>>8&255,u[l++]=255&b,u[l++]=b>>>24&15|16,u[l++]=b>>>16&255,u[l++]=h>>>8|128,u[l++]=255&h;for(var _=0;_<6;++_)u[l+_]=d[_];return e||o(u)}},xk4V:function(t,e,i){var n=i("4fRq"),a=i("I2ZF");t.exports=function(t,e,i){var r=e&&i||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||n)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var s=0;s<16;++s)e[r+s]=o[s];return e||a(o)}},zuWl:function(t,e,i){"use strict";!function(e){var i=/^(b|B)$/,n={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},a={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};function r(t){var e,r,o,s,c,l,u,d,h,p,f,m,g,v,b,_=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},y=[],k=0,w=void 0,C=void 0;if(isNaN(t))throw new TypeError("Invalid number");return r=!0===_.bits,f=!0===_.unix,p=void 0!==_.round?_.round:f?1:2,l=void 0!==_.locale?_.locale:"",u=_.localeOptions||{},m=void 0!==_.separator?_.separator:"",g=void 0!==_.spacer?_.spacer:f?"":" ",b=_.symbols||{},v=2===(e=_.base||2)&&_.standard||"jedec",h=_.output||"string",s=!0===_.fullform,c=_.fullforms instanceof Array?_.fullforms:[],w=void 0!==_.exponent?_.exponent:-1,o=2<e?1e3:1024,(d=(C=Number(t))<0)&&(C=-C),(-1===w||isNaN(w))&&(w=Math.floor(Math.log(C)/Math.log(o)))<0&&(w=0),8<w&&(w=8),"exponent"===h?w:(0===C?(y[0]=0,y[1]=f?"":n[v][r?"bits":"bytes"][w]):(k=C/(2===e?Math.pow(2,10*w):Math.pow(1e3,w)),r&&o<=(k*=8)&&w<8&&(k/=o,w++),y[0]=Number(k.toFixed(0<w?p:0)),y[0]===o&&w<8&&void 0===_.exponent&&(y[0]=1,w++),y[1]=10===e&&1===w?r?"kb":"kB":n[v][r?"bits":"bytes"][w],f&&(y[1]="jedec"===v?y[1].charAt(0):0<w?y[1].replace(/B$/,""):y[1],i.test(y[1])&&(y[0]=Math.floor(y[0]),y[1]=""))),d&&(y[0]=-y[0]),y[1]=b[y[1]]||y[1],!0===l?y[0]=y[0].toLocaleString():0<l.length?y[0]=y[0].toLocaleString(l,u):0<m.length&&(y[0]=y[0].toString().replace(".",m)),"array"===h?y:(s&&(y[1]=c[w]?c[w]:a[v][w]+(r?"bit":"byte")+(1===y[0]?"":"s")),"object"===h?{value:y[0],symbol:y[1],exponent:w}:y.join(g)))}r.partial=function(t){return function(e){return r(e,t)}},t.exports=r}("undefined"!=typeof window?window:global)}}]);