@stakekit/widget 0.0.292 → 0.0.294

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/dist/bundle/{DateTime-BBRIKkPv.js → DateTime-CMMZj2i-.js} +54 -54
  2. package/dist/bundle/{assets-vw12jo1v.js → assets-Bc9gJ-IT.js} +6 -6
  3. package/dist/bundle/{cardano-connector-DCWdS4Lt.js → cardano-connector-4FH7sm5s.js} +2 -2
  4. package/dist/bundle/{configured-chains-Bc6_pgMo.js → configured-chains-DF5IpaPp.js} +1 -1
  5. package/dist/bundle/{cosmos-connector-meta-Br67nymZ.js → cosmos-connector-meta-BKRBGzAs.js} +1 -1
  6. package/dist/bundle/index.bundle.css +1 -1
  7. package/dist/bundle/index.bundle.js +15768 -15242
  8. package/dist/bundle/{ledger-connector-wZ-AWITi.js → ledger-connector-Em3Ex6Ns.js} +5 -5
  9. package/dist/bundle/{network-D8-Flo2u.js → network-D2ajkWp0.js} +1 -1
  10. package/dist/bundle/{reward-rate-chart-B41r4AU4.js → reward-rate-chart-6q6gJawR.js} +4 -4
  11. package/dist/bundle/{solana-connector-CXe_nU4I.js → solana-connector-DHrdMGZC.js} +3 -3
  12. package/dist/bundle/{stellar-connector-Cdl9Hnba.js → stellar-connector-DkR_jg41.js} +2 -2
  13. package/dist/bundle/{styles.css-BJ7-ORZP.js → styles.css-DQG3ba8V.js} +6 -6
  14. package/dist/bundle/{substrate-connector-DFeFqV_q.js → substrate-connector-CzewVoQ6.js} +1 -1
  15. package/dist/bundle/{ton-connector-CWmOukzn.js → ton-connector-CcahoFeW.js} +3 -3
  16. package/dist/bundle/{transaction-BwhgjU0e.js → transaction-BGiGADTK.js} +1 -1
  17. package/dist/bundle/{transaction-CUoDE6CU.js → transaction-BvpQWKqm.js} +1 -1
  18. package/dist/bundle/{transaction-B8S7Vgaq.js → transaction-CD_QhA6u.js} +2 -2
  19. package/dist/bundle/{transaction-DxrR2BHC.js → transaction-CiEShf7a.js} +1 -1
  20. package/dist/bundle/{tron-connector--M_0_Iy7.js → tron-connector-Dy_36o_J.js} +3 -3
  21. package/dist/bundle/{utils-CoW929-6.js → utils-BMTuLksW.js} +1 -1
  22. package/dist/bundle/{wallet-manager-C3rmOq7t.js → wallet-manager-BLaLHs2U.js} +11 -11
  23. package/dist/package/{DateTime-DJZXpaqx.js → DateTime-CGVpQQm9.js} +24 -2
  24. package/dist/package/{assets-BuIo5TOF.js → assets-CEn8BPdT.js} +1 -1
  25. package/dist/package/{cardano-connector-DIZuipB7.js → cardano-connector-BDWTBXaS.js} +2 -2
  26. package/dist/package/{configured-chains-B6PD9hvx.js → configured-chains-CRuy8tse.js} +1 -1
  27. package/dist/package/{cosmos-connector-meta-CgvZWkLV.js → cosmos-connector-meta-B-ke1Dvw.js} +1 -1
  28. package/dist/package/index.package.css +162 -162
  29. package/dist/package/index.package.js +4126 -3050
  30. package/dist/package/{ledger-connector-B3kEcKjM.js → ledger-connector-BQDRUjOJ.js} +5 -5
  31. package/dist/package/{network-B4Qs3uRl.js → network-K03Uj00V.js} +1 -1
  32. package/dist/package/{reward-rate-chart-B42ZCby7.js → reward-rate-chart-DBx39GdL.js} +2 -2
  33. package/dist/package/{solana-connector-VG2pC1EJ.js → solana-connector-fL70NOkD.js} +3 -3
  34. package/dist/package/{stellar-connector-DO9tJUOg.js → stellar-connector-C_33sqO5.js} +2 -2
  35. package/dist/package/{styles.css-DwJjrmLr.js → styles.css-BOghDWGq.js} +1 -1
  36. package/dist/package/{substrate-connector-P80MVt5T.js → substrate-connector-Cr7LEt2o.js} +1 -1
  37. package/dist/package/{ton-connector-3rqiqNZO.js → ton-connector-81-rUhzX.js} +3 -3
  38. package/dist/package/{transaction-DTbU7sxm.js → transaction-BHIZ9rKF.js} +1 -1
  39. package/dist/package/{transaction-CuMGfUeE.js → transaction-C5e_gCK6.js} +1 -1
  40. package/dist/package/{transaction-V39s0qKU.js → transaction-DMMfLvk1.js} +2 -2
  41. package/dist/package/{transaction-Do_oUKxl.js → transaction-DgdU5pHH.js} +1 -1
  42. package/dist/package/{tron-connector-CKUZFHDh.js → tron-connector-Cuez3U16.js} +3 -3
  43. package/dist/package/{wallet-manager-CioQJQ5H.js → wallet-manager-DWFwmdLb.js} +2 -2
  44. package/dist/types/domain/earn/contract.d.ts +1 -0
  45. package/dist/types/generated/yield-provider-ids.d.ts +86 -0
  46. package/dist/types/index.bundle.d.ts +2 -2
  47. package/dist/types/index.package.d.ts +2 -2
  48. package/dist/types/public-api/types.d.ts +21 -3
  49. package/dist/website/assets/AlertController-Dd3t1FDe.js +1 -0
  50. package/dist/website/assets/{CaipNetworkUtil-CIgzbD6k.js → CaipNetworkUtil-CyIDQhS0.js} +1 -1
  51. package/dist/website/assets/DateTime-ByC3zr_K.js +1 -0
  52. package/dist/website/assets/{HelpersUtil-BokHy7la.js → HelpersUtil-Bpil3MMz.js} +1 -1
  53. package/dist/website/assets/ModalController-BhWRBcfd.js +5 -0
  54. package/dist/website/assets/{albedo.module-Dn9vkw3f.js → albedo.module-DkOe0Unb.js} +1 -1
  55. package/dist/website/assets/assets-DXO6qW6R.js +2 -0
  56. package/dist/website/assets/{axios-Dl6BaS8Y.js → axios-rFNl7rAx.js} +2 -2
  57. package/dist/website/assets/{base-signer-b1ff2VPI-DF_m1Hx-.js → base-signer-b1ff2VPI-DEykpag5.js} +1 -1
  58. package/dist/website/assets/{basic-Bt_YnOIC.js → basic-By5_muQ4.js} +1 -1
  59. package/dist/website/assets/bignumber-FohbSRh0.js +1 -0
  60. package/dist/website/assets/blakejs-x6iaQxOd.js +3 -0
  61. package/dist/website/assets/bn-Ck4DeaX2.js +1 -0
  62. package/dist/website/assets/{browser-ponyfill-_v4sZCld.js → browser-ponyfill-lHyeX8iJ.js} +1 -1
  63. package/dist/website/assets/{bs58-CiFyCgrv.js → bs58-gzsgdke5.js} +1 -1
  64. package/dist/website/assets/{build-DM4Sawu1.js → build-ClRxYQRR.js} +1 -1
  65. package/dist/website/assets/{build-Butjcagw.js → build-TBrHU398.js} +1 -1
  66. package/dist/website/assets/{build-B5AnTSOq.js → build-Tl3I8dhV.js} +1 -1
  67. package/dist/website/assets/{cardano-connector-BC5bF4Y2.js → cardano-connector-8El4Ztf_.js} +9 -9
  68. package/dist/website/assets/{configured-chains-Bp7rWkOZ.js → configured-chains-DQ_M8-li.js} +1 -1
  69. package/dist/website/assets/core-BiDQVY37.js +2 -0
  70. package/dist/website/assets/{cosmos-connector-meta-CZFaunIB.js → cosmos-connector-meta-DRTieEt0.js} +1 -1
  71. package/dist/website/assets/dist-BVuLBvyS.js +7 -0
  72. package/dist/website/assets/{dist-BKdXTi2f.js → dist-Bo7ZdXT8.js} +3 -3
  73. package/dist/website/assets/{dist-7PipG_eL.js → dist-DlLKQSrv.js} +3 -3
  74. package/dist/website/assets/dist-ZKTSEBXW.js +1 -0
  75. package/dist/website/assets/{elliptic-j9CClrcl.js → elliptic-BdE4gFqn.js} +2 -2
  76. package/dist/website/assets/{esm-DVfwo40P.js → esm-BjyHrLEJ.js} +1 -1
  77. package/dist/website/assets/events-CMzhc0tf.js +1 -0
  78. package/dist/website/assets/{extrinsic-encoding-B3zynq2U.js → extrinsic-encoding-BIj1XBpl.js} +1 -1
  79. package/dist/website/assets/{features-LE43LGiF.js → features-Cy1CFK9a.js} +1 -1
  80. package/dist/website/assets/{fhevm-relayer-DXLb4mIw-bVmGMiQn.js → fhevm-relayer-DXLb4mIw-Bbrz0cha.js} +5 -3
  81. package/dist/website/assets/freighter.module-DsmrpiWT.js +1 -0
  82. package/dist/website/assets/index-7hHJ2eI5.js +558 -0
  83. package/dist/website/assets/index-zFAIWvcU.css +1 -0
  84. package/dist/website/assets/{index.es-D6B6PG3M.js → index.es-BGzDKZr_.js} +1 -1
  85. package/dist/website/assets/index.es-BHs2-Pa6.js +1 -0
  86. package/dist/website/assets/{index.es-wqX1ruQA.js → index.es-Bpga9r91.js} +5 -5
  87. package/dist/website/assets/{kms_lib-mPebVu09.js → kms_lib-BgnOy0xU.js} +1 -1
  88. package/dist/website/assets/{kms_lib-Bh_Z1nH6.js → kms_lib-w0jRi8cP.js} +1 -1
  89. package/dist/website/assets/{ledger-connector-BOOoTKx_.js → ledger-connector-CNNjVgC1.js} +3 -3
  90. package/dist/website/assets/{lib-es-5LFNYQ9J.js → lib-es-DmH9FYVZ.js} +1 -1
  91. package/dist/website/assets/lobstr.module-BUAItZUt.js +1 -0
  92. package/dist/website/assets/{nacl-fast-BI97gFtf.js → nacl-fast-B5R4wpqG.js} +1 -1
  93. package/dist/website/assets/{nacl-util-DCWJejqG.js → nacl-util-6167mj42.js} +1 -1
  94. package/dist/website/assets/{network-CEcIzsgc.js → network-BVzpe0Ii.js} +1 -1
  95. package/dist/website/assets/{polkadot-ledger-transaction-DaDP252u.js → polkadot-ledger-transaction-Dp6EFfyV.js} +1 -1
  96. package/dist/website/assets/registry-BgQw-qJW.js +1 -0
  97. package/dist/website/assets/{reward-rate-chart-COP_M115.js → reward-rate-chart-CO_yI4og.js} +4 -4
  98. package/dist/website/assets/{safe-buffer-Dz6e-rwu.js → safe-buffer-BUgQmBOp.js} +1 -1
  99. package/dist/website/assets/{safe-connector-DG2cXEO5.js → safe-connector-BObu9WgG.js} +2 -2
  100. package/dist/website/assets/{solana-connector-DSpWnxwA.js → solana-connector-CVuV_EKp.js} +1 -1
  101. package/dist/website/assets/{src-Zq1Jw-Sn.js → src-DbdC_Alu.js} +1 -1
  102. package/dist/website/assets/{src-hSPfFTzN.js → src-Dl7INWvU.js} +1 -1
  103. package/dist/website/assets/state-D5Nw1L4F.js +1 -0
  104. package/dist/website/assets/{stellar-connector-BAbbdkSK.js → stellar-connector-Ba7Jcrbg.js} +1 -1
  105. package/dist/website/assets/styles.css-NtRiu07M.js +1 -0
  106. package/dist/website/assets/substrate-connector-hQ3vc47X.js +2 -0
  107. package/dist/website/assets/tfhe-BACovsAk.js +1 -0
  108. package/dist/website/assets/{tfhe-DuWT_ao1.js → tfhe-BSAXrnM6.js} +1 -1
  109. package/dist/website/assets/ton-connector-CU1xiP2u.js +2264 -0
  110. package/dist/website/assets/tracking-variants-CtfEiKNR.js +93 -0
  111. package/dist/website/assets/{transaction-BH4ssPh3.js → transaction-B5hUD0AE.js} +1 -1
  112. package/dist/website/assets/{transaction-BVuftLt1.js → transaction-BWEzzOww.js} +1 -1
  113. package/dist/website/assets/transaction-BmFUkzQv.js +2 -0
  114. package/dist/website/assets/{transaction-1KdJeqcp.js → transaction-C_iyacpP.js} +1 -1
  115. package/dist/website/assets/{tron-connector-CJURHEQe.js → tron-connector-gXtlAAuG.js} +7 -7
  116. package/dist/website/assets/{tx-Bkou_ALe.js → tx-Cosvp39i.js} +1 -1
  117. package/dist/website/assets/{utils-CH0e59XB.js → utils-meUBO1X1.js} +1 -1
  118. package/dist/website/assets/{viem-BQ_7aeKB.js → viem-8-EtcU49.js} +1 -1
  119. package/dist/website/assets/{w3m-modal-BLY--NNS.js → w3m-modal-HS9RLkN8.js} +2 -2
  120. package/dist/website/assets/wallet-manager-BQrZx180.js +5 -0
  121. package/dist/website/assets/{web-4qAQ-Ymk.js → web-azgm2Psf.js} +1 -1
  122. package/dist/website/assets/{wui-list-item-1gzb5UQJ.js → wui-list-item-CfZ1WQql.js} +1 -1
  123. package/dist/website/assets/{xbull.module-B4N1LGQD.js → xbull.module-DQx6rh7x.js} +1 -1
  124. package/dist/website/index.html +19 -19
  125. package/package.json +3 -2
  126. package/dist/website/assets/AlertController-CH5fpr36.js +0 -1
  127. package/dist/website/assets/DateTime-DR7XeJxF.js +0 -1
  128. package/dist/website/assets/ModalController-CWwEAkfw.js +0 -5
  129. package/dist/website/assets/assets-Dk5ppLtc.js +0 -2
  130. package/dist/website/assets/bignumber-CziKLYjt.js +0 -1
  131. package/dist/website/assets/blakejs-Dx-Zt5zT.js +0 -3
  132. package/dist/website/assets/bn-CJG5j3KW.js +0 -1
  133. package/dist/website/assets/core-uatW2d6Y.js +0 -2
  134. package/dist/website/assets/dist-CELdgNh9.js +0 -1
  135. package/dist/website/assets/dist-omv2KNC4.js +0 -5
  136. package/dist/website/assets/events-D2w4OsQJ.js +0 -1
  137. package/dist/website/assets/freighter.module-CaBNS6Y-.js +0 -1
  138. package/dist/website/assets/index-3l3n0-cX.js +0 -540
  139. package/dist/website/assets/index-Dpi1HuAK.css +0 -1
  140. package/dist/website/assets/index.es-DCi2xZ1b.js +0 -1
  141. package/dist/website/assets/lobstr.module-GQjJAf8P.js +0 -1
  142. package/dist/website/assets/registry-DVfYVrCY.js +0 -1
  143. package/dist/website/assets/state-B8Vu3fYx.js +0 -1
  144. package/dist/website/assets/styles.css-BK5OO2Hh.js +0 -1
  145. package/dist/website/assets/substrate-connector-CwnGlD2K.js +0 -2
  146. package/dist/website/assets/tfhe-PDJAG8Bv.js +0 -1
  147. package/dist/website/assets/ton-connector-DMNOeieX.js +0 -2264
  148. package/dist/website/assets/tracking-variants-CuRpr0B_.js +0 -85
  149. package/dist/website/assets/transaction-CbxrIerN.js +0 -2
  150. package/dist/website/assets/wallet-manager-D8tOJ1jy.js +0 -5
  151. package/dist/website/mockServiceWorker.js +0 -460
@@ -1,85 +0,0 @@
1
- import{r as e,t}from"./dist-CELdgNh9.js";e();var n;if(typeof window>`u`){var r={hostname:``};n={crypto:{randomUUID:function(){throw Error(`unsupported`)}},navigator:{userAgent:``,onLine:!0},document:{createElement:function(){return{}},location:r,referrer:``},screen:{width:0,height:0},location:r,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else n=window;var i={DEBUG:!1,LIB_VERSION:`2.84.0`},a=`__mp_targeting`,o=`__mp_recorder`,s=`__MP_RECORDER_FILENAME__`,c=`__MP_TARGETING_FILENAME__`;function l(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function d(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){u(a,r,i,o,s,`next`,e)}function s(e){u(a,r,i,o,s,`throw`,e)}o(void 0)})}}function f(e,t,n){return f=ne()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&x(i,n.prototype),i},f.apply(null,arguments)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return t&&p(e.prototype,t),e}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function _(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}function v(e,t){return t!=null&&typeof Symbol<`u`&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function y(e){return Function.toString.call(e).indexOf(`[native code]`)!==-1}function b(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function x(e,t){return x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},x(e,t)}function S(e){"@swc/helpers - typeof";return e&&typeof Symbol<`u`&&e.constructor===Symbol?`symbol`:typeof e}function ee(e,t){if(e){if(typeof e==`string`)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(n);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}}function te(e){var t=typeof Map==`function`?new Map:void 0;return te=function(e){if(e===null||!y(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return f(e,arguments,g(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),x(n,e)},te(e)}function ne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ne=function(){return!!e})()}function C(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=ee(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function re(e,t){var n,r,i,a,o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return c([e,t])}}function c(a){if(n)throw TypeError(`Generator is already executing.`);for(;o;)try{if(n=1,r&&(i=a[0]&2?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function ie(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}var ae=Object.defineProperty,w=function(e,t,n){return t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},T=function(e,t,n){return w(e,(t===void 0?`undefined`:S(t))===`symbol`?t:t+``,n)},oe=Object.defineProperty,se=function(e,t,n){return t in e?oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},ce=function(e,t,n){return se(e,(t===void 0?`undefined`:S(t))===`symbol`?t:t+``,n)},E=function(e){return e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`,e}(E||{}),le={Node:[`childNodes`,`parentNode`,`parentElement`,`textContent`],ShadowRoot:[`host`,`styleSheets`],Element:[`shadowRoot`,`querySelector`,`querySelectorAll`],MutationObserver:[]},ue={Node:[`contains`,`getRootNode`],ShadowRoot:[`getSelection`],Element:[],MutationObserver:[`constructor`]},de={},fe=function(){return!!globalThis.Zone};function pe(e){if(de[e])return de[e];var t=globalThis[e],n=t.prototype,r=e in le?le[e]:void 0,i=!!(r&&r.every(function(e){return!!(Object.getOwnPropertyDescriptor(n,e)?.get)?.toString().includes(`[native code]`)})),a=e in ue?ue[e]:void 0,o=!!(a&&a.every(function(e){return typeof n[e]==`function`&&n[e]?.toString().includes(`[native code]`)}));if(i&&o&&!fe())return de[e]=t.prototype,t.prototype;try{var s=document.createElement(`iframe`);document.body.appendChild(s);var c=s.contentWindow;if(!c)return t.prototype;var l=c[e].prototype;return document.body.removeChild(s),l?de[e]=l:n}catch{return n}}var me={};function he(e,t,n){var r=e+`.`+String(n);if(me[r])return me[r].call(t);var i=pe(e),a=Object.getOwnPropertyDescriptor(i,n)?.get;return a?(me[r]=a,a.call(t)):t[n]}var D={};function ge(e,t,n){var r=e+`.`+String(n);if(D[r])return D[r].bind(t);var i=pe(e)[n];return typeof i==`function`?(D[r]=i,i.bind(t)):t[n]}function _e(e){return he(`Node`,e,`childNodes`)}function ve(e){return he(`Node`,e,`parentNode`)}function ye(e){return he(`Node`,e,`parentElement`)}function be(e){return he(`Node`,e,`textContent`)}function xe(e,t){return ge(`Node`,e,`contains`)(t)}function Se(e){return ge(`Node`,e,`getRootNode`)()}function Ce(e){return!e||!(`host`in e)?null:he(`ShadowRoot`,e,`host`)}function we(e){return e.styleSheets}function Te(e){return!e||!(`shadowRoot`in e)?null:he(`Element`,e,`shadowRoot`)}function Ee(e,t){return he(`Element`,e,`querySelector`)(t)}function De(e,t){return he(`Element`,e,`querySelectorAll`)(t)}function Oe(){return pe(`MutationObserver`).constructor}function ke(e,t,n){try{if(!(t in e))return function(){};var r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}}catch{return function(){}}}var Ae={childNodes:_e,parentNode:ve,parentElement:ye,textContent:be,contains:xe,getRootNode:Se,host:Ce,styleSheets:we,shadowRoot:Te,querySelector:Ee,querySelectorAll:De,mutationObserver:Oe,patch:ke};function je(e){return e.nodeType===e.ELEMENT_NODE}function Me(e){var t=e&&`host`in e&&`mode`in e&&Ae.host(e)||null;return!!(t&&`shadowRoot`in t&&Ae.shadowRoot(t)===e)}function Ne(e){return Object.prototype.toString.call(e)===`[object ShadowRoot]`}function Pe(e){return e.includes(` background-clip: text;`)&&!e.includes(` -webkit-background-clip: text;`)&&(e=e.replace(/\sbackground-clip:\s*text;/g,` -webkit-background-clip: text; background-clip: text;`)),e}function Fe(e){var t=e.cssText;if(t.split(`"`).length<3)return t;var n=[`@import`,`url(`+JSON.stringify(e.href)+`)`];return e.layerName===``?n.push(`layer`):e.layerName&&n.push(`layer(`+e.layerName+`)`),e.supportsText&&n.push(`supports(`+e.supportsText+`)`),e.media.length&&n.push(e.media.mediaText),n.join(` `)+`;`}function Ie(e){try{var t=e.rules||e.cssRules;if(!t)return null;var n=e.href;return!n&&e.ownerNode&&e.ownerNode.ownerDocument&&(n=e.ownerNode.ownerDocument.location.href),Pe(Array.from(t,function(e){return Le(e,n)}).join(``))}catch{return null}}function Le(e,t){if(ze(e)){var n;try{n=Ie(e.styleSheet)||Fe(e)}catch{n=e.cssText}return e.styleSheet.href?et(n,e.styleSheet.href):n}var r=e.cssText;return Be(e)&&e.selectorText.includes(`:`)&&(r=Re(r)),t?et(r,t):r}function Re(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,`$1\\$2`)}function ze(e){return`styleSheet`in e}function Be(e){return`selectorText`in e}var Ve=function(){function e(){ce(this,`idNodeMap`,new Map),ce(this,`nodeMetaMap`,new WeakMap)}var t=e.prototype;return t.getId=function(e){return e?this.getMeta(e)?.id??-1:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var n=this;t===void 0&&(t=!1);var r=this.getId(e);this.idNodeMap.delete(r),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(e){return n.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var n=this.getNode(e);if(n){var r=this.nodeMetaMap.get(n);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function He(){return new Ve}function Ue(e){var t=e.element,n=e.maskInputOptions,r=e.tagName,i=e.type,a=e.value,o=e.maskInputFn,s=a||``,c=i&&We(i);return(n[r.toLowerCase()]||c&&n[c])&&(s=o?o(s,t):`*`.repeat(s.length)),s}function We(e){return e.toLowerCase()}var Ge=`__rrweb_original__`;function Ke(e){var t=e.getContext(`2d`);if(!t)return!0;for(var n=50,r=0;r<e.width;r+=n)for(var i=0;i<e.height;i+=n){var a=t.getImageData,o=Ge in a?a[Ge]:a;if(new Uint32Array(o.call(t,r,i,Math.min(n,e.width-r),Math.min(n,e.height-i)).data.buffer).some(function(e){return e!==0}))return!1}return!0}function qe(e){var t=e.type;return e.hasAttribute(`data-rr-is-password`)?`password`:t?We(t):null}function Je(e,t){var n;try{n=new URL(e,t??window.location.href)}catch{return null}return n.pathname.match(/\.([0-9a-z]+)(?:$)/i)?.[1]??null}function Ye(e){var t=``;return t=e.indexOf(`//`)>-1?e.split(`/`).slice(0,3).join(`/`):e.split(`/`)[0],t=t.split(`?`)[0],t}var Xe=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ze=/^(?:[a-z+]+:)?\/\//i,Qe=/^www\..*/i,$e=/^(data:)([^,]*),(.*)/i;function et(e,t){return(e||``).replace(Xe,function(e,n,r,i,a,o){var s=r||a||o,c=n||i||``;if(!s)return e;if(Ze.test(s)||Qe.test(s)||$e.test(s))return`url(`+c+s+c+`)`;if(s[0]===`/`)return`url(`+c+(Ye(t)+s)+c+`)`;var l=t.split(`/`),u=s.split(`/`);l.pop();for(var d=C(u),f;!(f=d()).done;){var p=f.value;p!==`.`&&(p===`..`?l.pop():l.push(p))}return`url(`+c+l.join(`/`)+c+`)`})}function tt(e,t){return t===void 0&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,``):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,``).replace(/0px/g,`0`)}function nt(e,t,n){n===void 0&&(n=!1);var r=Array.from(t.childNodes),i=[],a=0;if(r.length>1&&e&&typeof e==`string`){for(var o=tt(e,n),s=o.length/e.length,c=1;c<r.length;c++)if(r[c].textContent&&typeof r[c].textContent==`string`){for(var l=tt(r[c].textContent,n),u=100,d=3;d<l.length&&(l[d].match(/[a-zA-Z0-9]/)||l.indexOf(l.substring(0,d),1)!==-1);d++);for(;d<l.length;d++){var f=l.substring(0,d),p=o.split(f),m=-1;if(p.length===2)m=p[0].length;else if(p.length>2&&p[0]===``&&r[c-1].textContent!==``)m=o.indexOf(f,1);else if(p.length===1){if(f=f.substring(0,f.length-1),p=o.split(f),p.length<=1)return i.push(e),i;d=u+1}else d===l.length-1&&(m=o.indexOf(f));if(p.length>=2&&d>u){var h=r[c-1].textContent;if(h&&typeof h==`string`){var g=tt(h).length;m=o.indexOf(f,g)}m===-1&&(m=p[0].length)}if(m!==-1){for(var _=Math.floor(m/s);_>0&&_<e.length;){if(a+=1,a>50*r.length)return i.push(e),i;var v=tt(e.substring(0,_),n);if(v.length===m){i.push(e.substring(0,_)),e=e.substring(_),o=o.substring(m);break}v.length<m?_+=Math.max(1,Math.floor((m-v.length)/s)):_-=Math.max(1,Math.floor((v.length-m)*s))}break}}}}return i.push(e),i}function rt(e,t){return nt(e,t).join(`/* rr_split */`)}var it=1,at=RegExp(`[^a-z0-9-_:]`),ot=-2;function st(){return it++}function ct(e){if(v(e,HTMLFormElement))return`form`;var t=We(e.tagName);return at.test(t)?`div`:t}var lt,ut,dt=/^[^ \t\n\r\u000c]+/,ft=/^[, \t\n\r\u000c]+/;function pt(e,t){if(t.trim()===``)return t;var n=0;function r(e){var r,i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):``}for(var i=[];r(ft),!(n>=t.length);){var a=r(dt);if(a.slice(-1)===`,`)a=ht(e,a.substring(0,a.length-1)),i.push(a);else{var o=``;a=ht(e,a);for(var s=!1;;){var c=t.charAt(n);if(c===``){i.push((a+o).trim());break}if(s)c===`)`&&(s=!1);else{if(c===`,`){n+=1,i.push((a+o).trim());break}c===`(`&&(s=!0)}o+=c,n+=1}}}return i.join(`, `)}var mt=new WeakMap;function ht(e,t){return!t||t.trim()===``?t:_t(e,t)}function gt(e){return!!(e.tagName===`svg`||e.ownerSVGElement)}function _t(e,t){var n=mt.get(e);if(n||(n=e.createElement(`a`),mt.set(e,n)),!t)t=``;else if(t.startsWith(`blob:`)||t.startsWith(`data:`))return t;return n.setAttribute(`href`,t),n.href}function vt(e,t,n,r){return r&&(n===`src`||n===`href`&&(t!==`use`||r[0]!==`#`)||n===`xlink:href`&&r[0]!==`#`||n===`background`&&(t===`table`||t===`td`||t===`th`)?ht(e,r):n===`srcset`?pt(e,r):n===`style`?et(r,_t(e)):t===`object`&&n===`data`?ht(e,r):r)}function yt(e,t,n){return(e===`video`||e===`audio`)&&t===`autoplay`}function bt(e,t,n){try{if(typeof t==`string`){if(e.classList.contains(t))return!0}else for(var r=e.classList.length;r--;){var i=e.classList[r];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function xt(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return n?xt(Ae.parentNode(e),t,n):!1;for(var r=e.classList.length;r--;){var i=e.classList[r];if(t.test(i))return!0}return n?xt(Ae.parentNode(e),t,n):!1}function St(e,t,n,r){var i;if(je(e)){if(i=e,!Ae.childNodes(i).length)return!1}else if(Ae.parentElement(e)===null)return!1;else i=Ae.parentElement(e);try{if(typeof t==`string`){if(r){if(i.closest(`.`+t))return!0}else if(i.classList.contains(t))return!0}else if(xt(i,t,r))return!0;if(n){if(r){if(i.closest(n))return!0}else if(i.matches(n))return!0}}catch{}return!1}function Ct(e,t,n){var r=e.contentWindow;if(r){var i=!1,a;try{a=r.document.readyState}catch{return}if(a!==`complete`){var o=setTimeout(function(){i||=(t(),!0)},n);e.addEventListener(`load`,function(){clearTimeout(o),i=!0,t()});return}var s=`about:blank`;if(r.location.href!==s||e.src===s||e.src===``)return setTimeout(t,0),e.addEventListener(`load`,t);e.addEventListener(`load`,t)}}function wt(e,t,n){var r=!1,i;try{i=e.sheet}catch{return}if(!i){var a=setTimeout(function(){r||=(t(),!0)},n);e.addEventListener(`load`,function(){clearTimeout(a),r=!0,t()})}}function Tt(e,t){var n=t.doc,r=t.mirror,i=t.blockClass,a=t.blockSelector,o=t.needsMask,s=t.inlineStylesheet,c=t.maskInputOptions,l=c===void 0?{}:c,u=t.maskTextFn,d=t.maskInputFn,f=t.dataURLOptions,p=f===void 0?{}:f,m=t.inlineImages,h=t.recordCanvas,g=t.keepIframeSrcFn,_=t.newlyAddedElement,v=_!==void 0&&_,y=t.cssCaptured,b=y!==void 0&&y,x=Et(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode===`CSS1Compat`?{type:E.Document,childNodes:[]}:{type:E.Document,childNodes:[],compatMode:e.compatMode};case e.DOCUMENT_TYPE_NODE:return{type:E.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:x};case e.ELEMENT_NODE:return Ot(e,{doc:n,blockClass:i,blockSelector:a,inlineStylesheet:s,maskInputOptions:l,maskInputFn:d,dataURLOptions:p,inlineImages:m,recordCanvas:h,keepIframeSrcFn:g,newlyAddedElement:v,rootId:x});case e.TEXT_NODE:return Dt(e,{doc:n,needsMask:o,maskTextFn:u,rootId:x,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:E.CDATA,textContent:``,rootId:x};case e.COMMENT_NODE:return{type:E.Comment,textContent:Ae.textContent(e)||``,rootId:x};default:return!1}}function Et(e,t){if(t.hasNode(e)){var n=t.getId(e);return n===1?void 0:n}}function Dt(e,t){var n=t.needsMask,r=t.maskTextFn,i=t.rootId,a=t.cssCaptured,o=Ae.parentNode(e),s=o&&o.tagName,c=``,l=s===`STYLE`||void 0,u=s===`SCRIPT`||void 0;return u?c=`SCRIPT_PLACEHOLDER`:a||(c=Ae.textContent(e),l&&c&&(c=et(c,_t(t.doc)))),!l&&!u&&c&&n&&(c=r?r(c,Ae.parentElement(e)):c.replace(/[\S]/g,`*`)),{type:E.Text,textContent:c||``,rootId:i}}function Ot(e,t){for(var n=t.doc,r=t.blockClass,i=t.blockSelector,a=t.inlineStylesheet,o=t.maskInputOptions,s=o===void 0?{}:o,c=t.maskInputFn,l=t.dataURLOptions,u=l===void 0?{}:l,d=t.inlineImages,f=t.recordCanvas,p=t.keepIframeSrcFn,m=t.newlyAddedElement,h=m!==void 0&&m,g=t.rootId,_=bt(e,r,i),v=ct(e),y={},b=e.attributes.length,x=0;x<b;x++){var S=e.attributes[x];yt(v,S.name,S.value)||(y[S.name]=vt(n,v,We(S.name),S.value))}if(v===`link`&&a){var ee=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),te=null;ee&&(te=Ie(ee)),te&&(delete y.rel,delete y.href,y._cssText=te)}if(v===`style`&&e.sheet){var ne=Ie(e.sheet);ne&&(e.childNodes.length>1&&(ne=rt(ne,e)),y._cssText=ne)}if(v===`input`||v===`textarea`||v===`select`){var C=e.value,re=e.checked;y.type!==`radio`&&y.type!==`checkbox`&&y.type!==`submit`&&y.type!==`button`&&C?y.value=Ue({element:e,type:qe(e),tagName:v,value:C,maskInputOptions:s,maskInputFn:c}):re&&(y.checked=re)}if((v===`input`||v===`textarea`)&&y.placeholder&&(y.placeholder=Ue({element:e,type:qe(e),tagName:v,value:y.placeholder,maskInputOptions:s,maskInputFn:c})),v===`option`&&(e.selected&&!s.select?y.selected=!0:delete y.selected),v===`dialog`&&e.open&&(y.rr_open_mode=e.matches(`dialog:modal`)?`modal`:`non-modal`),v===`canvas`&&f){if(e.__context===`2d`)Ke(e)||(y.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!(`__context`in e)){var ie=e.toDataURL(u.type,u.quality),ae=n.createElement(`canvas`);ae.width=e.width,ae.height=e.height,ie!==ae.toDataURL(u.type,u.quality)&&(y.rr_dataURL=ie)}}if(v===`img`&&d){lt||(lt=n.createElement(`canvas`),ut=lt.getContext(`2d`));var w=e;w.currentSrc||w.getAttribute(`src`);var T=w.crossOrigin,oe=function(){w.removeEventListener(`load`,oe);try{lt.width=w.naturalWidth,lt.height=w.naturalHeight,ut.drawImage(w,0,0),y.rr_dataURL=lt.toDataURL(u.type,u.quality)}catch{if(w.crossOrigin!==`anonymous`){w.crossOrigin=`anonymous`,w.complete&&w.naturalWidth!==0?oe():w.addEventListener(`load`,oe);return}}w.crossOrigin===`anonymous`&&(T?y.crossOrigin=T:w.removeAttribute(`crossorigin`))};w.complete&&w.naturalWidth!==0?oe():w.addEventListener(`load`,oe)}if(v===`audio`||v===`video`){var se=y;se.rr_mediaState=e.paused?`paused`:`played`,se.rr_mediaCurrentTime=e.currentTime,se.rr_mediaPlaybackRate=e.playbackRate,se.rr_mediaMuted=e.muted,se.rr_mediaLoop=e.loop,se.rr_mediaVolume=e.volume}if(h||(e.scrollLeft&&(y.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(y.rr_scrollTop=e.scrollTop)),_){var ce=e.getBoundingClientRect(),le=ce.width,ue=ce.height;y={class:y.class,rr_width:``+le+`px`,rr_height:``+ue+`px`}}v===`iframe`&&!p(y.src)&&(e.contentDocument||(y.rr_src=y.src),delete y.src);var de;try{customElements.get(v)&&(de=!0)}catch{}return{type:E.Element,tagName:v,attributes:y,childNodes:[],isSVG:gt(e)||void 0,needBlock:_,rootId:g,isCustom:de}}function O(e){return e==null?``:e.toLowerCase()}function kt(e,t){return!!(t.comment&&e.type===E.Comment||e.type===E.Element&&(t.script&&(e.tagName===`script`||e.tagName===`link`&&(e.attributes.rel===`preload`&&e.attributes.as===`script`||e.attributes.rel===`modulepreload`)||e.tagName===`link`&&e.attributes.rel===`prefetch`&&typeof e.attributes.href==`string`&&Je(e.attributes.href)===`js`)||t.headFavicon&&(e.tagName===`link`&&e.attributes.rel===`shortcut icon`||e.tagName===`meta`&&(O(e.attributes.name).match(/^msapplication-tile(image|color)$/)||O(e.attributes.name)===`application-name`||O(e.attributes.rel)===`icon`||O(e.attributes.rel)===`apple-touch-icon`||O(e.attributes.rel)===`shortcut icon`))||e.tagName===`meta`&&(t.headMetaDescKeywords&&O(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(O(e.attributes.property).match(/^(og|twitter|fb):/)||O(e.attributes.name).match(/^(og|twitter):/)||O(e.attributes.name)===`pinterest`)||t.headMetaRobots&&(O(e.attributes.name)===`robots`||O(e.attributes.name)===`googlebot`||O(e.attributes.name)===`bingbot`)||t.headMetaHttpEquiv&&e.attributes[`http-equiv`]!==void 0||t.headMetaAuthorship&&(O(e.attributes.name)===`author`||O(e.attributes.name)===`generator`||O(e.attributes.name)===`framework`||O(e.attributes.name)===`publisher`||O(e.attributes.name)===`progid`||O(e.attributes.property).match(/^article:/)||O(e.attributes.property).match(/^product:/))||t.headMetaVerification&&(O(e.attributes.name)===`google-site-verification`||O(e.attributes.name)===`yandex-verification`||O(e.attributes.name)===`csrf-token`||O(e.attributes.name)===`p:domain_verify`||O(e.attributes.name)===`verify-v1`||O(e.attributes.name)===`verification`||O(e.attributes.name)===`shopify-checkout-api-token`))))}function At(e,t){var n=t.doc,r=t.mirror,i=t.blockClass,a=t.blockSelector,o=t.maskTextClass,s=t.maskTextSelector,c=t.skipChild,l=c!==void 0&&c,u=t.inlineStylesheet,d=u===void 0||u,f=t.maskInputOptions,p=f===void 0?{}:f,m=t.maskTextFn,h=t.maskInputFn,g=t.slimDOMOptions,_=t.dataURLOptions,v=_===void 0?{}:_,y=t.inlineImages,b=y!==void 0&&y,x=t.recordCanvas,S=x!==void 0&&x,ee=t.onSerialize,te=t.onIframeLoad,ne=t.iframeLoadTimeout,re=ne===void 0?5e3:ne,ie=t.onStylesheetLoad,ae=t.stylesheetLoadTimeout,w=ae===void 0?5e3:ae,T=t.keepIframeSrcFn,oe=T===void 0?function(){return!1}:T,se=t.newlyAddedElement,ce=se!==void 0&&se,le=t.cssCaptured,ue=le!==void 0&&le,de=t.needsMask,fe=t.preserveWhiteSpace,pe=fe===void 0||fe;de||=St(e,o,s,de===void 0);var me=Tt(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,needsMask:de,inlineStylesheet:d,maskInputOptions:p,maskTextFn:m,maskInputFn:h,dataURLOptions:v,inlineImages:b,recordCanvas:S,keepIframeSrcFn:oe,newlyAddedElement:ce,cssCaptured:ue});if(!me)return null;var he=r.hasNode(e)?r.getId(e):kt(me,g)||!pe&&me.type===E.Text&&!me.textContent.replace(/^\s+|\s+$/gm,``).length?ot:st(),D=Object.assign(me,{id:he});if(r.add(e,D),he===ot)return null;ee&&ee(e);var ge=!l;if(D.type===E.Element){ge&&=!D.needBlock,delete D.needBlock;var _e=Ae.shadowRoot(e);_e&&Ne(_e)&&(D.isShadowHost=!0)}if((D.type===E.Document||D.type===E.Element)&&ge){g.headWhitespace&&D.type===E.Element&&D.tagName===`head`&&(pe=!1);var ve={doc:n,mirror:r,blockClass:i,blockSelector:a,needsMask:de,maskTextClass:o,maskTextSelector:s,skipChild:l,inlineStylesheet:d,maskInputOptions:p,maskTextFn:m,maskInputFn:h,slimDOMOptions:g,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:pe,onSerialize:ee,onIframeLoad:te,iframeLoadTimeout:re,onStylesheetLoad:ie,stylesheetLoadTimeout:w,keepIframeSrcFn:oe,cssCaptured:!1};if(D.type!==E.Element||D.tagName!==`textarea`||D.attributes.value===void 0){D.type===E.Element&&D.attributes._cssText!==void 0&&typeof D.attributes._cssText==`string`&&(ve.cssCaptured=!0);for(var ye=C(Array.from(Ae.childNodes(e))),be;!(be=ye()).done;){var xe=be.value,Se=At(xe,ve);Se&&D.childNodes.push(Se)}}var Ce=null;if(je(e)&&(Ce=Ae.shadowRoot(e)))for(var we=C(Array.from(Ae.childNodes(Ce))),Te;!(Te=we()).done;){var Ee=Te.value,De=At(Ee,ve);De&&(Ne(Ce)&&(De.isShadow=!0),D.childNodes.push(De))}}var Oe=Ae.parentNode(e);return Oe&&Me(Oe)&&Ne(Oe)&&(D.isShadow=!0),D.type===E.Element&&D.tagName===`iframe`&&Ct(e,function(){var t=e.contentDocument;if(t&&te){var n=At(t,{doc:t,mirror:r,blockClass:i,blockSelector:a,needsMask:de,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:m,maskInputFn:h,slimDOMOptions:g,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:pe,onSerialize:ee,onIframeLoad:te,iframeLoadTimeout:re,onStylesheetLoad:ie,stylesheetLoadTimeout:w,keepIframeSrcFn:oe});n&&te(e,n)}},re),D.type===E.Element&&D.tagName===`link`&&typeof D.attributes.rel==`string`&&(D.attributes.rel===`stylesheet`||D.attributes.rel===`preload`&&typeof D.attributes.href==`string`&&Je(D.attributes.href)===`css`)&&wt(e,function(){if(ie){var t=At(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,needsMask:de,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:m,maskInputFn:h,slimDOMOptions:g,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:pe,onSerialize:ee,onIframeLoad:te,iframeLoadTimeout:re,onStylesheetLoad:ie,stylesheetLoadTimeout:w,keepIframeSrcFn:oe});t&&ie(e,t)}},w),D}function jt(e,t){var n=t||{},r=n.mirror,i=r===void 0?new Ve:r,a=n.blockClass,o=a===void 0?`rr-block`:a,s=n.blockSelector,c=s===void 0?null:s,l=n.maskTextClass,u=l===void 0?`rr-mask`:l,d=n.maskTextSelector,f=d===void 0?null:d,p=n.inlineStylesheet,m=p===void 0||p,h=n.inlineImages,g=h!==void 0&&h,_=n.recordCanvas,v=_!==void 0&&_,y=n.maskAllInputs,b=y!==void 0&&y,x=n.maskTextFn,S=n.maskInputFn,ee=n.slimDOM,te=ee!==void 0&&ee,ne=n.dataURLOptions,C=n.preserveWhiteSpace,re=n.onSerialize,ie=n.onIframeLoad,ae=n.iframeLoadTimeout,w=n.onStylesheetLoad,T=n.stylesheetLoadTimeout,oe=n.keepIframeSrcFn;return At(e,{doc:e,mirror:i,blockClass:o,blockSelector:c,maskTextClass:u,maskTextSelector:f,skipChild:!1,inlineStylesheet:m,maskInputOptions:b===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:b===!1?{password:!0}:b,maskTextFn:x,maskInputFn:S,slimDOMOptions:te===!0||te===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:te===`all`,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:te===!1?{}:te,dataURLOptions:ne,inlineImages:g,recordCanvas:v,preserveWhiteSpace:C,onSerialize:re,onIframeLoad:ie,iframeLoadTimeout:ae,onStylesheetLoad:w,stylesheetLoadTimeout:T,keepIframeSrcFn:oe===void 0?function(){return!1}:oe,newlyAddedElement:!1})}function Mt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Nt(e){if(e.__esModule)return e;var t=e.default;if(typeof t==`function`){var n=function e(){return v(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Pt={exports:{}},k=String,Ft=function(){return{isColorSupported:!1,reset:k,bold:k,dim:k,italic:k,underline:k,inverse:k,hidden:k,strikethrough:k,black:k,red:k,green:k,yellow:k,blue:k,magenta:k,cyan:k,white:k,gray:k,bgBlack:k,bgRed:k,bgGreen:k,bgYellow:k,bgBlue:k,bgMagenta:k,bgCyan:k,bgWhite:k}};Pt.exports=Ft(),Pt.exports.createColors=Ft;var It=Pt.exports,Lt=Nt(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:`Module`}))),Rt=It,zt=Lt,Bt=function(e){_(t,e);function t(n,r,i,a,o,s){var c=e.call(this,n)||this;return c.name=`CssSyntaxError`,c.reason=n,o&&(c.file=o),a&&(c.source=a),s&&(c.plugin=s),r!==void 0&&i!==void 0&&(typeof r==`number`?(c.line=r,c.column=i):(c.line=r.line,c.column=r.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}var n=t.prototype;return n.setMessage=function(){this.message=this.plugin?this.plugin+`: `:``,this.message+=this.file?this.file:`<css input>`,this.line!==void 0&&(this.message+=`:`+this.line+`:`+this.column),this.message+=`: `+this.reason},n.showSourceCode=function(e){var t=this;if(!this.source)return``;var n=this.source;e??=Rt.isColorSupported,zt&&e&&(n=zt(n));var r=n.split(/\r?\n/),i=Math.max(this.line-3,0),a=Math.min(this.line+2,r.length),o=String(a).length,s,c;if(e){var l=Rt.createColors(!0),u=l.bold,d=l.gray,f=l.red;s=function(e){return u(f(e))},c=function(e){return d(e)}}else s=c=function(e){return e};return r.slice(i,a).map(function(e,n){var r=i+1+n,a=` `+(` `+r).slice(-o)+` | `;if(r===t.line){var l=c(a.replace(/\d/g,` `))+e.slice(0,t.column-1).replace(/[^\t]/g,` `);return s(`>`)+c(a)+e+`
2
- `+l+s(`^`)}return` `+c(a)+e}).join(`
3
- `)},n.toString=function(){var e=this.showSourceCode();return e&&=`
4
-
5
- `+e+`
6
- `,this.name+`: `+this.message+e},t}(te(Error)),Vt=Bt;Bt.default=Bt;var Ht={};Ht.isClean=Symbol(`isClean`),Ht.my=Symbol(`my`);var Ut={after:`
7
- `,beforeClose:`
8
- `,beforeComment:`
9
- `,beforeDecl:`
10
- `,beforeOpen:` `,beforeRule:`
11
- `,colon:`: `,commentLeft:` `,commentRight:` `,emptyBody:``,indent:` `,semicolon:!1};function Wt(e){return e[0].toUpperCase()+e.slice(1)}var Gt=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var n=`@`+e.name,r=e.params?this.rawValue(e,`params`):``;if(e.raws.afterName===void 0?r&&(n+=` `):n+=e.raws.afterName,e.nodes)this.block(e,n+r);else{var i=(e.raws.between||``)+(t?`;`:``);this.builder(n+r+i,e)}},t.beforeAfter=function(e,t){for(var n=e.type===`decl`?this.raw(e,null,`beforeDecl`):e.type===`comment`?this.raw(e,null,`beforeComment`):t===`before`?this.raw(e,null,`beforeRule`):this.raw(e,null,`beforeClose`),r=e.parent,i=0;r&&r.type!==`root`;)i+=1,r=r.parent;if(n.includes(`
12
- `)){var a=this.raw(e,null,`indent`);if(a.length)for(var o=0;o<i;o++)n+=a}return n},t.block=function(e,t){var n=this.raw(e,`between`,`beforeOpen`);this.builder(t+n+`{`,e,`start`);var r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,`after`)):r=this.raw(e,`after`,`emptyBody`),r&&this.builder(r),this.builder(`}`,e,`end`)},t.body=function(e){for(var t=e.nodes.length-1;t>0&&e.nodes[t].type===`comment`;)--t;for(var n=this.raw(e,`semicolon`),r=0;r<e.nodes.length;r++){var i=e.nodes[r],a=this.raw(i,`before`);a&&this.builder(a),this.stringify(i,t!==r||n)}},t.comment=function(e){var t=this.raw(e,`left`,`commentLeft`),n=this.raw(e,`right`,`commentRight`);this.builder(`/*`+t+e.text+n+`*/`,e)},t.decl=function(e,t){var n=this.raw(e,`between`,`colon`),r=e.prop+n+this.rawValue(e,`value`);e.important&&(r+=e.raws.important||` !important`),t&&(r+=`;`),this.builder(r,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,n){var r;if(n||=t,t&&(r=e.raws[t],r!==void 0))return r;var i=e.parent;if(n===`before`&&(!i||i.type===`root`&&i.first===e||i&&i.type===`document`))return``;if(!i)return Ut[n];var a=e.root();if(a.rawCache||={},a.rawCache[n]!==void 0)return a.rawCache[n];if(n===`before`||n===`after`)return this.beforeAfter(e,n);var o=`raw`+Wt(n);return this[o]?r=this[o](a,e):a.walk(function(e){if(r=e.raws[t],r!==void 0)return!1}),r===void 0&&(r=Ut[n]),a.rawCache[n]=r,r},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&e.raws.after!==void 0)return t=e.raws.after,t.includes(`
13
- `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t},t.rawBeforeComment=function(e,t){var n;return e.walkComments(function(e){if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
14
- `)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeDecl`):n&&=n.replace(/\S/g,``),n},t.rawBeforeDecl=function(e,t){var n;return e.walkDecls(function(e){if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
15
- `)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeRule`):n&&=n.replace(/\S/g,``),n},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if(e.type!==`decl`&&(t=e.raws.between,t!==void 0))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&n.raws.before!==void 0)return t=n.raws.before,t.includes(`
16
- `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(e.raws.between!==void 0)return t=e.raws.between.replace(/[^\s:]/g,``),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length===0&&(t=e.raws.after,t!==void 0))return!1}),t},t.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&n.raws.before!==void 0){var i=n.raws.before.split(`
17
- `);return t=i[i.length-1],t=t.replace(/\S/g,``),!1}}),t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&e.last.type===`decl`&&(t=e.raws.semicolon,t!==void 0))return!1}),t},t.rawValue=function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,`selector`)),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,`end`)},t.stringify=function(e,t){if(!this[e.type])throw Error(`Unknown AST node type `+e.type+`. Maybe you need to change PostCSS stringifier.`);this[e.type](e,t)},e}(),Kt=Gt;Gt.default=Gt;var qt=Kt;function Jt(e,t){new qt(t).stringify(e)}var Yt=Jt;Jt.default=Jt;var Xt=Ht.isClean,Zt=Ht.my,Qt=Vt,$t=Kt,en=Yt;function tn(e,t){var n=new e.constructor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&r!==`proxyCache`){var i=e[r],a=i===void 0?`undefined`:S(i);r===`parent`&&a===`object`?t&&(n[r]=t):r===`source`?n[r]=i:Array.isArray(i)?n[r]=i.map(function(e){return tn(e,n)}):(a===`object`&&i!==null&&(i=tn(i)),n[r]=i)}return n}var nn=function(){function e(e){for(var t in e===void 0&&(e={}),this.raws={},this[Xt]=!1,this[Zt]=!0,e)if(t===`nodes`){this.nodes=[];for(var n=C(e[t]),r;!(r=n()).done;){var i=r.value;typeof i.clone==`function`?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&`+t.input.from+`:`+t.start.line+`:`+t.start.column+`$&`)}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in e===void 0&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){e===void 0&&(e={});var t=tn(this);for(var n in e)t[n]=e[n];return t},t.cloneAfter=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(t===void 0&&(t={}),this.source){var n=this.rangeBy(t),r=n.end,i=n.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new Qt(e)},t.getProxyProcessor=function(){return{get:function(e,t){return t===`proxyOf`?e:t===`root`?function(){return e.root().toProxy()}:e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,(t===`prop`||t===`value`||t===`name`||t===`params`||t===`important`||t===`text`)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[Xt]){this[Xt]=!1;for(var e=this;e=e.parent;)e[Xt]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();var r=t.indexOf(e.word);r!==-1&&(n=this.positionInside(r,t))}return n},t.positionInside=function(e,t){for(var n=t||this.toString(),r=this.source.start.column,i=this.source.start.line,a=0;a<e;a++)n[a]===`
18
- `?(r=1,i+=1):r+=1;return{column:r,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var r=this.toString(),i=r.indexOf(e.word);i!==-1&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex==`number`?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},t.raw=function(e,t){return new $t().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){var e=[...arguments];if(this.parent){for(var t=this,n=!1,r=C(e),i;!(i=r()).done;){var a=i.value;a===this?n=!0:n?(this.parent.insertAfter(t,a),t=a):this.parent.insertBefore(t,a)}n||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&e.parent.type!==`document`;)e=e.parent;return e},t.toJSON=function(e,t){var n={},r=t==null;t||=new Map;var i=0;for(var a in this)if(Object.prototype.hasOwnProperty.call(this,a)&&a!==`parent`&&a!==`proxyCache`){var o=this[a];if(Array.isArray(o))n[a]=o.map(function(e){return(e===void 0?`undefined`:S(e))===`object`&&e.toJSON?e.toJSON(null,t):e});else if((o===void 0?`undefined`:S(o))===`object`&&o.toJSON)n[a]=o.toJSON(null,t);else if(a===`source`){var s=t.get(o.input);s??(s=i,t.set(o.input,i),i++),n[a]={end:o.end,inputId:s,start:o.start}}else n[a]=o}return r&&(n.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),n},t.toProxy=function(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache},t.toString=function(e){e===void 0&&(e=en),e.stringify&&(e=e.stringify);var t=``;return e(this,function(e){t+=e}),t},t.warn=function(e,t,n){var r={node:this};for(var i in n)r[i]=n[i];return e.warn(t,r)},m(e,[{key:`proxyOf`,get:function(){return this}}]),e}(),rn=nn;nn.default=nn;var an=function(e){_(t,e);function t(t){var n;return t&&t.value!==void 0&&typeof t.value!=`string`&&(t=h({},t,{value:String(t.value)})),n=e.call(this,t)||this,n.type=`decl`,n}return m(t,[{key:`variable`,get:function(){return this.prop.startsWith(`--`)||this.prop[0]===`$`}}]),t}(rn),on=an;an.default=an;var sn=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,cn={nanoid:function(e){e===void 0&&(e=21);for(var t=``,n=e;n--;)t+=sn[Math.random()*64|0];return t}},ln=Lt.SourceMapConsumer,un=Lt.SourceMapGenerator,dn=Lt.existsSync,fn=Lt.readFileSync,pn=Lt.dirname,mn=Lt.join;function hn(e){return t?t.from(e,`base64`).toString():window.atob(e)}var gn=function(){function e(e,t){if(t.map!==!1){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,`data:`);var n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=pn(this.mapFile)),r&&(this.text=r)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||=new ln(this.text),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return hn(e.substr(RegExp.lastMatch.length));var r=e.match(/data:application\/json;([^,]+),/)[1];throw Error(`Unsupported source map encoding `+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,``).trim()},t.isMap=function(e){return(e===void 0?`undefined`:S(e))===`object`?typeof e.mappings==`string`||typeof e._mappings==`string`||Array.isArray(e.sections):!1},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var n=e.lastIndexOf(t.pop()),r=e.indexOf(`*/`,n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}},t.loadFile=function(e){if(this.root=pn(e),dn(e))return this.mapFile=e,fn(e,`utf-8`).toString().trim()},t.loadMap=function(e,t){if(t===!1)return!1;if(t){if(typeof t==`string`)return t;if(typeof t==`function`){var n=t(e);if(n){var r=this.loadFile(n);if(!r)throw Error(`Unable to load previous source map: `+n.toString());return r}}else if(v(t,ln))return un.fromSourceMap(t).toString();else if(v(t,un))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error(`Unsupported previous source map format: `+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=mn(pn(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return e?e.substr(0,t.length)===t:!1},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),_n=gn;gn.default=gn;var vn=Lt.SourceMapConsumer,yn=Lt.SourceMapGenerator,bn=Lt.fileURLToPath,xn=Lt.pathToFileURL,Sn=Lt.isAbsolute,Cn=Lt.resolve,wn=cn.nanoid,Tn=Lt,En=Vt,Dn=_n,On=Symbol(`fromOffsetCache`),kn=!!(vn&&yn),An=!!(Cn&&Sn),jn=function(){function e(e,t){if(t===void 0&&(t={}),e==null||(e===void 0?`undefined`:S(e))===`object`&&!e.toString)throw Error(`PostCSS received `+e+` instead of CSS string`);if(this.css=e.toString(),this.css[0]===``||this.css[0]===`￾`?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(this.file=!An||/^\w+:\/\//.test(t.from)||Sn(t.from)?t.from:Cn(t.from)),An&&kn){var n=new Dn(this.css,t);if(n.text){this.map=n;var r=n.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id=`<input css `+wn(6)+`>`),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,n,r){r===void 0&&(r={});var i,a,o;if(t&&(t===void 0?`undefined`:S(t))===`object`){var s=t,c=n;if(typeof s.offset==`number`){var l=this.fromOffset(s.offset);t=l.line,n=l.col}else t=s.line,n=s.column;if(typeof c.offset==`number`){var u=this.fromOffset(c.offset);a=u.line,o=u.col}else a=c.line,o=c.column}else if(!n){var d=this.fromOffset(t);t=d.line,n=d.col}var f=this.origin(t,n,a,o);return i=f?new En(e,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,r.plugin):new En(e,a===void 0?t:{column:n,line:t},a===void 0?n:{column:o,line:a},this.css,this.file,r.plugin),i.input={column:n,endColumn:o,endLine:a,line:t,source:this.css},this.file&&(xn&&(i.input.url=xn(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,n;if(this[On])n=this[On];else{var r=this.css.split(`
19
- `);n=Array(r.length);for(var i=0,a=0,o=r.length;a<o;a++)n[a]=i,i+=r[a].length+1;this[On]=n}t=n[n.length-1];var s=0;if(e>=t)s=n.length-1;else for(var c=n.length-2,l;s<c;)if(l=s+(c-s>>1),e<n[l])c=l-1;else if(e>=n[l+1])s=l+1;else{s=l;break}return{col:e-n[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Cn(this.map.consumer().sourceRoot||this.map.root||`.`,e)},t.origin=function(e,t,n,r){if(!this.map)return!1;var i=this.map.consumer(),a=i.originalPositionFor({column:t,line:e});if(!a.source)return!1;var o;typeof n==`number`&&(o=i.originalPositionFor({column:r,line:n}));var s=Sn(a.source)?xn(a.source):new URL(a.source,this.map.consumer().sourceRoot||xn(this.map.mapFile)),c={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:s.toString()};if(s.protocol===`file:`){if(bn)c.file=bn(s);else throw Error(`file: protocol is not available in this PostCSS build`)}var l=i.sourceContentFor(a.source);return l&&(c.source=l),c},t.toJSON=function(){for(var e={},t=0,n=[`hasBOM`,`css`,`file`,`id`];t<n.length;t++){var r=n[t];this[r]!=null&&(e[r]=this[r])}return this.map&&(e.map=h({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},m(e,[{key:`from`,get:function(){return this.file||this.id}}]),e}(),Mn=jn;jn.default=jn,Tn&&Tn.registerInput&&Tn.registerInput(jn);var Nn=Lt.SourceMapConsumer,Pn=Lt.SourceMapGenerator,Fn=Lt.dirname,In=Lt.relative,Ln=Lt.resolve,Rn=Lt.sep,zn=Lt.pathToFileURL,Bn=Mn,Vn=!!(Nn&&Pn),Hn=!!(Fn&&Ln&&In&&Rn),Un=function(){function e(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=e.prototype;return n.addAnnotation=function(){var e=this.isInline()?`data:application/json;base64,`+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation==`string`?this.mapOpts.annotation:typeof this.mapOpts.annotation==`function`?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+`.map`,t=`
20
- `;this.css.includes(`\r
21
- `)&&(t=`\r
22
- `),this.css+=t+`/*# sourceMappingURL=`+e+` */`},n.applyPrevMaps=function(){for(var e=C(this.previous()),t;!(t=e()).done;){var n=t.value,r=this.toUrl(this.path(n.file)),i=n.root||Fn(n.file),a=void 0;this.mapOpts.sourcesContent===!1?(a=new Nn(n.text),a.sourcesContent&&(a.sourcesContent=null)):a=n.consumer(),this.map.applySourceMap(a,r,this.toUrl(this.path(i)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1){if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type===`comment`&&e.text.indexOf(`# sourceMappingURL=`)===0&&this.root.removeChild(t);else this.css&&=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,``)}},n.generate=function(){if(this.clearAnnotation(),Hn&&Vn&&this.isMap())return this.generateMap();var e=``;return this.stringify(this.root,function(t){e+=t}),[e]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Pn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Pn({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},n.generateString=function(){var e=this;this.css=``,this.map=new Pn({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,n=1,r=`<no source>`,i={generated:{column:0,line:0},original:{column:0,line:0},source:``},a,o;this.stringify(this.root,function(s,c,l){if(e.css+=s,c&&l!==`end`&&(i.generated.line=t,i.generated.column=n-1,c.source&&c.source.start?(i.source=e.sourcePath(c),i.original.line=c.source.start.line,i.original.column=c.source.start.column-1,e.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,e.map.addMapping(i))),a=s.match(/\n/g),a?(t+=a.length,o=s.lastIndexOf(`
23
- `),n=s.length-o):n+=s.length,c&&l!==`start`){var u=c.parent||{raws:{}};(!(c.type===`decl`||c.type===`atrule`&&!c.nodes)||c!==u.last||u.raws.semicolon)&&(c.source&&c.source.end?(i.source=e.sourcePath(c),i.original.line=c.source.end.line,i.original.column=c.source.end.column-1,i.generated.line=t,i.generated.column=n-2,e.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=t,i.generated.column=n-1,e.map.addMapping(i)))}})},n.isAnnotation=function(){return this.isInline()?!0:this.mapOpts.annotation===void 0?!this.previous().length||this.previous().some(function(e){return e.annotation}):this.mapOpts.annotation},n.isInline=function(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;var e=this.mapOpts.annotation;return e!==void 0&&e!==!0?!1:!this.previous().length||this.previous().some(function(e){return e.inline})},n.isMap=function(){return this.opts.map===void 0?this.previous().length>0:!!this.opts.map},n.isSourcesContent=function(){return this.mapOpts.sourcesContent===void 0?!this.previous().length||this.previous().some(function(e){return e.withContent()}):this.mapOpts.sourcesContent},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):`to.css`},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var n=this.opts.to?Fn(this.opts.to):`.`;typeof this.mapOpts.annotation==`string`&&(n=Fn(Ln(n,this.mapOpts.annotation)));var r=In(n,e);return this.memoizedPaths.set(e,r),r},n.previous=function(){var e=this;if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;e.previousMaps.includes(n)||e.previousMaps.push(n)}});else{var t=new Bn(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}}return this.previousMaps},n.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var i=e.usesFileUrls?e.toFileUrl(r):e.toUrl(e.path(r));e.map.setSourceContent(i,n.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`;this.map.setSourceContent(n,this.css)}},n.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},n.toBase64=function(e){return t?t.from(e).toString(`base64`):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(zn){var n=zn(e).toString();return this.memoizedFileURLs.set(e,n),n}throw Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;Rn===`\\`&&(e=e.replace(/\\/g,`/`));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},e}(),Wn=function(e){_(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`comment`,n}return t}(rn),Gn=Wn;Wn.default=Wn;var Kn=Ht.isClean,qn=Ht.my,Jn=on,Yn=Gn,Xn=rn,Zn,Qn,$n,er;function tr(e){return e.map(function(e){return e.nodes&&=tr(e.nodes),delete e.source,e})}function nr(e){if(e[Kn]=!1,e.proxyOf.nodes)for(var t=C(e.proxyOf.nodes),n;!(n=t()).done;){var r=n.value;nr(r)}}var rr=function(e){_(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.append=function(){for(var e=C([...arguments]),t;!(t=e()).done;)for(var n=t.value,r=C(this.normalize(n,this.last)),i;!(i=r()).done;){var a=i.value;this.proxyOf.nodes.push(a)}return this.markDirty(),this},n.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var n=C(this.nodes),r;!(r=n()).done;)r.value.cleanRaws(t)},n.each=function(e){if(this.proxyOf.nodes){for(var t=this.getIterator(),n,r;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}},n.every=function(e){return this.nodes.every(e)},n.getIterator=function(){this.lastEach||=0,this.indexes||={},this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},n.getProxyProcessor=function(){return{get:function(e,t){return t===`proxyOf`?e:e[t]?t===`each`||typeof t==`string`&&t.startsWith(`walk`)?function(){var n=[...arguments],r;return(r=e)[t].apply(r,[].concat(n.map(function(e){return typeof e==`function`?function(t,n){return e(t.toProxy(),n)}:e})))}:t===`every`||t===`some`?function(n){return e[t](function(e){var t=[...arguments].slice(1);return n.apply(void 0,[e.toProxy()].concat(t))})}:t===`root`?function(){return e.root().toProxy()}:t===`nodes`?e.nodes.map(function(e){return e.toProxy()}):t===`first`||t===`last`?e[t].toProxy():e[t]:e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,(t===`name`||t===`params`||t===`selector`)&&e.markDirty(),!0)}}},n.index=function(e){return typeof e==`number`?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},n.insertAfter=function(e,t){var n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var i=C(r),a;!(a=i()).done;){var o=a.value;this.proxyOf.nodes.splice(n+1,0,o)}var s;for(var c in this.indexes)s=this.indexes[c],n<s&&(this.indexes[c]=s+r.length);return this.markDirty(),this},n.insertBefore=function(e,t){var n=this.index(e),r=n===0&&`prepend`,i=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(var a=C(i),o;!(o=a()).done;){var s=o.value;this.proxyOf.nodes.splice(n,0,s)}var c;for(var l in this.indexes)c=this.indexes[l],n<=c&&(this.indexes[l]=c+i.length);return this.markDirty(),this},n.normalize=function(e,n){var r=this;if(typeof e==`string`)e=tr(Zn(e).nodes);else if(e===void 0)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i=C(e),a;!(a=i()).done;){var o=a.value;o.parent&&o.parent.removeChild(o,`ignore`)}}else if(e.type===`root`&&this.type!==`document`){e=e.nodes.slice(0);for(var s=C(e),c;!(c=s()).done;){var l=c.value;l.parent&&l.parent.removeChild(l,`ignore`)}}else if(e.type)e=[e];else if(e.prop){if(e.value===void 0)throw Error(`Value field is missed in node creation`);typeof e.value!=`string`&&(e.value=String(e.value)),e=[new Jn(e)]}else if(e.selector)e=[new Qn(e)];else if(e.name)e=[new $n(e)];else if(e.text)e=[new Yn(e)];else throw Error(`Unknown node type in node creation`);return e.map(function(e){return e[qn]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[Kn]&&nr(e),e.raws.before===void 0&&n&&n.raws.before!==void 0&&(e.raws.before=n.raws.before.replace(/\S/g,``)),e.parent=r.proxyOf,e})},n.prepend=function(){var e=[...arguments];e=e.reverse();for(var t=C(e),n;!(n=t()).done;){for(var r=n.value,i=this.normalize(r,this.first,`prepend`).reverse(),a=C(i),o;!(o=a()).done;){var s=o.value;this.proxyOf.nodes.unshift(s)}for(var c in this.indexes)this.indexes[c]=this.indexes[c]+i.length}return this.markDirty(),this},n.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},n.removeAll=function(){for(var e=C(this.proxyOf.nodes),t;!(t=e()).done;){var n=t.value;n.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},n.removeChild=function(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);var t;for(var n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this},n.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls(function(r){(!t.props||t.props.includes(r.prop))&&(!t.fast||r.value.includes(t.fast))&&(r.value=r.value.replace(e,n))}),this.markDirty(),this},n.some=function(e){return this.nodes.some(e)},n.walk=function(e){return this.each(function(t,n){var r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return r!==!1&&t.walk&&(r=t.walk(e)),r})},n.walkAtRules=function(e,t){return t?v(e,RegExp)?this.walk(function(n,r){if(n.type===`atrule`&&e.test(n.name))return t(n,r)}):this.walk(function(n,r){if(n.type===`atrule`&&n.name===e)return t(n,r)}):(t=e,this.walk(function(e,n){if(e.type===`atrule`)return t(e,n)}))},n.walkComments=function(e){return this.walk(function(t,n){if(t.type===`comment`)return e(t,n)})},n.walkDecls=function(e,t){return t?v(e,RegExp)?this.walk(function(n,r){if(n.type===`decl`&&e.test(n.prop))return t(n,r)}):this.walk(function(n,r){if(n.type===`decl`&&n.prop===e)return t(n,r)}):(t=e,this.walk(function(e,n){if(e.type===`decl`)return t(e,n)}))},n.walkRules=function(e,t){return t?v(e,RegExp)?this.walk(function(n,r){if(n.type===`rule`&&e.test(n.selector))return t(n,r)}):this.walk(function(n,r){if(n.type===`rule`&&n.selector===e)return t(n,r)}):(t=e,this.walk(function(e,n){if(e.type===`rule`)return t(e,n)}))},m(t,[{key:`first`,get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:`last`,get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(Xn);rr.registerParse=function(e){Zn=e},rr.registerRule=function(e){Qn=e},rr.registerAtRule=function(e){$n=e},rr.registerRoot=function(e){er=e};var ir=rr;rr.default=rr,rr.rebuild=function(e){e.type===`atrule`?Object.setPrototypeOf(e,$n.prototype):e.type===`rule`?Object.setPrototypeOf(e,Qn.prototype):e.type===`decl`?Object.setPrototypeOf(e,Jn.prototype):e.type===`comment`?Object.setPrototypeOf(e,Yn.prototype):e.type===`root`&&Object.setPrototypeOf(e,er.prototype),e[qn]=!0,e.nodes&&e.nodes.forEach(function(e){rr.rebuild(e)})};var ar=ir,or,sr,cr=function(e){_(t,e);function t(t){var n=e.call(this,h({type:`document`},t))||this;return n.nodes||=[],n}var n=t.prototype;return n.toResult=function(e){return e===void 0&&(e={}),new or(new sr,this,e).stringify()},t}(ar);cr.registerLazyResult=function(e){or=e},cr.registerProcessor=function(e){sr=e};var lr=cr;cr.default=cr;var ur=function(){function e(e,t){if(t===void 0&&(t={}),this.type=`warning`,this.text=e,t.node&&t.node.source){var n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var r in t)this[r]=t[r]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+`: `+this.text:this.text},e}(),dr=ur;ur.default=ur;var fr=dr,pr=function(){function e(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new fr(e,t);return this.messages.push(n),n},t.warnings=function(){return this.messages.filter(function(e){return e.type===`warning`})},m(e,[{key:`content`,get:function(){return this.css}}]),e}(),mr=pr;pr.default=pr;var hr=39,gr=34,_r=92,vr=47,yr=10,br=32,xr=12,Sr=9,Cr=13,wr=91,Tr=93,Er=40,Dr=41,Or=123,kr=125,Ar=59,jr=42,Mr=58,Nr=64,Pr=/[\t\n\f\r "#'()/;[\\\]{}]/g,Fr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ir=/.[\r\n"'(/\\]/,Lr=/[\da-f]/i,Rr=function(e,t){t===void 0&&(t={});var n=e.css.valueOf(),r=t.ignoreErrors,i,a,o,s,c,l,u,d,f,p,m=n.length,h=0,g=[],_=[];function v(){return h}function y(t){throw e.error(`Unclosed `+t,h)}function b(){return _.length===0&&h>=m}function x(e){if(_.length)return _.pop();if(!(h>=m)){var t=e?e.ignoreUnclosed:!1;switch(i=n.charCodeAt(h),i){case yr:case br:case Sr:case Cr:case xr:a=h;do a+=1,i=n.charCodeAt(a);while(i===br||i===yr||i===Sr||i===Cr||i===xr);p=[`space`,n.slice(h,a)],h=a-1;break;case wr:case Tr:case Or:case kr:case Mr:case Ar:case Dr:var v=String.fromCharCode(i);p=[v,v,h];break;case Er:if(d=g.length?g.pop()[1]:``,f=n.charCodeAt(h+1),d===`url`&&f!==hr&&f!==gr&&f!==br&&f!==yr&&f!==Sr&&f!==xr&&f!==Cr){a=h;do{if(l=!1,a=n.indexOf(`)`,a+1),a===-1){if(r||t){a=h;break}y(`bracket`)}for(u=a;n.charCodeAt(u-1)===_r;)--u,l=!l}while(l);p=[`brackets`,n.slice(h,a+1),h,a],h=a}else a=n.indexOf(`)`,h+1),s=n.slice(h,a+1),a===-1||Ir.test(s)?p=[`(`,`(`,h]:(p=[`brackets`,s,h,a],h=a);break;case hr:case gr:o=i===hr?`'`:`"`,a=h;do{if(l=!1,a=n.indexOf(o,a+1),a===-1){if(r||t){a=h+1;break}y(`string`)}for(u=a;n.charCodeAt(u-1)===_r;)--u,l=!l}while(l);p=[`string`,n.slice(h,a+1),h,a],h=a;break;case Nr:Pr.lastIndex=h+1,Pr.test(n),a=Pr.lastIndex===0?n.length-1:Pr.lastIndex-2,p=[`at-word`,n.slice(h,a+1),h,a],h=a;break;case _r:for(a=h,c=!0;n.charCodeAt(a+1)===_r;)a+=1,c=!c;if(i=n.charCodeAt(a+1),c&&i!==vr&&i!==br&&i!==yr&&i!==Sr&&i!==Cr&&i!==xr&&(a+=1,Lr.test(n.charAt(a)))){for(;Lr.test(n.charAt(a+1));)a+=1;n.charCodeAt(a+1)===br&&(a+=1)}p=[`word`,n.slice(h,a+1),h,a],h=a;break;default:i===vr&&n.charCodeAt(h+1)===jr?(a=n.indexOf(`*/`,h+2)+1,a===0&&(r||t?a=n.length:y(`comment`)),p=[`comment`,n.slice(h,a+1),h,a],h=a):(Fr.lastIndex=h+1,Fr.test(n),a=Fr.lastIndex===0?n.length-1:Fr.lastIndex-2,p=[`word`,n.slice(h,a+1),h,a],g.push(p),h=a)}return h++,p}}function S(e){_.push(e)}return{back:S,endOfFile:b,nextToken:x,position:v}},zr=ir,Br=function(e){_(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`atrule`,n}var n=t.prototype;return n.append=function(){var t=[...arguments],n;return this.proxyOf.nodes||(this.nodes=[]),(n=e.prototype.append).call.apply(n,[this].concat(t))},n.prepend=function(){var t=[...arguments],n;return this.proxyOf.nodes||(this.nodes=[]),(n=e.prototype.prepend).call.apply(n,[this].concat(t))},t}(zr),Vr=Br;Br.default=Br,zr.registerAtRule(Br);var Hr=ir,Ur,Wr,Gr=function(e){_(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`root`,n.nodes||=[],n}var n=t.prototype;return n.normalize=function(t,n,r){var i=e.prototype.normalize.call(this,t);if(n){if(r===`prepend`)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var a=C(i),o;!(o=a()).done;){var s=o.value;s.raws.before=n.raws.before}}return i},n.removeChild=function(t,n){var r=this.index(t);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},n.toResult=function(e){return e===void 0&&(e={}),new Ur(new Wr,this,e).stringify()},t}(Hr);Gr.registerLazyResult=function(e){Ur=e},Gr.registerProcessor=function(e){Wr=e};var Kr=Gr;Gr.default=Gr,Hr.registerRoot(Gr);var qr={comma:function(e){return qr.split(e,[`,`],!0)},space:function(e){return qr.split(e,[` `,`
24
- `,` `])},split:function(e,t,n){for(var r=[],i=``,a=!1,o=0,s=!1,c=``,l=!1,u=C(e),d;!(d=u()).done;){var f=d.value;l?l=!1:f===`\\`?l=!0:s?f===c&&(s=!1):f===`"`||f===`'`?(s=!0,c=f):f===`(`?o+=1:f===`)`?o>0&&--o:o===0&&t.includes(f)&&(a=!0),a?(i!==``&&r.push(i.trim()),i=``,a=!1):i+=f}return(n||i!==``)&&r.push(i.trim()),r}},Jr=qr;qr.default=qr;var Yr=ir,Xr=Jr,Zr=function(e){_(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`rule`,n.nodes||=[],n}return m(t,[{key:`selectors`,get:function(){return Xr.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:`,`+this.raw(`between`,`beforeOpen`);this.selector=e.join(n)}}]),t}(Yr),Qr=Zr;Zr.default=Zr,Yr.registerRule(Zr);var $r=on,ei=Rr,ti=Gn,ni=Vr,ri=Kr,ii=Qr,ai={empty:!0,space:!0};function oi(e){for(var t=e.length-1;t>=0;t--){var n=e[t],r=n[3]||n[2];if(r)return r}}var si=function(){function e(e){this.input=e,this.root=new ri,this.current=this.root,this.spaces=``,this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t=new ni;t.name=e[1].slice(1),t.name===``&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,r,i,a=!1,o=!1,s=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n===`(`||n===`[`?c.push(n===`(`?`)`:`]`):n===`{`&&c.length>0?c.push(`}`):n===c[c.length-1]&&c.pop(),c.length===0){if(n===`;`){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}if(n===`{`){o=!0;break}if(n===`}`){if(s.length>0){for(i=s.length-1,r=s[i];r&&r[0]===`space`;)r=s[--i];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}s.push(e)}else s.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(t.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(t,`params`,s),a&&(e=s[s.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=``)):(t.raws.afterName=``,t.params=``),o&&(t.nodes=[],this.current=t)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,r,i=t-1;i>=0&&(r=e[i],!(r[0]!==`space`&&(n+=1,n===2)));i--);throw this.input.error(`Missed semicolon`,r[0]===`word`?r[3]+1:r[2])}},t.colon=function(e){for(var t=0,n,r,i,a=C(e.entries()),o;!(o=a()).done;){var s=o.value,c=s[0];if(n=s[1],r=n[0],r===`(`&&(t+=1),r===`)`&&--t,t===0&&r===`:`){if(!i)this.doubleColon(n);else if(i[0]===`word`&&i[1]===`progid`)continue;else return c}i=n}return!1},t.comment=function(e){var t=new ti;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text=``,t.raws.left=n,t.raws.right=``;else{var r=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},t.createTokenizer=function(){this.tokenizer=ei(this.input)},t.decl=function(e,t){var n=new $r;this.init(n,e[0][2]);var r=e[e.length-1];for(r[0]===`;`&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||oi(e)),n.source.end.offset++;e[0][0]!==`word`;)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop=``;e.length;){var i=e[0][0];if(i===`:`||i===`space`||i===`comment`)break;n.prop+=e.shift()[1]}n.raws.between=``;for(var a;e.length;){if(a=e.shift(),a[0]===`:`){n.raws.between+=a[1];break}a[0]===`word`&&/\w/.test(a[1])&&this.unknownWord([a]),n.raws.between+=a[1]}(n.prop[0]===`_`||n.prop[0]===`*`)&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var o=[],s;e.length&&(s=e[0][0],s===`space`||s===`comment`);)o.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(a=e[c],a[1].toLowerCase()===`!important`){n.important=!0;var l=this.stringFrom(e,c);l=this.spacesFromEnd(e)+l,l!==` !important`&&(n.raws.important=l);break}if(a[1].toLowerCase()===`important`){for(var u=e.slice(0),d=``,f=c;f>0;f--){var p=u[f][0];if(d.trim().indexOf(`!`)===0&&p!==`space`)break;d=u.pop()[1]+d}d.trim().indexOf(`!`)===0&&(n.important=!0,n.raws.important=d,e=u)}if(a[0]!==`space`&&a[0]!==`comment`)break}e.some(function(e){return e[0]!==`space`&&e[0]!==`comment`})&&(n.raws.between+=o.map(function(e){return e[1]}).join(``),o=[]),this.raw(n,`value`,o.concat(e),t),n.value.includes(`:`)&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error(`Double colon`,{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new ii;this.init(t,e[2]),t.selector=``,t.raws.between=``,this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.spaces=``,this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&t.type===`rule`&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces=``)}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces=``,e.type!==`comment`&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith(`--`),s=[],c=e;c;){if(n=c[0],s.push(c),n===`(`||n===`[`)i||=c,a.push(n===`(`?`)`:`]`);else if(o&&r&&n===`{`)i||=c,a.push(`}`);else if(a.length===0){if(n===`;`){if(r){this.decl(s,o);return}break}if(n===`{`){this.rule(s);return}if(n===`}`){this.tokenizer.back(s.pop()),t=!0;break}n===`:`&&(r=!0)}else n===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&(c=s[s.length-1][0],c===`space`||c===`comment`);)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case`space`:this.spaces+=e[1];break;case`;`:this.freeSemicolon(e);break;case`}`:this.end(e);break;case`comment`:this.comment(e);break;case`at-word`:this.atrule(e);break;case`{`:this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,n,r){for(var i,a,o=n.length,s=``,c=!0,l,u,d=0;d<o;d+=1)i=n[d],a=i[0],a===`space`&&d===o-1&&!r?c=!1:a===`comment`?(u=n[d-1]?n[d-1][0]:`empty`,l=n[d+1]?n[d+1][0]:`empty`,!ai[u]&&!ai[l]?s.slice(-1)===`,`?c=!1:s+=i[1]:c=!1):s+=i[1];if(!c){var f=n.reduce(function(e,t){return e+t[1]},``);e.raws[t]={raw:f,value:s}}e[t]=s},t.rule=function(e){e.pop();var t=new ii;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,`selector`,e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,n=``;e.length&&(t=e[e.length-1][0],t===`space`||t===`comment`);)n=e.pop()[1]+n;return n},t.spacesAndCommentsFromStart=function(e){for(var t,n=``;e.length&&(t=e[0][0],t===`space`||t===`comment`);)n+=e.shift()[1];return n},t.spacesFromEnd=function(e){for(var t,n=``;e.length&&(t=e[e.length-1][0],t===`space`);)n=e.pop()[1]+n;return n},t.stringFrom=function(e,t){for(var n=``,r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error(`Unclosed block`,e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error(`Unclosed bracket`,{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error(`Unexpected }`,{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error(`Unknown word`,{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error(`At-rule without name`,{offset:t[2]},{offset:t[2]+t[1].length})},e}(),ci=ir,li=si,ui=Mn;function di(e,t){var n=new li(new ui(e,t));try{n.parse()}catch(e){throw e}return n.root}var fi=di;di.default=di,ci.registerParse(di);var pi=Ht.isClean,mi=Ht.my,hi=Un,gi=Yt,_i=ir,vi=lr,yi=mr,bi=fi,xi=Kr,Si={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},Ci={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},wi={Once:!0,postcssPlugin:!0,prepare:!0},Ti=0;function Ei(e){return(e===void 0?`undefined`:S(e))===`object`&&typeof e.then==`function`}function Di(e){var t=!1,n=Si[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,Ti,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,Ti,n+`Exit`]:[n,n+`Exit`]}function Oi(e){return{eventIndex:0,events:e.type===`document`?[`Document`,Ti,`DocumentExit`]:e.type===`root`?[`Root`,Ti,`RootExit`]:Di(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function ki(e){return e[pi]=!1,e.nodes&&e.nodes.forEach(function(e){return ki(e)}),e}var Ai={},ji=function(){function e(t,n,r){var i=this;this.stringified=!1,this.processed=!1;var a;if((n===void 0?`undefined`:S(n))===`object`&&n!==null&&(n.type===`root`||n.type===`document`))a=ki(n);else if(v(n,e)||v(n,yi))a=ki(n.root),n.map&&(r.map===void 0&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var o=bi;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{a=o(n,r)}catch(e){this.processed=!0,this.error=e}a&&!a[mi]&&_i.rebuild(a)}this.result=new yi(t,a,r),this.helpers=h({},Ai,{postcss:Ai,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(e===void 0?`undefined`:S(e))===`object`&&e.prepare?h({},e,e.prepare(i.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||=this.runAsync(),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error(`Use process(css).then(cb) to work with async plugins`)},t.handleError=function(e,t){var n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch{}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(t,n,r){e.listeners[n]||(e.listeners[n]=[]),e.listeners[n].push([t,r])},n=C(this.plugins),r;!(r=n()).done;){var i=r.value;if((i===void 0?`undefined`:S(i))===`object`)for(var a in i){if(!Ci[a]&&/^[A-Z]/.test(a))throw Error(`Unknown event `+a+` in `+i.postcssPlugin+`. Try to update PostCSS (`+this.processor.version+` now).`);if(!wi[a]){if(S(i[a])===`object`)for(var o in i[a])o===`*`?t(i,a,i[a][o]):t(i,a+`-`+o.toLowerCase(),i[a][o]);else typeof i[a]==`function`&&t(i,a,i[a])}}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return d(function(){var t,n,r,i,a,o,s,c,l,u,d,f;return re(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],r=e.runOnRoot(n),!Ei(r))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,r];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];a=e.result.root,p.label=7;case 7:if(a[pi])return[3,14];a[pi]=!0,o=[Oi(a)],p.label=8;case 8:if(!(o.length>0))return[3,13];if(s=e.visitTick(o),!Ei(s))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,s];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),l=o[o.length-1].node,e.handleError(c,l);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,n,r,i,o;return re(this,function(s){switch(s.label){case 0:t=f.value,n=t[0],r=t[1],e.result.lastPlugin=n,s.label=1;case 1:return s.trys.push([1,6,,7]),a.type===`document`?(i=a.nodes.map(function(t){return r(t,e.helpers)}),[4,Promise.all(i)]):[3,3];case 2:return s.sent(),[3,5];case 3:return[4,r(a,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw o=s.sent(),e.handleError(o);case 7:return[2]}})},d=C(e.listeners.OnceExit),p.label=15;case 15:return(f=d()).done?[3,18]:[5,ie(u())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((e===void 0?`undefined`:S(e))===`object`&&e.Once){if(this.result.root.type===`document`){var n=this.result.root.nodes.map(function(n){return e.Once(n,t.helpers)});return Ei(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}if(typeof e==`function`)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=gi;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new hi(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=C(this.plugins),t;!(t=e()).done;){var n=t.value;if(Ei(this.runOnRoot(n)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[pi];)r[pi]=!0,this.walkSync(r);if(this.listeners.OnceExit){if(r.type===`document`)for(var i=C(r.nodes),a;!(a=i()).done;){var o=a.value;this.visitSync(this.listeners.OnceExit,o)}else this.visitSync(this.listeners.OnceExit,r)}}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var n=C(e),r;!(r=n()).done;){var i=r.value,a=i[0],o=i[1];this.result.lastPlugin=a;var s=void 0;try{s=o(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(Ei(s))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],n=t.node,r=t.visitors;if(n.type!==`root`&&n.type!==`document`&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){var i=r[t.visitorIndex],a=i[0],o=i[1];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=a;try{return o(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(t.iterator!==0){for(var s=t.iterator,c;c=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!c[pi]){c[pi]=!0,e.push(Oi(c));return}t.iterator=0,delete n.indexes[s]}for(var l=t.events;t.eventIndex<l.length;){var u=l[t.eventIndex];if(t.eventIndex+=1,u===Ti){n.nodes&&n.nodes.length&&(n[pi]=!0,t.iterator=n.getIterator());return}if(this.listeners[u]){t.visitors=this.listeners[u];return}}e.pop()},t.walkSync=function(e){var t=this;e[pi]=!0;for(var n=C(Di(e)),r;!(r=n()).done;){var i=r.value;if(i===Ti)e.nodes&&e.each(function(e){e[pi]||t.walkSync(e)});else{var a=this.listeners[i];if(a&&this.visitSync(a,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},m(e,[{key:`content`,get:function(){return this.stringify().content}},{key:`css`,get:function(){return this.stringify().css}},{key:`map`,get:function(){return this.stringify().map}},{key:`messages`,get:function(){return this.sync().messages}},{key:`opts`,get:function(){return this.result.opts}},{key:`processor`,get:function(){return this.result.processor}},{key:`root`,get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return`LazyResult`}}]),e}();ji.registerPostcss=function(e){Ai=e};var Mi=ji;ji.default=ji,xi.registerLazyResult(ji),vi.registerLazyResult(ji);var Ni=Un,Pi=Yt,Fi=fi,Ii=mr,Li=function(){function e(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;var r,i=Pi;this.result=new Ii(this._processor,r,this._opts),this.result.css=t;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var o=new Ni(i,r,this._opts,t);if(o.isMap()){var s=o.generate(),c=s[0],l=s[1];c&&(this.result.css=c),l&&(this.result.map=l)}else o.clearAnnotation(),this.result.css=o.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},m(e,[{key:`content`,get:function(){return this.result.css}},{key:`css`,get:function(){return this.result.css}},{key:`map`,get:function(){return this.result.map}},{key:`messages`,get:function(){return[]}},{key:`opts`,get:function(){return this.result.opts}},{key:`processor`,get:function(){return this.result.processor}},{key:`root`,get:function(){if(this._root)return this._root;var e,t=Fi;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return`NoWorkResult`}}]),e}(),Ri=Li;Li.default=Li;var zi=Ri,Bi=Mi,Vi=lr,Hi=Kr,Ui=function(){function e(e){e===void 0&&(e=[]),this.version=`8.4.38`,this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t=[],n=C(e),r;!(r=n()).done;){var i=r.value;if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),(i===void 0?`undefined`:S(i))===`object`&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if((i===void 0?`undefined`:S(i))===`object`&&i.postcssPlugin)t.push(i);else if(typeof i==`function`)t.push(i);else if((i===void 0?`undefined`:S(i))!==`object`||!i.parse&&!i.stringify)throw Error(i+` is not a PostCSS plugin`)}return t},t.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new zi(this,e,t):new Bi(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Wi=Ui;Ui.default=Ui,Hi.registerProcessor(Ui),Vi.registerProcessor(Ui);var Gi=on,Ki=_n,qi=Gn,Ji=Vr,Yi=Mn,Xi=Kr,Zi=Qr;function Qi(e,t){if(Array.isArray(e))return e.map(function(e){return Qi(e)});var n=e.inputs,r=b(e,[`inputs`]);if(n){t=[];for(var i=C(n),a;!(a=i()).done;){var o=a.value,s=h({},o,{__proto__:Yi.prototype});s.map&&=h({},s.map,{__proto__:Ki.prototype}),t.push(s)}}if(r.nodes&&=e.nodes.map(function(e){return Qi(e,t)}),r.source){var c=r.source,l=c.inputId;r.source=b(c,[`inputId`]),l!=null&&(r.source.input=t[l])}if(r.type===`root`)return new Xi(r);if(r.type===`decl`)return new Gi(r);if(r.type===`rule`)return new Zi(r);if(r.type===`comment`)return new qi(r);if(r.type===`atrule`)return new Ji(r);throw Error(`Unknown node type: `+e.type)}var $i=Qi;Qi.default=Qi;var ea=Vt,ta=on,na=Mi,ra=ir,ia=Wi,aa=Yt,oa=$i,sa=lr,ca=dr,la=Gn,ua=Vr,da=mr,fa=Mn,pa=fi,ma=Jr,ha=Qr,ga=Kr,_a=rn;function A(){var e=[...arguments];return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new ia(e)}A.plugin=function(e,t){var n=!1;function r(){var r=[...arguments];console&&console.warn&&!n&&(n=!0,{}.LANG&&{}.LANG.startsWith(`cn`));var i=t.apply(void 0,[].concat(r));return i.postcssPlugin=e,i.postcssVersion=new ia().version,i}var i;return Object.defineProperty(r,"postcss",{get:function(){return i||=r(),i}}),r.process=function(e,t,n){return A([r(n)]).process(e,t)},r},A.stringify=aa,A.parse=pa,A.fromJSON=oa,A.list=ma,A.comment=function(e){return new la(e)},A.atRule=function(e){return new ua(e)},A.decl=function(e){return new ta(e)},A.rule=function(e){return new ha(e)},A.root=function(e){return new ga(e)},A.document=function(e){return new sa(e)},A.CssSyntaxError=ea,A.Declaration=ta,A.Container=ra,A.Processor=ia,A.Document=sa,A.Comment=la,A.Warning=ca,A.AtRule=ua,A.Result=da,A.Input=fa,A.Rule=ha,A.Root=ga,A.Node=_a,na.registerPostcss(A);var va=A;A.default=A;var j=Mt(va);j.stringify,j.fromJSON,j.plugin,j.parse,j.list,j.document,j.comment,j.atRule,j.rule,j.decl,j.root,j.CssSyntaxError,j.Declaration,j.Container,j.Processor,j.Document,j.Comment,j.Warning,j.AtRule,j.Result,j.Input,j.Rule,j.Root,j.Node;var ya=Object.defineProperty,ba=function(e,t,n){return t in e?ya(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},xa=function(e,t,n){return ba(e,(t===void 0?`undefined`:S(t))===`symbol`?t:t+``,n)};function Sa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Ca(e){if(e.__esModule)return e;var t=e.default;if(typeof t==`function`){var n=function e(){return v(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var wa={exports:{}},M=String,Ta=function(){return{isColorSupported:!1,reset:M,bold:M,dim:M,italic:M,underline:M,inverse:M,hidden:M,strikethrough:M,black:M,red:M,green:M,yellow:M,blue:M,magenta:M,cyan:M,white:M,gray:M,bgBlack:M,bgRed:M,bgGreen:M,bgYellow:M,bgBlue:M,bgMagenta:M,bgCyan:M,bgWhite:M}};wa.exports=Ta(),wa.exports.createColors=Ta;var Ea=wa.exports,Da=Ca(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:`Module`}))),Oa=Ea,ka=Da,Aa=function(e){_(t,e);function t(n,r,i,a,o,s){var c=e.call(this,n)||this;return c.name=`CssSyntaxError`,c.reason=n,o&&(c.file=o),a&&(c.source=a),s&&(c.plugin=s),r!==void 0&&i!==void 0&&(typeof r==`number`?(c.line=r,c.column=i):(c.line=r.line,c.column=r.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}var n=t.prototype;return n.setMessage=function(){this.message=this.plugin?this.plugin+`: `:``,this.message+=this.file?this.file:`<css input>`,this.line!==void 0&&(this.message+=`:`+this.line+`:`+this.column),this.message+=`: `+this.reason},n.showSourceCode=function(e){var t=this;if(!this.source)return``;var n=this.source;e??=Oa.isColorSupported,ka&&e&&(n=ka(n));var r=n.split(/\r?\n/),i=Math.max(this.line-3,0),a=Math.min(this.line+2,r.length),o=String(a).length,s,c;if(e){var l=Oa.createColors(!0),u=l.bold,d=l.gray,f=l.red;s=function(e){return u(f(e))},c=function(e){return d(e)}}else s=c=function(e){return e};return r.slice(i,a).map(function(e,n){var r=i+1+n,a=` `+(` `+r).slice(-o)+` | `;if(r===t.line){var l=c(a.replace(/\d/g,` `))+e.slice(0,t.column-1).replace(/[^\t]/g,` `);return s(`>`)+c(a)+e+`
25
- `+l+s(`^`)}return` `+c(a)+e}).join(`
26
- `)},n.toString=function(){var e=this.showSourceCode();return e&&=`
27
-
28
- `+e+`
29
- `,this.name+`: `+this.message+e},t}(te(Error)),ja=Aa;Aa.default=Aa;var Ma={};Ma.isClean=Symbol(`isClean`),Ma.my=Symbol(`my`);var Na={after:`
30
- `,beforeClose:`
31
- `,beforeComment:`
32
- `,beforeDecl:`
33
- `,beforeOpen:` `,beforeRule:`
34
- `,colon:`: `,commentLeft:` `,commentRight:` `,emptyBody:``,indent:` `,semicolon:!1};function Pa(e){return e[0].toUpperCase()+e.slice(1)}var Fa=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var n=`@`+e.name,r=e.params?this.rawValue(e,`params`):``;if(e.raws.afterName===void 0?r&&(n+=` `):n+=e.raws.afterName,e.nodes)this.block(e,n+r);else{var i=(e.raws.between||``)+(t?`;`:``);this.builder(n+r+i,e)}},t.beforeAfter=function(e,t){for(var n=e.type===`decl`?this.raw(e,null,`beforeDecl`):e.type===`comment`?this.raw(e,null,`beforeComment`):t===`before`?this.raw(e,null,`beforeRule`):this.raw(e,null,`beforeClose`),r=e.parent,i=0;r&&r.type!==`root`;)i+=1,r=r.parent;if(n.includes(`
35
- `)){var a=this.raw(e,null,`indent`);if(a.length)for(var o=0;o<i;o++)n+=a}return n},t.block=function(e,t){var n=this.raw(e,`between`,`beforeOpen`);this.builder(t+n+`{`,e,`start`);var r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,`after`)):r=this.raw(e,`after`,`emptyBody`),r&&this.builder(r),this.builder(`}`,e,`end`)},t.body=function(e){for(var t=e.nodes.length-1;t>0&&e.nodes[t].type===`comment`;)--t;for(var n=this.raw(e,`semicolon`),r=0;r<e.nodes.length;r++){var i=e.nodes[r],a=this.raw(i,`before`);a&&this.builder(a),this.stringify(i,t!==r||n)}},t.comment=function(e){var t=this.raw(e,`left`,`commentLeft`),n=this.raw(e,`right`,`commentRight`);this.builder(`/*`+t+e.text+n+`*/`,e)},t.decl=function(e,t){var n=this.raw(e,`between`,`colon`),r=e.prop+n+this.rawValue(e,`value`);e.important&&(r+=e.raws.important||` !important`),t&&(r+=`;`),this.builder(r,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,n){var r;if(n||=t,t&&(r=e.raws[t],r!==void 0))return r;var i=e.parent;if(n===`before`&&(!i||i.type===`root`&&i.first===e||i&&i.type===`document`))return``;if(!i)return Na[n];var a=e.root();if(a.rawCache||={},a.rawCache[n]!==void 0)return a.rawCache[n];if(n===`before`||n===`after`)return this.beforeAfter(e,n);var o=`raw`+Pa(n);return this[o]?r=this[o](a,e):a.walk(function(e){if(r=e.raws[t],r!==void 0)return!1}),r===void 0&&(r=Na[n]),a.rawCache[n]=r,r},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&e.raws.after!==void 0)return t=e.raws.after,t.includes(`
36
- `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t},t.rawBeforeComment=function(e,t){var n;return e.walkComments(function(e){if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
37
- `)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeDecl`):n&&=n.replace(/\S/g,``),n},t.rawBeforeDecl=function(e,t){var n;return e.walkDecls(function(e){if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
38
- `)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeRule`):n&&=n.replace(/\S/g,``),n},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if(e.type!==`decl`&&(t=e.raws.between,t!==void 0))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&n.raws.before!==void 0)return t=n.raws.before,t.includes(`
39
- `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(e.raws.between!==void 0)return t=e.raws.between.replace(/[^\s:]/g,``),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length===0&&(t=e.raws.after,t!==void 0))return!1}),t},t.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&n.raws.before!==void 0){var i=n.raws.before.split(`
40
- `);return t=i[i.length-1],t=t.replace(/\S/g,``),!1}}),t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&e.last.type===`decl`&&(t=e.raws.semicolon,t!==void 0))return!1}),t},t.rawValue=function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,`selector`)),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,`end`)},t.stringify=function(e,t){if(!this[e.type])throw Error(`Unknown AST node type `+e.type+`. Maybe you need to change PostCSS stringifier.`);this[e.type](e,t)},e}(),Ia=Fa;Fa.default=Fa;var La=Ia;function Ra(e,t){new La(t).stringify(e)}var za=Ra;Ra.default=Ra;var Ba=Ma.isClean,Va=Ma.my,Ha=ja,Ua=Ia,Wa=za;function Ga(e,t){var n=new e.constructor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&r!==`proxyCache`){var i=e[r],a=i===void 0?`undefined`:S(i);r===`parent`&&a===`object`?t&&(n[r]=t):r===`source`?n[r]=i:Array.isArray(i)?n[r]=i.map(function(e){return Ga(e,n)}):(a===`object`&&i!==null&&(i=Ga(i)),n[r]=i)}return n}var Ka=function(){function e(e){for(var t in e===void 0&&(e={}),this.raws={},this[Ba]=!1,this[Va]=!0,e)if(t===`nodes`){this.nodes=[];for(var n=C(e[t]),r;!(r=n()).done;){var i=r.value;typeof i.clone==`function`?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&`+t.input.from+`:`+t.start.line+`:`+t.start.column+`$&`)}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in e===void 0&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){e===void 0&&(e={});var t=Ga(this);for(var n in e)t[n]=e[n];return t},t.cloneAfter=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(t===void 0&&(t={}),this.source){var n=this.rangeBy(t),r=n.end,i=n.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new Ha(e)},t.getProxyProcessor=function(){return{get:function(e,t){return t===`proxyOf`?e:t===`root`?function(){return e.root().toProxy()}:e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,(t===`prop`||t===`value`||t===`name`||t===`params`||t===`important`||t===`text`)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[Ba]){this[Ba]=!1;for(var e=this;e=e.parent;)e[Ba]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();var r=t.indexOf(e.word);r!==-1&&(n=this.positionInside(r,t))}return n},t.positionInside=function(e,t){for(var n=t||this.toString(),r=this.source.start.column,i=this.source.start.line,a=0;a<e;a++)n[a]===`
41
- `?(r=1,i+=1):r+=1;return{column:r,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var r=this.toString(),i=r.indexOf(e.word);i!==-1&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex==`number`?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},t.raw=function(e,t){return new Ua().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){var e=[...arguments];if(this.parent){for(var t=this,n=!1,r=C(e),i;!(i=r()).done;){var a=i.value;a===this?n=!0:n?(this.parent.insertAfter(t,a),t=a):this.parent.insertBefore(t,a)}n||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&e.parent.type!==`document`;)e=e.parent;return e},t.toJSON=function(e,t){var n={},r=t==null;t||=new Map;var i=0;for(var a in this)if(Object.prototype.hasOwnProperty.call(this,a)&&a!==`parent`&&a!==`proxyCache`){var o=this[a];if(Array.isArray(o))n[a]=o.map(function(e){return(e===void 0?`undefined`:S(e))===`object`&&e.toJSON?e.toJSON(null,t):e});else if((o===void 0?`undefined`:S(o))===`object`&&o.toJSON)n[a]=o.toJSON(null,t);else if(a===`source`){var s=t.get(o.input);s??(s=i,t.set(o.input,i),i++),n[a]={end:o.end,inputId:s,start:o.start}}else n[a]=o}return r&&(n.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),n},t.toProxy=function(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache},t.toString=function(e){e===void 0&&(e=Wa),e.stringify&&(e=e.stringify);var t=``;return e(this,function(e){t+=e}),t},t.warn=function(e,t,n){var r={node:this};for(var i in n)r[i]=n[i];return e.warn(t,r)},m(e,[{key:`proxyOf`,get:function(){return this}}]),e}(),qa=Ka;Ka.default=Ka;var Ja=function(e){_(t,e);function t(t){var n;return t&&t.value!==void 0&&typeof t.value!=`string`&&(t=h({},t,{value:String(t.value)})),n=e.call(this,t)||this,n.type=`decl`,n}return m(t,[{key:`variable`,get:function(){return this.prop.startsWith(`--`)||this.prop[0]===`$`}}]),t}(qa),Ya=Ja;Ja.default=Ja;var Xa=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,Za={nanoid:function(e){e===void 0&&(e=21);for(var t=``,n=e;n--;)t+=Xa[Math.random()*64|0];return t}},Qa=Da.SourceMapConsumer,$a=Da.SourceMapGenerator,eo=Da.existsSync,to=Da.readFileSync,no=Da.dirname,ro=Da.join;function io(e){return t?t.from(e,`base64`).toString():window.atob(e)}var ao=function(){function e(e,t){if(t.map!==!1){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,`data:`);var n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=no(this.mapFile)),r&&(this.text=r)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||=new Qa(this.text),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return io(e.substr(RegExp.lastMatch.length));var r=e.match(/data:application\/json;([^,]+),/)[1];throw Error(`Unsupported source map encoding `+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,``).trim()},t.isMap=function(e){return(e===void 0?`undefined`:S(e))===`object`?typeof e.mappings==`string`||typeof e._mappings==`string`||Array.isArray(e.sections):!1},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var n=e.lastIndexOf(t.pop()),r=e.indexOf(`*/`,n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}},t.loadFile=function(e){if(this.root=no(e),eo(e))return this.mapFile=e,to(e,`utf-8`).toString().trim()},t.loadMap=function(e,t){if(t===!1)return!1;if(t){if(typeof t==`string`)return t;if(typeof t==`function`){var n=t(e);if(n){var r=this.loadFile(n);if(!r)throw Error(`Unable to load previous source map: `+n.toString());return r}}else if(v(t,Qa))return $a.fromSourceMap(t).toString();else if(v(t,$a))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error(`Unsupported previous source map format: `+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=ro(no(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return e?e.substr(0,t.length)===t:!1},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),oo=ao;ao.default=ao;var so=Da.SourceMapConsumer,co=Da.SourceMapGenerator,lo=Da.fileURLToPath,uo=Da.pathToFileURL,fo=Da.isAbsolute,po=Da.resolve,mo=Za.nanoid,ho=Da,go=ja,_o=oo,vo=Symbol(`fromOffsetCache`),yo=!!(so&&co),bo=!!(po&&fo),xo=function(){function e(e,t){if(t===void 0&&(t={}),e==null||(e===void 0?`undefined`:S(e))===`object`&&!e.toString)throw Error(`PostCSS received `+e+` instead of CSS string`);if(this.css=e.toString(),this.css[0]===``||this.css[0]===`￾`?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(this.file=!bo||/^\w+:\/\//.test(t.from)||fo(t.from)?t.from:po(t.from)),bo&&yo){var n=new _o(this.css,t);if(n.text){this.map=n;var r=n.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id=`<input css `+mo(6)+`>`),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,n,r){r===void 0&&(r={});var i,a,o;if(t&&(t===void 0?`undefined`:S(t))===`object`){var s=t,c=n;if(typeof s.offset==`number`){var l=this.fromOffset(s.offset);t=l.line,n=l.col}else t=s.line,n=s.column;if(typeof c.offset==`number`){var u=this.fromOffset(c.offset);a=u.line,o=u.col}else a=c.line,o=c.column}else if(!n){var d=this.fromOffset(t);t=d.line,n=d.col}var f=this.origin(t,n,a,o);return i=f?new go(e,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,r.plugin):new go(e,a===void 0?t:{column:n,line:t},a===void 0?n:{column:o,line:a},this.css,this.file,r.plugin),i.input={column:n,endColumn:o,endLine:a,line:t,source:this.css},this.file&&(uo&&(i.input.url=uo(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,n;if(this[vo])n=this[vo];else{var r=this.css.split(`
42
- `);n=Array(r.length);for(var i=0,a=0,o=r.length;a<o;a++)n[a]=i,i+=r[a].length+1;this[vo]=n}t=n[n.length-1];var s=0;if(e>=t)s=n.length-1;else for(var c=n.length-2,l;s<c;)if(l=s+(c-s>>1),e<n[l])c=l-1;else if(e>=n[l+1])s=l+1;else{s=l;break}return{col:e-n[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:po(this.map.consumer().sourceRoot||this.map.root||`.`,e)},t.origin=function(e,t,n,r){if(!this.map)return!1;var i=this.map.consumer(),a=i.originalPositionFor({column:t,line:e});if(!a.source)return!1;var o;typeof n==`number`&&(o=i.originalPositionFor({column:r,line:n}));var s=fo(a.source)?uo(a.source):new URL(a.source,this.map.consumer().sourceRoot||uo(this.map.mapFile)),c={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:s.toString()};if(s.protocol===`file:`){if(lo)c.file=lo(s);else throw Error(`file: protocol is not available in this PostCSS build`)}var l=i.sourceContentFor(a.source);return l&&(c.source=l),c},t.toJSON=function(){for(var e={},t=0,n=[`hasBOM`,`css`,`file`,`id`];t<n.length;t++){var r=n[t];this[r]!=null&&(e[r]=this[r])}return this.map&&(e.map=h({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},m(e,[{key:`from`,get:function(){return this.file||this.id}}]),e}(),So=xo;xo.default=xo,ho&&ho.registerInput&&ho.registerInput(xo);var Co=Da.SourceMapConsumer,wo=Da.SourceMapGenerator,To=Da.dirname,Eo=Da.relative,Do=Da.resolve,Oo=Da.sep,ko=Da.pathToFileURL,Ao=So,jo=!!(Co&&wo),Mo=!!(To&&Do&&Eo&&Oo),No=function(){function e(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=e.prototype;return n.addAnnotation=function(){var e=this.isInline()?`data:application/json;base64,`+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation==`string`?this.mapOpts.annotation:typeof this.mapOpts.annotation==`function`?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+`.map`,t=`
43
- `;this.css.includes(`\r
44
- `)&&(t=`\r
45
- `),this.css+=t+`/*# sourceMappingURL=`+e+` */`},n.applyPrevMaps=function(){for(var e=C(this.previous()),t;!(t=e()).done;){var n=t.value,r=this.toUrl(this.path(n.file)),i=n.root||To(n.file),a=void 0;this.mapOpts.sourcesContent===!1?(a=new Co(n.text),a.sourcesContent&&(a.sourcesContent=null)):a=n.consumer(),this.map.applySourceMap(a,r,this.toUrl(this.path(i)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1){if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type===`comment`&&e.text.indexOf(`# sourceMappingURL=`)===0&&this.root.removeChild(t);else this.css&&=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,``)}},n.generate=function(){if(this.clearAnnotation(),Mo&&jo&&this.isMap())return this.generateMap();var e=``;return this.stringify(this.root,function(t){e+=t}),[e]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=wo.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new wo({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},n.generateString=function(){var e=this;this.css=``,this.map=new wo({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,n=1,r=`<no source>`,i={generated:{column:0,line:0},original:{column:0,line:0},source:``},a,o;this.stringify(this.root,function(s,c,l){if(e.css+=s,c&&l!==`end`&&(i.generated.line=t,i.generated.column=n-1,c.source&&c.source.start?(i.source=e.sourcePath(c),i.original.line=c.source.start.line,i.original.column=c.source.start.column-1,e.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,e.map.addMapping(i))),a=s.match(/\n/g),a?(t+=a.length,o=s.lastIndexOf(`
46
- `),n=s.length-o):n+=s.length,c&&l!==`start`){var u=c.parent||{raws:{}};(!(c.type===`decl`||c.type===`atrule`&&!c.nodes)||c!==u.last||u.raws.semicolon)&&(c.source&&c.source.end?(i.source=e.sourcePath(c),i.original.line=c.source.end.line,i.original.column=c.source.end.column-1,i.generated.line=t,i.generated.column=n-2,e.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=t,i.generated.column=n-1,e.map.addMapping(i)))}})},n.isAnnotation=function(){return this.isInline()?!0:this.mapOpts.annotation===void 0?!this.previous().length||this.previous().some(function(e){return e.annotation}):this.mapOpts.annotation},n.isInline=function(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;var e=this.mapOpts.annotation;return e!==void 0&&e!==!0?!1:!this.previous().length||this.previous().some(function(e){return e.inline})},n.isMap=function(){return this.opts.map===void 0?this.previous().length>0:!!this.opts.map},n.isSourcesContent=function(){return this.mapOpts.sourcesContent===void 0?!this.previous().length||this.previous().some(function(e){return e.withContent()}):this.mapOpts.sourcesContent},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):`to.css`},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var n=this.opts.to?To(this.opts.to):`.`;typeof this.mapOpts.annotation==`string`&&(n=To(Do(n,this.mapOpts.annotation)));var r=Eo(n,e);return this.memoizedPaths.set(e,r),r},n.previous=function(){var e=this;if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;e.previousMaps.includes(n)||e.previousMaps.push(n)}});else{var t=new Ao(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}}return this.previousMaps},n.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var i=e.usesFileUrls?e.toFileUrl(r):e.toUrl(e.path(r));e.map.setSourceContent(i,n.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`;this.map.setSourceContent(n,this.css)}},n.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},n.toBase64=function(e){return t?t.from(e).toString(`base64`):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(ko){var n=ko(e).toString();return this.memoizedFileURLs.set(e,n),n}throw Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;Oo===`\\`&&(e=e.replace(/\\/g,`/`));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},e}(),Po=function(e){_(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`comment`,n}return t}(qa),Fo=Po;Po.default=Po;var Io=Ma.isClean,Lo=Ma.my,Ro=Ya,zo=Fo,Bo=qa,Vo,Ho,Uo,Wo;function Go(e){return e.map(function(e){return e.nodes&&=Go(e.nodes),delete e.source,e})}function Ko(e){if(e[Io]=!1,e.proxyOf.nodes)for(var t=C(e.proxyOf.nodes),n;!(n=t()).done;){var r=n.value;Ko(r)}}var qo=function(e){_(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.append=function(){for(var e=C([...arguments]),t;!(t=e()).done;)for(var n=t.value,r=C(this.normalize(n,this.last)),i;!(i=r()).done;){var a=i.value;this.proxyOf.nodes.push(a)}return this.markDirty(),this},n.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var n=C(this.nodes),r;!(r=n()).done;)r.value.cleanRaws(t)},n.each=function(e){if(this.proxyOf.nodes){for(var t=this.getIterator(),n,r;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}},n.every=function(e){return this.nodes.every(e)},n.getIterator=function(){this.lastEach||=0,this.indexes||={},this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},n.getProxyProcessor=function(){return{get:function(e,t){return t===`proxyOf`?e:e[t]?t===`each`||typeof t==`string`&&t.startsWith(`walk`)?function(){var n=[...arguments],r;return(r=e)[t].apply(r,[].concat(n.map(function(e){return typeof e==`function`?function(t,n){return e(t.toProxy(),n)}:e})))}:t===`every`||t===`some`?function(n){return e[t](function(e){var t=[...arguments].slice(1);return n.apply(void 0,[e.toProxy()].concat(t))})}:t===`root`?function(){return e.root().toProxy()}:t===`nodes`?e.nodes.map(function(e){return e.toProxy()}):t===`first`||t===`last`?e[t].toProxy():e[t]:e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,(t===`name`||t===`params`||t===`selector`)&&e.markDirty(),!0)}}},n.index=function(e){return typeof e==`number`?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},n.insertAfter=function(e,t){var n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var i=C(r),a;!(a=i()).done;){var o=a.value;this.proxyOf.nodes.splice(n+1,0,o)}var s;for(var c in this.indexes)s=this.indexes[c],n<s&&(this.indexes[c]=s+r.length);return this.markDirty(),this},n.insertBefore=function(e,t){var n=this.index(e),r=n===0&&`prepend`,i=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(var a=C(i),o;!(o=a()).done;){var s=o.value;this.proxyOf.nodes.splice(n,0,s)}var c;for(var l in this.indexes)c=this.indexes[l],n<=c&&(this.indexes[l]=c+i.length);return this.markDirty(),this},n.normalize=function(e,n){var r=this;if(typeof e==`string`)e=Go(Vo(e).nodes);else if(e===void 0)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i=C(e),a;!(a=i()).done;){var o=a.value;o.parent&&o.parent.removeChild(o,`ignore`)}}else if(e.type===`root`&&this.type!==`document`){e=e.nodes.slice(0);for(var s=C(e),c;!(c=s()).done;){var l=c.value;l.parent&&l.parent.removeChild(l,`ignore`)}}else if(e.type)e=[e];else if(e.prop){if(e.value===void 0)throw Error(`Value field is missed in node creation`);typeof e.value!=`string`&&(e.value=String(e.value)),e=[new Ro(e)]}else if(e.selector)e=[new Ho(e)];else if(e.name)e=[new Uo(e)];else if(e.text)e=[new zo(e)];else throw Error(`Unknown node type in node creation`);return e.map(function(e){return e[Lo]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[Io]&&Ko(e),e.raws.before===void 0&&n&&n.raws.before!==void 0&&(e.raws.before=n.raws.before.replace(/\S/g,``)),e.parent=r.proxyOf,e})},n.prepend=function(){var e=[...arguments];e=e.reverse();for(var t=C(e),n;!(n=t()).done;){for(var r=n.value,i=this.normalize(r,this.first,`prepend`).reverse(),a=C(i),o;!(o=a()).done;){var s=o.value;this.proxyOf.nodes.unshift(s)}for(var c in this.indexes)this.indexes[c]=this.indexes[c]+i.length}return this.markDirty(),this},n.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},n.removeAll=function(){for(var e=C(this.proxyOf.nodes),t;!(t=e()).done;){var n=t.value;n.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},n.removeChild=function(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);var t;for(var n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this},n.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls(function(r){(!t.props||t.props.includes(r.prop))&&(!t.fast||r.value.includes(t.fast))&&(r.value=r.value.replace(e,n))}),this.markDirty(),this},n.some=function(e){return this.nodes.some(e)},n.walk=function(e){return this.each(function(t,n){var r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return r!==!1&&t.walk&&(r=t.walk(e)),r})},n.walkAtRules=function(e,t){return t?v(e,RegExp)?this.walk(function(n,r){if(n.type===`atrule`&&e.test(n.name))return t(n,r)}):this.walk(function(n,r){if(n.type===`atrule`&&n.name===e)return t(n,r)}):(t=e,this.walk(function(e,n){if(e.type===`atrule`)return t(e,n)}))},n.walkComments=function(e){return this.walk(function(t,n){if(t.type===`comment`)return e(t,n)})},n.walkDecls=function(e,t){return t?v(e,RegExp)?this.walk(function(n,r){if(n.type===`decl`&&e.test(n.prop))return t(n,r)}):this.walk(function(n,r){if(n.type===`decl`&&n.prop===e)return t(n,r)}):(t=e,this.walk(function(e,n){if(e.type===`decl`)return t(e,n)}))},n.walkRules=function(e,t){return t?v(e,RegExp)?this.walk(function(n,r){if(n.type===`rule`&&e.test(n.selector))return t(n,r)}):this.walk(function(n,r){if(n.type===`rule`&&n.selector===e)return t(n,r)}):(t=e,this.walk(function(e,n){if(e.type===`rule`)return t(e,n)}))},m(t,[{key:`first`,get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:`last`,get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(Bo);qo.registerParse=function(e){Vo=e},qo.registerRule=function(e){Ho=e},qo.registerAtRule=function(e){Uo=e},qo.registerRoot=function(e){Wo=e};var Jo=qo;qo.default=qo,qo.rebuild=function(e){e.type===`atrule`?Object.setPrototypeOf(e,Uo.prototype):e.type===`rule`?Object.setPrototypeOf(e,Ho.prototype):e.type===`decl`?Object.setPrototypeOf(e,Ro.prototype):e.type===`comment`?Object.setPrototypeOf(e,zo.prototype):e.type===`root`&&Object.setPrototypeOf(e,Wo.prototype),e[Lo]=!0,e.nodes&&e.nodes.forEach(function(e){qo.rebuild(e)})};var Yo=Jo,Xo,Zo,Qo=function(e){_(t,e);function t(t){var n=e.call(this,h({type:`document`},t))||this;return n.nodes||=[],n}var n=t.prototype;return n.toResult=function(e){return e===void 0&&(e={}),new Xo(new Zo,this,e).stringify()},t}(Yo);Qo.registerLazyResult=function(e){Xo=e},Qo.registerProcessor=function(e){Zo=e};var $o=Qo;Qo.default=Qo;var es=function(){function e(e,t){if(t===void 0&&(t={}),this.type=`warning`,this.text=e,t.node&&t.node.source){var n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var r in t)this[r]=t[r]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+`: `+this.text:this.text},e}(),ts=es;es.default=es;var ns=ts,rs=function(){function e(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new ns(e,t);return this.messages.push(n),n},t.warnings=function(){return this.messages.filter(function(e){return e.type===`warning`})},m(e,[{key:`content`,get:function(){return this.css}}]),e}(),is=rs;rs.default=rs;var as=39,os=34,ss=92,cs=47,ls=10,us=32,ds=12,fs=9,ps=13,ms=91,hs=93,gs=40,_s=41,vs=123,ys=125,bs=59,xs=42,Ss=58,Cs=64,ws=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ts=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Es=/.[\r\n"'(/\\]/,Ds=/[\da-f]/i,Os=function(e,t){t===void 0&&(t={});var n=e.css.valueOf(),r=t.ignoreErrors,i,a,o,s,c,l,u,d,f,p,m=n.length,h=0,g=[],_=[];function v(){return h}function y(t){throw e.error(`Unclosed `+t,h)}function b(){return _.length===0&&h>=m}function x(e){if(_.length)return _.pop();if(!(h>=m)){var t=e?e.ignoreUnclosed:!1;switch(i=n.charCodeAt(h),i){case ls:case us:case fs:case ps:case ds:a=h;do a+=1,i=n.charCodeAt(a);while(i===us||i===ls||i===fs||i===ps||i===ds);p=[`space`,n.slice(h,a)],h=a-1;break;case ms:case hs:case vs:case ys:case Ss:case bs:case _s:var v=String.fromCharCode(i);p=[v,v,h];break;case gs:if(d=g.length?g.pop()[1]:``,f=n.charCodeAt(h+1),d===`url`&&f!==as&&f!==os&&f!==us&&f!==ls&&f!==fs&&f!==ds&&f!==ps){a=h;do{if(l=!1,a=n.indexOf(`)`,a+1),a===-1){if(r||t){a=h;break}y(`bracket`)}for(u=a;n.charCodeAt(u-1)===ss;)--u,l=!l}while(l);p=[`brackets`,n.slice(h,a+1),h,a],h=a}else a=n.indexOf(`)`,h+1),s=n.slice(h,a+1),a===-1||Es.test(s)?p=[`(`,`(`,h]:(p=[`brackets`,s,h,a],h=a);break;case as:case os:o=i===as?`'`:`"`,a=h;do{if(l=!1,a=n.indexOf(o,a+1),a===-1){if(r||t){a=h+1;break}y(`string`)}for(u=a;n.charCodeAt(u-1)===ss;)--u,l=!l}while(l);p=[`string`,n.slice(h,a+1),h,a],h=a;break;case Cs:ws.lastIndex=h+1,ws.test(n),a=ws.lastIndex===0?n.length-1:ws.lastIndex-2,p=[`at-word`,n.slice(h,a+1),h,a],h=a;break;case ss:for(a=h,c=!0;n.charCodeAt(a+1)===ss;)a+=1,c=!c;if(i=n.charCodeAt(a+1),c&&i!==cs&&i!==us&&i!==ls&&i!==fs&&i!==ps&&i!==ds&&(a+=1,Ds.test(n.charAt(a)))){for(;Ds.test(n.charAt(a+1));)a+=1;n.charCodeAt(a+1)===us&&(a+=1)}p=[`word`,n.slice(h,a+1),h,a],h=a;break;default:i===cs&&n.charCodeAt(h+1)===xs?(a=n.indexOf(`*/`,h+2)+1,a===0&&(r||t?a=n.length:y(`comment`)),p=[`comment`,n.slice(h,a+1),h,a],h=a):(Ts.lastIndex=h+1,Ts.test(n),a=Ts.lastIndex===0?n.length-1:Ts.lastIndex-2,p=[`word`,n.slice(h,a+1),h,a],g.push(p),h=a)}return h++,p}}function S(e){_.push(e)}return{back:S,endOfFile:b,nextToken:x,position:v}},ks=Jo,As=function(e){_(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`atrule`,n}var n=t.prototype;return n.append=function(){var t=[...arguments],n;return this.proxyOf.nodes||(this.nodes=[]),(n=e.prototype.append).call.apply(n,[this].concat(t))},n.prepend=function(){var t=[...arguments],n;return this.proxyOf.nodes||(this.nodes=[]),(n=e.prototype.prepend).call.apply(n,[this].concat(t))},t}(ks),js=As;As.default=As,ks.registerAtRule(As);var Ms=Jo,Ns,Ps,Fs=function(e){_(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`root`,n.nodes||=[],n}var n=t.prototype;return n.normalize=function(t,n,r){var i=e.prototype.normalize.call(this,t);if(n){if(r===`prepend`)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var a=C(i),o;!(o=a()).done;){var s=o.value;s.raws.before=n.raws.before}}return i},n.removeChild=function(t,n){var r=this.index(t);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},n.toResult=function(e){return e===void 0&&(e={}),new Ns(new Ps,this,e).stringify()},t}(Ms);Fs.registerLazyResult=function(e){Ns=e},Fs.registerProcessor=function(e){Ps=e};var Is=Fs;Fs.default=Fs,Ms.registerRoot(Fs);var Ls={comma:function(e){return Ls.split(e,[`,`],!0)},space:function(e){return Ls.split(e,[` `,`
47
- `,` `])},split:function(e,t,n){for(var r=[],i=``,a=!1,o=0,s=!1,c=``,l=!1,u=C(e),d;!(d=u()).done;){var f=d.value;l?l=!1:f===`\\`?l=!0:s?f===c&&(s=!1):f===`"`||f===`'`?(s=!0,c=f):f===`(`?o+=1:f===`)`?o>0&&--o:o===0&&t.includes(f)&&(a=!0),a?(i!==``&&r.push(i.trim()),i=``,a=!1):i+=f}return(n||i!==``)&&r.push(i.trim()),r}},Rs=Ls;Ls.default=Ls;var zs=Jo,Bs=Rs,Vs=function(e){_(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`rule`,n.nodes||=[],n}return m(t,[{key:`selectors`,get:function(){return Bs.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:`,`+this.raw(`between`,`beforeOpen`);this.selector=e.join(n)}}]),t}(zs),Hs=Vs;Vs.default=Vs,zs.registerRule(Vs);var Us=Ya,Ws=Os,Gs=Fo,Ks=js,qs=Is,Js=Hs,Ys={empty:!0,space:!0};function Xs(e){for(var t=e.length-1;t>=0;t--){var n=e[t],r=n[3]||n[2];if(r)return r}}var Zs=function(){function e(e){this.input=e,this.root=new qs,this.current=this.root,this.spaces=``,this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t=new Ks;t.name=e[1].slice(1),t.name===``&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,r,i,a=!1,o=!1,s=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n===`(`||n===`[`?c.push(n===`(`?`)`:`]`):n===`{`&&c.length>0?c.push(`}`):n===c[c.length-1]&&c.pop(),c.length===0){if(n===`;`){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}if(n===`{`){o=!0;break}if(n===`}`){if(s.length>0){for(i=s.length-1,r=s[i];r&&r[0]===`space`;)r=s[--i];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}s.push(e)}else s.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(t.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(t,`params`,s),a&&(e=s[s.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=``)):(t.raws.afterName=``,t.params=``),o&&(t.nodes=[],this.current=t)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,r,i=t-1;i>=0&&(r=e[i],!(r[0]!==`space`&&(n+=1,n===2)));i--);throw this.input.error(`Missed semicolon`,r[0]===`word`?r[3]+1:r[2])}},t.colon=function(e){for(var t=0,n,r,i,a=C(e.entries()),o;!(o=a()).done;){var s=o.value,c=s[0];if(n=s[1],r=n[0],r===`(`&&(t+=1),r===`)`&&--t,t===0&&r===`:`){if(!i)this.doubleColon(n);else if(i[0]===`word`&&i[1]===`progid`)continue;else return c}i=n}return!1},t.comment=function(e){var t=new Gs;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text=``,t.raws.left=n,t.raws.right=``;else{var r=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},t.createTokenizer=function(){this.tokenizer=Ws(this.input)},t.decl=function(e,t){var n=new Us;this.init(n,e[0][2]);var r=e[e.length-1];for(r[0]===`;`&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||Xs(e)),n.source.end.offset++;e[0][0]!==`word`;)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop=``;e.length;){var i=e[0][0];if(i===`:`||i===`space`||i===`comment`)break;n.prop+=e.shift()[1]}n.raws.between=``;for(var a;e.length;){if(a=e.shift(),a[0]===`:`){n.raws.between+=a[1];break}a[0]===`word`&&/\w/.test(a[1])&&this.unknownWord([a]),n.raws.between+=a[1]}(n.prop[0]===`_`||n.prop[0]===`*`)&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var o=[],s;e.length&&(s=e[0][0],s===`space`||s===`comment`);)o.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(a=e[c],a[1].toLowerCase()===`!important`){n.important=!0;var l=this.stringFrom(e,c);l=this.spacesFromEnd(e)+l,l!==` !important`&&(n.raws.important=l);break}if(a[1].toLowerCase()===`important`){for(var u=e.slice(0),d=``,f=c;f>0;f--){var p=u[f][0];if(d.trim().indexOf(`!`)===0&&p!==`space`)break;d=u.pop()[1]+d}d.trim().indexOf(`!`)===0&&(n.important=!0,n.raws.important=d,e=u)}if(a[0]!==`space`&&a[0]!==`comment`)break}e.some(function(e){return e[0]!==`space`&&e[0]!==`comment`})&&(n.raws.between+=o.map(function(e){return e[1]}).join(``),o=[]),this.raw(n,`value`,o.concat(e),t),n.value.includes(`:`)&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error(`Double colon`,{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Js;this.init(t,e[2]),t.selector=``,t.raws.between=``,this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.spaces=``,this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&t.type===`rule`&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces=``)}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces=``,e.type!==`comment`&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith(`--`),s=[],c=e;c;){if(n=c[0],s.push(c),n===`(`||n===`[`)i||=c,a.push(n===`(`?`)`:`]`);else if(o&&r&&n===`{`)i||=c,a.push(`}`);else if(a.length===0){if(n===`;`){if(r){this.decl(s,o);return}break}if(n===`{`){this.rule(s);return}if(n===`}`){this.tokenizer.back(s.pop()),t=!0;break}n===`:`&&(r=!0)}else n===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&(c=s[s.length-1][0],c===`space`||c===`comment`);)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case`space`:this.spaces+=e[1];break;case`;`:this.freeSemicolon(e);break;case`}`:this.end(e);break;case`comment`:this.comment(e);break;case`at-word`:this.atrule(e);break;case`{`:this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,n,r){for(var i,a,o=n.length,s=``,c=!0,l,u,d=0;d<o;d+=1)i=n[d],a=i[0],a===`space`&&d===o-1&&!r?c=!1:a===`comment`?(u=n[d-1]?n[d-1][0]:`empty`,l=n[d+1]?n[d+1][0]:`empty`,!Ys[u]&&!Ys[l]?s.slice(-1)===`,`?c=!1:s+=i[1]:c=!1):s+=i[1];if(!c){var f=n.reduce(function(e,t){return e+t[1]},``);e.raws[t]={raw:f,value:s}}e[t]=s},t.rule=function(e){e.pop();var t=new Js;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,`selector`,e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,n=``;e.length&&(t=e[e.length-1][0],t===`space`||t===`comment`);)n=e.pop()[1]+n;return n},t.spacesAndCommentsFromStart=function(e){for(var t,n=``;e.length&&(t=e[0][0],t===`space`||t===`comment`);)n+=e.shift()[1];return n},t.spacesFromEnd=function(e){for(var t,n=``;e.length&&(t=e[e.length-1][0],t===`space`);)n=e.pop()[1]+n;return n},t.stringFrom=function(e,t){for(var n=``,r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error(`Unclosed block`,e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error(`Unclosed bracket`,{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error(`Unexpected }`,{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error(`Unknown word`,{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error(`At-rule without name`,{offset:t[2]},{offset:t[2]+t[1].length})},e}(),Qs=Jo,$s=Zs,ec=So;function tc(e,t){var n=new $s(new ec(e,t));try{n.parse()}catch(e){throw e}return n.root}var nc=tc;tc.default=tc,Qs.registerParse(tc);var rc=Ma.isClean,ic=Ma.my,ac=No,oc=za,sc=Jo,cc=$o,lc=is,uc=nc,dc=Is,fc={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},pc={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},mc={Once:!0,postcssPlugin:!0,prepare:!0},hc=0;function gc(e){return(e===void 0?`undefined`:S(e))===`object`&&typeof e.then==`function`}function _c(e){var t=!1,n=fc[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,hc,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,hc,n+`Exit`]:[n,n+`Exit`]}function vc(e){return{eventIndex:0,events:e.type===`document`?[`Document`,hc,`DocumentExit`]:e.type===`root`?[`Root`,hc,`RootExit`]:_c(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function yc(e){return e[rc]=!1,e.nodes&&e.nodes.forEach(function(e){return yc(e)}),e}var bc={},xc=function(){function e(t,n,r){var i=this;this.stringified=!1,this.processed=!1;var a;if((n===void 0?`undefined`:S(n))===`object`&&n!==null&&(n.type===`root`||n.type===`document`))a=yc(n);else if(v(n,e)||v(n,lc))a=yc(n.root),n.map&&(r.map===void 0&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var o=uc;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{a=o(n,r)}catch(e){this.processed=!0,this.error=e}a&&!a[ic]&&sc.rebuild(a)}this.result=new lc(t,a,r),this.helpers=h({},bc,{postcss:bc,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(e===void 0?`undefined`:S(e))===`object`&&e.prepare?h({},e,e.prepare(i.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||=this.runAsync(),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error(`Use process(css).then(cb) to work with async plugins`)},t.handleError=function(e,t){var n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch{}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(t,n,r){e.listeners[n]||(e.listeners[n]=[]),e.listeners[n].push([t,r])},n=C(this.plugins),r;!(r=n()).done;){var i=r.value;if((i===void 0?`undefined`:S(i))===`object`)for(var a in i){if(!pc[a]&&/^[A-Z]/.test(a))throw Error(`Unknown event `+a+` in `+i.postcssPlugin+`. Try to update PostCSS (`+this.processor.version+` now).`);if(!mc[a]){if(S(i[a])===`object`)for(var o in i[a])o===`*`?t(i,a,i[a][o]):t(i,a+`-`+o.toLowerCase(),i[a][o]);else typeof i[a]==`function`&&t(i,a,i[a])}}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return d(function(){var t,n,r,i,a,o,s,c,l,u,d,f;return re(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],r=e.runOnRoot(n),!gc(r))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,r];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];a=e.result.root,p.label=7;case 7:if(a[rc])return[3,14];a[rc]=!0,o=[vc(a)],p.label=8;case 8:if(!(o.length>0))return[3,13];if(s=e.visitTick(o),!gc(s))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,s];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),l=o[o.length-1].node,e.handleError(c,l);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,n,r,i,o;return re(this,function(s){switch(s.label){case 0:t=f.value,n=t[0],r=t[1],e.result.lastPlugin=n,s.label=1;case 1:return s.trys.push([1,6,,7]),a.type===`document`?(i=a.nodes.map(function(t){return r(t,e.helpers)}),[4,Promise.all(i)]):[3,3];case 2:return s.sent(),[3,5];case 3:return[4,r(a,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw o=s.sent(),e.handleError(o);case 7:return[2]}})},d=C(e.listeners.OnceExit),p.label=15;case 15:return(f=d()).done?[3,18]:[5,ie(u())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((e===void 0?`undefined`:S(e))===`object`&&e.Once){if(this.result.root.type===`document`){var n=this.result.root.nodes.map(function(n){return e.Once(n,t.helpers)});return gc(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}if(typeof e==`function`)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=oc;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new ac(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=C(this.plugins),t;!(t=e()).done;){var n=t.value;if(gc(this.runOnRoot(n)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[rc];)r[rc]=!0,this.walkSync(r);if(this.listeners.OnceExit){if(r.type===`document`)for(var i=C(r.nodes),a;!(a=i()).done;){var o=a.value;this.visitSync(this.listeners.OnceExit,o)}else this.visitSync(this.listeners.OnceExit,r)}}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var n=C(e),r;!(r=n()).done;){var i=r.value,a=i[0],o=i[1];this.result.lastPlugin=a;var s=void 0;try{s=o(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(gc(s))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],n=t.node,r=t.visitors;if(n.type!==`root`&&n.type!==`document`&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){var i=r[t.visitorIndex],a=i[0],o=i[1];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=a;try{return o(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(t.iterator!==0){for(var s=t.iterator,c;c=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!c[rc]){c[rc]=!0,e.push(vc(c));return}t.iterator=0,delete n.indexes[s]}for(var l=t.events;t.eventIndex<l.length;){var u=l[t.eventIndex];if(t.eventIndex+=1,u===hc){n.nodes&&n.nodes.length&&(n[rc]=!0,t.iterator=n.getIterator());return}if(this.listeners[u]){t.visitors=this.listeners[u];return}}e.pop()},t.walkSync=function(e){var t=this;e[rc]=!0;for(var n=C(_c(e)),r;!(r=n()).done;){var i=r.value;if(i===hc)e.nodes&&e.each(function(e){e[rc]||t.walkSync(e)});else{var a=this.listeners[i];if(a&&this.visitSync(a,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},m(e,[{key:`content`,get:function(){return this.stringify().content}},{key:`css`,get:function(){return this.stringify().css}},{key:`map`,get:function(){return this.stringify().map}},{key:`messages`,get:function(){return this.sync().messages}},{key:`opts`,get:function(){return this.result.opts}},{key:`processor`,get:function(){return this.result.processor}},{key:`root`,get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return`LazyResult`}}]),e}();xc.registerPostcss=function(e){bc=e};var Sc=xc;xc.default=xc,dc.registerLazyResult(xc),cc.registerLazyResult(xc);var Cc=No,wc=za,Tc=nc,Ec=is,Dc=function(){function e(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;var r,i=wc;this.result=new Ec(this._processor,r,this._opts),this.result.css=t;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var o=new Cc(i,r,this._opts,t);if(o.isMap()){var s=o.generate(),c=s[0],l=s[1];c&&(this.result.css=c),l&&(this.result.map=l)}else o.clearAnnotation(),this.result.css=o.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},m(e,[{key:`content`,get:function(){return this.result.css}},{key:`css`,get:function(){return this.result.css}},{key:`map`,get:function(){return this.result.map}},{key:`messages`,get:function(){return[]}},{key:`opts`,get:function(){return this.result.opts}},{key:`processor`,get:function(){return this.result.processor}},{key:`root`,get:function(){if(this._root)return this._root;var e,t=Tc;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return`NoWorkResult`}}]),e}(),Oc=Dc;Dc.default=Dc;var kc=Oc,Ac=Sc,jc=$o,Mc=Is,Nc=function(){function e(e){e===void 0&&(e=[]),this.version=`8.4.38`,this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t=[],n=C(e),r;!(r=n()).done;){var i=r.value;if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),(i===void 0?`undefined`:S(i))===`object`&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if((i===void 0?`undefined`:S(i))===`object`&&i.postcssPlugin)t.push(i);else if(typeof i==`function`)t.push(i);else if((i===void 0?`undefined`:S(i))!==`object`||!i.parse&&!i.stringify)throw Error(i+` is not a PostCSS plugin`)}return t},t.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new kc(this,e,t):new Ac(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Pc=Nc;Nc.default=Nc,Mc.registerProcessor(Nc),jc.registerProcessor(Nc);var Fc=Ya,Ic=oo,Lc=Fo,Rc=js,zc=So,Bc=Is,Vc=Hs;function Hc(e,t){if(Array.isArray(e))return e.map(function(e){return Hc(e)});var n=e.inputs,r=b(e,[`inputs`]);if(n){t=[];for(var i=C(n),a;!(a=i()).done;){var o=a.value,s=h({},o,{__proto__:zc.prototype});s.map&&=h({},s.map,{__proto__:Ic.prototype}),t.push(s)}}if(r.nodes&&=e.nodes.map(function(e){return Hc(e,t)}),r.source){var c=r.source,l=c.inputId;r.source=b(c,[`inputId`]),l!=null&&(r.source.input=t[l])}if(r.type===`root`)return new Bc(r);if(r.type===`decl`)return new Fc(r);if(r.type===`rule`)return new Vc(r);if(r.type===`comment`)return new Lc(r);if(r.type===`atrule`)return new Rc(r);throw Error(`Unknown node type: `+e.type)}var Uc=Hc;Hc.default=Hc;var Wc=ja,Gc=Ya,Kc=Sc,qc=Jo,Jc=Pc,Yc=za,Xc=Uc,Zc=$o,Qc=ts,$c=Fo,el=js,tl=is,nl=So,rl=nc,il=Rs,al=Hs,ol=Is,sl=qa;function N(){var e=[...arguments];return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new Jc(e)}N.plugin=function(e,t){var n=!1;function r(){var r=[...arguments];console&&console.warn&&!n&&(n=!0,{}.LANG&&{}.LANG.startsWith(`cn`));var i=t.apply(void 0,[].concat(r));return i.postcssPlugin=e,i.postcssVersion=new Jc().version,i}var i;return Object.defineProperty(r,"postcss",{get:function(){return i||=r(),i}}),r.process=function(e,t,n){return N([r(n)]).process(e,t)},r},N.stringify=Yc,N.parse=rl,N.fromJSON=Xc,N.list=il,N.comment=function(e){return new $c(e)},N.atRule=function(e){return new el(e)},N.decl=function(e){return new Gc(e)},N.rule=function(e){return new al(e)},N.root=function(e){return new ol(e)},N.document=function(e){return new Zc(e)},N.CssSyntaxError=Wc,N.Declaration=Gc,N.Container=qc,N.Processor=Jc,N.Document=Zc,N.Comment=$c,N.Warning=Qc,N.AtRule=el,N.Result=tl,N.Input=nl,N.Rule=al,N.Root=ol,N.Node=sl,Kc.registerPostcss(N);var cl=N;N.default=N;var P=Sa(cl);P.stringify,P.fromJSON,P.plugin,P.parse,P.list,P.document,P.comment,P.atRule,P.rule,P.decl,P.root,P.CssSyntaxError,P.Declaration,P.Container,P.Processor,P.Document,P.Comment,P.Warning,P.AtRule,P.Result,P.Input,P.Rule,P.Root,P.Node;var ll=function(){function e(){xa(this,`parentElement`,null),xa(this,`parentNode`,null),xa(this,`ownerDocument`),xa(this,`firstChild`,null),xa(this,`lastChild`,null),xa(this,`previousSibling`,null),xa(this,`nextSibling`,null),xa(this,`ELEMENT_NODE`,1),xa(this,`TEXT_NODE`,3),xa(this,`nodeType`),xa(this,`nodeName`),xa(this,`RRNodeType`)}var t=e.prototype;return t.contains=function(t){if(!v(t,e)||t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.`)},t.insertBefore=function(e,t){throw Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.`)},t.removeChild=function(e){throw Error(`RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.`)},t.toString=function(){return`RRNode`},m(e,[{key:`childNodes`,get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),ul={Node:[`childNodes`,`parentNode`,`parentElement`,`textContent`],ShadowRoot:[`host`,`styleSheets`],Element:[`shadowRoot`,`querySelector`,`querySelectorAll`],MutationObserver:[]},dl={Node:[`contains`,`getRootNode`],ShadowRoot:[`getSelection`],Element:[],MutationObserver:[`constructor`]},fl={},pl=function(){return!!globalThis.Zone};function ml(e){if(fl[e])return fl[e];var t=globalThis[e],n=t.prototype,r=e in ul?ul[e]:void 0,i=!!(r&&r.every(function(e){return!!(Object.getOwnPropertyDescriptor(n,e)?.get)?.toString().includes(`[native code]`)})),a=e in dl?dl[e]:void 0,o=!!(a&&a.every(function(e){return typeof n[e]==`function`&&n[e]?.toString().includes(`[native code]`)}));if(i&&o&&!pl())return fl[e]=t.prototype,t.prototype;try{var s=document.createElement(`iframe`);document.body.appendChild(s);var c=s.contentWindow;if(!c)return t.prototype;var l=c[e].prototype;return document.body.removeChild(s),l?fl[e]=l:n}catch{return n}}var hl={};function gl(e,t,n){var r=e+`.`+String(n);if(hl[r])return hl[r].call(t);var i=ml(e),a=Object.getOwnPropertyDescriptor(i,n)?.get;return a?(hl[r]=a,a.call(t)):t[n]}var _l={};function vl(e,t,n){var r=e+`.`+String(n);if(_l[r])return _l[r].bind(t);var i=ml(e)[n];return typeof i==`function`?(_l[r]=i,i.bind(t)):t[n]}function yl(e){return gl(`Node`,e,`childNodes`)}function bl(e){return gl(`Node`,e,`parentNode`)}function xl(e){return gl(`Node`,e,`parentElement`)}function Sl(e){return gl(`Node`,e,`textContent`)}function Cl(e,t){return vl(`Node`,e,`contains`)(t)}function wl(e){return vl(`Node`,e,`getRootNode`)()}function Tl(e){return!e||!(`host`in e)?null:gl(`ShadowRoot`,e,`host`)}function El(e){return e.styleSheets}function Dl(e){return!e||!(`shadowRoot`in e)?null:gl(`Element`,e,`shadowRoot`)}function Ol(e,t){return gl(`Element`,e,`querySelector`)(t)}function kl(e,t){return gl(`Element`,e,`querySelectorAll`)(t)}function Al(){return ml(`MutationObserver`).constructor}function jl(e,t,n){try{if(!(t in e))return function(){};var r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}}catch{return function(){}}}var F={childNodes:yl,parentNode:bl,parentElement:xl,textContent:Sl,contains:Cl,getRootNode:wl,host:Tl,styleSheets:El,shadowRoot:Dl,querySelector:Ol,querySelectorAll:kl,mutationObserver:Al,patch:jl};function Ml(e,t,n){n===void 0&&(n=document);var r={capture:!0,passive:!0};return n.addEventListener(e,t,r),function(){return n.removeEventListener(e,t,r)}}var Nl={map:{},getId:function(){return-1},getNode:function(){return null},removeNodeFromMap:function(){},has:function(){return!1},reset:function(){}};typeof window<`u`&&window.Proxy&&window.Reflect&&(Nl=new Proxy(Nl,{get:function(e,t,n){return Reflect.get(e,t,n)}}));function Pl(e,t,n){n===void 0&&(n={});var r=null,i=0;return function(){var a=[...arguments],o=Date.now();!i&&n.leading===!1&&(i=o);var s=t-(o-i),c=this;s<=0||s>t?(r&&=(clearTimeout(r),null),i=o,e.apply(c,a)):!r&&n.trailing!==!1&&(r=setTimeout(function(){i=n.leading===!1?0:Date.now(),r=null,e.apply(c,a)},s))}}function Fl(e,t,n,r,i){i===void 0&&(i=window);var a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set:function(e){var t=this;setTimeout(function(){n.set.call(t,e)},0),a&&a.set&&a.set.call(this,e)}}),function(){return Fl(e,t,a||{},!0)}}var Il=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Il=function(){return new Date().getTime()});function Ll(e){var t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset===void 0?t.documentElement.scrollLeft||t?.body&&F.parentElement(t.body)?.scrollLeft||t?.body?.scrollLeft||0:e.pageXOffset,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset===void 0?t?.documentElement.scrollTop||t?.body&&F.parentElement(t.body)?.scrollTop||t?.body?.scrollTop||0:e.pageYOffset}}function Rl(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function zl(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Bl(e){return e?e.nodeType===e.ELEMENT_NODE?e:F.parentElement(e):null}function Vl(e,t,n,r){if(!e)return!1;var i=Bl(e);if(!i)return!1;try{if(typeof t==`string`){if(i.classList.contains(t)||r&&i.closest(`.`+t)!==null)return!0}else if(xt(i,t,r))return!0}catch{}return!!(n&&(i.matches(n)||r&&i.closest(n)!==null))}function Hl(e,t){return t.getId(e)!==-1}function Ul(e,t,n){return e.tagName===`TITLE`&&n.headTitleMutations?!0:t.getId(e)===ot}function Wl(e,t){if(Me(e))return!1;var n=t.getId(e);if(!t.has(n))return!0;var r=F.parentNode(e);return r&&r.nodeType===e.DOCUMENT_NODE?!1:!r||Wl(r,t)}function Gl(e){return!!e.changedTouches}function Kl(e){e===void 0&&(e=window),`NodeList`in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),`DOMTokenList`in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function ql(e,t){return!!(e.nodeName===`IFRAME`&&t.getMeta(e))}function Jl(e,t){return!!(e.nodeName===`LINK`&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute(`rel`)===`stylesheet`&&t.getMeta(e))}function Yl(e){return e?v(e,ll)&&`shadowRoot`in e?!!e.shadowRoot:!!F.shadowRoot(e):!1}var Xl=function(){function e(){T(this,`id`,1),T(this,`styleIDMap`,new WeakMap),T(this,`idStyleMap`,new Map)}var t=e.prototype;return t.getId=function(e){return this.styleIDMap.get(e)??-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){if(this.has(e))return this.getId(e);var n=t===void 0?this.id++:t;return this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return t!==void 0&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function Zl(e){var t=null;return`getRootNode`in e&&F.getRootNode(e)?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&F.host(F.getRootNode(e))&&(t=F.host(F.getRootNode(e))),t}function Ql(e){for(var t=e,n;n=Zl(t);)t=n;return t}function $l(e){var t=e.ownerDocument;if(!t)return!1;var n=Ql(e);return F.contains(t,n)}function eu(e){var t=e.ownerDocument;return t?F.contains(t,e)||$l(e):!1}var I=function(e){return e[e.DomContentLoaded=0]=`DomContentLoaded`,e[e.Load=1]=`Load`,e[e.FullSnapshot=2]=`FullSnapshot`,e[e.IncrementalSnapshot=3]=`IncrementalSnapshot`,e[e.Meta=4]=`Meta`,e[e.Custom=5]=`Custom`,e[e.Plugin=6]=`Plugin`,e}(I||{}),L=function(e){return e[e.Mutation=0]=`Mutation`,e[e.MouseMove=1]=`MouseMove`,e[e.MouseInteraction=2]=`MouseInteraction`,e[e.Scroll=3]=`Scroll`,e[e.ViewportResize=4]=`ViewportResize`,e[e.Input=5]=`Input`,e[e.TouchMove=6]=`TouchMove`,e[e.MediaInteraction=7]=`MediaInteraction`,e[e.StyleSheetRule=8]=`StyleSheetRule`,e[e.CanvasMutation=9]=`CanvasMutation`,e[e.Font=10]=`Font`,e[e.Log=11]=`Log`,e[e.Drag=12]=`Drag`,e[e.StyleDeclaration=13]=`StyleDeclaration`,e[e.Selection=14]=`Selection`,e[e.AdoptedStyleSheet=15]=`AdoptedStyleSheet`,e[e.CustomElement=16]=`CustomElement`,e}(L||{}),tu=function(e){return e[e.MouseUp=0]=`MouseUp`,e[e.MouseDown=1]=`MouseDown`,e[e.Click=2]=`Click`,e[e.ContextMenu=3]=`ContextMenu`,e[e.DblClick=4]=`DblClick`,e[e.Focus=5]=`Focus`,e[e.Blur=6]=`Blur`,e[e.TouchStart=7]=`TouchStart`,e[e.TouchMove_Departed=8]=`TouchMove_Departed`,e[e.TouchEnd=9]=`TouchEnd`,e[e.TouchCancel=10]=`TouchCancel`,e}(tu||{}),nu=function(e){return e[e.Mouse=0]=`Mouse`,e[e.Pen=1]=`Pen`,e[e.Touch=2]=`Touch`,e}(nu||{}),ru=function(e){return e[e[`2D`]=0]=`2D`,e[e.WebGL=1]=`WebGL`,e[e.WebGL2=2]=`WebGL2`,e}(ru||{}),iu=function(e){return e[e.Play=0]=`Play`,e[e.Pause=1]=`Pause`,e[e.Seeked=2]=`Seeked`,e[e.VolumeChange=3]=`VolumeChange`,e[e.RateChange=4]=`RateChange`,e}(iu||{}),au=function(e){return e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`,e}(au||{});function ou(e){return`__ln`in e}var su=function(){function e(){T(this,`length`,0),T(this,`head`,null),T(this,`tail`,null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw Error(`Position outside of list range`);for(var t=this.head,n=0;n<e;n++)t=t?.next||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&ou(e.previousSibling)){var n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&ou(e.nextSibling)&&e.nextSibling.__ln.previous){var r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),cu=function(e,t){return e+`@`+t},lu=function(){function e(){var e=this;T(this,`frozen`,!1),T(this,`locked`,!1),T(this,`texts`,[]),T(this,`attributes`,[]),T(this,`attributeMap`,new WeakMap),T(this,`removes`,[]),T(this,`mapRemoves`,[]),T(this,`movedMap`,{}),T(this,`addedSet`,new Set),T(this,`movedSet`,new Set),T(this,`droppedSet`,new Set),T(this,`removesSubTreeCache`,new Set),T(this,`mutationCb`),T(this,`blockClass`),T(this,`blockSelector`),T(this,`maskTextClass`),T(this,`maskTextSelector`),T(this,`inlineStylesheet`),T(this,`maskInputOptions`),T(this,`maskTextFn`),T(this,`maskInputFn`),T(this,`keepIframeSrcFn`),T(this,`recordCanvas`),T(this,`inlineImages`),T(this,`slimDOMOptions`),T(this,`dataURLOptions`),T(this,`doc`),T(this,`mirror`),T(this,`iframeManager`),T(this,`stylesheetManager`),T(this,`shadowDomManager`),T(this,`canvasManager`),T(this,`processedNodeManager`),T(this,`unattachedDoc`),T(this,`processMutations`,function(t){t.forEach(e.processMutation),e.emit()}),T(this,`emit`,function(){if(!(e.frozen||e.locked)){for(var t=[],n=new Set,r=new su,i=function(t){for(var n=t,r=ot;r===ot;)n&&=n.nextSibling,r=n&&e.mirror.getId(n);return r},a=function(a){var o=F.parentNode(a);if(o&&eu(a)){var s=!1;if(a.nodeType===Node.TEXT_NODE){var c=o.tagName;if(c===`TEXTAREA`)return;c===`STYLE`&&e.addedSet.has(o)&&(s=!0)}var l=Me(o)?e.mirror.getId(Zl(a)):e.mirror.getId(o),u=i(a);if(l===-1||u===-1)return r.addNode(a);var d=At(a,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){ql(t,e.mirror)&&e.iframeManager.addIframe(t),Jl(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),Yl(a)&&e.shadowDomManager.addShadowRoot(F.shadowRoot(a),e.doc)},onIframeLoad:function(t,n){e.iframeManager.attachIframe(t,n),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,n){e.stylesheetManager.attachLinkElement(t,n)},cssCaptured:s});d&&(t.push({parentId:l,nextId:u,node:d}),n.add(d.id))}};e.mapRemoves.length;){var o=e.mapRemoves.shift();e.cleanupRemovedNode(o),e.mirror.removeNodeFromMap(o)}for(var s=C(e.movedSet),c;!(c=s()).done;){var l=c.value;(!fu(e.removesSubTreeCache,l,e.mirror)||e.movedSet.has(F.parentNode(l)))&&a(l)}for(var u=C(e.addedSet),d;!(d=u()).done;){var f=d.value;!mu(e.droppedSet,f)&&!fu(e.removesSubTreeCache,f,e.mirror)||mu(e.movedSet,f)?a(f):e.droppedSet.add(f)}for(var p=null;r.length;){var m=null;if(p){var h=e.mirror.getId(F.parentNode(p.value)),g=i(p.value);h!==-1&&g!==-1&&(m=p)}if(!m)for(var _=r.tail;_;){var v=_;if(_=_.previous,v){var y=e.mirror.getId(F.parentNode(v.value));if(i(v.value)===-1)continue;if(y!==-1){m=v;break}var b=v.value,x=F.parentNode(b);if(x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var S=F.host(x);if(e.mirror.getId(S)!==-1){m=v;break}}}}if(!m){for(;r.head;)r.removeNode(r.head.value);break}p=m.previous,r.removeNode(m.value),a(m.value)}var ee={texts:e.texts.map(function(t){var n=t.node,r=F.parentNode(n);return r&&r.tagName===`TEXTAREA`&&e.genTextAreaValueMutation(r),{id:e.mirror.getId(n),value:t.value}}).filter(function(e){return!n.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var n=t.attributes;if(typeof n.style==`string`){var r=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);r.length<n.style.length&&(r+i).split(`var(`).length===n.style.split(`var(`).length&&(n.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:n}}).filter(function(e){return!n.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(ee.texts.length||ee.attributes.length||ee.removes.length||ee.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(ee))}}),T(this,`genTextAreaValueMutation`,function(t){var n=e.attributeMap.get(t);n||(n={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(n),e.attributeMap.set(t,n));var r=Array.from(F.childNodes(t),function(e){return F.textContent(e)||``}).join(``);n.attributes.value=Ue({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:qe(t),value:r,maskInputFn:e.maskInputFn})}),T(this,`processMutation`,function(t){if(!Ul(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case`characterData`:var n=F.textContent(t.target);!Vl(t.target,e.blockClass,e.blockSelector,!1)&&n!==t.oldValue&&e.texts.push({value:St(t.target,e.maskTextClass,e.maskTextSelector,!0)&&n?e.maskTextFn?e.maskTextFn(n,Bl(t.target)):n.replace(/[\S]/g,`*`):n,node:t.target});break;case`attributes`:var r=t.target,i=t.attributeName,a=t.target.getAttribute(i);if(i===`value`||i===`placeholder`){var o=qe(r);a=Ue({element:r,maskInputOptions:e.maskInputOptions,tagName:r.tagName,type:o,value:a,maskInputFn:e.maskInputFn})}if(Vl(t.target,e.blockClass,e.blockSelector,!1)||a===t.oldValue)return;var s=e.attributeMap.get(t.target);if(r.tagName===`IFRAME`&&i===`src`&&!e.keepIframeSrcFn(a)){if(!r.contentDocument)i=`rr_src`;else return}if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(s),e.attributeMap.set(t.target,s)),i===`type`&&r.tagName===`INPUT`&&(t.oldValue||``).toLowerCase()===`password`&&r.setAttribute(`data-rr-is-password`,`true`),!yt(r.tagName,i)){if(s.attributes[i]=vt(e.doc,We(r.tagName),We(i),a),i===`style`){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch{e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement(`span`);t.oldValue&&c.setAttribute(`style`,t.oldValue);for(var l=C(Array.from(r.style)),u;!(u=l()).done;){var d=u.value,f=r.style.getPropertyValue(d),p=r.style.getPropertyPriority(d);f!==c.style.getPropertyValue(d)||p!==c.style.getPropertyPriority(d)?p===``?s.styleDiff[d]=f:s.styleDiff[d]=[f,p]:s._unchangedStyles[d]=[f,p]}for(var m=C(Array.from(c.style)),h;!(h=m()).done;){var g=h.value;r.style.getPropertyValue(g)===``&&(s.styleDiff[g]=!1)}}else i===`open`&&r.tagName===`DIALOG`&&(r.matches(`dialog:modal`)?s.attributes.rr_open_mode=`modal`:s.attributes.rr_open_mode=`non-modal`)}break;case`childList`:if(Vl(t.target,e.blockClass,e.blockSelector,!0))return;if(t.target.tagName===`TEXTAREA`){e.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(function(n){return e.genAdds(n,t.target)}),t.removedNodes.forEach(function(n){var r=e.mirror.getId(n),i=Me(t.target)?e.mirror.getId(F.host(t.target)):e.mirror.getId(t.target);Vl(t.target,e.blockClass,e.blockSelector,!1)||Ul(n,e.mirror,e.slimDOMOptions)||!Hl(n,e.mirror)||(e.addedSet.has(n)?(uu(e.addedSet,n),e.droppedSet.add(n)):e.addedSet.has(t.target)&&r===-1||Wl(t.target,e.mirror)||(e.movedSet.has(n)&&e.movedMap[cu(r,i)]?uu(e.movedSet,n):(e.removes.push({parentId:i,id:r,isShadow:Me(t.target)&&Ne(t.target)?!0:void 0}),du(n,e.removesSubTreeCache))),e.mapRemoves.push(n))})}}),T(this,`genAdds`,function(t,n){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!(e.addedSet.has(t)||e.movedSet.has(t))){if(e.mirror.hasNode(t)){if(Ul(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var r=null;n&&e.mirror.hasNode(n)&&(r=e.mirror.getId(n)),r&&r!==-1&&(e.movedMap[cu(e.mirror.getId(t),r)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);Vl(t,e.blockClass,e.blockSelector,!1)||(F.childNodes(t).forEach(function(t){return e.genAdds(t)}),Yl(t)&&F.childNodes(F.shadowRoot(t)).forEach(function(n){e.processedNodeManager.add(n,e),e.genAdds(n,t)}))}}),T(this,`cleanupRemovedNode`,function(t){if(t.nodeName===`IFRAME`)try{e.iframeManager.removeIframe(t)}catch{}else try{e.stylesheetManager.cleanupStylesheetsForRemovedNode(t)}catch{}t.childNodes.forEach(function(t){e.cleanupRemovedNode(t)})})}var t=e.prototype;return t.init=function(e){var t=this;[`mutationCb`,`blockClass`,`blockSelector`,`maskTextClass`,`maskTextSelector`,`inlineStylesheet`,`maskInputOptions`,`maskTextFn`,`maskInputFn`,`keepIframeSrcFn`,`recordCanvas`,`inlineImages`,`slimDOMOptions`,`dataURLOptions`,`doc`,`mirror`,`iframeManager`,`stylesheetManager`,`shadowDomManager`,`canvasManager`,`processedNodeManager`].forEach(function(n){t[n]=e[n]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function uu(e,t){e.delete(t),F.childNodes(t).forEach(function(t){return uu(e,t)})}function du(e,t){for(var n=[e];n.length;){var r=n.pop();t.has(r)||(t.add(r),F.childNodes(r).forEach(function(e){return n.push(e)}))}}function fu(e,t,n){return e.size!==0&&pu(e,t)}function pu(e,t,n){var r=F.parentNode(t);return r?e.has(r):!1}function mu(e,t){return e.size!==0&&hu(e,t)}function hu(e,t){var n=F.parentNode(t);return n?e.has(n)?!0:hu(e,n):!1}var gu;function _u(e){gu=e}function vu(){gu=void 0}var R=function(e){return gu?function(){var t=[...arguments];try{return e.apply(void 0,[].concat(t))}catch(e){if(gu&&gu(e)===!0)return;throw e}}:e},yu=[];function bu(e){try{if(`composedPath`in e){var t=e.composedPath();if(t.length)return t[0]}else if(`path`in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function xu(e,t){var n=new lu;yu.push(n),n.init(e);var r=new(Al())(R(n.processMutations.bind(n)));return r.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function Su(e){for(var t=yu.length-1;t>=0;t--)yu[t].getDoc()===e&&yu.splice(t,1)}function Cu(e){var t=e.mousemoveCb,n=e.sampling,r=e.doc,i=e.mirror;if(n.mousemove===!1)return function(){};var a=typeof n.mousemove==`number`?n.mousemove:50,o=typeof n.mousemoveCallback==`number`?n.mousemoveCallback:500,s=[],c,l=Pl(R(function(e){var n=Date.now()-c;t(s.map(function(e){return e.timeOffset-=n,e}),e),s=[],c=null}),o),u=R(Pl(R(function(e){var t=bu(e),n=Gl(e)?e.changedTouches[0]:e,r=n.clientX,a=n.clientY;c||=Il(),s.push({x:r,y:a,id:i.getId(t),timeOffset:Il()-c}),l(typeof DragEvent<`u`&&v(e,DragEvent)?L.Drag:v(e,MouseEvent)?L.MouseMove:L.TouchMove)}),a,{trailing:!1})),d=[Ml(`mousemove`,u,r),Ml(`touchmove`,u,r),Ml(`drag`,u,r)];return R(function(){d.forEach(function(e){return e()})})}function wu(e){var t=e.mouseInteractionCb,n=e.doc,r=e.mirror,i=e.blockClass,a=e.blockSelector,o=e.sampling;if(o.mouseInteraction===!1)return function(){};var s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[],l=null,u=function(e){return function(n){var o=bu(n);if(!Vl(o,i,a,!0)){var s=null,c=e;if(`pointerType`in n){switch(n.pointerType){case`mouse`:s=nu.Mouse;break;case`touch`:s=nu.Touch;break;case`pen`:s=nu.Pen}s===nu.Touch?tu[e]===tu.MouseDown?c=`TouchStart`:tu[e]===tu.MouseUp&&(c=`TouchEnd`):nu.Pen}else Gl(n)&&(s=nu.Touch);s===null?tu[e]===tu.Click&&(s=l,l=null):(l=s,(c.startsWith(`Touch`)&&s===nu.Touch||c.startsWith(`Mouse`)&&s===nu.Mouse)&&(s=null));var u=Gl(n)?n.changedTouches[0]:n;if(u){var d=r.getId(o),f=u.clientX,p=u.clientY;R(t)(h({type:tu[c],id:d,x:f,y:p},s!==null&&{pointerType:s}))}}}};return Object.keys(tu).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith(`_Departed`)&&s[e]!==!1}).forEach(function(e){var t=We(e),r=u(e);if(window.PointerEvent)switch(tu[e]){case tu.MouseDown:case tu.MouseUp:t=t.replace(`mouse`,`pointer`);break;case tu.TouchStart:case tu.TouchEnd:return}c.push(Ml(t,r,n))}),R(function(){c.forEach(function(e){return e()})})}function Tu(e){var t=e.scrollCb,n=e.doc,r=e.mirror,i=e.blockClass,a=e.blockSelector,o=e.sampling;return Ml(`scroll`,R(Pl(R(function(e){var o=bu(e);if(o&&!Vl(o,i,a,!0)){var s=r.getId(o);if(o===n&&n.defaultView){var c=Ll(n.defaultView);t({id:s,x:c.left,y:c.top})}else t({id:s,x:o.scrollLeft,y:o.scrollTop})}}),o.scroll||100)),n)}function Eu(e,t){var n=e.viewportResizeCb,r=t.win,i=-1,a=-1;return Ml(`resize`,R(Pl(R(function(){var e=Rl(),t=zl();(i!==e||a!==t)&&(n({width:Number(t),height:Number(e)}),i=e,a=t)}),200)),r)}var Du=[`INPUT`,`TEXTAREA`,`SELECT`],Ou=new WeakMap;function ku(e){var t=e.inputCb,n=e.doc,r=e.mirror,i=e.blockClass,a=e.blockSelector,o=e.ignoreClass,s=e.ignoreSelector,c=e.maskInputOptions,l=e.maskInputFn,u=e.sampling,d=e.userTriggeredOnInput;function f(e){var t=bu(e),r=e.isTrusted,u=t&&t.tagName;if(t&&u===`OPTION`&&(t=F.parentElement(t)),!(!t||!u||Du.indexOf(u)<0||Vl(t,i,a,!0))&&!(t.classList.contains(o)||s&&t.matches(s))){var f=t.value,m=!1,h=qe(t)||``;h===`radio`||h===`checkbox`?m=t.checked:(c[u.toLowerCase()]||c[h])&&(f=Ue({element:t,maskInputOptions:c,tagName:u,type:h,value:f,maskInputFn:l})),p(t,d?{text:f,isChecked:m,userTriggered:r}:{text:f,isChecked:m});var g=t.name;h===`radio`&&g&&m&&n.querySelectorAll(`input[type="radio"][name="`+g+`"]`).forEach(function(e){if(e!==t){var n=e.value;p(e,d?{text:n,isChecked:!m,userTriggered:!1}:{text:n,isChecked:!m})}})}}function p(e,n){var i=Ou.get(e);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){Ou.set(e,n);var a=r.getId(e);R(t)(h({},n,{id:a}))}}var m=(u.input===`last`?[`change`]:[`input`,`change`]).map(function(e){return Ml(e,R(f),n)}),g=n.defaultView;if(!g)return function(){m.forEach(function(e){return e()})};var _=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,`value`),v=[[g.HTMLInputElement.prototype,`value`],[g.HTMLInputElement.prototype,`checked`],[g.HTMLSelectElement.prototype,`value`],[g.HTMLTextAreaElement.prototype,`value`],[g.HTMLSelectElement.prototype,`selectedIndex`],[g.HTMLOptionElement.prototype,`selected`]];if(_&&_.set){var y;(y=m).push.apply(y,[].concat(v.map(function(e){return Fl(e[0],e[1],{set:function(){R(f)({target:this,isTrusted:!1})}},!1,g)})))}return R(function(){m.forEach(function(e){return e()})})}function Au(e){var t=[];function n(e,t){if(Vu(`CSSGroupingRule`)&&v(e.parentRule,CSSGroupingRule)||Vu(`CSSMediaRule`)&&v(e.parentRule,CSSMediaRule)||Vu(`CSSSupportsRule`)&&v(e.parentRule,CSSSupportsRule)||Vu(`CSSConditionRule`)&&v(e.parentRule,CSSConditionRule)){var n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}return n(e,t)}function ju(e,t,n){var r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function Mu(e,t){var n=e.styleSheetRuleCb,r=e.mirror,i=e.stylesheetManager,a=t.win;if(!a.CSSStyleSheet||!a.CSSStyleSheet.prototype)return function(){};var o=a.CSSStyleSheet.prototype.insertRule;a.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:R(function(e,t,a){var o=a[0],s=a[1],c=ju(t,r,i.styleMirror),l=c.id,u=c.styleId;return(l&&l!==-1||u&&u!==-1)&&n({id:l,styleId:u,adds:[{rule:o,index:s}]}),e.apply(t,a)})}),a.CSSStyleSheet.prototype.addRule=function(e,t,n){n===void 0&&(n=this.cssRules.length);var r=e+` { `+t+` }`;return a.CSSStyleSheet.prototype.insertRule.apply(this,[r,n])};var s=a.CSSStyleSheet.prototype.deleteRule;a.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:R(function(e,t,a){var o=a[0],s=ju(t,r,i.styleMirror),c=s.id,l=s.styleId;return(c&&c!==-1||l&&l!==-1)&&n({id:c,styleId:l,removes:[{index:o}]}),e.apply(t,a)})}),a.CSSStyleSheet.prototype.removeRule=function(e){return a.CSSStyleSheet.prototype.deleteRule.apply(this,[e])};var c;a.CSSStyleSheet.prototype.replace&&(c=a.CSSStyleSheet.prototype.replace,a.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:R(function(e,t,a){var o=a[0],s=ju(t,r,i.styleMirror),c=s.id,l=s.styleId;return(c&&c!==-1||l&&l!==-1)&&n({id:c,styleId:l,replace:o}),e.apply(t,a)})}));var l;a.CSSStyleSheet.prototype.replaceSync&&(l=a.CSSStyleSheet.prototype.replaceSync,a.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:R(function(e,t,a){var o=a[0],s=ju(t,r,i.styleMirror),c=s.id,l=s.styleId;return(c&&c!==-1||l&&l!==-1)&&n({id:c,styleId:l,replaceSync:o}),e.apply(t,a)})}));var u={};Hu(`CSSGroupingRule`)?u.CSSGroupingRule=a.CSSGroupingRule:(Hu(`CSSMediaRule`)&&(u.CSSMediaRule=a.CSSMediaRule),Hu(`CSSConditionRule`)&&(u.CSSConditionRule=a.CSSConditionRule),Hu(`CSSSupportsRule`)&&(u.CSSSupportsRule=a.CSSSupportsRule));var d={};return Object.entries(u).forEach(function(e){var t=e[0],a=e[1];d[t]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=new Proxy(d[t].insertRule,{apply:R(function(e,t,a){var o=a[0],s=a[1],c=ju(t.parentStyleSheet,r,i.styleMirror),l=c.id,u=c.styleId;return(l&&l!==-1||u&&u!==-1)&&n({id:l,styleId:u,adds:[{rule:o,index:[].concat(Au(t),[s||0])}]}),e.apply(t,a)})}),a.prototype.deleteRule=new Proxy(d[t].deleteRule,{apply:R(function(e,t,a){var o=a[0],s=ju(t.parentStyleSheet,r,i.styleMirror),c=s.id,l=s.styleId;return(c&&c!==-1||l&&l!==-1)&&n({id:c,styleId:l,removes:[{index:[].concat(Au(t),[o])}]}),e.apply(t,a)})})}),R(function(){a.CSSStyleSheet.prototype.insertRule=o,a.CSSStyleSheet.prototype.deleteRule=s,c&&(a.CSSStyleSheet.prototype.replace=c),l&&(a.CSSStyleSheet.prototype.replaceSync=l),Object.entries(u).forEach(function(e){var t=e[0],n=e[1];n.prototype.insertRule=d[t].insertRule,n.prototype.deleteRule=d[t].deleteRule})})}function Nu(e,t){var n=e.mirror,r=e.stylesheetManager,i=null;i=t.nodeName===`#document`?n.getId(t):n.getId(F.host(t));var a=t.nodeName===`#document`?t.defaultView?.Document:t.ownerDocument?.defaultView?.ShadowRoot,o=a?.prototype?Object.getOwnPropertyDescriptor(a?.prototype,`adoptedStyleSheets`):void 0;return i===null||i===-1||!a||!o?function(){}:(Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:function(){return o.get?.call(this)},set:function(e){var t=o.set?.call(this,e);if(i!==null&&i!==-1)try{r.adoptStyleSheets(e,i)}catch{}return t}}),R(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))}function Pu(e,t){var n=e.styleDeclarationCb,r=e.mirror,i=e.ignoreCSSAttributes,a=e.stylesheetManager,o=t.win,s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:R(function(e,t,o){var c=o[0],l=o[1],u=o[2];if(i.has(c))return s.apply(t,[c,l,u]);var d=ju(t.parentRule?.parentStyleSheet,r,a.styleMirror),f=d.id,p=d.styleId;return(f&&f!==-1||p&&p!==-1)&&n({id:f,styleId:p,set:{property:c,value:l,priority:u},index:Au(t.parentRule)}),e.apply(t,o)})});var c=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:R(function(e,t,o){var s=o[0];if(i.has(s))return c.apply(t,[s]);var l=ju(t.parentRule?.parentStyleSheet,r,a.styleMirror),u=l.id,d=l.styleId;return(u&&u!==-1||d&&d!==-1)&&n({id:u,styleId:d,remove:{property:s},index:Au(t.parentRule)}),e.apply(t,o)})}),R(function(){o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=c})}function Fu(e){var t=e.mediaInteractionCb,n=e.blockClass,r=e.blockSelector,i=e.mirror,a=e.sampling,o=e.doc,s=R(function(e){return Pl(R(function(a){var o=bu(a);if(o&&!Vl(o,n,r,!0)){var s=o.currentTime,c=o.volume,l=o.muted,u=o.playbackRate,d=o.loop;t({type:e,id:i.getId(o),currentTime:s,volume:c,muted:l,playbackRate:u,loop:d})}}),a.media||500)}),c=[Ml(`play`,s(iu.Play),o),Ml(`pause`,s(iu.Pause),o),Ml(`seeked`,s(iu.Seeked),o),Ml(`volumechange`,s(iu.VolumeChange),o),Ml(`ratechange`,s(iu.RateChange),o)];return R(function(){c.forEach(function(e){return e()})})}function Iu(e){var t=e.fontCb,n=e.doc,r=n.defaultView;if(!r)return function(){};var i=[],a=new WeakMap,o=r.FontFace;r.FontFace=function(e,t,n){var r=new o(e,t,n);return a.set(r,{family:e,buffer:typeof t!=`string`,descriptors:n,fontSource:typeof t==`string`?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};var s=jl(n.fonts,`add`,function(e){return function(n){return setTimeout(R(function(){var e=a.get(n);e&&(t(e),a.delete(n))}),0),e.apply(this,[n])}});return i.push(function(){r.FontFace=o}),i.push(s),R(function(){i.forEach(function(e){return e()})})}function Lu(e){var t=e.doc,n=e.mirror,r=e.blockClass,i=e.blockSelector,a=e.selectionCb,o=!0,s=R(function(){var e=t.getSelection();if(!(!e||o&&e?.isCollapsed)){o=e.isCollapsed||!1;for(var s=[],c=e.rangeCount||0,l=0;l<c;l++){var u=e.getRangeAt(l),d=u.startContainer,f=u.startOffset,p=u.endContainer,m=u.endOffset;Vl(d,r,i,!0)||Vl(p,r,i,!0)||s.push({start:n.getId(d),startOffset:f,end:n.getId(p),endOffset:m})}a({ranges:s})}});return s(),Ml(`selectionchange`,s)}function Ru(e){var t=e.doc,n=e.customElementCb,r=t.defaultView;return!r||!r.customElements?function(){}:jl(r.customElements,`define`,function(e){return function(t,r,i){try{n({define:{name:t}})}catch{}return e.apply(this,[t,r,i])}})}function zu(e,t){var n=e.mutationCb,r=e.mousemoveCb,i=e.mouseInteractionCb,a=e.scrollCb,o=e.viewportResizeCb,s=e.inputCb,c=e.mediaInteractionCb,l=e.styleSheetRuleCb,u=e.styleDeclarationCb,d=e.canvasMutationCb,f=e.fontCb,p=e.selectionCb,m=e.customElementCb;e.mutationCb=function(){var e=[...arguments];if(t.mutation){var r;(r=t).mutation.apply(r,[].concat(e))}n.apply(void 0,[].concat(e))},e.mousemoveCb=function(){var e=[...arguments];if(t.mousemove){var n;(n=t).mousemove.apply(n,[].concat(e))}r.apply(void 0,[].concat(e))},e.mouseInteractionCb=function(){var e=[...arguments];if(t.mouseInteraction){var n;(n=t).mouseInteraction.apply(n,[].concat(e))}i.apply(void 0,[].concat(e))},e.scrollCb=function(){var e=[...arguments];if(t.scroll){var n;(n=t).scroll.apply(n,[].concat(e))}a.apply(void 0,[].concat(e))},e.viewportResizeCb=function(){var e=[...arguments];if(t.viewportResize){var n;(n=t).viewportResize.apply(n,[].concat(e))}o.apply(void 0,[].concat(e))},e.inputCb=function(){var e=[...arguments];if(t.input){var n;(n=t).input.apply(n,[].concat(e))}s.apply(void 0,[].concat(e))},e.mediaInteractionCb=function(){var e=[...arguments];if(t.mediaInteaction){var n;(n=t).mediaInteaction.apply(n,[].concat(e))}c.apply(void 0,[].concat(e))},e.styleSheetRuleCb=function(){var e=[...arguments];if(t.styleSheetRule){var n;(n=t).styleSheetRule.apply(n,[].concat(e))}l.apply(void 0,[].concat(e))},e.styleDeclarationCb=function(){var e=[...arguments];if(t.styleDeclaration){var n;(n=t).styleDeclaration.apply(n,[].concat(e))}u.apply(void 0,[].concat(e))},e.canvasMutationCb=function(){var e=[...arguments];if(t.canvasMutation){var n;(n=t).canvasMutation.apply(n,[].concat(e))}d.apply(void 0,[].concat(e))},e.fontCb=function(){var e=[...arguments];if(t.font){var n;(n=t).font.apply(n,[].concat(e))}f.apply(void 0,[].concat(e))},e.selectionCb=function(){var e=[...arguments];if(t.selection){var n;(n=t).selection.apply(n,[].concat(e))}p.apply(void 0,[].concat(e))},e.customElementCb=function(){var e=[...arguments];if(t.customElement){var n;(n=t).customElement.apply(n,[].concat(e))}m.apply(void 0,[].concat(e))}}function Bu(e,t){t===void 0&&(t={});var n=e.doc.defaultView;if(!n)return function(){};zu(e,t);var r;e.recordDOM&&(r=xu(e,e.doc));var i=Cu(e),a=wu(e),o=Tu(e),s=Eu(e,{win:n}),c=ku(e),l=Fu(e),u=function(){},d=function(){},f=function(){},p=function(){};e.recordDOM&&(u=Mu(e,{win:n}),d=Nu(e,e.doc),f=Pu(e,{win:n}),e.collectFonts&&(p=Iu(e)));for(var m=Lu(e),h=Ru(e),g=[],_=C(e.plugins),v;!(v=_()).done;){var y=v.value;g.push(y.observer(y.callback,n,y.options))}return R(function(){yu.forEach(function(e){return e.reset()}),r?.disconnect(),i(),a(),o(),s(),c(),l(),u(),d(),f(),p(),m(),h(),g.forEach(function(e){return e()})})}function Vu(e){return window[e]!==void 0}function Hu(e){return!!(window[e]!==void 0&&window[e].prototype&&`insertRule`in window[e].prototype&&`deleteRule`in window[e].prototype)}for(var Uu=function(){function e(e){T(this,`iframeIdToRemoteIdMap`,new WeakMap),T(this,`iframeRemoteIdToIdMap`,new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,n,r){var i=n||this.getIdToRemoteIdMap(e),a=r||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),a.set(o,t)),o},t.getIds=function(e,t){var n=this,r=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return n.getId(e,t,r,i)})},t.getRemoteId=function(e,t,n){var r=n||this.getRemoteIdToIdMap(e);return typeof t==`number`?r.get(t)||-1:t},t.getRemoteIds=function(e,t){var n=this,r=this.getRemoteIdToIdMap(e);return t.map(function(t){return n.getRemoteId(e,t,r)})},t.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),Wu=function(){function e(e){T(this,`iframes`,new WeakMap),T(this,`crossOriginIframeMap`,new WeakMap),T(this,`crossOriginIframeMirror`,new Uu(st)),T(this,`crossOriginIframeStyleMirror`),T(this,`crossOriginIframeRootIdMap`,new WeakMap),T(this,`iframeContentDocumentMap`,new WeakMap),T(this,`iframeObserverCleanupMap`,new WeakMap),T(this,`mirror`),T(this,`mutationCb`),T(this,`wrappedEmit`),T(this,`loadListener`),T(this,`stylesheetManager`),T(this,`recordCrossOriginIframes`),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Uu(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener(`message`,this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var n=this.iframeObserverCleanupMap.get(e);if(n){try{n()}catch{}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var n,r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&((n=e.contentWindow)==null||n.addEventListener(`message`,this.handleMessage.bind(this))),(r=this.loadListener)==null||r.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if(t.data.type===`rrweb`&&t.origin===t.data.origin&&e.source){var n=this.crossOriginIframeMap.get(e.source);if(n){var r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var n=this,r;switch(t.type){case I.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:I.IncrementalSnapshot,data:{source:L.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case I.Meta:case I.Load:case I.DomContentLoaded:return!1;case I.Plugin:return t;case I.Custom:return this.replaceIds(t.data.payload,e,[`id`,`parentId`,`previousId`,`nextId`]),t;case I.IncrementalSnapshot:switch(t.data.source){case L.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,[`parentId`,`nextId`,`previousId`]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,[`parentId`,`id`])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,[`id`])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,[`id`])}),t;case L.Drag:case L.TouchMove:case L.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,[`id`])}),t;case L.ViewportResize:return!1;case L.MediaInteraction:case L.MouseInteraction:case L.Scroll:case L.CanvasMutation:case L.Input:return this.replaceIds(t.data,e,[`id`]),t;case L.StyleSheetRule:case L.StyleDeclaration:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleId`]),t;case L.Font:return t;case L.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,[`start`,`end`])}),t;case L.AdoptedStyleSheet:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleIds`]),(r=t.data.styles)==null||r.forEach(function(t){n.replaceStyleIds(t,e,[`styleId`])}),t}}return!1},t.replace=function(e,t,n,r){for(var i=C(r),a;!(a=i()).done;){var o=a.value;(Array.isArray(t[o])||typeof t[o]==`number`)&&(t[o]=Array.isArray(t[o])?e.getIds(n,t[o]):e.getId(n,t[o]))}return t},t.replaceIds=function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)},t.replaceStyleIds=function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)},t.replaceIdOnNode=function(e,t){var n=this;this.replaceIds(e,t,[`id`,`rootId`]),`childNodes`in e&&e.childNodes.forEach(function(e){n.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var n=this;e.type!==au.Document&&!e.rootId&&(e.rootId=t),`childNodes`in e&&e.childNodes.forEach(function(e){n.patchRootIdOnNode(e,t)})},e}(),Gu=function(){function e(e){T(this,`shadowDoms`,new WeakSet),T(this,`mutationCb`),T(this,`scrollCb`),T(this,`bypassOptions`),T(this,`mirror`),T(this,`restoreHandlers`,[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var n=this;if(Ne(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var r=xu(h({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return r.disconnect()}),this.restoreHandlers.push(Tu(h({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&n.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,n.mirror.getId(F.host(e))),n.restoreHandlers.push(Nu({mirror:n.mirror,stylesheetManager:n.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var n=this;this.restoreHandlers.push(jl(e.prototype,`attachShadow`,function(e){return function(r){var i=e.call(this,r),a=F.shadowRoot(this);return a&&eu(this)&&n.addShadowRoot(a,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),Ku=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,qu=typeof Uint8Array>`u`?[]:new Uint8Array(256),Ju=0;Ju<Ku.length;Ju++)qu[Ku.charCodeAt(Ju)]=Ju;var Yu=function(e){var t=new Uint8Array(e),n,r=t.length,i=``;for(n=0;n<r;n+=3)i+=Ku[t[n]>>2],i+=Ku[(t[n]&3)<<4|t[n+1]>>4],i+=Ku[(t[n+1]&15)<<2|t[n+2]>>6],i+=Ku[t[n+2]&63];return r%3==2?i=i.substring(0,i.length-1)+`=`:r%3==1&&(i=i.substring(0,i.length-2)+`==`),i},Xu=new Map;function Zu(e,t){var n=Xu.get(e);return n||(n=new Map,Xu.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}var Qu=function(e,t,n){if(e&&(td(e,t)||(e===void 0?`undefined`:S(e))===`object`)){var r=e.constructor.name,i=Zu(n,r),a=i.indexOf(e);return a===-1&&(a=i.length,i.push(e)),a}};function $u(e,t,n){return v(e,Array)?e.map(function(e){return $u(e,t,n)}):e===null?e:v(e,Float32Array)||v(e,Float64Array)||v(e,Int32Array)||v(e,Uint32Array)||v(e,Uint8Array)||v(e,Uint16Array)||v(e,Int16Array)||v(e,Int8Array)||v(e,Uint8ClampedArray)?{rr_type:e.constructor.name,args:[Object.values(e)]}:v(e,ArrayBuffer)?{rr_type:e.constructor.name,base64:Yu(e)}:v(e,DataView)?{rr_type:e.constructor.name,args:[$u(e.buffer,t,n),e.byteOffset,e.byteLength]}:v(e,HTMLImageElement)?{rr_type:e.constructor.name,src:e.src}:v(e,HTMLCanvasElement)?{rr_type:`HTMLImageElement`,src:e.toDataURL()}:v(e,ImageData)?{rr_type:e.constructor.name,args:[$u(e.data,t,n),e.width,e.height]}:td(e,t)||(e===void 0?`undefined`:S(e))===`object`?{rr_type:e.constructor.name,index:Qu(e,t,n)}:e}var ed=function(e,t,n){return e.map(function(e){return $u(e,t,n)})},td=function(e,t){return!![`WebGLActiveInfo`,`WebGLBuffer`,`WebGLFramebuffer`,`WebGLProgram`,`WebGLRenderbuffer`,`WebGLShader`,`WebGLShaderPrecisionFormat`,`WebGLTexture`,`WebGLUniformLocation`,`WebGLVertexArrayObject`,`WebGLVertexArrayObjectOES`].filter(function(e){return typeof t[e]==`function`}).find(function(n){return v(e,t[n])})};function nd(e,t,n,r){for(var i=function(){var i=s.value;try{if(typeof t.CanvasRenderingContext2D.prototype[i]!=`function`)return`continue`;var o=jl(t.CanvasRenderingContext2D.prototype,i,function(a){return function(){var o=this,s=[...arguments];return Vl(this.canvas,n,r,!0)||setTimeout(function(){var n=ed(s,t,o);e(o.canvas,{type:ru[`2D`],property:i,args:n})},0),a.apply(this,s)}});a.push(o)}catch{var c=Fl(t.CanvasRenderingContext2D.prototype,i,{set:function(t){e(this.canvas,{type:ru[`2D`],property:i,args:[t],setter:!0})}});a.push(c)}},a=[],o=C(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype)),s;!(s=o()).done;)i();return function(){a.forEach(function(e){return e()})}}function rd(e){return e===`experimental-webgl`?`webgl`:e}function id(e,t,n,r){var i=[];try{var a=jl(e.HTMLCanvasElement.prototype,`getContext`,function(e){return function(i){var a=[...arguments].slice(1);if(!Vl(this,t,n,!0)){var o=rd(i);if(`__context`in this||(this.__context=o),r&&[`webgl`,`webgl2`].includes(o)){if(a[0]&&S(a[0])===`object`){var s=a[0];s.preserveDrawingBuffer||=!0}else a.splice(0,1,{preserveDrawingBuffer:!0})}}return e.apply(this,[i].concat(a))}});i.push(a)}catch{}return function(){i.forEach(function(e){return e()})}}function ad(e,t,n,r,i,a){for(var o=function(){var o=l.value;if([`isContextLost`,`canvas`,`drawingBufferWidth`,`drawingBufferHeight`].includes(o))return`continue`;try{if(typeof e[o]!=`function`)return`continue`;var c=jl(e,o,function(e){return function(){var s=[...arguments],c=e.apply(this,s);if(Qu(c,a,this),`tagName`in this.canvas&&!Vl(this.canvas,r,i,!0)){var l={type:t,property:o,args:ed(s,a,this)};n(this.canvas,l)}return c}});s.push(c)}catch{var u=Fl(e,o,{set:function(e){n(this.canvas,{type:t,property:o,args:[e],setter:!0})}});s.push(u)}},s=[],c=C(Object.getOwnPropertyNames(e)),l;!(l=c()).done;)o();return s}function od(e,t,n,r){var i,a=[];if((i=a).push.apply(i,[].concat(ad(t.WebGLRenderingContext.prototype,ru.WebGL,e,n,r,t))),t.WebGL2RenderingContext!==void 0){var o;(o=a).push.apply(o,[].concat(ad(t.WebGL2RenderingContext.prototype,ru.WebGL2,e,n,r,t)))}return function(){a.forEach(function(e){return e()})}}var sd=`KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=`,cd=typeof window<`u`&&window.Blob&&new Blob([function(e){return Uint8Array.from(atob(e),function(e){return e.charCodeAt(0)})}(sd)],{type:`text/javascript;charset=utf-8`});function ld(e){var t;try{if(t=cd&&(window.URL||window.webkitURL).createObjectURL(cd),!t)throw``;var n=new Worker(t,{name:e?.name});return n.addEventListener(`error`,function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),n}catch{return new Worker(`data:text/javascript;base64,`+sd,{name:e?.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var ud=function(){function e(e){var t=this;T(this,`pendingCanvasMutations`,new Map),T(this,`rafStamps`,{latestId:0,invokeId:null}),T(this,`mirror`),T(this,`mutationCb`),T(this,`resetObservers`),T(this,`frozen`,!1),T(this,`locked`,!1),T(this,`processMutation`,function(e,n){(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId||!t.rafStamps.invokeId)&&(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(n)});var n=e.sampling,r=n===void 0?`all`:n,i=e.win,a=e.blockClass,o=e.blockSelector,s=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,s&&r===`all`&&this.initCanvasMutationObserver(i,a,o),s&&typeof r==`number`&&this.initCanvasFPSObserver(r,i,a,o,{dataURLOptions:c})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,n,r,i){var a=this,o=id(t,n,r,!0),s=new Map,c=new ld;c.onmessage=function(e){var t=e.data.id;if(s.set(t,!1),`base64`in e.data){var n=e.data,r=n.base64,i=n.type,o=n.width,c=n.height;a.mutationCb({id:t,type:ru[`2D`],commands:[{property:`clearRect`,args:[0,0,o,c]},{property:`drawImage`,args:[{rr_type:`ImageBitmap`,args:[{rr_type:`Blob`,data:[{rr_type:`ArrayBuffer`,base64:r}],type:i}]},0,0]}]})}};var l=1e3/e,u=0,f,p=function(){var e=[];return t.document.querySelectorAll(`canvas`).forEach(function(t){Vl(t,n,r,!0)||e.push(t)}),e},m=function(e){if(u&&e-u<l){f=requestAnimationFrame(m);return}u=e;var t=a;p().forEach(d(function(e){var n,r,a;return re(this,function(o){switch(o.label){case 0:return n=t.mirror.getId(e),s.get(n)||e.width===0||e.height===0?[2]:(s.set(n,!0),[`webgl`,`webgl2`].includes(e.__context)&&(r=e.getContext(e.__context),r?.getContextAttributes()?.preserveDrawingBuffer===!1&&r.clear(r.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return a=o.sent(),c.postMessage({id:n,bitmap:a,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[a]),[2]}})})),f=requestAnimationFrame(m)};f=requestAnimationFrame(m),this.resetObservers=function(){o(),cancelAnimationFrame(f)}},t.initCanvasMutationObserver=function(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var r=id(e,t,n,!1),i=nd(this.processMutation.bind(this),e,t,n),a=od(this.processMutation.bind(this),e,t,n);this.resetObservers=function(){r(),i(),a()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(n){e.rafStamps.latestId=n,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,n){var r=e.mirror.getId(n);e.flushPendingCanvasMutationFor(n,r)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!(this.frozen||this.locked)){var n=this.pendingCanvasMutations.get(e);if(n&&t!==-1){var r=n.map(function(e){return e.type,b(e,[`type`])}),i=n[0].type;this.mutationCb({id:t,type:i,commands:r}),this.pendingCanvasMutations.delete(e)}}},e}(),dd=function(){function e(e){T(this,`trackedLinkElements`,new WeakSet),T(this,`mutationCb`),T(this,`adoptedStyleSheetCb`),T(this,`styleMirror`,new Xl),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){`_cssText`in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var n,r=function(){var e=s.value,t=void 0;n.styleMirror.has(e)?t=n.styleMirror.getId(e):(t=n.styleMirror.add(e),a.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,n){return{rule:Le(t,e.href),index:n}})})),i.styleIds.push(t)};if(e.length!==0){for(var i={id:t,styleIds:[]},a=[],o=C(e),s;!(s=o()).done;)n=this,r();a.length>0&&(i.styles=a),this.adoptedStyleSheetCb(i)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var n=e;if(n.adoptedStyleSheets)for(var r=C(n.adoptedStyleSheets),i;!(i=r()).done;){var a=i.value;this.styleMirror.remove(a)}}if(e.nodeName===`STYLE`){var o=e;o.sheet&&this.styleMirror.remove(o.sheet)}if(e.nodeName===`LINK`&&e.rel===`stylesheet`){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}e.childNodes&&e.childNodes.forEach(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch{}},t.trackStylesheetInLinkElement=function(e){},e}(),fd=function(){function e(){T(this,`nodeMap`,new WeakMap),T(this,`active`,!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var n=this.nodeMap.get(e);return n&&Array.from(n).some(function(e){return e!==t})},t.add=function(e,t){var n=this;this.active||(this.active=!0,requestAnimationFrame(function(){n.nodeMap=new WeakMap,n.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}();function pd(e){try{var t=new URL(e).origin;return t===`null`?null:t}catch{return null}}function md(e){if(!Array.isArray(e)||e.length===0)throw Error(`[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.`);for(var t=new Set,n=0;n<e.length;n++){var r=e[n];if(typeof r!=`string`)throw Error(`[rrweb] allowedIframeOrigins[`+n+`] must be a string, got `+(r===void 0?`undefined`:S(r))+`.`);var i=pd(r);i&&t.add(i)}return Object.freeze(t)}var z,hd,gd,_d=!1;try{if(Array.from([1],function(e){return e*2})[0]!==2){var vd=document.createElement(`iframe`);document.body.appendChild(vd),Array.from=vd.contentWindow?.Array.from||Array.from,document.body.removeChild(vd)}}catch{}var yd=He();function bd(e){e===void 0&&(e={});var t=e.emit,n=e.checkoutEveryNms,r=e.checkoutEveryNth,i=e.blockClass,a=i===void 0?`rr-block`:i,o=e.blockSelector,s=o===void 0?null:o,c=e.ignoreClass,l=c===void 0?`rr-ignore`:c,u=e.ignoreSelector,d=u===void 0?null:u,f=e.maskTextClass,p=f===void 0?`rr-mask`:f,m=e.maskTextSelector,g=m===void 0?null:m,_=e.inlineStylesheet,v=_===void 0||_,y=e.maskAllInputs,b=e.maskInputOptions,x=e.slimDOMOptions,S=e.maskInputFn,ee=e.maskTextFn,te=e.hooks,ne=e.packFn,re=e.sampling,ie=re===void 0?{}:re,ae=e.dataURLOptions,w=ae===void 0?{}:ae,T=e.mousemoveWait,oe=e.recordDOM,se=oe===void 0||oe,ce=e.recordCanvas,E=ce!==void 0&&ce,le=e.recordCrossOriginIframes,ue=le!==void 0&&le,de=e.allowedIframeOrigins,fe=e.recordAfter,pe=fe===void 0?e.recordAfter===`DOMContentLoaded`?e.recordAfter:`load`:fe,me=e.userTriggeredOnInput,he=me!==void 0&&me,D=e.collectFonts,ge=D!==void 0&&D,_e=e.inlineImages,ve=_e!==void 0&&_e,ye=e.plugins,be=e.keepIframeSrcFn,xe=be===void 0?function(){return!1}:be,Se=e.ignoreCSSAttributes,Ce=Se===void 0?new Set([]):Se,we=e.errorHandler;_u(we);var Te;ue&&de&&de.length>0&&(Te=md(de),Te.size===0&&(Te=void 0));var Ee=!ue||window.parent===window,De=!1;if(!Ee)try{window.parent.document&&(De=!1)}catch{De=!0}if(Ee&&!t)throw Error(`emit function is required`);if(!Ee&&!De)return function(){};T!==void 0&&ie.mousemove===void 0&&(ie.mousemove=T),yd.reset();var Oe=y===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:b===void 0?{password:!0}:b,ke=x===!0||x===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:x===`all`,headMetaDescKeywords:x===`all`,headTitleMutations:x===`all`}:x||{};Kl();var Ae,je=0,Me=function(e){for(var t=C(ye||[]),n;!(n=t()).done;){var r=n.value;r.eventProcessor&&(e=r.eventProcessor(e))}return ne&&!De&&(e=ne(e)),e};z=function(e,i){var a=e;if(a.timestamp=Il(),yu[0]?.isFrozen()&&a.type!==I.FullSnapshot&&(a.type!==I.IncrementalSnapshot||a.data.source!==L.Mutation)&&yu.forEach(function(e){return e.unfreeze()}),Ee)t?.(Me(a),i);else if(De){var o={type:`rrweb`,event:Me(a),origin:window.location.origin,isCheckout:i};if(Te)for(var s=C(Te),c;!(c=s()).done;){var l=c.value;window.parent.postMessage(o,l)}else window.parent.postMessage(o,`*`)}if(a.type===I.FullSnapshot)Ae=a,je=0;else if(a.type===I.IncrementalSnapshot){if(a.data.source===L.Mutation&&a.data.isAttachIframe)return;je++;var u=r&&je>=r,d=n&&a.timestamp-Ae.timestamp>n;(u||d)&&hd(!0)}};for(var Ne=function(e){z({type:I.IncrementalSnapshot,data:h({source:L.Mutation},e)})},Pe=function(e){return z({type:I.IncrementalSnapshot,data:h({source:L.Scroll},e)})},Fe=function(e){return z({type:I.IncrementalSnapshot,data:h({source:L.CanvasMutation},e)})},Ie=new dd({mutationCb:Ne,adoptedStyleSheetCb:function(e){return z({type:I.IncrementalSnapshot,data:h({source:L.AdoptedStyleSheet},e)})}}),Le=new Wu({mirror:yd,mutationCb:Ne,stylesheetManager:Ie,recordCrossOriginIframes:ue,wrappedEmit:z}),Re=C(ye||[]),ze;!(ze=Re()).done;){var Be=ze.value;Be.getMirror&&Be.getMirror({nodeMirror:yd,crossOriginIframeMirror:Le.crossOriginIframeMirror,crossOriginIframeStyleMirror:Le.crossOriginIframeStyleMirror})}var Ve=new fd;gd=new ud({recordCanvas:E,mutationCb:Fe,win:window,blockClass:a,blockSelector:s,mirror:yd,sampling:ie.canvas,dataURLOptions:w});var He=new Gu({mutationCb:Ne,scrollCb:Pe,bypassOptions:{blockClass:a,blockSelector:s,maskTextClass:p,maskTextSelector:g,inlineStylesheet:v,maskInputOptions:Oe,dataURLOptions:w,maskTextFn:ee,maskInputFn:S,recordCanvas:E,inlineImages:ve,sampling:ie,slimDOMOptions:ke,iframeManager:Le,stylesheetManager:Ie,canvasManager:gd,keepIframeSrcFn:xe,processedNodeManager:Ve},mirror:yd});hd=function(e){if(e===void 0&&(e=!1),se){z({type:I.Meta,data:{href:window.location.href,width:zl(),height:Rl()}},e),Ie.reset(),He.init(),yu.forEach(function(e){return e.lock()});var t=jt(document,{mirror:yd,blockClass:a,blockSelector:s,maskTextClass:p,maskTextSelector:g,inlineStylesheet:v,maskAllInputs:Oe,maskTextFn:ee,maskInputFn:S,slimDOM:ke,dataURLOptions:w,recordCanvas:E,inlineImages:ve,onSerialize:function(e){ql(e,yd)&&Le.addIframe(e),Jl(e,yd)&&Ie.trackLinkElement(e),Yl(e)&&He.addShadowRoot(F.shadowRoot(e),document)},onIframeLoad:function(e,t){Le.attachIframe(e,t),He.observeAttachShadow(e)},onStylesheetLoad:function(e,t){Ie.attachLinkElement(e,t)},keepIframeSrcFn:xe});t&&(z({type:I.FullSnapshot,data:{node:t,initialOffset:Ll(window)}},e),yu.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Ie.adoptStyleSheets(document.adoptedStyleSheets,yd.getId(document)))}};try{var Ue=[],We=function(e){return R(Bu)({mutationCb:Ne,mousemoveCb:function(e,t){return z({type:I.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return z({type:I.IncrementalSnapshot,data:h({source:L.MouseInteraction},e)})},scrollCb:Pe,viewportResizeCb:function(e){return z({type:I.IncrementalSnapshot,data:h({source:L.ViewportResize},e)})},inputCb:function(e){return z({type:I.IncrementalSnapshot,data:h({source:L.Input},e)})},mediaInteractionCb:function(e){return z({type:I.IncrementalSnapshot,data:h({source:L.MediaInteraction},e)})},styleSheetRuleCb:function(e){return z({type:I.IncrementalSnapshot,data:h({source:L.StyleSheetRule},e)})},styleDeclarationCb:function(e){return z({type:I.IncrementalSnapshot,data:h({source:L.StyleDeclaration},e)})},canvasMutationCb:Fe,fontCb:function(e){return z({type:I.IncrementalSnapshot,data:h({source:L.Font},e)})},selectionCb:function(e){z({type:I.IncrementalSnapshot,data:h({source:L.Selection},e)})},customElementCb:function(e){z({type:I.IncrementalSnapshot,data:h({source:L.CustomElement},e)})},blockClass:a,ignoreClass:l,ignoreSelector:d,maskTextClass:p,maskTextSelector:g,maskInputOptions:Oe,inlineStylesheet:v,sampling:ie,recordDOM:se,recordCanvas:E,inlineImages:ve,userTriggeredOnInput:he,collectFonts:ge,doc:e,maskInputFn:S,maskTextFn:ee,keepIframeSrcFn:xe,blockSelector:s,slimDOMOptions:ke,dataURLOptions:w,mirror:yd,iframeManager:Le,stylesheetManager:Ie,shadowDomManager:He,processedNodeManager:Ve,canvasManager:gd,ignoreCSSAttributes:Ce,plugins:(ye?.filter(function(e){return e.observer}))?.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return z({type:I.Plugin,data:{plugin:e.name,payload:t}})}}})||[]},te)};Le.addLoadListener(function(e){try{var t=e.contentDocument,n=We(t);Ue.push(n);var r=Le.getObserverCleanup(e);Le.setObserverCleanup(e,function(){if(r)try{r()}catch{}try{n();var e=Ue.indexOf(n);e!==-1&&Ue.splice(e,1),Su(t)}catch{}})}catch{}});var Ge=function(){hd(),Ue.push(We(document)),_d=!0};return document.readyState===`interactive`||document.readyState===`complete`?Ge():(Ue.push(Ml(`DOMContentLoaded`,function(){z({type:I.DomContentLoaded,data:{}}),pe===`DOMContentLoaded`&&Ge()})),Ue.push(Ml(`load`,function(){z({type:I.Load,data:{}}),pe===`load`&&Ge()},window))),function(){Ue.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes(`cross-origin`)}}),Ve.destroy(),_d=!1,vu()}}catch{}}bd.addCustomEvent=function(e,t){if(!_d)throw Error(`please add custom event after start recording`);z({type:I.Custom,data:{tag:e,payload:t}})},bd.freezePage=function(){yu.forEach(function(e){return e.freeze()})},bd.takeFullSnapshot=function(e){if(!_d)throw Error(`please take full snapshot after start recording`);hd(e)},bd.mirror=yd;var xd;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`})(xd||={}),bd.addCustomEvent,bd.freezePage,bd.takeFullSnapshot;var Sd={Node:[`childNodes`,`parentNode`,`parentElement`,`textContent`],ShadowRoot:[`host`,`styleSheets`],Element:[`shadowRoot`,`querySelector`,`querySelectorAll`],MutationObserver:[]},Cd={Node:[`contains`,`getRootNode`],ShadowRoot:[`getSelection`],Element:[],MutationObserver:[`constructor`]},wd={},Td=function(){return!!globalThis.Zone};function Ed(e){if(wd[e])return wd[e];var t=globalThis[e],n=t.prototype,r=e in Sd?Sd[e]:void 0,i=!!(r&&r.every(function(e){return!!(Object.getOwnPropertyDescriptor(n,e)?.get)?.toString().includes(`[native code]`)})),a=e in Cd?Cd[e]:void 0,o=!!(a&&a.every(function(e){return typeof n[e]==`function`&&n[e]?.toString().includes(`[native code]`)}));if(i&&o&&!Td())return wd[e]=t.prototype,t.prototype;try{var s=document.createElement(`iframe`);document.body.appendChild(s);var c=s.contentWindow;if(!c)return t.prototype;var l=c[e].prototype;return document.body.removeChild(s),l?wd[e]=l:n}catch{return n}}var Dd={};function Od(e,t,n){var r=e+`.`+String(n);if(Dd[r])return Dd[r].call(t);var i=Ed(e),a=Object.getOwnPropertyDescriptor(i,n)?.get;return a?(Dd[r]=a,a.call(t)):t[n]}var kd={};function Ad(e,t,n){var r=e+`.`+String(n);if(kd[r])return kd[r].bind(t);var i=Ed(e)[n];return typeof i==`function`?(kd[r]=i,i.bind(t)):t[n]}function jd(e){return Od(`Node`,e,`childNodes`)}function Md(e){return Od(`Node`,e,`parentNode`)}function Nd(e){return Od(`Node`,e,`parentElement`)}function Pd(e){return Od(`Node`,e,`textContent`)}function Fd(e,t){return Ad(`Node`,e,`contains`)(t)}function Id(e){return Ad(`Node`,e,`getRootNode`)()}function Ld(e){return!e||!(`host`in e)?null:Od(`ShadowRoot`,e,`host`)}function Rd(e){return e.styleSheets}function zd(e){return!e||!(`shadowRoot`in e)?null:Od(`Element`,e,`shadowRoot`)}function Bd(e,t){return Od(`Element`,e,`querySelector`)(t)}function Vd(e,t){return Od(`Element`,e,`querySelectorAll`)(t)}function Hd(){return Ed(`MutationObserver`).constructor}function Ud(e,t,n){try{if(!(t in e))return function(){};var r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}}catch{return function(){}}}var Wd={childNodes:jd,parentNode:Md,parentElement:Nd,textContent:Pd,contains:Fd,getRootNode:Id,host:Ld,styleSheets:Rd,shadowRoot:zd,querySelector:Bd,querySelectorAll:Vd,mutationObserver:Hd,patch:Ud};function Gd(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return Gd(Wd.parentNode(e),t);for(var r=e.classList.length;r--;){var i=e.classList[r];if(t.test(i))return!0}return Gd(Wd.parentNode(e),t)}function Kd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function qd(e){if(e.__esModule)return e;var t=e.default;if(typeof t==`function`){var n=function e(){return v(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Jd={exports:{}},B=String,Yd=function(){return{isColorSupported:!1,reset:B,bold:B,dim:B,italic:B,underline:B,inverse:B,hidden:B,strikethrough:B,black:B,red:B,green:B,yellow:B,blue:B,magenta:B,cyan:B,white:B,gray:B,bgBlack:B,bgRed:B,bgGreen:B,bgYellow:B,bgBlue:B,bgMagenta:B,bgCyan:B,bgWhite:B}};Jd.exports=Yd(),Jd.exports.createColors=Yd;var Xd=Jd.exports,Zd=qd(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:`Module`}))),Qd=Xd,$d=Zd,ef=function(e){_(t,e);function t(n,r,i,a,o,s){var c=e.call(this,n)||this;return c.name=`CssSyntaxError`,c.reason=n,o&&(c.file=o),a&&(c.source=a),s&&(c.plugin=s),r!==void 0&&i!==void 0&&(typeof r==`number`?(c.line=r,c.column=i):(c.line=r.line,c.column=r.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}var n=t.prototype;return n.setMessage=function(){this.message=this.plugin?this.plugin+`: `:``,this.message+=this.file?this.file:`<css input>`,this.line!==void 0&&(this.message+=`:`+this.line+`:`+this.column),this.message+=`: `+this.reason},n.showSourceCode=function(e){var t=this;if(!this.source)return``;var n=this.source;e??=Qd.isColorSupported,$d&&e&&(n=$d(n));var r=n.split(/\r?\n/),i=Math.max(this.line-3,0),a=Math.min(this.line+2,r.length),o=String(a).length,s,c;if(e){var l=Qd.createColors(!0),u=l.bold,d=l.gray,f=l.red;s=function(e){return u(f(e))},c=function(e){return d(e)}}else s=c=function(e){return e};return r.slice(i,a).map(function(e,n){var r=i+1+n,a=` `+(` `+r).slice(-o)+` | `;if(r===t.line){var l=c(a.replace(/\d/g,` `))+e.slice(0,t.column-1).replace(/[^\t]/g,` `);return s(`>`)+c(a)+e+`
48
- `+l+s(`^`)}return` `+c(a)+e}).join(`
49
- `)},n.toString=function(){var e=this.showSourceCode();return e&&=`
50
-
51
- `+e+`
52
- `,this.name+`: `+this.message+e},t}(te(Error)),tf=ef;ef.default=ef;var nf={};nf.isClean=Symbol(`isClean`),nf.my=Symbol(`my`);var rf={after:`
53
- `,beforeClose:`
54
- `,beforeComment:`
55
- `,beforeDecl:`
56
- `,beforeOpen:` `,beforeRule:`
57
- `,colon:`: `,commentLeft:` `,commentRight:` `,emptyBody:``,indent:` `,semicolon:!1};function af(e){return e[0].toUpperCase()+e.slice(1)}var of=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var n=`@`+e.name,r=e.params?this.rawValue(e,`params`):``;if(e.raws.afterName===void 0?r&&(n+=` `):n+=e.raws.afterName,e.nodes)this.block(e,n+r);else{var i=(e.raws.between||``)+(t?`;`:``);this.builder(n+r+i,e)}},t.beforeAfter=function(e,t){for(var n=e.type===`decl`?this.raw(e,null,`beforeDecl`):e.type===`comment`?this.raw(e,null,`beforeComment`):t===`before`?this.raw(e,null,`beforeRule`):this.raw(e,null,`beforeClose`),r=e.parent,i=0;r&&r.type!==`root`;)i+=1,r=r.parent;if(n.includes(`
58
- `)){var a=this.raw(e,null,`indent`);if(a.length)for(var o=0;o<i;o++)n+=a}return n},t.block=function(e,t){var n=this.raw(e,`between`,`beforeOpen`);this.builder(t+n+`{`,e,`start`);var r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,`after`)):r=this.raw(e,`after`,`emptyBody`),r&&this.builder(r),this.builder(`}`,e,`end`)},t.body=function(e){for(var t=e.nodes.length-1;t>0&&e.nodes[t].type===`comment`;)--t;for(var n=this.raw(e,`semicolon`),r=0;r<e.nodes.length;r++){var i=e.nodes[r],a=this.raw(i,`before`);a&&this.builder(a),this.stringify(i,t!==r||n)}},t.comment=function(e){var t=this.raw(e,`left`,`commentLeft`),n=this.raw(e,`right`,`commentRight`);this.builder(`/*`+t+e.text+n+`*/`,e)},t.decl=function(e,t){var n=this.raw(e,`between`,`colon`),r=e.prop+n+this.rawValue(e,`value`);e.important&&(r+=e.raws.important||` !important`),t&&(r+=`;`),this.builder(r,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,n){var r;if(n||=t,t&&(r=e.raws[t],r!==void 0))return r;var i=e.parent;if(n===`before`&&(!i||i.type===`root`&&i.first===e||i&&i.type===`document`))return``;if(!i)return rf[n];var a=e.root();if(a.rawCache||={},a.rawCache[n]!==void 0)return a.rawCache[n];if(n===`before`||n===`after`)return this.beforeAfter(e,n);var o=`raw`+af(n);return this[o]?r=this[o](a,e):a.walk(function(e){if(r=e.raws[t],r!==void 0)return!1}),r===void 0&&(r=rf[n]),a.rawCache[n]=r,r},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&e.raws.after!==void 0)return t=e.raws.after,t.includes(`
59
- `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t},t.rawBeforeComment=function(e,t){var n;return e.walkComments(function(e){if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
60
- `)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeDecl`):n&&=n.replace(/\S/g,``),n},t.rawBeforeDecl=function(e,t){var n;return e.walkDecls(function(e){if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
61
- `)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeRule`):n&&=n.replace(/\S/g,``),n},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if(e.type!==`decl`&&(t=e.raws.between,t!==void 0))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&n.raws.before!==void 0)return t=n.raws.before,t.includes(`
62
- `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(e.raws.between!==void 0)return t=e.raws.between.replace(/[^\s:]/g,``),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length===0&&(t=e.raws.after,t!==void 0))return!1}),t},t.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&n.raws.before!==void 0){var i=n.raws.before.split(`
63
- `);return t=i[i.length-1],t=t.replace(/\S/g,``),!1}}),t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&e.last.type===`decl`&&(t=e.raws.semicolon,t!==void 0))return!1}),t},t.rawValue=function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,`selector`)),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,`end`)},t.stringify=function(e,t){if(!this[e.type])throw Error(`Unknown AST node type `+e.type+`. Maybe you need to change PostCSS stringifier.`);this[e.type](e,t)},e}(),sf=of;of.default=of;var cf=sf;function lf(e,t){new cf(t).stringify(e)}var uf=lf;lf.default=lf;var df=nf.isClean,ff=nf.my,pf=tf,mf=sf,hf=uf;function gf(e,t){var n=new e.constructor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&r!==`proxyCache`){var i=e[r],a=i===void 0?`undefined`:S(i);r===`parent`&&a===`object`?t&&(n[r]=t):r===`source`?n[r]=i:Array.isArray(i)?n[r]=i.map(function(e){return gf(e,n)}):(a===`object`&&i!==null&&(i=gf(i)),n[r]=i)}return n}var _f=function(){function e(e){for(var t in e===void 0&&(e={}),this.raws={},this[df]=!1,this[ff]=!0,e)if(t===`nodes`){this.nodes=[];for(var n=C(e[t]),r;!(r=n()).done;){var i=r.value;typeof i.clone==`function`?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&`+t.input.from+`:`+t.start.line+`:`+t.start.column+`$&`)}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in e===void 0&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){e===void 0&&(e={});var t=gf(this);for(var n in e)t[n]=e[n];return t},t.cloneAfter=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(t===void 0&&(t={}),this.source){var n=this.rangeBy(t),r=n.end,i=n.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new pf(e)},t.getProxyProcessor=function(){return{get:function(e,t){return t===`proxyOf`?e:t===`root`?function(){return e.root().toProxy()}:e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,(t===`prop`||t===`value`||t===`name`||t===`params`||t===`important`||t===`text`)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[df]){this[df]=!1;for(var e=this;e=e.parent;)e[df]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();var r=t.indexOf(e.word);r!==-1&&(n=this.positionInside(r,t))}return n},t.positionInside=function(e,t){for(var n=t||this.toString(),r=this.source.start.column,i=this.source.start.line,a=0;a<e;a++)n[a]===`
64
- `?(r=1,i+=1):r+=1;return{column:r,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var r=this.toString(),i=r.indexOf(e.word);i!==-1&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex==`number`?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},t.raw=function(e,t){return new mf().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){var e=[...arguments];if(this.parent){for(var t=this,n=!1,r=C(e),i;!(i=r()).done;){var a=i.value;a===this?n=!0:n?(this.parent.insertAfter(t,a),t=a):this.parent.insertBefore(t,a)}n||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&e.parent.type!==`document`;)e=e.parent;return e},t.toJSON=function(e,t){var n={},r=t==null;t||=new Map;var i=0;for(var a in this)if(Object.prototype.hasOwnProperty.call(this,a)&&a!==`parent`&&a!==`proxyCache`){var o=this[a];if(Array.isArray(o))n[a]=o.map(function(e){return(e===void 0?`undefined`:S(e))===`object`&&e.toJSON?e.toJSON(null,t):e});else if((o===void 0?`undefined`:S(o))===`object`&&o.toJSON)n[a]=o.toJSON(null,t);else if(a===`source`){var s=t.get(o.input);s??(s=i,t.set(o.input,i),i++),n[a]={end:o.end,inputId:s,start:o.start}}else n[a]=o}return r&&(n.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),n},t.toProxy=function(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache},t.toString=function(e){e===void 0&&(e=hf),e.stringify&&(e=e.stringify);var t=``;return e(this,function(e){t+=e}),t},t.warn=function(e,t,n){var r={node:this};for(var i in n)r[i]=n[i];return e.warn(t,r)},m(e,[{key:`proxyOf`,get:function(){return this}}]),e}(),vf=_f;_f.default=_f;var yf=function(e){_(t,e);function t(t){var n;return t&&t.value!==void 0&&typeof t.value!=`string`&&(t=h({},t,{value:String(t.value)})),n=e.call(this,t)||this,n.type=`decl`,n}return m(t,[{key:`variable`,get:function(){return this.prop.startsWith(`--`)||this.prop[0]===`$`}}]),t}(vf),bf=yf;yf.default=yf;var xf=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,Sf={nanoid:function(e){e===void 0&&(e=21);for(var t=``,n=e;n--;)t+=xf[Math.random()*64|0];return t}},Cf=Zd.SourceMapConsumer,wf=Zd.SourceMapGenerator,Tf=Zd.existsSync,Ef=Zd.readFileSync,Df=Zd.dirname,Of=Zd.join;function kf(e){return t?t.from(e,`base64`).toString():window.atob(e)}var Af=function(){function e(e,t){if(t.map!==!1){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,`data:`);var n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Df(this.mapFile)),r&&(this.text=r)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||=new Cf(this.text),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return kf(e.substr(RegExp.lastMatch.length));var r=e.match(/data:application\/json;([^,]+),/)[1];throw Error(`Unsupported source map encoding `+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,``).trim()},t.isMap=function(e){return(e===void 0?`undefined`:S(e))===`object`?typeof e.mappings==`string`||typeof e._mappings==`string`||Array.isArray(e.sections):!1},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var n=e.lastIndexOf(t.pop()),r=e.indexOf(`*/`,n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}},t.loadFile=function(e){if(this.root=Df(e),Tf(e))return this.mapFile=e,Ef(e,`utf-8`).toString().trim()},t.loadMap=function(e,t){if(t===!1)return!1;if(t){if(typeof t==`string`)return t;if(typeof t==`function`){var n=t(e);if(n){var r=this.loadFile(n);if(!r)throw Error(`Unable to load previous source map: `+n.toString());return r}}else if(v(t,Cf))return wf.fromSourceMap(t).toString();else if(v(t,wf))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error(`Unsupported previous source map format: `+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=Of(Df(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return e?e.substr(0,t.length)===t:!1},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),jf=Af;Af.default=Af;var Mf=Zd.SourceMapConsumer,Nf=Zd.SourceMapGenerator,Pf=Zd.fileURLToPath,Ff=Zd.pathToFileURL,If=Zd.isAbsolute,Lf=Zd.resolve,Rf=Sf.nanoid,zf=Zd,Bf=tf,Vf=jf,Hf=Symbol(`fromOffsetCache`),Uf=!!(Mf&&Nf),Wf=!!(Lf&&If),Gf=function(){function e(e,t){if(t===void 0&&(t={}),e==null||(e===void 0?`undefined`:S(e))===`object`&&!e.toString)throw Error(`PostCSS received `+e+` instead of CSS string`);if(this.css=e.toString(),this.css[0]===``||this.css[0]===`￾`?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(this.file=!Wf||/^\w+:\/\//.test(t.from)||If(t.from)?t.from:Lf(t.from)),Wf&&Uf){var n=new Vf(this.css,t);if(n.text){this.map=n;var r=n.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id=`<input css `+Rf(6)+`>`),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,n,r){r===void 0&&(r={});var i,a,o;if(t&&(t===void 0?`undefined`:S(t))===`object`){var s=t,c=n;if(typeof s.offset==`number`){var l=this.fromOffset(s.offset);t=l.line,n=l.col}else t=s.line,n=s.column;if(typeof c.offset==`number`){var u=this.fromOffset(c.offset);a=u.line,o=u.col}else a=c.line,o=c.column}else if(!n){var d=this.fromOffset(t);t=d.line,n=d.col}var f=this.origin(t,n,a,o);return i=f?new Bf(e,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,r.plugin):new Bf(e,a===void 0?t:{column:n,line:t},a===void 0?n:{column:o,line:a},this.css,this.file,r.plugin),i.input={column:n,endColumn:o,endLine:a,line:t,source:this.css},this.file&&(Ff&&(i.input.url=Ff(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,n;if(this[Hf])n=this[Hf];else{var r=this.css.split(`
65
- `);n=Array(r.length);for(var i=0,a=0,o=r.length;a<o;a++)n[a]=i,i+=r[a].length+1;this[Hf]=n}t=n[n.length-1];var s=0;if(e>=t)s=n.length-1;else for(var c=n.length-2,l;s<c;)if(l=s+(c-s>>1),e<n[l])c=l-1;else if(e>=n[l+1])s=l+1;else{s=l;break}return{col:e-n[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Lf(this.map.consumer().sourceRoot||this.map.root||`.`,e)},t.origin=function(e,t,n,r){if(!this.map)return!1;var i=this.map.consumer(),a=i.originalPositionFor({column:t,line:e});if(!a.source)return!1;var o;typeof n==`number`&&(o=i.originalPositionFor({column:r,line:n}));var s=If(a.source)?Ff(a.source):new URL(a.source,this.map.consumer().sourceRoot||Ff(this.map.mapFile)),c={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:s.toString()};if(s.protocol===`file:`){if(Pf)c.file=Pf(s);else throw Error(`file: protocol is not available in this PostCSS build`)}var l=i.sourceContentFor(a.source);return l&&(c.source=l),c},t.toJSON=function(){for(var e={},t=0,n=[`hasBOM`,`css`,`file`,`id`];t<n.length;t++){var r=n[t];this[r]!=null&&(e[r]=this[r])}return this.map&&(e.map=h({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},m(e,[{key:`from`,get:function(){return this.file||this.id}}]),e}(),Kf=Gf;Gf.default=Gf,zf&&zf.registerInput&&zf.registerInput(Gf);var qf=Zd.SourceMapConsumer,Jf=Zd.SourceMapGenerator,Yf=Zd.dirname,Xf=Zd.relative,Zf=Zd.resolve,Qf=Zd.sep,$f=Zd.pathToFileURL,ep=Kf,tp=!!(qf&&Jf),np=!!(Yf&&Zf&&Xf&&Qf),rp=function(){function e(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=e.prototype;return n.addAnnotation=function(){var e=this.isInline()?`data:application/json;base64,`+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation==`string`?this.mapOpts.annotation:typeof this.mapOpts.annotation==`function`?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+`.map`,t=`
66
- `;this.css.includes(`\r
67
- `)&&(t=`\r
68
- `),this.css+=t+`/*# sourceMappingURL=`+e+` */`},n.applyPrevMaps=function(){for(var e=C(this.previous()),t;!(t=e()).done;){var n=t.value,r=this.toUrl(this.path(n.file)),i=n.root||Yf(n.file),a=void 0;this.mapOpts.sourcesContent===!1?(a=new qf(n.text),a.sourcesContent&&(a.sourcesContent=null)):a=n.consumer(),this.map.applySourceMap(a,r,this.toUrl(this.path(i)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1){if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type===`comment`&&e.text.indexOf(`# sourceMappingURL=`)===0&&this.root.removeChild(t);else this.css&&=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,``)}},n.generate=function(){if(this.clearAnnotation(),np&&tp&&this.isMap())return this.generateMap();var e=``;return this.stringify(this.root,function(t){e+=t}),[e]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Jf.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Jf({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},n.generateString=function(){var e=this;this.css=``,this.map=new Jf({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,n=1,r=`<no source>`,i={generated:{column:0,line:0},original:{column:0,line:0},source:``},a,o;this.stringify(this.root,function(s,c,l){if(e.css+=s,c&&l!==`end`&&(i.generated.line=t,i.generated.column=n-1,c.source&&c.source.start?(i.source=e.sourcePath(c),i.original.line=c.source.start.line,i.original.column=c.source.start.column-1,e.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,e.map.addMapping(i))),a=s.match(/\n/g),a?(t+=a.length,o=s.lastIndexOf(`
69
- `),n=s.length-o):n+=s.length,c&&l!==`start`){var u=c.parent||{raws:{}};(!(c.type===`decl`||c.type===`atrule`&&!c.nodes)||c!==u.last||u.raws.semicolon)&&(c.source&&c.source.end?(i.source=e.sourcePath(c),i.original.line=c.source.end.line,i.original.column=c.source.end.column-1,i.generated.line=t,i.generated.column=n-2,e.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=t,i.generated.column=n-1,e.map.addMapping(i)))}})},n.isAnnotation=function(){return this.isInline()?!0:this.mapOpts.annotation===void 0?!this.previous().length||this.previous().some(function(e){return e.annotation}):this.mapOpts.annotation},n.isInline=function(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;var e=this.mapOpts.annotation;return e!==void 0&&e!==!0?!1:!this.previous().length||this.previous().some(function(e){return e.inline})},n.isMap=function(){return this.opts.map===void 0?this.previous().length>0:!!this.opts.map},n.isSourcesContent=function(){return this.mapOpts.sourcesContent===void 0?!this.previous().length||this.previous().some(function(e){return e.withContent()}):this.mapOpts.sourcesContent},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):`to.css`},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var n=this.opts.to?Yf(this.opts.to):`.`;typeof this.mapOpts.annotation==`string`&&(n=Yf(Zf(n,this.mapOpts.annotation)));var r=Xf(n,e);return this.memoizedPaths.set(e,r),r},n.previous=function(){var e=this;if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;e.previousMaps.includes(n)||e.previousMaps.push(n)}});else{var t=new ep(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}}return this.previousMaps},n.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var i=e.usesFileUrls?e.toFileUrl(r):e.toUrl(e.path(r));e.map.setSourceContent(i,n.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`;this.map.setSourceContent(n,this.css)}},n.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},n.toBase64=function(e){return t?t.from(e).toString(`base64`):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if($f){var n=$f(e).toString();return this.memoizedFileURLs.set(e,n),n}throw Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;Qf===`\\`&&(e=e.replace(/\\/g,`/`));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},e}(),ip=function(e){_(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`comment`,n}return t}(vf),ap=ip;ip.default=ip;var op=nf.isClean,sp=nf.my,cp=bf,lp=ap,up=vf,dp,fp,pp,mp;function hp(e){return e.map(function(e){return e.nodes&&=hp(e.nodes),delete e.source,e})}function gp(e){if(e[op]=!1,e.proxyOf.nodes)for(var t=C(e.proxyOf.nodes),n;!(n=t()).done;){var r=n.value;gp(r)}}var _p=function(e){_(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.append=function(){for(var e=C([...arguments]),t;!(t=e()).done;)for(var n=t.value,r=C(this.normalize(n,this.last)),i;!(i=r()).done;){var a=i.value;this.proxyOf.nodes.push(a)}return this.markDirty(),this},n.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var n=C(this.nodes),r;!(r=n()).done;)r.value.cleanRaws(t)},n.each=function(e){if(this.proxyOf.nodes){for(var t=this.getIterator(),n,r;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}},n.every=function(e){return this.nodes.every(e)},n.getIterator=function(){this.lastEach||=0,this.indexes||={},this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},n.getProxyProcessor=function(){return{get:function(e,t){return t===`proxyOf`?e:e[t]?t===`each`||typeof t==`string`&&t.startsWith(`walk`)?function(){var n=[...arguments],r;return(r=e)[t].apply(r,[].concat(n.map(function(e){return typeof e==`function`?function(t,n){return e(t.toProxy(),n)}:e})))}:t===`every`||t===`some`?function(n){return e[t](function(e){var t=[...arguments].slice(1);return n.apply(void 0,[e.toProxy()].concat(t))})}:t===`root`?function(){return e.root().toProxy()}:t===`nodes`?e.nodes.map(function(e){return e.toProxy()}):t===`first`||t===`last`?e[t].toProxy():e[t]:e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,(t===`name`||t===`params`||t===`selector`)&&e.markDirty(),!0)}}},n.index=function(e){return typeof e==`number`?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},n.insertAfter=function(e,t){var n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var i=C(r),a;!(a=i()).done;){var o=a.value;this.proxyOf.nodes.splice(n+1,0,o)}var s;for(var c in this.indexes)s=this.indexes[c],n<s&&(this.indexes[c]=s+r.length);return this.markDirty(),this},n.insertBefore=function(e,t){var n=this.index(e),r=n===0&&`prepend`,i=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(var a=C(i),o;!(o=a()).done;){var s=o.value;this.proxyOf.nodes.splice(n,0,s)}var c;for(var l in this.indexes)c=this.indexes[l],n<=c&&(this.indexes[l]=c+i.length);return this.markDirty(),this},n.normalize=function(e,n){var r=this;if(typeof e==`string`)e=hp(dp(e).nodes);else if(e===void 0)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i=C(e),a;!(a=i()).done;){var o=a.value;o.parent&&o.parent.removeChild(o,`ignore`)}}else if(e.type===`root`&&this.type!==`document`){e=e.nodes.slice(0);for(var s=C(e),c;!(c=s()).done;){var l=c.value;l.parent&&l.parent.removeChild(l,`ignore`)}}else if(e.type)e=[e];else if(e.prop){if(e.value===void 0)throw Error(`Value field is missed in node creation`);typeof e.value!=`string`&&(e.value=String(e.value)),e=[new cp(e)]}else if(e.selector)e=[new fp(e)];else if(e.name)e=[new pp(e)];else if(e.text)e=[new lp(e)];else throw Error(`Unknown node type in node creation`);return e.map(function(e){return e[sp]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[op]&&gp(e),e.raws.before===void 0&&n&&n.raws.before!==void 0&&(e.raws.before=n.raws.before.replace(/\S/g,``)),e.parent=r.proxyOf,e})},n.prepend=function(){var e=[...arguments];e=e.reverse();for(var t=C(e),n;!(n=t()).done;){for(var r=n.value,i=this.normalize(r,this.first,`prepend`).reverse(),a=C(i),o;!(o=a()).done;){var s=o.value;this.proxyOf.nodes.unshift(s)}for(var c in this.indexes)this.indexes[c]=this.indexes[c]+i.length}return this.markDirty(),this},n.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},n.removeAll=function(){for(var e=C(this.proxyOf.nodes),t;!(t=e()).done;){var n=t.value;n.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},n.removeChild=function(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);var t;for(var n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this},n.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls(function(r){(!t.props||t.props.includes(r.prop))&&(!t.fast||r.value.includes(t.fast))&&(r.value=r.value.replace(e,n))}),this.markDirty(),this},n.some=function(e){return this.nodes.some(e)},n.walk=function(e){return this.each(function(t,n){var r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return r!==!1&&t.walk&&(r=t.walk(e)),r})},n.walkAtRules=function(e,t){return t?v(e,RegExp)?this.walk(function(n,r){if(n.type===`atrule`&&e.test(n.name))return t(n,r)}):this.walk(function(n,r){if(n.type===`atrule`&&n.name===e)return t(n,r)}):(t=e,this.walk(function(e,n){if(e.type===`atrule`)return t(e,n)}))},n.walkComments=function(e){return this.walk(function(t,n){if(t.type===`comment`)return e(t,n)})},n.walkDecls=function(e,t){return t?v(e,RegExp)?this.walk(function(n,r){if(n.type===`decl`&&e.test(n.prop))return t(n,r)}):this.walk(function(n,r){if(n.type===`decl`&&n.prop===e)return t(n,r)}):(t=e,this.walk(function(e,n){if(e.type===`decl`)return t(e,n)}))},n.walkRules=function(e,t){return t?v(e,RegExp)?this.walk(function(n,r){if(n.type===`rule`&&e.test(n.selector))return t(n,r)}):this.walk(function(n,r){if(n.type===`rule`&&n.selector===e)return t(n,r)}):(t=e,this.walk(function(e,n){if(e.type===`rule`)return t(e,n)}))},m(t,[{key:`first`,get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:`last`,get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(up);_p.registerParse=function(e){dp=e},_p.registerRule=function(e){fp=e},_p.registerAtRule=function(e){pp=e},_p.registerRoot=function(e){mp=e};var vp=_p;_p.default=_p,_p.rebuild=function(e){e.type===`atrule`?Object.setPrototypeOf(e,pp.prototype):e.type===`rule`?Object.setPrototypeOf(e,fp.prototype):e.type===`decl`?Object.setPrototypeOf(e,cp.prototype):e.type===`comment`?Object.setPrototypeOf(e,lp.prototype):e.type===`root`&&Object.setPrototypeOf(e,mp.prototype),e[sp]=!0,e.nodes&&e.nodes.forEach(function(e){_p.rebuild(e)})};var yp=vp,bp,xp,Sp=function(e){_(t,e);function t(t){var n=e.call(this,h({type:`document`},t))||this;return n.nodes||=[],n}var n=t.prototype;return n.toResult=function(e){return e===void 0&&(e={}),new bp(new xp,this,e).stringify()},t}(yp);Sp.registerLazyResult=function(e){bp=e},Sp.registerProcessor=function(e){xp=e};var Cp=Sp;Sp.default=Sp;var wp=function(){function e(e,t){if(t===void 0&&(t={}),this.type=`warning`,this.text=e,t.node&&t.node.source){var n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var r in t)this[r]=t[r]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+`: `+this.text:this.text},e}(),Tp=wp;wp.default=wp;var Ep=Tp,Dp=function(){function e(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new Ep(e,t);return this.messages.push(n),n},t.warnings=function(){return this.messages.filter(function(e){return e.type===`warning`})},m(e,[{key:`content`,get:function(){return this.css}}]),e}(),Op=Dp;Dp.default=Dp;var kp=39,Ap=34,jp=92,Mp=47,Np=10,Pp=32,Fp=12,Ip=9,Lp=13,Rp=91,zp=93,Bp=40,Vp=41,Hp=123,Up=125,Wp=59,Gp=42,Kp=58,qp=64,Jp=/[\t\n\f\r "#'()/;[\\\]{}]/g,Yp=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Xp=/.[\r\n"'(/\\]/,Zp=/[\da-f]/i,Qp=function(e,t){t===void 0&&(t={});var n=e.css.valueOf(),r=t.ignoreErrors,i,a,o,s,c,l,u,d,f,p,m=n.length,h=0,g=[],_=[];function v(){return h}function y(t){throw e.error(`Unclosed `+t,h)}function b(){return _.length===0&&h>=m}function x(e){if(_.length)return _.pop();if(!(h>=m)){var t=e?e.ignoreUnclosed:!1;switch(i=n.charCodeAt(h),i){case Np:case Pp:case Ip:case Lp:case Fp:a=h;do a+=1,i=n.charCodeAt(a);while(i===Pp||i===Np||i===Ip||i===Lp||i===Fp);p=[`space`,n.slice(h,a)],h=a-1;break;case Rp:case zp:case Hp:case Up:case Kp:case Wp:case Vp:var v=String.fromCharCode(i);p=[v,v,h];break;case Bp:if(d=g.length?g.pop()[1]:``,f=n.charCodeAt(h+1),d===`url`&&f!==kp&&f!==Ap&&f!==Pp&&f!==Np&&f!==Ip&&f!==Fp&&f!==Lp){a=h;do{if(l=!1,a=n.indexOf(`)`,a+1),a===-1){if(r||t){a=h;break}y(`bracket`)}for(u=a;n.charCodeAt(u-1)===jp;)--u,l=!l}while(l);p=[`brackets`,n.slice(h,a+1),h,a],h=a}else a=n.indexOf(`)`,h+1),s=n.slice(h,a+1),a===-1||Xp.test(s)?p=[`(`,`(`,h]:(p=[`brackets`,s,h,a],h=a);break;case kp:case Ap:o=i===kp?`'`:`"`,a=h;do{if(l=!1,a=n.indexOf(o,a+1),a===-1){if(r||t){a=h+1;break}y(`string`)}for(u=a;n.charCodeAt(u-1)===jp;)--u,l=!l}while(l);p=[`string`,n.slice(h,a+1),h,a],h=a;break;case qp:Jp.lastIndex=h+1,Jp.test(n),a=Jp.lastIndex===0?n.length-1:Jp.lastIndex-2,p=[`at-word`,n.slice(h,a+1),h,a],h=a;break;case jp:for(a=h,c=!0;n.charCodeAt(a+1)===jp;)a+=1,c=!c;if(i=n.charCodeAt(a+1),c&&i!==Mp&&i!==Pp&&i!==Np&&i!==Ip&&i!==Lp&&i!==Fp&&(a+=1,Zp.test(n.charAt(a)))){for(;Zp.test(n.charAt(a+1));)a+=1;n.charCodeAt(a+1)===Pp&&(a+=1)}p=[`word`,n.slice(h,a+1),h,a],h=a;break;default:i===Mp&&n.charCodeAt(h+1)===Gp?(a=n.indexOf(`*/`,h+2)+1,a===0&&(r||t?a=n.length:y(`comment`)),p=[`comment`,n.slice(h,a+1),h,a],h=a):(Yp.lastIndex=h+1,Yp.test(n),a=Yp.lastIndex===0?n.length-1:Yp.lastIndex-2,p=[`word`,n.slice(h,a+1),h,a],g.push(p),h=a)}return h++,p}}function S(e){_.push(e)}return{back:S,endOfFile:b,nextToken:x,position:v}},$p=vp,em=function(e){_(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`atrule`,n}var n=t.prototype;return n.append=function(){var t=[...arguments],n;return this.proxyOf.nodes||(this.nodes=[]),(n=e.prototype.append).call.apply(n,[this].concat(t))},n.prepend=function(){var t=[...arguments],n;return this.proxyOf.nodes||(this.nodes=[]),(n=e.prototype.prepend).call.apply(n,[this].concat(t))},t}($p),tm=em;em.default=em,$p.registerAtRule(em);var nm=vp,rm,im,am=function(e){_(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`root`,n.nodes||=[],n}var n=t.prototype;return n.normalize=function(t,n,r){var i=e.prototype.normalize.call(this,t);if(n){if(r===`prepend`)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var a=C(i),o;!(o=a()).done;){var s=o.value;s.raws.before=n.raws.before}}return i},n.removeChild=function(t,n){var r=this.index(t);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},n.toResult=function(e){return e===void 0&&(e={}),new rm(new im,this,e).stringify()},t}(nm);am.registerLazyResult=function(e){rm=e},am.registerProcessor=function(e){im=e};var om=am;am.default=am,nm.registerRoot(am);var sm={comma:function(e){return sm.split(e,[`,`],!0)},space:function(e){return sm.split(e,[` `,`
70
- `,` `])},split:function(e,t,n){for(var r=[],i=``,a=!1,o=0,s=!1,c=``,l=!1,u=C(e),d;!(d=u()).done;){var f=d.value;l?l=!1:f===`\\`?l=!0:s?f===c&&(s=!1):f===`"`||f===`'`?(s=!0,c=f):f===`(`?o+=1:f===`)`?o>0&&--o:o===0&&t.includes(f)&&(a=!0),a?(i!==``&&r.push(i.trim()),i=``,a=!1):i+=f}return(n||i!==``)&&r.push(i.trim()),r}},cm=sm;sm.default=sm;var lm=vp,um=cm,dm=function(e){_(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`rule`,n.nodes||=[],n}return m(t,[{key:`selectors`,get:function(){return um.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:`,`+this.raw(`between`,`beforeOpen`);this.selector=e.join(n)}}]),t}(lm),fm=dm;dm.default=dm,lm.registerRule(dm);var pm=bf,mm=Qp,hm=ap,gm=tm,_m=om,vm=fm,ym={empty:!0,space:!0};function bm(e){for(var t=e.length-1;t>=0;t--){var n=e[t],r=n[3]||n[2];if(r)return r}}var xm=function(){function e(e){this.input=e,this.root=new _m,this.current=this.root,this.spaces=``,this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t=new gm;t.name=e[1].slice(1),t.name===``&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,r,i,a=!1,o=!1,s=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n===`(`||n===`[`?c.push(n===`(`?`)`:`]`):n===`{`&&c.length>0?c.push(`}`):n===c[c.length-1]&&c.pop(),c.length===0){if(n===`;`){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}if(n===`{`){o=!0;break}if(n===`}`){if(s.length>0){for(i=s.length-1,r=s[i];r&&r[0]===`space`;)r=s[--i];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}s.push(e)}else s.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(t.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(t,`params`,s),a&&(e=s[s.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=``)):(t.raws.afterName=``,t.params=``),o&&(t.nodes=[],this.current=t)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,r,i=t-1;i>=0&&(r=e[i],!(r[0]!==`space`&&(n+=1,n===2)));i--);throw this.input.error(`Missed semicolon`,r[0]===`word`?r[3]+1:r[2])}},t.colon=function(e){for(var t=0,n,r,i,a=C(e.entries()),o;!(o=a()).done;){var s=o.value,c=s[0];if(n=s[1],r=n[0],r===`(`&&(t+=1),r===`)`&&--t,t===0&&r===`:`){if(!i)this.doubleColon(n);else if(i[0]===`word`&&i[1]===`progid`)continue;else return c}i=n}return!1},t.comment=function(e){var t=new hm;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text=``,t.raws.left=n,t.raws.right=``;else{var r=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},t.createTokenizer=function(){this.tokenizer=mm(this.input)},t.decl=function(e,t){var n=new pm;this.init(n,e[0][2]);var r=e[e.length-1];for(r[0]===`;`&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||bm(e)),n.source.end.offset++;e[0][0]!==`word`;)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop=``;e.length;){var i=e[0][0];if(i===`:`||i===`space`||i===`comment`)break;n.prop+=e.shift()[1]}n.raws.between=``;for(var a;e.length;){if(a=e.shift(),a[0]===`:`){n.raws.between+=a[1];break}a[0]===`word`&&/\w/.test(a[1])&&this.unknownWord([a]),n.raws.between+=a[1]}(n.prop[0]===`_`||n.prop[0]===`*`)&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var o=[],s;e.length&&(s=e[0][0],s===`space`||s===`comment`);)o.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(a=e[c],a[1].toLowerCase()===`!important`){n.important=!0;var l=this.stringFrom(e,c);l=this.spacesFromEnd(e)+l,l!==` !important`&&(n.raws.important=l);break}if(a[1].toLowerCase()===`important`){for(var u=e.slice(0),d=``,f=c;f>0;f--){var p=u[f][0];if(d.trim().indexOf(`!`)===0&&p!==`space`)break;d=u.pop()[1]+d}d.trim().indexOf(`!`)===0&&(n.important=!0,n.raws.important=d,e=u)}if(a[0]!==`space`&&a[0]!==`comment`)break}e.some(function(e){return e[0]!==`space`&&e[0]!==`comment`})&&(n.raws.between+=o.map(function(e){return e[1]}).join(``),o=[]),this.raw(n,`value`,o.concat(e),t),n.value.includes(`:`)&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error(`Double colon`,{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new vm;this.init(t,e[2]),t.selector=``,t.raws.between=``,this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.spaces=``,this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&t.type===`rule`&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces=``)}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces=``,e.type!==`comment`&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith(`--`),s=[],c=e;c;){if(n=c[0],s.push(c),n===`(`||n===`[`)i||=c,a.push(n===`(`?`)`:`]`);else if(o&&r&&n===`{`)i||=c,a.push(`}`);else if(a.length===0){if(n===`;`){if(r){this.decl(s,o);return}break}if(n===`{`){this.rule(s);return}if(n===`}`){this.tokenizer.back(s.pop()),t=!0;break}n===`:`&&(r=!0)}else n===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&(c=s[s.length-1][0],c===`space`||c===`comment`);)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case`space`:this.spaces+=e[1];break;case`;`:this.freeSemicolon(e);break;case`}`:this.end(e);break;case`comment`:this.comment(e);break;case`at-word`:this.atrule(e);break;case`{`:this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,n,r){for(var i,a,o=n.length,s=``,c=!0,l,u,d=0;d<o;d+=1)i=n[d],a=i[0],a===`space`&&d===o-1&&!r?c=!1:a===`comment`?(u=n[d-1]?n[d-1][0]:`empty`,l=n[d+1]?n[d+1][0]:`empty`,!ym[u]&&!ym[l]?s.slice(-1)===`,`?c=!1:s+=i[1]:c=!1):s+=i[1];if(!c){var f=n.reduce(function(e,t){return e+t[1]},``);e.raws[t]={raw:f,value:s}}e[t]=s},t.rule=function(e){e.pop();var t=new vm;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,`selector`,e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,n=``;e.length&&(t=e[e.length-1][0],t===`space`||t===`comment`);)n=e.pop()[1]+n;return n},t.spacesAndCommentsFromStart=function(e){for(var t,n=``;e.length&&(t=e[0][0],t===`space`||t===`comment`);)n+=e.shift()[1];return n},t.spacesFromEnd=function(e){for(var t,n=``;e.length&&(t=e[e.length-1][0],t===`space`);)n=e.pop()[1]+n;return n},t.stringFrom=function(e,t){for(var n=``,r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error(`Unclosed block`,e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error(`Unclosed bracket`,{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error(`Unexpected }`,{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error(`Unknown word`,{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error(`At-rule without name`,{offset:t[2]},{offset:t[2]+t[1].length})},e}(),Sm=vp,Cm=xm,wm=Kf;function Tm(e,t){var n=new Cm(new wm(e,t));try{n.parse()}catch(e){throw e}return n.root}var Em=Tm;Tm.default=Tm,Sm.registerParse(Tm);var Dm=nf.isClean,Om=nf.my,km=rp,Am=uf,jm=vp,Mm=Cp,Nm=Op,Pm=Em,Fm=om,Im={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},Lm={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Rm={Once:!0,postcssPlugin:!0,prepare:!0},zm=0;function Bm(e){return(e===void 0?`undefined`:S(e))===`object`&&typeof e.then==`function`}function Vm(e){var t=!1,n=Im[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,zm,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,zm,n+`Exit`]:[n,n+`Exit`]}function Hm(e){return{eventIndex:0,events:e.type===`document`?[`Document`,zm,`DocumentExit`]:e.type===`root`?[`Root`,zm,`RootExit`]:Vm(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Um(e){return e[Dm]=!1,e.nodes&&e.nodes.forEach(function(e){return Um(e)}),e}var Wm={},Gm=function(){function e(t,n,r){var i=this;this.stringified=!1,this.processed=!1;var a;if((n===void 0?`undefined`:S(n))===`object`&&n!==null&&(n.type===`root`||n.type===`document`))a=Um(n);else if(v(n,e)||v(n,Nm))a=Um(n.root),n.map&&(r.map===void 0&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var o=Pm;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{a=o(n,r)}catch(e){this.processed=!0,this.error=e}a&&!a[Om]&&jm.rebuild(a)}this.result=new Nm(t,a,r),this.helpers=h({},Wm,{postcss:Wm,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(e===void 0?`undefined`:S(e))===`object`&&e.prepare?h({},e,e.prepare(i.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||=this.runAsync(),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error(`Use process(css).then(cb) to work with async plugins`)},t.handleError=function(e,t){var n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch{}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(t,n,r){e.listeners[n]||(e.listeners[n]=[]),e.listeners[n].push([t,r])},n=C(this.plugins),r;!(r=n()).done;){var i=r.value;if((i===void 0?`undefined`:S(i))===`object`)for(var a in i){if(!Lm[a]&&/^[A-Z]/.test(a))throw Error(`Unknown event `+a+` in `+i.postcssPlugin+`. Try to update PostCSS (`+this.processor.version+` now).`);if(!Rm[a]){if(S(i[a])===`object`)for(var o in i[a])o===`*`?t(i,a,i[a][o]):t(i,a+`-`+o.toLowerCase(),i[a][o]);else typeof i[a]==`function`&&t(i,a,i[a])}}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return d(function(){var t,n,r,i,a,o,s,c,l,u,d,f;return re(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],r=e.runOnRoot(n),!Bm(r))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,r];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];a=e.result.root,p.label=7;case 7:if(a[Dm])return[3,14];a[Dm]=!0,o=[Hm(a)],p.label=8;case 8:if(!(o.length>0))return[3,13];if(s=e.visitTick(o),!Bm(s))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,s];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),l=o[o.length-1].node,e.handleError(c,l);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,n,r,i,o;return re(this,function(s){switch(s.label){case 0:t=f.value,n=t[0],r=t[1],e.result.lastPlugin=n,s.label=1;case 1:return s.trys.push([1,6,,7]),a.type===`document`?(i=a.nodes.map(function(t){return r(t,e.helpers)}),[4,Promise.all(i)]):[3,3];case 2:return s.sent(),[3,5];case 3:return[4,r(a,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw o=s.sent(),e.handleError(o);case 7:return[2]}})},d=C(e.listeners.OnceExit),p.label=15;case 15:return(f=d()).done?[3,18]:[5,ie(u())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((e===void 0?`undefined`:S(e))===`object`&&e.Once){if(this.result.root.type===`document`){var n=this.result.root.nodes.map(function(n){return e.Once(n,t.helpers)});return Bm(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}if(typeof e==`function`)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Am;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new km(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=C(this.plugins),t;!(t=e()).done;){var n=t.value;if(Bm(this.runOnRoot(n)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[Dm];)r[Dm]=!0,this.walkSync(r);if(this.listeners.OnceExit){if(r.type===`document`)for(var i=C(r.nodes),a;!(a=i()).done;){var o=a.value;this.visitSync(this.listeners.OnceExit,o)}else this.visitSync(this.listeners.OnceExit,r)}}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var n=C(e),r;!(r=n()).done;){var i=r.value,a=i[0],o=i[1];this.result.lastPlugin=a;var s=void 0;try{s=o(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(Bm(s))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],n=t.node,r=t.visitors;if(n.type!==`root`&&n.type!==`document`&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){var i=r[t.visitorIndex],a=i[0],o=i[1];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=a;try{return o(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(t.iterator!==0){for(var s=t.iterator,c;c=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!c[Dm]){c[Dm]=!0,e.push(Hm(c));return}t.iterator=0,delete n.indexes[s]}for(var l=t.events;t.eventIndex<l.length;){var u=l[t.eventIndex];if(t.eventIndex+=1,u===zm){n.nodes&&n.nodes.length&&(n[Dm]=!0,t.iterator=n.getIterator());return}if(this.listeners[u]){t.visitors=this.listeners[u];return}}e.pop()},t.walkSync=function(e){var t=this;e[Dm]=!0;for(var n=C(Vm(e)),r;!(r=n()).done;){var i=r.value;if(i===zm)e.nodes&&e.each(function(e){e[Dm]||t.walkSync(e)});else{var a=this.listeners[i];if(a&&this.visitSync(a,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},m(e,[{key:`content`,get:function(){return this.stringify().content}},{key:`css`,get:function(){return this.stringify().css}},{key:`map`,get:function(){return this.stringify().map}},{key:`messages`,get:function(){return this.sync().messages}},{key:`opts`,get:function(){return this.result.opts}},{key:`processor`,get:function(){return this.result.processor}},{key:`root`,get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return`LazyResult`}}]),e}();Gm.registerPostcss=function(e){Wm=e};var Km=Gm;Gm.default=Gm,Fm.registerLazyResult(Gm),Mm.registerLazyResult(Gm);var qm=rp,Jm=uf,Ym=Em,Xm=Op,Zm=function(){function e(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;var r,i=Jm;this.result=new Xm(this._processor,r,this._opts),this.result.css=t;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var o=new qm(i,r,this._opts,t);if(o.isMap()){var s=o.generate(),c=s[0],l=s[1];c&&(this.result.css=c),l&&(this.result.map=l)}else o.clearAnnotation(),this.result.css=o.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},m(e,[{key:`content`,get:function(){return this.result.css}},{key:`css`,get:function(){return this.result.css}},{key:`map`,get:function(){return this.result.map}},{key:`messages`,get:function(){return[]}},{key:`opts`,get:function(){return this.result.opts}},{key:`processor`,get:function(){return this.result.processor}},{key:`root`,get:function(){if(this._root)return this._root;var e,t=Ym;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return`NoWorkResult`}}]),e}(),Qm=Zm;Zm.default=Zm;var $m=Qm,eh=Km,th=Cp,nh=om,rh=function(){function e(e){e===void 0&&(e=[]),this.version=`8.4.38`,this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t=[],n=C(e),r;!(r=n()).done;){var i=r.value;if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),(i===void 0?`undefined`:S(i))===`object`&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if((i===void 0?`undefined`:S(i))===`object`&&i.postcssPlugin)t.push(i);else if(typeof i==`function`)t.push(i);else if((i===void 0?`undefined`:S(i))!==`object`||!i.parse&&!i.stringify)throw Error(i+` is not a PostCSS plugin`)}return t},t.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new $m(this,e,t):new eh(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),ih=rh;rh.default=rh,nh.registerProcessor(rh),th.registerProcessor(rh);var ah=bf,oh=jf,sh=ap,ch=tm,lh=Kf,uh=om,dh=fm;function fh(e,t){if(Array.isArray(e))return e.map(function(e){return fh(e)});var n=e.inputs,r=b(e,[`inputs`]);if(n){t=[];for(var i=C(n),a;!(a=i()).done;){var o=a.value,s=h({},o,{__proto__:lh.prototype});s.map&&=h({},s.map,{__proto__:oh.prototype}),t.push(s)}}if(r.nodes&&=e.nodes.map(function(e){return fh(e,t)}),r.source){var c=r.source,l=c.inputId;r.source=b(c,[`inputId`]),l!=null&&(r.source.input=t[l])}if(r.type===`root`)return new uh(r);if(r.type===`decl`)return new ah(r);if(r.type===`rule`)return new dh(r);if(r.type===`comment`)return new sh(r);if(r.type===`atrule`)return new ch(r);throw Error(`Unknown node type: `+e.type)}var ph=fh;fh.default=fh;var mh=tf,hh=bf,gh=Km,_h=vp,vh=ih,yh=uf,bh=ph,xh=Cp,Sh=Tp,Ch=ap,wh=tm,Th=Op,Eh=Kf,Dh=Em,Oh=cm,kh=fm,Ah=om,jh=vf;function V(){var e=[...arguments];return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new vh(e)}V.plugin=function(e,t){var n=!1;function r(){var r=[...arguments];console&&console.warn&&!n&&(n=!0,{}.LANG&&{}.LANG.startsWith(`cn`));var i=t.apply(void 0,[].concat(r));return i.postcssPlugin=e,i.postcssVersion=new vh().version,i}var i;return Object.defineProperty(r,"postcss",{get:function(){return i||=r(),i}}),r.process=function(e,t,n){return V([r(n)]).process(e,t)},r},V.stringify=yh,V.parse=Dh,V.fromJSON=bh,V.list=Oh,V.comment=function(e){return new Ch(e)},V.atRule=function(e){return new wh(e)},V.decl=function(e){return new hh(e)},V.rule=function(e){return new kh(e)},V.root=function(e){return new Ah(e)},V.document=function(e){return new xh(e)},V.CssSyntaxError=mh,V.Declaration=hh,V.Container=_h,V.Processor=vh,V.Document=xh,V.Comment=Ch,V.Warning=Sh,V.AtRule=wh,V.Result=Th,V.Input=Eh,V.Rule=kh,V.Root=Ah,V.Node=jh,gh.registerPostcss(V);var Mh=V;V.default=V;var H=Kd(Mh);H.stringify,H.fromJSON,H.plugin,H.parse,H.list,H.document,H.comment,H.atRule,H.rule,H.decl,H.root,H.CssSyntaxError,H.Declaration,H.Container,H.Processor,H.Document,H.Comment,H.Warning,H.AtRule,H.Result,H.Input,H.Rule,H.Root,H.Node;var Nh=Object.defineProperty,Ph=function(e,t,n){return t in e?Nh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Fh=function(e,t,n){return Ph(e,(t===void 0?`undefined`:S(t))===`symbol`?t:t+``,n)};function Ih(e,t,n){try{if(!(t in e))return function(){};var r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}}catch{return function(){}}}var Lh=function(){function e(e){Fh(this,`fileName`),Fh(this,`functionName`),Fh(this,`lineNumber`),Fh(this,`columnNumber`),this.fileName=e.fileName||``,this.functionName=e.functionName||``,this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}var t=e.prototype;return t.toString=function(){var e=this.lineNumber||``,t=this.columnNumber||``;return this.functionName?this.functionName+` (`+this.fileName+`:`+e+`:`+t+`)`:this.fileName+`:`+e+`:`+t},e}(),Rh=/(^|@)\S+:\d+/,zh=/^\s*at .*(\S+:\d+|\(native\))/m,Bh=/^(eval@)?(\[native code])?$/,Vh={parse:function(e){return e?e.stacktrace!==void 0||e[`opera#sourceloc`]!==void 0?this.parseOpera(e):e.stack&&e.stack.match(zh)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):[]:[]},extractLocation:function(e){if(e.indexOf(`:`)===-1)return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,``));if(!t)throw Error(`Cannot parse given url: `+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split(`
71
- `).filter(function(e){return!!e.match(zh)},this).map(function(e){e.indexOf(`(eval `)>-1&&(e=e.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(\),.*$)/g,``));var t=e.replace(/^\s+/,``).replace(/\(eval code/g,`(`),n=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=n?t.replace(n[0],``):t;var r=t.split(/\s+/).slice(1),i=this.extractLocation(n?n[1]:r.pop());return new Lh({functionName:r.join(` `)||void 0,fileName:[`eval`,`<anonymous>`].indexOf(i[0])>-1?void 0:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){return e.stack.split(`
72
- `).filter(function(e){return!e.match(Bh)},this).map(function(e){if(e.indexOf(` > eval`)>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),e.indexOf(`@`)===-1&&e.indexOf(`:`)===-1)return new Lh({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),r=n&&n[1]?n[1]:void 0,i=this.extractLocation(e.replace(t,``));return new Lh({functionName:r,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf(`
73
- `)>-1&&e.message.split(`
74
- `).length>e.stacktrace.split(`
75
- `).length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split(`
76
- `),r=[],i=2,a=n.length;i<a;i+=2){var o=t.exec(n[i]);o&&r.push(new Lh({fileName:o[2],lineNumber:parseFloat(o[1])}))}return r},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split(`
77
- `),r=[],i=0,a=n.length;i<a;i+=2){var o=t.exec(n[i]);o&&r.push(new Lh({functionName:o[3]||void 0,fileName:o[2],lineNumber:parseFloat(o[1])}))}return r},parseOpera11:function(e){return e.stack.split(`
78
- `).filter(function(e){return!!e.match(Rh)&&!e.match(/^Error created at/)},this).map(function(e){var t=e.split(`@`),n=this.extractLocation(t.pop());return new Lh({functionName:(t.shift()||``).replace(/<anonymous function(: (\w+))?>/,`$2`).replace(/\([^)]*\)/g,``)||void 0,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})},this)}};function Hh(e){if(!e||!e.outerHTML)return``;for(var t=``;e.parentElement;){var n=e.localName;if(!n)break;n=n.toLowerCase();var r=e.parentElement,i=[];if(r.children&&r.children.length>0)for(var a=0;a<r.children.length;a++){var o=r.children[a];o.localName&&o.localName.toLowerCase&&o.localName.toLowerCase()===n&&i.push(o)}i.length>1&&(n+=`:eq(`+i.indexOf(e)+`)`),t=n+(t?`>`+t:``),e=r}return t}function Uh(e){return Object.prototype.toString.call(e)===`[object Object]`}function Wh(e,t){if(t===0)return!0;for(var n=C(Object.keys(e)),r;!(r=n()).done;){var i=r.value;if(Uh(e[i])&&Wh(e[i],t-1))return!0}return!1}function Gh(e,t){var n={numOfKeysLimit:50,depthOfLimit:4};Object.assign(n,t);var r=[],i=[];return JSON.stringify(e,function(e,t){if(r.length>0){var n=r.indexOf(this);~n?r.splice(n+1):r.push(this),~n?i.splice(n,1/0,e):i.push(e),~r.indexOf(t)&&(t=r[0]===t?`[Circular ~]`:`[Circular ~.`+i.slice(0,r.indexOf(t)).join(`.`)+`]`)}else r.push(t);if(t===null)return t;if(t===void 0)return`undefined`;if(a(t))return o(t);if((t===void 0?`undefined`:S(t))===`bigint`)return t.toString()+`n`;if(v(t,Event)){var s={};for(var c in t){var l=t[c];s[c]=Array.isArray(l)?Hh(l.length?l[0]:null):l}return s}return v(t,Node)?v(t,HTMLElement)?t?t.outerHTML:``:t.nodeName:v(t,Error)?t.stack?t.stack+`
79
- End of stack for Error object`:t.name+`: `+t.message:t});function a(e){return!!(Uh(e)&&Object.keys(e).length>n.numOfKeysLimit||typeof e==`function`||Uh(e)&&Wh(e,n.depthOfLimit))}function o(e){var t=e.toString();return n.stringLengthLimit&&t.length>n.stringLengthLimit&&(t=``+t.slice(0,n.stringLengthLimit)+`...`),t}}var Kh={level:[`assert`,`clear`,`count`,`countReset`,`debug`,`dir`,`dirxml`,`error`,`group`,`groupCollapsed`,`groupEnd`,`info`,`log`,`table`,`time`,`timeEnd`,`timeLog`,`trace`,`warn`],lengthThreshold:1e3,logger:`console`};function qh(e,t,n){var r=n?Object.assign({},Kh,n):Kh,i=r.logger;if(!i)return function(){};var a=typeof i==`string`?t[i]:i,o=0,s=!1,c=[];if(r.level.includes(`error`)){var l=function(t){var n=t.message,i=t.error;e({level:`error`,trace:Vh.parse(i).map(function(e){return e.toString()}),payload:[Gh(n,r.stringifyOptions)]})};t.addEventListener(`error`,l),c.push(function(){t.removeEventListener(`error`,l)});var u=function(t){var n,i;v(t.reason,Error)?(n=t.reason,i=[Gh(`Uncaught (in promise) `+n.name+`: `+n.message,r.stringifyOptions)]):(n=Error(),i=[Gh(`Uncaught (in promise)`,r.stringifyOptions),Gh(t.reason,r.stringifyOptions)]),e({level:`error`,trace:Vh.parse(n).map(function(e){return e.toString()}),payload:i})};t.addEventListener(`unhandledrejection`,u),c.push(function(){t.removeEventListener(`unhandledrejection`,u)})}for(var d=C(r.level),f;!(f=d()).done;){var p=f.value;c.push(m(a,p))}return function(){c.forEach(function(e){return e()})};function m(t,n){var i=this;return t[n]?Ih(t,n,function(t){var a=i;return function(){var i=[...arguments];if(t.apply(a,i),!(n===`assert`&&i[0])&&!s){s=!0;try{var c=Vh.parse(Error()).map(function(e){return e.toString()}).splice(1),l=(n===`assert`?i.slice(1):i).map(function(e){return Gh(e,r.stringifyOptions)});o++,o<r.lengthThreshold?e({level:n,trace:c,payload:l}):o===r.lengthThreshold&&e({level:`warn`,trace:[],payload:[Gh(`The number of log records reached the threshold.`)]})}catch(e){t.apply(void 0,[`rrweb logger error:`,e].concat(i))}finally{s=!1}}}}):function(){}}}var Jh=`rrweb/console@1`,Yh=function(e){return{name:Jh,observer:qh,options:e}},Xh=n.setImmediate,Zh,Qh,$h,eg=Object.prototype.toString,tg=Xh===void 0?setTimeout:function(e){return Xh(e)};try{Object.defineProperty({},"x",{}),Zh=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:r!==!1})}}catch{Zh=function(e,t,n){return e[t]=n,e}}$h=(function(){var e,t,n;function r(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,a){n=new r(i,a),t?t.next=n:e=n,t=n,n=void 0},drain:function(){var n=e;for(e=t=Qh=void 0;n;)n.fn.call(n.self),n=n.next}}})();function ng(e,t){$h.add(e,t),Qh||=tg($h.drain)}function rg(e){var t,n=typeof e;return e!==null&&(n===`object`||n===`function`)&&(t=e.then),typeof t==`function`&&t}function ig(){for(var e=0;e<this.chain.length;e++)ag(this,this.state===1?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function ag(e,t,n){var r,i;try{t===!1?n.reject(e.msg):(r=t===!0?e.msg:t.call(void 0,e.msg),r===n.promise?n.reject(TypeError(`Promise-chain cycle`)):(i=rg(r))?i.call(r,n.resolve,n.reject):n.resolve(r))}catch(e){n.reject(e)}}function og(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=rg(e))?ng(function(){var r=new lg(n);try{t.call(e,function(){og.apply(r,arguments)},function(){sg.apply(r,arguments)})}catch(e){sg.call(r,e)}}):(n.msg=e,n.state=1,n.chain.length>0&&ng(ig,n))}catch(e){sg.call(new lg(n),e)}}}function sg(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&ng(ig,t))}function cg(e,t,n,r){for(var i=0;i<t.length;i++)(function(i){e.resolve(t[i]).then(function(e){n(i,e)},r)})(i)}function lg(e){this.def=e,this.triggered=!1}function ug(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function dg(e){if(typeof e!=`function`)throw TypeError(`Not a function`);if(this.__NPO__!==0)throw TypeError(`Not a promise`);this.__NPO__=1;var t=new ug(this);this.then=function(e,n){var r={success:typeof e!=`function`||e,failure:typeof n==`function`&&n};return r.promise=new this.constructor(function(e,t){if(typeof e!=`function`||typeof t!=`function`)throw TypeError(`Not a function`);r.resolve=e,r.reject=t}),t.chain.push(r),t.state!==0&&ng(ig,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){og.call(t,e)},function(e){sg.call(t,e)})}catch(e){sg.call(t,e)}}var fg=Zh({},`constructor`,dg,!1);dg.prototype=fg,Zh(fg,`__NPO__`,0,!1),Zh(dg,`resolve`,function(e){var t=this;return e&&typeof e==`object`&&e.__NPO__===1?e:new t(function(t,n){if(typeof t!=`function`||typeof n!=`function`)throw TypeError(`Not a function`);t(e)})}),Zh(dg,`reject`,function(e){return new this(function(t,n){if(typeof t!=`function`||typeof n!=`function`)throw TypeError(`Not a function`);n(e)})}),Zh(dg,`all`,function(e){var t=this;return eg.call(e)===`[object Array]`?e.length===0?t.resolve([]):new t(function(n,r){if(typeof n!=`function`||typeof r!=`function`)throw TypeError(`Not a function`);var i=e.length,a=Array(i),o=0;cg(t,e,function(e,t){a[e]=t,++o===i&&n(a)},r)}):t.reject(TypeError(`Not an array`))}),Zh(dg,`race`,function(e){var t=this;return eg.call(e)===`[object Array]`?new t(function(n,r){if(typeof n!=`function`||typeof r!=`function`)throw TypeError(`Not a function`);cg(t,e,function(e,t){n(t)},r)}):t.reject(TypeError(`Not an array`))});var U=typeof Promise<`u`&&Promise.toString().indexOf(`[native code]`)!==-1?Promise:dg,pg=864e5,mg=8e3,hg=Array.prototype,gg=Function.prototype,_g=Object.prototype,vg=hg.slice,yg=_g.toString,bg=_g.hasOwnProperty,xg=n.console,Sg=n.navigator,W=n.document,Cg=n.opera,wg=n.screen,Tg=Sg.userAgent,Eg=gg.bind,Dg=hg.forEach,Og=hg.indexOf,kg=hg.map,Ag=Array.isArray,jg={},G={},K={log:function(){if(i.DEBUG&&!G.isUndefined(xg)&&xg)try{xg.log.apply(xg,arguments)}catch{G.each(arguments,function(e){xg.log(e)})}},warn:function(){if(i.DEBUG&&!G.isUndefined(xg)&&xg){var e=[`Mixpanel warning:`].concat(G.toArray(arguments));try{xg.warn.apply(xg,e)}catch{G.each(e,function(e){xg.warn(e)})}}},error:function(){if(i.DEBUG&&!G.isUndefined(xg)&&xg){var e=[`Mixpanel error:`].concat(G.toArray(arguments));try{xg.error.apply(xg,e)}catch{G.each(e,function(e){xg.error(e)})}}},critical:function(){if(!G.isUndefined(xg)&&xg){var e=[`Mixpanel error:`].concat(G.toArray(arguments));try{xg.error.apply(xg,e)}catch{G.each(e,function(e){xg.error(e)})}}}},Mg=function(e,t){return function(){return arguments[0]=`[`+t+`] `+arguments[0],e.apply(K,arguments)}},Ng=function(e){return{log:Mg(K.log,e),warn:Mg(K.warn,e),error:Mg(K.error,e),critical:Mg(K.critical,e)}},Pg=function(e){return function(){try{return e.apply(this,arguments)}catch(e){K.critical(`Implementation error. Please turn on debug and contact support@mixpanel.com.`),i.DEBUG&&K.critical(e)}}},Fg=function(e){var t=e.prototype;for(var n in t)typeof t[n]==`function`&&(t[n]=Pg(t[n]))};G.bind=function(e,t){var n,r;if(Eg&&e.bind===Eg)return Eg.apply(e,vg.call(arguments,1));if(!G.isFunction(e))throw TypeError();return n=vg.call(arguments,2),r=function(){if(!(this instanceof r))return e.apply(t,n.concat(vg.call(arguments)));var i={};i.prototype=e.prototype;var a=new i;i.prototype=null;var o=e.apply(a,n.concat(vg.call(arguments)));return Object(o)===o?o:a},r},G.each=function(e,t,n){if(e!=null){if(Dg&&e.forEach===Dg)e.forEach(t,n);else if(e.length===+e.length){for(var r=0,i=e.length;r<i;r++)if(r in e&&t.call(n,e[r],r,e)===jg)return}else for(var a in e)if(bg.call(e,a)&&t.call(n,e[a],a,e)===jg)return}},G.extend=function(e){return G.each(vg.call(arguments,1),function(t){for(var n in t)t[n]!==void 0&&(e[n]=t[n])}),e},G.isArray=Ag||function(e){return yg.call(e)===`[object Array]`},G.isFunction=function(e){return typeof e==`function`},G.isArguments=function(e){return!!(e&&bg.call(e,`callee`))},G.toArray=function(e){return e?e.toArray?e.toArray():G.isArray(e)||G.isArguments(e)?vg.call(e):G.values(e):[]},G.map=function(e,t,n){if(kg&&e.map===kg)return e.map(t,n);var r=[];return G.each(e,function(e){r.push(t.call(n,e))}),r},G.keys=function(e){var t=[];return e===null||G.each(e,function(e,n){t[t.length]=n}),t},G.values=function(e){var t=[];return e===null||G.each(e,function(e){t[t.length]=e}),t},G.include=function(e,t){var n=!1;return e===null?n:Og&&e.indexOf===Og?e.indexOf(t)!=-1:(G.each(e,function(e){if(n||=e===t)return jg}),n)},G.includes=function(e,t){return e.indexOf(t)!==-1},G.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},G.isObject=function(e){return e===Object(e)&&!G.isArray(e)},G.isEmptyObject=function(e){if(G.isObject(e)){for(var t in e)if(bg.call(e,t))return!1;return!0}return!1},G.isUndefined=function(e){return e===void 0},G.isString=function(e){return yg.call(e)==`[object String]`},G.isDate=function(e){return yg.call(e)==`[object Date]`},G.isNumber=function(e){return yg.call(e)==`[object Number]`},G.isElement=function(e){return!!(e&&e.nodeType===1)},G.encodeDates=function(e){var t=G.isArray(e)?[]:{};return G.each(e,function(e,n){t[n]=G.isDate(e)?G.formatDate(e):G.isObject(e)?G.encodeDates(e):e}),t},G.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},G.formatDate=function(e){function t(e){return e<10?`0`+e:e}return e.getUTCFullYear()+`-`+t(e.getUTCMonth()+1)+`-`+t(e.getUTCDate())+`T`+t(e.getUTCHours())+`:`+t(e.getUTCMinutes())+`:`+t(e.getUTCSeconds())},G.strip_empty_properties=function(e){var t={};return G.each(e,function(e,n){G.isString(e)&&e.length>0&&(t[n]=e)}),t},G.truncate=function(e,t){var n;return typeof e==`string`?n=e.slice(0,t):G.isArray(e)?(n=[],G.each(e,function(e){n.push(G.truncate(e,t))})):G.isObject(e)?(n={},G.each(e,function(e,r){n[r]=G.truncate(e,t)})):n=e,n},G.JSONEncode=(function(){return function(e){var t=e,n=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"\b":`\\b`," ":`\\t`,"\n":`\\n`,"\f":`\\f`,"\r":`\\r`,'"':`\\"`,"\\":`\\\\`};return t.lastIndex=0,t.test(e)?`"`+e.replace(t,function(e){var t=n[e];return typeof t==`string`?t:`\\u`+(`0000`+e.charCodeAt(0).toString(16)).slice(-4)})+`"`:`"`+e+`"`},r=function(e,t){var i=``,a=` `,o=0,s=``,c=``,l=0,u=i,d=[],f=t[e];switch(f&&typeof f==`object`&&typeof f.toJSON==`function`&&(f=f.toJSON(e)),typeof f){case`string`:return n(f);case`number`:return isFinite(f)?String(f):`null`;case`boolean`:case`null`:return String(f);case`object`:if(!f)return`null`;if(i+=a,d=[],yg.apply(f)===`[object Array]`){for(l=f.length,o=0;o<l;o+=1)d[o]=r(o,f)||`null`;return c=d.length===0?`[]`:i?`[
80
- `+i+d.join(`,
81
- `+i)+`
82
- `+u+`]`:`[`+d.join(`,`)+`]`,i=u,c}for(s in f)bg.call(f,s)&&(c=r(s,f),c&&d.push(n(s)+(i?`: `:`:`)+c));return c=d.length===0?`{}`:i?`{`+d.join(`,`)+u+`}`:`{`+d.join(`,`)+`}`,i=u,c}};return r(``,{"":t})}})(),G.JSONDecode=(function(){var e,t,n={'"':`"`,"\\":`\\`,"/":`/`,b:`\b`,f:`\f`,n:`
83
- `,r:`\r`,t:` `},r,i=function(t){var n=SyntaxError(t);throw n.at=e,n.text=r,n},a=function(n){return n&&n!==t&&i(`Expected '`+n+`' instead of '`+t+`'`),t=r.charAt(e),e+=1,t},o=function(){var e,n=``;for(t===`-`&&(n=`-`,a(`-`));t>=`0`&&t<=`9`;)n+=t,a();if(t===`.`)for(n+=`.`;a()&&t>=`0`&&t<=`9`;)n+=t;if(t===`e`||t===`E`)for(n+=t,a(),(t===`-`||t===`+`)&&(n+=t,a());t>=`0`&&t<=`9`;)n+=t,a();if(e=+n,!isFinite(e))i(`Bad number`);else return e},s=function(){var e,r,o=``,s;if(t===`"`)for(;a();){if(t===`"`)return a(),o;if(t===`\\`){if(a(),t===`u`){for(s=0,r=0;r<4&&(e=parseInt(a(),16),isFinite(e));r+=1)s=s*16+e;o+=String.fromCharCode(s)}else if(typeof n[t]==`string`)o+=n[t];else break}else o+=t}i(`Bad string`)},c=function(){for(;t&&t<=` `;)a()},l=function(){switch(t){case`t`:return a(`t`),a(`r`),a(`u`),a(`e`),!0;case`f`:return a(`f`),a(`a`),a(`l`),a(`s`),a(`e`),!1;case`n`:return a(`n`),a(`u`),a(`l`),a(`l`),null}i(`Unexpected "`+t+`"`)},u,d=function(){var e=[];if(t===`[`){if(a(`[`),c(),t===`]`)return a(`]`),e;for(;t;){if(e.push(u()),c(),t===`]`)return a(`]`),e;a(`,`),c()}}i(`Bad array`)},f=function(){var e,n={};if(t===`{`){if(a(`{`),c(),t===`}`)return a(`}`),n;for(;t;){if(e=s(),c(),a(`:`),Object.hasOwnProperty.call(n,e)&&i(`Duplicate key "`+e+`"`),n[e]=u(),c(),t===`}`)return a(`}`),n;a(`,`),c()}}i(`Bad object`)};return u=function(){switch(c(),t){case`{`:return f();case`[`:return d();case`"`:return s();case`-`:return o();default:return t>=`0`&&t<=`9`?o():l()}},function(n){var a;return r=n,e=0,t=` `,a=u(),c(),t&&i(`Syntax error`),a}})(),G.base64Encode=function(e){var t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`,n,r,i,a,o,s,c,l,u=0,d=0,f=``,p=[];if(!e)return e;e=G.utf8Encode(e);do n=e.charCodeAt(u++),r=e.charCodeAt(u++),i=e.charCodeAt(u++),l=n<<16|r<<8|i,a=l>>18&63,o=l>>12&63,s=l>>6&63,c=l&63,p[d++]=t.charAt(a)+t.charAt(o)+t.charAt(s)+t.charAt(c);while(u<e.length);switch(f=p.join(``),e.length%3){case 1:f=f.slice(0,-2)+`==`;break;case 2:f=f.slice(0,-1)+`=`}return f},G.utf8Encode=function(e){e=(e+``).replace(/\r\n/g,`
84
- `).replace(/\r/g,`
85
- `);var t=``,n,r,i=0,a;for(n=r=0,i=e.length,a=0;a<i;a++){var o=e.charCodeAt(a),s=null;o<128?r++:s=o>127&&o<2048?String.fromCharCode(o>>6|192,o&63|128):String.fromCharCode(o>>12|224,o>>6&63|128,o&63|128),s!==null&&(r>n&&(t+=e.substring(n,r)),t+=s,n=r=a+1)}return r>n&&(t+=e.substring(n,e.length)),t},G.UUID=function(){try{return n.crypto.randomUUID()}catch{for(var e=Array(36),t=0;t<36;t++)e[t]=Math.floor(Math.random()*16);return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]=`-`,G.map(e,function(e){return e.toString(16)}).join(``)}};var Ig=[`ahrefsbot`,`ahrefssiteaudit`,`amazonbot`,`baiduspider`,`bingbot`,`bingpreview`,`chrome-lighthouse`,`facebookexternal`,`petalbot`,`pinterest`,`screaming frog`,`yahoo! slurp`,`yandex`,`adsbot-google`,`apis-google`,`duplexweb-google`,`feedfetcher-google`,`google favicon`,`google web preview`,`google-read-aloud`,`googlebot`,`googleweblight`,`mediapartners-google`,`storebot-google`];G.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<Ig.length;t++)if(e.indexOf(Ig[t])!==-1)return!0;return!1},G.HTTPBuildQuery=function(e,t){var n,r,i=[];return G.isUndefined(t)&&(t=`&`),G.each(e,function(e,t){n=encodeURIComponent(e.toString()),r=encodeURIComponent(t),i[i.length]=r+`=`+n}),i.join(t)},G.getQueryParam=function(e,t){t=t.replace(/[[\]\\]/g,`\\$&`);var n=`[\\?&]`+t+`=([^&#]*)`,r=new RegExp(n).exec(e);if(r===null||r&&typeof r[1]!=`string`&&r[1].length)return``;var i=r[1];try{i=decodeURIComponent(i)}catch{K.error(`Skipping decoding for malformed query param: `+i)}return i.replace(/\+/g,` `)},G.cookie={get:function(e){for(var t=e+`=`,n=W.cookie.split(`;`),r=0;r<n.length;r++){for(var i=n[r];i.charAt(0)==` `;)i=i.substring(1,i.length);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=G.JSONDecode(G.cookie.get(e))||{}}catch{}return t},set_seconds:function(e,t,n,r,i,a,o){var s=``,c=``,l=``;if(o)s=`; domain=`+o;else if(r){var u=Qg(W.location.hostname);s=u?`; domain=.`+u:``}if(n){var d=new Date;d.setTime(d.getTime()+n*1e3),c=`; expires=`+d.toGMTString()}a&&(i=!0,l=`; SameSite=None`),i&&(l+=`; secure`),W.cookie=e+`=`+encodeURIComponent(t)+c+`; path=/`+s+l},set:function(e,t,n,r,i,a,o){var s=``,c=``,l=``;if(o)s=`; domain=`+o;else if(r){var u=Qg(W.location.hostname);s=u?`; domain=.`+u:``}if(n){var d=new Date;d.setTime(d.getTime()+n*24*60*60*1e3),c=`; expires=`+d.toGMTString()}a&&(i=!0,l=`; SameSite=None`),i&&(l+=`; secure`);var f=e+`=`+encodeURIComponent(t)+c+`; path=/`+s+l;return W.cookie=f,f},remove:function(e,t,n){G.cookie.set(e,``,-1,t,!1,!1,n)}};var Lg=function(e){var t=!0;try{var n=`__mplss_`+Jg(8),r=`xyz`;e.setItem(n,r),e.getItem(n)!==r&&(t=!1),e.removeItem(n)}catch{t=!1}return t},Rg=null,zg=function(e,t){return Rg!==null&&!t?Rg:Rg=Lg(e)},Bg=null,Vg=function(e,t){return Bg!==null&&!t?Bg:Bg=Lg(e)};function Hg(e,t,n){var r=function(e){K.error(t+` error: `+e)};return{is_supported:function(r){var i=n(e,r);return i||K.error(t+` unsupported`),i},error:r,get:function(t){try{return e.getItem(t)}catch(e){r(e)}return null},parse:function(t){try{return G.JSONDecode(e.getItem(t))||{}}catch{}return null},set:function(t,n){try{e.setItem(t,n)}catch(e){r(e)}},remove:function(t){try{e.removeItem(t)}catch(e){r(e)}}}}var Ug=function(){try{return n.localStorage}catch{return null}};G.localStorage=Hg(Ug(),`localStorage`,zg),G.sessionStorage=Hg(function(){try{return n.sessionStorage}catch{return null}}(),`sessionStorage`,Vg),G.register_event=(function(){var e=function(e,n,r,i,a){if(!e){K.error(`No valid element provided to register_event`);return}if(e.addEventListener&&!i)e.addEventListener(n,r,!!a);else{var o=`on`+n,s=e[o];e[o]=t(e,r,s)}};function t(e,t,i){return function(a){if(a||=r(n.event),a){var o=!0,s,c;return G.isFunction(i)&&(s=i(a)),c=t.call(e,a),(!1===s||!1===c)&&(o=!1),o}}}function r(e){return e&&(e.preventDefault=r.preventDefault,e.stopPropagation=r.stopPropagation),e}return r.preventDefault=function(){this.returnValue=!1},r.stopPropagation=function(){this.cancelBubble=!0},e})();var Wg=RegExp(`^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$`);G.dom_query=(function(){function e(e){return e.all?e.all:e.getElementsByTagName(`*`)}var t=/[\t\r\n]/g;function n(e,n){var r=` `+n+` `;return(` `+e.className+` `).replace(t,` `).indexOf(r)>=0}function r(t){if(!W.getElementsByTagName)return[];var r=t.split(` `),i,a,o,s,c,l,u,d,f,p,m=[W];for(l=0;l<r.length;l++){if(i=r[l].replace(/^\s+/,``).replace(/\s+$/,``),i.indexOf(`#`)>-1){a=i.split(`#`),o=a[0];var h=a[1],g=W.getElementById(h);if(!g||o&&g.nodeName.toLowerCase()!=o)return[];m=[g];continue}if(i.indexOf(`.`)>-1){a=i.split(`.`),o=a[0];var _=a[1];for(o||=`*`,s=[],c=0,u=0;u<m.length;u++)for(f=o==`*`?e(m[u]):m[u].getElementsByTagName(o),d=0;d<f.length;d++)s[c++]=f[d];for(m=[],p=0,u=0;u<s.length;u++)s[u].className&&G.isString(s[u].className)&&n(s[u],_)&&(m[p++]=s[u]);continue}var v=i.match(Wg);if(v){o=v[1];var y=v[2],b=v[3],x=v[4];for(o||=`*`,s=[],c=0,u=0;u<m.length;u++)for(f=o==`*`?e(m[u]):m[u].getElementsByTagName(o),d=0;d<f.length;d++)s[c++]=f[d];m=[],p=0;var S;switch(b){case`=`:S=function(e){return e.getAttribute(y)==x};break;case`~`:S=function(e){return e.getAttribute(y).match(RegExp(`\\b`+x+`\\b`))};break;case`|`:S=function(e){return e.getAttribute(y).match(RegExp(`^`+x+`-?`))};break;case`^`:S=function(e){return e.getAttribute(y).indexOf(x)===0};break;case`$`:S=function(e){return e.getAttribute(y).lastIndexOf(x)==e.getAttribute(y).length-x.length};break;case`*`:S=function(e){return e.getAttribute(y).indexOf(x)>-1};break;default:S=function(e){return e.getAttribute(y)}}for(m=[],p=0,u=0;u<s.length;u++)S(s[u])&&(m[p++]=s[u]);continue}for(o=i,s=[],c=0,u=0;u<m.length;u++)for(f=m[u].getElementsByTagName(o),d=0;d<f.length;d++)s[c++]=f[d];m=s}return m}return function(e){return G.isElement(e)?[e]:G.isObject(e)&&!G.isUndefined(e.length)?e:r.call(this,e)}})();var Gg=[`utm_source`,`utm_medium`,`utm_campaign`,`utm_content`,`utm_term`,`utm_id`,`utm_source_platform`,`utm_campaign_id`,`utm_creative_format`,`utm_marketing_tactic`],Kg=[`dclid`,`fbclid`,`gclid`,`ko_click_id`,`li_fat_id`,`msclkid`,`sccid`,`ttclid`,`twclid`,`wbraid`];G.info={campaignParams:function(e){var t=``,n={};return G.each(Gg,function(r){t=G.getQueryParam(W.URL,r),t.length?n[r]=t:e!==void 0&&(n[r]=e)}),n},clickParams:function(){var e=``,t={};return G.each(Kg,function(n){e=G.getQueryParam(W.URL,n),e.length&&(t[n]=e)}),t},marketingParams:function(){return G.extend(G.info.campaignParams(),G.info.clickParams())},searchEngine:function(e){return e.search(`https?://(.*)google.([^/?]*)`)===0?`google`:e.search(`https?://(.*)bing.com`)===0?`bing`:e.search(`https?://(.*)yahoo.com`)===0?`yahoo`:e.search(`https?://(.*)duckduckgo.com`)===0?`duckduckgo`:null},searchInfo:function(e){var t=G.info.searchEngine(e),n=t==`yahoo`?`p`:`q`,r={};if(t!==null){r.$search_engine=t;var i=G.getQueryParam(e,n);i.length&&(r.mp_keyword=i)}return r},browser:function(e,t,n){return t||=``,n||G.includes(e,` OPR/`)?G.includes(e,`Mini`)?`Opera Mini`:`Opera`:/(BlackBerry|PlayBook|BB10)/i.test(e)?`BlackBerry`:G.includes(e,`IEMobile`)||G.includes(e,`WPDesktop`)?`Internet Explorer Mobile`:G.includes(e,`SamsungBrowser/`)?`Samsung Internet`:G.includes(e,`Edge`)||G.includes(e,`Edg/`)?`Microsoft Edge`:G.includes(e,`FBIOS`)?`Facebook Mobile`:G.includes(e,`Whale/`)?`Whale Browser`:G.includes(e,`Chrome`)?`Chrome`:G.includes(e,`CriOS`)?`Chrome iOS`:G.includes(e,`UCWEB`)||G.includes(e,`UCBrowser`)?`UC Browser`:G.includes(e,`FxiOS`)?`Firefox iOS`:G.includes(t,`Apple`)?G.includes(e,`Mobile`)?`Mobile Safari`:`Safari`:G.includes(e,`Android`)?`Android Mobile`:G.includes(e,`Konqueror`)?`Konqueror`:G.includes(e,`Firefox`)?`Firefox`:G.includes(e,`MSIE`)||G.includes(e,`Trident/`)?`Internet Explorer`:G.includes(e,`Gecko`)?`Mozilla`:``},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/Android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[G.info.browser(e,t,n)];if(r===void 0)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},os:function(){var e=Tg;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?`Windows Phone`:`Windows`:/(iPhone|iPad|iPod)/.test(e)?`iOS`:/Android/.test(e)?`Android`:/(BlackBerry|PlayBook|BB10)/i.test(e)?`BlackBerry`:/Mac/i.test(e)?`Mac OS X`:/Linux/.test(e)?`Linux`:/CrOS/.test(e)?`Chrome OS`:``},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?`Windows Phone`:/iPad/.test(e)?`iPad`:/iPod/.test(e)?`iPod Touch`:/iPhone/.test(e)?`iPhone`:/(BlackBerry|PlayBook|BB10)/i.test(e)?`BlackBerry`:/Android/.test(e)?`Android`:``},referringDomain:function(e){var t=e.split(`/`);return t.length>=3?t[2]:``},currentUrl:function(){return n.location.href},properties:function(e){return typeof e!=`object`&&(e={}),G.extend(G.strip_empty_properties({$os:G.info.os(),$browser:G.info.browser(Tg,Sg.vendor,Cg),$referrer:W.referrer,$referring_domain:G.info.referringDomain(W.referrer),$device:G.info.device(Tg)}),{$current_url:G.info.currentUrl(),$browser_version:G.info.browserVersion(Tg,Sg.vendor,Cg),$screen_height:wg.height,$screen_width:wg.width,mp_lib:`web`,$lib_version:i.LIB_VERSION,$insert_id:Jg(),time:G.timestamp()/1e3},G.strip_empty_properties(e))},people_properties:function(){return G.extend(G.strip_empty_properties({$os:G.info.os(),$browser:G.info.browser(Tg,Sg.vendor,Cg)}),{$browser_version:G.info.browserVersion(Tg,Sg.vendor,Cg)})},mpPageViewProperties:function(){return G.strip_empty_properties({current_page_title:W.title,current_domain:n.location.hostname,current_url_path:n.location.pathname,current_url_protocol:n.location.protocol,current_url_search:n.location.search})}};var qg=function(e,t){var n=null,r=[];return function(i){var a=this;return r.push(i),n||=new U(function(i){setTimeout(function(){var t=e.apply(a,[r]);n=null,r=[],i(t)},t)}),n}},Jg=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},Yg=function(){var e=G.UUID().replace(/-/g,``),t=G.UUID().replace(/-/g,``).substring(0,16);return`00-`+e+`-`+t+`-01`},Xg=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Zg=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Qg=function(e){var t=Zg,n=e.split(`.`),r=n[n.length-1];(r.length>4||r===`com`||r===`org`)&&(t=Xg);var i=e.match(t);return i?i[0]:``},$g=function(){var e=n.navigator.onLine;return G.isUndefined(e)||e},e_=function(){},t_=function(e,t){for(var n=!1,r=0;r<t.length;r++)if(e.match(t[r])){n=!0;break}return n},n_=null,r_=null;typeof JSON<`u`&&(n_=JSON.stringify,r_=JSON.parse),n_||=G.JSONEncode,r_||=G.JSONDecode;var i_=function(e,t,r){if(!n.CompressionStream)return!1;var i=G.info.browser(e,t,r),a=G.info.browserVersion(e,t,r);return!((i===`Safari`||i===`Mobile Safari`)&&a>=16.4&&a<16.6)};G.info=G.info,G.info.browser=G.info.browser,G.info.browserVersion=G.info.browserVersion,G.info.device=G.info.device,G.info.properties=G.info.properties,G.isBlockedUA=G.isBlockedUA,G.isEmptyObject=G.isEmptyObject,G.isObject=G.isObject,G.JSONDecode=G.JSONDecode,G.JSONEncode=G.JSONEncode,G.toArray=G.toArray,G.NPO=dg;var a_=function(e,t,n){this.dbName=e,this.storeName=t,this.version=n.version,this.storeNamesInDb=n.storeNames,this.dbPromise=null};a_.prototype._openDb=function(){var e=this.dbName,t=this.version,r=this.storeNamesInDb;return new U(function(i,a){var o=n.indexedDB.open(e,t);o.onerror=function(){a(o.error)},o.onsuccess=function(){i(o.result)},o.onupgradeneeded=function(e){var t=e.target.result;r.forEach(function(e){t.objectStoreNames.contains(e)||t.createObjectStore(e)})}})},a_.prototype.init=function(){return n.indexedDB?(this.dbPromise||=this._openDb(),this.dbPromise.then(function(e){return e instanceof n.IDBDatabase?U.resolve():U.reject(e)})):U.reject(`indexedDB is not supported in this browser`)},a_.prototype.isInitialized=function(){return!!this.dbPromise},a_.prototype.makeTransaction=function(e,t){var n=this.storeName,r=function(r){return new U(function(i,a){var o=r.transaction(n,e);o.oncomplete=function(){i(o)},o.onabort=o.onerror=function(){a(o.error)},t(o.objectStore(n))})};return this.dbPromise.then(r).catch(function(e){return e&&e.name===`InvalidStateError`?(this.dbPromise=this._openDb(),this.dbPromise.then(r)):U.reject(e)}.bind(this))},a_.prototype.setItem=function(e,t){return this.makeTransaction(`readwrite`,function(n){n.put(t,e)})},a_.prototype.getItem=function(e){var t;return this.makeTransaction(`readonly`,function(n){t=n.get(e)}).then(function(){return t.result})},a_.prototype.removeItem=function(e){return this.makeTransaction(`readwrite`,function(t){t.delete(e)})},a_.prototype.getAll=function(){var e;return this.makeTransaction(`readonly`,function(t){e=t.getAll()}).then(function(){return e.result})};var o_=`mixpanelBrowserDb`,s_=`mixpanelRecordingEvents`,c_=`mixpanelRecordingRegistry`,l_={version:1,storeNames:[s_,c_]},u_=`__mp_opt_in_out_`;function d_(e,t){w_(!0,e,t)}function f_(e,t){w_(!1,e,t)}function p_(e,t){return x_(e,t)===`1`}function m_(e,t){if(C_(t))return K.warn(`This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"`),!0;var n=x_(e,t)===`0`;return n&&K.warn(`You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data.`),n}function h_(e){return T_(e,function(e){return this.get_config(e)})}function g_(e){return T_(e,function(e){return this._get_config(e)})}function __(e){return T_(e,function(e){return this._get_config(e)})}function v_(e,t){t||={},y_(t).remove(b_(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function y_(e){return e||={},e.persistenceType===`localStorage`?G.localStorage:G.cookie}function b_(e,t){return t||={},(t.persistencePrefix||u_)+e}function x_(e,t){return y_(t).get(b_(e,t))}function S_(e,t,n){if(t!==`localStorage`)return t;var r=zg(Ug())?`localStorage`:`cookie`;return x_(e,{persistenceType:r,persistencePrefix:n})===null?r===`localStorage`?`cookie`:`localStorage`:r}function C_(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||n,r=t.navigator||{},i=!1;return G.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){G.includes([!0,1,`1`,`yes`],e)&&(i=!0)}),i}function w_(e,t,n){if(!G.isString(t)||!t.length){K.error(`gdpr.`+(e?`optIn`:`optOut`)+` called with an invalid token`);return}n||={},y_(n).set(b_(t,n),+!!e,G.isNumber(n.cookieExpiration)?n.cookieExpiration:null,!!n.crossSubdomainCookie,!!n.secureCookie,!!n.crossSiteCookie,n.cookieDomain),n.track&&e&&n.track(n.trackEventName||`$opt_in`,n.trackProperties,{send_immediately:!0})}function T_(e,t){return function(){var n=!1;try{var r=t.call(this,`token`),i=t.call(this,`ignore_dnt`),a=t.call(this,`opt_out_tracking_persistence_type`),o=t.call(this,`opt_out_tracking_cookie_prefix`),s=t.call(this,`window`);r&&(n=m_(r,{ignoreDnt:i,persistenceType:S_(r,a,o),persistencePrefix:o,window:s}))}catch(e){K.error(`Unexpected error when checking tracking opt-out status: `+e)}if(!n)return e.apply(this,arguments);var c=arguments[arguments.length-1];typeof c==`function`&&c(0)}}var E_=Ng(`lock`),D_=function(e,t){t||={},this.storageKey=e,this.storage=t.storage||Ug(),this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||U};D_.prototype.withLock=function(e,t){var n=this.promiseImpl;return new n(G.bind(function(n,r){var i=t||new Date().getTime()+`|`+Math.random(),a=new Date().getTime(),o=this.storageKey,s=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,u=o+`:X`,d=o+`:Y`,f=o+`:Z`,p=function(e){if(new Date().getTime()-a>c){E_.error(`Timeout waiting for mutex on `+o+`; clearing lock. [`+i+`]`),l.removeItem(f),l.removeItem(d),g();return}setTimeout(function(){try{e()}catch(e){r(e)}},s*(Math.random()+.1))},m=function(e,t){e()?t():p(function(){m(e,t)})},h=function(){var e=l.getItem(d);return e&&e!==i?!1:(l.setItem(d,i),l.getItem(d)===i||(zg(l,!0)||r(Error(`localStorage support dropped while acquiring lock`)),!1))},g=function(){l.setItem(u,i),m(h,function(){if(l.getItem(u)===i){_();return}p(function(){if(l.getItem(d)!==i){g();return}m(function(){return!l.getItem(f)},_)})})},_=function(){l.setItem(f,`1`);var t=function(){l.removeItem(f),l.getItem(d)===i&&l.removeItem(d),l.getItem(u)===i&&l.removeItem(u)};e().then(function(e){t(),n(e)}).catch(function(e){t(),r(e)})};try{if(zg(l,!0))g();else throw Error(`localStorage support check failed`)}catch(e){r(e)}},this))};var O_=function(e){this.storage=e||Ug()};O_.prototype.init=function(){return this.storage?U.resolve():U.reject(Error(`localStorage is not available`))},O_.prototype.isInitialized=function(){return!0},O_.prototype.setItem=function(e,t){return new U(G.bind(function(n,r){try{this.storage.setItem(e,n_(t))}catch(e){r(e)}n()},this))},O_.prototype.getItem=function(e){return new U(G.bind(function(t,n){var r;try{r=r_(this.storage.getItem(e))}catch(e){n(e)}t(r)},this))},O_.prototype.removeItem=function(e){return new U(G.bind(function(t,n){try{this.storage.removeItem(e)}catch(e){n(e)}t()},this))};var k_=Ng(`batch`),A_=function(e,t){t||={},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new O_,this.lock=new D_(e,{storage:t.sharedLockStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||G.bind(k_.error,k_),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,this.enqueuePersisted=t.enqueueThrottleMs?qg(G.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):G.bind(function(e){return this._enqueuePersisted([e])},this)};A_.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?U.resolve():this.queueStorage.init().then(G.bind(function(){this.initialized=!0},this)).catch(G.bind(function(e){this.reportError(`Error initializing queue persistence. Disabling persistence`,e),this.initialized=!0,this.usePersistence=!1},this))},A_.prototype.enqueue=function(e,t){var n={id:Jg(),flushAfter:new Date().getTime()+t*2,payload:e};return this.usePersistence?this.enqueuePersisted(n):(this.memQueue.push(n),U.resolve(!0))},A_.prototype._enqueuePersisted=function(e){var t=G.bind(function(){return this.ensureInit().then(G.bind(function(){return this.readFromStorage()},this)).then(G.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(G.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(G.bind(function(t){return this.reportError(`Error enqueueing items`,t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(G.bind(function(e){return this.reportError(`Error acquiring storage lock`,e),!1},this))},A_.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(G.bind(function(){return this.readFromStorage()},this)).then(G.bind(function(n){if(n.length){var r={};G.each(t,function(e){r[e.id]=!0});for(var i=0;i<n.length;i++){var a=n[i];if(new Date().getTime()>a.flushAfter&&!r[a.id]&&(a.orphaned=!0,t.push(a),t.length>=e))break}}return t},this)):U.resolve(t)};var j_=function(e,t){var n=[];return G.each(e,function(e){e.id&&!t[e.id]&&n.push(e)}),n};A_.prototype.removeItemsByID=function(e){var t={};if(G.each(e,function(e){t[e]=!0}),this.memQueue=j_(this.memQueue,t),this.usePersistence){var n=G.bind(function(){return this.ensureInit().then(G.bind(function(){return this.readFromStorage()},this)).then(G.bind(function(e){return e=j_(e,t),this.saveToStorage(e)},this)).then(G.bind(function(){return this.readFromStorage()},this)).then(G.bind(function(e){for(var n=0;n<e.length;n++){var r=e[n];if(r.id&&t[r.id])throw Error(`Item not removed from storage`)}return!0},this)).catch(G.bind(function(t){return this.reportError(`Error removing items`,t,e),!1},this))},this);return this.lock.withLock(n,this.pid).catch(G.bind(function(e){return this.reportError(`Error acquiring storage lock`,e),!zg(this.lock.storage,!0)&&n().then(G.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(G.bind(function(e){return this.reportError(`Error clearing queue`,e),!1},this))},this))}return U.resolve(!0)};var M_=function(e,t){var n=[];return G.each(e,function(e){var r=e.id;if(r in t){var i=t[r];i!==null&&(e.payload=i,n.push(e))}else n.push(e)}),n};A_.prototype.updatePayloads=function(e){return this.memQueue=M_(this.memQueue,e),this.usePersistence?this.lock.withLock(G.bind(function(){return this.ensureInit().then(G.bind(function(){return this.readFromStorage()},this)).then(G.bind(function(t){return t=M_(t,e),this.saveToStorage(t)},this)).catch(G.bind(function(t){return this.reportError(`Error updating items`,e,t),!1},this))},this),this.pid).catch(G.bind(function(e){return this.reportError(`Error acquiring storage lock`,e),!1},this)):U.resolve(!0)},A_.prototype.readFromStorage=function(){return this.ensureInit().then(G.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(G.bind(function(e){return e&&(G.isArray(e)||(this.reportError(`Invalid storage entry:`,e),e=null)),e||[]},this)).catch(G.bind(function(e){return this.reportError(`Error retrieving queue`,e),[]},this))},A_.prototype.saveToStorage=function(e){return this.ensureInit().then(G.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(G.bind(function(e){return this.reportError(`Error saving queue`,e),!1},this))},A_.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(G.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)).catch(G.bind(function(e){this.reportError(`Error clearing queue`,e)},this)):U.resolve()};var N_=6e5,P_=Ng(`batch`),F_=function(e,t){this.errorReporter=t.errorReporter,this.queue=new A_(e,{errorReporter:G.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};F_.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},F_.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},F_.prototype.stop=function(){this.stopped=!0,this.timeoutID&&=(clearTimeout(this.timeoutID),null)},F_.prototype.clear=function(){return this.queue.clear()},F_.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},F_.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},F_.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(G.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},F_.prototype.sendRequestPromise=function(e,t){return new U(G.bind(function(n){this.sendRequest(e,t,n)},this))},F_.prototype.flush=function(e){if(this.requestInProgress)return P_.log(`Flush: Request already in progress`),U.resolve();this.requestInProgress=!0,e||={};var t=this.libConfig.batch_request_timeout_ms,n=new Date().getTime(),r=this.batchSize;return this.queue.fillBatch(r).then(G.bind(function(a){var o=a.length===r,s=[],c={};if(G.each(a,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=G.extend({},t.properties,{mp_sent_by_lib_version:i.LIB_VERSION}));var n=!0,r=e.id;r?(this.itemIdsSentSuccessfully[r]||0)>5&&(this.reportError(`[dupe] item ID sent too many times, not sending`,{item:e,batchSize:a.length,timesSent:this.itemIdsSentSuccessfully[r]}),n=!1):this.reportError(`[dupe] found item with no ID`,{item:e}),n&&s.push(t)}c[e.id]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),U.resolve();var l=G.bind(function(){return this.queue.removeItemsByID(G.map(a,function(e){return e.id})).then(G.bind(function(e){return G.each(a,G.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError(`[dupe] item ID sent too many times`,{item:e,batchSize:a.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError(`[dupe] found item with no ID while removing`,{item:e})},this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),U.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError(`Too many queue failures; disabling batching system.`),this.stopAllBatching()):this.resetFlush(),U.resolve())},this))},this),u=G.bind(function(i){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(c);if(G.isObject(i)&&i.error===`timeout`&&new Date().getTime()-n>=t)return this.reportError(`Network timeout; retrying`),this.flush();if(G.isObject(i)&&(i.httpStatusCode>=500||i.httpStatusCode===429||i.httpStatusCode<=0&&!$g()||i.error===`timeout`)){var o=this.flushInterval*2;return i.retryAfter&&(o=parseInt(i.retryAfter,10)*1e3||o),o=Math.min(N_,o),this.reportError(`Error; retry in `+o+` ms`),this.scheduleFlush(o),U.resolve()}if(G.isObject(i)&&i.httpStatusCode===413){if(a.length>1){var s=Math.max(1,Math.floor(r/2));return this.batchSize=Math.min(this.batchSize,s,a.length-1),this.reportError(`413 response; reducing batch size to `+this.batchSize),this.resetFlush(),U.resolve()}return this.reportError(`Single-event request too large; dropping`,a),this.resetBatchSize(),l()}return l()}catch(e){this.reportError(`Error handling API response`,e),this.resetFlush()}},this),d={method:`POST`,verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(d.transport=`sendBeacon`),P_.log(`MIXPANEL REQUEST:`,s),this.sendRequestPromise(s,d).then(u)},this)).catch(G.bind(function(e){this.reportError(`Error flushing request queue`,e),this.resetFlush()},this))},F_.prototype.reportError=function(e,t){if(P_.error.apply(P_.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){P_.error(e)}};var I_=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},L_=250,R_=function(e,t){if(!G.isArray(e))return e&&t.critical(`record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled.`),[];for(var n=[],r=0;r<e.length;r++)try{var i=new URL(e[r]).origin;if(i===`null`){t.critical(e[r]+` has an opaque origin. Skipping this entry.`);continue}n.push(i)}catch{t.critical(e[r]+` is not a valid origin URL. Skipping this entry.`)}return n},z_=`change`,B_=`click`,V_=`hashchange`,H_=`input`,U_=`load`,W_=`mp_locationchange`,G_=`popstate`,K_=`scrollend`,q_=`scroll`,J_=`select`,Y_=`submit`,X_=`toggle`,Z_=`visibilitychange`,Q_=[`clientX`,`clientY`,`offsetX`,`offsetY`,`pageX`,`pageY`,`screenX`,`screenY`,`x`,`y`],$_=[`mp-include`],ev=[`mp-no-track`],tv=ev.concat([`mp-sensitive`]),nv=[`aria-label`,`aria-labelledby`,`aria-describedby`,`href`,`name`,`role`,`title`,`type`],rv={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},iv={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},av={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},ov=[`onclick`,`onmousedown`,`onmouseup`,`onpointerdown`,`onpointerup`,`ontouchend`,`ontouchstart`],sv=5,q=Ng(`autocapture`);function cv(e){for(var t={},n=lv(e).split(` `),r=0;r<n.length;r++){var i=n[r];i&&(t[i]=!0)}return t}function lv(e){switch(typeof e.className){case`string`:return e.className;case`object`:return e.className.baseVal||e.getAttribute(`class`)||``;default:return``}}function uv(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!_v(e));return e}function dv(e,t,n,r,i,a){var o={$classes:lv(e).split(` `),$tag_name:e.tagName.toLowerCase()},s=e.id;s&&(o.$id=s),wv(e,t,i,a)&&G.each(nv.concat(r),function(t){if(e.hasAttribute(t)&&!n[t]){var r=e.getAttribute(t);Tv(r)&&(o[`$attr-`+t]=r)}});for(var c=1,l=1,u=e;u=uv(u);)c++,u.tagName===e.tagName&&l++;return o.$nth_child=c,o.$nth_of_type=l,o}function fv(e,t){var r=t.allowElementCallback,i=t.allowSelectors||[],a=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],c=t.captureTextContent||!1,l=t.captureExtraAttrs||[],u=t.capturedForHeatMap||!1,d={};G.each(a,function(e){d[e]=!0});var f=null,p=e.target===void 0?e.srcElement:e.target;if(yv(p)&&(p=p.parentNode),Sv(p,e)&&hv(p,e,r,i)&&!gv(p,e,o,s)){for(var m=[p],h=p;h.parentNode&&!vv(h,`body`);)m.push(h.parentNode),h=h.parentNode;var g=[],_,v=!1;if(G.each(m,function(t){var n=wv(t,e,r,i);!d.href&&t.tagName.toLowerCase()===`a`&&(_=t.getAttribute(`href`),_=n&&Tv(_)&&_),gv(t,e,o,s)&&(v=!0),g.push(dv(t,e,d,l,r,i))},this),!v){var y=W.documentElement;if(f={$event_type:e.type,$host:n.location.host,$pathname:n.location.pathname,$elements:g,$el_attr__href:_,$viewportHeight:Math.max(y.clientHeight,n.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,n.innerWidth||0),$pageHeight:W.body.offsetHeight||0,$pageWidth:W.body.offsetWidth||0},G.each(l,function(e){if(!d[e]&&p.hasAttribute(e)){var t=p.getAttribute(e);Tv(t)&&(f[`$el_attr__`+e]=t)}}),c&&(b=pv(p,e,r,i),b&&b.length&&(f.$el_text=b)),e.type===B_&&(G.each(Q_,function(t){t in e&&(f[`$`+t]=e[t])}),u&&(f.$captured_for_heatmap=!0),p=mv(e)),c){var b=pv(p,e,r,i);b&&b.length&&(f.$el_text=b)}if(p){if(!hv(p,e,r,i)||gv(p,e,o,s))return null;var x=dv(p,e,d,l,r,i);f.$target=x,f.$el_classes=x.$classes,G.extend(f,G.strip_empty_properties({$el_id:x.$id,$el_tag_name:x.$tag_name}))}}}return f}function pv(e,t,n,r){var i=``;return wv(e,t,n,r)&&e.childNodes&&e.childNodes.length&&G.each(e.childNodes,function(e){yv(e)&&e.textContent&&(i+=e.textContent.trim().split(/(\s+)/).filter(Tv).join(``).replace(/[\r\n]/g,` `).replace(/[ ]+/g,` `).substring(0,255))}),i.trim()}function mv(e){for(var t=e.target,n=e.composedPath(),r=0;r<n.length;r++){var i=n[r];if(vv(i,`a`)||vv(i,`button`)||vv(i,`input`)||vv(i,`select`)||i.getAttribute&&i.getAttribute(`role`)===`button`){t=i;break}if(i===t)break}return t}function hv(e,t,n,r){if(n)try{if(!n(e,t))return!1}catch(e){return q.critical(`Error while checking element in allowElementCallback`,e),!1}if(!r.length)return!0;for(var i=0;i<r.length;i++){var a=r[i];try{if(e.matches(a))return!0}catch(e){q.critical(`Error while checking selector: `+a,e)}}return!1}function gv(e,t,n,r){var i;if(n)try{if(n(e,t))return!0}catch(e){return q.critical(`Error while checking element in blockElementCallback`,e),!0}if(r&&r.length)for(i=0;i<r.length;i++){var a=r[i];try{if(e.matches(a))return!0}catch(e){q.critical(`Error while checking selector: `+a,e)}}var o=cv(e);for(i=0;i<ev.length;i++)if(o[ev[i]])return!0;return!1}function _v(e){return e&&e.nodeType===1}function vv(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function yv(e){return e&&e.nodeType===3}function bv(){try{return!!W.createElement(`div`).matches}catch{return!1}}function xv(){return typeof WeakSet<`u`}function Sv(e,t){if(!e||vv(e,`html`)||!_v(e))return!1;switch(e.tagName.toLowerCase()){case`form`:return t.type===Y_;case`input`:return[`button`,`submit`].indexOf(e.getAttribute(`type`))===-1?t.type===z_:t.type===B_;case`select`:case`textarea`:return t.type===z_;default:return t.type===B_}}function Cv(e){var t=(e.name||e.id||``).toString().toLowerCase();return!!(typeof t==`string`&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(t.replace(/[^a-zA-Z0-9]/g,``)))}function wv(e,t,n,r){var i;if(!hv(e,t,n,r))return!1;for(var a=e;a.parentNode&&!vv(a,`body`);a=a.parentNode){var o=cv(a);for(i=0;i<tv.length;i++)if(o[tv[i]])return!1}var s=cv(e);for(i=0;i<$_.length;i++)if(s[$_[i]])return!0;if(vv(e,`input`)||vv(e,`select`)||vv(e,`textarea`)||e.getAttribute(`contenteditable`)===`true`)return!1;var c=e.type||``;if(typeof c==`string`)switch(c.toLowerCase()){case`hidden`:return!1;case`password`:return!1}return!Cv(e)}function Tv(e){return!(e===null||G.isUndefined(e)||typeof e==`string`&&(e=e.trim(),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||``).replace(/[- ]/g,``))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))}function Ev(e){var t=`onscrollend`in n,r=Pg(e),i=K_;if(!t){var a=null,o=100;r=Pg(function(){clearTimeout(a),a=setTimeout(e,o)}),i=q_}return{listener:r,eventType:i}}function Dv(e){for(var t=0;t<ov.length;t++)if(e.hasAttribute(ov[t]))return!0;return!1}function Ov(e){var t=e.getAttribute(`role`);return t?rv[t.trim().split(/\s+/)[0].toLowerCase()]:!1}function kv(e){var t=e.tagName.toLowerCase();return!!(t===`button`||t===`input`||t===`select`||t===`textarea`||t===`details`||t===`dialog`||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||Dv(e)||Ov(e)||t===`a`&&e.hasAttribute(`href`)||e.hasAttribute(`tabindex`))}function Av(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(iv[t])return!0;if(kv(e))return!1;for(var n=e.parentElement,r=0;n&&r<sv;){if(kv(n))return!1;if(n.getRootNode&&n.getRootNode()!==W){var i=n.getRootNode();if(i.host&&kv(i.host))return!1}n=n.parentElement,r++}return!!av[t]}function jv(e){return`composedPath`in e?e.composedPath():[]}function Mv(e){var t=jv(e);return t&&t.length>0?t[0]:e.target||e.srcElement}var Nv=`.mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask`,Pv=`data-rr-is-password`,Fv=[`password`,`email`,`tel`,`hidden`];function Iv(e){return e?Array.isArray(e)?e:[e]:[]}function Lv(e){var t={input:{maskingSelector:``,unmaskingSelector:``,maskAll:!0},text:{maskingSelector:``,unmaskingSelector:``,maskAll:!0}},n=e.get_config(`record_mask_input_selector`),r=e.get_config(`record_unmask_input_selector`),i=e.get_config(`record_mask_all_inputs`);t.input.maskingSelector=Iv(n).join(`,`),t.input.unmaskingSelector=Iv(r).join(`,`),i!==void 0&&(t.input.maskAll=i);var a=e.get_config(`record_mask_text_selector`),o=e.get_config(`record_unmask_text_selector`),s=e.get_config(`record_mask_all_text`),c=e.get_config(`record_mask_text_class`),l=Iv(a);if(c){if(c instanceof RegExp)t.text._legacyClassRegex=c;else{var u=`.`+c;l.indexOf(u)===-1&&l.push(u)}}return t.text.maskingSelector=l.join(`,`),t.text.unmaskingSelector=Iv(o).join(`,`),s===void 0&&a!==void 0?t.text.maskAll=!1:s!==void 0&&(t.text.maskAll=s),t}function Rv(e,t){return t?!!e.closest(t):!1}function zv(e,t){var n=(e.getAttribute(`type`)||``).toLowerCase();if(Fv.indexOf(n)!==-1)return!0;var r=(e.getAttribute(`autocomplete`)||``).toLowerCase();return r&&r!==``&&r!==`off`||e.hasAttribute(Pv)||Cv(e)?!0:t.input.maskAll?!Rv(e,t.input.unmaskingSelector):!!(Rv(e,t.input.maskingSelector)||Rv(e,Nv))}function Bv(e,t){return e?t.text._legacyClassRegex&&Gd(e,t.text._legacyClassRegex)?!0:t.text.maskAll?!Rv(e,t.text.unmaskingSelector):!!(Rv(e,t.text.maskingSelector)||Rv(e,Nv)):!1}var Vv=Ng(`network-plugin`);function Hv(e){return Math.round(Date.now()-e.performance.now())}var Uv={initiatorTypes:[`audio`,`beacon`,`body`,`css`,`early-hint`,`embed`,`fetch`,`frame`,`iframe`,`icon`,`image`,`img`,`input`,`link`,`navigation`,`object`,`ping`,`script`,`track`,`video`,`xmlhttprequest`],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function Wv(e){return e.entryType===`navigation`}function Gv(e){return e.entryType===`resource`}function Kv(e,t){for(var n=e.length-1;n>=0;--n)if(t(e[n]))return e[n]}function qv(e,t,n){if(!(t in e)||typeof e[t]!=`function`)return function(){};var r=e[t];return e[t]=n(r),function(){e[t]=r}}var Jv=1048576;function Yv(e){return!e||typeof e!=`string`?e:e.length>Jv?(Vv.error(`Body truncated from `+e.length+` to `+Jv+` characters`),e.substring(0,Jv)+`... [truncated]`):e}function Xv(e,t,n){if(!t.PerformanceObserver)return Vv.error(`PerformanceObserver not supported`),function(){};n.recordInitialRequests&&e({requests:t.performance.getEntries().filter(function(e){return Wv(e)||Gv(e)&&n.initiatorTypes.includes(e.initiatorType)}).map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:`responseStatus`in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:Hv(t)}}),isInitial:!0});var r=new t.PerformanceObserver(function(r){e({requests:r.getEntries().filter(function(e){return Gv(e)&&n.initiatorTypes.includes(e.initiatorType)&&e.initiatorType!==`xmlhttprequest`&&e.initiatorType!==`fetch`}).map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:`responseStatus`in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:Hv(t)}})})});return r.observe({entryTypes:[`navigation`,`resource`]}),function(){r.disconnect()}}function Zv(e,t,n){return!t[e]||t[e].length===0?!1:t[e].includes(n.toLowerCase())}function Qv(e,t,n){return!t[e]||t[e].length===0?!1:t_(n,t[e])}function $v(e){if(e==null)return null;var t;if(typeof e==`string`)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=G.HTTPBuildQuery(e);else if(G.isObject(e))try{t=JSON.stringify(e)}catch{return`Failed to stringify response object`}else return`Cannot read body of type `+typeof e;return Yv(t)}function ey(e){return new Promise(function(t){var n=setTimeout(function(){t(`Timeout while trying to read body`)},500);try{e.clone().text().then(function(e){clearTimeout(n),t(Yv(e))},function(e){clearTimeout(n),t(`Failed to read body: `+String(e))})}catch(e){clearTimeout(n),t(`Failed to read body: `+String(e))}})}function ty(e,t,n,r,i,a){if(a===void 0&&(a=0),a>10)return Vv.error(`Cannot find performance entry`),Promise.resolve(null);var o=Kv(e.performance.getEntriesByName(n),function(e){return Gv(e)&&e.initiatorType===t&&(!r||e.startTime>=r)&&(!i||e.startTime<=i)});return o?Promise.resolve(o):new Promise(function(e){setTimeout(e,50*a)}).then(function(){return ty(e,t,n,r,i,a+1)})}function ny(e,t,n){if(!n.initiatorTypes.includes(`xmlhttprequest`))return function(){};var r=qv(t.XMLHttpRequest.prototype,`open`,function(r){return function(i,a,o,s,c){o===void 0&&(o=!0);var l=this,u=new Request(a,{method:i}),d={},f,p,m={},h=l.setRequestHeader.bind(l);l.setRequestHeader=function(e,t){return Zv(`request`,n.recordHeaders,e)&&(m[e]=t),h(e,t)},d.requestHeaders=m;var g=l.send.bind(l);l.send=function(e){return Qv(`request`,n.recordBodyUrls,u.url)&&(d.requestBody=$v(e)),f=t.performance.now(),g(e)},l.addEventListener(`readystatechange`,function(){if(l.readyState===l.DONE){p=t.performance.now();var r={},i=l.getAllResponseHeaders();i&&i.trim().split(/[\r\n]+/).forEach(function(e){if(e){var t=e.indexOf(`: `);if(t!==-1){var i=e.substring(0,t),a=e.substring(t+2);i&&Zv(`response`,n.recordHeaders,i)&&(r[i]=a)}}}),d.responseHeaders=r,Qv(`response`,n.recordBodyUrls,u.url)&&(d.responseBody=$v(l.response)),ty(t,`xmlhttprequest`,u.url,f,p).then(function(n){if(!n){Vv.error(`Failed to get performance entry for XHR request to `+u.url);return}e({requests:[{url:n.name,method:u.method,initiatorType:n.initiatorType,status:l.status,startTime:Math.round(n.startTime),endTime:Math.round(n.responseEnd),timeOrigin:Hv(t),requestHeaders:d.requestHeaders,requestBody:d.requestBody,responseHeaders:d.responseHeaders,responseBody:d.responseBody}]})}).catch(function(e){Vv.error(`Error recording XHR request to `+u.url+`: `+String(e))})}}),r.call(l,i,a,o,s,c)}});return function(){r()}}function ry(e,t){if(typeof Request<`u`&&e instanceof Request){var n=e.clone();return t?new Request(n,t):n}return new Request(e,t)}function iy(e,t,n){if(!n.initiatorTypes.includes(`fetch`))return function(){};var r=qv(t,`fetch`,function(r){return function(){var i=ry(arguments[0],arguments[1]),a,o={},s,c,l,u=Promise.resolve(void 0),d,f=new Promise(function(e){d=e});try{var p={};i.headers.forEach(function(e,t){Zv(`request`,n.recordHeaders,t)&&(p[t]=e)}),o.requestHeaders=p,Qv(`request`,n.recordBodyUrls,i.url)&&(u=ey(i).then(function(e){o.requestBody=e})),s=t.performance.now(),l=r.apply(t,arguments).then(function(e){a=e,c=t.performance.now();var r={};return a.headers.forEach(function(e,t){Zv(`response`,n.recordHeaders,t)&&(r[t]=e)}),o.responseHeaders=r,Qv(`response`,n.recordBodyUrls,i.url)?ey(a).then(function(e){o.responseBody=e,d()}):d(),a})}catch(e){l=Promise.reject(e)}return Promise.all([u,f,l]).then(function(){return ty(t,`fetch`,i.url,s,c)}).then(function(n){if(!n){Vv.error(`Failed to get performance entry for fetch request to `+i.url);return}e({requests:[{url:n.name,method:i.method,initiatorType:n.initiatorType,status:a?a.status:void 0,startTime:Math.round(n.startTime),endTime:Math.round(n.responseEnd),timeOrigin:Hv(t),requestHeaders:o.requestHeaders,requestBody:o.requestBody,responseHeaders:o.responseHeaders,responseBody:o.responseBody}]})}).catch(function(e){Vv.error(`Error recording fetch request to `+i.url+`: `+String(e))}),l}});return function(){r()}}function ay(e,t,n){if(!(`performance`in t))return function(){};var r=Object.assign({},Uv.recordHeaders,n.recordHeaders||{}),i=Object.assign({},Uv.recordBodyUrls,n.recordBodyUrls||{});n=Object.assign({},n,{recordHeaders:r,recordBodyUrls:i});var a=Object.assign({},Uv,n),o=function(t){var n=t.requests.filter(function(e){return!t_(e.url,a.ignoreRequestUrls||[])&&!a.ignoreRequestFn(e)});(n.length>0||t.isInitial)&&e(Object.assign({},t,{requests:n}))},s=Xv(o,t,a),c=ny(o,t,a),l=iy(o,t,a);return function(){s(),c(),l()}}var oy=`rrweb/network@1.mp`,sy=function(e){return{name:oy,observer:ay,options:e}},cy=Ng(`recorder`),ly=n.CompressionStream,uy={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},dy=new Set([L.MouseMove,L.MouseInteraction,L.Scroll,L.ViewportResize,L.Input,L.TouchMove,L.MediaInteraction,L.Drag,L.Selection]);function fy(e){return e.type===I.IncrementalSnapshot&&dy.has(e.data.source)}var py=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||e_,this._onMaxLengthReached=e.onMaxLengthReached||e_,this._onBatchSent=e.onBatchSent||e_,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=pg,this.recordMinMs=0,this._recordMinMsCheckStart=null;var t=zg(e.sharedLockStorage||Ug(),!0)&&!this.getConfig(`disable_persistence`);this.batcherKey=`__mprec_`+this.getConfig(`name`)+`_`+this.getConfig(`token`)+`_`+this.replayId,this.queueStorage=new a_(o_,s_,l_),this.batcher=new F_(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:uy,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:L_,sharedLockTimeoutMS:1e4})};py.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property(`$device_id`);t&&(e.$device_id=t);var n=this._mixpanel.get_property(`$user_id`);return n&&(e.$user_id=n),e},py.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError(`Error initializing IndexedDB storage for unloading persisted data.`)}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},py.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},py.prototype.get_config=function(e){return this.getConfig(e)},py.prototype.startRecording=function(e){if(this._rrwebRecord===null){this.reportError(`rrweb record function not provided. `);return}if(this._stopRecording!==null){cy.log(`Recording already in progress, skipping startRecording.`);return}this.recordMaxMs=this.getConfig(`record_max_ms`),this.recordMaxMs>pg&&(this.recordMaxMs=pg,cy.critical(`record_max_ms cannot be greater than `+pg+`ms. Capping value.`)),this.maxExpires||=new Date().getTime()+this.recordMaxMs,this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=G.info.currentUrl(),this.replayStartUrl=G.info.currentUrl()),e||this.recordMinMs>0?(this.batcher.stop(),this._recordMinMsCheckStart=null):this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig(`record_idle_timeout_ms`);this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=new Date().getTime()+e}.bind(this);t();var n=this.getConfig(`record_block_selector`);(n===``||n===null)&&(n=void 0);var r=Lv(this._mixpanel),i=[];if(this.getConfig(`record_network`)){var a=this.getConfig(`record_network_options`)||{},o=(a.ignoreRequestUrls||[]).slice();o.push(this._getApiRoute()),a.ignoreRequestUrls=o,i.push(sy(a))}this.getConfig(`record_console`)&&i.push(Yh({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var s=R_(this.getConfig(`record_allowed_iframe_origins`),cy);try{this._stopRecording=this._rrwebRecord({emit:function(e){if(this.idleExpires&&this.idleExpires<e.timestamp){this._onIdleTimeout();return}this._recordMinMsCheckStart===null&&(this._recordMinMsCheckStart=e.timestamp),fy(e)&&(this.batcher.stopped&&e.timestamp-this._recordMinMsCheckStart>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(this.lastEventTimestamp===null||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp)}.bind(this),blockClass:this.getConfig(`record_block_class`),blockSelector:n,collectFonts:this.getConfig(`record_collect_fonts`),dataURLOptions:{type:`image/webp`,quality:.6},maskAllInputs:!0,maskTextSelector:`*`,maskInputFn:this._getMaskFn(zv,r),maskTextFn:this._getMaskFn(Bv,r),recordCrossOriginIframes:s.length>0,allowedIframeOrigins:s,recordCanvas:this.getConfig(`record_canvas`),sampling:{canvas:15},plugins:i})}catch(e){this.reportError(`Unexpected error when starting rrweb recording.`,e)}if(typeof this._stopRecording!=`function`){this.reportError(`rrweb failed to start, skipping this recording.`),this._stopRecording=null,this.stopRecording();return}var c=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),c)},py.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError(`Error with rrweb stopRecording`,e)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},py.prototype.isRrwebStopped=function(){return this._stopRecording===null},py.prototype.flushEventsWithOptOut=function(e,t,n){var r=function(e){e===0&&(this.stopRecording(),n({error:`Tracking has been opted out, stopping recording.`}))}.bind(this);this._flushEvents(e,t,n,r)},py.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError(`Error getting tab ID for serialization `,t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},py.deserialize=function(e,t){return new py(G.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},py.prototype._getApiRoute=function(){return this.getConfig(`api_routes`).record},py.prototype._sendRequest=function(e,t,r,i){var a=function(t,n){t.status===200&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=G.info.currentUrl()),this._onBatchSent(),i({status:0,httpStatusCode:t.status,responseBody:n,retryAfter:t.headers.get(`Retry-After`)})}.bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host(`record`)||this.getConfig(`api_host`);n.fetch(o+`/`+this._getApiRoute()+`?`+new URLSearchParams(t),{method:`POST`,headers:{Authorization:`Basic `+btoa(this.getConfig(`token`)+`:`),"Content-Type":`application/octet-stream`},body:r}).then(function(e){e.json().then(function(t){a(e,t)}).catch(function(e){i({error:e})})}).catch(function(e){i({error:e,httpStatusCode:0})})},py.prototype._flushEvents=h_(function(e,t,n){var r=e.length;if(r>0){for(var a=this.replayId,o=1/0,s=-1/0,c=!1,l=0;l<r;l++)o=Math.min(o,e[l].timestamp),s=Math.max(s,e[l].timestamp),e[l].type===I.FullSnapshot&&(c=!0);if(this.seqNo===0){if(!c){n({error:`First batch does not contain a full snapshot. Aborting recording.`}),this.stopRecording(!0);return}this.replayStartTime=o}else this.replayStartTime||=(this.reportError(`Replay start time not set but seqNo is not 0. Using current batch start time as a fallback.`),o);var u=s-this.replayStartTime,d={$current_url:this.batchStartUrl,$lib_version:i.LIB_VERSION,batch_start_time:o/1e3,mp_lib:`web`,replay_id:a,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},f=JSON.stringify(e);Object.assign(d,this.getUserIdInfo());var p=function(){d.format=`body`,this._sendRequest(a,d,f,n)}.bind(this);if(i_(Tg,Sg.vendor,Cg)){var m=new Blob([f],{type:`application/json`}).stream().pipeThrough(new ly(`gzip`));new Response(m).blob().then(function(e){d.format=`gzip`,this._sendRequest(a,d,e,n)}.bind(this),function(e){this.reportError(`Error compressing session recording batch; sending uncompressed`,e),p()}.bind(this))}else p()}}),py.prototype.reportError=function(e,t){cy.error.apply(cy.error,arguments);try{!t&&!(e instanceof Error)&&(e=Error(e)),this.getConfig(`error_reporter`)(e,t)}catch(e){cy.error(e)}},py.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},py.prototype._getRecordMinMs=function(){var e=this.getConfig(`record_min_ms`);return e>mg?(cy.critical(`record_min_ms cannot be greater than `+mg+`ms. Capping value.`),mg):e},py.prototype._getMaskFn=function(e,t){return function(n,r){if(!n.trim().length)return``;var i=!0;try{i=e(r,t)}catch(e){this.reportError(`Error checking if text should be masked, defaulting to masked`,e)}if(i){var a=Math.min(n.length,1e4);return`*`.repeat(a)}return n}.bind(this)};var my=function(e){this.idb=new a_(o_,c_,l_),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};my.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config(`disable_persistence`)},my.prototype.handleError=function(e){this.errorReporter(`IndexedDB error: `,e)},my.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return U.resolve();var t=e.tabId;return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):U.resolve()},my.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return I_(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):U.resolve(null)},my.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},my.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},my.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):U.resolve()},my.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var t=e.filter(function(e){return I_(e)}).map(function(e){return py.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then(function(){return this.idb.removeItem(e.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return U.all(t)}.bind(this)).catch(this.handleError.bind(this)):U.resolve([])};var hy=Ng(`recorder`),gy=function(e,t,n){this.mixpanelInstance=e,this.rrwebRecord=t||bd,this.sharedLockStorage=n,this.recordingRegistry=new my({mixpanelInstance:this.mixpanelInstance,errorReporter:hy.error,sharedLockStorage:n}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};gy.prototype.startRecording=function(e){if(e||={},this.activeRecording&&!this.activeRecording.isRrwebStopped()){hy.log(`Recording already in progress, skipping startRecording.`);return}var t=function(){hy.log(`Idle timeout reached, restarting recording.`),this.resetRecording()}.bind(this),n=function(){hy.log(`Max recording length reached, stopping recording.`),this.resetRecording()}.bind(this),r=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:r,onIdleTimeout:t,onMaxLengthReached:n,replayId:G.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return this.activeRecording=e.activeSerializedRecording?py.deserialize(e.activeSerializedRecording,i):new py(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},gy.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},gy.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},gy.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var n=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),n}return U.resolve()},gy.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),U.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(hy.log(`No resumable recording found.`),null)}.bind(this))},gy.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},gy.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},gy.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(gy.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),n[o]=gy;function _y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var vy={exports:{}},yy=vy.exports,by;function xy(){return by?vy.exports:(by=1,(function(e,t){(function(t,n){e.exports=n()})(yy,function(){Array.isArray||(Array.isArray=function(e){return Object.prototype.toString.call(e)===`[object Array]`});function e(e){for(var t=[],n=0,r=e.length;n<r;n++)t.indexOf(e[n])===-1&&t.push(e[n]);return t}var t={},n={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,n){return n===void 0?e<t:e<t&&t<n},"<=":function(e,t,n){return n===void 0?e<=t:e<=t&&t<=n},"!!":function(e){return t.truthy(e)},"!":function(e){return!t.truthy(e)},"%":function(e,t){return e%t},log:function(e){return e},in:function(e,t){return!t||t.indexOf===void 0?!1:t.indexOf(e)!==-1},cat:function(){return Array.prototype.join.call(arguments,``)},substr:function(e,t,n){if(n<0){var r=String(e).substr(t);return r.substr(0,r.length+n)}return String(e).substr(t,n)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return t===void 0?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var n=t===void 0?null:t,r=this;if(e===void 0||e===``||e===null)return r;for(var i=String(e).split(`.`),a=0;a<i.length;a++)if(r==null||(r=r[i[a]],r===void 0))return n;return r},missing:function(){for(var e=[],n=Array.isArray(arguments[0])?arguments[0]:arguments,r=0;r<n.length;r++){var i=n[r],a=t.apply({var:i},this);(a===null||a===``)&&e.push(i)}return e},missing_some:function(e,n){var r=t.apply({missing:n},this);return n.length-r.length>=e?[]:r}};return t.is_logic=function(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).length===1},t.truthy=function(e){return Array.isArray(e)&&e.length===0?!1:!!e},t.get_operator=function(e){return Object.keys(e)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(e,r){if(Array.isArray(e))return e.map(function(e){return t.apply(e,r)});if(!t.is_logic(e))return e;var i=t.get_operator(e),a=e[i],o,s,c,l,u;if(Array.isArray(a)||(a=[a]),i===`if`||i==`?:`){for(o=0;o<a.length-1;o+=2)if(t.truthy(t.apply(a[o],r)))return t.apply(a[o+1],r);return a.length===o+1?t.apply(a[o],r):null}if(i===`and`){for(o=0;o<a.length;o+=1)if(s=t.apply(a[o],r),!t.truthy(s))return s;return s}if(i===`or`){for(o=0;o<a.length;o+=1)if(s=t.apply(a[o],r),t.truthy(s))return s;return s}if(i===`filter`)return l=t.apply(a[0],r),c=a[1],Array.isArray(l)?l.filter(function(e){return t.truthy(t.apply(c,e))}):[];if(i===`map`)return l=t.apply(a[0],r),c=a[1],Array.isArray(l)?l.map(function(e){return t.apply(c,e)}):[];if(i===`reduce`)return l=t.apply(a[0],r),c=a[1],u=a[2]===void 0?null:t.apply(a[2],r),Array.isArray(l)?l.reduce(function(e,n){return t.apply(c,{current:n,accumulator:e})},u):u;if(i===`all`){if(l=t.apply(a[0],r),c=a[1],!Array.isArray(l)||!l.length)return!1;for(o=0;o<l.length;o+=1)if(!t.truthy(t.apply(c,l[o])))return!1;return!0}if(i===`none`){if(l=t.apply(a[0],r),c=a[1],!Array.isArray(l)||!l.length)return!0;for(o=0;o<l.length;o+=1)if(t.truthy(t.apply(c,l[o])))return!1;return!0}if(i===`some`){if(l=t.apply(a[0],r),c=a[1],!Array.isArray(l)||!l.length)return!1;for(o=0;o<l.length;o+=1)if(t.truthy(t.apply(c,l[o])))return!0;return!1}if(a=a.map(function(e){return t.apply(e,r)}),n.hasOwnProperty(i)&&typeof n[i]==`function`)return n[i].apply(r,a);if(i.indexOf(`.`)>0){var d=String(i).split(`.`),f=n;for(o=0;o<d.length;o++){if(!f.hasOwnProperty(d[o]))throw Error(`Unrecognized operation `+i+` (failed at `+d.slice(0,o+1).join(`.`)+`)`);f=f[d[o]]}return f.apply(r,a)}throw Error(`Unrecognized operation `+i)},t.uses_data=function(n){var r=[];if(t.is_logic(n)){var i=t.get_operator(n),a=n[i];Array.isArray(a)||(a=[a]),i===`var`?r.push(a[0]):a.forEach(function(e){r.push.apply(r,t.uses_data(e))})}return e(r)},t.add_operation=function(e,t){n[e]=t},t.rm_operation=function(e){delete n[e]},t.rule_like=function(e,n){if(n===e||n===`@`)return!0;if(n===`number`)return typeof e==`number`;if(n===`string`)return typeof e==`string`;if(n===`array`)return Array.isArray(e)&&!t.is_logic(e);if(t.is_logic(n)){if(t.is_logic(e)){var r=t.get_operator(n),i=t.get_operator(e);if(r===`@`||r===i)return t.rule_like(t.get_values(e,!1),t.get_values(n,!1))}return!1}if(Array.isArray(n)){if(Array.isArray(e)){if(n.length!==e.length)return!1;for(var a=0;a<n.length;a+=1)if(!t.rule_like(e[a],n[a]))return!1;return!0}return!1}return!1},t})})(vy),vy.exports)}var Sy=_y(xy()),Cy=/^(\d{4})-(\d{2})-(\d{2})[Tt](\d{2}):\d{2}:\d{2}(\.\d+)?([Zz]|[+-]\d{2}:\d{2})$/,wy=3,Ty=256,Ey=0x8000000000000000,Dy=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function Oy(e){e.add_operation(`semver_compare`,ky),e.add_operation(`datetime_compare`,Fy)}function ky(){var e=Iy(arguments);if(!e||typeof e.actual!=`string`||typeof e.target!=`string`||e.actual.length>Ty||e.target.length>Ty)return!1;var t=Ry(e.actual),n=Ry(e.target);return!Dy.test(t)||!Dy.test(n)?!1:Ly(Py(t,n),e.symbol)}function Ay(e){var t=e.indexOf(`+`);t!==-1&&(e=e.slice(0,t));var n=e.indexOf(`-`);return n===-1?{core:e.split(`.`),prerelease:[]}:{core:e.slice(0,n).split(`.`),prerelease:e.slice(n+1).split(`.`)}}function jy(e){return/^[0-9]+$/.test(e)}function My(e,t){return e.length===t.length?e<t?-1:+(e>t):e.length<t.length?-1:1}function Ny(e,t){var n=jy(e),r=jy(t);return n&&r?My(e,t):n?-1:r?1:e<t?-1:+(e>t)}function Py(e,t){for(var n=Ay(e),r=Ay(t),i=0,a;i<n.core.length;i++)if(a=My(n.core[i],r.core[i]),a!==0)return a;if(!n.prerelease.length&&!r.prerelease.length)return 0;if(!n.prerelease.length)return 1;if(!r.prerelease.length)return-1;var o=Math.min(n.prerelease.length,r.prerelease.length);for(i=0;i<o;i++)if(a=Ny(n.prerelease[i],r.prerelease[i]),a!==0)return a;return n.prerelease.length===r.prerelease.length?0:n.prerelease.length<r.prerelease.length?-1:1}function Fy(){var e=Iy(arguments);if(!e)return!1;var t=By(e.actual),n=Vy(e.target);return t===null||n===null?!1:Ly(t-n,e.symbol)}function Iy(e){return e.length===3?{actual:e[0],symbol:e[1],target:e[2]}:null}function Ly(e,t){switch(t){case`===`:return e===0;case`!==`:return e!==0;case`<`:return e<0;case`<=`:return e<=0;case`>`:return e>0;case`>=`:return e>=0;default:return!1}}function Ry(e){for(var t=e.trim().replace(/^[vV]/,``),n=t.length,r=[`-`,`+`],i=0;i<r.length;i++){var a=t.indexOf(r[i]);a!==-1&&a<n&&(n=a)}for(var o=t.slice(0,n),s=t.slice(n),c=o.split(`.`);c.length<wy;)c.push(`0`);return c.join(`.`)+s}function zy(e,t,n,r){if(r>23)return!1;var i=new Date;return i.setUTCFullYear(e,t-1,n),i.getUTCFullYear()===e&&i.getUTCMonth()===t-1&&i.getUTCDate()===n}function By(e){if(typeof e!=`string`)return null;var t=e.trim().toUpperCase(),n=Cy.exec(t);if(!n||!zy(Number(n[1]),Number(n[2]),Number(n[3]),Number(n[4])))return null;var r=new Date(t).getTime();return isNaN(r)?null:Math.floor(r/1e3)}function Vy(e){return typeof e!=`number`||!isFinite(e)||e>=Ey||e<=-0x8000000000000000?null:Hy(e/1e3)}function Hy(e){return e<0?Math.ceil(e):Math.floor(e)}Oy(Sy);var Uy=function(e,t,n){if(e!==n.event_name)return{matches:!1};var r=n.property_filters,i=!0;if(r&&!G.isEmptyObject(r))try{i=Sy.apply(r,t||{})}catch(e){return{matches:!1,error:e.toString()}}return{matches:i}},Wy={};Wy.eventMatchesCriteria=Uy,n[a]=Promise.resolve(Wy);var Gy=30,Ky=1e3,qy=4;function Jy(){this.clicks=[]}Jy.prototype.isRageClick=function(e,t){t||={};var n=t.threshold_px||Gy,r=t.timeout_ms||Ky,i=t.click_count||qy;if(t.interactive_elements_only){var a=Mv(e);if(!a||Av(a))return!1}var o=Date.now(),s=e.pageX,c=e.pageY,l=this.clicks[this.clicks.length-1];if(l&&o-l.timestamp<r&&Math.sqrt((s-l.x)**2+(c-l.y)**2)<n){if(this.clicks.push({x:s,y:c,timestamp:o}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:s,y:c,timestamp:o}];return!1};function Yy(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}Yy.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return Mv(e)},Yy.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=jv(e),n=0;n<t.length;n++){var r=t[n];r&&r.shadowRoot&&this.observeShadowRoot(r.shadowRoot)}},Yy.prototype.observeShadowRoot=function(e){if(this.observedShadowRoots&&!this.observedShadowRoots.has(e)){var t=this;try{this.observedShadowRoots.add(e);var n=new window.MutationObserver(function(){t.changeCallback()});n.observe(e,this.observerConfig),this.shadowObservers.push(n)}catch(e){q.critical(`Error while observing shadow root`,e)}}},Yy.prototype.start=function(){if(!this.observedShadowRoots){if(!xv()){q.critical(`Shadow DOM observation unavailable: WeakSet not supported`);return}this.observedShadowRoots=new WeakSet}},Yy.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){q.critical(`Error while disconnecting shadow DOM observer`,e)}this.shadowObservers=[],this.observedShadowRoots=null}};var Xy=500,Zy=[z_,H_,Y_,J_,X_],Qy=[K_],$y=[V_],eb={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:[`style`,`class`,`hidden`,`checked`,`selected`,`value`,`display`,`visibility`]};function tb(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}tb.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||=e.target||e.srcElement,!t||Av(t)?!1:(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},tb.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var n=this.addClick(e);return n&&this.triggerProcessing(t),n},tb.prototype.getDeadClicks=function(e){if(this.pendingClicks.length===0)return[];var t=e.timeout_ms,n=Date.now(),r=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],a=0;a<r.length;a++){var o=r[a];n-o.timestamp>=t?this.hasChangesAfter(o.timestamp)||i.push(o):this.pendingClicks.push(o)}return i},tb.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},tb.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},tb.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},tb.prototype.processRecursively=function(e){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var t=e.timeout_ms,n=this;this.processingTimeout=setTimeout(function(){if(n.processingActive){for(var t=n.getDeadClicks(e),r=0;r<t.length;r++)n.onDeadClickCallback(t[r].event);n.pendingClicks.length>0?n.processRecursively(e):n.processingActive=!1}},t)},tb.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;Zy.forEach(function(t){var n=function(){e.recordChangeEvent()};document.addEventListener(t,n,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:n,options:{capture:!0,passive:!0}})}),$y.forEach(function(t){var n=function(){e.recordChangeEvent()};window.addEventListener(t,n),e.eventListeners.push({target:window,event:t,handler:n})}),Qy.forEach(function(t){var n=function(){e.recordChangeEvent()};window.addEventListener(t,n,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:n,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener(`selectionchange`,t),e.eventListeners.push({target:document,event:`selectionchange`,handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,eb)}catch(e){q.critical(`Error while setting up mutation observer`,e)}if(window.customElements)try{this.shadowDOMObserver=new Yy(function(){e.recordChangeEvent()},eb),this.shadowDOMObserver.start()}catch(e){q.critical(`Error while setting up shadow DOM observer`,e),this.shadowDOMObserver=null}}},tb.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&=(clearTimeout(this.processingTimeout),null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){q.critical(`Error while removing event listener`,e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){q.critical(`Error while disconnecting mutation observer`,e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){q.critical(`Error while stopping shadow DOM observer`,e)}this.shadowDOMObserver=null}}};var nb=`autocapture`,rb=`track_pageview`,ib=`full-url`,ab=`url-with-path-and-query-string`,ob=`url-with-path`,sb=`allow_element_callback`,cb=`allow_selectors`,lb=`allow_url_regexes`,ub=`block_attrs`,db=`block_element_callback`,fb=`block_selectors`,pb=`block_url_regexes`,mb=`capture_extra_attrs`,hb=`capture_text_content`,gb=`scroll_capture_all`,_b=`scroll_depth_percent_checkpoints`,vb=`click`,yb=`dead_click`,bb=`input`,xb=`pageview`,Sb=`rage_click`,Cb=`scroll`,wb=`page_leave`,Tb=`submit`,Eb={};Eb[cb]=[],Eb[lb]=[],Eb[ub]=[],Eb[db]=null,Eb[fb]=[],Eb[pb]=[],Eb[mb]=[],Eb[hb]=!1,Eb[gb]=!1,Eb[_b]=[25,50,75,100],Eb[vb]=!0,Eb[yb]=!0,Eb[bb]=!0,Eb[xb]=ib,Eb[Sb]=!0,Eb[Cb]=!0,Eb[wb]=!1,Eb[Tb]=!0;var Db={$mp_autocapture:!0},Ob=`$mp_click`,kb=`$mp_dead_click`,Ab=`$mp_input_change`,jb=`$mp_rage_click`,Mb=`$mp_scroll`,Nb=`$mp_submit`,Pb=`$mp_page_leave`,Fb=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};Fb.prototype.init=function(){if(!bv()){q.critical(`Autocapture unavailable: missing required DOM APIs`);return}this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()},Fb.prototype.getFullConfig=function(){var e=this.mp.get_config(nb);return e?G.isObject(e)?G.extend({},Eb,e):Eb:{}},Fb.prototype.getConfig=function(e){return this.getFullConfig()[e]},Fb.prototype.currentUrlBlocked=function(){var e=G.info.currentUrl(),t=this.getConfig(lb)||[];if(t.length)try{return!t_(e,t)}catch(e){return q.critical(`Error while checking block URL regexes: `,e),!0}var n=this.getConfig(pb)||[];if(!n||!n.length)return!1;try{return t_(e,n)}catch(e){return q.critical(`Error while checking block URL regexes: `,e),!0}},Fb.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(nb)?this.getConfig(xb):this.mp.get_config(rb)},Fb.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var n=this.mp.is_recording_heatmap_data()&&(t===Ob&&!this.getConfig(vb)||t===jb&&!this._getClickTrackingConfig(Sb)||t===kb&&!this._getClickTrackingConfig(yb)),r=fv(e,{allowElementCallback:this.getConfig(sb),allowSelectors:this.getConfig(cb),blockAttrs:this.getConfig(ub),blockElementCallback:this.getConfig(db),blockSelectors:this.getConfig(fb),captureExtraAttrs:this.getConfig(mb),captureTextContent:this.getConfig(hb),capturedForHeatMap:n});r&&(G.extend(r,Db),this.mp.track(t,r))}},Fb.prototype.initPageListeners=function(){if(n.removeEventListener(G_,this.listenerPopstate),n.removeEventListener(V_,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(wb)||this.mp.get_config(`record_heatmap_data`)){this.listenerPopstate=function(){n.dispatchEvent(new Event(W_))},this.listenerHashchange=function(){n.dispatchEvent(new Event(W_))},n.addEventListener(G_,this.listenerPopstate),n.addEventListener(V_,this.listenerHashchange);var e=n.history.pushState;typeof e==`function`&&(n.history.pushState=function(t,r,i){e.call(n.history,t,r,i),n.dispatchEvent(new Event(W_))});var t=n.history.replaceState;typeof t==`function`&&(n.history.replaceState=function(e,r,i){t.call(n.history,e,r,i),n.dispatchEvent(new Event(W_))})}},Fb.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?t===!0?{}:typeof t==`object`?t:{}:null},Fb.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(wb)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var i=Math.max(W.documentElement.clientHeight,n.innerHeight||0),a=Math.round(Math.max(this.maxScrollViewDepth-i,0)/(r-i)*100),o=Math.round(i/r*100);r<=i&&(a=100,o=100);var s=G.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:a,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||G.info.currentUrl(),$viewportHeight:i,$viewportWidth:Math.max(W.documentElement.clientWidth,n.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},Db);this.mp.track(Pb,s,{transport:`sendBeacon`})}},Fb.prototype._initScrollDepthTracking=function(){if(n.removeEventListener(q_,this.listenerScrollDepth),n.removeEventListener(K_,this.listenerScrollDepth),this.mp.get_config(`record_heatmap_data`)){q.log(`Initializing scroll depth tracking`),this.maxScrollViewDepth=Math.max(W.documentElement.clientHeight,n.innerHeight||0);var e=Ev(function(){if(!this.currentUrlBlocked()){var e=Math.max(W.documentElement.clientHeight,n.innerHeight||0)+n.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=W.body.scrollHeight}}.bind(this));this.listenerScrollDepth=e.listener,n.addEventListener(e.eventType,this.listenerScrollDepth)}},Fb.prototype.initClickTracking=function(){n.removeEventListener(B_,this.listenerClick,!0),(this.getConfig(vb)||this.mp.get_config(`record_heatmap_data`))&&(q.log(`Initializing click tracking`),this.listenerClick=function(e){(this.getConfig(vb)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,Ob)}.bind(this),n.addEventListener(B_,this.listenerClick,!0))},Fb.prototype.initDeadClickTracking=function(){if(!this._getClickTrackingConfig(yb)&&!this.mp.get_config(`record_heatmap_data`)){this.stopDeadClickTracking();return}q.log(`Initializing dead click tracking`),this._deadClickTracker||(this._deadClickTracker=new tb(function(e){this.trackDomEvent(e,kb)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(yb);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var n=t||{};n.timeout_ms||=Xy,this._deadClickTracker.trackClick(e,n)}}.bind(this),n.addEventListener(B_,this.listenerDeadClick,!0))},Fb.prototype.initInputTracking=function(){n.removeEventListener(z_,this.listenerChange,!0),this.getConfig(bb)&&(q.log(`Initializing input tracking`),this.listenerChange=function(e){this.getConfig(bb)&&this.trackDomEvent(e,Ab)}.bind(this),n.addEventListener(z_,this.listenerChange,!0))},Fb.prototype.initPageviewTracking=function(){if(n.removeEventListener(W_,this.listenerLocationchange),this.pageviewTrackingConfig()||this.mp.get_config(`record_heatmap_data`)){q.log(`Initializing pageview tracking`);var e=``,t=!1;(this.pageviewTrackingConfig()||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&(t=this.mp.track_pageview(Db)),t&&(e=G.info.currentUrl()),this.listenerLocationchange=Pg(function(){if(!this.currentUrlBlocked()){var t=G.info.currentUrl(),n=!1,r=t.split(`#`)[0].split(`?`)[0]!==e.split(`#`)[0].split(`?`)[0],i=this.pageviewTrackingConfig();!i&&this.mp.is_recording_heatmap_data()&&(i=ib),i===ib?n=t!==e:i===ab?n=t.split(`#`)[0]!==e.split(`#`)[0]:i===ob&&(n=r),n&&(this.mp.track_pageview(Db)&&(e=t),r&&(this.lastScrollCheckpoint=0,q.log(`Path change: re-initializing scroll depth checkpoints`)))}}.bind(this)),n.addEventListener(W_,this.listenerLocationchange)}},Fb.prototype.initRageClickTracking=function(){n.removeEventListener(B_,this.listenerRageClick,!0),(this._getClickTrackingConfig(Sb)||this.mp.get_config(`record_heatmap_data`))&&(q.log(`Initializing rage click tracking`),this._rageClickTracker||=new Jy,this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(Sb);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,jb))}.bind(this),n.addEventListener(B_,this.listenerRageClick,!0))},Fb.prototype.initScrollTracking=function(){if(n.removeEventListener(K_,this.listenerScroll),n.removeEventListener(q_,this.listenerScroll),this.getConfig(Cb)){q.log(`Initializing scroll tracking`),this.lastScrollCheckpoint=0;var e=Ev(function(){if(this.getConfig(Cb)&&!this.currentUrlBlocked()){var e=this.getConfig(gb),t=(this.getConfig(_b)||[]).slice().sort(function(e,t){return e-t}),r=n.scrollY,i=G.extend({$scroll_top:r},Db);try{var a=W.body.scrollHeight,o=Math.round(r/(a-n.innerHeight)*100);if(i.$scroll_height=a,i.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var c=t[s];o>=c&&this.lastScrollCheckpoint<c&&(i.$scroll_checkpoint=c,this.lastScrollCheckpoint=c,e=!0)}}catch(e){q.critical(`Error while calculating scroll percentage`,e)}e&&this.mp.track(Mb,i)}}.bind(this));this.listenerScroll=e.listener,n.addEventListener(e.eventType,this.listenerScroll)}},Fb.prototype.initSubmitTracking=function(){n.removeEventListener(Y_,this.listenerSubmit,!0),this.getConfig(Tb)&&(q.log(`Initializing submit tracking`),this.listenerSubmit=function(e){this.getConfig(Tb)&&this.trackDomEvent(e,Nb)}.bind(this),n.addEventListener(Y_,this.listenerSubmit,!0))},Fb.prototype.initPageLeaveTracking=function(){if(W.removeEventListener(Z_,this.listenerPageLeaveVisibilitychange),n.removeEventListener(W_,this.listenerPageLeaveLocationchange),n.removeEventListener(U_,this.listenerPageLoad),this.getConfig(wb)||this.mp.get_config(`record_heatmap_data`)){q.log(`Initializing page visibility tracking.`),this._initScrollDepthTracking();var e=G.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=W.body.scrollHeight}.bind(this),n.addEventListener(U_,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Pg(function(t){if(!this.currentUrlBlocked()){var r=G.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(W.documentElement.clientHeight,n.innerHeight||0),this.previousScrollHeight=W.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),n.addEventListener(W_,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){W.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),W.addEventListener(Z_,this.listenerPageLeaveVisibilitychange)}},Fb.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&=(n.removeEventListener(B_,this.listenerDeadClick,!0),null),this._deadClickTracker&&=(this._deadClickTracker.stopTracking(),null)},Fg(Fb);var Ib=function(e,t){return n[a]&&typeof n[a].then==`function`||(n[a]=new Promise(function(n){e(t,n)}).then(function(){var e=n[a];if(e&&typeof e.then==`function`)return e;throw Error(`targeting failed to load`)}).catch(function(e){throw delete n[a],e})),n[a]},Lb=Ng(`flags`),Rb=`mixpanelFlagsDb`,zb=`mixpanelFlags`,Bb={version:1,storeNames:[zb]},Vb=`persisted_variants_for_`,Hb=864e5,Ub=Object.freeze({NETWORK_ONLY:`networkOnly`,NETWORK_FIRST:`networkFirst`,PERSISTENCE_UNTIL_NETWORK_SUCCESS:`persistenceUntilNetworkSuccess`}),Wb=[Ub.NETWORK_ONLY,Ub.NETWORK_FIRST,Ub.PERSISTENCE_UNTIL_NETWORK_SUCCESS],Gb=function(e,t,n){this.idb=new a_(Rb,zb,Bb),this.persistenceConfig=e,this.persistedVariantsKey=Vb+t,this.isGloballyDisabled=n||function(){return!1}};Gb.prototype.getPolicy=function(){return this.isGloballyDisabled()||!this._isConfigValid()?Ub.NETWORK_ONLY:this.persistenceConfig.variantLookupPolicy},Gb.prototype.getTtlMs=function(){return this._isConfigValid()?this.persistenceConfig.persistenceTtlMs??Hb:Hb},Gb.prototype._isConfigValid=function(){var e=this.persistenceConfig;return e?Wb.indexOf(e.variantLookupPolicy)===-1?(Lb.error(`Invalid variantLookupPolicy:`,e.variantLookupPolicy),!1):e.persistenceTtlMs!==void 0&&e.persistenceTtlMs!==null&&e.persistenceTtlMs<=0?(Lb.error(`If provided, persistenceTtlMs must be a positive number. Provided value:`,e.persistenceTtlMs),!1):!0:!1},Gb.prototype.loadFlagsFromStorage=function(e){var t=G.bind(function(){return this.clear().then(function(){return null}).catch(function(){return null})},this);if(this.getPolicy()===Ub.NETWORK_ONLY)return t();var n=this.getTtlMs();return this.idb.init().then(G.bind(function(){return this.idb.getItem(this.persistedVariantsKey)},this)).then(G.bind(function(r){if(!r)return Lb.log(`No persisted variants found in IndexedDB`),null;if(n&&Date.now()-r.persistedAt>=n)return Lb.log(`Persisted variants are expiring`),null;if(!e||r.distinctId!==e.distinct_id)return Lb.log(`Persisted variants found, but for a different distinct_id so clearing.`),t();var i=new Map;return G.each(r.flagVariants,function(e,t){i.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester,variant_source:`persistence`,persisted_at_in_ms:r.persistedAt,ttl_in_ms:n})}),Lb.log(`Loaded`,i.size,`variants from IndexedDB for distinct_id`,r.distinctId),{flags:i,pendingFirstTimeEvents:r.pendingFirstTimeEvents||{},persistedAtMs:r.persistedAt,ttlMs:n}},this)).catch(G.bind(function(e){return Lb.error(`Failed to load persisted variants from IndexedDB, so clearing`,e),t()},this))},Gb.prototype.save=function(e,t,n){if(this.getPolicy()===Ub.NETWORK_ONLY)return Promise.resolve();var r={};t.forEach(function(e,t){r[t]={variant_key:e.key,variant_value:e.value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester}});var i={persistedAt:Date.now(),distinctId:e&&e.distinct_id,context:e,flagVariants:r,pendingFirstTimeEvents:n||{}};return this.idb.init().then(G.bind(function(){return this.idb.setItem(this.persistedVariantsKey,i)},this)).then(function(){Lb.log(`Saved`,t.size,`variants to IndexedDB for distinct_id`,i.distinctId)}).catch(function(e){Lb.error(`Failed to persist variants to IndexedDB:`,e)})},Gb.prototype.clear=function(){return this.isGloballyDisabled()?Promise.resolve():this.idb.init().then(G.bind(function(){return this.idb.removeItem(this.persistedVariantsKey)},this)).then(function(){Lb.log(`Cleared persisted variants from IndexedDB`)}).catch(function(e){Lb.error(`Failed to clear persisted variants from IndexedDB:`,e)})};var J=Ng(`flags`),Kb=`flags`,qb=`context`,Jb=`persistence`,Yb={};Yb[qb]={};var Xb=function(e,t){return e+`:`+t},Zb=function(e){return e.split(`:`)[0]},Qb=`FLAG_NOT_FOUND`,$b=`NOT_READY`,ex=`BACKEND_ERROR`,tx=function(e,t){var n={variant_source:`fallback`};return t&&(n.fallback_reason=t),G.isObject(e)?G.extend({},e,n):G.extend({value:e},n)},Y=function(e){this.fetch=n.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||``};Y.prototype.init=function(){if(!this.minApisSupported()){J.critical(`Feature Flags unavailable: missing minimum required APIs`);return}return this.flags=null,this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence=new Gb(this.getConfig(Jb),this.getMpConfig(`token`),G.bind(function(){return this.getMpConfig(`disable_persistence`)},this)),this.persistenceLoadedPromise=this.persistence.loadFlagsFromStorage(this._buildContext()).then(G.bind(function(e){e&&(this.flags=e.flags,this.pendingFirstTimeEvents=e.pendingFirstTimeEvents,this._loadedPersistedAtMs=e.persistedAtMs,this._loadedTtlMs=e.ttlMs)},this)),this.persistenceLoadedPromise.then(G.bind(function(){return this.fetchFlags()},this)).catch(function(){J.error(`Error initializing feature flags`)})},Y.prototype._buildContext=function(){return G.extend({distinct_id:this.getMpProperty(`distinct_id`),device_id:this.getMpProperty(`$device_id`)},this.getConfig(qb))},Y.prototype.reset=function(){return this.persistence?(this.flags=null,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this.trackedFeatures=new Set,this.fetchPromise=null,this._fetchInProgressStartTime=null,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence.clear().then(G.bind(function(){return this.fetchFlags()},this)).catch(function(){J.error(`Error during flags reset`)})):Promise.resolve()},Y.prototype.getFullConfig=function(){var e=this.getMpConfig(Kb);return e?G.isObject(e)?G.extend({},Yb,e):Yb:{}},Y.prototype.getConfig=function(e){return this.getFullConfig()[e]},Y.prototype.isSystemEnabled=function(){return!!this.getMpConfig(Kb)},Y.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return J.critical(`Feature Flags not enabled, cannot update context`),Promise.resolve();var n=this.getMpConfig(Kb);G.isObject(n)||(n={});var r=t&&t.replace?{}:this.getConfig(qb);n[qb]=G.extend({},r,e);var i={};return i[Kb]=n,this.setMpConfig(i),this.fetchFlags().catch(function(){J.error(`Error fetching flags during updateContext`)})},Y.prototype.areFlagsReady=function(){return this.isSystemEnabled()||J.error(`Feature Flags not enabled`),!!this.flags},Y.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this._buildContext(),t=e.distinct_id,r=Yg();J.log(`Fetching flags for distinct ID: `+t);var a=new URLSearchParams;a.set(`context`,JSON.stringify(e)),a.set(`token`,this.getMpConfig(`token`)),a.set(`mp_lib`,`web`),a.set(`$lib_version`,i.LIB_VERSION);var o=this.getFullApiRoute()+`?`+a.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(n,o,{method:`GET`,headers:{Authorization:`Basic `+btoa(this.getMpConfig(`token`)+`:`),traceparent:r}}).then(function(e){return this.markFetchComplete(),e.json()}.bind(this)).then(function(t){var n=t.flags;if(!n)throw Error(`No flags in API response`);var i=new Map,a={};G.each(n,function(e,t){var n=!1,r=t+`:`;if(G.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(r)&&(n=!0)}),n){var a=this.flags&&this.flags.get(t);a&&i.set(t,a)}else i.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester,variant_source:`network`})},this);var o=t.pending_first_time_events;o&&o.length>0&&G.each(o,function(e){var t=e.flag_key,n=Xb(t,e.first_time_event_hash);this.activatedFirstTimeEvents[n]||(a[n]={flag_key:t,flag_id:e.flag_id,project_id:e.project_id,first_time_event_hash:e.first_time_event_hash,event_name:e.event_name,property_filters:e.property_filters,pending_variant:e.pending_variant})},this),this.activatedFirstTimeEvents&&G.each(this.activatedFirstTimeEvents,function(e,t){var n=Zb(t);e&&!i.has(n)&&this.flags&&this.flags.has(n)&&i.set(n,this.flags.get(n))},this),this.flags=i,this.trackedFeatures=new Set,this.pendingFirstTimeEvents=a,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this._traceparent=r,this._loadTargetingIfNeeded(),this.persistence.save(e,this.flags,this.pendingFirstTimeEvents)}.bind(this)).catch(function(e){throw this._fetchInProgressStartTime&&this.markFetchComplete(),J.error(e),e}.bind(this)),this.fetchPromise},Y.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(J.error(`loadFlags called before init`),Promise.resolve()):Promise.resolve()},Y.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){J.error(`Fetch in progress started time not set, cannot mark fetch complete`);return}this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null},Y.prototype._loadTargetingIfNeeded=function(){var e=!1;G.each(this.pendingFirstTimeEvents,function(t){t.property_filters&&!G.isEmptyObject(t.property_filters)&&(e=!0)}),e&&this.getTargeting().then(function(){J.log(`targeting loaded for property filter evaluation`)})},Y.prototype.getTargeting=function(){return Ib(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(e){J.error(`Failed to load targeting: `+e)}.bind(this))},Y.prototype.checkFirstTimeEvents=function(e,t){return!this.pendingFirstTimeEvents||G.isEmptyObject(this.pendingFirstTimeEvents)?Promise.resolve():n[a]&&G.isFunction(n[a].then)?n[a].then(function(n){return this._processFirstTimeEventCheck(e,t,n)}.bind(this)).catch(function(){return this._processFirstTimeEventCheck(e,t,null)}.bind(this)):this._processFirstTimeEventCheck(e,t,null)},Y.prototype._processFirstTimeEventCheck=function(e,t,n){var r=[];return G.each(this.pendingFirstTimeEvents,function(i,a){if(!this.activatedFirstTimeEvents[a]){var o=i.flag_key,s;if(!n&&i.property_filters&&!G.isEmptyObject(i.property_filters)){J.warn(`Skipping event check for "`+o+`" - property filters require targeting library`);return}if(!n)s={matches:e===i.event_name,error:null};else{var c={event_name:i.event_name,property_filters:i.property_filters};s=n.eventMatchesCriteria(e,t,c)}if(s.error){J.error(`Error checking first-time event for flag "`+o+`": `+s.error);return}if(s.matches){J.log(`First-time event matched for flag "`+o+`": `+e);var l={key:i.pending_variant.variant_key,value:i.pending_variant.variant_value,experiment_id:i.pending_variant.experiment_id,is_experiment_active:i.pending_variant.is_experiment_active};this.flags.set(o,l),this.trackedFeatures.delete(o),this.activatedFirstTimeEvents[a]=!0,r.push(this.recordFirstTimeEvent(i.flag_id,i.project_id,i.first_time_event_hash))}}},this),Promise.all(r)},Y.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute().replace(/\/$/,``)+`/`+e+`/first-time-events`},Y.prototype.recordFirstTimeEvent=function(e,t,r){var a=this.getMpProperty(`distinct_id`),o=Yg(),s=new URLSearchParams;s.set(`mp_lib`,`web`),s.set(`$lib_version`,i.LIB_VERSION);var c=this.getFirstTimeEventApiRoute(e)+`?`+s.toString(),l={distinct_id:a,project_id:t,first_time_event_hash:r};return J.log(`Recording first-time event for flag: `+e),this.fetch.call(n,c,{method:`POST`,headers:{"Content-Type":`application/json`,Authorization:`Basic `+btoa(this.getMpConfig(`token`)+`:`),traceparent:o},body:JSON.stringify(l)}).catch(function(t){J.error(`Failed to record first-time event for flag `+e+`: `+t)})},Y.prototype.getVariant=function(e,t){if(!this.persistenceLoadedPromise)return new Promise(function(e){J.critical(`Feature Flags not initialized`),e(tx(t,$b))});var n=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(G.bind(function(){if(n===Ub.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getVariantSync(e,t):this.fetchPromise?this.fetchPromise.then(G.bind(function(){return this.getVariantSync(e,t)},this)).catch(function(e){return J.error(e),tx(t,ex)}):tx(t,$b);var r=G.bind(function(){return this.getVariantSync(e,t)},this);return this.fetchPromise?this.fetchPromise.then(r).catch(G.bind(function(e){return J.error(e),this.areFlagsReady()?r():tx(t,ex)},this)):tx(t,$b)},this))},Y.prototype._loadedPersistenceIsStale=function(){return!this._loadedPersistedAtMs||!this._loadedTtlMs?!1:Date.now()-this._loadedPersistedAtMs>=this._loadedTtlMs},Y.prototype.getVariantSync=function(e,t){if(this._loadedPersistenceIsStale())return J.log(`Loaded persisted variants are past TTL so returning fallback for "`+e+`"`),tx(t,$b);if(!this.areFlagsReady())return J.log(`Flags not loaded yet`),tx(t,$b);var n=this.flags.get(e);return n?(this.trackFeatureCheck(e,n),n):(J.log(`No flag found: "`+e+`"`),tx(t,Qb))},Y.prototype.getAllVariants=function(){if(!this.persistenceLoadedPromise)return J.critical(`Feature Flags not initialized`),Promise.resolve(new Map);var e=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(G.bind(function(){if(e===Ub.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getAllVariantsSync():this.fetchPromise?this.fetchPromise.then(G.bind(function(){return this.getAllVariantsSync()},this)).catch(function(e){return J.error(e),new Map}):new Map;var t=G.bind(this.getAllVariantsSync,this);return this.fetchPromise?this.fetchPromise.then(t).catch(t):new Map},this))},Y.prototype.getAllVariantsSync=function(){return this._loadedPersistenceIsStale()?(J.log(`Loaded persisted variants are past TTL so returning empty Map`),new Map):this.flags||new Map},Y.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return J.error(e),t})},Y.prototype.getFeatureData=function(e,t){return J.critical(`mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead.`),this.getVariantValue(e,t)},Y.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},Y.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return J.error(e),t})},Y.prototype.isEnabledSync=function(e,t){t||=!1;var n=this.getVariantValueSync(e,t);return n!==!0&&n!==!1&&(J.error(`Feature flag "`+e+`" value: `+n+` is not a boolean; returning fallback value: `+t),n=t),n};function nx(e){return e!=null}Y.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var n={"Experiment name":e,"Variant name":t.key,$experiment_type:`feature_flag`,"Variant fetch start time":nx(this._fetchStartTime)?new Date(this._fetchStartTime).toISOString():null,"Variant fetch complete time":nx(this._fetchCompleteTime)?new Date(this._fetchCompleteTime).toISOString():null,"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};nx(t.experiment_id)&&(n.$experiment_id=t.experiment_id),nx(t.is_experiment_active)&&(n.$is_experiment_active=t.is_experiment_active),nx(t.is_qa_tester)&&(n.$is_qa_tester=t.is_qa_tester),nx(t.variant_source)&&(n.$variant_source=t.variant_source),nx(t.persisted_at_in_ms)&&(n.$persisted_at_in_ms=t.persisted_at_in_ms),nx(t.ttl_in_ms)&&(n.$ttl_in_ms=t.ttl_in_ms),this.track(`$experiment_started`,n)}},Y.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},Y.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise<`u`&&typeof Map<`u`&&typeof Set<`u`},Fg(Y),Y.prototype.are_flags_ready=Y.prototype.areFlagsReady,Y.prototype.get_variant=Y.prototype.getVariant,Y.prototype.get_variant_sync=Y.prototype.getVariantSync,Y.prototype.get_all_variants=Y.prototype.getAllVariants,Y.prototype.get_all_variants_sync=Y.prototype.getAllVariantsSync,Y.prototype.get_variant_value=Y.prototype.getVariantValue,Y.prototype.get_variant_value_sync=Y.prototype.getVariantValueSync,Y.prototype.is_enabled=Y.prototype.isEnabled,Y.prototype.is_enabled_sync=Y.prototype.isEnabledSync,Y.prototype.load_flags=Y.prototype.loadFlags,Y.prototype.update_context=Y.prototype.updateContext,Y.prototype.when_ready=Y.prototype.whenReady,Y.prototype.get_feature_data=Y.prototype.getFeatureData,Y.prototype.getTargeting=Y.prototype.getTargeting;var rx=Ng(`recorder`),ix=`mp_iframe_handshake_request`,ax=`mp_iframe_handshake_response`,ox=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};ox.prototype.shouldLoadRecorder=function(){if(this.getMpConfig(`disable_persistence`))return K.log(`Load recorder check skipped due to disable_persistence config`),U.resolve(!1);var e=new a_(o_,c_,l_),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var n=0;n<e.length;n++)if(I_(e[n])||e[n].tabId===t)return!0;return!1}).catch(G.bind(function(e){return this.reportError(`Error checking recording registry`,e),!1},this))},ox.prototype.checkAndStartSessionRecording=function(e,t){if(!n.MutationObserver)return K.critical(`Browser does not support MutationObserver; skipping session recording`),U.resolve();var r=G.bind(function(e){return new U(G.bind(function(t){var r=Pg(G.bind(function(){this._recorder=this._recorder||new n[o](this.mixpanelInstance),this._recorder.resumeRecording(e),t()},this));if(G.isUndefined(n[o])){var i=this.recorderSrc||this.libBasePath+s;this.loadExtraBundle(i,r)}else r()},this))},this),i=R_(this.getMpConfig(`record_allowed_iframe_origins`),rx);if(i.length>0&&(this._setupParentFrameListener(i),n.parent!==n))return this._setupChildFrameListener(i,r),this._sendParentFrameRequestWithRetry(i),U.resolve();var a=G.isUndefined(t)?this.getMpConfig(`record_sessions_percent`):t,c=a>0&&Math.random()*100<=a;return e||c?r(!0):this.shouldLoadRecorder().then(G.bind(function(e){return e?r(!1):U.resolve()},this))},ox.prototype.isRecording=function(){if(!this._recorder||!G.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(e){return this.reportError(`Error checking if recording is active`,e),!1}},ox.prototype.startRecordingOnEvent=function(e,t){var n=this.isRecording(),r=this.getMpConfig(`recording_event_triggers`);if(!n&&r){var i=r[e];if(i&&typeof i.percentage==`number`){var a=i.percentage,o=i.property_filters;if(o&&!G.isEmptyObject(o)){var s=this.targetingSrc||this.libBasePath+c;Ib(this.loadExtraBundle,s).then(function(n){try{n.eventMatchesCriteria(e,t,{event_name:e,property_filters:o}).matches&&this.checkAndStartSessionRecording(!1,a)}catch(e){K.critical(`Could not parse recording event trigger properties logic:`,e)}}.bind(this)).catch(function(e){K.critical(`Failed to load targeting library:`,e)})}else this.checkAndStartSessionRecording(!1,a)}}},ox.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():U.resolve()},ox.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():U.resolve()},ox.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():U.resolve()},ox.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig(`record_heatmap_data`)},ox.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e.$mp_replay_id=t),e},ox.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();return t&&(e=`https://mixpanel.com/projects/replay-redirect?`+G.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig(`token`)})),e},ox.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},ox.prototype.getRecorder=function(){return this._recorder},ox.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(i){if(e.indexOf(i.origin)!==-1){var a=i.data;a&&a.type===ax&&a.token===r.getMpConfig(`token`)&&a.replayId&&(r._parentReplayId=a.replayId,a.distinctId&&r.mixpanelInstance.identify(a.distinctId),r._parentFrameRetryActive=!1,n.removeEventListener(`message`,r._childFrameMessageHandler),r._childFrameMessageHandler=null,t(!0))}},n.addEventListener(`message`,this._childFrameMessageHandler)}},ox.prototype._sendParentFrameRequest=function(e){var t={};t.type=ix,t.token=this.getMpConfig(`token`);for(var r=0;r<e.length;r++)try{n.parent.postMessage(t,e[r])}catch{}},ox.prototype._sendParentFrameRequestWithRetry=function(e){var t=this,n=10,r=0,i=50;this._parentFrameRetryActive=!0,this._sendParentFrameRequest(e);function a(){setTimeout(function(){!t._parentFrameRetryActive||t._parentReplayId||++r>=n||(t._sendParentFrameRequest(e),i*=2,a())},i)}a()},ox.prototype._setupParentFrameListener=function(e){if(!this._parentFrameMessageHandler){var t=this;this._parentFrameMessageHandler=function(n){if(e.indexOf(n.origin)!==-1){var r=n.data;if(r&&r.type===ix&&r.token===t.getMpConfig(`token`)){var i=t.getSessionReplayId();if(i){var a={};a.type=ax,a.token=t.getMpConfig(`token`),a.replayId=i,a.distinctId=t.getDistinctId(),n.source.postMessage(a,n.origin)}}}},n.addEventListener(`message`,this._parentFrameMessageHandler)}},Fg(ox);var sx=function(){};sx.prototype.create_properties=function(){},sx.prototype.event_handler=function(){},sx.prototype.after_track_handler=function(){},sx.prototype.init=function(e){return this.mp=e,this},sx.prototype.track=function(e,t,r,i){var a=this,o=G.dom_query(e);if(o.length===0){K.error(`The DOM query (`+e+`) returned 0 elements`);return}return G.each(o,function(e){G.register_event(e,this.override_event,function(e){var o={},s=a.create_properties(r,this),c=a.mp.get_config(`track_links_timeout`);a.event_handler(e,this,o),n.setTimeout(a.track_callback(i,s,o,!0),c),a.mp.track(t,s,a.track_callback(i,s,o))})},this),!0},sx.prototype.track_callback=function(e,t,n,r){r||=!1;var i=this;return function(){n.callback_fired||(n.callback_fired=!0,!(e&&e(r,t)===!1)&&i.after_track_handler(t,n,r))}},sx.prototype.create_properties=function(e,t){return typeof e==`function`?e(t):G.extend({},e)};var cx=function(){this.override_event=`click`};G.inherit(cx,sx),cx.prototype.create_properties=function(e,t){var n=cx.superclass.create_properties.apply(this,arguments);return t.href&&(n.url=t.href),n},cx.prototype.event_handler=function(e,t,n){n.new_tab=e.which===2||e.metaKey||e.ctrlKey||t.target===`_blank`,n.href=t.href,n.new_tab||e.preventDefault()},cx.prototype.after_track_handler=function(e,t){!t.new_tab&&t.href&&setTimeout(function(){n.location=t.href},0)};var lx=function(){this.override_event=`submit`};G.inherit(lx,sx),lx.prototype.event_handler=function(e,t,n){n.element=t,e.preventDefault()},lx.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var ux=`$set`,dx=`$set_once`,fx=`$unset`,px=`$add`,mx=`$append`,hx=`$union`,gx=`$remove`,_x=`$delete`,vx={set_action:function(e,t){var n={},r={};return G.isObject(e)?G.each(e,function(e,t){this._is_reserved_property(t)||(r[t]=e)},this):r[e]=t,n[ux]=r,n},unset_action:function(e){var t={},n=[];return G.isArray(e)||(e=[e]),G.each(e,function(e){this._is_reserved_property(e)||n.push(e)},this),t[fx]=n,t},set_once_action:function(e,t){var n={},r={};return G.isObject(e)?G.each(e,function(e,t){this._is_reserved_property(t)||(r[t]=e)},this):r[e]=t,n[dx]=r,n},union_action:function(e,t){var n={},r={};return G.isObject(e)?G.each(e,function(e,t){this._is_reserved_property(t)||(r[t]=G.isArray(e)?e:[e])},this):r[e]=G.isArray(t)?t:[t],n[hx]=r,n},append_action:function(e,t){var n={},r={};return G.isObject(e)?G.each(e,function(e,t){this._is_reserved_property(t)||(r[t]=e)},this):r[e]=t,n[mx]=r,n},remove_action:function(e,t){var n={},r={};return G.isObject(e)?G.each(e,function(e,t){this._is_reserved_property(t)||(r[t]=e)},this):r[e]=t,n[gx]=r,n},delete_action:function(){var e={};return e[_x]=``,e}};function yx(){}G.extend(yx.prototype,vx),yx.prototype._init=function(e,t,n){this._mixpanel=e,this._group_key=t,this._group_id=n},yx.prototype.set=__(function(e,t,n){var r=this.set_action(e,t);return G.isObject(e)&&(n=t),this._send_request(r,n)}),yx.prototype.set_once=__(function(e,t,n){var r=this.set_once_action(e,t);return G.isObject(e)&&(n=t),this._send_request(r,n)}),yx.prototype.unset=__(function(e,t){var n=this.unset_action(e);return this._send_request(n,t)}),yx.prototype.union=__(function(e,t,n){G.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)}),yx.prototype.delete=__(function(e){var t=this.delete_action();return this._send_request(t,e)}),yx.prototype.remove=__(function(e,t,n){var r=this.remove_action(e,t);return this._send_request(r,n)}),yx.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config(`token`);var n=G.encodeDates(e);return this._mixpanel._track_or_batch({type:`groups`,data:n,endpoint:this._mixpanel.get_api_host(`groups`)+`/`+this._get_config(`api_routes`).groups,batcher:this._mixpanel.request_batchers.groups},t)},yx.prototype._is_reserved_property=function(e){return e===`$group_key`||e===`$group_id`},yx.prototype._get_config=function(e){return this._mixpanel.get_config(e)},yx.prototype.toString=function(){return this._mixpanel.toString()+`.group.`+this._group_key+`.`+this._group_id};var bx=yx.prototype;bx.remove=bx.remove,bx.set=bx.set,bx.set_once=bx.set_once,bx.union=bx.union,bx.unset=bx.unset,yx.prototype.toString=yx.prototype.toString;function X(){}G.extend(X.prototype,vx),X.prototype._init=function(e){this._mixpanel=e},X.prototype.set=g_(function(e,t,n){var r=this.set_action(e,t);return G.isObject(e)&&(n=t),this._get_config(`save_referrer`)&&this._mixpanel.persistence.update_referrer_info(document.referrer),r[ux]=G.extend({},G.info.people_properties(),r[ux]),this._send_request(r,n)}),X.prototype.set_once=g_(function(e,t,n){var r=this.set_once_action(e,t);return G.isObject(e)&&(n=t),this._send_request(r,n)}),X.prototype.unset=g_(function(e,t){var n=this.unset_action(e);return this._send_request(n,t)}),X.prototype.increment=g_(function(e,t,n){var r={},i={};return G.isObject(e)?(G.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e))){K.error(`Invalid increment value passed to mixpanel.people.increment - must be a number`);return}i[t]=e}},this),n=t):(G.isUndefined(t)&&(t=1),i[e]=t),r[px]=i,this._send_request(r,n)}),X.prototype.append=g_(function(e,t,n){G.isObject(e)&&(n=t);var r=this.append_action(e,t);return this._send_request(r,n)}),X.prototype.remove=g_(function(e,t,n){G.isObject(e)&&(n=t);var r=this.remove_action(e,t);return this._send_request(r,n)}),X.prototype.union=g_(function(e,t,n){G.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)}),X.prototype.track_charge=g_(function(e,t,n){K.error(`mixpanel.people.track_charge() is deprecated and no longer has any effect.`)}),X.prototype.clear_charges=function(e){return this.set(`$transactions`,[],e)},X.prototype.delete_user=function(){if(!this._identify_called()){K.error(`mixpanel.people.delete_user() requires you to call identify() first`);return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},X.prototype.toString=function(){return this._mixpanel.toString()+`.people`},X.prototype._send_request=function(e,t){e.$token=this._get_config(`token`),e.$distinct_id=this._mixpanel.get_distinct_id();var n=this._mixpanel.get_property(`$device_id`),r=this._mixpanel.get_property(`$user_id`),i=this._mixpanel.get_property(`$had_persisted_distinct_id`);n&&(e.$device_id=n),r&&(e.$user_id=r),i&&(e.$had_persisted_distinct_id=i);var a=G.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:`people`,data:a,endpoint:this._mixpanel.get_api_host(`people`)+`/`+this._get_config(`api_routes`).engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(a),G.isUndefined(t)||(this._get_config(`verbose`)?t({status:-1,error:null}):t(-1)),G.truncate(a,255))},X.prototype._get_config=function(e){return this._mixpanel.get_config(e)},X.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0},X.prototype._enqueue=function(e){ux in e?this._mixpanel.persistence._add_to_people_queue(ux,e):dx in e?this._mixpanel.persistence._add_to_people_queue(dx,e):fx in e?this._mixpanel.persistence._add_to_people_queue(fx,e):px in e?this._mixpanel.persistence._add_to_people_queue(px,e):mx in e?this._mixpanel.persistence._add_to_people_queue(mx,e):gx in e?this._mixpanel.persistence._add_to_people_queue(gx,e):hx in e?this._mixpanel.persistence._add_to_people_queue(hx,e):K.error(`Invalid call to _enqueue():`,e)},X.prototype._flush_one_queue=function(e,t,n,r){var i=this,a=G.extend({},this._mixpanel.persistence.load_queue(e)),o=a;!G.isUndefined(a)&&G.isObject(a)&&!G.isEmptyObject(a)&&(i._mixpanel.persistence._pop_from_people_queue(e,a),i._mixpanel.persistence.save(),r&&(o=r(a)),t.call(i,o,function(t,r){t===0&&i._mixpanel.persistence._add_to_people_queue(e,a),G.isUndefined(n)||n(t,r)}))},X.prototype._flush=function(e,t,n,r,i,a,o){var s=this;this._flush_one_queue(ux,this.set,e),this._flush_one_queue(dx,this.set_once,r),this._flush_one_queue(fx,this.unset,a,function(e){return G.keys(e)}),this._flush_one_queue(px,this.increment,t),this._flush_one_queue(hx,this.union,i);var c=this._mixpanel.persistence.load_queue(mx);if(!G.isUndefined(c)&&G.isArray(c)&&c.length)for(var l,u=function(e,t){e===0&&s._mixpanel.persistence._add_to_people_queue(mx,l),G.isUndefined(n)||n(e,t)},d=c.length-1;d>=0;d--)c=this._mixpanel.persistence.load_queue(mx),l=c.pop(),s._mixpanel.persistence.save(),G.isEmptyObject(l)||s.append(l,u);var f=this._mixpanel.persistence.load_queue(gx);if(!G.isUndefined(f)&&G.isArray(f)&&f.length)for(var p,m=function(e,t){e===0&&s._mixpanel.persistence._add_to_people_queue(gx,p),G.isUndefined(o)||o(e,t)},h=f.length-1;h>=0;h--)f=this._mixpanel.persistence.load_queue(gx),p=f.pop(),s._mixpanel.persistence.save(),G.isEmptyObject(p)||s.remove(p,m)},X.prototype._is_reserved_property=function(e){return e===`$distinct_id`||e===`$token`||e===`$device_id`||e===`$user_id`||e===`$had_persisted_distinct_id`};var xx=X.prototype;xx.set=xx.set,xx.set_once=xx.set_once,xx.unset=xx.unset,xx.increment=xx.increment,xx.append=xx.append,xx.remove=xx.remove,xx.union=xx.union,xx.track_charge=xx.track_charge,xx.clear_charges=xx.clear_charges,xx.delete_user=xx.delete_user,X.prototype.toString=X.prototype.toString;var Sx=`__mps`,Cx=`__mpso`,wx=`__mpus`,Tx=`__mpa`,Ex=`__mpap`,Dx=`__mpr`,Ox=`__mpu`,kx=`$people_distinct_id`,Ax=`__alias`,jx=`__timers`,Mx=[Sx,Cx,wx,Tx,Ex,Dx,Ox,kx,Ax,jx],Z=function(e){this.props={},this.campaign_params_saved=!1,this.name=e.persistence_name?`mp_`+e.persistence_name:`mp_`+e.token+`_mixpanel`;var t=e.persistence;t!==`cookie`&&t!==`localStorage`&&(K.critical(`Unknown persistence type `+t+`; falling back to cookie`),t=e.persistence=`cookie`),this.storage=t===`localStorage`&&G.localStorage.is_supported()?G.localStorage:G.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Z.prototype.properties=function(){var e={};return this.load(),G.each(this.props,function(t,n){G.include(Mx,n)||(e[n]=t)}),e},Z.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=G.extend({},e))}},Z.prototype.upgrade=function(){var e,t;this.storage===G.localStorage?(e=G.cookie.parse(this.name),G.cookie.remove(this.name),G.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===G.cookie&&(t=G.localStorage.parse(this.name),G.localStorage.remove(this.name),t&&this.register_once(t))},Z.prototype.save=function(){this.disabled||this.storage.set(this.name,n_(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Z.prototype.load_prop=function(e){return this.load(),this.props[e]},Z.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Z.prototype.clear=function(){this.remove(),this.props={}},Z.prototype.register_once=function(e,t,n){return G.isObject(e)?(t===void 0&&(t=`None`),this.expire_days=n===void 0?this.default_expiry:n,this.load(),G.each(e,function(e,n){(!this.props.hasOwnProperty(n)||this.props[n]===t)&&(this.props[n]=e)},this),this.save(),!0):!1},Z.prototype.register=function(e,t){return G.isObject(e)?(this.expire_days=t===void 0?this.default_expiry:t,this.load(),G.extend(this.props,e),this.save(),!0):!1},Z.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},Z.prototype.update_search_keyword=function(e){this.register(G.info.searchInfo(e))},Z.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||`$direct`,$initial_referring_domain:G.info.referringDomain(e)||`$direct`},``)},Z.prototype.get_referrer_info=function(){return G.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},Z.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},Z.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Z.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Z.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Z.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Z.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Z.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Z.prototype._add_to_people_queue=function(e,t){var n=this._get_queue_key(e),r=t[e],i=this._get_or_create_queue(ux),a=this._get_or_create_queue(dx),o=this._get_or_create_queue(fx),s=this._get_or_create_queue(px),c=this._get_or_create_queue(hx),l=this._get_or_create_queue(gx,[]),u=this._get_or_create_queue(mx,[]);n===Sx?(G.extend(i,r),this._pop_from_people_queue(px,r),this._pop_from_people_queue(hx,r),this._pop_from_people_queue(fx,r)):n===Cx?(G.each(r,function(e,t){t in a||(a[t]=e)}),this._pop_from_people_queue(fx,r)):n===wx?G.each(r,function(e){G.each([i,a,s,c],function(t){e in t&&delete t[e]}),G.each(u,function(t){e in t&&delete t[e]}),o[e]=!0}):n===Tx?(G.each(r,function(e,t){t in i?i[t]+=e:(t in s||(s[t]=0),s[t]+=e)},this),this._pop_from_people_queue(fx,r)):n===Ox?(G.each(r,function(e,t){G.isArray(e)&&(t in c||(c[t]=[]),G.each(e,function(e){G.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(fx,r)):n===Dx?(l.push(r),this._pop_from_people_queue(mx,r)):n===Ex&&(u.push(r),this._pop_from_people_queue(fx,r)),K.log(`MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):`),K.log(t),this.save()},Z.prototype._pop_from_people_queue=function(e,t){var n=this.props[this._get_queue_key(e)];G.isUndefined(n)||G.each(t,function(t,r){e===mx||e===gx?G.each(n,function(e){e[r]===t&&delete e[r]}):delete n[r]},this)},Z.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},Z.prototype._get_queue_key=function(e){if(e===ux)return Sx;if(e===dx)return Cx;if(e===fx)return wx;if(e===px)return Tx;if(e===mx)return Ex;if(e===gx)return Dx;if(e===hx)return Ox;K.error(`Invalid queue:`,e)},Z.prototype._get_or_create_queue=function(e,t){var n=this._get_queue_key(e);return t=G.isUndefined(t)?{}:t,this.props[n]||(this.props[n]=t)},Z.prototype.set_event_timer=function(e,t){var n=this.load_prop(jx)||{};n[e]=t,this.props[jx]=n,this.save()},Z.prototype.remove_event_timer=function(e){var t=(this.load_prop(jx)||{})[e];return G.isUndefined(t)||(delete this.props[jx][e],this.save()),t};var Nx,Px=function(e,t){throw Error(e+` not available in this build.`)},Fx,Ix=0,Lx=1,Rx=`mixpanel`,zx=`base64`,Bx=`json`,Vx=`$device:`,Hx=`strict`,Ux=`fallback`,Wx=`disabled`,Gx=n.XMLHttpRequest&&`withCredentials`in new XMLHttpRequest,Kx=!Gx&&Tg.indexOf(`MSIE`)===-1&&Tg.indexOf(`Mozilla`)===-1,qx=null;Sg.sendBeacon&&(qx=function(){return Sg.sendBeacon.apply(Sg,arguments)});var Jx={track:`track/`,engage:`engage/`,groups:`groups/`,record:`record/`,flags:`flags/`,settings:`settings/`},Yx={api_host:`https://api-js.mixpanel.com`,api_hosts:{},api_routes:Jx,api_extra_query_params:{},api_method:`POST`,api_transport:`XHR`,api_payload_format:zx,app_host:`https://mixpanel.com`,autocapture:!1,cdn:`https://cdn.mxpnl.com`,cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:e_,flags:!1,persistence:`cookie`,persistence_name:``,cookie_domain:``,cookie_name:``,loaded:e_,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:`localStorage`,opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:RegExp(`^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$`),record_block_selector:`img, video, audio`,record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:pg,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:`https://cdn.mxpnl.com/libs/`,remote_settings_mode:Wx},Xx=!1;function Q(){}var Zx=function(e,t,r){var a,o=r===Rx?Fx:Fx[r];if(o&&Nx===Ix)a=o;else{if(o&&!G.isArray(o)){K.error(`You have already initialized `+r);return}a=new Q}if(a._cached_groups={},a._init(e,t,r),a.people=new X,a.people._init(a),!a.get_config(`skip_first_touch_marketing`)){var s=G.info.campaignParams(null),c={},l=!1;G.each(s,function(e,t){c[`initial_`+t]=e,e&&(l=!0)}),l&&a.people.set_once(c)}i.DEBUG=i.DEBUG||a.get_config(`debug`);var u=Nx===Ix?`module`:`snippet`;return n.dispatchEvent(new n.CustomEvent(`$mp_sdk_to_extension_event`,{detail:{instance:a,source:u,token:e,name:r,info:G.info}})),!G.isUndefined(o)&&G.isArray(o)&&(a._execute_array.call(a.people,o.people),a._execute_array(o)),a};Q.prototype.init=function(e,t,n){if(G.isUndefined(n)){this.report_error(`You must name your new library: init(token, config, name)`);return}if(n===Rx){this.report_error(`You must initialize the main mixpanel object right after you include the Mixpanel js snippet`);return}var r=Zx(e,t,n);return Fx[n]=r,r._loaded(),r},Q.prototype._init=function(e,t,r){t||={},this.__loaded=!0,this.config={};var i={};if(`api_payload_format`in t||(t.api_host||Yx.api_host).match(/\.mixpanel\.com/)&&(i.api_payload_format=Bx),this.hooks={},this.set_config(G.extend({},Yx,i,t,{name:r,token:e,callback_fn:(r===Rx?r:Rx+`.`+r)+`._jsc`})),this.recorderManager=new ox({mixpanelInstance:this,getConfigFunc:G.bind(this.get_config,this),setConfigFunc:G.bind(this.set_config,this),getTabIdFunc:G.bind(this.get_tab_id,this),reportErrorFunc:G.bind(this.report_error,this),getDistinctIdFunc:G.bind(this.get_distinct_id,this),recorderSrc:this.get_config(`recorder_src`),targetingSrc:this.get_config(`targeting_src`),libBasePath:this.get_config(`lib_base_path`),loadExtraBundle:Px}),this._jsc=e_,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this._remote_settings_strict_disabled=!1,this.request_batchers={},this._batch_requests=this.get_config(`batch_requests`),this._batch_requests){if(!G.localStorage.is_supported(!0)||!Gx)this._batch_requests=!1,K.log(`Turning off Mixpanel request-queueing; needs XHR and localStorage support`),G.each(this.get_batcher_configs(),function(e){K.log(`Clearing batch queue `+e.queue_key),G.localStorage.remove(e.queue_key)});else if(this.init_batchers(),qx&&n.addEventListener){var a=G.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);n.addEventListener(`pagehide`,function(e){e.persisted&&a()}),n.addEventListener(`visibilitychange`,function(){W.visibilityState===`hidden`&&a()})}}this.persistence=this.cookie=new Z(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=G.UUID();this.get_distinct_id()||this.register_once({distinct_id:Vx+o,$device_id:o},``),this.flags=new Y({getFullApiRoute:G.bind(function(){return this.get_api_host(`flags`)+`/`+this.get_config(`api_routes`).flags},this),getConfigFunc:G.bind(this.get_config,this),setConfigFunc:G.bind(this.set_config,this),getPropertyFunc:G.bind(this.get_property,this),trackingFunc:G.bind(this.track,this),loadExtraBundle:Px,targetingSrc:this.get_config(`targeting_src`)||this.get_config(`lib_base_path`)+c}),this.flags.init(),this.flags=this.flags,this._init_tab_id();var s=this.get_config(`remote_settings_mode`);this.__session_recording_init_promise=s===Hx||s===Ux?this._fetch_remote_settings(s).then(G.bind(function(){return this._check_and_start_session_recording()},this)):this._check_and_start_session_recording(),this.autocapture=new Fb(this),this.autocapture.init()},Q.prototype._init_tab_id=function(){if(this.get_config(`disable_persistence`))K.log(`Tab ID initialization skipped due to disable_persistence config`);else if(G.sessionStorage.is_supported())try{var e=this.get_config(`name`)+`_`+this.get_config(`token`),t=`mp_tab_id_`+e,r=`mp_gen_new_tab_id_`+e;(G.sessionStorage.get(r)||!G.sessionStorage.get(t))&&G.sessionStorage.set(t,`$tab-`+G.UUID()),G.sessionStorage.set(r,`1`),this.tab_id=G.sessionStorage.get(t),n.addEventListener(`beforeunload`,function(){G.sessionStorage.remove(r)})}catch(e){this.report_error(`Error initializing tab id`,e)}else this.report_error(`Session storage is not supported, cannot keep track of unique tab ID.`)},Q.prototype.get_tab_id=function(){return this.tab_id||null},Q.prototype._check_and_start_session_recording=h_(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),Q.prototype._start_recording_on_event=Pg(function(e,t){this.__session_recording_init_promise&&this.__session_recording_init_promise.then(G.bind(function(){if(!this._remote_settings_strict_disabled)return this.recorderManager.startRecordingOnEvent(e,t)},this))}),Q.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},Q.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},Q.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},Q.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},Q.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},Q.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},Q.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},Q.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},Q.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},Q.prototype._loaded=function(){if(this.get_config(`loaded`)(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config(`store_google`)&&this.get_config(`stop_utm_persistence`)){var e=G.info.campaignParams(null);G.each(e,function(e,t){this.unregister(t)}.bind(this))}},Q.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(W.referrer),this.get_config(`store_google`)&&!this.get_config(`stop_utm_persistence`)&&this.register(G.info.campaignParams()),this.get_config(`save_referrer`)&&this.persistence.update_referrer_info(W.referrer)},Q.prototype._dom_loaded=function(){G.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||G.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},Q.prototype._track_dom=function(e,t){if(this.get_config(`img`))return this.report_error(`You can't use DOM tracking functions with img = true.`),!1;if(!Xx)return this.__dom_loaded_queue.push([e,t]),!1;var n=new e().init(this);return n.track.apply(n,t)},Q.prototype._prepare_callback=function(e,t){if(G.isUndefined(e))return null;if(Gx)return function(n){e(n,t)};var n=this._jsc,r=``+Math.floor(Math.random()*1e8),i=this.get_config(`callback_fn`)+`[`+r+`]`;return n[r]=function(i){delete n[r],e(i,t)},i},Q.prototype._send_request=function(e,t,n,r){var i=!0;if(Kx)return this.__request_queue.push(arguments),i;var a={method:this.get_config(`api_method`),transport:this.get_config(`api_transport`),verbose:this.get_config(`verbose`)},o=null;!r&&(G.isFunction(n)||typeof n==`string`)&&(r=n,n=null),n=G.extend(a,n||{}),Gx||(n.method=`GET`);var s=n.method===`POST`,c=qx&&s&&n.transport.toLowerCase()===`sendbeacon`,l=n.verbose;t.verbose&&(l=!0),this.get_config(`test`)&&(t.test=1),l&&(t.verbose=1),this.get_config(`img`)&&(t.img=1),Gx||(r?t.callback=r:(l||this.get_config(`test`))&&(t.callback=`(function(){})`)),t.ip=+!!this.get_config(`ip`),t._=new Date().getTime().toString(),s&&(o=`data=`+encodeURIComponent(t.data),delete t.data),G.extend(t,this.get_config(`api_extra_query_params`)),e+=`?`+G.HTTPBuildQuery(t);var u=this;if(`img`in t){var d=W.createElement(`img`);d.src=e,W.body.appendChild(d)}else if(c){try{i=qx(e,o)}catch(e){u.report_error(e),i=!1}try{r&&r(+!!i)}catch(e){u.report_error(e)}}else if(Gx)try{var f=new XMLHttpRequest;f.open(n.method,e,!0);var p=this.get_config(`xhr_headers`);if(s&&(p[`Content-Type`]=`application/x-www-form-urlencoded`),G.each(p,function(e,t){f.setRequestHeader(t,e)}),n.timeout_ms&&f.timeout!==void 0){f.timeout=n.timeout_ms;var m=new Date().getTime()}f.withCredentials=!0,f.onreadystatechange=function(){if(f.readyState===4){if(f.status===200){if(r){if(l){var e;try{e=G.JSONDecode(f.responseText)}catch(t){if(u.report_error(t),n.ignore_json_errors)e=f.responseText;else return}r(e)}else r(Number(f.responseText))}}else{var t=f.timeout&&!f.status&&new Date().getTime()-m>=f.timeout?`timeout`:`Bad HTTP status: `+f.status+` `+f.statusText;if(u.report_error(t),r){if(l){var i=f.responseHeaders||{};r({status:0,httpStatusCode:f.status,error:t,retryAfter:i[`Retry-After`]})}else r(0)}}}},f.send(o)}catch(e){u.report_error(e),i=!1}else{var h=W.createElement(`script`);h.type=`text/javascript`,h.async=!0,h.defer=!0,h.src=e;var g=W.getElementsByTagName(`script`)[0];g.parentNode.insertBefore(h,g)}return i},Q.prototype._fetch_remote_settings=function(e){var t=this,r=function(){e===`strict`&&(t.set_config({record_sessions_percent:0}),t._remote_settings_strict_disabled=!0)};if(!n.AbortController)return K.critical(`Remote settings unavailable: missing minimum required APIs`),r(),Promise.resolve();var a=this.get_api_host(`settings`)+`/`+this.get_config(`api_routes`).settings,o={$lib_version:i.LIB_VERSION,mp_lib:`web`,sdk_config:`1`},s=G.HTTPBuildQuery(o),c=a+`?`+s,l=new AbortController,u=setTimeout(function(){l.abort()},500),d={method:`GET`,headers:{Authorization:`Basic `+btoa(t.get_config(`token`)+`:`)},signal:l.signal};return n.fetch(c,d).then(function(e){if(clearTimeout(u),!e.ok){K.critical(`Network response was not ok`),r();return}return e.json()}).then(function(e){if(e&&e.sdk_config&&e.sdk_config.config){var n=e.sdk_config.config,i={};G.each(n,function(e,t){Yx.hasOwnProperty(t)&&(i[t]=e)}),G.isEmptyObject(i)?(K.critical(`No valid config keys found in remote settings.`),r()):t.set_config(i)}else r()}).catch(function(e){clearTimeout(u),K.critical(`Failed to fetch remote settings`,e),r()})},Q.prototype._execute_array=function(e){var t,n=[],r=[],i=[];G.each(e,function(e){e&&(t=e[0],G.isArray(t)?i.push(e):typeof e==`function`?e.call(this):G.isArray(e)&&t===`alias`?n.push(e):G.isArray(e)&&t.indexOf(`track`)!==-1&&typeof this[t]==`function`?i.push(e):r.push(e))},this);var a=function(e,t){G.each(e,function(e){if(G.isArray(e[0])){var n=t;G.each(e,function(e){n=n[e[0]].apply(n,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};a(n,this),a(r,this),a(i,this)},Q.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},Q.prototype.get_batcher_configs=function(){var e=`__mpq_`+this.get_config(`token`);return this._batcher_configs=this._batcher_configs||{events:{type:`events`,api_name:`track`,queue_key:e+`_ev`},people:{type:`people`,api_name:`engage`,queue_key:e+`_pp`},groups:{type:`groups`,api_name:`groups`,queue_key:e+`_gr`}},this._batcher_configs},Q.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=G.bind(function(e){return new F_(e.queue_key,{libConfig:this.config,errorReporter:this.get_config(`error_reporter`),sendRequestFunc:G.bind(function(t,n,r){var i=this.get_config(`api_routes`);this._send_request(this.get_api_host(e.api_name)+`/`+i[e.api_name],this._encode_data_for_request(t),n,this._prepare_callback(r,t))},this),beforeSendHook:G.bind(function(t){var n=this._run_hook(`before_send_`+e.type,t);return n?n[0]:null},this),stopAllBatchingFunc:G.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config(`batch_autostart`)&&this.start_batch_senders()},Q.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,G.each(this.request_batchers,function(e){e.start()}))},Q.prototype.stop_batch_senders=function(){this._batch_requests=!1,G.each(this.request_batchers,function(e){e.stop(),e.clear()})},Q.prototype.push=function(e){this._execute_array([e])},Q.prototype.enable=function(e){var t,n,r,i;if(e===void 0)this._flags.disable_all_events=!1;else{for(t={},n=[],r=0;r<e.length;r++)t[e[r]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||n.push(this.__disabled_events[i]);this.__disabled_events=n}},Q.prototype.disable=function(e){e===void 0?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},Q.prototype._encode_data_for_request=function(e){var t=n_(e);return this.get_config(`api_payload_format`)===zx&&(t=G.base64Encode(t)),{data:t}},Q.prototype._track_or_batch=function(e,t){var n=G.truncate(e.data,255),r=e.endpoint,i=e.batcher,a=e.should_send_immediately,o=e.send_request_options||{};t||=e_;var s=!0,c=G.bind(function(){return o.skip_hooks||(n=this._run_hook(`before_send_`+e.type,n),n&&=n[0]),n?(K.log(`MIXPANEL REQUEST:`),K.log(n),this._send_request(r,this._encode_data_for_request(n),o,this._prepare_callback(t,n))):null},this);return this._batch_requests&&!a?i.enqueue(n).then(function(e){e?t(1,n):c()}):s=c(),s&&n},Q.prototype.track=h_(function(e,t,n,r){var i;if(!(n&&n.skip_hooks)){if(i=this._run_hook(`before_track`,e,t),i===null)return;e=i[0],t=i[1]}!r&&typeof n==`function`&&(r=n,n=null),n||={};var a=n.transport;a&&(n.transport=a);var o=n.send_immediately;if(typeof r!=`function`&&(r=e_),G.isUndefined(e)){this.report_error(`No event name provided to mixpanel.track`);return}if(this._event_is_disabled(e)){r(0);return}t=G.extend({},t),t.token=this.get_config(`token`);var s=this.persistence.remove_event_timer(e);if(!G.isUndefined(s)){var c=new Date().getTime()-s;t.$duration=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var l=this.get_config(`track_marketing`)?G.info.marketingParams():{};t=G.extend({},G.info.properties({mp_loader:this.get_config(`mp_loader`)}),l,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var u=this.get_config(`property_blacklist`);if(G.isArray(u)?G.each(u,function(e){delete t[e]}):this.report_error(`Invalid value for property_blacklist config: `+u),i=this._run_hook(`on_track`,e,t),i!==null){e=i[0],t=i[1],this._start_recording_on_event(e,t);var d={event:e,properties:t};return i=this._track_or_batch({type:`events`,data:d,endpoint:this.get_api_host(`events`)+`/`+this.get_config(`api_routes`).track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:n},r),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}}),Q.prototype.set_group=h_(function(e,t,n){G.isArray(t)||(t=[t]);var r={};return r[e]=t,this.register(r),this.people.set(e,t,n)}),Q.prototype.add_group=h_(function(e,t,n){var r=this.get_property(e),i={};return r===void 0?(i[e]=[t],this.register(i)):r.indexOf(t)===-1&&(r.push(t),i[e]=r,this.register(i)),this.people.union(e,t,n)}),Q.prototype.remove_group=h_(function(e,t,n){var r=this.get_property(e);if(r!==void 0){var i=r.indexOf(t);i>-1&&(r.splice(i,1),this.register({group_key:r})),r.length===0&&this.unregister(e)}return this.people.remove(e,t,n)}),Q.prototype.track_with_groups=h_(function(e,t,n,r){var i=G.extend({},t||{});return G.each(n,function(e,t){e!=null&&(i[t]=e)}),this.track(e,i,r)}),Q.prototype._create_map_key=function(e,t){return e+`_`+JSON.stringify(t)},Q.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},Q.prototype.get_group=function(e,t){var n=this._create_map_key(e,t),r=this._cached_groups[n];return(r===void 0||r._group_key!==e||r._group_id!==t)&&(r=new yx,r._init(this,e,t),this._cached_groups[n]=r),r},Q.prototype.track_pageview=h_(function(e,t){typeof e!=`object`&&(e={}),t||={};var n=t.event_name||`$mp_web_page_view`,r=G.extend(G.info.mpPageViewProperties(),G.info.campaignParams(),G.info.clickParams()),i=G.extend({},r,e);return this.is_recording_heatmap_data()&&(i.$captured_for_heatmap=!0),this.track(n,i)}),Q.prototype.track_links=function(e,t,n){return this._track_dom.call(this,cx,arguments)},Q.prototype.track_forms=function(e,t,n){return this._track_dom.call(this,lx,arguments)},Q.prototype.time_event=function(e){if(G.isUndefined(e)){this.report_error(`No event name provided to mixpanel.time_event`);return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var Qx={persistent:!0},$x=function(e){var t=G.isObject(e)?e:G.isUndefined(e)?{}:{days:e};return G.extend({},Qx,t)};Q.prototype.register=function(e,t){var n=this._run_hook(`before_register`,e,t);if(n!==null){e=n[0],t=n[1];var r=$x(t);r.persistent?this.persistence.register(e,r.days):G.extend(this.unpersisted_superprops,e)}},Q.prototype.register_once=function(e,t,n){var r=this._run_hook(`before_register_once`,e,t,n);if(r!==null){e=r[0],t=r[1],n=r[2];var i=$x(n);i.persistent?this.persistence.register_once(e,t,i.days):(t===void 0&&(t=`None`),G.each(e,function(e,n){(!this.unpersisted_superprops.hasOwnProperty(n)||this.unpersisted_superprops[n]===t)&&(this.unpersisted_superprops[n]=e)},this))}},Q.prototype.unregister=function(e,t){var n=this._run_hook(`before_unregister`,e,t);n!==null&&(e=n[0],t=n[1],t=$x(t),t.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},Q.prototype._register_single=function(e,t){var n={};n[e]=t,this.register(n)},Q.prototype.identify=function(e,t,n,r,i,a,o,s){var c=this._run_hook(`before_identify`,e);if(c===null)return-1;e=c[0];var l=this.get_distinct_id();if(e&&l!==e){if(typeof e==`string`&&e.indexOf(Vx)===0)return this.report_error(`distinct_id cannot have $device: prefix`),-1;this.register({$user_id:e})}if(!this.get_property(`$device_id`)){var u=l;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},``)}e!==l&&e!==this.get_property(Ax)&&(this.unregister(Ax),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,n,r,i,a,o,s),e!==l&&this.track(`$identify`,{distinct_id:e,$anon_distinct_id:l},{skip_hooks:!0}),e!==l&&this.flags.fetchFlags().catch(function(){K.error(`[flags] Error fetching flags during identify`)})},Q.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=G.UUID();this.register_once({distinct_id:Vx+e,$device_id:e},``),this._check_and_start_session_recording(),this.flags.reset()},Q.prototype.get_distinct_id=function(){return this.get_property(`distinct_id`)},Q.prototype.alias=function(e,t){if(e===this.get_property(kx))return this.report_error(`Attempting to create alias for existing People user - aborting.`),-2;var n=this;return G.isUndefined(t)&&(t=this.get_distinct_id()),e===t?(this.report_error(`alias matches current distinct_id - skipping api call.`),this.identify(e),-1):(this._register_single(Ax,e),this.track(`$create_alias`,{alias:e,distinct_id:t},{skip_hooks:!0},function(){n.identify(e)}))},Q.prototype.name_tag=function(e){this._register_single(`mp_name_tag`,e)},Q.prototype.set_config=function(e){G.isObject(e)&&(G.extend(this.config,e),e.batch_size&&G.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config(`persistence_name`)||(this.config.persistence_name=this.config.cookie_name),this.get_config(`disable_persistence`)||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),i.DEBUG=i.DEBUG||this.get_config(`debug`),(`autocapture`in e||`record_heatmap_data`in e)&&this.autocapture&&this.autocapture.init(),G.isObject(e.hooks)&&(this.hooks={},G.each(e.hooks,function(e,t){if(G.isFunction(e))this.hooks[t]=[e];else if(G.isArray(e)){this.hooks[t]=[];for(var n=0;n<e.length;n++)G.isFunction(e[n])||K.critical(`Invalid hook added. Hook is not a function`),this.hooks[t].push(e[n])}else K.critical(`Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.`)},this)))},Q.prototype.get_config=function(e){return this.config[e]},Q.prototype._run_hook=function(e){var t=vg.call(arguments,1);return G.each(this.hooks[e],function(n){if(t===null)return null;var r=n.apply(this,t);r===void 0?(this.report_error(e+` hook did not return a valid value`),t=null):(G.isArray(r)||(r=[r]),t.splice.apply(t,[0,r.length].concat(r)))},this),t},Q.prototype.get_property=function(e){return this.persistence.load_prop([e])},Q.prototype.get_api_host=function(e){return this.get_config(`api_hosts`)[e]||this.get_config(`api_host`)},Q.prototype.toString=function(){var e=this.get_config(`name`);return e!==Rx&&(e=Rx+`.`+e),e},Q.prototype._event_is_disabled=function(e){return G.isBlockedUA(Tg)||this._flags.disable_all_events||G.include(this.__disabled_events,e)},Q.prototype._gdpr_init=function(){this.get_config(`opt_out_tracking_persistence_type`)===`localStorage`&&G.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:`cookie`})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:`cookie`})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:`cookie`,enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config(`opt_out_tracking_by_default`)||G.cookie.get(`mp_optout`))&&(G.cookie.remove(`mp_optout`),this.opt_out_tracking({clear_persistence:this.get_config(`opt_out_persistence_by_default`)}))},Q.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else if(e&&e.enable_persistence)t=!1;else return;!this.get_config(`disable_persistence`)&&this.persistence.disabled!==t&&this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},Q.prototype._gdpr_call_func=function(e,t){return t=G.extend({track:G.bind(this.track,this),persistence_type:this.get_config(`opt_out_tracking_persistence_type`),cookie_prefix:this.get_config(`opt_out_tracking_cookie_prefix`),cookie_expiration:this.get_config(`cookie_expiration`),cross_site_cookie:this.get_config(`cross_site_cookie`),cross_subdomain_cookie:this.get_config(`cross_subdomain_cookie`),cookie_domain:this.get_config(`cookie_domain`),secure_cookie:this.get_config(`secure_cookie`),ignore_dnt:this.get_config(`ignore_dnt`)},t),G.localStorage.is_supported()||(t.persistence_type=`cookie`),e(this.get_config(`token`),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},Q.prototype.opt_in_tracking=function(e){e=G.extend({enable_persistence:!0},e),this._gdpr_call_func(d_,e),this._gdpr_update_persistence(e)},Q.prototype.opt_out_tracking=function(e){e=G.extend({clear_persistence:!0,delete_user:!0},e),e.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(f_,e),this._gdpr_update_persistence(e)},Q.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(p_,e)},Q.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(m_,e)},Q.prototype.clear_opt_in_out_tracking=function(e){e=G.extend({enable_persistence:!0},e),this._gdpr_call_func(v_,e),this._gdpr_update_persistence(e)},Q.prototype.report_error=function(e,t){K.error.apply(K.error,arguments);try{!t&&!(e instanceof Error)&&(e=Error(e)),this.get_config(`error_reporter`)(e,t)}catch(e){K.error(e)}},Q.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},Q.prototype.remove_hook=function(e,t){var n;this.hooks[e]&&(n=this.hooks[e].indexOf(t),n===-1?K.log(`remove_hook failed. Matching hook was not found`):this.hooks[e].splice(n,1))};var $=Q.prototype;$.init=$.init,$.reset=$.reset,$.enable=$.enable,$.disable=$.disable,$.time_event=$.time_event,$.track=$.track,$.track_links=$.track_links,$.track_forms=$.track_forms,$.track_pageview=$.track_pageview,$.register=$.register,$.register_once=$.register_once,$.unregister=$.unregister,$.identify=$.identify,$.alias=$.alias,$.name_tag=$.name_tag,$.set_config=$.set_config,$.get_config=$.get_config,$.get_api_host=$.get_api_host,$.get_property=$.get_property,$.get_distinct_id=$.get_distinct_id,$.toString=$.toString,$.opt_out_tracking=$.opt_out_tracking,$.opt_in_tracking=$.opt_in_tracking,$.has_opted_out_tracking=$.has_opted_out_tracking,$.has_opted_in_tracking=$.has_opted_in_tracking,$.clear_opt_in_out_tracking=$.clear_opt_in_out_tracking,$.get_group=$.get_group,$.set_group=$.set_group,$.add_group=$.add_group,$.remove_group=$.remove_group,$.add_hook=$.add_hook,$.remove_hook=$.remove_hook,$.track_with_groups=$.track_with_groups,$.start_batch_senders=$.start_batch_senders,$.stop_batch_senders=$.stop_batch_senders,$.start_session_recording=$.start_session_recording,$.stop_session_recording=$.stop_session_recording,$.pause_session_recording=$.pause_session_recording,$.resume_session_recording=$.resume_session_recording,$.get_session_recording_properties=$.get_session_recording_properties,$.get_session_replay_url=$.get_session_replay_url,$.get_tab_id=$.get_tab_id,$.DEFAULT_API_ROUTES=Jx,$.__get_recorder=$.__get_recorder,$.__get_recording_init_promise=$.__get_recording_init_promise,Z.prototype.properties=Z.prototype.properties,Z.prototype.update_search_keyword=Z.prototype.update_search_keyword,Z.prototype.update_referrer_info=Z.prototype.update_referrer_info,Z.prototype.get_cross_subdomain=Z.prototype.get_cross_subdomain,Z.prototype.clear=Z.prototype.clear;var eS={},tS=function(){G.each(eS,function(e,t){t!==Rx&&(Fx[t]=e)}),Fx._=G},nS=function(){Fx.init=function(e,t,r){if(r)return Fx[r]||(Fx[r]=eS[r]=Zx(e,t,r),Fx[r]._loaded()),Fx[r];var i=Fx;eS[Rx]?i=eS[Rx]:e&&(i=Zx(e,t,Rx),i._loaded(),eS[Rx]=i),Fx=i,Nx===Lx&&(n[Rx]=Fx),tS()}},rS=function(){function e(){e.done||(e.done=!0,Xx=!0,Kx=!1,G.each(eS,function(e){e._dom_loaded()}))}function t(){try{W.documentElement.doScroll(`left`)}catch{setTimeout(t,1);return}e()}if(W.addEventListener)W.readyState===`complete`?e():W.addEventListener(`DOMContentLoaded`,e,!1);else if(W.attachEvent){W.attachEvent(`onreadystatechange`,e);var r=!1;try{r=n.frameElement===null}catch{}W.documentElement.doScroll&&r&&t()}G.register_event(n,`load`,e,!0)};function iS(e){return Px=e,Nx=Ix,Fx=new Q,nS(),Fx.init(),rS(),Fx}function aS(e,t){t()}var oS=iS(aS),sS=e=>oS.init(e),cS={trackEvent:(...e)=>{oS.track(...e)},trackPageView:(e,t)=>{oS.track_pageview({page:e,...t&&{props:t}})}};export{sS as initMixpanel,cS as tracking};