;(function() {'use strict';
var _dd = {"targ":{"v":{"geo/cy":"FI","geo/ct":"EU","geo/dm":"d"}}};  var _d =  'A|a-Z68mzysJg9gD|a|s|running|c|a:sd-ttl|fs|cust/role|ua/br|geo/dm|ua/mo|ua/os|dt/wp|w|B|md|id|3993628|id2|4151200|dc|drts|T|aa|a-7O9vfz8E4q|4605010|4606010|a-CKNGRh9vb8|70313|70315|a-538y9Qv7VZXz|a-preroll-adload-uutiset|a-text-to-speech-ink|cust/brand|a-is-android-forced-login|a-zmocjBN4co|cust/customertype-api|48002|48003|a-tLIkB5K1Hc|a-UDaMDnInZA|a-wrrWtqBc6V|cust/inter|score_name|RuutuVideoSeriesForUser-user-to-item|RuutuVideoSeriesForUser-user-to-item_contextual|a-hoIAcHci6FhW|a-SLBMp1RDpu|a-NsEaZ0saLO|cust/hs-cdp-segment|cust/isLoggedIn|cust/hs-p2p-grouped|C|a-SuaOuX7eY2pF|a-1U4ux1T5QRUu|a-f6YkaI4QEa|cust/p2p|cust/p2p_lightgbm|cust/subscriberDetail|a-zhbzdcroLy|a-4HpRJd6aYz|a-ezg7ZQQH7S|D|a-4mrZAWJYGq|a-GCQXXVl1fX|a-ZlXJtDXr5t|a-6IR1BTz50p|G|g-Q0fi9Otgz0|sec|gpr|ext|g-ODhojhYFTl|video_start|g-zLadmJg2Aw|g-dqQmbPVker|g-Wv4QvxMJOg|g-7xnTILu6zO|g-5GG9m8TkMT|g-21dVyDoUdK|g-1yDrMv3b6X|g-VMLqlgNRP5|g-XKWs0CTuhB|g-nyDtGkL4ev|g-ARdeDhOiX7|g-iBdWzUyDl8|g-ubMU03ngcM|g-N8fuAxN3ke|g-XzkLAitHOz|g-eWFHvbsMAe|g-NlpJvM1zge|g-LPUHbdIEyS|g-SkPARSXQ97|g-yhqeL1t1NA|g-6GuAHGgLu8|g-dGBneg3DFA|g-Mrwv91zU8C|g-iy6yIgkpUQ|g-94lEDwCoN5|g-gTvxTgW0bR|g-tTvNRZG0DA|g-4BLXrbCYNk|g-ZKaJJ2Whin|g-3d7W0xSrio|g-TDZBXRkvNj|g-LD5zl8V3uU|video_start_ic3|g-0XdEp7rcXW|g-EP5bJS2zLI|g-8GXgqUo5xR|podcast_start_content|podcast_add_favorite|podcast_save_episode|g-ZrJznlaSiM|g-AKMHVHIxWQ|g-7E5Ao6D8vL|c-q-sel-a-1U4ux1T5QRUu|c-q-sub-a-1U4ux1T5QRUu|g-oj40lLXlQo|g-nWrk5yqF5P|g-TFKjFfhSIK|g-WyZothdeO7|g-GRXOuhKVGf|g-iYwtauR6Or|g-qCUJTZntsS|g-WJqCp2FGTt|c-q-sel-a-6IR1BTz50p|c-q-sub-a-6IR1BTz50p|view_item|g-OkbJJo7fyt|g-qXYQBG4k0D|g-Z8XF0hg4RZ|g-balU4xuKTN|g-6BUl6UwZZl|me|l|al|cust/isSubscriber|cust/hs-cdp-ads-no-ads|cust/c-q-t-sf_PDoPOSvpDf|conf|sqs:use-ddid|dl:cdl|dl:px|dl:slx|dl:names|dl:ev-style|cdl|dl:key-sl|conductrics_selection|x-ga:wgi|wa:gpa-att|data-c-a|dl:sr|dl:key-sr|conductrics_survey_response|bots:cust|js:ps-q|rt:tr-ids|cust/ruutu-purchase:true|#f26|cust/role:Subscribed_User|#f51|cust/role:Non_Logged_In_User|#f52|cust/role:Logged_In_User|#f53|cust/role:Subscribed_Avod_User|#f54|cust/p2p:1|#f58|cust/p2p:10|#f59|cust/p2p:2|#f60|cust/c-q-aa-a-jDvoaTnFlaDU:A|#f69|cust/c-q-aa-a-jDvoaTnFlaDU:B|#f70|cust/p2p_lightgbm:1|#f83|cust/p2p_lightgbm:10|#f84|cust/p2p_lightgbm:2|#f85|cust/p2p_lightgbm:3|#f86|cust/p2p_lightgbm:4|#f87|cust/p2p_lightgbm:5|#f88|cust/p2p_lightgbm:6|#f89|cust/p2p_lightgbm:7|#f90|cust/p2p_lightgbm:8|#f91|cust/p2p_lightgbm:9|#f92|cust/p2p:3|#f94|cust/p2p:4|#f95|cust/p2p:5|#f96|cust/p2p:6|#f97|cust/p2p:7|#f98|cust/p2p:8|#f99|cust/p2p:9|#f100|cust/c-q-aa-a-4DrHkPSiVmfu:A|#f107|cust/c-q-aa-a-4DrHkPSiVmfu:B|#f108|cust/ruutu-supla-cdp-segment:7590cfd8-f028-4d38-91bc-9a7d8209c9a8|#f119|cust/ruutu-supla-cdp-segment:440d6c51-9026-4fb3-a341-cf0d0516e3b1|#f121|cust/c-q-aa-a-A2GAhV5WCl:A|#f125|cust/c-q-aa-a-A2GAhV5WCl:B|#f126|cust/isSubscriber:Subscriber|#f167|cust/isSubscriber:Non-Subscriber|#f168|cust/subscriberDetail:Sample_Subscriber|#f176|cust/subscriberDetail:Combo_Subscriber|#f177|cust/subscriberDetail:Premium_Subscriber|#f178|cust/subscriberDetail:Organization_Subscriber|#f179|cust/subscriberDetail:Reading_Rights_User|#f180|cust/subscriberDetail:Non-Subscriber|#f181|cust/subscriberDetail:Non-Premium_Subscriber|#f182|cust/isLoggedIn:Not_LoggedIn|#f183|cust/isLoggedIn:LoggedIn|#f184|cust/c-q-aa-a-t0Hinex95g:A|#f282|cust/c-q-aa-a-t0Hinex95g:B|#f283|cust/c-q-aa-a-721R1gyUpb:A|#f295|cust/c-q-aa-a-721R1gyUpb:B|#f296|cust/sk_p2p_satakunnankansa_lightgbm:1|#f311|cust/sk_p2p_satakunnankansa_lightgbm:10|#f312|cust/sk_p2p_satakunnankansa_lightgbm:2|#f313|cust/sk_p2p_satakunnankansa_lightgbm:3|#f314|cust/sk_p2p_satakunnankansa_lightgbm:4|#f315|cust/sk_p2p_satakunnankansa_lightgbm:5|#f316|cust/sk_p2p_satakunnankansa_lightgbm:6|#f317|cust/sk_p2p_satakunnankansa_lightgbm:7|#f318|cust/sk_p2p_satakunnankansa_lightgbm:8|#f319|cust/sk_p2p_satakunnankansa_lightgbm:9|#f320|cust/ruutu-supla-cdp-segment:ff3651ae-be6b-4b64-bc93-36ed70f7d370|#f329|cust/ruutu-supla-cdp-segment:4c9ab752-8cc3-4980-86f3-fb35f9de6a13|#f330|cust/ruutu-supla-cdp-segment:e8b0b6d3-1dfe-44f8-85c4-ca945fe44d1c|#f331|cust/ruutu-supla-cdp-segment:7c0c24d8-f3e3-45bb-9baf-d7d2862bb28d|#f332|cust/ruutu-supla-cdp-segment:88ece6b8-a96a-4ca9-8bc1-c9c8da339d17|#f333|cust/ruutu-supla-cdp-segment:30104595-0dd1-48d6-bfc1-5d35f92a1bf5|#f334|cust/ruutu-supla-cdp-segment:9d19fc1b-2348-41ef-a47d-b022b8969705|#f335|cust/ruutu-supla-cdp-segment:e116e8e3-2491-4f12-967d-d671dfd41ef8|#f336|cust/ruutu-supla-cdp-segment:0ef8cb17-8e49-456c-8bc7-c2ac50de9c6b|#f337|cust/ruutu-supla-cdp-segment:b41f7b46-e13e-469f-8ee4-4e24db13b926|#f338|cust/c-q-aa-a-XWwb67LBi1:A|#f347|cust/c-q-aa-a-XWwb67LBi1:B|#f348|cust/c-q-aa-a-Q2h5sAFADd:A|#f435|cust/c-q-aa-a-Q2h5sAFADd:B|#f436|cust/hs-cdp-segment:d35801d6-baf2-463c-9416-e98e55069db4|#f437|cust/hs-cdp-segment:9bc95fd4-594f-4d08-945c-3083c76fd87c|#f438|cust/hs-cdp-segment:1a49662f-009f-4f2c-930e-867d6eaf0094|#f439|cust/hs-cdp-segment:7e92adbe-2ba7-4801-81b7-032aeab0b689|#f440|cust/hs-cdp-segment:0244864d-18f3-4bb4-ab4b-44a6c4c29a8e|#f441|cust/hs-cdp-segment:ddca1557-b54a-410c-bbca-db04abaf1fe4|#f442|cust/hs-cdp-segment:d4a41b75-fc9e-4687-9898-25ed3ddefc7b|#f443|cust/hs-cdp-segment:963ae6cd-5151-4c93-b451-ce5e7ef3ed42|#f459|cust/hs-cdp-segment:28bbd4de-d56b-4e75-b5b2-ecdbbe8f1375|#f461|cust/hs-cdp-segment:9d19fc1b-2348-41ef-a47d-b022b8969705|#f462|cust/hs-cdp-segment:7590cfd8-f028-4d38-91bc-9a7d8209c9a8|#f465|cust/hs-cdp-segment:1a8fe497-e176-45bd-ac18-f445d96d8935|#f466|cust/hs-cdp-segment:2520c64d-9ead-4d32-8fe7-82450a62911c|#f467|cust/hs-cdp-segment:3a68379d-74ce-4c4d-bab1-0fbe2e3efd37|#f468|cust/hs-cdp-segment:c28f96cb-2211-4684-8b60-945646268f15|#f469|cust/hs-cdp-segment:858d6f98-4ca0-4514-a2cf-b01e4eef68d8|#f475|cust/hs-cdp-segment:06f6f593-5c53-475a-84f2-88bc49c3cd4b|#f476|cust/hs-cdp-segment:6c562fea-0481-4a13-a619-efedadb18ce3|#f477|cust/hs-cdp-segment:01f80f1a-6f2c-4cc3-a545-6583f6c6829a|#f478|cust/hs-cdp-segment:81c9e1fd-0020-4ec8-8cfa-dc17004ad95b|#f479|cust/hs-p2p-grouped:top1-2|#f566|cust/hs-p2p-grouped:top3-4|#f567|cust/hs-p2p-grouped:bottom5-10|#f568|cust/rtu-cdp-nf-paywall-2x7:b41f7b46-e13e-469f-8ee4-4e24db13b926|#f852|cust/rtu-cdp-nf-paywall-2x7:628427f2-088e-4e0d-979e-6673ffd3d90c|#f853|cust/rtu-cdp-nf-paywall-2x7:28e47c25-0a0f-4d64-9d8e-6d327030c636|#f854|cust/rtu-cdp-nf-paywall-2x7:b9a80a05-166f-4c47-b1f8-fd8df19876b3|#f855|cust/c-q-aa-a-h84TW6ngiW:A|#f928|cust/c-q-aa-a-h84TW6ngiW:B|#f929|cust/c-q-aa-a-h84TW6ngiW:C|#f935|cust/c-q-aa-a-5huhy2Mouj:A|#f999|cust/c-q-aa-a-5huhy2Mouj:B|#f1000|cust/c-q-aa-a-5huhy2Mouj:C|#f1001|cust/hs-cdp-ads-no-ads:9f9361f8-b3e4-4df6-9713-bd261987daa3|#f1022|cust/hs-cdp-ads-no-ads:3d33c1cf-468a-457e-9ced-6da283ac946c|#f1023|cust/customertype-api:Subscribed_User|#f1050|cust/customertype-api:Non_Logged_In_User|#f1051|cust/customertype-api:Logged_In_User|#f1052|cust/customertype-api:Subscribed_Avod_User|#f1053|cust/c-q-t-sf_PDoPOSvpDf:an-q0h9|#f1070|cust/c-q-t-sf_PDoPOSvpDf:an-6lJr|#f1071|cust/c-q-t-sf_PDoPOSvpDf:an-jLjG|#f1072|cust/c-q-t-sf_PDoPOSvpDf:an-8xrv|#f1073|cust/brand:hs|#f1094|cust/brand:is|#f1095|cust/brand:al|#f1096|cust/brand:sk|#f1097|cust/brand:pm|#f1098|rt:a_codes|a-Y9hwvSKRu3|a-fIQyn7hkig|a-pDe8YxTB4Y7H|a-f6uidEx6Ru|a-gzk3gY761G|a-Q2h5sAFADd|a-uJ46HC0iG4yL|a-Hpv4Gcsg2l|a-F7oOD153N0|a-thEpJoAvnQ0C|a-CjT1OiWGCe|a-NgoRBbscLZ|a-VB02DkGXtf|a-ZwuZBJyajB|a-9SbYuZHlJP|a-8QfGAZqzXa|a-p46m0YpcAl|a-EtGfqdgysj|a-zTTgWB0em4|a-k76fvAGMIA|a-txtFKAulwO|a-CbH136spDK|a-3ynsBJVPOG|a-fJXiVWE2P4|a-mSkPXjJS3I|a-L08ZbiL6s5|a-Lg4KSPdSR8|a-RSUp155RUf|a-hN6SHmuP4jZC|a-8lV2BjP08y|a-cwgjoA0Dg7tx|a-DGPSO2gzXvii|a-xyhCwHwgwPTJ|a-ov8HGqSzbG|a-5huhy2Mouj|a-Jag2K3XgzZ|a-f6weVibCuwCE|a-bBWFGnZX8GG2|a-BZhWLcVZ0X|a-XsjR6qb32I|a-QBnbDpTWwijj|a-PfVW3bA78c|a-PkN4ZxlRRxU3|a-s2DE4MGSpS|a-G0B6Uned8c|a-rT8McHpUzL|a-6nKZG6euL6|wa:ready|rt:spa-states|#init|vs-qNL8ohkVSg|pv|cancellation_done|plus_purchase|vs-ChFTBMnT6e|interaction|loginStatus|vs-YmOfUZcSYJ|vs-WTeBd3Sgnf|vs-ZgFe5QpPgj|vs-qymqOW9gZs|vs-q0jp91M0Jz|vs-vKBX9mZkiU|video_visit|vs-ARaCDZ9664|vs-l6eQvLRhDP|vs-DSExoQX3jx|vs-T0iv8I3Pa4|vs-DHiZkUjVvI|vs-UAAfGWAf1V|vs-l9wlklJQ4h|vs-ruFUjLk3Vn|vs-uPKyHjKebM|vs-0GMlbyansW|vs-VS5Foal7Lp|vs-zjwMpr5s3t|vs-gQCP1duGZz|vs-W1iI4w8qs4|vs-Ej1LXWmAI0|vs-bEia1NWEYx|vs-BIfbt1Igjl|vs-CS5nPHkSB9|vs-6ThAfyUHtL|vs-CjUeuXp0Y0|vs-A49lPYS1Do|vs-xkQrpAwVlj|vs-fIZxt8w4A1|vs-LPlW799RaM|vs-PYC8htcA2P|vs-iTa2zyEZqE|vs-Y3p37JH3Hj|vs-ayoFznPjUE|vs-IhwEi1zx3Z|vs-F4RoDiJQhX|vs-AjCD6bwDv9|vs-OQAKNk5Q7d|vs-dlkLeJsssc|vs-qWJkRaJ46l|rt:spa-states-m|js:preboot-eps|wax|rt:spa-states-pb|dl:key-tr|conductrics_traits|rt:av-sels|event-queue:sqs-url|https://sanoma.cdn-v3.conductrics.com/661082963978/conductrics-30-sanoma-queue|rt:spa-states-ms|x-ga:gtm|x-ga:gat|x-ga:gao|admin-ui-server-d2:url|https://sanoma.conductrics.com|admin-ui-server:url|https://console-legacy-sanoma.conductrics.com|qa:v-qa|js:debug-all|dl:cdl-key|c_conductrics_data_layer|qa:env|q|acc:env|p|acc:code|ac-HxAwTabhao|pass:ua|pass:ip|pass:loc|pass:vid|pass:sid|pass:sess|pass:qa|pass:qax|rt:spa-states-pv|targ:traits-agent-max|a:vis-ttl|rt:sl-rate|targ:lookup-url|//api-sanoma.conductrics.com/ac-HxAwTabhao/v3/agent-api/resolver|targ:ext-tms|acc:c-dom|FI|dl:key-vs|conductrics_vstate|dl:key-ex|conductrics_commands|dl:past-events|a:session-ttl-secs|js:cook-dom|.hs.fi|targ:vid|_ga|qa:st-key|c-conductrics-qa|rt:g_codes|c-q-f-sf_S2QibRUtOd|c-q-f-sf_S2QibRUtOd_de|c-q-f-sf_S2QibRUtOd_pa|c-q-f-sf_S2QibRUtOd_pr|c-q-sel-a-Y9hwvSKRu3|c-q-sub-a-Y9hwvSKRu3|c-q-f-sf_Xw4s0npaOj|c-q-f-sf_Xw4s0npaOj_de|c-q-f-sf_Xw4s0npaOj_pa|c-q-f-sf_Xw4s0npaOj_pr|c-q-sel-a-fIQyn7hkig|c-q-sub-a-fIQyn7hkig|c-q-f-sf_Va7mY35ggU|c-q-f-sf_Va7mY35ggU_de|c-q-f-sf_Va7mY35ggU_pa|c-q-f-sf_Va7mY35ggU_pr|g-BKv1j4oXqj|g-zsww64babb|g-pHtVTax33a|g-ReoJredT3O|g-Y2Ef5phuJ2|g-Utqq6R0dDV|g-8TQaoHxH9k|g-KKfafOsBnJ|g-sFw2pHSKDm|g-HLPUNlWUIY|g-Va9Tineirh|g-RT74NMDJW0|c-q-sel-a-cwgjoA0Dg7tx|c-q-sub-a-cwgjoA0Dg7tx|c-q-sel-a-DGPSO2gzXvii|c-q-sub-a-DGPSO2gzXvii|c-q-sel-a-ov8HGqSzbG|c-q-sub-a-ov8HGqSzbG|c-q-sel-a-Jag2K3XgzZ|c-q-sub-a-Jag2K3XgzZ|c-q-sel-a-f6weVibCuwCE|c-q-sub-a-f6weVibCuwCE|g-K1zmWzOOwj|c-q-sel-a-bBWFGnZX8GG2|c-q-sub-a-bBWFGnZX8GG2|g-ZL3gExnqlX|g-SlNPyCCn6C|g-ORie28Tltx|g-7fxrUj4P6K|g-fuSh9HLb45|g-S13RpqHxQG|g-Ku4RxCgtcZ|g-SbpAhvEr7q|g-jrnsWNkAEN|c-q-sel-a-6nKZG6euL6|c-q-sub-a-6nKZG6euL6|diag|module|root|items|entry|wax-pre|vstate-apply|vstate|trigs|mode|present|sel|.summary|num|container|#__next|ms|dl_crit|conds|${st::=userAdParams:user_is_logged_in}|is|false|${st::=cookieConsent:spcx}|1|${dl::page.paywallStatus}|metered|all|.ab-test-metered-softwall-title|dl-ev|ev_conds|${dl::scrolledTo}|75|dl_ev|articleScroll|in|paid|paid-no-indicator|eventInfo|k|eventCategory|paywall|eventAction|show+kovamuuri|consent|consentStatus|accepted|${v.loc.qx}|sw|https://alasin-delivery.datadesk.hs.fi/|show+kovamuuri+dynamic|eventLabel|dynamic|api|api-steps|group|pre|features-profile|types|trait-read|ns|cust|type|hs-cdp-ads-no-ads|expr|${st::=sa-segments:webCdpSegments}|hs-cdp-segment|p2p_lightgbm|${targ.x-gcp-bq/hs_p2p_lightgbm}|p2p|${targ.x-gcp-bq/hs_p2p}|feature-set|feature|${targ.cust/p2p}|2|${targ.cust/p2p_lightgbm}|any|3|4|nin|sets|10|5|6|7|8|9|diags|decision|agent|select|choices|policy|r|reward|goal|countMax|valueMin|valueMax|valueDef|rw|ps_ok|wa-entry|wa-start|wa-decision|wa-await|selectors|.summary,+.iframe-container+>+iframe[src*="appId=655923bb-4aae-4756-a443-18eb3fa692bb"]|one|wa-script|selector|.summary,+.iframe-container+>+iframe[src*="appId=655923bb-4aae-4756-a443-18eb3fa692bb"]|prehide|watch|js-pmhTfFSee0FoJgitd9Ci-1722860305|confirm|ok|${targ.rand/r100}|lt|ra-max|${v.sels::a-SLBMp1RDpu::c}|.summary,+.iframe-container+>+iframe[src*="appId=655923bb-4aae-4756-a443-18eb3fa692bb"]|.summary,+.iframe-container+>+iframe[src*="appId=655923bb-4aae-4756-a443-18eb3fa692bb"]|js-AytgqvymM40GZMt64lfQ-1722860305|wa-css|css|.summary-is-hidden+{\n++display:+none+!important;\n}|className|c-conductrics-css+c-conductrics-css-430ccd98957dda03c386b69ba6ffc93c|https://www.hs.fi/|sub|art-|re-not|apps-html*|condsName|vstates|.summary,+.iframe-container+>+iframe[src*="appId=655923bb-4aae-4756-a443-18eb3fa692bb"]|options|await|js-WzEdgyKyh8OFgTnwCfE0-1710246202|${targ.ua/os}|i|m|${targ.cust/isLoggedIn}|LoggedIn|${targ.cust/isSubscriber}|isnt|Subscriber|cust/ref|cust/al_p2p_lightgbm|cust/sk_p2p_satakunnankansa_lightgbm|cust/hs-pe-front|cust/dont-show-ads|cust/entitle|${v.sels::a-NsEaZ0saLO::c}|js-n7tENWaxEdGhjkJiS4Dc-1710246202|js-a2py3iSlPvPprKhZEwAc-1710246202|${v.loc}|www.hs.fi+all|js_id|js-MYFqmvjRCjBmDFLEkYQg|switch|${v.traits}|has-any|cases|${targ.cust/hs-cdp-ads-no-ads}|9f9361f8-b3e4-4df6-9713-bd261987daa3|has-none|3d33c1cf-468a-457e-9ced-6da283ac946c|decision-reduce|f|js-x6gZChVBzYLY4xEkhjyO-1719917416|${v.sels::a-SuaOuX7eY2pF::c}|js-7cVwAynSw6IqUOKABGQ3-1719917354|wa-pre-un|exists|${v.sels::a-1U4ux1T5QRUu::c}|wa-survey|survey_code|su-1cEok1WqEMLM|submit_vstate|wa-survey-show|modal|focus_first|body|adjacency|beforeend|theme|st-iuMzbHF0lPetzE0|survey|code|fields|stars-5|sf_rkxuIoBSh0|active|title|Kuinka+helppoa+ostaminen+oli?|subtitle|Auta+meitä+kehittämään+palvelua|required|cssClass|text|sf_eC32io3q8M|Mikä+tilaamisessa+tuntui+hankalalta?|placeholder|Vastauksesi|${qfv::sf_rkxuIoBSh0}|lte|hidden|sf_fcQpMznG7D|readFrom|dl::page.pageInfo.pageName|show_submit|send_on_close|offer_max|farewell|keepUrl|labels|submit|Lähetä|langs|dom_id|_c_q_su_1cEok1WqEMLM|markup|<style+class=\'c-q-theme-style\'+data-survey=\'su-1cEok1WqEMLM\'+media=\'not+all\'+data-c-q-style-nonce>/*+CSS+Variables+used+by+Basic+Survey+Theme+*/\n.c-q-vars+{\n\n++/*+general+colors+for+the+survey+UI+"chrome"+*/\n++--bgcolor:+#fff;+/*+white+background+by+default+*/\n++--text-color:+#444;+/*+dark+grey+text+*/\n++--gray-1:+#333;\n++--gray-2:+#777;\n++--gray-3:+#aaa;\n++--gray-4:+#c0c0c0;\n++--gray-5:+#ddd;\n\n++/*+these+colors+affect+most+buttons+in+the+survey+*/\n++--btn-primary-bgcolor:+#010080;+/*+submit+buttons,+etc+(navy+by+default)+*/\n++--btn-primary-fgcolor:+#fff;+/*+white+*/\n++--btn-secondary-bgcolor:+#010080;+/*+most+other+buttons+(navy+by+default)+*/\n++--btn-secondary-fgcolor:+#fff;+/*+white+*/\n\n++/*+color+of+focus+outlines+for+numeric+rating+and+\'blocky+buttons\'+radios+*/\n++--input-focus-color:+#bf90ff;\n\n++/*+should+most+survey+content+be+centered+or+left-aligned?+*/\n++--align-horiz:+left;+/*+\'center\'+likely+better+if+multiple+questions+*/\n\n++/*+control+over+the+animation+used+to+show/hide+the+survey+*/\n++--anim-enter-duration:+0.5s;+/*+how+fast+should+the+survey+fade/slide+in?+*/\n++--anim-exit-duration:+0.5s;+/*+how+fast+should+the+survey+fade/slide+out?+*/\n++--anim-enter-delay:+0s;+/*+don\'t+use+this+to+delay+when+the+survey+appears+*/\n++--anim-exit-delay:+0.5s;+/*+a+small+delay+here+feels+more+natural+*/\n\n++/*+colors+for+the+"smiley/frowny"+question+type+*/\n++--btn-rating-icon-color-1:+#f51120;+/*+red++*/\n++--btn-rating-icon-color-2:+#fd870d;+/*+orange+*/\n++--btn-rating-icon-color-3:+#ffca3d;+/*+neutral+yellow+*/\n++--btn-rating-icon-color-4:+#77d62f;+/*+light+green+*/\n++--btn-rating-icon-color-5:+#37b647;+/*+dark+green+*/\n++--btn-rating-icon-color-n:+cadetblue;+/*+neutral+color+*/\n}\n\n/*+\n++show+survey+"inline"+(as+opposed+to+in+a+"modal"+overlay)+\n++(this+is+the+"small+screen"+version,+see+@media+block+below+for+larger)\n*/\n.c-q-survey.c-q-inline+{\n++++/*+position+-+"docked"+10px+from+bottom+of+page+*/\n++++position:+fixed;\n++++bottom:+10px;\n++++margin-left:+10px;\n++++margin-right:+10px;\n++++z-index:+2147483647;\n++++/*+size+*/\n++++min-width:+250px;\n++++width:+calc(100%25+-+20px);\n++++height:+auto;\n++++box-sizing:+border-box;\n++++/*+styling+*/\n++++background-color:+var(--bgcolor);\n++++border:+2px+solid;\n++++border-color:+var(--gray-3);\n++++border-radius:+5px;\n++++padding:+15px+20px;\n++++filter:+drop-shadow(2px+2px+2px+var(--gray-4));\n}\n/*+show+survey+"inline"+-+overrides+for+non-small+screens+*/\n@media+screen+and+(min-width:+600px)+{\n++.c-q-survey.c-q-inline+{\n++++bottom:+20px;\n++++left:+0;\n++++right:+0;\n++++margin:+auto;\n++++width:+50%25;\n++++min-width:+550px;\n++++max-width:+850px;\n++}\n}\n/*+entrance+animation+*/\n.c-q-survey.c-q-inline.c-q-animate-in:not(.c-q-submitted)+{\n++++animation:+c-q-fadeIn+var(--anim-enter-duration)+ease+backwards;\n++++animation-delay:+var(--anim-enter-delay);\n}\n/*+exit/hide+animation+*/+\n.c-q-survey.c-q-inline.c-q-animate-out.c-q-submitted+{\n++++animation:+c-q-fadeOut+var(--anim-exit-duration)+ease+forwards;\n++++animation-delay:+var(--anim-exit-delay);\n}\n\n@keyframes+c-q-fadeIn+{\n++from+{opacity:0;+transform:+translateY(80px)+translateX(0);}\n++to+{opacity:1;+transform:+translateY(0)+translateX(0)}\n}\n@keyframes+c-q-fadeOut+{\n++from+{opacity:1;+visibility:+visible;+transform:+translateY(0)+translateX(0);++}\n++to+{opacity:0;+visibility:+hidden;+transform:+translate3d(0,+100%25,+0);+}\n}\n\n@keyframes+c-q-appear+{\n++from+{opacity:0;+visibility:+hidden;+}\n++to+{opacity:1;+visibility:+visible;+}\n}\n\n.c-q-appear-anim+{\n++animation:+c-q-appear+var(--anim-enter-duration)+ease+backwards;\n}\n\n.c-q-heading+{\n++background-repeat:+no-repeat;\n++background-position:+center;\n++background-size:+contain;\n++margin-bottom:+10px;\n++color:+var(--text-color);\n}\n\n.c-q-farewell+{\n++text-align:+center;\n++font-size:+15px;\n++padding:+15px+10px;\n}\n\n/*+Basic+survey+theme+*/\n.c-q-field+{\n++display:+block;\n++margin-bottom:+10px;\n}\n.c-q-survey+.c-q-field-label+{\n++font-size:+14px;\n++display:+block;\n++color:+var(--text-color);\n++margin-bottom:+5px;\n++text-align:+var(--align-horiz);\n++border:+none;\n++font-weight:+500;\n}\n\n.c-q-field-subtitle+{\n++display:+block;\n++color:+var(--gray-2);\n}\n\n\n/*+for+randomizing+the+order+of+field+options/answers,+CSS+\'order\'+property+*/\n/*+NOTE:+possibly+these+should+apply+to+all+radio+buttons,+as+opposed+to+just+randomly-ordered+ones+*/\n.c-q-has-random-items+{\n++display:+flex;+/*+so+CSS+\'order\'+property+(set+at+runtime)+will+have+an+effect+*/\n++flex-wrap:+wrap;\n}\n.c-q-has-random-items+.c-q-field-option+{\n++display:+flex;\n++width:+100%25;+/*+so+each+option+takes+up+a+whole+line+*/\n}\n.c-q-has-random-items+.c-q-field-option.c-q-radio-group-item+{\n++align-items:+start;+/*+for+alignment+of+radio+button+to+its+label+*/\n}\n\n\n/*+normal+text+inputs/textareas+*/\n.c-q-input-text+{\n++width:+100%25;\n++padding:+2px+5px;\n++border-color:+var(--gray-2);\n++border-radius:+4px;\n}\n.c-q-input-text:focus+{\n++outline:+none;\n}\n/*+normal+checks/radios+*/\n.c-q-radio-group,+.c-q-check-group+{\n++margin-bottom:+10px;\n}\n.c-q-radio-label,+.c-q-check-label+{\n++padding-left:+4px;\n++margin-bottom:+0;\n}\n\n.c-q-html-check+{\n++opacity:+0;\n++position:+fixed;\n++width:+0;\n}\n.c-q-html-label+{\n++margin-bottom:+10px;\n}\n.c-q-html-group+{\n}\n\n/*+submit+button+*/\n.c-q-steps+{\n++display:+inline-block;\n}\n.c-q-submit+{\n++margin-top:+5px;\n++text-align:+var(--align-horiz);\n}\n.c-q-submit+button+{\n++background-color:+var(--btn-primary-bgcolor);\n++color:+var(--btn-primary-fgcolor);\n++border-radius:+4px;\n++border-color:+var(--btn-primary-bgcolor);\n++border-style:+solid;\n++padding:+5px+10px;\n++box-sizing:+border-box;\n++border-width:+1px;\n++cursor:+pointer;\n++margin:+0;\n++text-align:+center;\n++text-decoration:+none;\n++font-size:+16px;\n++padding:+8px+20px;\n}\n.c-q-submit+button:disabled+{\n++opacity:+0.6;\n++cursor:+not-allowed;\n}\n.c-q-submit+button.c-q-btn-secondary+{\n++background-color:+var(--btn-primary-fgcolor);\n++color:+var(--btn-primary-bgcolor);\n}\nbutton.c-q-btn-prev:before+{\n++content:+\'‹\';\n++padding-right:+5px;\n}\nbutton.c-q-btn-next:after+{\n++content:+\'›\';\n++padding-left:+5px;\n}\n\n/*+dismiss+button,+styled+as+an+"X"+at+top+right+*/\n.c-q-close-x+{\n++position:+absolute;\n++top:+0;\n++right:+0;\n++color:+var(--gray-2);\n++font-size:+20px;\n++font-family:+sans-serif;\n++padding:+10px;\n++background-color:+var(--bgcolor);\n++border:+none;\n++cursor:+pointer;\n}\n.c-q-close-x:before+{\n++content:++"⨂";\n}\n\n/*+SPECIAL+INPUT+STYLE:+Radio+buttons,+styled+as+\'blocky+buttons\',+styled+via+a+similar+approach+as+.custom-control+radios+in+bootstrap+*/\n.c-q-radio-group.c-q-radio-group-buttons+input[type=\'radio\']+{\n++opacity:+0;\n++position:+fixed;\n++width:+0;\n}\n.c-q-radio-group.c-q-radio-group-buttons+label+{\n++++display:+inline-block;\n++++background-color:+var(--bgcolor);\n++++padding:+3px+9px;\n++++border:+2px+solid;\n++++border-color:+var(--gray-3);\n++++border-radius:+5px;\n++++margin:+2px;\n++++cursor:+pointer;\n++++color:+var(--gray-1);\n++++width:+100%25;\n}\n.c-q-radio-group.c-q-radio-group-buttons+input[type="radio"]:checked+%2B+label+{\n++color:+var(--btn-primary-fgcolor);\n++background-color:+var(--btn-secondary-bgcolor);\n++border-color:+var(--btn-secondary-bgcolor);\n}\n.c-q-radio-group.c-q-radio-group-buttons+input[type="radio"]:focus+%2B+label+{\n++border-color:+var(--input-focus-color);\n}\n.c-q-radio-group.c-q-radio-group-buttons+>+.c-q-radio-group-item+{\n++text-align:+var(--align-horiz);\n}\n.c-q-btn,.c-q-close-x,+.c-q-submit+button+{\n++outline-color:+var(--input-focus-color);\n}\n\n\n/*+SPECIAL+INPUT+STYLE:+Checkbox+buttons,+styled+as+\'blocky+buttons\',+styled+via+a+similar+approach+as+.custom-control+radios+in+bootstrap+*/\n.c-q-check-group.c-q-check-group-buttons+input[type=\'checkbox\']+{\n++opacity:+0;\n++position:+fixed;\n++width:+0;\n}\n.c-q-check-group.c-q-check-group-buttons+label+{\n++++display:+inline-block;\n++++background-color:+var(--bgcolor);\n++++padding:+3px+9px;\n++++border:+1px+solid;\n++++border-color:+var(--gray-3);\n++++border-radius:+5px;\n++++margin:+2px;\n++++cursor:+pointer;\n++++color:+var(--gray-1);\n++++width:+100%25;\n++++font-size:+16px;\n}\n.c-q-check-group.c-q-check-group-buttons+input[type="checkbox"]:checked+%2B+label+{\n++color:+var(--btn-primary-fgcolor);\n++background-color:+var(--btn-secondary-bgcolor);\n++border-color:+var(--btn-secondary-bgcolor);\n}\n.c-q-check-group.c-q-check-group-buttons+>+.c-q-check-group-item+{\n++text-align:+var(--align-horiz);\n}\n\n\n.c-q-rating-label-before,+.c-q-rating-label-after+{\n++++padding:+5px;\n}\n\n.c-q-survey+fieldset.c-q-options-fieldset+{\n++display:+block;+/*+TODO+-+was+display:contents+but+resulted+in+uncentered+text+*/\n}\n\n/*+SPECIAL+INPUT+TYPE:+"rating+dots"+(radio+buttons,+styled+via+a+similar+approach+as+.custom-control+radios+in+bootstrap)+*/\n.c-q-rating-radios+{\n++white-space:+nowrap;\n++display:+flex;\n++align-items:+center;\n}\n.c-q-rating-radios+input[type=\'radio\']+{\n++opacity:+0;\n++position:+fixed;\n++width:+0;\n}\n.c-q-rating-radios+label+{\n++display:+inline-block;\n++background-color:+var(--bgcolor);\n++font-size:+16px;\n++border:+2px+solid+var(--gray-3);\n++border-radius:+50px;\n++margin:+2px;\n++cursor:+pointer;\n++color:+var(--gray-1);\n++flex-grow:+1;\n++text-align:+center;\n++padding-bottom:+4px;\n++padding-top:+4px;\n}\n@media+screen+and+(min-width:+600px)+{\n++.c-q-rating-radios+label+{\n++++padding-top:+8px;\n++++padding-bottom:+8px;\n++}\n}\n.c-q-rating-radios+input[type="radio"]:checked+%2B+label+{\n++background-color:+var(--gray-1);\n++color:+var(--bgcolor);\n}\n.c-q-rating-radios+input[type="radio"]:focus+%2B+label+{\n++border-color:+var(--input-focus-color);\n}\n\n/*+SPECIAL+INPUT+TYPE:+"smileys"+/+emoticons+(radio+buttons,+styled+via+a+similar+approach+as+.custom-control+radios+in+bootstrap)+*/\n.c-q-rating-icons+{\n++text-align:+var(--align-horiz);\n}\n.c-q-rating-icons+input[type=\'radio\']+{\n++opacity:+0;\n++position:+fixed;\n++width:+0;\n}\n.c-q-rating-icons+label+{\n++display:+inline-block;\n++background-color:+var(--bgcolor);\n++cursor:+pointer;\n++color:+var(--gray-1);\n++border:+2px+solid;\n++border-color:+var(--bgcolor);\n++font-size:+40px;\n++border-radius:+50px;\n++line-height:+55px;\n++padding:+0+8px;\n}\n/*+colors+for+each+radio+*/\n.c-q-rating-icons.c-q-rating-icons-colors+label.c-q-rating-icons-label-1+{\n++color:+var(--btn-rating-icon-color-1);\n}\n.c-q-rating-icons.c-q-rating-icons-colors+label.c-q-rating-icons-label-2+{\n++color:+var(--btn-rating-icon-color-2);\n}\n.c-q-rating-icons.c-q-rating-icons-colors+label.c-q-rating-icons-label-3+{\n++color:+var(--btn-rating-icon-color-3);\n}\n.c-q-rating-icons.c-q-rating-icons-colors+label.c-q-rating-icons-label-4+{\n++color:+var(--btn-rating-icon-color-4);\n}\n.c-q-rating-icons.c-q-rating-icons-colors+label.c-q-rating-icons-label-5+{\n++color:+var(--btn-rating-icon-color-5);\n}\n.c-q-rating-icons.c-q-rating-icons-neutral+label+{\n++color:+var(--btn-rating-icon-color-n);\n}\n\n/*+show+the+border+for+the+selected+radio+*/\n.c-q-rating-icons+input[type="radio"]:checked+%2B+label+{\n++border-color:+unset;\n}\n/*+use+a+dim+color+for+the+other+radios+(after+one+is+selected)+*/\n.c-q-field-filled+.c-q-rating-icons+input[type="radio"]:not(:checked)+%2B+label+{\n++color:+#33333363;\n}\n/*+the+emoticon+itself+*/\n.c-q-emoticon+{\n++overflow:+visible;\n++width:+1em;\n++height:+1em;\n++display:+inline-block;\n++vertical-align:+-0.125em;\n}\n\n\n/*+SPECIAL+INPUT+TYPE:+"1-5+Stars"+styled+rating+widgets+*/\n.c-q-rating-stars-container+{\n++display:+flex;\n++justify-content:+var(--align-horiz);\n}\n.c-q-rating-stars+{+\n++font-size:+38px;\n++border:+none;\n++float:+left;\n}\n.c-q-rating-stars+>+label+>+svg+{\n++overflow:+visible;\n}\n.c-q-rating-stars+>+input+{+\n++display:+none;+/*+hide+"normal"+radio+ui+*/\n}\n.c-q-rating-stars+>+label+{+\n++color:+var(--gray-5);+\n++float:+right;+\n++padding-right:+10px;\n++background-color:+unset+!important;+/*+in+case+host+page+defines+a+background+color+for+radio+labels+*/\n}\n.c-q-rating-stars+>+input:checked+~+label,+/*+show+gold+star+when+clicked+*/\n.c-q-rating-stars:not(:checked)+>+label:hover,+/*+hover+current+star+*/\n.c-q-rating-stars:not(:checked)+>+label:hover+~+label+{+color:+#FFD700;++}+/*+hover+previous+stars+in+list+*/\n\n.c-q-rating-stars+>+input:checked+%2B+label:hover,+/*+hover+current+star+when+changing+rating+*/\n.c-q-rating-stars+>+input:checked+~+label:hover,\n.c-q-rating-stars+>+label:hover+~+input:checked+~+label,+/*+lighten+current+selection+*/\n.c-q-rating-stars+>+input:checked+~+label:hover+~+label+{+color:+#FFED85;++}+\n\n\n/*+when+the+survey+is+displayed+in+a+"modal"+overlay/dialog+*/\n.c-q-modal+{\n++display:+none;\n++position:+relative;\n++font-family:+-apple-system,BlinkMacSystemFont,avenir+next,avenir,helvetica+neue,helvetica,ubuntu,roboto,noto,segoe+ui,arial,sans-serif;\n}\n.c-q-modal.is-open+{\n++display:+block;\n++z-index:+9999;\n}\n.c-q-modal-overlay+{\n++position:+fixed;\n++top:+0;\n++left:+0;\n++right:+0;\n++bottom:+0;\n++background:+rgba(0,0,0,0.2);\n++display:+flex;\n++justify-content:+center;\n++align-items:+center;\n}\n.c-q-modal-container+{\n++background-color:+var(--bgcolor);\n++padding:+30px;\n++max-width:+700px;\n++max-height:+100vh;\n++border-radius:+6px;\n++overflow-y:+auto;\n++box-sizing:+border-box;\n++border:+1px+solid+rgba(0,0,0,0.5);\n++box-shadow:+0+3px+7px+rgb(0+0+0+/+30%25);\n++opacity:+1;\n++position:+relative;\n}\n\n.c-q-survey+.c-q-a-sr-only,+.c-q-survey+.c-q-radio-group-focus+{\n++border:+0;\n++clip:+rect(0+0+0+0);\n++height:+1px;\n++margin:+-1px;\n++overflow:+hidden;\n++padding:+0;\n++position:+absolute;\n++width:+1px;\n}\n\n/*+give+"custom+radio+buttons"+a+different+appearance+when+none+of+the+radios+in+the+"radiogroup"+have+been+checked,+as+an+extra+"affordance"+for+accessibility+(see+#904)+*/\n.c-q-survey+[role=\'radiogroup\'].c-q-radio-group-unfilled+[role=\'radio\']+{\n++border:+2px+solid;\n++border-color:+var(--input-focus-color);\n}\n\n.c-q-input.c-q-input-text:focus-visible,+.c-q-input.c-q-input-select:focus-visible+{\n++outline-color:+var(--input-focus-color);\n++outline-width:+2px;\n++outline-style:+solid;\n}\n\n.c-q-survey+.c-q-a-sr-only-focusable+{\n++position:+static;\n++width:+auto;\n++height:+auto;\n++overflow:+visible;\n++clip:+auto;\n++white-space:+normal;\n}\n\n.c-q-survey+fieldset+{\n++min-width:+0;\n++padding:+0;\n++margin:+0;\n++border:+0;++\n}\n\n@keyframes+cqFadeIn+{\n++++from+{+opacity:+0;+}\n++++++to+{+opacity:+1;+}\n}\n@keyframes+cqFadeOut+{\n++++from+{+opacity:+1;+}\n++++++to+{+opacity:+0;+}\n}\n@keyframes+cqSlideIn+{\n++from+{+transform:+translateY(15%25);+}\n++++to+{+transform:+translateY(0);+}\n}\n@keyframes+cqSlideOut+{\n++++from+{+transform:+translateY(0);+}\n++++to+{+transform:+translateY(-10%25);+}\n}\n\n.c-q-modal-slide+{\n++display:+none;\n}\n\n.c-q-modal-slide.is-open+{\n++display:+block;\n}\n\n.c-q-modal-slide[aria-hidden="false"]+.c-q-modal-overlay+{\n++animation:+cqFadeIn+.35s+cubic-bezier(0.0,+0.0,+0.2,+1);\n}\n\n.c-q-modal-slide[aria-hidden="false"]+.c-q-modal-container+{\n++animation:+cqSlideIn+.35s+cubic-bezier(0,+0,+0.2,+1);\n}\n\n.c-q-modal-slide[aria-hidden="true"]+.c-q-modal-overlay+{\n++animation:+cqFadeOut+.35s+cubic-bezier(0.0,+0.0,+0.2,+1);\n}\n\n.c-q-modal-slide[aria-hidden="true"]+.c-q-modal-container+{\n++animation:+cqSlideOut+.35s+cubic-bezier(0,+0,+0.2,+1);\n}\n\n.c-q-modal-slide+.c-q-modal-container,\n.c-q-modal-slide+.c-q-modal-overlay+{\n++will-change:+transform;\n}</style><style+class=\'c-q-theme-style\'+data-survey=\'su-1cEok1WqEMLM\'+media=\'not+all\'+data-c-q-style-nonce>/*+CSS+Variables+used+by+Basic+Survey+Theme+*/\n.c-q-survey+{\n\n++++/*+general+colors+for+the+survey+UI+"chrome"+*/\n++++--bgcolor:+#fff;+/*+white+background+by+default+*/\n++++--text-color:+#444;+/*+dark+grey+text+*/\n++++--gray-1:+#333;\n++++--gray-2:+#777;\n++++--gray-3:+#aaa;\n++++--gray-4:+#c0c0c0;\n++++--gray-5:+#ddd;\n++\n++++/*+these+colors+affect+most+buttons+in+the+survey+*/\n++++--btn-primary-bgcolor:+#000000;+/*+submit+buttons,+etc+(navy+by+default)+*/\n++++--btn-primary-fgcolor:+#fff;+/*+white+*/\n++++--btn-secondary-bgcolor:+#010080;+/*+most+other+buttons+(navy+by+default)+*/\n++++--btn-secondary-fgcolor:+#fff;+/*+white+*/\n++\n++++/*+color+of+focus+outlines+for+numeric+rating+and+\'blocky+buttons\'+radios+*/\n++++--input-focus-color:+#219ebc;\n}\n\n.c-q-survey+.c-q-close-x+{\n++++color:+#000000;\n\n}\n.c-q-survey+.c-q-submit+button:disabled+{\n++++opacity:+0.9;\n}\n</style><aside+class="c-q-vars+c-q-survey+c-q-inline+c-q-animate-in+c-q-animate-out"+role="dialog"+aria-labelledby="c-q-field-id-sf_rkxuIoBSh0-label"+aria-modal="false"+id="_c_q_su_1cEok1WqEMLM">\n<div+class=\'c-q-container+c-q-survey-su-1cEok1WqEMLM+c-q-theme-st-iuMzbHF0lPetzE0\'><div+class=\'c-q-heading\'></div><form+class=\'c-q-survey+c-q-su-1cEok1WqEMLM\'>+<div+class=\'c-q-field+c-q-appear-anim\'+data-field="sf_rkxuIoBSh0"+class="{\'c-q-field-filled\':+values.sf_rkxuIoBSh0}"+rv-show="visible.sf_rkxuIoBSh0"><fieldset+class=\'c-q-options-fieldset\'>\n	<legend+id=\'c-q-field-id-sf_rkxuIoBSh0-label\'+class=\'c-q-field-label+c-q-field-title\'><span+data-lang-text=\'sf_rkxuIoBSh0.title\'>Kuinka+helppoa+ostaminen+oli?</span>+<span+class=\'c-q-field-subtitle\'+data-lang-text=\'sf_rkxuIoBSh0.subtitle\'>Auta+meitä+kehittämään+palvelua</span></legend>\n	<div+class=\'c-q-rating-stars-container\'>\n	<div+class=\'c-q-rating-stars+\'+>\n		<input+rv-checked=\'values.sf_rkxuIoBSh0+%7C+integer\'+data-field=\'sf_rkxuIoBSh0\'+rv-on-change=\'onFieldValue\'+type=\'radio\'+id=\'sf_rkxuIoBSh0_5\'+name=\'sf_rkxuIoBSh0\'+value=\'5\'/>\n<label+for=\'sf_rkxuIoBSh0_5\'+aria-label=\'5+Stars\'><span+class=\'c-q-a-sr-only\'+data-lang-text=\'a11y.emoticons-5-5\'+data-lang-label=\'a11y.emoticons-5-5\'>5+Stars</span>+<svg+aria-hidden="true"+focusable="false"+data-prefix="fas"+data-icon="smile"+role="img"+xmlns="http://www.w3.org/2000/svg"+viewBox="0+0+496+512"+class="c-q-emoticon"><path+fill="currentColor"+d="M259.3+17.8L194+150.2+47.9+171.5c-26.2+3.8-36.7+36.1-17.7+54.6l105.7+103-25+145.5c-4.5+26.3+23.2+46+46.4+33.7L288+439.6l130.7+68.7c23.2+12.2+50.9-7.4+46.4-33.7l-25-145.5+105.7-103c19-18.5+8.5-50.8-17.7-54.6L382+150.2+316.7+17.8c-11.7-23.6-45.6-23.9-57.4+0z"+class=""></path></svg>+</label><input+rv-checked=\'values.sf_rkxuIoBSh0+%7C+integer\'+data-field=\'sf_rkxuIoBSh0\'+rv-on-change=\'onFieldValue\'+type=\'radio\'+id=\'sf_rkxuIoBSh0_4\'+name=\'sf_rkxuIoBSh0\'+value=\'4\'/>\n<label+for=\'sf_rkxuIoBSh0_4\'+aria-label=\'4+Stars\'><span+class=\'c-q-a-sr-only\'+data-lang-text=\'a11y.emoticons-5-4\'+data-lang-label=\'a11y.emoticons-5-4\'>4+Stars</span>+<svg+aria-hidden="true"+focusable="false"+data-prefix="fas"+data-icon="smile"+role="img"+xmlns="http://www.w3.org/2000/svg"+viewBox="0+0+496+512"+class="c-q-emoticon"><path+fill="currentColor"+d="M259.3+17.8L194+150.2+47.9+171.5c-26.2+3.8-36.7+36.1-17.7+54.6l105.7+103-25+145.5c-4.5+26.3+23.2+46+46.4+33.7L288+439.6l130.7+68.7c23.2+12.2+50.9-7.4+46.4-33.7l-25-145.5+105.7-103c19-18.5+8.5-50.8-17.7-54.6L382+150.2+316.7+17.8c-11.7-23.6-45.6-23.9-57.4+0z"+class=""></path></svg>+</label><input+rv-checked=\'values.sf_rkxuIoBSh0+%7C+integer\'+data-field=\'sf_rkxuIoBSh0\'+rv-on-change=\'onFieldValue\'+type=\'radio\'+id=\'sf_rkxuIoBSh0_3\'+name=\'sf_rkxuIoBSh0\'+value=\'3\'/>\n<label+for=\'sf_rkxuIoBSh0_3\'+aria-label=\'3+Stars\'><span+class=\'c-q-a-sr-only\'+data-lang-text=\'a11y.emoticons-5-3\'+data-lang-label=\'a11y.emoticons-5-3\'>3+Stars</span>+<svg+aria-hidden="true"+focusable="false"+data-prefix="fas"+data-icon="smile"+role="img"+xmlns="http://www.w3.org/2000/svg"+viewBox="0+0+496+512"+class="c-q-emoticon"><path+fill="currentColor"+d="M259.3+17.8L194+150.2+47.9+171.5c-26.2+3.8-36.7+36.1-17.7+54.6l105.7+103-25+145.5c-4.5+26.3+23.2+46+46.4+33.7L288+439.6l130.7+68.7c23.2+12.2+50.9-7.4+46.4-33.7l-25-145.5+105.7-103c19-18.5+8.5-50.8-17.7-54.6L382+150.2+316.7+17.8c-11.7-23.6-45.6-23.9-57.4+0z"+class=""></path></svg>+</label><input+rv-checked=\'values.sf_rkxuIoBSh0+%7C+integer\'+data-field=\'sf_rkxuIoBSh0\'+rv-on-change=\'onFieldValue\'+type=\'radio\'+id=\'sf_rkxuIoBSh0_2\'+name=\'sf_rkxuIoBSh0\'+value=\'2\'/>\n<label+for=\'sf_rkxuIoBSh0_2\'+aria-label=\'2+Stars\'><span+class=\'c-q-a-sr-only\'+data-lang-text=\'a11y.emoticons-5-2\'+data-lang-label=\'a11y.emoticons-5-2\'>2+Stars</span>+<svg+aria-hidden="true"+focusable="false"+data-prefix="fas"+data-icon="smile"+role="img"+xmlns="http://www.w3.org/2000/svg"+viewBox="0+0+496+512"+class="c-q-emoticon"><path+fill="currentColor"+d="M259.3+17.8L194+150.2+47.9+171.5c-26.2+3.8-36.7+36.1-17.7+54.6l105.7+103-25+145.5c-4.5+26.3+23.2+46+46.4+33.7L288+439.6l130.7+68.7c23.2+12.2+50.9-7.4+46.4-33.7l-25-145.5+105.7-103c19-18.5+8.5-50.8-17.7-54.6L382+150.2+316.7+17.8c-11.7-23.6-45.6-23.9-57.4+0z"+class=""></path></svg>+</label><input+rv-checked=\'values.sf_rkxuIoBSh0+%7C+integer\'+data-field=\'sf_rkxuIoBSh0\'+rv-on-change=\'onFieldValue\'+type=\'radio\'+id=\'sf_rkxuIoBSh0_1\'+name=\'sf_rkxuIoBSh0\'+value=\'1\'/>\n<label+for=\'sf_rkxuIoBSh0_1\'+aria-label=\'1+Star\'><span+class=\'c-q-a-sr-only\'+data-lang-text=\'a11y.emoticons-5-1\'+data-lang-label=\'a11y.emoticons-5-1\'>1+Star</span>+<svg+aria-hidden="true"+focusable="false"+data-prefix="fas"+data-icon="smile"+role="img"+xmlns="http://www.w3.org/2000/svg"+viewBox="0+0+496+512"+class="c-q-emoticon"><path+fill="currentColor"+d="M259.3+17.8L194+150.2+47.9+171.5c-26.2+3.8-36.7+36.1-17.7+54.6l105.7+103-25+145.5c-4.5+26.3+23.2+46+46.4+33.7L288+439.6l130.7+68.7c23.2+12.2+50.9-7.4+46.4-33.7l-25-145.5+105.7-103c19-18.5+8.5-50.8-17.7-54.6L382+150.2+316.7+17.8c-11.7-23.6-45.6-23.9-57.4+0z"+class=""></path></svg>+</label>\n	</div>\n	<div+style=\'clear:both\'></div>\n</div>\n</fieldset></div>++<div+class=\'c-q-field+c-q-appear-anim\'+data-field="sf_eC32io3q8M"+class="{\'c-q-field-filled\':+values.sf_eC32io3q8M}"+rv-show="visible.sf_eC32io3q8M"><label+id=\'c-q-field-id-sf_eC32io3q8M-label\'+for=\'c-q-field-id-sf_eC32io3q8M\'+class=\'c-q-field-label+c-q-field-title\'><span+data-lang-text=\'sf_eC32io3q8M.title\'>Mikä+tilaamisessa+tuntui+hankalalta?</span>+<span+class=\'c-q-field-subtitle\'+data-lang-text=\'sf_eC32io3q8M.subtitle\'></span></label>\n<textarea+id=\'c-q-field-id-sf_eC32io3q8M\'+rv-value=\'values.sf_eC32io3q8M\'+rv-on-input=\'onFieldValue\'+data-field=\'sf_eC32io3q8M\'+type=\'text\'+class=\'c-q-input+c-q-input-text+\'++placeholder=\'Vastauksesi\'+rows=\'2\'></textarea></div>++<div+class=\'c-q-field+c-q-appear-anim\'+data-field="sf_fcQpMznG7D"+class="{\'c-q-field-filled\':+values.sf_fcQpMznG7D}"+rv-show="visible.sf_fcQpMznG7D"><label+id=\'c-q-field-id-sf_fcQpMznG7D-label\'+for=\'c-q-field-id-sf_fcQpMznG7D\'+class=\'c-q-field-label+c-q-field-title\'><span+data-lang-text=\'sf_fcQpMznG7D.title\'></span>+<span+class=\'c-q-field-subtitle\'+data-lang-text=\'sf_fcQpMznG7D.subtitle\'></span></label>\n<input+id=\'c-q-field-id-sf_fcQpMznG7D\'+type=\'hidden\'+x-model=\'values.sf_fcQpMznG7D\'></div>+++<div+class=\'c-q-submit\'+rv-show=\'buttonsVisible\'><div+class=\'c-q-steps\'><button+type=\'button\'+class=\'c-q-btn-prev+c-q-btn-secondary\'+rv-on-click=\'stepPrev\'+rv-enabled=\'stepPrevEnabled\'+rv-tabindex=\'stepPrevEnabled\'+rv-show=\'stepPrevVisible\'+data-lang-text=\'label.prev\'>Back</button>+<button+type=\'button\'+class=\'c-q-btn-next\'+rv-on-click=\'stepNext\'+rv-enabled=\'stepNextEnabled\'+rv-tabindex=\'stepNextEnabled\'+rv-show=\'stepNextVisible\'+data-lang-text=\'label.next\'>Next</button></div>+<button+type=\'button\'+class=\'c-q-submit-btn\'+rv-on-click=\'surveySubmit\'+rv-enabled=\'submitEnabled\'+rv-tabindex=\'submitEnabled\'+rv-show=\'submitVisible\'+data-lang-text=\'label.submit\'>Lähetä</button></div></form><button+type=\'button\'+class=\'c-q-close-x\'+rv-on-click=\'surveyClose\'+aria-label=\'Close+Survey\'+data-lang-label=\'a11y.survey-close\'></button></div>\n</aside>|values|auto_submit|steps|numeric|${dl::page.pageInfo.pageName}|wa-survey-submit|value_trait_map|assoc|q_names|q_vals|sel_g|https://www.hs.fi/u/oma/tilaa/kiitos/hs-|sw-not|https://www.hs.fi/u/oma/tilaa/kiitos/hs-digi-nayte|.ticker.ticker--promo-10|js-HyjG44fKq0PwABQSsP9u-1718883588|${v.sels::a-f6YkaI4QEa::c}|js-18xiPqYqLotpSYeAFqEr-1718883588|.ab-test-nav-login-button|js-RdVlKcGzXR9rUYUIxbkA-1722945969|20|${v.sels::a-zhbzdcroLy::c}|js-EEqPgaWOJW8gKx9EyeAX-1722945969|js-D55rbK7zySiOoMmsMetK-1722945969|.ab-test-article-body+%2B+.article-tail,+.ab-test-article-body+%2B+.article-tail--xl|.ab-test-article-body+%2B+.article-tail,+.ab-test-article-body+%2B+.article-tail--xl|js-H0IG0pjG57SZDdRWgK2X-1718697025|${dl::page.themetags}|Lifestyle|${dl::page.pageType}|Article|${dl::page.author}|STT|${v.sels::a-4HpRJd6aYz::c}|hs.fi|.ab-test-article-body+%2B+.article-tail,+.ab-test-article-body+%2B+.article-tail--xl|js-ZkmhuiuldcHtLniBuhOy|.ab-test-hard-paywall-title|js-WzEdgyKyh8OFgTnwCfE0-1718778960|${v.sels::a-ezg7ZQQH7S::c}|js-n7tENWaxEdGhjkJiS4Dc-1718778960|js-V3HqmOQAONCQTI1ph7Tt-1718778960|js-RCdtyAbGhBrkO2mWeoQc-1718778960|www.hs.fi+all|js-fuwUkKVeFlwJpPfJThow|.ab-test-hard-paywall-subscribe-button-left|js-3Puuuz03ha0EVjhGninB-1718790232|${v.sels::a-4mrZAWJYGq::c}|js-v7UAkTOKeFnSYQLMmOqn-1722497514|js-QhIKahpKUtPiJBdp3Jfs-1718789786|alasin-delivery.datadesk.hs.fi|js-LxFeurdGOOmdlTvHbnmL|js-WzEdgyKyh8OFgTnwCfE0-1718355217|${v.sels::a-GCQXXVl1fX::c}|js-n7tENWaxEdGhjkJiS4Dc-1718355170|js-V3HqmOQAONCQTI1ph7Tt-1718872226|www.hs.fi+all|js-H0IG0pjG57SZDdRWgK2X-1718027550|qa|${v.sels::a-ZlXJtDXr5t::c}|${gse::g-Z8XF0hg4RZ}|${v.sels::a-6IR1BTz50p::c}|su-eHzqbTrPuWW0|msg|sf_69YMQqam4e|Kehitämme+artikkelitiivistelmiä+HS:n+sivustolla+–+vastaa+muutamaan+kysymykseen+ja+auta+meitä+parantamaan+lukukokemustasi!|sf_PDoPOSvpDf|Ikäryhmäsi?|an-q0h9|an-6lJr|an-jLjG|an-8xrv|trait|c-q-t-sf_PDoPOSvpDf|newPage|radios|sf_58bfW6REap|Oliko+tiivistelmä+mielestäsi+hyödyllinen?|an-ewAS|an-TxwN|an-uV1S|sf_r5AmeY4J1C|Kertoisitko+tarkemmin+kokemuksestasi?+Voit+kirjoittaa+tähän+myös+parannusehdotuksia.|checks|sf_9RR5tagJ0w|Mitkä+seuraavista+väittämistä+kuvaavat+mielestäsi+tiivistelmää?|an-wB7J|an-rFVr|an-Mpqk|an-o6bP|randomOrder|randomSkipStart|randomSkipEnd|sf_0t8eKdgf8L|Kerro+lisää+jos+niin+haluat|sf_xQ4C4GcbsX|Millaisissa+jutuissa+näkisit+mielelläsi+tiivistelmiä?|an-ImWL|an-hXPY|an-97tj|an-e6UX|an-hFTY|an-8ZEU|sf_dl3jFS4i1Q|Kerro+lisää+jos+niin+haluat|prev|Takaisin|next|Seuraava|Kiitos+ajastasi!|_c_q_su_eHzqbTrPuWW0|<style+class=\'c-q-theme-style\'+data-survey=\'su-eHzqbTrPuWW0\'+media=\'not+all\'+data-c-q-style-nonce>/*+CSS+Variables+used+by+Basic+Survey+Theme+*/\n.c-q-vars+{\n\n++/*+general+colors+for+the+survey+UI+"chrome"+*/\n++--bgcolor:+#fff;+/*+white+background+by+default+*/\n++--text-color:+#444;+/*+dark+grey+text+*/\n++--gray-1:+#333;\n++--gray-2:+#777;\n++--gray-3:+#aaa;\n++--gray-4:+#c0c0c0;\n++--gray-5:+#ddd;\n\n++/*+these+colors+affect+most+buttons+in+the+survey+*/\n++--btn-primary-bgcolor:+#010080;+/*+submit+buttons,+etc+(navy+by+default)+*/\n++--btn-primary-fgcolor:+#fff;+/*+white+*/\n++--btn-secondary-bgcolor:+#010080;+/*+most+other+buttons+(navy+by+default)+*/\n++--btn-secondary-fgcolor:+#fff;+/*+white+*/\n\n++/*+color+of+focus+outlines+for+numeric+rating+and+\'blocky+buttons\'+radios+*/\n++--input-focus-color:+#bf90ff;\n\n++/*+should+most+survey+content+be+centered+or+left-aligned?+*/\n++--align-horiz:+left;+/*+\'center\'+likely+better+if+multiple+questions+*/\n\n++/*+control+over+the+animation+used+to+show/hide+the+survey+*/\n++--anim-enter-duration:+0.5s;+/*+how+fast+should+the+survey+fade/slide+in?+*/\n++--anim-exit-duration:+0.5s;+/*+how+fast+should+the+survey+fade/slide+out?+*/\n++--anim-enter-delay:+0s;+/*+don\'t+use+this+to+delay+when+the+survey+appears+*/\n++--anim-exit-delay:+0.5s;+/*+a+small+delay+here+feels+more+natural+*/\n\n++/*+colors+for+the+"smiley/frowny"+question+type+*/\n++--btn-rating-icon-color-1:+#f51120;+/*+red++*/\n++--btn-rating-icon-color-2:+#fd870d;+/*+orange+*/\n++--btn-rating-icon-color-3:+#ffca3d;+/*+neutral+yellow+*/\n++--btn-rating-icon-color-4:+#77d62f;+/*+light+green+*/\n++--btn-rating-icon-color-5:+#37b647;+/*+dark+green+*/\n++--btn-rating-icon-color-n:+cadetblue;+/*+neutral+color+*/\n}\n\n/*+\n++show+survey+"inline"+(as+opposed+to+in+a+"modal"+overlay)+\n++(this+is+the+"small+screen"+version,+see+@media+block+below+for+larger)\n*/\n.c-q-survey.c-q-inline+{\n++++/*+position+-+"docked"+10px+from+bottom+of+page+*/\n++++position:+fixed;\n++++bottom:+10px;\n++++margin-left:+10px;\n++++margin-right:+10px;\n++++z-index:+2147483647;\n++++/*+size+*/\n++++min-width:+250px;\n++++width:+calc(100%25+-+20px);\n++++height:+auto;\n++++box-sizing:+border-box;\n++++/*+styling+*/\n++++background-color:+var(--bgcolor);\n++++border:+2px+solid;\n++++border-color:+var(--gray-3);\n++++border-radius:+5px;\n++++padding:+15px+20px;\n++++filter:+drop-shadow(2px+2px+2px+var(--gray-4));\n}\n/*+show+survey+"inline"+-+overrides+for+non-small+screens+*/\n@media+screen+and+(min-width:+600px)+{\n++.c-q-survey.c-q-inline+{\n++++bottom:+20px;\n++++left:+0;\n++++right:+0;\n++++margin:+auto;\n++++width:+50%25;\n++++min-width:+550px;\n++++max-width:+850px;\n++}\n}\n/*+entrance+animation+*/\n.c-q-survey.c-q-inline.c-q-animate-in:not(.c-q-submitted)+{\n++++animation:+c-q-fadeIn+var(--anim-enter-duration)+ease+backwards;\n++++animation-delay:+var(--anim-enter-delay);\n}\n/*+exit/hide+animation+*/+\n.c-q-survey.c-q-inline.c-q-animate-out.c-q-submitted+{\n++++animation:+c-q-fadeOut+var(--anim-exit-duration)+ease+forwards;\n++++animation-delay:+var(--anim-exit-delay);\n}\n\n@keyframes+c-q-fadeIn+{\n++from+{opacity:0;+transform:+translateY(80px)+translateX(0);}\n++to+{opacity:1;+transform:+translateY(0)+translateX(0)}\n}\n@keyframes+c-q-fadeOut+{\n++from+{opacity:1;+visibility:+visible;+transform:+translateY(0)+translateX(0);++}\n++to+{opacity:0;+visibility:+hidden;+transform:+translate3d(0,+100%25,+0);+}\n}\n\n@keyframes+c-q-appear+{\n++from+{opacity:0;+visibility:+hidden;+}\n++to+{opacity:1;+visibility:+visible;+}\n}\n\n.c-q-appear-anim+{\n++animation:+c-q-appear+var(--anim-enter-duration)+ease+backwards;\n}\n\n.c-q-heading+{\n++background-repeat:+no-repeat;\n++background-position:+center;\n++background-size:+contain;\n++margin-bottom:+10px;\n++color:+var(--text-color);\n}\n\n.c-q-farewell+{\n++text-align:+center;\n++font-size:+15px;\n++padding:+15px+10px;\n}\n\n/*+Basic+survey+theme+*/\n.c-q-field+{\n++display:+block;\n++margin-bottom:+10px;\n}\n.c-q-survey+.c-q-field-label+{\n++font-size:+14px;\n++display:+block;\n++color:+var(--text-color);\n++margin-bottom:+5px;\n++text-align:+var(--align-horiz);\n++border:+none;\n++font-weight:+500;\n}\n\n.c-q-field-subtitle+{\n++display:+block;\n++color:+var(--gray-2);\n}\n\n\n/*+for+randomizing+the+order+of+field+options/answers,+CSS+\'order\'+property+*/\n/*+NOTE:+possibly+these+should+apply+to+all+radio+buttons,+as+opposed+to+just+randomly-ordered+ones+*/\n.c-q-has-random-items+{\n++display:+flex;+/*+so+CSS+\'order\'+property+(set+at+runtime)+will+have+an+effect+*/\n++flex-wrap:+wrap;\n}\n.c-q-has-random-items+.c-q-field-option+{\n++display:+flex;\n++width:+100%25;+/*+so+each+option+takes+up+a+whole+line+*/\n}\n.c-q-has-random-items+.c-q-field-option.c-q-radio-group-item+{\n++align-items:+start;+/*+for+alignment+of+radio+button+to+its+label+*/\n}\n\n\n/*+normal+text+inputs/textareas+*/\n.c-q-input-text+{\n++width:+100%25;\n++padding:+2px+5px;\n++border-color:+var(--gray-2);\n++border-radius:+4px;\n}\n.c-q-input-text:focus+{\n++outline:+none;\n}\n/*+normal+checks/radios+*/\n.c-q-radio-group,+.c-q-check-group+{\n++margin-bottom:+10px;\n}\n.c-q-radio-label,+.c-q-check-label+{\n++padding-left:+4px;\n++margin-bottom:+0;\n}\n\n.c-q-html-check+{\n++opacity:+0;\n++position:+fixed;\n++width:+0;\n}\n.c-q-html-label+{\n++margin-bottom:+10px;\n}\n.c-q-html-group+{\n}\n\n/*+submit+button+*/\n.c-q-steps+{\n++display:+inline-block;\n}\n.c-q-submit+{\n++margin-top:+5px;\n++text-align:+var(--align-horiz);\n}\n.c-q-submit+button+{\n++background-color:+var(--btn-primary-bgcolor);\n++color:+var(--btn-primary-fgcolor);\n++border-radius:+4px;\n++border-color:+var(--btn-primary-bgcolor);\n++border-style:+solid;\n++padding:+5px+10px;\n++box-sizing:+border-box;\n++border-width:+1px;\n++cursor:+pointer;\n++margin:+0;\n++text-align:+center;\n++text-decoration:+none;\n++font-size:+16px;\n++padding:+8px+20px;\n}\n.c-q-submit+button:disabled+{\n++opacity:+0.6;\n++cursor:+not-allowed;\n}\n.c-q-submit+button.c-q-btn-secondary+{\n++background-color:+var(--btn-primary-fgcolor);\n++color:+var(--btn-primary-bgcolor);\n}\nbutton.c-q-btn-prev:before+{\n++content:+\'‹\';\n++padding-right:+5px;\n}\nbutton.c-q-btn-next:after+{\n++content:+\'›\';\n++padding-left:+5px;\n}\n\n/*+dismiss+button,+styled+as+an+"X"+at+top+right+*/\n.c-q-close-x+{\n++position:+absolute;\n++top:+0;\n++right:+0;\n++color:+var(--gray-2);\n++font-size:+20px;\n++font-family:+sans-serif;\n++padding:+10px;\n++background-color:+var(--bgcolor);\n++border:+none;\n++cursor:+pointer;\n}\n.c-q-close-x:before+{\n++content:++"⨂";\n}\n\n/*+SPECIAL+INPUT+STYLE:+Radio+buttons,+styled+as+\'blocky+buttons\',+styled+via+a+similar+approach+as+.custom-control+radios+in+bootstrap+*/\n.c-q-radio-group.c-q-radio-group-buttons+input[type=\'radio\']+{\n++opacity:+0;\n++position:+fixed;\n++width:+0;\n}\n.c-q-radio-group.c-q-radio-group-buttons+label+{\n++++display:+inline-block;\n++++background-color:+var(--bgcolor);\n++++padding:+3px+9px;\n++++border:+2px+solid;\n++++border-color:+var(--gray-3);\n++++border-radius:+5px;\n++++margin:+2px;\n++++cursor:+pointer;\n++++color:+var(--gray-1);\n++++width:+100%25;\n}\n.c-q-radio-group.c-q-radio-group-buttons+input[type="radio"]:checked+%2B+label+{\n++color:+var(--btn-primary-fgcolor);\n++background-color:+var(--btn-secondary-bgcolor);\n++border-color:+var(--btn-secondary-bgcolor);\n}\n.c-q-radio-group.c-q-radio-group-buttons+input[type="radio"]:focus+%2B+label+{\n++border-color:+var(--input-focus-color);\n}\n.c-q-radio-group.c-q-radio-group-buttons+>+.c-q-radio-group-item+{\n++text-align:+var(--align-horiz);\n}\n.c-q-btn,.c-q-close-x,+.c-q-submit+button+{\n++outline-color:+var(--input-focus-color);\n}\n\n\n/*+SPECIAL+INPUT+STYLE:+Checkbox+buttons,+styled+as+\'blocky+buttons\',+styled+via+a+similar+approach+as+.custom-control+radios+in+bootstrap+*/\n.c-q-check-group.c-q-check-group-buttons+input[type=\'checkbox\']+{\n++opacity:+0;\n++position:+fixed;\n++width:+0;\n}\n.c-q-check-group.c-q-check-group-buttons+label+{\n++++display:+inline-block;\n++++background-color:+var(--bgcolor);\n++++padding:+3px+9px;\n++++border:+1px+solid;\n++++border-color:+var(--gray-3);\n++++border-radius:+5px;\n++++margin:+2px;\n++++cursor:+pointer;\n++++color:+var(--gray-1);\n++++width:+100%25;\n++++font-size:+16px;\n}\n.c-q-check-group.c-q-check-group-buttons+input[type="checkbox"]:checked+%2B+label+{\n++color:+var(--btn-primary-fgcolor);\n++background-color:+var(--btn-secondary-bgcolor);\n++border-color:+var(--btn-secondary-bgcolor);\n}\n.c-q-check-group.c-q-check-group-buttons+>+.c-q-check-group-item+{\n++text-align:+var(--align-horiz);\n}\n\n\n.c-q-rating-label-before,+.c-q-rating-label-after+{\n++++padding:+5px;\n}\n\n.c-q-survey+fieldset.c-q-options-fieldset+{\n++display:+block;+/*+TODO+-+was+display:contents+but+resulted+in+uncentered+text+*/\n}\n\n/*+SPECIAL+INPUT+TYPE:+"rating+dots"+(radio+buttons,+styled+via+a+similar+approach+as+.custom-control+radios+in+bootstrap)+*/\n.c-q-rating-radios+{\n++white-space:+nowrap;\n++display:+flex;\n++align-items:+center;\n}\n.c-q-rating-radios+input[type=\'radio\']+{\n++opacity:+0;\n++position:+fixed;\n++width:+0;\n}\n.c-q-rating-radios+label+{\n++display:+inline-block;\n++background-color:+var(--bgcolor);\n++font-size:+16px;\n++border:+2px+solid+var(--gray-3);\n++border-radius:+50px;\n++margin:+2px;\n++cursor:+pointer;\n++color:+var(--gray-1);\n++flex-grow:+1;\n++text-align:+center;\n++padding-bottom:+4px;\n++padding-top:+4px;\n}\n@media+screen+and+(min-width:+600px)+{\n++.c-q-rating-radios+label+{\n++++padding-top:+8px;\n++++padding-bottom:+8px;\n++}\n}\n.c-q-rating-radios+input[type="radio"]:checked+%2B+label+{\n++background-color:+var(--gray-1);\n++color:+var(--bgcolor);\n}\n.c-q-rating-radios+input[type="radio"]:focus+%2B+label+{\n++border-color:+var(--input-focus-color);\n}\n\n/*+SPECIAL+INPUT+TYPE:+"smileys"+/+emoticons+(radio+buttons,+styled+via+a+similar+approach+as+.custom-control+radios+in+bootstrap)+*/\n.c-q-rating-icons+{\n++text-align:+var(--align-horiz);\n}\n.c-q-rating-icons+input[type=\'radio\']+{\n++opacity:+0;\n++position:+fixed;\n++width:+0;\n}\n.c-q-rating-icons+label+{\n++display:+inline-block;\n++background-color:+var(--bgcolor);\n++cursor:+pointer;\n++color:+var(--gray-1);\n++border:+2px+solid;\n++border-color:+var(--bgcolor);\n++font-size:+40px;\n++border-radius:+50px;\n++line-height:+55px;\n++padding:+0+8px;\n}\n/*+colors+for+each+radio+*/\n.c-q-rating-icons.c-q-rating-icons-colors+label.c-q-rating-icons-label-1+{\n++color:+var(--btn-rating-icon-color-1);\n}\n.c-q-rating-icons.c-q-rating-icons-colors+label.c-q-rating-icons-label-2+{\n++color:+var(--btn-rating-icon-color-2);\n}\n.c-q-rating-icons.c-q-rating-icons-colors+label.c-q-rating-icons-label-3+{\n++color:+var(--btn-rating-icon-color-3);\n}\n.c-q-rating-icons.c-q-rating-icons-colors+label.c-q-rating-icons-label-4+{\n++color:+var(--btn-rating-icon-color-4);\n}\n.c-q-rating-icons.c-q-rating-icons-colors+label.c-q-rating-icons-label-5+{\n++color:+var(--btn-rating-icon-color-5);\n}\n.c-q-rating-icons.c-q-rating-icons-neutral+label+{\n++color:+var(--btn-rating-icon-color-n);\n}\n\n/*+show+the+border+for+the+selected+radio+*/\n.c-q-rating-icons+input[type="radio"]:checked+%2B+label+{\n++border-color:+unset;\n}\n/*+use+a+dim+color+for+the+other+radios+(after+one+is+selected)+*/\n.c-q-field-filled+.c-q-rating-icons+input[type="radio"]:not(:checked)+%2B+label+{\n++color:+#33333363;\n}\n/*+the+emoticon+itself+*/\n.c-q-emoticon+{\n++overflow:+visible;\n++width:+1em;\n++height:+1em;\n++display:+inline-block;\n++vertical-align:+-0.125em;\n}\n\n\n/*+SPECIAL+INPUT+TYPE:+"1-5+Stars"+styled+rating+widgets+*/\n.c-q-rating-stars-container+{\n++display:+flex;\n++justify-content:+var(--align-horiz);\n}\n.c-q-rating-stars+{+\n++font-size:+38px;\n++border:+none;\n++float:+left;\n}\n.c-q-rating-stars+>+label+>+svg+{\n++overflow:+visible;\n}\n.c-q-rating-stars+>+input+{+\n++display:+none;+/*+hide+"normal"+radio+ui+*/\n}\n.c-q-rating-stars+>+label+{+\n++color:+var(--gray-5);+\n++float:+right;+\n++padding-right:+10px;\n++background-color:+unset+!important;+/*+in+case+host+page+defines+a+background+color+for+radio+labels+*/\n}\n.c-q-rating-stars+>+input:checked+~+label,+/*+show+gold+star+when+clicked+*/\n.c-q-rating-stars:not(:checked)+>+label:hover,+/*+hover+current+star+*/\n.c-q-rating-stars:not(:checked)+>+label:hover+~+label+{+color:+#FFD700;++}+/*+hover+previous+stars+in+list+*/\n\n.c-q-rating-stars+>+input:checked+%2B+label:hover,+/*+hover+current+star+when+changing+rating+*/\n.c-q-rating-stars+>+input:checked+~+label:hover,\n.c-q-rating-stars+>+label:hover+~+input:checked+~+label,+/*+lighten+current+selection+*/\n.c-q-rating-stars+>+input:checked+~+label:hover+~+label+{+color:+#FFED85;++}+\n\n\n/*+when+the+survey+is+displayed+in+a+"modal"+overlay/dialog+*/\n.c-q-modal+{\n++display:+none;\n++position:+relative;\n++font-family:+-apple-system,BlinkMacSystemFont,avenir+next,avenir,helvetica+neue,helvetica,ubuntu,roboto,noto,segoe+ui,arial,sans-serif;\n}\n.c-q-modal.is-open+{\n++display:+block;\n++z-index:+9999;\n}\n.c-q-modal-overlay+{\n++position:+fixed;\n++top:+0;\n++left:+0;\n++right:+0;\n++bottom:+0;\n++background:+rgba(0,0,0,0.2);\n++display:+flex;\n++justify-content:+center;\n++align-items:+center;\n}\n.c-q-modal-container+{\n++background-color:+var(--bgcolor);\n++padding:+30px;\n++max-width:+700px;\n++max-height:+100vh;\n++border-radius:+6px;\n++overflow-y:+auto;\n++box-sizing:+border-box;\n++border:+1px+solid+rgba(0,0,0,0.5);\n++box-shadow:+0+3px+7px+rgb(0+0+0+/+30%25);\n++opacity:+1;\n++position:+relative;\n}\n\n.c-q-survey+.c-q-a-sr-only,+.c-q-survey+.c-q-radio-group-focus+{\n++border:+0;\n++clip:+rect(0+0+0+0);\n++height:+1px;\n++margin:+-1px;\n++overflow:+hidden;\n++padding:+0;\n++position:+absolute;\n++width:+1px;\n}\n\n/*+give+"custom+radio+buttons"+a+different+appearance+when+none+of+the+radios+in+the+"radiogroup"+have+been+checked,+as+an+extra+"affordance"+for+accessibility+(see+#904)+*/\n.c-q-survey+[role=\'radiogroup\'].c-q-radio-group-unfilled+[role=\'radio\']+{\n++border:+2px+solid;\n++border-color:+var(--input-focus-color);\n}\n\n.c-q-input.c-q-input-text:focus-visible,+.c-q-input.c-q-input-select:focus-visible+{\n++outline-color:+var(--input-focus-color);\n++outline-width:+2px;\n++outline-style:+solid;\n}\n\n.c-q-survey+.c-q-a-sr-only-focusable+{\n++position:+static;\n++width:+auto;\n++height:+auto;\n++overflow:+visible;\n++clip:+auto;\n++white-space:+normal;\n}\n\n.c-q-survey+fieldset+{\n++min-width:+0;\n++padding:+0;\n++margin:+0;\n++border:+0;++\n}\n\n@keyframes+cqFadeIn+{\n++++from+{+opacity:+0;+}\n++++++to+{+opacity:+1;+}\n}\n@keyframes+cqFadeOut+{\n++++from+{+opacity:+1;+}\n++++++to+{+opacity:+0;+}\n}\n@keyframes+cqSlideIn+{\n++from+{+transform:+translateY(15%25);+}\n++++to+{+transform:+translateY(0);+}\n}\n@keyframes+cqSlideOut+{\n++++from+{+transform:+translateY(0);+}\n++++to+{+transform:+translateY(-10%25);+}\n}\n\n.c-q-modal-slide+{\n++display:+none;\n}\n\n.c-q-modal-slide.is-open+{\n++display:+block;\n}\n\n.c-q-modal-slide[aria-hidden="false"]+.c-q-modal-overlay+{\n++animation:+cqFadeIn+.35s+cubic-bezier(0.0,+0.0,+0.2,+1);\n}\n\n.c-q-modal-slide[aria-hidden="false"]+.c-q-modal-container+{\n++animation:+cqSlideIn+.35s+cubic-bezier(0,+0,+0.2,+1);\n}\n\n.c-q-modal-slide[aria-hidden="true"]+.c-q-modal-overlay+{\n++animation:+cqFadeOut+.35s+cubic-bezier(0.0,+0.0,+0.2,+1);\n}\n\n.c-q-modal-slide[aria-hidden="true"]+.c-q-modal-container+{\n++animation:+cqSlideOut+.35s+cubic-bezier(0,+0,+0.2,+1);\n}\n\n.c-q-modal-slide+.c-q-modal-container,\n.c-q-modal-slide+.c-q-modal-overlay+{\n++will-change:+transform;\n}</style><style+class=\'c-q-theme-style\'+data-survey=\'su-eHzqbTrPuWW0\'+media=\'not+all\'+data-c-q-style-nonce>/*+CSS+Variables+used+by+Basic+Survey+Theme+*/\n.c-q-survey+{\n\n++++/*+general+colors+for+the+survey+UI+"chrome"+*/\n++++--bgcolor:+#fff;+/*+white+background+by+default+*/\n++++--text-color:+#444;+/*+dark+grey+text+*/\n++++--gray-1:+#333;\n++++--gray-2:+#777;\n++++--gray-3:+#aaa;\n++++--gray-4:+#c0c0c0;\n++++--gray-5:+#ddd;\n++\n++++/*+these+colors+affect+most+buttons+in+the+survey+*/\n++++--btn-primary-bgcolor:+#000000;+/*+submit+buttons,+etc+(navy+by+default)+*/\n++++--btn-primary-fgcolor:+#fff;+/*+white+*/\n++++--btn-secondary-bgcolor:+#010080;+/*+most+other+buttons+(navy+by+default)+*/\n++++--btn-secondary-fgcolor:+#fff;+/*+white+*/\n++\n++++/*+color+of+focus+outlines+for+numeric+rating+and+\'blocky+buttons\'+radios+*/\n++++--input-focus-color:+#219ebc;\n}\n\n.c-q-survey+.c-q-close-x+{\n++++color:+#000000;\n\n}\n.c-q-survey+.c-q-submit+button:disabled+{\n++++opacity:+0.9;\n}\n</style><aside+class="c-q-vars+c-q-survey+c-q-inline+c-q-animate-in+c-q-animate-out"+role="dialog"+aria-labelledby="c-q-field-id-sf_69YMQqam4e-label"+aria-modal="false"+id="_c_q_su_eHzqbTrPuWW0">\n<div+class=\'c-q-container+c-q-survey-su-eHzqbTrPuWW0+c-q-theme-st-iuMzbHF0lPetzE0\'><div+class=\'c-q-heading\'></div><form+class=\'c-q-survey+c-q-su-eHzqbTrPuWW0\'>+<div+class=\'c-q-field+c-q-appear-anim\'+data-field="sf_69YMQqam4e"+class="{\'c-q-field-filled\':+values.sf_69YMQqam4e}"+rv-show="visible.sf_69YMQqam4e"><p+class=\'c-q-msg+\'++data-lang-text=\'sf_69YMQqam4e.msg\'>Kehitämme+artikkelitiivistelmiä+HS:n+sivustolla+–+vastaa+muutamaan+kysymykseen+ja+auta+meitä+parantamaan+lukukokemustasi!</p></div>++<div+class=\'c-q-field+c-q-appear-anim\'+data-field="sf_PDoPOSvpDf"+class="{\'c-q-field-filled\':+values.sf_PDoPOSvpDf}"+rv-show="visible.sf_PDoPOSvpDf"><label+id=\'c-q-field-id-sf_PDoPOSvpDf-label\'+for=\'c-q-field-id-sf_PDoPOSvpDf\'+class=\'c-q-field-label+c-q-field-title\'><span+data-lang-text=\'sf_PDoPOSvpDf.title\'>Ikäryhmäsi?</span>+<span+class=\'c-q-field-subtitle\'+data-lang-text=\'sf_PDoPOSvpDf.subtitle\'></span></label>\n<select+id=\'c-q-field-id-sf_PDoPOSvpDf\'+rv-value=\'values.sf_PDoPOSvpDf\'+rv-on-change=\'onFieldValue\'+data-field=\'sf_PDoPOSvpDf\'+class=\'c-q-input+c-q-input-select+\'+><option+value=\'an-q0h9\'+data-lang-text=\'sf_PDoPOSvpDf_an-q0h9.name\'>Alle+25</option><option+value=\'an-6lJr\'+data-lang-text=\'sf_PDoPOSvpDf_an-6lJr.name\'>26-45</option><option+value=\'an-jLjG\'+data-lang-text=\'sf_PDoPOSvpDf_an-jLjG.name\'>46-64</option><option+value=\'an-8xrv\'+data-lang-text=\'sf_PDoPOSvpDf_an-8xrv.name\'>Yli+65</option></select></div>++<div+class=\'c-q-field+c-q-appear-anim\'+data-field="sf_58bfW6REap"+class="{\'c-q-field-filled\':+values.sf_58bfW6REap}"+rv-show="visible.sf_58bfW6REap"><fieldset+class=\'c-q-options-fieldset\'>\n	<legend+id=\'c-q-field-id-sf_58bfW6REap-label\'+class=\'c-q-field-label+c-q-field-title\'><span+data-lang-text=\'sf_58bfW6REap.title\'>Oliko+tiivistelmä+mielestäsi+hyödyllinen?</span>+<span+class=\'c-q-field-subtitle\'+data-lang-text=\'sf_58bfW6REap.subtitle\'></span></legend>\n	<div+role=\'radiogroup\'+rv-classunfilled=\'focus.sf_58bfW6REap\'+class=\'c-q-radio-group+\'+><input+class=\'c-q-radio-group-focus\'+aria-hidden=\'true\'+rv-on-focus=\'onFieldFocus\'+rv-on-blur=\'onFieldBlur\'+data-field=\'sf_58bfW6REap\'+type=\'radio\'+name=\'sf_58bfW6REap\'+value=\'\'+rv-disabled=\'values.sf_58bfW6REap\'+data-option-value=\'\'+rv-tabindex=\'values.sf_58bfW6REap\'><div+class=\'c-q-field-option+c-q-radio-group-item\'><input+id=\'radio_sf_58bfW6REap_an-ewAS\'+class=\'c-q-input+c-q-input-radio+c-q-a-sr-only+c-q-a-sr-only-focusable\'+rv-checked=\'values.sf_58bfW6REap\'+data-option-value=\'an-ewAS\'+rv-tabindexval=\'values.sf_58bfW6REap\'+data-field=\'sf_58bfW6REap\'+rv-on-change=\'onFieldValue\'+type=\'radio\'+name=\'sf_58bfW6REap\'+value=\'an-ewAS\'><label+for=\'radio_sf_58bfW6REap_an-ewAS\'+class=\'c-q-radio-label\'+role=\'radio\'+rv-ariachecked=\'values.sf_58bfW6REap\'+data-lang-text=\'sf_58bfW6REap_an-ewAS.name\'>Kyllä</label></div><div+class=\'c-q-field-option+c-q-radio-group-item\'><input+id=\'radio_sf_58bfW6REap_an-TxwN\'+class=\'c-q-input+c-q-input-radio+c-q-a-sr-only+c-q-a-sr-only-focusable\'+rv-checked=\'values.sf_58bfW6REap\'+data-option-value=\'an-TxwN\'+rv-tabindexval=\'values.sf_58bfW6REap\'+data-field=\'sf_58bfW6REap\'+rv-on-change=\'onFieldValue\'+type=\'radio\'+name=\'sf_58bfW6REap\'+value=\'an-TxwN\'><label+for=\'radio_sf_58bfW6REap_an-TxwN\'+class=\'c-q-radio-label\'+role=\'radio\'+rv-ariachecked=\'values.sf_58bfW6REap\'+data-lang-text=\'sf_58bfW6REap_an-TxwN.name\'>Ei</label></div><div+class=\'c-q-field-option+c-q-radio-group-item\'><input+id=\'radio_sf_58bfW6REap_an-uV1S\'+class=\'c-q-input+c-q-input-radio+c-q-a-sr-only+c-q-a-sr-only-focusable\'+rv-checked=\'values.sf_58bfW6REap\'+data-option-value=\'an-uV1S\'+rv-tabindexval=\'values.sf_58bfW6REap\'+data-field=\'sf_58bfW6REap\'+rv-on-change=\'onFieldValue\'+type=\'radio\'+name=\'sf_58bfW6REap\'+value=\'an-uV1S\'><label+for=\'radio_sf_58bfW6REap_an-uV1S\'+class=\'c-q-radio-label\'+role=\'radio\'+rv-ariachecked=\'values.sf_58bfW6REap\'+data-lang-text=\'sf_58bfW6REap_an-uV1S.name\'>En+osaa+sanoa</label></div><input+class=\'c-q-radio-group-focus\'+aria-hidden=\'true\'+rv-on-focus=\'onFieldFocus\'+rv-on-blur=\'onFieldBlur\'+data-field=\'sf_58bfW6REap\'+type=\'radio\'+name=\'sf_58bfW6REap\'+value=\'\'+rv-disabled=\'values.sf_58bfW6REap\'+data-option-value=\'\'+rv-tabindex=\'values.sf_58bfW6REap\'></div>\n</fieldset></div>++<div+class=\'c-q-field+c-q-appear-anim\'+data-field="sf_r5AmeY4J1C"+class="{\'c-q-field-filled\':+values.sf_r5AmeY4J1C}"+rv-show="visible.sf_r5AmeY4J1C"><label+id=\'c-q-field-id-sf_r5AmeY4J1C-label\'+for=\'c-q-field-id-sf_r5AmeY4J1C\'+class=\'c-q-field-label+c-q-field-title\'><span+data-lang-text=\'sf_r5AmeY4J1C.title\'>Kertoisitko+tarkemmin+kokemuksestasi?+Voit+kirjoittaa+tähän+myös+parannusehdotuksia.</span>+<span+class=\'c-q-field-subtitle\'+data-lang-text=\'sf_r5AmeY4J1C.subtitle\'></span></label>\n<textarea+id=\'c-q-field-id-sf_r5AmeY4J1C\'+rv-value=\'values.sf_r5AmeY4J1C\'+rv-on-input=\'onFieldValue\'+data-field=\'sf_r5AmeY4J1C\'+type=\'text\'+class=\'c-q-input+c-q-input-text+\'++placeholder=\'\'+rows=\'2\'></textarea></div>++<div+class=\'c-q-field+c-q-appear-anim\'+data-field="sf_9RR5tagJ0w"+class="{\'c-q-field-filled\':+values.sf_9RR5tagJ0w}"+rv-show="visible.sf_9RR5tagJ0w"><fieldset+class=\'c-q-options-fieldset\'>\n	<legend+id=\'c-q-field-id-sf_9RR5tagJ0w-label\'+class=\'c-q-field-label+c-q-field-title\'><span+data-lang-text=\'sf_9RR5tagJ0w.title\'>Mitkä+seuraavista+väittämistä+kuvaavat+mielestäsi+tiivistelmää?</span>+<span+class=\'c-q-field-subtitle\'+data-lang-text=\'sf_9RR5tagJ0w.subtitle\'></span></legend>\n	<div+class=\'c-q-check-group++c-q-has-random-items\'++data-rand-from=\'0\'+data-rand-thru=\'3\'+><div+class=\'c-q-field-option\'><input+id=\'check_sf_9RR5tagJ0w_an-wB7J\'+class=\'c-q-input+c-q-input-check\'+rv-checkedvals=\'values.sf_9RR5tagJ0w\'+data-field=\'sf_9RR5tagJ0w\'+rv-on-change=\'onFieldValue\'+type=\'checkbox\'+name=\'sf_9RR5tagJ0w\'+value=\'an-wB7J\'><label+for=\'check_sf_9RR5tagJ0w_an-wB7J\'+class=\'c-q-check-label\'+data-lang-text=\'sf_9RR5tagJ0w_an-wB7J.name\'>Herätti+kiinnostuksen+lukea+artikkeli</label></div><div+class=\'c-q-field-option\'><input+id=\'check_sf_9RR5tagJ0w_an-rFVr\'+class=\'c-q-input+c-q-input-check\'+rv-checkedvals=\'values.sf_9RR5tagJ0w\'+data-field=\'sf_9RR5tagJ0w\'+rv-on-change=\'onFieldValue\'+type=\'checkbox\'+name=\'sf_9RR5tagJ0w\'+value=\'an-rFVr\'><label+for=\'check_sf_9RR5tagJ0w_an-rFVr\'+class=\'c-q-check-label\'+data-lang-text=\'sf_9RR5tagJ0w_an-rFVr.name\'>Teki+jutusta+selkeämmän+ja+helpomman+ymmärtää</label></div><div+class=\'c-q-field-option\'><input+id=\'check_sf_9RR5tagJ0w_an-Mpqk\'+class=\'c-q-input+c-q-input-check\'+rv-checkedvals=\'values.sf_9RR5tagJ0w\'+data-field=\'sf_9RR5tagJ0w\'+rv-on-change=\'onFieldValue\'+type=\'checkbox\'+name=\'sf_9RR5tagJ0w\'+value=\'an-Mpqk\'><label+for=\'check_sf_9RR5tagJ0w_an-Mpqk\'+class=\'c-q-check-label\'+data-lang-text=\'sf_9RR5tagJ0w_an-Mpqk.name\'>Tiivistelmä+ei+vastannut+jutun+sisältöä</label></div><div+class=\'c-q-field-option\'><input+id=\'check_sf_9RR5tagJ0w_an-o6bP\'+class=\'c-q-input+c-q-input-check\'+rv-checkedvals=\'values.sf_9RR5tagJ0w\'+data-field=\'sf_9RR5tagJ0w\'+rv-on-change=\'onFieldValue\'+type=\'checkbox\'+name=\'sf_9RR5tagJ0w\'+value=\'an-o6bP\'><label+for=\'check_sf_9RR5tagJ0w_an-o6bP\'+class=\'c-q-check-label\'+data-lang-text=\'sf_9RR5tagJ0w_an-o6bP.name\'>Sain+tarvittavat+tiedot+tiivistelmästä,+joten+en+lukenut+artikkelia+loppuun</label></div></div>\n</fieldset></div>++<div+class=\'c-q-field+c-q-appear-anim\'+data-field="sf_0t8eKdgf8L"+class="{\'c-q-field-filled\':+values.sf_0t8eKdgf8L}"+rv-show="visible.sf_0t8eKdgf8L"><label+id=\'c-q-field-id-sf_0t8eKdgf8L-label\'+for=\'c-q-field-id-sf_0t8eKdgf8L\'+class=\'c-q-field-label+c-q-field-title\'><span+data-lang-text=\'sf_0t8eKdgf8L.title\'>Kerro+lisää+jos+niin+haluat</span>+<span+class=\'c-q-field-subtitle\'+data-lang-text=\'sf_0t8eKdgf8L.subtitle\'></span></label>\n<textarea+id=\'c-q-field-id-sf_0t8eKdgf8L\'+rv-value=\'values.sf_0t8eKdgf8L\'+rv-on-input=\'onFieldValue\'+data-field=\'sf_0t8eKdgf8L\'+type=\'text\'+class=\'c-q-input+c-q-input-text+\'++placeholder=\'\'+rows=\'2\'></textarea></div>++<div+class=\'c-q-field+c-q-appear-anim\'+data-field="sf_xQ4C4GcbsX"+class="{\'c-q-field-filled\':+values.sf_xQ4C4GcbsX}"+rv-show="visible.sf_xQ4C4GcbsX"><fieldset+class=\'c-q-options-fieldset\'>\n	<legend+id=\'c-q-field-id-sf_xQ4C4GcbsX-label\'+class=\'c-q-field-label+c-q-field-title\'><span+data-lang-text=\'sf_xQ4C4GcbsX.title\'>Millaisissa+jutuissa+näkisit+mielelläsi+tiivistelmiä?</span>+<span+class=\'c-q-field-subtitle\'+data-lang-text=\'sf_xQ4C4GcbsX.subtitle\'></span></legend>\n	<div+class=\'c-q-check-group++c-q-has-random-items\'++data-rand-from=\'0\'+data-rand-thru=\'5\'+><div+class=\'c-q-field-option\'><input+id=\'check_sf_xQ4C4GcbsX_an-ImWL\'+class=\'c-q-input+c-q-input-check\'+rv-checkedvals=\'values.sf_xQ4C4GcbsX\'+data-field=\'sf_xQ4C4GcbsX\'+rv-on-change=\'onFieldValue\'+type=\'checkbox\'+name=\'sf_xQ4C4GcbsX\'+value=\'an-ImWL\'><label+for=\'check_sf_xQ4C4GcbsX_an-ImWL\'+class=\'c-q-check-label\'+data-lang-text=\'sf_xQ4C4GcbsX_an-ImWL.name\'>Ajankohtaisissa+uutisissa</label></div><div+class=\'c-q-field-option\'><input+id=\'check_sf_xQ4C4GcbsX_an-hXPY\'+class=\'c-q-input+c-q-input-check\'+rv-checkedvals=\'values.sf_xQ4C4GcbsX\'+data-field=\'sf_xQ4C4GcbsX\'+rv-on-change=\'onFieldValue\'+type=\'checkbox\'+name=\'sf_xQ4C4GcbsX\'+value=\'an-hXPY\'><label+for=\'check_sf_xQ4C4GcbsX_an-hXPY\'+class=\'c-q-check-label\'+data-lang-text=\'sf_xQ4C4GcbsX_an-hXPY.name\'>Ilmiöitä+tai+uutisia+selittävät+jutut</label></div><div+class=\'c-q-field-option\'><input+id=\'check_sf_xQ4C4GcbsX_an-97tj\'+class=\'c-q-input+c-q-input-check\'+rv-checkedvals=\'values.sf_xQ4C4GcbsX\'+data-field=\'sf_xQ4C4GcbsX\'+rv-on-change=\'onFieldValue\'+type=\'checkbox\'+name=\'sf_xQ4C4GcbsX\'+value=\'an-97tj\'><label+for=\'check_sf_xQ4C4GcbsX_an-97tj\'+class=\'c-q-check-label\'+data-lang-text=\'sf_xQ4C4GcbsX_an-97tj.name\'>Ihmisten+tositarinat</label></div><div+class=\'c-q-field-option\'><input+id=\'check_sf_xQ4C4GcbsX_an-e6UX\'+class=\'c-q-input+c-q-input-check\'+rv-checkedvals=\'values.sf_xQ4C4GcbsX\'+data-field=\'sf_xQ4C4GcbsX\'+rv-on-change=\'onFieldValue\'+type=\'checkbox\'+name=\'sf_xQ4C4GcbsX\'+value=\'an-e6UX\'><label+for=\'check_sf_xQ4C4GcbsX_an-e6UX\'+class=\'c-q-check-label\'+data-lang-text=\'sf_xQ4C4GcbsX_an-e6UX.name\'>Jutut,+joissa+on+arkea+helpottava+vinkki</label></div><div+class=\'c-q-field-option\'><input+id=\'check_sf_xQ4C4GcbsX_an-hFTY\'+class=\'c-q-input+c-q-input-check\'+rv-checkedvals=\'values.sf_xQ4C4GcbsX\'+data-field=\'sf_xQ4C4GcbsX\'+rv-on-change=\'onFieldValue\'+type=\'checkbox\'+name=\'sf_xQ4C4GcbsX\'+value=\'an-hFTY\'><label+for=\'check_sf_xQ4C4GcbsX_an-hFTY\'+class=\'c-q-check-label\'+data-lang-text=\'sf_xQ4C4GcbsX_an-hFTY.name\'>Kirja-+yms.+arvostelut</label></div><div+class=\'c-q-field-option\'><input+id=\'check_sf_xQ4C4GcbsX_an-8ZEU\'+class=\'c-q-input+c-q-input-check\'+rv-checkedvals=\'values.sf_xQ4C4GcbsX\'+data-field=\'sf_xQ4C4GcbsX\'+rv-on-change=\'onFieldValue\'+type=\'checkbox\'+name=\'sf_xQ4C4GcbsX\'+value=\'an-8ZEU\'><label+for=\'check_sf_xQ4C4GcbsX_an-8ZEU\'+class=\'c-q-check-label\'+data-lang-text=\'sf_xQ4C4GcbsX_an-8ZEU.name\'>Yleisönosasto+ja+pääkirjoitukset</label></div></div>\n</fieldset></div>++<div+class=\'c-q-field+c-q-appear-anim\'+data-field="sf_dl3jFS4i1Q"+class="{\'c-q-field-filled\':+values.sf_dl3jFS4i1Q}"+rv-show="visible.sf_dl3jFS4i1Q"><label+id=\'c-q-field-id-sf_dl3jFS4i1Q-label\'+for=\'c-q-field-id-sf_dl3jFS4i1Q\'+class=\'c-q-field-label+c-q-field-title\'><span+data-lang-text=\'sf_dl3jFS4i1Q.title\'>Kerro+lisää+jos+niin+haluat</span>+<span+class=\'c-q-field-subtitle\'+data-lang-text=\'sf_dl3jFS4i1Q.subtitle\'></span></label>\n<textarea+id=\'c-q-field-id-sf_dl3jFS4i1Q\'+rv-value=\'values.sf_dl3jFS4i1Q\'+rv-on-input=\'onFieldValue\'+data-field=\'sf_dl3jFS4i1Q\'+type=\'text\'+class=\'c-q-input+c-q-input-text+\'++placeholder=\'\'+rows=\'2\'></textarea></div>++<div+class=\'c-q-farewell\'+rv-show=\'farewellVisible\'+data-lang-text=\'label.farewell\'><p>Kiitos+ajastasi!</p></div>+<div+class=\'c-q-submit\'+rv-show=\'buttonsVisible\'><div+class=\'c-q-steps\'><button+type=\'button\'+class=\'c-q-btn-prev+c-q-btn-secondary\'+rv-on-click=\'stepPrev\'+rv-enabled=\'stepPrevEnabled\'+rv-tabindex=\'stepPrevEnabled\'+rv-show=\'stepPrevVisible\'+data-lang-text=\'label.prev\'>Takaisin</button>+<button+type=\'button\'+class=\'c-q-btn-next\'+rv-on-click=\'stepNext\'+rv-enabled=\'stepNextEnabled\'+rv-tabindex=\'stepNextEnabled\'+rv-show=\'stepNextVisible\'+data-lang-text=\'label.next\'>Seuraava</button></div>+<button+type=\'button\'+class=\'c-q-submit-btn\'+rv-on-click=\'surveySubmit\'+rv-enabled=\'submitEnabled\'+rv-tabindex=\'submitEnabled\'+rv-show=\'submitVisible\'+data-lang-text=\'label.submit\'>Lähetä</button></div></form><button+type=\'button\'+class=\'c-q-close-x\'+rv-on-click=\'surveyClose\'+aria-label=\'Close+Survey\'+data-lang-label=\'a11y.survey-close\'></button></div>\n</aside>|re|hs\\.fi\\/.%2B/art-.%2B|wa-goal|${v.loc.path}|mp|*|${dl::ecommerce.aid}|GQZMNO3BLZSLN|G4CB3BBODS4PS|GM9H298X5RVX4|GMLO89V5IUWWQ|event|dl_eventName|purchase|wa-reward|*/art-*|/click+subscribe/|ui+action|ticker|/ticker-promo/|/click+subscribe/|login|login+done|conductricsg|g|detail|valueSelectorType|dl|valueSelector|v|brand|Helsingin+Sanomat|conductricsg.v|aid|/PG68GQNJK8XM%7CGSN6OZRXNSBHM/|save+article|save|Helsingin+Sanomat|/G4TTYLZXHVRWS%7CGUTXP963T7QG9%7CGIXVMLOGB5XBO%7CG33TCO8PXGGQJ%7CGTTX92ZKVGXGV%7CG6B28FF59K263%7CG7UKHYXG7D3Z5%7CGQ4H3XH69DZY2/|Helsingin+Sanomat|/GI6TVNZUTDHTG%7CGQGHONHHUI8PR%7CGU9LH5SRJ7VSL%7CGQMKBFO93CF8Z%7CGLFQ2TY7D2HWJ%7CGY5DRWQRDOB5Z%7CGC5VGQCYLTU84%7CGK8HTBY5VDLK8/|/GNYMJCLBSGUF3%7CG35ZRTPY9MVWL/|/ZXLRY7XLRV5N%7CGMT9VQQNHRSWT/|ui+action|also+read+these+box|internal|ui+action|headline+list+box|Luetuimmat|GSRVQ9QIHZY68|/GTZMZQ6T6ZCJX%7CGFPOM9S5TZTLG%7CGUMO4SZGFXCLY%7CGL3DNU3LYWQMW%7CGX69XYPPDHJ34/|/G9U7PKJIPKBUJ%7CGX93U8HLDN5UV/|giosg|Article+NPS|/click+score/|scrolledTo|/75/|/GNFG6M9USDXDH%7CGSSZU3C26B7WH%7CGY5DRWQRDOB5Z%7CGLFQ2TY7D2HWJ%7CGJJBVSX9ZXGVV%7CGOHNUXS56QS93/|/GUSYLXN9Q2XZW%7CGIBVSJGL7VQ93%7CG6B28FF59K263%7CGTTX92ZKVGXGV%7CGNFOXKYKBO83P%7CG9JM5KJ7ZNX9Q/|https://alasin-delivery.datadesk.|/click+subscribe/|Tiivistelmä|Conductrics|conductrics_event|/script+error/|/script+failed/|gtm.load|/click+login+button/|vs|HS24-AI-test-new|summary+is+not+hidden|summary+is+hidden|mdn_only|flow|f-AXhbfRaelo|acc|api-rEBOUSkIQDfzLyWuZIpa|rt|https://api-sanoma.conductrics.com/ac-HxAwTabhao/v3/agent-api/js/f-AXhbfRaelo/dt-SuukBPeXknRdSFajR8ddXY7aW3Vmwl?apikey=api-rEBOUSkIQDfzLyWuZIpa|js|la|ts|ds|b|eph|tt|x-gcp-bq/hs_p2p_lightgbm|x-gcp-bq/hs_p2p|rand/r100|ttt|mvt|3.7.14|240318.30|d|dt-SuukBPeXknRdSFajR8ddXY7aW3Vmwl|di|#d1|dn|HS+production|n|14729^SBRQ8Q|S9X2HP|SAC2NG|SCFQPM|SF08I1|2R|1|SF2B8G|SEJUAE|2S|0|SFO8Y1|2I|A|SF27J0|0|2S|SFKSEE|SFOQFL|28|K|SFS3B0|SEWYPQ|U|Z|Z|SA8I01|SFZSR5|0|2S|SDS33D|SDVFN5|SHSQ0I|SEJHT8|A|U|1O|0|SFBEWL|0|1O|14|SFBN1G|4|2|4|SFDEGJ|SEVAPR|0|2S|SGI9YM|4MO00|6Y|1E0|1|1JK|1JK00|1|0|1|0|0|0|0|0|5|0|2R|9|2I|7PR|1|A|RR|1|F|7PR|1|A|7PR|1|F|RR|1|U|2R|0|7PR|1|F|2R|0|7PR|1|F|5|0|2R|9|2I|1|1|RR|1|U|3|0|RR|O|2I|RR|1|U|3|0|RR|11|2I|3|0|RR|O|2I|9|0|2R|9|2I|255R|1|F|255R|1|F|3|0|RR|11|2I|3|0|RR|O|2I|3|0|RR|11|2I|RR|1|F|5YC1R|1|F|3|0|RR|11|2I|3|0|RR|O|2I|7PR|1|F|5YC1R|1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$HY|IA|3|S3]]|GZ|@$GX|QM|JI|3F|GZ|@$GX|JH|JI|3F|JJ|13K|JM|13L|JN|13M]]]]]|$GX|QA|JI|3N|HE|@@QB|QC|QD]]|HP|@]|QJ|S4|QK|S2|HD|@]|S4|@CK]|GZ|@$GX|QM|JI|3N|GZ|@$GX|JH|JI|3N|JJ|13N|JM|13O|JN|13P]]]]]|$GX|QA|JI|3O|HE|@@QB|QC|QD]]|HP|@]|QJ|HO|QK|HX|HD|@$HY|HZ|3|RY]|$HY|I1|3|S5]|$HY|IA|3|S6]]|GZ|@$GX|QM|JI|3O|GZ|@$GX|JH|JI|3O|JJ|13Q|JM|13R|JN|13S]]]]]|$GX|QA|JI|3P|HE|@@QB|QC|QD]]|HP|@]|QJ|HO|QK|HX|HD|@$HY|HZ|3|RY]|$HY|I1|3|S5]|$HY|IA|3|S7]]|GZ|@$GX|QM|JI|3P|GZ|@$GX|JH|JI|3P|JJ|13T|JM|13U|JN|13V]]]]]]|HE|@]|S8|-1]]]]|S9|SA]|SB|$5|EL|HY|SC]|SD|$3|SE|SF|-5|SG|-5|EJ|-2|SH|13W|SI|SJ|SK|@1L|3U|1N|1F|1E|1G|3V|Y]|SL|@A|C|9|B|D|1L|1M|3U|1N|1F|KZ|L0|L1|L2|L3|1G|11|17|L4|SM|SN|SO]|SP|@A|C|9|B|D|1L|1M|3U|1N|1F|KZ|L0|L1|L2|L3|1G|11|17|L4]]|SQ|-3|R1|$R1|SR|SJ|SS|KT|13X|ST|SU|SV|SW|SX|SY|SZ|T0]]';  var _wa_preboot = function(visitor_callback) {function on_dl_event(e,n){window.dataLayer=window.dataLayer||[];var o=window.dataLayer.push;window.dataLayer.push=function(t){o(t),t&&t.event==e&&n()}}function is_consented(){try{var e=JSON.parse(localStorage.getItem("cookieConsent"))}catch(n){}return e&&e.spcx}function proceed(){proceeded||visitor_callback({}),proceeded=!0}var proceeded=!1;is_consented()?proceed():on_dl_event("consent",function(){is_consented()&&proceed()});}; var _wa_cjs = { 'js-pmhTfFSee0FoJgitd9Ci-1722860305': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
if(!requireCdx) { testing = true; }
const experimentId = 'HS24-AI-test-new';
const variantId = 'C';
const experimentName = experimentId + ' hidden summary';
const namelower = 'ab-test-from-conductrics-' + experimentId.toLowerCase() + '-' + variantId;
const variantName = 'hidden summary';

//these are just to remove warnings shown in editor
if (typeof cdx !== 'undefined') { window.cdx = window.cdx || {}; }
if (typeof dataLayer !== 'undefined') { window.dataLayer = window.dataLayer || []; }

//const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';
const sendGAEvent = function (label) { if(testing) {console.log(label); } else { dataLayer.push({'event': 'eventInfo', 'eventCategory': 'Conductrics', 'eventAction': 'HS24-AI-test-new', 'eventLabel': label});}};

try {
    const doExperimentChanges = function () {
        let experimentExists = document.querySelector('.summary-is-not-hidden');

        if (experimentExists) {
          //  sendGAEvent('script failed, experiment exists at ' + variantId);
        } else {
            // Dont remove the first .summary element
            const summaryElement = document.getElementsByClassName('summary')[0];
            if (summaryElement) {
                //do absolutely nothing, because this is control
            }
			
           if (requireCdx) {
            cdx.confirm(true);
           }
           sendGAEvent('summary is not hidden');
        }
    };

    doExperimentChanges();
    
} catch(e) {
    console.log(e);
    
    let err = e;
    let err_split = e.stack.split("\n");
    let err_line = false;
    if(err_split[1]) {
        err_line = err_split[1].split('>:');
    }
    if(err_line[1]) {
        err = err_line[1];
    }

    //this is needed in ticker-agents. If e does not contain text "confirm" or "cdx", then call the sendGAEvent function
    if(e.toString().indexOf('confirm') < 0 && e.toString().indexOf('cdx') < 0) {
        sendGAEvent('script error: ' + err);
    }
}
 },'js-AytgqvymM40GZMt64lfQ-1722860305': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
if(!requireCdx) { testing = true; }
const experimentId = 'HS24-AI-test-new';
const variantId = 'V1';
const experimentName = experimentId + ' hidden summary';
const namelower = 'ab-test-from-conductrics-' + experimentId.toLowerCase() + '-' + variantId;
const variantName = 'hidden summary';

//these are just to remove warnings shown in editor
if (typeof cdx !== 'undefined') { window.cdx = window.cdx || {}; }
if (typeof dataLayer !== 'undefined') { window.dataLayer = window.dataLayer || []; }

//const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';
const sendGAEvent = function (label) { if(testing) {console.log(label); } else { dataLayer.push({'event': 'eventInfo', 'eventCategory': 'Conductrics', 'eventAction': 'HS24-AI-test-new', 'eventLabel': label});}};

try {
    const doExperimentChanges = function () {
        let summaryHidden = document.querySelector('.summary-is-hidden');
        let iframeHidden = document.querySelector('.iframe-is-hidden');

        if (summaryHidden && iframeHidden) {
            sendGAEvent('script failed, experiment exists at ' + variantId);
        } else {
            // Add classes to .summary elements
            let summary = document.querySelector('.summary');
            if (summary) {
                summary.classList.add(namelower, 'hidden', 'summary-is-hidden');
                
                if (requireCdx) {
                    cdx.confirm(true);
                }

                sendGAEvent('summary is hidden');
            }

            // Handle iframe element
            const idToLookForInIframe = 'appId=655923bb-4aae-4756-a443-18eb3fa692bb';
            let summaryIframe = document.querySelector('.ab-test-article-body .iframe-container > iframe[src*="' + idToLookForInIframe + '"]');
            if (summaryIframe) {
                summaryIframe.classList.add(namelower, 'hidden', 'iframe-is-hidden');

                sendGAEvent('iframe is hidden');
            }
        }
    };

    doExperimentChanges();
} catch(e) {
    console.log(e);
    
    let err = e;
    let err_split = e.stack.split("\n");
    let err_line = false;
    if(err_split[1]) {
        err_line = err_split[1].split('>:');
    }
    if(err_line[1]) {
        err = err_line[1];
    }

    //this is needed in ticker-agents. If e does not contain text "confirm" or "cdx", then call the sendGAEvent function
    if(e.toString().indexOf('confirm') < 0 && e.toString().indexOf('cdx') < 0) {
        sendGAEvent('script error: ' + err);
    }
}
 },'js-MYFqmvjRCjBmDFLEkYQg': function (cdx) { window.conductrics_checkIfEligibileForP2p = function(isLoggedIn, p2p_lightgbm, p2p) {
    var isIphone = false;
    var isNotDirect = false;
    var isNotLoggedIn = false;
    var isNotTopDeciles = false;
    var topDecilesArray = ['1', '2', '3', '4']; //which deciles we look at (these are strings)

    if(navigator.userAgent.includes("iPhone")) {
    	isIphone = true; //is iphone because useragent has iphone
    }

    if(document.referrer != '' && document.referrer.includes('.hs.fi') === false) {
        isNotDirect = true; //is not direct because referrer exists and it's not hs.fi
    }

    if(isLoggedIn === 'Not_LoggedIn') {
        isNotLoggedIn = true; //is not logged-in because isLoggedIn=Not_LoggedIn     
    }

    if(!topDecilesArray.includes(p2p_lightgbm) || !topDecilesArray.includes(p2p)) {
        isNotTopDeciles = true; // is not top deciles because either p2p or p2p_lightgbm is bottom decile
    }

    //if ALL of those are TRUE, then exclude from this agent.
    if(isIphone && isNotDirect && isNotLoggedIn && isNotTopDeciles) {
        return false;
    }
    return true;
}

//if article publishDate older than 6 hours
function checkPublishDate(hours) {
  var publishedDate = false;
  var now = new Date();
  var wantedhours = 60 * 60 * 1000 * hours;
  var d = window.dataLayer;
  for(var i = 0; i<d.length;i++) {
    if(d[i].page && d[i].page.publishedDate) {
      publishedDate = d[i].page.publishedDate;
    }
  }

  if(publishedDate) {
    if(publishedDate < now-wantedhours) {
      //console.log('article older than 6 hours');
      return true;
    }
    else {
      //console.log('article younger than 6 hours');
      return false;
    }
  }
  else {
    //console.log('no published date');
    return false;
  }
  return false;
}

if(checkPublishDate(6)) { //6
	return true;
}
return false;
 },'js-WzEdgyKyh8OFgTnwCfE0-1710246202': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
const experimentId = 'HS23-236d';
const experimentName = experimentId + ' sw dynaaminen muuri';
const variantId = 'c';
const description = 'softwall';

if(window.location.hostname === 'test.hs.fi') { testing = true; }
if(!requireCdx) { testing = true; } //set this to true if not in conductrics for easier testing

//these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {}; }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || []; }

const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';
const sendGAEvent = function (label) { if(testing) {console.log(label); } else { dataLayer.push({'event': 'eventInfo', 'eventCategory': 'Conductrics', 'eventAction': 'conductrics_event', 'eventLabel': stringIdPlusVariant + label});}};

try {
    if(requireCdx === false || window.conductrics_checkIfEligibileForP2p(cdx.trait('isLoggedIn'), cdx.trait('p2p_lightgbm'), cdx.trait('p2p'))) {
        //actual code begins
        
        const doExperimentChanges = function () {
            let experimentExists = document.querySelector('.ab-test-softwall-title-modified');
            let mainElement = document.querySelector('.ab-test-metered-softwall'); //main element to look for
            if(experimentExists) {
                //sendGAEvent('exp already exists');
            } else if(mainElement) {
                let softwallTitle = document.querySelector('.ab-test-metered-softwall-title');
                let softwallButton = document.querySelector('.ab-test-metered-softwall-order-link').parentNode;
                if(softwallButton.href.indexOf('https://www.hs.fi/api/safe/v1/web/subscription-funnel/hs-digi-nayte') < 0) {
                    softwallButton = false;
                }

                if(mainElement && softwallTitle && softwallButton) { //---------actual changes here
                    let namelower = 'ab-test-from-conductrics-' + experimentId.toLowerCase() + '-' + variantId;
                    softwallTitle.classList.add('ab-test-softwall-title-modified', namelower);                    
                    if(requireCdx) {
                        cdx.confirm(true);
                    }
                    return true;
                }
                else {
                    sendGAEvent('script error: html invalid');
                }
            } else {
                sendGAEvent('script failed, element n/a');
            }
        };

        doExperimentChanges(); //finally call the function to do the changes
    };
} catch(err) {
    sendGAEvent('script error: ' + err);
}
 },'js-n7tENWaxEdGhjkJiS4Dc-1710246202': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
const experimentId = 'HS23-236d';
const experimentName = experimentId + ' sw dynaaminen muuri';
const variantId = 'v1';
const description = 'softwall changed to hard paywall';

if(window.location.hostname === 'test.hs.fi') { testing = true; }
if(!requireCdx) { testing = true; } //set this to true if not in conductrics for easier testing

//these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {}; }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || []; }

const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';
const sendGAEvent = function (label) { if(testing) {console.log(label); } else { dataLayer.push({'event': 'eventInfo', 'eventCategory': 'Conductrics', 'eventAction': 'conductrics_event', 'eventLabel': stringIdPlusVariant + label});}};

try {
    if(requireCdx === false || window.conductrics_checkIfEligibileForP2p(cdx.trait('isLoggedIn'), cdx.trait('p2p_lightgbm'), cdx.trait('p2p'))) {
        //actual code begins

        //content variables 
        let order_aid = 'GSRVQ9QIHZY68';
        let order_ref = 'vainomuuri';
        let order_offer = '3';
        let order_pagePath = '/hs-digi-tutustu';

        let logoInSvg = '<circle cx="12.5" cy="12" r="12" fill="#00194C"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7.11395 7.16037H8.57295C8.62628 7.16037 9.07295 7.14237 8.89428 7.65137C8.70295 8.1957 8.25128 9.29403 8.46561 9.93703C8.53695 10.187 8.76661 10.4907 9.31028 10.464H10.8373C11.1136 10.4464 11.4089 10.437 11.5696 9.93703C11.6409 9.68703 11.4089 8.66903 10.9983 7.65137C10.8909 7.40137 10.8909 7.15137 11.2303 7.15137H12.6093C13.0556 7.15137 12.9666 7.91903 12.9666 8.41903C12.9666 9.4727 12.5736 13.6514 12.8416 15.294C13.0379 16.4904 13.3056 16.8477 12.5556 16.8477H11.1006C10.6006 16.8477 10.5649 16.3657 10.6899 16.169C11.1186 15.4904 11.3686 13.9907 11.3686 13.4727C11.3686 12.9727 11.2856 12.316 10.6723 12.316H8.27395C7.63128 12.3517 7.47061 12.9727 7.45261 13.2227C7.38128 13.7407 7.38128 14.7407 7.98828 16.0797C8.16695 16.4904 8.38128 16.8477 7.88128 16.8477H6.31028C5.48895 16.8477 5.50661 14.9907 5.72095 14.2407C6.34595 11.919 7.02461 11.9547 7.27461 9.66903C7.31028 9.3477 7.27461 8.66903 6.89961 7.90137C6.77461 7.65137 6.72128 7.16937 7.11395 7.16037Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.8044 7.15856H18.6604C18.9271 7.14689 19.1757 7.30656 19.1757 7.60889C19.1757 8.10622 19.1757 8.20089 19.1224 8.57389C19.0691 8.91156 18.9271 8.96456 18.3941 8.78722C17.8254 8.59156 16.3144 7.52156 15.5427 8.34322C15.3297 8.56956 15.3011 9.10289 15.5781 9.47456C16.0807 10.1486 17.2477 10.5712 17.7227 10.8609C18.5871 11.3879 18.6751 11.4609 18.9721 11.8732C19.6884 12.8682 19.6117 15.4976 17.9947 16.4216C17.4084 16.7412 16.8577 16.8479 16.2714 16.8479H14.4767C14.0681 16.8479 13.8301 16.6712 13.8017 16.4216C13.7367 15.8469 13.7781 15.5279 13.8551 15.0716C13.9001 14.8036 13.9807 14.6419 14.4767 14.8406C15.2464 15.1486 15.7931 15.3966 16.4847 15.5512C16.9391 15.6532 17.7077 15.6209 18.0424 14.9529C18.3627 14.3139 18.1724 13.6852 17.5507 13.3656C15.9694 12.5659 15.2231 12.1219 14.7257 11.6242C14.2104 11.1266 13.9854 10.6769 14.0564 9.55722C14.0917 8.98889 14.8151 7.15856 16.8044 7.15856Z" fill="white"/>';
        let pvmCopyLaskePaivia = 30; //p.k. korvataan päivämäärällä joka lasketaan tästä
        let titleText = 'Tämä ja kaikki muut Hesarin jutut maksutta p.k. asti.'; // p.k. korvataan

        let productName = 'HS Digi+';
        let price = '0 €';
        let normPrice = 'norm. 19,50 € / kk';
        let cancelAnytime = '<svg viewBox="0 0 20 20" width="15" height="15" stroke="inherit" data-reactid="71"><path d="M9 15h2V9H9v6zm1-15C4.5 0 0 4.5 0 10s4.5 10 10 10 10-4.5 10-10S15.5 0 10 0zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8zM9 7h2V5H9v2z" fill-rule="evenodd"></path></svg> Voit peruuttaa koska tahansa';
        let primaryButtonText = 'Kokeile maksutta';

        //try { //not needed if inside checkIfEligibileForP2p
        let art = window.location.pathname.substring(window.location.pathname.indexOf('art-')+4);
        let tcid_orig = art.replace('.html', '');
        let mainElement = document.querySelector('.ab-test-metered-softwall'); //main element to look for
        
        const changeText = function () {
            let date = new Date();
            date.setDate(date.getDate() + pvmCopyLaskePaivia);

            let dd = date.getDate();
            let mm = date.getMonth()+1;
            let dateString = dd.toString() + '.' + mm.toString() + '.';

            let newText = titleText.replace('p.k.', dateString);
            return newText;
        };

        const addProductDetails = function () {
            let div = document.createElement('div');
            div.classList.add('ab-product-container');

            let pTitle = document.createElement('p');
            pTitle.innerText = productName;
            pTitle.classList.add('ab-product-title');

            let pPrice = document.createElement('p');
            pPrice.innerText = price;
            pPrice.classList.add('ab-product-price');

            let pNormPrice = document.createElement('p');
            pNormPrice.innerText = normPrice;
            pNormPrice.classList.add('ab-product-norm-price');

            let pCancelAnytime = document.createElement('p');
            pCancelAnytime.innerHTML = cancelAnytime;
            pCancelAnytime.classList.add('ab-product-cancel-anytime');

            div.appendChild(pTitle);
            div.appendChild(pPrice);
            div.appendChild(pNormPrice);
            div.appendChild(pCancelAnytime);

            return div;
        };

        const addLogo = function () {
            let div = document.createElement('div');
            div.classList.add('ab-logo-container');
            let logo = document.createElementNS("http://www.w3.org/2000/svg", "svg");
            logo.setAttribute('width', '50');
            logo.setAttribute('height', '48');
            logo.setAttribute('viewBox', '0 0 25 24');
            logo.classList.add('ab-logo-element');
            logo.innerHTML = logoInSvg;
            div.appendChild(logo);
            let span = document.createElement('span');
            span.innerText = 'Tilaajille';
            span.classList.add('ab-for-subscribers');
            div.appendChild(span);
            return div;
        };

        const changeLinkUrl = function (button) {
            let urlParams = {
                'aid': order_aid,
                'ref': order_ref,
                'offer': order_offer,
                'showPaymentPeriodList': null,
                'variant': null
            };

            let url = new URL(button.href);

            if (urlParams) {
                Object.keys(urlParams).forEach(function(key) {
                    if (urlParams[key] === null) {
                        url.searchParams.delete(key);
                    } else if (urlParams[key] !== undefined) {
                        url.searchParams.set(key, urlParams[key]);
                    }
                });
            }
            if (order_pagePath) {
                let path = url.pathname.split('/');
                path.pop();
                path = path.join('/') + order_pagePath;
                url.pathname = path;
            }
            if(primaryButtonText) {
                let buttonLabel = button.querySelector('.cursor-pointer');
                buttonLabel.innerText = primaryButtonText;
            }

            button.onclick = function(e) {
                //e.preventDefault();
                sendGAEvent('click subscribe väinömuuri');
            };

            return url.toString();
        };

        const setStyles = function () {
            let style = `			
                :root {
                    --main-color: #4196A4; /*#41a492;*/
                    --grey-color: #666;
                    --hover-color: #ebf4f5;
                    --font-family-header: Sanomat,Georgia,Baskerville,serif;
                    --font-family-text: Helsingin, Helvetica, Arial, sans-serif;
                }

                .ab-test-metered-softwall {
                    transition: none;
                    background-color: #fff;
                    color: #222;
                }

                .ab-logo-container {
                    position: absolute;
                    top: -24px;
                }

                .ab-logo-element {
                    margin: 0 auto;
                }

                .ab-for-subscribers {
                    text-transform: uppercase;
                    font-size: 12px;
                    font-family: var(--font-family-text);
                    background: #fff;
                    z-index: 1;
                    position: relative;
                    padding: 0 16px;
                }

                .ab-first-div {
                    padding: 20px 0;
                    margin-top: 40px;
                    border-top: 1px solid #ccc;
                    margin-left: 16px;
                    margin-right: 16px;
                }

                .ab-softwall-container {
                    position: relative;
                    flex-direction: column;
                }

                .ab-product-container {
                    margin: 0 auto;
                    text-align: center;
                    line-height: 1.2;
                }

                .ab-product-title {
                    font-weight: 700;
                    font-size: 18px;
                    line-height: inherit;
                    margin-bottom: 4px;
                }

                .ab-product-price {
                    font-family: var(--font-family-header);
                    font-weight: 800;
                    font-size: 32px;
                    line-height: inherit;
                    margin-bottom: 4px;
                }

                .ab-product-norm-price {
                    position: relative;
                    font-weight: 500;
                    font-size: 13px;
                    line-height: inherit;
                    margin-bottom: 4px;
                    color: var(--grey-color);
                    display:none;
                }

                .ab-product-norm-price:before {
                    border-top: 1px solid var(--grey-color);
                    position: absolute;
                    content: "";
                    left: 0;
                    top: 50%;
                    right: 0;
                    border-top: 1px solid var(--underline-color);
                    opacity: 1;
                    -webkit-transform: rotate(-5deg);
                    transform: rotate(-5deg);
                    width: 110px;
                    margin: 0 auto;           
                }

                .ab-product-cancel-anytime {
                    font-weight: 400;
                    font-size: 13px;
                    line-height: inherit;
                    margin-top: 8px;
                    margin-bottom: 4px;
                }

                .ab-product-cancel-anytime svg {
                    display: inline-block;
                    fill: var(--main-color);
                    width: 12px;
                    height: 12px;
                    vertical-align: baseline;
                }

                .ab-test-metered-softwall-title, .ab-test-metered-softwall-description {
                    text-align: center;
                    margin: 0 auto 8px;
                    color: inherit;
                }

                .ab-test-metered-softwall-title {
                    padding: 0;
                    font-size: 22px;
                }

                .ab-test-metered-softwall-description {
                    display: none;
                }

                .ab-button-div {
                    margin-top: 8px;
                    justify-content: center;
                }

                .ab-button-div .button {
                    transition: all 200ms;
                    min-width: max-content;
                }

                .ab-second-div {
                    margin-bottom: 8px;
                    flex-direction: column;
                }

                .ab-button-div .ab-test-metered-softwall-order-link {
                    background-color: var(--main-color);
                    color: #fff;
                    border: 1px solid var(--main-color);
                }

                .ab-test-metered-softwall-order-link:hover, .ab-test-metered-softwall-order-link:active, .ab-test-metered-softwall-order-link:focus {
                    background-color: var(--hover-color);
                    color: var(--main-color);
                }

                .ab-button-div .ab-test-metered-softwall-login-link {
                    color: var(--main-color);
                    border: 1px solid var(--main-color);
                }

                .ab-test-metered-softwall-login-link:hover, .ab-test-metered-softwall-login-link:active, .ab-test-metered-softwall-login-link:focus {
                    background-color: var(--hover-color);
                }

                .ab-test-metered-softwall-close-button {
                    position: absolute;
                    top: 16px;
                    right: 16px;
                    display: none;
                }

                .ab-test-metered-softwall-close-button > .icon {
                    color: #222;
                }

                @media (min-width: 576px) {
                    .ab-test-metered-softwall-title {
                        font-size: 24px;
                    }

                    .ab-product-container {
                        margin: 8px auto;
                    }

                    .ab-product-norm-price {
                        display: block;
                    }

                    .ab-button-div {
                        margin-top: 8px;
                    }

                    .ab-button-div .button {
                        min-width: 170px;
                    }
                }
            `;

            let styleSheet = document.createElement("style");
            styleSheet.type = "text/css";
            styleSheet.innerText = style;
            return styleSheet;
        };

        const actualChanges = function (mainElement, softwallTitle, softwallButton) {
            mainElement.appendChild(setStyles()); //add styles
            softwallButton.href = changeLinkUrl(softwallButton); //change product ordering link
            softwallTitle.innerText = changeText(); //change title

            mainElement.insertBefore(addLogo(), mainElement.childNodes[0]); //insert brand logo as first element
            let secondDiv = document.querySelector('.ab-second-div');
            secondDiv.appendChild(addProductDetails());

            dataLayer.push({'experiment': 'Conductrics', 'experimentID': experimentName, 'description': description});
            dataLayer.push({'event': 'eventInfo', 'eventCategory': 'paywall', 'eventAction': 'change offer at mittarimuuri', 'eventLabel': experimentName + ' ' + variantId});
            return true;
        };

        const setCookie = function(name,value,d) {
            let expires = "";
            if (d) {
                let date = new Date();
                date.setTime(date.getTime() + (d));
                expires = "; expires=" + date.toUTCString();
            }
            document.cookie = name + "=" + (value || "")  + expires + "; path=/";
        };
        
        const getCookie = function(name) {
            let nameEQ = name + "=";
            let ca = document.cookie.split(';');
            for(let i=0;i < ca.length;i++) {
                let c = ca[i];
                while (c.charAt(0)==' ') c = c.substring(1,c.length);
                if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
            }
            return 0; //return null;
        };

        const changeHtmlClassNames = function (elem) {
            //if errors here, it returns false and other changes are not made
            let firstDiv = elem.querySelector('.ab-test-metered-softwall .toast__container--inner');
            firstDiv.classList.add('ab-softwall-container', 'ab-first-div');

            let secondDiv = elem.querySelector('.ab-test-metered-softwall .softwall__row');
            secondDiv.classList.add('justify-center', 'flex-col', 'ab-second-div');

            let buttonDiv = elem.querySelector('.ab-test-metered-softwall .softwall__buttons');
            buttonDiv.classList.add('justify-center', 'ab-button-div');
            return true;
        };

        const doExperimentChanges = function () {
            let experimentExists = document.querySelector('.ab-test-softwall-title-modified');
            if(experimentExists) {
                //sendGAEvent('exp already exists');
            } else if(mainElement) {
                let softwallTitle = document.querySelector('.ab-test-metered-softwall-title');
                let softwallButton = document.querySelector('.ab-test-metered-softwall-order-link').parentNode;
                if(softwallButton.href.indexOf('https://www.hs.fi/api/safe/v1/web/subscription-funnel/hs-digi-nayte') < 0) {
                    softwallButton = false;
                }

                if(mainElement && softwallTitle && softwallButton) { //---------actual changes here
                    let namelower = 'ab-test-from-conductrics-' + experimentId.toLowerCase() + '-' + variantId;
                    softwallTitle.classList.add('ab-test-softwall-title-modified', namelower, 'modified-by-conductrics-' + experimentId);

                    if(changeHtmlClassNames(mainElement)) {
                        if(actualChanges(mainElement, softwallTitle, softwallButton)) {
                            if(requireCdx) {
                                cdx.confirm(true);
                            }
                            return true;
                        }
                    }
                }
                else {
                    sendGAEvent('script error: html invalid');
                }
            } else {
                sendGAEvent('script failed, element n/a');
            }
        };

        doExperimentChanges(); //finally call the function to do the changes
    };
} catch(err) {
    sendGAEvent('script error: ' + err);
}
 },'js-a2py3iSlPvPprKhZEwAc-1710246202': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
const experimentId = 'HS23-236d';
const experimentName = experimentId + ' sw dynaaminen muuri';
const variantId = 'v2';
const description = 'softwall changed to hard paywall';

//these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {}; }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || []; }

const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';
const sendGAEvent = function (label) { if(testing) {console.log(label); } else { dataLayer.push({'event': 'eventInfo', 'eventCategory': 'Conductrics', 'eventAction': 'conductrics_event', 'eventLabel': stringIdPlusVariant + label});}};

try {
    if(requireCdx === false || window.conductrics_checkIfEligibileForP2p(cdx.trait('isLoggedIn'), cdx.trait('p2p_lightgbm'), cdx.trait('p2p'))) {
        //actual code begins

        //content variables 
        let order_aid = 'G35ZRTPY9MVWL';
        let order_ref = 'vainomuuri';
        let order_offer = '3';
        let order_pagePath = '/hs-mini-tutustu';

        let logoInSvg = '<circle cx="12.5" cy="12" r="12" fill="#00194C"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7.11395 7.16037H8.57295C8.62628 7.16037 9.07295 7.14237 8.89428 7.65137C8.70295 8.1957 8.25128 9.29403 8.46561 9.93703C8.53695 10.187 8.76661 10.4907 9.31028 10.464H10.8373C11.1136 10.4464 11.4089 10.437 11.5696 9.93703C11.6409 9.68703 11.4089 8.66903 10.9983 7.65137C10.8909 7.40137 10.8909 7.15137 11.2303 7.15137H12.6093C13.0556 7.15137 12.9666 7.91903 12.9666 8.41903C12.9666 9.4727 12.5736 13.6514 12.8416 15.294C13.0379 16.4904 13.3056 16.8477 12.5556 16.8477H11.1006C10.6006 16.8477 10.5649 16.3657 10.6899 16.169C11.1186 15.4904 11.3686 13.9907 11.3686 13.4727C11.3686 12.9727 11.2856 12.316 10.6723 12.316H8.27395C7.63128 12.3517 7.47061 12.9727 7.45261 13.2227C7.38128 13.7407 7.38128 14.7407 7.98828 16.0797C8.16695 16.4904 8.38128 16.8477 7.88128 16.8477H6.31028C5.48895 16.8477 5.50661 14.9907 5.72095 14.2407C6.34595 11.919 7.02461 11.9547 7.27461 9.66903C7.31028 9.3477 7.27461 8.66903 6.89961 7.90137C6.77461 7.65137 6.72128 7.16937 7.11395 7.16037Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.8044 7.15856H18.6604C18.9271 7.14689 19.1757 7.30656 19.1757 7.60889C19.1757 8.10622 19.1757 8.20089 19.1224 8.57389C19.0691 8.91156 18.9271 8.96456 18.3941 8.78722C17.8254 8.59156 16.3144 7.52156 15.5427 8.34322C15.3297 8.56956 15.3011 9.10289 15.5781 9.47456C16.0807 10.1486 17.2477 10.5712 17.7227 10.8609C18.5871 11.3879 18.6751 11.4609 18.9721 11.8732C19.6884 12.8682 19.6117 15.4976 17.9947 16.4216C17.4084 16.7412 16.8577 16.8479 16.2714 16.8479H14.4767C14.0681 16.8479 13.8301 16.6712 13.8017 16.4216C13.7367 15.8469 13.7781 15.5279 13.8551 15.0716C13.9001 14.8036 13.9807 14.6419 14.4767 14.8406C15.2464 15.1486 15.7931 15.3966 16.4847 15.5512C16.9391 15.6532 17.7077 15.6209 18.0424 14.9529C18.3627 14.3139 18.1724 13.6852 17.5507 13.3656C15.9694 12.5659 15.2231 12.1219 14.7257 11.6242C14.2104 11.1266 13.9854 10.6769 14.0564 9.55722C14.0917 8.98889 14.8151 7.15856 16.8044 7.15856Z" fill="white"/>';
        let pvmCopyLaskePaivia = 30; //p.k. korvataan päivämäärällä joka lasketaan tästä
        let titleText = 'Tämä ja kaikki muut Hesarin jutut maksutta p.k. asti.'; // p.k. korvataan

        let productName = 'HS Digi';
        let price = '0 €';
        let normPrice = 'norm. 12,50 € / kk';
        let cancelAnytime = '<svg viewBox="0 0 20 20" width="15" height="15" stroke="inherit" data-reactid="71"><path d="M9 15h2V9H9v6zm1-15C4.5 0 0 4.5 0 10s4.5 10 10 10 10-4.5 10-10S15.5 0 10 0zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8zM9 7h2V5H9v2z" fill-rule="evenodd"></path></svg> Voit peruuttaa koska tahansa';
        let primaryButtonText = 'Kokeile maksutta';

        //try { //not needed if inside checkIfEligibileForP2p
        let art = window.location.pathname.substring(window.location.pathname.indexOf('art-')+4);
        let tcid_orig = art.replace('.html', '');
        let mainElement = document.querySelector('.ab-test-metered-softwall'); //main element to look for
        
        const changeText = function () {
            let date = new Date();
            date.setDate(date.getDate() + pvmCopyLaskePaivia);

            let dd = date.getDate();
            let mm = date.getMonth()+1;
            let dateString = dd.toString() + '.' + mm.toString() + '.';

            let newText = titleText.replace('p.k.', dateString);
            return newText;
        };

        const addProductDetails = function () {
            let div = document.createElement('div');
            div.classList.add('ab-product-container');

            let pTitle = document.createElement('p');
            pTitle.innerText = productName;
            pTitle.classList.add('ab-product-title');

            let pPrice = document.createElement('p');
            pPrice.innerText = price;
            pPrice.classList.add('ab-product-price');

            let pNormPrice = document.createElement('p');
            pNormPrice.innerText = normPrice;
            pNormPrice.classList.add('ab-product-norm-price');

            let pCancelAnytime = document.createElement('p');
            pCancelAnytime.innerHTML = cancelAnytime;
            pCancelAnytime.classList.add('ab-product-cancel-anytime');

            div.appendChild(pTitle);
            div.appendChild(pPrice);
            div.appendChild(pNormPrice);
            div.appendChild(pCancelAnytime);

            return div;
        };

        const addLogo = function () {
            let div = document.createElement('div');
            div.classList.add('ab-logo-container');
            let logo = document.createElementNS("http://www.w3.org/2000/svg", "svg");
            logo.setAttribute('width', '50');
            logo.setAttribute('height', '48');
            logo.setAttribute('viewBox', '0 0 25 24');
            logo.classList.add('ab-logo-element');
            logo.innerHTML = logoInSvg;
            div.appendChild(logo);
            let span = document.createElement('span');
            span.innerText = 'Tilaajille';
            span.classList.add('ab-for-subscribers');
            div.appendChild(span);
            return div;
        };

        const changeLinkUrl = function (button) {
            let urlParams = {
                'aid': order_aid,
                'ref': order_ref,
                'offer': order_offer,
                'showPaymentPeriodList': null,
                'variant': null
            };

            let url = new URL(button.href);

            if (urlParams) {
                Object.keys(urlParams).forEach(function(key) {
                    if (urlParams[key] === null) {
                        url.searchParams.delete(key);
                    } else if (urlParams[key] !== undefined) {
                        url.searchParams.set(key, urlParams[key]);
                    }
                });
            }
            if (order_pagePath) {
                let path = url.pathname.split('/');
                path.pop();
                path = path.join('/') + order_pagePath;
                url.pathname = path;
            }
            if(primaryButtonText) {
                let buttonLabel = button.querySelector('.cursor-pointer');
                buttonLabel.innerText = primaryButtonText;
            }

            button.onclick = function(e) {
                //e.preventDefault();
                sendGAEvent('click subscribe väinömuuri');
            };

            return url.toString();
        };

        const setStyles = function () {
            let style = `			
                :root {
                    --main-color: #4196A4; /*#41a492;*/
                    --grey-color: #666;
                    --hover-color: #ebf4f5;
                    --font-family-header: Sanomat,Georgia,Baskerville,serif;
                    --font-family-text: Helsingin, Helvetica, Arial, sans-serif;
                }

                .ab-test-metered-softwall {
                    transition: none;
                    background-color: #fff;
                    color: #222;
                }

                .ab-logo-container {
                    position: absolute;
                    top: -24px;
                }

                .ab-logo-element {
                    margin: 0 auto;
                }

                .ab-for-subscribers {
                    text-transform: uppercase;
                    font-size: 12px;
                    font-family: var(--font-family-text);
                    background: #fff;
                    z-index: 1;
                    position: relative;
                    padding: 0 16px;
                }

                .ab-first-div {
                    padding: 20px 0;
                    margin-top: 40px;
                    border-top: 1px solid #ccc;
                    margin-left: 16px;
                    margin-right: 16px;
                }

                .ab-softwall-container {
                    position: relative;
                    flex-direction: column;
                }

                .ab-product-container {
                    margin: 0 auto;
                    text-align: center;
                    line-height: 1.2;
                }

                .ab-product-title {
                    font-weight: 700;
                    font-size: 18px;
                    line-height: inherit;
                    margin-bottom: 4px;
                }

                .ab-product-price {
                    font-family: var(--font-family-header);
                    font-weight: 800;
                    font-size: 32px;
                    line-height: inherit;
                    margin-bottom: 4px;
                }

                .ab-product-norm-price {
                    position: relative;
                    font-weight: 500;
                    font-size: 13px;
                    line-height: inherit;
                    margin-bottom: 4px;
                    color: var(--grey-color);
                    display:none;
                }

                .ab-product-norm-price:before {
                    border-top: 1px solid var(--grey-color);
                    position: absolute;
                    content: "";
                    left: 0;
                    top: 50%;
                    right: 0;
                    border-top: 1px solid var(--underline-color);
                    opacity: 1;
                    -webkit-transform: rotate(-5deg);
                    transform: rotate(-5deg);
                    width: 110px;
                    margin: 0 auto;           
                }

                .ab-product-cancel-anytime {
                    font-weight: 400;
                    font-size: 13px;
                    line-height: inherit;
                    margin-top: 8px;
                    margin-bottom: 4px;
                }

                .ab-product-cancel-anytime svg {
                    display: inline-block;
                    fill: var(--main-color);
                    width: 12px;
                    height: 12px;
                    vertical-align: baseline;
                }

                .ab-test-metered-softwall-title, .ab-test-metered-softwall-description {
                    text-align: center;
                    margin: 0 auto 8px;
                    color: inherit;
                }

                .ab-test-metered-softwall-title {
                    padding: 0;
                    font-size: 22px;
                }

                .ab-test-metered-softwall-description {
                    display: none;
                }

                .ab-button-div {
                    margin-top: 8px;
                    justify-content: center;
                }

                .ab-button-div .button {
                    transition: all 200ms;
                    min-width: max-content;
                }

                .ab-second-div {
                    margin-bottom: 8px;
                    flex-direction: column;
                }

                .ab-button-div .ab-test-metered-softwall-order-link {
                    background-color: var(--main-color);
                    color: #fff;
                    border: 1px solid var(--main-color);
                }

                .ab-test-metered-softwall-order-link:hover, .ab-test-metered-softwall-order-link:active, .ab-test-metered-softwall-order-link:focus {
                    background-color: var(--hover-color);
                    color: var(--main-color);
                }

                .ab-button-div .ab-test-metered-softwall-login-link {
                    color: var(--main-color);
                    border: 1px solid var(--main-color);
                }

                .ab-test-metered-softwall-login-link:hover, .ab-test-metered-softwall-login-link:active, .ab-test-metered-softwall-login-link:focus {
                    background-color: var(--hover-color);
                }

                .ab-test-metered-softwall-close-button {
                    position: absolute;
                    top: 16px;
                    right: 16px;
                    display: none;
                }

                .ab-test-metered-softwall-close-button > .icon {
                    color: #222;
                }

                @media (min-width: 576px) {
                    .ab-test-metered-softwall-title {
                        font-size: 24px;
                    }

                    .ab-product-container {
                        margin: 8px auto;
                    }

                    .ab-product-norm-price {
                        display: block;
                    }

                    .ab-button-div {
                        margin-top: 8px;
                    }

                    .ab-button-div .button {
                        min-width: 170px;
                    }
                }
            `;

            let styleSheet = document.createElement("style");
            styleSheet.type = "text/css";
            styleSheet.innerText = style;
            return styleSheet;
        };

        const actualChanges = function (mainElement, softwallTitle, softwallButton) {
            mainElement.appendChild(setStyles()); //add styles
            softwallButton.href = changeLinkUrl(softwallButton); //change product ordering link
            softwallTitle.innerText = changeText(); //change title

            mainElement.insertBefore(addLogo(), mainElement.childNodes[0]); //insert brand logo as first element
            let secondDiv = document.querySelector('.ab-second-div');
            secondDiv.appendChild(addProductDetails());

            dataLayer.push({'experiment': 'Conductrics', 'experimentID': experimentName, 'description': description});
            dataLayer.push({'event': 'eventInfo', 'eventCategory': 'paywall', 'eventAction': 'change offer at mittarimuuri', 'eventLabel': experimentName + ' ' + variantId});
            return true;
        };

        const changeHtmlClassNames = function (elem) {
            //if errors here, it returns false and other changes are not made
            let firstDiv = elem.querySelector('.ab-test-metered-softwall .toast__container--inner');
            firstDiv.classList.add('ab-softwall-container', 'ab-first-div');

            let secondDiv = elem.querySelector('.ab-test-metered-softwall .softwall__row');
            secondDiv.classList.add('justify-center', 'flex-col', 'ab-second-div');

            let buttonDiv = elem.querySelector('.ab-test-metered-softwall .softwall__buttons');
            buttonDiv.classList.add('justify-center', 'ab-button-div');
            return true;
        };

        const doExperimentChanges = function () {
            let experimentExists = document.querySelector('.ab-test-softwall-title-modified');
            if(experimentExists) {
                //sendGAEvent('exp already exists');
            } else if(mainElement) {
                let softwallTitle = document.querySelector('.ab-test-metered-softwall-title');
                let softwallButton = document.querySelector('.ab-test-metered-softwall-order-link').parentNode;
                if(softwallButton.href.indexOf('https://www.hs.fi/api/safe/v1/web/subscription-funnel/hs-digi-nayte') < 0) {
                    softwallButton = false;
                }

                if(mainElement && softwallTitle && softwallButton) { //---------actual changes here
                    let namelower = 'ab-test-from-conductrics-' + experimentId.toLowerCase() + '-' + variantId;
                    softwallTitle.classList.add('ab-test-softwall-title-modified', namelower, 'modified-by-conductrics-' + experimentId);

                    if(changeHtmlClassNames(mainElement)) {
                        if(actualChanges(mainElement, softwallTitle, softwallButton)) {
                            if(requireCdx) {
                                cdx.confirm(true);
                            }
                            return true;
                        }
                    }
                }
                else {
                    sendGAEvent('script error: html invalid');
                }
            } else {
                sendGAEvent('script failed, element n/a');
            }
        };

        doExperimentChanges(); //finally call the function to do the changes
    };
} catch(err) {
    sendGAEvent('script error: ' + err);
}
 },'js-x6gZChVBzYLY4xEkhjyO-1719917416': function (cdx) { //console.log("no ads");//console.log("ads");
let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
if(!requireCdx) { testing = true; }
const experimentId = 'HS24-CDP-noAds';
const variantId = 'A';
const experimentName = experimentId + ' ads check';
const namelower = 'ab-test-from-conductrics-' + experimentId.toLowerCase() + '-' + variantId;
const variantName = 'gets ads';

// these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {}; }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || []; }

const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';
const sendGAEvent = function (label) {
    if (testing) {
        console.log(label);
    } else {
        dataLayer.push({
            'event': 'eventInfo',
            'eventCategory': 'Conductrics',
            'eventAction': 'conductrics_event',
            'eventLabel': stringIdPlusVariant + label
        });
    }
};

try {
    const doExperimentChanges = function () {
        if (requireCdx) {
            cdx.confirm(true);
        }
        sendGAEvent('CDP got ads');
    };

    doExperimentChanges();
} catch (e) {
    console.error('An error occurred:', e);
    sendGAEvent('script error: ' + e.message);
}

 },'js-7cVwAynSw6IqUOKABGQ3-1719917354': function (cdx) { //console.log("no ads");//console.log("ads");
let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
if(!requireCdx) { testing = true; }
const experimentId = 'HS24-CDP-noAds';
const variantId = 'B';
const experimentName = experimentId + ' ads check';
const namelower = 'ab-test-from-conductrics-' + experimentId.toLowerCase() + '-' + variantId;
const variantName = 'no ads';

// these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {}; }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || []; }

const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';
const sendGAEvent = function (label) {
    if (testing) {
        console.log(label);
    } else {
        dataLayer.push({
            'event': 'eventInfo',
            'eventCategory': 'Conductrics',
            'eventAction': 'conductrics_event',
            'eventLabel': stringIdPlusVariant + label
        });
    }
};

try {
    const doExperimentChanges = function () {
        if (requireCdx) {
            cdx.confirm(true);
        }
        sendGAEvent('CDP no ads');
    };

    doExperimentChanges();
} catch (e) {
    console.error('An error occurred:', e);
    sendGAEvent('script error: ' + e.message);
}

 },'js-HyjG44fKq0PwABQSsP9u-1718883588': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
if(!requireCdx) { testing = true; } //set this to true if not in conductrics for easier testing
const experimentId = 'HS24-13';
const variantId = 'B';
const experimentName = experimentId + ' myyntitikkeri';
const variantName = variantId + ': sykloni';
const oldTickerText = 'HS Digi maksutta kuukaudeksi.';
const aid = 'GUMO4SZGFXCLY';
const pagePath = '/hs-mini-tutustu-v6';
const offer = 3;
const days = 30;
const cycloneDays = 210;

//these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {}; }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || []; }

const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';
const sendGAEvent = function (label) { if(testing) {console.log(label); } else { dataLayer.push({'event': 'eventInfo', 'eventCategory': 'Conductrics', 'eventAction': 'conductrics_event', 'eventLabel': stringIdPlusVariant + label});}};

try {
    const changeTickerLink = function (tickerLink) {
        let urlParams = {
            'aid': aid,
            'ref': 'myyntitikkeri',
            'showPaymentPeriodList': null,
            'offer': null,
            'variant': null
        };

        let url = new URL(tickerLink.href);
        
        if (urlParams) {
            Object.keys(urlParams).forEach(function(key) {
                if (urlParams[key] === null) {
                    url.searchParams.delete(key);
                } else if (urlParams[key] !== undefined) {
                    url.searchParams.set(key, urlParams[key]);
                }
            });
        }
        if (pagePath) {
            let path = url.pathname.split('/');
            path.pop();
            path = path.join('/') + pagePath;
            url.pathname = path;
        }
        return url.toString();
    };

    const changeTickerText = function (tickerText) {
        let date = new Date();
        date.setDate(date.getDate() + days);

        let dd = date.getDate();
        let mm = date.getMonth()+1;

        let cycloneDate = new Date();
        cycloneDate.setDate(cycloneDate.getDate() + cycloneDays);
        let day = cycloneDate.getDate();
        let month = cycloneDate.getMonth()+1; 

        let newTickerText = 'Lue maksutta ' + dd.toString() + '.' + mm.toString() + '. asti. Voit jatkaa tilausta -50 % hinnalla ' + day.toString() + '.' + month.toString() + '. asti.';
        return newTickerText;
    };
    
    const doExperimentChanges = function () {
        let experimentExists = document.querySelector('.ticker-modified-by-conductrics');
        let ticker = document.querySelector('.ticker.ticker--promo-10, .ticker.ticker--promo-20');
        if(experimentExists) {
            //sendGAEvent('script failed, exp already exists');
        } else if(ticker) {
			let tickerLink = ticker.parentNode;
			let tickerText = ticker.querySelector('.ticker__title span:not(.ticker__storylogo)');
			if(tickerLink.href.indexOf('https://www.hs.fi/u/oma/tilaa/hs-digi-ticker?aid=G3SLUQYNQ63NV') < 0) {
				tickerLink = false;
			}
            if(tickerLink && tickerText) {
                if(tickerText.innerText.indexOf(oldTickerText) > -1) { //check that tickerText.innerText contains oldTickerText as a substring
                    //actual changes here
                    tickerText.innerText = changeTickerText(tickerText);
                    tickerLink.href = changeTickerLink(tickerLink);

                    let namelower = 'ab-test-from-conductrics-' + experimentId.toLowerCase() + '-' + variantId;
                    ticker.classList.add('ticker-modified-by-conductrics', namelower);
                    if(requireCdx) {
                        cdx.confirm(true);
                    }
                    //dataLayer.push({'event': 'eventInfo', 'eventCategory': 'paywall', 'eventAction': 'change offer at myyntitikkeri', 'eventLabel': experimentName + ' ' + variantName});
                    return true;
                }
                else {
                    sendGAEvent('script failed: ticker text unexpected');
                }
            }
            else {
                sendGAEvent('script failed: ticker html unexpected');
            }
    
            dataLayer.push({'experiment': 'Conductrics', 'experimentID': experimentName, 'description': variantName});
            
            return true;

		} else {
            sendGAEvent('script failed, ticker n/a');
        }
    };

    doExperimentChanges();
} catch(e) {
    //this is needed in ticker-agents. If e does not contain text "confirm" or "cdx", then call the sendGAEvent function
    if(e.toString().indexOf('confirm') < 0 && e.toString().indexOf('cdx') < 0) {
        sendGAEvent('script error: ' + e);
    }
}
 },'js-18xiPqYqLotpSYeAFqEr-1718883588': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
if(!requireCdx) { testing = true; } //set this to true if not in conductrics for easier testing
const experimentId = 'HS24-13';
const variantId = 'C';
const experimentName = experimentId + ' myyntitikkeri';
const variantName = variantId + ': sykloni';
const oldTickerText = 'HS Digi maksutta kuukaudeksi.';
const aid = 'GX93U8HLDN5UV';
const pagePath = '/hs-digi-tutustu-v6';
const offer = 3;
const days = 30;
const cycloneDays = 210;

//these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {}; }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || []; }

const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';
const sendGAEvent = function (label) { if(testing) {console.log(label); } else { dataLayer.push({'event': 'eventInfo', 'eventCategory': 'Conductrics', 'eventAction': 'conductrics_event', 'eventLabel': stringIdPlusVariant + label});}};

try {
    const changeTickerLink = function (tickerLink) {
        let urlParams = {
            'aid': aid,
            'ref': 'myyntitikkeri',
            'showPaymentPeriodList': null,
            'offer': null,
            'variant': null
        };

        let url = new URL(tickerLink.href);
        
        if (urlParams) {
            Object.keys(urlParams).forEach(function(key) {
                if (urlParams[key] === null) {
                    url.searchParams.delete(key);
                } else if (urlParams[key] !== undefined) {
                    url.searchParams.set(key, urlParams[key]);
                }
            });
        }
        if (pagePath) {
            let path = url.pathname.split('/');
            path.pop();
            path = path.join('/') + pagePath;
            url.pathname = path;
        }
        return url.toString();
    };

    const changeTickerText = function (tickerText) {
        let date = new Date();
        date.setDate(date.getDate() + days);

        let dd = date.getDate();
        let mm = date.getMonth()+1;

        let cycloneDate = new Date();
        cycloneDate.setDate(cycloneDate.getDate() + cycloneDays);
        let day = cycloneDate.getDate();
        let month = cycloneDate.getMonth()+1; 

        let newTickerText = 'Lue maksutta ' + dd.toString() + '.' + mm.toString() + '. asti. Voit jatkaa tilausta -50 % hinnalla ' + day.toString() + '.' + month.toString() + '. asti.';
        return newTickerText;
    };
    
    const doExperimentChanges = function () {
        let experimentExists = document.querySelector('.ticker-modified-by-conductrics');
        let ticker = document.querySelector('.ticker.ticker--promo-10, .ticker.ticker--promo-20');
        if(experimentExists) {
            //sendGAEvent('script failed, exp already exists');
        } else if(ticker) {
			let tickerLink = ticker.parentNode;
			let tickerText = ticker.querySelector('.ticker__title span:not(.ticker__storylogo)');
			if(tickerLink.href.indexOf('https://www.hs.fi/u/oma/tilaa/hs-digi-ticker?aid=G3SLUQYNQ63NV') < 0) {
				tickerLink = false;
			}
            if(tickerLink && tickerText) {
                if(tickerText.innerText.indexOf(oldTickerText) > -1) { //check that tickerText.innerText contains oldTickerText as a substring
                    //actual changes here
                    tickerText.innerText = changeTickerText(tickerText);
                    tickerLink.href = changeTickerLink(tickerLink);

                    let namelower = 'ab-test-from-conductrics-' + experimentId.toLowerCase() + '-' + variantId;
                    ticker.classList.add('ticker-modified-by-conductrics', namelower);
                    if(requireCdx) {
                        cdx.confirm(true);
                    }
                    //dataLayer.push({'event': 'eventInfo', 'eventCategory': 'paywall', 'eventAction': 'change offer at myyntitikkeri', 'eventLabel': experimentName + ' ' + variantName});
                    return true;
                }
                else {
                    sendGAEvent('script failed: ticker text unexpected');
                }
            }
            else {
                sendGAEvent('script failed: ticker html unexpected');
            }
    
            dataLayer.push({'experiment': 'Conductrics', 'experimentID': experimentName, 'description': variantName});
            
            return true;

		} else {
            sendGAEvent('script failed, ticker n/a');
        }
    };

    doExperimentChanges();
} catch(e) {
    //this is needed in ticker-agents. If e does not contain text "confirm" or "cdx", then call the sendGAEvent function
    if(e.toString().indexOf('confirm') < 0 && e.toString().indexOf('cdx') < 0) {
        sendGAEvent('script error: ' + e);
    }
}
 },'js-RdVlKcGzXR9rUYUIxbkA-1722945969': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
if (!requireCdx) { testing = true; }
const experimentId = 'HS24-14b';
const variantId = 'A';
const experimentName = experimentId + ' kirjautumisen hyödyt';
const variantName = variantId + ' default';
const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';
const namelower = 'ab-test-from-conductrics-' +experimentId.toLowerCase() +'-' +variantId;
const cookieName = 'sndp_con_' + experimentId;
let cookieExpiresOnImpression = 48*60*60*1000; //48 hours
let cookieExpiresOnClick = 10*24*60*60*1000; //10 days
let allowNormalLoginButtonBehaviour = true;

if(testing) {
    cookieExpiresOnImpression = 30*1000; //30 seconds
    cookieExpiresOnClick = 60*1000; //one minute
}

//these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {} }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || [] }

const sendGAEvent = function (label) { if (testing) { console.log(label)} else { dataLayer.push({event: 'eventInfo',eventCategory: 'Conductrics',eventAction: 'conductrics_event',eventLabel: stringIdPlusVariant + label})}}

try {
	const setCookie = function(name,value,d) {
        var expires = "";
        if (d) {
            var date = new Date();
            date.setTime(date.getTime() + (d));
            expires = "; expires=" + date.toUTCString();
        }
        document.cookie = name + "=" + (value || "")  + expires + "; path=/";
    };
    
    const getCookie = function(name) {
        var nameEQ = name + "=";
        var ca = document.cookie.split(';');
        for(var i=0;i < ca.length;i++) {
            var c = ca[i];
            while (c.charAt(0)==' ') c = c.substring(1,c.length);
            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
        }
        return 0; //return null;
    };

	/////------------- MAIN SCRIPT STARTS HERE -----------------/////

	let loginButton = document.querySelector('.ab-test-nav-login-button');
	let experimentExists = document.querySelector('.ab-test-nav-login-button-modified');
	if(experimentExists) {
		//sendGAEvent('script failed, login button already modified');
	}
	else if(getCookie(cookieName)) {
		sendGAEvent('cookie found');
	}
	else if(loginButton) {
		loginButton.classList.add('ab-test-nav-login-button-modified', namelower);

		setCookie(cookieName, 'impression', cookieExpiresOnImpression);
		
		loginButton.onclick = function(e) {
			setCookie(cookieName, 'click', cookieExpiresOnClick);
            sendGAEvent('click login button');
		};

		if (requireCdx) {
			cdx.confirm(true);
		}
	}
	else {
		sendGAEvent('script error: login button not found');
	}
} catch (e) {
	sendGAEvent('script error: ' + e);
}
 },'js-EEqPgaWOJW8gKx9EyeAX-1722945969': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
if (!requireCdx) { testing = true; }
const experimentId = 'HS24-14b';
const variantId = 'B';
const experimentName = experimentId + ' kirjautumisen hyödyt';
const variantName = variantId + ' cross-indicator+modal';
const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';
const namelower = 'ab-test-from-conductrics-' +experimentId.toLowerCase() +'-' +variantId;
const cookieName = 'sndp_con_' + experimentId;
let cookieExpiresOnImpression = 48*60*60*1000; //48 hours
let cookieExpiresOnClick = 10*24*60*60*1000; //10 days
let allowNormalLoginButtonBehaviour = false;

if(testing) {
    cookieExpiresOnImpression = 30*1000; //30 seconds
    cookieExpiresOnClick = 60*1000; //one minute
}

//these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {} }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || [] }

const sendGAEvent = function (label) { if (testing) { console.log(label)} else { dataLayer.push({event: 'eventInfo',eventCategory: 'Conductrics',eventAction: 'conductrics_event',eventLabel: stringIdPlusVariant + label})}}

try {
	const createModalWhenLinkIsClicked = function(a) {
		allowNormalLoginButtonBehaviour = true;
		if(document.querySelector('.ab-test-profile-dot')) {
			document.querySelector('.ab-test-profile-dot').remove();
		}
		
		var body = document.querySelector('body');
		var modalDiv = document.createElement('div');
		modalDiv.classList.add('ab-test-modal-login', namelower);
		
		var modalContDiv = document.createElement('div');
		modalContDiv.classList.add('ab-test-modal-content');
		modalContDiv.innerHTML = '<span class="close">&times;</span>';
		
		var h3 = document.createElement('h3');
		var p = document.createElement('p');
		var h4 = document.createElement('h4');
		var list = document.createElement('ul');
		var p2 = document.createElement('p');
		
		h3.innerText = 'Kirjaudu Sanoma-tilillä';
		
		p.innerHTML = 'Helsingin Sanomien sivustolle ja sovellukseen voi kirjautua Sanoma-tilillä. Jos sinulla ei vielä ole Sanoma-tiliä, voit luoda helposti uuden.';
		
		h4.innerText = 'Sanoma-tilin avulla';
		
		list.innerHTML += '<li>Voit tallentaa artikkeleita myöhemmin luettavaksi.</li>';
		list.innerHTML += '<li>Voit seurata juttujen aiheita, jolloin sinulle tarjoillaan tarkemmin juuri sinua kiinnostavaa luettavaa.</li>';
		list.innerHTML += '<li>Voit kommentoida juttuja.</li>';
		list.innerHTML += '<li>Voit tarkastella lukuhistoriaasi.</li>';
		list.innerHTML += '<li>Jos luet Hesaria eri laitteilla, jo lukemiasi juttuja ei tarjoilla sinulle enää ensimmäisenä.</li>';
		list.innerHTML += '<li>Voit kirjautua myös muille Sanoman sivustoille kuten Ruutu, Ilta-Sanomat, Aamulehti, Supla ja Digilehdet.</li>';
		
		var button  = document.createElement('a');
		button.classList.add('button');
		button.href = a.href;
		button.innerText = 'Kirjaudu tai luo tili';
		
		button.onclick = function(e) {
			e.preventDefault();
			sendGAEvent('Kirjaudu tai luo tili');
			a.click(); // clicking on the button on the modal now actuall triggers click on the original button
		};
		
		p2.innerHTML = '<a href="https://oma.sanoma.fi/aihe/sanoma-tili?ref=ab_hs_kirjaudu_modal" target="_blank">Lue lisää Sanoma-tilistä</a>';
		
		modalContDiv.appendChild(h3);
		modalContDiv.appendChild(p);
		modalContDiv.appendChild(h4);
		modalContDiv.appendChild(list);
		modalContDiv.appendChild(button);
		modalContDiv.appendChild(p2);
		
		modalDiv.appendChild(modalContDiv);
		body.appendChild(modalDiv);
		
		var closeBtn = document.querySelector('.ab-test-modal-login .close');
		closeBtn.onclick = function() {
			modalDiv.style.display = 'none';
			modalDiv.remove();
			allowNormalLoginButtonBehaviour = false;
			sendGAEvent('modal closed from x');
		};

		// When the user clicks anywhere outside of the modal, close it
		window.onclick = function(event) {
		  if (event.target == modalDiv) {
			modalDiv.style.display = 'none';
			modalDiv.remove();
			allowNormalLoginButtonBehaviour = false;
			sendGAEvent('modal closed');
		  }
		};
		
		sendGAEvent('modal impression');
	}

	const setCookie = function(name,value,d) {
        var expires = "";
        if (d) {
            var date = new Date();
            date.setTime(date.getTime() + (d));
            expires = "; expires=" + date.toUTCString();
        }
        document.cookie = name + "=" + (value || "")  + expires + "; path=/";
    };
    
    const getCookie = function(name) {
        var nameEQ = name + "=";
        var ca = document.cookie.split(';');
        for(var i=0;i < ca.length;i++) {
            var c = ca[i];
            while (c.charAt(0)==' ') c = c.substring(1,c.length);
            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
        }
        return 0; //return null;
    };

	/////------------- MAIN SCRIPT STARTS HERE -----------------/////

	let loginButton = document.querySelector('.ab-test-nav-login-button');
	let experimentExists = document.querySelector('.ab-test-nav-login-button-modified');
	if(experimentExists) {
		//sendGAEvent('script failed, login button already modified');
	}
	else if(getCookie(cookieName)) {
		sendGAEvent('cookie found');
	}
	else if(loginButton) {
		loginButton.classList.add('ab-test-nav-login-button-modified', namelower);

		setCookie(cookieName, 'impression', cookieExpiresOnImpression);

		var span = document.createElement('span');
		span.classList.add('ab-test-profile-dot');
		span.innerHTML = '<div class="icon"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="3 3 16 16"><defs><linearGradient gradientUnits="userSpaceOnUse" y2="-2.623" x2="0" y1="986.67"><stop stop-color="#ffce3b"/><stop offset="1" stop-color="#ffd762"/></linearGradient><linearGradient id="0" gradientUnits="userSpaceOnUse" y1="986.67" x2="0" y2="-2.623"><stop stop-color="#ffce3b"/><stop offset="1" stop-color="#fef4ab"/></linearGradient><linearGradient gradientUnits="userSpaceOnUse" x2="1" x1="0" xlink:href="#0"/></defs><g transform="matrix(2 0 0 2-11-2071.72)"><path transform="translate(7 1037.36)" d="m4 0c-2.216 0-4 1.784-4 4 0 2.216 1.784 4 4 4 2.216 0 4-1.784 4-4 0-2.216-1.784-4-4-4" fill="#da4453"/><path d="m11.906 1041.46l.99-.99c.063-.062.094-.139.094-.229 0-.09-.031-.166-.094-.229l-.458-.458c-.063-.062-.139-.094-.229-.094-.09 0-.166.031-.229.094l-.99.99-.99-.99c-.063-.062-.139-.094-.229-.094-.09 0-.166.031-.229.094l-.458.458c-.063.063-.094.139-.094.229 0 .09.031.166.094.229l.99.99-.99.99c-.063.062-.094.139-.094.229 0 .09.031.166.094.229l.458.458c.063.063.139.094.229.094.09 0 .166-.031.229-.094l.99-.99.99.99c.063.063.139.094.229.094.09 0 .166-.031.229-.094l.458-.458c.063-.062.094-.139.094-.229 0-.09-.031-.166-.094-.229l-.99-.99" fill="#fff"/></g></svg></div>';
		loginButton.appendChild(span);
			
		var style = `
			.ab-test-profile-dot {
				position:absolute;
				right: 6px;
				top: 8px;
			}
			
			.ab-test-nav-login-button {
				position: relative;
			}
			
			.ab-test-profile-dot .icon {
				width: 10px;
				height: 10px;
				position: absolute;
			}
			
			.ab-test-modal-login {
				position: fixed;
				z-index: 21;
				left: 0;
				top: 0;
				width: 100%;
				height: 100%;
				overflow: auto; /* Enable scroll if needed */
				background-color: rgba(0,0,0,0.4);
			}
			
			.ab-test-modal-login .ab-test-modal-content {
				position: relative;
				background-color: #fff;
				margin: 22% auto;
				padding: 1em;
				border: 1px solid #888;
				min-width: 300px;
				max-width: 800px;
				width: 94%;
				line-height: 1.4;
				border-radius: 10px;
				text-align: center;
			}
			
			.ab-test-modal-login .ab-test-modal-content h3 {
				font-weight: 900;
				font-size: 22px;
				margin: 1em auto;
				font-family: 'Sanomat';
				text-align: center;
			}
			
			.ab-test-modal-login .ab-test-modal-content h4 {
				font-weight: 700;
				font-size: 18px;
				text-align: center;
				margin: 1em auto;
			}
			
			.ab-test-modal-login .ab-test-modal-content p {
				margin-bottom: 1em;
				width: 96%;
				margin: 0 auto;
				display: flex;
			}
			
			.ab-test-modal-login .ab-test-modal-content p svg {
				text-align: center;
				margin: 0 auto;
			}
			
			.ab-test-modal-login .ab-test-modal-content ol, .ab-test-modal-login .ab-test-modal-content ul {
				list-style: auto;
				margin-left: 1em;
				margin-bottom: 1em;
				width: 94%;
				margin: 0 auto;
				display: flex;
				flex-direction: column;
			}
			
			.ab-test-modal-login .ab-test-modal-content ul {
				list-style-type: disc;
				font-size: 14px;
			}
			
			.ab-test-modal-content ol li, .ab-test-modal-content ul li {
				line-height: 1.2;
				margin-bottom: 0.4em;
				text-align: left;
			}
			
			.ab-test-modal-content ol li::marker, .ab-test-modal-content ul li::marker {
				color: #4196a4;
				font-weight: bold;
			}
			
			.ab-test-modal-login .ab-test-modal-content a {
				text-decoration: underline;
				font-size: 14px;
				margin: 0.5em auto 0;
				font-weight: 500;
				color: #4196a4;
			}
			
			.ab-test-modal-login .ab-test-modal-content a.button {
				display: inline-block;
				background-color: #4196a4;
				font-size: 16px;
				text-decoration: none;
				color: #fff;
				padding: 10px 30px;
				margin: 1em auto .5em;
				text-align: center;
				width: auto;
			}
			
			.ab-test-modal-login .ab-test-modal-content a svg {
				display: inline;
			}
			
			.ab-test-modal-login .close {
				color: #aaa;
				font-size: 28px;
				font-weight: bold;
				line-height: .5em;
				position: absolute;
				top: 16px;
				right: 16px;
			}

			.ab-test-modal-login .close:hover, .ab-test-modal-login .close:focus {
				color: black;
				text-decoration: none;
				cursor: pointer;
			}
			
			@media (min-width: 450px) {
				.ab-test-modal-login .ab-test-modal-content, .ab-test-modal-login .ab-test-modal-content p, .ab-test-modal-login .ab-test-modal-content ul {
					width: 92%;
				}
				
				.ab-test-modal-login .ab-test-modal-content {
					padding: 1.5em 2em;
				}
				
				.ab-test-modal-login .ab-test-modal-content ul {
					font-size: 16px;
				}
			}
			
			@media (min-width: 768px) {					
				.ab-test-profile-dot {
					right: 6px;
					top: 8px;
				}
				
				.ab-test-modal-login .ab-test-modal-content {
					padding: 2.5em 3em;
					width: 80%;
				}
				
				.ab-test-modal-login .ab-test-modal-content p, .ab-test-modal-login .ab-test-modal-content ul {
					width: 80%;
				}
			}
			@media (prefers-reduced-motion: reduce) {
				.ab-test-profile-dot .blinking {
				animation: none;
				}
			}
			`;
		var styleSheet = document.createElement("style");
		styleSheet.type = "text/css";
		loginButton.appendChild(styleSheet);
		styleSheet.innerText = style;
		
		loginButton.onclick = function(e) {
			if(allowNormalLoginButtonBehaviour === false) {
				e.stopImmediatePropagation();
				e.preventDefault();
				setCookie(cookieName, 'click', cookieExpiresOnClick);
				sendGAEvent('click login button');
				createModalWhenLinkIsClicked(loginButton);
			}
		};

		if (requireCdx) {
			cdx.confirm(true);
		}
	}
	else {
		sendGAEvent('script error: login button not found');
	}
} catch (e) {
	sendGAEvent('script error: ' + e);
}
 },'js-D55rbK7zySiOoMmsMetK-1722945969': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
if (!requireCdx) { testing = true; }
const experimentId = 'HS24-14b';
const variantId = 'C';
const experimentName = experimentId + ' kirjautumisen hyödyt';
const variantName = variantId + ' indicator+modal';
const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';
const namelower = 'ab-test-from-conductrics-' +experimentId.toLowerCase() +'-' +variantId;
const cookieName = 'sndp_con_' + experimentId;
let cookieExpiresOnImpression = 48*60*60*1000; //48 hours
let cookieExpiresOnClick = 10*24*60*60*1000; //10 days
let allowNormalLoginButtonBehaviour = false;

if(testing) {
    cookieExpiresOnImpression = 30*1000; //30 seconds
    cookieExpiresOnClick = 60*1000; //one minute
}

//these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {} }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || [] }

const sendGAEvent = function (label) { if (testing) { console.log(label)} else { dataLayer.push({event: 'eventInfo',eventCategory: 'Conductrics',eventAction: 'conductrics_event',eventLabel: stringIdPlusVariant + label})}}

try {
	const createModalWhenLinkIsClicked = function(a) {
		allowNormalLoginButtonBehaviour = true;
		if(document.querySelector('.ab-test-profile-dot')) {
			document.querySelector('.ab-test-profile-dot').remove();
		}
		
		var body = document.querySelector('body');
		var modalDiv = document.createElement('div');
		modalDiv.classList.add('ab-test-modal-login', namelower);
		
		var modalContDiv = document.createElement('div');
		modalContDiv.classList.add('ab-test-modal-content');
		modalContDiv.innerHTML = '<span class="close">&times;</span>';
		
		var h3 = document.createElement('h3');
		var p = document.createElement('p');
		var h4 = document.createElement('h4');
		var list = document.createElement('ul');
		var p2 = document.createElement('p');
		
		h3.innerText = 'Kirjaudu Sanoma-tilillä';
		
		p.innerHTML = 'Helsingin Sanomien sivustolle ja sovellukseen voi kirjautua Sanoma-tilillä. Jos sinulla ei vielä ole Sanoma-tiliä, voit luoda helposti uuden.';
		
		h4.innerText = 'Sanoma-tilin avulla';
		
		list.innerHTML += '<li>Voit tallentaa artikkeleita myöhemmin luettavaksi.</li>';
		list.innerHTML += '<li>Voit seurata juttujen aiheita, jolloin sinulle tarjoillaan tarkemmin juuri sinua kiinnostavaa luettavaa.</li>';
		list.innerHTML += '<li>Voit kommentoida juttuja.</li>';
		list.innerHTML += '<li>Voit tarkastella lukuhistoriaasi.</li>';
		list.innerHTML += '<li>Jos luet Hesaria eri laitteilla, jo lukemiasi juttuja ei tarjoilla sinulle enää ensimmäisenä.</li>';
		list.innerHTML += '<li>Voit kirjautua myös muille Sanoman sivustoille kuten Ruutu, Ilta-Sanomat, Aamulehti, Supla ja Digilehdet.</li>';
		
		var button  = document.createElement('a');
		button.classList.add('button');
		button.href = a.href;
		button.innerText = 'Kirjaudu tai luo tili';
		
		button.onclick = function(e) {
			e.preventDefault();
			sendGAEvent('Kirjaudu tai luo tili');
			a.click(); // clicking on the button on the modal now actuall triggers click on the original button
		};
		
		p2.innerHTML = '<a href="https://oma.sanoma.fi/aihe/sanoma-tili?ref=ab_hs_kirjaudu_modal" target="_blank">Lue lisää Sanoma-tilistä</a>';
		
		modalContDiv.appendChild(h3);
		modalContDiv.appendChild(p);
		modalContDiv.appendChild(h4);
		modalContDiv.appendChild(list);
		modalContDiv.appendChild(button);
		modalContDiv.appendChild(p2);
		
		modalDiv.appendChild(modalContDiv);
		body.appendChild(modalDiv);
		
		var closeBtn = document.querySelector('.ab-test-modal-login .close');
		closeBtn.onclick = function() {
			modalDiv.style.display = 'none';
			modalDiv.remove();
			allowNormalLoginButtonBehaviour = false;
			sendGAEvent('modal closed from x');
		};

		// When the user clicks anywhere outside of the modal, close it
		window.onclick = function(event) {
		  if (event.target == modalDiv) {
			modalDiv.style.display = 'none';
			modalDiv.remove();
			allowNormalLoginButtonBehaviour = false;
			sendGAEvent('modal closed');
		  }
		};
		
		sendGAEvent('modal impression');
	}

	const setCookie = function(name,value,d) {
        var expires = "";
        if (d) {
            var date = new Date();
            date.setTime(date.getTime() + (d));
            expires = "; expires=" + date.toUTCString();
        }
        document.cookie = name + "=" + (value || "")  + expires + "; path=/";
    };
    
    const getCookie = function(name) {
        var nameEQ = name + "=";
        var ca = document.cookie.split(';');
        for(var i=0;i < ca.length;i++) {
            var c = ca[i];
            while (c.charAt(0)==' ') c = c.substring(1,c.length);
            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
        }
        return 0; //return null;
    };

	/////------------- MAIN SCRIPT STARTS HERE -----------------/////

	let loginButton = document.querySelector('.ab-test-nav-login-button');
	let experimentExists = document.querySelector('.ab-test-nav-login-button-modified');
	if(experimentExists) {
		//sendGAEvent('script failed, login button already modified');
	}
	else if(getCookie(cookieName)) {
		sendGAEvent('cookie found');
	}
	else if(loginButton) {
		loginButton.classList.add('ab-test-nav-login-button-modified', namelower);

		setCookie(cookieName, 'impression', cookieExpiresOnImpression);

		var span = document.createElement('span');
		span.classList.add('ab-test-profile-dot');
		span.innerHTML = '<div class="circle blinking"></div><div class="circle"></div>';
		loginButton.appendChild(span);
			
		var style = `
			@-webkit-keyframes blink {
				0,100% { transform: scale(1,1);}
				50% { transform: scale(2.5,2.5);}
			}
			@-moz-keyframes blink {
				0,100% { transform: scale(1,1);}
				50% { transform: scale(2.5,2.5);}
			}
			@-o-keyframes blink {
				0,100% { transform: scale(1,1);}
				50% { transform: scale(2.5,2.5);}
			}
			@keyframes blink {
				0,100% { transform: scale(1,1);}
				50% { transform: scale(2.5,2.5);}
			}
			.ab-test-profile-dot {
				position:absolute;
				right: 6px;
				top: 8px;
			}
			
			.ab-test-nav-login-button {
				position: relative;
			}
			
			.ab-test-profile-dot .circle {
				border-radius: 50%;
				background-color: #3860ff;
				width: 10px;
				height: 10px;
				position: absolute;
			}
			.ab-test-profile-dot .circle.blinking {
				animation: blink 2s infinite;
				opacity: .3;
			}
			
			.ab-test-modal-login {
				position: fixed;
				z-index: 21;
				left: 0;
				top: 0;
				width: 100%;
				height: 100%;
				overflow: auto; /* Enable scroll if needed */
				background-color: rgba(0,0,0,0.4);
			}
			
			.ab-test-modal-login .ab-test-modal-content {
				position: relative;
				background-color: #fff;
				margin: 22% auto;
				padding: 1em;
				border: 1px solid #888;
				min-width: 300px;
				max-width: 800px;
				width: 94%;
				line-height: 1.4;
				border-radius: 10px;
				text-align: center;
			}
			
			.ab-test-modal-login .ab-test-modal-content h3 {
				font-weight: 900;
				font-size: 22px;
				margin: 1em auto;
				font-family: 'Sanomat';
				text-align: center;
			}
			
			.ab-test-modal-login .ab-test-modal-content h4 {
				font-weight: 700;
				font-size: 18px;
				text-align: center;
				margin: 1em auto;
			}
			
			.ab-test-modal-login .ab-test-modal-content p {
				margin-bottom: 1em;
				width: 96%;
				margin: 0 auto;
				display: flex;
			}
			
			.ab-test-modal-login .ab-test-modal-content p svg {
				text-align: center;
				margin: 0 auto;
			}
			
			.ab-test-modal-login .ab-test-modal-content ol, .ab-test-modal-login .ab-test-modal-content ul {
				list-style: auto;
				margin-left: 1em;
				margin-bottom: 1em;
				width: 94%;
				margin: 0 auto;
				display: flex;
				flex-direction: column;
			}
			
			.ab-test-modal-login .ab-test-modal-content ul {
				list-style-type: disc;
				font-size: 14px;
			}
			
			.ab-test-modal-content ol li, .ab-test-modal-content ul li {
				line-height: 1.2;
				margin-bottom: 0.4em;
				text-align: left;
			}
			
			.ab-test-modal-content ol li::marker, .ab-test-modal-content ul li::marker {
				color: #4196a4;
				font-weight: bold;
			}
			
			.ab-test-modal-login .ab-test-modal-content a {
				text-decoration: underline;
				font-size: 14px;
				margin: 0.5em auto 0;
				font-weight: 500;
				color: #4196a4;
			}
			
			.ab-test-modal-login .ab-test-modal-content a.button {
				display: inline-block;
				background-color: #4196a4;
				font-size: 16px;
				text-decoration: none;
				color: #fff;
				padding: 10px 30px;
				margin: 1em auto .5em;
				text-align: center;
				width: auto;
			}
			
			.ab-test-modal-login .ab-test-modal-content a svg {
				display: inline;
			}
			
			.ab-test-modal-login .close {
				color: #aaa;
				font-size: 28px;
				font-weight: bold;
				line-height: .5em;
				position: absolute;
				top: 16px;
				right: 16px;
			}

			.ab-test-modal-login .close:hover, .ab-test-modal-login .close:focus {
				color: black;
				text-decoration: none;
				cursor: pointer;
			}
			
			@media (min-width: 450px) {
				.ab-test-modal-login .ab-test-modal-content, .ab-test-modal-login .ab-test-modal-content p, .ab-test-modal-login .ab-test-modal-content ul {
					width: 92%;
				}
				
				.ab-test-modal-login .ab-test-modal-content {
					padding: 1.5em 2em;
				}
				
				.ab-test-modal-login .ab-test-modal-content ul {
					font-size: 16px;
				}
			}
			
			@media (min-width: 768px) {					
				.ab-test-profile-dot {
					right: 6px;
					top: 8px;
				}
				
				.ab-test-modal-login .ab-test-modal-content {
					padding: 2.5em 3em;
					width: 80%;
				}
				
				.ab-test-modal-login .ab-test-modal-content p, .ab-test-modal-login .ab-test-modal-content ul {
					width: 80%;
				}
			}
			@media (prefers-reduced-motion: reduce) {
				.ab-test-profile-dot .blinking {
				animation: none;
				}
			}
			`;
		var styleSheet = document.createElement("style");
		styleSheet.type = "text/css";
		loginButton.appendChild(styleSheet);
		styleSheet.innerText = style;
		
		loginButton.onclick = function(e) {
			if(allowNormalLoginButtonBehaviour === false) {
				e.stopImmediatePropagation();
				e.preventDefault();
				setCookie(cookieName, 'click', cookieExpiresOnClick);
				sendGAEvent('click login button');
				createModalWhenLinkIsClicked(loginButton);
			}
		};

		if (requireCdx) {
			cdx.confirm(true);
		}
	}
	else {
		sendGAEvent('script error: login button not found');
	}
} catch (e) {
	sendGAEvent('script error: ' + e);
}
 },'js-ZkmhuiuldcHtLniBuhOy': function (cdx) { //if article publishDate newer than x days
function checkPublishDate(days) {
  var publishedDate = false;
  var now = new Date();
  var wantedtime = 60 * 60 * 1000 * 24 * days;
  var d = window.dataLayer;
  for(var i = 0; i<d.length;i++) {
    if(d[i].page && d[i].page.publishedDate) {
      publishedDate = d[i].page.publishedDate;
    }
  }

  if(publishedDate) {
    if(publishedDate < now-wantedtime) {
  //    console.log('article older than ' + days + ' days');
      return false;
    }
    else {
    //  console.log('article younger than ' + days + ' days');
      return true;
    }
  }
  else {
    //console.log('no published date');
    return false;
  }
  return false;
}

if(checkPublishDate(7)) {
	return true;
}
return false;
 },'js-H0IG0pjG57SZDdRWgK2X-1718697025': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
if(!requireCdx) { testing = true;}
const experimentId = 'HS24-15';
const variantId = 'p';
const experimentName = experimentId + ' NPS';
const namelower = 'ab-test-from-conductrics-' + experimentId.toLowerCase() + '-' + variantId;
const description = 'NPS survey on article tail';
//const cookieNameMax = 'sndp_' + experimentId + '_amount_shown';
//const cookieDays = 4;               //how many days the cookie lives
//const howManyTimesIsShown = 2;      //what is the maximum amount of times the element is shown
const noCookies = true; //no cookie based frequency capping
const embeddedId = 'embed-giosg-nps'; //id of the embedded element


//these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {}; }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || []; }

const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';
const sendGAEvent = function (label) { if(testing) {console.log(label); } else { dataLayer.push({'event': 'eventInfo', 'eventCategory': 'Conductrics', 'eventAction': 'conductrics_event', 'eventLabel': stringIdPlusVariant + label});}};

try {   
    const setCookie = function(name,value,d) {
        let expires = "";
        if (d) {
            let date = new Date();
            date.setTime(date.getTime() + (d*24*60*60*1000));
            expires = "; expires=" + date.toUTCString();
        }
        document.cookie = name + "=" + (value || "")  + expires + "; path=/";
    };
    
    const getCookie = function(name) {
        let nameEQ = name + "=";
        let ca = document.cookie.split(';');
        for(let i=0;i < ca.length;i++) {
            let c = ca[i];
            while (c.charAt(0)==' ') c = c.substring(1,c.length);
            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
        }
        return 0; //return null;
    };

    const doExperimentChanges = function () {
        let experimentExists = document.querySelector('.conductrics-nps-survey-added');
        let articleTail = document.querySelector('.ab-test-article-body + .article-tail, .ab-test-article-body + .article-tail--xl');
        if(experimentExists) {
            //sendGAEvent('script failed, page already modified');
        } else if(articleTail && articleTail.clientHeight > 0) {  //actual changes here

            //load giosg tag
            (function(w, t, f) {
                var s='script',o='_giosg',h='https://service.giosg.com',e,n;e=t.createElement(s);e.async=1;e.src=h+'/live/';
                w[o]=w[o]||function(){(w[o]._e=w[o]._e||[]).push(arguments)};w[o]._c=f;w[o]._h=h;n=t.getElementsByTagName(s)[0];n.parentNode.insertBefore(e,n);
            })(window,document,5502);

            let newEmptyElement = document.createElement('div');
            newEmptyElement.id = embeddedId;
            newEmptyElement.style.position = 'relative';
            newEmptyElement.style.height = '320px';
            newEmptyElement.style.width = '320px';
            newEmptyElement.style.margin = '0 auto';
            //let amount = getCookie(cookieNameMax);
            //amount++;
            //setCookie(cookieNameMax, amount, cookieDays);
            if(noCookies) {
                if(articleTail.insertBefore(newEmptyElement, articleTail.childNodes[0])) {

                    //setting giosg variable, which triggers the popup
                    window.showEmbeddedGiosgHSArticleNPS2024 = true;

                    newEmptyElement.classList.add('conductrics-nps-survey-added', namelower);

                    sendGAEvent('element added');
                    dataLayer.push({'experiment': 'Conductrics', 'experimentID': experimentName, 'description': description});
                    if(requireCdx) {
                        cdx.confirm(true);
                    }
                    return true;
                }               
            }
            return true;
        } else {
            sendGAEvent('script error, html unexpected');
        }
    };

    doExperimentChanges();
} catch(e) {
    //if e does not contain text "confirm" or "cdx", then call the sendGAEvent function
    if(e.toString().indexOf('confirm') < 0 && e.toString().indexOf('cdx') < 0) {
        sendGAEvent('script error: ' + e);
    }
}
 },'js-fuwUkKVeFlwJpPfJThow': function (cdx) { window.conductrics_checkIfEligibileForP2p = function(isLoggedIn, p2p_lightgbm, p2p) {
    var isIphone = false;
    var isNotDirect = false;
    var isNotLoggedIn = false;
    var isNotTopDeciles = false;
    var topDecilesArray = ['1', '2', '3', '4']; //which deciles we look at (these are strings)

    if(navigator.userAgent.includes("iPhone")) {
    	isIphone = true; //is iphone because useragent has iphone
    }

    if(document.referrer != '' && document.referrer.includes('.hs.fi') === false) {
        isNotDirect = true; //is not direct because referrer exists and it's not hs.fi
    }

    if(isLoggedIn === 'Not_LoggedIn') {
        isNotLoggedIn = true; //is not logged-in because isLoggedIn=Not_LoggedIn
    }

    if(!topDecilesArray.includes(p2p_lightgbm) || !topDecilesArray.includes(p2p)) {
        isNotTopDeciles = true; // is not top deciles because either p2p or p2p_lightgbm is bottom decile
    }

    //if ALL of those are TRUE, then exclude from this agent.
    if(isIphone && isNotDirect && isNotLoggedIn && isNotTopDeciles) {
        return false;
    }
    return true;
}
return true;
 },'js-WzEdgyKyh8OFgTnwCfE0-1718778960': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
if (!requireCdx) { testing = true; }
const experimentId = 'HS24-17b';
const variantId = 'A';
const experimentName = experimentId + ' Timanttimuuri ot1-4';
const variantName = variantId + ' sample';
const currentDefaultButtonText = 'Lue 2 viikkoa maksutta'; //napin teksti
const paywallType = 'hard'; // hard or archived
const newAID = 'G4CB3BBODS4PS';

//these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {}; }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || []; }

const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';
const sendGAEvent = function (label) { if(testing) {console.log(label); } else { dataLayer.push({'event': 'eventInfo', 'eventCategory': 'Conductrics', 'eventAction': 'conductrics_event', 'eventLabel': stringIdPlusVariant + label});}};

try {
    const changeButtonUrl = function(button) {
        let pagePath = false; //'/hs-digi-tutustu';
        let urlParams = {
            'embedded': null,
            'offer': null,
            'aid': newAID,
            'ref': null,
            'showPaymentPeriodList': null,
            'variant': null
        };

        let url = new URL(button.href);
        // Update search params
        if (urlParams) {
            Object.keys(urlParams).forEach(function(key) {
                if (urlParams[key] === null) {
                    url.searchParams.delete(key);
                } else if (urlParams[key] !== undefined) {
                    url.searchParams.set(key, urlParams[key]);
                }
            });
        }
        // Update path
        if (pagePath) {
            let path = url.pathname.split('/');
            path.pop();
            path = path.join('/') + pagePath;
            //path = '/api/safe/v1/web/subscription-funnel' + path; //from new to old funnel
            if(path.includes('/shopping-ui/')) {
                path = path.replace('/shopping-ui/', '/');
            }
            
            url.pathname = path;
        }
        button.href = url.toString();
        return button;
    };
    if(requireCdx === false || window.conductrics_checkIfEligibileForP2p(cdx.trait('isLoggedIn'), cdx.trait('p2p_lightgbm'), cdx.trait('p2p'))) {
        const doExperimentChanges = function () {
            let experimentExists = document.querySelector('.ab-test-paywall-modified');
            let title = document.querySelector('.ab-test-' + paywallType + '-paywall-title');
            let subtitle = document.querySelector('.ab-test-' + paywallType + '-paywall-subtitle');
            let button = document.querySelector('.ab-test-' + paywallType + '-paywall-subscribe-button');
            let secondaryButton = document.querySelector('.ab-test-' + paywallType + '-paywall-secondary-subscribe-button');
            if(experimentExists) {
                //sendGAEvent('script failed, paywall already modified');
            } else if(title && button) { 
                if(button.innerText === currentDefaultButtonText) { //actual changes here
                    button = changeButtonUrl(button);
                    let namelower = 'ab-test-from-conductrics-' + experimentId.toLowerCase() + '-' + variantId;
                    title.classList.add('ab-test-paywall-modified', namelower);
            
                    dataLayer.push({'experiment': 'Conductrics', 'experimentID': experimentName, 'description': variantName});
                    //dataLayer.push({'event': 'eventInfo', 'eventCategory': 'paywall', 'eventAction': 'change offer at timanttimuuri', 'eventLabel': experimentName + ' ' + variantName});
                    
                    if(requireCdx) {
                        cdx.confirm(true);
                    }
                    return true;
                }
                else {
                    sendGAEvent('script failed, primary button text unexpected');
                }
            } else {
                sendGAEvent('script failed, paywall html unexpected');
            }
        };

        doExperimentChanges();
    }
} catch(err) {   
    sendGAEvent('script error: ' + err);
}
 },'js-n7tENWaxEdGhjkJiS4Dc-1718778960': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
if (!requireCdx) { testing = true; }
const experimentId = 'HS24-17b';
const variantId = 'B';
const experimentName = experimentId + ' Timanttimuuri ot1-4';
const variantName = variantId + ' gridi 2kk';
const currentDefaultButtonText = 'Lue 2 viikkoa maksutta'; //jatkuvan napin teksti
const paywallType = 'hard'; // hard or archived
const commonDateUntil = 60; //false or number of days
const miniDateUntil = 60;
const digiDateUntil = 60;
const miniAID = 'G7UKHYXG7D3Z5'; //HS Digi
const digiAID = 'GC5VGQCYLTU84'; //HS Digi+
const miniPath = '/hs-mini-tutustu-2'; //HS Digi
const digiPath = '/hs-digi-tutustu-2'; //HS Digi+
const showProductFeatures = true;
const feedTitle = 'Hesarin digitilauksella pääset lukemaan rajoituksetta tämän ja yli 400 uutta timanttiartikkelia kuukaudessa';

//these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {}; }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || []; }

const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';
const sendGAEvent = function (label) { if(testing) {console.log(label); } else { dataLayer.push({'event': 'eventInfo', 'eventCategory': 'Conductrics', 'eventAction': 'conductrics_event', 'eventLabel': stringIdPlusVariant + label});}};

try {
    if(requireCdx === false || window.conductrics_checkIfEligibileForP2p(cdx.trait('isLoggedIn'), cdx.trait('p2p_lightgbm'), cdx.trait('p2p'))) {
        let containerdiv = false;

        const createElem = function(tag, classes, text) {
            let elem = document.createElement(tag);
            if(classes) {
                elem.classList.add(classes);
            }
            if(text) {
                elem.innerHTML = text;
            }
            return elem;
        }

        const changeButtonUrl = function (button, pos) {
            let pagePath = digiPath;
            let urlParams = {
              embedded: null,
              aid: digiAID,
              ref: 'maksumuuri_kova_saannot',
              showPaymentPeriodList: null,
              offer: null,
              variant: null
            }
          
            if(pos === 'right' || pos === 'Digi') {
              pagePath = miniPath;
              urlParams = {
                embedded: null,
                aid: miniAID,
                ref: 'maksumuuri_kova_saannot',
                showPaymentPeriodList: null,
                offer: 3,
                variant: null
              }
            }
          
            let url = new URL(button.href);
            // Update search params
            if (urlParams) {
              Object.keys(urlParams).forEach(function (key) {
                if (urlParams[key] === null) {
                  url.searchParams.delete(key)
                } else if (urlParams[key] !== undefined) {
                  url.searchParams.set(key, urlParams[key])
                }
              })
            }
            // Update path
            if (pagePath) {
                let path = url.pathname.split('/');
                path.pop();
                path = path.join('/') + pagePath;
                path = '/api/safe/v1/web/subscription-funnel' + path; //from new to old funnel
                if(path.includes('/shopping-ui/')) {
                    path = path.replace('/shopping-ui/', '/');
                }
                
                url.pathname = path;
            }
            button.href = url.toString()
          
            button.onclick = function (e) {
              sendGAEvent('click subscribe ' + pos + ' at ' + variantId)
            }
            return button;
        } 

        const insertStyle = function(containerdiv) {
            let style = `
                    :root {
                        --main-color: #27818F; /*#41a492;*/
                        --underline-color: #bde0da;
                    }
                        
                    .ab-test-paywall-container {
                        box-shadow: 0px 4px 8px 4px rgba(0, 0, 0, 0.2);
                        border: solid 0.8px rgba(0, 0, 0, 0.05);
                        background-color: #fff;
                        background-color: var(--main-color);
                        padding-bottom: 1.5em;
                        border-radius: 8px;
                        width: 100%;
                    }
                    
                    .ab-test-hard-paywall-subtitle {
                        display: none;
                    }
                    
                    .ab-test-paywall-container .ab-test-hard-paywall-title {
                        font-size: 26px;
                        line-height: 1.2;
                        margin-top: 24px;
                        margin-bottom: 16px;
                        padding: 0 16px;
                    }
                    
                    .ab-test-paywall-container .ab-test-hard-paywall-title, .ab-test-paywall-grid p {
                        color: #fff;
                    }
                                    
                    .ab-test-paywall-grid {
                        width: 100%;
                        display: flex;
                        flex-direction: row;
                        justify-content: space-evenly;
                        margin-top: 24px;
                    }
                    
                    .ab-test-paywall-grid .ab-grid-divider {
                        width: 1px;
                        border-left: 2px solid #eee;
                    }
                    
                    .ab-test-paywall-grid .ab-grid-left, .ab-test-paywall-grid .ab-grid-right {
                        text-align: center;
                        border-radius: 1.5px;
                        display: flex;
                        flex-direction: column;
                        justify-content: space-between;
                    }
                                
                    .ab-test-paywall-grid .ab-grid-icon {
                        display: inline-block;
                        margin-right: 8px;
                        vertical-align: text-top;
                    }
                    
                    .ab-test-paywall-grid .ab-grid-left p, .ab-test-paywall-grid .ab-grid-right p, .ab-button-container-grid .ab-grid-label {
                        font-family: Helsingin;
                        font-size: 1rem;
                        margin: 0.2em 0;
                    }
                    
                    .ab-test-hard-paywall .ab-grid-label {
                        display: flex;
                        flex-direction: row;
                        align-items: center;
                        justify-content: center;
                    }
                    
                    .ab-test-hard-paywall .ab-grid-label object {
                        margin-right: 5px;
                    }
                                    
                    .ab-test-paywall-grid p.ab-grid-type, .ab-test-paywall-grid p.ab-grid-until {
                        display: inline-block;
                        margin-top: 1em;
                        font-weight: 700;
                        font-size: 16px;
                        line-height: 21.6px;
                        margin-top: .5em;
                    }

                    .ab-test-paywall-grid p.ab-grid-type > span {
                        font-size: 15px;
                    }
                    
                    .ab-test-paywall-grid .ab-grid-left p, .ab-test-paywall-grid .ab-grid-right p {
                        margin: 8px auto;
                        text-align: center;
                    }

                    .ab-test-paywall-grid p.ab-grid-type {
                        display: block;
                        margin-top: 0;
                    }
                    
                    .ab-button-container-grid .ab-grid-label > span {
                        margin-right: 1em;
                        font-weight: 700;
                        text-align: center;
                    }
                    
                    .ab-test-paywall-grid p.ab-grid-price {
                        margin-top: 0;
                        line-height: 1.2;
                        font-size: .75rem;
                    }
                    
                    .ab-test-paywall-grid .ab-grid-price > span {
                        font-size: 2rem;
                        font-weight: 700;
                    }
                    
                    .ab-test-paywall-grid p.ab-grid-text {
                        position: relative;
                        font-size: 13px;
                        padding: 0 3px;
                        font-weight: 500;
                        text-align: center;
                        margin: 8px auto 16px;
                        color: var(--underline-color);
                    }
                    
                    .ab-test-paywall-grid p.ab-grid-text:before {
                        position: absolute;
                        content: "";
                        left: 0;
                        top: 50%;
                        right: 0;
                        border-top: 1px solid var(--underline-color);
                        opacity: 1;
                        -webkit-transform: rotate(-5deg);
                        transform: rotate(-5deg);
                    }

                    .ab-test-paywall-grid .ab-grid-list {
                        font-family: Helsingin;
                        color: #fff;
                        font-size: 11px;
                        margin-top: 0;
                        text-align: left;
                        list-style: none;
                        padding: 0 5px;
                        margin-bottom: 24px;
                        display: flex;
                        flex-direction: column;
                        flex-grow: 1;
                    }
    
                    .ab-test-paywall-grid .ab-grid-list li:before {
                        content: '✓';
                        content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M21.2407 4.34921C21.6002 3.92989 22.2315 3.88132 22.6508 4.24075C23.0379 4.57252 23.109 5.13595 22.835 5.55048L22.7593 5.65079L10.7593 19.6508C10.4072 20.0615 9.79976 20.1132 9.38499 19.7887L9.29289 19.7071L1.29289 11.7071C0.902369 11.3166 0.902369 10.6834 1.29289 10.2929C1.65338 9.93241 2.22061 9.90468 2.6129 10.2097L2.70711 10.2929L9.943 17.528L21.2407 4.34921Z' fill='%23ffffff'/%3E%3C/svg%3E");
                        margin-right: 5px;
                        vertical-align: middle;
                    }
                    
                    .ab-test-paywall-grid .ab-grid-text > span {
                        font-weight: bold;
                    }
                    
                    .ab-test-paywall-grid .ab-grid-choose-button {
                        width: 120px;
                        font-weight: 500;
                        margin: 0 auto;
                        background: #fff;
                        color: var(--main-color);
                    }
                    
                    .ab-test-paywall-grid .ab-grid-choose-button:hover, .ab-test-paywall-grid .ab-grid-choose-button:active, .ab-test-paywall-grid .ab-grid-choose-button:focus {
                        background: #ebf4f5;
                    }
                    
                    .ab-button-container-grid {
                        padding-top: 1em;
                        justify-content: space-evenly
                    }
                    
                    .ab-test-hard-paywall-login-button {
                        width: 240px;
                        margin: 0 auto;
                        margin-top: 1.5em;
                    }
                    
                    .ab-test-hard-paywall-offering {
                        font-weight: 400;
                        max-width: 480px;
                    }
                    
                    @media (min-width: 360px) {
                        .ab-test-paywall-container .ab-test-hard-paywall-title {
                            font-size: 28px;
                        }
                        
                        .ab-test-paywall-grid p.ab-grid-type {
                            font-size: 1.2rem;
                        }

                        .ab-test-paywall-grid p.ab-grid-type > span {
                            font-size: 1.15rem;
                        }
                        
                        .ab-test-paywall-grid p.ab-grid-price {
                            font-size: .8rem;
                        }
                        
                        .ab-test-paywall-grid .ab-grid-choose-button {
                            width: 130px;
                        }

                        .ab-test-paywall-grid .ab-grid-list {
                            font-size: 12px;
                        }
                    }
                    
                    @media (min-width: 450px) {
                        .ab-test-paywall-container .ab-test-hard-paywall-title {
                            font-size: 30px;
                        }

                        .ab-test-paywall-grid p.ab-grid-type {
                            font-size: 1.3rem;
                        }

                        .ab-test-paywall-grid p.ab-grid-type > span {
                            font-size: 1.2rem;
                        }
                        
                        .ab-test-paywall-container {
                            width: 420px;
                        }

                        .ab-test-paywall-grid .ab-grid-list {
                            font-size: 14px;
                        }
                    }
            `;
            
            if(document.location.pathname.indexOf('/visio/') > -1 ||
            document.location.pathname.indexOf('/teknologia/') > -1 ||
            document.location.pathname.indexOf('/talous/') > -1 ||
            document.location.pathname.indexOf('/autot/') > -1) {
            style += `	
                    .ab-test-paywall-container {
                        background-color: #b7384b;
                    }
                    
                    .ab-test-paywall-grid p.ab-grid-text, .ab-test-paywall-top-content-price {
                        color: #f9eee7;
                    }
                    
                    .ab-test-paywall-grid .ab-grid-choose-button:hover, .ab-test-paywall-grid .ab-grid-choose-button:active, .ab-test-paywall-grid .ab-grid-choose-button:focus {
                        background: #f7ebed;
                    }
                    
                    .ab-test-paywall-grid p.ab-grid-text:before {
                        border-top: 1px solid #f9eee7;
                    }
                    
                    .ab-test-paywall-grid .ab-grid-choose-button {
                        color: #b7384b;
                    }
                `;
            }
                        
            let styleSheet = document.createElement("style");
            styleSheet.type = "text/css";
            containerdiv.appendChild(styleSheet);
            styleSheet.innerText = style;
        };

        const insertGridHtml = function(paywall, title, subtitle, button, secondaryButton) {
            if(secondaryButton) {
                secondaryButton.style.display = 'none';
                
                let loginLink = paywall.querySelector('.ab-test-hard-paywall-login-link');
                if(loginLink) {
                    let parent = loginLink.parentElement;
                    parent.classList.remove('mt-16');
                    loginLink.classList.add('flex', 'items-center', 'justify-center', 'button', 'button--md', 'button--secondary', 'my-8', 'ab-test-hard-paywall-login-button');
                    loginLink.classList.remove('button-textlink-10');
                    loginLink.innerText = 'Olen jo tilaaja';
                    parent.appendChild(loginLink);
                }
            }
            
            let containerdiv = createElem('div', 'ab-test-paywall-container', false);
                    
            title.classList.add('flex', 'flex-col', 'mt-24', 'mb-32');
            title.innerText = 'Tutustu Hesariin maksutta';

            if(commonDateUntil) {
                let date = new Date();
                date.setDate(date.getDate() + commonDateUntil);
                let dd = date.getDate();
                let mm = date.getMonth()+1;
                let pvmText = dd.toString() + '.' + mm.toString() + '. asti';
                title.innerText = 'Tutustu Hesariin maksutta ' + pvmText;
            }
            containerdiv.appendChild(title);
            
            subtitle.classList.add('hidden');
            
            let bottomdiv = createElem('div', 'ab-test-paywall-grid', false);
            let divleft = createElem('div', 'ab-grid-left', false);
            let tilaustyyppi = createElem('p', 'ab-grid-type', 'HS Digi+ <span>2 kk 0 €</span>');
            divleft.appendChild(tilaustyyppi);

            if(!commonDateUntil) {
                var icon_left = document.createElementNS("http://www.w3.org/2000/svg", "svg"); //this is defined with var on purpose, not with let
                icon_left.setAttribute('width', '19');
                icon_left.setAttribute('height', '19');
                icon_left.setAttribute('viewBox', '0 0 19 19');
                icon_left.innerHTML = `<path fill-rule="evenodd" clip-rule="evenodd" d="M4.75 1C4.75 0.447715 5.19772 0 5.75 0C6.30228 0 6.75 0.447715 6.75 1V3H12.75V1C12.75 0.447715 13.1977 0 13.75 0C14.3023 0 14.75 0.447715 14.75 1V3H17.75C18.3023 3 18.75 3.44772 18.75 4V18C18.75 18.5523 18.3023 19 17.75 19H1.75C1.19772 19 0.75 18.5523 0.75 18V4C0.75 3.44772 1.19772 3 1.75 3H4.75V1ZM2.75 7V17H16.75V7H2.75Z" fill="white"/>`;
                icon_left.classList.add('ab-grid-icon');
                
                let date = new Date();
                date.setDate(date.getDate() + miniDateUntil);
                let dd = date.getDate();
                let mm = date.getMonth()+1;
                let pvmText = dd.toString() + '.' + mm.toString() + '. asti';
                
                let pvmAsti = document.createElement('p');
                pvmAsti.appendChild(icon_left);
                pvmAsti.classList.add('ab-grid-until');
                pvmAsti.innerHTML += pvmText;
                divleft.appendChild(pvmAsti);
            }
            
            let alateksti = createElem('p', 'ab-grid-text', 'norm. 19,50 €/kk');
            divleft.appendChild(alateksti);

            if(showProductFeatures) {
                let ul = createElem('ul', 'ab-grid-list', '<li>Kaikki HS-timanttijutut</li><li>Tunnukset 4 lukijalle</li><li>Näköislehti</li>');
                divleft.appendChild(ul);
            }
            
            //let button = document.querySelector('.ab-test-hard-paywall-subscribe-button');
            divleft.appendChild(button);
            button = divleft.querySelector('.ab-test-hard-paywall-subscribe-button');
            button.classList.add('ab-grid-choose-button');
            button.classList.remove();
            button.innerText = 'Valitse';
           
            //clone right from left
            let divright = divleft.cloneNode(true);
            divright.classList.add('ab-grid-right');
            divright.classList.remove('ab-grid-left');

            divright.querySelector('.ab-grid-type').innerHTML = 'HS Digi <span>2 kk 0 €</span>';
            
            if(!commonDateUntil) {
                let date = new Date();
                date.setDate(date.getDate() + digiDateUntil);
                let dd = date.getDate();
                let mm = date.getMonth()+1;
                let pvmText = dd.toString() + '.' + mm.toString() + '. asti';
                let pvmAsti = divright.querySelector('.ab-grid-until');
                pvmAsti.innerHTML = '';
                pvmAsti.appendChild(icon_left);
                pvmAsti.innerHTML += pvmText;
            }
            
            divright.querySelector('.ab-grid-text').innerHTML = 'norm. 12,50 €/kk';
            if(showProductFeatures) {
                divright.querySelector('.ab-grid-list').innerHTML = '<li>Kaikki HS-timanttijutut</li>';
            }
            
            let divider = document.createElement('div');
            divider.classList.add('ab-grid-divider');
            
            bottomdiv.appendChild(divleft);
            bottomdiv.appendChild(divider);
            bottomdiv.appendChild(divright);
            containerdiv.appendChild(bottomdiv);
            
            paywall.insertBefore(containerdiv, paywall.childNodes[2]); //insert as 3rd element on paywall after subtitle		
            
            //content under two offers
            let bottom = paywall.querySelector('.ab-test-paywall-container + .paywall__buttons');
            if(bottom) {
                bottom.classList.add('ab-button-container-grid');
                let lista1 = createElem('p', 'ab-grid-label', 'Voit peruuttaa koska tahansa');
                
                if(document.location.pathname.indexOf('/visio/') > -1 ||
                    document.location.pathname.indexOf('/teknologia/') > -1 ||
                    document.location.pathname.indexOf('/talous/') > -1 ||
                    document.location.pathname.indexOf('/autot/') > -1) {
                        lista1.innerHTML = 'Voit peruuttaa koska tahansa';
                }
                
                bottom.appendChild(lista1);
                    
                let loginBtn = paywall.querySelector('.ab-test-hard-paywall-login-button');
                if(loginBtn) {
                    bottom.appendChild(loginBtn);
                }
            }

            button = changeButtonUrl(button, 'left');

            button = divright.querySelector('.ab-grid-choose-button');
            button = changeButtonUrl(button, 'right');
        
            return containerdiv;
        };

        const doExperimentChanges = function () {
            let experimentExists = document.querySelector('.ab-test-paywall-modified');
            let paywall = document.querySelector('.ab-test-' + paywallType + '-paywall');
            let title = document.querySelector('.ab-test-' + paywallType + '-paywall-title');
            let subtitle = document.querySelector('.ab-test-' + paywallType + '-paywall-subtitle');
            let button = document.querySelector('.ab-test-' + paywallType + '-paywall-subscribe-button');
            let secondaryButton = document.querySelector('.ab-test-' + paywallType + '-paywall-secondary-subscribe-button');
            if(experimentExists) {
                //sendGAEvent('script failed, paywall already modified');
            } else if(title && button) { 
                if(button.innerText === currentDefaultButtonText) { //actual changes here
                    containerdiv = insertGridHtml(paywall, title, subtitle, button, secondaryButton);
                    insertStyle(containerdiv);
                    
                    let namelower = 'ab-test-from-conductrics-' + experimentId.toLowerCase() + '-' + variantId;
                    title.classList.add('ab-test-paywall-modified', namelower);
            
                    dataLayer.push({'experiment': 'Conductrics', 'experimentID': experimentName, 'description': variantName});
                    dataLayer.push({'event': 'eventInfo', 'eventCategory': 'paywall', 'eventAction': 'change offer at timanttimuuri', 'eventLabel': experimentName + ' ' + variantName});

                    if(feedTitle) {
                        let paywallOffering = document.querySelector('.ab-test-hard-paywall-offering');
                        paywallOffering.innerText = feedTitle;
                    }
                    
                    if(requireCdx) {
                        cdx.confirm(true);
                    }
                    return true;
                }
                else {
                    sendGAEvent('script failed, primary button text unexpected');
                }
            } else {
                sendGAEvent('script failed, paywall html unexpected');
            }
        };

        doExperimentChanges();
    };
} catch(err) {
    sendGAEvent('script error: ' + err);
}
 },'js-V3HqmOQAONCQTI1ph7Tt-1718778960': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
if (!requireCdx) { testing = true; }
const experimentId = 'HS24-17b';
const variantId = 'C';
const experimentName = experimentId + ' Timanttimuuri ot1-4';
const variantName = variantId + ' sykloni radios 2kk';
const currentDefaultButtonText = 'Lue 2 viikkoa maksutta'; //jatkuvan napin teksti
const paywallType = 'hard'; // hard or archived
const commonDateUntil = 60; //false or number of days
const miniDateUntil = 60;
const digiDateUntil = 60;
const cycloneDateUntil = 240;
const miniAID = 'GQ4H3XH69DZY2'; //HS Digi
const digiAID = 'GK8HTBY5VDLK8'; //HS Digi+
const miniPath = '/hs-mini-tutustu-v62';
const digiPath = '/hs-digi-tutustu-v62';
const showProductFeatures = true;
const feedTitle = 'Hesarin digitilauksella pääset lukemaan rajoituksetta tämän ja yli 400 uutta timanttiartikkelia kuukaudessa';

//these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {}; }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || []; }

const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';
const sendGAEvent = function (label) { if(testing) {console.log(label); } else { dataLayer.push({'event': 'eventInfo', 'eventCategory': 'Conductrics', 'eventAction': 'conductrics_event', 'eventLabel': stringIdPlusVariant + label});}};

try {
    if(requireCdx === false || window.conductrics_checkIfEligibileForP2p(cdx.trait('isLoggedIn'), cdx.trait('p2p_lightgbm'), cdx.trait('p2p'))) {
        let containerdiv = false;

        const createElem = function(tag, classes, text) {
            let elem = document.createElement(tag);
            if(classes) {
                //split classes by space
                classes = classes.split(' ');
                for(let i = 0; i < classes.length; i++) {
                    elem.classList.add(classes[i]);
                }
            }
            if(text) {
                elem.innerHTML = text;
            }
            return elem;
        }

        const createProductElement = function(productname, title, features, button) {
            let product = createElem('label', 'ab-test-paywall-product', false);
            //product.setAttribute('for', 'radio_'+productname);
            let check = createElem('input', 'ab-radio', false);
            check.type = 'radio';
            check.name = 'product';
            //check.id = 'radio_'+productname;
            if(title.includes('HS Digi+')) {
                check.checked = 'checked';
            }
            let productcontent = createElem('div', 'ab-product-content', false);
            let producttitle = createElem('p', 'ab-product-title', title);
            let producttext = createElem('p', 'ab-product-text', features);

            product.appendChild(check);
            productcontent.appendChild(producttitle);
            productcontent.appendChild(producttext);
            product.appendChild(productcontent);
            check.onchange = function(e) {
                //sendGAEvent('click product ' + productname);
                changeButtonUrlAndText(button, productname);
            }
            return product;
        }

        const changeButtonUrlAndText = function (button, pos) {          
            let urlParams = false;
            let pagePath = false;

            if(pos === 'Digi') {
              pagePath = miniPath;
              urlParams = {
                embedded: null,
                aid: miniAID,
                ref: 'maksumuuri_kova_saannot',
                showPaymentPeriodList: null,
                offer: 3,
                variant: null
              }

              button.innerText = 'Tutustu HS Digi 2 kk 0 €';
            }
            else {
                pagePath = digiPath;
                urlParams = {
                  embedded: null,
                  aid: digiAID,
                  ref: 'maksumuuri_kova_saannot',
                  showPaymentPeriodList: null,
                  offer: null,
                  variant: null
                }
                
                button.innerText = 'Tutustu HS Digi+ 2 kk 0 €';
            }
          
            let url = new URL(button.href);
            // Update search params
            if (urlParams) {
              Object.keys(urlParams).forEach(function (key) {
                if (urlParams[key] === null) {
                  url.searchParams.delete(key)
                } else if (urlParams[key] !== undefined) {
                  url.searchParams.set(key, urlParams[key])
                }
              })
            }
            // Update path
            if (pagePath) {
                let path = url.pathname.split('/');
                path.pop();
                path = path.join('/') + pagePath;
                if(!path.includes('/api/safe/v1/web/subscription-funnel')) {
                    path = '/api/safe/v1/web/subscription-funnel' + path; //from new to old funnel
                }
                if(path.includes('/shopping-ui/')) {
                    path = path.replace('/shopping-ui/', '/');
                }
                
                url.pathname = path;
            }
            button.href = url.toString();
            button.setAttribute('data-product-name', pos);
            return button;
        } 

        const insertStyle = function(containerdiv) {
            let style = `
                    :root {
                        --main-color: #27818F; /*#41a492;*/
                        --underline-color: #787878;
                        --line-color: #E9EAED;
                    }
                        
                    .ab-test-paywall-container {
                        display: flex;
                        flex-direction: column;
                        box-shadow: 0px 4px 8px 4px rgba(0, 0, 0, 0.2);
                        border: solid 0.8px rgba(0, 0, 0, 0.05);
                        background-color: #fff;
                        border-radius: 8px;
                        width: 100%;
                        max-width: 400px;
                        padding: 16px;
                    }

                    .ab-test-paywall-container .ab-test-hard-paywall-title {
                        font-size: 26px;
                        margin-bottom: 24px;
                    }

                    .ab-test-paywall-product {
                        display: flex;
                        flex-direction: row;
                        align-items: baseline;
                        font-size: 16px;
                        font-family: 'Helsingin', Arial, sans-serif;
                        margin: 0 auto;
                        border-top: 1px solid var(--line-color);
                        padding: 12px 0px;
                        cursor: pointer;
                        min-width: 240px;
                    }

                    .ab-test-paywall-product:last-of-type {
                        border-bottom: 1px solid var(--line-color);
                    }

                    .ab-test-paywall-product .ab-product-content {
                        display: flex;
                        flex-direction: column;
                        margin-left: 20px;
                        width: 240px;
                    }

                    .ab-test-paywall-product .ab-radio {
                        transform: scale(1.8);
                        accent-color: var(--main-color);
                        cursor: pointer;
                    }

                    .ab-test-paywall-product .ab-product-title > span {
                        text-decoration: line-through;
                        font-size: 14px;
                    }

                    .ab-test-paywall-product .ab-product-text {
                        font-size: 14px;
                        margin-top: 8px;
                    }

                    .ab-test-paywall-product .ab-product-text svg {
                        fill: #191919;
                        display: inline;
                        margin-right: 5px;
                        vertical-align: baseline;
                    }

                    .ab-test-paywall-additional-info {
                        font-size: 15px;
                        font-weight: 600;
                        margin-top: 16px;
                        line-height: 1.2;
                    }

                    .ab-test-hard-paywall-subtitle {
                        font-size: 15px;
                        font-family: 'Helsingin', Arial, sans-serif;
                    }

                    .ab-test-hard-paywall-subscribe-button {
                        margin: 8px auto 4px;
                        width: 260px;
                    }

                    .ab-test-hard-paywall-login-button {
                        margin-top: 24px;
                        position: relative;
                        width: 240px;
                    }

                    .ab-test-hard-paywall-offering {
                        font-weight: 400;
                        max-width: 480px;
                    }

                    /* dark mode support */
                    .sndp-dark .ab-test-paywall-container {
                        border: solid 1px rgba(255, 255, 255, 0.3);
                        background: #151515;
                    }

                    .sndp-dark .ab-test-paywall-product .ab-product-text svg {
                        fill: #fff;
                    }
                    
                    @media (min-width: 360px) {
                        .ab-test-paywall-container .ab-test-hard-paywall-title {
                            
                        }
                    }
                    
                    @media (min-width: 450px) {
                        .ab-test-paywall-container .ab-test-hard-paywall-title {
                            
                        }
                    }
            `;
            
            if(document.location.pathname.indexOf('/visio/') > -1 ||
            document.location.pathname.indexOf('/teknologia/') > -1 ||
            document.location.pathname.indexOf('/talous/') > -1 ||
            document.location.pathname.indexOf('/autot/') > -1) {
            style += `	
                    .ab-test-paywall-grid .ab-grid-choose-button {
                        background: #b7384b;
                    }

                    .ab-test-paywall-product .ab-radio {
                        accent-color: #b7384b;
                    }

                    .ab-test-paywall-grid .ab-grid-choose-button:hover, .ab-test-paywall-grid .ab-grid-choose-button:active, .ab-test-paywall-grid .ab-grid-choose-button:focus {
                        background: #752f35;
                    }
                `;
            }
                        
            let styleSheet = document.createElement("style");
            styleSheet.type = "text/css";
            containerdiv.appendChild(styleSheet);
            styleSheet.innerText = style;
        };

        const doExperimentChanges = function () {
            let experimentExists = document.querySelector('.ab-test-paywall-modified');
            let paywall = document.querySelector('.ab-test-' + paywallType + '-paywall');
            let title = document.querySelector('.ab-test-' + paywallType + '-paywall-title');
            let subtitle = document.querySelector('.ab-test-' + paywallType + '-paywall-subtitle');
            let button = document.querySelector('.ab-test-' + paywallType + '-paywall-subscribe-button');
            let secondaryButton = document.querySelector('.ab-test-' + paywallType + '-paywall-secondary-subscribe-button');
            if(experimentExists) {
                //sendGAEvent('script failed, paywall already modified');
            } else if(title && button) { 
                if(button.innerText === currentDefaultButtonText) { //actual changes here
                    let namelower = 'ab-test-from-conductrics-' + experimentId.toLowerCase() + '-' + variantId;
                    title.classList.add('ab-test-paywall-modified', namelower);

                    let containerdiv = createElem('div', 'ab-test-paywall-container', false);

                    button = changeButtonUrlAndText(button, 'Digi+');
                    button.onclick = function (e) {
                        let productname = button.getAttribute('data-product-name');
                        sendGAEvent('click subscribe ' + productname + ' at ' + variantId)
                    }

                    if(commonDateUntil) {
                        let date = new Date();
                        date.setDate(date.getDate() + commonDateUntil);
                        let dd = date.getDate();
                        let mm = date.getMonth()+1;
                        let pvmSpan = createElem('span', 'ab-date-span', dd.toString() + '.' + mm.toString() + '. asti');
                        title.innerText = 'Lue maksutta ';
                        title.appendChild(pvmSpan);
                    }

                    let readingRightsForOneSvg = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="2 2 32 32" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M18.3725 13.5C20.0293 13.5 21.3725 12.1569 21.3725 10.5C21.3725 8.84315 20.0293 7.5 18.3725 7.5C16.7156 7.5 15.3725 8.84315 15.3725 10.5C15.3725 12.1569 16.7156 13.5 18.3725 13.5ZM18.3725 16.5C21.6862 16.5 24.3725 13.8137 24.3725 10.5C24.3725 7.18629 21.6862 4.5 18.3725 4.5C15.0588 4.5 12.3725 7.18629 12.3725 10.5C12.3725 13.8137 15.0588 16.5 18.3725 16.5ZM18.3725 18C23.8903 18 27.2436 20.6846 28.948 23.6222C28.9709 23.6617 28.9918 23.7017 29.0107 23.7423C29.3011 24.1997 29.3328 24.7992 29.0421 25.3002C27.3377 28.2379 23.8903 31.1253 18.3725 31.1253C12.8547 31.1253 9.40724 28.2379 7.70281 25.3002C7.41216 24.7992 7.44389 24.1999 7.73416 23.7425C7.7531 23.7019 7.77402 23.6617 7.79695 23.6222C9.50137 20.6846 12.8547 18 18.3725 18ZM10.7754 24.5282C12.1114 26.3666 14.5065 28.1253 18.3725 28.1253C22.2385 28.1253 24.6335 26.3666 25.9696 24.5282C24.6675 22.6761 22.3285 21 18.3725 21C14.4164 21 12.0774 22.6761 10.7754 24.5282Z"></path></svg>';
                    let readingRightsForFourSvg = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="13" viewBox="0 0 14 13" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.5809 3.16667C7.5809 4.63943 6.387 5.83333 4.91424 5.83333C3.44148 5.83333 2.24757 4.63943 2.24757 3.16667C2.24757 1.69391 3.44148 0.5 4.91424 0.5C6.387 0.5 7.5809 1.69391 7.5809 3.16667ZM6.24757 3.16667C6.24757 3.90305 5.65062 4.5 4.91424 4.5C4.17786 4.5 3.5809 3.90305 3.5809 3.16667C3.5809 2.43029 4.17786 1.83333 4.91424 1.83333C5.65062 1.83333 6.24757 2.43029 6.24757 3.16667Z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M9.61447 8.99877C8.85695 7.69314 7.3666 6.5 4.91424 6.5C2.46188 6.5 0.97153 7.69314 0.214008 8.99877C0.20382 9.01633 0.194523 9.03416 0.186103 9.05221C0.0570957 9.2555 0.0429897 9.52189 0.17217 9.74454C0.929692 11.0502 2.46188 12.3334 4.91425 12.3334C7.36661 12.3334 8.8988 11.0502 9.65632 9.74454C9.78552 9.52186 9.77139 9.25543 9.64234 9.05214C9.63393 9.03411 9.62464 9.0163 9.61447 8.99877ZM4.91425 11.0001C3.19602 11.0001 2.13155 10.2185 1.53775 9.40141C2.11643 8.57826 3.15599 7.83333 4.91424 7.83333C6.67249 7.83333 7.71205 8.57827 8.29073 9.40142C7.69693 10.2185 6.63246 11.0001 4.91425 11.0001Z"></path><path d="M8.58091 5.83333C8.1137 5.83333 7.67455 5.71318 7.29267 5.50209C7.60603 5.183 7.85567 4.80114 8.021 4.37709C8.19125 4.45598 8.38094 4.5 8.58091 4.5C9.31729 4.5 9.91424 3.90305 9.91424 3.16667C9.91424 2.43029 9.31729 1.83333 8.58091 1.83333C8.38094 1.83333 8.19125 1.87736 8.021 1.95624C7.85567 1.5322 7.60603 1.15033 7.29267 0.831247C7.67455 0.620154 8.1137 0.5 8.58091 0.5C10.0537 0.5 11.2476 1.69391 11.2476 3.16667C11.2476 4.63943 10.0537 5.83333 8.58091 5.83333Z"></path><path d="M9.66834 10.8844C9.21539 11.4261 8.63188 11.9239 7.91194 12.3003C8.12684 12.322 8.34979 12.3334 8.58092 12.3334C11.0333 12.3334 12.5655 11.0502 13.323 9.74454C13.4522 9.52186 13.4381 9.25543 13.309 9.05214C13.3006 9.03411 13.2913 9.0163 13.2811 8.99877C12.5236 7.69314 11.0333 6.5 8.58091 6.5C8.36457 6.5 8.15572 6.50929 7.95419 6.52711C8.67207 6.90013 9.24931 7.39617 9.6959 7.94617C10.7985 8.18463 11.5135 8.77001 11.9574 9.40142C11.5006 10.0299 10.7654 10.6374 9.66834 10.8844Z"></path></svg>';
                    let facsimileSvg = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="15" viewBox="0 0 16 15" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.0282 0.519266C14.9956 0.319292 14.822 0.166664 14.6128 0.166664H3.13458L3.06631 0.172173C2.86634 0.20479 2.71371 0.378338 2.71371 0.587534L2.71295 3.94837L0.838847 3.94897L0.768529 3.95481C0.562854 3.98937 0.408842 4.1729 0.41839 4.38847L0.818935 13.4318L0.847872 13.5654C1.0317 14.3071 1.55045 14.7823 2.27412 14.7823H13.6125L13.7284 14.7778C14.455 14.7212 15.0337 14.1365 15.0337 13.4132V0.587534L15.0282 0.519266ZM3.55469 1.0084H14.1912L14.192 13.4132L14.1868 13.4837C14.1491 13.7378 13.9103 13.9406 13.6125 13.9406H2.27412L2.18767 13.9352C1.90852 13.8994 1.72045 13.6867 1.65272 13.3339L1.27816 4.79011H2.71295L2.71371 12.0658L2.71922 12.1341C2.75184 12.334 2.92539 12.4867 3.13458 12.4867L3.20285 12.4812C3.40282 12.4485 3.55545 12.275 3.55545 12.0658L3.55469 1.0084Z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M9.25632 2.46232H12.3172C12.5496 2.46232 12.7381 2.65075 12.7381 2.88319V7.47449C12.7381 7.70693 12.5496 7.89536 12.3172 7.89536H9.25632C9.02388 7.89536 8.83545 7.70693 8.83545 7.47449V2.88319C8.83545 2.65075 9.02388 2.46232 9.25632 2.46232ZM11.8963 7.05362V3.30406H9.67719V7.05362H11.8963Z"></path><path d="M7.34328 4.75797V5.59971H5.04763V4.75797H7.34328Z"></path><path d="M7.34328 2.46232V3.30406H5.04763V2.46232H7.34328Z"></path><path d="M7.34328 7.05362V7.89536H5.04763V7.05362H7.34328Z"></path><path d="M12.6998 9.34927V10.191H5.04763V9.34927H12.6998Z"></path><path d="M12.6998 11.6449V12.4867H5.04763V11.6449H12.6998Z"></path></svg>';

                    let product1 = createProductElement('Digi+', 'HS Digi+ 2 kk 0 € (<span>norm. 19,50 €/kk</span>)', readingRightsForFourSvg + 'Lukuoikeus neljälle &nbsp;' + facsimileSvg + 'Näköislehti', button);
                    let product2 = createProductElement('Digi', 'HS Digi 2 kk 0 € (<span>norm. 12,50 €/kk<span>)', readingRightsForOneSvg + 'Lukuoikeus yhdelle', button);
                    
                    subtitle.innerText = 'Voit peruuttaa koska tahansa.';
                    subtitle.classList.remove('paywall__ingress');

                    if(secondaryButton) {
                        secondaryButton.style.display = 'none';
                        let loginLink = paywall.querySelector('.ab-test-hard-paywall-login-link');
                        if(loginLink) {
                            let parent = loginLink.parentElement;
                            parent.classList.remove('mt-16');
                            loginLink.classList.add('flex', 'items-center', 'justify-center', 'button', 'button--md', 'button--secondary', 'my-8', 'ab-test-hard-paywall-login-button');
                            loginLink.classList.remove('button-textlink-10');
                            loginLink.innerText = 'Olen jo tilaaja';
                            parent.appendChild(loginLink);
                        }
                    }

                    containerdiv.appendChild(title);
                    containerdiv.appendChild(product1);
                    containerdiv.appendChild(product2);
                    
                    if(cycloneDateUntil) {
                        let date = new Date();
                        date.setDate(date.getDate() + cycloneDateUntil);
                        let dd = date.getDate();
                        let mm = date.getMonth()+1;
                        let pvmText = dd.toString() + '.' + mm.toString() + '.';
                        let cycloneText = createElem('div', 'paywall__text-block ab-test-paywall-additional-info', 'Maksuttoman jakson jälkeen voit jatkaa tilausta -50 % hinnalla ' + pvmText + ' asti.');
                        containerdiv.appendChild(cycloneText);
                    }

                    containerdiv.appendChild(subtitle);

                    containerdiv.appendChild(button);

                    insertStyle(containerdiv);
                    paywall.insertBefore(containerdiv, paywall.childNodes[1]); //insert as 2nd element on paywall after paywall indicator	
            
                    dataLayer.push({'experiment': 'Conductrics', 'experimentID': experimentName, 'description': variantName});
                    dataLayer.push({'event': 'eventInfo', 'eventCategory': 'paywall', 'eventAction': 'change offer at timanttimuuri', 'eventLabel': experimentName + ' ' + variantName});

                    if(feedTitle) {
                        let paywallOffering = document.querySelector('.ab-test-hard-paywall-offering');
                        paywallOffering.innerText = feedTitle;
                    }
                    
                    if(requireCdx) {
                        cdx.confirm(true);
                    }
                    return true;
                }
                else {
                    sendGAEvent('script failed, primary button text unexpected');
                }
            } else {
                sendGAEvent('script failed, paywall html unexpected');
            }
        };

        doExperimentChanges();
    };
} catch(e) {
    console.log(e)

  let err = e
  let err_split = e.stack.split('\n')
  let err_line = false
  if (err_split[1]) {
    err_line = err_split[1].split('>:')
  }
  if (err_line[1]) {
    err = err_line[1]
  }
  sendGAEvent('script error: ' + err)
}
 },'js-RCdtyAbGhBrkO2mWeoQc-1718778960': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
if (!requireCdx) { testing = true; }
const experimentId = 'HS24-17b';
const variantId = 'D';
const experimentName = experimentId + ' Timanttimuuri ot1-4';
const variantName = variantId + ' gridi 1kk';
const currentDefaultButtonText = 'Lue 2 viikkoa maksutta'; //jatkuvan napin teksti
const paywallType = 'hard'; // hard or archived
const commonDateUntil = 30; //false or number of days
const miniDateUntil = 30;
const digiDateUntil = 30;
const miniAID = 'G4TTYLZXHVRWS'; //HS Digi
const digiAID = 'GI6TVNZUTDHTG'; //HS Digi+
const showProductFeatures = true;
const feedTitle = 'Hesarin digitilauksella pääset lukemaan rajoituksetta tämän ja yli 400 uutta timanttiartikkelia kuukaudessa';

//these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {}; }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || []; }

const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';
const sendGAEvent = function (label) { if(testing) {console.log(label); } else { dataLayer.push({'event': 'eventInfo', 'eventCategory': 'Conductrics', 'eventAction': 'conductrics_event', 'eventLabel': stringIdPlusVariant + label});}};

try {
    if(requireCdx === false || window.conductrics_checkIfEligibileForP2p(cdx.trait('isLoggedIn'), cdx.trait('p2p_lightgbm'), cdx.trait('p2p'))) {
        let containerdiv = false;

        const createElem = function(tag, classes, text) {
            let elem = document.createElement(tag);
            if(classes) {
                elem.classList.add(classes);
            }
            if(text) {
                elem.innerHTML = text;
            }
            return elem;
        }

        const changeButtonUrl = function (button, pos) {
            let pagePath = '/hs-digi-tutustu';
            let urlParams = {
              embedded: null,
              aid: digiAID,
              ref: 'maksumuuri_kova_saannot',
              showPaymentPeriodList: null,
              offer: null,
              variant: null
            }
          
            if(pos === 'right' || pos === 'Digi') {
              pagePath = '/hs-mini-tutustu';
              urlParams = {
                embedded: null,
                aid: miniAID,
                ref: 'maksumuuri_kova_saannot',
                showPaymentPeriodList: null,
                offer: 3,
                variant: null
              }
            }
          
            let url = new URL(button.href);
            // Update search params
            if (urlParams) {
              Object.keys(urlParams).forEach(function (key) {
                if (urlParams[key] === null) {
                  url.searchParams.delete(key)
                } else if (urlParams[key] !== undefined) {
                  url.searchParams.set(key, urlParams[key])
                }
              })
            }
            // Update path
            if (pagePath) {
                let path = url.pathname.split('/');
                path.pop();
                path = path.join('/') + pagePath;
                path = '/api/safe/v1/web/subscription-funnel' + path; //from new to old funnel
                if(path.includes('/shopping-ui/')) {
                    path = path.replace('/shopping-ui/', '/');
                }
                
                url.pathname = path;
            }
            button.href = url.toString()
          
            button.onclick = function (e) {
              sendGAEvent('click subscribe ' + pos + ' at ' + variantId)
            }
            return button;
        } 

        const insertStyle = function(containerdiv) {
            let style = `
                    :root {
                        --main-color: #27818F; /*#41a492;*/
                        --underline-color: #bde0da;
                    }
                        
                    .ab-test-paywall-container {
                        box-shadow: 0px 4px 8px 4px rgba(0, 0, 0, 0.2);
                        border: solid 0.8px rgba(0, 0, 0, 0.05);
                        background-color: #fff;
                        background-color: var(--main-color);
                        padding-bottom: 1.5em;
                        border-radius: 8px;
                        width: 100%;
                    }
                    
                    .ab-test-hard-paywall-subtitle {
                        display: none;
                    }
                    
                    .ab-test-paywall-container .ab-test-hard-paywall-title {
                        font-size: 26px;
                        line-height: 1.2;
                        margin-top: 24px;
                        margin-bottom: 16px;
                        padding: 0 16px;
                    }
                    
                    .ab-test-paywall-container .ab-test-hard-paywall-title, .ab-test-paywall-grid p {
                        color: #fff;
                    }
                                    
                    .ab-test-paywall-grid {
                        width: 100%;
                        display: flex;
                        flex-direction: row;
                        justify-content: space-evenly;
                        margin-top: 24px;
                    }
                    
                    .ab-test-paywall-grid .ab-grid-divider {
                        width: 1px;
                        border-left: 2px solid #eee;
                    }
                    
                    .ab-test-paywall-grid .ab-grid-left, .ab-test-paywall-grid .ab-grid-right {
                        text-align: center;
                        border-radius: 1.5px;
                        display: flex;
                        flex-direction: column;
                        justify-content: space-between;
                    }
                                
                    .ab-test-paywall-grid .ab-grid-icon {
                        display: inline-block;
                        margin-right: 8px;
                        vertical-align: text-top;
                    }
                    
                    .ab-test-paywall-grid .ab-grid-left p, .ab-test-paywall-grid .ab-grid-right p, .ab-button-container-grid .ab-grid-label {
                        font-family: Helsingin;
                        font-size: 1rem;
                        margin: 0.2em 0;
                    }
                    
                    .ab-test-hard-paywall .ab-grid-label {
                        display: flex;
                        flex-direction: row;
                        align-items: center;
                        justify-content: center;
                    }
                    
                    .ab-test-hard-paywall .ab-grid-label object {
                        margin-right: 5px;
                    }
                                    
                    .ab-test-paywall-grid p.ab-grid-type, .ab-test-paywall-grid p.ab-grid-until {
                        display: inline-block;
                        margin-top: 1em;
                        font-weight: 700;
                        font-size: 18px;
                        line-height: 21.6px;
                        margin-top: .5em;
                    }

                    .ab-test-paywall-grid p.ab-grid-type > span {
                        margin-left: 4px;
                    }
                    
                    .ab-test-paywall-grid .ab-grid-left p, .ab-test-paywall-grid .ab-grid-right p {
                        margin: 8px auto;
                        text-align: center;
                    }

                    .ab-test-paywall-grid p.ab-grid-type {
                        display: block;
                        margin-top: 0;
                    }
                    
                    .ab-button-container-grid .ab-grid-label > span {
                        margin-right: 1em;
                        font-weight: 700;
                        text-align: center;
                    }
                    
                    .ab-test-paywall-grid p.ab-grid-price {
                        margin-top: 0;
                        line-height: 1.2;
                        font-size: .75rem;
                    }
                    
                    .ab-test-paywall-grid .ab-grid-price > span {
                        font-size: 2rem;
                        font-weight: 700;
                    }
                    
                    .ab-test-paywall-grid p.ab-grid-text {
                        position: relative;
                        font-size: 13px;
                        padding: 0 3px;
                        font-weight: 500;
                        text-align: center;
                        margin: 8px auto 16px;
                        color: var(--underline-color);
                    }
                    
                    .ab-test-paywall-grid p.ab-grid-text:before {
                        position: absolute;
                        content: "";
                        left: 0;
                        top: 50%;
                        right: 0;
                        border-top: 1px solid var(--underline-color);
                        opacity: 1;
                        -webkit-transform: rotate(-5deg);
                        transform: rotate(-5deg);
                    }

                    .ab-test-paywall-grid .ab-grid-list {
                        font-family: Helsingin;
                        color: #fff;
                        font-size: 11px;
                        margin-top: 0;
                        text-align: left;
                        list-style: none;
                        padding: 0 5px;
                        margin-bottom: 24px;
                        display: flex;
                        flex-direction: column;
                        flex-grow: 1;
                    }
    
                    .ab-test-paywall-grid .ab-grid-list li:before {
                        content: '✓';
                        content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M21.2407 4.34921C21.6002 3.92989 22.2315 3.88132 22.6508 4.24075C23.0379 4.57252 23.109 5.13595 22.835 5.55048L22.7593 5.65079L10.7593 19.6508C10.4072 20.0615 9.79976 20.1132 9.38499 19.7887L9.29289 19.7071L1.29289 11.7071C0.902369 11.3166 0.902369 10.6834 1.29289 10.2929C1.65338 9.93241 2.22061 9.90468 2.6129 10.2097L2.70711 10.2929L9.943 17.528L21.2407 4.34921Z' fill='%23ffffff'/%3E%3C/svg%3E");
                        margin-right: 5px;
                        vertical-align: middle;
                    }
                    
                    .ab-test-paywall-grid .ab-grid-text > span {
                        font-weight: bold;
                    }
                    
                    .ab-test-paywall-grid .ab-grid-choose-button {
                        width: 120px;
                        font-weight: 500;
                        margin: 0 auto;
                        background: #fff;
                        color: var(--main-color);
                    }
                    
                    .ab-test-paywall-grid .ab-grid-choose-button:hover, .ab-test-paywall-grid .ab-grid-choose-button:active, .ab-test-paywall-grid .ab-grid-choose-button:focus {
                        background: #ebf4f5;
                    }
                    
                    .ab-button-container-grid {
                        padding-top: 1em;
                        justify-content: space-evenly
                    }
                    
                    .ab-test-hard-paywall-login-button {
                        width: 240px;
                        margin: 0 auto;
                        margin-top: 1.5em;
                    }
                    
                    .ab-test-hard-paywall-offering {
                        font-weight: 400;
                        max-width: 480px;
                    }
                    
                    @media (min-width: 360px) {
                        .ab-test-paywall-container .ab-test-hard-paywall-title {
                            font-size: 28px;
                        }
                        
                        .ab-test-paywall-grid p.ab-grid-type {
                            font-size: 1.3rem;
                        }
                        
                        .ab-test-paywall-grid p.ab-grid-price {
                            font-size: .8rem;
                        }
                        
                        .ab-test-paywall-grid .ab-grid-choose-button {
                            width: 130px;
                        }

                        .ab-test-paywall-grid .ab-grid-list {
                            font-size: 12px;
                        }
                    }
                    
                    @media (min-width: 450px) {
                        .ab-test-paywall-container .ab-test-hard-paywall-title {
                            font-size: 30px;
                        }

                        .ab-test-paywall-grid p.ab-grid-type {
                            font-size: 1.4rem;
                        }
                        
                        .ab-test-paywall-container {
                            width: 420px;
                        }

                        .ab-test-paywall-grid .ab-grid-list {
                            font-size: 14px;
                        }
                    }
            `;
            
            if(document.location.pathname.indexOf('/visio/') > -1 ||
            document.location.pathname.indexOf('/teknologia/') > -1 ||
            document.location.pathname.indexOf('/talous/') > -1 ||
            document.location.pathname.indexOf('/autot/') > -1) {
            style += `	
                    .ab-test-paywall-container {
                        background-color: #b7384b;
                    }
                    
                    .ab-test-paywall-grid p.ab-grid-text, .ab-test-paywall-top-content-price {
                        color: #f9eee7;
                    }
                    
                    .ab-test-paywall-grid .ab-grid-choose-button:hover, .ab-test-paywall-grid .ab-grid-choose-button:active, .ab-test-paywall-grid .ab-grid-choose-button:focus {
                        background: #f7ebed;
                    }
                    
                    .ab-test-paywall-grid p.ab-grid-text:before {
                        border-top: 1px solid #f9eee7;
                    }
                    
                    .ab-test-paywall-grid .ab-grid-choose-button {
                        color: #b7384b;
                    }
                `;
            }
                        
            let styleSheet = document.createElement("style");
            styleSheet.type = "text/css";
            containerdiv.appendChild(styleSheet);
            styleSheet.innerText = style;
        };

        const insertGridHtml = function(paywall, title, subtitle, button, secondaryButton) {
            if(secondaryButton) {
                secondaryButton.style.display = 'none';
                
                let loginLink = paywall.querySelector('.ab-test-hard-paywall-login-link');
                if(loginLink) {
                    let parent = loginLink.parentElement;
                    parent.classList.remove('mt-16');
                    loginLink.classList.add('flex', 'items-center', 'justify-center', 'button', 'button--md', 'button--secondary', 'my-8', 'ab-test-hard-paywall-login-button');
                    loginLink.classList.remove('button-textlink-10');
                    loginLink.innerText = 'Olen jo tilaaja';
                    parent.appendChild(loginLink);
                }
            }
            
            let containerdiv = createElem('div', 'ab-test-paywall-container', false);
                    
            title.classList.add('flex', 'flex-col', 'mt-24', 'mb-32');
            title.innerText = 'Tutustu Hesariin maksutta';

            if(commonDateUntil) {
                let date = new Date();
                date.setDate(date.getDate() + commonDateUntil);
                let dd = date.getDate();
                let mm = date.getMonth()+1;
                let pvmText = dd.toString() + '.' + mm.toString() + '. asti';
                title.innerText = 'Tutustu Hesariin maksutta ' + pvmText;
            }
            containerdiv.appendChild(title);
            
            subtitle.classList.add('hidden');
            
            let bottomdiv = createElem('div', 'ab-test-paywall-grid', false);
            let divleft = createElem('div', 'ab-grid-left', false);
            let tilaustyyppi = createElem('p', 'ab-grid-type', 'HS Digi+ <span>0 €</span>');
            divleft.appendChild(tilaustyyppi);

            if(!commonDateUntil) {
                var icon_left = document.createElementNS("http://www.w3.org/2000/svg", "svg"); //this is defined with var on purpose, not with let
                icon_left.setAttribute('width', '19');
                icon_left.setAttribute('height', '19');
                icon_left.setAttribute('viewBox', '0 0 19 19');
                icon_left.innerHTML = `<path fill-rule="evenodd" clip-rule="evenodd" d="M4.75 1C4.75 0.447715 5.19772 0 5.75 0C6.30228 0 6.75 0.447715 6.75 1V3H12.75V1C12.75 0.447715 13.1977 0 13.75 0C14.3023 0 14.75 0.447715 14.75 1V3H17.75C18.3023 3 18.75 3.44772 18.75 4V18C18.75 18.5523 18.3023 19 17.75 19H1.75C1.19772 19 0.75 18.5523 0.75 18V4C0.75 3.44772 1.19772 3 1.75 3H4.75V1ZM2.75 7V17H16.75V7H2.75Z" fill="white"/>`;
                icon_left.classList.add('ab-grid-icon');
                
                let date = new Date();
                date.setDate(date.getDate() + miniDateUntil);
                let dd = date.getDate();
                let mm = date.getMonth()+1;
                let pvmText = dd.toString() + '.' + mm.toString() + '. asti';
                
                let pvmAsti = document.createElement('p');
                pvmAsti.appendChild(icon_left);
                pvmAsti.classList.add('ab-grid-until');
                pvmAsti.innerHTML += pvmText;
                divleft.appendChild(pvmAsti);
            }
            
            let alateksti = createElem('p', 'ab-grid-text', 'norm. 19,50 €/kk');
            divleft.appendChild(alateksti);

            if(showProductFeatures) {
                let ul = createElem('ul', 'ab-grid-list', '<li>Kaikki HS-timanttijutut</li><li>Tunnukset 4 lukijalle</li><li>Näköislehti</li>');
                divleft.appendChild(ul);
            }
            
            //let button = document.querySelector('.ab-test-hard-paywall-subscribe-button');
            divleft.appendChild(button);
            button = divleft.querySelector('.ab-test-hard-paywall-subscribe-button');
            button.classList.add('ab-grid-choose-button');
            button.classList.remove();
            button.innerText = 'Valitse';
           
            //clone right from left
            let divright = divleft.cloneNode(true);
            divright.classList.add('ab-grid-right');
            divright.classList.remove('ab-grid-left');

            divright.querySelector('.ab-grid-type').innerHTML = 'HS Digi <span>0 €</span>';
            
            if(!commonDateUntil) {
                let date = new Date();
                date.setDate(date.getDate() + digiDateUntil);
                let dd = date.getDate();
                let mm = date.getMonth()+1;
                let pvmText = dd.toString() + '.' + mm.toString() + '. asti';
                let pvmAsti = divright.querySelector('.ab-grid-until');
                pvmAsti.innerHTML = '';
                pvmAsti.appendChild(icon_left);
                pvmAsti.innerHTML += pvmText;
            }
            
            divright.querySelector('.ab-grid-text').innerHTML = 'norm. 12,50 €/kk';
            if(showProductFeatures) {
                divright.querySelector('.ab-grid-list').innerHTML = '<li>Kaikki HS-timanttijutut</li>';
            }
            
            let divider = document.createElement('div');
            divider.classList.add('ab-grid-divider');
            
            bottomdiv.appendChild(divleft);
            bottomdiv.appendChild(divider);
            bottomdiv.appendChild(divright);
            containerdiv.appendChild(bottomdiv);
            
            paywall.insertBefore(containerdiv, paywall.childNodes[2]); //insert as 3rd element on paywall after subtitle		
            
            //content under two offers
            let bottom = paywall.querySelector('.ab-test-paywall-container + .paywall__buttons');
            if(bottom) {
                bottom.classList.add('ab-button-container-grid');
                let lista1 = createElem('p', 'ab-grid-label', 'Voit peruuttaa koska tahansa');
                
                if(document.location.pathname.indexOf('/visio/') > -1 ||
                    document.location.pathname.indexOf('/teknologia/') > -1 ||
                    document.location.pathname.indexOf('/talous/') > -1 ||
                    document.location.pathname.indexOf('/autot/') > -1) {
                        lista1.innerHTML = 'Voit peruuttaa koska tahansa';
                }
                
                bottom.appendChild(lista1);
                    
                let loginBtn = paywall.querySelector('.ab-test-hard-paywall-login-button');
                if(loginBtn) {
                    bottom.appendChild(loginBtn);
                }
            }

            button = changeButtonUrl(button, 'left');

            button = divright.querySelector('.ab-grid-choose-button');
            button = changeButtonUrl(button, 'right');
        
            return containerdiv;
        };

        const doExperimentChanges = function () {
            let experimentExists = document.querySelector('.ab-test-paywall-modified');
            let paywall = document.querySelector('.ab-test-' + paywallType + '-paywall');
            let title = document.querySelector('.ab-test-' + paywallType + '-paywall-title');
            let subtitle = document.querySelector('.ab-test-' + paywallType + '-paywall-subtitle');
            let button = document.querySelector('.ab-test-' + paywallType + '-paywall-subscribe-button');
            let secondaryButton = document.querySelector('.ab-test-' + paywallType + '-paywall-secondary-subscribe-button');
            if(experimentExists) {
                //sendGAEvent('script failed, paywall already modified');
            } else if(title && button) { 
                if(button.innerText === currentDefaultButtonText) { //actual changes here
                    containerdiv = insertGridHtml(paywall, title, subtitle, button, secondaryButton);
                    insertStyle(containerdiv);
                    
                    let namelower = 'ab-test-from-conductrics-' + experimentId.toLowerCase() + '-' + variantId;
                    title.classList.add('ab-test-paywall-modified', namelower);
            
                    dataLayer.push({'experiment': 'Conductrics', 'experimentID': experimentName, 'description': variantName});
                    dataLayer.push({'event': 'eventInfo', 'eventCategory': 'paywall', 'eventAction': 'change offer at timanttimuuri', 'eventLabel': experimentName + ' ' + variantName});

                    if(feedTitle) {
                        let paywallOffering = document.querySelector('.ab-test-hard-paywall-offering');
                        paywallOffering.innerText = feedTitle;
                    }
                    
                    if(requireCdx) {
                        cdx.confirm(true);
                    }
                    return true;
                }
                else {
                    sendGAEvent('script failed, primary button text unexpected');
                }
            } else {
                sendGAEvent('script failed, paywall html unexpected');
            }
        };

        doExperimentChanges();
    };
} catch(err) {
    sendGAEvent('script error: ' + err);
}
 },'js-LxFeurdGOOmdlTvHbnmL': function (cdx) { //eligibility selector: .paywall .twoWeeksButton, .paywall .ab-test-hard-paywall-subscribe-button, .ab-test-hard-paywall .ab-test-hard-paywall-subscribe-button-left

//this condition checks that the dynamic article is on HS.fi, not aamulehti.fi or satakunnankansa.fi
function isOnHS() {
  var button = document.querySelector('.paywall .twoWeeksButton, .paywall .ab-test-hard-paywall-subscribe-button, .ab-test-hard-paywall .ab-test-hard-paywall-subscribe-button-left');
    var buttonIsHS = button.href.startsWith('https://www.hs.fi');
    if(buttonIsHS) {
      return true;
    }
    return false;
}
  
  //use this function to check in dynamic HS articles that the user is not using HS app
  //therefore the condition needs to return false and then the experiment can proceed
function isHSApp() {
    //Show in HS app? HS app returns true
    if (navigator.userAgent.indexOf('HS-app') !== -1) {
      return true;
    }
    return false;
}

//check that both function isOnHS and isHSApp returns true
if(isOnHS() && isHSApp() === false) {
    return true;
}
return false;
 },'js-3Puuuz03ha0EVjhGninB-1718790232': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
if (!requireCdx) { testing = true; }
const experimentId = 'HS24-18b';
const variantId = 'A';
const variantName = 'default';
const experimentName = experimentId + ' Alasin-muuri';
const paywallType = 'hard'; // hard or archived
const miniAID = 'GIBVSJGL7VQ93'; //HS Digi
const digiAID = 'GSSZU3C26B7WH'; //HS Digi+

//these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {} }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || [] }

const stringIdPlusVariant = experimentId + ' ' + variantId + ': '
const sendGAEvent = function (label) { if (testing) { console.log(label)} else { dataLayer.push({event: 'eventInfo',eventCategory: 'Conductrics',eventAction: 'conductrics_event',eventLabel: stringIdPlusVariant + label})}}

const insertStyle = function (containerdiv, productOnLeft) {
  let flexDir = 'row';
  if(productOnLeft === 'Digi') {
    flexDir = 'row-reverse'; // /*change order of products if Digi was originally on left*/
  }

  const styles = `
    .paywall-background div.paywall-grid {
        flex-direction: ${flexDir};
    }

    .ab-test-paywall-modified .ab-test-paywall-background {
        max-width: 98%;
    }

    #alasin-main-container p {
        padding: 0;
    }

    .ab-test-paywall-modified .ab-test-paywall-grid-text {
      padding: 0 8px !important;
      margin: 18px auto 24px !important;
    }

    .ab-test-paywall-modified .ab-test-paywall-grid a.ab-test-hard-paywall-subscribe-button-left, .ab-test-paywall-modified .ab-test-paywall-grid a.ab-test-hard-paywall-subscribe-button-right {
        text-transform: capitalize;
    }

    .ab-test-paywall-modified .ab-test-paywall-grid a:hover, .ab-test-paywall-modified .ab-test-paywall-grid a:active, .ab-test-paywall-modified .ab-test-paywall-grid a:focus,
    .ab-test-hard-paywall-login-button:hover, .ab-test-hard-paywall-login-button:active, .ab-test-hard-paywall-login-button:focus {
        background: #edf4f5;
    }

    .ab-test-paywall-modified .ab-test-paywall-grid .ab-test-paywall-grid-type {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        font-size: 20px;
    }

    @media (min-width: 350px) {
        #alasin-main-container .ab-test-paywall-modified .ab-test-paywall-grid ul {
            font-size: 12px;
        }

        .ab-test-paywall-modified .ab-test-paywall-grid .ab-test-paywall-grid-type {
            font-size: 22px;
        }
    }

    @media (min-width: 450px) {
        #alasin-main-container .ab-test-paywall-modified .ab-test-paywall-grid ul {
            font-size: 14px;
        }

        .ab-test-paywall-modified .ab-test-paywall-grid .ab-test-paywall-grid-type {
            font-size: 24px;
        }
    }
  `;

  // Create stylesheet to define custom element styles for experiment
  let styleSheet = document.createElement('style');
  styleSheet.type = 'text/css';
  containerdiv.appendChild(styleSheet);
  styleSheet.innerText = styles;
}

const changeButtonUrl = function (button, pos) {
  let pagePath = '/hs-digi-tutustu'
  let urlParams = {
    embedded: null,
    aid: digiAID,
    ref: 'maksumuuri_kova',
    showPaymentPeriodList: null,
    offer: null,
    variant: null
  }

  if(pos === 'right' || pos === 'Digi') {
    pagePath = '/hs-mini-tutustu'
    urlParams = {
      embedded: null,
      aid: miniAID,
      ref: 'maksumuuri_kova',
      showPaymentPeriodList: null,
      offer: 3,
      variant: null
    }
  }

  let url = new URL(button.href);
  // Update search params
  if (urlParams) {
    Object.keys(urlParams).forEach(function (key) {
      if (urlParams[key] === null) {
        url.searchParams.delete(key)
      } else if (urlParams[key] !== undefined) {
        url.searchParams.set(key, urlParams[key])
      }
    })
  }
  // Update path
  if (pagePath) {
    let path = url.pathname.split('/')
    path.pop()
    path = path.join('/') + pagePath
    url.pathname = path;
  }
  button.href = url.toString()

  button.onclick = function (e) {
    sendGAEvent('click subscribe ' + pos + ' at ' + variantId)
  }
  return button;
}

const makeOldPaywallVersionsValid = function() {
  //some changes for older versions of paywall (no classes for grid elements)
  let paywallGridLeft = document.querySelector('.ab-test-paywall-grid-left');
  if(!paywallGridLeft) {
    paywallGridLeft = document.querySelector('.ab-test-hard-paywall .grid-left');
    paywallGridLeft.classList.add('ab-test-paywall-grid-left');

    let paywallGridRight = document.querySelector('.ab-test-hard-paywall .grid-right');
    paywallGridRight.classList.add('ab-test-paywall-grid-right');

    let grid = document.querySelector('.ab-test-hard-paywall .paywall-grid');
    grid.classList.add('ab-test-paywall-grid');

    let paywallBackground = document.querySelector('.ab-test-hard-paywall .paywall-background');
    paywallBackground.classList.add('ab-test-paywall-background');

    let productNames = document.querySelectorAll('.ab-test-hard-paywall .grid-type');
    //loop through and add classes
    productNames.forEach(function(productName) {
        productName.classList.add('ab-test-paywall-grid-type');
    });

    let productNormPrices = document.querySelectorAll('.ab-test-hard-paywall .grid-text');
    //loop through and add classes
    productNormPrices.forEach(function(normPrice) {
      normPrice.classList.add('ab-test-paywall-grid-text');
    });

    let productLists = document.querySelectorAll('.ab-test-hard-paywall .grid-list');
    //loop through and add classes
    productLists.forEach(function(list) {
      list.classList.add('ab-test-paywall-grid-list');
    });
  }
};

const doExperimentChanges = function () {
  let experimentExists = document.querySelector('.ab-test-paywall-modified');

  makeOldPaywallVersionsValid(); //changes were to paywall after 15.5.2024. This adds some classnames that were added in that change to older versions.

  let experimentParentDiv = document.querySelector('.ab-test-hard-paywall-wrapper');
  let paywall = document.querySelector('.ab-test-hard-paywall');
  let paywallGrid = document.querySelector('.ab-test-paywall-grid, .ab-test-hard-paywall .paywall-grid');
  let title = document.querySelector('.ab-test-' + paywallType + '-paywall-title');
  let button = document.querySelector('.ab-test-' + paywallType + '-paywall-subscribe-button-left');
  
  if (experimentExists) {
    sendGAEvent('script failed, paywall already modified');
  } else if (title && button && experimentParentDiv && paywallGrid) {
    //actual changes here

    let productOnLeft = 'Digi';
    let productOnRight = 'Digiplus';
    //let paywallGridRight = paywallGrid.querySelector('.ab-test-paywall-grid-right');
    let leftProductName = document.querySelector('.ab-test-paywall-grid-type').innerText;
    if(leftProductName.includes('Digi+')) { //check what actually is the product on left
      productOnLeft = 'Digiplus';
      productOnRight = 'Digi';
    }

    button = changeButtonUrl(button, productOnLeft);
    let buttonSecond = document.querySelector('.ab-test-hard-paywall-subscribe-button-right');
    if(buttonSecond) {
      buttonSecond = changeButtonUrl(buttonSecond, productOnRight);
    }

    insertStyle(paywall, productOnLeft);

    
   
    let namelower = 'ab-test-from-conductrics-' +experimentId.toLowerCase() +'-' +variantId;
    title.classList.add('ab-test-paywall-modified', namelower);
    paywall.classList.add('ab-test-paywall-modified', namelower);

    dataLayer.push({experiment: 'Conductrics',experimentID: experimentName,description: variantName});

    if (requireCdx) {
      cdx.confirm(true)
    }
    return true
  } else {
    sendGAEvent('script failed, paywall html unexpected')
  }
}

try {
  doExperimentChanges()
} catch (e) {
  console.log(e)

  let err = e
  let err_split = e.stack.split('\n')
  let err_line = false
  if (err_split[1]) {
    err_line = err_split[1].split('>:')
  }
  if (err_line[1]) {
    err = err_line[1]
  }
  sendGAEvent('script error: ' + err)
}
 },'js-v7UAkTOKeFnSYQLMmOqn-1722497514': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
if (!requireCdx) { testing = true; }
const experimentId = 'HS24-18b';
const variantId = 'B';
const experimentName = experimentId + ' Alasin-muuri';
const variantName = variantId + ' sykloni radio';
const currentDefaultSubtitleText = 'Voit peruuttaa tilauksen milloin tahansa.';
const paywallType = 'hard'; // hard or archived
const commonDateUntil = 60; //false or number of days
const cycloneDateUntil = 240;
const miniAID = 'GNFOXKYKBO83P'; //HS Digi
const miniPath = '/hs-mini-tutustu-v62';
const digiAID = 'GJJBVSX9ZXGVV'; //HS Digi+
const digiPath = '/hs-digi-tutustu-v62';
const showProductFeatures = true;
const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';

//these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {} }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || [] }

const sendGAEvent = function (label) { if (testing) { console.log(label)} else { dataLayer.push({event: 'eventInfo',eventCategory: 'Conductrics',eventAction: 'conductrics_event',eventLabel: stringIdPlusVariant + label})}}

const insertStyle = function (containerdiv, productOnLeft) {
  let flexDir = 'row';
  if(productOnLeft === 'Digi') {
    flexDir = 'row-reverse'; // /*change order of products if Digi was originally on left*/
  }

  let style = `
    :root {
      --main-color: #27818F; /*#41a492;*/
      --underline-color: #787878;
      --line-color: #E9EAED;
    }

    #alasin-main-container .ab-test-paywall-modified p {
        padding: 0;
    }

    .ab-test-paywall-container {
        display: flex;
        flex-direction: column;
        box-shadow: 0px 4px 8px 4px rgba(0, 0, 0, 0.2);
        border: solid 0.8px rgba(0, 0, 0, 0.05);
        background-color: #fff;
        border-radius: 8px;
        width: 96%;
        max-width: 400px;
        padding: 16px;
        margin: 16px auto;
        color: #191919;
    }

    .ab-test-paywall-container .ab-test-hard-paywall-title {
        font-size: 26px;
        margin-top: 8px;
        margin-bottom: 24px;
    }

    .ab-test-paywall-product {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        font-size: 16px;
        font-family: 'Helsingin', Arial, sans-serif;
        margin: 0 auto;
        border-top: 1px solid var(--line-color);
        padding: 12px 0px;
        cursor: pointer;
        min-width: 240px;
    }

    .ab-test-paywall-product p {
        font-family: 'Helsingin', Arial, sans-serif;
    }

    .ab-test-paywall-product:last-of-type {
        border-bottom: 1px solid var(--line-color);
    }

    .ab-test-paywall-product .ab-product-content {
        display: flex;
        flex-direction: column;
        margin-left: 12px;
        width: 240px;
    }

    .ab-test-paywall-product .ab-radio {
        transform: scale(1.8);
        accent-color: var(--main-color);
        cursor: pointer;
    }

    .ab-test-paywall-product .ab-product-title {
        font-size: 16px;
        font-family: 'Helsingin', Arial, sans-serif;
        padding: 0;
    }

    .ab-test-paywall-product .ab-product-title > span {
        text-decoration: line-through;
        font-size: 13px;
    }

    .ab-test-paywall-product .ab-product-text {
        font-size: 14px;
        margin-top: 8px !important;
        padding: 0;
    }

    .ab-test-paywall-product .ab-product-text svg {
        fill: #191919;
        display: inline;
        margin-right: 5px;
        vertical-align: baseline;
    }

    .ab-test-paywall-additional-info {
        font-size: 15px;
        font-weight: 500;
        margin-top: 16px;
        line-height: 1.2;
        letter-spacing: 0.2px;
        text-align: center;
        margin: 16px auto 0;
        font-family: 'Publico Text Web', 'Sanomat Banner Web', Arial, sans-serif;
        font-weight: 600;
    }

    .ab-test-hard-paywall-wrapper .ab-test-paywall-modified .ab-test-hard-paywall-subtitle {
        font-size: 15px;
        font-family: 'Helsingin Text Web', 'Helsingin', Arial, sans-serif;
    }
  
    .ab-test-hard-paywall-subscribe-button, .ab-test-hard-paywall-subscribe-button-left {
        margin: 8px auto;
        width: 260px;
        background: var(--main-color);
        color: #fff;
    }

    .ab-test-hard-paywall-subscribe-button-left:hover, .ab-test-hard-paywall-subscribe-button-left:focus, .ab-test-hard-paywall-subscribe-button-left:active {
        /* a bit darker from main color */
        background: #1f6b75;
    }

    .ab-test-hard-paywall-login-button {
        margin-top: 24px !important;
        position: relative;
        width: 240px;
    }

    .ab-test-hard-paywall-offering {
        font-weight: 400;
        max-width: 480px;
    }

    /* dark mode support */
    .sndp-dark .ab-test-paywall-container {
        border: solid 1px rgba(255, 255, 255, 0.3);
        background: #151515;
    }

    .sndp-dark .ab-test-paywall-product .ab-product-text svg {
        fill: #fff;
    }
    
    @media (min-width: 360px) {
        .ab-test-paywall-container .ab-test-hard-paywall-title {
            
        }

        .ab-test-paywall-product .ab-product-content {
            margin-left: 20px;
            width: 250px;
        }

        .ab-test-paywall-product .ab-product-title > span {
            font-size: 14px;
        }
    }
    
    @media (min-width: 450px) {
        .ab-test-paywall-container .ab-test-hard-paywall-title {
            
        }
    }
    `

  let styleSheet = document.createElement('style')
  styleSheet.type = 'text/css'
  containerdiv.appendChild(styleSheet)
  styleSheet.innerText = style
}

const changeButtonUrlAndText = function (button, pos) {          
  let urlParams = false;
  let pagePath = false;

  if(pos === 'Digi') {
    pagePath = miniPath;
    urlParams = {
      embedded: null,
      aid: miniAID,
      ref: 'maksumuuri_kova_saannot',
      showPaymentPeriodList: null,
      offer: 3,
      variant: null
    }

    button.innerText = 'Tutustu HS Digi 2 kk 0 €';
  }
  else {
      pagePath = digiPath;
      urlParams = {
        embedded: null,
        aid: digiAID,
        ref: 'maksumuuri_kova_saannot',
        showPaymentPeriodList: null,
        offer: null,
        variant: null
      }
      
      button.innerText = 'Tutustu HS Digi+ 2 kk 0 €';
  }

  let url = new URL(button.href);
  // Update search params
  if (urlParams) {
    Object.keys(urlParams).forEach(function (key) {
      if (urlParams[key] === null) {
        url.searchParams.delete(key)
      } else if (urlParams[key] !== undefined) {
        url.searchParams.set(key, urlParams[key])
      }
    })
  }
  // Update path
  if (pagePath) {
      let path = url.pathname.split('/');
      path.pop();
      path = path.join('/') + pagePath;
      if(!path.includes('/api/safe/v1/web/subscription-funnel')) {
          path = '/api/safe/v1/web/subscription-funnel' + path; //from new to old funnel
      }
      if(path.includes('/shopping-ui/')) {
          path = path.replace('/shopping-ui/', '/');
      }
      
      url.pathname = path;
  }
  button.href = url.toString();
  button.setAttribute('data-product-name', pos);
  return button;
} 

const createElem = function(tag, classes, text) {
  let elem = document.createElement(tag);
  if(classes) {
      //split classes by space
      classes = classes.split(' ');
      for(let i = 0; i < classes.length; i++) {
          elem.classList.add(classes[i]);
      }
  }
  if(text) {
      elem.innerHTML = text;
  }
  return elem;
}

const createProductElement = function(productname, title, features, button) {
  let product = createElem('label', 'ab-test-paywall-product', false);
  //product.setAttribute('for', 'radio_'+productname);
  let check = createElem('input', 'ab-radio', false);
  check.type = 'radio';
  check.name = 'product';
  //check.id = 'radio_'+productname;
  if(title.includes('HS Digi+')) {
      check.checked = 'checked';
  }
  let productcontent = createElem('div', 'ab-product-content', false);
  let producttitle = createElem('p', 'ab-product-title', title);
  let producttext = createElem('p', 'ab-product-text', features);

  product.appendChild(check);
  productcontent.appendChild(producttitle);
  productcontent.appendChild(producttext);
  product.appendChild(productcontent);
  check.onchange = function(e) {
      //sendGAEvent('click product ' + productname);
      changeButtonUrlAndText(button, productname);
  }
  return product;
}

const makeOldPaywallVersionsValid = function() {
  //some changes for older versions of paywall (no classes for grid elements)
  let paywallGridLeft = document.querySelector('.ab-test-paywall-grid-left');
  if(!paywallGridLeft) {
    paywallGridLeft = document.querySelector('.ab-test-hard-paywall .grid-left');
    paywallGridLeft.classList.add('ab-test-paywall-grid-left');

    let paywallGridRight = document.querySelector('.ab-test-hard-paywall .grid-right');
    paywallGridRight.classList.add('ab-test-paywall-grid-right');

    let grid = document.querySelector('.ab-test-hard-paywall .paywall-grid');
    grid.classList.add('ab-test-paywall-grid');

    let paywallBackground = document.querySelector('.ab-test-hard-paywall .paywall-background');
    paywallBackground.classList.add('ab-test-paywall-background');

    let productNames = document.querySelectorAll('.ab-test-hard-paywall .grid-type');
    //loop through and add classes
    productNames.forEach(function(productName) {
        productName.classList.add('ab-test-paywall-grid-type');
    });

    let productNormPrices = document.querySelectorAll('.ab-test-hard-paywall .grid-text');
    //loop through and add classes
    productNormPrices.forEach(function(normPrice) {
      normPrice.classList.add('ab-test-paywall-grid-text');
    });

    let productLists = document.querySelectorAll('.ab-test-hard-paywall .grid-list');
    //loop through and add classes
    productLists.forEach(function(list) {
      list.classList.add('ab-test-paywall-grid-list');
    });
  }
};

const doExperimentChanges = function () {
  let experimentExists = document.querySelector('.ab-test-paywall-modified');

  makeOldPaywallVersionsValid(); //changes were to paywall after 15.5.2024. This adds some classnames that were added in that change to older versions.

  let paywall = document.querySelector('.ab-test-hard-paywall');
  let title = document.querySelector('.ab-test-hard-paywall-title');
  let subtitle = document.querySelector('span.ab-test-hard-paywall-subtitle');
  let button = document.querySelector('.ab-test-hard-paywall-subscribe-button-left');
  let paywallGrid = document.querySelector('.ab-test-paywall-grid');
  let paywallBackground = document.querySelector('.ab-test-paywall-background');
  let loginButton = document.querySelector('.ab-test-hard-paywall-login-button');

  if (experimentExists) {
    sendGAEvent('script failed, paywall already modified');
  } else if (title && subtitle && paywall) {
    if (subtitle.innerText === currentDefaultSubtitleText) {
      //actual paywall changes here

      title.innerText = title.innerText.replace('Tutustu Hesariin ', 'Lue ');
      if(commonDateUntil) {
        let date = new Date();
        date.setDate(date.getDate() + commonDateUntil);
        let dd = date.getDate();
        let mm = date.getMonth()+1;
        let pvmText = dd.toString() + '.' + mm.toString() + '. asti';
        title.innerText = 'Lue maksutta ' + pvmText;
      }

      let namelower = 'ab-test-from-conductrics-' + experimentId.toLowerCase() + '-' + variantId;
      title.classList.add('ab-test-paywall-modified', namelower);
      paywall.classList.add('ab-test-paywall-modified', namelower);

      let containerdiv = createElem('div', 'ab-test-paywall-container', false);

      button = changeButtonUrlAndText(button, 'Digi+');
      button.onclick = function (e) {
          let productname = button.getAttribute('data-product-name');
          sendGAEvent('click subscribe ' + productname + ' at ' + variantId)
      }

      if(commonDateUntil) {
          let date = new Date();
          date.setDate(date.getDate() + commonDateUntil);
          let dd = date.getDate();
          let mm = date.getMonth()+1;
          let pvmSpan = createElem('span', 'ab-date-span', dd.toString() + '.' + mm.toString() + '. asti');
          title.innerText = 'Lue maksutta ';
          title.appendChild(pvmSpan);
      }

      let readingRightsForOneSvg = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="2 2 32 32" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M18.3725 13.5C20.0293 13.5 21.3725 12.1569 21.3725 10.5C21.3725 8.84315 20.0293 7.5 18.3725 7.5C16.7156 7.5 15.3725 8.84315 15.3725 10.5C15.3725 12.1569 16.7156 13.5 18.3725 13.5ZM18.3725 16.5C21.6862 16.5 24.3725 13.8137 24.3725 10.5C24.3725 7.18629 21.6862 4.5 18.3725 4.5C15.0588 4.5 12.3725 7.18629 12.3725 10.5C12.3725 13.8137 15.0588 16.5 18.3725 16.5ZM18.3725 18C23.8903 18 27.2436 20.6846 28.948 23.6222C28.9709 23.6617 28.9918 23.7017 29.0107 23.7423C29.3011 24.1997 29.3328 24.7992 29.0421 25.3002C27.3377 28.2379 23.8903 31.1253 18.3725 31.1253C12.8547 31.1253 9.40724 28.2379 7.70281 25.3002C7.41216 24.7992 7.44389 24.1999 7.73416 23.7425C7.7531 23.7019 7.77402 23.6617 7.79695 23.6222C9.50137 20.6846 12.8547 18 18.3725 18ZM10.7754 24.5282C12.1114 26.3666 14.5065 28.1253 18.3725 28.1253C22.2385 28.1253 24.6335 26.3666 25.9696 24.5282C24.6675 22.6761 22.3285 21 18.3725 21C14.4164 21 12.0774 22.6761 10.7754 24.5282Z"></path></svg>';
      let readingRightsForFourSvg = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="13" viewBox="0 0 14 13" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.5809 3.16667C7.5809 4.63943 6.387 5.83333 4.91424 5.83333C3.44148 5.83333 2.24757 4.63943 2.24757 3.16667C2.24757 1.69391 3.44148 0.5 4.91424 0.5C6.387 0.5 7.5809 1.69391 7.5809 3.16667ZM6.24757 3.16667C6.24757 3.90305 5.65062 4.5 4.91424 4.5C4.17786 4.5 3.5809 3.90305 3.5809 3.16667C3.5809 2.43029 4.17786 1.83333 4.91424 1.83333C5.65062 1.83333 6.24757 2.43029 6.24757 3.16667Z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M9.61447 8.99877C8.85695 7.69314 7.3666 6.5 4.91424 6.5C2.46188 6.5 0.97153 7.69314 0.214008 8.99877C0.20382 9.01633 0.194523 9.03416 0.186103 9.05221C0.0570957 9.2555 0.0429897 9.52189 0.17217 9.74454C0.929692 11.0502 2.46188 12.3334 4.91425 12.3334C7.36661 12.3334 8.8988 11.0502 9.65632 9.74454C9.78552 9.52186 9.77139 9.25543 9.64234 9.05214C9.63393 9.03411 9.62464 9.0163 9.61447 8.99877ZM4.91425 11.0001C3.19602 11.0001 2.13155 10.2185 1.53775 9.40141C2.11643 8.57826 3.15599 7.83333 4.91424 7.83333C6.67249 7.83333 7.71205 8.57827 8.29073 9.40142C7.69693 10.2185 6.63246 11.0001 4.91425 11.0001Z"></path><path d="M8.58091 5.83333C8.1137 5.83333 7.67455 5.71318 7.29267 5.50209C7.60603 5.183 7.85567 4.80114 8.021 4.37709C8.19125 4.45598 8.38094 4.5 8.58091 4.5C9.31729 4.5 9.91424 3.90305 9.91424 3.16667C9.91424 2.43029 9.31729 1.83333 8.58091 1.83333C8.38094 1.83333 8.19125 1.87736 8.021 1.95624C7.85567 1.5322 7.60603 1.15033 7.29267 0.831247C7.67455 0.620154 8.1137 0.5 8.58091 0.5C10.0537 0.5 11.2476 1.69391 11.2476 3.16667C11.2476 4.63943 10.0537 5.83333 8.58091 5.83333Z"></path><path d="M9.66834 10.8844C9.21539 11.4261 8.63188 11.9239 7.91194 12.3003C8.12684 12.322 8.34979 12.3334 8.58092 12.3334C11.0333 12.3334 12.5655 11.0502 13.323 9.74454C13.4522 9.52186 13.4381 9.25543 13.309 9.05214C13.3006 9.03411 13.2913 9.0163 13.2811 8.99877C12.5236 7.69314 11.0333 6.5 8.58091 6.5C8.36457 6.5 8.15572 6.50929 7.95419 6.52711C8.67207 6.90013 9.24931 7.39617 9.6959 7.94617C10.7985 8.18463 11.5135 8.77001 11.9574 9.40142C11.5006 10.0299 10.7654 10.6374 9.66834 10.8844Z"></path></svg>';
      let facsimileSvg = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="15" viewBox="0 0 16 15" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.0282 0.519266C14.9956 0.319292 14.822 0.166664 14.6128 0.166664H3.13458L3.06631 0.172173C2.86634 0.20479 2.71371 0.378338 2.71371 0.587534L2.71295 3.94837L0.838847 3.94897L0.768529 3.95481C0.562854 3.98937 0.408842 4.1729 0.41839 4.38847L0.818935 13.4318L0.847872 13.5654C1.0317 14.3071 1.55045 14.7823 2.27412 14.7823H13.6125L13.7284 14.7778C14.455 14.7212 15.0337 14.1365 15.0337 13.4132V0.587534L15.0282 0.519266ZM3.55469 1.0084H14.1912L14.192 13.4132L14.1868 13.4837C14.1491 13.7378 13.9103 13.9406 13.6125 13.9406H2.27412L2.18767 13.9352C1.90852 13.8994 1.72045 13.6867 1.65272 13.3339L1.27816 4.79011H2.71295L2.71371 12.0658L2.71922 12.1341C2.75184 12.334 2.92539 12.4867 3.13458 12.4867L3.20285 12.4812C3.40282 12.4485 3.55545 12.275 3.55545 12.0658L3.55469 1.0084Z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M9.25632 2.46232H12.3172C12.5496 2.46232 12.7381 2.65075 12.7381 2.88319V7.47449C12.7381 7.70693 12.5496 7.89536 12.3172 7.89536H9.25632C9.02388 7.89536 8.83545 7.70693 8.83545 7.47449V2.88319C8.83545 2.65075 9.02388 2.46232 9.25632 2.46232ZM11.8963 7.05362V3.30406H9.67719V7.05362H11.8963Z"></path><path d="M7.34328 4.75797V5.59971H5.04763V4.75797H7.34328Z"></path><path d="M7.34328 2.46232V3.30406H5.04763V2.46232H7.34328Z"></path><path d="M7.34328 7.05362V7.89536H5.04763V7.05362H7.34328Z"></path><path d="M12.6998 9.34927V10.191H5.04763V9.34927H12.6998Z"></path><path d="M12.6998 11.6449V12.4867H5.04763V11.6449H12.6998Z"></path></svg>';

      let product1 = createProductElement('Digi+', 'HS Digi+ 2 kk 0 € (<span>norm. 19,50 €/kk</span>)', readingRightsForFourSvg + 'Lukuoikeus neljälle &nbsp;' + facsimileSvg + 'Näköislehti', button);
      let product2 = createProductElement('Digi', 'HS Digi 2 kk 0 € (<span>norm. 12,50 €/kk<span>)', readingRightsForOneSvg + 'Lukuoikeus yhdelle', button);
      
      subtitle.innerText = 'Voit peruuttaa koska tahansa.';
      subtitle.classList.remove('paywall__ingress');

      containerdiv.appendChild(title);
      containerdiv.appendChild(product1);
      containerdiv.appendChild(product2);
      
      if(cycloneDateUntil) {
          let date = new Date();
          date.setDate(date.getDate() + cycloneDateUntil);
          let dd = date.getDate();
          let mm = date.getMonth()+1;
          let pvmText = dd.toString() + '.' + mm.toString() + '.';
          let cycloneText = createElem('div', 'paywall__text-block ab-test-paywall-additional-info', 'Maksuttoman jakson jälkeen voit jatkaa tilausta -50 % hinnalla ' + pvmText + ' asti.');
          containerdiv.appendChild(cycloneText);
      }

      containerdiv.appendChild(subtitle);

      containerdiv.appendChild(button);

      insertStyle(containerdiv);
      title.classList.remove('white');

      paywall.appendChild(containerdiv);
      paywall.appendChild(loginButton);

      //hide background and grid
      paywallBackground.style.display = 'none';
      paywallGrid.style.display = 'none';
      
      dataLayer.push({'experiment': 'Conductrics', 'experimentID': experimentName, 'description': variantName});
      dataLayer.push({'event': 'eventInfo', 'eventCategory': 'paywall', 'eventAction': 'change offer at Alasin-muuri', 'eventLabel': experimentName + ' ' + variantName});

      if (requireCdx) {
        cdx.confirm(true)
      }
      return true
    } else {
      sendGAEvent('script failed, primary button text unexpected')
    }
  } else {
    sendGAEvent('script failed, paywall html unexpected')
  }
}

try {
  doExperimentChanges()
} catch (e) {
  console.log(e)

  let err = e
  let err_split = e.stack.split('\n')
  let err_line = false
  if (err_split[1]) {
    err_line = err_split[1].split('>:')
  }
  if (err_line[1]) {
    err = err_line[1]
  }
  sendGAEvent('script error: ' + err)
}

 },'js-QhIKahpKUtPiJBdp3Jfs-1718789786': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
if (!requireCdx) { testing = true; }
const experimentId = 'HS24-18b';
const variantId = 'C';
const variantName = 'gridi 2kk';
const experimentName = experimentId + ' Alasin-muuri';
const paywallType = 'hard'; // hard or archived
const commonDateUntil = 60; //false or number of days
const miniAID = 'G2O9UO2FTCQ3F'; //HS Digi
const digiAID = 'GYW2R8WJZ7FUF'; //HS Digi+

//these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {} }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || [] }

const stringIdPlusVariant = experimentId + ' ' + variantId + ': '
const sendGAEvent = function (label) { if (testing) { console.log(label)} else { dataLayer.push({event: 'eventInfo',eventCategory: 'Conductrics',eventAction: 'conductrics_event',eventLabel: stringIdPlusVariant + label})}}

const insertStyle = function (containerdiv, productOnLeft) {
  let flexDir = 'row';
  if(productOnLeft === 'Digi') {
    flexDir = 'row-reverse'; // /*change order of products if Digi was originally on left*/
  }

  const styles = `
    .paywall-background div.paywall-grid {
        flex-direction: ${flexDir};
    }

    .ab-test-paywall-modified .ab-test-paywall-background {
        max-width: 98%;
    }

    #alasin-main-container p {
        padding: 0;
    }

    .ab-test-paywall-modified .ab-test-paywall-grid-text {
      padding: 0 8px !important;
      margin: 18px auto 24px !important;
    }

    .ab-test-paywall-modified .ab-test-paywall-grid a.ab-test-hard-paywall-subscribe-button-left, .ab-test-paywall-modified .ab-test-paywall-grid a.ab-test-hard-paywall-subscribe-button-right {
        text-transform: capitalize;
    }

    .ab-test-paywall-modified .ab-test-paywall-grid a:hover, .ab-test-paywall-modified .ab-test-paywall-grid a:active, .ab-test-paywall-modified .ab-test-paywall-grid a:focus,
    .ab-test-hard-paywall-login-button:hover, .ab-test-hard-paywall-login-button:active, .ab-test-hard-paywall-login-button:focus {
        background: #edf4f5;
    }

    .ab-test-paywall-modified .ab-test-paywall-grid .ab-test-paywall-grid-type {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        font-size: 17px;
    }

    .ab-test-paywall-modified .ab-test-paywall-grid .ab-test-paywall-grid-type span {
        font-size: 16px;
    }

    @media (min-width: 350px) {
        #alasin-main-container .ab-test-paywall-modified .ab-test-paywall-grid ul {
            font-size: 12px;
        }

        .ab-test-paywall-modified .ab-test-paywall-grid .ab-test-paywall-grid-type {
            font-size: 19px;
        }

        .ab-test-paywall-modified .ab-test-paywall-grid .ab-test-paywall-grid-type span {
            font-size: 18px;
        }
    }

    @media (min-width: 450px) {
        #alasin-main-container .ab-test-paywall-modified .ab-test-paywall-grid ul {
            font-size: 14px;
        }

        .ab-test-paywall-modified .ab-test-paywall-grid .ab-test-paywall-grid-type {
            font-size: 21px;
        }

        .ab-test-paywall-modified .ab-test-paywall-grid .ab-test-paywall-grid-type span {
            font-size: 20px;
        }
    }
  `;

  // Create stylesheet to define custom element styles for experiment
  let styleSheet = document.createElement('style');
  styleSheet.type = 'text/css';
  containerdiv.appendChild(styleSheet);
  styleSheet.innerText = styles;
}

const changeButtonUrl = function (button, pos) {
  let pagePath = '/hs-digi-tutustu'
  let urlParams = {
    embedded: null,
    aid: digiAID,
    ref: 'maksumuuri_kova',
    showPaymentPeriodList: null,
    offer: null,
    variant: null
  }

  if(pos === 'right' || pos === 'Digi') {
    pagePath = '/hs-mini-tutustu'
    urlParams = {
      embedded: null,
      aid: miniAID,
      ref: 'maksumuuri_kova',
      showPaymentPeriodList: null,
      offer: 3,
      variant: null
    }
  }

  let url = new URL(button.href);
  // Update search params
  if (urlParams) {
    Object.keys(urlParams).forEach(function (key) {
      if (urlParams[key] === null) {
        url.searchParams.delete(key)
      } else if (urlParams[key] !== undefined) {
        url.searchParams.set(key, urlParams[key])
      }
    })
  }
  // Update path
  if (pagePath) {
    let path = url.pathname.split('/')
    path.pop()
    path = path.join('/') + pagePath
    url.pathname = path;
  }
  button.href = url.toString()

  button.onclick = function (e) {
    sendGAEvent('click subscribe ' + pos + ' at ' + variantId)
  }
  return button;
}

const makeOldPaywallVersionsValid = function() {
  //some changes for older versions of paywall (no classes for grid elements)
  let paywallGridLeft = document.querySelector('.ab-test-paywall-grid-left');
  if(!paywallGridLeft) {
    paywallGridLeft = document.querySelector('.ab-test-hard-paywall .grid-left');
    paywallGridLeft.classList.add('ab-test-paywall-grid-left');

    let paywallGridRight = document.querySelector('.ab-test-hard-paywall .grid-right');
    paywallGridRight.classList.add('ab-test-paywall-grid-right');

    let grid = document.querySelector('.ab-test-hard-paywall .paywall-grid');
    grid.classList.add('ab-test-paywall-grid');

    let paywallBackground = document.querySelector('.ab-test-hard-paywall .paywall-background');
    paywallBackground.classList.add('ab-test-paywall-background');

    let productNames = document.querySelectorAll('.ab-test-hard-paywall .grid-type');
    //loop through and add classes
    productNames.forEach(function(productName) {
        productName.classList.add('ab-test-paywall-grid-type');
    });

    let productNormPrices = document.querySelectorAll('.ab-test-hard-paywall .grid-text');
    //loop through and add classes
    productNormPrices.forEach(function(normPrice) {
      normPrice.classList.add('ab-test-paywall-grid-text');
    });

    let productLists = document.querySelectorAll('.ab-test-hard-paywall .grid-list');
    //loop through and add classes
    productLists.forEach(function(list) {
      list.classList.add('ab-test-paywall-grid-list');
    });
  }
};

const doExperimentChanges = function () {
  let experimentExists = document.querySelector('.ab-test-paywall-modified');

  makeOldPaywallVersionsValid(); //changes were to paywall after 15.5.2024. This adds some classnames that were added in that change to older versions.

  let experimentParentDiv = document.querySelector('.ab-test-hard-paywall-wrapper');
  let paywall = document.querySelector('.ab-test-hard-paywall');
  let paywallGrid = document.querySelector('.ab-test-paywall-grid, .ab-test-hard-paywall .paywall-grid');
  let title = document.querySelector('.ab-test-' + paywallType + '-paywall-title');
  let button = document.querySelector('.ab-test-' + paywallType + '-paywall-subscribe-button-left');
  
  if (experimentExists) {
    sendGAEvent('script failed, paywall already modified');
  } else if (title && button && experimentParentDiv && paywallGrid) {
    //actual changes here

    title.innerText = title.innerText.replace('Tutustu Hesariin ', 'Lue ');
    if(commonDateUntil) {
        let date = new Date();
        date.setDate(date.getDate() + commonDateUntil);
        let dd = date.getDate();
        let mm = date.getMonth()+1;
        let pvmText = dd.toString() + '.' + mm.toString() + '. asti';
        title.innerText = 'Lue maksutta ' + pvmText;
    }

    let productOnLeft = 'Digi';
    let productOnRight = 'Digiplus';
    //let paywallGridRight = paywallGrid.querySelector('.ab-test-paywall-grid-right');
    let leftProductName = document.querySelector('.ab-test-paywall-grid-type').innerText;
    if(leftProductName.includes('Digi+')) { //check what actually is the product on left
      productOnLeft = 'Digiplus';
      productOnRight = 'Digi';
    }

    button = changeButtonUrl(button, productOnLeft);
    let buttonSecond = document.querySelector('.ab-test-hard-paywall-subscribe-button-right');
    if(buttonSecond) {
      buttonSecond = changeButtonUrl(buttonSecond, productOnRight);
    }

    let productPeriods = document.querySelectorAll('.ab-test-paywall-grid-type > span');
    productPeriods.forEach(function(period) {
        period.innerText = period.innerText.replace('0 €', '2 kk 0 €');
    });

    insertStyle(paywall, productOnLeft);   
   
    let namelower = 'ab-test-from-conductrics-' +experimentId.toLowerCase() +'-' +variantId;
    title.classList.add('ab-test-paywall-modified', namelower);
    paywall.classList.add('ab-test-paywall-modified', namelower);

    dataLayer.push({experiment: 'Conductrics',experimentID: experimentName,description: variantName});

    if (requireCdx) {
      cdx.confirm(true)
    }
    return true
  } else {
    sendGAEvent('script failed, paywall html unexpected')
  }
}

try {
  doExperimentChanges()
} catch (e) {
  console.log(e)

  let err = e
  let err_split = e.stack.split('\n')
  let err_line = false
  if (err_split[1]) {
    err_line = err_split[1].split('>:')
  }
  if (err_line[1]) {
    err = err_line[1]
  }
  sendGAEvent('script error: ' + err)
}
 },'js-WzEdgyKyh8OFgTnwCfE0-1718355217': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
if (!requireCdx) { testing = true; }
const experimentId = 'HS24-20';
const variantId = 'A';
const experimentName = experimentId + ' Timanttimuuri ei-ot';
const variantName = variantId + ' sample';
const currentDefaultButtonText = 'Lue 2 viikkoa maksutta'; //napin teksti
const paywallType = 'hard'; // hard or archived
const newAID = 'GM9H298X5RVX4';

//these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {}; }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || []; }

const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';
const sendGAEvent = function (label) { if(testing) {console.log(label); } else { dataLayer.push({'event': 'eventInfo', 'eventCategory': 'Conductrics', 'eventAction': 'conductrics_event', 'eventLabel': stringIdPlusVariant + label});}};

try {
    const changeButtonUrl = function(button) {
        let pagePath = false; //'/hs-digi-tutustu';
        let urlParams = {
            'embedded': null,
            'offer': null,
            'aid': newAID,
            'ref': null,
            'showPaymentPeriodList': null,
            'variant': null
        };

        let url = new URL(button.href);
        // Update search params
        if (urlParams) {
            Object.keys(urlParams).forEach(function(key) {
                if (urlParams[key] === null) {
                    url.searchParams.delete(key);
                } else if (urlParams[key] !== undefined) {
                    url.searchParams.set(key, urlParams[key]);
                }
            });
        }
        // Update path
        if (pagePath) {
            let path = url.pathname.split('/');
            path.pop();
            path = path.join('/') + pagePath;
            //path = '/api/safe/v1/web/subscription-funnel' + path; //from new to old funnel
            if(path.includes('/shopping-ui/')) {
                path = path.replace('/shopping-ui/', '/');
            }
            
            url.pathname = path;
        }
        button.href = url.toString();
        return button;
    };
    if(true) {
        const doExperimentChanges = function () {
            let experimentExists = document.querySelector('.ab-test-paywall-modified');
            let title = document.querySelector('.ab-test-' + paywallType + '-paywall-title');
            let subtitle = document.querySelector('.ab-test-' + paywallType + '-paywall-subtitle');
            let button = document.querySelector('.ab-test-' + paywallType + '-paywall-subscribe-button');
            let secondaryButton = document.querySelector('.ab-test-' + paywallType + '-paywall-secondary-subscribe-button');
            if(experimentExists) {
                //sendGAEvent('script failed, paywall already modified');
            } else if(title && button) { 
                if(button.innerText === currentDefaultButtonText) { //actual changes here
                    button = changeButtonUrl(button);
                    let namelower = 'ab-test-from-conductrics-' + experimentId.toLowerCase() + '-' + variantId;
                    title.classList.add('ab-test-paywall-modified', namelower);
            
                    dataLayer.push({'experiment': 'Conductrics', 'experimentID': experimentName, 'description': variantName});
                    //dataLayer.push({'event': 'eventInfo', 'eventCategory': 'paywall', 'eventAction': 'change offer at timanttimuuri', 'eventLabel': experimentName + ' ' + variantName});
                    
                    if(requireCdx) {
                        cdx.confirm(true);
                    }
                    return true;
                }
                else {
                    sendGAEvent('script failed, primary button text unexpected');
                }
            } else {
                sendGAEvent('script failed, paywall html unexpected');
            }
        };

        doExperimentChanges();
    }
} catch(err) {   
    sendGAEvent('script error: ' + err);
}
 },'js-n7tENWaxEdGhjkJiS4Dc-1718355170': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
if (!requireCdx) { testing = true; }
const experimentId = 'HS24-20';
const variantId = 'B';
const experimentName = experimentId + ' Timanttimuuri ei-ot';
const variantName = variantId + ' näyte rauhoitettu leiska';
const currentDefaultButtonText = 'Lue 2 viikkoa maksutta'; //jatkuvan napin teksti
const paywallType = 'hard'; // hard or archived
const newAID = 'GMLO89V5IUWWQ';
const feedTitle = 'Hesarin digitilauksella pääset lukemaan rajoituksetta tämän ja yli 400 uutta timanttiartikkelia kuukaudessa';

//these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {}; }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || []; }

const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';
const sendGAEvent = function (label) { if(testing) {console.log(label); } else { dataLayer.push({'event': 'eventInfo', 'eventCategory': 'Conductrics', 'eventAction': 'conductrics_event', 'eventLabel': stringIdPlusVariant + label});}};

try {
    if(true) {
        const changeButtonUrlAndText = function (button) {          
            let urlParams = false;
            let pagePath = false;

            urlParams = {
                embedded: null,
                aid: newAID,
                ref: 'maksumuuri_kova',
                showPaymentPeriodList: null,
                offer: null,
                variant: null
            }
          
            let url = new URL(button.href);
            // Update search params
            if (urlParams) {
              Object.keys(urlParams).forEach(function (key) {
                if (urlParams[key] === null) {
                  url.searchParams.delete(key)
                } else if (urlParams[key] !== undefined) {
                  url.searchParams.set(key, urlParams[key])
                }
              })
            }
            
            button.href = url.toString();
            return button;
        } 

        const insertStyle = function(elem) {
            let style = `
                    :root {
                        --main-color: #27818F; /*#41a492;*/
                        --underline-color: #787878;
                        --line-color: #E9EAED;
                    }

                    .ab-test-paywall-precontent {
                        align-items: flex-start;
                        margin-bottom: 16px;
                        padding-top: 16px;
                        border-top: 1px solid rgb(233, 234, 237);
                    }

                    .ab-test-paywall-precontent .ab-test-paywall-read-article-text {
                        font-size: 14px;
                        font-weight: 600;
                        margin-bottom: 0;
                        font-family: "Helsingin","Helvetica","Arial",sans-serif;
                    }

                    .ab-test-paywall-precontent .ab-test-hard-paywall-login-link {
                        margin-top: 8px;
                    }

                    .ab-test-paywall-container {
                        background: #f2f2f2;
                        width: 100%;
                        margin-left: -16px;
                        margin-right: -16px;
                        width: calc(100% + 32px);
                        padding: 16px;
                    }
                        
                    .ab-test-paywall-container .ab-test-hard-paywall-logo {
                        width: 48px;
                        height: 48px;
                        margin: 0 auto;
                    }

                    .ab-test-paywall-container .ab-test-hard-paywall-title {
                        margin: 32px 0 32px;
                    }

                    .ab-test-hard-paywall-subtitle {
                        font-size: 16px;
                        font-weight: 500;
                        margin-bottom: 24px;
                    }

                    .ab-test-hard-paywall-subscribe-button {
                        margin: 0 auto 16px;
                    }

                    /* dark mode support */
                    .sndp-dark .ab-test-paywall-container {
                        background: #151515;
                    }

                    @media (min-width: 655px) {
                        .ab-test-paywall-container {
                            margin-left: 0;
                            margin-right: 0;
                            width: 100%;
                        }
                    }
            `;
            
            if(document.location.pathname.indexOf('/visio/') > -1 ||
            document.location.pathname.indexOf('/teknologia/') > -1 ||
            document.location.pathname.indexOf('/talous/') > -1 ||
            document.location.pathname.indexOf('/autot/') > -1) {
            style += `	
                    .ab-test-paywall-container {
                        background: #f0e0d5;
                    }
                `;
            }
                        
            let styleSheet = document.createElement("style");
            styleSheet.type = "text/css";
            elem.appendChild(styleSheet);
            styleSheet.innerText = style;
        };

        const doExperimentChanges = function () {
            let experimentExists = document.querySelector('.ab-test-paywall-modified');
            let paywall = document.querySelector('.ab-test-' + paywallType + '-paywall');
            let title = document.querySelector('.ab-test-' + paywallType + '-paywall-title');
            let subtitle = document.querySelector('.ab-test-' + paywallType + '-paywall-subtitle');
            let button = document.querySelector('.ab-test-' + paywallType + '-paywall-subscribe-button');
            let secondaryButton = document.querySelector('.ab-test-' + paywallType + '-paywall-secondary-subscribe-button');
            let paywallButtons = paywall.querySelector('.paywall__buttons');
            let paywallIndicator = paywall.querySelector('.paywall__indicator');
            if(experimentExists) {
                //sendGAEvent('script failed, paywall already modified');
            } else if(title && button) { 
                if(button.innerText === currentDefaultButtonText) { //actual changes here
                    let namelower = 'ab-test-from-conductrics-' + experimentId.toLowerCase() + '-' + variantId;
                    title.classList.add('ab-test-paywall-modified', namelower);

                    paywallButtons.classList.add('ab-test-paywall-container');
                    paywallIndicator.classList.add('ab-test-paywall-precontent');

                    //create readArticleText by cloning subtitle
                    let readArticleText = subtitle.cloneNode(true);
                    readArticleText.innerText = 'Lue koko artikkeli HS-tilauksella';
                    readArticleText.classList.add('ab-test-paywall-read-article-text');
                    readArticleText.classList.remove('ab-test-hard-paywall-subtitle', 'paywall__ingress');
                    paywallIndicator.appendChild(readArticleText);

                    if(secondaryButton) {
                        secondaryButton.style.display = 'none';
                        let loginLink = document.querySelector('.ab-test-hard-paywall-login-link');
                        if(loginLink) {
                            paywallIndicator.appendChild(loginLink);
                        }
                    }

                    let diamondLogo = document.querySelector('.ab-test-hard-paywall-logo');
                    paywallButtons.appendChild(diamondLogo);
                    let tilaajilleText = document.querySelector('.paywall__indicator--title');
                    tilaajilleText.classList.add('hidden');

                    title.innerText = title.innerText.replace('saakka', 'asti');

                    paywallButtons.appendChild(title);
                    paywallButtons.appendChild(subtitle);
                    button = changeButtonUrlAndText(button);
                    paywallButtons.appendChild(button);

                    insertStyle(paywallButtons);
            
                    dataLayer.push({'experiment': 'Conductrics', 'experimentID': experimentName, 'description': variantName});

                    if(feedTitle) {
                        let paywallOffering = document.querySelector('.ab-test-hard-paywall-offering');
                        paywallOffering.innerText = feedTitle;
                    }
                    
                    if(requireCdx) {
                        cdx.confirm(true);
                    }
                    return true;
                }
                else {
                    sendGAEvent('script failed, primary button text unexpected');
                }
            } else {
                sendGAEvent('script failed, paywall html unexpected');
            }
        };

        doExperimentChanges();
    };
} catch(e) {
    console.log(e)

  let err = e
  let err_split = e.stack.split('\n')
  let err_line = false
  if (err_split[1]) {
    err_line = err_split[1].split('>:')
  }
  if (err_line[1]) {
    err = err_line[1]
  }
  sendGAEvent('script error: ' + err)
}
 },'js-V3HqmOQAONCQTI1ph7Tt-1718872226': function (cdx) { let requireCdx = true; //on Conductrics set this to true!
//requireCdx: false = use vanilla js only. true = use Conductrics functions such as cdx.trait() and cdx.confirm()

let testing = false;
if (!requireCdx) { testing = true; }
const experimentId = 'HS24-20';
const variantId = 'C';
const experimentName = experimentId + ' Timanttimuuri ei-ot';
const variantName = variantId + ' sykloni radios 2kk';
const currentDefaultButtonText = 'Lue 2 viikkoa maksutta'; //jatkuvan napin teksti
const paywallType = 'hard'; // hard or archived
const commonDateUntil = 60; //false or number of days
const miniDateUntil = 60;
const digiDateUntil = 60;
const cycloneDateUntil = 240;
const miniAID = 'GKQ7IWF4W39ZM'; //HS Digi
const digiAID = 'G8JX2Q5Y2LPUF'; //HS Digi+
const miniPath = '/hs-mini-tutustu-v62';
const digiPath = '/hs-digi-tutustu-v62';
const showProductFeatures = true;
const feedTitle = 'Hesarin digitilauksella pääset lukemaan rajoituksetta tämän ja yli 400 uutta timanttiartikkelia kuukaudessa';

//these are just to remove warnings shown in editor
if (typeof cdx === 'undefined') { window.cdx = window.cdx || {}; }
if (typeof dataLayer === 'undefined') { window.dataLayer = window.dataLayer || []; }

const stringIdPlusVariant = experimentId + ' ' + variantId + ': ';
const sendGAEvent = function (label) { if(testing) {console.log(label); } else { dataLayer.push({'event': 'eventInfo', 'eventCategory': 'Conductrics', 'eventAction': 'conductrics_event', 'eventLabel': stringIdPlusVariant + label});}};

try {
    if(true) {
        let containerdiv = false;

        const createElem = function(tag, classes, text) {
            let elem = document.createElement(tag);
            if(classes) {
                //split classes by space
                classes = classes.split(' ');
                for(let i = 0; i < classes.length; i++) {
                    elem.classList.add(classes[i]);
                }
            }
            if(text) {
                elem.innerHTML = text;
            }
            return elem;
        }

        const createProductElement = function(productname, title, features, button) {
            let product = createElem('label', 'ab-test-paywall-product', false);
            //product.setAttribute('for', 'radio_'+productname);
            let check = createElem('input', 'ab-radio', false);
            check.type = 'radio';
            check.name = 'product';
            //check.id = 'radio_'+productname;
            if(title.includes('HS Digi+')) {
                check.checked = 'checked';
            }
            let productcontent = createElem('div', 'ab-product-content', false);
            let producttitle = createElem('p', 'ab-product-title', title);
            let producttext = createElem('p', 'ab-product-text', features);

            product.appendChild(check);
            productcontent.appendChild(producttitle);
            productcontent.appendChild(producttext);
            product.appendChild(productcontent);
            check.onchange = function(e) {
                //sendGAEvent('click product ' + productname);
                changeButtonUrlAndText(button, productname);
            }
            return product;
        }

        const changeButtonUrlAndText = function (button, pos) {          
            let urlParams = false;
            let pagePath = false;

            if(pos === 'Digi') {
              pagePath = miniPath;
              urlParams = {
                embedded: null,
                aid: miniAID,
                ref: 'maksumuuri_kova_saannot',
                showPaymentPeriodList: null,
                offer: 3,
                variant: null
              }

              button.innerText = 'Tutustu HS Digi 2 kk 0 €';
            }
            else {
                pagePath = digiPath;
                urlParams = {
                  embedded: null,
                  aid: digiAID,
                  ref: 'maksumuuri_kova_saannot',
                  showPaymentPeriodList: null,
                  offer: null,
                  variant: null
                }
                
                button.innerText = 'Tutustu HS Digi+ 2 kk 0 €';
            }
          
            let url = new URL(button.href);
            // Update search params
            if (urlParams) {
              Object.keys(urlParams).forEach(function (key) {
                if (urlParams[key] === null) {
                  url.searchParams.delete(key)
                } else if (urlParams[key] !== undefined) {
                  url.searchParams.set(key, urlParams[key])
                }
              })
            }
            // Update path
            if (pagePath) {
                let path = url.pathname.split('/');
                path.pop();
                path = path.join('/') + pagePath;
                if(!path.includes('/api/safe/v1/web/subscription-funnel')) {
                    path = '/api/safe/v1/web/subscription-funnel' + path; //from new to old funnel
                }
                if(path.includes('/shopping-ui/')) {
                    path = path.replace('/shopping-ui/', '/');
                }
                
                url.pathname = path;
            }
            button.href = url.toString();
            button.setAttribute('data-product-name', pos);
            return button;
        } 

        const insertStyle = function(containerdiv) {
            let style = `
                    :root {
                        --main-color: #27818F; /*#41a492;*/
                        --underline-color: #787878;
                        --line-color: #E9EAED;
                    }
                        
                    .ab-test-paywall-container {
                        display: flex;
                        flex-direction: column;
                        box-shadow: 0px 4px 8px 4px rgba(0, 0, 0, 0.2);
                        border: solid 0.8px rgba(0, 0, 0, 0.05);
                        background-color: #fff;
                        border-radius: 8px;
                        width: 100%;
                        max-width: 400px;
                        padding: 16px;
                    }

                    .ab-test-paywall-container .ab-test-hard-paywall-title {
                        font-size: 26px;
                        margin-bottom: 24px;
                    }

                    .ab-test-paywall-product {
                        display: flex;
                        flex-direction: row;
                        align-items: baseline;
                        font-size: 16px;
                        font-family: 'Helsingin', Arial, sans-serif;
                        margin: 0 auto;
                        border-top: 1px solid var(--line-color);
                        padding: 12px 0px;
                        cursor: pointer;
                        min-width: 240px;
                    }

                    .ab-test-paywall-product:last-of-type {
                        border-bottom: 1px solid var(--line-color);
                    }

                    .ab-test-paywall-product .ab-product-content {
                        display: flex;
                        flex-direction: column;
                        margin-left: 20px;
                        width: 240px;
                    }

                    .ab-test-paywall-product .ab-radio {
                        transform: scale(1.8);
                        accent-color: var(--main-color);
                        cursor: pointer;
                    }

                    .ab-test-paywall-product .ab-product-title > span {
                        text-decoration: line-through;
                        font-size: 14px;
                    }

                    .ab-test-paywall-product .ab-product-text {
                        font-size: 14px;
                        margin-top: 8px;
                    }

                    .ab-test-paywall-product .ab-product-text svg {
                        fill: #191919;
                        display: inline;
                        margin-right: 5px;
                        vertical-align: baseline;
                    }

                    .ab-test-paywall-additional-info {
                        font-size: 15px;
                        font-weight: 600;
                        margin-top: 16px;
                        line-height: 1.2;
                    }

                    .ab-test-hard-paywall-subtitle {
                        font-size: 15px;
                        font-family: 'Helsingin', Arial, sans-serif;
                    }

                    .ab-test-hard-paywall-subscribe-button {
                        margin: 8px auto 4px;
                        width: 260px;
                    }

                    .ab-test-hard-paywall-login-button {
                        margin-top: 24px;
                        position: relative;
                        width: 240px;
                    }

                    .ab-test-hard-paywall-offering {
                        font-weight: 400;
                        max-width: 480px;
                    }

                    /* dark mode support */
                    .sndp-dark .ab-test-paywall-container {
                        border: solid 1px rgba(255, 255, 255, 0.3);
                        background: #151515;
                    }

                    .sndp-dark .ab-test-paywall-product .ab-product-text svg {
                        fill: #fff;
                    }
                    
                    @media (min-width: 360px) {
                        .ab-test-paywall-container .ab-test-hard-paywall-title {
                            
                        }
                    }
                    
                    @media (min-width: 450px) {
                        .ab-test-paywall-container .ab-test-hard-paywall-title {
                            
                        }
                    }
            `;
            
            if(document.location.pathname.indexOf('/visio/') > -1 ||
            document.location.pathname.indexOf('/teknologia/') > -1 ||
            document.location.pathname.indexOf('/talous/') > -1 ||
            document.location.pathname.indexOf('/autot/') > -1) {
            style += `	
                    .ab-test-paywall-grid .ab-grid-choose-button {
                        background: #b7384b;
                    }

                    .ab-test-paywall-product .ab-radio {
                        accent-color: #b7384b;
                    }

                    .ab-test-paywall-grid .ab-grid-choose-button:hover, .ab-test-paywall-grid .ab-grid-choose-button:active, .ab-test-paywall-grid .ab-grid-choose-button:focus {
                        background: #752f35;
                    }
                `;
            }
                        
            let styleSheet = document.createElement("style");
            styleSheet.type = "text/css";
            containerdiv.appendChild(styleSheet);
            styleSheet.innerText = style;
        };

        const doExperimentChanges = function () {
            let experimentExists = document.querySelector('.ab-test-paywall-modified');
            let paywall = document.querySelector('.ab-test-' + paywallType + '-paywall');
            let title = document.querySelector('.ab-test-' + paywallType + '-paywall-title');
            let subtitle = document.querySelector('.ab-test-' + paywallType + '-paywall-subtitle');
            let button = document.querySelector('.ab-test-' + paywallType + '-paywall-subscribe-button');
            let secondaryButton = document.querySelector('.ab-test-' + paywallType + '-paywall-secondary-subscribe-button');
            if(experimentExists) {
                //sendGAEvent('script failed, paywall already modified');
            } else if(title && button) { 
                if(button.innerText === currentDefaultButtonText) { //actual changes here
                    let namelower = 'ab-test-from-conductrics-' + experimentId.toLowerCase() + '-' + variantId;
                    title.classList.add('ab-test-paywall-modified', namelower);

                    let containerdiv = createElem('div', 'ab-test-paywall-container', false);

                    button = changeButtonUrlAndText(button, 'Digi+');
                    button.onclick = function (e) {
                        let productname = button.getAttribute('data-product-name');
                        sendGAEvent('click subscribe ' + productname + ' at ' + variantId)
                    }

                    if(commonDateUntil) {
                        let date = new Date();
                        date.setDate(date.getDate() + commonDateUntil);
                        let dd = date.getDate();
                        let mm = date.getMonth()+1;
                        let pvmSpan = createElem('span', 'ab-date-span', dd.toString() + '.' + mm.toString() + '. asti');
                        title.innerText = 'Lue maksutta ';
                        title.appendChild(pvmSpan);
                    }

                    let readingRightsForOneSvg = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="2 2 32 32" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M18.3725 13.5C20.0293 13.5 21.3725 12.1569 21.3725 10.5C21.3725 8.84315 20.0293 7.5 18.3725 7.5C16.7156 7.5 15.3725 8.84315 15.3725 10.5C15.3725 12.1569 16.7156 13.5 18.3725 13.5ZM18.3725 16.5C21.6862 16.5 24.3725 13.8137 24.3725 10.5C24.3725 7.18629 21.6862 4.5 18.3725 4.5C15.0588 4.5 12.3725 7.18629 12.3725 10.5C12.3725 13.8137 15.0588 16.5 18.3725 16.5ZM18.3725 18C23.8903 18 27.2436 20.6846 28.948 23.6222C28.9709 23.6617 28.9918 23.7017 29.0107 23.7423C29.3011 24.1997 29.3328 24.7992 29.0421 25.3002C27.3377 28.2379 23.8903 31.1253 18.3725 31.1253C12.8547 31.1253 9.40724 28.2379 7.70281 25.3002C7.41216 24.7992 7.44389 24.1999 7.73416 23.7425C7.7531 23.7019 7.77402 23.6617 7.79695 23.6222C9.50137 20.6846 12.8547 18 18.3725 18ZM10.7754 24.5282C12.1114 26.3666 14.5065 28.1253 18.3725 28.1253C22.2385 28.1253 24.6335 26.3666 25.9696 24.5282C24.6675 22.6761 22.3285 21 18.3725 21C14.4164 21 12.0774 22.6761 10.7754 24.5282Z"></path></svg>';
                    let readingRightsForFourSvg = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="13" viewBox="0 0 14 13" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.5809 3.16667C7.5809 4.63943 6.387 5.83333 4.91424 5.83333C3.44148 5.83333 2.24757 4.63943 2.24757 3.16667C2.24757 1.69391 3.44148 0.5 4.91424 0.5C6.387 0.5 7.5809 1.69391 7.5809 3.16667ZM6.24757 3.16667C6.24757 3.90305 5.65062 4.5 4.91424 4.5C4.17786 4.5 3.5809 3.90305 3.5809 3.16667C3.5809 2.43029 4.17786 1.83333 4.91424 1.83333C5.65062 1.83333 6.24757 2.43029 6.24757 3.16667Z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M9.61447 8.99877C8.85695 7.69314 7.3666 6.5 4.91424 6.5C2.46188 6.5 0.97153 7.69314 0.214008 8.99877C0.20382 9.01633 0.194523 9.03416 0.186103 9.05221C0.0570957 9.2555 0.0429897 9.52189 0.17217 9.74454C0.929692 11.0502 2.46188 12.3334 4.91425 12.3334C7.36661 12.3334 8.8988 11.0502 9.65632 9.74454C9.78552 9.52186 9.77139 9.25543 9.64234 9.05214C9.63393 9.03411 9.62464 9.0163 9.61447 8.99877ZM4.91425 11.0001C3.19602 11.0001 2.13155 10.2185 1.53775 9.40141C2.11643 8.57826 3.15599 7.83333 4.91424 7.83333C6.67249 7.83333 7.71205 8.57827 8.29073 9.40142C7.69693 10.2185 6.63246 11.0001 4.91425 11.0001Z"></path><path d="M8.58091 5.83333C8.1137 5.83333 7.67455 5.71318 7.29267 5.50209C7.60603 5.183 7.85567 4.80114 8.021 4.37709C8.19125 4.45598 8.38094 4.5 8.58091 4.5C9.31729 4.5 9.91424 3.90305 9.91424 3.16667C9.91424 2.43029 9.31729 1.83333 8.58091 1.83333C8.38094 1.83333 8.19125 1.87736 8.021 1.95624C7.85567 1.5322 7.60603 1.15033 7.29267 0.831247C7.67455 0.620154 8.1137 0.5 8.58091 0.5C10.0537 0.5 11.2476 1.69391 11.2476 3.16667C11.2476 4.63943 10.0537 5.83333 8.58091 5.83333Z"></path><path d="M9.66834 10.8844C9.21539 11.4261 8.63188 11.9239 7.91194 12.3003C8.12684 12.322 8.34979 12.3334 8.58092 12.3334C11.0333 12.3334 12.5655 11.0502 13.323 9.74454C13.4522 9.52186 13.4381 9.25543 13.309 9.05214C13.3006 9.03411 13.2913 9.0163 13.2811 8.99877C12.5236 7.69314 11.0333 6.5 8.58091 6.5C8.36457 6.5 8.15572 6.50929 7.95419 6.52711C8.67207 6.90013 9.24931 7.39617 9.6959 7.94617C10.7985 8.18463 11.5135 8.77001 11.9574 9.40142C11.5006 10.0299 10.7654 10.6374 9.66834 10.8844Z"></path></svg>';
                    let facsimileSvg = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="15" viewBox="0 0 16 15" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.0282 0.519266C14.9956 0.319292 14.822 0.166664 14.6128 0.166664H3.13458L3.06631 0.172173C2.86634 0.20479 2.71371 0.378338 2.71371 0.587534L2.71295 3.94837L0.838847 3.94897L0.768529 3.95481C0.562854 3.98937 0.408842 4.1729 0.41839 4.38847L0.818935 13.4318L0.847872 13.5654C1.0317 14.3071 1.55045 14.7823 2.27412 14.7823H13.6125L13.7284 14.7778C14.455 14.7212 15.0337 14.1365 15.0337 13.4132V0.587534L15.0282 0.519266ZM3.55469 1.0084H14.1912L14.192 13.4132L14.1868 13.4837C14.1491 13.7378 13.9103 13.9406 13.6125 13.9406H2.27412L2.18767 13.9352C1.90852 13.8994 1.72045 13.6867 1.65272 13.3339L1.27816 4.79011H2.71295L2.71371 12.0658L2.71922 12.1341C2.75184 12.334 2.92539 12.4867 3.13458 12.4867L3.20285 12.4812C3.40282 12.4485 3.55545 12.275 3.55545 12.0658L3.55469 1.0084Z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M9.25632 2.46232H12.3172C12.5496 2.46232 12.7381 2.65075 12.7381 2.88319V7.47449C12.7381 7.70693 12.5496 7.89536 12.3172 7.89536H9.25632C9.02388 7.89536 8.83545 7.70693 8.83545 7.47449V2.88319C8.83545 2.65075 9.02388 2.46232 9.25632 2.46232ZM11.8963 7.05362V3.30406H9.67719V7.05362H11.8963Z"></path><path d="M7.34328 4.75797V5.59971H5.04763V4.75797H7.34328Z"></path><path d="M7.34328 2.46232V3.30406H5.04763V2.46232H7.34328Z"></path><path d="M7.34328 7.05362V7.89536H5.04763V7.05362H7.34328Z"></path><path d="M12.6998 9.34927V10.191H5.04763V9.34927H12.6998Z"></path><path d="M12.6998 11.6449V12.4867H5.04763V11.6449H12.6998Z"></path></svg>';

                    let product1 = createProductElement('Digi+', 'HS Digi+ 2 kk 0 € (<span>norm. 19,50 €/kk</span>)', readingRightsForFourSvg + 'Lukuoikeus neljälle &nbsp;' + facsimileSvg + 'Näköislehti', button);
                    let product2 = createProductElement('Digi', 'HS Digi 2 kk 0 € (<span>norm. 12,50 €/kk<span>)', readingRightsForOneSvg + 'Lukuoikeus yhdelle', button);
                    
                    subtitle.innerText = 'Voit peruuttaa koska tahansa.';
                    subtitle.classList.remove('paywall__ingress');

                    if(secondaryButton) {
                        secondaryButton.style.display = 'none';
                        let loginLink = paywall.querySelector('.ab-test-hard-paywall-login-link');
                        if(loginLink) {
                            let parent = loginLink.parentElement;
                            parent.classList.remove('mt-16');
                            loginLink.classList.add('flex', 'items-center', 'justify-center', 'button', 'button--md', 'button--secondary', 'my-8', 'ab-test-hard-paywall-login-button');
                            loginLink.classList.remove('button-textlink-10');
                            loginLink.innerText = 'Olen jo tilaaja';
                            parent.appendChild(loginLink);
                        }
                    }

                    containerdiv.appendChild(title);
                    containerdiv.appendChild(product1);
                    containerdiv.appendChild(product2);
                    
                    if(cycloneDateUntil) {
                        let date = new Date();
                        date.setDate(date.getDate() + cycloneDateUntil);
                        let dd = date.getDate();
                        let mm = date.getMonth()+1;
                        let pvmText = dd.toString() + '.' + mm.toString() + '.';
                        let cycloneText = createElem('div', 'paywall__text-block ab-test-paywall-additional-info', 'Maksuttoman jakson jälkeen voit jatkaa tilausta -50 % hinnalla ' + pvmText + ' asti.');
                        containerdiv.appendChild(cycloneText);
                    }

                    containerdiv.appendChild(subtitle);

                    containerdiv.appendChild(button);

                    insertStyle(containerdiv);
                    paywall.insertBefore(containerdiv, paywall.childNodes[1]); //insert as 2nd element on paywall after paywall indicator	
            
                    dataLayer.push({'experiment': 'Conductrics', 'experimentID': experimentName, 'description': variantName});
                    dataLayer.push({'event': 'eventInfo', 'eventCategory': 'paywall', 'eventAction': 'change offer at timanttimuuri', 'eventLabel': experimentName + ' ' + variantName});

                    if(feedTitle) {
                        let paywallOffering = document.querySelector('.ab-test-hard-paywall-offering');
                        paywallOffering.innerText = feedTitle;
                    }
                    
                    if(requireCdx) {
                        cdx.confirm(true);
                    }
                    return true;
                }
                else {
                    sendGAEvent('script failed, primary button text unexpected');
                }
            } else {
                sendGAEvent('script failed, paywall html unexpected');
            }
        };

        doExperimentChanges();
    };
} catch(e) {
    console.log(e)

  let err = e
  let err_split = e.stack.split('\n')
  let err_line = false
  if (err_split[1]) {
    err_line = err_split[1].split('>:')
  }
  if (err_line[1]) {
    err = err_line[1]
  }
  sendGAEvent('script error: ' + err)
}
 },'js-H0IG0pjG57SZDdRWgK2X-1718027550': function (cdx) { (function(w, t, f) {
  var s='script',o='_giosg',h='https://service.giosg.com',e,n;e=t.createElement(s);e.async=1;e.src=h+'/live/';
  w[o]=w[o]||function(){(w[o]._e=w[o]._e||[]).push(arguments)};w[o]._c=f;w[o]._h=h;n=t.getElementsByTagName(s)[0];n.parentNode.insertBefore(e,n);
})(window,document,5502);

window.showGiosgHSfeedback = true;

 } }; var _wa_js = {  }; // var console = (window && window.console) || {log: function(s) {}};
if (!Array.isArray) {Array.isArray = function(arg) {return Object.prototype.toString.call(arg) === '[object Array]'}};
if (!String.prototype.trim) {String.prototype.trim = function () {return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '')}};
if (!Array.prototype.filter) {Array.prototype.filter = function(fn) { res = []; for (var i = 0; i < this.length; i++) { v = this[i]; if ( fn(v) ) { res.push(v); }} return res; }}
if (!Array.prototype.map) {Array.prototype.map = function(fn) { res = []; for (var i = 0; i < this.length; i++) { v = this[i]; res.push(fn(v)); } return res; }}
if (!Object.keys) {Object.keys = function(o) { var ar = []; for (var k in o) {ar.push(k)}; return ar; }}
if (!Object.assign) {Object.assign = function(r){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var f in a)r[f]=a[f]}return r};}
if (!Array.prototype.includes) {Array.prototype.includes = function(v) {return this.indexOf(v) >= 0}}  var require = undefined; var define = undefined; require=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({"./modules/api-steps":[function(require,module,exports){
(function(){var t,e=function(t,e){function s(){this.constructor=t}for(var n in e)o.call(e,n)&&(t[n]=e[n]);return s.prototype=e.prototype,t.prototype=new s,t.__super__=e.prototype,t},o={}.hasOwnProperty;t=require("../diagrams").M,exports.m=function(t){function o(conf){this.conf=conf}return e(o,t),o.prototype.process=function(t,e){var o,s,n,r,i,l,u,p,c,m,a;if((a=null!=(i=null!=(l=t.steps)?l:e.r.steps)?i:[]).length>0){for(null==t.items&&(t.items=[]),null==t._items&&(t._items=t.items.concat()),s={module:"group",items:[]},n=0,r=a.length;r>n;n++)m=a[n],s.items.push({module:"step-set",step:m}),null!=(o=t.diags[null!=(u=null!=(p=m.a)?p:m.g)?u:m.t])&&s.items.push(o);0,"pre"!==(null!=(c=t._items[0])?c.group:void 0)&&e.log("No prelude!","e"),t.items=t._items.concat(),t.items.splice(1,0,s)}},o}(t)}).call(this);
},{"../diagrams":17}],"./modules/condition":[function(require,module,exports){
(function(){var r,t=function(r,t){function n(){this.constructor=r}for(var e in t)o.call(t,e)&&(r[e]=t[e]);return n.prototype=t.prototype,r.prototype=new n,r.__super__=t.prototype,r},o={}.hasOwnProperty;r=require("../diagrams").M,exports.m=function(r){function o(){return o.__super__.constructor.apply(this,arguments)}return t(o,r),o}(r)}).call(this);
},{"../diagrams":17}],"./modules/decision-reduce":[function(require,module,exports){
(function(){var t,r=function(t,r){function n(){this.constructor=t}for(var e in r)o.call(r,e)&&(t[e]=r[e]);return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,t},o={}.hasOwnProperty;t=require("../diagrams").M,exports.m=function(t){function o(){return o.__super__.constructor.apply(this,arguments)}return r(o,t),o.prototype.active=function(t,r){var o;return(o=r.selPre(t.agent))&&r.log("Skipping targeting conditions for '"+t.agent+"' (variation "+t.choices+")","ct"),!o},o.prototype.process=function(t,r){return r.selRed(t.agent,t.choices)},o}(t)}).call(this);
},{"../diagrams":17}],"./modules/decision":[function(require,module,exports){
(function(){var n,t=function(n,t){function e(){this.constructor=n}for(var o in t)r.call(t,o)&&(n[o]=t[o]);return e.prototype=t.prototype,n.prototype=new e,n.__super__=t.prototype,n},r={}.hasOwnProperty;n=require("../diagrams").M,exports.m=function(n){function r(){return r.__super__.constructor.apply(this,arguments)}return t(r,n),r.prototype.active=function(n,t){var r;return t.qa()&&t.selsOnly()&&!t.selPre(n.agent)?(t.log("Skipping agent '"+n.agent+"' during preview","q"),!1):!(n.qa&&(r=t.qa(),t.log("QA-only agent '"+n.agent+"' (QA visitor? "+r+")","q"),!r))},r.prototype.getConds=function(n,t){if(t.selPre(n.agent)){if(!t.enfVcPre())return t.log("Skipping entry conditions for '"+n.agent+"'","q"),[];t.log("Enforcing entry conditions during preview for '"+n.agent+"'","q")}return n.conds},r}(n)}).call(this);
},{"../diagrams":17}],"./modules/entry":[function(require,module,exports){
(function(){var t,r=function(t,r){function n(){this.constructor=t}for(var e in r)o.call(r,e)&&(t[e]=r[e]);return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,t},o={}.hasOwnProperty;t=require("../diagrams").M,exports.m=function(t){function o(){return o.__super__.constructor.apply(this,arguments)}return r(o,t),o.prototype.active=function(t,r){return r.data["d.ep"]===t.entry},o}(t)}).call(this);
},{"../diagrams":17}],"./modules/feature-set":[function(require,module,exports){
(function(){var t,r=function(t,r){function e(){this.constructor=t}for(var n in r)o.call(r,n)&&(t[n]=r[n]);return e.prototype=r.prototype,t.prototype=new e,t.__super__=r.prototype,t},o={}.hasOwnProperty;t=require("../diagrams").M,exports.m=function(t){function o(){return o.__super__.constructor.apply(this,arguments)}return r(o,t),o.prototype.process=function(t,r){r.tAdd(t.feature,t.def?"def":"set")},o}(t)}).call(this);
},{"../diagrams":17}],"./modules/features-profile":[function(require,module,exports){
arguments[4]["./modules/condition"][0].apply(exports,arguments)
},{"../diagrams":17,"dup":"./modules/condition"}],"./modules/group":[function(require,module,exports){
arguments[4]["./modules/condition"][0].apply(exports,arguments)
},{"../diagrams":17,"dup":"./modules/condition"}],"./modules/reward":[function(require,module,exports){
(function(){var e,o,t,r=function(e,o){function t(){this.constructor=e}for(var r in o)n.call(o,r)&&(e[r]=o[r]);return t.prototype=o.prototype,e.prototype=new t,e.__super__=o.prototype,e},n={}.hasOwnProperty;e=require("../diagrams").M,t=require("../../../utils"),o=require("../../../rewards"),exports.m=function(e){function n(conf){this.conf=conf,this.rewarder=new o.Rewarder(this.conf),n.__super__.constructor.call(this,this.conf)}return r(n,e),n.prototype.process=function(e,o){var r,n,s,a,l,i,u,c,d,g,p,f,v;if(null==o.sess)throw"No session";if(o.reread(),f=null!=(l=o.step)?l:{},v={goal:e.goal,value:function(){switch(!1){case!(f.g===e.goal&&"number"==typeof f.v):return f.v;default:return parseFloat(e.value)}}(),vc:null!=(i=f.vc)?i:e.vc,agents:null!=(u=e.to)?u:f.to},!0===e.er)return this.sendViaRest(e,o,v);for(a={countMax:e.countMax,valueMin:e.valueMin,valueMax:e.valueMax,valueDef:e.valueDef,rw:e.rw,ps_ok:e.ps_ok,forex:e.forex},0===(g=this.rewarder.handleStep(o,v,a)).items.length&&o.log("No agents to reward for "+e.goal,"g"),p={g:e.goal,rs:[]},r=0,s=(c=g.items).length;s>r;r++)null!=(n=c[r])&&(o.log("Reward of "+v.value+" ("+n.v+" accepted) to agent "+n.a+" for goal "+n.g,"g"),n=t.Obj.extend({},n,{t:"r",rts:o.ts(),c:function(){switch(!1){case!Array.isArray(n.c):return n.c.join(",");default:return n.c}}(),s:void 0}),!0===this.conf["sqs:use-ddid"]&&(n.ddid=n.a+":"+n.g+":"+(null!=(d=n.ri)?d:0)),o.done(n),p.rs.push({a:n.a.split(":")[1],v:n.v}));return o.resp(p)},n.prototype.sendViaRest=function(e,o,r){var n,s,a,l,i,u,c;return n={g:r.goal,v:r.value,to:r.agents},a=o.qa()?"q":"p",(i=null!=(l=_d.rt.use_rest)?l[a]:void 0)?(u=o.data["v.sid"],t.Strings.isId(u)?(o.log("Sending Goal '"+r.goal+"' to REST API","g"),c=i+"&session="+encodeURIComponent(u),(s=null!=s?s:require("harness")).beacon(c,JSON.stringify({commands:[n]}))):void o.log("Could not send Goal '"+r.goal+"' to REST API (no Session ID)","e")):void o.log("Could not send Goal '"+r.goal+"' to REST API (no endpoint)","e")},n}(e)}).call(this);
},{"../../../rewards":9,"../../../utils":23,"../diagrams":17,"harness":"harness"}],"./modules/root":[function(require,module,exports){
arguments[4]["./modules/condition"][0].apply(exports,arguments)
},{"../diagrams":17,"dup":"./modules/condition"}],"./modules/select":[function(require,module,exports){
(function(){var n,e,t=function(n,e){function t(){this.constructor=n}for(var c in e)r.call(e,c)&&(n[c]=e[c]);return t.prototype=e.prototype,n.prototype=new t,n.__super__=e.prototype,n},r={}.hasOwnProperty;n=require("../diagrams").M,require("../../../utils"),e=require("../../../selection"),exports.m=function(n){function r(n){this.conf=n,this.chooser=new e.Chooser(this.conf),r.__super__.constructor.call(this,this.conf)}return t(r,n),r.prototype.process=function(n,e){var t,conf,r,c,s,a,o,l,i,p,u,d,f,g,_,h,m,y,v,x,w,A,b,k,O,j,q,C,P,D;if(conf=this.conf,null==e.sess)throw"No session for dec";if(k=e.data,O=null!=(d=e.step)?d:{},t=null!=(f="undefined"!=typeof _d&&null!==_d?_d.A[n.agent]:void 0)?f:{a:{c:{}},md:{}},!0!==O.discard||O.a!==n.agent)if(q={a:n.agent,c:function(){switch(!1){case!(O.a===n.agent&&null!=O.c):return O.c;default:return n.choices}}(),x:null!=(g=O.x)?g:[],p:n.policy,exr:n.exr,gdy:n.gdy,n:function(){var e,t;switch(typeof n.num){case"number":return null!=(e=null!=(t=O.n)?t:n.num)?e:1;default:return}}(),w:t.w},null!=(j=t.a.s)){if("running"!==j&&(q.p="p"),A=this.chooser.handleStep(e,q),P="p"===(u=null!=(_=null!=(h=n.s)?h:O.s)?_:A.ps),D="ok"===u,A.s=P&&"ok"!==A.ps?"p":"ok",o=!P,a=D&&"p"===A.ps,l=n.silent||O.silent,w=null!=(m=A.pp)?m:A.p,"p"===n.rap&&(w=A.p=n.rap),A.dp=e.pool(),e.selAdd(A),a?e.log("Confirming selection '"+A.c+"' for agent '"+n.agent+"'","a"):(e.log("selection '"+A.c+"' for agent '"+n.agent+"' (policy "+A.p+", traits ["+A.fs+"])","a"),"p"===A.s&&e.log("selection for '"+n.agent+"' is pending","a")),(!P&&"p"!==(y=A.p)&&"b"!==y&&"s"!==y&&"x"!==y||a)&&e.done({t:"d",a:q.a,c:Array.isArray(A.c)?A.c.join(","):A.c,p:w,fs:A.fs,dts:A.ts}),"api"===k["d.ep"]&&(l||e.resp({a:q.a,c:A.c,p:A.p,md:Array.isArray(A.c)?function(){var n;return n={},A.c.forEach(function(e){return n[e]=Object.assign({},t.md[e])}),n}():Object.assign({},t.md[A.c]),s:A.s})),o&&null!=e.handlers){for(i in b={},v=k["v.sels"])C=v[i],b[i]={c:C.c,p:C.p};for(s=0,p=(x=e.handlers).length;p>s;s++){c=x[s];try{c(b,q.a)}catch(n){r=n,e.log("Could not call post-selection handler: "+r,"e")}}}!function(){var n,t,r,c,s,a,i,p,u,d,f;o&&(c=(t=e.r._dl).enabled(),s=conf["dl:cdl"],(c||s)&&((r=conf["dl:px"]).length>0&&r.indexOf(w)>=0||l&&(u=null!=t._rm?t._rm:t._rm={})[p="s:"+q.a+":"+A.c+":"+w]||l&&conf["dl:slx"]||((f=conf["dl:names"])&&(i=e.c_name(q.a,A.c)),d=function(){var n;return n={item:{t:"s",a:q.a,c:A.c,p:w},ep:k["d.ep"]},f&&Object.assign(n.item,{a_name:i.a,c_name:i.c}),n},n=function(){var n;return"ga4"===conf["dl:ev-style"]?(n={event:"experience_impression",exp_variant_string:"conductrics-"+q.a+"-"+A.c,conductrics_agent_code:q.a,conductrics_variation_code:A.c},f&&(n.conductrics_agent_name=i.a,n.conductrics_variation_name=i.c)):n=d(),n},c&&(a=conf["dl:key-sl"],e.log("Pushing selection '"+A.c+"' into data layer for Agent '"+q.a+"' (policy "+w+")","a"),t.push(a,n())),s&&e.cdl_push(d()),l&&(u[p]=!0))))}()}else e.log("Unknown agent '"+n.agent+"' or status '"+j+"'","a");else e.selDel(n.agent)},r}(n)}).call(this);
},{"../../../selection":10,"../../../utils":23,"../diagrams":17}],"./modules/step-set":[function(require,module,exports){
(function(){var t,r=function(t,r){function n(){this.constructor=t}for(var e in r)o.call(r,e)&&(t[e]=r[e]);return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,t},o={}.hasOwnProperty;t=require("../diagrams").M,exports.m=function(t){function o(){return o.__super__.constructor.apply(this,arguments)}return r(o,t),o.prototype.process=function(t,r){r.stepSet(t.step)},o}(t)}).call(this);
},{"../diagrams":17}],"./modules/switch":[function(require,module,exports){
(function(){var t,o,r,n={}.hasOwnProperty;o=(r=require("../diagrams")).M,t=r.Conds,exports.m=function(o){function r(){return r.__super__.constructor.apply(this,arguments)}return function(t,o){function r(){this.constructor=t}for(var e in o)n.call(o,e)&&(t[e]=o[e]);r.prototype=o.prototype,t.prototype=new r,t.__super__=o.prototype}(r,o),r.prototype.process=function(o,r){var n,e,s,i;for(o.items=[],e=0,s=(i=o.cases).length;s>e;e++)if(n=i[e],t.evalConds(n.conds,r))return void(o.items=n.items)},r}(o)}).call(this);
},{"../diagrams":17}],"./modules/trait-read":[function(require,module,exports){
(function(){var r,t,e=function(r,t){function e(){this.constructor=r}for(var o in t)n.call(t,o)&&(r[o]=t[o]);return e.prototype=t.prototype,r.prototype=new e,r.__super__=t.prototype,r},n={}.hasOwnProperty,o=[].indexOf||function(r){for(var t=0,e=this.length;e>t;t++)if(t in this&&this[t]===r)return t;return-1};r=require("../diagrams").M,t=require("../../../utils"),exports.m=function(r){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,r),n.prototype.process=function(r,e){var n,i,s,a,p;for(a=t.Strings.interpolate(r.expr,e.data),n=0,i=(p=function(){var r;switch(!1){case!Array.isArray(a):return a;case"string"!=typeof a:return a.split(/[,; ]+/);case r=typeof a,o.call("boolean",r)<0:case!1:return[a]}}()).length;i>n;n++)s=p[n],this.isId(s)&&e.tAdd(r.ns+"/"+r.type+":"+s,"read")},n}(r)}).call(this);
},{"../../../utils":23,"../diagrams":17}],"./modules/vstate-apply":[function(require,module,exports){
(function(){var e,t,r,n,o,i,s,u,c=function(e,t){function r(){this.constructor=e}for(var n in t)l.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},l={}.hasOwnProperty;r=require("../diagrams").M,o=require("../../../dom-utils").doc_ready,s=require("../../../utils"),i=s.nested,u=s.waitFor,e=s.Conds,n=require("../wa-utils").dl_eventMsgApplies,t=require("../../client/exit-intent").ExitIntent,exports.m=function(r){function s(){return s.__super__.constructor.apply(this,arguments)}var l,a;return c(s,r),s.prototype.process=function(e,t){return o(function(){var r,n,o,i;for(r=0,n=(o=e.trigs).length;n>r;r++)i=o[r],l(e,t,i)})},l=function(r,o,s){var c,l,v,d,g,f,m,b,p,h,w,_;switch(b="view-state '"+r.vstate+"'",v=function(){var t;return!((t=s.ev_conds)&&t.length>0)||e.evalConds(t,o,"Event Conditions for view-state '"+r.vstate+"'","x")},h=function(){var e;return e=function(){var e;if(v())return o.log("Triggering view-state '"+r.vstate+"'","x"),e=new CustomEvent("ConductricsStateChange",{detail:r.vstate}),window.dispatchEvent(e)},s.ms>0?(o.log("Will trigger "+b+" in "+s.ms+" ms (trigger mode '"+s.mode+"')","x"),setTimeout(e,s.ms)):e()},s.mode){case"timeout":return h();case"scroll":if(!IntersectionObserver)return;return a(s.sel,function(e){return o.log("Will trigger "+b+" on '"+s.sel+"' scroll (trigger mode '"+s.mode+"')","x"),new IntersectionObserver(function(e){return e.some(function(e){return e.isIntersecting})?h():void 0},{threshold:.5}).observe(e)});case"visible":case"not-visible":if(!IntersectionObserver)return;return a(s.sel,function(e){var t,r;return r="visible"===s.mode,t=new IntersectionObserver(function(e){return e.some(function(e){return e.isIntersecting===r})?h():void 0},{root:document.querySelector(s.container),threshold:1}),o.log("Will trigger "+b+" on '"+s.sel+"' visibility (trigger mode '"+s.mode+"')","x"),t.observe(e)});case"class-has":case"class-not":if(!MutationObserver)return;return o.log("Prerequisite for "+b+" (trigger mode '"+s.mode+"'})","x"),a(s.sel,function(e){var t;return o.log("Will trigger "+b+" on CSS class changes (trigger mode '"+s.mode+"' for '"+s.css_class+"')","x"),t=function(){var t;return t=e.classList.contains(s.css_class),"class-has"===s.mode===t},new MutationObserver(function(e,r){return t()?h():void 0}).observe(e,{attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1})});case"present":case"not-present":if(!MutationObserver)return;if(!(c=document.querySelector(s.container)))return;return o.log("Will trigger "+b+" upon DOM changes (trigger mode '"+s.mode+"')","x"),p=function(){var e,t;return e=(c.matches(s.sel)?1:0)+c.querySelectorAll(s.sel).length>=(null!=(t=s.num)?t:1),"present"===s.mode===e},new MutationObserver(function(e,t){return p()?h():void 0}).observe(c,{childList:!0,subtree:!0});case"js-ev":return o.log("Will trigger "+b+" upon JS event '"+s.js_ev+"'","x"),u(300,100,function(){return i(s.js_obj,window)},function(e){try{return e[s.js_fn](s.js_ev,function(){return o.log("Detected '"+s.js_ev+"' event for "+b,"x"),h()})}catch(e){}});case"dl-ev":if((l=o.r._dl).enabled())return o.log("Will trigger "+b+" on Data Layer event '"+s.dl_ev+"'","x"),l.sub(function(e){var t;return e=null!=(t=e.eventInfo)?t:e,n(s.dl_ev,s.dl_crit,e,l)?h():void 0});break;case"exit-intent":return o.log("Will trigger "+b+" on 'exit-intent'","x"),t.waitForIntent(b,Object.assign({},s,{cb:function(){return o.log("Detected 'exit-intent' for "+b,"x"),h()}}));case"ui-inact":for(_="mousedown mousemove touchstart scroll keydown".split(" "),o.log("Will trigger "+b+" after "+s.ms+" ms of inaction","x"),f=function(e){return o.data["v.uits"]=Date.now()},m={passive:!0},u(1e3,7200,function(){var e;return e=o.data["v.uits"],Date.now()-e>s.ms},function(){var e,t,r,n;for(o.log("No UI action detected for "+s.ms,"x"),h(),r=[],e=0,t=_.length;t>e;e++)n=_[e],r.push(document.removeEventListener(n,f,m));return r}),d=0,g=_.length;g>d;d++)w=_[d],document.addEventListener(w,f,m)}},a=function(e,t){var r,n;return(r=(n=function(){return document.querySelector(e)})())?t(r):MutationObserver?new MutationObserver(function(e,o){return(r=n())?(o.disconnect(),t(r)):void 0}).observe(document,{childList:!0,subtree:!0}):void 0},s}(r)}).call(this);
},{"../../../dom-utils":4,"../../../utils":23,"../../client/exit-intent":12,"../diagrams":17,"../wa-utils":19}],"./modules/wa-await":[function(require,module,exports){
(function(){var e,r,t,o={}.hasOwnProperty;e=(r=require("../diagrams")).M,r.Reapplyer,require("../../../dom-utils").await_selector,t=require("sentinel-js"),exports.m=function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return function(e,r){function t(){this.constructor=e}for(var n in r)o.call(r,n)&&(e[n]=r[n]);t.prototype=r.prototype,e.prototype=new t,e.__super__=r.prototype}(r,e),r.prototype.process=function(e,r,o){var n,u,s,i,c,l,p,a;if(!(e.selectors.length>0))return!1;for(n=0,a=(new Date).getTime(),l=function(){var t;return e.resumed?void 0:(t=(new Date).getTime(),r.log("Selector found ("+p+") after "+(t-a)+" ms","s"),o.resume(e,r),e.resumed=!0)},u=0,s=(c=e.selectors).length;s>u;u++){if(p=c[u],i=null!==document.querySelector(p),r.log("Selector matches? "+i+" ("+p+")","x"),i&&!0===e.one)return!1;i||(t.on(p,l),n++)}return n>0},r}(e)}).call(this);
},{"../../../dom-utils":4,"../diagrams":17,"sentinel-js":5}],"./modules/wa-css":[function(require,module,exports){
(function(){var t,r=function(t,r){function n(){this.constructor=t}for(var e in r)o.call(r,e)&&(t[e]=r[e]);return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,t},o={}.hasOwnProperty;t=require("../diagrams").M,exports.m=function(t){function o(){return o.__super__.constructor.apply(this,arguments)}return r(o,t),o.prototype.process=function(t,r,o){r.log("Adding CSS"),this.addCSS(t.css,t.className)},o}(t)}).call(this);
},{"../diagrams":17}],"./modules/wa-decision":[function(require,module,exports){
(function(){var e,t,r=function(e,t){function r(){this.constructor=e}for(var i in t)n.call(t,i)&&(e[i]=t[i]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},n={}.hasOwnProperty,i=[].indexOf||function(e){for(var t=0,r=this.length;r>t;t++)if(t in this&&this[t]===e)return t;return-1};e=require("../diagrams").M,t=require("../../../dom-utils").await_selector,exports.m=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}var o,s;return r(n,e),n.prototype.active=function(e,t){var r,n,o;return t.qa()&&t.selsOnly()&&!t.selPre(e.agent)?(t.log("Skipping agent '"+e.agent+"' during preview","q"),!1):!(e.qa&&(n=t.qa(),t.log("QA-only agent '"+e.agent+"' (QA visitor? "+n+")","q"),!n))&&(o=t.vstate(),r=i.call(e.vstates,o)>=0,t.log("Agent '"+e.agent+"' used at view-state '"+t.vstate()+"'? "+r,"a"),r)},n.prototype.process=function(e,t,r){return!(!e.await||!o(e,t,r))||(e.js_id&&!s(e,t)?"skip":void 0)},s=function(e,t){var r,n;if(!e.js_id)return!0;try{n=(0,_wa_cjs[e.js_id])()}catch(n){return r=n,t.log("Eligibility JS error for Agent '"+e.agent+"': "+r,"e"),!1}return!0===n?(t.log("Eligibility JS for Agent '"+e.agent+"' returned true (eligible)","s"),!0):(t.log("Eligibility JS for Agent '"+e.agent+"' returned "+n+" (not eligible)","s"),!1)},o=function(e,r,n){var i;return document.querySelector(e.selector)?(r.log("Eligibility selector already present ("+e.selector+")","s"),!1):(i=(new Date).getTime(),r.log("Eligibility selector not yet present ("+e.selector+")","x"),t(e.selector,function(){var t;return r.pvd[e.agent+"_res"]?void 0:(t=(new Date).getTime()-i,r.log("Selector found ("+e.selector+") after "+t+" ms","s"),e.js_id&&!s(e,r)?"skip":(n.resume(e,r),r.pvd[e.agent+"_res"]=!0))}),!0)},n}(e)}).call(this);
},{"../../../dom-utils":4,"../diagrams":17}],"./modules/wa-entry":[function(require,module,exports){
(function(){var r,t=function(r,t){function n(){this.constructor=r}for(var e in t)o.call(t,e)&&(r[e]=t[e]);return n.prototype=t.prototype,r.prototype=new n,r.__super__=t.prototype,r},o={}.hasOwnProperty;r=require("../diagrams").M,exports.m=function(r){function o(){return o.__super__.constructor.apply(this,arguments)}return t(o,r),o.prototype.active=function(r,t){var o;return!r.mdn_only||"m"===(o=t.mdn())||(t.log("Stopping because 'modern' browser features not available ("+o+")","cf"),!1)},o}(r)}).call(this);
},{"../diagrams":17}],"./modules/wa-goal":[function(require,module,exports){
(function(){var e,t,n,r,o,i,l,a,u=function(e,t){function n(){this.constructor=e}for(var r in t)c.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},c={}.hasOwnProperty,s=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};n=require("../diagrams").M,t=require("../../client/ga").GA,l=require("../../../utils"),i=l.nested,a=l.waitFor,e=l.Conds,o=require("../../../dom-utils").doc_ready,r=require("../wa-utils").dl_eventMsgApplies,exports.m=function(n){function l(){return l.__super__.constructor.apply(this,arguments)}var c,v,g;return u(l,n),l.prototype.active=function(e){return!e._done},l.prototype.process=function(n,l,u){var v,d,f,p,_,h,w;switch(v=function(){var t,r;return!((t=null!=(r=n.ev_conds)?r:[]).length>0)||e.evalConds(t,l,"wa-goal ("+n.goal+" "+n.event+")","g")},p=function(e,t){if(v()){if(l.log(e+" triggered goal "+n.goal,"g"),t)try{n.items[0].items[0].to=t}catch(e){return void e}return u.resume(n,l)}},!1){case"load"!==n.event:o(function(){return p("Page load")});break;case"ga-ev"!==n.event:this.conf["x-ga:wgi"]&&t.init(this.conf),g(document,"ga.conductrics",function(e,r){return"event"===(null!=(r=null!=r?r:e.detail)?r.get("hitType"):void 0)&&t.eventApplies(n,r)?p("GA Event"):void 0});break;case"dl-ev"!==n.event:(d=l.r._dl).enabled()&&(l.log("Goal "+n.goal+" will watch for DL event '"+n.dl_eventName+"'","g"),d.sub(function(e){return r(n.dl_eventName,n.dl_crit,e,d)?p("DL event '"+n.dl_eventName+"'"):void 0}));break;case"js-ev"!==n.event:l.log("Goal "+n.goal+" will watch for JS event '"+n.js_ev+"'","g"),a(300,100,function(){return i(n.js_obj,window)},function(e){try{return e[n.js_fn](n.js_ev,function(){return p("JS Event '"+n.js_ev+"'")})}catch(e){}});break;case"vs"!==n.event:window.addEventListener("ConductricsStateChanged",function(e){var t;return t=e.detail,s.call(n.vs,t)>=0?p("View-state '"+e.detail+"'"):void 0});break;case!(null!=n.eventSelector&&null!=n.event):h=this,f=null!=(_=n.events)?_:n.event,w=void 0,l.log("Goal "+n.goal+" will watch for DOM event '"+f+"' on '"+n.eventSelector+"'","g"),c(document,f,n.eventSelector,n.sel_i,n.sel_n,n.evuc,function(e){var t,r,o,i;if(f.indexOf(" ")){if(o=(new Date).getTime(),w>=o)return void l.log(e.type+" too soon for goal "+n.goal,"g");w=o+100}return l.log(e.type+" from '"+n.eventSelector+"' triggered goal "+n.goal,"g"),n.gpa?(r=h.conf["wa:gpa-att"],(t=h.closest(e.target,"["+r+"]"))?p("DOM event '"+e.type+"'",null!=(i=t.getAttribute(r))?i.split(" "):void 0):void 0):p("DOM event '"+e.type+"'")});break;default:l.log("Unknown trigger for "+n.goal,"g")}return n._done=!0,!0},g=function(e,t,n){return e.addEventListener(t,n)},c=function(e,t,n,r,o,i,l){var a,u,c,s,g;for(null==i&&(i=!1),g=[],u=0,c=(s=t.split(" ")).length;c>u;u++)a=s[u],g.push(e.addEventListener(a,function(t){return v(e,n,t.target,r,o)?(i||t.stopPropagation(),l(t)):void 0},i));return g},v=function(e,t,n,r,o){var i,l,a,u,c;null==r&&(r=0),null==o&&(o=9999);try{for(c=e.querySelectorAll(t),l=a=0,u=c.length;u>a;l=++a)if(i=c[l],l>=r&&r+o>l&&i.contains(n))return!0}catch(e){}return!1},function(e,t,n,r){var o,i;i=0,(o=function(){var l;return i++,(l=n())?r(l):i>=t?void 0:setTimeout(o,e)})()},l}(n)}).call(this);
},{"../../../dom-utils":4,"../../../utils":23,"../../client/ga":13,"../diagrams":17,"../wa-utils":19}],"./modules/wa-pre-un":[function(require,module,exports){
(function(){var t,r=function(t,r){function n(){this.constructor=t}for(var o in r)e.call(r,o)&&(t[o]=r[o]);return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,t},e={}.hasOwnProperty;t=require("../diagrams").M,exports.m=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.active=function(t,r){var e;switch(e=r.selHas(t.agent),!1){case!t.exists:return e;case!!e:return!0;case!t.qa:return!1===r.qa();default:return!1}},e.prototype.process=function(t,r){var e,n,o,u,a;for(a="style.__c-pre-"+t.agent,n=0,o=(u=document.querySelectorAll(a)).length;o>n;n++)e=u[n],r.log("un-pre-hiding for "+t.agent,"x"),e.disabled=!0},e}(t)}).call(this);
},{"../diagrams":17}],"./modules/wa-reward":[function(require,module,exports){
(function(){var e,t,r=function(e,t){function r(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},n={}.hasOwnProperty;e=require("../diagrams").M,exports.m=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return r(n,e),n.prototype.process=function(e,t){var r,n,o,u,l,c;for(c=this.val(e,t),r=0,n=(u=e.items).length;n>r;r++)"reward"===(o=u[r]).module&&(l=o);null!=l?(l.value=c,e.forex&&(l.vc=this.cur(e,t))):e.items=[]},n.prototype.val=function(e,r){var n,o,u,l,c;return u=null!=(o=e.valueSelector)?o:"",l=function(){var o,l;switch(e.valueSelectorType){case"dl":if((n=r.r._dl).enabled())return c=function(e,r){var o,u;return u=n.get(r.trim())+"",e+(null!=(o=t(u))?o:0)},u.split("+").reduce(c,0);break;case"dom":return null!=(o=document.querySelector(u))?o.textContent:void 0;case"meta":return null!=(l=document.querySelector("meta[name='"+u+"']"))?l.content:void 0;default:return""}}(),t(l)},n.prototype.cur=function(e,t){var r,n,o,u;return o=null!=(n=e.currSelector)?n:"",null!=(u=function(){var n,u;switch(e.currSelectorType){case"dl":if((r=t.r._dl).enabled())return r.get(o);break;case"dom":return null!=(n=document.querySelector(o))?n.textContent:void 0;case"meta":return null!=(u=document.querySelector("meta[name='"+o+"']"))?u.content:void 0}}())?(""+u).trim().toUpperCase():void 0},n}(e),t=function(e){var t;return"number"==typeof e?e:(null!=e?e.length:void 0)>0?(t=parseFloat(parseFloat(e.replace(/[^0-9. ]/g," ")).toFixed(2)),isFinite(t)?t:null):null}}).call(this);
},{"../diagrams":17}],"./modules/wa-script":[function(require,module,exports){
(function (process){(function (){
(function(){var r,t,n,e,o,i=function(r,t){function n(){this.constructor=r}for(var e in t)c.call(t,e)&&(r[e]=t[e]);return n.prototype=t.prototype,r.prototype=new n,r.__super__=t.prototype,r},c={}.hasOwnProperty,u=function(r,t){return function(){return r.apply(t,arguments)}},s=[].indexOf||function(r){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===r)return t;return-1};r=(o=require("../diagrams")).M,t=o.Reapplyer,n=require("./wa-script-reg").ScriptReg,exports.m=function(r){function o(){return o.__super__.constructor.apply(this,arguments)}var c;return i(o,r),o.prototype.process=function(r,t,e){var o;return r.ext?(t.log("Loading "+r.id,"s"),(null!=(o=window.Conductrics).reg?o.reg:o.reg=new n).load(r.id,function(n){return t.log("Loaded "+r.id,"s"),c(r,t,e)})):c(r,t,e),r.confirm},c=function(r,n,o){var i,c,u,s,l,f,a,p,d,m;p=!0===r.confirm,f=process.env.C_WA_SCRIPT_CDX||p||r.types,c=r.agent,i=function(r){return n.log("Custom script "+r+" for agent '"+c+"'","s")},f?(u=new e(n.tr(),r.types),process.env.C_WA_SCRIPT_CDX&&Object.assign(u,{agent:r.agent,sel:function(){var t;return(t=n.data["v.sels"][r.agent])?{c:t.c,p:t.p}:null}})):u=null;try{l=_wa_cjs[r.id],(s=function(){var t,e;return i(""+(null!=(t=r.id)?t:"")),l(u),p?(e=function(){var t;return!1===(t=u.confirmed())?(i("called confirm(false)"),n.keep()):t?r.resumed?i("re-confirmed selection"):(i("confirmed selection"),o.resume(r,n),r.resumed=!0):i("declined to confirm")},null!=u._ok?e():u.on_confirm=e):void 0})()}catch(t){i("error: "+t),r.items&&(r.items=r.items.filter(function(r){return"decision"!==r.module}))}try{r.watch&&(d=null!=(a=r.watch_sel)?a:r.selector,(m=document.querySelectorAll(d)).length>0&&new t(s,m,null,r["ra-max"]).start())}catch(r){}},function(r,t){var e;return(null!=(e=window.Conductrics).reg?e.reg:e.reg=new n).load(r.id,t)},o}(r),e=function(){function r(r,t){this.tr=r,this.ok=t,this.confirm=u(this.confirm,this)}return r.prototype.trait=function(r){var t,n,e,o,i,c;if(null==r&&(r=""),s.call(r,"/")<0&&(r="cust/"+r),s.call(this.ok,r)<0)return"";for(t=0,n=(e=this.tr).length;n>t;t++)if(c=(o=e[t].split(":"))[0],i=o[1],c===r)return i;return""},r.prototype.confirm=function(r){return this._ok=r,"function"==typeof this.on_confirm?this.on_confirm(r):void 0},r.prototype.confirmed=function(){return this._ok},r}()}).call(this);
}).call(this)}).call(this,require('_process'))
},{"../diagrams":17,"./wa-script-reg":18,"_process":7}],"./modules/wa-start":[function(require,module,exports){
arguments[4]["./modules/condition"][0].apply(exports,arguments)
},{"../diagrams":17,"dup":"./modules/condition"}],"./modules/wa-survey-show":[function(require,module,exports){
(function(){var e,t,n,r,i,s,u,o,a,l={}.hasOwnProperty,d=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};t=require("../diagrams").M,o=require("../../../utils"),e=o.Conds,i=o.Strings,s=o.arrayFrom,u=require("../../../dom-utils").doc_ready,r=require("./wa-script-reg").ScriptReg;try{a=require("tinybind")}catch(e){}try{n=require("../../../lib/micromodal.min.js")}catch(e){}exports.m=function(t){function o(){return o.__super__.constructor.apply(this,arguments)}return function(e,t){function n(){this.constructor=e}for(var r in t)l.call(t,r)&&(e[r]=t[r]);n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(o,t),o.prototype.process=function(t,o,l){var c,f,g,v,p,b,h,m,y;return y=t.survey,v=(h=this).isId,c=h.closest,f=h.getStyleNonce,o.log("Survey: Show '"+y.code+"' via agent '"+t.agent+"' (CSP)","x"),!(m=this.getNodes(t).find(function(e){return"wa-survey-submit"===e.module}))||(g=function(){return document.getElementById(t.dom_id)},b=function(e,t){var n,i,s;return e?(s=null!=(n=window.Conductrics).reg?n.reg:n.reg=new r,i=y.code+"/"+e,o.log("Loading language '"+e+"' for survey '"+y.code+"'","s"),s.load_lang(i,function(n){return o.log("Loaded '"+e+"' for survey '"+y.code+"'","s"),t(n)})):(o.log("No language for survey '"+y.code+"'","s"),t())},p=function(e){var t,n,r;if(null==e&&(e=[]),!e.length)return null;r=o.data["v.lang"];try{n=new Intl.Locale(r)}catch(e){}return(null!=n?n.language:void 0)?(t=[n.language+"-"+n.region,""+n.language,n.language+"-"+n.language],e=e.map(function(e){return e.toLowerCase()}),t.find(function(t){return e.includes(t.toLowerCase())})):null}(y.langs),u(function(){return b(p,function(r){var u,b,h,_,S;return h={agent:t.agent,survey:y.code,values:t.values,focus:{},status:"init",step:0,visible:{},stepNextVisible:!1,stepNextEnabled:!1,stepPrevVisible:!1,stepPrevEnabled:!1,buttonsVisible:!0,submitVisible:!1,submitEnabled:!1,farewellVisible:!1,lang_code:p,init:function(){this._stepSet(0),0===this.visible.length&&this.stepNext(),Object.assign(t.values,this._getValuesFromPage()),this.randomizeAnswers(),o.qs=this,this.status="show",this._onChange(),this.applyLang(r),(t.modal||t.focus_first)&&this.focusFirstInput()},applyLang:function(e){return null==e&&(e={}),Object.keys(e).forEach(function(t){var n;return(n=document.querySelector("[data-lang-text='"+t+"']"))&&(n.innerText=e[t]),(n=document.querySelector("[data-lang-label='"+t+"']"))?n.setAttribute("aria-label",e[t]):void 0})},randomizeAnswers:function(){document.querySelectorAll(".c-q-has-random-items[data-rand-from][data-rand-thru]").forEach(function(e){var t,n,r;return n=parseInt(e.getAttribute("data-rand-from")),r=parseInt(e.getAttribute("data-rand-thru")),(t=s(e.querySelectorAll(".c-q-field-option")).map(function(e,t){return{el:e,order:function(){switch(!1){case!(t>=n&&r>=t):return Math.floor(1e3*Math.random());case!(t>=r):return 9999;default:return-1}}()}})).sort(function(e,t){return e.order-t.order}),t.forEach(function(t){return e.appendChild(t.el)})})},stepNext:function(){return h.stepNextEnabled?(h._stepSet(h._getNextStepIndex()),h.focusFirstInput()):void 0},stepPrev:function(){return h.stepPrevEnabled?(h._stepSet(h._getPrevStepIndex()),h.focusFirstInput()):void 0},_stepSet:function(e,n){e>=0&&e<t.steps.length&&(this.step=e,this._onChange(),o.log("Survey: Now at step "+(e+1)+" of "+t.steps.length,"x"))},_getValuesFromPage:function(){var e,n,r,s,u,a;for(n in u={},s=t.fields)(e=s[n]).readFrom&&(r=i.interpolate(e.readFrom,o.data),null!=(a=function(){switch(typeof r){case"string":return r.slice(0,300);case"number":if(isFinite(val)&&!isNaN(val))return r;break;case"object":if(Array.isArray(r))return r.join(",").slice(0,300);break;default:return null}}())&&(o.log("Survey: found value '"+a+"' for survey response field '"+n+"'","x"),this.values[n]=a));return u},_getNextStepIndex:function(){return t.steps.findIndex((e=this,function(t,n){return n>e.step?e._fieldsForStep(n,!0).length>0:void 0}));var e},_getPrevStepIndex:function(){return t.steps.findLastIndex((e=this,function(t,n){return n<e.step?e._fieldsForStep(n,!0).length>0:void 0}));var e},onFieldValue:function(e){var t;return t=e.target.getAttribute("data-field"),h._onFieldValueChanged(t)},_onFieldValueChanged:function(e){return o.log("Survey: Question '"+e+"' now has value: "+h.values[e]+" ("+typeof h.values[e]+")","x"),h._onChange(),d.call(t.auto_submit,e)>=0&&h.isValid()?h.surveySubmit():void 0},onFieldFocus:function(e){var t;return t=e.target.getAttribute("data-field"),h.focus[t]=!0,!0},onFieldBlur:function(e){var t;return t=e.target.getAttribute("data-field"),h.focus[t]=!1,!0},_onChange:function(){var n,r,i,s,u,a,l;return l=h.step,s=t.steps.length>1,i=-1===h._getNextStepIndex(),u=h.isStepValid(l),n=h._fieldsForStep(l,!0),r=n.filter(function(t){var n;return!((n=y.fields.find(function(e){return e.code===t}))&&n.conds&&n.conds.length)||e.evalConds(n.conds,o,"Survey")}),Object.keys(h.visible).forEach(function(e){return d.call(r,e)<0?h.visible[e]=!1:void 0}),r.forEach(function(e){return h.visible[e]=!0}),h.submitVisible=i,h.submitEnabled=h.submitVisible&&u&&h.isValid(),h.stepNextVisible=s&&!h.submitVisible&&!i,h.stepNextEnabled=h.stepNextVisible&&u,a=h._getPrevStepIndex(),h.stepPrevVisible=s&&h.step>0&&a>-1&&a<h.step,h.stepPrevEnabled=h.stepPrevVisible},isValid:function(){return!0},isStepValid:function(e){var n,r,i,s,u;for(i=0,s=(r=this._fieldsForStep(e,!0)).length;s>i;i++)if(n=r[i],t.fields[n].required)if(u=this.values[n],Array.isArray(u)){if(!(u.length>0))return!1}else if(null==u||""===u)return!1;return!0},surveySubmit:function(){return h.isValid()?(o.log("Visitor submitted survey","x"),h.status="submit",h._submit(),y.options.farewell?(h.visible=[],h.buttonsVisible=!1,h.farewellVisible=!0):h.hide()):void o.log("Survey input failed validation","x")},surveyClose:function(){o.log("Visitor closed survey","x"),y.options.send_on_close&&"show"===h.status?(h.status="close",h._submit(),h.hide()):h.hide()},_submit:function(){m.model=this,l.resume(t,o)},getValues:function(){var e,n,r,i,s,u,o,a,l,d;for(l=function(){switch(this.status){case"close":return this.step-1;case"submit":return this.step;default:return-1}}.call(this),d={},a=n=0,i=(u=t.steps).length;i>n;a=++n)if(u[a],l>=a)for(r=0,s=(o=this._fieldsForStep(a,!0)).length;s>r;r++)d[e=o[r]]=this.getFieldValue(e);return d},getFieldValue:function(e){var n,r,i;return n=null!=(i=t.fields[e])?i:{},r=this.values[e],n.numeric&&"string"==typeof r&&!isNaN(+r)&&(r=+r),r},answer:function(e){var t,n,r,i;e&&2===e.eventPhase&&(n=c(e.target,"[data-c-q-answer]"))&&(r=(i=n.getAttribute("data-c-q-answer").split(" "))[0],t=i[1],v(r)&&v(t)&&(h.values[r]=t,h._onFieldValueChanged(r)))},hide:function(){var e;return t.modal?n.close(t.dom_id):null!=(e=document.getElementById(t.dom_id))&&e.classList.add("c-q-submitted"),setTimeout(function(){var e;return null!=(e=document.getElementById(t.dom_id))&&e.remove(),o.qs===this&&(o.qs=null),document.querySelectorAll("style.c-q-theme-style[data-survey='"+y.code+"']").forEach(function(e){return e.remove()})},1500)},_fieldsForStep:function(n,r){var i,s,u;return i=null!=(s=null!=(u=t.steps[n])?u.fields:void 0)?s:[],!0===r&&(i=i.filter(function(t){var n;return!((n=y.fields.find(function(e){return e.code===t}))&&n.conds&&n.conds.length)||e.evalConds(n.conds,o,"Survey")})),i},_getFocusableNodes:function(e){var t,n,r,i,u;return(u=g())?(t=h._fieldsForStep(h.step,!0),r=":not([disabled]):not([tabindex^='-'])",i=t.map(function(e){return[".c-q-field[data-field='"+e+"'] input"+r,".c-q-field[data-field='"+e+"'] select"+r,".c-q-field[data-field='"+e+"'] textarea"+r].join(",")}).concat("button"),n=s(u.querySelectorAll(i)),e&&(n=n.filter(function(e){return null!==e.offsetParent||parseInt(e.getAttribute("tabindex"))>=0})),n):[]},focusFirstInput:function(){var e,t;t=h._getFocusableNodes(!0),(e=t[0])&&setTimeout(function(){return e.focus()},250)}},(u=document.querySelector(t.selector))?(b=""+t.markup,b=(_=f())?b.replace(/data-c-q-style-nonce/g," nonce='"+_+"'"):b.replace(/data-c-q-style-nonce/g,""),u.insertAdjacentHTML(t.adjacency,b),a.formatters.number={read:function(e){return(+e).toFixed(0)},publish:function(e){return parseInt(e)}},a.binders.checkedvals={bind:function(e){return this.callback=function(){var t,n,r,i;return n=e.getAttribute("data-field"),i=h.values[n],Array.isArray(i)?(t=e.getAttribute("value"),e.checked?i.push(t):(r=i.indexOf(t))?i.splice(r,1):void 0):void 0},e.addEventListener("click",this.callback)},unbind:function(e){return e.removeEventListener(e,this.callback)}},a.binders.tabindex=function(e,t){var n;return n=!0===t||""===t?0:-1,e.setAttribute("tabindex",n)},a.binders.tabindexval=function(e,t){var n,r,i;return r=e.getAttribute("data-option-value"),n=e.getAttribute("data-field"),i=r===t&&h.visible[n]?0:-1,e.setAttribute("tabindex",i)},a.binders.ariachecked=function(e,t){var n;return n=e.getAttribute("data-option-value"),e.setAttribute("aria-checked",n===t)},a.binders.classunfilled=function(e,t){return t?e.classList.add("c-q-radio-group-unfilled"):e.classList.remove("c-q-radio-group-unfilled")},g=function(){return document.getElementById(t.dom_id)},h.init(),S=g(),a.bind(S,h),document.querySelectorAll("style.c-q-theme-style[data-survey='"+y.code+"']").forEach(function(e){return e.setAttribute("media","all")}),t.modal?n.show(t.dom_id,{awaitOpenAnimation:!0,awaitCloseAnimation:!0,getFocusableNodes:function(){return h._getFocusableNodes()}}):void 0):(o.log("No container for survey '"+y.code+"' using selector '"+t.selector+"'","x"),!0)})}),!0)},o}(t)}).call(this);
},{"../../../dom-utils":4,"../../../lib/micromodal.min.js":"/opt/mpath/api/bin/lib/micromodal.min.js","../../../utils":23,"../diagrams":17,"./wa-script-reg":18,"tinybind":"tinybind"}],"./modules/wa-survey-submit":[function(require,module,exports){
(function(){var e,r,t,n,s=function(e,r){function t(){this.constructor=e}for(var n in r)a.call(r,n)&&(e[n]=r[n]);return t.prototype=r.prototype,e.prototype=new t,e.__super__=r.prototype,e},a={}.hasOwnProperty;r=require("../diagrams").M,e=require("../../../utils").Dates,exports.m=function(r){function a(){return a.__super__.constructor.apply(this,arguments)}return s(a,r),a.prototype.process=function(r,s,a){var o,i,conf,u,l,c,p,f,d,h,v,y,m,g,_,w,S,b,A,P;if(h=r.model,conf=this.conf,null!=h)if(h.isValid())if(g=s.selGet(h.agent))if(b=h.getValues(),Object.keys(b).length>0){for(c in _={t:"qs",rid:"qs-"+e.stamp()+"-"+n(10),s:r.survey_code,v:b,a:g.a,c:g.c,fs:g.fs,p:g.p,dts:g.dts,aa:{},ev:"close"===h.status?"x":"s",lang:h.lang_code},y=r.value_trait_map)w=y[c],(S=h.values[c])&&(Array.isArray(S)?S.forEach(function(e){return s.tAdd(w+":"+e,"surv")}):s.tAdd(w+":"+S,"surv"));for(p=0,d=(m=r.assoc).length;d>p;p++)o=m[p],(i=s.selGet(o))&&(_.aa[o]={c:i.c,p:i.p});r.keepUrl&&(_.url=function(){try{return window.location.href.split("?")[0]}catch(e){}}(),r.keepUrlParams&&"undefined"!=typeof URLSearchParams&&null!==URLSearchParams&&(v=new URLSearchParams(window.location.search),P=new URLSearchParams,r.keepUrlParams.filter(function(e){return v.has(e)}).forEach(function(e){return P.set(e,v.get(e))}),P.size>0&&(_.url+="?"+P))),s.log("Submitting survey response item: "+JSON.stringify(_),"x"),s.done(_),h.status="done",r.submit_vstate&&(A=new CustomEvent("ConductricsStateChange",{detail:r.submit_vstate}),window.dispatchEvent(A)),!0===conf["dl:sr"]&&(l=t(r,_),(u=s.r._dl).enabled()&&(s.log("Pushing survey response item into Analytics Data Layer"),f=conf["dl:key-sr"],u.push(f,l)),conf["dl:cdl"]&&(s.log("Pushing survey response item into Simple Data Layer"),s.cdl_push(l)))}else s.log("Survey response empty, abort","x");else s.log("Survey selection missing, abort","x");else s.log("Survey failed validation, abort","x");else s.log("Survey data model missing, abort","x")},a}(r),t=function(e,r){var t,n,s,a,o,i,u;for(a in i=e.model.agent,t=[],s=function(r){var t;return null!=(t=e.q_names[r])?t:r},n=function(r,t){var n;return null!=(n=e.q_vals[r+":"+t])?n:t},o=r.v)u=o[a],Array.isArray(u)?u.forEach(function(e){return t.push({Q:s(a),A:n(a,e)})}):t.push({Q:s(a),A:n(a,u)});return{item:{t:"qs",rid:r.rid,survey:i,survey_name:s("."),answers:t,lang:r.lang},ep:"wax"}},n=function(e,r){var t;return null==r&&(r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"),function(){t=[];for(var r=0;e>=0?e>r:r>e;e>=0?r++:r--)t.push(r);return t}.apply(this).map(function(){return r[Math.floor(Math.random()*r.length)]}).join("")}}).call(this);
},{"../../../utils":23,"../diagrams":17}],"./modules/wa-survey":[function(require,module,exports){
(function(){var e,r=function(e,r){function t(){this.constructor=e}for(var n in r)o.call(r,n)&&(e[n]=r[n]);return t.prototype=r.prototype,e.prototype=new t,e.__super__=r.prototype,e},o={}.hasOwnProperty;e=require("../diagrams").M,exports.m=function(e){function o(){return o.__super__.constructor.apply(this,arguments)}return r(o,e),o.prototype.active=function(e,r){var o;return r.dnt()?(r.log("Survey: Not showing survey '"+e.survey_code+"' due to Do-Not-Track (DNT) preference","e"),!1):null!=document.querySelector(".c-q-survey")?(r.log("Survey: Not showing '"+e.survey_code+"' because there is already a survey present in the DOM","x"),!1):(o=r.rwdCnt(e.sel_g,e.agent))>=e.countMax?r.qa()?(r.log("Showing survey for QA Visitor, even though already offered "+o+"x for agent '"+e.agent+"'","q"),!0):(r.log("Survey already offered "+o+"x for agent '"+e.agent+"'","x"),!1):(r.log("Prior-offer count for Survey #agent '"+e.agent+"': "+o,"x"),!0)},o}(e)}).call(this);
},{"../diagrams":17}],"./plugins/cust":[function(require,module,exports){
(function(){var t,n=function(t,n){function r(){this.constructor=t}for(var e in n)o.call(n,e)&&(t[e]=n[e]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t},o={}.hasOwnProperty;t=require("../targeting"),exports.p=function(t){function o(conf){this.conf=conf}return n(o,t),o.ns="cust",o.modes=["b"],o.sync=!0,o.prototype.resolve=function(t,n,o,r){return r(!1,null)},o}(t.Plugin)}).call(this);
},{"../targeting":22}],"./plugins/dt":[function(require,module,exports){
(function(){var t,r,o=function(t,r){function o(){this.constructor=t}for(var e in r)n.call(r,e)&&(t[e]=r[e]);return o.prototype=r.prototype,t.prototype=new o,t.__super__=r.prototype,t},n={}.hasOwnProperty;t=require("../targeting"),r=require("../dt-resolve")._resolve,exports.p=function(t){function n(conf){this.conf=conf}return o(n,t),n.ns="dt",n.modes=["s","b"],n.sync=!0,n.prototype.ttl=function(t){return 60},n.prototype.resolve=function(t,o,n,e){return e(!1,r(o,t.ts(),t.data["v.tzo"]))},n}(t.Plugin)}).call(this);
},{"../dt-resolve":20,"../targeting":22}],"./plugins/geo":[function(require,module,exports){
(function(){var t,n=function(t,n){function r(){this.constructor=t}for(var e in n)o.call(n,e)&&(t[e]=n[e]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t},o={}.hasOwnProperty;t=require("../targeting"),exports.p=function(t){function o(conf){this.conf=conf}return n(o,t),o.ns="geo",o.modes=["b","s"],o.sync=!0,o.prototype.resolve=function(t,n,o,r){return r(!1,null)},o}(t.Plugin)}).call(this);
},{"../targeting":22}],"./plugins/rand":[function(require,module,exports){
(function(){var t,r=function(t,r){function o(){this.constructor=t}for(var e in r)n.call(r,e)&&(t[e]=r[e]);return o.prototype=r.prototype,t.prototype=new o,t.__super__=r.prototype,t},n={}.hasOwnProperty;t=require("../targeting"),exports.p=function(t){function n(conf){this.conf=conf}return r(n,t),n.ns="rdm",n.modes=["b","s"],n.sync=!0,n.prototype.ttl=function(t){return 31536e3},n.prototype.resolve=function(t,r,n,o){return o(!1,function(){switch(r){case"r100":return this.rand(100)}}.call(this))},n.prototype.rand=function(t){return Math.floor(Math.random()*t)+1},n}(t.Plugin)}).call(this);
},{"../targeting":22}],"./plugins/ua":[function(require,module,exports){
(function(){var e,r,n,t=function(e,r){function n(){this.constructor=e}for(var t in r)a.call(r,t)&&(e[t]=r[t]);return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,e},a={}.hasOwnProperty;r=require("ua-parser-js"),e=require("../targeting"),n={},exports.p=function(e){function a(conf){this.conf=conf}var o,s,u,i;return t(a,e),a.ns="ua",a.modes=["s","b"],a.sync=!0,a.UA_CACHE={},a.prototype.ttl=function(e){return 0},i=function(e){return"os"===e||"br"===e||"dv"===e||"mo"===e},u=function(){return"object"==typeof window&&"ontouchstart"in window},s=function(e){var r,n;return null!=(r=e.data["v.ua"])?r:null!=(n=e.r)?n.ua:void 0},o=function(e,t){var a,o;return n[a="ua:"+t]?n[a]:(o=new r(t).getResult(),n[a]=Object.assign({},o),o)},a.prototype.resolve=function(e,r,n,t){var a,c,d;if(i(r)){if("string"!=typeof(d=s(e)))return t(!1);c=o(0,d)}return t(!1,function(){switch(r){case"os":switch(c.os.name){case"Android":return"a";case"iOS":return"i";case"Mac OS":return"m";case"Windows":case"Windows Phone":case"Windows Mobile":return"w";default:return"o"}break;case"br":switch(c.browser.name){case"Chrome":return"c";case"Firefox":return"f";case"Safari":case"Mobile Safari":return"s";case"IE":case"IEMobile":case"Edge":return"i";default:return"o"}break;case"dv":switch(c.device.type){case"mobile":return"m";case"tablet":return"t";case void 0:case null:case"":return"d";default:return"o"}break;case"mo":switch(c.device.type){case"mobile":case"tablet":return"m";default:return"n"}break;case"vi":return e.mdn();case"wi":return a="undefined"!=typeof window&&null!==window?window.innerWidth:void 0;case"wb":switch(a="undefined"!=typeof window&&null!==window?window.innerWidth:void 0,!1){case!(a>=1400):return"xxl";case!(a>=1200):return"xl";case!(a>=992):return"lg";case!(a>=768):return"md";case!(a>=576):return"sm";case!(576>a):return"xs"}break;case"te":return u()?"t":"n";case"ag":return s(e)}}())},a}(e.Plugin)}).call(this);
},{"../targeting":22,"ua-parser-js":8}],"./plugins/x-gcp-bq":[function(require,module,exports){
(function(){var t,r=function(t,r){function o(){this.constructor=t}for(var e in r)n.call(r,e)&&(t[e]=r[e]);return o.prototype=r.prototype,t.prototype=new o,t.__super__=r.prototype,t},n={}.hasOwnProperty;t=require("../targeting"),exports.p=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return r(n,t),n.ns="x-gcp-bq",n.modes=["b","s"],n.sync=!0,n.prototype.active=function(t){return null!=t.data["v.vid"]},n.prototype.resolve=function(t,r,n,o){return o(!1,null)},n}(t.Plugin)}).call(this);
},{"../targeting":22}],1:[function(require,module,exports){
(function(){exports.Bots=function(){function t(conf){this.conf=conf}var n;return t.prototype.detect=function(t){var o,e,i,r;if(!((null!=t?t.length:void 0)>0))return null;for(t=t.toLowerCase(),o=0,e=(i=n.concat(this.conf["bots:cust"])).length;e>o;o++)if(r=i[o],t.indexOf(r)>=0)return r;return null},n=["bot","spider","crawler","search","track","ping","monitor","google","twitter","yahoo","bing","akamai","y!j","mozilla/5.0 (compatible; msie 10.0; windows nt 6.1; wow64; trident/6.0)","synthetic","waitfor","delay","sleep"],t}()}).call(this);
},{}],2:[function(require,module,exports){
(function(){var n;n=exports,require("./data"),n.merged=function(n){return null==n&&(n=[]),_d.conf}}).call(this);
},{"./data":3}],3:[function(require,module,exports){
(function(){var c,t;if("string"==typeof _d)try{t=require,c=t("jsonpack"),_d=c.unpack(_d)}catch(a){}}).call(this);

},{}],4:[function(require,module,exports){
(function(){exports.doc_ready=function(e){return(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?e():document.addEventListener("DOMContentLoaded",e)},exports.await_selector=function(e,t){var n;return document.querySelector(e)?t():(n=new MutationObserver(function(){return document.querySelector(e)?(n.disconnect(),t()):void 0})).observe(document,{childList:!0,subtree:!0})}}).call(this);
},{}],"/opt/mpath/api/bin/lib/micromodal.min.js":[function(require,module,exports){
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).MicroModal=t()}(this,function(){"use strict";function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var n,i,a,r,s,l=(n=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'],i=function(){function o(e){var n=e.targetModal,i=e.triggers,a=void 0===i?[]:i,r=e.onShow,s=void 0===r?function(){}:r,l=e.onClose,c=void 0===l?function(){}:l,d=e.openTrigger,u=void 0===d?"data-micromodal-trigger":d,f=e.closeTrigger,h=void 0===f?"data-micromodal-close":f,g=e.openClass,v=void 0===g?"is-open":g,m=e.disableScroll,b=void 0!==m&&m,y=e.disableFocus,p=void 0!==y&&y,w=e.awaitCloseAnimation,E=void 0!==w&&w,k=e.awaitOpenAnimation,M=void 0!==k&&k,A=e.getFocusableNodes,C=void 0===A?null:A,L=e.debugMode,T=void 0!==L&&L;!function(e,t){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this),this.modal=document.getElementById(n),this.config={debugMode:T,disableScroll:b,openTrigger:u,closeTrigger:h,openClass:v,onShow:s,onClose:c,awaitCloseAnimation:E,awaitOpenAnimation:M,disableFocus:p,getFocusableNodes:C},a.length>0&&this.registerTriggers.apply(this,t(a)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}var i,a;return i=o,(a=[{key:"registerTriggers",value:function(){for(var e=this,t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];o.filter(Boolean).forEach(function(t){t.addEventListener("click",function(t){return e.showModal(t)})})}},{key:"showModal",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.awaitOpenAnimation){this.modal.addEventListener("animationend",function t(){e.modal.removeEventListener("animationend",t,!1),e.setFocusToFirstNode()},!1)}else this.setFocusToFirstNode();this.config.onShow(this.modal,this.activeElement,t)}},{key:"closeModal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.modal;if(this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,e),this.config.awaitCloseAnimation){var o=this.config.openClass;this.modal.addEventListener("animationend",function e(){t.classList.remove(o),t.removeEventListener("animationend",e,!1)},!1)}else t.classList.remove(this.config.openClass)}},{key:"closeModalById",value:function(e){this.modal=document.getElementById(e),this.modal&&this.closeModal()}},{key:"scrollBehaviour",value:function(e){if(this.config.disableScroll){var t=document.querySelector("body");switch(e){case"enable":Object.assign(t.style,{overflow:""});break;case"disable":Object.assign(t.style,{overflow:"hidden"})}}}},{key:"addEventListeners",value:function(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}},{key:"removeEventListeners",value:function(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"onClick",value:function(e){(e.target.hasAttribute(this.config.closeTrigger)||e.target.parentNode.hasAttribute(this.config.closeTrigger))&&(e.preventDefault(),e.stopPropagation(),this.closeModal(e))}},{key:"onKeydown",value:function(e){27===e.keyCode&&this.closeModal(e),9===e.keyCode&&this.retainFocus(e)}},{key:"getFocusableNodes",value:function(){if(this.config.getFocusableNodes)return this.config.getFocusableNodes(this.modal);var e=this.modal.querySelectorAll(n);return Array.apply(void 0,t(e))}},{key:"setFocusToFirstNode",value:function(){var e=this;if(!this.config.disableFocus){var t=this.getFocusableNodes();if(0!==t.length){var o=t.filter(function(t){return!t.hasAttribute(e.config.closeTrigger)});o.length>0&&o[0].focus(),0===o.length&&t[0].focus()}}}},{key:"retainFocus",value:function(e){var t=this.getFocusableNodes();if(0!==t.length)if(t=t.filter(function(e){return null!==e.offsetParent||parseInt(e.getAttribute("tabindex"))>=0}),this.modal.contains(document.activeElement)){var o=t.indexOf(document.activeElement);e.shiftKey&&0===o&&(t[t.length-1].focus(),e.preventDefault()),!e.shiftKey&&t.length>0&&o===t.length-1&&(t[0].focus(),e.preventDefault())}else t[0].focus()}}])&&e(i.prototype,a),o}(),a=null,r=function(e){if(!document.getElementById(e))return console.warn("MicroModal: ❗Seems like you have missed %c'".concat(e,"'"),"background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<div class="modal" id="'.concat(e,'"></div>')),!1},s=function(e,t){if(function(e){e.length<=0&&(console.warn("MicroModal: ❗Please specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<a href="#" data-micromodal-trigger="my-modal"></a>'))}(e),!t)return!0;for(var o in t)r(o);return!0},{init:function(e){var o=Object.assign({},{openTrigger:"data-micromodal-trigger"},e),n=t(document.querySelectorAll("[".concat(o.openTrigger,"]"))),r=function(e,t){var o=[];return e.forEach(function(e){var n=e.attributes[t].value;void 0===o[n]&&(o[n]=[]),o[n].push(e)}),o}(n,o.openTrigger);if(!0!==o.debugMode||!1!==s(n,r))for(var l in r){var c=r[l];o.targetModal=l,o.triggers=t(c),a=new i(o)}},show:function(e,t){var o=t||{};o.targetModal=e,!0===o.debugMode&&!1===r(e)||(a&&a.removeEventListeners(),(a=new i(o)).showModal())},close:function(e){e?a.closeModalById(e):a.closeModal()}});return"undefined"!=typeof window&&(window.MicroModal=l),l});
},{}],5:[function(require,module,exports){
!function(e,n){"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?module.exports=n():e.sentinel=n()}(this,function(){var e,n,t,i=Array.isArray,o={},r={};return{on:function(a,f){if(f){if(!e){var s=document,c=s.head;s.addEventListener("animationstart",function(e,n,t,i){if(n=r[e.animationName])for(e.stopImmediatePropagation(),t=n.length,i=0;t>i;i++)n[i](e.target)},!0);e=s.createElement("style");var l=function(){var e=document.querySelector("style[nonce]")||document.querySelector("script[nonce]");return e?e.nonce||e.getAttribute("nonce"):void 0}();l&&(e.nonce=l),c.insertBefore(e,c.firstChild),n=e.sheet,t=n.cssRules}(i(a)?a:[a]).map(function(e,i,a){(i=o[e])||(a="!"==e[0],o[e]=i=a?e.slice(1):"sentinel-"+Math.random().toString(16).slice(2),t[n.insertRule("@keyframes "+i+"{from{transform:none;}to{transform:none;}}",t.length)]._id=e,a||(t[n.insertRule(e+"{animation-duration:0.0001s;animation-name:"+i+";}",t.length)]._id=e),o[e]=i),(r[i]=r[i]||[]).push(f)})}},off:function(e,a){(i(e)?e:[e]).map(function(e,i,f,s){if(i=o[e]){if(f=r[i],a)for(s=f.length;s--;)f[s]===a&&f.splice(s,1);else f=[];if(!f.length){for(s=t.length;s--;)t[s]._id==e&&n.deleteRule(s);delete o[e],delete r[i]}}})},reset:function(){o={},r={},e&&e.parentNode.removeChild(e),e=0}}});
},{}],6:[function(require,module,exports){

},{}],7:[function(require,module,exports){
var cachedSetTimeout,cachedClearTimeout,process=module.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(cachedSetTimeout===setTimeout)return setTimeout(e,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(e,0);try{return cachedSetTimeout(e,0)}catch(t){try{return cachedSetTimeout.call(null,e,0)}catch(t){return cachedSetTimeout.call(this,e,0)}}}function runClearTimeout(e){if(cachedClearTimeout===clearTimeout)return clearTimeout(e);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(e);try{return cachedClearTimeout(e)}catch(t){try{return cachedClearTimeout.call(null,e)}catch(t){return cachedClearTimeout.call(this,e)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&&currentQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var e=runTimeout(cleanUpNextTick);draining=!0;for(var t=queue.length;t;){for(currentQueue=queue,queue=[];++queueIndex<t;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,t=queue.length}currentQueue=null,draining=!1,runClearTimeout(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}process.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];queue.push(new Item(e,t)),1!==queue.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.prependListener=noop,process.prependOnceListener=noop,process.listeners=function(e){return[]},process.binding=function(e){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(e){throw new Error("process.chdir is not supported")},process.umask=function(){return 0};
},{}],8:[function(require,module,exports){
!function(i,e){"use strict";function o(i){for(var e={},o=0;o<i.length;o++)e[i[o].toUpperCase()]=i[o];return e}function a(i,e){return typeof i==d&&-1!==H(e).indexOf(H(i))}function r(i,e){if(typeof i==d)return i=i.replace(/^\s\s*/,""),typeof e==b?i:i.substring(0,350)}function t(i,o){for(var a,r,t,n,b,d=0;d<o.length&&!n;){for(var l=o[d],c=o[d+1],u=a=0;u<l.length&&!n&&l[u];)if(n=l[u++].exec(i))for(r=0;r<c.length;r++)b=n[++a],typeof(t=c[r])==w&&0<t.length?2===t.length?typeof t[1]==s?this[t[0]]=t[1].call(this,b):this[t[0]]=t[1]:3===t.length?typeof t[1]!=s||t[1].exec&&t[1].test?this[t[0]]=b?b.replace(t[1],t[2]):e:this[t[0]]=b?t[1].call(this,b,t[2]):e:4===t.length&&(this[t[0]]=b?t[3].call(this,b.replace(t[1],t[2])):e):this[t]=b||e;d+=2}}function n(i,o){for(var r in o)if(typeof o[r]==w&&0<o[r].length){for(var t=0;t<o[r].length;t++)if(a(o[r][t],i))return"?"===r?e:r}else if(a(o[r],i))return"?"===r?e:r;return i}var s="function",b="undefined",w="object",d="string",l="major",c="model",u="name",p="type",m="vendor",h="version",f="architecture",v="console",g="mobile",x="tablet",k="smarttv",y="wearable",_="embedded",T="Amazon",S="Apple",q="ASUS",z="BlackBerry",N="Browser",A="Chrome",C="Firefox",E="Google",O="Huawei",U="LG",j="Microsoft",P="Motorola",R="Opera",M="Samsung",B="Sharp",V="Sony",D="Xiaomi",I="Zebra",W="Facebook",F="Chromium OS",G="Mac OS",H=function(i){return i.toLowerCase()},L={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2000:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Z={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,h],[/opios[\/ ]+([\w\.]+)/i],[h,[u,R+" Mini"]],[/\bopr\/([\w\.]+)/i],[h,[u,R]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,h],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[u,"UC"+N]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[h,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[h,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+N],h],[/\bfocus\/([\w\.]+)/i],[h,[u,C+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[u,R+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[u,R+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[u,"MIUI "+N]],[/fxios\/([-\w\.]+)/i],[h,[u,C]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+N]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+N],h],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,h],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,W],h],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[h,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[u,A+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,A+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[u,"Android "+N]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[h,n,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[u,C+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[u,h],[/(cobalt)\/([\w\.]+)/i],[u,[h,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[f,"amd64"]],[/(ia32(?=;))/i],[[f,H]],[/((?:i[346]|x)86)[;\)]/i],[[f,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/windows (ce|mobile); ppc;/i],[[f,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[f,/ower/,"",H]],[/(sun4\w)[;\)]/i],[[f,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[f,H]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[m,M],[p,x]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[m,M],[p,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[m,S],[p,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[m,S],[p,x]],[/(macintosh);/i],[c,[m,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[m,B],[p,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[m,O],[p,x]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[m,O],[p,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[m,D],[p,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[m,D],[p,x]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[m,"OPPO"],[p,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[m,"Vivo"],[p,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[m,"Realme"],[p,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[m,P],[p,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[m,P],[p,x]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[m,U],[p,x]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[m,U],[p,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[m,"Lenovo"],[p,x]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[m,"Nokia"],[p,g]],[/(pixel c)\b/i],[c,[m,E],[p,x]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[m,E],[p,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[m,V],[p,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[m,V],[p,x]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[m,"OnePlus"],[p,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[m,T],[p,x]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[m,T],[p,g]],[/(playbook);[-\w\),; ]+(rim)/i],[c,m,[p,x]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[m,z],[p,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[m,q],[p,x]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[m,q],[p,g]],[/(nexus 9)/i],[c,[m,"HTC"],[p,x]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[c,/_/g," "],[p,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[m,"Acer"],[p,x]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[m,"Meizu"],[p,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,c,[p,g]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,c,[p,x]],[/(surface duo)/i],[c,[m,j],[p,x]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[m,"Fairphone"],[p,g]],[/(u304aa)/i],[c,[m,"AT&T"],[p,g]],[/\bsie-(\w*)/i],[c,[m,"Siemens"],[p,g]],[/\b(rct\w+) b/i],[c,[m,"RCA"],[p,x]],[/\b(venue[\d ]{2,7}) b/i],[c,[m,"Dell"],[p,x]],[/\b(q(?:mv|ta)\w+) b/i],[c,[m,"Verizon"],[p,x]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[m,"Barnes & Noble"],[p,x]],[/\b(tm\d{3}\w+) b/i],[c,[m,"NuVision"],[p,x]],[/\b(k88) b/i],[c,[m,"ZTE"],[p,x]],[/\b(nx\d{3}j) b/i],[c,[m,"ZTE"],[p,g]],[/\b(gen\d{3}) b.+49h/i],[c,[m,"Swiss"],[p,g]],[/\b(zur\d{3}) b/i],[c,[m,"Swiss"],[p,x]],[/\b((zeki)?tb.*\b) b/i],[c,[m,"Zeki"],[p,x]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],c,[p,x]],[/\b(ns-?\w{0,9}) b/i],[c,[m,"Insignia"],[p,x]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[m,"NextBook"],[p,x]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],c,[p,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],c,[p,g]],[/\b(ph-1) /i],[c,[m,"Essential"],[p,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[m,"Envizen"],[p,x]],[/\b(trio[-\w\. ]+) b/i],[c,[m,"MachSpeed"],[p,x]],[/\btu_(1491) b/i],[c,[m,"Rotor"],[p,x]],[/(shield[\w ]+) b/i],[c,[m,"Nvidia"],[p,x]],[/(sprint) (\w+)/i],[m,c,[p,g]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[m,j],[p,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[m,I],[p,x]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[m,I],[p,g]],[/smart-tv.+(samsung)/i],[m,[p,k]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[m,M],[p,k]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,U],[p,k]],[/(apple) ?tv/i],[m,[c,S+" TV"],[p,k]],[/crkey/i],[[c,A+"cast"],[m,E],[p,k]],[/droid.+aft(\w)( bui|\))/i],[c,[m,T],[p,k]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[m,B],[p,k]],[/(bravia[\w ]+)( bui|\))/i],[c,[m,V],[p,k]],[/(mitv-\w{5}) bui/i],[c,[m,D],[p,k]],[/Hbbtv.*(technisat) (.*);/i],[m,c,[p,k]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,r],[c,r],[p,k]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,k]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,c,[p,v]],[/droid.+; (shield) bui/i],[c,[m,"Nvidia"],[p,v]],[/(playstation [345portablevi]+)/i],[c,[m,V],[p,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[m,j],[p,v]],[/((pebble))app/i],[m,c,[p,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[m,S],[p,y]],[/droid.+; (glass) \d/i],[c,[m,E],[p,y]],[/droid.+; (wt63?0{2,3})\)/i],[c,[m,I],[p,y]],[/(quest( 2| pro)?)/i],[c,[m,W],[p,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[p,_]],[/(aeobc)\b/i],[c,[m,T],[p,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[p,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[p,x]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,x]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,g]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,h],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,h],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[h,n,L]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[h,n,L]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,G],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,h],[/\(bb(10);/i],[h,[u,z]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[h,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[u,C+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[h,[u,A+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,F],h],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,h],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,h]]},$=function(o,a){if(typeof o==w&&(a=o,o=e),!(this instanceof $))return new $(o,a).getResult();var n=typeof i!=b&&i.navigator?i.navigator:e,v=o||(n&&n.userAgent?n.userAgent:""),k=n&&n.userAgentData?n.userAgentData:e,y=a?function(i,e){var o,a={};for(o in i)e[o]&&e[o].length%2==0?a[o]=e[o].concat(i[o]):a[o]=i[o];return a}(Z,a):Z,_=n&&n.userAgent==v;return this.getBrowser=function(){var i,o={};return o[u]=e,o[h]=e,t.call(o,v,y.browser),o[l]=typeof(i=o[h])==d?i.replace(/[^\d\.]/g,"").split(".")[0]:e,_&&n&&n.brave&&typeof n.brave.isBrave==s&&(o[u]="Brave"),o},this.getCPU=function(){var i={};return i[f]=e,t.call(i,v,y.cpu),i},this.getDevice=function(){var i={};return i[m]=e,i[c]=e,i[p]=e,t.call(i,v,y.device),_&&!i[p]&&k&&k.mobile&&(i[p]=g),_&&"Macintosh"==i[c]&&n&&typeof n.standalone!=b&&n.maxTouchPoints&&2<n.maxTouchPoints&&(i[c]="iPad",i[p]=x),i},this.getEngine=function(){var i={};return i[u]=e,i[h]=e,t.call(i,v,y.engine),i},this.getOS=function(){var i={};return i[u]=e,i[h]=e,t.call(i,v,y.os),_&&!i[u]&&k&&"Unknown"!=k.platform&&(i[u]=k.platform.replace(/chrome os/i,F).replace(/macos/i,G)),i},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return v},this.setUA=function(i){return v=typeof i==d&&350<i.length?r(i,350):i,this},this.setUA(v),this};$.VERSION="0.7.35",$.BROWSER=o([u,h,l]),$.CPU=o([f]),$.DEVICE=o([c,m,p,v,g,k,x,y,_]),$.ENGINE=$.OS=o([u,h]),typeof exports!=b?(typeof module!=b&&module.exports&&(exports=module.exports=$),exports.UAParser=$):typeof define==s&&define.amd?define(function(){return $}):typeof i!=b&&(i.UAParser=$);var X,K=typeof i!=b&&(i.jQuery||i.Zepto);K&&!K.ua&&(X=new $,K.ua=X.getResult(),K.ua.get=function(){return X.getUA()},K.ua.set=function(i){X.setUA(i);var e,o=X.getResult();for(e in o)K.ua[e]=o[e]})}("object"==typeof window?window:this);
},{}],9:[function(require,module,exports){
(function(){var l,n,e,a=[].indexOf||function(l){for(var n=0,e=this.length;e>n;n++)if(n in this&&this[n]===l)return n;return-1};n=exports,e=require("./utils"),l=999999,n.Rewarder=function(){function n(conf){this.conf=conf}var r;return n.prototype.handleStep=function(n,r,t){var o,u,s,g,i,v,p,c,d,f,w,h,y,x,G,M,m,A,b,_,D,N;for(h=e.Dates.stamp(),-l<(x=r.value)&&l>x||(r.value=null!=(G=t.valueDef)?G:1),i=null!=(M=_d.G[r.goal])?M:{},s=null!=(m=i.a)?m:[],Array.isArray(r.agents)&&(s=r.agents.filter(function(l){return a.call(s,l)>=0})),c=this.selsFor(n,r,s),N=!1,i.gpr,n.log("Goal '"+r.goal+"' mapped to agents: "+s+" (value "+r.value+" "+(null!=(A=r.vc)?A:"")+")","g"),v=d=0,f=c.length;f>d;v=++d)(p=c[v]).g=r.goal,p.v=this.val(n,r,t,p),p.vc=r.vc,o="running"===(u=null!=(b=_d.A[p.a])?b.a.s:void 0)&&"p"!==(_=p.p)&&"b"!==_&&"x"!==_,"p"===p.s&&("number"==typeof t.ps_ok&&h-p.dts<=t.ps_ok?n.log("Allowing reward for pending selection","g"):i.gpr?N?(n.log("Allowing 'pending' reward for goal '"+r.goal+"' and agent '"+p.a+"'"),o=!0):(n.log("Goal '"+r.goal+"' may not be sent via this Deploy Target"),o=!1):(n.log("Not rewarding '"+p.a+"' for Goal '"+r.goal+"' due to 'pending' selection","g"),o=!1)),i.gpr&&(n.log("Goal '"+r.goal+"' may only be sent via the REST API"),o=!1),o&&null!=p.v&&null!=p.fs?(null==(g=n.sess.rwds)[w=p.a]&&(g[w]={}),D=this.getPrior(n,p.a,p.g),p.pr=D[0],p.ri=D[1],t.rw&&p.pr&&(y=h-p.pr.gts)<t.rw?(n.log("Not rewarding "+p.a+" for "+p.g+" ("+y+" of "+t.rw+" secs)","g"),c[v]=null):n.rwdAdd(p.a,p.g,p.v)):(n.log("Not rewarding "+p.a+" for "+p.g+" (policy "+p.p+" - status "+u+")","g"),c[v]=null);return{items:c}},n.prototype.selsFor=function(l,n,e){var a,r,t,o,u;for(t=[],o=0,u=e.length;u>o;o++)a=e[o],null!=(r=l.selGet(a))&&t.push({a:a,c:r.c,p:r.p,s:r.s,fs:r.fs.concat(),dts:r.ts,dp:r.dp});return t},n.prototype.getPrior=function(l,n,e){var a,t,o,u,s,g;for(a in s=0,t={v:0,n:0,gv:0,gn:0,gts:0,ts:0},g=null!=(u=l.sess.rwds[n])?u:{})null!=(o=g[a])&&"number"==typeof o.v&&(r(n,a)||(t.v+=o.v,t.n+=o.n),a===e&&(t.gv+=o.v,t.gn+=o.n,t.gts=o.ts,s=o.n),o.ts>t.ts&&(t.ts=o.ts));return 0===t.ts&&(t=void 0),[t,s]},n.prototype.val=function(l,n,e,a){var r,t,o,u,s,g,i;switch(r=null!=(t=null!=(o=l.sess.rwds[a.a])?o[a.g]:void 0)?t:{},i=null!=(u=null!=(s=n.value)?s:e.valueDef)?u:1,!1){case!(r.n>=(null!=(g=e.countMax)?g:1)):return l.log("Goal '"+a.g+"' already accepted "+r.n+"x for agent '"+a.a+"'","g"),null;case!(null==e.valueMin&&null==e.valueMax):return 1;case!(n.vc&&n.vc!==e.forex):return i;case!(null!=e.valueMin&&i<e.valueMin||null!=e.valueMax&&i>e.valueMax):return l.log("Goal '"+a.g+"' not accepted (reward "+i+" not between "+e.valueMin+" and "+e.valueMax+")","g"),null;default:return i}},r=function(l,n){var e,r;return!!(r=null!=(e=_d.G[n])?e.sec:void 0)&&a.call(r,l)>=0},n}()}).call(this);
},{"./utils":23}],10:[function(require,module,exports){
(function(){var r,n=[].indexOf||function(r){for(var n=0,t=this.length;t>n;n++)if(n in this&&this[n]===r)return n;return-1};r=require("./utils"),exports.Chooser=function(){function t(conf){this.conf=conf}var l;return t.prototype.handleStep=function(t,l){var e,c,u,a,i,s,o,p,f,h,d,v,g,y;return o=this.priorChoice(t,l),v=t.tFor(l.a),d=t.polGet(l.a),c=function(){var r;switch(!1){case"p"!==d:return[];default:return null!=(r=t.selRed(l.a))?r:[]}}(),g=Array.isArray(l.x)?l.x:[],(c.length>0||g.length>0)&&(l.c=l.c.filter(function(r){return(0===c.length||n.call(c,r)>=0)&&n.call(g,r)<0}),null!=o&&(p=o.c,n.call(l.c,p)<0)&&(o=null)),s=function(){var r,n;switch(!1){case"x"!==d&&"p"!==d:return d;case!t.dnt():return"p";case null==o:return"s";case!d:return d;case"ar"!==l.p:return"r";case!(1===c.length&&(!t.qa()||c[0]!==t.selPre(l.a))):return"f";case null==l.n:return"a";case"c"!==(r=l.p)&&"p"!==r&&"b"!==r&&"f"!==r&&"x"!==r:case"a"!==(n=l.p)&&"r"!==n:return l.p;default:return"r"}}(),e=null!=(f=_d.A[l.a])?f:{},"s"===s&&"p"===o.s&&(v=o.fs),"s"===s?a=o.c:"p"===s?a=e.dc:"x"===s?a="":(y=(u=function(){var r,t,c,u,a,s;for(s=[],r=0,t=(a=null!=(c=null!=(u=e.T)?u.rank:void 0)?c:l.c).length;t>r;r++)i=a[r],n.call(l.c,i)>=0&&s.push(i);return s}()).map(function(r){var n,t;switch(s){case"r":return null!=(n=null!=(t=l.w)?t[r]:void 0)?n:1/u.length;case"c":case"f":return r===u[0]?1:0;default:throw Error("Unknown policy '"+s+"'")}}),a=null!=l.n?r.Rand.pickn(u,y,l.n):r.Rand.pick(u,y)),{a:l.a,c:a,p:s,fs:v.concat(),ts:null!=(h=null!=o?o.ts:void 0)?h:t.ts(),ps:null!=o?o.s:void 0,pp:null!=o?o.p:void 0}},t.prototype.priorChoice=function(r,t){var e,c;return e=null!=(c=r.selGet(t.a))?c:{},void 0===t.n&&Array.isArray(e.c)&&(e.c=e.c[0]),function(){var r;switch(!1){case!(null!=t.n&&Array.isArray(e.c)):return t.n===e.c.length&&l(e.c,t.c);default:return r=e.c,n.call(t.c,r)>=0}}()&&"p"!==e.p?e:null},l=function(r,t){var l,e,c;for(l=0,e=r.length;e>l;l++)if(c=r[l],n.call(t,c)<0)return!1;return!0},t}()}).call(this);
},{"./utils":23}],11:[function(require,module,exports){
(function (process){(function (){
(function(){var t,e,n,s,i,r,o,u,l,a,d,c,h,p,f,v,_=function(t,e){return function(){return t.apply(e,arguments)}},g=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};s=require("../diagrams/diagrams"),e=require("../../configuration"),r=require("../targeting/targeting"),n=require("data-layers").DL,i=require("loader").Loader,f=require("../../dom-utils").doc_ready,v=null!=v?v:require("harness"),u=null,o=null,p=[],c=null,l=null,h=!0===(null!=v?v.single:void 0),d=null,t=function(){function t(t){var s,i;null==t&&(t={}),this.h_sess_set=_(this.h_sess_set,this),this._post=_(this._post,this),this.do_vs=_(this.do_vs,this),this.do=_(this.do,this),this._do=_(this._do,this),this.o=t,this.h=null!=(i=t.harness)?i:v,this.conf=e.merged(),this.dl=null!=o?o:o=new n(this.conf,this,this.o.dataLayer),this.use_q=!0===this.conf["js:ps-q"]&&null!=this.h.q_add,s=require("./sess-min").SM,this.sm=new s(this.conf["rt:tr-ids"],this.conf["rt:a_codes"])}var a,y,b,w,m;return t.loader=new i(_d,v),t._isRelevant=function(t){return t&&(null!=_d.A[t.a]||null!=_d.G[t.g])},t._hasRelevant=function(e){return Array.isArray(e)&&e.some(t._isRelevant)},t.version=function(){return _d.v.v+" build "+_d.v.b+" ("+_d.v.d+" - "+new Date(1e3*_d.v.m).toUTCString()+")"},t.prototype.exec=function(t,e){return this.push({t:"e",steps:t,cb:e})},t.prototype.run=function(){return this.push({t:"r"})},t.prototype.push=function(t){return p.push(t),this._do()},t.prototype._do=function(){var t;if(!l&&p.length)switch(l=t=p.shift(),t.t){case"e":this.do_exec(t.steps,t.cb);break;case"r":this.do_run();break;case"v":this.do_vs(t.vs)}},t.prototype.do=function(){return l=null,this._do()},t.prototype.select=function(t){return this.exec([{a:t}]).sels[t]},t.prototype.reward=function(t,e){this.exec([{g:t,v:e}])},t.prototype.listAgents=function(){return Object.keys(_d.A)},t.prototype.hasAgent=function(t){return g.call(this.listAgents(),t)>=0},t.prototype.version=function(){return t.version()},t.prototype.do_exec=function(t,e){var n,i,r,o,u;return r=this._req(),m(r)?"function"==typeof e?e():void 0:(t=null!=(i=a(t))?i:[],w(t),r.steps=t,this.o.qa&&r.v&&(r.v.qa=!0),(u=new s.State(this.conf,r)).log("Activating: Conductrics API","i"),this._ses(u),this._hello(u),n=function(t){return function(){var e,n,s,i,r,o;for(t._process(u),e=0,s=(r=(o={items:(i=u.out).res,sels:{},traits:u.tExt(),log:!0===t.o.debug?i.log.concat():void 0,ext:Object.keys(i.ext).length?i.ext:void 0}).items).length;s>e;e++)null!=(n=r[e]).a&&(o.sels[n.a]=n.c);return null!=t.o.sess&&(o.sess=JSON.stringify(u.sess)),o}}(this),"function"==typeof e?this._init(u,function(t){return function(s){return e(!1,n()),t.do()}}(this)):(this._targ(u),o=n(),setTimeout(this.do,1),o))},t.prototype.do_run=function(t){var e,n;return null==t&&(t="#init"),e=this._req(this.o.entry+"-pre"),m(e)?void 0:(n=null!=u?u.state:new s.State(this.conf,e),"#init"===t?n.log("Activating: Conductrics Express","i"):n.log("Activating: Conductrics View-State '"+t+"'","i"),this._ses(n),this._hello(n),!0===this.o.globalEvents&&this._spaInit(n),new s.Runner(this.conf,function(t){return function(){return n.ep(t.o.entry),t._init(n,function(e){return y(t.conf["wa:ready"],function(){return t._process(n),n.log("(end)","i"),t.do()})})}}(this)).run(_d.diag,n))},t.prototype.discard=function(){return v.sess_del()},t.prototype.do_vs=function(t){var e,n,s;return null==u?void this.do():(n=u.state,s=null!=(e=this.conf["rt:spa-states"])?e:[],g.call(s,t)>=0?t!==n.vstate()||g.call(this.conf["rt:spa-states-m"],t)>=0?(n.vstate(t),this._preboot(n,function(e){return function(){return e._process(n),n.log("(end vstate)","x"),window.dispatchEvent(new CustomEvent("ConductricsStateChanged",{detail:t}))}}(this))):n.log("Already at '"+t+"'","x"):n.log("Unknown view-state '"+t+"'","x"),this.do())},t.prototype._req=function(t){var e,n,s,i;return null==t&&(t="api"),n=this.o,(i=this.h.env_get()).acc=_d.acc.c,i.ep=t,i.v.traits=n.traits,i.debug=i.debug||n.debug,i.ud=n.inputs,null==(e=i.v).vid&&(e.vid=n.vid),(!0===(s=n.dnt)||1===s||"yes"===s||"on"===s||"DNT"===s)&&(i.v.dnt=!0),i._dl=this.dl,i},t.prototype._process=function(t){var e;if(this._pre(t),new s.Runner(this.conf,this._post).run(_d.diag,t),"function"==typeof CustomEvent)try{return e=new CustomEvent("c-rt",{detail:{log:t.out.log.concat(),sel:t.out.sel}}),document.dispatchEvent(e)}catch(t){}},t.prototype._init=function(t,e){var n;this._preboot(t,(n=this,function(){return n._q_send(t),n._targ(t,e)}))},t.prototype._preboot=function(t,e){var n,s,i,r,o,u,l,a;if("function"!=typeof _wa_preboot)return e();if(o=s=t.ep(),g.call(null!=(u=this.conf["js:preboot-eps"])?u:["wax"],o)<0)return t.log("Skipping preboot ("+s+")","s"),e();if(l=a=t.vstate(),g.call(this.conf["rt:spa-states-pb"],l)<0)return t.log("Skipping preboot (view-state '"+a+"')","s"),e();r=null,i=function(n,s){return null==s&&(s={}),"string"==typeof s&&(s={vstate:s}),n&&t.tAdds(n,"pre"),"string"==typeof s.vstate&&t.vstate(s.vstate),"string"==typeof s.vid&&(t.data["v.vid"]=s.vid),"string"==typeof s.sid&&(t.data["v.sid"]=s.sid),"object"==typeof s.inputs&&t.ud(s.inputs),"boolean"==typeof s.qa&&t.qa(s.qa),"boolean"==typeof s.dnt&&t.dnt(s.dnt),"function"==typeof s.selection_callback&&(null!=t.handlers?t.handlers:t.handlers=[]).push(s.selection_callback),"function"==typeof s.presend_callback&&(t.ps_cb=s.presend_callback),t.log("Preboot done ("+(Date.now()-r)+" ms elapsed)","s"),e()};try{r=Date.now(),t.log("Preboot running","s"),_wa_preboot(i)}catch(s){n=s,t.log("Preboot error: "+n,"e"),e()}},t.prototype._targ=function(t,e){var n,s,i,o;return t.dnt()?e():(o=_d.rt.tt,i=_d.rt.ttt,(n=void 0===e)&&(e=function(){}),o.length>0?(s=new r.Targeter(this.conf,this.h,n),t.log("Resolve targeting ("+o.length+")","t"),void s.resolve(t,o,function(n,s){var r,o,u;if(n)return e(n);for(r in o=s.values)null!=(u=o[r])&&(g.call(i,r)>=0?t.tAdd(r+":"+u,"apply"):(t.log("Set value '"+r+"' to "+u,"t"),t.data["targ."+r]=u));return e()})):e())},t.prototype._pre=function(t){var e,n,s,i,r;if((e=t.r._dl).enabled()&&(r=e.get(this.conf["dl:key-tr"]),Array.isArray(r)))for(n=0,s=r.length;s>n;n++)i=r[n],t.tAdd(i,"dl");t.data["v.sels"]=t.sess.sels},t.prototype._ses=function(t){var e,n,s,i,r,o,u,l,a,d,p,f,v,_;if(_=null!=(r=t.r.v)?r:{},"string"==typeof(p=null!=(o=this.o.sess)?o:this.h.sess_get())&&p.length&&"{"!==p[0])try{p=atob(p)}catch(t){p=null}if(process.env.C_SESS_FIX_652&&h&&null!=c&&(p={}),h&&null==p&&(c=null),t.r.newv&&(t.log("Treating as a new visitor","q"),c=this.o.sess=t.sess=p=null),d=t.sess=null!=c?c:{traits:null!=(u=null!=(l=_.traits)?l.cust:void 0)?u:[],sels:{},rwds:{}},"string"!=typeof(f=null!=(a=this.o.sess)?a:p)||f.startsWith("{")||(f=function(){try{return atob(f)}catch(t){}}()),s=function(){try{return JSON.parse(f,this.sm.reviver())}catch(t){}}.call(this),h&&(c=d),b(t.sess,s),t.vnAdv(),Array.isArray(i=null!=s?s.traits:void 0))for(e=0,n=i.length;n>e;e++)v=i[e],t.tAdd(v,"init")},t.prototype._post=function(t){var e,n;return e=t.out.work.splice(0),this.use_q&&e.length&&!t.dnt()&&this.h.q_add(e),this._presend(t,e,(n=this,function(){return n.h_sess_set(t),n._send(t,e),n.use_q?n.h.q_del():void 0}))},t.prototype.h_sess_set=function(t){var e,n;if(!t.dnt()&&!t.bot()){if(e=t.sess,h&&this.conf["rt:av-sels"]&&Object.assign(e.sels,t.data["v.sels"]),e.traits=t.tSti(),e.vals=t.targ,null!=this.o.sess)return;n=function(){try{return JSON.stringify(e,this.sm.replacer())}catch(t){}}.call(this),n=btoa(n),this.h.sess_set(n,t.dirty)}},b=function(t,e){return Object.assign(t,e)},t.prototype._q_send=function(t){var e,n;if(this.use_q&&!d&&(e=this.h.q_get(),d=!0,e.length))return this._presend(t,e,(n=this,function(){return n._send(t,e),n.use_q?n.h.q_del():void 0}))},t.prototype._presend=function(t,e,n){return t.ps_cb&&Array.isArray(e)&&e.length?(t.log("Waiting for presend callback","s"),t.ps_cb({},function(s){var i,r,o;if(t.log("Presend callback returned "+typeof s,"s"),s){for(i=0,o=e.length;o>i;i++)(r=e[i]).ctx&&s.vid&&(t.log("Using external id '"+s.vid+"' from presend callback","s"),r.ctx.vid=s.vid);s.traits&&t.tAdds(s.traits,"presend",e)}return n()})):n()},t.prototype._send=function(t,e){var n,s,i;switch(s=e.length,!1){case 0!==s:return;case!t.dnt():t.log("Not sending events ("+s+") due to DNT","q");break;case!t.bot():t.log("Not sending events ("+s+") because 'bot'","q");break;case!t.muted():t.log("Not sending events ("+s+") because 'muted': "+JSON.stringify(e),"q");break;default:t.log("Sending events ("+s+")","i"),n=(i=this.conf["event-queue:sqs-url"])+"?Action=SendMessage&Version=2012-11-05&MessageBody="+encodeURIComponent(JSON.stringify(e)),i.endsWith(".fifo")&&(n+="&MessageGroupId=ctrx"),this.h.beacon(n)}},t.prototype._spaInit=function(t){h&&(null==u&&(window.addEventListener("ConductricsStateChange",function(t){return function(e){return t.on(e.type,e.detail)}}(this)),window.addEventListener("ConductricsInternalState",function(t){return function(e){return t.h_sess_set(e.detail.state)}}(this))),u={state:t})},t.prototype.on=function(t,e){var n,s,i,r;switch(t){case"ConductricsStateChange":if("wax"===this.o.entry&&(null!=(i=this.conf["rt:spa-states"])?i.length:void 0)>0)return s=function(t){return function(){return t.push({t:"v",vs:e})}}(this),(n=this.conf["rt:spa-states-ms"][e])>0?setTimeout(s,n):s();break;case"ConductricsCommands":if(Array.isArray(r=null!=e?e.commands:void 0))return this.exec(r,function(){})}},a=function(t){if("string"!=typeof t)return t;try{return JSON.parse(t)}catch(t){}},t.prototype._hello=function(t){var e;t.log(_d.v.v+" build "+_d.v.b+" ("+_d.v.d+" Deploy #"+_d.v.n+" - "+new Date(1e3*_d.v.m).toUTCString()+")","i"),t.debug&&_d.v.dn&&this.h.p_get&&(e=function(){try{return this.h.p_get()}catch(t){}}.call(this))&&t.log("Deploy Target '"+_d.v.dn+"' started loading at "+Math.ceil(e.startTime)+" ms, loaded in "+Math.ceil(e.duration)+" ms ("+e.initiatorType+")","i"),t.qa()&&t.log("QA visitor detected","q")},w=function(t){},y=function(t,e){switch(t){case"doc":return f(e);default:return e()}},m=function(t){var e;if(e=!0===t.abort)try{console.log("C:\\ 'Abort' flag detected; stopping.")}catch(t){}return e},t}(),(null!=(a=function(){return"undefined"!=typeof window&&null!==window?window:this}()).Conductrics?a.Conductrics:a.Conductrics={}).ClientApi=t,("undefined"!=typeof define&&null!==define?define.amd:void 0)&&define(["ClientApi"],t),("undefined"!=typeof module&&null!==module?module.exports:void 0)&&(module.exports.ClientApi=t),("undefined"!=typeof __module&&null!==__module?__module.exports:void 0)&&(__module.exports.ClientApi=t),null!=v&&(v.ClientApi=t)}).call(this);
}).call(this)}).call(this,require('_process'))
},{"../../configuration":2,"../../dom-utils":4,"../diagrams/diagrams":17,"../targeting/targeting":22,"./sess-min":14,"_process":7,"data-layers":"data-layers","harness":"harness","loader":"loader"}],12:[function(require,module,exports){
(function(){var n,e;e={},n={mouse:null,scroll:null,has_mouse:!1,moused_down:!1},exports.ExitIntent=function(){function o(){}var u,t,r,l;return o.waitForIntent=function(n,o){return null==o&&(o={}),null==o.max&&(o.max=1),o.n=0,e[n]=o,o.mouse&&t(o),o.scroll?r(o):void 0},t=function(e){var o;if(!n.mouse)return o=function(e){return e.clientY>100?(n.moused_down=!0,document.body.removeEventListener("mousemove",o)):void 0},document.body.addEventListener("mousemove",o),n.mouse=document.body.addEventListener("mouseleave",function(e){var o,t,r,l;return(o=e.clientY<20)&&n.moused_down&&(t=o&&e.clientX<100,l=function(){try{return document.referrer.split("/").slice(0,3).join("/")}catch(n){}}(),r=0===document.location.href.indexOf(l),!t||!r)?u("mouse"):void 0})},r=function(e){var o,t,r,l,i,c,s,d,m;n.scroll||(i=null,t=null,m=null,r=null,d=null!=(c=e.scroll_speed)?c:-80,l=null!=(s=e.scroll_inter)?s:100,(o=function(){return i=null,r=0})(),function(){var e;e=function(o){return n.has_mouse=!0,document.body.removeEventListener("mousemove",e)},document.body.addEventListener("mousemove",e)}(),n.scroll=window.addEventListener("scroll",function(e){if(!n.has_mouse)return r=function(){var n;return t=window.scrollY,i&&(n=t-i),i=t,clearTimeout(m),m=setTimeout(o,l),n}(),0>d&&d>r||d>0&&r>d?u("scroll"):void 0}))},u=function(n){var o,u,t;for(o in t=[],e)(u=e[o])[n]&&(u.pns>0&&l()<u.pns||(u.n++,u.n<=u.max?t.push(u.cb()):t.push(void 0)));return t},l=function(){return"undefined"!=typeof performance&&null!==performance?performance.now():void 0},o}()}).call(this);
},{}],13:[function(require,module,exports){
(function(){exports.GA=function(){function t(){}var e,n,r;return t.get=function(conf){return window[n(conf)]},t.init=function(conf){var t,e,i,u,a,c,o,l;a=conf["x-ga:gtm"],t=window,c=n(conf),u="string"==typeof conf["x-ga:gat"],i=null!=(l=conf["x-ga:gat"])?l:"t0",a&&(null==t[c]&&(t[c]=function(){var e;return(null!=(e=t[c]).q?e.q:e.q=[]).push(arguments)}),null==(e=t[c]).l&&(e.l=1*new Date)),t[c]&&(t[c]._ci||(o=function(){var e,n;return(e=t[c]).getByName(i)?void r(e.getByName(i)):(n=e.create,e.create=function(){var t,a,c,o,l;if(o=n.apply(e,arguments),u)r(e.getByName(i));else for(t=0,a=(c=e.getAll()).length;a>t;t++)l=c[t],r(l);return o})},t[c](o),t[c]._ci=!0))},r=function(t){var n;t&&!t._ci&&(n=t.get("sendHitTask"),t.set("sendHitTask",function(t){var r;return r=n(t),e(document,"ga.conductrics",t),r}),t._ci=!0)},e=function(t,e,n){var r;window.CustomEvent?r=new CustomEvent(e,{detail:n}):(r=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,n),t.dispatchEvent(r)},t.eventApplies=function(t,e){var n,r,i,u;if("event"!==e.get("hitType"))return!1;if("Conductrics"===e.get("eventCategory"))return!1;for(i=function(n){var r,i,u,a,c,o,l,g;if(r=e.get(n),"/"===(g=null!=(o=t["ga_"+n])?o:"")[0]&&"/"===g[g.length-1])return RegExp(g.slice(1,-1)).test(r);for(i=0,u=(l=g.split(",")).length;u>i;i++)switch(c=l[i],!1){case!("*"===c||c===r):return!0;case!(c.indexOf("*")>=0):return a=c.replace("*","[ \\S]*"),RegExp("^"+a+"$").test(r);default:return!1}},n=0,r=(u=["eventCategory","eventAction","eventLabel"]).length;r>n;n++)if(!i(u[n]))return!1;return!0},n=function(conf){var t,e;return null!=(t=null!=(e=conf["x-ga:gao"])?e:window.GoogleAnalyticsObject)?t:"ga"},t}()}).call(this);
},{}],14:[function(require,module,exports){
(function(){var s,t,n,r=function(s,t){return function(){return s.apply(t,arguments)}};s={p:"r",s:"ok",dp:"p"},t=946684800,exports.SM=function(){function e(s,t){this.ids=s,this.known_agents=t,this.reviver=r(this.reviver,this),this.replacer=r(this.replacer,this),this.known_traits=Object.keys(this.ids),this.ids_rev=n(this.ids)}return e.prototype.replacer=function(){var n,r,e,i,u,l,a,c,o,f;return n=(l=this).ids,r=l.ids_rev,i=l.known_agents,u=l.known_traits,e=function(s){return 0===s.indexOf("cust/")||0===s.indexOf("#")},a=function(s){return null==s&&(s=[]),s.map(function(s){var t;return null!=(t=n[s])?t:s}).filter(function(s){return u.includes(s)||r[s]||!e(s)})},c=null,o=null,f=[],function(r,e){var u,l,p,d,v,h,k,b;switch(""===r&&(o=null!=(d=(c=e).vts)?d:0,c._strs=f),e){case c.traits:e=a(e).join(" ");break;case c.sels:for(p in e={},v=c.sels)b=v[p],i.includes(p)&&(u=a(b.fs).join(" "),-1===(l=f.indexOf(u))&&(l=f.push(u)-1),e[p]=Object.assign({},b,{a:void 0,fs:l,p:b.p===s.p?void 0:b.p,s:b.s===s.s?void 0:b.s,dp:b.dp===s.dp?void 0:b.dp}));break;case c.rwds:for(p in e={},h=c.rwds)b=h[p],i.includes(p)&&(e[null!=(k=n[p])?k:p]=b);break;default:("ts"===r||"pvts"===r||"tvts"===r)&&e>t&&(e-=o)}return e}},e.prototype.reviver=function(){var n,r,e,i;return this,this.ids,n=this.ids_rev,r=null,e=null,i=null,function(u,l){var a,c,o,f,p,d,v,h,k,b;switch(null===r&&(e=null!=(o=(r=this).vts)?o:0,i=null!=(f=r._strs)?f:[]),k=function(s){return"number"==typeof s&&(s=i[s]),"string"==typeof s?s.split(" ").map(function(s){var t;return null!=(t=n[s])?t:s}):s},u){case"":delete r._strs;break;case"_strs":return;case"traits":case"fs":l=k(l);break;case"sels":for(c in h={},l)b=l[c],h[a=null!=(p=n[c])?p:c]=Object.assign({a:a},s,b);l=h;break;case"rwds":for(c in v={},l)b=l[c],v[a=null!=(d=n[c])?d:c]=b;l=v;break;case"ts":case"pvts":case"tvts":t>=l&&(l=e+l)}return l}},e}(),n=function(s){var t,n;for(t in n={},s)n[s[t]]=t;return n}}).call(this);
},{}],15:[function(require,module,exports){
(function(){var e,conf;e=require("../../configuration"),conf=e.merged(),function(){var e,n,r;if(null!=("undefined"!=typeof window&&null!==window&&null!=(r=window.opener)?r.postMessage:void 0))e=function(e){var r,t;return(r=document.createElement("script")).src=e,(t=n())&&(r.nonce=t),document.getElementsByTagName("head")[0].appendChild(r)},n=function(){var e;return null!=(e=document.querySelector("script[nonce]"))?e.nonce:void 0},window.addEventListener("message",function(n){var r,t;switch(null!=(t=n.data)?t.type:void 0){case"wa-author-load":return r=n.data.d2?conf["admin-ui-server-d2:url"]:conf["admin-ui-server:url"],e(r+"/gen/wa-author-time.js"),e(r+"/js/mutation-summary.js"),e(r+"/js/css-parse.js")}}),window.opener.postMessage({type:"wa-rt-ready",pageUrl:document.location.href},"*")}()}).call(this);
},{"../../configuration":2}],16:[function(require,module,exports){
(function(){var e,t,n;require("../../data"),e=require("../../utils").Strings;try{n=require("log-styles").logger}catch(e){}t=function(e){try{return n("C:\\ "+e,"q")}catch(e){}},function(){var n,o,r,c,i,l,s,a,u,d,f,h,m,w,p,g,v,y;if(("undefined"!=typeof document&&null!==document?document.querySelector:void 0)&&(h="c-conductrics",(m=window.location.hash&&window.location.hash.indexOf(h)>=0?window.location.hash.slice(1):window.location.search).indexOf(h)>=0||m.indexOf("__c-token")>=0)){for(f=e.qs(m),i=0,l=(w=["abort","muted","qa","debug","new","entry-enforce","preview-only"]).length;l>i;i++)if("true"===(p=y=f[s=h+"-"+(r=w[i])])||"false"===p)try{"abort"===r||"qa"===r||"entry-enforce"===r||"preview-only"===r?sessionStorage.setItem(s,y):localStorage.setItem(s,y),t("Preview: set "+s+" to "+y)}catch(e){}null!=(v=f[h+"-preview"])&&(""===v?(t("Preview: clearing "+h+"-sels"),sessionStorage.removeItem(h+"-sels")):(d=function(){try{return decodeURIComponent(decodeURIComponent(unescape(atob(v))))}catch(e){}}())&&d.length>0&&(t("Preview: set "+h+"-sels to: "+d),sessionStorage.setItem(h+"-sels",d))),"true"===f[h+"-reload"]?function(){var e,t,n;for(e in n=""+window.location.href,f)0===e.indexOf(h)&&(t=e+"="+encodeURIComponent(f[e]),n=(n=n.replace("&"+t,"")).replace(""+t,""));"?"===n[n.length-1]&&(n=n.substr(0,n.length-1)),document.location.replace(n)}():(g=_d.rt,c=function(){var e,t;return(e=document.querySelector("script[nonce]"))?null!=(t=e.nonce)?t:e.getAttribute("nonce"):void 0},(u=f["__c-token"])&&(o="c-conductrics-preview-"+u,null==document.querySelector("script#"+o))&&((n=document.createElement("script")).id=o,n.src=g.s+"&__c-token="+u,(a=c())&&(n.nonce=a),document.head.appendChild(n)))}}()}).call(this);
},{"../../data":3,"../../utils":23,"log-styles":"log-styles"}],17:[function(require,module,exports){
(function(){var t,n,e,r,s=function(t,n){return function(){return t.apply(n,arguments)}},o=[].indexOf||function(t){for(var n=0,e=this.length;e>n;n++)if(n in this&&this[n]===t)return n;return-1};e=require("../../utils"),t=require("../../bots").Bots,n=module.exports;try{r=require("log-styles").logger}catch(t){}exports.M=function(){function t(t){this.conf=t}var n,r;return t.prototype.getNodes=function(t){var n;return null!=(n=t.items)?n:[]},t.prototype.active=function(t,n){return!0},t.prototype.getConds=function(t,n){return t.conds},t.prototype.process=function(t,n){},t.prototype.isId=e.Strings.isId,t.prototype.wait=function(t,n){return setTimeout(n,t)},t.prototype.clone=function(t){return JSON.parse(JSON.stringify(t))},t.prototype.sel=function(t){return r(t.selector,t.so)},t.prototype.closest=function(t,e){return n(t,e)},r=function(t,n){var e,r,s,o,i,u;if(null==n&&(n={}),s=document.querySelectorAll(t),n.t){for(e=[],o=0,i=s.length;i>o;o++)(null!=(u=(r=s[o]).textContent)?u.indexOf(n.t):void 0)>=0&&e.push(r);s=e}return(n.i>0||n.n>0)&&(s=Array.prototype.slice.call(s,n.i,n.n)),s},n=function(t,e){if(Element.prototype.closest)return t.closest(e);try{if(t.matches(e))return t;if(t.parentNode)return n(t.parentNode,e)}catch(t){}return null},t.prototype.addCSS=function(t,n,e){var r,s;null==e&&(e=null),"undefined"!=typeof document&&null!==document&&((s=document.createElement("style")).type="text/css",s.className=n,e&&(s.id=e),null!=s.styleSheet?s.styleSheet.cssText=t:s.appendChild(document.createTextNode(t)),(r=this.getStyleNonce())&&(s.nonce=r),document.getElementsByTagName("head")[0].appendChild(s))},t.prototype.getStyleNonce=function(){var t,n,e,r;return void 0===_d.style_nonce&&(_d.style_nonce=null!=(t=null!=(n=null!=(e=document.querySelector("style[nonce]"))?e.nonce:void 0)?n:null!=(r=document.querySelector("script[nonce]"))?r.nonce:void 0)?t:null),_d.style_nonce},t}(),n.Runner=function(){function t(t,e){this.conf=t,this.ph=e,this.mf=new n.MFactory(this.conf)}var r;return t.prototype.run=function(t,n){return this.exec(t,n)},t.prototype.exec=function(t,n){return this.walk(t,n),this.ph(n)},t.prototype.walk=function(t,n){var e,s,o,i,u,l;if(null!=(i=this.mf.provide(t))&&r(i,t,n)&&("skip"!==(u=i.process(t,n,this))&&!(!0===u)))for(s=0,o=(l=i.getNodes(t)).length;o>s;s++)e=l[s],this.walk(e,n)},t.prototype.find=function(t,n,e,s){var o,i,u,l,a;if(null==s&&(s=[]),null==(l=this.mf.provide(t)))return!1;if(!r(l,t,n))return!1;for(e(t)&&s.push(t),i=0,u=(a=l.getNodes(t)).length;u>i;i++)o=a[i],this.find(o,n,e,s);return s},t.prototype.resume=function(t,n){var e;return e={module:"root",items:t.items.concat()},this.exec(e,n)},r=function(t,n,r){var s,o;switch(!1){case!!t.active(n,r):case!((null!=(o=s=t.getConds(n,r))?o.length:void 0)>0&&!e.Conds.evalConds(s,r,n.module)):return!1;default:return!0}},t}(),exports.Conds=e.Conds,n.MFactory=function(){function t(t){this.conf=t}return t.prototype.provide=function(t){var n;n=t.module;try{return new(0,require("./modules/"+n).m)(this.conf)}catch(t){return console.log("Can't provide '"+n+"'","e"),null}},t}(),n.State=function(){function n(n,r){var i,u,l,a,c,d,p,h,f,v,y,g,m,w,x;if(this.conf=n,null==r&&(r={}),this.tAdd=s(this.tAdd,this),this.r=r,this.out={status:200,res:[],sel:{},log:[],work:[],ext:{}},w=null!=(p=r.v)?p:{},x=Array.isArray(w.vid)&&w.vid.length>0?w.vid.join("||"):w.vid,l=!0===this.conf["qa:v-qa"]||"true"===(h=w.qa)||!0===h,this.debug=r.debug||this.conf["js:debug-all"],this.dirty={},this.pvd={},this.data={"v.ip":w.ip,"v.ua":w.ua,"v.vid":x,"v.ref":w.ref,"v.tzo":w.tzo,"v.ts":w.ts>9999999999?Math.floor(w.ts/1e3):w.ts>0?Math.floor(w.ts):null,"v.traits":["*"],"v.qa":l,"v.bot":new t(this.conf).detect(w.ua),"v.lang":w.lang,ud:{},"d.ep":null!=(f=r.ep)?f:"wax","d.dc":function(){var t;return null!=(t=r.dt)?t:_d.v.d},selex:function(t){try{return null!=document.querySelector(decodeURIComponent(t))}catch(t){}},selval:function(t){try{return document.querySelector(decodeURIComponent(t)).value}catch(t){}},seltc:function(t){try{return document.querySelector(decodeURIComponent(t)).textContent}catch(t){}},vels:function(t){return function(){return t.vels()}}(this),pvels:function(t){return function(){return t.pvels()}}(this),gh:function(t){return function(n){return t.rwdHas(n)}}(this),gc:function(t){return function(n){return t.rwdN(n)}}(this),gse:function(t){return function(n){return t.rwdEls(n)}}(this),wf:function(t){var n;try{return"function"==typeof(n=e.nested(t,window))?n():n}catch(t){}},dl:function(t){var n;return null!=(n=r._dl)?n.get(t):void 0},st:function(t){var n,r,s,i,u;try{return(r="="===t[0]&&o.call(t,":")>=0)&&(i=t.slice(1).split(":"),t=i[0],s=i[1]),u="function"==typeof(n=null!=n?n:require("harness")).st_get?n.st_get(t):void 0,r&&(u=e.Obj.read(JSON.parse(u),s)),u}catch(t){}},qfv:function(t){return function(n){var e;return(e=t.qs)?e.values[n]:null}}(this)},this.dnt(w.dnt),this.loc(null!=(v=w.loc)?v:{}),this.data["v.sid"]=w.sid,this.ud(r.ud),"string"==typeof this.r.sels)for(a=0,c=(y=this.r.sels.split(",")).length;c>a;a++)i=(g=y[a].split(":"))[0],u=g[1],this.selPre(i,u);this.conf["dl:cdl"]&&("undefined"!=typeof window&&null!==window?this._cdl=null!=window[d=this.conf["dl:cdl-key"]]?window[d]:window[d]=[]:this._cdl=this.out.ext.cdl=[]),this.tAdds(w.traits,"api"),this.vstate(null!=(m=w.vstate)?m:"#init")}var i,u,l,a;return n.prototype._conf=function(t){return this.conf[t]},u=function(t,n){var e;return null!=(e=_d.A[t])?e.a.c[n]:void 0},n.prototype.c_name=function(t,n){var e;return(e=_d.A[t])&&e.cn?{a:e.n,c:e.cn[n]}:{a:t,c:n}},n.prototype.loc=function(t){return t?Object.assign(this.data,{"v.loc":t,"v.loc.path":t.pathname,"v.loc.qs":e.Strings.qs(t.search),"v.loc.qx":t.protocol+"//"+t.host+t.pathname}):void 0},n.prototype.ud=function(t){return Object.assign(this.data.ud,l(t))},n.prototype.stepSet=function(t){return this.step=t},n.prototype.resp=function(t){return this.out.res.push(t)},n.prototype.ts=function(){var t;return null!=(t=this.data["v.ts"])?t:a()},n.prototype.respGet=function(t){var n,e,r,s;for(e=0,r=(s=this.out.res).length;r>e;e++)if((n=s[e]).a===t)return n},n.prototype.keep=function(){try{return window.dispatchEvent(new CustomEvent("ConductricsInternalState",{detail:{state:this}}))}catch(t){}},n.prototype.pool=function(){return this.qa()?this.conf["qa:env"]:this.conf["acc:env"]},n.prototype.done=function(t){var conf,n,r,s,o,i;return conf=this.conf,s=null!=(o=t.dp)?o:this.pool(),null!=t.a&&(t.a=e.Strings.qualify(t.a,conf["acc:code"],s)),null!=t.fs&&(r=conf["rt:tr-ids"],t.fs=t.fs.map(function(t){var n;return null!=(n=r[t])?n:t})),null==t.ds&&(t.ds=_d.rt.ds),t.di=_d.v.di,n=t.ctx={},conf["pass:ua"]&&(n.ua=this.data["v.ua"]),conf["pass:ip"]&&(n.ip=this.data["v.ip"]),conf["pass:loc"]&&(n.loc=null!=(i=this.data["v.loc"])?i.href:void 0),conf["pass:vid"]&&(n.vid=this.data["v.vid"],!n.vid&&conf["pass:sid"]&&(n.vid=this.data["v.sid"])),conf["pass:sess"]&&(n.sid=this.data["v.sid"]),(conf["pass:qa"]||conf["pass:qax"])&&(n.qa=this.qa()),this.out.work.push(t)},n.prototype.dnt=function(t){return"boolean"==typeof t&&(t&&this.qa()&&(this.log("DO-NOT-TRACK flag detected, but ignoring because QA Mode is in effect.","e"),t=!1),t&&this.log("DO-NOT-TRACK visitor detected; will not persist or send any data.","e"),this.data["v.dnt"]=t),!0===this.data["v.dnt"]},n.prototype.bot=function(){return null!=this.data["v.bot"]},n.prototype.ep=function(t){var n;return n=this.data,null!=t?(this.log("Entry point "+t,"i"),n["d.ep"]=t):n["d.ep"]},n.prototype.muted=function(){return this.r.muted},n.prototype.reread=function(){return this.data["v.sels"]=this.sess.sels},n.prototype.selAdd=function(t){var n,e;if(null!=(null!=t?t.a:void 0)&&null!=t.c)switch(e=this.data["v.sels"],this.out.sel[t.a]=t,n=e[t.a],t.p){case"s":if(n&&n.s!==t.s)return n.s=t.s,this.dirty.s=!0;break;default:return e[t.a]=t,null!=this.sess.rwds[t.a]&&(this.sess.rwds[t.a]={}),this.dirty.s=!0}},n.prototype.selDel=function(t){return this.selHas(t)?(this.log("Discarding selection for agent "+t,"a"),delete this.data["v.sels"][t],this.sess.rwds[t]={},this.dirty.s=!0):void 0},n.prototype.selGet=function(t){var n,e,r,s,o;return o=null!=(e=u(t,"a:sd-ttl"))?e:this.conf["a:sd-ttl"],n=this.data["v.sels"][t],s=this.ts(),null!=n&&n.ts+o>=s&&n.ts>=(null!=(r=_d.A[t])?r.drts:void 0)?(null==n.fs&&(n.fs=this.tr().concat()),n):void 0},n.prototype.selHas=function(t){return null!=this.data["v.sels"][t]},n.prototype.selRed=function(t,n){return n instanceof Array?(this.data["a.sel-reduce:"+t]=n,void this.log("Reducing choices for "+t+" to ["+n+"]","a")):this.data["a.sel-reduce:"+t]},n.prototype.selPre=function(t,n){return"string"==typeof n?(this.data["a.sel-pre:"+t]=n,this.selRed(t,[n])):this.data["a.sel-pre:"+t]},n.prototype.enfVcPre=function(){return!0===this.r.enforce_entry},n.prototype.selsOnly=function(){return!0===this.r.sels_only},n.prototype.rwdAdd=function(t,n,e){var r,s;return r=this.sess.rwds[t],Array.isArray(r[n])&&(r[n]=void 0),null==(s=null!=r[n]?r[n]:r[n]={}).n&&(s.n=0),s.n+=1,null==s.v&&(s.v=0),s.v+=e,s.ts=a(),this.dirty.r=!0},n.prototype.rwdHas=function(t){return this.rwdN(t)>0},n.prototype.rwdN=function(t){var n,e,r,s;for(n in e=0,r=this.sess.rwds)(s=r[n][t])&&s.n>e&&(e=s.n);return e},n.prototype.rwdEls=function(t){var n,e,r;for(n in e=this.sess.rwds)if((r=e[n][t])&&r.ts>0)return a()-r.ts;return null},n.prototype.rwdCnt=function(t,n){var e,r,s;return null!=(e=null!=(r=this.sess.rwds[n])&&null!=(s=r[t])?s.n:void 0)?e:0},n.prototype.polSet=function(t,n){return"string"!=typeof t||"a"!==n&&"r"!==n&&"c"!==n&&"p"!==n&&"b"!==n&&"x"!==n||(this.data["a.sel-pol:"+t]=n,0)?void 0:this.log("Setting policy for "+t+" to (policy "+n+")","a")},n.prototype.polHas=function(t){return null!=this.polGet(t)},n.prototype.polGet=function(t){return this.data["a.sel-pol:"+t]},n.prototype.vstate=function(t){var n,e,r,s,i;return e=this.data,0===arguments.length?e["v.vstate"]:(i=null!=(s=this.conf["rt:spa-states"])?s:"",n=this.vstate(),o.call(i,t)>=0&&o.call(this.conf["rt:spa-states-pv"],t)>=0&&(t!==n||o.call(this.conf["rt:spa-states-m"],t)>=0)&&(this.pvd={}),(r=o.call(i,t)>=0&&t!==n)&&(null!=e["v.vstate"]&&this.log("view-state is now '"+t+"' (was '"+n+"')","x"),"#init"!==t&&this.mdn()&&this.loc(window.location),e["v.vstate"]=t),r)},n.prototype.qa=function(t){return"boolean"==typeof t?(this.log("QA Mode: "+t,"q"),this.data["v.qa"]=t):!0===this.data["v.qa"]},n.prototype.tr=function(){return this.data["v.traits"]},n.prototype.tFor=function(t){var n,e,r,s,i,u,l,a,c,d;if(e=null!=(l=_d.A[t])?l:{},s=null!=(a=e.fs)?a:this.tr(),d=this.tr().filter(function(n){var e;return"*"===n||(e=n.split(":")[0],o.call(s,e)>=0)||0===n.indexOf("cust/c-i-")&&n!=="cust/c-i-"+t}).slice(0,this.conf["targ:traits-agent-max"]),e.aa)for(i=0,u=(c=e.aa).length;u>i;i++)(n=c[i]).tr&&(r=this.selGet(n.aa))&&d.push("cust/"+n.tr+":"+r.c);return d},n.prototype.ttFor=function(t){var n,e;return null!=(e=(null!=(n=_d.A[t])?n:{}).fs)?e:[]},n.prototype.tExt=function(){return this.tr().filter(function(t){return 0===t.indexOf("cust/")&&-1===t.indexOf("cust/c-i-")})},n.prototype.tSti=function(){return this.tr().filter(function(t){var n;return 0===t.indexOf("cust/")&&(n=t.split(":")[0],o.call(_d.rt.eph,n)<0)})},n.prototype.tMap=function(t){var n,e,r,s,o,i;for(o={"*":1},e=this.conf["rt:tr-ids"],r=0,s=t.length;s>r;r++)o[null!=(i=e[n=t[r]])?i:n]=1;return o},n.prototype.tHas=function(t){return t=i(t),o.call(this.data["v.traits"],t)>=0},n.prototype.ttHas=function(t){return this.data["v.traits"].some(function(n){return n.split(":")[0]===t})},n.prototype.tAdds=function(t,n,e){var r,s,i,u,l,a;if(Array.isArray(t))for(r=0,u=t.length;u>r;r++)l=t[r],this.tAdd(l,n,e);else if("object"==typeof t)for(s in t)switch(a=t[s],i=o.call(s,":")>=0,!1){case!(i&&a):this.tAdd(""+s,n,e);break;case!(!i&&"string"==typeof a):this.tAdd(s+":"+a,n,e)}},n.prototype.tAdd=function(t,n,e){var r,s,u,l,a,c,d,p,h,f,v,y,g,m,w;if(null==e&&(e=null),c=(h=(t=i(t)).split(":"))[0],m=h[1],"def"===n){if(this.ttHas(c))return}else if("init"===n&&o.call(_d.rt.eph,c)>=0)return;if(!m)return!1;if(t.indexOf(" ")>-1&&(t=(c=c.trim())+":"+(m=m.trim())),(r=null!=(v=(g=null!=(f=_d.T[c])?f:{}).al)?v:{})[m]&&(this.log("Trait alias '"+m+"' mapped to value '"+r[m]+"'","t"),t=c+":"+(m=r[m])),(l=0===c.indexOf("cust/"))&&!this.conf["rt:tr-ids"][t])return this.log("Unknown trait '"+t+"' ("+n+")","t"),!1;if(this.tHas(t))return!1;if(u="init"===n,null!=(s=this.data["targ."+c]))switch(p=null!=(y=g.me)?y:"l"){case"f":if(!u)return!1;this.tDel(c+":"+s);break;case"l":if(u)return!1;this.tDel(c+":"+s)}if(this.data["targ."+c]=m,this.data["v.traits"].push(t),u||l&&(this.dirty.t=!0),this.log("Added trait '"+t+"' ("+n+")","t"),e&&"l"===p)for(a=0,d=e.length;d>a;a++)w=e[a],this.tApp(c,m,w);return!0},n.prototype.tApp=function(t,n,e){var r,s,i,u,l;e.a&&(r=e.a.split(":")[1],o.call(this.ttFor(r),t)>=0&&(i=this.selGet(r))&&(u=t+":"+n,-1===i.fs.indexOf(u)&&(this.log("Post-applying trait '"+u+"' for selection '"+i.c+"' for agent '"+r+"'","t"),l=t+":",s=function(t){return!t.startsWith(l)},e.fs=e.fs.filter(s),e.fs.push(u),i.fs=i.fs.filter(s),i.fs.push(u))))},n.prototype.tDel=function(t){var n,e,r;return t=i(t),!!this.tHas(t)&&(n=(r=t.split(":"))[0],r[1],null!=n&&(this.data["targ."+n]=void 0,(e=this.data["v.traits"].indexOf(t))>-1&&this.data["v.traits"].splice(e,1),this.log("Removed trait '"+t+"'","t"),!0))},i=function(t){switch(!1){case"*"!==t:return"*";case o.call(t,"/")>=0:return"cust/"+t;default:return t}},n.prototype.plAdd=function(t){var n,e,r;return n=null!=(e=null!=(r=this.data["v.pl"])?r.split(","):void 0)?e:[],o.call(n,t)<0&&n.push(t),this.data["v.pl"]=n.join(",")},n.prototype.vn=function(){var t;return null!=(t=this.sess.vn)?t:0},n.prototype.vnAdv=function(){var t,n,e,r,s;t=null!=(e=(s=this.sess).vts)?e:0,(n=a())>t+this.conf["a:vis-ttl"]&&(t>0&&(s.pvts=t),s.vn=(null!=(r=s.vn)?r:0)+1,s.tvts=n),s.vts=n,this.log("Visit #"+s.vn,"i")},n.prototype.vels=function(){var t,n;return(t=a())-Math.min(null!=(n=this.sess.tvts)?n:0,t)},n.prototype.pvels=function(){var t,n;return(t=a())>(n=this.sess.pvts)?t-n:null},n.prototype.log=function(t,n){return this.out.log.push(t),this.debug?(t="C:\\ ["+this.out.log.length+"] "+t,r?r(t,n):console.log(t)):void 0},n.prototype.cdl_push=function(t){return this._cdl.push(t)},n.prototype.mdn=function(){return this.r.mdn},n.prototype.qualify=function(t){return e.Strings.qualify(t,this.conf["acc:code"],this.conf["acc:env"])},a=function(){return e.Dates.stamp()},l=function(t){var n,e,r,s;if(t){for(n in r={},t)("string"==(e=typeof(s=t[n]))||"number"===e||"boolean"===e)&&(r[n]=s);return r}},n}(),exports.Reapplyer=function(){function t(t,n,e,r){this.cb=t,this.targets=null!=n?n:[],this.opts=null!=e?e:{characterData:!0,subtree:!0,attributes:!0,childList:!0},this.max=null!=r?r:100,this.on=s(this.on,this);try{this.o=new MutationObserver(this.on)}catch(t){}this.n=0}return t.prototype.start=function(){var t,n,e,r,s;for(t=0,n=(e=this.targets).length;n>t;t++)s=e[t],this.o&&1===s.nodeType&&null!=(r=this.o)&&r.observe(s,this.opts)},t.prototype.stop=function(){var t;return null!=(t=this.o)?t.disconnect():void 0},t.prototype.on=function(t,n){return this.n++<this.max?(this.stop(),this.cb(),this.start()):void 0},t}()}).call(this);
},{"../../bots":1,"../../utils":23,"harness":"harness","log-styles":"log-styles"}],18:[function(require,module,exports){
(function(){exports.ScriptReg=function(){function t(){this.cbs={}}var e,n,c;return t.prototype.load=function(t,e){return this._load(t,n(t),e)},t.prototype.load_lang=function(t,n){var c;return(c=_wa_cjs[t])?n(c):void this._load(t,e(t),function(){return n(_wa_cjs[t])})},t.prototype._load=function(t,e,n){var o,r;return document.querySelector("script.c-wa[id='"+t+"']")?n():(this.cbs[t]=n,(o=document.createElement("script")).src=e,o.id=t,o.class="c-wa",(r=c())&&(o.nonce=r),void document.getElementsByTagName("head")[0].appendChild(o))},t.prototype.preload=function(t){var e,o;(e=document.createElement("link")).rel="preload",e.as="script",e.href=n(t),(o=c())&&(e.nonce=o),document.getElementsByTagName("head")[0].appendChild(e)},t.prototype.register=function(t,e){var n;"function"==typeof e&&(n=this.cbs[t])&&(_wa_cjs[t]=e,this.cbs[t]=null,n())},t.prototype.data=function(t,e){var n;null!=e&&(n=this.cbs[t])&&(_wa_cjs[t]=e,this.cbs[t]=null,n())},n=function(t){return _d.rt.js+"/"+t+"?apikey="+_d.acc.k},e=function(t){return _d.rt.la+"/"+t+"?apikey="+_d.acc.k},c=function(){var t,e;return(t=document.querySelector("script[nonce]"))?null!=(e=t.nonce)?e:t.getAttribute("nonce"):void 0},t}()}).call(this);
},{}],19:[function(require,module,exports){
(function(){var e,n=[].indexOf||function(e){for(var n=0,t=this.length;t>n;n++)if(n in this&&this[n]===e)return n;return-1};exports.dl_eventMsgApplies=function(n,t,r,i){var l;return!!n&&(((r=null!=(l=r.eventInfo)?l:r).event===n||r.eventAction===n||r.eventName===n)&&e(t,r,i))},e=function(e,t,r){var i,l,s,u,f,o,v;if(null==e&&(e=[]),0===e.length)return!0;for(i=0,f=e.length;f>i;i++){if(l="."===(u=e[i]).k[0],s="/"===u.s[0]&&"/"===u.s[u.s.length-1],null==(v=l?t[u.k.substr(1)]:r.get(u.k)))return!1;if(s){if(!RegExp(u.s.slice(1,-1)).test(v))return!1}else if(o=""+v,n.call(u.s.split(","),o)<0)return!1}return!0}}).call(this);
},{}],20:[function(require,module,exports){
(function(){exports._resolve=function(e,s,a){var r,t,c,n,u;return u=s+60*a,isFinite(u)?(t=new Date(1e3*u),r=t.getUTCDay(),c=t.getUTCHours(),n=60*c+t.getUTCMinutes(),function(){switch(e){case"wp":switch(r){case 0:case 6:return"we";default:return"wd"}break;case"dp":switch(c){case 6:case 7:case 8:case 9:case 10:case 11:return"m";case 12:case 13:case 14:case 15:case 16:return"a";case 17:case 18:case 19:case 20:return"e";default:return"n"}break;case"d":return["su","mo","tu","we","th","fr","sa"][r];case"h":return c;case"m":return n;case"z":return Math.floor(a/60);case"ts":return s}}()):null}}).call(this);
},{}],21:[function(require,module,exports){
(function(){exports.registry=function(){function n(conf){this.conf=conf}return n.prototype.getPlugin=function(n,e,t){var o,r;try{if(o=require("./plugins/"+n).p,!0===e&&!0!==r.sync)return;return(r=new o(this.conf))&&(r.harness=t),r}catch(e){return e,"undefined"!=typeof console&&null!==console&&console.log("Plugin '"+n+"' unavailable","e"),null}},n}()}).call(this);
},{}],22:[function(require,module,exports){
(function(){var n,t,r,e,l=[].indexOf||function(n){for(var t=0,r=this.length;r>t;t++)if(t in this&&this[t]===n)return t;return-1};r=require("../../utils"),n=require("./registry"),(t=exports).Plugin=function(){function n(){}return n.prototype.ttl=function(n){return 3600},n.prototype.as_code=function(n){return null!=n?n.replace(/[^A-Za-z0-9_-]/g,"-"):void 0},n.prototype.active=function(n){return!0},n.prototype.resolve=function(n,t,r,e){return e()},n}(),t.Targeter=function(){function t(t,r,e){this.conf=t,this.harness=r,this.sync_only=e,this.registry=new n.registry(this.conf),this.mode=null!=this.harness?"b":"s",this.account=null}return t.prototype.resolve=function(n,t,u){var o,s,i,a,c,d;return(null!=t?t.length:void 0)>0?(a={values:{}},o=null!=n.targ?n.targ:n.targ=null!=(s=null!=(i=n.sess)?i.vals:void 0)?s:{},this.sync_only&&n.log("In sync mode; async targeting lookups will be skipped.","t"),c=[],d=r.Dates.stamp(),e(t,function(t){return function(r,e){var u,s,i,v,f,h,g,p,y;return null!=(f="undefined"!=typeof _dd&&null!==_dd&&null!=(h=_dd.targ)?h.v[r]:void 0)?(a.values[r]=f,e(!1,a)):(i=(g=r.split("/"))[0],u=g[1],(v=t.registry.getPlugin(i,t.sync_only,t.harness))?(v.account=t.account,v.active(n)?(y=v.ttl(u),void 0!==o[r]&&y>0&&o[r].ts+y>d?(a.values[r]=o[r].v,e(!1,a)):(s=null!=(p=v.constructor.modes)?p:[],"b"===t.mode&&l.call(s,"b")<0&&l.call(s,"s")>=0?(c.push(r),e(!1,a)):v.resolve(n,u,o[r],function(n,u){return n?e(n):(a.values[r]=u,o[r]=null!=u&&y>0?{v:u,ts:d}:void 0,null===u&&"b"===t.mode&&l.call(s,"s")>=0&&c.push(r),e())}))):e()):e())}}(this),function(t){return function(e){var l,conf,s,i,v,f,h,g,p,y,_,m;if(e)return u(e);if(conf=t.conf,0===c.length)return u(!1,a);if(y=function(n,t){o[n]={v:null!=t?t:null,ts:d}},p=conf["rt:sl-rate"],_=r.Rand.coin(p),n.log("Resolve ["+c+"] on server? "+_+" ("+p+")","t"),!_){for(i=0,f=c.length;f>i;i++)l=c[i],y(l,null);return u(!1,a)}for(m=conf["targ:lookup-url"]+"?codes="+c.join(",")+"&apikey="+_d.acc.k+"&vid="+n.data["v.vid"]+"&dt="+n.data["d.dc"](),v=0,h=(g=["ua","ip"]).length;h>v;v++)s=g[v],null!=n.data["v."+s]&&(m=m+"&"+s+"="+escape(n.data["v."+s]));return t.harness.http("GET",m,conf["targ:ext-tms"],function(t,r){var e,o,s,i,d,v,f;if(t)return n.log("Could not resolve: "+c+" ("+t+")","t"),u(!1,a);try{for(o=JSON.parse(r).data,v=[],s=0,i=c.length;i>s;s++)l=c[s],f=null!=(d=o.values[l])?d:null,n.log("Resolved on server: '"+l+"' ("+f+")","t"),null==(e=a.values)[l]&&(e[l]=f),v.push(y(l,f));return v}finally{return u(!1,a)}})}}(this))):u(!1,{})},t}(),t.geo_dm=function(conf,n){var t;switch(t=null!=conf?conf["acc:c-dom"]:void 0,!1){case void 0!==t:case null!=n&&""!==n:return"x";case l.call(t,n)<0:return"d";default:return"i"}},e=function(n,t,r){var e,l,u;return l=-1,u=n.length,(e=function(){return++l===u?r():t(n[l],function(n){return n&&r(n),e()})})()}}).call(this);
},{"../../utils":23,"./registry":21}],23:[function(require,module,exports){
(function (process){(function (){
(function(){var n,t=[].slice,r=[].indexOf||function(n){for(var t=0,r=this.length;r>t;t++)if(t in this&&this[t]===n)return t;return-1};switch(n={},!1){case"undefined"==typeof define||null===define:define(function(){return n});break;case"undefined"==typeof module||null===module:module.exports=n}n.Obj=function(){function n(){}return n.extend=function(){var n,r,e,i,o,u;for(n=arguments[0],r=0,i=(u=2<=arguments.length?t.call(arguments,1):[]).length;i>r;r++)for(e in o=u[r])n[e]=o[e];return n},n.read=function(n,t){var r;for(r=t.split(".");r.length&&(n=n[r.shift()]););return n},n}(),n.Dates=function(){function n(){}return n.now=function(){var n;return null!=(n="function"==typeof Date.now?Date.now():void 0)?n:(new Date).getTime()},n.stamp=function(){return Math.floor(this.now()/1e3)},n}(),n.Rand=function(){function n(){}return n.pick=function(n,t){var r,e,i,o,u,f;for(u=0,e=0,i=t.length;i>e;e++)u+=t[e];for(r in 0===u&&(t=n.map(function(n){return 1}),u=n.length),o=Math.random()*u,f=0,t)if((f+=t[r])>o)return n[r]},n.pickn=function(n,t,r){var e,i,o,u,f;for(r=Math.min(r,n.length),n=n.concat(),t=t.concat(),u=[],e=0,f=r;f>e;e+=1)i=this.pick(n,t),u.push(i),o=n.indexOf(i),n.splice(o,1),t.splice(o,1);return u},n.coin=function(n){return n>1||n>=0&&this.pick([!0,!1],[n,1-n])},n}(),n.Conds=function(){function t(){}var e;return t.evalConds=function(r,e,i){var o,u,f,l,c,a,s,h,d;if(!((null!=r?r.length:void 0)>0))return!1;if(s=null!=(r=r.concat())[r.length-1].mode?r.pop():{mode:"all"},0===r.length)return"all"===(d=s.mode)||"any"===d;if("sets"===s.mode)return r.length>0&&r.every(function(t){return n.Conds.evalConds(t,e,i)});if("setsor"===s.mode)return r.some(function(t){return n.Conds.evalConds(t,e,i)});switch(s.mode){case"all":for(u=0,f=r.length;f>u;u++)if(o=r[u],!t.evalCond(o,e,i))return!1;return!0;case"any":for(a=0,l=r.length;l>a;a++)if(o=r[a],t.evalCond(o,e,i))return!0;return!1;case"none":for(h=0,c=r.length;c>h;h++)if(o=r[h],t.evalCond(o,e,i))return!1;return!0;default:throw Error("Unknown conds mode '"+s.mode+"'")}},t.evalCond=function(r,e,i){var o,u,f,l,c,a,s;return null==i&&(i=""),u=r[0],l=r[1],s=r[2],u=n.Strings.interpolate(u,e.data),s=n.Strings.interpolate(s,e.data),("gt"===l||"gte"===l||"lt"===l||"lte"===l)&&("string"==typeof u&&(u=parseFloat(u)),"string"==typeof s&&(s=parseFloat(s))),c=null!=(a="function"==typeof(o=t.ops)[l]?o[l](u,s):void 0)&&a,"undefined"!=typeof process&&null!==process&&(f=c?"ct":"cf",e.log("Condition "+c+": "+r+" ("+u+") ("+s+") ["+i+"]",f)),c},t.ops={is:function(n,t){return n===t},isnt:function(n,t){return n!==t},mp:function(t,r){return!0===n.Strings.pmatch(t,r,!0)},"mp-not":function(t,r){return!1===n.Strings.pmatch(t,r,!0)},gt:function(n,t){return n>t},lt:function(n,t){return t>n},gte:function(n,t){return n>=t},lte:function(n,t){return t>=n},inr:function(n,t){var r;return Array.isArray(t)&&t[0]<=(r=+n)&&r<=t[1]},ninr:function(n,t){return!(Array.isArray(t)&&t[0]<=n&&n<=t[1])},in:function(n,t){return""!==n&&t.indexOf(n)>=0},nin:function(n,t){return""===n||-1===t.indexOf(n)},sw:function(n,t){return n.slice(0,t.length)===t},ew:function(n,t){return n.slice(-t.length)===t},"sw-not":function(n,t){return n.slice(0,t.length)!==t},"ew-not":function(n,t){return n.slice(-t.length)!==t},re:function(n,t){try{return RegExp(t).test(n)}catch(n){return n,!1}},"re-not":function(n,t){try{return!1===RegExp(t).test(n)}catch(n){return n,!1}},sub:function(n,t){return("function"==typeof n.indexOf?n.indexOf(t):void 0)>=0},"sub-not":function(n,t){return!(("function"==typeof n.indexOf?n.indexOf(t):void 0)>=0)},"has-any":function(n,t){var i,o,u;if(!((n=e(n)).length>0&&t.length>0))return!1;for(i=0,o=t.length;o>i;i++)if(u=t[i],r.call(n,u)>=0)return!0;return!1},"has-all":function(n,t){var i,o,u;if(!((n=e(n)).length>0&&t.length>0))return!1;for(i=0,o=t.length;o>i;i++)if(u=t[i],r.call(n,u)<0)return!1;return!0},"has-none":function(n,t){var i,o,u;if(!((n=e(n)).length>0&&t.length>0))return!0;for(i=0,o=t.length;o>i;i++)if(u=t[i],r.call(n,u)>=0)return!1;return!0}},e=function(n){switch(!1){case""!==n:return[];case"string"!=typeof n:return n.split(",");default:return n}},t}(),n.Strings=function(){function n(){}var t,r;return t=/^[A-Za-z0-9_-]+$/,r=/\$\{([A-Za-z0-9.:_=%-]+)\}/g,n.isId=function(n,r){var e,i,o;if(null==r&&(r=!1),"undefined"===n||"string"!=typeof n)return!1;if(r){if(!((o=n.split(":")).length>1))return!1;for(e=0,i=o.length;i>e;e++)if(n=o[e],!this.isId(n))return!1;return!0}return"string"==typeof n&&n.length<=100&&t.test(n)},n.isValidExtenalId=function(n,t){return null==t&&(t=500),"string"==typeof n&&n.length<=t&&n.trim()===n&&!/['"“”]+/.test(n)&&/^[ \S]+$/.test(n)},n.interpolate=function(t,r){var e,i,o,u,f,l;if(Array.isArray(t))return t;if(0===(o=n.interkeys(""+t)).length)return t;for(f=""+t,e=0,u=o.length;u>e;e++)i=o[e],l=n.propeval(i,r),f=f.replace("${"+i+"}",null!=l?l:"");return f},n.interkeys=function(n){var t,e;if("string"!=typeof n)return[];if(-1===n.indexOf("${"))return[];if("${"===n.slice(0,2)&&-1===n.indexOf("::")&&n.indexOf("}")===n.length-1)return[n.slice(2,-1)];for(e=[];null!=(t=r.exec(n));)e.push(""+t[1]);return e},n.propeval=function(n,t){var r,e,i,o,u,f;for(f=t,r=e=0,i=(u=o=n.split("::")).length;i>e&&null!=(f=f[u[r]]);r=++e)if("function"==typeof f)return f(o[r+1]);return f},n.isNum=function(n){return""+ +n===n},n.parseUrl=function(n){var t,r,e,i,o,u,f;switch(!1){case!(null==n):return null;case"object"!=typeof n:return n;case"undefined"==typeof window||null===window:if(window.location.href===n)return window.location;try{return new window.URL(n)}catch(l){l;try{for(t=$("<a>",{href:n})[0],o={},r=0,i=(u=["hash","hostname","href","pathname","port","protocol","search"]).length;i>r;r++)o[e=u[r]]=null!=(f=t[e])?""+f:void 0;return o.pathname.length>0&&"/"!==o.pathname[0]&&(o.pathname="/"+o.pathname),o}catch(n){return void n}}break;default:return require("url").parse(n)}},n.pmatch=function(n,t,r){return null==r&&(r=!1),r&&(n=this.pnorm(n),t=this.pnorm(t)),t=t.replace(/\*/g,"[\\S]*"),RegExp("^"+t+"$").test(n)},n.pnorm=function(n){return n.length>1&&"/"!==n.slice(-1)&&"*"!==n.slice(-1)?n+"/":n},n.qualify=function(n,t,r){return-1===n.indexOf(":")?t+":"+n+":"+r:n},n.qs=function(n){var t,r,e,i,o,u,f;if("function"==typeof URLSearchParams)try{return Object.fromEntries(new URLSearchParams(n).entries())}catch(n){}if(u={},"string"!=typeof n)return u;for(t=0,e=(o=(n=n.trim().replace(/^(\?|#|&)/,"")).split("&")).length;e>t;t++)r=(i=o[t].replace(/\+/g," ").split("=")).shift(),f=i.length>0?i.join("="):void 0,u[decodeURIComponent(r)]=null!=f?decodeURIComponent(f):null;return u},n}(),n.nested=function(n,t,r){return null==r&&(r="."),n.split(r).reduce(function(n,t){return null!=n?n[t]:void 0},t)},n.arrayFrom=function(n){return Array.from?Array.from(n):[].slice.call(n)},n.waitFor=function(n,t,r,e){var i,o;o=0,(i=function(){var u;return o++,(u=r())?e(u):o>=t?void 0:setTimeout(i,n)})()}}).call(this);
}).call(this)}).call(this,require('_process'))
},{"_process":7,"url":6}],"data-layers":[function(require,module,exports){
(function(){var t=function(t,n){return function(){return t.apply(n,arguments)}},n=[].indexOf||function(t){for(var n=0,e=this.length;e>n;n++)if(n in this&&this[n]===t)return n;return-1};exports.DL=function(){function e(conf,n,e,s){this.conf=conf,this.listener=n,null==e&&(e="dataLayer"),null==s&&(s=window),this.sub=t(this.sub,this),this._on=t(this._on,this),this.subs=[],this.dl=function(){switch(typeof e){case"string":return null!=s[e]?s[e]:s[e]=[];case"object":return e;default:return}}(),this.enabled()&&(null==s.DataLayerHelper&&require("dl-helper"),this.dlh=new s.DataLayerHelper(this.dl,this._on,!0))}return e.prototype.enabled=function(){var t;return"function"==typeof(null!=(t=this.dl)?t.push:void 0)},e.prototype.get=function(t){return this.enabled()?this.dlh.get(t):void 0},e.prototype.push=function(t,n){var e;this.enabled()&&(n.event?this.dl.push(n):this.dl.push(((e={event:t})[""+t]=n,e)))},e.prototype._on=function(t,n){var e,s,i,r,u,o,h;switch(!1){case"string"!=typeof(h=n[this.conf["dl:key-vs"]]):return this.listener.on("ConductricsStateChange",h);case!Array.isArray(e=n[this.conf["dl:key-ex"]]):return this.listener.on("ConductricsCommands",{commands:e});case"string"!=typeof n.event:for(o=[],i=0,r=(u=this.subs).length;r>i;i++)s=u[i],o.push(s(n));return o}},e.prototype.sub=function(t){var e,s,i,r;if(!(n.call(this.subs,t)>=0)){if(this.enabled()&&this.conf["dl:past-events"])for(e=0,s=(r=this.dl).length;s>e;e++)"string"==typeof(i=r[e]).event&&t(i);this.subs.push(t)}},e.prototype.unsub=function(t){return this.subs.splice(this.subs.indexOf(t),1)},e}()}).call(this);
},{"dl-helper":"dl-helper"}],"dl-helper":[function(require,module,exports){
!function(){var t=/\[object (Boolean|Number|String|Function|Array|Date|RegExp)\]/;function r(r){return null==r?String(r):(r=t.exec(Object.prototype.toString.call(Object(r))))?r[1].toLowerCase():"object"}function n(t,r){return Object.prototype.hasOwnProperty.call(Object(t),r)}function e(t){if(!t||"object"!=r(t)||t.nodeType||t==t.window)return!1;try{if(t.constructor&&!n(t,"constructor")&&!n(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(var e in t);return void 0===e||n(t,e)}function i(t,r,n){this.b=t,this.f=r||function(){},this.d=!1,this.a={},this.c=[],this.e=function(t){return{set:function(r,n){a(c(r,n),t.a)},get:function(r){return t.get(r)}}}(this),o(this,t,!n);var e=t.push,i=this;t.push=function(){var r=[].slice.call(arguments,0),n=e.apply(t,r);return o(i,r),n}}function o(t,n,i){for(t.c.push.apply(t.c,n);!1===t.d&&0<t.c.length;){if("array"==r(n=t.c.shift()))t:{var o=n,f=t.a;if("string"==r(o[0])){for(var u=o[0].split("."),s=u.pop(),p=(o=o.slice(1),0);p<u.length;p++){if(void 0===f[u[p]])break t;f=f[u[p]]}try{f[s].apply(f,o)}catch(t){}}}else if("function"==typeof n)try{n.call(t.e)}catch(t){}else{if(!e(n))continue;for(var l in n)a(c(l,n[l]),t.a)}i||(t.d=!0,t.f(t.a,n),t.d=!1)}}function c(t,r){for(var n={},e=n,i=t.split("."),o=0;o<i.length-1;o++)e=e[i[o]]={};return e[i[i.length-1]]=r,n}function a(t,i){for(var o in t)if(n(t,o)){var c=t[o];"array"==r(c)?("array"==r(i[o])||(i[o]=[]),a(c,i[o])):e(c)?(e(i[o])||(i[o]={}),a(c,i[o])):i[o]=c}}window.DataLayerHelper=i,i.prototype.get=function(t){var r=this.a;t=t.split(".");for(var n=0;n<t.length;n++){if(void 0===r[t[n]])return;r=r[t[n]]}return r},i.prototype.flatten=function(){this.b.splice(0,this.b.length),this.b[0]={},a(this.a,this.b[0])}}();
},{}],"harness":[function(require,module,exports){
(function(){var t,e,n,o,r,c,s,u;n="cp-sess",e="cp-hold",c=function(t){try{return localStorage.getItem(t)}catch(t){}},o=function(t){try{return decodeURIComponent(document.cookie.replace(RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null}catch(t){}},r=function(t,e,n){var o;null==n&&(n=_d.conf["a:session-ttl-secs"]);try{return(o=_d.conf["js:cook-dom"])||(o=document.location.hostname.split(".").slice(-2).join(".")),document.cookie=t+"="+encodeURIComponent(e)+"; max-age="+n+"; domain="+o+"; path=/"}catch(t){}},module.exports=t={single:!0,sess_get:function(){return o(n)},sess_set:function(t){try{r(n,t)}catch(t){}},sess_del:function(){try{r(n,"",0)}catch(t){}},beacon:function(e,n){navigator.sendBeacon?navigator.sendBeacon(e,n):t.http("GET",e)},http:function(t,e,n,o){var r;null==n&&(n=2e3),r=new XMLHttpRequest,null!=o&&(r.onload=function(){return o(!1,r.responseText)},r.ontimeout=function(){return o("timeout")},r.onerror=function(){return o("HTTP error ("+r.status+")")}),r.open(t,e),r.timeout=n,r.send()},st_get:function(t){var e,n;if(t)try{return null!=(e=null!=(n=o(t))?n:sessionStorage.getItem(t))?e:localStorage.getItem(t)}catch(t){}},env_get:function(){var t,e,n,o;if(t="true"===c("c-conductrics-new"))try{localStorage.removeItem("c-conductrics-new")}catch(t){}return{mdn:(e=s())?"m":"n",v:{ua:navigator.userAgent,loc:window.location,ref:window.document.referrer,ts:-1,tzo:0-(new Date).getTimezoneOffset(),dnt:!e||1===(n=navigator.doNotTrack)||"1"===n||navigator.globalPrivacyControl||!u(),vid:this.st_get(_d.conf["targ:vid"]),qa:this.st_get(_d.conf["qa:st-key"]),lang:null!=(o=document.documentElement.lang)?o:navigator.language},debug:"true"===c("c-conductrics-debug"),muted:"true"===c("c-conductrics-muted"),abort:"true"===this.st_get("c-conductrics-abort"),newv:t,sels:this.st_get("c-conductrics-sels"),enforce_entry:"true"===this.st_get("c-conductrics-entry-enforce"),sels_only:"true"===this.st_get("c-conductrics-preview-only")}},log:function(){return"undefined"!=typeof console&&null!==console?console.log.call(this,arguments):void 0},q_get:function(){var t;try{t=JSON.parse(sessionStorage.getItem(e))}catch(t){}return Array.isArray(t)||(t=[]),t},q_add:function(t){t.length>0&&sessionStorage.setItem(e,JSON.stringify(this.q_get().concat(t)))},q_del:function(){try{return sessionStorage.removeItem(e)}catch(t){}},p_get:function(){return"undefined"!=typeof performance&&null!==performance?performance.getEntriesByType("resource").find(function(t){var e;return(null!=(e=t.name)?e.indexOf(_d.v.d):void 0)>-1}):void 0}},s=function(){try{return"undefined"!=typeof document&&null!==document&&null!=window.addEventListener&&null!=window.localStorage&&null!=window.atob}catch(t){return!1}},u=function(){var t;try{return t="c-storage-check",localStorage.setItem(t,1),localStorage.removeItem(t),!0}catch(t){return!1}}}).call(this);
},{}],"jsonpack":[function(require,module,exports){
("undefined"!=typeof define&&define.amd?define:function(e,r){var n=r();if("undefined"!=typeof exports)for(var t in n)exports[t]=n[t];else window.jsonpack=n})([],function(){var e=function(e){return"string"!=typeof e?e:e.replace(/[\+ \|\^\%]/g,function(e){return{" ":"+","+":"%2B","|":"%7C","^":"%5E","%":"%25","~":"%7E"}[e]})},r=function(e){return"string"!=typeof e?e:e.replace(/\+|%2B|%7C|%5E|%25/g,function(e){return{"+":" ","%2B":"+","%7C":"|","%5E":"^","%25":"%","%7E":"~"}[e]})},n=function(e){return Number.prototype.toString.call(e,36).toUpperCase()},t=function(e){return parseInt(e,36)},i=Array.prototype.indexOf||function(e,r){for(var n=r||0,t=this.length;t>n;n++)if(this[n]===e)return n;return-1};return{JSON:JSON,pack:function(r,t){t=t||{},r="string"==typeof r?this.JSON.parse(r):r;var s={strings:[],integers:[],floats:[]},f=function r(t){var f,u=typeof t;if(null===t)return{type:"null",index:-3};if(void 0===t)return{type:"undefined",index:-5};if(t instanceof Array){for(var a=["@"],o=0;o<t.length;o++)a.push(r(t[o]));return a}if("object"===u){for(var p in a=["$"],t)t.hasOwnProperty(p)&&(a.push(r(p)),a.push(r(t[p])));return a}if(""===t)return{type:"empty",index:-4};if("string"===u)return-1==(f=i.call(s.strings,t))&&(s.strings.push(e(t)),f=s.strings.length-1),{type:"strings",index:f};if("number"===u&&t%1==0)return-1==(f=i.call(s.integers,t))&&(s.integers.push(n(t)),f=s.integers.length-1),{type:"integers",index:f};if("number"===u)return-1==(f=i.call(s.floats,t))&&(s.floats.push(t),f=s.floats.length-1),{type:"floats",index:f};if("boolean"===u)return{type:"boolean",index:t?-1:-2};throw Error("Unpack type "+typeof t)}(r),u=s.strings.length,a=s.integers.length,o=(s.floats.length,s.strings.join("|"));return o+="^"+s.integers.join("|"),o+="^"+s.floats.join("|"),o+="^"+function e(r){if(r instanceof Array){for(var t=r.shift(),i=0;i<r.length;i++)t+=e(r[i])+"|";return("|"===t[t.length-1]?t.slice(0,-1):t)+"]"}var s=r.type,f=r.index;if("strings"===s)return n(f);if("integers"===s)return n(u+f);if("floats"===s)return n(u+a+f);if("boolean"===s)return r.index;if("null"===s)return-3;if("undefined"===s)return-5;if("empty"===s)return-4;throw new TypeError("The item is alien!")}(f),t.debug?{dictionary:s,ast:f,packed:o}:o},unpack:function(e,n){if("string"!=typeof e)return e;n=n||{};var i=e.split("^"),s=[],f=i[0];if(""!==f){f=f.split("|");for(var u=0;u<f.length;u++)s.push(r(f[u]))}if(""!==(f=i[1]))for(f=f.split("|"),u=0;u<f.length;u++)s.push(t(f[u]));if(""!==(f=i[2]))for(f=f.split("|"),u=0;u<f.length;u++)s.push(parseFloat(f[u]));f=void 0;var a="",o=[];for(u=0;u<i[3].length;u++){var p=i[3][u];"|"===p||"$"===p||"@"===p||"]"===p?(a&&(o.push(t(a)),a=""),"|"!==p&&o.push(p)):a+=p}var l=o.length,h=0;return function e(){var r=o[h++];if("@"===r){for(var n=[];l>h;h++){if("]"===(t=o[h]))return n;if("@"===t||"$"===t)n.push(e());else switch(t){case-1:n.push(!0);break;case-2:n.push(!1);break;case-3:n.push(null);break;case-5:n.push(void 0);break;case-4:n.push("");break;default:n.push(s[t])}}return n}if("$"===r){for(n={};l>h;h++){var t,i=o[h];if("]"===i)return n;if(i=-4===i?"":s[i],"@"===(t=o[++h])||"$"===t)n[i]=e();else switch(t){case-1:n[i]=!0;break;case-2:n[i]=!1;break;case-3:n[i]=null;break;case-5:n[i]=void 0;break;case-4:n[i]="";break;default:n[i]=s[t]}}return n}throw new TypeError("Bad token "+r+" isn't a type")}()}}});
},{}],"loader":[function(require,module,exports){
(function(){exports.Loader=function(){function n(){}return n}()}).call(this);

},{}],"log-styles":[function(require,module,exports){
(function(){var o;o={e:"color:#D50000;",a:"color:#2962FF;",g:"color:#2E7D32;",t:"color:#359996;",s:"color:#AA00FF;",x:"color:#6A1B9A;",ct:"color:#546E7A;",cf:"color:#607D8B;",q:"color:#FF6D00;",i:"color:#00BFA5;"},exports.logger=function(c,l){return console.log("%c"+c,o[l])}}).call(this);
},{}],"tinybind":[function(require,module,exports){
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).tinybind=e()}(this,function(){"use strict";var t=["prefix","templateDelimiters","rootInterface","preloadData","handler"],e=["binders","formatters","adapters"],i=/^'.*'$|^".*"$/;function n(t){var e=0,n=t;return i.test(t)?n=t.slice(1,-1):"true"===t?n=!0:"false"===t?n=!1:"null"===t?n=null:"undefined"===t?n=void 0:isNaN(t)?e=1:n=Number(t),{type:e,value:n}}function r(t,e){for(var i,n,r=t.length,s=0,a=e[0],o=e[1];s<r;){if((n=t.indexOf(a,s))<0){i&&i.push({type:0,value:t.slice(s)});break}if(i=i||[],0<n&&s<n&&i.push({type:0,value:t.slice(s,n)}),s=n+a.length,(n=t.indexOf(o,s))<0){var h=t.slice(s-o.length),c=i[i.length-1];c&&0===c.type?c.value+=h:i.push({type:0,value:h});break}c=t.slice(s,n).trim(),i.push({type:1,value:c}),s=n+o.length}return i}var s,a,o,h={binders:{},formatters:{},adapters:{},_prefix:"rv",_fullPrefix:"rv-",get prefix(){return this._prefix},set prefix(t){this._prefix=t,this._fullPrefix=t+"-"},parseTemplate:r,parseType:n,templateDelimiters:["{","}"],rootInterface:".",preloadData:!0,handler:function(t,e,i){this.call(t,e,i.view.models)},fallbackBinder:function(t,e){null!=e?t.setAttribute(this.type,e):t.removeAttribute(this.type)},configure:function(t){var i=this;t&&Object.keys(t).forEach(function(n){var r=t[n];-1<e.indexOf(n)?Object.keys(r).forEach(function(t){i[n][t]=r[t]}):i[n]=r})}};function c(t){return"object"==typeof t&&null!==t}var u=function(){function t(t,e,i){this.keypath=e,this.callback=i,this.objectPath=[],this.parse(),this.obj=this.getRootObject(t),c(this.target=this.realize())&&this.set(!0,this.key,this.target,this.callback)}t.updateOptions=function(t){s=t.adapters,a=Object.keys(s),o=t.rootInterface},t.tokenize=function(t,e){for(var i,n=[],r={i:e,path:""},s=0;s<t.length;s++)i=t.charAt(s),~a.indexOf(i)?(n.push(r),r={i:i,path:""}):r.path+=i;return n.push(r),n};var e=t.prototype;return e.parse=function(){var e,i;if(!a.length)throw new Error("[Observer] Must define at least one adapter interface.");e=~a.indexOf(this.keypath[0])?(i=this.keypath[0],this.keypath.substr(1)):(i=o,this.keypath),this.tokens=t.tokenize(e,i),this.key=this.tokens.pop()},e.realize=function(){for(var t,e,i=this.obj,n=-1,r=0;r<this.tokens.length;r++)e=this.tokens[r],c(i)?(void 0!==this.objectPath[r]?i!==(t=this.objectPath[r])&&(this.set(!1,e,t,this),this.set(!0,e,i,this),this.objectPath[r]=i):(this.set(!0,e,i,this),this.objectPath[r]=i),i=this.get(e,i)):(-1===n&&(n=r),(t=this.objectPath[r])&&this.set(!1,e,t,this));return-1!==n&&this.objectPath.splice(n),i},e.sync=function(){var t,e,i;(t=this.realize())!==this.target?(c(this.target)&&this.set(!1,this.key,this.target,this.callback),c(t)&&this.set(!0,this.key,t,this.callback),e=this.value(),this.target=t,((i=this.value())!==e||i instanceof Function)&&this.callback.sync()):t instanceof Array&&this.callback.sync()},e.value=function(){if(c(this.target))return this.get(this.key,this.target)},e.setValue=function(t){c(this.target)&&s[this.key.i].set(this.target,this.key.path,t)},e.get=function(t,e){return s[t.i].get(e,t.path)},e.set=function(t,e,i,n){s[e.i][t?"observe":"unobserve"](i,e.path,n)},e.unobserve=function(){for(var t,e,i=0;i<this.tokens.length;i++)e=this.tokens[i],(t=this.objectPath[i])&&this.set(!1,e,t,this);c(this.target)&&this.set(!1,this.key,this.target,this.callback)},e.getRootObject=function(t){var e,i;if(!t.$parent)return t;for(e=(this.tokens.length?this.tokens[0]:this.key).path,i=t;i.$parent&&void 0===i[e];)i=i.$parent;return i},t}();function l(t,e){var i=!1;if(3===e.nodeType){var n=r(e.data,h.templateDelimiters);if(n){for(var s=0;s<n.length;s++){var a=n[s],o=document.createTextNode(a.value);e.parentNode.insertBefore(o,e),1===a.type&&t.buildBinding(o,null,a.value,m,null)}e.parentNode.removeChild(e)}i=!0}else 1===e.nodeType&&(i=t.traverse(e));if(!i)for(var c=0;c<e.childNodes.length;c++)l(t,e.childNodes[c])}function f(t,e){return t=t.binder&&t.binder.priority||0,(e.binder&&e.binder.priority||0)-t}function d(t){return t.trim()}function p(t){return null!=t?t.toString():void 0}var b=/[^\s']+|'([^']|'[^\s])*'|"([^"]|"[^\s])*"/g,v=/\s+/,y=function(){function t(t,e,i,n,r,s,a){this.view=t,this.el=e,this.type=i,this.keypath=n,this.binder=r,this.arg=s,this.formatters=a,this.formatterObservers={},this.model=void 0}var e=t.prototype;return e.observe=function(t,e){return new u(t,e,this)},e.parseTarget=function(){var t;this.keypath?0===(t=n(this.keypath)).type?this.value=t.value:(this.observer=this.observe(this.view.models,this.keypath),this.model=this.observer.target):this.value=void 0},e.parseFormatterArguments=function(t,e){var i=this;return t.map(n).map(function(t,n){var r=t.type;t=t.value;return 0===r?t:(i.formatterObservers[e]||(i.formatterObservers[e]={}),(r=i.formatterObservers[e][n])||(r=i.observe(i.view.models,t),i.formatterObservers[e][n]=r),r.value())})},e.formattedValue=function(t){var e=this;return this.formatters.reduce(function(t,i,n){var r=(i=i.match(b)).shift();r=e.view.options.formatters[r],i=e.parseFormatterArguments(i,n);return r&&r.read instanceof Function?t=r.read.apply(r,[t].concat(i)):r instanceof Function&&(t=r.apply(void 0,[t].concat(i))),t},t)},e.eventHandler=function(t){var e=this,i=e.view.options.handler;return function(n){i.call(t,this,n,e)}},e.set=function(t){t=t instanceof Function&&!this.binder.function?this.formattedValue(t.call(this.model)):this.formattedValue(t);var e=this.binder.routine||this.binder;e instanceof Function&&e.call(this,this.el,t)},e.sync=function(){this.observer?(this.model=this.observer.target,this.set(this.observer.value())):this.set(this.value)},e.publish=function(){var t,e=this;this.observer&&(t=this.formatters.reduceRight(function(t,i,n){var r=(i=i.split(v)).shift();r=e.view.options.formatters[r],i=e.parseFormatterArguments(i,n);return r&&r.publish?r.publish.apply(r,[t].concat(i)):t},this.getValue(this.el)),this.observer.setValue(t))},e.bind=function(){this.parseTarget(),this.binder.hasOwnProperty("bind")&&this.binder.bind.call(this,this.el),this.view.options.preloadData&&this.sync()},e.unbind=function(){var t=this;this.binder.unbind&&this.binder.unbind.call(this,this.el),this.observer&&this.observer.unobserve(),Object.keys(this.formatterObservers).forEach(function(e){var i=t.formatterObservers[e];Object.keys(i).forEach(function(t){i[t].unobserve()})}),this.formatterObservers={}},e.update=function(t){void 0===t&&(t={}),this.observer&&(this.model=this.observer.target),this.binder.update&&this.binder.update.call(this,t)},e.getValue=function(t){if(this.binder&&this.binder.getValue)return this.binder.getValue.call(this,t);var e=t;if("checkbox"===e.type)return e.checked;if("select-multiple"!==e.type)return e.value;for(var i,n=[],r=0;r<e.options.length;r++)(i=e.options[r]).selected&&n.push(i.value);return n},t}(),m={routine:function(t,e){t.data=null!=e?e:""}},g=/((?:'[^']*')*(?:(?:[^\|']*(?:'[^']*')+[^\|']*)+|[^\|]+))|^$/g,k=function(){function t(t,e,i){t.jquery||t instanceof Array?this.els=t:this.els=[t],this.models=e,this.options=i,this.build()}var e=t.prototype;return e.buildBinding=function(t,e,i,n,r){var s=(i=i.match(g).map(d)).shift();this.bindings.push(new y(this,t,e,s,n,r,i))},e.build=function(){this.bindings=[];for(var t=this.els,e=0,i=t.length;e<i;e++)l(this,t[e]);this.bindings.sort(f)},e.traverse=function(t){for(var e,i,n,r,s=h._fullPrefix,a="SCRIPT"===t.nodeName||"STYLE"===t.nodeName,o=t.attributes,c=[],u=this.options.starBinders,l=0,f=o.length;l<f;l++){var d=o[l];if(0===d.name.indexOf(s)){if(e=d.name.slice(s.length),r=void 0,!(i=this.options.binders[e]))for(var p=0;p<u.length;p++)if(n=u[p],e.slice(0,n.length-1)===n.slice(0,-1)){i=this.options.binders[n],r=e.slice(n.length-1);break}if((i=i||h.fallbackBinder).block)return this.buildBinding(t,e,d.value,i,r),t.removeAttribute(d.name),!0;c.push({attr:d,binder:i,type:e,arg:r})}}for(var b=0;b<c.length;b++){var v=c[b];this.buildBinding(t,v.type,v.attr.value,v.binder,v.arg),t.removeAttribute(v.attr.name)}return a},e.bind=function(){this.bindings.forEach(function(t){t.bind()})},e.unbind=function(){this.bindings.forEach(function(t){t.unbind()})},e.sync=function(){this.bindings.forEach(function(t){t.sync()})},e.publish=function(){this.bindings.forEach(function(t){t.binder&&t.binder.publishes&&t.publish()})},e.update=function(t){var e=this;void 0===t&&(t={}),Object.keys(t).forEach(function(i){e.models[i]=t[i]}),this.bindings.forEach(function(e){e.update&&e.update(t)})},t}(),O=["push","pop","shift","unshift","sort","reverse","splice"],_={counter:0,weakmap:{},weakReference:function(t){var e;return t.hasOwnProperty("__rv")||(e=this.counter++,Object.defineProperty(t,"__rv",{value:e})),this.weakmap[t.__rv]||(this.weakmap[t.__rv]={callbacks:{}}),this.weakmap[t.__rv]},cleanupWeakReference:function(t,e){Object.keys(t.callbacks).length||t.pointers&&Object.keys(t.pointers).length||delete this.weakmap[e]},stubFunction:function(t,e){var i=t[e],n=this.weakReference(t),r=this.weakmap;t[e]=function(){for(var e=arguments.length,s=new Array(e),a=0;a<e;a++)s[a]=arguments[a];var o=i.apply(t,s);return Object.keys(n.pointers).forEach(function(t){var e=n.pointers[t];r[t]&&r[t].callbacks[e]instanceof Array&&r[t].callbacks[e].forEach(function(t){t.sync()})}),o}},observeArray:function(t,e,i){var n,r=this;t instanceof Array&&((n=this.weakReference(t)).pointers||(n.pointers={},O.forEach(function(e){r.stubFunction(t,e)})),n.pointers[e]||(n.pointers[e]=[]),-1===n.pointers[e].indexOf(i))&&n.pointers[e].push(i)},unobserveArray:function(t,e,i){var n,r;t instanceof Array&&null!=t.__rv&&(n=this.weakmap[t.__rv])&&(r=n.pointers[e])&&(-1<(i=r.indexOf(i))&&r.splice(i,1),r.length||delete n.pointers[e],this.cleanupWeakReference(n,t.__rv))},observe:function(t,e,i){var n,r,s=this,a=this.weakReference(t).callbacks;a[e]||(a[e]=[],(r=Object.getOwnPropertyDescriptor(t,e))&&(r.get||r.set||!r.configurable))||(n=t[e],Object.defineProperty(t,e,{enumerable:!0,get:function(){return n},set:function(i){var r;i!==n&&(s.unobserveArray(n,t.__rv,e),n=i,r=s.weakmap[t.__rv])&&((r=r.callbacks[e])&&r.forEach(function(t){t.sync()}),s.observeArray(i,t.__rv,e))}})),-1===a[e].indexOf(i)&&a[e].push(i),this.observeArray(t[e],t.__rv,e)},unobserve:function(t,e,i){var n,r=this.weakmap[t.__rv];r&&(n=r.callbacks[e])&&(-1<(i=n.indexOf(i))&&(n.splice(i,1),n.length||(delete r.callbacks[e],this.unobserveArray(t[e],t.__rv,e))),this.cleanupWeakReference(r,t.__rv))},get:function(t,e){return t[e]},set:function(t,e,i){t[e]=i}};function w(t,e,i){var n=t.el.cloneNode(!0);return(e=new k(n,e,t.view.options)).bind(),t.marker.parentNode.insertBefore(n,i),e}var j={"on-*":{function:!0,priority:1e3,unbind:function(t){this.handler&&t.removeEventListener(this.arg,this.handler)},routine:function(t,e){this.handler&&t.removeEventListener(this.arg,this.handler),this.handler=this.eventHandler(e),t.addEventListener(this.arg,this.handler)}},"each-*":{block:!0,priority:4e3,bind:function(t){this.marker?this.iterated.forEach(function(t){t.bind()}):(this.marker=document.createComment(" tinybind: "+this.type+" "),this.iterated=[],t.parentNode.insertBefore(this.marker,t),t.parentNode.removeChild(t))},unbind:function(t){this.iterated&&this.iterated.forEach(function(t){t.unbind()})},routine:function(t,e){var i=this,n=this.arg,r=(e=e||[],t.getAttribute("index-property")||"$index");if(e.forEach(function(t,e){var s={$parent:i.view.models},a=(s[r]=e,s[n]=t,i.iterated[e]);if(a)if(a.models[n]!==t){for(var o,h,c=e+1;c<i.iterated.length;c++)if((h=i.iterated[c]).models[n]===t){o=c;break}void 0!==o?(i.iterated.splice(o,1),i.marker.parentNode.insertBefore(h.els[0],a.els[0]),h.models[r]=e):h=w(i,s,a.els[0]),i.iterated.splice(e,0,h)}else a.models[r]=e;else e=i.marker,i.iterated.length&&(e=i.iterated[i.iterated.length-1].els[0]),a=w(i,s,e.nextSibling),i.iterated.push(a)}),this.iterated.length>e.length)for(var s=this.iterated.length-e.length,a=function(){var t=i.iterated.pop();t.unbind(),i.marker.parentNode.removeChild(t.els[0])},o=0;o<s;o++)a();"OPTION"===t.nodeName&&this.view.bindings.forEach(function(t){t.el===i.marker.parentNode&&"value"===t.type&&t.sync()})},update:function(t){var e=this,i={};Object.keys(t).forEach(function(n){n!==e.arg&&(i[n]=t[n])}),this.iterated.forEach(function(t){t.update(i)})}},"class-*":function(t,e){var i=" "+t.className+" ";!e==-1<i.indexOf(" "+this.arg+" ")&&(t.className=e?t.className+" "+this.arg:i.replace(" "+this.arg+" "," ").trim())},text:function(t,e){t.textContent=null!=e?e:""},html:function(t,e){t.innerHTML=null!=e?e:""},show:function(t,e){t.style.display=e?"":"none"},hide:function(t,e){t.style.display=e?"none":""},enabled:function(t,e){t.disabled=!e},disabled:function(t,e){t.disabled=!!e},checked:{publishes:!0,priority:2e3,bind:function(t){var e=this;this.callback||(this.callback=function(){e.publish()}),t.addEventListener("change",this.callback)},unbind:function(t){t.removeEventListener("change",this.callback)},routine:function(t,e){"radio"===t.type?t.checked=p(t.value)===p(e):t.checked=!!e}},value:{publishes:!0,priority:3e3,bind:function(t){var e;this.isRadio="INPUT"===t.tagName&&("radio"===t.type||"checkbox"===t.type),this.isRadio||(this.event=t.getAttribute("event-name")||("SELECT"===t.tagName?"change":"input"),(e=this).callback||(this.callback=function(){e.publish()}),t.addEventListener(this.event,this.callback))},unbind:function(t){this.isRadio||t.removeEventListener(this.event,this.callback)},routine:function(t,e){if(this.isRadio)t.setAttribute("value",e);else if("select-multiple"===t.type){if(e instanceof Array)for(var i=0;i<t.length;i++){var n=t[i];n.selected=-1<e.indexOf(n.value)}}else p(e)!==p(t.value)&&(t.value=null!=e?e:"")}},if:{block:!0,priority:4e3,bind:function(t){this.marker?!1===this.bound&&this.nested&&this.nested.bind():(this.marker=document.createComment(" tinybind: "+this.type+" "+this.keypath+" "),this.attached=!1,t.parentNode.insertBefore(this.marker,t),t.parentNode.removeChild(t)),this.bound=!0},unbind:function(){this.nested&&(this.nested.unbind(),this.bound=!1)},routine:function(t,e){!!e!==this.attached&&(e?(this.nested||(this.nested=new k(t,this.view.models,this.view.options),this.nested.bind()),this.marker.parentNode.insertBefore(t,this.marker.nextSibling),this.attached=!0):(t.parentNode.removeChild(t),this.attached=!1))},update:function(t){this.nested&&this.nested.update(t)}}};function E(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,function(t){return"symbol"==typeof(t=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return String(t);if("object"!=typeof(i=i.call(t,e)))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string"))?t:String(t)}(n.key),n)}}function x(t){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function N(t,e){return(N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function P(t,e,i){return(P=function(){if("undefined"!=typeof Reflect&&Reflect.construct&&!Reflect.construct.sham){if("function"==typeof Proxy)return 1;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),1}catch(t){}}}()?Reflect.construct.bind():function(t,e,i){var n=[null];return n.push.apply(n,e),e=new(Function.bind.apply(t,n)),i&&N(e,i.prototype),e}).apply(null,arguments)}var A=function(t){function e(){return t.apply(this,arguments)||this}i=t,(n=e).prototype=Object.create(i.prototype),N(n.prototype.constructor=n,i);var i,n=e.prototype;return n.connectedCallback=function(){var t=this.constructor.__templateEl.content.cloneNode(!0);for(this.__tinybindView=h.bind(t,this);this.firstChild;)this.removeChild(this.firstChild);this.appendChild(t)},n.disconnectedCallback=function(){this.__tinybindView.unbind()},n.attributeChangedCallback=function(t,e,i){e!==i&&(this[this.constructor.__propAttributeMap[t]]=i)},i=e,n=[{key:"observedAttributes",get:function(){var t=this.template;if(!t)throw new Error("No template declared for "+this.name);this.__templateEl=document.createElement("template"),this.__templateEl.innerHTML=t;var e=this.__propAttributeMap={},i=[],n=this.properties;return n&&Object.keys(n).forEach(function(t){var r=n[t];e[r="string"==typeof r?r:t]=t,i.push(r)}),i}}],null&&E(i.prototype,null),n&&E(i,n),Object.defineProperty(i,"prototype",{writable:!1}),e}(function(t){var e="function"==typeof Map?new Map:void 0;return function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return P(t,arguments,x(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),N(i,t)}(t)}(HTMLElement));return h.binders=j,h.formatters={watch:function(t){return t},not:function(t){return!t},negate:function(t){return!t}},h.adapters["."]=_,h.Component=A,h.bind=function(i,n,r){var s={};return(i=(n=n||{},r=r||{},e.forEach(function(t){s[t]=Object.create(null),r[t]&&Object.keys(r[t]).forEach(function(e){s[t][e]=r[t][e]}),Object.keys(h[t]).forEach(function(e){s[t][e]||(s[t][e]=h[t][e])})}),t.forEach(function(t){var e=r[t];s[t]=null!=e?e:h[t]}),s.starBinders=Object.keys(s.binders).filter(function(t){return 0<t.indexOf("*")}),u.updateOptions(s),new k(i,n,s))).bind(),i},h});
},{}]},{},[3,11,15,16]);
;
var run = (typeof window != 'undefined' && typeof window.name === 'string' && window.name != '__c-wa-ipe') && !( true && (window.location.search.indexOf('__c-token') >= 0) );
if (window.Conductrics && window.Conductrics.express == false) { run = false }
if (run) { new Conductrics.ClientApi({"entry":"wax","debug":false,"dataLayer":"dataLayer","globalEvents":true}).run(); }}() )