�����JFIF��XX����������    $.' ",#(7),01444'9=82<.342  2!!22222222222222222222222222222222222222222222222222�����"����4���������������������������� ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������,�PG"Z_�4�˷����kjز�Z�,F+��_z�,�© �����zh6�٨�ic�fu������������������������������������#ډb���_�N��?�����������wQ���5-�~�I���8���������������������������������TK<5o�Iv-������������������k�_U_������������������������������~b�M��d��������Ӝ�U�Hh��?]��E�w��Q���k�{��_}qFW7HTՑ��Y��F�����?_�'ϔ��_�Ջt������������������������=||I �����6�έ"�����D���/[�k�9����Y�8������ds|\���Ҿp6�Ҵ���]��.����6���z<�v��@]�i%������������������������$j��~����g��J>��no����pM[me�i$[�����������s�o�ᘨ�˸ nɜG-�ĨU�ycP���3.DB�li�;���������������������hj���x����7Z^�N�h��������N3u{�:j�����x�힞��#M��&��jL P@��_���� P�������������������&��o8��������9������@Sz���6�t7#O�ߋ �����s}Yf�T������lmr����Z)'N��k�۞p�����w\�T���������������ȯ?�8`���O��i{wﭹW�[�r�� ��Q4F�׊������3m&L�=��h3�������z~��#����\�l :�F,j@�� ʱ�wQT����8�"kJO����6�֚l������������������}����R�>ډK���]��y����&����p�}b������;N�1�m�r$����|��7�>e�@���B�TM*-i�H��g�D�)� E�m�|�ؘbҗ�a���Ҿ����������������t4�����o���G��*oCN�rP���Q��@z,|?W[0���������:�n,j���WiE��W������$~/�hp\��?��{(�0���+�Y8rΟ�+����>S-S���������������VN;���}�s?.����� w��9��˟<���Mq4�Wv'������{)0�1mB����V����W[��������8�/<� �%���wT^�5���b��)iM� p�g�N�&ݝ������������VO~��q���u���9��� ����!��J27�����$����O-���! �:���%H��� ـ�������y�ΠM=t{!S�� �oK8�������t<����è��������:a��������[������ա�H���~��w��Qz`�p����o�^ ������Q��n����� �,uu�C��$ ^���,�������8�#��:�6��e�|~�����������!�3��3.�\0�����q��o�4`.|� ����y�Q�`~;�d�ׯ,��O�Zw�������`73�v�܋�<�����Ȏ�� ـ4k��5�K�a�u�=9Yd��$>x�A�&�� j0� ���vF��� Y���|�y��� ~�6�@c��1vOp��������Ig�����4��l�OD�����L����� R���c���j�_�uX�6��3?nk��Wy�f;^*B� ��@���~a�`��Eu�������+�����6�L��.ü>��}y���}_�O�6�͐�:�Yr���G�X��kG������l^w����������~㒶sy���Iu�!���� W ��X��N�7BV��O��!X�2����wvG�R�f�T#�����t�/?���%8�^�W�aT����G�cL�M���I��(J����1~�8�?aT ���]����AS�E��(��*E}� 2������#I/�׍qz��^t�̔���������b�Yz4x����t�){ OH�����+(E��A&�N�������XT��o��"�XC����'���)}�J�z�p� ����~5�}�^����+�6����w��c��Q�|�Lp�d�H��}�(�.|����k��c4^�����"�����Z?ȕ ��a<�������L�!0�39C� �Eu�����C�F�Ew�ç ;�n?�*o���B�8�bʝ���'#Rqf����M}7����]�������s2tcS{�\icTx;�\��7K���P������ʇ Z O-��~�������c>"��?��������P�����E��O�8��@�8��G��Q�g�a�Վ���󁶠��䧘��_%#r�>�����1�z�a���eb��qcP��ѵ��n���#L��� =��׀t� L�7�`�����V����A{�C:�g���e@�����w1 Xp�3�c3�ġ�������p��M"'-�@n4���fG���B3�DJ�8[Jo�ߐ���gK)ƛ��$���� �������8�3�����+���� �����6�ʻ���� ���S�kI�*KZlT _`�������?��K�����QK�d���������B`�s}�>���`������*�>��,*@J�d�oF*�����弝��O}�k��s��]��y�ߘ�������c1G�V���<=�7��7����6��q�PT��tXԀ�!9*4�4Tހ���3XΛex�46�������Y��D ����� ����BdemDa����\�_l,����G�/���֌7���Y�](�xTt^%�GE�����4�}bT����ڹ�����;��Y)���B�Q��u��>J/J ���⮶.�XԄ��j�ݳ������+E��d ���r�5�_D�����1 ���o�� �B�x�΢�#����<��W�����8���R6�@���g�M�.��� dr�D��>(otU��@�x=��~v���2� ӣ�d�oBd�����3�eO�6�㣷����������ݜ�6��6Y��Qz`����S��{���\P��~z m5{J/L��1������<�e�ͅPu���b�]�ϔ��������'�������f�b� Zpw��c`"��i���BD@:)ִ�:�]��h���v�E��w���T�l�������P����"Ju�}��وV ��J��G6��. J/�Qgl߭�e�����@�z�Zev2u����)]կ���������7x�������s�M�-<ɯ�c��r��v�����@��$�ޮ}lk���a����'����>x��O\�Z������Fu>������ck#��&:��`�$��ai�>2Δ����l���oF[h�������lE�ܺ�Π���k:)���`������� $[6�����9�����kOw�\|�����8}������ބ:��񶐕��������I�A1/���=�2[�,�!��.}gN#�u����b���� ~���������݊��}34q�����d�E��L��������c��$���"�[q�U�硬g^��%B ��z���r�p�������J�ru%v\h�����1Y�ne`������ǥ:g����pQM~�^��Xi� ��`S�:V2������9.�P���V������?B�k�� ��������AEvw%�_�9C�Q����wKekP�ؠ�\������;Io d�{ ߞo�c1eP�����\� `����E=���@K<�Y��������eڼ�J����w����{av�F�'�M�@��������������/J��+9p����|]���������Iw &`���8���&�M�hg���[�{�������Xj���%��Ӓ�������������������$��(�����ʹN�������<>�I���RY�����K2�NPlL�ɀ�)��&e��������B+ь����(������������������� � �JTx����_?EZ� }@���� 6�U���뙢ط�z��dWI��n` D����噥�[��uV��"�G&�����Ú����2�g�}&m���������������������?ċ���"����Om#�������������������������� ��{���������������������ON��"S�X���Ne��ysQ���@�������������Fn��Vg�����dX�~nj����������������������]J�<�K]:����FW���b�������62����������=��5f����JKw����bf�X������������������������55��~J �%^�������:�-�QIE��P��v�nZum� z � ~ə ���� ���ة����;�f��\v�������g�8�1��f2�������������������������4;�V���ǔ�)�������������������9���1\������������������������������c��v�/'Ƞ�w������������������$�4�R-��t����������������������������������� e�6�/�ġ �̕Ecy�J���u�B���<�W�ַ~�w[B1L۲�-JS΂�{���΃�������������������������������������������A��20�c#���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������@���� 0!1@AP"#2Q`$3V�%45a6�FRUq����� ������^7ׅ,$n��������+��F�`��2X'��0vM��p�L=�������5��8������u�p~���.�`r�����\����O��,ư�0oS ��_�M�����l���4�kv\JSd���x���SW�<��Ae�IX����������$I���w�:S���y���›R��9�Q[���,�5�;�@]�%���u�@ *ro�lbI �� ��+���%m:�͇ZV�����u�̉����θau<�fc�.����{�4Ա� �Q����*�Sm��8\ujqs]{kN���)qO�y�_*dJ�b�7���yQqI&9�ԌK!�M}�R�;�������S�T���1���i[U�ɵz�]��U)V�S6���3$K{��ߊ<�(� E]Զ[ǼENg�����'�\?#)Dkf��J���o��v���'�%ƞ�&K�u��!��b�35LX�Ϸ��63$K�a�;�9>,R��W��3�3� d�JeTYE.Mϧ��-�o�j3+y��y^�c�������VO�9NV\nd�1 ��!͕_)a�v;����թ�M�lWR1��)El��P;��yوÏ�u 3�k�5Pr6<�⒲l�!˞*��u־�n�!�l:����UNW ��%��Chx8vL'��X�@��*��)���̮��ˍ��� ����D-M�+J�U�kvK����+�x8��cY������?�Ԡ��~3mo��|�u@[XeY�C�\Kp�x8�oC�C�&����N�~3-H���� ��MX�s�u<`���~"WL��$8ξ��3���a�)|:@�m�\���^�`�@ҷ)�5p+��6���p�%i)P M���ngc�����#0Aruz���RL+xSS?���ʮ}()#�t��mˇ!��0}}y����<�e� �-ή�Ԩ��X������ MF���ԙ~l L.3���}�V뽺�v������멬��Nl�)�2����^�Iq��a��M��qG��T�����c3#������3U�Ǎ���}��לS�|qa��ڃ�+���-��2�f����/��bz��ڐ�� �ݼ[2�ç����k�X�2�* �Z�d���J�G����M*9W���s{��w���T��x��y,�in�O�v��]���n����P�$��JB@=4�OTI�n��e�22a\����q�d���%�$��(���:���: /*�K[PR�fr\nڙdN���F�n�$�4��[�� U�zƶ����� �mʋ���,�ao�u 3�z� �x��Kn����\[��VFmbE;�_U��&V�Gg�]L�۪&#n%�$ɯ��dG���D�TI=�%+AB�Ru#��b4�1�»x�cs�YzڙJG��f��Il���d�eF'T� iA��T���uC�$����Y��H?����[!G`}���ͪ� �纤Hv\������j�Ex�K���!���OiƸ�Yj�+u-<���'q����uN�*�r\��+�]���<�wOZ.fp�ێ��,-*)V?j-kÊ#�`�r��dV����(�ݽBk�����G�ƛk�QmUڗe��Z���f}|����8�8��a���i��3'J�����~G_�^���d�8w������ R�`(�~�.��u���l�s+g�bv���W���lGc}��u���afE~1�Ue������Z�0�8�=e�� f@/�jqEKQQ�J���oN��J���W5~M>$6�Lt�;$ʳ{���^��6�{����v6���ķܰg�V�cnn �~z�x�«�,2�u�?cE+Ș�H؎�%�Za�)���X>uW�Tz�Nyo����s���FQƤ��$��*�&�LLXL)�1�" L��eO��ɟ�9=���:t��Z���c��Ž���Y?�ӭV�wv�~,Y��r�ۗ�|�y��GaF�����C�����.�+� ���v1���fήJ�����]�S��T��B��n5sW}y�$��~z�'�c ��8 ��� ,! �p��VN�S��N�N�q��y8z˱�A��4��*��'������2n<�s���^ǧ˭P�Jޮɏ�U�G�L�J�*#��<�V��t7�8����TĜ>��i}K%,���)[��z�21z ?�N�i�n1?T�I�R#��m-�����������������1����lA�`��fT5+��ܐ�c�q՝��ʐ��,���3�f2U�եmab��#ŠdQ�y>\��)�SLY����w#��.���ʑ�f��� ,"+�w�~�N�'�c�O�3F�������N<���)j��&��,-� �љ���֊�_�zS���TǦ����w�>��?�������n��U仆�V���e�����0���$�C�d���rP �m�׈e�Xm�Vu� �L��.�bֹ��� �[Դaզ���*��\y�8�Է:�Ez\�0�Kq�C b��̘��cө���Q��=0Y��s�N��S.����3.���O�o:���#���v7�[#߫ ��5�܎�L���Er4���9n��COWlG�^��0k�%<���ZB���aB_���������'=��{i�v�l�$�uC���mƎҝ{�c㱼�y]���W�i ��ߧc��m�H� m�"�"�����;Y�ߝ�Z�Ǔ�����:S#��|}�y�,/k�Ld� TA�(�AI$+I3��;Y*���Z��}|��ӧO��d�v��..#:n��f>�>���ȶI�TX��� 8��y����"d�R�|�)0���=���n4��6ⲑ�+��r<�O�܂~zh�z����7ܓ�HH�Ga롏���nCo�>������a ���~]���R���̲c?�6(�q�;5%� |�uj�~z8R�=X��I�V=�|{v�Gj\gc��q����z�؋%M�ߍ����1y��#��@f^���^�>N������#x#۹��6�Y~�?�dfPO��{��P�4��V��u1E1J �*|���%����JN��`eWu�zk M6���q t[�� ��g�G���v��WIG��u_ft����5�j�"�Y�:T��ɐ���*�;� e5���4����q$C��2d�}���� _S�L#m�Yp��O�.�C�;��c����Hi#֩%+) �Ӎ��ƲV���SYź��g |���tj��3�8���r|���V��1#;.SQ�A[���S������#���`n�+���$��$�I �P\[�@�s��(�ED�z���P��])8�G#��0B��[ى��X�II�q<��9�~[Z멜�Z�⊔IWU&A>�P~�#��dp<�?����7���c��'~���5 ��+$���lx@�M�dm��n<=e�dyX��?{�|Aef ,|n3�<~z�ƃ�uۧ�����P��Y,�ӥQ�*g�#먙R�\���;T��i,��[9Qi歉����c>]9�� ��"�c��P�� �Md?٥��If�ت�u��k��/����F��9�c*9��Ǎ:�ØF���z�n*�@|I�ށ9����N3{'��[�'ͬ�Ҳ4��#}��!�V� Fu��,�,mTIk���v C�7v���B�6k�T9��1�*l� '~��ƞF��lU��'�M ����][ΩũJ_�{�i�I�n��$����L�� j��O�dx�����kza۪��#�E��Cl����x˘�o�����V���ɞ�ljr��)�/,�߬h�L��#��^��L�ф�,íMƁe�̩�NB�L�����iL����q�}��(��q��6IçJ$�W�E$��:������=#����(�K�B����zђ <��K(�N�۫K�w��^O{!����)��H���>x�������lx�?>Պ�+�>�W���,Ly!_�D���Ō�l���Q�!�[ �S����J��1��Ɛ�Y}��b,+�Lo�x�ɓ)����=�y�oh�@�꥟/��I��ѭ=��P�y9��� �ۍYӘ�e+�p�Jnϱ?V\SO%�(�t� ���=?MR�[Ș�����d�/ ��n�l��B�7j� ��!�;ӥ�/�[-���A�>��dN�sLj ��,ɪv��=1c�.SQ�O3�U���ƀ�ܽ�E����������̻��9G�ϷD�7(�}��Ävӌ\��y�_0[w ���<΍>����a_��[0+�L��F.�޺��f�>oN�T����q;���y\��bՃ��y�jH�<|q-eɏ�_?_9+P���Hp$�����[ux�K w�Mw��N�ی'$Y2�=��q���KB��P��~�������Yul:�[<����F1�2�O���5=d����]Y�sw:���Ϯ���E��j,_Q��X��z`H1,#II ��d�wr��P˂@�ZJV����y$�\y�{}��^~���[:N����ߌ�U�������O��d�����ؾe��${p>G��3c���Ė�lʌ�� ת��[��`ϱ�-W����dg�I��ig2��� ��}s ��ؤ(%#sS@���~���3�X�nRG�~\jc3�v��ӍL��M[JB�T��s3}��j�Nʖ��W����;7���ç?=X�F=-�=����q�ߚ���#���='�c��7���ڑW�I(O+=:uxq�������������e2�zi+�kuG�R��������0�&e�n���iT^J����~\jy���p'dtG��s����O��3����9* �b#Ɋ�� p������[Bws�T�>d4�ۧs���nv�n���U���_�~,�v����ƜJ1��s�� �QIz���)�(lv8M���U=�;����56��G���s#�K���MP�=��LvyGd��}�VwWBF�'�à �?MH�U�g2�� ����!�p�7Q��j��ڴ����=��j�u��� Jn�A s���uM������e��Ɔ�Ҕ�!)�'��8Ϣ�ٔ���ޝ(��Vp���צ֖d=�IC�J�Ǡ{q������kԭ�߸���i��@K����u�|�p=..�*+����x�����z[Aqġ#s2a�Ɗ���RR�)*HRsi�~�a &f��M��P����-K�L@��Z��Xy�'x�{}��Zm+���:�)�) IJ�-i�u���� ���ܒH��'��L(7�y�GӜq���� j��� 6ߌg1�g�o���,kر���tY�?W,���p���e���f�OQS��!K�۟cҒA�|ս�j�>��=⬒��˧L[�� �߿2JaB~R��u�:��Q�] �0H~���]�7��Ƽ�I���(�}��cq '�ήET���q�?f�ab���ӥvr� �)o��-Q��_'����ᴎo��K������;��V���o��%���~OK ����*��b�f:���-ťIR��`B�5!RB@���ï�� �u �̯e\�_U�_������� g�ES��3��������QT��a�����x����U<~�c?�*�#]�MW,[8O�a�x��]�1bC|踤�P��lw5V%�)�{t�<��d��5���0i�XSU��m:��Z�┵�i�"��1�^B�-��P�hJ��&)O��*�D��c�W��vM��)����}���P��ܗ-q����\mmζZ-l@�}��a��E�6��F�@��&Sg@���ݚ�M����� ȹ 4����#p�\H����dYDo�H���"��\��..R�B�H�z_�/5˘����6��KhJR��P�mƶi�m���3��,#c�co��q�a)*P�t����R�m�k�7x�D�E�\Y�閣_X�<���~�)���c[[�BP����6�Yq���S��0����%_����;��Àv�~�| VS؇ ��'O0��F0��\���U�-�d@�����7�SJ*z��3n��y��P����O����������m�~�P�3|Y��ʉr#�C�<�G~�.,! ���bqx���h~0=��!ǫ�jy����l��O,�[B��~��|9��ٱ����Xly�#�i�B��g%�S��������tˋ���e���ې��\[d�t)��.+u�|1 ������#�~Oj����hS�%��i.�~X���I�H�m��0n���c�1uE�q��cF�RF�o���7� �O�ꮧ� ���ۛ{��ʛi5�rw?׌#Qn�TW��~?y$��m\�\o����%W� ?=>S�N@�� �Ʈ���R����N�)�r"C�:��:����� �����#��qb��Y�. �6[��2K����2u�Ǧ�HYR��Q�MV��� �G�$��Q+.>�����nNH��q�^��� ����q��mM��V��D�+�-�#*�U�̒ ���p욳��u:�������IB���m����PV@O���r[b= �� ��1U�E��_Nm�yKbN�O���U�}�the�`�|6֮P>�\2�P�V���I�D�i�P�O;�9�r�mAHG�W�S]��J*�_�G��+kP�2����Ka�Z���H�'K�x�W�MZ%�O�YD�Rc+o��?�q��Ghm��d�S�oh�\�D�|:W������UA�Qc yT�q��������~^�H��/��#p�CZ���T�I�1�ӏT����4��"�ČZ�����}��`w�#�*,ʹ�� ��0�i��課�Om�*�da��^gJ݅{���l�e9uF#T�ֲ��̲�ٞC"�q���ߍ ոޑ�o#�XZTp����@ o�8��(jd��xw�]�,f���`~��|,s��^����f�1���t��|��m�򸄭/ctr��5s��7�9Q�4�H1꠲BB@�l9@���C�����+�wp�xu�£Yc�9��?`@#�o�mH�s2��)�=��2�.�l����jg�9$�Y�S�%*L������R�Y������7Z���,*=�䷘$�������arm�o�ϰ���UW.|�r�uf����IGw�t����Zwo��~5 ��YյhO+=8fF�)�W�7�L9lM�̘·Y���֘YLf�큹�pRF���99.A �"wz��=E\Z���'a� 2��Ǚ�#;�'}�G���*��l��^"q��+2FQ� hj��kŦ��${���ޮ-�T�٭cf�|�3#~�RJ����t��$b�(R��(����r���dx� >U b�&9,>���%E\� Ά�e�$��'�q't��*�א���ެ�b��-|d���SB�O�O��$�R+�H�)�܎�K��1m`;�J�2�Y~9��O�g8=vqD`K[�F)k�[���1m޼c��n���]s�k�z$@��)!I �x՝"v��9=�ZA=`Ɠi �:�E��)`�7��vI��}d�YI�_ �o�:ob���o ���3Q��&D&�2=�� �Ά��;>�h����y.*ⅥS������Ӭ�+q&����j|UƧ�����}���J0��WW< ۋS�)jQR�j���Ư��rN)�Gű�4Ѷ(�S)Ǣ�8��i��W52���No˓� ۍ%�5brOn�L�;�n��\G����=�^U�dI���8$�&���h��'���+�(������cȁ߫k�l��S^���cƗjԌE�ꭔ��gF���Ȓ��@���}O���*;e�v�WV���YJ\�]X'5��ղ�k�F��b 6R�o՜m��i N�i�����>J����?��lPm�U��}>_Z&�KK��q�r��I�D�Չ~�q�3fL�:S�e>���E���-G���{L�6p�e,8��������QI��h��a�Xa��U�A'���ʂ���s�+טIjP�-��y�8ۈZ?J$��W�P� ��R�s�]��|�l(�ԓ��sƊi��o(��S0���Y� 8�T97.�����WiL��c�~�dxc�E|�2!�X�K�Ƙਫ਼�$((�6�~|d9u+�qd�^3�89��Y�6L�.I�����?���iI�q���9�)O/뚅����O���X��X�V��ZF[�یgQ�L��K1���RҖr@v�#��X�l��F���Нy�S�8�7�kF!A��sM���^rkp�jP�DyS$N���q���nxҍ!U�f�!eh�i�2�m����`�Y�I�9r�6� �TF���C}/�y�^���Η���5d�'��9A-��J��>{�_l+�`��A���[�'��յ�ϛ#w:݅�%��X�}�&�PSt�Q�"�-��\縵�/����$Ɨh�Xb�*�y��BS����;W�ջ_mc�����vt?2}1�;qS�d�d~u:2k5�2�R�~�z+|HE!)�Ǟl��7`��0�<�,�2*���Hl-��x�^����'_TV�gZA�'j� ^�2Ϊ��N7t�����?w�� �x1��f��Iz�C-Ȗ��K�^q�;���-W�DvT�7��8�Z�������� hK�(P:��Q- �8�n�Z���܃e貾�<�1�YT<�,�����"�6{�/ �?�͟��|1�:�#g��W�>$����d��J��d�B���=��jf[��%rE^��il:��B���x���Sּ�1հ��,�=��*�7 fcG��#q� �eh?��2�7�����,�!7x��6�n�LC�4x��},Geǝ�tC.��vS �F�43��zz\��;QYC,6����~;RYS/6���|2���5���v��T��i����������mlv��������&� �nRh^ejR�LG�f���? �ۉҬܦƩ��|��Ȱ����>3����!v��i�ʯ�>�v��オ�X3e���_1z�Kȗ\<������!�8���V��]��?b�k41�Re��T�q��mz��TiOʦ�Z��Xq���L������q"+���2ۨ��8}�&N7XU7Ap�d�X��~�׿��&4e�o�F��� �H�����O���č�c�� 懴�6���͉��+)��v;j��ݷ�� �UV�� i��� j���Y9GdÒJ1��詞�����V?h��l�����l�cGs�ځ�������y�Ac������\V3�? �� ܙg�>qH�S,�E�W�[�㺨�uch�⍸�O�}���a��>�q�6�n6�����N6�q��������N� ���! 1AQaq�0@����"2BRb�#Pr���3C`��Scst���$4D���%Td���� ?�����N����a��3��m���C���w��������xA�m�q�m����m������$����4n淿t'��C"w��zU=D�\R+w�p+Y�T�&�պ@��ƃ��3ޯ?�Aﶂ��aŘ���@-�����Q�=���9D��ռ�ѻ@��M�V��P��܅�G5�f�Y<�u=,EC)�<�Fy'�"�&�չ�X~f��l�KԆV��?�� �W�N����=(� �;���{�r����ٌ�Y���h{�١������jW����P���Tc�����X�K�r��}���w�R��%��?���E��m�� �Y�q|����\lEE4����r���}�lsI�Y������f�$�=�d�yO����p�����yBj8jU�o�/�S��?�U��*������ˍ�0�������u�q�m [�?f����a�� )Q�>����6#������� ?����0UQ����,IX���(6ڵ[�DI�MNލ�c&���υ�j\��X�R|,4��� j������T�hA�e��^���d���b<����n�� �즇�=!���3�^�`j�h�ȓr��jẕ�c�,ٞX����-����a�ﶔ���#�$��]w�O��Ӫ�1y%��L�Y<�wg#�ǝ�̗`�x�xa�t�w��»1���o7o5��>�m뭛C���Uƃߜ}�C���y1Xνm�F8�jI���]����H���ۺиE@I�i;r�8ӭ�����V�F�Շ| ��&?�3|x�B�MuS�Ge�=Ӕ�#BE5G������Y!z��_e��q�р/W>|-�Ci߇�t�1ޯќd�R3�u��g�=0 5��[?�#͏��q�cf���H��{ ?u�=?�?ǯ���}Z��z���hmΔ�BFTW�����<�q��(v� ��!��z���iW]*�J�V�z��gX֧A�q�&��/w���u�gYӘa���; �i=����g:��?2�dž6�ى�k�4�>�Pxs����}������G�9���3 ���)gG�R<>r h�$��'nc�h�P��Bj��J�ҧH� -��N1���N��?��~��}-q!=��_2hc�M��l�vY%UE�@|�v����M2�.Y[|y�"Eï��K�ZF,�ɯ?,q�?v�M 80jx�"�;�9vk�����+ ֧�� �ȺU��?�%�vcV��mA�6��Qg^M�����A}�3�nl� QRN�l8�kkn�'�����(��M�7m9و�q���%ޟ���*h$Zk"��$�9��: �?U8�Sl��,,|ɒ��xH(ѷ����Gn�/Q�4�P��G�%��Ա8�N��!� �&�7�;���eKM7�4��9R/%����l�c>�x;������>��C�:�����t��h?aKX�bhe�ᜋ^�$�Iհ �hr7%F$�E��Fd���t��5���+�(M6�t����Ü�UU|zW�=a�Ts�Tg������dqP�Q����b'�m���1{|Y����X�N��b �P~��F^F:����k6�"�j!�� �I�r�`��1&�-$�Bevk:y���#y�w��I0��x��=D�4��tU���P�ZH��ڠ底taP��6����b>�xa�����Q�#� WeF��ŮNj�p�J* mQ�N�����*I�-*�ȩ�F�g�3 �5��V�ʊ�ɮ�a��5F���O@{���NX��?����H�]3��1�Ri_u��������ѕ�� ����0��� F��~��:60�p�͈�S��qX#a�5>���`�o&+�<2�D����: �������ڝ�$�nP���*)�N�|y�Ej�F�5ټ�e���ihy�Z �>���k�bH�a�v��h�-#���!�Po=@k̆IEN��@��}Ll?j�O������߭�ʞ���Q|A07x���wt!xf���I2?Z��<ץ�T���cU�j��]���陎Ltl �}5�ϓ��$�,��O�mˊ�;�@O��jE��j(�ا,��LX���LO���Ц�90�O �.����a��nA���7������j4 ��W��_ٓ���zW�jcB������y՗+EM�)d���N�g6�y1_x��p�$Lv�:��9�"z��p���ʙ$��^��JԼ*�ϭ����o���=x�Lj�6�J��u82�A�H�3$�ٕ@�=Vv�]�'�qEz�;I˼��)��=��ɯ���x �/�W(V���p�����$ �m�������u�����񶤑Oqˎ�T����r��㠚x�sr�GC��byp�G��1ߠ�w e�8�$⿄����/�M{*}��W�]˷.�CK\�ުx���/$�WP�w���r� |i���&�}�{�X� �>��$-��l���?-z���g����lΆ���(F���h�vS*���b���߲ڡn,|)mrH[���a�3�ר�[1��3o_�U�3�TC�$��(�=�)0�kgP���� ��u�^=��4 �WYCҸ:��vQ�ר�X�à��tk�m,�t*��^�,�}D*�� �"(�I��9R����>`�`��[~Q]�#af��i6l��8���6�:,s�s�N6�j"�A4���IuQ��6E,�GnH��zS�HO�uk�5$�I�4��ؤ�Q9�@��C����wp��BGv[]�u�Ov����0I4���\��y�����Q�Ѹ��~>Z��8�T��a��q�ޣ;z��a���/��S��I:�ܫ_�|������>=Z����8:�S��U�I�J��"IY���8%b8���H��:�QO�6�;7�I�S��J��ҌAά3��>c���E+&jf$eC+�z�;��V����� �r���ʺ������my�e���aQ�f&��6�ND���.:��NT�vm�<- u���ǝ\MvZY�N�NT��-A�>jr!S��n�O 1�3�Ns�%�3D@���`������ܟ 1�^c<���� �a�ɽ�̲�Xë#�w�|y�cW�=�9I*H8�p�^(4���՗�k��arOcW�tO�\�ƍR��8����'�K���I�Q�����?5�>[�}��yU�ײ -h��=��% q�ThG�2�)���"ו3]�!kB��*p�FDl�A���,�eEi�H�f�Ps�����5�H:�Փ~�H�0Dت�D�I����h�F3�������c��2���E��9�H��5�zԑ�ʚ�i�X�=:m�xg�hd(�v����׊�9iS��O��d@0ڽ���:�p�5�h-��t�&���X�q�ӕ,��ie�|���7A�2���O%P��E��htj��Y1��w�Ѓ!����  ���� ࢽ��My�7�\�a�@�ţ�J ��4�Ȼ�F�@o�̒?4�wx��)��]�P��~�����u�����5�����7X ��9��^ܩ�U;Iꭆ 5 �������eK2�7(�{|��Y׎ �V��\"���Z�1� Z�����}��(�Ǝ"�1S���_�vE30>���p;� ΝD��%x�W�?W?v����o�^V�i�d��r[��/&>�~`�9Wh��y�;���R���� ;;ɮT��?����r$�g1�K����A��C��c��K��l:�'��3 c�ﳯ*"t8�~l��)���m��+U,z��`(��>yJ�?����h>��]��v��ЍG*�{`��;y]��I�T� ;c��NU�fo¾h���/$���|NS���1�S�"�H��V���T���4��uhǜ�]�v;���5�͠x��'C\�SBpl���h}�N����� A�Bx���%��ޭ�l��/����T��w�ʽ]D�=����K���ž�r㻠l4�S�O?=�k �M:� ��c�C�a�#ha���)�ѐxc�s���gP�iG���{+���x���Q���I= �� z��ԫ+ �8"�k�ñ�j=|����c ��y��CF��/���*9ж�h{ �?4�o� ��k�m�Q�N�x��;�Y��4膚�a�w?�6�>�e]�����Q�r�:����g�,i"�����ԩA��*M�<�G��b�if��l^M��5�� �Ҩ�{����6J��ZJ�����P�*�����Y���ݛu�_4�9�I8�7���������,^ToR���m4�H��?�N�S�ѕw��/S��甍�@�9H�S�T��t�ƻ���ʒU��*{Xs�@����f������֒Li�K{H�w^���������Ϥm�tq���s� ���ք��f:��o~s��g�r��ט� �S�ѱC�e]�x���a��) ���(b-$(�j>�7q�B?ӕ�F��hV25r[7 Y� }L�R��}����*sg+��x�r�2�U=�*'WS��ZDW]�WǞ�<��叓���{�$�9Ou4��y�90-�1�'*D`�c�^o?(�9��u���ݐ��'PI&� f�Jݮ�������:wS����jfP1F:X �H�9dԯ����˝[�_54 �}*;@�ܨ�� ð�yn�T���?�ןd�#���4rG�ͨ��H�1�|-#���Mr�S3��G�3�����)�.᧏3v�z֑��r����$G"�`j �1t��x0<Ɔ�Wh6�y�6��,œ�Ga��gA����y��b��)���h�D��ß�_�m��ü �gG;��e�v��ݝ�nQ� ��C����-�*��o���y�a��M��I�>�<���]obD��"�:���G�A��-\%LT�8���c�)��+y76���o�Q�#*{�(F�⽕�y����=���rW�\p���۩�c���A���^e6��K������ʐ�cVf5$�'->���ՉN"���F�"�UQ@�f��Gb~��#�&�M=��8�ט�JNu9��D��[̤�s�o�~������� G��9T�tW^g5y$b��Y'��س�Ǵ�=��U-2 #�MC�t(�i� �lj�@Q 5�̣i�*�O����s�x�K�f��}\��M{E�V�{�υ��Ƈ�����);�H����I��fe�Lȣr�2��>��W��I�Ȃ6������i��k�� �5�YOxȺ����>��Y�f5'��|��H+��98pj�n�.O�y�������jY��~��i�w'������l�;�s�2��Y��:'lg�ꥴ)o#'Sa�a�K��Z� �m��}�`169�n���"���x��I ��*+� }F<��cГ���F�P�������ֹ*�PqX�x۩��,� ��N�� �4<-����%����:��7����W���u�`����� $�?�I��&����o��o��`v�>��P��"��l���4��5'�Z�gE���8���?��[�X�7(��.Q�-��*���ތL@̲����v��.5���[��=�t\+�CNܛ��,g�SQnH����}*F�G16���&:�t��4ُ"A��̣��$�b �|����#rs��a�����T�� ]�<�j��B�S�('$�ɻ� �wP;�/�n��?�ݜ��x�F��yUn�~mL*-�������Xf�wd^�a�}��f�,=t�׵i�.2/wpN�Ep8�OР���•��R�FJ� 55TZ��T �ɭ�<��]��/�0�r�@�f��V��V����Nz�G��^���7hZi����k��3�,kN�e|�vg�1{9]_i��X5y7� 8e]�U����'�-2,���e"����]ot�I��Y_��n�(JҼ��1�O ]bXc���Nu�No��pS���Q_���_�?i�~�x h5d'�(qw52] ��'ޤ�q��o1�R!���`ywy�A4u���h<קy���\[~�4�\ X�Wt/� 6�����n�F�a8��f���z �3$�t(���q��q�x��^�XWeN'p<-v�!�{�(>ӽDP7��ո0�y)�e$ٕv�Ih'Q�EA�m*�H��RI��=:��� ���4牢) �%_iN�ݧ�l]� �Nt���G��H�L��� ɱ�g<���1V�,�J~�ٹ�"K��Q�� 9�HS�9�?@��k����r�;we݁�]I�!{ �@�G�[�"��`���J:�n]�{�cA�E����V��ʆ���#��U9�6����j�#Y�m\��q�e4h�B�7��C�������d<�?J����1g:ٳ���=Y���D�p�ц� ׈ǔ��1�]26؜oS�'��9�V�FVu�P�h�9�xc�oq�X��p�o�5��Ա5$�9W�V(�[Ak�aY錎qf;�'�[�|���b�6�Ck��)��#a#a˙��8���=äh�4��2��C��4tm^ �n'c����]GQ$[Wҿ��i���vN�{Fu ��1�gx��1┷���N�m��{j-,��x�� Ūm�ЧS�[�s���Gna���䑴�� x�p 8<������97�Q���ϴ�v�aϚG��Rt�Һ׈�f^\r��WH�JU�7Z���y)�vg=����n��4�_)y��D'y�6�]�c�5̪��\� �PF�k����&�c;��cq�$~T�7j ���nç]�<�g ":�to�t}�159�<�/�8������m�b�K#g'I'.W������6��I/��>v��\�MN��g���m�A�yQL�4u�Lj�j9��#44�t��l^�}L����n��R��!��t��±]��r��h6ٍ>�yҏ�N��fU�� ���� Fm@�8}�/u��jb9������he:A�y�ծw��GpΧh�5����l}�3p468��)U��d��c����;Us/�֔�YX�1�O2��uq�s��`hwg�r~�{ R��mhN��؎*q 42�*th��>�#���E����#��Hv�O����q�}������6�e��\�,Wk�#���X��b>��p}�դ��3���T5��†��6��[��@��P�y*n��|'f�֧>�lư΂�̺����SU�'*�q�p�_S�����M�� '��c�6������m�� ySʨ;M��r���Ƌ�m�Kxo,���Gm�P��A�G�:��i��w�9�}M(�^�V��$ǒ�ѽ�9���|���� �a����J�SQ�a���r�B;����}���ٻ֢�2�%U���c�#�g���N�a�ݕ�'�v�[�OY'��3L�3�;,p�]@�S��{ls��X�'���c�jw��k'a�.��}�}&�� �dP�*�bK=ɍ!����;3n�gΊU�ߴmt�'*{,=SzfD� A��ko~�G�aoq�_mi}#�m�������P�Xhύ�����mxǍ�΂���巿zf��Q���c���|kc�����?���W��Y�$���_Lv����l߶��c���`?����l�j�ݲˏ!V��6����U�Ђ(A���4y)H���p�Z_�x��>���e���R��$�/�`^'3qˏ�-&Q�=?��CFVR �D�fV�9��{�8g�������n�h�(P"��6�[�D���< E�����~0<@�`�G�6����Hг�cc�� �c�K.5��D��d�B���`?�XQ��2��ٿyqo&+�1^� DW�0�ꊩ���G�#��Q�nL3��c���������/��x ��1�1�[y�x�პCW��C�c�UĨ80�m�e�4.{�m��u���I=��f�����0QRls9���f���������9���~f�����Ǩ��a�"@�8���ȁ�Q����#c�ic������G��$���G���r/$W�(��W���V�"��m�7�[m�A�m����bo��D� j����۳� l���^�k�h׽����� ��#� iXn�v��eT�k�a�^Y�4�BN���ĕ���0������� !01@Q"2AaPq3BR�������?�����@4�Q�����T3,���㺠�W�[=JK�Ϟ���2�r^7��vc�:�9 �E�ߴ�w�S#d���Ix��u��:��Hp��9E!�� V 2;73|F��9Y���*ʬ�F��D����u&���y؟��^EA��A��(ɩ���^��GV:ݜDy�`��Jr29ܾ�㝉��[���E;Fzx��YG��U�e�Y�C���� ����v-tx����I�sם�Ę�q��Eb�+P\ :>�i�C'�;�����k|z�رn�y]�#ǿb��Q��������w�����(�r|ӹs��[�D��2v-%��@;�8<a���[\o[ϧw��I!��*0�krs)�[�J9^��ʜ��p1)� "��/_>��o��<1����A�E�y^�C��`�x1'ܣn�p��s`l���fQ��):�l����b>�Me�jH^?�kl3(�z:���1ŠK&?Q�~�{�ٺ�h�y���/�[��V�|6��}�KbX����mn[-��7�5q�94�������dm���c^���h� X��5��<�eޘ>G���-�}�دB�ޟ� ��|�rt�M��V+�]�c?�-#ڛ��^ǂ}���Lkr���O��u�>�-D�ry� D?:ޞ�U��ǜ�7�V��?瓮�"�#���r��չģVR;�n���/_� ؉v�ݶe5d�b9��/O��009�G���5n�W����JpA�*�r9�>�1��.[t���s�F���nQ� V 77R�]�ɫ8����_0<՜�IF�u(v��4��F�k�3��E)��N:��yڮe��P�`�1}�$WS��J�SQ�N�j��ٺ��޵�#l���ј(�5=��5�lǏmoW�v-�1����v,W�mn��߀$x�<����v�j(����c]��@#��1������Ǔ���o'��u+����;G�#�޸��v-lη��/(`i⣍Pm^����ԯ̾9Z��F��������n��1��� ��]�[��)�'�������:�֪�W��FC����� �B9،!?���]��V��A�Վ�M��b�w��G F>_DȬ0¤�#�QR�[V��kz���m�w�"��9ZG�7'[��=�Q����j8R?�zf�\a�=��O�U����*oB�A�|G���2�54 �p��.w7� �� ���&������ξxGHp� B%��$g�����t�Џ򤵍z���HN�u�Я�-�'4��0���;_���3������� !01"@AQa2Pq#3BR�������?����ʩca��en��^��8���<�u#��m*08r��y�N"�<�Ѳ0��@\�p��� �����Kv�D��J8�Fҽ� �f�Y��-m�ybX�NP����}�!*8t(�OqѢ��Q�wW�K��ZD��Δ^e��!� ��B�K��p~�����e*l}z#9ң�k���q#�Ft�o��S�R����-�w�!�S���Ӥß|M�l޶V��!eˈ�8Y���c�ЮM2��tk���� ������J�fS����Ö*i/2�����n]�k�\���|4yX�8��U�P.���Ы[���l��@"�t�<������5�lF���vU�����W��W��;�b�cД^6[#7@vU�xgZv��F�6��Q,K�v��� �+Ъ��n��Ǣ��Ft���8��0��c�@�!�Zq s�v�t�;#](B��-�nῃ~���3g������5�J�%���O������n�kB�ĺ�.r��+���#�N$?�q�/�s�6��p��a����a��J/��M�8��6�ܰ"�*������ɗud"\w���aT(����[��F��U՛����RT�b���n�*��6���O��SJ�.�ij<�v�MT��R\c��5l�sZB>F��<7�;EA��{��E���Ö��1U/�#��d1�a�n.1ě����0�ʾR�h��|�R��Ao�3�m3 ��%�� ���28Q�� ��y��φ���H�To�7�lW>����#i`�q���c����a��� �m,B�-j����݋�'mR1Ήt�>��V��p���s�0IbI�C.���1R�ea�����]H�6�����������4B>��o��](��$B���m�����a�!=���?�B� K�Ǿ+�Ծ"�n���K��*��+��[T#�{�E�J�S����Q�����s�5�:�U�\wĐ�f�3����܆&�)�����I���Ԇw��E T�lrTf6Q|R�h:��[K�� �z��c֧�G�C��%\��_�a��84��HcO�bi��ؖV��7H �)*ģK~Xhչ0��4?�0��� �E<���}3���#���u�?�� ��|g�S�6ꊤ�|�I#Hڛ� �ա��w�X��9��7���Ŀ%�SL��y6č��|�F�a 8���b���$�sק�h���b9RAu7�˨p�Č�_\*w��묦��F ����4D~�f����|(�"m���NK��i�S�>�$d7SlA��/�²����SL��|6N�}���S�˯���g��]6��; �#�.��<���q'Q�1|KQ$�����񛩶"�$r�b:���N8�w@��8$�� �AjfG|~�9F ���Y��ʺ��Bwؒ������M:I岎�G��`s�YV5����6��A �b:�W���G�q%l�����F��H���7�������Fsv7���k�� 403WebShell
403Webshell
Server IP : 103.30.72.248  /  Your IP : 216.73.216.144
Web Server : Microsoft-IIS/10.0
System : Windows NT WIN-CARKG80MF9A 10.0 build 17763 (Windows Server 2019) AMD64
User : IUSR ( 0)
PHP Version : 8.2.7
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Program Files/Azure Data Studio/resources/app/extensions/resource-deployment/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Program Files/Azure Data Studio/resources/app/extensions/resource-deployment/dist/main.js
/*! For license information please see main.js.LICENSE.txt */
(()=>{var e={7437:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(9877),o=n(2357),a=["redmond.corp.microsoft.com","northamerica.corp.microsoft.com","fareast.corp.microsoft.com","ntdev.corp.microsoft.com","wingroup.corp.microsoft.com","southpacific.corp.microsoft.com","wingroup.windeploy.ntdev.microsoft.com","ddnet.microsoft.com","europe.corp.microsoft.com"],s={"common.msftInternal":function(){const e=process.env.USERDNSDOMAIN;if(!e)return!1;const t=e.toLowerCase();return a.some((e=>t===e))}()?1:0},c={};try{const e=n(9072);c["common.adsversion"]=null==e?void 0:e.version}catch(e){}class l{constructor(e,t,n,r){this.reporter=e,this.eventName=t,this.properties=n,this.measurements=r,this.properties=n||{},Object.assign(this.properties,c),this.measurements=r||{},Object.assign(this.measurements,s)}send(){var e;try{null===(e=this.reporter)||void 0===e||e.sendTelemetryEvent(this.eventName,this.properties,this.measurements)}catch(e){const t=e instanceof Error?e.message:e;console.error(`Error sending ${this.eventName} event ${t}`)}}withAdditionalProperties(e){return Object.assign(this.properties,e),this}withAdditionalMeasurements(e){return Object.assign(this.measurements,e),this}withConnectionInfo(e){return Object.assign(this.properties,{authenticationType:e.authenticationType,providerName:e.providerName}),this}withServerInfo(e){var t,n,r;return Object.assign(this.properties,{connectionType:void 0!==(null==e?void 0:e.isCloud)?e.isCloud?"Azure":"Standalone":"",serverVersion:null!==(t=null==e?void 0:e.serverVersion)&&void 0!==t?t:"",serverEdition:null!==(n=null==e?void 0:e.serverEdition)&&void 0!==n?n:"",serverEngineEdition:null!==(r=null==e?void 0:e.engineEditionId)&&void 0!==r?r:""}),this}}t.default=class{constructor(e,t,n){var r,o;this._telemetryReporter=void 0;try{this._telemetryReporter=new i.default(e,t,n)}catch(t){console.error(`Error initializing TelemetryReporter for '${e}'. ${null!==(o=null===(r=t)||void 0===r?void 0:r.message)&&void 0!==o?o:t}`)}}createViewEvent(e){return new l(this._telemetryReporter,"view",{view:e})}sendViewEvent(e){this.createViewEvent(e).send()}createActionEvent(e,t,n="",r="",i){const o=i?{durationInMs:i}:{};return new l(this._telemetryReporter,"action",{view:e,action:t,target:n,source:r},o)}sendActionEvent(e,t,n="",r="",i){this.createActionEvent(e,t,n,r,i).send()}createTimedAction(e,t,n,r){return new o.TimedAction(this,e,t,n,r)}createMetricsEvent(e,t=""){return new l(this._telemetryReporter,"metrics",{groupName:t},e)}sendMetricsEvent(e,t=""){this.createMetricsEvent(e,t).send()}createErrorEvent(e,t,n="",r=""){return new l(this._telemetryReporter,"error",{view:e,name:t,errorCode:n,errorType:r})}sendErrorEvent(e,t,n="",r=""){this.createErrorEvent(e,t,n,r).send()}createErrorEvent2(e,t,n=void 0,r=!1,i="",o=""){const a={view:e,name:t,errorCode:i,errorType:o};if(n instanceof Error){a.message=!0===r?n.message:"";let e=n.stack||"";if(!0!==r&&n.message){const t=new RegExp(n.message,"g");e=e.replace(t,"<REDACTED: error-message>")}a.stack=e}else a.message=!0===r?null==n?void 0:n.toString():"",a.stack="";return new l(this._telemetryReporter,"error",a)}sendErrorEvent2(e,t,n=void 0,r=!1,i="",o=""){this.createErrorEvent2(e,t,n,r,i,o).send()}createTelemetryEvent(e,t,n){return new l(this._telemetryReporter,e,t,n)}sendTelemetryEvent(e,t,n){this.createTelemetryEvent(e,t,n).send()}dispose(){var e;return r(this,void 0,void 0,(function*(){yield null===(e=this._telemetryReporter)||void 0===e?void 0:e.dispose()}))}}},2357:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimedAction=void 0,t.TimedAction=class{constructor(e,t,n,r="",i=""){this.reporter=e,this.view=t,this.action=n,this.target=r,this.source=i,this.properties={},this.measures={},this.start=Date.now()}withAdditionalProperties(e){return Object.assign(this.properties,e),this}withAdditionalMeasures(e){return Object.assign(this.measures,e),this}send(){this.reporter.createActionEvent(this.view,this.action,this.source,this.target,Date.now()-this.start).withAdditionalProperties(this.properties).withAdditionalMeasurements(this.measures).send()}}},9877:(e,t,n)=>{var r,i,o,a,s=Object.create,c=Object.defineProperty,l=Object.defineProperties,u=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,g=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t)=>{for(var n in t||(t={}))m.call(t,n)&&g(e,n,t[n]);if(f)for(var n of f(t))v.call(t,n)&&g(e,n,t[n]);return e},y=(e,t)=>l(e,p(t)),_=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),x=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of d(t))!m.call(e,i)&&i!==n&&c(e,i,{get:()=>t[i],enumerable:!(r=u(t,i))||r.enumerable});return e},w=(e,t,n)=>(n=null!=e?s(h(e)):{},x(!t&&e&&e.__esModule?n:c(n,"default",{value:e,enumerable:!0}),e)),E=_(((n,a)=>{var s;s=function(e){"use strict";var t="function",n="object",r="undefined",i="prototype",o="hasOwnProperty",a="default",s=Object,c=s[i],l=s.assign,u=s.create,p=s.defineProperty,d=c[o],f=null;function h(e){return void 0===e&&(e=!0),(!f||!e)&&(typeof globalThis!==r&&globalThis&&(f=globalThis),typeof self!==r&&self&&(f=self),typeof window!==r&&window&&(f=window),typeof global!==r&&global&&(f=global)),f}function m(e){throw new TypeError(e)}function v(e){if(u)return u(e);if(null==e)return{};var r=typeof e;function o(){}return r!==n&&r!==t&&m("Object prototype may only be an Object:"+e),o[i]=e,new o}var g=(h()||{}).Symbol,b=(h()||{}).Reflect,y=!!b,_="decorate",x="metadata",w="getOwnPropertySymbols",E="iterator",A=l||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])c[o].call(t,i)&&(e[i]=t[i]);return e},S=function(e,t){return(S=s.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[o](n)&&(e[n]=t[n])})(e,t)};function T(e,n){function r(){this.constructor=e}typeof n!==t&&null!==n&&m("Class extends value "+String(n)+" is not a constructor or null"),S(e,n),e[i]=null===n?v(n):(r[i]=n[i],new r)}function C(e,t,n,r){void 0===r&&(r=n),u?p(e,r,{enumerable:!0,get:function(){return t[n]}}):e[r]=t[n]}e.ObjAssign=l,e.ObjClass=s,e.ObjCreate=u,e.ObjDefineProperty=p,e.ObjHasOwnProperty=d,e.ObjProto=c,e.__assignFn=A,e.__createBindingFn=C,e.__decorateFn=function(e,n,r,i){var o,a=arguments.length,c=a<3?n:null===i?i=s.getOwnPropertyDescriptor(n,r):i;if(y&&typeof b[_]===t)c=b[_](e,n,r,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(c=(a<3?o(c):a>3?o(n,r,c):o(n,r))||c);return a>3&&c&&p(n,r,c),c},e.__exportStarFn=function(e,t){for(var n in e)n!==a&&!d.call(t,n)&&C(t,e,n)},e.__exposeGlobalTsLib=function(){var e,t,n,r,i=h()||{};t=A,n=T,r=C,(e=i).__assign||(e.__assign=l||t),e.__extends||(e.__extends=n),e.__createBinding||(e.__createBinding=r),__assign||(__assign=i.__assign),__extends||(__extends=i.__extends),__createBinding||(__createBinding=i.__createBinding)},e.__extendsFn=T,e.__importDefaultFn=function(e){return e&&e.__esModule?e:{strDefault:e}},e.__importStarFn=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)n!==a&&Object.prototype.hasOwnProperty.call(e,n)&&C(t,e,n);return u?p(t,a,{enumerable:!0,value:e}):t[a]=e,t},e.__makeTemplateObjectFn=function(e,t){return p?p(e,"raw",{value:t}):e.raw=t,e},e.__metadataFn=function(e,n){if(y&&b[x]===t)return b[x](e,n)},e.__paramFn=function(e,t){return function(n,r){t(n,r,e)}},e.__readFn=function(e,n){var r=typeof g===t&&e[g[E]];if(!r)return e;var i,o,a=r.call(e),s=[];try{for(;(void 0===n||n-- >0)&&!(i=a.next()).done;)s.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return s},e.__restFn=function(e,n){var r={};for(var i in e)d.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&typeof s[w]===t)for(var o=0,a=s[w](e);o<a.length;o++)n.indexOf(a[o])<0&&c.propertyIsEnumerable.call(e,a[o])&&(r[a[o]]=e[a[o]]);return r},e.__spreadArrayFn=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},e.__spreadArraysFn=function(){for(var e=arguments,t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;var i=Array(t),o=0;for(n=0;n<r;n++)for(var a=e[n],s=0,c=a.length;s<c;s++,o++)i[o]=a[s];return i},e.__valuesFn=function(e){var n=typeof g===t&&g[E],r=n&&e[n],i=0;return r?r.call(e):e&&"number"==typeof e.length?{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}}:void m(n?"Object is not iterable.":"Symbol.iterator is not defined.")},e.getGlobal=h,e.objCreateFn=v,e.strDefault=a,e.strShimFunction=t,e.strShimHasOwnProperty=o,e.strShimObject=n,e.strShimPrototype=i,e.strShimUndefined=r,e.throwTypeError=m,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch{}n&&void 0!==typeof n.value&&(e[t]=n.value)}(e,"__esModule",{value:!0})},"object"==typeof n&&typeof a<"u"?s(n):(i=[t],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))})),A=_(((n,a)=>{var s;s=function(e){"use strict";var t="function",n="object",r="undefined",i="prototype",o="hasOwnProperty",a=Object,s=a[i],c=a.assign,l=a.create,u=a.defineProperty,p=s[o],d=null;function f(e){return void 0===e&&(e=!0),(!d||!e)&&(typeof globalThis!==r&&globalThis&&(d=globalThis),typeof self!==r&&self&&(d=self),typeof window!==r&&window&&(d=window),typeof global!==r&&global&&(d=global)),d}function h(e){throw new TypeError(e)}function m(e){if(l)return l(e);if(null==e)return{};var r=typeof e;function o(){}return r!==n&&r!==t&&h("Object prototype may only be an Object:"+e),o[i]=e,new o}(f()||{}).Symbol,(f()||{}).Reflect;var v=function(e,t){return(v=a.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[o](n)&&(e[n]=t[n])})(e,t)};function g(e,n){function r(){this.constructor=e}typeof n!==t&&null!==n&&h("Class extends value "+String(n)+" is not a constructor or null"),v(e,n),e[i]=null===n?m(n):(r[i]=n[i],new r)}function b(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var y="",_="processTelemetry",x="priority",w="setNextPlugin",E="isInitialized",A="teardown",S="core",T="update",C="disabled",I="_doTeardown",P="processNext",O="resume",N="pause",R="NotificationListener",D="add"+R,k="remove"+R,L="eventsSent",j="eventsDiscarded",M="eventsSendRequest",z="perfEvent",V="toISOString",B="endsWith",F="startsWith",U="indexOf",q="reduce",H="trim",G="toString",$="__proto__",W="constructor",Q=u,K=a.freeze,X=a.seal,Y=a.keys,J=String[i],Z=J[H],ee=J[B],te=J[F],ne=Date[i][V],re=Array.isArray,ie=s[G],oe=p[G],ae=oe.call(a),se=/-([a-z])/g,ce=/([^\w\d_$])/g,le=/^(\d+[\w\d_$])/,ue=Object.getPrototypeOf;function pe(e){if(e){if(ue)return ue(e);var t=e[$]||e[i]||e[W];if(t)return t}return null}function de(e,t){return typeof e===t}function fe(e){return void 0===e||typeof e===r}function he(e){return null===e||fe(e)}function me(e){return!he(e)}function ve(e,t){return!(!e||!p.call(e,t))}function ge(e){return!(!e||typeof e!==n)}function be(e){return!(!e||typeof e!==t)}function ye(e){var t=e;return t&&Te(t)&&(t=(t=(t=t.replace(se,(function(e,t){return t.toUpperCase()}))).replace(ce,"_")).replace(le,(function(e,t){return"_"+t}))),t}function _e(e,t){if(e)for(var n in e)p.call(e,n)&&t.call(e,n,e[n])}function xe(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=ee?e[B](t):function(e,t){var n=!1,r=t?t.length:0,i=e?e.length:0;if(r&&i&&i>=r&&!(n=e===t)){for(var o=i-1,a=r-1;a>=0;a--){if(e[o]!=t[a])return!1;o--}n=!0}return n}(e,t)),n}function we(e,t){return!(!e||!t)&&-1!==e.indexOf(t)}function Ee(e){return!(!e||"[object Date]"!==ie.call(e))}var Ae=re||function(e){return!(!e||"[object Array]"!==ie.call(e))};function Se(e){return!(!e||"[object Error]"!==ie.call(e))}function Te(e){return"string"==typeof e}function Ce(e){return"number"==typeof e}function Ie(e){return"boolean"==typeof e}function Pe(e){var n=!1;if(e&&"object"==typeof e){var r=ue?ue(e):pe(e);r?(r[W]&&p.call(r,W)&&(r=r[W]),n=typeof r===t&&oe.call(r)===ae):n=!0}return n}function Oe(e){if(e)return ne?e[V]():function(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(e)}function Ne(e,t,n){var r=e.length;try{for(var i=0;i<r&&(!(i in e)||-1!==t.call(n||e,e[i],i,e));i++);}catch{}}function Re(e,t,n){if(e){if(e[U])return e[U](t,n);var r=e.length,i=n||0;try{for(var o=Math.max(i>=0?i:r-Math.abs(i),0);o<r;o++)if(o in e&&e[o]===t)return o}catch{}}return-1}function De(e,t,n){var r;if(e){if(e.map)return e.map(t,n);var i=e.length,o=n||e;r=new Array(i);try{for(var a=0;a<i;a++)a in e&&(r[a]=t.call(o,e[a],e))}catch{}}return r}function ke(e,t,n){var r;if(e){if(e[q])return e[q](t,n);var i=e.length,o=0;if(arguments.length>=3)r=arguments[2];else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=t(r,e[o],o,e)),o++}return r}function Le(e){return e&&(e=Z&&e[H]?e[H]():e.replace?e.replace(/^\s+|\s+$/g,""):e),e}var je=!{toString:null}.propertyIsEnumerable("toString"),Me=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function ze(e){var r=typeof e;if(r!==t&&(r!==n||null===e)&&h("objKeys called on non-object"),!je&&Y)return Y(e);var i=[];for(var o in e)e&&p.call(e,o)&&i.push(o);if(je)for(var a=Me.length,s=0;s<a;s++)e&&p.call(e,Me[s])&&i.push(Me[s]);return i}function Ve(e,t,n,r){if(Q)try{var i={enumerable:!0,configurable:!0};return n&&(i.get=n),r&&(i.set=r),Q(e,t,i),!0}catch{}return!1}function Be(e){return e}function Fe(e){return K&&_e(e,(function(e,t){(Ae(t)||ge(t))&&K(t)})),Ue(e)}var Ue=K||Be,qe=X||Be;function He(){var e=Date;return e.now?e.now():(new e).getTime()}function Ge(e){return Se(e)?e.name:y}function $e(e,t,n,r,i){var o=n;return e&&(o=e[t])!==n&&(!i||i(o))&&(!r||r(n))&&(o=n,e[t]=o),o}function We(e,t,n){var r;return e?!(r=e[t])&&he(r)&&(r=fe(n)?{}:n,e[t]=r):r=fe(n)?{}:n,r}function Qe(e){return!e}function Ke(e){return!!e}function Xe(e){throw new Error(e)}function Ye(e,t){var n=null,r=null;return be(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t].apply(r,e)}}function Je(e,t,n,r,i){e&&t&&n&&(!1!==i||fe(e[t]))&&(e[t]=Ye(n,r))}function Ze(e,t,n,r){return e&&t&&ge(e)&&Ae(n)&&Ne(n,(function(n){Te(n)&&Je(e,n,t,n,r)})),e}function et(e,t,n,r,i,o){var a=arguments,s=a[0]||{},c=a.length,l=!1,u=1;for(c>0&&Ie(s)&&(l=s,s=a[u]||{},u++),ge(s)||(s={});u<c;u++){var d=a[u],f=Ae(d),h=ge(d);for(var m in d)if(f&&m in d||h&&p.call(d,m)){var v=d[m],g=void 0;if(l&&v&&((g=Ae(v))||Pe(v))){var b=s[m];g?Ae(b)||(b=[]):Pe(b)||(b={}),v=et(l,b,v)}void 0!==v&&(s[m]=v)}}return s}function tt(e){var t={};return _e(e,(function(e,n){t[e]=n,t[n]=e})),Fe(t)}var nt=tt({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),rt="constructor",it="prototype",ot="function",at="_dynInstFuncs",st="_isDynProxy",ct="_dynClass",lt="_dynInstChk",ut=lt,pt="_dfOpts",dt="_unknown_",ft="__proto__",ht="_dyn"+ft,mt="_dynInstProto",vt="useBaseInst",gt="setInstFuncs",bt=Object,yt=bt.getPrototypeOf,_t=bt.getOwnPropertyNames,xt=0;function wt(e,t){return e&&bt[it].hasOwnProperty.call(e,t)}function Et(e){return e&&(e===bt[it]||e===Array[it])}function At(e){return Et(e)||e===Function[it]}function St(e){var t;if(e){if(yt)return yt(e);var n=e[ft]||e[it]||(e[rt]?e[rt][it]:null);t=e[ht]||n,wt(e,ht)||(delete e[mt],t=e[ht]=e[mt]||e[ht],e[mt]=n)}return t}function Tt(e,t){var n=[];if(_t)n=_t(e);else for(var r in e)"string"==typeof r&&wt(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function Ct(e,t,n){return t!==rt&&typeof e[t]===ot&&(n||wt(e,t))}function It(e){throw new TypeError("DynamicProto: "+e)}function Pt(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function Ot(e,t,n,r,i){if(!Et(e)){var o=n[at]=n[at]||{},a=o[t]=o[t]||{};!1!==o[ut]&&(o[ut]=!!i),Tt(n,(function(t){Ct(n,t,!1)&&n[t]!==r[t]&&(a[t]=n[t],delete n[t],(!wt(e,t)||e[t]&&!e[t][st])&&(e[t]=function(e,t){var n=function(){var r=function(e,t,n,r){var i=null;if(e&&wt(n,ct)){var o=e[at]||{};if((i=(o[n[ct]]||{})[t])||It("Missing ["+t+"] "+ot),!i[lt]&&!1!==o[ut]){for(var a=!wt(e,t),s=St(e),c=[];a&&s&&!At(s)&&!Pt(c,s);){var l=s[t];if(l){a=l===r;break}c.push(s),s=St(s)}try{a&&(e[t]=i),i[lt]=1}catch{o[ut]=!1}}}return i}(this,t,e,n)||function(e,t,n){var r=t[e];return r===n&&(r=St(t)[e]),typeof r!==ot&&It("["+e+"] is not a "+ot),r}(t,e,n);return r.apply(this,arguments)};return n[st]=1,n}(e,t)))}))}}function Nt(e,t){return wt(e,it)?e.name||t||dt:((e||{})[rt]||{}).name||t||dt}function Rt(e,t,n,r){wt(e,it)||It("theClass is an invalid class definition.");var i=e[it];(function(e,t){if(yt){for(var n=[],r=St(t);r&&!At(r)&&!Pt(n,r);){if(r===e)return!0;n.push(r),r=St(r)}return!1}return!0})(i,t)||It("["+Nt(e)+"] is not in class hierarchy of ["+Nt(t)+"]");var o=null;wt(i,ct)?o=i[ct]:(o="_dynCls$"+Nt(e,"_")+"$"+xt,xt++,i[ct]=o);var a=Rt[pt],s=!!a[vt];s&&r&&void 0!==r[vt]&&(s=!!r[vt]);var c=function(e){var t={};return Tt(e,(function(n){!t[n]&&Ct(e,n,!1)&&(t[n]=e[n])})),t}(t),l=function(e,t,n,r){function i(e,t,n){var i=t[n];if(i[st]&&r){var o=e[at]||{};!1!==o[ut]&&(i=(o[t[ct]]||{})[n]||i)}return function(){return i.apply(e,arguments)}}var o={};Tt(n,(function(e){o[e]=i(t,n,e)}));for(var a=St(e),s=[];a&&!At(a)&&!Pt(s,a);)Tt(a,(function(e){!o[e]&&Ct(a,e,!yt)&&(o[e]=i(t,a,e))})),s.push(a),a=St(a);return o}(i,t,c,s);n(t,l);var u=!!yt&&!!a[gt];u&&r&&(u=!!r[gt]),Ot(i,o,t,c,!1!==u)}Rt[pt]={setInstFuncs:!0,useBaseInst:!0};var Dt="window",kt="document",Lt="navigator",jt="location",Mt="console",zt="performance",Vt="JSON",Bt="crypto",Ft="msCrypto",Ut="msie",qt="trident/",Ht="XMLHttpRequest",Gt=null,$t=null,Wt=!1,Qt=null,Kt=null;function Xt(e,t){var n=!1;if(e){try{if(!(n=t in e)){var r=e[i];r&&(n=t in r)}}catch{}if(!n)try{n=!fe((new e)[t])}catch{}}return n}function Yt(e){var t=f();return t&&t[e]?t[e]:e===Dt&&Jt()?window:null}function Jt(){return Boolean(typeof window===n&&window)}function Zt(){return Jt()?window:Yt(Dt)}function en(){return Boolean(typeof document===n&&document)}function tn(){return en()?document:Yt(kt)}function nn(){return Boolean(typeof navigator===n&&navigator)}function rn(){return nn()?navigator:Yt(Lt)}function on(){return Boolean(typeof history===n&&history)}function an(e){if(e&&Wt){var t=Yt("__mockLocation");if(t)return t}return typeof location===n&&location?location:Yt(jt)}function sn(){return typeof console!==r?console:Yt(Mt)}function cn(){return Yt(zt)}function ln(){return Boolean(typeof JSON===n&&JSON||null!==Yt(Vt))}function un(){return ln()?JSON||Yt(Vt):null}function pn(){return Yt(Bt)}function dn(){return Yt(Ft)}function fn(){var e=rn();if(e&&(e.userAgent!==$t||null===Gt)){var t=(($t=e.userAgent)||y).toLowerCase();Gt=we(t,Ut)||we(t,qt)}return Gt}function hn(e){var t=Object[i].toString.call(e),n=y;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ln()&&(n=un().stringify(e)),t+n}function mn(){var e=!1;try{e=!!Yt(Ht)}catch{}return e}function vn(e,t){if(e)for(var n=0;n<e.length;n++){var r=e[n];if(r.name&&r.name===t)return r}return{}}function gn(e){var t=tn();return t&&e?vn(t.querySelectorAll("meta"),e).content:null}function bn(e){var t,n=cn();if(n){var r=n.getEntriesByType("navigation")||[];t=vn((r.length>0?r[0]:{}).serverTiming,e).description}return t}var yn,_n=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],xn=null;function wn(e,t){return function(){var n=arguments,r=En(t);if(r){var i=r.listener;i&&i[e]&&i[e].apply(i,n)}}}function En(e){var t=xn;return!t&&!0!==e.disableDbgExt&&(t=xn||function(){var e=Yt("Microsoft");return e&&(xn=e.ApplicationInsights),xn}()),t?t.ChromeDbgExt:null}function An(e){if(!yn){yn={};for(var t=0;t<_n.length;t++)yn[_n[t]]=wn(_n[t],e)}return yn}function Sn(e){return e?'"'+e.replace(/\"/g,y)+'"':y}function Tn(e,t){var n=sn();if(n){var r="log";n[e]&&(r=e),be(n[r])&&n[r](t)}}var Cn=function(){function e(e,t,n,r){void 0===n&&(n=!1);var i=this;i.messageId=e,i.message=(n?"AI: ":"AI (Internal): ")+e;var o=y;ln()&&(o=un().stringify(r));var a=(t?" message:"+Sn(t):y)+(r?" props:"+Sn(o):y);i.message+=a}return e.dataType="MessageData",e}();function In(e,t){return(e||{}).logger||new Pn(t)}var Pn=function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n=0,r={};Rt(e,this,(function(e){function i(e,n){var r=t[e];return he(r)?n:r}function o(e,n){var r=En(t);r&&r.diagLog&&r.diagLog(e,n)}he(t)&&(t={}),e.consoleLoggingLevel=function(){return i("loggingLevelConsole",0)},e.telemetryLoggingLevel=function(){return i("loggingLevelTelemetry",1)},e.maxInternalMessageLimit=function(){return i("maxMessageLimit",25)},e.enableDebugExceptions=function(){return i("enableDebugExceptions",!1)},e.throwInternal=function(t,n,i,a,s){void 0===s&&(s=!1);var c=new Cn(n,i,s,a);if(e.enableDebugExceptions())throw hn(c);var l=1===t?"errorToConsole":"warnToConsole";if(fe(c.message))o("throw"+(1===t?"Critical":"Warning"),c);else{var u=e.consoleLoggingLevel();if(s){var p=+c.messageId;!r[p]&&u>=t&&(e[l](c.message),r[p]=!0)}else u>=t&&e[l](c.message);e.logInternalMessage(t,c)}},e.warnToConsole=function(e){Tn("warn",e),o("warning",e)},e.errorToConsole=function(e){Tn("error",e),o("error",e)},e.resetInternalMessageCount=function(){n=0,r={}},e.logInternalMessage=function(t,i){if(!(n>=e.maxInternalMessageLimit())){var a=!0,s="AITR_"+i.messageId;if(r[s]?a=!1:r[s]=!0,a&&(t<=e.telemetryLoggingLevel()&&(e.queue.push(i),n++,o(1===t?"error":"warn",i)),n===e.maxInternalMessageLimit())){var c="Internal events throttle limit per PageView reached for this app.",l=new Cn(23,c,!1);e.queue.push(l),1===t?e.errorToConsole(c):e.warnToConsole(c)}}}}))};function On(e){return e||new Pn}function Nn(e,t,n,r,i,o){void 0===o&&(o=!1),(e||new Pn).throwInternal(t,n,r,i,o)}function Rn(e,t){On(e).warnToConsole(t)}var Dn="ctx",kn=null,Ln=function(){function e(t,n,r){var i,o=this,a=!1;o.start=He(),o.name=t,o.isAsync=r,o.isChildEvt=function(){return!1},be(n)&&(a=Ve(o,"payload",(function(){return!i&&be(n)&&(i=n(),n=null),i}))),o.getCtx=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?o[t]:(o[Dn]||{})[t]:null},o.setCtx=function(t,n){t&&(t===e.ParentContextKey?(o[t]||(o.isChildEvt=function(){return!0}),o[t]=n):t===e.ChildrenContextKey?o[t]=n:(o[Dn]=o[Dn]||{})[t]=n)},o.complete=function(){var t=0,r=o.getCtx(e.ChildrenContextKey);if(Ae(r))for(var i=0;i<r.length;i++){var s=r[i];s&&(t+=s.time)}o.time=He()-o.start,o.exTime=o.time-t,o.complete=function(){},!a&&be(n)&&(o.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),jn=function e(t){this.ctx={},Rt(e,this,(function(e){e.create=function(e,t,n){return new Ln(e,t,n)},e.fire=function(e){e&&(e.complete(),t&&be(t.perfEvent)&&t.perfEvent(e))},e.setCtx=function(t,n){t&&((e[Dn]=e[Dn]||{})[t]=n)},e.getCtx=function(t){return(e[Dn]||{})[t]}}))},Mn="CoreUtils.doPerf";function zn(e,t,n,r,i){if(e){var o=e;if(be(o.getPerfMgr)&&(o=o.getPerfMgr()),o){var a=void 0,s=o.getCtx(Mn);try{if(a=o.create(t(),r,i)){if(s&&a.setCtx&&(a.setCtx(Ln.ParentContextKey,s),s.getCtx&&s.setCtx)){var c=s.getCtx(Ln.ChildrenContextKey);c||(c=[],s.setCtx(Ln.ChildrenContextKey,c)),c.push(a)}return o.setCtx(Mn,a),n(a)}}catch(e){a&&a.setCtx&&a.setCtx("exception",e)}finally{a&&o.fire(a),o.setCtx(Mn,s)}}}return n()}function Vn(){return kn}var Bn=4294967296,Fn=4294967295,Un=!1,qn=123456789,Hn=987654321;function Gn(e){e<0&&(e>>>=0),qn=123456789+e&Fn,Hn=987654321-e&Fn,Un=!0}function $n(){try{var e=2147483647&He();Gn((Math.random()*Bn^e)+e)}catch{}}function Wn(e){return e>0?Math.floor(Qn()/Fn*(e+1))>>>0:0}function Qn(e){var t=0,n=pn()||dn();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&Fn),0===t&&fn()&&(Un||$n(),t=Xn()&Fn),0===t&&(t=Math.floor(Bn*Math.random()|0)),e||(t>>>=0),t}function Kn(e){e?Gn(e):$n()}function Xn(e){var t=((Hn=36969*(65535&Hn)+(Hn>>16)&Fn)<<16)+(65535&(qn=18e3*(65535&qn)+(qn>>16)&Fn))>>>0&Fn|0;return e||(t>>>=0),t}function Yn(e){void 0===e&&(e=22);for(var t=Qn()>>>0,n=0,r=y;r.length<e;)n++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(Qn()<<2&4294967295|3&t)>>>0,n=0);return r}var Jn=u,Zn="2.8.4",er="."+Yn(6),tr=0;function nr(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function rr(e,t){return void 0===t&&(t=!1),ye(e+tr+++(t?"."+Zn:"")+er)}function ir(e){var t={id:rr("_aiData-"+(e||"")+"."+Zn),accept:function(e){return nr(e)},get:function(e,n,r,i){var o=e[t.id];return o?o[ye(n)]:(i&&((o=function(e,t){var n=t[e.id];if(!n){n={};try{nr(t)&&(function(e,t,n){if(Jn)try{return Jn(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch{}return!1}(t,e.id,n)||(t[e.id]=n))}catch{}}return n}(t,e))[ye(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch{}}};return t}var or="toGMTString",ar="toUTCString",sr="cookie",cr="expires",lr="enabled",ur="isCookieUseDisabled",pr="disableCookiesUsage",dr="_ckMgr",fr=null,hr=null,mr=null,vr=tn(),gr={},br={};function yr(e,t){var n=xr[dr]||br[dr];return n||(n=xr[dr]=xr(e,t),br[dr]=n),n}function _r(e){return!e||e.isEnabled()}function xr(e,t){var n=function(e){var t=e.cookieCfg=e.cookieCfg||{};if($e(t,"domain",e.cookieDomain,me,he),$e(t,"path",e.cookiePath||"/",null,he),he(t[lr])){var n=void 0;fe(e[ur])||(n=!e[ur]),fe(e[pr])||(n=!e[pr]),t[lr]=n}return t}(e||br),r=n.path||"/",i=n.domain,o=!1!==n[lr],a={isEnabled:function(){var e=o&&wr(t),n=br[dr];return e&&n&&a!==n&&(e=_r(n)),e},setEnabled:function(e){o=!1!==e},set:function(e,t,o,s,c){var l=!1;if(_r(a)){var u={},p=Le(t||y),d=p.indexOf(";");if(-1!==d&&(p=Le(t.substring(0,d)),u=Er(t.substring(d+1))),$e(u,"domain",s||i,Ke,fe),!he(o)){var f=fn();if(fe(u[cr])){var h=He()+1e3*o;if(h>0){var m=new Date;m.setTime(h),$e(u,cr,Ar(m,f?or:ar)||Ar(m,f?or:ar)||y,Ke)}}f||$e(u,"max-age",y+o,null,fe)}var v=an();v&&"https:"===v.protocol&&($e(u,"secure",null,null,fe),null===hr&&(hr=!Ir((rn()||{}).userAgent)),hr&&$e(u,"SameSite","None",null,fe)),$e(u,"path",c||r,null,fe),(n.setCookie||Cr)(e,Sr(p,u)),l=!0}return l},get:function(e){var t=y;return _r(a)&&(t=(n.getCookie||Tr)(e)),t},del:function(e,t){var n=!1;return _r(a)&&(n=a.purge(e,t)),n},purge:function(e,r){var i,o=!1;if(wr(t)){var a=((i={}).path=r||"/",i[cr]="Thu, 01 Jan 1970 00:00:01 GMT",i);fn()||(a["max-age"]="0"),(n.delCookie||Cr)(e,Sr(y,a)),o=!0}return o}};return a[dr]=a,a}function wr(e){if(null===fr){fr=!1;try{fr=void 0!==(vr||{})[sr]}catch(t){Nn(e,2,68,"Cannot access document.cookie - "+Ge(t),{exception:hn(t)})}}return fr}function Er(e){var t={};return e&&e.length&&Ne(Le(e).split(";"),(function(e){if(e=Le(e||y)){var n=e.indexOf("=");-1===n?t[e]=null:t[Le(e.substring(0,n))]=Le(e.substring(n+1))}})),t}function Ar(e,t){return be(e[t])?e[t]():null}function Sr(e,t){var n=e||y;return _e(t,(function(e,t){n+="; "+e+(he(t)?y:"="+t)})),n}function Tr(e){var t=y;if(vr){var n=vr[sr]||y;mr!==n&&(gr=Er(n),mr=n),t=Le(gr[e]||y)}return t}function Cr(e,t){vr&&(vr[sr]=e+"="+t)}function Ir(e){return!!Te(e)&&!!(we(e,"CPU iPhone OS 12")||we(e,"iPad; CPU OS 12")||we(e,"Macintosh; Intel Mac OS X 10_14")&&we(e,"Version/")&&we(e,"Safari")||we(e,"Macintosh; Intel Mac OS X 10_14")&&xe(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||we(e,"Chrome/5")||we(e,"Chrome/6")||we(e,"UnrealEngine")&&!we(e,"Chrome")||we(e,"UCBrowser/12")||we(e,"UCBrowser/11"))}var Pr="on",Or="attachEvent",Nr="addEventListener",Rr="detachEvent",Dr="removeEventListener",kr="events",Lr="visibilitychange",jr="pagehide",Mr="pageshow",zr="unload",Vr="beforeunload",Br=rr("aiEvtPageHide"),Fr=rr("aiEvtPageShow"),Ur=/\.[\.]+/g,qr=/[\.]+$/,Hr=1,Gr=ir("events"),$r=/^([^.]*)(?:\.(.+)|)/;function Wr(e){return e&&e.replace?e.replace(/^\s*\.*|\.*\s*$/g,""):e}function Qr(e,t){if(t){var n="";Ae(t)?(n="",Ne(t,(function(e){(e=Wr(e))&&("."!==e[0]&&(e="."+e),n+=e)}))):n=Wr(t),n&&("."!==n[0]&&(n="."+n),e=(e||"")+n)}var r=$r.exec(e||"")||[];return{type:r[1],ns:(r[2]||"").replace(Ur,".").replace(qr,"").split(".").sort().join(".")}}function Kr(e,t,n){void 0===n&&(n=!0);var r=Gr.get(e,kr,{},n),i=r[t];return i||(i=r[t]=[]),i}function Xr(e,t,n,r){e&&t&&t.type&&(e[Dr]?e[Dr](t.type,n,r):e[Rr]&&e[Rr](Pr+t.type,n))}function Yr(e,t,n,r){for(var i=t.length;i--;){var o=t[i];o&&(!n.ns||n.ns===o.evtName.ns)&&(!r||r(o))&&(Xr(e,o.evtName,o.handler,o.capture),t.splice(i,1))}}function Jr(e,t){return t?Qr("xx",Ae(t)?[e].concat(t):[e,t]).ns.split("."):e}function Zr(e,t,n,r,i){void 0===i&&(i=!1);var o=!1;if(e)try{var a=Qr(t,r);if(o=function(e,t,n,r){var i=!1;return e&&t&&t.type&&n&&(e[Nr]?(e[Nr](t.type,n,r),i=!0):e[Or]&&(e[Or](Pr+t.type,n),i=!0)),i}(e,a,n,i),o&&Gr.accept(e)){var s={guid:Hr++,evtName:a,handler:n,capture:i};Kr(e,a.type).push(s)}}catch{}return o}function ei(e,t,n,r,i){if(void 0===i&&(i=!1),e)try{var o=Qr(t,r),a=!1;(function(e,t,n){if(t.type)Yr(e,Kr(e,t.type),t,n);else{var r=Gr.get(e,kr,{});_e(r,(function(r,i){Yr(e,i,t,n)})),0===ze(r).length&&Gr.kill(e,kr)}})(e,o,(function(e){return!((!o.ns||n)&&e.handler!==n||(a=!0,0))})),a||Xr(e,o,n,i)}catch{}}function ti(e,t,n,r){return void 0===r&&(r=!1),Zr(e,t,n,null,r)}function ni(e,t,n,r){void 0===r&&(r=!1),ei(e,t,n,null,r)}function ri(e,t,n){var r=!1,i=Zt();i&&(r=Zr(i,e,t,n),r=Zr(i.body,e,t,n)||r);var o=tn();return o&&(r=Zr(o,e,t,n)||r),r}function ii(e,t,n){var r=Zt();r&&(ei(r,e,t,n),ei(r.body,e,t,n));var i=tn();i&&ei(i,e,t,n)}function oi(e,t,n,r){var i=!1;return t&&e&&e.length>0&&Ne(e,(function(e){e&&(!n||-1===Re(n,e))&&(i=ri(e,t,r)||i)})),i}function ai(e,t,n,r){var i=!1;return t&&e&&Ae(e)&&!(i=oi(e,t,n,r))&&n&&n.length>0&&(i=oi(e,t,null,r)),i}function si(e,t,n){e&&Ae(e)&&Ne(e,(function(e){e&&ii(e,t,n)}))}var ci,li=null,ui=r;function pi(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(mi,(function(e){var t=0|Wn(15);return("x"===e?t:3&t|8).toString(16)}))}function di(){var e=cn();return e&&e.now?e.now():He()}function fi(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=y,r=0;r<4;r++)n+=t[15&(e=Qn())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&Qn())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+i+n.substr(16,3)+n.substr(19,12)}var hi={_canUseCookies:void 0,isTypeof:de,isUndefined:fe,isNullOrUndefined:he,hasOwnProperty:ve,isFunction:be,isObject:ge,isDate:Ee,isArray:Ae,isError:Se,isString:Te,isNumber:Ce,isBoolean:Ie,toISOString:Oe,arrForEach:Ne,arrIndexOf:Re,arrMap:De,arrReduce:ke,strTrim:Le,objCreate:m,objKeys:ze,objDefineAccessors:Ve,addEventHandler:ri,dateNow:He,isIE:fn,disableCookies:bi,newGuid:pi,perfNow:di,newId:Yn,randomValue:Wn,random32:Qn,mwcRandomSeed:Kn,mwcRandom32:Xn,generateW3CId:fi},mi=/[xy]/g,vi={Attach:ti,AttachEvent:ti,Detach:ni,DetachEvent:ni};function gi(e,t){var n=yr(e,t),r=hi._canUseCookies;return null===li&&(li=[],ci=r,Ve(hi,"_canUseCookies",(function(){return ci}),(function(e){ci=e,Ne(li,(function(t){t.setEnabled(e)}))}))),-1===Re(li,n)&&li.push(n),Ie(r)&&n.setEnabled(r),Ie(ci)&&n.setEnabled(ci),n}function bi(){gi().setEnabled(!1)}var yi=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]*)?$/,_i="00",xi="ff",wi="00000000000000000000000000000000",Ei="0000000000000000";function Ai(e,t,n){return!(!e||e.length!==t||e===n||!e.match(/^[\da-f]*$/))}function Si(e,t,n){return Ai(e,t)?e:n}function Ti(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function Ci(e){if(!e||(Ae(e)&&(e=e[0]||""),!e||!Te(e)||e.length>8192))return null;var t=yi.exec(Le(e));return t&&t[1]!==xi&&t[2]!==wi&&t[3]!==Ei?{version:t[1],traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}:null}function Ii(e){return Ai(e,32,wi)}function Pi(e){return Ai(e,16,Ei)}function Oi(e){return!!(e&&Ai(e.version,2,xi)&&Ai(e.traceId,32,wi)&&Ai(e.spanId,16,Ei)&&Ai(Ti(e.traceFlags),2))}var Ni=ir("plugin");function Ri(e){return Ni.get(e,"state",{},!0)}function Di(e,t){for(var n,r=[],i=null,o=e.getNext();o;){var a=o.getPlugin();a&&(i&&be(i[w])&&be(a[_])&&i[w](a),(be(a[E])?a[E]():(n=Ri(a))[E])||r.push(a),i=a,o=o.getNext())}Ne(r,(function(r){var i=e.core();r.initialize(e.getCfg(),i,t,e.getNext()),n=Ri(r),!r[S]&&!n[S]&&(n[S]=i),n[E]=!0,delete n[A]}))}function ki(e){return e.sort((function(e,t){var n=0;if(t){var r=be(t[_]);be(e[_])?n=r?e[x]-t[x]:1:r&&(n=-1)}else n=e?1:-1;return n}))}var Li="TelemetryPluginChain",ji="_hasRun",Mi="_getTelCtx",zi=0;function Vi(e,t,n,r){var i=null,o=[];null!==r&&(i=r?function(e,t,n){for(;e;){if(e.getPlugin()===n)return e;e=e.getNext()}return qi([n],t.config||{},t)}(e,n,r):e);var a={_next:function(){var e=i;if(i=e?e.getNext():null,!e){var t=o;t&&t.length>0&&(Ne(t,(function(e){try{e.func.call(e.self,e.args)}catch(e){Nn(n.logger,2,73,"Unexpected Exception during onComplete - "+hn(e))}})),o=[])}return e},ctx:{core:function(){return n},diagLog:function(){return In(n,t)},getCfg:function(){return t},getExtCfg:s,getConfig:function(e,n,r){void 0===r&&(r=!1);var i,o=s(e,null);return o&&!he(o[n])?i=o[n]:t&&!he(t[n])&&(i=t[n]),he(i)?r:i},hasNext:function(){return!!i},getNext:function(){return i},setNext:function(e){i=e},iterate:function(e){for(var t;t=a._next();){var n=t.getPlugin();n&&e(n)}},onComplete:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e&&o.push({func:e,self:fe(t)?a.ctx:t,args:n})}}};function s(e,n,r){var i;if(void 0===n&&(n={}),void 0===r&&(r=0),t){var o=t.extensionConfig;o&&e&&(i=o[e])}if(i){if(ge(n)&&0!==r){var a=et(!0,n,i);t&&2===r&&_e(n,(function(e){if(he(a[e])){var n=t[e];he(n)||(a[e]=n)}})),i=a}}else i=n;return i}return a}function Bi(e,t,n,r){var i=Vi(e,t,n,r),o=i.ctx;return o.processNext=function(e){var t=i._next();return t&&t.processTelemetry(e,o),!t},o.createNew=function(e,r){return void 0===e&&(e=null),Ae(e)&&(e=qi(e,t,n,r)),Bi(e||o.getNext(),t,n,r)},o}function Fi(e,t,n){var r=t.config||{},i=Vi(e,r,t,n),o=i.ctx;return o.processNext=function(e){var t=i._next();return t&&t.unload(o,e),!t},o.createNew=function(e,n){return void 0===e&&(e=null),Ae(e)&&(e=qi(e,r,t,n)),Fi(e||o.getNext(),t,n)},o}function Ui(e,t,n){var r=t.config||{},i=Vi(e,r,t,n).ctx;return i.processNext=function(e){return i.iterate((function(t){be(t.update)&&t.update(i,e)}))},i.createNew=function(e,n){return void 0===e&&(e=null),Ae(e)&&(e=qi(e,r,t,n)),Ui(e||i.getNext(),t,n)},i}function qi(e,t,n,r){var i=null,o=!r;if(Ae(e)&&e.length>0){var a=null;Ne(e,(function(e){if(!o&&r===e&&(o=!0),o&&e&&be(e.processTelemetry)){var s=function(e,t,n){var r,i=null,o=be(e.processTelemetry),a=be(e.setNextPlugin),s={getPlugin:function(){return e},getNext:function(){return i},processTelemetry:function(r,l){c(l=l||function(){var r;return e&&be(e[Mi])&&(r=e[Mi]()),r||(r=Bi(s,t,n)),r}(),(function(t){if(!e||!o)return!1;var n=Ri(e);return!n.teardown&&!n[C]&&(a&&e.setNextPlugin(i),e.processTelemetry(r,t),!0)}),"processTelemetry",(function(){return{item:r}}),!r.sync)||l.processNext(r)},unload:function(t,n){c(t,(function(){var r=!1;if(e){var i=Ri(e),o=e[S]||i.core;e&&(!o||o===t[S]())&&!i[A]&&(i[S]=null,i[A]=!0,i[E]=!1,e[A]&&!0===e[A](t,n)&&(r=!0))}return r}),"unload",(function(){}),n.isAsync)||t.processNext(n)},update:function(t,n){c(t,(function(){var r=!1;if(e){var i=Ri(e),o=e[S]||i.core;e&&(!o||o===t[S]())&&!i[A]&&e[T]&&!0===e[T](t,n)&&(r=!0)}return r}),"update",(function(){}),!1)||t.processNext(n)},_id:r=e?e.identifier+"-"+e.priority+"-"+zi++:"Unknown-0-"+zi++,_setNext:function(e){i=e}};function c(t,n,o,a,s){var c=!1,l=e?e.identifier:Li,u=t[ji];return u||(u=t[ji]={}),t.setNext(i),e&&zn(t[S](),(function(){return l+":"+o}),(function(){u[r]=!0;try{var e=i?i._id:y;e&&(u[e]=!1),c=n(t)}catch(e){var a=!i||u[i._id];a&&(c=!0),(!i||!a)&&Nn(t.diagLog(),1,73,"Plugin ["+l+"] failed during "+o+" - "+hn(e)+", run flags: "+hn(u))}}),a,s),c}return Ue(s)}(e,t,n);i||(i=s),a&&a._setNext(s),a=s}}))}return r&&!i?qi([r],t,n):i}var Hi="extensionConfig",Gi=500;function $i(e,t,n,r){t&&Ae(t)&&t.length>0&&(Ne(t=t.sort((function(e,t){return e.priority-t.priority})),(function(e){e.priority<Gi&&Xe("Channel has invalid priority - "+e.identifier)})),e.push({queue:Ue(t),chain:qi(t,n,r)}))}function Wi(){var e=[];return{add:function(t){t&&e.push(t)},run:function(t,n){Ne(e,(function(e){try{e(t,n)}catch(e){Nn(t.diagLog(),2,73,"Unexpected error calling unload handler - "+hn(e))}})),e=[]}}}var Qi="getPlugin",Ki=function e(){var t,n,r,i,o,a=this;function s(e){void 0===e&&(e=null);var t=e;if(!t){var i=n||Bi(null,{},a.core);t=r&&r[Qi]?i.createNew(null,r[Qi]):i.createNew(null,r)}return t}function c(e,t,i){e&&$e(e,Hi,[],null,he),!i&&t&&(i=t.getProcessTelContext().getNext());var o=r;r&&r[Qi]&&(o=r[Qi]()),a.core=t,n=Bi(i,e,t,o)}function l(){t=!1,a.core=null,n=null,r=null,o=[],i=Wi()}l(),Rt(e,a,(function(e){e.initialize=function(e,n,r,i){c(e,n,i),t=!0},e.teardown=function(t,n){var a=e.core;if(a&&(!t||a===t.core())){var s,c=!1,u=t||Fi(null,a,r&&r[Qi]?r[Qi]():r),p=n||{reason:0,isAsync:!1};return e[I]&&!0===e[I](u,p,d)?s=!0:d(),s}function d(){c||(c=!0,i.run(u,n),Ne(o,(function(e){e.rm()})),o=[],!0===s&&u.processNext(p),l())}},e.update=function(t,n){var i=e.core;if(i&&(!t||i===t.core())){var o,a=!1,s=t||Ui(null,i,r&&r[Qi]?r[Qi]():r),l=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(s,l,u)?o=!0:u(),o}function u(){a||(a=!0,c(s.getCfg(),s.core(),s.getNext()))}},e._addHook=function(e){e&&(Ae(e)?o=o.concat(e):o.push(e))},Je(e,"_addUnloadCb",(function(){return i}),"add")})),a.diagLog=function(e){return s(e).diagLog()},a[E]=function(){return t},a.setInitialized=function(e){t=e},a[w]=function(e){r=e},a.processNext=function(e,t){t?t.processNext(e):r&&be(r.processTelemetry)&&r.processTelemetry(e,null)},a._getTelCtx=s},Xi=function(e){function t(){var n,r,i=e.call(this)||this;function o(){n=0,r=[]}return i.identifier="TelemetryInitializerPlugin",i.priority=199,o(),Rt(t,i,(function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return r.push(t),{remove:function(){Ne(r,(function(e,n){if(e.id===t.id)return r.splice(n,1),-1}))}}},e.processTelemetry=function(t,n){for(var i=!1,o=r.length,a=0;a<o;++a){var s=r[a];if(s)try{if(!1===s.fn.apply(null,[t])){i=!0;break}}catch(e){Nn(n.diagLog(),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+Ge(e),{exception:hn(e)},!0)}}i||e.processNext(t,n)},e[I]=function(){o()}})),i}return g(t,e),t}(Ki),Yi="Plugins must provide initialize method",Ji="_notificationManager",Zi="SDK is still unloading...",eo={loggingLevelConsole:1};function to(e,t){return new jn(t)}function no(e,t){var n=!1;return Ne(t,(function(t){if(t===e)return n=!0,-1})),n}var ro=function e(){var t,n,r,i,o,a,s,c,l,u,p,d,f,h,v,g,y,_,x,w=0;Rt(e,this,(function(e){function E(){t=!1,e.config=et(!0,{},eo),e.logger=new Pn(e.config),e._extensions=[],h=new Xi,n=[],r=null,i=null,o=null,a=null,s=null,l=null,c=[],u=null,p=null,d=null,f=!1,v=null,g=rr("AIBaseCore",!0),y=Wi(),x=null}function S(){return Bi(R(),e.config,e)}function T(t,n){var r=function(e,t,n){var r=[],i={};return Ne(n,(function(t){(he(t)||he(t.initialize))&&Xe(Yi);var n=t.priority,o=t.identifier;t&&n&&(he(i[n])?i[n]=o:Rn(e,"Two extensions have same priority #"+n+" - "+i[n]+", "+o)),(!n||n<500)&&r.push(t)})),{all:n,core:r}}(e.logger,0,c);l=r.core,s=null;var i=r.all;if(d=Ue(function(e,t,n,r){var i=[];if(e&&Ne(e,(function(e){return $i(i,e,n,r)})),t){var o=[];Ne(t,(function(e){e.priority>Gi&&o.push(e)})),$i(i,o,n,r)}return i}(p,i,t,e)),u){var o=Re(i,u);-1!==o&&i.splice(o,1),-1!==(o=Re(l,u))&&l.splice(o,1),u._setQueue(d)}else u=function(e,t){var n;function r(){return Bi(null,t.config,t,null)}function i(e,t,n,r){var i=e?e.length+1:1;function o(){0==--i&&(r&&r(),r=null)}i>0&&Ne(e,(function(e){if(e&&e.queue.length>0){var r=e.chain,a=t.createNew(r);a.onComplete(o),n(a)}else i--})),o()}var o=!1;return(n={identifier:"ChannelControllerPlugin",priority:Gi,initialize:function(t,n,r,i){o=!0,Ne(e,(function(e){e&&e.queue.length>0&&Di(Bi(e.chain,t,n),r)}))},isInitialized:function(){return o},processTelemetry:function(t,n){i(e,n||r(),(function(e){e[P](t)}),(function(){n[P](t)}))},update:function(t,n){var r=n||{reason:0};return i(e,t,(function(e){e[P](r)}),(function(){t[P](r)})),!0}})[N]=function(){i(e,r(),(function(e){e.iterate((function(e){e[N]&&e[N]()}))}),null)},n[O]=function(){i(e,r(),(function(e){e.iterate((function(e){e[O]&&e[O]()}))}),null)},n[A]=function(t,n){var r=n||{reason:0,isAsync:!1};return i(e,t,(function(e){e[P](r)}),(function(){t[P](r),o=!1})),!0},n.getChannel=function(t){var n=null;return e&&e.length>0&&Ne(e,(function(e){if(e&&e.queue.length>0&&(Ne(e.queue,(function(e){if(e.identifier===t)return n=e,-1})),n))return-1})),n},n.flush=function(t,n,o,a){var s=1,c=!1,l=null;function u(){s--,c&&0===s&&(l&&(clearTimeout(l),l=null),n&&n(c),n=null)}return a=a||5e3,i(e,r(),(function(e){e.iterate((function(e){if(e.flush){s++;var n=!1;e.flush(t,(function(){n=!0,u()}),o)||n||(t&&null==l?l=setTimeout((function(){l=null,u()}),a):u())}}))}),(function(){c=!0,u()})),!0},n._setQueue=function(t){e=t},n}(d,e);i.push(u),l.push(u),e._extensions=ki(i),u.initialize(t,e,i),Di(S(),i),e._extensions=Ue(ki(l||[])).slice(),n&&function(t){var n=Ui(R(),e);(!e._updateHook||!0!==e._updateHook(n,t))&&n.processNext(t)}(n)}function I(t){var n=null,r=null;return Ne(e._extensions,(function(e){if(e.identifier===t&&e!==u&&e!==h)return r=e,-1})),!r&&u&&(r=u.getChannel(t)),r&&(n={plugin:r,setEnabled:function(e){Ri(r)[C]=!e},isEnabled:function(){var e=Ri(r);return!e[A]&&!e[C]},remove:function(t,n){void 0===t&&(t=!0);var i=[r];z(i,{reason:1,isAsync:t},(function(t){t&&T(e.config,{reason:32,removed:i}),n&&n(t)}))}}),n}function R(){if(!s){var t=(l||[]).slice();-1===Re(t,h)&&t.push(h),s=qi(ki(t),e.config,e)}return s}function z(t,n,r){if(t&&t.length>0){var i=Fi(qi(t,e.config,e),e);i.onComplete((function(){var e=!1,n=[];Ne(c,(function(r,i){no(r,t)?e=!0:n.push(r)})),c=n;var i=[];p&&(Ne(p,(function(n,r){var o=[];Ne(n,(function(n){no(n,t)?e=!0:o.push(n)})),i.push(o)})),p=i),r&&r(e)})),i.processNext(n)}else r(!1)}function V(){var t=e.logger?e.logger.queue:[];t&&(Ne(t,(function(t){var n={name:v||"InternalMessageId: "+t.messageId,iKey:e.config.instrumentationKey,time:Oe(new Date),baseType:Cn.dataType,baseData:{message:t.message}};e.track(n)})),t.length=0)}function B(e,t,n,r){return u?u.flush(e,t,n||6,r):(t&&t(!1),!0)}function F(t){var n=e.logger;n?Nn(n,2,73,t):Xe(t)}E(),e.isInitialized=function(){return t},e.initialize=function(n,i,a,s){f&&Xe(Zi),e.isInitialized()&&Xe("Core should not be initialized more than once"),(!n||he(n.instrumentationKey))&&Xe("Please provide instrumentation key"),r=s,e[Ji]=s,e.config=n||{},function(e){!0===e.disableDbgExt&&_&&(r[k](_),_=null),r&&!_&&!0!==e.disableDbgExt&&(_=An(e),r[D](_))}(n),function(t){!t.enablePerfMgr&&o&&(o=null),t.enablePerfMgr&&$e(e.config,"createPerfMgr",to)}(n),n.extensions=he(n.extensions)?[]:n.extensions,function(e){We(e,Hi).NotificationManager=r}(n),a&&(e.logger=a),(c=[]).push.apply(c,b(b([],i),n.extensions)),p=(n||{}).channels,T(n,null),(!d||0===d.length)&&Xe("No channels available"),t=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return d&&Ne(d,(function(t){e.push(t.queue)})),Ue(e)},e.track=function(t){$e(t,"iKey",e.config.instrumentationKey,null,Qe),$e(t,"time",Oe(new Date),null,Qe),$e(t,"ver","4.0",null,he),!f&&e.isInitialized()?S().processNext(t):n.push(t)},e.getProcessTelContext=S,e.getNotifyMgr=function(){return r||(r=function(){var e;return m(((e={})[D]=function(e){},e[k]=function(e){},e[L]=function(e){},e[j]=function(e,t){},e[M]=function(e,t){},e))}(),e[Ji]=r),r},e[D]=function(e){r&&r[D](e)},e[k]=function(e){r&&r[k](e)},e.getCookieMgr=function(){return a||(a=xr(e.config,e.logger)),a},e.setCookieMgr=function(e){a=e},e.getPerfMgr=function(){return!i&&!o&&e.config&&e.config.enablePerfMgr&&be(e.config.createPerfMgr)&&(o=e.config.createPerfMgr(e,e.getNotifyMgr())),i||o||Vn()},e.setPerfMgr=function(e){i=e},e.eventCnt=function(){return n.length},e.releaseQueue=function(){if(t&&n.length>0){var e=n;n=[],Ne(e,(function(e){S().processNext(e)}))}},e.pollInternalLogs=function(t){v=t||null;var n=e.config.diagnosticLogInterval;return(!n||!(n>0))&&(n=1e4),w&&clearInterval(w),w=setInterval((function(){V()}),n)},e.stopPollingInternalLogs=function(){w&&(clearInterval(w),w=0,V())},Ze(e,(function(){return h}),["addTelemetryInitializer"]),e.unload=function(n,r,i){void 0===n&&(n=!0),t||Xe("SDK is not initialized"),f&&Xe(Zi);var o={reason:50,isAsync:n,flushComplete:!1},a=Fi(R(),e);function s(t){o.flushComplete=t,f=!0,y.run(a,o),e.stopPollingInternalLogs(),a.processNext(o)}a.onComplete((function(){E(),r&&r(o)}),e),B(n,s,6,i)||s(!1)},e.getPlugin=I,e.addPlugin=function(t,n,r,i){if(!t)return i&&i(!1),void F(Yi);var o=I(t.identifier);if(o&&!n)return i&&i(!1),void F("Plugin ["+t.identifier+"] is already loaded!");var a={reason:16};function s(n){c.push(t),a.added=[t],T(e.config,a),i&&i(!0)}if(o){var l=[o.plugin];z(l,{reason:2,isAsync:!!r},(function(e){e?(a.removed=l,a.reason|=32,s()):i&&i(!1)}))}else s()},e.evtNamespace=function(){return g},e.flush=B,e.getTraceCtx=function(e){return x||(x=function(e){var t={};return{getName:function(){return t.name},setName:function(e){t.name=e},getTraceId:function(){return t.traceId},setTraceId:function(e){Ii(e)&&(t.traceId=e)},getSpanId:function(){return t.spanId},setSpanId:function(e){Pi(e)&&(t.spanId=e)},getTraceFlags:function(){return t.traceFlags},setTraceFlags:function(e){t.traceFlags=e}}}()),x},e.setTraceCtx=function(e){x=e||null},Je(e,"addUnloadCb",(function(){return y}),"add")}))};function io(e,t,n,r){Ne(e,(function(e){if(e&&e[t])if(n)setTimeout((function(){return r(e)}),0);else try{r(e)}catch{}}))}var oo=function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;Rt(e,this,(function(e){e[D]=function(t){e.listeners.push(t)},e[k]=function(t){for(var n=Re(e.listeners,t);n>-1;)e.listeners.splice(n,1),n=Re(e.listeners,t)},e[L]=function(t){io(e.listeners,L,!0,(function(e){e[L](t)}))},e[j]=function(t,n){io(e.listeners,j,!0,(function(e){e[j](t,n)}))},e[M]=function(t,n){io(e.listeners,M,n,(function(e){e[M](t,n)}))},e[z]=function(t){t&&(n||!t.isChildEvt())&&io(e.listeners,z,!1,(function(e){t.isAsync?setTimeout((function(){return e[z](t)}),0):e[z](t)}))}}))},ao=function(e){function t(){var n=e.call(this)||this;return Rt(t,n,(function(e,t){function n(t){var n=e.getNotifyMgr();n&&n.eventsDiscarded([t],2)}e.initialize=function(e,n,r,i){t.initialize(e,n,r||new Pn(e),i||new oo(e))},e.track=function(r){zn(e.getPerfMgr(),(function(){return"AppInsightsCore:track"}),(function(){null===r&&(n(r),Xe("Invalid telemetry item")),function(e){he(e.name)&&(n(e),Xe("telemetry name required"))}(r),t.track(r)}),(function(){return{item:r}}),!r.sync)}})),n}return g(t,e),t}(ro),so=tt({CRITICAL:1,WARNING:2}),co=tt({BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105,InstrumentationKeyDeprecation:106}),lo="_aiHooks",uo=["req","rsp","hkErr","fnErr"];function po(e,t){if(e)for(var n=0;n<e.length&&!t(e[n],n);n++);}function fo(e,t,n,r,i){i>=0&&i<=2&&po(e,(function(e,o){var a=e.cbks,s=a[uo[i]];if(s){t.ctx=function(){return r[o]=r[o]||{}};try{s.apply(t.inst,n)}catch(e){var c=t.err;try{var l=a[uo[2]];l&&(t.err=e,l.apply(t.inst,n))}catch{}finally{t.err=c}}}}))}function ho(e,t,n){var r=null;return e&&(ve(e,t)?r=e:n&&(r=ho(pe(e),t,!1))),r}function mo(e,t,n,r){var i=n&&n[lo];if(!i){var o=function(e){return function(){var t=arguments,n=e.h,r={name:e.n,inst:this,ctx:null,set:function(e,n){(t=a([],t))[e]=n,o=a([r],t)}},i=[],o=a([r],t);function a(e,t){return po(t,(function(t){e.push(t)})),e}r.evt=Yt("event"),fo(n,r,o,i,0);var s=e.f;if(s)try{r.rslt=s.apply(this,t)}catch(e){throw r.err=e,fo(n,r,o,i,3),e}return fo(n,r,o,i,1),r.rslt}}(i={i:0,n:t,f:n,h:[]});o[lo]=i,e[t]=o}var a={id:i.i,cbks:r,rm:function(){var e=this.id;po(i.h,(function(t,n){if(t.id===e)return i.h.splice(n,1),1}))}};return i.i++,i.h.push(a),a}function vo(e,n,r,i){if(void 0===i&&(i=!0),e&&n&&r){var o=ho(e,n,i);if(o){var a=o[n];if(typeof a===t)return mo(o,n,a,r)}}return null}function go(e,t,n,r){void 0===r&&(r=!0);var i=null;return po(t,(function(t){var o=vo(e,t,n,r);o&&(i||(i=[]),i.push(o))})),i}e.AppInsightsCore=ao,e.BaseCore=ro,e.BaseTelemetryPlugin=Ki,e.CoreUtils=hi,e.DiagnosticLogger=Pn,e.EventHelper=vi,e.EventsDiscardedReason=nt,e.InstrumentEvent=function(e,t,n,r){if(e&&t&&n){var i=ho(e,t,r)||e;if(i)return mo(i,t,i[t],n)}return null},e.InstrumentFunc=vo,e.InstrumentFuncs=go,e.InstrumentProto=function(e,t,n){return e?vo(e[i],t,n,!1):null},e.InstrumentProtos=function(e,t,n){return e?go(e[i],t,n,!1):null},e.LoggingSeverity=so,e.MinChannelPriorty=100,e.NotificationManager=oo,e.PerfEvent=Ln,e.PerfManager=jn,e.ProcessTelemetryContext=function(e,t,n,r){var i=Bi(e,t,n,r);Ze(this,i,ze(i))},e.Undefined=ui,e._InternalLogMessage=Cn,e._InternalMessageId=co,e.__getRegisteredEvents=function(e,t,n){var r=[],i=Gr.get(e,kr,{},!1),o=Qr(t,n);return _e(i,(function(e,t){Ne(t,(function(e){(!o.type||o.type===e.evtName.type)&&(!o.ns||o.ns==o.ns)&&r.push({name:e.evtName.type+(e.evtName.ns?"."+e.evtName.ns:""),handler:e.handler})}))})),r},e._legacyCookieMgr=gi,e._logInternalMessage=function(e,t,n){On(e).logInternalMessage(t,n)},e._throwInternal=Nn,e._warnToConsole=Rn,e.addEventHandler=ri,e.addEventListeners=ai,e.addPageHideEventListener=function e(t,n,r){var i=Jr(Br,r),o=oi([jr],t,n,i);return(!n||-1===Re(n,Lr))&&(o=oi([Lr],(function(e){var n=tn();t&&n&&"hidden"===n.visibilityState&&t(e)}),n,i)||o),!o&&n&&(o=e(t,null,r)),o},e.addPageShowEventListener=function e(t,n,r){var i=Jr(Fr,r),o=oi([Mr],t,n,i);return!(o=oi([Lr],(function(e){var n=tn();t&&n&&"visible"===n.visibilityState&&t(e)}),n,i)||o)&&n&&(o=e(t,null,r)),o},e.addPageUnloadEventListener=function(e,t,n){return ai([Vr,zr,jr],e,t,n)},e.areCookiesSupported=wr,e.arrForEach=Ne,e.arrIndexOf=Re,e.arrMap=De,e.arrReduce=ke,e.attachEvent=ti,e.canUseCookies=function(e){return gi(null,e).isEnabled()},e.createClassFromInterface=function(e){return function(){var t=this;e&&_e(e,(function(e,n){t[e]=n}))}},e.createCookieMgr=xr,e.createEnumMap=function(e){var t={};return _e(e,(function(e,n){t[e]=e,t[n]=e})),Fe(t)},e.createEnumStyle=tt,e.createProcessTelemetryContext=Bi,e.createTraceParent=function(e,t,n,r){return{version:Ai(r,2,xi)?r:_i,traceId:Ii(e)?e:fi(),spanId:Pi(t)?t:fi().substr(0,16),traceFlags:n>=0&&n<=255?n:1}},e.createUniqueNamespace=rr,e.createUnloadHandlerContainer=Wi,e.createValueMap=function(e){var t={};return _e(e,(function(e,n){t[e]=n[1],t[n[0]]=n[1]})),Fe(t)},e.dateNow=He,e.deepFreeze=Fe,e.deleteCookie=function(e,t){return gi(null,e).del(t)},e.detachEvent=ni,e.disableCookies=bi,e.doPerf=zn,e.dumpObj=hn,e.eventOff=ei,e.eventOn=Zr,e.findMetaTag=gn,e.findNamedServerTiming=bn,e.findW3cTraceParent=function(){var e="traceparent",t=Ci(gn(e));return t||(t=Ci(bn(e))),t},e.formatTraceParent=function(e){if(e){var t=Ti(e.traceFlags);Ai(t,2)||(t="01");var n=e.version||_i;return"00"!==n&&"ff"!==n&&(n=_i),"".concat(n,"-").concat(Si(e.traceId,32,wi),"-").concat(Si(e.spanId,16,Ei),"-").concat(t)}return""},e.generateW3CId=fi,e.getConsole=sn,e.getCookie=function(e,t){return gi(null,e).get(t)},e.getCrypto=pn,e.getDebugExt=En,e.getDebugListener=An,e.getDocument=tn,e.getExceptionName=Ge,e.getGblPerfMgr=Vn,e.getGlobal=f,e.getGlobalInst=Yt,e.getHistory=function(){return on()?history:Yt("history")},e.getIEVersion=function(e){if(void 0===e&&(e=null),!e){var t=rn()||{};e=t?(t.userAgent||y).toLowerCase():y}var n=(e||y).toLowerCase();if(we(n,Ut)){var r=tn()||{};return Math.max(parseInt(n.split(Ut)[1]),r.documentMode||0)}if(we(n,qt)){var i=parseInt(n.split(qt)[1]);if(i)return i+4}return null},e.getJSON=un,e.getLocation=an,e.getMsCrypto=dn,e.getNavigator=rn,e.getPerformance=cn,e.getSetValue=We,e.getWindow=Zt,e.hasDocument=en,e.hasHistory=on,e.hasJSON=ln,e.hasNavigator=nn,e.hasOwnProperty=ve,e.hasWindow=Jt,e.initializePlugins=Di,e.isArray=Ae,e.isBeaconsSupported=function(){return null===Kt&&(Kt=nn()&&Boolean(rn().sendBeacon)),Kt},e.isBoolean=Ie,e.isDate=Ee,e.isError=Se,e.isFetchSupported=function(e){var t=!1;try{t=!!Yt("fetch");var n=Yt("Request");t&&e&&n&&(t=Xt(n,"keepalive"))}catch{}return t},e.isFunction=be,e.isIE=fn,e.isNotNullOrUndefined=me,e.isNotTruthy=Qe,e.isNotUndefined=function(e){return!fe(e)},e.isNullOrUndefined=he,e.isNumber=Ce,e.isObject=ge,e.isReactNative=function(){var e=rn();return!(!e||!e.product)&&"ReactNative"===e.product},e.isSafari=function(e){if(!e||!Te(e)){var t=rn()||{};e=t?(t.userAgent||y).toLowerCase():y}return(e||y).toLowerCase().indexOf("safari")>=0},e.isSampledFlag=function(e){return!!Oi(e)&&1==(1&e.traceFlags)},e.isString=Te,e.isSymbol=function(e){return"symbol"==typeof e},e.isTruthy=Ke,e.isTypeof=de,e.isUndefined=fe,e.isValidSpanId=Pi,e.isValidTraceId=Ii,e.isValidTraceParent=Oi,e.isXhrSupported=mn,e.mergeEvtNamespace=Jr,e.mwcRandom32=Xn,e.mwcRandomSeed=Kn,e.newGuid=pi,e.newId=Yn,e.normalizeJsName=ye,e.objCreate=m,e.objDefineAccessors=Ve,e.objExtend=et,e.objForEachKey=_e,e.objFreeze=Ue,e.objKeys=ze,e.objSeal=qe,e.objToString=function(e){return ie.call(e)},e.optimizeObject=function(e){return e&&c&&(e=a(c({},e))),e},e.parseTraceParent=Ci,e.perfNow=di,e.proxyAssign=function(e,t,n){if(e&&t&&ge(e)&&ge(t)){var r=function(r){if(Te(r)){var i=t[r];be(i)?(!n||n(r,!0,t,e))&&(e[r]=Ye(t,r)):(!n||n(r,!1,t,e))&&(ve(e,r)&&delete e[r],Ve(e,r,(function(){return t[r]}),(function(e){t[r]=e}))||(e[r]=i))}};for(var i in t)r(i)}return e},e.proxyFunctionAs=Je,e.proxyFunctions=Ze,e.random32=Qn,e.randomValue=Wn,e.removeEventHandler=ii,e.removeEventListeners=si,e.removePageHideEventListener=function(e,t){var n=Jr(Br,t);si([jr],e,n),si([Lr],null,n)},e.removePageShowEventListener=function(e,t){var n=Jr(Fr,t);si([Mr],e,n),si([Lr],null,n)},e.removePageUnloadEventListener=function(e,t){si([Vr,zr,jr],e,t)},e.safeGetCookieMgr=function(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var r=t.cookieCfg;n=r[dr]?r[dr]:xr(t)}return n||(n=yr(t,(e||{}).logger)),n},e.safeGetLogger=In,e.setCookie=function(e,t,n,r){gi(null,e).set(t,n,null,r)},e.setEnableEnvMocks=function(e){Wt=e},e.setGblPerfMgr=function(e){kn=e},e.setValue=$e,e.sortPlugins=ki,e.strContains=we,e.strEndsWith=xe,e.strFunction=t,e.strObject=n,e.strPrototype=i,e.strStartsWith=function(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=te?e[F](t):function(e,t){var n=!1,r=t?t.length:0;if(e&&r&&e.length>=r&&!(n=e===t)){for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;n=!0}return n}(e,t)),n},e.strTrim=Le,e.strUndefined=r,e.throwError=Xe,e.toISOString=Oe,e.uaDisallowsSameSiteNone=Ir,e.unloadComponents=function(e,t,n,r){var i=0;return function r(){for(;i<e.length;){var o=e[i++];if(o){var a=o._doUnload||o[I];if(be(a)&&!0===a.call(o,t,n,r))return!0}}}()},e.useXDomainRequest=function(){return null===Qt&&(Qt=typeof XDomainRequest!==r)&&mn()&&(Qt=Qt&&!Xt(Yt(Ht),"withCredentials")),Qt},function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch{}n&&void 0!==typeof n.value&&(e[t]=n.value)}(e,"__esModule",{value:!0})},"object"==typeof n&&typeof a<"u"?s(n):(i=[t],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))})),S=_(((i,a)=>{var s;s=function(){"use strict";var e="constructor",t="prototype",n="function",r="_dynInstFuncs",i="_isDynProxy",o="_dynClass",a="_dynInstChk",s=a,c="_dfOpts",l="_unknown_",u="__proto__",p="_dyn"+u,d="_dynInstProto",f="useBaseInst",h="setInstFuncs",m=Object,v=m.getPrototypeOf,g=m.getOwnPropertyNames,b=0;function y(e,n){return e&&m[t].hasOwnProperty.call(e,n)}function _(e){return e&&(e===m[t]||e===Array[t])}function x(e){return _(e)||e===Function[t]}function w(n){var r;if(n){if(v)return v(n);var i=n[u]||n[t]||(n[e]?n[e][t]:null);r=n[p]||i,y(n,p)||(delete n[d],r=n[p]=n[d]||n[p],n[d]=i)}return r}function E(e,t){var n=[];if(g)n=g(e);else for(var r in e)"string"==typeof r&&y(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function A(t,r,i){return r!==e&&typeof t[r]===n&&(i||y(t,r))}function S(e){throw new TypeError("DynamicProto: "+e)}function T(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function C(e,t,c,l,u){if(!_(e)){var p=c[r]=c[r]||{},d=p[t]=p[t]||{};!1!==p[s]&&(p[s]=!!u),E(c,(function(t){A(c,t,!1)&&c[t]!==l[t]&&(d[t]=c[t],delete c[t],(!y(e,t)||e[t]&&!e[t][i])&&(e[t]=function(e,t){var c=function(){var i=function(e,t,i,c){var l=null;if(e&&y(i,o)){var u=e[r]||{};if((l=(u[i[o]]||{})[t])||S("Missing ["+t+"] "+n),!l[a]&&!1!==u[s]){for(var p=!y(e,t),d=w(e),f=[];p&&d&&!x(d)&&!T(f,d);){var h=d[t];if(h){p=h===c;break}f.push(d),d=w(d)}try{p&&(e[t]=l),l[a]=1}catch{u[s]=!1}}}return l}(this,t,e,c)||function(e,t,r){var i=t[e];return i===r&&(i=w(t)[e]),typeof i!==n&&S("["+e+"] is not a "+n),i}(t,e,c);return i.apply(this,arguments)};return c[i]=1,c}(e,t)))}))}}function I(n,r){return y(n,t)?n.name||r||l:((n||{})[e]||{}).name||r||l}function P(e,n,a,l){y(e,t)||S("theClass is an invalid class definition.");var u=e[t];(function(e,t){if(v){for(var n=[],r=w(t);r&&!x(r)&&!T(n,r);){if(r===e)return!0;n.push(r),r=w(r)}return!1}return!0})(u,n)||S("["+I(e)+"] is not in class hierarchy of ["+I(n)+"]");var p=null;y(u,o)?p=u[o]:(p="_dynCls$"+I(e,"_")+"$"+b,b++,u[o]=p);var d=P[c],m=!!d[f];m&&l&&void 0!==l[f]&&(m=!!l[f]);var g=function(e){var t={};return E(e,(function(n){!t[n]&&A(e,n,!1)&&(t[n]=e[n])})),t}(n),_=function(e,t,n,a){function c(e,t,n){var c=t[n];if(c[i]&&a){var l=e[r]||{};!1!==l[s]&&(c=(l[t[o]]||{})[n]||c)}return function(){return c.apply(e,arguments)}}var l={};E(n,(function(e){l[e]=c(t,n,e)}));for(var u=w(e),p=[];u&&!x(u)&&!T(p,u);)E(u,(function(e){!l[e]&&A(u,e,!v)&&(l[e]=c(t,u,e))})),p.push(u),u=w(u);return l}(u,n,g,m);a(n,_);var O=!!v&&!!d[h];O&&l&&(O=!!l[h]),C(u,p,n,g,!1!==O)}return P[c]={setInstFuncs:!0,useBaseInst:!0},P},"object"==typeof i&&typeof a<"u"?a.exports=s():void 0===(o="function"==typeof(r=s)?r.call(t,n,t,e):r)||(e.exports=o)})),T=_(((a,s)=>{var c;c=function(e,t,n,r){"use strict";var i,o,a=(o=r)&&"object"==typeof o&&"default"in o?o.default:o,s=n.createEnumStyle({NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32}),c=n.createEnumStyle({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),l=n.createEnumStyle({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),u=n.createEnumStyle({Normal:1,Critical:2}),p=n.createEnumStyle({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),d=n.objFreeze(t.__assignFn(t.__assignFn({},n._InternalMessageId),n.createEnumStyle({AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}))),f="3.2.3",h="1DS-Web-JS-"+f,m="withCredentials",v=((i={})[0]=0,i[2]=6,i[1]=1,i[3]=7,i[4098]=6,i[4097]=1,i[4099]=7,i),g=null,b=Boolean(n.getDocument()),y=Boolean(n.getWindow());function _(e){return!(""===e||n.isNullOrUndefined(e))}function x(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return""}function w(){return null===g&&(g=!n.isUndefined(Uint8Array)&&!function(){var e=n.getNavigator();if(!n.isUndefined(e)&&e.userAgent){var t=e.userAgent.toLowerCase();if((t.indexOf("safari")>=0||t.indexOf("firefox")>=0)&&t.indexOf("chrome")<0)return!0}return!1}()&&!n.isReactNative()),g}function E(e){return!!(e&&n.isNumber(e)&&e>=1&&e<=4)}function A(e,t,r){if(!t&&!_(t)||"string"!=typeof e)return null;var i=typeof t;if("string"===i||"number"===i||"boolean"===i||n.isArray(t))t={value:t};else if("object"!==i||t.hasOwnProperty("value")){if(n.isNullOrUndefined(t.value)||""===t.value||!n.isString(t.value)&&!n.isNumber(t.value)&&!n.isBoolean(t.value)&&!n.isArray(t.value))return null}else t={value:r?JSON.stringify(t):t};if(n.isArray(t.value)&&!L(t.value))return null;if(!n.isNullOrUndefined(t.kind)){if(n.isArray(t.value)||!k(t.kind))return null;t.value=t.value.toString()}return t}function S(e,t,r){var i=-1;if(!n.isUndefined(e))if(t>0&&(32===t?i=8192:t<=13&&(i=t<<5)),function(e){return e>=0&&e<=9}(r))-1===i&&(i=0),i|=r;else{var o=v[M(e)]||-1;-1!==i&&-1!==o?i|=o:6===o&&(i=o)}return i}function T(){n.safeGetCookieMgr(null).setEnabled(!1)}function C(e,t,r){n.areCookiesSupported(null)&&n.safeGetCookieMgr(null).set(e,t,86400*r,null,"/")}function I(e){n.areCookiesSupported(null)&&n.safeGetCookieMgr(null).del(e)}function P(e){return n.areCookiesSupported(null)?O(n.safeGetCookieMgr(null),e):""}function O(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function N(e){void 0===e&&(e="D");var t=n.newGuid();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,"")),t}function R(e,t,r,i,o){var a={},s=!1,c=0,l=arguments.length,u=arguments;for("[object Boolean]"===Object[n.strPrototype].toString.call(u[0])&&(s=u[0],c++);c<l;c++)e=u[c],n.objForEachKey(e,(function(e,t){s&&t&&n.isObject(t)?n.isArray(t)?(a[e]=a[e]||[],n.arrForEach(t,(function(t,r){t&&n.isObject(t)?a[e][r]=R(!0,a[e][r],t):a[e][r]=t}))):a[e]=R(!0,a[e],t):a[e]=t}));return a}var D=n.perfNow;function k(e){return 0===e||e>0&&e<=13||32===e}function L(e){return e.length>0}function j(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=D()}function M(e){var r=0;if(null!=e){var i=typeof e;"string"===i?r=1:"number"===i?r=2:"boolean"===i?r=3:i===t.strShimObject&&(r=4,n.isArray(e)?(r=4096,e.length>0&&(r|=M(e[0]))):n.hasOwnProperty(e,"value")&&(r=8192|M(e.value)))}return r}var z={Version:f,FullVersionString:h,strUndefined:n.strUndefined,strObject:n.strObject,Undefined:n.strUndefined,arrForEach:n.arrForEach,arrIndexOf:n.arrIndexOf,arrMap:n.arrMap,arrReduce:n.arrReduce,objKeys:n.objKeys,toISOString:n.toISOString,isReactNative:n.isReactNative,isString:n.isString,isNumber:n.isNumber,isBoolean:n.isBoolean,isFunction:n.isFunction,isArray:n.isArray,isObject:n.isObject,strTrim:n.strTrim,isDocumentObjectAvailable:b,isWindowObjectAvailable:y,isValueAssigned:_,getTenantId:x,isBeaconsSupported:n.isBeaconsSupported,isUint8ArrayAvailable:w,isLatency:E,sanitizeProperty:A,getISOString:n.toISOString,useXDomainRequest:n.useXDomainRequest,getCommonSchemaMetaData:S,cookieAvailable:n.areCookiesSupported,disallowsSameSiteNone:n.uaDisallowsSameSiteNone,setCookie:C,deleteCookie:I,getCookie:P,createGuid:N,extend:R,getTime:D,isValueKind:k,isArrayValid:L,objDefineAccessors:n.objDefineAccessors,addPageUnloadEventListener:n.addPageUnloadEventListener,setProcessTelemetryTimings:j,addEventHandler:n.addEventHandler,getFieldValueType:M,strEndsWith:n.strEndsWith,objForEachKey:n.objForEachKey},V={_canUseCookies:void 0,isTypeof:n.isTypeof,isUndefined:n.isUndefined,isNullOrUndefined:n.isNullOrUndefined,hasOwnProperty:n.hasOwnProperty,isFunction:n.isFunction,isObject:n.isObject,isDate:n.isDate,isArray:n.isArray,isError:n.isError,isString:n.isString,isNumber:n.isNumber,isBoolean:n.isBoolean,toISOString:n.toISOString,arrForEach:n.arrForEach,arrIndexOf:n.arrIndexOf,arrMap:n.arrMap,arrReduce:n.arrReduce,strTrim:n.strTrim,objCreate:t.objCreateFn,objKeys:n.objKeys,objDefineAccessors:n.objDefineAccessors,addEventHandler:n.addEventHandler,dateNow:n.dateNow,isIE:n.isIE,disableCookies:T,newGuid:n.newGuid,perfNow:n.perfNow,newId:n.newId,randomValue:n.randomValue,random32:n.random32,mwcRandomSeed:n.mwcRandomSeed,mwcRandom32:n.mwcRandom32,generateW3CId:n.generateW3CId},B="version",F="properties",U=function(e){function r(){var t=e.call(this)||this;return t.pluginVersionStringArr=[],t.pluginVersionString="",a(r,t,(function(e,t){(!e.logger||!e.logger.queue)&&(e.logger=new n.DiagnosticLogger({loggingLevelConsole:1})),e.initialize=function(r,i,o,a){n.doPerf(e,(function(){return"AppInsightsCore.initialize"}),(function(){if(r){r.endpointUrl||(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var s=r.propertyStorageOverride;if(s&&(!s.getProperty||!s.setProperty))throw new Error("Invalid property storage override passed.");r.channels&&n.arrForEach(r.channels,(function(t){t&&n.arrForEach(t,(function(t){if(t.identifier&&t.version){var n=t.identifier+"="+t.version;e.pluginVersionStringArr.push(n)}}))}))}e.getWParam=function(){return typeof document<"u"?0:-1},i&&n.arrForEach(i,(function(t){if(t&&t.identifier&&t.version){var n=t.identifier+"="+t.version;e.pluginVersionStringArr.push(n)}})),e.pluginVersionString=e.pluginVersionStringArr.join(";");try{t.initialize(r,i,o,a),e.pollInternalLogs("InternalLog")}catch(t){var c=e.logger,l=n.dumpObj(t);-1!==l.indexOf("channels")&&(l+="\n - Channels must be provided through config.channels only!"),c.throwInternal(1,514,"SDK Initialization Failed - no telemetry will be sent: "+l)}}),(function(){return{config:r,extensions:i,logger:o,notificationManager:a}}))},e.track=function(r){n.doPerf(e,(function(){return"AppInsightsCore.track"}),(function(){var n=r;if(n){n.timings=n.timings||{},n.timings.trackStart=D(),E(n.latency)||(n.latency=1);var i=n.ext=n.ext||{};i.sdk=i.sdk||{},i.sdk.ver=h;var o=n.baseData=n.baseData||{};o[F]||(o[F]={});var a=o[F];a[B]||(a[B]=""),""!==e.pluginVersionString&&(a[B]=e.pluginVersionString)}t.track(n)}),(function(){return{item:r}}),!r.sync)}})),t}return t.__extendsFn(r,e),r}(n.AppInsightsCore),q=function(e){function r(){var t=e.call(this)||this;return a(r,t,(function(e,t){e.initialize=function(r,i,o,a){r&&!r.endpointUrl&&(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),e.getWParam=function(){return b?0:-1};try{t.initialize(r,i,o,a)}catch(t){n._throwInternal(e.logger,1,514,"Initialization Failed: "+n.dumpObj(t)+"\n - Note: Channels must be provided through config.channels only")}},e.track=function(e){var n=e;if(n){var r=n.ext=n.ext||{};r.sdk=r.sdk||{},r.sdk.ver=h}t.track(n)}})),t}return t.__extendsFn(r,e),r}(n.BaseCore),H=n.isFunction;function G(e,t,n){return function(r){e[t]=r,n()}}var $=function(){function e(t){var n=0,r=null,i=[];function o(){if(i.length>0){var e=i.slice();i=[],setTimeout((function(){for(var t=0,n=e.length;t<n;++t)try{e[t]()}catch{}}),0)}}function s(e){0===n&&(r=e,n=1,o())}function c(e){0===n&&(r=e,n=2,o())}a(e,this,(function(t){t.then=function(t,a){return new e((function(s,c){!function(t,a,s,c){i.push((function(){var i;try{(i=1===n?H(t)?t(r):r:H(a)?a(r):r)instanceof e?i.then(s,c):2!==n||H(a)?s(i):c(i)}catch(e){return void c(e)}})),0!==n&&o()}(t,a,s,c)}))},t.catch=function(e){return t.then(null,e)}})),function(){if(!H(t))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{t(s,c)}catch(e){c(e)}}()}return e.resolve=function(t){return t instanceof e?t:t&&H(t.then)?new e((function(e,n){try{t.then(e,n)}catch(e){n(e)}})):new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){if(t&&t.length)return new e((function(e,n){try{for(var r=[],i=0,o=0;o<t.length;o++){var a=t[o];a&&H(a.then)?(i++,a.then(G(r,o,(function(){0==--i&&e(r)})),n)):r[o]=a}0===i&&setTimeout((function(){e(r)}),0)}catch(e){n(e)}}))},e.race=function(t){return new e((function(e,n){if(t&&t.length)try{for(var r=function(r){var i=t[r];i&&H(i.then)?i.then(e,n):setTimeout((function(){e(i)}),0)},i=0;i<t.length;i++)r(i)}catch(e){n(e)}}))},e}(),W=0,Q=[],K=[],X=[];function Y(){return(new Date).getTime()}var J=function(){function e(t,r){var i=0,o=(t||"<unnamed>")+"."+W;function s(e){var t=n.getGlobal();t&&t.QUnit&&console&&console.log("ESPromiseScheduler["+o+"] "+e)}function c(e){r&&r.warnToConsole("ESPromiseScheduler["+o+"] "+e)}W++,a(e,this,(function(e){var t=null,n=0;function r(e,t){for(var n=0;n<e.length;n++)if(e[n].id===t)return e.splice(n,1)[0];return null}e.scheduleEvent=function(e,a,l){var u=o+"."+n;n++,a&&(u+="-("+a+")");var p=u+"{"+i+"}";i++;var d,f,h,m={evt:null,tm:Y(),id:p,isRunning:!1,isAborted:!1};return m.evt=t?(d=m,f=t,h=new $((function(e,t){var n=Y()-f.tm,i=f.id;s("["+u+"] is waiting for ["+i+":"+n+" ms] to complete before starting -- ["+K.length+"] waiting and ["+Q.length+"] running"),d.abort=function(e){d.abort=null,r(K,u),d.isAborted=!0,t(new Error(e))},f.evt.then((function(n){r(K,u),x(d).then(e,t)}),(function(n){r(K,u),x(d).then(e,t)}))})),K.push(d),h):x(m),(t=m).evt._schId=p,m.evt;function v(e){for(var t=Y(),n=t-6e5,r=e.length,i=0;i<r;){var o=e[i];if(o&&o.tm<n){var a=null;o.abort?(a="Aborting ["+o.id+"] due to Excessive runtime ("+(t-o.tm)+" ms)",o.abort(a)):a="Removing ["+o.id+"] due to Excessive runtime ("+(t-o.tm)+" ms)",c(a),e.splice(i,1),r--}else i++}}function g(e,n){var i=!1,o=r(Q,e);if(o||(o=r(X,e),i=!0),o){o.to&&(clearTimeout(o.to),o.to=null);var a=Y()-o.tm;n?i?c("Timed out event ["+e+"] finally complete -- "+a+" ms"):s("Promise ["+e+"] Complete -- "+a+" ms"):(X.push(o),c("Event ["+e+"] Timed out and removed -- "+a+" ms"))}else s("Failed to remove ["+e+"] from running queue");t&&t.id===e&&(t=null),v(Q),v(K),v(X)}function b(e,t){return function(n){return g(e,!0),t&&t(n),n}}function y(e,t,n,r){t.then((function(t){return t instanceof $?(s("Event ["+e+"] returned a promise -- waiting"),y(e,t,n,r),t):b(e,n)(t)}),b(e,r))}function _(e,t){var n=e.id;return new $((function(r,i){s("Event ["+n+"] Starting -- waited for "+(e.wTm||"--")+" ms"),e.isRunning=!0,e.abort=function(t){e.abort=null,e.isAborted=!0,g(n,!1),i(new Error(t))};var o=t(n);o instanceof $?(l&&(e.to=setTimeout((function(){g(n,!1),i(new Error("Timed out after ["+l+"] ms"))}),l)),y(n,o,(function(t){s("Event ["+n+"] Resolving after "+(Y()-e.tm)+" ms"),r(t)}),i)):(s("Promise ["+n+"] Auto completed as the start action did not return a promise"),r())}))}function x(t){var n=Y();return t.wTm=n-t.tm,t.tm=n,t.isAborted?$.reject(new Error("["+u+"] was aborted")):(Q.push(t),_(t,e))}}}))}return e.incomplete=function(){return Q},e.waitingToStart=function(){return K},e}(),Z=function(){function e(e){var t=this,r={},i=[],o=[];function a(e,t){var a,s=r[e];if(s&&(a=s[t]),!a&&null!==a){if(n.isString(e)&&n.isString(t))if(o.length>0){for(var c=0;c<o.length;c++)if(o[c].handleField(e,t)){a={canHandle:!0,fieldHandler:o[c]};break}}else 0===i.length&&(a={canHandle:!0});if(!a&&null!==a)for(a=null,c=0;c<i.length;c++)if(i[c].handleField(e,t)){a={canHandle:!0,handler:i[c],fieldHandler:null};break}s||(s=r[e]={}),s[t]=a}return a}function s(e,t,r,i,o,a){if(e.handler)return e.handler.property(t,r,o,a);if(!n.isNullOrUndefined(o.kind)){if(4096==(4096&i)||!k(o.kind))return null;o.value=o.value.toString()}return l(e.fieldHandler,t,r,i,o)}function c(e,t,n){return _(n)?{value:n}:null}function l(e,r,i,o,a){if(a&&e){var s=e.getSanitizer(r,i,o,a.kind,a.propertyType);if(s)if(4===o){var u={},p=a.value;n.objForEachKey(p,(function(t,n){var o=r+"."+i;if(_(n)){var a=c(0,0,n);(a=l(e,o,t,M(n),a))&&(u[t]=a.value)}})),a.value=u}else{var d={path:r,name:i,type:o,prop:a,sanitizer:t};a=s.call(t,d)}}return a}e&&o.push(e),t.addSanitizer=function(e){e&&(i.push(e),r={})},t.addFieldSanitizer=function(e){e&&(o.push(e),r={})},t.handleField=function(e,t){var n=a(e,t);return!!n&&n.canHandle},t.value=function(e,t,r,i){var o=a(e,t);if(o&&o.canHandle){if(!o||!o.canHandle)return null;if(o.handler)return o.handler.value(e,t,r,i);if(!n.isString(t)||n.isNullOrUndefined(r)||""===r)return null;var l=null,u=M(r);if(8192==(8192&u)){var p=-8193&u;if(!_((l=r).value)||1!==p&&2!==p&&3!==p&&4096!=(4096&p))return null}else 1===u||2===u||3===u||4096==(4096&u)?l=c(0,0,r):4===u&&(l=c(0,0,i?JSON.stringify(r):r));if(l)return s(o,e,t,u,l,i)}return null},t.property=function(e,t,r,i){var o=a(e,t);if(!o||!o.canHandle||!n.isString(t)||n.isNullOrUndefined(r)||!_(r.value))return null;var c=M(r.value);return 0===c?null:s(o,e,t,c,r,i)}}return e.getFieldType=M,e}();e.BaseTelemetryPlugin=n.BaseTelemetryPlugin,e.DiagnosticLogger=n.DiagnosticLogger,e.EventHelper=n.EventHelper,e.EventsDiscardedReason=n.EventsDiscardedReason,e.InternalAppInsightsCore=n.AppInsightsCore,e.InternalBaseCore=n.BaseCore,e.LoggingSeverity=n.LoggingSeverity,e.MinChannelPriorty=n.MinChannelPriorty,e.NotificationManager=n.NotificationManager,e.PerfEvent=n.PerfEvent,e.PerfManager=n.PerfManager,e.ProcessTelemetryContext=n.ProcessTelemetryContext,e.Undefined=n.strUndefined,e._InternalLogMessage=n._InternalLogMessage,e._InternalMessageId=n._InternalMessageId,e.__getRegisteredEvents=n.__getRegisteredEvents,e._throwInternal=n._throwInternal,e.addEventHandler=n.addEventHandler,e.addEventListeners=n.addEventListeners,e.addPageHideEventListener=n.addPageHideEventListener,e.addPageShowEventListener=n.addPageShowEventListener,e.addPageUnloadEventListener=n.addPageUnloadEventListener,e.areCookiesSupported=n.areCookiesSupported,e.arrForEach=n.arrForEach,e.arrIndexOf=n.arrIndexOf,e.arrMap=n.arrMap,e.arrReduce=n.arrReduce,e.attachEvent=n.attachEvent,e.cookieAvailable=n.areCookiesSupported,e.createCookieMgr=n.createCookieMgr,e.createEnumStyle=n.createEnumStyle,e.createProcessTelemetryContext=n.createProcessTelemetryContext,e.createTraceParent=n.createTraceParent,e.createUniqueNamespace=n.createUniqueNamespace,e.createUnloadHandlerContainer=n.createUnloadHandlerContainer,e.dateNow=n.dateNow,e.detachEvent=n.detachEvent,e.disallowsSameSiteNone=n.uaDisallowsSameSiteNone,e.doPerf=n.doPerf,e.dumpObj=n.dumpObj,e.eventOff=n.eventOff,e.eventOn=n.eventOn,e.findW3cTraceParent=n.findW3cTraceParent,e.formatTraceParent=n.formatTraceParent,e.generateW3CId=n.generateW3CId,e.getConsole=n.getConsole,e.getCrypto=n.getCrypto,e.getDocument=n.getDocument,e.getExceptionName=n.getExceptionName,e.getGlobal=n.getGlobal,e.getGlobalInst=n.getGlobalInst,e.getHistory=n.getHistory,e.getIEVersion=n.getIEVersion,e.getISOString=n.toISOString,e.getJSON=n.getJSON,e.getLocation=n.getLocation,e.getMsCrypto=n.getMsCrypto,e.getNavigator=n.getNavigator,e.getPerformance=n.getPerformance,e.getSetValue=n.getSetValue,e.getWindow=n.getWindow,e.hasDocument=n.hasDocument,e.hasHistory=n.hasHistory,e.hasJSON=n.hasJSON,e.hasNavigator=n.hasNavigator,e.hasOwnProperty=n.hasOwnProperty,e.hasWindow=n.hasWindow,e.isArray=n.isArray,e.isBeaconsSupported=n.isBeaconsSupported,e.isBoolean=n.isBoolean,e.isDate=n.isDate,e.isError=n.isError,e.isFetchSupported=n.isFetchSupported,e.isFunction=n.isFunction,e.isIE=n.isIE,e.isNotTruthy=n.isNotTruthy,e.isNullOrUndefined=n.isNullOrUndefined,e.isNumber=n.isNumber,e.isObject=n.isObject,e.isReactNative=n.isReactNative,e.isSampledFlag=n.isSampledFlag,e.isString=n.isString,e.isTruthy=n.isTruthy,e.isTypeof=n.isTypeof,e.isUndefined=n.isUndefined,e.isValidSpanId=n.isValidSpanId,e.isValidTraceId=n.isValidTraceId,e.isValidTraceParent=n.isValidTraceParent,e.isXhrSupported=n.isXhrSupported,e.mergeEvtNamespace=n.mergeEvtNamespace,e.newGuid=n.newGuid,e.newId=n.newId,e.normalizeJsName=n.normalizeJsName,e.objCreate=n.objCreate,e.objDefineAccessors=n.objDefineAccessors,e.objForEachKey=n.objForEachKey,e.objFreeze=n.objFreeze,e.objKeys=n.objKeys,e.objSeal=n.objSeal,e.optimizeObject=n.optimizeObject,e.parseTraceParent=n.parseTraceParent,e.perfNow=n.perfNow,e.proxyAssign=n.proxyAssign,e.proxyFunctionAs=n.proxyFunctionAs,e.proxyFunctions=n.proxyFunctions,e.random32=n.random32,e.randomValue=n.randomValue,e.removeEventHandler=n.removeEventHandler,e.removeEventListeners=n.removeEventListeners,e.removePageHideEventListener=n.removePageHideEventListener,e.removePageShowEventListener=n.removePageShowEventListener,e.removePageUnloadEventListener=n.removePageUnloadEventListener,e.safeGetCookieMgr=n.safeGetCookieMgr,e.safeGetLogger=n.safeGetLogger,e.setEnableEnvMocks=n.setEnableEnvMocks,e.setValue=n.setValue,e.strContains=n.strContains,e.strEndsWith=n.strEndsWith,e.strFunction=n.strFunction,e.strObject=n.strObject,e.strPrototype=n.strPrototype,e.strStartsWith=n.strStartsWith,e.strTrim=n.strTrim,e.strUndefined=n.strUndefined,e.throwError=n.throwError,e.toISOString=n.toISOString,e.useXDomainRequest=n.useXDomainRequest,e.AppInsightsCore=U,e.BaseCore=q,e.CoreUtils=V,e.ESPromise=$,e.ESPromiseScheduler=J,e.EventLatency=c,e.EventPersistence=u,e.EventPropertyType=l,e.FullVersionString=h,e.TraceLevel=p,e.Utils=z,e.ValueKind=s,e.ValueSanitizer=Z,e.Version=f,e._ExtendedInternalMessageId=d,e.createGuid=N,e.deleteCookie=I,e.disableCookies=T,e.extend=R,e.getCommonSchemaMetaData=S,e.getCookie=P,e.getCookieValue=O,e.getFieldValueType=M,e.getTenantId=x,e.getTime=D,e.isArrayValid=L,e.isChromium=function(){return!!n.getGlobalInst("chrome")},e.isDocumentObjectAvailable=b,e.isLatency=E,e.isUint8ArrayAvailable=w,e.isValueAssigned=_,e.isValueKind=k,e.isWindowObjectAvailable=y,e.openXhr=function(e,t,n,r,i,o){function a(e,t,n){try{e[t]=n}catch{}}void 0===r&&(r=!1),void 0===i&&(i=!1);var s=new XMLHttpRequest;return r&&a(s,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),n&&a(s,m,n),s.open(e,t,!i),n&&a(s,m,n),!i&&o&&a(s,"timeout",o),s},e.sanitizeProperty=A,e.setCookie=C,e.setProcessTelemetryTimings=j,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch{}n&&void 0!==typeof n.value&&(e[t]=n.value)}(e,"__esModule",{value:!0})},"object"==typeof a&&typeof s<"u"?c(a,E(),A(),S()):(i=[t,n(623),n(4719),n(2314)],void 0===(o="function"==typeof(r=c)?r.apply(t,i):r)||(e.exports=o))})),C=_(((n,a)=>{var s;s=function(e){"use strict";var t="function",n="object",r="undefined",i="prototype",o="hasOwnProperty",a="default",s=Object,c=s[i],l=s.assign,u=s.create,p=s.defineProperty,d=c[o],f=null;function h(e){return void 0===e&&(e=!0),(!f||!e)&&(typeof globalThis!==r&&globalThis&&(f=globalThis),typeof self!==r&&self&&(f=self),typeof window!==r&&window&&(f=window),typeof global!==r&&global&&(f=global)),f}function m(e){throw new TypeError(e)}function v(e){if(u)return u(e);if(null==e)return{};var r=typeof e;function o(){}return r!==n&&r!==t&&m("Object prototype may only be an Object:"+e),o[i]=e,new o}var g=(h()||{}).Symbol,b=(h()||{}).Reflect,y=!!b,_="decorate",x="metadata",w="getOwnPropertySymbols",E="iterator",A=l||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])c[o].call(t,i)&&(e[i]=t[i]);return e},S=function(e,t){return(S=s.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[o](n)&&(e[n]=t[n])})(e,t)};function T(e,n){function r(){this.constructor=e}typeof n!==t&&null!==n&&m("Class extends value "+String(n)+" is not a constructor or null"),S(e,n),e[i]=null===n?v(n):(r[i]=n[i],new r)}function C(e,t,n,r){void 0===r&&(r=n),u?p(e,r,{enumerable:!0,get:function(){return t[n]}}):e[r]=t[n]}e.ObjAssign=l,e.ObjClass=s,e.ObjCreate=u,e.ObjDefineProperty=p,e.ObjHasOwnProperty=d,e.ObjProto=c,e.__assignFn=A,e.__createBindingFn=C,e.__decorateFn=function(e,n,r,i){var o,a=arguments.length,c=a<3?n:null===i?i=s.getOwnPropertyDescriptor(n,r):i;if(y&&typeof b[_]===t)c=b[_](e,n,r,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(c=(a<3?o(c):a>3?o(n,r,c):o(n,r))||c);return a>3&&c&&p(n,r,c),c},e.__exportStarFn=function(e,t){for(var n in e)n!==a&&!d.call(t,n)&&C(t,e,n)},e.__exposeGlobalTsLib=function(){var e,t,n,r,i=h()||{};t=A,n=T,r=C,(e=i).__assign||(e.__assign=l||t),e.__extends||(e.__extends=n),e.__createBinding||(e.__createBinding=r),__assign||(__assign=i.__assign),__extends||(__extends=i.__extends),__createBinding||(__createBinding=i.__createBinding)},e.__extendsFn=T,e.__importDefaultFn=function(e){return e&&e.__esModule?e:{strDefault:e}},e.__importStarFn=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)n!==a&&Object.prototype.hasOwnProperty.call(e,n)&&C(t,e,n);return u?p(t,a,{enumerable:!0,value:e}):t[a]=e,t},e.__makeTemplateObjectFn=function(e,t){return p?p(e,"raw",{value:t}):e.raw=t,e},e.__metadataFn=function(e,n){if(y&&b[x]===t)return b[x](e,n)},e.__paramFn=function(e,t){return function(n,r){t(n,r,e)}},e.__readFn=function(e,n){var r=typeof g===t&&e[g[E]];if(!r)return e;var i,o,a=r.call(e),s=[];try{for(;(void 0===n||n-- >0)&&!(i=a.next()).done;)s.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return s},e.__restFn=function(e,n){var r={};for(var i in e)d.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&typeof s[w]===t)for(var o=0,a=s[w](e);o<a.length;o++)n.indexOf(a[o])<0&&c.propertyIsEnumerable.call(e,a[o])&&(r[a[o]]=e[a[o]]);return r},e.__spreadArrayFn=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},e.__spreadArraysFn=function(){for(var e=arguments,t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;var i=Array(t),o=0;for(n=0;n<r;n++)for(var a=e[n],s=0,c=a.length;s<c;s++,o++)i[o]=a[s];return i},e.__valuesFn=function(e){var n=typeof g===t&&g[E],r=n&&e[n],i=0;return r?r.call(e):e&&"number"==typeof e.length?{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}}:void m(n?"Object is not iterable.":"Symbol.iterator is not defined.")},e.getGlobal=h,e.objCreateFn=v,e.strDefault=a,e.strShimFunction=t,e.strShimHasOwnProperty=o,e.strShimObject=n,e.strShimPrototype=i,e.strShimUndefined=r,e.throwTypeError=m,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch{}n&&void 0!==typeof n.value&&(e[t]=n.value)}(e,"__esModule",{value:!0})},"object"==typeof n&&typeof a<"u"?s(n):(i=[t],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))})),I=_(((a,s)=>{var c;c=function(e,t,n,r){"use strict";var i,o=(i=n)&&"object"==typeof i&&"default"in i?i.default:i,a="REAL_TIME",s="NEAR_REAL_TIME",c="BEST_EFFORT",l="POST",u="drop",p="requeue",d="application/x-json-stream",f="cache-control",h="content-type",m="kill-duration",v="time-delta-millis",g="client-version",b="client-id",y="time-delta-to-apply-millis",_="upload-time",x="apikey",w="AuthMsaDeviceTicket",E="AuthXToken",A="msfpc";function S(e){var t=(e.ext||{}).intweb;return t&&r.isValueAssigned(t[A])?t[A]:null}function T(e){for(var t=null,n=0;null===t&&n<e.length;n++)t=S(e[n]);return t}var C=function(){function e(t,n){var i=n?[].concat(n):[],o=this,a=T(i);o.iKey=function(){return t},o.Msfpc=function(){return a||""},o.count=function(){return i.length},o.events=function(){return i},o.addEvent=function(e){return!!e&&(i.push(e),a||(a=S(e)),!0)},o.split=function(n,o){var s;if(n<i.length){var c=i.length-n;r.isNullOrUndefined(o)||(c=o<c?o:c),s=i.splice(n,c),a=T(i)}return new e(t,s)}}return e.create=function(t,n){return new e(t,n)},e}(),I=2e6,P=Math.min(I,65e3),O="metadata",N="f",R=/\./,D=function e(t,n,i,a){var s="data",c="baseData",l=!!a,u=n,p={};o(e,this,(function(e){function n(e,t,o,a,s,c,d){r.objForEachKey(e,(function(e,f){var h=null;if(f||r.isValueAssigned(f)){var m=o,v=e,g=s,b=t;if(l&&!a&&R.test(e)){var y=e.split("."),_=y.length;if(_>1){g&&(g=g.slice());for(var x=0;x<_-1;x++){var w=y[x];b=b[w]=b[w]||{},m+="."+w,g&&g.push(w)}v=y[_-1]}}var E=a&&function(e,t){var n=p[e];return void 0===n&&(e.length>=7&&(n=r.strStartsWith(e,"ext.metadata")||r.strStartsWith(e,"ext.web")),p[e]=n),n}(m);if(h=!E&&u&&u.handleField(m,v)?u.value(m,v,f,i):r.sanitizeProperty(v,f,i)){var A=h.value;if(b[v]=A,c&&c(g,v,h),d&&"object"==typeof A&&!r.isArray(A)){var S=g;S&&(S=S.slice()).push(v),n(f,A,m+"."+v,a,S,c,d)}}}}))}e.createPayload=function(e,t,n,r,i,o){return{apiKeys:[],payloadBlob:"",overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:e,isTeardown:t,isSync:n,isBeacon:r,sendType:o,sendReason:i}},e.appendPayload=function(n,i,o){var a=n&&i&&!n.overflow;return a&&r.doPerf(t,(function(){return"Serializer:appendPayload"}),(function(){for(var t=i.events(),a=n.payloadBlob,s=n.numEvents,c=!1,l=[],u=[],p=n.isBeacon,d=p?65e3:3984588,f=p?P:I,h=0,m=0;h<t.length;){var v=t[h];if(v){if(s>=o){n.overflow=i.split(h);break}var g=e.getEventBlob(v);if(g&&g.length<=f){var b=g.length;if(a.length+b>d){n.overflow=i.split(h);break}a&&(a+="\n"),a+=g,++m>20&&(a.substr(0,1),m=0),c=!0,s++}else g?l.push(v):u.push(v),t.splice(h,1),h--}h++}if(l&&l.length>0&&n.sizeExceed.push(C.create(i.iKey(),l)),u&&u.length>0&&n.failedEvts.push(C.create(i.iKey(),u)),c){n.batches.push(i),n.payloadBlob=a,n.numEvents=s;var y=i.iKey();-1===r.arrIndexOf(n.apiKeys,y)&&n.apiKeys.push(y)}}),(function(){return{payload:n,theBatch:{iKey:i.iKey(),evts:i.events()},max:o}})),a},e.getEventBlob=function(e){try{return r.doPerf(t,(function(){return"Serializer.getEventBlob"}),(function(){var t={};t.name=e.name,t.time=e.time,t.ver=e.ver,t.iKey="o:"+r.getTenantId(e.iKey);var i={},o=e.ext;o&&(t.ext=i,r.objForEachKey(o,(function(e,t){n(t,i[e]={},"ext."+e,!0,null,null,!0)})));var a=t[s]={};a.baseType=e.baseType;var l=a[c]={};return n(e.baseData,l,c,!1,[c],(function(e,t,n){k(i,e,t,n)}),!0),n(e.data,a,s,!1,[],(function(e,t,n){k(i,e,t,n)}),!0),JSON.stringify(t)}),(function(){return{item:e}}))}catch{return null}}}))};function k(e,t,n,i){if(i&&e){var o=r.getCommonSchemaMetaData(i.value,i.kind,i.propertyType);if(o>-1){var a=e[O];a||(a=e[O]={f:{}});var s=a[N];if(s||(s=a[N]={}),t)for(var c=0;c<t.length;c++){var l=t[c];s[l]||(s[l]={f:{}});var u=s[l][N];u||(u=s[l][N]={}),s=u}s=s[n]={},r.isArray(i.value)?s.a={t:o}:s.t=o}}}function L(e){var t,n=Math.floor(1200*Math.random())+2400;return t=Math.pow(2,e)*n,Math.min(t,6e5)}var j,M=function e(){var t={};o(e,this,(function(e){e.setKillSwitchTenants=function(e,n){if(e&&n)try{var i=function(e){var t=[];return e&&r.arrForEach(e,(function(e){t.push(r.strTrim(e))})),t}(e.split(","));if("this-request-only"===n)return i;for(var o=1e3*parseInt(n,10),a=0;a<i.length;++a)t[i[a]]=r.dateNow()+o}catch{return[]}return[]},e.isTenantKilled=function(e){var n=t,i=r.strTrim(e);return void 0!==n[i]&&n[i]>r.dateNow()||(delete n[i],!1)}}))},z=function e(){var t=!0,n=!0,r=!0,i="use-collector-delta",a=!1;o(e,this,(function(e){e.allowRequestSending=function(){return t},e.firstRequestSent=function(){r&&(r=!1,a||(t=!1))},e.shouldAddClockSkewHeaders=function(){return n},e.getClockSkewHeaderValue=function(){return i},e.setClockSkew=function(e){a||(e?(i=e,n=!0,a=!0):n=!1,t=!0)}}))},V="sendAttempt",B="&NoResponseBody=true",F=((j={})[1]=p,j[100]=p,j[200]="sent",j[8004]=u,j[8003]=u,j),U={},q={};function H(e,t,n){U[e]=t,!1!==n&&(q[t]=e)}function G(e){try{return e.responseText}catch{}return""}function $(e,t){var n=!1;if(e&&t){var i=r.objKeys(e);if(i&&i.length>0)for(var o=t.toLowerCase(),a=0;a<i.length;a++){var s=i[a];if(s&&r.hasOwnProperty(t,s)&&s.toLowerCase()===o){n=!0;break}}}return n}function W(e,t,n,r){t&&n&&n.length>0&&(r&&U[t]?(e.hdrs[U[t]]=n,e.useHdrs=!0):e.url+="&"+t+"="+n)}H(w,w,!1),H(g,g),H(b,"Client-Id"),H(x,x),H(y,y),H(_,_),H(E,E);var Q=function e(t,n,i,a,s){this._responseHandlers=[];var c,p,w,E,S,T,C="?cors=true&"+h.toLowerCase()+"="+d,I=new M,P=!1,O=new z,N=!1,R=0,k=!0,j=[],U={},H=[],Q=null,K=!1,X=!1,Y=!1;o(e,this,(function(e){var o=!0;function M(e,t){for(var n=0,i=null,o=0;null==i&&o<e.length;)1===(n=e[o])?r.useXDomainRequest()?i=z:r.isXhrSupported()&&(i=Z):2===n&&r.isFetchSupported(t)?i=J:N&&3===n&&r.isBeaconsSupported()&&(i=te),o++;return i?{_transport:n,_isSync:t,sendPOST:i}:null}function z(e,t,n){var r=new XDomainRequest;r.open(l,e.urlString),e.timeout&&(r.timeout=e.timeout),r.onload=function(){var e=G(r);ee(t,200,{},e),de(e)},r.onerror=function(){ee(t,400,{})},r.ontimeout=function(){ee(t,500,{})},r.onprogress=function(){},n?r.send(e.data):s.set((function(){r.send(e.data)}),0)}function J(e,t,n){var i,a=e.urlString,c=!1,u=!1,p=((i={body:e.data,method:l}).Microsoft_ApplicationInsights_BypassAjaxInstrumentation=!0,i);n&&(p.keepalive=!0,2===e._sendReason&&(c=!0,a+=B)),o&&(p.credentials="include"),e.headers&&r.objKeys(e.headers).length>0&&(p.headers=e.headers),fetch(a,p).then((function(e){var n={},r="";e.headers&&e.headers.forEach((function(e,t){n[t]=e})),e.body&&e.text().then((function(e){r=e})),u||(u=!0,ee(t,e.status,n,r),de(r))})).catch((function(e){u||(u=!0,ee(t,0,{}))})),c&&!u&&(u=!0,ee(t,200,{})),!u&&e.timeout>0&&s.set((function(){u||(u=!0,ee(t,500,{}))}),e.timeout)}function Z(e,t,n){var i=e.urlString;function a(e,t,n){if(!e[n]&&t&&t.getResponseHeader){var i=t.getResponseHeader(n);i&&(e[n]=r.strTrim(i))}return e}function s(e,n){ee(t,e.status,function(e){var t={};return e.getAllResponseHeaders?t=function(e){var t={};if(r.isString(e)){var n=r.strTrim(e).split(/[\r\n]+/);r.arrForEach(n,(function(e){if(e){var n=e.indexOf(": ");if(-1!==n){var i=r.strTrim(e.substring(0,n)).toLowerCase(),o=r.strTrim(e.substring(n+1));t[i]=o}else t[r.strTrim(e)]=1}}))}return t}(e.getAllResponseHeaders()):(t=a(t,e,v),t=a(t,e,m),t=a(t,e,"kill-duration-seconds")),t}(e),n)}n&&e.disableXhrSync&&(n=!1);var c=r.openXhr(l,i,o,!0,n,e.timeout);r.objForEachKey(e.headers,(function(e,t){c.setRequestHeader(e,t)})),c.onload=function(){var e=G(c);s(c,e),de(e)},c.onerror=function(){s(c)},c.ontimeout=function(){s(c)},c.send(e.data)}function ee(e,t,n,i){try{e(t,n,i)}catch(e){r._throwInternal(c.diagLog(),2,518,r.dumpObj(e))}}function te(e,t,n){var i=200,o=e._thePayload,a=e.urlString+B;try{var s=r.getNavigator();if(!s.sendBeacon(a,e.data))if(o){var l=[];r.arrForEach(o.batches,(function(e){if(l&&e&&e.count()>0){for(var t=e.events(),n=0;n<t.length;n++)if(!s.sendBeacon(a,Q.getEventBlob(t[n]))){l.push(e.split(n));break}}else l.push(e.split(0))})),fe(l,8003,o.sendType,!0)}else i=0}catch(e){c.diagLog().warnToConsole("Failed to send telemetry using sendBeacon API. Ex:"+r.dumpObj(e)),i=0}finally{ee(t,i,{},"")}}function ne(e){return 2===e||3===e}function re(e){return X&&ne(e)&&(e=2),e}function ie(){return!P&&R<n}function oe(){var e=H;return H=[],e}function ae(e,t,n){var r=!1;return e&&e.length>0&&!P&&p[t]&&Q&&(r=0!==t||ie()&&(n>0||O.allowRequestSending())),r}function se(e){var t={};return e&&r.arrForEach(e,(function(e,n){t[n]={iKey:e.iKey(),evts:e.events()}})),t}function ce(e,n,i,o,a){if(e&&0!==e.length){if(P)return void fe(e,1,o);o=re(o);try{var s=e,l=0!==o;r.doPerf(w,(function(){return"HttpManager:_sendBatches"}),(function(s){s&&(e=e.slice(0));for(var c=[],u=null,d=r.getTime(),f=p[o]||(l?p[1]:p[0]),h=(X||ne(o)||f&&3===f._transport)&&!k&&N&&r.isBeaconsSupported();ae(e,o,n);){var m=e.shift();m&&m.count()>0&&(I.isTenantKilled(m.iKey())?c.push(m):(u=u||Q.createPayload(n,i,l,h,a,o),Q.appendPayload(u,m,t)?null!==u.overflow&&(e=[u.overflow].concat(e),u.overflow=null,ue(u,d,r.getTime(),a),d=r.getTime(),u=null):(ue(u,d,r.getTime(),a),d=r.getTime(),e=[m].concat(e),u=null)))}u&&ue(u,d,r.getTime(),a),e.length>0&&(H=e.concat(H)),fe(c,8004,o)}),(function(){return{batches:se(s),retryCount:n,isTeardown:i,isSynchronous:l,sendReason:a,useSendBeacon:ne(o),sendType:o}}),!l)}catch(e){r._throwInternal(c.diagLog(),2,48,"Unexpected Exception sending batch: "+r.dumpObj(e))}}}function le(e,t,n){e[t]=e[t]||{},e[t][c.identifier]=n}function ue(t,n,o,a){if(t&&t.payloadBlob&&t.payloadBlob.length>0){var s=!!e.sendHook,l=p[t.sendType];!ne(t.sendType)&&t.isBeacon&&2===t.sendReason&&(l=p[2]||p[3]||l);var u=Y;(t.isBeacon||3===l._transport)&&(u=!1);var E=function(e,t){var n={url:C,hdrs:{},useHdrs:!1};t?(n.hdrs=r.extend(n.hdrs,U),n.useHdrs=r.objKeys(n.hdrs).length>0):r.objForEachKey(U,(function(e,t){q[e]?W(n,q[e],t,!1):(n.hdrs[e]=t,n.useHdrs=!0)})),W(n,b,"NO_AUTH",t),W(n,g,r.FullVersionString,t);var i="";r.arrForEach(e.apiKeys,(function(e){i.length>0&&(i+=","),i+=e})),W(n,x,i,t),W(n,_,r.dateNow().toString(),t);var o=function(e){for(var t=0;t<e.batches.length;t++){var n=e.batches[t].Msfpc();if(n)return encodeURIComponent(n)}return""}(e);if(r.isValueAssigned(o)&&(n.url+="&ext.intweb.msfpc="+o),O.shouldAddClockSkewHeaders()&&W(n,y,O.getClockSkewHeaderValue(),t),w.getWParam){var a=w.getWParam();a>=0&&(n.url+="&w="+a)}for(var s=0;s<j.length;s++)n.url+="&"+j[s].name+"="+j[s].value;return n}(t,u);u=u||E.useHdrs;var A=r.getTime();r.doPerf(w,(function(){return"HttpManager:_doPayloadSend"}),(function(){for(var p=0;p<t.batches.length;p++)for(var g=t.batches[p].events(),b=0;b<g.length;b++){var y=g[b];if(K){var _=y.timings=y.timings||{};le(_,"sendEventStart",A),le(_,"serializationStart",n),le(_,"serializationCompleted",o)}y[V]>0?y[V]++:y[V]=1}fe(t.batches,1e3+(a||0),t.sendType,!0);var x={data:t.payloadBlob,urlString:E.url,headers:E.hdrs,_thePayload:t,_sendReason:a,timeout:S};r.isUndefined(T)||(x.disableXhrSync=!!T),u&&($(x.headers,f)||(x.headers[f]="no-cache, no-store"),$(x.headers,h)||(x.headers[h]=d));var C=null;l&&(C=function(n){O.firstRequestSent();var o=function(n,o){!function(t,n,o,a){var s=9e3,l=null,u=!1,p=!1;try{var d=!0;if(typeof t!==r.strUndefined){if(n){O.setClockSkew(n[v]);var f=n[m]||n["kill-duration-seconds"];r.arrForEach(I.setKillSwitchTenants(n["kill-tokens"],f),(function(e){r.arrForEach(o.batches,(function(t){if(t.iKey()===e){l=l||[];var n=t.split(0);o.numEvents-=n.count(),l.push(n)}}))}))}if(200==t||204==t)return void(s=200);(!function(e){return!(e>=300&&e<500&&408!=e&&429!=e||501==e||505==e)}(t)||o.numEvents<=0)&&(d=!1),s=9e3+t%1e3}if(d){s=100;var h=o.retryCnt;0===o.sendType&&(h<i?(u=!0,pe((function(){0===o.sendType&&R--,ce(o.batches,h+1,o.isTeardown,X?2:o.sendType,5)}),X,L(h))):(p=!0,X&&(s=8001)))}}finally{u||(O.setClockSkew(),function(t,n,i,o){try{o&&c._backOffTransmission(),200===n&&(!o&&!t.isSync&&c._clearBackOff(),function(e){if(K){var t=r.getTime();r.arrForEach(e,(function(e){e&&e.count()>0&&function(e,t){K&&r.arrForEach(e,(function(e){le(e.timings=e.timings||{},"sendEventCompleted",t)}))}(e.events(),t)}))}}(t.batches)),fe(t.batches,n,t.sendType,!0)}finally{0===t.sendType&&(R--,5!==i&&e.sendQueuedRequests(t.sendType,i))}}(o,s,a,p)),fe(l,8004,o.sendType)}}(n,o,t,a)},s=t.isTeardown||t.isSync;try{l.sendPOST(n,o,s),e.sendListener&&e.sendListener(x,n,s,t.isBeacon)}catch(e){c.diagLog().warnToConsole("Unexpected exception sending payload. Ex:"+r.dumpObj(e)),ee(o,0,{})}}),r.doPerf(w,(function(){return"HttpManager:_doPayloadSend.sender"}),(function(){if(C)if(0===t.sendType&&R++,s&&!t.isBeacon&&3!==l._transport){var n={data:x.data,urlString:x.urlString,headers:r.extend({},x.headers),timeout:x.timeout,disableXhrSync:x.disableXhrSync},i=!1;r.doPerf(w,(function(){return"HttpManager:_doPayloadSend.sendHook"}),(function(){try{e.sendHook(n,(function(e){i=!0,!k&&!e._thePayload&&(e._thePayload=e._thePayload||x._thePayload,e._sendReason=e._sendReason||x._sendReason),C(e)}),t.isSync||t.isTeardown)}catch{i||C(x)}}))}else C(x)}))}),(function(){return{thePayload:t,serializationStart:n,serializationCompleted:o,sendReason:a}}),t.isSync)}t.sizeExceed&&t.sizeExceed.length>0&&fe(t.sizeExceed,8003,t.sendType),t.failedEvts&&t.failedEvts.length>0&&fe(t.failedEvts,8002,t.sendType)}function pe(e,t,n){t?e():s.set(e,n)}function de(t){var n=e._responseHandlers;try{for(var i=0;i<n.length;i++)try{n[i](t)}catch(e){r._throwInternal(c.diagLog(),1,519,"Response handler failed: "+e)}if(t){var o=JSON.parse(t);r.isValueAssigned(o.webResult)&&r.isValueAssigned(o.webResult[A])&&E.set("MSFPC",o.webResult[A],31536e3)}}catch{}}function fe(e,t,n,i){if(e&&e.length>0&&a){var o=a[function(e){var t=F[e];return r.isValueAssigned(t)||(t="oth",e>=9e3&&e<=9999?t="rspFail":e>=8e3&&e<=8999?t=u:e>=1e3&&e<=1999&&(t="send")),t}(t)];if(o){var s=0!==n;r.doPerf(w,(function(){return"HttpManager:_sendBatchesNotification"}),(function(){pe((function(){try{o.call(a,e,t,s,n)}catch(e){r._throwInternal(c.diagLog(),1,74,"send request notification failed: "+e)}}),i||s,0)}),(function(){return{batches:se(e),reason:t,isSync:s,sendSync:i,sendType:n}}),!s)}}}e.initialize=function(e,t,n,i,a){var s;a||(a={}),C=e+C,Y=!!r.isUndefined(a.avoidOptions)||!a.avoidOptions,w=t,E=t.getCookieMgr(),K=!w.config.disableEventTimings;var l=!!w.config.enableCompoundKey;c=n;var u=a.valueSanitizer,d=a.stringifyObjects;r.isUndefined(a.enableCompoundKey)||(l=!!a.enableCompoundKey),S=a.xhrTimeout,T=a.disableXhrSync,N=!r.isReactNative(),Q=new D(w,u,d,l);var f=i,h=a.alwaysUseXhrOverride?i:null,m=a.alwaysUseXhrOverride?i:null;if(!i){k=!1;var v=r.getLocation();v&&v.protocol&&"file:"===v.protocol.toLowerCase()&&(o=!1);var g=[];g=r.isReactNative()?[2,1]:[1,2,3];var b=a.transports;b&&(r.isNumber(b)?g=[b].concat(g):r.isArray(b)&&(g=b.concat(g))),i=M(g,!1),f=M(g,!0),i||c.diagLog().warnToConsole("No available transport to send events")}(s={})[0]=i,s[1]=f||M([1,2,3],!0),s[2]=h||M([3,2],!0)||f||M([1],!0),s[3]=m||M([2,3],!0)||f||M([1],!0),p=s},e._getDbgPlgTargets=function(){return[p[0],I,Q,p]},e.addQueryStringParameter=function(e,t){for(var n=0;n<j.length;n++)if(j[n].name===e)return void(j[n].value=t);j.push({name:e,value:t})},e.addHeader=function(e,t){U[e]=t},e.canSendRequest=function(){return ie()&&O.allowRequestSending()},e.sendQueuedRequests=function(e,t){r.isUndefined(e)&&(e=0),X&&(e=re(e),t=2),ae(H,e,0)&&ce(oe(),0,!1,e,t||0)},e.isCompletelyIdle=function(){return!P&&0===R&&0===H.length},e.setUnloading=function(e){X=e},e.addBatch=function(e){if(e&&e.count()>0){if(I.isTenantKilled(e.iKey()))return!1;H.push(e)}return!0},e.teardown=function(){H.length>0&&ce(oe(),0,!0,2,2)},e.pause=function(){P=!0},e.resume=function(){P=!1,e.sendQueuedRequests(0,4)},e.sendSynchronousBatch=function(e,t,n){e&&e.count()>0&&(r.isNullOrUndefined(t)&&(t=1),X&&(t=re(t),n=2),ce([e],0,!1,t,n||0))}}))};function K(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout(e,t,n)}function X(e){clearTimeout(e)}function Y(e,t){return{set:e||K,clear:t||X}}var J="eventsDiscarded",Z="overrideInstrumentationKey",ee="maxEventRetryAttempts",te="maxUnloadEventRetryAttempts",ne=function(e){function n(){var t=e.call(this)||this;t.identifier="PostChannel",t.priority=1011,t.version="3.2.3";var i,l,u,p,d,f,h,m,v=!1,g=[],b=null,y=!1,_=0,x=500,E=0,A=1e4,S={},T=a,I=null,P=null,O=0,N=0,R={},D=-1,k=!0,j=!1,M=6,z=2;return o(n,t,(function(e,t){function n(e){"beforeunload"!==(e||r.getWindow().event).type&&(j=!0,u.setUnloading(j)),$(2,2)}function o(e){j=!1,u.setUnloading(j)}function V(e,t){if(e.sendAttempt||(e.sendAttempt=0),e.latency||(e.latency=1),e.ext&&e.ext.trace&&delete e.ext.trace,e.ext&&e.ext.user&&e.ext.user.id&&delete e.ext.user.id,k&&(e.ext=r.optimizeObject(e.ext),e.baseData&&(e.baseData=r.optimizeObject(e.baseData)),e.data&&(e.data=r.optimizeObject(e.data))),e.sync)if(O||y)e.latency=3,e.sync=!1;else if(u)return k&&(e=r.optimizeObject(e)),void u.sendSynchronousBatch(C.create(e.iKey,[e]),!0===e.sync?1:e.sync,3);var n=e.latency,i=E,o=A;4===n&&(i=_,o=x);var a=!1;if(i<o)a=!X(e,t);else{var s=1,c=20;4===n&&(s=4,c=1),a=!0,function(e,t,n,i){for(;n<=t;){var o=W(e,t,!0);if(o&&o.count()>0){var a=o.split(0,i),s=a.count();if(s>0)return 4===n?_-=s:E-=s,ue(J,[a],r.EventsDiscardedReason.QueueFull),!0}n++}return ne(),!1}(e.iKey,e.latency,s,c)&&(a=!X(e,t))}a&&le(J,[e],r.EventsDiscardedReason.QueueFull)}function B(e,t,n){var r=re(e,t,n);return u.sendQueuedRequests(t,n),r}function F(){return E>0}function U(){if(D>=0&&re(D,0,f)&&u.sendQueuedRequests(0,f),_>0&&!P&&!y){var e=S[T][2];e>=0&&(P=H((function(){P=null,B(4,0,1),U()}),e))}var t=S[T][1];!I&&!b&&t>=0&&!y&&(F()?I=H((function(){I=null,B(0===N?3:1,0,1),N++,N%=2,U()}),t):N=0)}function q(){i=null,v=!1,g=[],b=null,y=!1,_=0,x=500,E=0,A=1e4,S={},T=a,I=null,P=null,O=0,N=0,l=null,R={},p=void 0,d=0,D=-1,f=null,k=!0,j=!1,M=6,z=2,h=null,m=Y(),u=new Q(500,2,1,{requeue:se,send:pe,sent:de,drop:fe,rspFail:he,oth:me},m),ae(),R[4]={batches:[],iKeyMap:{}},R[3]={batches:[],iKeyMap:{}},R[2]={batches:[],iKeyMap:{}},R[1]={batches:[],iKeyMap:{}},ve()}function H(e,t){0===t&&O&&(t=1);var n=1e3;return O&&(n=L(O-1)),m.set(e,t*n)}function G(){return null!==I&&(m.clear(I),I=null,N=0,!0)}function $(e,t){G(),b&&(m.clear(b),b=null),y||B(1,e,t)}function W(e,t,n){var r=R[t];r||(r=R[t=1]);var i=r.iKeyMap[e];return!i&&n&&(i=C.create(e),r.batches.push(i),r.iKeyMap[e]=i),i}function K(t,n){u.canSendRequest()&&!O&&(p>0&&E>p&&(n=!0),n&&null==b&&e.flush(t,null,20))}function X(e,t){k&&(e=r.optimizeObject(e));var n=e.latency,i=W(e.iKey,n,!0);return!!i.addEvent(e)&&(4!==n?(E++,t&&0===e.sendAttempt&&K(!e.sync,d>0&&i.count()>=d)):_++,!0)}function ne(){for(var e=0,t=0,n=function(n){var i=R[n];i&&i.batches&&r.arrForEach(i.batches,(function(r){4===n?e+=r.count():t+=r.count()}))},i=1;i<=4;i++)n(i);E=t,_=e}function re(t,n,i){var o=!1,a=0===n;return!a||u.canSendRequest()?r.doPerf(e.core,(function(){return"PostChannel._queueBatches"}),(function(){for(var e=[],n=4;n>=t;){var i=R[n];i&&i.batches&&i.batches.length>0&&(r.arrForEach(i.batches,(function(t){u.addBatch(t)?o=o||t&&t.count()>0:e=e.concat(t.events()),4===n?_-=t.count():E-=t.count()})),i.batches=[],i.iKeyMap={}),n--}e.length>0&&le(J,e,r.EventsDiscardedReason.KillSwitch),o&&D>=t&&(D=-1,f=0)}),(function(){return{latency:t,sendType:n,sendReason:i}}),!a):(D=D>=0?Math.min(D,t):t,f=Math.max(f,i)),o}function ie(e,t){B(1,0,t),ne(),oe((function(){e&&e(),g.length>0?b=H((function(){b=null,ie(g.shift(),t)}),0):(b=null,U())}))}function oe(e){u.isCompletelyIdle()?e():b=H((function(){b=null,oe(e)}),.25)}function ae(){(S={})[a]=[2,1,0],S[s]=[6,3,0],S[c]=[18,9,0]}function se(t,n){var i=[],o=M;j&&(o=z),r.arrForEach(t,(function(t){t&&t.count()>0&&r.arrForEach(t.events(),(function(t){t&&(t.sync&&(t.latency=4,t.sync=!1),t.sendAttempt<o?(r.setProcessTelemetryTimings(t,e.identifier),V(t,!1)):i.push(t))}))})),i.length>0&&le(J,i,r.EventsDiscardedReason.NonRetryableStatus),j&&$(2,2)}function ce(t,n){var i=e._notificationManager||{},o=i[t];if(o)try{o.apply(i,n)}catch(n){r._throwInternal(e.diagLog(),1,74,t+" notification failed: "+n)}}function le(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&ce(e,[t].concat(n))}function ue(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];t&&t.length>0&&r.arrForEach(t,(function(t){t&&t.count()>0&&ce(e,[t.events()].concat(n))}))}function pe(e,t,n){e&&e.length>0&&ce("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==n])}function de(e,t){ue("eventsSent",e,t),U()}function fe(e,t){ue(J,e,t>=8e3&&t<=8999?t-8e3:r.EventsDiscardedReason.Unknown)}function he(e){ue(J,e,r.EventsDiscardedReason.NonRetryableStatus),U()}function me(e,t){ue(J,e,r.EventsDiscardedReason.Unknown),U()}function ve(){d=i&&i.disableAutoBatchFlushLimit?0:Math.max(1500,A/6)}q(),e._getDbgPlgTargets=function(){return[u]},e.initialize=function(a,s,c){r.doPerf(s,(function(){return"PostChannel:initialize"}),(function(){var d=s;t.initialize(a,s,c);try{s.addUnloadCb,h=r.mergeEvtNamespace(r.createUniqueNamespace(e.identifier),s.evtNamespace&&s.evtNamespace());var f=e._getTelCtx();a.extensionConfig[e.identifier]=a.extensionConfig[e.identifier]||{},i=f.getExtCfg(e.identifier),m=Y(i.setTimeoutOverride,i.clearTimeoutOverride),k=!i.disableOptimizeObj&&r.isChromium(),function(e){var t=e.getWParam;e.getWParam=function(){var e=0;return i.ignoreMc1Ms0CookieProcessing&&(e|=2),e|t()}}(d),i.eventsLimitInMem>0&&(A=i.eventsLimitInMem),i.immediateEventLimit>0&&(x=i.immediateEventLimit),i.autoFlushEventsLimit>0&&(p=i.autoFlushEventsLimit),r.isNumber(i[ee])&&(M=i[ee]),r.isNumber(i[te])&&(z=i[te]),ve(),i.httpXHROverride&&i.httpXHROverride.sendPOST&&(l=i.httpXHROverride),r.isValueAssigned(a.anonCookieName)&&u.addQueryStringParameter("anoncknm",a.anonCookieName),u.sendHook=i.payloadPreprocessor,u.sendListener=i.payloadListener;var v=i.overrideEndpointUrl?i.overrideEndpointUrl:a.endpointUrl;e._notificationManager=a.extensionConfig.NotificationManager,u.initialize(v,e.core,e,l,i);var g=a.disablePageUnloadEvents||[];r.addPageUnloadEventListener(n,g,h),r.addPageHideEventListener(n,g,h),r.addPageShowEventListener(o,a.disablePageShowEvents,h)}catch(t){throw e.setInitialized(!1),t}}),(function(){return{coreConfig:a,core:s,extensions:c}}))},e.processTelemetry=function(t,n){r.setProcessTelemetryTimings(t,e.identifier);var o=(n=e._getTelCtx(n)).getExtCfg(e.identifier),a=!!i.disableTelemetry;o&&(a=a||!!o.disableTelemetry);var s=t;!a&&!v&&(i[Z]&&(s.iKey=i[Z]),o&&o[Z]&&(s.iKey=o[Z]),V(s,!0),j?$(2,2):U()),e.processNext(s,n)},e._doTeardown=function(e,t){$(2,2),v=!0,u.teardown(),r.removePageUnloadEventListener(null,h),r.removePageHideEventListener(null,h),r.removePageShowEventListener(null,h),q()},e.setEventQueueLimits=function(e,t){A=e>0?e:1e4,p=t>0?t:0,ve();var n=E>e;if(!n&&d>0)for(var i=1;!n&&i<=3;i++){var o=R[i];o&&o.batches&&r.arrForEach(o.batches,(function(e){e&&e.count()>=d&&(n=!0)}))}K(!0,n)},e.pause=function(){G(),y=!0,u.pause()},e.resume=function(){y=!1,u.resume(),U()},e.addResponseHandler=function(e){u._responseHandlers.push(e)},e._loadTransmitProfiles=function(e){G(),ae(),T=a,U(),r.objForEachKey(e,(function(e,t){var n=t.length;if(n>=2){var r=n>2?t[2]:0;if(t.splice(0,n-2),t[1]<0&&(t[0]=-1),t[1]>0&&t[0]>0){var i=t[0]/t[1];t[0]=Math.ceil(i)*t[1]}r>=0&&t[1]>=0&&r>t[1]&&(r=t[1]),t.push(r),S[e]=t}}))},e.flush=function(e,t,n){if(void 0===e&&(e=!0),!y)if(n=n||1,e)null==b?(G(),re(1,0,n),b=H((function(){b=null,ie(t,n)}),0)):g.push(t);else{var r=G();B(1,1,n),null!=t&&t(),r&&U()}},e.setMsaAuthTicket=function(e){u.addHeader(w,e)},e.hasEvents=F,e._setTransmitProfile=function(e){T!==e&&void 0!==S[e]&&(G(),T=e,U())},e._backOffTransmission=function(){O<4&&(O++,G(),U())},e._clearBackOff=function(){O&&(O=0,G(),U())},r.objDefineAccessors(e,"_setTimeoutOverride",(function(){return m.set}),(function(e){m=Y(e,m.clear)})),r.objDefineAccessors(e,"_clearTimeoutOverride",(function(){return m.clear}),(function(e){m=Y(m.set,e)}))})),t}return t.__extendsFn(n,e),n}(r.BaseTelemetryPlugin);e.BE_PROFILE=c,e.NRT_PROFILE=s,e.PostChannel=ne,e.RT_PROFILE=a,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch{}n&&void 0!==typeof n.value&&(e[t]=n.value)}(e,"__esModule",{value:!0})},"object"==typeof a&&typeof s<"u"?c(a,C(),S(),T()):(i=[t,n(623),n(2314),n(9644)],void 0===(o="function"==typeof(r=c)?r.apply(t,i):r)||(e.exports=o))})),P=_(((e,t)=>{"use strict";var n=function(){function e(){}return e.info=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e.enableDebug&&console.info(e.TAG+t,n)},e.warn=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e.disableWarnings||console.warn(e.TAG+t,n)},e.enableDebug=!1,e.disableWarnings=!1,e.disableErrors=!1,e.TAG="ApplicationInsights:",e}();t.exports=n})),O=_((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncScopeManager=e.OpenTelemetryScopeManagerWrapper=void 0;var r=Tr(),i=n(2361),o=function(){function e(){}return e.prototype.active=function(){var e=this,n=r.CorrelationContextManager.getCurrentContext();return t(t({},n),{getValue:function(t){return e._activeSymbol?t===e._activeSymbol&&n:(e._activeSymbol=t,n)},setValue:function(){}})},e.prototype.with=function(t,n){var i=t.parentSpanId,o=t.name,a=e._spanToContext(t,i,o);return r.CorrelationContextManager.runWithContext(a,n)()},e.prototype.bind=function(e){return"function"==typeof e?r.CorrelationContextManager.wrapCallback(e):(e instanceof i.EventEmitter&&r.CorrelationContextManager.wrapEmitter(e),e)},e.prototype.enable=function(){return r.CorrelationContextManager.enable(),this},e.prototype.disable=function(){return r.CorrelationContextManager.disable(),this},e._spanToContext=function(e,n,i){var o=n?"|"+e.spanContext().traceId+"."+n+".":e.spanContext().traceId,a=t(t({},e.spanContext()),{traceFlags:e.spanContext().traceFlags});return r.CorrelationContextManager.spanToContextObject(a,o,i)},e}();e.OpenTelemetryScopeManagerWrapper=o,e.AsyncScopeManager=new o})),N=_(((e,t)=>{var n;e=t.exports=W,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var r=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,o=e.re=[],a=e.src=[],s=0,c=s++;a[c]="0|[1-9]\\d*";var l=s++;a[l]="[0-9]+";var u=s++;a[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=s++;a[p]="("+a[c]+")\\.("+a[c]+")\\.("+a[c]+")";var d=s++;a[d]="("+a[l]+")\\.("+a[l]+")\\.("+a[l]+")";var f=s++;a[f]="(?:"+a[c]+"|"+a[u]+")";var h=s++;a[h]="(?:"+a[l]+"|"+a[u]+")";var m=s++;a[m]="(?:-("+a[f]+"(?:\\."+a[f]+")*))";var v=s++;a[v]="(?:-?("+a[h]+"(?:\\."+a[h]+")*))";var g=s++;a[g]="[0-9A-Za-z-]+";var b=s++;a[b]="(?:\\+("+a[g]+"(?:\\."+a[g]+")*))";var y=s++,_="v?"+a[p]+a[m]+"?"+a[b]+"?";a[y]="^"+_+"$";var x="[v=\\s]*"+a[d]+a[v]+"?"+a[b]+"?",w=s++;a[w]="^"+x+"$";var E=s++;a[E]="((?:<|>)?=?)";var A=s++;a[A]=a[l]+"|x|X|\\*";var S=s++;a[S]=a[c]+"|x|X|\\*";var T=s++;a[T]="[v=\\s]*("+a[S]+")(?:\\.("+a[S]+")(?:\\.("+a[S]+")(?:"+a[m]+")?"+a[b]+"?)?)?";var C=s++;a[C]="[v=\\s]*("+a[A]+")(?:\\.("+a[A]+")(?:\\.("+a[A]+")(?:"+a[v]+")?"+a[b]+"?)?)?";var I=s++;a[I]="^"+a[E]+"\\s*"+a[T]+"$";var P=s++;a[P]="^"+a[E]+"\\s*"+a[C]+"$";var O=s++;a[O]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var N=s++;a[N]="(?:~>?)";var R=s++;a[R]="(\\s*)"+a[N]+"\\s+",o[R]=new RegExp(a[R],"g");var D=s++;a[D]="^"+a[N]+a[T]+"$";var k=s++;a[k]="^"+a[N]+a[C]+"$";var L=s++;a[L]="(?:\\^)";var j=s++;a[j]="(\\s*)"+a[L]+"\\s+",o[j]=new RegExp(a[j],"g");var M=s++;a[M]="^"+a[L]+a[T]+"$";var z=s++;a[z]="^"+a[L]+a[C]+"$";var V=s++;a[V]="^"+a[E]+"\\s*("+x+")$|^$";var B=s++;a[B]="^"+a[E]+"\\s*("+_+")$|^$";var F=s++;a[F]="(\\s*)"+a[E]+"\\s*("+x+"|"+a[T]+")",o[F]=new RegExp(a[F],"g");var U=s++;a[U]="^\\s*("+a[T]+")\\s+-\\s+("+a[T]+")\\s*$";var q=s++;a[q]="^\\s*("+a[C]+")\\s+-\\s+("+a[C]+")\\s*$";var H,G=s++;for(a[G]="(<|>)?=?\\s*\\*",H=0;H<35;H++)n(H,a[H]),o[H]||(o[H]=new RegExp(a[H]));function $(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e||e.length>r)return null;if(!(t.loose?o[w]:o[y]).test(e))return null;try{return new W(e,t)}catch{return null}}function W(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?o[w]:o[y]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}e.parse=$,e.valid=function(e,t){var n=$(e,t);return n?n.version:null},e.clean=function(e,t){var n=$(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},e.SemVer=W,W.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},W.prototype.toString=function(){return this.version},W.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof W||(e=new W(e,this.options)),this.compareMain(e)||this.comparePre(e)},W.prototype.compareMain=function(e){return e instanceof W||(e=new W(e,this.options)),K(this.major,e.major)||K(this.minor,e.minor)||K(this.patch,e.patch)},W.prototype.comparePre=function(e){if(e instanceof W||(e=new W(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return K(r,i)}while(++t)},W.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},e.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch{return null}},e.diff=function(e,t){if(Z(e,t))return null;var n=$(e),r=$(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return i+a;return o},e.compareIdentifiers=K;var Q=/^[0-9]+$/;function K(e,t){var n=Q.test(e),r=Q.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function X(e,t,n){return new W(e,n).compare(new W(t,n))}function Y(e,t,n){return X(e,t,n)>0}function J(e,t,n){return X(e,t,n)<0}function Z(e,t,n){return 0===X(e,t,n)}function ee(e,t,n){return 0!==X(e,t,n)}function te(e,t,n){return X(e,t,n)>=0}function ne(e,t,n){return X(e,t,n)<=0}function re(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Z(e,n,r);case"!=":return ee(e,n,r);case">":return Y(e,n,r);case">=":return te(e,n,r);case"<":return J(e,n,r);case"<=":return ne(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function ie(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ie){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof ie))return new ie(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===oe?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}e.rcompareIdentifiers=function(e,t){return K(t,e)},e.major=function(e,t){return new W(e,t).major},e.minor=function(e,t){return new W(e,t).minor},e.patch=function(e,t){return new W(e,t).patch},e.compare=X,e.compareLoose=function(e,t){return X(e,t,!0)},e.rcompare=function(e,t,n){return X(t,e,n)},e.sort=function(t,n){return t.sort((function(t,r){return e.compare(t,r,n)}))},e.rsort=function(t,n){return t.sort((function(t,r){return e.rcompare(t,r,n)}))},e.gt=Y,e.lt=J,e.eq=Z,e.neq=ee,e.gte=te,e.lte=ne,e.cmp=re,e.Comparator=ie;var oe={};function ae(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ae)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ae(e.raw,t);if(e instanceof ie)return new ae(e.value,t);if(!(this instanceof ae))return new ae(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ce(e,t,n,r,i,o,a,s,c,l,u,p,d){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(s=se(c)?"":se(l)?"<"+(+c+1)+".0.0":se(u)?"<"+c+"."+(+l+1)+".0":p?"<="+c+"."+l+"."+u+"-"+p:"<="+s)).trim()}function le(e,t,r){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(i=0;i<e.length;i++)if(n(e[i].semver),e[i].semver!==oe&&e[i].semver.prerelease.length>0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new ae(t,n)}catch{return!1}return t.test(e)}function pe(e,t,n,r){var i,o,a,s,c;switch(e=new W(e,r),t=new ae(t,r),n){case">":i=Y,o=ne,a=J,s=">",c=">=";break;case"<":i=J,o=te,a=Y,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,r))return!1;for(var l=0;l<t.set.length;++l){var u=t.set[l],p=null,d=null;if(u.forEach((function(e){e.semver===oe&&(e=new ie(">=0.0.0")),p=p||e,d=d||e,i(e.semver,p.semver,r)?p=e:a(e.semver,d.semver,r)&&(d=e)})),p.operator===s||p.operator===c||(!d.operator||d.operator===s)&&o(e,d.semver))return!1;if(d.operator===c&&a(e,d.semver))return!1}return!0}ie.prototype.parse=function(e){var t=this.options.loose?o[V]:o[B],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=oe},ie.prototype.toString=function(){return this.value},ie.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===oe||("string"==typeof e&&(e=new W(e,this.options)),re(e,this.operator,this.semver,this.options))},ie.prototype.intersects=function(e,t){if(!(e instanceof ie))throw new TypeError("a Comparator is required");var n;if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new ae(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new ae(this.value,t),ue(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=re(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=re(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&a||s||c},e.Range=ae,ae.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},ae.prototype.toString=function(){return this.range},ae.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[q]:o[U];e=e.replace(r,ce),n("hyphen replace",e),e=e.replace(o[F],"$1$2$3"),n("comparator trim",e,o[F]),e=(e=(e=e.replace(o[R],"$1~")).replace(o[j],"$1^")).split(/\s+/).join(" ");var i=t?o[V]:o[B],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[z]:o[M];return e.replace(r,(function(t,r,i,o,a){var s;return n("caret",e,t,r,i,o,a),se(r)?s="":se(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?s="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[k]:o[D];return e.replace(r,(function(t,r,i,o,a){var s;return n("tilde",e,t,r,i,o,a),se(r)?s="":se(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?s=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0"):s=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[P]:o[I];return e.replace(r,(function(t,r,i,o,a,s){n("xRange",e,t,r,i,o,a,s);var c=se(i),l=c||se(o),u=l||se(a);return"="===r&&u&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&u?(l&&(o=0),a=0,">"===r?(r=">=",l?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",l?i=+i+1:o=+o+1),t=r+i+"."+o+"."+a):l?t=">="+i+".0.0 <"+(+i+1)+".0.0":u&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(i)}))),a.map((function(e){return new ie(e,this.options)}),this)},ae.prototype.intersects=function(e,t){if(!(e instanceof ae))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},e.toComparators=function(e,t){return new ae(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},ae.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t<this.set.length;t++)if(le(this.set[t],e,this.options))return!0;return!1},e.satisfies=ue,e.maxSatisfying=function(e,t,n){var r=null,i=null;try{var o=new ae(t,n)}catch{return null}return e.forEach((function(e){o.test(e)&&(!r||-1===i.compare(e))&&(i=new W(r=e,n))})),r},e.minSatisfying=function(e,t,n){var r=null,i=null;try{var o=new ae(t,n)}catch{return null}return e.forEach((function(e){o.test(e)&&(!r||1===i.compare(e))&&(i=new W(r=e,n))})),r},e.minVersion=function(e,t){e=new ae(e,t);var n=new W("0.0.0");if(e.test(n)||(n=new W("0.0.0-0"),e.test(n)))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new W(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!n||Y(n,t))&&(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},e.validRange=function(e,t){try{return new ae(e,t).range||"*"}catch{return null}},e.ltr=function(e,t,n){return pe(e,t,"<",n)},e.gtr=function(e,t,n){return pe(e,t,">",n)},e.outside=pe,e.prerelease=function(e,t){var n=$(e,t);return n&&n.prerelease.length?n.prerelease:null},e.intersects=function(e,t,n){return e=new ae(e,n),t=new ae(t,n),e.intersects(t)},e.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(o[O]);return null==t?null:$(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}})),R=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.makePatchingRequire=void 0;var t=n(1017),r=N(),i=n(8188),o=Object.keys(process.binding("natives")),a=i.prototype.require;e.makePatchingRequire=function(e){var n={};return function(s){var c=a.apply(this,arguments);if(e[s]){var l=i._resolveFilename(s,this);if(n.hasOwnProperty(l))return n[l];var u=void 0;if(o.indexOf(s)<0)try{u=a.call(this,t.join(s,"package.json")).version}catch{return c}else u=process.version.substring(1);var p=u.indexOf("-");p>=0&&(u=u.substring(0,p));for(var d=c,f=0,h=e[s];f<h.length;f++){var m=h[f];r.satisfies(u,m.versionSpecifier)&&(d=m.patch(d,l))}return n[l]=d}return c}}})),D=_(((e,t)=>{t.exports={name:"diagnostic-channel",version:"1.0.0",main:"./dist/src/channel.js",types:"./dist/src/channel.d.ts",scripts:{build:"tsc",lint:"tslint -c tslint.json -p tsconfig.json",clean:"rimraf ./dist",test:"mocha ./dist/tests/**/*.js"},homepage:"https://github.com/Microsoft/node-diagnostic-channel",bugs:{url:"https://github.com/Microsoft/node-diagnostic-channel/issues"},repository:{type:"git",url:"https://github.com/Microsoft/node-diagnostic-channel.git"},description:"Provides a context-saving pub/sub channel to connect diagnostic event publishers and subscribers",dependencies:{semver:"^5.3.0"},devDependencies:{"@types/mocha":"^2.2.40","@types/node":"~8.0.0",mocha:"^3.2.0",rimraf:"^2.6.1",tslint:"^5.0.0",typescript:"4.1.2"},files:["dist/src/**/*.d.ts","dist/src/**/*.js","LICENSE","README.md","package.json"],license:"MIT"}})),k=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.channel=e.makePatchingRequire=void 0;var t=R(),r=R();Object.defineProperty(e,"makePatchingRequire",{enumerable:!0,get:function(){return r.makePatchingRequire}});var i=function(e){return!0},o=function(){function e(){this.version=D().version,this.subscribers={},this.contextPreservationFunction=function(e){return e},this.knownPatches={},this.currentlyPublishing=!1}return e.prototype.shouldPublish=function(e){var t=this.subscribers[e];return!!t&&t.some((function(e){var t=e.filter;return!t||t(!1)}))},e.prototype.publish=function(e,t){if(!this.currentlyPublishing){var n=this.subscribers[e];if(n){var r={timestamp:Date.now(),data:t};this.currentlyPublishing=!0,n.forEach((function(e){var t=e.listener,n=e.filter;try{n&&n(!0)&&t(r)}catch{}})),this.currentlyPublishing=!1}}},e.prototype.subscribe=function(e,t,n){void 0===n&&(n=i),this.subscribers[e]||(this.subscribers[e]=[]),this.subscribers[e].push({listener:t,filter:n})},e.prototype.unsubscribe=function(e,t,n){void 0===n&&(n=i);var r=this.subscribers[e];if(r)for(var o=0;o<r.length;++o)if(r[o].listener===t&&r[o].filter===n)return r.splice(o,1),!0;return!1},e.prototype.reset=function(){var e=this;this.subscribers={},this.contextPreservationFunction=function(e){return e},Object.getOwnPropertyNames(this.knownPatches).forEach((function(t){return delete e.knownPatches[t]}))},e.prototype.bindToContext=function(e){return this.contextPreservationFunction(e)},e.prototype.addContextPreservation=function(e){var t=this.contextPreservationFunction;this.contextPreservationFunction=function(n){return e(t(n))}},e.prototype.registerMonkeyPatch=function(e,t){this.knownPatches[e]||(this.knownPatches[e]=[]),this.knownPatches[e].push(t)},e.prototype.getPatchesObject=function(){return this.knownPatches},e}();global.diagnosticsSource||(global.diagnosticsSource=new o,n(8188).prototype.require=t.makePatchingRequire(global.diagnosticsSource.getPatchesObject())),e.channel=global.diagnosticsSource})),L=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),j=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._globalThis=void 0,e._globalThis="object"==typeof globalThis?globalThis:global})),M=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(j(),e)})),z=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(M(),e)})),V=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,e.VERSION="1.0.3"})),B=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isCompatible=e._makeCompatibilityCheck=void 0;var t=V(),n=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function r(e){var t=new Set([e]),r=new Set,i=e.match(n);if(!i)return function(){return!1};var o=+i[1],a=+i[2],s=+i[3];if(null!=i[4])return function(t){return t===e};function c(e){return r.add(e),!1}function l(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var i=e.match(n);if(!i)return c(e);var u=+i[1],p=+i[2],d=+i[3];return null!=i[4]||o!==u?c(e):0===o?a===p&&s<=d?l(e):c(e):a<=p?l(e):c(e)}}e._makeCompatibilityCheck=r,e.isCompatible=r(t.VERSION)})),F=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unregisterGlobal=e.getGlobal=e.registerGlobal=void 0;var t=z(),n=V(),r=B(),i=n.VERSION.split(".")[0],o=Symbol.for("opentelemetry.js.api."+i),a=t._globalThis;e.registerGlobal=function(e,t,r,i){var s;void 0===i&&(i=!1);var c=a[o]=null!==(s=a[o])&&void 0!==s?s:{version:n.VERSION};if(!i&&c[e]){var l=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(l.stack||l.message),!1}return c.version!==n.VERSION?(l=new Error("@opentelemetry/api: All API registration versions must match"),r.error(l.stack||l.message),!1):(c[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+n.VERSION+"."),!0)},e.getGlobal=function(e){var t,n,i=null===(t=a[o])||void 0===t?void 0:t.version;if(i&&r.isCompatible(i))return null===(n=a[o])||void 0===n?void 0:n[e]},e.unregisterGlobal=function(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+n.VERSION+".");var r=a[o];r&&delete r[e]}})),U=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiagComponentLogger=void 0;var t=F(),n=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r("debug",this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r("error",this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r("info",this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r("warn",this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r("verbose",this._namespace,e)},e}();function r(e,n,r){var i=t.getGlobal("diag");if(i)return r.unshift(n),i[e].apply(i,r)}e.DiagComponentLogger=n})),q=_((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiagLogLevel=void 0,(t=e.DiagLogLevel||(e.DiagLogLevel={}))[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})),H=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createLogLevelDiagLogger=void 0;var t=q();e.createLogLevelDiagLogger=function(e,n){function r(t,r){var i=n[t];return"function"==typeof i&&e>=r?i.bind(n):function(){}}return e<t.DiagLogLevel.NONE?e=t.DiagLogLevel.NONE:e>t.DiagLogLevel.ALL&&(e=t.DiagLogLevel.ALL),n=n||{},{error:r("error",t.DiagLogLevel.ERROR),warn:r("warn",t.DiagLogLevel.WARN),info:r("info",t.DiagLogLevel.INFO),debug:r("debug",t.DiagLogLevel.DEBUG),verbose:r("verbose",t.DiagLogLevel.VERBOSE)}}})),G=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiagAPI=void 0;var t=U(),n=H(),r=q(),i=F(),o=function(){function e(){function e(e){return function(){var t=i.getGlobal("diag");if(t)return t[e].apply(t,arguments)}}var o=this;o.setLogger=function(e,t){var a,s;if(void 0===t&&(t=r.DiagLogLevel.INFO),e===o){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return o.error(null!==(a=c.stack)&&void 0!==a?a:c.message),!1}var l=i.getGlobal("diag"),u=n.createLogLevelDiagLogger(t,e);if(l){var p=null!==(s=(new Error).stack)&&void 0!==s?s:"<failed to generate stacktrace>";l.warn("Current logger will be overwritten from "+p),u.warn("Current logger will overwrite one already registered from "+p)}return i.registerGlobal("diag",u,o,!0)},o.disable=function(){i.unregisterGlobal("diag",o)},o.createComponentLogger=function(e){return new t.DiagComponentLogger(e)},o.verbose=e("verbose"),o.debug=e("debug"),o.info=e("info"),o.warn=e("warn"),o.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}();e.DiagAPI=o})),$=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaggageImpl=void 0;var t=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map((function(e){return[e[0],e[1]]}))},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=new e(this._entries),i=0,o=t;i<o.length;i++){var a=o[i];r._entries.delete(a)}return r},e.prototype.clear=function(){return new e},e}();e.BaggageImpl=t})),W=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.baggageEntryMetadataSymbol=void 0,e.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")})),Q=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.baggageEntryMetadataFromString=e.createBaggage=void 0;var t=G(),n=$(),r=W(),i=t.DiagAPI.instance();e.createBaggage=function(e){return void 0===e&&(e={}),new n.BaggageImpl(new Map(Object.entries(e)))},e.baggageEntryMetadataFromString=function(e){return"string"!=typeof e&&(i.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:r.baggageEntryMetadataSymbol,toString:function(){return e}}}})),K=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),X=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Y=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiagConsoleLogger=void 0;var t=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];e.DiagConsoleLogger=function(){function e(e){return function(){var t=arguments;if(console){var n=console[e];if("function"!=typeof n&&(n=console.log),"function"==typeof n)return n.apply(console,t)}}}for(var n=0;n<t.length;n++)this[t[n].n]=e(t[n].c)}})),J=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Y(),e),n(q(),e)})),Z=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultTextMapSetter=e.defaultTextMapGetter=void 0,e.defaultTextMapGetter={get:function(e,t){if(null!=e)return e[t]},keys:function(e){return null==e?[]:Object.keys(e)}},e.defaultTextMapSetter={set:function(e,t,n){null!=e&&(e[t]=n)}}})),ee=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),te=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),ne=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ROOT_CONTEXT=e.createContextKey=void 0,e.createContextKey=function(e){return Symbol.for(e)};e.ROOT_CONTEXT=new function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(e){return n._currentContext.get(e)},n.setValue=function(t,r){var i=new e(n._currentContext);return i._currentContext.set(t,r),i},n.deleteValue=function(t){var r=new e(n._currentContext);return r._currentContext.delete(t),r}}})),re=_((e=>{"use strict";var t=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,"__esModule",{value:!0}),e.NoopContextManager=void 0;var n=ne(),r=function(){function e(){}return e.prototype.active=function(){return n.ROOT_CONTEXT},e.prototype.with=function(e,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return n.call.apply(n,t([r],i))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}();e.NoopContextManager=r})),ie=_((e=>{"use strict";var t=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,"__esModule",{value:!0}),e.ContextAPI=void 0;var n=re(),r=F(),i=G(),o="context",a=new n.NoopContextManager,s=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return r.registerGlobal(o,e,i.DiagAPI.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,n,r){for(var i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return(i=this._getContextManager()).with.apply(i,t([e,n,r],o))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return r.getGlobal(o)||a},e.prototype.disable=function(){this._getContextManager().disable(),r.unregisterGlobal(o,i.DiagAPI.instance())},e}();e.ContextAPI=s})),oe=_((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.TraceFlags=void 0,(t=e.TraceFlags||(e.TraceFlags={}))[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})),ae=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.INVALID_SPAN_CONTEXT=e.INVALID_TRACEID=e.INVALID_SPANID=void 0;var t=oe();e.INVALID_SPANID="0000000000000000",e.INVALID_TRACEID="00000000000000000000000000000000",e.INVALID_SPAN_CONTEXT={traceId:e.INVALID_TRACEID,spanId:e.INVALID_SPANID,traceFlags:t.TraceFlags.NONE}})),se=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NonRecordingSpan=void 0;var t=ae(),n=function(){function e(e){void 0===e&&(e=t.INVALID_SPAN_CONTEXT),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}();e.NonRecordingSpan=n})),ce=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSpanContext=e.setSpanContext=e.deleteSpan=e.setSpan=e.getSpan=void 0;var t=ne(),n=se(),r=t.createContextKey("OpenTelemetry Context Key SPAN");function i(e){return e.getValue(r)||void 0}function o(e,t){return e.setValue(r,t)}e.getSpan=i,e.setSpan=o,e.deleteSpan=function(e){return e.deleteValue(r)},e.setSpanContext=function(e,t){return o(e,new n.NonRecordingSpan(t))},e.getSpanContext=function(e){var t;return null===(t=i(e))||void 0===t?void 0:t.spanContext()}})),le=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wrapSpanContext=e.isSpanContextValid=e.isValidSpanId=e.isValidTraceId=void 0;var t=ae(),n=se(),r=/^([0-9a-f]{32})$/i,i=/^[0-9a-f]{16}$/i;function o(e){return r.test(e)&&e!==t.INVALID_TRACEID}function a(e){return i.test(e)&&e!==t.INVALID_SPANID}e.isValidTraceId=o,e.isValidSpanId=a,e.isSpanContextValid=function(e){return o(e.traceId)&&a(e.spanId)},e.wrapSpanContext=function(e){return new n.NonRecordingSpan(e)}})),ue=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoopTracer=void 0;var t=ie(),n=ce(),r=se(),i=le(),o=t.ContextAPI.getInstance(),a=function(){function e(){}return e.prototype.startSpan=function(e,t,o){if(Boolean(null==t?void 0:t.root))return new r.NonRecordingSpan;var a=o&&n.getSpanContext(o);return function(e){return"object"==typeof e&&"string"==typeof e.spanId&&"string"==typeof e.traceId&&"number"==typeof e.traceFlags}(a)&&i.isSpanContextValid(a)?new r.NonRecordingSpan(a):new r.NonRecordingSpan},e.prototype.startActiveSpan=function(e,t,r,i){var a,s,c;if(!(arguments.length<2)){2===arguments.length?c=t:3===arguments.length?(a=t,c=r):(a=t,s=r,c=i);var l=s??o.active(),u=this.startSpan(e,a,l),p=n.setSpan(l,u);return o.with(p,c,void 0,u)}},e}();e.NoopTracer=a})),pe=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyTracer=void 0;var t=new(ue().NoopTracer),n=function(){function e(e,t,n){this._provider=e,this.name=t,this.version=n}return e.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},e.prototype.startActiveSpan=function(e,t,n,r){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version);return e?(this._delegate=e,this._delegate):t},e}();e.ProxyTracer=n})),de=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoopTracerProvider=void 0;var t=ue(),n=function(){function e(){}return e.prototype.getTracer=function(e,n){return new t.NoopTracer},e}();e.NoopTracerProvider=n})),fe=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyTracerProvider=void 0;var t=pe(),n=new(de().NoopTracerProvider),r=function(){function e(){}return e.prototype.getTracer=function(e,n){var r;return null!==(r=this.getDelegateTracer(e,n))&&void 0!==r?r:new t.ProxyTracer(this,e,n)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:n},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(e,t)},e}();e.ProxyTracerProvider=r})),he=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),me=_((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.SamplingDecision=void 0,(t=e.SamplingDecision||(e.SamplingDecision={}))[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})),ve=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),ge=_((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.SpanKind=void 0,(t=e.SpanKind||(e.SpanKind={}))[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})),be=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),ye=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),_e=_((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.SpanStatusCode=void 0,(t=e.SpanStatusCode||(e.SpanStatusCode={}))[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})),xe=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),we=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Ee=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Ae=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Se=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TraceAPI=void 0;var t=F(),n=fe(),r=le(),i=ce(),o=G(),a="trace",s=function(){function e(){this._proxyTracerProvider=new n.ProxyTracerProvider,this.wrapSpanContext=r.wrapSpanContext,this.isSpanContextValid=r.isSpanContextValid,this.deleteSpan=i.deleteSpan,this.getSpan=i.getSpan,this.getSpanContext=i.getSpanContext,this.setSpan=i.setSpan,this.setSpanContext=i.setSpanContext}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var n=t.registerGlobal(a,this._proxyTracerProvider,o.DiagAPI.instance());return n&&this._proxyTracerProvider.setDelegate(e),n},e.prototype.getTracerProvider=function(){return t.getGlobal(a)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){t.unregisterGlobal(a,o.DiagAPI.instance()),this._proxyTracerProvider=new n.ProxyTracerProvider},e}();e.TraceAPI=s})),Te=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoopTextMapPropagator=void 0;var t=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}();e.NoopTextMapPropagator=t})),Ce=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.deleteBaggage=e.setBaggage=e.getBaggage=void 0;var t=ne().createContextKey("OpenTelemetry Baggage Key");e.getBaggage=function(e){return e.getValue(t)||void 0},e.setBaggage=function(e,n){return e.setValue(t,n)},e.deleteBaggage=function(e){return e.deleteValue(t)}})),Ie=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PropagationAPI=void 0;var t=F(),n=Te(),r=Z(),i=Ce(),o=Q(),a=G(),s="propagation",c=new n.NoopTextMapPropagator,l=function(){function e(){this.createBaggage=o.createBaggage,this.getBaggage=i.getBaggage,this.setBaggage=i.setBaggage,this.deleteBaggage=i.deleteBaggage}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(e){return t.registerGlobal(s,e,a.DiagAPI.instance())},e.prototype.inject=function(e,t,n){return void 0===n&&(n=r.defaultTextMapSetter),this._getGlobalPropagator().inject(e,t,n)},e.prototype.extract=function(e,t,n){return void 0===n&&(n=r.defaultTextMapGetter),this._getGlobalPropagator().extract(e,t,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){t.unregisterGlobal(s,a.DiagAPI.instance())},e.prototype._getGlobalPropagator=function(){return t.getGlobal(s)||c},e}();e.PropagationAPI=l})),Pe=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.diag=e.propagation=e.trace=e.context=e.INVALID_SPAN_CONTEXT=e.INVALID_TRACEID=e.INVALID_SPANID=e.isValidSpanId=e.isValidTraceId=e.isSpanContextValid=e.baggageEntryMetadataFromString=void 0,n(L(),e);var r=Q();Object.defineProperty(e,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return r.baggageEntryMetadataFromString}}),n(K(),e),n(X(),e),n(J(),e),n(Z(),e),n(ee(),e),n(te(),e),n(pe(),e),n(fe(),e),n(he(),e),n(me(),e),n(ve(),e),n(ge(),e),n(be(),e),n(ye(),e),n(_e(),e),n(oe(),e),n(xe(),e),n(we(),e),n(Ee(),e);var i=le();Object.defineProperty(e,"isSpanContextValid",{enumerable:!0,get:function(){return i.isSpanContextValid}}),Object.defineProperty(e,"isValidTraceId",{enumerable:!0,get:function(){return i.isValidTraceId}}),Object.defineProperty(e,"isValidSpanId",{enumerable:!0,get:function(){return i.isValidSpanId}});var o=ae();Object.defineProperty(e,"INVALID_SPANID",{enumerable:!0,get:function(){return o.INVALID_SPANID}}),Object.defineProperty(e,"INVALID_TRACEID",{enumerable:!0,get:function(){return o.INVALID_TRACEID}}),Object.defineProperty(e,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return o.INVALID_SPAN_CONTEXT}}),n(ne(),e),n(Ae(),e);var a=ie();e.context=a.ContextAPI.getInstance();var s=Se();e.trace=s.TraceAPI.getInstance();var c=Ie();e.propagation=c.PropagationAPI.getInstance();var l=G();e.diag=l.DiagAPI.instance(),e.default={trace:e.trace,context:e.context,propagation:e.propagation,diag:e.diag}})),Oe=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTracingSuppressed=e.unsuppressTracing=e.suppressTracing=void 0;var t=Pe().createContextKey("OpenTelemetry SDK Context Key SUPPRESS_TRACING");e.suppressTracing=function(e){return e.setValue(t,!0)},e.unsuppressTracing=function(e){return e.deleteValue(t)},e.isTracingSuppressed=function(e){return!0===e.getValue(t)}})),Ne=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BAGGAGE_MAX_TOTAL_LENGTH=e.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=e.BAGGAGE_MAX_NAME_VALUE_PAIRS=e.BAGGAGE_HEADER=e.BAGGAGE_ITEMS_SEPARATOR=e.BAGGAGE_PROPERTIES_SEPARATOR=e.BAGGAGE_KEY_PAIR_SEPARATOR=void 0,e.BAGGAGE_KEY_PAIR_SEPARATOR="=",e.BAGGAGE_PROPERTIES_SEPARATOR=";",e.BAGGAGE_ITEMS_SEPARATOR=",",e.BAGGAGE_HEADER="baggage",e.BAGGAGE_MAX_NAME_VALUE_PAIRS=180,e.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096,e.BAGGAGE_MAX_TOTAL_LENGTH=8192})),Re=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseKeyPairsIntoRecord=e.parsePairKeyValue=e.getKeyPairs=e.serializeKeyPairs=void 0;var t=Pe(),n=Ne();e.serializeKeyPairs=e=>e.reduce(((e,t)=>{let r=`${e}${""!==e?n.BAGGAGE_ITEMS_SEPARATOR:""}${t}`;return r.length>n.BAGGAGE_MAX_TOTAL_LENGTH?e:r}),""),e.getKeyPairs=e=>e.getAllEntries().map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`)),e.parsePairKeyValue=e=>{let r=e.split(n.BAGGAGE_PROPERTIES_SEPARATOR);if(r.length<=0)return;let i=r.shift();if(!i)return;let o=i.split(n.BAGGAGE_KEY_PAIR_SEPARATOR);if(2!==o.length)return;let a,s=decodeURIComponent(o[0].trim()),c=decodeURIComponent(o[1].trim());return r.length>0&&(a=t.baggageEntryMetadataFromString(r.join(n.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:c,metadata:a}},e.parseKeyPairsIntoRecord=t=>"string"!=typeof t||0===t.length?{}:t.split(n.BAGGAGE_ITEMS_SEPARATOR).map((t=>e.parsePairKeyValue(t))).filter((e=>void 0!==e&&e.value.length>0)).reduce(((e,t)=>(e[t.key]=t.value,e)),{})})),De=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HttpBaggagePropagator=void 0;var t=Pe(),n=Oe(),r=Ne(),i=Re();e.HttpBaggagePropagator=class{inject(e,o,a){let s=t.propagation.getBaggage(e);if(!s||n.isTracingSuppressed(e))return;let c=i.getKeyPairs(s).filter((e=>e.length<=r.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS)).slice(0,r.BAGGAGE_MAX_NAME_VALUE_PAIRS),l=i.serializeKeyPairs(c);l.length>0&&a.set(o,r.BAGGAGE_HEADER,l)}extract(e,n,o){let a=o.get(n,r.BAGGAGE_HEADER);if(!a)return e;let s={};return 0===a.length||(a.split(r.BAGGAGE_ITEMS_SEPARATOR).forEach((e=>{let t=i.parsePairKeyValue(e);if(t){let e={value:t.value};t.metadata&&(e.metadata=t.metadata),s[t.key]=e}})),0===Object.entries(s).length)?e:t.propagation.setBaggage(e,t.propagation.createBaggage(s))}fields(){return[r.BAGGAGE_HEADER]}}})),ke=_((e=>{"use strict";function t(e){return null==e||(Array.isArray(e)?function(e){let t;for(let r of e)if(null!=r){if(!t){if(n(r)){t=typeof r;continue}return!1}if(typeof r!==t)return!1}return!0}(e):n(e))}function n(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}Object.defineProperty(e,"__esModule",{value:!0}),e.isAttributeValue=e.sanitizeAttributes=void 0,e.sanitizeAttributes=function(e){let n={};if(null==e||"object"!=typeof e)return n;for(let[r,i]of Object.entries(e))t(i)&&(Array.isArray(i)?n[r]=i.slice():n[r]=i);return n},e.isAttributeValue=t})),Le=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.loggingErrorHandler=void 0;var t=Pe();e.loggingErrorHandler=function(){return e=>{t.diag.error(function(e){return"string"==typeof e?e:JSON.stringify(function(e){let t={},n=e;for(;null!==n;)Object.getOwnPropertyNames(n).forEach((e=>{if(t[e])return;let r=n[e];r&&(t[e]=String(r))})),n=Object.getPrototypeOf(n);return t}(e))}(e))}}})),je=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.globalErrorHandler=e.setGlobalErrorHandler=void 0;var t=Le().loggingErrorHandler();e.setGlobalErrorHandler=function(e){t=e},e.globalErrorHandler=e=>{try{t(e)}catch{}}})),Me=_((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.TracesSamplerValues=void 0,(t=e.TracesSamplerValues||(e.TracesSamplerValues={})).AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})),ze=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseEnvironment=e.DEFAULT_ENVIRONMENT=void 0;var t=Pe(),n=Me(),r=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT"];function i(e){return r.indexOf(e)>-1}var o=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function a(e){return o.indexOf(e)>-1}function s(e,t,n,r=-1/0,i=1/0){if(typeof n[e]<"u"){let o=Number(n[e]);isNaN(o)||(t[e]=o<r?r:o>i?i:o)}}function c(e,t,n,r=","){let i=n[e];"string"==typeof i&&(t[e]=i.split(r).map((e=>e.trim())))}e.DEFAULT_ENVIRONMENT={CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:t.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"none",OTEL_TRACES_SAMPLER:n.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:""};var l={ALL:t.DiagLogLevel.ALL,VERBOSE:t.DiagLogLevel.VERBOSE,DEBUG:t.DiagLogLevel.DEBUG,INFO:t.DiagLogLevel.INFO,WARN:t.DiagLogLevel.WARN,ERROR:t.DiagLogLevel.ERROR,NONE:t.DiagLogLevel.NONE};function u(e,t,n){let r=n[e];if("string"==typeof r){let n=l[r.toUpperCase()];null!=n&&(t[e]=n)}}e.parseEnvironment=function(t){let n={};for(let r in e.DEFAULT_ENVIRONMENT){let e=r;if("OTEL_LOG_LEVEL"===e)u(e,n,t);else if(i(e))s(e,n,t);else if(a(e))c(e,n,t);else{let r=t[e];typeof r<"u"&&null!==r&&(n[e]=String(r))}}return n}})),Ve=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEnv=void 0;var t=n(2037),r=ze();e.getEnv=function(){let e=r.parseEnvironment(process.env);return Object.assign({HOSTNAME:t.hostname()},r.DEFAULT_ENVIRONMENT,e)}})),Be=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hexToBase64=void 0,e.hexToBase64=function(e){let t=e.length,n="";for(let r=0;r<t;r+=2){let t=e.substring(r,r+2),i=parseInt(t,16);n+=String.fromCharCode(i)}return Buffer.from(n,"ascii").toString("base64")}})),Fe=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RandomIdGenerator=void 0,e.RandomIdGenerator=class{constructor(){this.generateTraceId=n(16),this.generateSpanId=n(8)}};var t=Buffer.allocUnsafe(16);function n(e){return function(){for(let n=0;n<e/4;n++)t.writeUInt32BE(Math.random()*2**32>>>0,4*n);for(let n=0;n<e&&!(t[n]>0);n++)n===e-1&&(t[e-1]=1);return t.toString("hex",0,e)}}})),Ue=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.otperformance=void 0;var t=n(4074);e.otperformance=t.performance})),qe=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,e.VERSION="0.23.0"})),He=_((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.RpcGrpcStatusCodeValues=e.MessagingOperationValues=e.MessagingDestinationKindValues=e.HttpFlavorValues=e.NetTransportValues=e.FaasInvokedProviderValues=e.FaasDocumentOperationValues=e.FaasTriggerValues=e.DbCassandraConsistencyLevelValues=e.DbSystemValues=e.SemanticAttributes=void 0,e.SemanticAttributes={DB_SYSTEM:"db.system",DB_CONNECTION_STRING:"db.connection_string",DB_USER:"db.user",DB_JDBC_DRIVER_CLASSNAME:"db.jdbc.driver_classname",DB_NAME:"db.name",DB_STATEMENT:"db.statement",DB_OPERATION:"db.operation",DB_MSSQL_INSTANCE_NAME:"db.mssql.instance_name",DB_CASSANDRA_KEYSPACE:"db.cassandra.keyspace",DB_CASSANDRA_PAGE_SIZE:"db.cassandra.page_size",DB_CASSANDRA_CONSISTENCY_LEVEL:"db.cassandra.consistency_level",DB_CASSANDRA_TABLE:"db.cassandra.table",DB_CASSANDRA_IDEMPOTENCE:"db.cassandra.idempotence",DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:"db.cassandra.speculative_execution_count",DB_CASSANDRA_COORDINATOR_ID:"db.cassandra.coordinator.id",DB_CASSANDRA_COORDINATOR_DC:"db.cassandra.coordinator.dc",DB_HBASE_NAMESPACE:"db.hbase.namespace",DB_REDIS_DATABASE_INDEX:"db.redis.database_index",DB_MONGODB_COLLECTION:"db.mongodb.collection",DB_SQL_TABLE:"db.sql.table",EXCEPTION_TYPE:"exception.type",EXCEPTION_MESSAGE:"exception.message",EXCEPTION_STACKTRACE:"exception.stacktrace",EXCEPTION_ESCAPED:"exception.escaped",FAAS_TRIGGER:"faas.trigger",FAAS_EXECUTION:"faas.execution",FAAS_DOCUMENT_COLLECTION:"faas.document.collection",FAAS_DOCUMENT_OPERATION:"faas.document.operation",FAAS_DOCUMENT_TIME:"faas.document.time",FAAS_DOCUMENT_NAME:"faas.document.name",FAAS_TIME:"faas.time",FAAS_CRON:"faas.cron",FAAS_COLDSTART:"faas.coldstart",FAAS_INVOKED_NAME:"faas.invoked_name",FAAS_INVOKED_PROVIDER:"faas.invoked_provider",FAAS_INVOKED_REGION:"faas.invoked_region",NET_TRANSPORT:"net.transport",NET_PEER_IP:"net.peer.ip",NET_PEER_PORT:"net.peer.port",NET_PEER_NAME:"net.peer.name",NET_HOST_IP:"net.host.ip",NET_HOST_PORT:"net.host.port",NET_HOST_NAME:"net.host.name",PEER_SERVICE:"peer.service",ENDUSER_ID:"enduser.id",ENDUSER_ROLE:"enduser.role",ENDUSER_SCOPE:"enduser.scope",THREAD_ID:"thread.id",THREAD_NAME:"thread.name",CODE_FUNCTION:"code.function",CODE_NAMESPACE:"code.namespace",CODE_FILEPATH:"code.filepath",CODE_LINENO:"code.lineno",HTTP_METHOD:"http.method",HTTP_URL:"http.url",HTTP_TARGET:"http.target",HTTP_HOST:"http.host",HTTP_SCHEME:"http.scheme",HTTP_STATUS_CODE:"http.status_code",HTTP_FLAVOR:"http.flavor",HTTP_USER_AGENT:"http.user_agent",HTTP_REQUEST_CONTENT_LENGTH:"http.request_content_length",HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:"http.request_content_length_uncompressed",HTTP_RESPONSE_CONTENT_LENGTH:"http.response_content_length",HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:"http.response_content_length_uncompressed",HTTP_SERVER_NAME:"http.server_name",HTTP_ROUTE:"http.route",HTTP_CLIENT_IP:"http.client_ip",AWS_DYNAMODB_TABLE_NAMES:"aws.dynamodb.table_names",AWS_DYNAMODB_CONSUMED_CAPACITY:"aws.dynamodb.consumed_capacity",AWS_DYNAMODB_ITEM_COLLECTION_METRICS:"aws.dynamodb.item_collection_metrics",AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:"aws.dynamodb.provisioned_read_capacity",AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:"aws.dynamodb.provisioned_write_capacity",AWS_DYNAMODB_CONSISTENT_READ:"aws.dynamodb.consistent_read",AWS_DYNAMODB_PROJECTION:"aws.dynamodb.projection",AWS_DYNAMODB_LIMIT:"aws.dynamodb.limit",AWS_DYNAMODB_ATTRIBUTES_TO_GET:"aws.dynamodb.attributes_to_get",AWS_DYNAMODB_INDEX_NAME:"aws.dynamodb.index_name",AWS_DYNAMODB_SELECT:"aws.dynamodb.select",AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:"aws.dynamodb.global_secondary_indexes",AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:"aws.dynamodb.local_secondary_indexes",AWS_DYNAMODB_EXCLUSIVE_START_TABLE:"aws.dynamodb.exclusive_start_table",AWS_DYNAMODB_TABLE_COUNT:"aws.dynamodb.table_count",AWS_DYNAMODB_SCAN_FORWARD:"aws.dynamodb.scan_forward",AWS_DYNAMODB_SEGMENT:"aws.dynamodb.segment",AWS_DYNAMODB_TOTAL_SEGMENTS:"aws.dynamodb.total_segments",AWS_DYNAMODB_COUNT:"aws.dynamodb.count",AWS_DYNAMODB_SCANNED_COUNT:"aws.dynamodb.scanned_count",AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:"aws.dynamodb.attribute_definitions",AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:"aws.dynamodb.global_secondary_index_updates",MESSAGING_SYSTEM:"messaging.system",MESSAGING_DESTINATION:"messaging.destination",MESSAGING_DESTINATION_KIND:"messaging.destination_kind",MESSAGING_TEMP_DESTINATION:"messaging.temp_destination",MESSAGING_PROTOCOL:"messaging.protocol",MESSAGING_PROTOCOL_VERSION:"messaging.protocol_version",MESSAGING_URL:"messaging.url",MESSAGING_MESSAGE_ID:"messaging.message_id",MESSAGING_CONVERSATION_ID:"messaging.conversation_id",MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:"messaging.message_payload_size_bytes",MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:"messaging.message_payload_compressed_size_bytes",MESSAGING_OPERATION:"messaging.operation",MESSAGING_RABBITMQ_ROUTING_KEY:"messaging.rabbitmq.routing_key",MESSAGING_KAFKA_MESSAGE_KEY:"messaging.kafka.message_key",MESSAGING_KAFKA_CONSUMER_GROUP:"messaging.kafka.consumer_group",MESSAGING_KAFKA_CLIENT_ID:"messaging.kafka.client_id",MESSAGING_KAFKA_PARTITION:"messaging.kafka.partition",MESSAGING_KAFKA_TOMBSTONE:"messaging.kafka.tombstone",RPC_SYSTEM:"rpc.system",RPC_SERVICE:"rpc.service",RPC_METHOD:"rpc.method",RPC_GRPC_STATUS_CODE:"rpc.grpc.status_code",RPC_JSONRPC_VERSION:"rpc.jsonrpc.version",RPC_JSONRPC_METHOD:"rpc.jsonrpc.method",RPC_JSONRPC_REQUEST_ID:"rpc.jsonrpc.request_id",RPC_JSONRPC_ERROR_CODE:"rpc.jsonrpc.error_code",RPC_JSONRPC_ERROR_MESSAGE:"rpc.jsonrpc.error_message"},(t=e.DbSystemValues||(e.DbSystemValues={})).OTHER_SQL="other_sql",t.MSSQL="mssql",t.MYSQL="mysql",t.ORACLE="oracle",t.DB2="db2",t.POSTGRESQL="postgresql",t.REDSHIFT="redshift",t.HIVE="hive",t.CLOUDSCAPE="cloudscape",t.HSQLDB="hsqldb",t.PROGRESS="progress",t.MAXDB="maxdb",t.HANADB="hanadb",t.INGRES="ingres",t.FIRSTSQL="firstsql",t.EDB="edb",t.CACHE="cache",t.ADABAS="adabas",t.FIREBIRD="firebird",t.DERBY="derby",t.FILEMAKER="filemaker",t.INFORMIX="informix",t.INSTANTDB="instantdb",t.INTERBASE="interbase",t.MARIADB="mariadb",t.NETEZZA="netezza",t.PERVASIVE="pervasive",t.POINTBASE="pointbase",t.SQLITE="sqlite",t.SYBASE="sybase",t.TERADATA="teradata",t.VERTICA="vertica",t.H2="h2",t.COLDFUSION="coldfusion",t.CASSANDRA="cassandra",t.HBASE="hbase",t.MONGODB="mongodb",t.REDIS="redis",t.COUCHBASE="couchbase",t.COUCHDB="couchdb",t.COSMOSDB="cosmosdb",t.DYNAMODB="dynamodb",t.NEO4J="neo4j",t.GEODE="geode",t.ELASTICSEARCH="elasticsearch",t.MEMCACHED="memcached",t.COCKROACHDB="cockroachdb",function(e){e.ALL="all",e.EACH_QUORUM="each_quorum",e.QUORUM="quorum",e.LOCAL_QUORUM="local_quorum",e.ONE="one",e.TWO="two",e.THREE="three",e.LOCAL_ONE="local_one",e.ANY="any",e.SERIAL="serial",e.LOCAL_SERIAL="local_serial"}(e.DbCassandraConsistencyLevelValues||(e.DbCassandraConsistencyLevelValues={})),function(e){e.DATASOURCE="datasource",e.HTTP="http",e.PUBSUB="pubsub",e.TIMER="timer",e.OTHER="other"}(e.FaasTriggerValues||(e.FaasTriggerValues={})),function(e){e.INSERT="insert",e.EDIT="edit",e.DELETE="delete"}(e.FaasDocumentOperationValues||(e.FaasDocumentOperationValues={})),function(e){e.AWS="aws",e.AZURE="azure",e.GCP="gcp"}(e.FaasInvokedProviderValues||(e.FaasInvokedProviderValues={})),function(e){e.IP_TCP="ip_tcp",e.IP_UDP="ip_udp",e.IP="ip",e.UNIX="unix",e.PIPE="pipe",e.INPROC="inproc",e.OTHER="other"}(e.NetTransportValues||(e.NetTransportValues={})),function(e){e.HTTP_1_0="1.0",e.HTTP_1_1="1.1",e.HTTP_2_0="2.0",e.SPDY="SPDY",e.QUIC="QUIC"}(e.HttpFlavorValues||(e.HttpFlavorValues={})),function(e){e.QUEUE="queue",e.TOPIC="topic"}(e.MessagingDestinationKindValues||(e.MessagingDestinationKindValues={})),function(e){e.RECEIVE="receive",e.PROCESS="process"}(e.MessagingOperationValues||(e.MessagingOperationValues={})),function(e){e[e.OK=0]="OK",e[e.CANCELLED=1]="CANCELLED",e[e.UNKNOWN=2]="UNKNOWN",e[e.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",e[e.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",e[e.NOT_FOUND=5]="NOT_FOUND",e[e.ALREADY_EXISTS=6]="ALREADY_EXISTS",e[e.PERMISSION_DENIED=7]="PERMISSION_DENIED",e[e.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",e[e.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",e[e.ABORTED=10]="ABORTED",e[e.OUT_OF_RANGE=11]="OUT_OF_RANGE",e[e.UNIMPLEMENTED=12]="UNIMPLEMENTED",e[e.INTERNAL=13]="INTERNAL",e[e.UNAVAILABLE=14]="UNAVAILABLE",e[e.DATA_LOSS=15]="DATA_LOSS",e[e.UNAUTHENTICATED=16]="UNAUTHENTICATED"}(e.RpcGrpcStatusCodeValues||(e.RpcGrpcStatusCodeValues={}))})),Ge=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(He(),e)})),$e=_((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.TelemetrySdkLanguageValues=e.OsTypeValues=e.HostArchValues=e.AwsEcsLaunchtypeValues=e.CloudPlatformValues=e.CloudProviderValues=e.ResourceAttributes=void 0,e.ResourceAttributes={CLOUD_PROVIDER:"cloud.provider",CLOUD_ACCOUNT_ID:"cloud.account.id",CLOUD_REGION:"cloud.region",CLOUD_AVAILABILITY_ZONE:"cloud.availability_zone",CLOUD_PLATFORM:"cloud.platform",AWS_ECS_CONTAINER_ARN:"aws.ecs.container.arn",AWS_ECS_CLUSTER_ARN:"aws.ecs.cluster.arn",AWS_ECS_LAUNCHTYPE:"aws.ecs.launchtype",AWS_ECS_TASK_ARN:"aws.ecs.task.arn",AWS_ECS_TASK_FAMILY:"aws.ecs.task.family",AWS_ECS_TASK_REVISION:"aws.ecs.task.revision",AWS_EKS_CLUSTER_ARN:"aws.eks.cluster.arn",AWS_LOG_GROUP_NAMES:"aws.log.group.names",AWS_LOG_GROUP_ARNS:"aws.log.group.arns",AWS_LOG_STREAM_NAMES:"aws.log.stream.names",AWS_LOG_STREAM_ARNS:"aws.log.stream.arns",CONTAINER_NAME:"container.name",CONTAINER_ID:"container.id",CONTAINER_RUNTIME:"container.runtime",CONTAINER_IMAGE_NAME:"container.image.name",CONTAINER_IMAGE_TAG:"container.image.tag",DEPLOYMENT_ENVIRONMENT:"deployment.environment",DEVICE_ID:"device.id",DEVICE_MODEL_IDENTIFIER:"device.model.identifier",DEVICE_MODEL_NAME:"device.model.name",FAAS_NAME:"faas.name",FAAS_ID:"faas.id",FAAS_VERSION:"faas.version",FAAS_INSTANCE:"faas.instance",FAAS_MAX_MEMORY:"faas.max_memory",HOST_ID:"host.id",HOST_NAME:"host.name",HOST_TYPE:"host.type",HOST_ARCH:"host.arch",HOST_IMAGE_NAME:"host.image.name",HOST_IMAGE_ID:"host.image.id",HOST_IMAGE_VERSION:"host.image.version",K8S_CLUSTER_NAME:"k8s.cluster.name",K8S_NODE_NAME:"k8s.node.name",K8S_NODE_UID:"k8s.node.uid",K8S_NAMESPACE_NAME:"k8s.namespace.name",K8S_POD_UID:"k8s.pod.uid",K8S_POD_NAME:"k8s.pod.name",K8S_CONTAINER_NAME:"k8s.container.name",K8S_REPLICASET_UID:"k8s.replicaset.uid",K8S_REPLICASET_NAME:"k8s.replicaset.name",K8S_DEPLOYMENT_UID:"k8s.deployment.uid",K8S_DEPLOYMENT_NAME:"k8s.deployment.name",K8S_STATEFULSET_UID:"k8s.statefulset.uid",K8S_STATEFULSET_NAME:"k8s.statefulset.name",K8S_DAEMONSET_UID:"k8s.daemonset.uid",K8S_DAEMONSET_NAME:"k8s.daemonset.name",K8S_JOB_UID:"k8s.job.uid",K8S_JOB_NAME:"k8s.job.name",K8S_CRONJOB_UID:"k8s.cronjob.uid",K8S_CRONJOB_NAME:"k8s.cronjob.name",OS_TYPE:"os.type",OS_DESCRIPTION:"os.description",OS_NAME:"os.name",OS_VERSION:"os.version",PROCESS_PID:"process.pid",PROCESS_EXECUTABLE_NAME:"process.executable.name",PROCESS_EXECUTABLE_PATH:"process.executable.path",PROCESS_COMMAND:"process.command",PROCESS_COMMAND_LINE:"process.command_line",PROCESS_COMMAND_ARGS:"process.command_args",PROCESS_OWNER:"process.owner",PROCESS_RUNTIME_NAME:"process.runtime.name",PROCESS_RUNTIME_VERSION:"process.runtime.version",PROCESS_RUNTIME_DESCRIPTION:"process.runtime.description",SERVICE_NAME:"service.name",SERVICE_NAMESPACE:"service.namespace",SERVICE_INSTANCE_ID:"service.instance.id",SERVICE_VERSION:"service.version",TELEMETRY_SDK_NAME:"telemetry.sdk.name",TELEMETRY_SDK_LANGUAGE:"telemetry.sdk.language",TELEMETRY_SDK_VERSION:"telemetry.sdk.version",TELEMETRY_AUTO_VERSION:"telemetry.auto.version",WEBENGINE_NAME:"webengine.name",WEBENGINE_VERSION:"webengine.version",WEBENGINE_DESCRIPTION:"webengine.description"},(t=e.CloudProviderValues||(e.CloudProviderValues={})).AWS="aws",t.AZURE="azure",t.GCP="gcp",function(e){e.AWS_EC2="aws_ec2",e.AWS_ECS="aws_ecs",e.AWS_EKS="aws_eks",e.AWS_LAMBDA="aws_lambda",e.AWS_ELASTIC_BEANSTALK="aws_elastic_beanstalk",e.AZURE_VM="azure_vm",e.AZURE_CONTAINER_INSTANCES="azure_container_instances",e.AZURE_AKS="azure_aks",e.AZURE_FUNCTIONS="azure_functions",e.AZURE_APP_SERVICE="azure_app_service",e.GCP_COMPUTE_ENGINE="gcp_compute_engine",e.GCP_CLOUD_RUN="gcp_cloud_run",e.GCP_KUBERNETES_ENGINE="gcp_kubernetes_engine",e.GCP_CLOUD_FUNCTIONS="gcp_cloud_functions",e.GCP_APP_ENGINE="gcp_app_engine"}(e.CloudPlatformValues||(e.CloudPlatformValues={})),function(e){e.EC2="ec2",e.FARGATE="fargate"}(e.AwsEcsLaunchtypeValues||(e.AwsEcsLaunchtypeValues={})),function(e){e.AMD64="amd64",e.ARM32="arm32",e.ARM64="arm64",e.IA64="ia64",e.PPC32="ppc32",e.PPC64="ppc64",e.X86="x86"}(e.HostArchValues||(e.HostArchValues={})),function(e){e.WINDOWS="windows",e.LINUX="linux",e.DARWIN="darwin",e.FREEBSD="freebsd",e.NETBSD="netbsd",e.OPENBSD="openbsd",e.DRAGONFLYBSD="dragonflybsd",e.HPUX="hpux",e.AIX="aix",e.SOLARIS="solaris",e.Z_OS="z_os"}(e.OsTypeValues||(e.OsTypeValues={})),function(e){e.CPP="cpp",e.DOTNET="dotnet",e.ERLANG="erlang",e.GO="go",e.JAVA="java",e.NODEJS="nodejs",e.PHP="php",e.PYTHON="python",e.RUBY="ruby",e.WEBJS="webjs"}(e.TelemetrySdkLanguageValues||(e.TelemetrySdkLanguageValues={}))})),We=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n($e(),e)})),Qe=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ge(),e),n(We(),e)})),Ke=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SDK_INFO=void 0;var t=qe(),n=Qe();e.SDK_INFO={[n.ResourceAttributes.TELEMETRY_SDK_NAME]:"opentelemetry",[n.ResourceAttributes.PROCESS_RUNTIME_NAME]:"node",[n.ResourceAttributes.TELEMETRY_SDK_LANGUAGE]:n.TelemetrySdkLanguageValues.NODEJS,[n.ResourceAttributes.TELEMETRY_SDK_VERSION]:t.VERSION}})),Xe=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unrefTimer=void 0,e.unrefTimer=function(e){e.unref()}})),Ye=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ve(),e),n(Be(),e),n(Fe(),e),n(Ue(),e),n(Ke(),e),n(Xe(),e)})),Je=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ye(),e)})),Ze=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTimeInput=e.isTimeInputHrTime=e.hrTimeToMicroseconds=e.hrTimeToMilliseconds=e.hrTimeToNanoseconds=e.hrTimeToTimeStamp=e.hrTimeDuration=e.timeInputToHrTime=e.hrTime=void 0;var t=Je(),n=9,r=Math.pow(10,n);function i(e){let t=e/1e3,i=Math.trunc(t);return[i,Number((t-i).toFixed(n))*r]}function o(){let e=t.otperformance.timeOrigin;if("number"!=typeof e){let n=t.otperformance;e=n.timing&&n.timing.fetchStart}return e}function a(e){let n=i(o()),a=i("number"==typeof e?e:t.otperformance.now()),s=n[0]+a[0],c=n[1]+a[1];return c>r&&(c-=r,s+=1),[s,c]}function s(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}e.hrTime=a,e.timeInputToHrTime=function(e){if(s(e))return e;if("number"==typeof e)return e<o()?a(e):i(e);if(e instanceof Date)return i(e.getTime());throw TypeError("Invalid input type")},e.hrTimeDuration=function(e,t){let n=t[0]-e[0],i=t[1]-e[1];return i<0&&(n-=1,i+=r),[n,i]},e.hrTimeToTimeStamp=function(e){let t=n,r=`${"0".repeat(t)}${e[1]}Z`,i=r.substr(r.length-t-1);return new Date(1e3*e[0]).toISOString().replace("000Z",i)},e.hrTimeToNanoseconds=function(e){return e[0]*r+e[1]},e.hrTimeToMilliseconds=function(e){return Math.round(1e3*e[0]+e[1]/1e6)},e.hrTimeToMicroseconds=function(e){return Math.round(1e6*e[0]+e[1]/1e3)},e.isTimeInputHrTime=s,e.isTimeInput=function(e){return s(e)||"number"==typeof e||e instanceof Date}})),et=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),tt=_((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.ExportResultCode=void 0,(t=e.ExportResultCode||(e.ExportResultCode={}))[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})),nt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompositePropagator=void 0;var t=Pe();e.CompositePropagator=class{constructor(e={}){var t;this._propagators=null!==(t=e.propagators)&&void 0!==t?t:[],this._fields=Array.from(new Set(this._propagators.map((e=>"function"==typeof e.fields?e.fields():[])).reduce(((e,t)=>e.concat(t)),[])))}inject(e,n,r){for(let i of this._propagators)try{i.inject(e,n,r)}catch(e){t.diag.warn(`Failed to inject with ${i.constructor.name}. Err: ${e.message}`)}}extract(e,n,r){return this._propagators.reduce(((e,i)=>{try{return i.extract(e,n,r)}catch(e){t.diag.warn(`Failed to inject with ${i.constructor.name}. Err: ${e.message}`)}return e}),e)}fields(){return this._fields.slice()}}})),rt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateValue=e.validateKey=void 0;var t="[_0-9a-z-*/]",n=new RegExp(`^(?:[a-z]${t}{0,255}|[a-z0-9]${t}{0,240}@[a-z]${t}{0,13})$`),r=/^[ -~]{0,255}[!-~]$/,i=/,|=/;e.validateKey=function(e){return n.test(e)},e.validateValue=function(e){return r.test(e)&&!i.test(e)}})),it=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TraceState=void 0;var t=rt(),n=class{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,t){let n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n}unset(e){let t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce(((e,t)=>(e.push(t+"="+this.get(t)),e)),[]).join(",")}_parse(e){e.length>512||(this._internalState=e.split(",").reverse().reduce(((e,n)=>{let r=n.trim(),i=r.indexOf("=");if(-1!==i){let o=r.slice(0,i),a=r.slice(i+1,n.length);t.validateKey(o)&&t.validateValue(a)&&e.set(o,a)}return e}),new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new n;return e._internalState=new Map(this._internalState),e}};e.TraceState=n})),ot=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HttpTraceContextPropagator=e.parseTraceParent=e.TRACE_STATE_HEADER=e.TRACE_PARENT_HEADER=void 0;var t=Pe(),n=Oe(),r=it();e.TRACE_PARENT_HEADER="traceparent",e.TRACE_STATE_HEADER="tracestate";var i=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function o(e){let t=i.exec(e);return!t||"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}e.parseTraceParent=o,e.HttpTraceContextPropagator=class{inject(r,i,o){let a=t.trace.getSpanContext(r);if(!a||n.isTracingSuppressed(r)||!t.isSpanContextValid(a))return;let s=`00-${a.traceId}-${a.spanId}-0${Number(a.traceFlags||t.TraceFlags.NONE).toString(16)}`;o.set(i,e.TRACE_PARENT_HEADER,s),a.traceState&&o.set(i,e.TRACE_STATE_HEADER,a.traceState.serialize())}extract(n,i,a){let s=a.get(i,e.TRACE_PARENT_HEADER);if(!s)return n;let c=Array.isArray(s)?s[0]:s;if("string"!=typeof c)return n;let l=o(c);if(!l)return n;l.isRemote=!0;let u=a.get(i,e.TRACE_STATE_HEADER);if(u){let e=Array.isArray(u)?u.join(","):u;l.traceState=new r.TraceState("string"==typeof e?e:void 0)}return t.trace.setSpanContext(n,l)}fields(){return[e.TRACE_PARENT_HEADER,e.TRACE_STATE_HEADER]}}})),at=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),st=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRPCMetadata=e.deleteRPCMetadata=e.setRPCMetadata=e.RPCType=void 0;var t=Pe().createContextKey("OpenTelemetry SDK Context Key RPC_METADATA");(e.RPCType||(e.RPCType={})).HTTP="http",e.setRPCMetadata=function(e,n){return e.setValue(t,n)},e.deleteRPCMetadata=function(e){return e.deleteValue(t)},e.getRPCMetadata=function(e){return e.getValue(t)}})),ct=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlwaysOffSampler=void 0;var t=Pe();e.AlwaysOffSampler=class{shouldSample(){return{decision:t.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}})),lt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlwaysOnSampler=void 0;var t=Pe();e.AlwaysOnSampler=class{shouldSample(){return{decision:t.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}})),ut=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParentBasedSampler=void 0;var t=Pe(),n=je(),r=ct(),i=lt();e.ParentBasedSampler=class{constructor(e){var t,o,a,s;this._root=e.root,this._root||(n.globalErrorHandler(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new i.AlwaysOnSampler),this._remoteParentSampled=null!==(t=e.remoteParentSampled)&&void 0!==t?t:new i.AlwaysOnSampler,this._remoteParentNotSampled=null!==(o=e.remoteParentNotSampled)&&void 0!==o?o:new r.AlwaysOffSampler,this._localParentSampled=null!==(a=e.localParentSampled)&&void 0!==a?a:new i.AlwaysOnSampler,this._localParentNotSampled=null!==(s=e.localParentNotSampled)&&void 0!==s?s:new r.AlwaysOffSampler}shouldSample(e,n,r,i,o,a){let s=t.trace.getSpanContext(e);return s&&t.isSpanContextValid(s)?s.isRemote?s.traceFlags&t.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,n,r,i,o,a):this._remoteParentNotSampled.shouldSample(e,n,r,i,o,a):s.traceFlags&t.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,n,r,i,o,a):this._localParentNotSampled.shouldSample(e,n,r,i,o,a):this._root.shouldSample(e,n,r,i,o,a)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}})),pt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TraceIdRatioBasedSampler=void 0;var t=Pe();e.TraceIdRatioBasedSampler=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(4294967295*this._ratio)}shouldSample(e,n){return{decision:t.isValidTraceId(n)&&this._accumulate(n)<this._upperBound?t.SamplingDecision.RECORD_AND_SAMPLED:t.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<e.length/8;n++){let r=8*n;t=(t^parseInt(e.slice(r,r+8),16))>>>0}return t}}})),dt=_((e=>{"use strict";function t(e,t){return"string"==typeof t?e===t:t.test(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.isUrlIgnored=e.urlMatches=void 0,e.urlMatches=t,e.isUrlIgnored=function(e,n){if(!n)return!1;for(let r of n)if(t(e,r))return!0;return!1}})),ft=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isWrapped=void 0,e.isWrapped=function(e){return"function"==typeof e&&"function"==typeof e.__original&&"function"==typeof e.__unwrap&&!0===e.__wrapped}})),ht=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.baggageUtils=void 0,n(De(),e),n(ke(),e),n(je(),e),n(Le(),e),n(Ze(),e),n(et(),e),n(tt(),e),n(qe(),e),e.baggageUtils=Re(),n(Je(),e),n(nt(),e),n(ot(),e),n(at(),e),n(st(),e),n(ct(),e),n(lt(),e),n(ut(),e),n(pt(),e),n(Oe(),e),n(it(),e),n(ze(),e),n(Me(),e),n(dt(),e),n(ft(),e),n(qe(),e)})),mt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExceptionEventName=void 0,e.ExceptionEventName="exception"})),vt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Span=void 0;var t=Pe(),n=ht(),r=Qe(),i=mt();e.Span=class{constructor(e,r,i,o,a,s,c=[],l=n.hrTime()){this.attributes={},this.links=[],this.events=[],this.status={code:t.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=i,this._spanContext=o,this.parentSpanId=s,this.kind=a,this.links=c,this.startTime=n.timeInputToHrTime(l),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,r)}spanContext(){return this._spanContext}setAttribute(e,r){return null==r||this._isSpanEnded()?this:0===e.length?(t.diag.warn(`Invalid attribute key: ${e}`),this):n.isAttributeValue(r)?(Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)||(this.attributes[e]=r),this):(t.diag.warn(`Invalid attribute value set for key: ${e}`),this)}setAttributes(e){for(let[t,n]of Object.entries(e))this.setAttribute(t,n);return this}addEvent(e,r,i){return this._isSpanEnded()||(this.events.length>=this._spanLimits.eventCountLimit&&(t.diag.warn("Dropping extra events."),this.events.shift()),n.isTimeInput(r)&&(typeof i>"u"&&(i=r),r=void 0),typeof i>"u"&&(i=n.hrTime()),this.events.push({name:e,attributes:r,time:n.timeInputToHrTime(i)})),this}setStatus(e){return this._isSpanEnded()||(this.status=e),this}updateName(e){return this._isSpanEnded()||(this.name=e),this}end(e=n.hrTime()){this._isSpanEnded()?t.diag.error("You can only call end() on a span once."):(this._ended=!0,this.endTime=n.timeInputToHrTime(e),this._duration=n.hrTimeDuration(this.startTime,this.endTime),this._duration[0]<0&&t.diag.warn("Inconsistent start and end time, startTime > endTime",this.startTime,this.endTime),this._spanProcessor.onEnd(this))}isRecording(){return!1===this._ended}recordException(e,o=n.hrTime()){let a={};"string"==typeof e?a[r.SemanticAttributes.EXCEPTION_MESSAGE]=e:e&&(e.code?a[r.SemanticAttributes.EXCEPTION_TYPE]=e.code.toString():e.name&&(a[r.SemanticAttributes.EXCEPTION_TYPE]=e.name),e.message&&(a[r.SemanticAttributes.EXCEPTION_MESSAGE]=e.message),e.stack&&(a[r.SemanticAttributes.EXCEPTION_STACKTRACE]=e.stack)),a[r.SemanticAttributes.EXCEPTION_TYPE]||a[r.SemanticAttributes.EXCEPTION_MESSAGE]?this.addEvent(i.ExceptionEventName,a,o):t.diag.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}_isSpanEnded(){return this._ended&&t.diag.warn("Can not execute the operation on ended Span {traceId: %s, spanId: %s}",this._spanContext.traceId,this._spanContext.spanId),this._ended}}})),gt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buildSamplerFromEnv=e.DEFAULT_CONFIG=void 0;var t=Pe(),n=ht(),r=n.getEnv(),i=n.TracesSamplerValues.AlwaysOn;function o(e=n.getEnv()){switch(e.OTEL_TRACES_SAMPLER){case n.TracesSamplerValues.AlwaysOn:return new n.AlwaysOnSampler;case n.TracesSamplerValues.AlwaysOff:return new n.AlwaysOffSampler;case n.TracesSamplerValues.ParentBasedAlwaysOn:return new n.ParentBasedSampler({root:new n.AlwaysOnSampler});case n.TracesSamplerValues.ParentBasedAlwaysOff:return new n.ParentBasedSampler({root:new n.AlwaysOffSampler});case n.TracesSamplerValues.TraceIdRatio:return new n.TraceIdRatioBasedSampler(s(e));case n.TracesSamplerValues.ParentBasedTraceIdRatio:return new n.ParentBasedSampler({root:new n.TraceIdRatioBasedSampler(s(e))});default:return t.diag.error(`OTEL_TRACES_SAMPLER value "${e.OTEL_TRACES_SAMPLER} invalid, defaulting to ${i}".`),new n.AlwaysOnSampler}}e.DEFAULT_CONFIG={sampler:o(r),forceFlushTimeoutMillis:3e4,spanLimits:{attributeCountLimit:n.getEnv().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:n.getEnv().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:n.getEnv().OTEL_SPAN_EVENT_COUNT_LIMIT}},e.buildSamplerFromEnv=o;var a=1;function s(e){if(void 0===e.OTEL_TRACES_SAMPLER_ARG||""===e.OTEL_TRACES_SAMPLER_ARG)return t.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${a}.`),a;let n=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(n)?(t.diag.error(`OTEL_TRACES_SAMPLER_ARG=${e.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${a}.`),a):n<0||n>1?(t.diag.error(`OTEL_TRACES_SAMPLER_ARG=${e.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${a}.`),a):n}})),bt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeConfig=void 0;var t=gt();e.mergeConfig=function(e){let n={sampler:t.buildSamplerFromEnv()},r=Object.assign({},t.DEFAULT_CONFIG,n,e);return r.spanLimits=Object.assign({},t.DEFAULT_CONFIG.spanLimits,e.spanLimits||{}),r}})),yt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tracer=void 0;var t=Pe(),n=ht(),r=vt(),i=bt();e.Tracer=class{constructor(e,t,r){this._tracerProvider=r;let o=i.mergeConfig(t);this._sampler=o.sampler,this._spanLimits=o.spanLimits,this._idGenerator=t.idGenerator||new n.RandomIdGenerator,this.resource=r.resource,this.instrumentationLibrary=e}startSpan(e,i={},o=t.context.active()){var a,s;if(n.isTracingSuppressed(o))return t.diag.debug("Instrumentation suppressed, returning Noop Span"),t.trace.wrapSpanContext(t.INVALID_SPAN_CONTEXT);let c,l,u,p=function(e,n){if(!e.root)return t.trace.getSpanContext(n)}(i,o),d=this._idGenerator.generateSpanId();p&&t.trace.isSpanContextValid(p)?(c=p.traceId,l=p.traceState,u=p.spanId):c=this._idGenerator.generateTraceId();let f=null!==(a=i.kind)&&void 0!==a?a:t.SpanKind.INTERNAL,h=null!==(s=i.links)&&void 0!==s?s:[],m=n.sanitizeAttributes(i.attributes),v=this._sampler.shouldSample(i.root?t.trace.setSpanContext(o,t.INVALID_SPAN_CONTEXT):o,c,e,f,m,h),g={traceId:c,spanId:d,traceFlags:v.decision===t.SamplingDecision.RECORD_AND_SAMPLED?t.TraceFlags.SAMPLED:t.TraceFlags.NONE,traceState:l};if(v.decision===t.SamplingDecision.NOT_RECORD)return t.diag.debug("Recording is off, propagating context in a non-recording span"),t.trace.wrapSpanContext(g);let b=new r.Span(this,o,e,g,f,u,h,i.startTime);return b.setAttributes(Object.assign(m,v.attributes)),b}startActiveSpan(e,n,r,i){let o,a,s;if(arguments.length<2)return;2===arguments.length?s=n:3===arguments.length?(o=n,s=r):(o=n,a=r,s=i);let c=a??t.context.active(),l=this.startSpan(e,o,c),u=t.trace.setSpan(c,l);return t.context.with(u,s,void 0,l)}getSpanLimits(){return this._spanLimits}getActiveSpanProcessor(){return this._tracerProvider.getActiveSpanProcessor()}}})),_t=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultServiceName=void 0,e.defaultServiceName=function(){return`unknown_service:${process.argv0}`}})),xt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.detectResources=void 0;var t=Ct(),r=Pe(),i=n(3837);e.detectResources=async(e={})=>{let n=Object.assign(e),i=await Promise.all((n.detectors||[]).map((async e=>{try{let t=await e.detect(n);return r.diag.debug(`${e.constructor.name} found resource.`,t),t}catch(n){return r.diag.debug(`${e.constructor.name} failed: ${n.message}`),t.Resource.empty()}})));return o(i),i.reduce(((e,t)=>e.merge(t)),t.Resource.empty())};var o=e=>{e.forEach((e=>{if(Object.keys(e.attributes).length>0){let t=i.inspect(e.attributes,{depth:2,breakLength:1/0,sorted:!0,compact:!1});r.diag.verbose(t)}}))}})),wt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.envDetector=void 0;var t=Pe(),n=ht(),r=Qe(),i=Ot();e.envDetector=new class{constructor(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}async detect(e){let o={},a=n.getEnv(),s=a.OTEL_RESOURCE_ATTRIBUTES,c=a.OTEL_SERVICE_NAME;if(s)try{let e=this._parseResourceAttributes(s);Object.assign(o,e)}catch(e){t.diag.debug(`EnvDetector failed: ${e.message}`)}return c&&(o[r.ResourceAttributes.SERVICE_NAME]=c),new i.Resource(o)}_parseResourceAttributes(e){if(!e)return{};let t={},n=e.split(this._COMMA_SEPARATOR,-1);for(let e of n){let n=e.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2!==n.length)continue;let[r,i]=n;if(r=r.trim(),i=i.trim().split('^"|"$').join(""),!this._isValidAndNotEmpty(r))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(i))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);t[r]=i}return t}_isValid(e){return e.length<=this._MAX_LENGTH&&this._isPrintableString(e)}_isPrintableString(e){for(let t=0;t<e.length;t++){let n=e.charAt(t);if(n<=" "||n>="~")return!1}return!0}_isValidAndNotEmpty(e){return e.length>0&&this._isValid(e)}}})),Et=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.processDetector=void 0;var t=Pe(),n=Qe(),r=Ot();e.processDetector=new class{async detect(e){let t={[n.ResourceAttributes.PROCESS_PID]:process.pid,[n.ResourceAttributes.PROCESS_EXECUTABLE_NAME]:process.title||"",[n.ResourceAttributes.PROCESS_COMMAND]:process.argv[1]||"",[n.ResourceAttributes.PROCESS_COMMAND_LINE]:process.argv.join(" ")||""};return this._getResourceAttributes(t,e)}_getResourceAttributes(e,i){return""===e[n.ResourceAttributes.PROCESS_EXECUTABLE_NAME]||""===e[n.ResourceAttributes.PROCESS_EXECUTABLE_PATH]||""===e[n.ResourceAttributes.PROCESS_COMMAND]||""===e[n.ResourceAttributes.PROCESS_COMMAND_LINE]?(t.diag.debug("ProcessDetector failed: Unable to find required process resources. "),r.Resource.empty()):new r.Resource(Object.assign({},e))}}})),At=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(wt(),e),n(Et(),e)})),St=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(_t(),e),n(xt(),e),n(At(),e)})),Tt=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(St(),e)})),Ct=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Resource=void 0;var t=Qe(),n=ht(),r=Tt(),i=class{constructor(e){this.attributes=e}static empty(){return i.EMPTY}static default(){return new i({[t.ResourceAttributes.SERVICE_NAME]:r.defaultServiceName(),[t.ResourceAttributes.TELEMETRY_SDK_LANGUAGE]:n.SDK_INFO[t.ResourceAttributes.TELEMETRY_SDK_LANGUAGE],[t.ResourceAttributes.TELEMETRY_SDK_NAME]:n.SDK_INFO[t.ResourceAttributes.TELEMETRY_SDK_NAME],[t.ResourceAttributes.TELEMETRY_SDK_VERSION]:n.SDK_INFO[t.ResourceAttributes.TELEMETRY_SDK_VERSION]})}merge(e){if(!e||!Object.keys(e.attributes).length)return this;let t=Object.assign({},this.attributes,e.attributes);return new i(t)}};e.Resource=i,i.EMPTY=new i({})})),It=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Pt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Ot=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ct(),e),n(Tt(),e),n(It(),e),n(Pt(),e)})),Nt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MultiSpanProcessor=void 0;var t=ht();e.MultiSpanProcessor=class{constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let t of this._spanProcessors)e.push(t.forceFlush());return new Promise((n=>{Promise.all(e).then((()=>{n()})).catch((e=>{t.globalErrorHandler(e||new Error("MultiSpanProcessor: forceFlush failed")),n()}))}))}onStart(e,t){for(let n of this._spanProcessors)n.onStart(e,t)}onEnd(e){for(let t of this._spanProcessors)t.onEnd(e)}shutdown(){let e=[];for(let t of this._spanProcessors)e.push(t.shutdown());return new Promise(((t,n)=>{Promise.all(e).then((()=>{t()}),n)}))}}})),Rt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoopSpanProcessor=void 0,e.NoopSpanProcessor=class{onStart(e,t){}onEnd(e){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}})),Dt=_(((e,t)=>{var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",c="[object Null]",l="[object Object]",u="[object Proxy]",p="[object Undefined]",d=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[i]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h["[object Error]"]=h[a]=h["[object Map]"]=h["[object Number]"]=h[l]=h["[object RegExp]"]=h["[object Set]"]=h["[object String]"]=h["[object WeakMap]"]=!1;var m,v="object"==typeof global&&global&&global.Object===Object&&global,g="object"==typeof self&&self&&self.Object===Object&&self,b=v||g||Function("return this")(),y="object"==typeof e&&e&&!e.nodeType&&e,_=y&&"object"==typeof t&&t&&!t.nodeType&&t,x=_&&_.exports===y,w=x&&v.process,E=function(){try{return _&&_.require&&_.require("util").types||w&&w.binding&&w.binding("util")}catch{}}(),A=E&&E.isTypedArray,S=Array.prototype,T=Function.prototype,C=Object.prototype,I=b["__core-js_shared__"],P=T.toString,O=C.hasOwnProperty,N=(m=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"",R=C.toString,D=P.call(Object),k=RegExp("^"+P.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=x?b.Buffer:void 0,j=b.Symbol,M=b.Uint8Array,z=(L&&L.allocUnsafe,function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object)),V=Object.create,B=C.propertyIsEnumerable,F=S.splice,U=j?j.toStringTag:void 0,q=function(){try{var e=ue(Object,"defineProperty");return e({},"",{}),e}catch{}}(),H=L?L.isBuffer:void 0,G=Math.max,$=Date.now,W=ue(b,"Map"),Q=ue(Object,"create"),K=function(){function e(){}return function(t){if(!we(t))return{};if(V)return V(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function X(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Y(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function J(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Z(e){var t=this.__data__=new Y(e);this.size=t.size}function ee(e,t,n){(void 0!==n&&!me(e[t],n)||void 0===n&&!(t in e))&&re(e,t,n)}function te(e,t,n){var r=e[t];(!O.call(e,t)||!me(r,n)||void 0===n&&!(t in e))&&re(e,t,n)}function ne(e,t){for(var n=e.length;n--;)if(me(e[n][0],t))return n;return-1}function re(e,t,n){"__proto__"==t&&q?q(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}X.prototype.clear=function(){this.__data__=Q?Q(null):{},this.size=0},X.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},X.prototype.get=function(e){var t=this.__data__;if(Q){var r=t[e];return r===n?void 0:r}return O.call(t,e)?t[e]:void 0},X.prototype.has=function(e){var t=this.__data__;return Q?void 0!==t[e]:O.call(t,e)},X.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Q&&void 0===t?n:t,this},Y.prototype.clear=function(){this.__data__=[],this.size=0},Y.prototype.delete=function(e){var t=this.__data__,n=ne(t,e);return!(n<0||(n==t.length-1?t.pop():F.call(t,n,1),--this.size,0))},Y.prototype.get=function(e){var t=this.__data__,n=ne(t,e);return n<0?void 0:t[n][1]},Y.prototype.has=function(e){return ne(this.__data__,e)>-1},Y.prototype.set=function(e,t){var n=this.__data__,r=ne(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},J.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(W||Y),string:new X}},J.prototype.delete=function(e){var t=le(this,e).delete(e);return this.size-=t?1:0,t},J.prototype.get=function(e){return le(this,e).get(e)},J.prototype.has=function(e){return le(this,e).has(e)},J.prototype.set=function(e,t){var n=le(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Z.prototype.clear=function(){this.__data__=new Y,this.size=0},Z.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Z.prototype.get=function(e){return this.__data__.get(e)},Z.prototype.has=function(e){return this.__data__.has(e)},Z.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Y){var r=n.__data__;if(!W||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new J(r)}return n.set(e,t),this.size=n.size,this};var ie=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e};function oe(e){return null==e?void 0===e?p:c:U&&U in Object(e)?function(e){var t=O.call(e,U),n=e[U];try{e[U]=void 0;var r=!0}catch{}var i=R.call(e);return r&&(t?e[U]=n:delete e[U]),i}(e):function(e){return R.call(e)}(e)}function ae(e){return Ee(e)&&oe(e)==i}function se(e,t,n,r,i){e!==t&&ie(t,(function(o,a){if(i||(i=new Z),we(o))!function(e,t,n,r,i,o,a){var s=fe(e,n),c=fe(t,n),u=a.get(c);if(u)ee(e,n,u);else{var p=o?o(s,c,n+"",e,t,a):void 0,d=void 0===p;if(d){var f=ge(c),h=!f&&ye(c),m=!f&&!h&&Ae(c);p=c,f||h||m?ge(s)?p=s:function(e){return Ee(e)&&be(e)}(s)?p=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(s):h?(d=!1,p=function(e,t){return e.slice()}(c)):m?(d=!1,p=function(e,t){var n=function(e){var t=new e.constructor(e.byteLength);return new M(t).set(new M(e)),t}(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}(c)):p=[]:function(e){if(!Ee(e)||oe(e)!=l)return!1;var t=z(e);if(null===t)return!0;var n=O.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&P.call(n)==D}(c)||ve(c)?(p=s,ve(s)?p=function(e){return function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=void 0;void 0===c&&(c=e[s]),i?re(n,s,c):te(n,s,c)}return n}(e,Se(e))}(s):(!we(s)||_e(s))&&(p=function(e){return"function"!=typeof e.constructor||de(e)?{}:K(z(e))}(c))):d=!1}d&&(a.set(c,p),i(p,c,r,o,a),a.delete(c)),ee(e,n,p)}}(e,t,a,n,se,r,i);else{var s=r?r(fe(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),ee(e,a,s)}}),Se)}var ce=q?function(e,t){return q(e,"toString",{configurable:!0,enumerable:!1,value:Ce(t),writable:!0})}:Ie;function le(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function ue(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!we(e)||function(e){return!!N&&N in e}(e))&&(_e(e)?k:d).test(function(e){if(null!=e){try{return P.call(e)}catch{}try{return e+""}catch{}}return""}(e))}(n)?n:void 0}function pe(e,t){var n=typeof e;return!!(t=t??r)&&("number"==n||"symbol"!=n&&f.test(e))&&e>-1&&e%1==0&&e<t}function de(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||C)}function fe(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var he=function(e){var t=0,n=0;return function(){var r=$(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ce);function me(e,t){return e===t||e!=e&&t!=t}var ve=ae(function(){return arguments}())?ae:function(e){return Ee(e)&&O.call(e,"callee")&&!B.call(e,"callee")},ge=Array.isArray;function be(e){return null!=e&&xe(e.length)&&!_e(e)}var ye=H||function(){return!1};function _e(e){if(!we(e))return!1;var t=oe(e);return t==a||t==s||t==o||t==u}function xe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function we(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ee(e){return null!=e&&"object"==typeof e}var Ae=A?function(e){return function(t){return e(t)}}(A):function(e){return Ee(e)&&xe(e.length)&&!!h[oe(e)]};function Se(e){return be(e)?function(e,t){var n=ge(e),r=!n&&ve(e),i=!n&&!r&&ye(e),o=!n&&!r&&!i&&Ae(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var l in e)(t||O.call(e,l))&&(!a||!("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||pe(l,c)))&&s.push(l);return s}(e,!0):function(e){if(!we(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=de(e),n=[];for(var r in e)"constructor"==r&&(t||!O.call(e,r))||n.push(r);return n}(e)}var Te=function(e){return function(e,t){return he(function(e,t,n){return t=G(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=G(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,Ie),e+"")}((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&function(e,t,n){if(!we(n))return!1;var r=typeof t;return!!("number"==r?be(n)&&pe(t,n.length):"string"==r&&t in n)&&me(n[t],e)}(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r)}return t}))}((function(e,t,n){se(e,t,n)}));function Ce(e){return function(){return e}}function Ie(e){return e}t.exports=Te})),kt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BatchSpanProcessorBase=void 0;var t=Pe(),n=ht();e.BatchSpanProcessorBase=class{constructor(e,t){this._exporter=e,this._finishedSpans=[],this._isShutdown=!1,this._shuttingDownPromise=Promise.resolve();let r=n.getEnv();this._maxExportBatchSize="number"==typeof(null==t?void 0:t.maxExportBatchSize)?t.maxExportBatchSize:r.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof(null==t?void 0:t.maxQueueSize)?t.maxQueueSize:r.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof(null==t?void 0:t.scheduledDelayMillis)?t.scheduledDelayMillis:r.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof(null==t?void 0:t.exportTimeoutMillis)?t.exportTimeoutMillis:r.OTEL_BSP_EXPORT_TIMEOUT}forceFlush(){return this._isShutdown?this._shuttingDownPromise:this._flushAll()}onStart(e){}onEnd(e){this._isShutdown||this._addToBuffer(e)}shutdown(){return this._isShutdown||(this._isShutdown=!0,this._shuttingDownPromise=new Promise(((e,t)=>{Promise.resolve().then((()=>this.onShutdown())).then((()=>this._flushAll())).then((()=>this._exporter.shutdown())).then(e).catch((e=>{t(e)}))}))),this._shuttingDownPromise}_addToBuffer(e){this._finishedSpans.length>=this._maxQueueSize||(this._finishedSpans.push(e),this._maybeStartTimer())}_flushAll(){return new Promise(((e,t)=>{let n=[];for(let e=0,t=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);e<t;e++)n.push(this._flushOneBatch());Promise.all(n).then((()=>{e()})).catch(t)}))}_flushOneBatch(){return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise(((e,r)=>{let i=setTimeout((()=>{r(new Error("Timeout"))}),this._exportTimeoutMillis);t.context.with(n.suppressTracing(t.context.active()),(()=>{this._exporter.export(this._finishedSpans.splice(0,this._maxExportBatchSize),(t=>{var o;clearTimeout(i),t.code===n.ExportResultCode.SUCCESS?e():r(null!==(o=t.error)&&void 0!==o?o:new Error("BatchSpanProcessor: span export failed"))}))}))}))}_maybeStartTimer(){void 0===this._timer&&(this._timer=setTimeout((()=>{this._flushOneBatch().then((()=>{this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())})).catch((e=>{n.globalErrorHandler(e)}))}),this._scheduledDelayMillis),n.unrefTimer(this._timer))}_clearTimer(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)}}})),Lt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BatchSpanProcessor=void 0;var t=kt(),n=class extends t.BatchSpanProcessorBase{onShutdown(){}};e.BatchSpanProcessor=n})),jt=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Lt(),e)})),Mt=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(jt(),e)})),zt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicTracerProvider=e.ForceFlushState=void 0;var t,n,r=Pe(),i=ht(),o=Ot(),a=Wt(),s=gt(),c=Nt(),l=Rt(),u=Dt(),p=Mt();(n=t=e.ForceFlushState||(e.ForceFlushState={}))[n.resolved=0]="resolved",n[n.timeout=1]="timeout",n[n.error=2]="error",n[n.unresolved=3]="unresolved";var d=class{constructor(e={}){var t;this._registeredSpanProcessors=[],this._tracers=new Map;let n=u({},s.DEFAULT_CONFIG,e);this.resource=null!==(t=n.resource)&&void 0!==t?t:o.Resource.empty(),this.resource=o.Resource.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});let r=this._buildExporterFromEnv();if(void 0!==r){let e=new p.BatchSpanProcessor(r);this.activeSpanProcessor=e}else this.activeSpanProcessor=new l.NoopSpanProcessor}getTracer(e,t){let n=`${e}@${t||""}`;return this._tracers.has(n)||this._tracers.set(n,new a.Tracer({name:e,version:t},this._config,this)),this._tracers.get(n)}addSpanProcessor(e){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch((e=>r.diag.error("Error while trying to shutdown current span processor",e))),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new c.MultiSpanProcessor(this._registeredSpanProcessors)}getActiveSpanProcessor(){return this.activeSpanProcessor}register(e={}){r.trace.setGlobalTracerProvider(this),void 0===e.propagator&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&r.context.setGlobalContextManager(e.contextManager),e.propagator&&r.propagation.setGlobalPropagator(e.propagator)}forceFlush(){let e=this._config.forceFlushTimeoutMillis,n=this._registeredSpanProcessors.map((n=>new Promise((r=>{let i,o=setTimeout((()=>{r(new Error(`Span processor did not completed within timeout period of ${e} ms`)),i=t.timeout}),e);n.forceFlush().then((()=>{clearTimeout(o),i!==t.timeout&&(i=t.resolved,r(i))})).catch((e=>{clearTimeout(o),i=t.error,r(e)}))}))));return new Promise(((e,r)=>{Promise.all(n).then((n=>{let i=n.filter((e=>e!==t.resolved));i.length>0?r(i):e()})).catch((e=>r([e])))}))}shutdown(){return this.activeSpanProcessor.shutdown()}_getPropagator(e){var t;return null===(t=d._registeredPropagators.get(e))||void 0===t?void 0:t()}_getSpanExporter(e){var t;return null===(t=d._registeredExporters.get(e))||void 0===t?void 0:t()}_buildPropagatorFromEnv(){let e=Array.from(new Set(i.getEnv().OTEL_PROPAGATORS)),t=e.map((e=>{let t=this._getPropagator(e);return t||r.diag.warn(`Propagator "${e}" requested through environment variable is unavailable.`),t})).reduce(((e,t)=>(t&&e.push(t),e)),[]);if(0!==t.length)return 1===e.length?t[0]:new i.CompositePropagator({propagators:t})}_buildExporterFromEnv(){let e=i.getEnv().OTEL_TRACES_EXPORTER;if("none"===e)return;let t=this._getSpanExporter(e);return t||r.diag.error(`Exporter "${e}" requested through environment variable is unavailable.`),t}};e.BasicTracerProvider=d,d._registeredPropagators=new Map([["tracecontext",()=>new i.HttpTraceContextPropagator],["baggage",()=>new i.HttpBaggagePropagator]]),d._registeredExporters=new Map})),Vt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleSpanExporter=void 0;var t=ht();e.ConsoleSpanExporter=class{export(e,t){return this._sendSpans(e,t)}shutdown(){return this._sendSpans([]),Promise.resolve()}_exportInfo(e){return{traceId:e.spanContext().traceId,parentId:e.parentSpanId,name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:t.hrTimeToMicroseconds(e.startTime),duration:t.hrTimeToMicroseconds(e.duration),attributes:e.attributes,status:e.status,events:e.events}}_sendSpans(e,n){for(let t of e)console.log(this._exportInfo(t));if(n)return n({code:t.ExportResultCode.SUCCESS})}}})),Bt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemorySpanExporter=void 0;var t=ht();e.InMemorySpanExporter=class{constructor(){this._finishedSpans=[],this._stopped=!1}export(e,n){if(this._stopped)return n({code:t.ExportResultCode.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...e),setTimeout((()=>n({code:t.ExportResultCode.SUCCESS})),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}})),Ft=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Ut=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleSpanProcessor=void 0;var t=Pe(),n=ht();e.SimpleSpanProcessor=class{constructor(e){this._exporter=e,this._isShutdown=!1,this._shuttingDownPromise=Promise.resolve()}forceFlush(){return Promise.resolve()}onStart(e){}onEnd(e){this._isShutdown||t.context.with(n.suppressTracing(t.context.active()),(()=>{this._exporter.export([e],(e=>{var t;e.code!==n.ExportResultCode.SUCCESS&&n.globalErrorHandler(null!==(t=e.error)&&void 0!==t?t:new Error(`SimpleSpanProcessor: span export failed (status ${e})`))}))}))}shutdown(){return this._isShutdown||(this._isShutdown=!0,this._shuttingDownPromise=new Promise(((e,t)=>{Promise.resolve().then((()=>this._exporter.shutdown())).then(e).catch((e=>{t(e)}))}))),this._shuttingDownPromise}}})),qt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Ht=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Gt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),$t=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Wt=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(yt(),e),n(zt(),e),n(Mt(),e),n(Vt(),e),n(Bt(),e),n(Ft(),e),n(Ut(),e),n(qt(),e),n(Rt(),e),n(vt(),e),n(Ht(),e),n(Gt(),e),n($t(),e)})),Qt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.azureCoreTracing=e.AzureMonitorSymbol=void 0;var t=k();e.AzureMonitorSymbol="Azure_Monitor_Tracer";var n=!1;e.azureCoreTracing={versionSpecifier:">= 1.0.0 < 2.0.0",patch:function(r){if(n)return r;try{var i=Wt(),o=Pe(),a=(new i.BasicTracerProvider).getTracer("applicationinsights tracer"),s=r.setTracer;r.setTracer=function(n){var r=n.startSpan;n.startSpan=function(e,n,i){var o=r.call(this,e,n,i),a=o.end;return o.end=function(){var e=a.apply(this,arguments);return t.channel.publish("azure-coretracing",o),e},o},n[e.AzureMonitorSymbol]=!0,s.call(this,n)},o.trace.getSpan(o.context.active()),r.setTracer(a),n=!0}catch{}return r}},e.enable=function(){t.channel.registerMonkeyPatch("@azure/core-tracing",e.azureCoreTracing)}})),Kt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.bunyan=void 0;var t=k();e.bunyan={versionSpecifier:">= 1.0.0 < 2.0.0",patch:function(e){var n=e.prototype._emit;return e.prototype._emit=function(e,r){var i=n.apply(this,arguments);if(!r){var o=i;o||(o=n.call(this,e,!0)),t.channel.publish("bunyan",{level:e.level,result:o})}return i},e}},e.enable=function(){t.channel.registerMonkeyPatch("bunyan",e.bunyan)}})),Xt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.console=void 0;var t=k(),r=n(2781);e.console={versionSpecifier:">= 4.0.0",patch:function(e){var n=new r.Writable,i=new r.Writable;n.write=function(e){if(!e)return!0;var n=e.toString();return t.channel.publish("console",{message:n}),!0},i.write=function(e){if(!e)return!0;var n=e.toString();return t.channel.publish("console",{message:n,stderr:!0}),!0};for(var o=new e.Console(n,i),a=function(t){var n=e[t];n&&(e[t]=function(){if(o[t])try{o[t].apply(o,arguments)}catch{}return n.apply(e,arguments)})},s=0,c=["log","info","warn","error","dir","time","timeEnd","trace","assert"];s<c.length;s++)a(c[s]);return e}},e.enable=function(){t.channel.registerMonkeyPatch("console",e.console),n(6206)}})),Yt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.mongoCore=void 0;var t=k();e.mongoCore={versionSpecifier:">= 2.0.0 < 4.0.0",patch:function(e){var n=e.Server.prototype.connect;return e.Server.prototype.connect=function(){var e=n.apply(this,arguments),r=this.s.pool.write;this.s.pool.write=function(){var e="function"==typeof arguments[1]?1:2;return"function"==typeof arguments[e]&&(arguments[e]=t.channel.bindToContext(arguments[e])),r.apply(this,arguments)};var i=this.s.pool.logout;return this.s.pool.logout=function(){return"function"==typeof arguments[1]&&(arguments[1]=t.channel.bindToContext(arguments[1])),i.apply(this,arguments)},e},e}},e.enable=function(){t.channel.registerMonkeyPatch("mongodb-core",e.mongoCore)}})),Jt=_((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.mongo330=e.mongo3=e.mongo2=void 0;var n=k();e.mongo2={versionSpecifier:">= 2.0.0 <= 3.0.5",patch:function(e){var r=e.instrument({operationIdGenerator:{next:function(){return n.channel.bindToContext((function(e){return e()}))}}}),i={};return r.on("started",(function(e){i[e.requestId]||(i[e.requestId]=t(t({},e),{time:new Date}))})),r.on("succeeded",(function(e){var t=i[e.requestId];t&&delete i[e.requestId],"function"==typeof e.operationId?e.operationId((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!0})})):n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!0})})),r.on("failed",(function(e){var t=i[e.requestId];t&&delete i[e.requestId],"function"==typeof e.operationId?e.operationId((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!1})})):n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!1})})),e}},e.mongo3={versionSpecifier:"> 3.0.5 < 3.3.0",patch:function(e){var r=e.instrument(),i={},o={};return r.on("started",(function(e){i[e.requestId]||(o[e.requestId]=n.channel.bindToContext((function(e){return e()})),i[e.requestId]=t(t({},e),{time:new Date}))})),r.on("succeeded",(function(e){var t=i[e.requestId];t&&delete i[e.requestId],"object"==typeof e&&"function"==typeof o[e.requestId]&&(o[e.requestId]((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!0})})),delete o[e.requestId])})),r.on("failed",(function(e){var t=i[e.requestId];t&&delete i[e.requestId],"object"==typeof e&&"function"==typeof o[e.requestId]&&(o[e.requestId]((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!1})})),delete o[e.requestId])})),e}},e.mongo330={versionSpecifier:">= 3.3.0 < 4.0.0",patch:function(e){!function(e){var t=e.Server.prototype.connect;e.Server.prototype.connect=function(){var e=t.apply(this,arguments),r=this.s.coreTopology.s.pool.write;this.s.coreTopology.s.pool.write=function(){var e="function"==typeof arguments[1]?1:2;return"function"==typeof arguments[e]&&(arguments[e]=n.channel.bindToContext(arguments[e])),r.apply(this,arguments)};var i=this.s.coreTopology.s.pool.logout;return this.s.coreTopology.s.pool.logout=function(){return"function"==typeof arguments[1]&&(arguments[1]=n.channel.bindToContext(arguments[1])),i.apply(this,arguments)},e}}(e);var t=e.instrument(),r={},i={};return t.on("started",(function(e){r[e.requestId]||(i[e.requestId]=n.channel.bindToContext((function(e){return e()})),r[e.requestId]=e)})),t.on("succeeded",(function(e){var t=r[e.requestId];t&&delete r[e.requestId],"object"==typeof e&&"function"==typeof i[e.requestId]&&(i[e.requestId]((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!0})})),delete i[e.requestId])})),t.on("failed",(function(e){var t=r[e.requestId];t&&delete r[e.requestId],"object"==typeof e&&"function"==typeof i[e.requestId]&&(i[e.requestId]((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!1})})),delete i[e.requestId])})),e}},e.enable=function(){n.channel.registerMonkeyPatch("mongodb",e.mongo2),n.channel.registerMonkeyPatch("mongodb",e.mongo3),n.channel.registerMonkeyPatch("mongodb",e.mongo330)}})),Zt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.mysql=void 0;var t=k(),r=n(1017);e.mysql={versionSpecifier:">= 2.0.0 < 3.0.0",patch:function(e,i){var o=function(e,n){return function(n,r){var i=e[n];i&&(e[n]=function(){for(var e=arguments.length-1,n=arguments.length-1;n>=0;--n){if("function"==typeof arguments[n]){e=n;break}if(typeof arguments[n]<"u")break}var o=arguments[e],a={result:null,startTime:null,startDate:null};"function"==typeof o&&(r?(a.startTime=process.hrtime(),a.startDate=new Date,arguments[e]=t.channel.bindToContext(r(a,o))):arguments[e]=t.channel.bindToContext(o));var s=i.apply(this,arguments);return a.result=s,s})}},a=function(e,t){return o(e.prototype)},s=n(5029)(r.dirname(i)+"/lib/Connection");["connect","changeUser","ping","statistics","end"].forEach((function(e){return a(s)(e)})),o(s)("createQuery",(function(e,n){return function(r){var i=process.hrtime(e.startTime),o=1e3*i[0]+i[1]/1e6|0;t.channel.publish("mysql",{query:e.result,callbackArgs:arguments,err:r,duration:o,time:e.startDate}),n.apply(this,arguments)}}));var c=n(3437)(r.dirname(i)+"/lib/Pool");return["_enqueueCallback"].forEach((function(e){return a(c)(e)})),e}},e.enable=function(){t.channel.registerMonkeyPatch("mysql",e.mysql)}})),en=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.postgresPool1=void 0;var t=k();e.postgresPool1={versionSpecifier:">= 1.0.0 < 3.0.0",patch:function(e){var n=e.prototype.connect;return e.prototype.connect=function(e){return e&&(arguments[0]=t.channel.bindToContext(e)),n.apply(this,arguments)},e}},e.enable=function(){t.channel.registerMonkeyPatch("pg-pool",e.postgresPool1)}})),tn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.postgres7=e.postgres6=void 0;var t=k(),r=n(2361);e.postgres6={versionSpecifier:"6.*",patch:function(e,n){var i=e.Client.prototype.query,o="__diagnosticOriginalFunc";return e.Client.prototype.query=function(e,n,a){var s,c={query:{},database:{host:this.connectionParameters.host,port:this.connectionParameters.port},result:null,error:null,duration:0,time:new Date},l=process.hrtime();function u(e){e&&e[o]&&(e=e[o]);var n=t.channel.bindToContext((function(n,i){var o=process.hrtime(l);if(c.result=i&&{rowCount:i.rowCount,command:i.command},c.error=n,c.duration=Math.ceil(1e3*o[0]+o[1]/1e6),t.channel.publish("postgres",c),n){if(e)return e.apply(this,arguments);s&&s instanceof r.EventEmitter&&s.emit("error",n)}else e&&e.apply(this,arguments)}));try{return Object.defineProperty(n,o,{value:e}),n}catch{return e}}try{"string"==typeof e?n instanceof Array?(c.query.preparable={text:e,args:n},a=u(a)):(c.query.text=e,a?a=u(a):n=u(n)):("string"==typeof e.name?c.query.plan=e.name:e.values instanceof Array?c.query.preparable={text:e.text,args:e.values}:c.query.text=e.text,a?a=u(a):n?n=u(n):e.callback=u(e.callback))}catch{return i.apply(this,arguments)}return arguments[0]=e,arguments[1]=n,arguments[2]=a,arguments.length=arguments.length>3?arguments.length:3,s=i.apply(this,arguments)},e}},e.postgres7={versionSpecifier:">=7.* <=8.*",patch:function(e,n){var i=e.Client.prototype.query,o="__diagnosticOriginalFunc";return e.Client.prototype.query=function(e,n,a){var s,c=this,l=!!a,u={query:{},database:{host:this.connectionParameters.host,port:this.connectionParameters.port},result:null,error:null,duration:0,time:new Date},p=process.hrtime();function d(e){e&&e[o]&&(e=e[o]);var n=t.channel.bindToContext((function(n,i){var o=process.hrtime(p);if(u.result=i&&{rowCount:i.rowCount,command:i.command},u.error=n,u.duration=Math.ceil(1e3*o[0]+o[1]/1e6),t.channel.publish("postgres",u),n){if(e)return e.apply(this,arguments);s&&s instanceof r.EventEmitter&&s.emit("error",n)}else e&&e.apply(this,arguments)}));try{return Object.defineProperty(n,o,{value:e}),n}catch{return e}}try{"string"==typeof e?n instanceof Array?(u.query.preparable={text:e,args:n},a=(l="function"==typeof a)?d(a):a):(u.query.text=e,a?a=(l="function"==typeof a)?d(a):a:n=(l="function"==typeof n)?d(n):n):("string"==typeof e.name?u.query.plan=e.name:e.values instanceof Array?u.query.preparable={text:e.text,args:e.values}:u.query.text=e.text,a?(l="function"==typeof a,a=d(a)):n?n=(l="function"==typeof n)?d(n):n:(l="function"==typeof e.callback,e.callback=l?d(e.callback):e.callback))}catch{return i.apply(this,arguments)}return arguments[0]=e,arguments[1]=n,arguments[2]=a,arguments.length=arguments.length>3?arguments.length:3,s=i.apply(this,arguments),l?s:s.then((function(e){return d()(void 0,e),new c._Promise((function(t,n){t(e)}))})).catch((function(e){return d()(e,void 0),new c._Promise((function(t,n){n(e)}))}))},e}},e.enable=function(){t.channel.registerMonkeyPatch("pg",e.postgres6),t.channel.registerMonkeyPatch("pg",e.postgres7)}})),nn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.redis=void 0;var t=k();e.redis={versionSpecifier:">= 2.0.0 < 4.0.0",patch:function(e){var n=e.RedisClient.prototype.internal_send_command;return e.RedisClient.prototype.internal_send_command=function(e){if(e){var r=e.callback;if(!r||!r.pubsubBound){var i=this.address,o=process.hrtime(),a=new Date;e.callback=t.channel.bindToContext((function(n,s){var c=process.hrtime(o),l=1e3*c[0]+c[1]/1e6|0;t.channel.publish("redis",{duration:l,address:i,commandObj:e,err:n,result:s,time:a}),"function"==typeof r&&r.apply(this,arguments)})),e.callback.pubsubBound=!0}}return n.call(this,e)},e}},e.enable=function(){t.channel.registerMonkeyPatch("redis",e.redis)}})),rn=_((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.tedious=void 0;var n=k();e.tedious={versionSpecifier:">= 6.0.0 < 9.0.0",patch:function(e){var r=e.Connection.prototype.makeRequest;return e.Connection.prototype.makeRequest=function(){var e,i,o,a=arguments[0];arguments[0].callback=(e=a.callback,i=process.hrtime(),o={query:{},database:{host:null,port:null},result:null,error:null,duration:0},n.channel.bindToContext((function(r,a,s){var c=process.hrtime(i);o=t(t({},o),{database:{host:this.connection.config.server,port:this.connection.config.options.port},result:!r&&{rowCount:a,rows:s},query:{text:this.parametersByName.statement.value},error:r,duration:Math.ceil(1e3*c[0]+c[1]/1e6)}),n.channel.publish("tedious",o),e.call(this,r,a,s)}))),r.apply(this,arguments)},e}},e.enable=function(){n.channel.registerMonkeyPatch("tedious",e.tedious)}})),on=_((e=>{"use strict";var t,n=e&&e.__extends||(t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t(e,n)},function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),r=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.winston2=e.winston3=void 0;var i=k();e.winston3={versionSpecifier:"3.x",patch:function(e){var t=function(e){function t(t,n){var r=e.call(this,n)||this;return r.winston=t,r}return n(t,e),t.prototype.log=function(e,t){var n=e.message,o=e.level,a=e.meta,s=r(e,["message","level","meta"]);o="function"==typeof Symbol.for?e[Symbol.for("level")]:o,n=e instanceof Error?e:n;var c=function(e,t){return null!=e.config.npm.levels[t]?"npm":null!=e.config.syslog.levels[t]?"syslog":"unknown"}(this.winston,o);for(var l in a=a||{},s)s.hasOwnProperty(l)&&(a[l]=s[l]);i.channel.publish("winston",{message:n,level:o,levelKind:c,meta:a}),t()},t}(e.Transport);function o(){var n,r=arguments[0].levels||e.config.npm.levels;for(var i in r)r.hasOwnProperty(i)&&(n=void 0===n||r[i]>r[n]?i:n);this.add(new t(e,{level:n}))}var a=e.createLogger;e.createLogger=function(){var n,r=arguments[0].levels||e.config.npm.levels;for(var i in r)r.hasOwnProperty(i)&&(n=void 0===n||r[i]>r[n]?i:n);var s=a.apply(this,arguments);s.add(new t(e,{level:n}));var c=s.configure;return s.configure=function(){c.apply(this,arguments),o.apply(this,arguments)},s};var s=e.configure;return e.configure=function(){s.apply(this,arguments),o.apply(this,arguments)},e.add(new t(e)),e}},e.winston2={versionSpecifier:"2.x",patch:function(e){var t,n=e.Logger.prototype.log,r=function(n,r,o){var a;return a=t===e.config.npm.levels?"npm":t===e.config.syslog.levels?"syslog":"unknown",i.channel.publish("winston",{level:n,message:r,meta:o,levelKind:a}),r};return e.Logger.prototype.log=function(){return t=this.levels,this.filters&&0!==this.filters.length?this.filters[this.filters.length-1]!==r&&(this.filters=this.filters.filter((function(e){return e!==r})),this.filters.push(r)):this.filters=[r],n.apply(this,arguments)},e}},e.enable=function(){i.channel.registerMonkeyPatch("winston",e.winston2),i.channel.registerMonkeyPatch("winston",e.winston3)}})),an=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.tedious=e.pgPool=e.pg=e.winston=e.redis=e.mysql=e.mongodb=e.mongodbCore=e.console=e.bunyan=e.azuresdk=void 0;var t=Qt();e.azuresdk=t;var n=Kt();e.bunyan=n;var r=Xt();e.console=r;var i=Yt();e.mongodbCore=i;var o=Jt();e.mongodb=o;var a=Zt();e.mysql=a;var s=en();e.pgPool=s;var c=tn();e.pg=c;var l=nn();e.redis=l;var u=rn();e.tedious=u;var p=on();e.winston=p,e.enable=function(){n.enable(),r.enable(),i.enable(),o.enable(),a.enable(),c.enable(),s.enable(),l.enable(),p.enable(),t.enable(),u.enable()}})),sn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerContextPreservation=e.IsInitialized=void 0;var t=O(),n=P();e.IsInitialized=!process.env.APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL;var r,i,o,a,s="DiagnosticChannel";if(e.IsInitialized){for(a in r=an(),i=(process.env.APPLICATION_INSIGHTS_NO_PATCH_MODULES||"").split(","),o={bunyan:r.bunyan,console:r.console,mongodb:r.mongodb,mongodbCore:r.mongodbCore,mysql:r.mysql,redis:r.redis,pg:r.pg,pgPool:r.pgPool,winston:r.winston,azuresdk:r.azuresdk})-1===i.indexOf(a)&&(o[a].enable(),n.info(s,"Subscribed to "+a+" events"));i.length>0&&n.info(s,"Some modules will not be patched",i)}else n.info(s,"Not subscribing to dependency autocollection because APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL was set");e.registerContextPreservation=function(n){if(e.IsInitialized){var r=k();r.channel.addContextPreservation(n),r.channel.spanContextPropagator=t.AsyncScopeManager}}})),cn=_(((e,t)=>{"use strict";t.exports={requestContextHeader:"request-context",requestContextSourceKey:"appId",requestContextTargetKey:"appId",requestIdHeader:"request-id",parentIdHeader:"x-ms-request-id",rootIdHeader:"x-ms-request-root-id",correlationContextHeader:"correlation-context",traceparentHeader:"traceparent",traceStateHeader:"tracestate"}})),ln=_(((e,t)=>{"use strict";var r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=n(3685),o=n(5687),a=n(7310),s=n(2057),c=P(),l=cn(),u=function(){function e(){}return e.getCookie=function(t,n){var r="";if(t&&t.length&&"string"==typeof n)for(var i=t+"=",o=n.split(";"),a=0;a<o.length;a++)if(n=o[a],(n=e.trim(n))&&0===n.indexOf(i)){r=n.substring(i.length,o[a].length);break}return r},e.trim=function(e){return"string"==typeof e?e.replace(/^\s+|\s+$/g,""):""},e.int32ArrayToBase64=function(e){var t=function(e,t){return String.fromCharCode(e>>t&255)},n=e.map((function(e){return t(e,24)+t(e,16)+t(e,8)+t(e,0)})).join(""),r=(Buffer.from?Buffer.from(n,"binary"):new Buffer(n,"binary")).toString("base64");return r.substr(0,r.indexOf("="))},e.random32=function(){return 4294967296*Math.random()|0},e.randomu32=function(){return e.random32()+2147483648},e.w3cTraceId=function(){for(var t,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r="",i=0;i<4;i++)r+=n[15&(t=e.random32())]+n[t>>4&15]+n[t>>8&15]+n[t>>12&15]+n[t>>16&15]+n[t>>20&15]+n[t>>24&15]+n[t>>28&15];var o=n[8+4*Math.random()|0];return r.substr(0,8)+r.substr(9,4)+"4"+r.substr(13,3)+o+r.substr(16,3)+r.substr(19,12)},e.w3cSpanId=function(){return e.w3cTraceId().substring(16)},e.isValidW3CId=function(e){return 32===e.length&&"00000000000000000000000000000000"!==e},e.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},e.isError=function(e){return e instanceof Error},e.isPrimitive=function(e){var t=typeof e;return"string"===t||"number"===t||"boolean"===t},e.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},e.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=(e/1e3%60).toFixed(7).replace(/0{0,4}$/,""),n=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,i=Math.floor(e/864e5);return t=t.indexOf(".")<2?"0"+t:t,n=n.length<2?"0"+n:n,(i>0?i+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t},e.extractError=function(e){var t=e;return{message:e.message,code:t.code||t.id||""}},e.extractObject=function(t){return t instanceof Error?e.extractError(t):"function"==typeof t.toJSON?t.toJSON():t},e.validateStringMap=function(t){if("object"==typeof t){var n={};for(var r in t){var i="",o=t[r],a=typeof o;if(e.isPrimitive(o))i=o.toString();else if(null===o||"undefined"===a)i="";else{if("function"===a){c.info("key: "+r+" was function; will not serialize");continue}var s=e.isArray(o)?o:e.extractObject(o);try{i=e.isPrimitive(s)?s:JSON.stringify(s)}catch(e){i=o.constructor.name.toString()+" (Error: "+e.message+")",c.info("key: "+r+", could not be serialized")}}n[r]=i.substring(0,e.MAX_PROPERTY_LENGTH)}return n}c.info("Invalid properties dropped from payload")},e.canIncludeCorrelationHeader=function(e,t){var n=e&&e.config&&e.config.correlationHeaderExcludedDomains;if(!n||0==n.length||!t)return!0;for(var r=0;r<n.length;r++)if(new RegExp(n[r].replace(/\./g,".").replace(/\*/g,".*")).test(a.parse(t).hostname))return!1;return!0},e.getCorrelationContextTarget=function(e,t){var n=e.headers&&e.headers[l.requestContextHeader];if(n)for(var r=n.split(","),i=0;i<r.length;++i){var o=r[i].split("=");if(2==o.length&&o[0]==t)return o[1]}},e.makeRequest=function(t,n,s,l){n&&0===n.indexOf("//")&&(n="https:"+n);var u=a.parse(n),p=r(r({},s),{host:u.hostname,port:u.port,path:u.pathname}),d=void 0;if("https:"===u.protocol&&(d=t.proxyHttpsUrl||void 0),"http:"===u.protocol&&(d=t.proxyHttpUrl||void 0),d){0===d.indexOf("//")&&(d="http:"+d);var f=a.parse(d);"https:"===f.protocol?(c.info("Proxies that use HTTPS are not supported"),d=void 0):p=r(r({},p),{host:f.hostname,port:f.port||"80",path:n,headers:r(r({},p.headers),{Host:u.hostname})})}var h="https:"===u.protocol&&!d;return h&&void 0!==t.httpsAgent?p.agent=t.httpsAgent:h||void 0===t.httpAgent?h&&(p.agent=e.tlsRestrictedAgent):p.agent=t.httpAgent,h?o.request(p,l):i.request(p,l)},e.safeIncludeCorrelationHeader=function(t,n,r){var i;if("string"==typeof r)i=r;else if(r instanceof Array)i=r.join(",");else if(r&&"function"==typeof r.toString)try{i=r.toString()}catch(e){c.warn("Outgoing request-context header could not be read. Correlation of requests may be lost.",e,r)}i?e.addCorrelationIdHeaderFromString(t,n,i):n.setHeader(l.requestContextHeader,l.requestContextSourceKey+"="+t.config.correlationId)},e.dumpObj=function(e){var t=Object.prototype.toString.call(e);return t+("[object Error]"===t?"{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":JSON.stringify(e))},e.addCorrelationIdHeaderFromString=function(e,t,n){var r=n.split(","),i=l.requestContextSourceKey+"=";r.some((function(e){return e.substring(0,i.length)===i}))||t.setHeader(l.requestContextHeader,n+","+l.requestContextSourceKey+"="+e.config.correlationId)},e.MAX_PROPERTY_LENGTH=8192,e.tlsRestrictedAgent=new o.Agent({keepAlive:!0,maxSockets:25,secureOptions:s.SSL_OP_NO_SSLv2|s.SSL_OP_NO_SSLv3|s.SSL_OP_NO_TLSv1|s.SSL_OP_NO_TLSv1_1}),e}();t.exports=u})),un=_(((e,t)=>{"use strict";var n=ln(),r=P(),i=function(){function e(){}return e.queryCorrelationId=function(t,i){var o=t.profileQueryEndpoint+"/api/profiles/"+t.instrumentationKey+"/appId";if(e.completedLookups.hasOwnProperty(o))i(e.completedLookups[o]);else if(e.pendingLookups[o])e.pendingLookups[o].push(i);else{e.pendingLookups[o]=[i];var a=function(){if(e.pendingLookups[o]){var i={method:"GET",disableAppInsightsAutoCollection:!0};r.info(e.TAG,i);var s=n.makeRequest(t,o,i,(function(n){if(200===n.statusCode){var i="";n.setEncoding("utf-8"),n.on("data",(function(e){i+=e})),n.on("end",(function(){r.info(e.TAG,i);var t=e.correlationIdPrefix+i;e.completedLookups[o]=t,e.pendingLookups[o]&&e.pendingLookups[o].forEach((function(e){return e(t)})),delete e.pendingLookups[o]}))}else n.statusCode>=400&&n.statusCode<500?(e.completedLookups[o]=void 0,delete e.pendingLookups[o]):setTimeout(a,t.correlationIdRetryIntervalMs)}));s&&(s.on("error",(function(t){r.warn(e.TAG,t)})),s.end())}};setTimeout(a,0)}},e.cancelCorrelationIdQuery=function(t,n){var r=t.profileQueryEndpoint+"/api/profiles/"+t.instrumentationKey+"/appId",i=e.pendingLookups[r];i&&(e.pendingLookups[r]=i.filter((function(e){return e!=n})),0==e.pendingLookups[r].length&&delete e.pendingLookups[r])},e.generateRequestId=function(t){if(t){"."!==(t="|"==t[0]?t:"|"+t)[t.length-1]&&(t+=".");var n=(e.currentRootId++).toString(16);return e.appendSuffix(t,n,"_")}return e.generateRootId()},e.getRootId=function(e){var t=e.indexOf(".");t<0&&(t=e.length);var n="|"===e[0]?1:0;return e.substring(n,t)},e.generateRootId=function(){return"|"+n.w3cTraceId()+"."},e.appendSuffix=function(t,r,i){if(t.length+r.length<e.requestIdMaxLength)return t+r+i;var o=e.requestIdMaxLength-9;if(t.length>o)for(;o>1;--o){var a=t[o-1];if("."===a||"_"===a)break}if(o<=1)return e.generateRootId();for(r=n.randomu32().toString(16);r.length<8;)r="0"+r;return t.substring(0,o)+r+"#"},e.TAG="CorrelationIdManager",e.correlationIdPrefix="cid-v1:",e.w3cEnabled=!0,e.pendingLookups={},e.completedLookups={},e.requestIdMaxLength=1024,e.currentRootId=n.randomu32(),e}();t.exports=i})),pn=_(((e,t)=>{"use strict";var n=ln(),r=un(),i=function(){function e(t,i){if(this.traceFlag=e.DEFAULT_TRACE_FLAG,this.version=e.DEFAULT_VERSION,t&&"string"==typeof t)if(t.split(",").length>1)this.traceId=n.w3cTraceId(),this.spanId=n.w3cTraceId().substr(0,16);else{var o=t.trim().split("-"),a=o.length;a>=4?(this.version=o[0],this.traceId=o[1],this.spanId=o[2],this.traceFlag=o[3]):(this.traceId=n.w3cTraceId(),this.spanId=n.w3cTraceId().substr(0,16)),this.version.match(/^[0-9a-f]{2}$/g)||(this.version=e.DEFAULT_VERSION,this.traceId=n.w3cTraceId()),"00"===this.version&&4!==a&&(this.traceId=n.w3cTraceId(),this.spanId=n.w3cTraceId().substr(0,16)),"ff"===this.version&&(this.version=e.DEFAULT_VERSION,this.traceId=n.w3cTraceId(),this.spanId=n.w3cTraceId().substr(0,16)),this.version.match(/^0[0-9a-f]$/g)||(this.version=e.DEFAULT_VERSION),this.traceFlag.match(/^[0-9a-f]{2}$/g)||(this.traceFlag=e.DEFAULT_TRACE_FLAG,this.traceId=n.w3cTraceId()),e.isValidTraceId(this.traceId)||(this.traceId=n.w3cTraceId()),e.isValidSpanId(this.spanId)||(this.spanId=n.w3cTraceId().substr(0,16),this.traceId=n.w3cTraceId()),this.parentId=this.getBackCompatRequestId()}else if(i){this.parentId=i.slice();var s=r.getRootId(i);e.isValidTraceId(s)||(this.legacyRootId=s,s=n.w3cTraceId()),-1!==i.indexOf("|")&&(i=i.substring(1+i.substring(0,i.length-1).lastIndexOf("."),i.length-1)),this.traceId=s,this.spanId=i}else this.traceId=n.w3cTraceId(),this.spanId=n.w3cTraceId().substr(0,16)}return e.isValidTraceId=function(e){return e.match(/^[0-9a-f]{32}$/)&&"00000000000000000000000000000000"!==e},e.isValidSpanId=function(e){return e.match(/^[0-9a-f]{16}$/)&&"0000000000000000"!==e},e.formatOpenTelemetryTraceFlags=function(e){var t="0"+e.toString(16);return t.substring(t.length-2)},e.prototype.getBackCompatRequestId=function(){return"|"+this.traceId+"."+this.spanId+"."},e.prototype.toString=function(){return this.version+"-"+this.traceId+"-"+this.spanId+"-"+this.traceFlag},e.prototype.updateSpanId=function(){this.spanId=n.w3cTraceId().substr(0,16)},e.DEFAULT_TRACE_FLAG="01",e.DEFAULT_VERSION="00",e}();t.exports=i})),dn=_(((e,t)=>{"use strict";var n=function(){function e(e){this.fieldmap=[],e&&(this.fieldmap=this.parseHeader(e))}return e.prototype.toString=function(){var e=this.fieldmap;return e&&0!=e.length?e.join(", "):null},e.validateKeyChars=function(e){var t=e.split("@");if(2==t.length){var n=t[0].trim(),r=t[1].trim(),i=Boolean(n.match(/^[\ ]?[a-z0-9\*\-\_/]{1,241}$/)),o=Boolean(r.match(/^[\ ]?[a-z0-9\*\-\_/]{1,14}$/));return i&&o}return 1==t.length&&Boolean(e.match(/^[\ ]?[a-z0-9\*\-\_/]{1,256}$/))},e.prototype.parseHeader=function(t){var n=[],r={},i=t.split(",");if(i.length>32)return null;for(var o=0,a=i;o<a.length;o++){var s=a[o].trim();if(0!==s.length){var c=s.split("=");if(2!==c.length||!e.validateKeyChars(c[0])||r[c[0]])return null;r[c[0]]=!0,n.push(s)}}return n},e.strict=!0,e}();t.exports=n})),fn=_(((e,t)=>{"use strict";t.exports=function(){}})),hn=_(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return r(t,e),t}(fn());t.exports=i})),mn=_(((e,t)=>{"use strict";t.exports=function(){}})),vn=_(((e,t)=>{"use strict";t.exports=function(){this.applicationVersion="ai.application.ver",this.deviceId="ai.device.id",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceOEMName="ai.device.oemName",this.deviceOSVersion="ai.device.osVersion",this.deviceType="ai.device.type",this.locationIp="ai.location.ip",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.userAccountId="ai.user.accountId",this.userId="ai.user.id",this.userAuthUserId="ai.user.authUserId",this.cloudRole="ai.cloud.role",this.cloudRoleInstance="ai.cloud.roleInstance",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion",this.internalNodeName="ai.internal.nodeName"}})),gn=_(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){return e.call(this)||this}return r(t,e),t}(mn());t.exports=i})),bn=_(((e,t)=>{"use strict";var n,r;(r=n||(n={}))[r.Measurement=0]="Measurement",r[r.Aggregation=1]="Aggregation",t.exports=n})),yn=_(((e,t)=>{"use strict";var n=bn();t.exports=function(){this.kind=n.Measurement}})),_n=_(((e,t)=>{"use strict";t.exports=function(){this.ver=1,this.sampleRate=100,this.tags={}}})),xn=_(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return r(t,e),t}(fn());t.exports=i})),wn=_(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.exceptions=[],t.properties={},t.measurements={},t}return r(t,e),t}(fn());t.exports=i})),En=_(((e,t)=>{"use strict";t.exports=function(){this.hasFullStack=!0,this.parsedStack=[]}})),An=_(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t}return r(t,e),t}(fn());t.exports=i})),Sn=_(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.metrics=[],t.properties={},t}return r(t,e),t}(fn());t.exports=i})),Tn=_(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return r(t,e),t}(xn());t.exports=i})),Cn=_(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.success=!0,t.properties={},t.measurements={},t}return r(t,e),t}(fn());t.exports=i})),In=_(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return r(t,e),t}(fn());t.exports=i})),Pn=_(((e,t)=>{"use strict";var n,r;(r=n||(n={}))[r.Verbose=0]="Verbose",r[r.Information=1]="Information",r[r.Warning=2]="Warning",r[r.Error=3]="Error",r[r.Critical=4]="Critical",t.exports=n})),On=_(((e,t)=>{"use strict";t.exports=function(){}})),Nn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AvailabilityData=hn(),e.Base=mn(),e.ContextTagKeys=vn(),e.Data=gn(),e.DataPoint=yn(),e.DataPointType=bn(),e.Domain=fn(),e.Envelope=_n(),e.EventData=xn(),e.ExceptionData=wn(),e.ExceptionDetails=En(),e.MessageData=An(),e.MetricData=Sn(),e.PageViewData=Tn(),e.RemoteDependencyData=Cn(),e.RequestData=In(),e.SeverityLevel=Pn(),e.StackFrame=On()})),Rn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.domainSupportsProperties=e.RemoteDependencyDataConstants=void 0;var t=Nn(),n=function(){function e(){}return e.TYPE_HTTP="Http",e.TYPE_AI="Http (tracked component)",e}();e.RemoteDependencyDataConstants=n,e.domainSupportsProperties=function(e){return"properties"in e||e instanceof t.EventData||e instanceof t.ExceptionData||e instanceof t.MessageData||e instanceof t.MetricData||e instanceof t.PageViewData||e instanceof t.RemoteDependencyData||e instanceof t.RequestData}})),Dn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),kn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Ln=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),jn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Mn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),zn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Vn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Bn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Fn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Un=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),qn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Hn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Gn=_((e=>{"use strict";var t,n;Object.defineProperty(e,"__esModule",{value:!0}),e.TelemetryType=e.TelemetryTypeString=e.baseTypeToTelemetryType=e.telemetryTypeToBaseType=void 0,e.telemetryTypeToBaseType=function(e){switch(e){case t.Event:return"EventData";case t.Exception:return"ExceptionData";case t.Trace:return"MessageData";case t.Metric:return"MetricData";case t.Request:return"RequestData";case t.Dependency:return"RemoteDependencyData";case t.Availability:return"AvailabilityData";case t.PageView:return"PageViewData"}},e.baseTypeToTelemetryType=function(e){switch(e){case"EventData":return t.Event;case"ExceptionData":return t.Exception;case"MessageData":return t.Trace;case"MetricData":return t.Metric;case"RequestData":return t.Request;case"RemoteDependencyData":return t.Dependency;case"AvailabilityData":return t.Availability;case"PageViewData":return t.PageView}},e.TelemetryTypeString={Event:"EventData",Exception:"ExceptionData",Trace:"MessageData",Metric:"MetricData",Request:"RequestData",Dependency:"RemoteDependencyData",Availability:"AvailabilityData",PageView:"PageViewData"},(n=t=e.TelemetryType||(e.TelemetryType={}))[n.Event=0]="Event",n[n.Exception=1]="Exception",n[n.Trace=2]="Trace",n[n.Metric=3]="Metric",n[n.Request=4]="Request",n[n.Dependency=5]="Dependency",n[n.Availability=6]="Availability",n[n.PageView=7]="PageView"})),$n=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Dn(),e),n(kn(),e),n(Ln(),e),n(jn(),e),n(Mn(),e),n(zn(),e),n(Vn(),e),n(Bn(),e),n(Fn(),e),n(Un(),e),n(qn(),e),n(Hn(),e),n(Gn(),e)})),Wn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Qn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Kn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Xn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Yn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Jn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Zn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),er=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),tr=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Wn(),e),n(Qn(),e),n(Kn(),e),n(Xn(),e),n(Yn(),e),n(Jn(),e),n(Zn(),e),n(er(),e)})),nr=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Rn(),e),n(Nn(),e),n($n(),e),n(tr(),e)})),rr=_(((e,t)=>{"use strict";var n=function(){function e(){}return e.prototype.getUrl=function(){return this.url},e.prototype.RequestParser=function(){this.startTime=+new Date},e.prototype._setStatus=function(e,t){var n=+new Date;this.duration=n-this.startTime,this.statusCode=e;var r=this.properties||{};if(t)if("string"==typeof t)r.error=t;else if(t instanceof Error)r.error=t.message;else if("object"==typeof t)for(var i in t)r[i]=t[i]&&t[i].toString&&t[i].toString();this.properties=r},e.prototype._isSuccess=function(){return 0<this.statusCode&&this.statusCode<400},e}();t.exports=n})),ir=_(((e,t)=>{"use strict";var r,i=e&&e.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=n(7310),a=nr(),s=ln(),c=cn(),l=rr(),u=un(),p=dn(),d=pn(),f=function(e){function t(t,n){var r=e.call(this)||this;return t&&(r.method=t.method,r.url=r._getAbsoluteUrl(t),r.startTime=+new Date,r.socketRemoteAddress=t.socket&&t.socket.remoteAddress,r.parseHeaders(t,n),t.connection&&(r.connectionRemoteAddress=t.connection.remoteAddress,r.legacySocketRemoteAddress=t.connection.socket&&t.connection.socket.remoteAddress)),r}return i(t,e),t.prototype.onError=function(e,t){this._setStatus(void 0,e),t&&(this.duration=t)},t.prototype.onResponse=function(e,t){this._setStatus(e.statusCode,void 0),t&&(this.duration=t)},t.prototype.getRequestTelemetry=function(e){var t={id:this.requestId,name:this.method+" "+o.parse(this.url).pathname,url:this.url,source:this.sourceCorrelationId,duration:this.duration,resultCode:this.statusCode?this.statusCode.toString():null,success:this._isSuccess(),properties:this.properties};if(e&&e.time?t.time=e.time:this.startTime&&(t.time=new Date(this.startTime)),e){for(var n in e)t[n]||(t[n]=e[n]);if(e.properties)for(var n in e.properties)t.properties[n]=e.properties[n]}return t},t.prototype.getRequestTags=function(e){var n={};for(var r in e)n[r]=e[r];return n[t.keys.locationIp]=e[t.keys.locationIp]||this._getIp(),n[t.keys.sessionId]=e[t.keys.sessionId]||this._getId("ai_session"),n[t.keys.userId]=e[t.keys.userId]||this._getId("ai_user"),n[t.keys.userAuthUserId]=e[t.keys.userAuthUserId]||this._getId("ai_authUser"),n[t.keys.operationName]=this.getOperationName(e),n[t.keys.operationParentId]=this.getOperationParentId(e),n[t.keys.operationId]=this.getOperationId(e),n},t.prototype.getOperationId=function(e){return e[t.keys.operationId]||this.operationId},t.prototype.getOperationParentId=function(e){return e[t.keys.operationParentId]||this.parentId||this.getOperationId(e)},t.prototype.getOperationName=function(e){return e[t.keys.operationName]||this.method+" "+o.parse(this.url).pathname},t.prototype.getRequestId=function(){return this.requestId},t.prototype.getCorrelationContextHeader=function(){return this.correlationContextHeader},t.prototype.getTraceparent=function(){return this.traceparent},t.prototype.getTracestate=function(){return this.tracestate},t.prototype.getLegacyRootId=function(){return this.legacyRootId},t.prototype._getAbsoluteUrl=function(e){if(!e.headers)return e.url;var t=e.connection?e.connection.encrypted:null,n=o.parse(e.url),r=n.pathname,i=n.search,a=t||"https"==e.headers["x-forwarded-proto"]?"https":"http";return o.format({protocol:a,host:e.headers.host,pathname:r,search:i})},t.prototype._getIp=function(){var e=/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/,t=function(t){var n=e.exec(t);if(n)return n[0]},n=t(this.rawHeaders["x-forwarded-for"])||t(this.rawHeaders["x-client-ip"])||t(this.rawHeaders["x-real-ip"])||t(this.connectionRemoteAddress)||t(this.socketRemoteAddress)||t(this.legacySocketRemoteAddress);return!n&&this.connectionRemoteAddress&&this.connectionRemoteAddress.substr&&"::"===this.connectionRemoteAddress.substr(0,2)&&(n="127.0.0.1"),n},t.prototype._getId=function(e){var n=this.rawHeaders&&this.rawHeaders.cookie&&"string"==typeof this.rawHeaders.cookie&&this.rawHeaders.cookie||"";return t.parseId(s.getCookie(e,n))},t.prototype.setBackCompatFromThisTraceContext=function(){this.operationId=this.traceparent.traceId,this.traceparent.legacyRootId&&(this.legacyRootId=this.traceparent.legacyRootId),this.parentId=this.traceparent.parentId,this.traceparent.updateSpanId(),this.requestId=this.traceparent.getBackCompatRequestId()},t.prototype.parseHeaders=function(e,t){if(this.rawHeaders=e.headers||e.rawHeaders,this.userAgent=e.headers&&e.headers["user-agent"],this.sourceCorrelationId=s.getCorrelationContextTarget(e,c.requestContextSourceKey),e.headers){var n=e.headers[c.traceStateHeader]?e.headers[c.traceStateHeader].toString():null,r=e.headers[c.traceparentHeader]?e.headers[c.traceparentHeader].toString():null,i=e.headers[c.requestIdHeader]?e.headers[c.requestIdHeader].toString():null,o=e.headers[c.parentIdHeader]?e.headers[c.parentIdHeader].toString():null,a=e.headers[c.rootIdHeader]?e.headers[c.rootIdHeader].toString():null;this.correlationContextHeader=e.headers[c.correlationContextHeader]?e.headers[c.correlationContextHeader].toString():null,u.w3cEnabled&&(r||n)?(this.traceparent=new d(r?r.toString():null),this.tracestate=r&&n&&new p(n?n.toString():null),this.setBackCompatFromThisTraceContext()):i?u.w3cEnabled?(this.traceparent=new d(null,i),this.setBackCompatFromThisTraceContext()):(this.parentId=i,this.requestId=u.generateRequestId(this.parentId),this.operationId=u.getRootId(this.requestId)):u.w3cEnabled?(this.traceparent=new d,this.traceparent.parentId=o,this.traceparent.legacyRootId=a||o,this.setBackCompatFromThisTraceContext()):(this.parentId=o,this.requestId=u.generateRequestId(a||this.parentId),this.correlationContextHeader=null,this.operationId=u.getRootId(this.requestId)),t&&(this.requestId=t,this.operationId=u.getRootId(this.requestId))}},t.parseId=function(e){var t=e.split("|");return t.length>0?t[0]:""},t.keys=new a.ContextTagKeys,t}(l);t.exports=f})),or=_(((e,t)=>{var n;e=t.exports=W,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var r=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,o=e.re=[],a=e.src=[],s=0,c=s++;a[c]="0|[1-9]\\d*";var l=s++;a[l]="[0-9]+";var u=s++;a[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=s++;a[p]="("+a[c]+")\\.("+a[c]+")\\.("+a[c]+")";var d=s++;a[d]="("+a[l]+")\\.("+a[l]+")\\.("+a[l]+")";var f=s++;a[f]="(?:"+a[c]+"|"+a[u]+")";var h=s++;a[h]="(?:"+a[l]+"|"+a[u]+")";var m=s++;a[m]="(?:-("+a[f]+"(?:\\."+a[f]+")*))";var v=s++;a[v]="(?:-?("+a[h]+"(?:\\."+a[h]+")*))";var g=s++;a[g]="[0-9A-Za-z-]+";var b=s++;a[b]="(?:\\+("+a[g]+"(?:\\."+a[g]+")*))";var y=s++,_="v?"+a[p]+a[m]+"?"+a[b]+"?";a[y]="^"+_+"$";var x="[v=\\s]*"+a[d]+a[v]+"?"+a[b]+"?",w=s++;a[w]="^"+x+"$";var E=s++;a[E]="((?:<|>)?=?)";var A=s++;a[A]=a[l]+"|x|X|\\*";var S=s++;a[S]=a[c]+"|x|X|\\*";var T=s++;a[T]="[v=\\s]*("+a[S]+")(?:\\.("+a[S]+")(?:\\.("+a[S]+")(?:"+a[m]+")?"+a[b]+"?)?)?";var C=s++;a[C]="[v=\\s]*("+a[A]+")(?:\\.("+a[A]+")(?:\\.("+a[A]+")(?:"+a[v]+")?"+a[b]+"?)?)?";var I=s++;a[I]="^"+a[E]+"\\s*"+a[T]+"$";var P=s++;a[P]="^"+a[E]+"\\s*"+a[C]+"$";var O=s++;a[O]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var N=s++;a[N]="(?:~>?)";var R=s++;a[R]="(\\s*)"+a[N]+"\\s+",o[R]=new RegExp(a[R],"g");var D=s++;a[D]="^"+a[N]+a[T]+"$";var k=s++;a[k]="^"+a[N]+a[C]+"$";var L=s++;a[L]="(?:\\^)";var j=s++;a[j]="(\\s*)"+a[L]+"\\s+",o[j]=new RegExp(a[j],"g");var M=s++;a[M]="^"+a[L]+a[T]+"$";var z=s++;a[z]="^"+a[L]+a[C]+"$";var V=s++;a[V]="^"+a[E]+"\\s*("+x+")$|^$";var B=s++;a[B]="^"+a[E]+"\\s*("+_+")$|^$";var F=s++;a[F]="(\\s*)"+a[E]+"\\s*("+x+"|"+a[T]+")",o[F]=new RegExp(a[F],"g");var U=s++;a[U]="^\\s*("+a[T]+")\\s+-\\s+("+a[T]+")\\s*$";var q=s++;a[q]="^\\s*("+a[C]+")\\s+-\\s+("+a[C]+")\\s*$";var H,G=s++;for(a[G]="(<|>)?=?\\s*\\*",H=0;H<35;H++)n(H,a[H]),o[H]||(o[H]=new RegExp(a[H]));function $(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e||e.length>r)return null;if(!(t.loose?o[w]:o[y]).test(e))return null;try{return new W(e,t)}catch{return null}}function W(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?o[w]:o[y]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}e.parse=$,e.valid=function(e,t){var n=$(e,t);return n?n.version:null},e.clean=function(e,t){var n=$(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},e.SemVer=W,W.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},W.prototype.toString=function(){return this.version},W.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof W||(e=new W(e,this.options)),this.compareMain(e)||this.comparePre(e)},W.prototype.compareMain=function(e){return e instanceof W||(e=new W(e,this.options)),K(this.major,e.major)||K(this.minor,e.minor)||K(this.patch,e.patch)},W.prototype.comparePre=function(e){if(e instanceof W||(e=new W(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return K(r,i)}while(++t)},W.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},e.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch{return null}},e.diff=function(e,t){if(Z(e,t))return null;var n=$(e),r=$(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return i+a;return o},e.compareIdentifiers=K;var Q=/^[0-9]+$/;function K(e,t){var n=Q.test(e),r=Q.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function X(e,t,n){return new W(e,n).compare(new W(t,n))}function Y(e,t,n){return X(e,t,n)>0}function J(e,t,n){return X(e,t,n)<0}function Z(e,t,n){return 0===X(e,t,n)}function ee(e,t,n){return 0!==X(e,t,n)}function te(e,t,n){return X(e,t,n)>=0}function ne(e,t,n){return X(e,t,n)<=0}function re(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Z(e,n,r);case"!=":return ee(e,n,r);case">":return Y(e,n,r);case">=":return te(e,n,r);case"<":return J(e,n,r);case"<=":return ne(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function ie(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ie){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof ie))return new ie(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===oe?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}e.rcompareIdentifiers=function(e,t){return K(t,e)},e.major=function(e,t){return new W(e,t).major},e.minor=function(e,t){return new W(e,t).minor},e.patch=function(e,t){return new W(e,t).patch},e.compare=X,e.compareLoose=function(e,t){return X(e,t,!0)},e.rcompare=function(e,t,n){return X(t,e,n)},e.sort=function(t,n){return t.sort((function(t,r){return e.compare(t,r,n)}))},e.rsort=function(t,n){return t.sort((function(t,r){return e.rcompare(t,r,n)}))},e.gt=Y,e.lt=J,e.eq=Z,e.neq=ee,e.gte=te,e.lte=ne,e.cmp=re,e.Comparator=ie;var oe={};function ae(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ae)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ae(e.raw,t);if(e instanceof ie)return new ae(e.value,t);if(!(this instanceof ae))return new ae(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ce(e,t,n,r,i,o,a,s,c,l,u,p,d){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(s=se(c)?"":se(l)?"<"+(+c+1)+".0.0":se(u)?"<"+c+"."+(+l+1)+".0":p?"<="+c+"."+l+"."+u+"-"+p:"<="+s)).trim()}function le(e,t,r){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(i=0;i<e.length;i++)if(n(e[i].semver),e[i].semver!==oe&&e[i].semver.prerelease.length>0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new ae(t,n)}catch{return!1}return t.test(e)}function pe(e,t,n,r){var i,o,a,s,c;switch(e=new W(e,r),t=new ae(t,r),n){case">":i=Y,o=ne,a=J,s=">",c=">=";break;case"<":i=J,o=te,a=Y,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,r))return!1;for(var l=0;l<t.set.length;++l){var u=t.set[l],p=null,d=null;if(u.forEach((function(e){e.semver===oe&&(e=new ie(">=0.0.0")),p=p||e,d=d||e,i(e.semver,p.semver,r)?p=e:a(e.semver,d.semver,r)&&(d=e)})),p.operator===s||p.operator===c||(!d.operator||d.operator===s)&&o(e,d.semver))return!1;if(d.operator===c&&a(e,d.semver))return!1}return!0}ie.prototype.parse=function(e){var t=this.options.loose?o[V]:o[B],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=oe},ie.prototype.toString=function(){return this.value},ie.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===oe||("string"==typeof e&&(e=new W(e,this.options)),re(e,this.operator,this.semver,this.options))},ie.prototype.intersects=function(e,t){if(!(e instanceof ie))throw new TypeError("a Comparator is required");var n;if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new ae(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new ae(this.value,t),ue(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=re(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=re(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&a||s||c},e.Range=ae,ae.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},ae.prototype.toString=function(){return this.range},ae.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[q]:o[U];e=e.replace(r,ce),n("hyphen replace",e),e=e.replace(o[F],"$1$2$3"),n("comparator trim",e,o[F]),e=(e=(e=e.replace(o[R],"$1~")).replace(o[j],"$1^")).split(/\s+/).join(" ");var i=t?o[V]:o[B],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[z]:o[M];return e.replace(r,(function(t,r,i,o,a){var s;return n("caret",e,t,r,i,o,a),se(r)?s="":se(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?s="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[k]:o[D];return e.replace(r,(function(t,r,i,o,a){var s;return n("tilde",e,t,r,i,o,a),se(r)?s="":se(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?s=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0"):s=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[P]:o[I];return e.replace(r,(function(t,r,i,o,a,s){n("xRange",e,t,r,i,o,a,s);var c=se(i),l=c||se(o),u=l||se(a);return"="===r&&u&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&u?(l&&(o=0),a=0,">"===r?(r=">=",l?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",l?i=+i+1:o=+o+1),t=r+i+"."+o+"."+a):l?t=">="+i+".0.0 <"+(+i+1)+".0.0":u&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(i)}))),a.map((function(e){return new ie(e,this.options)}),this)},ae.prototype.intersects=function(e,t){if(!(e instanceof ae))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},e.toComparators=function(e,t){return new ae(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},ae.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t<this.set.length;t++)if(le(this.set[t],e,this.options))return!0;return!1},e.satisfies=ue,e.maxSatisfying=function(e,t,n){var r=null,i=null;try{var o=new ae(t,n)}catch{return null}return e.forEach((function(e){o.test(e)&&(!r||-1===i.compare(e))&&(i=new W(r=e,n))})),r},e.minSatisfying=function(e,t,n){var r=null,i=null;try{var o=new ae(t,n)}catch{return null}return e.forEach((function(e){o.test(e)&&(!r||1===i.compare(e))&&(i=new W(r=e,n))})),r},e.minVersion=function(e,t){e=new ae(e,t);var n=new W("0.0.0");if(e.test(n)||(n=new W("0.0.0-0"),e.test(n)))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new W(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!n||Y(n,t))&&(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},e.validRange=function(e,t){try{return new ae(e,t).range||"*"}catch{return null}},e.ltr=function(e,t,n){return pe(e,t,"<",n)},e.gtr=function(e,t,n){return pe(e,t,">",n)},e.outside=pe,e.prerelease=function(e,t){var n=$(e,t);return n&&n.prerelease.length?n.prerelease:null},e.intersects=function(e,t,n){return e=new ae(e,n),t=new ae(t,n),e.intersects(t)},e.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(o[O]);return null==t?null:$(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}})),ar=_(((e,t)=>{"use strict";function n(e){return"function"==typeof e}var r=console.error.bind(console);function i(e,t,n){var r=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}function o(e){e&&e.logger&&(n(e.logger)?r=e.logger:r("new logger isn't a function, not replacing"))}function a(e,t,o){if(e&&e[t]){if(!o)return r("no wrapper function"),void r((new Error).stack);if(n(e[t])&&n(o)){var a=e[t],s=o(a,t);return i(s,"__original",a),i(s,"__unwrap",(function(){e[t]===s&&i(e,t,a)})),i(s,"__wrapped",!0),i(e,t,s),s}r("original object and wrapper must be functions")}else r("no original function "+t+" to wrap")}function s(e,t){return e&&e[t]?e[t].__unwrap?e[t].__unwrap():void r("no original to unwrap to -- has "+t+" already been unwrapped?"):(r("no function to unwrap."),void r((new Error).stack))}o.wrap=a,o.massWrap=function(e,t,n){if(!e)return r("must provide one or more modules to patch"),void r((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach((function(e){t.forEach((function(t){a(e,t,n)}))})):r("must provide one or more functions to wrap on modules")},o.unwrap=s,o.massUnwrap=function(e,t){if(!e)return r("must provide one or more modules to patch"),void r((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach((function(e){t.forEach((function(t){s(e,t)}))})):r("must provide one or more functions to unwrap on modules")},t.exports=o})),sr=_(((e,t)=>{"use strict";var n=ar(),r=n.wrap,i=n.unwrap,o="wrap@before";function a(e,t,n){var r=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}function s(e,t){var n;return n=e._events&&e._events[t],Array.isArray(n)||(n=n?[n]:[]),n}function c(e,t){if(e){var n=e;if("function"==typeof e)n=t(e);else if(Array.isArray(e)){n=[];for(var r=0;r<e.length;r++)n[r]=t(e[r])}return n}}t.exports=function(e,t,n){if(!(e&&e.on&&e.addListener&&e.removeListener&&e.emit))throw new Error("can only wrap real EEs");if(!t)throw new Error("must have function to run on listener addition");if(!n)throw new Error("must have function to wrap listeners when emitting");function l(e){return function(t,n){var i=s(this,t).slice();try{var a=e.call(this,t,n);return function(e,t,n){var r=s(e,t).filter((function(e){return-1===n.indexOf(e)}));r.length>0&&function(e,t){for(var n=t.length,r=0;r<n;r++){var i=t[r],a=e[o];if("function"==typeof a)a(i);else if(Array.isArray(a))for(var s=a.length,c=0;c<s;c++)a[c](i)}}(e,r)}(this,t,i),a}finally{this.on.__wrapped||r(this,"on",l),this.addListener.__wrapped||r(this,"addListener",l)}}}e[o]?"function"==typeof e[o]?a(e,o,[e[o],t]):Array.isArray(e[o])&&e[o].push(t):a(e,o,t),e.__wrapped||(r(e,"addListener",l),r(e,"on",l),r(e,"emit",(function(e){return function(t){if(!this._events||!this._events[t])return e.apply(this,arguments);var o=this._events[t];r(this,"removeListener",(function(e){return function(){this._events[t]=o;try{return e.apply(this,arguments)}finally{o=this._events[t],this._events[t]=c(o,n)}}}));try{return this._events[t]=c(o,n),e.apply(this,arguments)}finally{i(this,"removeListener"),this._events[t]=o}}})),a(e,"__unwrap",(function(){i(e,"addListener"),i(e,"on"),i(e,"emit"),delete e[o],delete e.__wrapped})),a(e,"__wrapped",!0))}})),cr=_(((e,t)=>{"use strict";var r=n(3837),i=n(9491),o=sr(),a=n(852),s="cls@contexts",c="error@context",l=process.env.DEBUG_CLS_HOOKED,u=-1;function p(e){this.name=e,this.active=null,this._set=[],this.id=null,this._contexts=new Map,this._indent=0}function d(e){return process.namespaces[e]}function f(e){let t=d(e);i.ok(t,"can't delete nonexistent namespace! \""+e+'"'),i.ok(t.id,"don't assign to process.namespaces directly! "+r.inspect(t)),process.namespaces[e]=null}function h(...e){l&&process._rawDebug(`${r.format(...e)}`)}t.exports={getNamespace:d,createNamespace:function(e){i.ok(e,"namespace must be given a name."),l&&h(`NS-CREATING NAMESPACE (${e})`);let t=new p(e);return t.id=u,a.createHook({init(n,i,o,s){if(u=a.executionAsyncId(),t.active)t._contexts.set(n,t.active),l&&h(`${" ".repeat(t._indent<0?0:t._indent)}INIT [${i}] (${e}) asyncId:${n} currentUid:${u} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${s}`);else if(0===u){let o=a.triggerAsyncId(),c=t._contexts.get(o);c?(t._contexts.set(n,c),l&&h(`${" ".repeat(t._indent<0?0:t._indent)}INIT USING CONTEXT FROM TRIGGERID [${i}] (${e}) asyncId:${n} currentUid:${u} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${s}`)):l&&h(`${" ".repeat(t._indent<0?0:t._indent)}INIT MISSING CONTEXT [${i}] (${e}) asyncId:${n} currentUid:${u} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${s}`)}if(l&&"PROMISE"===i){h(r.inspect(s,{showHidden:!0}));let a=s.parentId;h(`${" ".repeat(t._indent<0?0:t._indent)}INIT RESOURCE-PROMISE [${i}] (${e}) parentId:${a} asyncId:${n} currentUid:${u} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${s}`)}},before(n){let i;if(u=a.executionAsyncId(),i=t._contexts.get(n)||t._contexts.get(u),i){if(l){let o=a.triggerAsyncId();h(`${" ".repeat(t._indent<0?0:t._indent)}BEFORE (${e}) asyncId:${n} currentUid:${u} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${r.inspect(i)}`),t._indent+=2}t.enter(i)}else if(l){let i=a.triggerAsyncId();h(`${" ".repeat(t._indent<0?0:t._indent)}BEFORE MISSING CONTEXT (${e}) asyncId:${n} currentUid:${u} triggerId:${i} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} namespace._contexts:${r.inspect(t._contexts,{showHidden:!0,depth:2,colors:!0})}`),t._indent+=2}},after(n){let i;if(u=a.executionAsyncId(),i=t._contexts.get(n)||t._contexts.get(u),i){if(l){let o=a.triggerAsyncId();t._indent-=2,h(`${" ".repeat(t._indent<0?0:t._indent)}AFTER (${e}) asyncId:${n} currentUid:${u} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${r.inspect(i)}`)}t.exit(i)}else if(l){let o=a.triggerAsyncId();t._indent-=2,h(`${" ".repeat(t._indent<0?0:t._indent)}AFTER MISSING CONTEXT (${e}) asyncId:${n} currentUid:${u} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${r.inspect(i)}`)}},destroy(n){if(u=a.executionAsyncId(),l){let i=a.triggerAsyncId();h(`${" ".repeat(t._indent<0?0:t._indent)}DESTROY (${e}) currentUid:${u} asyncId:${n} triggerId:${i} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${r.inspect(t._contexts.get(u))}`)}t._contexts.delete(n)}}).enable(),process.namespaces[e]=t,t},destroyNamespace:f,reset:function(){process.namespaces&&Object.keys(process.namespaces).forEach((function(e){f(e)})),process.namespaces=Object.create(null)},ERROR_SYMBOL:c},p.prototype.set=function(e,t){if(!this.active)throw new Error("No context available. ns.run() or ns.bind() must be called first.");return this.active[e]=t,l&&h(" ".repeat(this._indent<0?0:this._indent)+"CONTEXT-SET KEY:"+e+"="+t+" in ns:"+this.name+" currentUid:"+u+" active:"+r.inspect(this.active,{showHidden:!0,depth:2,colors:!0})),t},p.prototype.get=function(e){if(this.active){if(l){let t=a.executionAsyncId(),n=a.triggerAsyncId(),i=" ".repeat(this._indent<0?0:this._indent);h(i+"CONTEXT-GETTING KEY:"+e+"="+this.active[e]+" ("+this.name+") currentUid:"+u+" active:"+r.inspect(this.active,{showHidden:!0,depth:2,colors:!0})),h(`${i}CONTEXT-GETTING KEY: (${this.name}) ${e}=${this.active[e]} currentUid:${u} asyncHooksCurrentId:${t} triggerId:${n} len:${this._set.length} active:${r.inspect(this.active)}`)}return this.active[e]}if(l){let t=a.currentId(),n=a.triggerAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-GETTING KEY NO ACTIVE NS: (${this.name}) ${e}=undefined currentUid:${u} asyncHooksCurrentId:${t} triggerId:${n} len:${this._set.length}`)}},p.prototype.createContext=function(){let e=Object.create(this.active?this.active:Object.prototype);if(e._ns_name=this.name,e.id=u,l){let t=a.executionAsyncId(),n=a.triggerAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-CREATED Context: (${this.name}) currentUid:${u} asyncHooksCurrentId:${t} triggerId:${n} len:${this._set.length} context:${r.inspect(e,{showHidden:!0,depth:2,colors:!0})}`)}return e},p.prototype.run=function(e){let t=this.createContext();this.enter(t);try{if(l){let e=a.triggerAsyncId(),n=a.executionAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-RUN BEGIN: (${this.name}) currentUid:${u} triggerId:${e} asyncHooksCurrentId:${n} len:${this._set.length} context:${r.inspect(t)}`)}return e(t),t}catch(e){throw e&&(e[c]=t),e}finally{if(l){let e=a.triggerAsyncId(),n=a.executionAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-RUN END: (${this.name}) currentUid:${u} triggerId:${e} asyncHooksCurrentId:${n} len:${this._set.length} ${r.inspect(t)}`)}this.exit(t)}},p.prototype.runAndReturn=function(e){let t;return this.run((function(n){t=e(n)})),t},p.prototype.runPromise=function(e){let t=this.createContext();this.enter(t);let n=e(t);if(!n||!n.then||!n.catch)throw new Error("fn must return a promise.");return l&&h("CONTEXT-runPromise BEFORE: ("+this.name+") currentUid:"+u+" len:"+this._set.length+" "+r.inspect(t)),n.then((e=>(l&&h("CONTEXT-runPromise AFTER then: ("+this.name+") currentUid:"+u+" len:"+this._set.length+" "+r.inspect(t)),this.exit(t),e))).catch((e=>{throw e[c]=t,l&&h("CONTEXT-runPromise AFTER catch: ("+this.name+") currentUid:"+u+" len:"+this._set.length+" "+r.inspect(t)),this.exit(t),e}))},p.prototype.bind=function(e,t){t||(t=this.active?this.active:this.createContext());let n=this;return function(){n.enter(t);try{return e.apply(this,arguments)}catch(e){throw e&&(e[c]=t),e}finally{n.exit(t)}}},p.prototype.enter=function(e){if(i.ok(e,"context must be provided for entering"),l){let t=a.executionAsyncId(),n=a.triggerAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-ENTER: (${this.name}) currentUid:${u} triggerId:${n} asyncHooksCurrentId:${t} len:${this._set.length} ${r.inspect(e)}`)}this._set.push(this.active),this.active=e},p.prototype.exit=function(e){if(i.ok(e,"context must be provided for exiting"),l){let t=a.executionAsyncId(),n=a.triggerAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-EXIT: (${this.name}) currentUid:${u} triggerId:${n} asyncHooksCurrentId:${t} len:${this._set.length} ${r.inspect(e)}`)}if(this.active===e)return i.ok(this._set.length,"can't remove top context"),void(this.active=this._set.pop());let t=this._set.lastIndexOf(e);t<0?(l&&h("??ERROR?? context exiting but not entered - ignoring: "+r.inspect(e)),i.ok(t>=0,"context not currently entered; can't exit. \n"+r.inspect(this)+"\n"+r.inspect(e))):(i.ok(t,"can't remove top context"),this._set.splice(t,1))},p.prototype.bindEmitter=function(e){i.ok(e.on&&e.addListener&&e.emit,"can only bind real EEs");let t=this,n="context@"+this.name;o(e,(function(e){!e||(e[s]||(e[s]=Object.create(null)),e[s][n]={namespace:t,context:t.active})}),(function(e){if(!e||!e[s])return e;let t=e,n=e[s];return Object.keys(n).forEach((function(e){let r=n[e];t=r.namespace.bind(t,r.context)})),t}))},p.prototype.fromException=function(e){return e[c]},process.namespaces={}})),lr=_(((e,t)=>{"use strict";function n(){}t.exports=function(){let e=this._hooks,t=this._state,r=process.nextTick;process.nextTick=function(){if(!t.enabled)return r.apply(process,arguments);let i=new Array(arguments.length);for(let e=0;e<arguments.length;e++)i[e]=arguments[e];let o=i[0];if("function"!=typeof o)throw new TypeError("callback is not a function");let a=new n,s=--t.counter;return e.init.call(a,s,0,null,null),i[0]=function(){e.pre.call(a,s);let t=!0;try{o.apply(this,arguments),t=!1}finally{t&&process.listenerCount("uncaughtException")>0&&process.once("uncaughtException",(function(){e.post.call(a,s,!0),e.destroy.call(null,s)}))}e.post.call(a,s,!1),e.destroy.call(null,s)},r.apply(process,i)}}})),ur=_(((e,t)=>{"use strict";function n(){}t.exports=function(){let e=this._hooks,t=this._state,r=global.Promise,i=r.prototype.then;function o(t,n,r,i){return"function"!=typeof t?i?function(t){return function(n){return e.destroy.call(null,t),n}}(r):function(t){return function(n){throw e.destroy.call(null,t),n}}(r):function(){e.pre.call(n,r);try{return t.apply(this,arguments)}finally{e.post.call(n,r,!1),e.destroy.call(null,r)}}}r.prototype.then=function(r,a){if(!t.enabled)return i.call(this,r,a);let s=new n,c=--t.counter;return e.init.call(s,c,0,null,null),i.call(this,o(r,s,c,!0),o(a,s,c,!1))}}})),pr=_(((e,t)=>{"use strict";var r=n(9512);function i(){}function o(){}function a(){}var s=new Map,c=new Map,l=new Map,u=null,p=!1;function d(e,t,n,i,o,a,s){let c=r[n],l=r[i];r[n]=function(){if(!t.enabled)return c.apply(r,arguments);let n=new Array(arguments.length);for(let e=0;e<arguments.length;e++)n[e]=arguments[e];let i=n[0];if("function"!=typeof i)throw new TypeError('"callback" argument must be a function');let l,d=new o,f=--t.counter;return e.init.call(d,f,0,null,null),n[0]=function(){u=l,e.pre.call(d,f);let t=!0;try{i.apply(this,arguments),t=!1}finally{t&&process.listenerCount("uncaughtException")>0&&process.once("uncaughtException",(function(){e.post.call(d,f,!0),a.delete(l),e.destroy.call(null,f)}))}e.post.call(d,f,!1),u=null,(s||p)&&(p=!1,a.delete(l),e.destroy.call(null,f))},l=c.apply(r,n),a.set(l,f),l},r[i]=function(t){if(u===t&&null!==t)p=!0;else if(a.has(t)){let n=a.get(t);a.delete(t),e.destroy.call(null,n)}l.apply(r,arguments)}}t.exports=function(){d(this._hooks,this._state,"setTimeout","clearTimeout",i,s,!0),d(this._hooks,this._state,"setInterval","clearInterval",o,c,!1),d(this._hooks,this._state,"setImmediate","clearImmediate",a,l,!0),global.setTimeout=r.setTimeout,global.setInterval=r.setInterval,global.setImmediate=r.setImmediate,global.clearTimeout=r.clearTimeout,global.clearInterval=r.clearInterval,global.clearImmediate=r.clearImmediate}})),dr=_(((e,t)=>{t.exports={name:"async-hook-jl",description:"Inspect the life of handle objects in node",version:"1.7.6",author:"Andreas Madsen <amwebdk@gmail.com>",main:"./index.js",scripts:{test:"node ./test/runner.js && eslint ."},repository:{type:"git",url:"git://github.com/jeff-lewis/async-hook-jl.git"},keywords:["async","async hooks","inspect","async wrap"],license:"MIT",dependencies:{"stack-chain":"^1.3.7"},devDependencies:{async:"1.5.x","cli-color":"1.1.x",eslint:"^3.4.0",endpoint:"0.4.x"},engines:{node:"^4.7 || >=6.9 || >=7.3"}}})),fr=_(((e,t)=>{"use strict";var n=process.binding("async_wrap"),r=n.Providers.TIMERWRAP,i={nextTick:lr(),promise:ur(),timers:pr()},o=new Set;function a(){this.enabled=!1,this.counter=0}function s(){let e=this.initFns=[],t=this.preFns=[],n=this.postFns=[],i=this.destroyFns=[];this.init=function(t,n,i,a){if(n!==r)for(let r of e)r(t,this,n,i,a);else o.add(t)},this.pre=function(e){if(!o.has(e))for(let n of t)n(e,this)},this.post=function(e,t){if(!o.has(e))for(let r of n)r(e,this,t)},this.destroy=function(e){if(o.has(e))o.delete(e);else for(let t of i)t(e)}}function c(e,t){let n=e.indexOf(t);-1!==n&&e.splice(n,1)}function l(){this._state=new a,this._hooks=new s,this.version=dr().version,this.providers=n.Providers;for(let e of Object.keys(i))i[e].call(this);process.env.hasOwnProperty("NODE_ASYNC_HOOK_WARNING")&&console.warn("warning: you are using async-hook-jl which is unstable."),n.setupHooks({init:this._hooks.init,pre:this._hooks.pre,post:this._hooks.post,destroy:this._hooks.destroy})}s.prototype.add=function(e){e.init&&this.initFns.push(e.init),e.pre&&this.preFns.push(e.pre),e.post&&this.postFns.push(e.post),e.destroy&&this.destroyFns.push(e.destroy)},s.prototype.remove=function(e){e.init&&c(this.initFns,e.init),e.pre&&c(this.preFns,e.pre),e.post&&c(this.postFns,e.post),e.destroy&&c(this.destroyFns,e.destroy)},t.exports=l,l.prototype.addHooks=function(e){this._hooks.add(e)},l.prototype.removeHooks=function(e){this._hooks.remove(e)},l.prototype.enable=function(){this._state.enabled=!0,n.enable()},l.prototype.disable=function(){this._state.enabled=!1,n.disable()}})),hr=_(((e,t)=>{t.exports={name:"stack-chain",description:"API for combining call site modifiers",version:"1.3.7",author:"Andreas Madsen <amwebdk@gmail.com>",scripts:{test:"tap ./test/simple"},repository:{type:"git",url:"git://github.com/AndreasMadsen/stack-chain.git"},keywords:["stack","chain","trace","call site","concat","format"],devDependencies:{tap:"2.x.x","uglify-js":"2.5.x"},license:"MIT"}})),mr=_(((e,t)=>{t.exports=function(e,t){var n=[];n.push(function(e){try{return Error.prototype.toString.call(e)}catch(e){try{return"<error: "+e+">"}catch{return"<error>"}}}(e));for(var r=0;r<t.length;r++){var i,o=t[r];try{i=o.toString()}catch(e){try{i="<error: "+e+">"}catch{i="<error>"}}n.push("    at "+i)}return n.join("\n")}})),vr=_(((e,t)=>{var n=mr();function r(){this.extend=new a,this.filter=new a,this.format=new s,this.version=hr().version}var i=!1;r.prototype.callSite=function e(t){t||(t={}),i=!0;var n={};Error.captureStackTrace(n,e);var r=n.stack;return i=!1,r=r.slice(t.slice||0),t.extend&&(r=this.extend._modify(n,r)),t.filter&&(r=this.filter._modify(n,r)),r};var o=new r;function a(){this._modifiers=[]}function s(){this._formater=n,this._previous=void 0}a.prototype._modify=function(e,t){for(var n=0,r=this._modifiers.length;n<r;n++)t=this._modifiers[n](e,t);return t},a.prototype.attach=function(e){this._modifiers.push(e)},a.prototype.deattach=function(e){var t=this._modifiers.indexOf(e);return-1!==t&&(this._modifiers.splice(t,1),!0)},s.prototype.replace=function(e){e?this._formater=e:this.restore()},s.prototype.restore=function(){this._formater=n,this._previous=void 0},s.prototype._backup=function(){this._previous=this._formater},s.prototype._roolback=function(){this._previous===n?this.replace(void 0):this.replace(this._previous),this._previous=void 0},Error.prepareStackTrace&&o.format.replace(Error.prepareStackTrace);var c=!1;function l(e,t){if(i)return t;if(c)return n(e,t);var r=t.concat();r=o.extend._modify(e,r),r=(r=o.filter._modify(e,r)).slice(0,Error.stackTraceLimit),Object.isExtensible(e)&&void 0===Object.getOwnPropertyDescriptor(e,"callSite")&&(e.callSite={original:t,mutated:r}),c=!0;var a=o.format._formater(e,r);return c=!1,a}Object.defineProperty(Error,"prepareStackTrace",{get:function(){return l},set:function(e){e===l?o.format._roolback():(o.format._backup(),o.format.replace(e))}}),Object.defineProperty(Error.prototype,"callSite",{get:function(){return this.stack,this.callSite},set:function(e){Object.defineProperty(this,"callSite",{value:e,writable:!0,configurable:!0})},configurable:!0}),t.exports=o})),gr=_(((e,t)=>{if(global._stackChain){if(global._stackChain.version!==hr().version)throw new Error("Conflicting version of stack-chain found");t.exports=global._stackChain}else t.exports=global._stackChain=vr()})),br=_(((e,t)=>{"use strict";var n=fr();if(global._asyncHook){if(global._asyncHook.version!==dr().version)throw new Error("Conflicting version of async-hook-jl found");t.exports=global._asyncHook}else gr().filter.attach((function(e,t){return t.filter((function(e){let t=e.getFileName();return!(t&&t.slice(0,__dirname.length)===__dirname)}))})),t.exports=global._asyncHook=new n})),yr=_(((e,t)=>{"use strict";var r=n(3837),i=n(9491),o=sr(),a=br(),s="cls@contexts",c="error@context",l=[];for(let e in a.providers)l[a.providers[e]]=e;var u,p,d=process.env.DEBUG_CLS_HOOKED,f=-1;function h(e){this.name=e,this.active=null,this._set=[],this.id=null,this._contexts=new Map}function m(e){return process.namespaces[e]}function v(e){let t=m(e);i.ok(t,"can't delete nonexistent namespace! \""+e+'"'),i.ok(t.id,"don't assign to process.namespaces directly! "+r.inspect(t)),process.namespaces[e]=null}function g(e){process.env.DEBUG&&process._rawDebug(e)}function b(e){return e?"function"==typeof e?e.name?e.name:(e.toString().trim().match(/^function\s*([^\s(]+)/)||[])[1]:e.constructor&&e.constructor.name?e.constructor.name:void 0:e}if(t.exports={getNamespace:m,createNamespace:function(e){i.ok(e,"namespace must be given a name."),d&&g("CREATING NAMESPACE "+e);let t=new h(e);return t.id=f,a.addHooks({init(n,i,o,a,s){f=n,a?(t._contexts.set(n,t._contexts.get(a)),d&&g("PARENTID: "+e+" uid:"+n+" parent:"+a+" provider:"+o)):t._contexts.set(f,t.active),d&&g("INIT "+e+" uid:"+n+" parent:"+a+" provider:"+l[o]+" active:"+r.inspect(t.active,!0))},pre(n,i){f=n;let o=t._contexts.get(n);o?(d&&g(" PRE "+e+" uid:"+n+" handle:"+b(i)+" context:"+r.inspect(o)),t.enter(o)):d&&g(" PRE MISSING CONTEXT "+e+" uid:"+n+" handle:"+b(i))},post(n,i){f=n;let o=t._contexts.get(n);o?(d&&g(" POST "+e+" uid:"+n+" handle:"+b(i)+" context:"+r.inspect(o)),t.exit(o)):d&&g(" POST MISSING CONTEXT "+e+" uid:"+n+" handle:"+b(i))},destroy(n){f=n,d&&g("DESTROY "+e+" uid:"+n+" context:"+r.inspect(t._contexts.get(f))+" active:"+r.inspect(t.active,!0)),t._contexts.delete(n)}}),process.namespaces[e]=t,t},destroyNamespace:v,reset:function(){process.namespaces&&Object.keys(process.namespaces).forEach((function(e){v(e)})),process.namespaces=Object.create(null)},ERROR_SYMBOL:c},h.prototype.set=function(e,t){if(!this.active)throw new Error("No context available. ns.run() or ns.bind() must be called first.");return d&&g("    SETTING KEY:"+e+"="+t+" in ns:"+this.name+" uid:"+f+" active:"+r.inspect(this.active,!0)),this.active[e]=t,t},h.prototype.get=function(e){if(this.active)return d&&g("    GETTING KEY:"+e+"="+this.active[e]+" "+this.name+" uid:"+f+" active:"+r.inspect(this.active,!0)),this.active[e];d&&g("    GETTING KEY:"+e+"=undefined "+this.name+" uid:"+f+" active:"+r.inspect(this.active,!0))},h.prototype.createContext=function(){d&&g("   CREATING Context: "+this.name+" uid:"+f+" len:"+this._set.length+"  active:"+r.inspect(this.active,!0,2,!0));let e=Object.create(this.active?this.active:Object.prototype);return e._ns_name=this.name,e.id=f,d&&g("   CREATED Context: "+this.name+" uid:"+f+" len:"+this._set.length+"  context:"+r.inspect(e,!0,2,!0)),e},h.prototype.run=function(e){let t=this.createContext();this.enter(t);try{return d&&g(" BEFORE RUN: "+this.name+" uid:"+f+" len:"+this._set.length+" "+r.inspect(t)),e(t),t}catch(e){throw e&&(e[c]=t),e}finally{d&&g(" AFTER RUN: "+this.name+" uid:"+f+" len:"+this._set.length+" "+r.inspect(t)),this.exit(t)}},h.prototype.runAndReturn=function(e){var t;return this.run((function(n){t=e(n)})),t},h.prototype.runPromise=function(e){let t=this.createContext();this.enter(t);let n=e(t);if(!n||!n.then||!n.catch)throw new Error("fn must return a promise.");return d&&g(" BEFORE runPromise: "+this.name+" uid:"+f+" len:"+this._set.length+" "+r.inspect(t)),n.then((e=>(d&&g(" AFTER runPromise: "+this.name+" uid:"+f+" len:"+this._set.length+" "+r.inspect(t)),this.exit(t),e))).catch((e=>{throw e[c]=t,d&&g(" AFTER runPromise: "+this.name+" uid:"+f+" len:"+this._set.length+" "+r.inspect(t)),this.exit(t),e}))},h.prototype.bind=function(e,t){t||(t=this.active?this.active:this.createContext());let n=this;return function(){n.enter(t);try{return e.apply(this,arguments)}catch(e){throw e&&(e[c]=t),e}finally{n.exit(t)}}},h.prototype.enter=function(e){i.ok(e,"context must be provided for entering"),d&&g("  ENTER "+this.name+" uid:"+f+" len:"+this._set.length+" context: "+r.inspect(e)),this._set.push(this.active),this.active=e},h.prototype.exit=function(e){if(i.ok(e,"context must be provided for exiting"),d&&g("  EXIT "+this.name+" uid:"+f+" len:"+this._set.length+" context: "+r.inspect(e)),this.active===e)return i.ok(this._set.length,"can't remove top context"),void(this.active=this._set.pop());let t=this._set.lastIndexOf(e);t<0?(d&&g("??ERROR?? context exiting but not entered - ignoring: "+r.inspect(e)),i.ok(t>=0,"context not currently entered; can't exit. \n"+r.inspect(this)+"\n"+r.inspect(e))):(i.ok(t,"can't remove top context"),this._set.splice(t,1))},h.prototype.bindEmitter=function(e){i.ok(e.on&&e.addListener&&e.emit,"can only bind real EEs");let t=this,n="context@"+this.name;o(e,(function(e){!e||(e[s]||(e[s]=Object.create(null)),e[s][n]={namespace:t,context:t.active})}),(function(e){if(!e||!e[s])return e;let t=e,n=e[s];return Object.keys(n).forEach((function(e){let r=n[e];t=r.namespace.bind(t,r.context)})),t}))},h.prototype.fromException=function(e){return e[c]},process.namespaces={},a._state&&!a._state.enabled&&a.enable(),d)for(p in(u=gr()).filter._modifiers)u.filter.deattach(p)})),_r=_(((e,t)=>{"use strict";var n=or();process&&n.gte(process.versions.node,"8.0.0")?t.exports=cr():t.exports=yr()})),xr=_(((e,t)=>{var n;e=t.exports=W,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var r=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,o=e.re=[],a=e.src=[],s=0,c=s++;a[c]="0|[1-9]\\d*";var l=s++;a[l]="[0-9]+";var u=s++;a[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=s++;a[p]="("+a[c]+")\\.("+a[c]+")\\.("+a[c]+")";var d=s++;a[d]="("+a[l]+")\\.("+a[l]+")\\.("+a[l]+")";var f=s++;a[f]="(?:"+a[c]+"|"+a[u]+")";var h=s++;a[h]="(?:"+a[l]+"|"+a[u]+")";var m=s++;a[m]="(?:-("+a[f]+"(?:\\."+a[f]+")*))";var v=s++;a[v]="(?:-?("+a[h]+"(?:\\."+a[h]+")*))";var g=s++;a[g]="[0-9A-Za-z-]+";var b=s++;a[b]="(?:\\+("+a[g]+"(?:\\."+a[g]+")*))";var y=s++,_="v?"+a[p]+a[m]+"?"+a[b]+"?";a[y]="^"+_+"$";var x="[v=\\s]*"+a[d]+a[v]+"?"+a[b]+"?",w=s++;a[w]="^"+x+"$";var E=s++;a[E]="((?:<|>)?=?)";var A=s++;a[A]=a[l]+"|x|X|\\*";var S=s++;a[S]=a[c]+"|x|X|\\*";var T=s++;a[T]="[v=\\s]*("+a[S]+")(?:\\.("+a[S]+")(?:\\.("+a[S]+")(?:"+a[m]+")?"+a[b]+"?)?)?";var C=s++;a[C]="[v=\\s]*("+a[A]+")(?:\\.("+a[A]+")(?:\\.("+a[A]+")(?:"+a[v]+")?"+a[b]+"?)?)?";var I=s++;a[I]="^"+a[E]+"\\s*"+a[T]+"$";var P=s++;a[P]="^"+a[E]+"\\s*"+a[C]+"$";var O=s++;a[O]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var N=s++;a[N]="(?:~>?)";var R=s++;a[R]="(\\s*)"+a[N]+"\\s+",o[R]=new RegExp(a[R],"g");var D=s++;a[D]="^"+a[N]+a[T]+"$";var k=s++;a[k]="^"+a[N]+a[C]+"$";var L=s++;a[L]="(?:\\^)";var j=s++;a[j]="(\\s*)"+a[L]+"\\s+",o[j]=new RegExp(a[j],"g");var M=s++;a[M]="^"+a[L]+a[T]+"$";var z=s++;a[z]="^"+a[L]+a[C]+"$";var V=s++;a[V]="^"+a[E]+"\\s*("+x+")$|^$";var B=s++;a[B]="^"+a[E]+"\\s*("+_+")$|^$";var F=s++;a[F]="(\\s*)"+a[E]+"\\s*("+x+"|"+a[T]+")",o[F]=new RegExp(a[F],"g");var U=s++;a[U]="^\\s*("+a[T]+")\\s+-\\s+("+a[T]+")\\s*$";var q=s++;a[q]="^\\s*("+a[C]+")\\s+-\\s+("+a[C]+")\\s*$";var H,G=s++;for(a[G]="(<|>)?=?\\s*\\*",H=0;H<35;H++)n(H,a[H]),o[H]||(o[H]=new RegExp(a[H]));function $(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e||e.length>r)return null;if(!(t.loose?o[w]:o[y]).test(e))return null;try{return new W(e,t)}catch{return null}}function W(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?o[w]:o[y]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}e.parse=$,e.valid=function(e,t){var n=$(e,t);return n?n.version:null},e.clean=function(e,t){var n=$(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},e.SemVer=W,W.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},W.prototype.toString=function(){return this.version},W.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof W||(e=new W(e,this.options)),this.compareMain(e)||this.comparePre(e)},W.prototype.compareMain=function(e){return e instanceof W||(e=new W(e,this.options)),K(this.major,e.major)||K(this.minor,e.minor)||K(this.patch,e.patch)},W.prototype.comparePre=function(e){if(e instanceof W||(e=new W(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return K(r,i)}while(++t)},W.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},e.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch{return null}},e.diff=function(e,t){if(Z(e,t))return null;var n=$(e),r=$(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return i+a;return o},e.compareIdentifiers=K;var Q=/^[0-9]+$/;function K(e,t){var n=Q.test(e),r=Q.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function X(e,t,n){return new W(e,n).compare(new W(t,n))}function Y(e,t,n){return X(e,t,n)>0}function J(e,t,n){return X(e,t,n)<0}function Z(e,t,n){return 0===X(e,t,n)}function ee(e,t,n){return 0!==X(e,t,n)}function te(e,t,n){return X(e,t,n)>=0}function ne(e,t,n){return X(e,t,n)<=0}function re(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Z(e,n,r);case"!=":return ee(e,n,r);case">":return Y(e,n,r);case">=":return te(e,n,r);case"<":return J(e,n,r);case"<=":return ne(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function ie(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ie){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof ie))return new ie(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===oe?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}e.rcompareIdentifiers=function(e,t){return K(t,e)},e.major=function(e,t){return new W(e,t).major},e.minor=function(e,t){return new W(e,t).minor},e.patch=function(e,t){return new W(e,t).patch},e.compare=X,e.compareLoose=function(e,t){return X(e,t,!0)},e.rcompare=function(e,t,n){return X(t,e,n)},e.sort=function(t,n){return t.sort((function(t,r){return e.compare(t,r,n)}))},e.rsort=function(t,n){return t.sort((function(t,r){return e.rcompare(t,r,n)}))},e.gt=Y,e.lt=J,e.eq=Z,e.neq=ee,e.gte=te,e.lte=ne,e.cmp=re,e.Comparator=ie;var oe={};function ae(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ae)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ae(e.raw,t);if(e instanceof ie)return new ae(e.value,t);if(!(this instanceof ae))return new ae(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ce(e,t,n,r,i,o,a,s,c,l,u,p,d){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(s=se(c)?"":se(l)?"<"+(+c+1)+".0.0":se(u)?"<"+c+"."+(+l+1)+".0":p?"<="+c+"."+l+"."+u+"-"+p:"<="+s)).trim()}function le(e,t,r){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(i=0;i<e.length;i++)if(n(e[i].semver),e[i].semver!==oe&&e[i].semver.prerelease.length>0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new ae(t,n)}catch{return!1}return t.test(e)}function pe(e,t,n,r){var i,o,a,s,c;switch(e=new W(e,r),t=new ae(t,r),n){case">":i=Y,o=ne,a=J,s=">",c=">=";break;case"<":i=J,o=te,a=Y,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,r))return!1;for(var l=0;l<t.set.length;++l){var u=t.set[l],p=null,d=null;if(u.forEach((function(e){e.semver===oe&&(e=new ie(">=0.0.0")),p=p||e,d=d||e,i(e.semver,p.semver,r)?p=e:a(e.semver,d.semver,r)&&(d=e)})),p.operator===s||p.operator===c||(!d.operator||d.operator===s)&&o(e,d.semver))return!1;if(d.operator===c&&a(e,d.semver))return!1}return!0}ie.prototype.parse=function(e){var t=this.options.loose?o[V]:o[B],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=oe},ie.prototype.toString=function(){return this.value},ie.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===oe||("string"==typeof e&&(e=new W(e,this.options)),re(e,this.operator,this.semver,this.options))},ie.prototype.intersects=function(e,t){if(!(e instanceof ie))throw new TypeError("a Comparator is required");var n;if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new ae(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new ae(this.value,t),ue(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=re(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=re(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&a||s||c},e.Range=ae,ae.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},ae.prototype.toString=function(){return this.range},ae.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[q]:o[U];e=e.replace(r,ce),n("hyphen replace",e),e=e.replace(o[F],"$1$2$3"),n("comparator trim",e,o[F]),e=(e=(e=e.replace(o[R],"$1~")).replace(o[j],"$1^")).split(/\s+/).join(" ");var i=t?o[V]:o[B],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[z]:o[M];return e.replace(r,(function(t,r,i,o,a){var s;return n("caret",e,t,r,i,o,a),se(r)?s="":se(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?s="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[k]:o[D];return e.replace(r,(function(t,r,i,o,a){var s;return n("tilde",e,t,r,i,o,a),se(r)?s="":se(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?s=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0"):s=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[P]:o[I];return e.replace(r,(function(t,r,i,o,a,s){n("xRange",e,t,r,i,o,a,s);var c=se(i),l=c||se(o),u=l||se(a);return"="===r&&u&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&u?(l&&(o=0),a=0,">"===r?(r=">=",l?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",l?i=+i+1:o=+o+1),t=r+i+"."+o+"."+a):l?t=">="+i+".0.0 <"+(+i+1)+".0.0":u&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(i)}))),a.map((function(e){return new ie(e,this.options)}),this)},ae.prototype.intersects=function(e,t){if(!(e instanceof ae))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},e.toComparators=function(e,t){return new ae(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},ae.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t<this.set.length;t++)if(le(this.set[t],e,this.options))return!0;return!1},e.satisfies=ue,e.maxSatisfying=function(e,t,n){var r=null,i=null;try{var o=new ae(t,n)}catch{return null}return e.forEach((function(e){o.test(e)&&(!r||-1===i.compare(e))&&(i=new W(r=e,n))})),r},e.minSatisfying=function(e,t,n){var r=null,i=null;try{var o=new ae(t,n)}catch{return null}return e.forEach((function(e){o.test(e)&&(!r||1===i.compare(e))&&(i=new W(r=e,n))})),r},e.minVersion=function(e,t){e=new ae(e,t);var n=new W("0.0.0");if(e.test(n)||(n=new W("0.0.0-0"),e.test(n)))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new W(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!n||Y(n,t))&&(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},e.validRange=function(e,t){try{return new ae(e,t).range||"*"}catch{return null}},e.ltr=function(e,t,n){return pe(e,t,"<",n)},e.gtr=function(e,t,n){return pe(e,t,">",n)},e.outside=pe,e.prerelease=function(e,t){var n=$(e,t);return n&&n.prerelease.length?n.prerelease:null},e.intersects=function(e,t,n){return e=new ae(e,n),t=new ae(t,n),e.intersects(t)},e.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(o[O]);return null==t?null:$(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}})),wr=_(((e,t)=>{var n,r,i,o,a,s=ar().wrap,c=1,l=2,u=4,p=8,d=[],f=0,h=!1,m=[];function v(e,t){var n=e.length,r=t.length,i=[];if(0===n&&0===r)return i;for(var o=0;o<n;o++)i[o]=e[o];if(0===r)return i;for(var a=0;a<r;a++){var s=!0;for(o=0;o<n;o++)if(e[o].uid===t[a].uid){s=!1;break}s&&i.push(t[a])}return i}function g(e,t){"function"==typeof e.create&&(this.create=e.create,this.flags|=c),"function"==typeof e.before&&(this.before=e.before,this.flags|=l),"function"==typeof e.after&&(this.after=e.after,this.flags|=u),"function"==typeof e.error&&(this.error=e.error,this.flags|=p),this.uid=++f,this.data=void 0===t?null:t}function b(e,t){if("object"!=typeof e||!e)throw new TypeError("callbacks argument must be an object");return e instanceof g?e:new g(e,t)}process._fatalException?(i=!1,n=function(e){var t=d.length;if(i||0===t)return!1;var n=!1;i=!0;for(var r=0;r<t;++r){var a=d[r];if(0!=(a.flags&p)){var s=o&&o[a.uid];n=a.error(s,e)||n}}return i=!1,m.length>0&&(d=m.pop()),o=void 0,n&&!h},r=function(e,t,n){var r=[];h=!0;for(var i=0;i<n;++i){var a=t[i];if(r[a.uid]=a.data,0!=(a.flags&c)){var s=a.create(a.data);void 0!==s&&(r[a.uid]=s)}}return h=!1,function(){o=r,m.push(d),d=v(t,d),h=!0;for(var i=0;i<n;++i)(t[i].flags&l)>0&&t[i].before(this,r[t[i].uid]);h=!1;var a=e.apply(this,arguments);for(h=!0,i=0;i<n;++i)(t[i].flags&u)>0&&t[i].after(this,r[t[i].uid]);return h=!1,d=m.pop(),o=void 0,a}},s(process,"_fatalException",(function(e){return function(t){return n(t)||e(t)}}))):(a=!1,n=function(e){if(a)throw e;for(var t=!1,n=d.length,r=0;r<n;++r){var i=d[r];0!=(i.flags&p)&&(t=i.error(null,e)||t)}if(!t&&h)throw e},r=function(e,t,r){var i=[];h=!0;for(var o=0;o<r;++o){var s=t[o];if(i[s.uid]=s.data,0!=(s.flags&c)){var f=s.create(s.data);void 0!==f&&(i[s.uid]=f)}}return h=!1,function(){var o,s=!1,c=!1;m.push(d),d=v(t,d),h=!0;for(var f=0;f<r;++f)(t[f].flags&l)>0&&t[f].before(this,i[t[f].uid]);h=!1;try{o=e.apply(this,arguments)}catch(e){for(s=!0,f=0;f<r;++f)if(0!=(d[f].flags&p))try{c=d[f].error(i[t[f].uid],e)||c}catch(e){throw a=!0,e}if(!c)throw process.removeListener("uncaughtException",n),process._originalNextTick((function(){process.addListener("uncaughtException",n)})),e}finally{if(!s||c){for(h=!0,f=0;f<r;++f)(t[f].flags&u)>0&&t[f].after(this,i[t[f].uid]);h=!1}d=m.pop()}return o}},process.addListener("uncaughtException",n)),g.prototype.create=void 0,g.prototype.before=void 0,g.prototype.after=void 0,g.prototype.error=void 0,g.prototype.data=void 0,g.prototype.uid=0,g.prototype.flags=0,process.createAsyncListener=b,process.addAsyncListener=function(e,t){var n;n=e instanceof g?e:b(e,t);for(var r=!1,i=0;i<d.length;i++)if(n===d[i]){r=!0;break}return r||d.push(n),n},process.removeAsyncListener=function(e){for(var t=0;t<d.length;t++)if(e===d[t]){d.splice(t,1);break}},t.exports=function(e){var t=d.length;if(0===t)return e;for(var n=d.slice(),i=0;i<t;++i)if(n[i].flags>0)return r(e,n,t);return function(e,t,n){h=!0;for(var r=0;r<n;++r){var i=t[r];i.create&&i.create(i.data)}return h=!1,function(){m.push(d),d=v(t,d);var n=e.apply(this,arguments);return d=m.pop(),n}}(e,n,t)}})),Er=_(((e,t)=>{"use strict";t.exports=(e,t)=>class extends e{constructor(e){var n,r;super((function(e,o){n=this,r=[function(n){return t(i,!1),e(n)},function(e){return t(i,!1),o(e)}]}));var i=this;try{e.apply(n,r)}catch(e){r[1](e)}return i}}})),Ar=_((()=>{"use strict";if(process.addAsyncListener)throw new Error("Don't require polyfill unless needed");var e=ar(),t=xr(),r=e.wrap,i=e.massWrap,o=wr(),a=n(3837),s=t.gte(process.version,"6.0.0"),c=t.gte(process.version,"7.0.0"),l=t.gte(process.version,"8.0.0"),u=t.gte(process.version,"11.0.0"),p=n(1808);function d(e){return function(){this.on("connection",(function(e){e._handle&&(e._handle.onread=o(e._handle.onread))}));try{return e.apply(this,arguments)}finally{this._handle&&this._handle.onconnection&&(this._handle.onconnection=o(this._handle.onconnection))}}}function f(e){if(e&&e._handle){var t=e._handle;t._originalOnread||(t._originalOnread=t.onread),t.onread=o(t._originalOnread)}}c&&!p._normalizeArgs?p._normalizeArgs=function(e){if(0===e.length)return[{},null];var t=e[0],n={};"object"==typeof t&&null!==t?n=t:function(e){return"string"==typeof e&&!1===function(e){return(e=Number(e))>=0&&e}(e)}(t)?n.path=t:(n.port=t,e.length>1&&"string"==typeof e[1]&&(n.host=e[1]));var r=e[e.length-1];return"function"!=typeof r?[n,null]:[n,r]}:!c&&!p._normalizeConnectArgs&&(p._normalizeConnectArgs=function(e){var t={};"object"==typeof e[0]&&null!==e[0]?t=e[0]:"string"==typeof e[0]&&!1===function(e){return(e=Number(e))>=0&&e}(e[0])?t.path=e[0]:(t.port=e[0],"string"==typeof e[1]&&(t.host=e[1]));var n=e[e.length-1];return"function"==typeof n?[t,n]:[t]}),"_setUpListenHandle"in p.Server.prototype?r(p.Server.prototype,"_setUpListenHandle",d):r(p.Server.prototype,"_listen2",d),r(p.Socket.prototype,"connect",(function(e){return function(){var t;(t=l&&Array.isArray(arguments[0])&&Object.getOwnPropertySymbols(arguments[0]).length>0?arguments[0]:c?p._normalizeArgs(arguments):p._normalizeConnectArgs(arguments))[1]&&(t[1]=o(t[1]));var n=e.apply(this,t);return f(this),n}}));var h=n(3685);r(h.Agent.prototype,"addRequest",(function(e){return function(t){var n=t.onSocket;return t.onSocket=o((function(e){return f(e),n.apply(this,arguments)})),e.apply(this,arguments)}}));var m=n(2081);function v(e){Array.isArray(e.stdio)&&e.stdio.forEach((function(e){e&&e._handle&&(e._handle.onread=o(e._handle.onread),r(e._handle,"close",O))})),e._handle&&(e._handle.onexit=o(e._handle.onexit))}m.ChildProcess?r(m.ChildProcess.prototype,"spawn",(function(e){return function(){var t=e.apply(this,arguments);return v(this),t}})):i(m,["execFile","fork","spawn"],(function(e){return function(){var t=e.apply(this,arguments);return v(t),t}})),process._fatalException||(process._originalNextTick=process.nextTick);var g=[];process._nextDomainTick&&g.push("_nextDomainTick"),process._tickDomainCallback&&g.push("_tickDomainCallback"),i(process,g,P),r(process,"nextTick",O);var b=["setTimeout","setInterval"];global.setImmediate&&b.push("setImmediate");var y=n(9512),_=global.setTimeout===y.setTimeout;i(y,b,O),_&&i(global,b,O);var x=n(9523);i(x,["lookup","resolve","resolve4","resolve6","resolveCname","resolveMx","resolveNs","resolveTxt","resolveSrv","reverse"],P),x.resolveNaptr&&r(x,"resolveNaptr",P);var w,E,A,S=n(7147);i(S,["watch","rename","truncate","chown","fchown","chmod","fchmod","stat","lstat","fstat","link","symlink","readlink","realpath","unlink","rmdir","mkdir","readdir","close","open","utimes","futimes","fsync","write","read","readFile","writeFile","appendFile","watchFile","unwatchFile","exists"],P),S.lchown&&r(S,"lchown",P),S.lchmod&&r(S,"lchmod",P),S.ftruncate&&r(S,"ftruncate",P);try{w=n(9796)}catch{}w&&w.Deflate&&w.Deflate.prototype&&((E=Object.getPrototypeOf(w.Deflate.prototype))._transform?r(E,"_transform",P):E.write&&E.flush&&E.end&&i(E,["write","flush","end"],P));try{A=n(6113)}catch{}A&&(T=["pbkdf2","randomBytes"],u||T.push("pseudoRandomBytes"),i(A,T,P));var T,C,I=!!global.Promise&&"function Promise() { [native code] }"===Promise.toString()&&"function toString() { [native code] }"===Promise.toString.toString();function P(e){var t=function(){var t,n=arguments.length-1;if("function"==typeof arguments[n]){t=Array(arguments.length);for(var r=0;r<arguments.length-1;r++)t[r]=arguments[r];t[n]=o(arguments[n])}return e.apply(this,t||arguments)};switch(e.length){case 1:return function(n){return 1!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n))};case 2:return function(n,r){return 2!==arguments.length?t.apply(this,arguments):("function"==typeof r&&(r=o(r)),e.call(this,n,r))};case 3:return function(n,r,i){return 3!==arguments.length?t.apply(this,arguments):("function"==typeof i&&(i=o(i)),e.call(this,n,r,i))};case 4:return function(n,r,i,a){return 4!==arguments.length?t.apply(this,arguments):("function"==typeof a&&(a=o(a)),e.call(this,n,r,i,a))};case 5:return function(n,r,i,a,s){return 5!==arguments.length?t.apply(this,arguments):("function"==typeof s&&(s=o(s)),e.call(this,n,r,i,a,s))};case 6:return function(n,r,i,a,s,c){return 6!==arguments.length?t.apply(this,arguments):("function"==typeof c&&(c=o(c)),e.call(this,n,r,i,a,s,c))};default:return t}}function O(e){var t=function(){var t;if("function"==typeof arguments[0]){(t=Array(arguments.length))[0]=o(arguments[0]);for(var n=1;n<arguments.length;n++)t[n]=arguments[n]}return e.apply(this,t||arguments)};switch(e.length){case 1:return function(n){return 1!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n))};case 2:return function(n,r){return 2!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n,r))};case 3:return function(n,r,i){return 3!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n,r,i))};case 4:return function(n,r,i,a){return 4!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n,r,i,a))};case 5:return function(n,r,i,a,s){return 5!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n,r,i,a,s))};case 6:return function(n,r,i,a,s,c){return 6!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n,r,i,a,s,c))};default:return t}}I&&(C=process.addAsyncListener({create:function(){I=!1}}),global.Promise.resolve(!0).then((function(){I=!1})),process.removeAsyncListener(C)),I&&function(){var e=global.Promise;function t(r){if(!(this instanceof t))return e(r);if("function"!=typeof r)return new e(r);var i,o,a=new e((function(e,t){i=this,o=[function(t){return n(a,!1),e(t)},function(e){return n(a,!1),t(e)}]}));a.__proto__=t.prototype;try{r.apply(i,o)}catch(e){o[1](e)}return a}function n(e,t){(!e.__asl_wrapper||t)&&(e.__asl_wrapper=o(i))}function i(t,r,o,a){var s;try{return{returnVal:s=r.call(t,o),error:!1}}catch(e){return{errorVal:e,error:!0}}finally{s instanceof e?a.__asl_wrapper=function(){return(s.__asl_wrapper||i).apply(this,arguments)}:n(a,!0)}}function c(e){return function(){var t=this,n=e.apply(t,Array.prototype.map.call(arguments,(function(e){return"function"!=typeof e?e:o((function(r){var o=(t.__asl_wrapper||i)(this,e,r,n);if(o.error)throw o.errorVal;return o.returnVal}))})));return n.__asl_wrapper=function(e,r,o,a){return t.__asl_wrapper?(t.__asl_wrapper(e,(function(){}),null,n),n.__asl_wrapper(e,r,o,a)):i(e,r,o,a)},n}}a.inherits(t,e),r(e.prototype,"then",c),e.prototype.chain&&r(e.prototype,"chain",c),s?global.Promise=Er()(e,n):(["all","race","reject","resolve","accept","defer"].forEach((function(n){"function"==typeof e[n]&&(t[n]=e[n])})),global.Promise=t)}()})),Sr=_(((e,t)=>{"use strict";var r=n(9491),i=sr(),o="cls@contexts",a="error@context";function s(e){this.name=e,this.active=null,this._set=[],this.id=null}function c(e){return process.namespaces[e]}function l(e){var t=c(e);r.ok(t,"can't delete nonexistent namespace!"),r.ok(t.id,"don't assign to process.namespaces directly!"),process.removeAsyncListener(t.id),process.namespaces[e]=null}function u(){process.namespaces&&Object.keys(process.namespaces).forEach((function(e){l(e)})),process.namespaces=Object.create(null)}process.addAsyncListener||Ar(),s.prototype.set=function(e,t){if(!this.active)throw new Error("No context available. ns.run() or ns.bind() must be called first.");return this.active[e]=t,t},s.prototype.get=function(e){if(this.active)return this.active[e]},s.prototype.createContext=function(){return Object.create(this.active)},s.prototype.run=function(e){var t=this.createContext();this.enter(t);try{return e(t),t}catch(e){throw e&&(e[a]=t),e}finally{this.exit(t)}},s.prototype.runAndReturn=function(e){var t;return this.run((function(n){t=e(n)})),t},s.prototype.bind=function(e,t){t||(t=this.active?this.active:this.createContext());var n=this;return function(){n.enter(t);try{return e.apply(this,arguments)}catch(e){throw e&&(e[a]=t),e}finally{n.exit(t)}}},s.prototype.enter=function(e){r.ok(e,"context must be provided for entering"),this._set.push(this.active),this.active=e},s.prototype.exit=function(e){if(r.ok(e,"context must be provided for exiting"),this.active===e)return r.ok(this._set.length,"can't remove top context"),void(this.active=this._set.pop());var t=this._set.lastIndexOf(e);r.ok(t>=0,"context not currently entered; can't exit"),r.ok(t,"can't remove top context"),this._set.splice(t,1)},s.prototype.bindEmitter=function(e){r.ok(e.on&&e.addListener&&e.emit,"can only bind real EEs");var t=this,n="context@"+this.name;i(e,(function(e){!e||(e[o]||(e[o]=Object.create(null)),e[o][n]={namespace:t,context:t.active})}),(function(e){if(!e||!e[o])return e;var t=e,n=e[o];return Object.keys(n).forEach((function(e){var r=n[e];t=r.namespace.bind(t,r.context)})),t}))},s.prototype.fromException=function(e){return e[a]},process.namespaces||u(),t.exports={getNamespace:c,createNamespace:function(e){r.ok(e,"namespace must be given a name!");var t=new s(e);return t.id=process.addAsyncListener({create:function(){return t.active},before:function(e,n){n&&t.enter(n)},after:function(e,n){n&&t.exit(n)},error:function(e){e&&t.exit(e)}}),process.namespaces[e]=t,t},destroyNamespace:l,reset:u}})),Tr=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CorrelationContextManager=void 0;var t=P(),n=sn(),r=pn(),i=dn(),o=ir(),a=function(){function e(){}return e.getCurrentContext=function(){if(!e.enabled)return null;var t=e.session.get(e.CONTEXT_NAME);return void 0===t?null:t},e.generateContextObject=function(e,t,n,r,i,o){return t=t||e,this.enabled?{operation:{name:n,id:e,parentId:t,traceparent:i,tracestate:o},customProperties:new s(r)}:null},e.spanToContextObject=function(t,n,i){var o=new r;return o.traceId=t.traceId,o.spanId=t.spanId,o.traceFlag=r.formatOpenTelemetryTraceFlags(t.traceFlags)||r.DEFAULT_TRACE_FLAG,o.parentId=n,e.generateContextObject(o.traceId,o.parentId,i,null,o)},e.runWithContext=function(t,n){var r;return e.enabled?e.session.bind(n,((r={})[e.CONTEXT_NAME]=t,r))():n()},e.wrapEmitter=function(t){e.enabled&&e.session.bindEmitter(t)},e.wrapCallback=function(t,n){var r;return e.enabled?e.session.bind(t,n?((r={})[e.CONTEXT_NAME]=n,r):void 0):t},e.enable=function(t){if(!this.enabled){if(!this.isNodeVersionCompatible())return void(this.enabled=!1);e.hasEverEnabled||(this.forceClsHooked=t,this.hasEverEnabled=!0,typeof this.cls>"u"&&(!0===e.forceClsHooked||void 0===e.forceClsHooked&&e.shouldUseClsHooked()?this.cls=_r():this.cls=Sr()),e.session=this.cls.createNamespace("AI-CLS-Session"),n.registerContextPreservation((function(t){return e.session.bind(t)}))),this.enabled=!0}},e.startOperation=function(n,a){var s=n&&n.traceContext||null,c=n&&n.traceId?n:null,l=n&&n.headers;if(c){var u=new r("00-"+c.traceId+"-"+c.spanId+"-01"),p=new i(c.traceState?c.traceState.serialize():null);return e.generateContextObject(c.traceId,"|"+c.traceId+"."+c.spanId+".","string"==typeof a?a:"",void 0,u,p)}if(s){u=new r(s.traceparent),p=new i(s.tracestate);var d="object"==typeof a?new o(a):null;return e.generateContextObject(u.traceId,u.parentId,"string"==typeof a?a:d.getOperationName({}),d&&d.getCorrelationContextHeader()||void 0,u,p)}return l?(u=new r(l.traceparent?l.traceparent.toString():null),p=new i(l.tracestate?l.tracestate.toString():null),d=new o(n),e.generateContextObject(u.traceId,u.parentId,d.getOperationName({}),d.getCorrelationContextHeader(),u,p)):(t.warn("startOperation was called with invalid arguments",arguments),null)},e.disable=function(){this.enabled=!1},e.reset=function(){e.hasEverEnabled&&(e.session=null,e.session=this.cls.createNamespace("AI-CLS-Session"))},e.isNodeVersionCompatible=function(){var e=process.versions.node.split(".");return parseInt(e[0])>3||parseInt(e[0])>2&&parseInt(e[1])>2},e.shouldUseClsHooked=function(){var e=process.versions.node.split(".");return parseInt(e[0])>8||parseInt(e[0])>=8&&parseInt(e[1])>=2},e.canUseClsHooked=function(){var e=process.versions.node.split("."),t=parseInt(e[0])>8||parseInt(e[0])>=8&&parseInt(e[1])>=0,n=parseInt(e[0])<8||parseInt(e[0])<=8&&parseInt(e[1])<2,r=parseInt(e[0])>4||parseInt(e[0])>=4&&parseInt(e[1])>=7;return!(t&&n)&&r},e.enabled=!1,e.hasEverEnabled=!1,e.forceClsHooked=void 0,e.CONTEXT_NAME="ApplicationInsights-Context",e}();e.CorrelationContextManager=a;var s=function(){function e(e){this.props=[],this.addHeaderData(e)}return e.prototype.addHeaderData=function(e){var t=e?e.split(", "):[];this.props=t.map((function(e){var t=e.split("=");return{key:t[0],value:t[1]}})).concat(this.props)},e.prototype.serializeToHeader=function(){return this.props.map((function(e){return e.key+"="+e.value})).join(", ")},e.prototype.getProperty=function(e){for(var t=0;t<this.props.length;++t){var n=this.props[t];if(n.key===e)return n.value}},e.prototype.setProperty=function(n,r){if(e.bannedCharacters.test(n)||e.bannedCharacters.test(r))t.warn("Correlation context property keys and values must not contain ',' or '='. setProperty was called with key: "+n+" and value: "+r);else{for(var i=0;i<this.props.length;++i){var o=this.props[i];if(o.key===n)return void(o.value=r)}this.props.push({key:n,value:r})}},e.bannedCharacters=/[,=]/,e}()})),Cr=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dispose=e.enable=void 0;var t=nr(),n=k(),r=[],i=function(e){var n=e.data.message;r.forEach((function(r){n instanceof Error?r.trackException({exception:n}):(n.lastIndexOf("\n")==n.length-1&&(n=n.substring(0,n.length-1)),r.trackTrace({message:n,severity:e.data.stderr?t.SeverityLevel.Warning:t.SeverityLevel.Information}))}))};e.enable=function(e,t){e?(0===r.length&&n.channel.subscribe("console",i),r.push(t)):0===(r=r.filter((function(e){return e!=t}))).length&&n.channel.unsubscribe("console",i)},e.dispose=function(){n.channel.unsubscribe("console",i),r=[]}})),Ir=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dispose=e.enable=void 0;var t=nr(),n=k(),r=[],i={10:t.SeverityLevel.Verbose,20:t.SeverityLevel.Verbose,30:t.SeverityLevel.Information,40:t.SeverityLevel.Warning,50:t.SeverityLevel.Error,60:t.SeverityLevel.Critical},o=function(e){var t=e.data.result;r.forEach((function(n){var r=i[e.data.level];t instanceof Error?n.trackException({exception:t}):n.trackTrace({message:t,severity:r})}))};e.enable=function(e,t){e?(0===r.length&&n.channel.subscribe("bunyan",o),r.push(t)):0===(r=r.filter((function(e){return e!=t}))).length&&n.channel.unsubscribe("bunyan",o)},e.dispose=function(){n.channel.unsubscribe("bunyan",o),r=[]}})),Pr=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dispose=e.enable=void 0;var t=nr(),n=k(),r=[],i={syslog:function(e){var n={emerg:t.SeverityLevel.Critical,alert:t.SeverityLevel.Critical,crit:t.SeverityLevel.Critical,error:t.SeverityLevel.Error,warning:t.SeverityLevel.Warning,notice:t.SeverityLevel.Information,info:t.SeverityLevel.Information,debug:t.SeverityLevel.Verbose};return void 0===n[e]?t.SeverityLevel.Information:n[e]},npm:function(e){var n={error:t.SeverityLevel.Error,warn:t.SeverityLevel.Warning,info:t.SeverityLevel.Information,verbose:t.SeverityLevel.Verbose,debug:t.SeverityLevel.Verbose,silly:t.SeverityLevel.Verbose};return void 0===n[e]?t.SeverityLevel.Information:n[e]},unknown:function(e){return t.SeverityLevel.Information}},o=function(e){var t=e.data.message;r.forEach((function(n){if(t instanceof Error)n.trackException({exception:t,properties:e.data.meta});else{var r=i[e.data.levelKind](e.data.level);n.trackTrace({message:t,severity:r,properties:e.data.meta})}}))};e.enable=function(e,t){e?(0===r.length&&n.channel.subscribe("winston",o),r.push(t)):0===(r=r.filter((function(e){return e!=t}))).length&&n.channel.unsubscribe("winston",o)},e.dispose=function(){n.channel.unsubscribe("winston",o),r=[]}})),Or=_(((e,t)=>{"use strict";var n=sn(),r=function(){function e(t){if(e.INSTANCE)throw new Error("Console logging adapter tracking should be configured from the applicationInsights object");this._client=t,e.INSTANCE=this}return e.prototype.enable=function(e,t){n.IsInitialized&&(Cr().enable(e&&t,this._client),Ir().enable(e,this._client),Pr().enable(e,this._client))},e.prototype.isInitialized=function(){return this._isInitialized},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1,!1)},e._methodNames=["debug","info","log","warn","error"],e}();t.exports=r})),Nr=_(((e,t)=>{"use strict";var n=function(){function e(t){if(e.INSTANCE)throw new Error("Exception tracking should be configured from the applicationInsights object");e.INSTANCE=this,this._client=t;var n=process.versions.node.split(".");e._canUseUncaughtExceptionMonitor=parseInt(n[0])>13||13===parseInt(n[0])&&parseInt(n[1])>=7}return e.prototype.isInitialized=function(){return this._isInitialized},e.prototype.enable=function(t){var n=this;if(t){if(this._isInitialized=!0,!this._exceptionListenerHandle){var r=function(t,r,i){void 0===i&&(i=new Error(e._FALLBACK_ERROR_MESSAGE)),n._client.trackException({exception:i}),n._client.flush({isAppCrashing:!0}),t&&r&&1===process.listeners(r).length&&(console.error(i),process.exit(1))};e._canUseUncaughtExceptionMonitor?(this._exceptionListenerHandle=r.bind(this,!1,void 0),process.on(e.UNCAUGHT_EXCEPTION_MONITOR_HANDLER_NAME,this._exceptionListenerHandle)):(this._exceptionListenerHandle=r.bind(this,!0,e.UNCAUGHT_EXCEPTION_HANDLER_NAME),this._rejectionListenerHandle=r.bind(this,!1,void 0),process.on(e.UNCAUGHT_EXCEPTION_HANDLER_NAME,this._exceptionListenerHandle),process.on(e.UNHANDLED_REJECTION_HANDLER_NAME,this._rejectionListenerHandle))}}else this._exceptionListenerHandle&&(e._canUseUncaughtExceptionMonitor?process.removeListener(e.UNCAUGHT_EXCEPTION_MONITOR_HANDLER_NAME,this._exceptionListenerHandle):(process.removeListener(e.UNCAUGHT_EXCEPTION_HANDLER_NAME,this._exceptionListenerHandle),process.removeListener(e.UNHANDLED_REJECTION_HANDLER_NAME,this._rejectionListenerHandle)),this._exceptionListenerHandle=void 0,this._rejectionListenerHandle=void 0,delete this._exceptionListenerHandle,delete this._rejectionListenerHandle)},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e.INSTANCE=null,e.UNCAUGHT_EXCEPTION_MONITOR_HANDLER_NAME="uncaughtExceptionMonitor",e.UNCAUGHT_EXCEPTION_HANDLER_NAME="uncaughtException",e.UNHANDLED_REJECTION_HANDLER_NAME="unhandledRejection",e._RETHROW_EXIT_MESSAGE="Application Insights Rethrow Exception Handler",e._FALLBACK_ERROR_MESSAGE="A promise was rejected without providing an error. Application Insights generated this error stack for you.",e._canUseUncaughtExceptionMonitor=!1,e}();t.exports=n})),Rr=_((e=>{"use strict";var t,n,r,i;Object.defineProperty(e,"__esModule",{value:!0}),e.HeartBeatMetricName=e.DependencyTypeName=e.SpanAttribute=e.TelemetryTypeStringToQuickPulseDocumentType=e.TelemetryTypeStringToQuickPulseType=e.QuickPulseType=e.QuickPulseDocumentType=e.PerformanceToQuickPulseCounter=e.MetricId=e.PerformanceCounter=e.QuickPulseCounter=e.DEFAULT_LIVEMETRICS_HOST=e.DEFAULT_LIVEMETRICS_ENDPOINT=e.DEFAULT_BREEZE_ENDPOINT=void 0,e.DEFAULT_BREEZE_ENDPOINT="https://dc.services.visualstudio.com",e.DEFAULT_LIVEMETRICS_ENDPOINT="https://rt.services.visualstudio.com",e.DEFAULT_LIVEMETRICS_HOST="rt.services.visualstudio.com",(r=n=e.QuickPulseCounter||(e.QuickPulseCounter={})).COMMITTED_BYTES="\\Memory\\Committed Bytes",r.PROCESSOR_TIME="\\Processor(_Total)\\% Processor Time",r.REQUEST_RATE="\\ApplicationInsights\\Requests/Sec",r.REQUEST_FAILURE_RATE="\\ApplicationInsights\\Requests Failed/Sec",r.REQUEST_DURATION="\\ApplicationInsights\\Request Duration",r.DEPENDENCY_RATE="\\ApplicationInsights\\Dependency Calls/Sec",r.DEPENDENCY_FAILURE_RATE="\\ApplicationInsights\\Dependency Calls Failed/Sec",r.DEPENDENCY_DURATION="\\ApplicationInsights\\Dependency Call Duration",r.EXCEPTION_RATE="\\ApplicationInsights\\Exceptions/Sec",function(e){e.PRIVATE_BYTES="\\Process(??APP_WIN32_PROC??)\\Private Bytes",e.AVAILABLE_BYTES="\\Memory\\Available Bytes",e.PROCESSOR_TIME="\\Processor(_Total)\\% Processor Time",e.PROCESS_TIME="\\Process(??APP_WIN32_PROC??)\\% Processor Time",e.REQUEST_RATE="\\ASP.NET Applications(??APP_W3SVC_PROC??)\\Requests/Sec",e.REQUEST_DURATION="\\ASP.NET Applications(??APP_W3SVC_PROC??)\\Request Execution Time"}(i=e.PerformanceCounter||(e.PerformanceCounter={})),function(e){e.REQUESTS_DURATION="requests/duration",e.DEPENDENCIES_DURATION="dependencies/duration",e.EXCEPTIONS_COUNT="exceptions/count",e.TRACES_COUNT="traces/count"}(e.MetricId||(e.MetricId={})),e.PerformanceToQuickPulseCounter=((t={})[i.PROCESSOR_TIME]=n.PROCESSOR_TIME,t[i.REQUEST_RATE]=n.REQUEST_RATE,t[i.REQUEST_DURATION]=n.REQUEST_DURATION,t[n.COMMITTED_BYTES]=n.COMMITTED_BYTES,t[n.REQUEST_FAILURE_RATE]=n.REQUEST_FAILURE_RATE,t[n.DEPENDENCY_RATE]=n.DEPENDENCY_RATE,t[n.DEPENDENCY_FAILURE_RATE]=n.DEPENDENCY_FAILURE_RATE,t[n.DEPENDENCY_DURATION]=n.DEPENDENCY_DURATION,t[n.EXCEPTION_RATE]=n.EXCEPTION_RATE,t),e.QuickPulseDocumentType={Event:"Event",Exception:"Exception",Trace:"Trace",Metric:"Metric",Request:"Request",Dependency:"RemoteDependency",Availability:"Availability",PageView:"PageView"},e.QuickPulseType={Event:"EventTelemetryDocument",Exception:"ExceptionTelemetryDocument",Trace:"TraceTelemetryDocument",Metric:"MetricTelemetryDocument",Request:"RequestTelemetryDocument",Dependency:"DependencyTelemetryDocument",Availability:"AvailabilityTelemetryDocument",PageView:"PageViewTelemetryDocument"},e.TelemetryTypeStringToQuickPulseType={EventData:e.QuickPulseType.Event,ExceptionData:e.QuickPulseType.Exception,MessageData:e.QuickPulseType.Trace,MetricData:e.QuickPulseType.Metric,RequestData:e.QuickPulseType.Request,RemoteDependencyData:e.QuickPulseType.Dependency,AvailabilityData:e.QuickPulseType.Availability,PageViewData:e.QuickPulseType.PageView},e.TelemetryTypeStringToQuickPulseDocumentType={EventData:e.QuickPulseDocumentType.Event,ExceptionData:e.QuickPulseDocumentType.Exception,MessageData:e.QuickPulseDocumentType.Trace,MetricData:e.QuickPulseDocumentType.Metric,RequestData:e.QuickPulseDocumentType.Request,RemoteDependencyData:e.QuickPulseDocumentType.Dependency,AvailabilityData:e.QuickPulseDocumentType.Availability,PageViewData:e.QuickPulseDocumentType.PageView},e.SpanAttribute={HttpHost:"http.host",HttpMethod:"http.method",HttpPort:"http.port",HttpStatusCode:"http.status_code",HttpUrl:"http.url",HttpUserAgent:"http.user_agent",GrpcMethod:"grpc.method",GrpcService:"rpc.service"},e.DependencyTypeName={Grpc:"GRPC",Http:"HTTP",InProc:"InProc"},e.HeartBeatMetricName="HeartBeat"})),Dr=_(((e,t)=>{"use strict";var r=n(2037),i=Rr(),o=function(){function e(t,n,r){void 0===n&&(n=6e4),void 0===r&&(r=!1),this._lastIntervalRequestExecutionTime=0,this._lastIntervalDependencyExecutionTime=0,e.INSTANCE||(e.INSTANCE=this),this._isInitialized=!1,this._client=t,this._collectionInterval=n,this._enableLiveMetricsCounters=r}return e.prototype.enable=function(t,n){var i=this;this._isEnabled=t,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),t?this._handle||(this._lastCpus=r.cpus(),this._lastRequests={totalRequestCount:e._totalRequestCount,totalFailedRequestCount:e._totalFailedRequestCount,time:+new Date},this._lastDependencies={totalDependencyCount:e._totalDependencyCount,totalFailedDependencyCount:e._totalFailedDependencyCount,time:+new Date},this._lastExceptions={totalExceptionCount:e._totalExceptionCount,time:+new Date},"function"==typeof process.cpuUsage&&(this._lastAppCpuUsage=process.cpuUsage()),this._lastHrtime=process.hrtime(),this._collectionInterval=n||this._collectionInterval,this._handle=setInterval((function(){return i.trackPerformance()}),this._collectionInterval),this._handle.unref()):this._handle&&(clearInterval(this._handle),this._handle=void 0)},e.countRequest=function(t,n){var r;if(e.isEnabled()){if("string"==typeof t)r=+new Date("1970-01-01T"+t+"Z");else{if("number"!=typeof t)return;r=t}e._intervalRequestExecutionTime+=r,!1===n&&e._totalFailedRequestCount++,e._totalRequestCount++}},e.countException=function(){e._totalExceptionCount++},e.countDependency=function(t,n){var r;if(e.isEnabled()){if("string"==typeof t)r=+new Date("1970-01-01T"+t+"Z");else{if("number"!=typeof t)return;r=t}e._intervalDependencyExecutionTime+=r,!1===n&&e._totalFailedDependencyCount++,e._totalDependencyCount++}},e.prototype.isInitialized=function(){return this._isInitialized},e.isEnabled=function(){return e.INSTANCE&&e.INSTANCE._isEnabled},e.prototype.trackPerformance=function(){this._trackCpu(),this._trackMemory(),this._trackNetwork(),this._trackDependencyRate(),this._trackExceptionRate()},e.prototype._trackCpu=function(){var e=r.cpus();if(e&&e.length&&this._lastCpus&&e.length===this._lastCpus.length){for(var t=0,n=0,o=0,a=0,s=0,c=0;e&&c<e.length;c++){var l=e[c],u=this._lastCpus[c],p=(l.model,l.speed,l.times),d=u.times;t+=p.user-d.user||0,n+=p.sys-d.sys||0,o+=p.nice-d.nice||0,a+=p.idle-d.idle||0,s+=p.irq-d.irq||0}var f=void 0;if("function"==typeof process.cpuUsage){var h=process.cpuUsage(),m=process.hrtime(),v=h.user-this._lastAppCpuUsage.user+(h.system-this._lastAppCpuUsage.system)||0;typeof this._lastHrtime<"u"&&2===this._lastHrtime.length&&(f=100*v/((1e6*(m[0]-this._lastHrtime[0])+(m[1]-this._lastHrtime[1])/1e3||0)*e.length)),this._lastAppCpuUsage=h,this._lastHrtime=m}var g=t+n+o+a+s||1;this._client.trackMetric({name:i.PerformanceCounter.PROCESSOR_TIME,value:(g-a)/g*100}),this._client.trackMetric({name:i.PerformanceCounter.PROCESS_TIME,value:f||t/g*100})}this._lastCpus=e},e.prototype._trackMemory=function(){var e=r.freemem(),t=process.memoryUsage().rss,n=r.totalmem()-e;this._client.trackMetric({name:i.PerformanceCounter.PRIVATE_BYTES,value:t}),this._client.trackMetric({name:i.PerformanceCounter.AVAILABLE_BYTES,value:e}),this._enableLiveMetricsCounters&&this._client.trackMetric({name:i.QuickPulseCounter.COMMITTED_BYTES,value:n})},e.prototype._trackNetwork=function(){var t=this._lastRequests,n={totalRequestCount:e._totalRequestCount,totalFailedRequestCount:e._totalFailedRequestCount,time:+new Date},r=n.totalRequestCount-t.totalRequestCount||0,o=n.totalFailedRequestCount-t.totalFailedRequestCount||0,a=n.time-t.time,s=a/1e3,c=(e._intervalRequestExecutionTime-this._lastIntervalRequestExecutionTime)/r||0;if(this._lastIntervalRequestExecutionTime=e._intervalRequestExecutionTime,a>0){var l=r/s,u=o/s;this._client.trackMetric({name:i.PerformanceCounter.REQUEST_RATE,value:l}),(!this._enableLiveMetricsCounters||r>0)&&this._client.trackMetric({name:i.PerformanceCounter.REQUEST_DURATION,value:c}),this._enableLiveMetricsCounters&&this._client.trackMetric({name:i.QuickPulseCounter.REQUEST_FAILURE_RATE,value:u})}this._lastRequests=n},e.prototype._trackDependencyRate=function(){if(this._enableLiveMetricsCounters){var t=this._lastDependencies,n={totalDependencyCount:e._totalDependencyCount,totalFailedDependencyCount:e._totalFailedDependencyCount,time:+new Date},r=n.totalDependencyCount-t.totalDependencyCount||0,o=n.totalFailedDependencyCount-t.totalFailedDependencyCount||0,a=n.time-t.time,s=a/1e3,c=(e._intervalDependencyExecutionTime-this._lastIntervalDependencyExecutionTime)/r||0;if(this._lastIntervalDependencyExecutionTime=e._intervalDependencyExecutionTime,a>0){var l=r/s,u=o/s;this._client.trackMetric({name:i.QuickPulseCounter.DEPENDENCY_RATE,value:l}),this._client.trackMetric({name:i.QuickPulseCounter.DEPENDENCY_FAILURE_RATE,value:u}),(!this._enableLiveMetricsCounters||r>0)&&this._client.trackMetric({name:i.QuickPulseCounter.DEPENDENCY_DURATION,value:c})}this._lastDependencies=n}},e.prototype._trackExceptionRate=function(){if(this._enableLiveMetricsCounters){var t=this._lastExceptions,n={totalExceptionCount:e._totalExceptionCount,time:+new Date},r=n.totalExceptionCount-t.totalExceptionCount||0,o=n.time-t.time;if(o>0){var a=r/(o/1e3);this._client.trackMetric({name:i.QuickPulseCounter.EXCEPTION_RATE,value:a})}this._lastExceptions=n}},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e._totalRequestCount=0,e._totalFailedRequestCount=0,e._totalDependencyCount=0,e._totalFailedDependencyCount=0,e._totalExceptionCount=0,e._intervalDependencyExecutionTime=0,e._intervalRequestExecutionTime=0,e}();t.exports=o})),kr=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AggregatedMetricCounter=void 0;e.AggregatedMetricCounter=function(e){this.dimensions=e,this.totalCount=0,this.lastTotalCount=0,this.intervalExecutionTime=0,this.lastTime=+new Date,this.lastIntervalExecutionTime=0}})),Lr=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PreaggregatedMetricPropertyNames=void 0,e.PreaggregatedMetricPropertyNames={cloudRoleInstance:"cloud/roleInstance",cloudRoleName:"cloud/roleName",operationSynthetic:"operation/synthetic",requestSuccess:"Request.Success",requestResultCode:"request/resultCode",dependencyType:"Dependency.Type",dependencyTarget:"dependency/target",dependencySuccess:"Dependency.Success",dependencyResultCode:"dependency/resultCode",traceSeverityLevel:"trace/severityLevel"}})),jr=_(((e,t)=>{"use strict";var n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=Rr(),i=kr(),o=Lr(),a=function(){function e(t,n){void 0===n&&(n=6e4),e.INSTANCE||(e.INSTANCE=this),this._isInitialized=!1,e._dependencyCountersCollection=[],e._requestCountersCollection=[],e._exceptionCountersCollection=[],e._traceCountersCollection=[],this._client=t,this._collectionInterval=n}return e.prototype.enable=function(e,t){var n=this;this._isEnabled=e,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),e?this._handle||(this._collectionInterval=t||this._collectionInterval,this._handle=setInterval((function(){return n.trackPreAggregatedMetrics()}),this._collectionInterval),this._handle.unref()):this._handle&&(clearInterval(this._handle),this._handle=void 0)},e.countException=function(t){e.isEnabled()&&e._getAggregatedCounter(t,this._exceptionCountersCollection).totalCount++},e.countTrace=function(t){e.isEnabled()&&e._getAggregatedCounter(t,this._traceCountersCollection).totalCount++},e.countRequest=function(t,n){if(e.isEnabled()){var r,i=e._getAggregatedCounter(n,this._requestCountersCollection);if("string"==typeof t)r=+new Date("1970-01-01T"+t+"Z");else{if("number"!=typeof t)return;r=t}i.intervalExecutionTime+=r,i.totalCount++}},e.countDependency=function(t,n){if(e.isEnabled()){var r,i=e._getAggregatedCounter(n,this._dependencyCountersCollection);if("string"==typeof t)r=+new Date("1970-01-01T"+t+"Z");else{if("number"!=typeof t)return;r=t}i.intervalExecutionTime+=r,i.totalCount++}},e.prototype.isInitialized=function(){return this._isInitialized},e.isEnabled=function(){return e.INSTANCE&&e.INSTANCE._isEnabled},e.prototype.trackPreAggregatedMetrics=function(){this._trackRequestMetrics(),this._trackDependencyMetrics(),this._trackExceptionMetrics(),this._trackTraceMetrics()},e._getAggregatedCounter=function(e,t){for(var n=!1,r=0;r<t.length;r++){if(e===t[r].dimensions)return t[r];if(Object.keys(e).length===Object.keys(t[r].dimensions).length){for(var o in e)if(e[o]!=t[r].dimensions[o]){n=!0;break}if(!n)return t[r];n=!1}}var a=new i.AggregatedMetricCounter(e);return t.push(a),a},e.prototype._trackRequestMetrics=function(){for(var t=0;t<e._requestCountersCollection.length;t++){var n=e._requestCountersCollection[t];n.time=+new Date;var i=n.totalCount-n.lastTotalCount||0,o=n.time-n.lastTime,a=(n.intervalExecutionTime-n.lastIntervalExecutionTime)/i||0;n.lastIntervalExecutionTime=n.intervalExecutionTime,o>0&&i>0&&this._trackPreAggregatedMetric({name:"Server response time",dimensions:n.dimensions,value:a,count:i,aggregationInterval:o,metricType:r.MetricId.REQUESTS_DURATION}),n.lastTotalCount=n.totalCount,n.lastTime=n.time}},e.prototype._trackDependencyMetrics=function(){for(var t=0;t<e._dependencyCountersCollection.length;t++){var n=e._dependencyCountersCollection[t];n.time=+new Date;var i=n.totalCount-n.lastTotalCount||0,o=n.time-n.lastTime,a=(n.intervalExecutionTime-n.lastIntervalExecutionTime)/i||0;n.lastIntervalExecutionTime=n.intervalExecutionTime,o>0&&i>0&&this._trackPreAggregatedMetric({name:"Dependency duration",dimensions:n.dimensions,value:a,count:i,aggregationInterval:o,metricType:r.MetricId.DEPENDENCIES_DURATION}),n.lastTotalCount=n.totalCount,n.lastTime=n.time}},e.prototype._trackExceptionMetrics=function(){for(var t=0;t<e._exceptionCountersCollection.length;t++){var n=e._exceptionCountersCollection[t],i=n.totalCount-n.lastTotalCount||0,o=n.time-n.lastTime;this._trackPreAggregatedMetric({name:"Exceptions",dimensions:n.dimensions,value:i,count:i,aggregationInterval:o,metricType:r.MetricId.EXCEPTIONS_COUNT}),n.lastTotalCount=n.totalCount,n.lastTime=n.time}},e.prototype._trackTraceMetrics=function(){for(var t=0;t<e._traceCountersCollection.length;t++){var n=e._traceCountersCollection[t],i=n.totalCount-n.lastTotalCount||0,o=n.time-n.lastTime;this._trackPreAggregatedMetric({name:"Traces",dimensions:n.dimensions,value:i,count:i,aggregationInterval:o,metricType:r.MetricId.TRACES_COUNT}),n.lastTotalCount=n.totalCount,n.lastTime=n.time}},e.prototype._trackPreAggregatedMetric=function(e){var t={};for(var r in e.dimensions)t[o.PreaggregatedMetricPropertyNames[r]]=e.dimensions[r];t=n(n({},t),{"_MS.MetricId":e.metricType,"_MS.AggregationIntervalMs":String(e.aggregationInterval),"_MS.IsAutocollected":"True"});var i={name:e.name,value:e.value,count:e.count,properties:t,kind:"Aggregation"};this._client.trackMetric(i)},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e}();t.exports=a})),Mr=_(((e,t)=>{"use strict";var r=n(2037),i=n(7147),o=n(1017),a=nr(),s=P(),c=function(){function e(e){this.keys=new a.ContextTagKeys,this.tags={},this._loadApplicationContext(e),this._loadDeviceContext(),this._loadInternalContext()}return e.prototype._loadApplicationContext=function(t){if(t=t||o.resolve(__dirname,"../../../../package.json"),!e.appVersion[t]){e.appVersion[t]="unknown";try{var n=JSON.parse(i.readFileSync(t,"utf8"));n&&"string"==typeof n.version&&(e.appVersion[t]=n.version)}catch(e){s.info("unable to read app version: ",e)}}this.tags[this.keys.applicationVersion]=e.appVersion[t]},e.prototype._loadDeviceContext=function(){this.tags[this.keys.deviceId]="",this.tags[this.keys.cloudRoleInstance]=r&&r.hostname(),this.tags[this.keys.deviceOSVersion]=r&&r.type()+" "+r.release(),this.tags[this.keys.cloudRole]=e.DefaultRoleName,this.tags["ai.device.osArchitecture"]=r&&r.arch(),this.tags["ai.device.osPlatform"]=r&&r.platform()},e.prototype._loadInternalContext=function(){var t=o.resolve(__dirname,"../../package.json");if(!e.sdkVersion){e.sdkVersion="unknown";try{var n=JSON.parse(i.readFileSync(t,"utf8"));n&&"string"==typeof n.version&&(e.sdkVersion=n.version)}catch(e){s.info("unable to read app version: ",e)}}this.tags[this.keys.internalSdkVersion]="node:"+e.sdkVersion},e.DefaultRoleName="Web",e.appVersion={},e.sdkVersion=null,e}();t.exports=c})),zr=_(((e,t)=>{"use strict";var r,i=e&&e.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=n(7310),a=nr(),s=ln(),c=cn(),l=rr(),u=un(),p=function(e){function t(n,r){var i=e.call(this)||this;return r&&r.method&&n&&(i.method=r.method,i.url=t._getUrlFromRequestOptions(n,r),i.startTime=+new Date),i}return i(t,e),t.prototype.onError=function(e){this._setStatus(void 0,e)},t.prototype.onResponse=function(e){this._setStatus(e.statusCode,void 0),this.correlationId=s.getCorrelationContextTarget(e,c.requestContextTargetKey)},t.prototype.getDependencyTelemetry=function(e,t){var n=o.parse(this.url);n.search=void 0,n.hash=void 0;var r=this.method.toUpperCase()+" "+n.pathname,i=a.RemoteDependencyDataConstants.TYPE_HTTP,s=n.hostname;n.port&&(s+=":"+n.port),this.correlationId?(i=a.RemoteDependencyDataConstants.TYPE_AI,this.correlationId!==u.correlationIdPrefix&&(s+=" | "+this.correlationId)):i=a.RemoteDependencyDataConstants.TYPE_HTTP;var c={id:t,name:r,data:this.url,duration:this.duration,success:this._isSuccess(),resultCode:this.statusCode?this.statusCode.toString():null,properties:this.properties||{},dependencyTypeName:i,target:s};if(e&&e.time?c.time=e.time:this.startTime&&(c.time=new Date(this.startTime)),e){for(var l in e)c[l]||(c[l]=e[l]);if(e.properties)for(var l in e.properties)c.properties[l]=e.properties[l]}return c},t._getUrlFromRequestOptions=function(e,t){if("string"==typeof e)if(0===e.indexOf("http://")||0===e.indexOf("https://"))e=o.parse(e);else{var n=o.parse(e);e="443"===n.host?o.parse("https://"+e):o.parse("http://"+e)}else{if(e&&"function"==typeof o.URL&&e instanceof o.URL)return o.format(e);var r=e;e={},r&&Object.keys(r).forEach((function(t){e[t]=r[t]}))}if(e.path){var i=o.parse(e.path);e.pathname=i.pathname,e.search=i.search}return e.host&&e.port&&!o.parse("http://"+e.host).port&&e.port&&(e.hostname=e.host,delete e.host),e.protocol=e.protocol||t.agent&&t.agent.protocol||t.protocol||void 0,e.hostname=e.hostname||"localhost",o.format(e)},t}(l);t.exports=p})),Vr=_((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.spanToTelemetryContract=void 0;var n=Pe(),r=Rr();function i(e){var n=t({},e);return Object.keys(r.SpanAttribute).forEach((function(e){delete n[e]})),n}e.spanToTelemetryContract=function(e){var o="|"+e.spanContext().traceId+"."+e.spanContext().spanId+".",a=Math.round(1e3*e._duration[0]+e._duration[1]/1e6),s=e.attributes["peer.address"]?e.attributes["peer.address"].toString():"",c=e.attributes.component?e.attributes.component.toString():"",l=c.toUpperCase()===r.DependencyTypeName.Http||!!e.attributes[r.SpanAttribute.HttpUrl],u=c.toLowerCase()===r.DependencyTypeName.Grpc;if(l){var p=e.attributes[r.SpanAttribute.HttpMethod]||"GET",d=new URL(e.attributes[r.SpanAttribute.HttpUrl].toString()),f=e.attributes[r.SpanAttribute.HttpHost]||d.host,h=e.attributes[r.SpanAttribute.HttpPort]||d.port||null,m=p+" "+(d.pathname||"/"),v=r.DependencyTypeName.Http,g=h?(f+":"+h).toString():f.toString(),b=d.toString(),y=e.attributes[r.SpanAttribute.HttpStatusCode]||e.status.code||0;return{id:o,name:m,dependencyTypeName:v,target:g,data:b,success:y<400,duration:a,url:b,resultCode:String(y),properties:i(e.attributes)}}if(u){p=e.attributes[r.SpanAttribute.GrpcMethod]||"rpc";var _=e.attributes[r.SpanAttribute.GrpcService],x=_?p+" "+_:e.name;return{id:o,duration:a,name:x,target:_.toString(),data:_.toString()||x,url:_.toString()||x,dependencyTypeName:r.DependencyTypeName.Grpc,resultCode:String(e.status.code||0),success:0===e.status.code,properties:i(e.attributes)}}var w=e.name,E=e.links&&e.links.map((function(e){return{operation_Id:e.context.traceId,id:e.context.spanId}}));return{id:o,duration:a,name:w,target:s,data:s||w,url:s||w,dependencyTypeName:e.kind===n.SpanKind.INTERNAL?r.DependencyTypeName.InProc:c||e.name,resultCode:String(e.status.code||0),success:0===e.status.code,properties:t(t({},i(e.attributes)),{"_MS.links":E||void 0})}}})),Br=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.subscriber=void 0;var t=Pe(),n=k(),r=pn(),i=Vr(),o=O(),a=[];e.subscriber=function(e){var n=e.data,s=i.spanToTelemetryContract(n),c=n.spanContext(),l=new r;l.traceId=c.traceId,l.spanId=c.spanId,l.traceFlag=r.formatOpenTelemetryTraceFlags(c.traceFlags),l.parentId=n.parentSpanId?"|"+c.traceId+"."+n.parentSpanId+".":null,o.AsyncScopeManager.with(n,(function(){a.forEach((function(e){n.kind===t.SpanKind.SERVER?e.trackRequest(s):(n.kind===t.SpanKind.CLIENT||n.kind===t.SpanKind.INTERNAL)&&e.trackDependency(s)}))}))},e.enable=function(t,r){t?(0===a.length&&n.channel.subscribe("azure-coretracing",e.subscriber),a.push(r)):0===(a=a.filter((function(e){return e!=r}))).length&&n.channel.unsubscribe("azure-coretracing",e.subscriber)}})),Fr=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.subscriber=void 0;var t=k(),n=[];e.subscriber=function(e){"ismaster"!==e.data.event.commandName&&n.forEach((function(t){var n=e.data.startedData&&e.data.startedData.databaseName||"Unknown database";t.trackDependency({target:n,data:e.data.event.commandName,name:e.data.event.commandName,duration:e.data.event.duration,success:e.data.succeeded,resultCode:e.data.succeeded?"0":"1",time:e.data.startedData.time,dependencyTypeName:"mongodb"})}))},e.enable=function(r,i){r?(0===n.length&&t.channel.subscribe("mongodb",e.subscriber),n.push(i)):0===(n=n.filter((function(e){return e!=i}))).length&&t.channel.unsubscribe("mongodb",e.subscriber)}})),Ur=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.subscriber=void 0;var t=k(),n=[];e.subscriber=function(e){n.forEach((function(t){var n=e.data.query||{},r=n.sql||"Unknown query",i=!e.data.err,o=(n._connection||{}).config||{},a=o.socketPath?o.socketPath:(o.host||"localhost")+":"+o.port;t.trackDependency({target:a,data:r,name:r,duration:e.data.duration,success:i,resultCode:i?"0":"1",time:e.data.time,dependencyTypeName:"mysql"})}))},e.enable=function(r,i){r?(0===n.length&&t.channel.subscribe("mysql",e.subscriber),n.push(i)):0===(n=n.filter((function(e){return e!=i}))).length&&t.channel.unsubscribe("mysql",e.subscriber)}})),qr=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.subscriber=void 0;var t=k(),n=[];e.subscriber=function(e){n.forEach((function(t){"info"!==e.data.commandObj.command&&t.trackDependency({target:e.data.address,name:e.data.commandObj.command,data:e.data.commandObj.command,duration:e.data.duration,success:!e.data.err,resultCode:e.data.err?"1":"0",time:e.data.time,dependencyTypeName:"redis"})}))},e.enable=function(r,i){r?(0===n.length&&t.channel.subscribe("redis",e.subscriber),n.push(i)):0===(n=n.filter((function(e){return e!=i}))).length&&t.channel.unsubscribe("redis",e.subscriber)}})),Hr=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.subscriber=void 0;var t=k(),n=[];e.subscriber=function(e){n.forEach((function(t){var n=e.data.query,r=n.preparable&&n.preparable.text||n.plan||n.text||"unknown query",i=!e.data.error,o=e.data.database.host+":"+e.data.database.port;t.trackDependency({target:o,data:r,name:r,duration:e.data.duration,success:i,resultCode:i?"0":"1",time:e.data.time,dependencyTypeName:"postgres"})}))},e.enable=function(r,i){r?(0===n.length&&t.channel.subscribe("postgres",e.subscriber),n.push(i)):0===(n=n.filter((function(e){return e!=i}))).length&&t.channel.unsubscribe("postgres",e.subscriber)}})),Gr=_(((e,t)=>{"use strict";var r=e&&e.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},i=n(3685),o=n(5687),a=P(),s=ln(),c=cn(),l=zr(),u=Tr(),p=un(),d=pn(),f=sn(),h=function(){function e(t){if(e.INSTANCE)throw new Error("Client request tracking should be configured from the applicationInsights object");e.INSTANCE=this,this._client=t}return e.prototype.enable=function(e){this._isEnabled=e,this._isEnabled&&!this._isInitialized&&this._initialize(),f.IsInitialized&&(Br().enable(!0,this._client),Fr().enable(e,this._client),Ur().enable(e,this._client),qr().enable(e,this._client),Hr().enable(e,this._client))},e.prototype.isInitialized=function(){return this._isInitialized},e.prototype._initialize=function(){var t=this;this._isInitialized=!0;var n=i.request,a=o.request,s=function(n,r){var i=!r[e.disableCollectionRequestOption]&&!n[e.alreadyAutoCollectedFlag];r.headers&&r.headers["user-agent"]&&-1!==r.headers["user-agent"].toString().indexOf("azsdk-js")&&(i=!1),n[e.alreadyAutoCollectedFlag]=!0,n&&r&&i&&(u.CorrelationContextManager.wrapEmitter(n),e.trackRequest(t._client,{options:r,request:n}))};i.request=function(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];var a=n.call.apply(n,r([i,e],t));return s(a,e),a},o.request=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=a.call.apply(a,r([o,e],t));return s(i,e),i},i.get=function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var a=(t=i.request).call.apply(t,r([i,e],n));return a.end(),a},o.get=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var a=(t=o.request).call.apply(t,r([o,e],n));return a.end(),a}},e.trackRequest=function(t,n){if(n.options&&n.request&&t){var r,i,o=new l(n.options,n.request),f=u.CorrelationContextManager.getCurrentContext();if(f&&f.operation&&f.operation.traceparent&&d.isValidTraceId(f.operation.traceparent.traceId)?(f.operation.traceparent.updateSpanId(),r=f.operation.traceparent.getBackCompatRequestId()):p.w3cEnabled?(i=(m=new d).toString(),r=m.getBackCompatRequestId()):r=f&&f.operation&&f.operation.parentId+e.requestNumber+++".",s.canIncludeCorrelationHeader(t,o.getUrl())&&n.request.getHeader&&n.request.setHeader&&t.config&&t.config.correlationId){var h=n.request.getHeader(c.requestContextHeader);try{s.safeIncludeCorrelationHeader(t,n.request,h)}catch(e){a.warn("Request-Context header could not be set. Correlation of requests may be lost",e)}if(f&&f.operation)try{if(n.request.setHeader(c.requestIdHeader,r),t.config.ignoreLegacyHeaders||(n.request.setHeader(c.parentIdHeader,f.operation.id),n.request.setHeader(c.rootIdHeader,r)),i||f.operation.traceparent)n.request.setHeader(c.traceparentHeader,i||f.operation.traceparent.toString());else if(p.w3cEnabled){var m=(new d).toString();n.request.setHeader(c.traceparentHeader,m)}if(f.operation.tracestate){var v=f.operation.tracestate.toString();v&&n.request.setHeader(c.traceStateHeader,v)}var g=f.customProperties.serializeToHeader();g&&n.request.setHeader(c.correlationContextHeader,g)}catch(e){a.warn("Correlation headers could not be set. Correlation of requests may be lost.",e)}}n.request.on&&(n.request.on("response",(function(e){o.onResponse(e);var i=o.getDependencyTelemetry(n,r);i.contextObjects=i.contextObjects||{},i.contextObjects["http.RequestOptions"]=n.options,i.contextObjects["http.ClientRequest"]=n.request,i.contextObjects["http.ClientResponse"]=e,t.trackDependency(i)})),n.request.on("error",(function(e){o.onError(e);var i=o.getDependencyTelemetry(n,r);i.contextObjects=i.contextObjects||{},i.contextObjects["http.RequestOptions"]=n.options,i.contextObjects["http.ClientRequest"]=n.request,i.contextObjects.Error=e,t.trackDependency(i)})),n.request.on("abort",(function(){o.onError(new Error);var e=o.getDependencyTelemetry(n,r);e.contextObjects=e.contextObjects||{},e.contextObjects["http.RequestOptions"]=n.options,e.contextObjects["http.ClientRequest"]=n.request,t.trackDependency(e)})))}else a.info("AutoCollectHttpDependencies.trackRequest was called with invalid parameters: ",!n.options,!n.request,!t)},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e.disableCollectionRequestOption="disableAppInsightsAutoCollection",e.requestNumber=1,e.alreadyAutoCollectedFlag="_appInsightsAutoCollected",e}();t.exports=h})),$r=_(((e,t)=>{"use strict";var r=n(2037),i=Rr(),o=ln(),a=Mr(),s=Gr(),c=function(){function e(t){this._collectionInterval=9e5,this._vmData={},this._azInst_vmId="",this._azInst_subscriptionId="",this._azInst_osType="",e.INSTANCE||(e.INSTANCE=this),this._isInitialized=!1,this._client=t}return e.prototype.enable=function(e,t){var n=this;this._isEnabled=e,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),e?this._handle||(this._handle=setInterval((function(){return n.trackHeartBeat(t,(function(){}))}),this._collectionInterval),this._handle.unref()):this._handle&&(clearInterval(this._handle),this._handle=null)},e.prototype.isInitialized=function(){return this._isInitialized},e.isEnabled=function(){return e.INSTANCE&&e.INSTANCE._isEnabled},e.prototype.trackHeartBeat=function(e,t){var n=this,o=!1,s={},c=a.sdkVersion;s.sdk=c,s.osType=r.type(),process.env.WEBSITE_SITE_NAME?(s.appSrv_SiteName=process.env.WEBSITE_SITE_NAME||"",s.appSrv_wsStamp=process.env.WEBSITE_HOME_STAMPNAME||"",s.appSrv_wsHost=process.env.WEBSITE_HOSTNAME||""):process.env.FUNCTIONS_WORKER_RUNTIME?s.azfunction_appId=process.env.WEBSITE_HOSTNAME:e&&(void 0===this._isVM?(o=!0,this._getAzureComputeMetadata(e,(function(){n._isVM&&Object.keys(n._vmData).length>0&&(s.azInst_vmId=n._vmData.vmId||"",s.azInst_subscriptionId=n._vmData.subscriptionId||"",s.azInst_osType=n._vmData.osType||"",n._azInst_vmId=n._vmData.vmId||"",n._azInst_subscriptionId=n._vmData.subscriptionId||"",n._azInst_osType=n._vmData.osType||""),n._client.trackMetric({name:i.HeartBeatMetricName,value:0,properties:s}),t()}))):this._isVM&&(s.azInst_vmId=this._azInst_vmId,s.azInst_subscriptionId=this._azInst_subscriptionId,s.azInst_osType=this._azInst_osType)),o||(this._client.trackMetric({name:i.HeartBeatMetricName,value:0,properties:s}),t())},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e.prototype._getAzureComputeMetadata=function(e,t){var n,r=this,i=((n={method:"GET"})[s.disableCollectionRequestOption]=!0,n.headers={Metadata:"True"},n),a=o.makeRequest(e,"http://169.254.169.254/metadata/instance/compute?api-version=2017-12-01&format=json",i,(function(e){if(200===e.statusCode){r._isVM=!0;var n="";e.on("data",(function(e){n+=e})),e.on("end",(function(){r._vmData=r._isJSON(n)?JSON.parse(n):{},t()}))}else t()}));a&&(a.on("error",(function(e){e&&e.message&&e.message.indexOf("ENETUNREACH")>-1&&(r._isVM=!1),t()})),a.end())},e.prototype._isJSON=function(e){try{return JSON.parse(e)&&!!e}catch{return!1}},e}();t.exports=c})),Wr=_(((e,t)=>{"use strict";var r=n(3685),i=n(5687),o=P(),a=ln(),s=cn(),c=ir(),l=Tr(),u=Dr(),p=function(){function e(t){if(e.INSTANCE)throw new Error("Server request tracking should be configured from the applicationInsights object");e.INSTANCE=this,this._client=t}return e.prototype.enable=function(e){this._isEnabled=e,(this._isAutoCorrelating||this._isEnabled||u.isEnabled())&&!this._isInitialized&&(this.useAutoCorrelation(this._isAutoCorrelating),this._initialize())},e.prototype.useAutoCorrelation=function(e,t){e&&!this._isAutoCorrelating?l.CorrelationContextManager.enable(t):!e&&this._isAutoCorrelating&&l.CorrelationContextManager.disable(),this._isAutoCorrelating=e},e.prototype.isInitialized=function(){return this._isInitialized},e.prototype.isAutoCorrelating=function(){return this._isAutoCorrelating},e.prototype._generateCorrelationContext=function(e){if(this._isAutoCorrelating)return l.CorrelationContextManager.generateContextObject(e.getOperationId(this._client.context.tags),e.getRequestId(),e.getOperationName(this._client.context.tags),e.getCorrelationContextHeader(),e.getTraceparent(),e.getTracestate())},e.prototype._initialize=function(){var t=this;this._isInitialized=!0;var n=function(n){if(n){if("function"!=typeof n)throw new Error("onRequest handler must be a function");return function(r,i){l.CorrelationContextManager.wrapEmitter(r),l.CorrelationContextManager.wrapEmitter(i);var o=r&&!r[e.alreadyAutoCollectedFlag];if(r&&o){var a=new c(r),s=t._generateCorrelationContext(a);l.CorrelationContextManager.runWithContext(s,(function(){t._isEnabled&&(r[e.alreadyAutoCollectedFlag]=!0,e.trackRequest(t._client,{request:r,response:i},a)),"function"==typeof n&&n(r,i)}))}else"function"==typeof n&&n(r,i)}}},o=function(e){var t=e.addListener.bind(e);e.addListener=function(e,r){switch(e){case"request":case"checkContinue":return t(e,n(r));default:return t(e,r)}},e.on=e.addListener},a=r.createServer;r.createServer=function(e,t){if(t&&"function"==typeof t){var r=a(e,n(t));return o(r),r}return r=a(n(e)),o(r),r};var s=i.createServer;i.createServer=function(e,t){var r=s(e,n(t));return o(r),r}},e.trackRequestSync=function(t,n){if(n.request&&n.response&&t){e.addResponseCorrelationIdHeader(t,n.response);var r=l.CorrelationContextManager.getCurrentContext(),i=new c(n.request,r&&r.operation.parentId);r&&(r.operation.id=i.getOperationId(t.context.tags)||r.operation.id,r.operation.name=i.getOperationName(t.context.tags)||r.operation.name,r.operation.parentId=i.getRequestId()||r.operation.parentId,r.customProperties.addHeaderData(i.getCorrelationContextHeader())),e.endRequest(t,i,n,n.duration,n.error)}else o.info("AutoCollectHttpRequests.trackRequestSync was called with invalid parameters: ",!n.request,!n.response,!t)},e.trackRequest=function(t,n,r){if(n.request&&n.response&&t){var i=l.CorrelationContextManager.getCurrentContext(),s=r||new c(n.request,i&&i.operation.parentId);a.canIncludeCorrelationHeader(t,s.getUrl())&&e.addResponseCorrelationIdHeader(t,n.response),i&&!r&&(i.operation.id=s.getOperationId(t.context.tags)||i.operation.id,i.operation.name=s.getOperationName(t.context.tags)||i.operation.name,i.operation.parentId=s.getOperationParentId(t.context.tags)||i.operation.parentId,i.customProperties.addHeaderData(s.getCorrelationContextHeader())),n.response.once&&n.response.once("finish",(function(){e.endRequest(t,s,n,null,null)})),n.request.on&&n.request.on("error",(function(r){e.endRequest(t,s,n,null,r)})),n.request.on&&n.request.on("aborted",(function(){e.endRequest(t,s,n,null,"The request has been aborted and the network socket has closed.")}))}else o.info("AutoCollectHttpRequests.trackRequest was called with invalid parameters: ",!n.request,!n.response,!t)},e.addResponseCorrelationIdHeader=function(e,t){if(e.config&&e.config.correlationId&&t.getHeader&&t.setHeader&&!t.headersSent){var n=t.getHeader(s.requestContextHeader);a.safeIncludeCorrelationHeader(e,t,n)}},e.endRequest=function(e,t,n,r,i){i?t.onError(i,r):t.onResponse(n.response,r);var o=t.getRequestTelemetry(n);if(o.tagOverrides=t.getRequestTags(e.context.tags),n.tagOverrides)for(var a in n.tagOverrides)o.tagOverrides[a]=n.tagOverrides[a];var s=t.getLegacyRootId();s&&(o.properties.ai_legacyRootId=s),o.contextObjects=o.contextObjects||{},o.contextObjects["http.ServerRequest"]=n.request,o.contextObjects["http.ServerResponse"]=n.response,e.trackRequest(o)},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1,l.CorrelationContextManager.disable(),this._isAutoCorrelating=!1},e.alreadyAutoCollectedFlag="_appInsightsAutoCollected",e}();t.exports=p})),Qr=_(((e,t)=>{"use strict";var r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=n(2037),o=nr(),a=Rr(),s=ln(),c=P(),l=s.w3cTraceId(),u=function(){function e(){}return e.createQuickPulseEnvelope=function(e,t,n,r){var o=i&&"function"==typeof i.hostname&&i.hostname()||"Unknown",a=r.tags&&r.keys&&r.keys.cloudRoleInstance&&r.tags[r.keys.cloudRoleInstance]||o,s=r.tags&&r.keys&&r.keys.cloudRole&&r.tags[r.keys.cloudRole]||null;return{Documents:t.length>0?t:null,InstrumentationKey:n.instrumentationKey||"",Metrics:e.length>0?e:null,InvariantVersion:1,Timestamp:"/Date("+Date.now()+")/",Version:r.tags[r.keys.internalSdkVersion],StreamId:l,MachineName:o,Instance:a,RoleName:s}},e.createQuickPulseMetric=function(e){return{Name:e.name,Value:e.value,Weight:e.count||1}},e.telemetryEnvelopeToQuickPulseDocument=function(t){switch(t.data.baseType){case o.TelemetryTypeString.Event:return e.createQuickPulseEventDocument(t);case o.TelemetryTypeString.Exception:return e.createQuickPulseExceptionDocument(t);case o.TelemetryTypeString.Trace:return e.createQuickPulseTraceDocument(t);case o.TelemetryTypeString.Dependency:return e.createQuickPulseDependencyDocument(t);case o.TelemetryTypeString.Request:return e.createQuickPulseRequestDocument(t)}return null},e.createQuickPulseEventDocument=function(t){var n=e.createQuickPulseDocument(t),i=t.data.baseData.name;return r(r({},n),{Name:i})},e.createQuickPulseTraceDocument=function(t){var n=e.createQuickPulseDocument(t),i=t.data.baseData.severityLevel||0;return r(r({},n),{Message:t.data.baseData.message,SeverityLevel:o.SeverityLevel[i]})},e.createQuickPulseExceptionDocument=function(t){var n=e.createQuickPulseDocument(t),i=t.data.baseData.exceptions,o="",a="",s="";return i&&i.length>0&&(i[0].parsedStack&&i[0].parsedStack.length>0?i[0].parsedStack.forEach((function(e){o+=e.assembly+"\n"})):i[0].stack&&i[0].stack.length>0&&(o=i[0].stack),a=i[0].message,s=i[0].typeName),r(r({},n),{Exception:o,ExceptionMessage:a,ExceptionType:s})},e.createQuickPulseRequestDocument=function(t){var n=e.createQuickPulseDocument(t),i=t.data.baseData;return r(r({},n),{Name:i.name,Success:i.success,Duration:i.duration,ResponseCode:i.responseCode,OperationName:i.name})},e.createQuickPulseDependencyDocument=function(t){var n=e.createQuickPulseDocument(t),i=t.data.baseData;return r(r({},n),{Name:i.name,Target:i.target,Success:i.success,Duration:i.duration,ResultCode:i.resultCode,CommandName:i.data,OperationName:n.OperationId,DependencyTypeName:i.type})},e.createQuickPulseDocument=function(t){var n,r;return t.data.baseType?(r=a.TelemetryTypeStringToQuickPulseType[t.data.baseType],n=a.TelemetryTypeStringToQuickPulseDocumentType[t.data.baseType]):c.warn("Document type invalid; not sending live metric document",t.data.baseType),{DocumentType:n,__type:r,OperationId:t.tags[e.keys.operationId],Version:"1.0",Properties:e.aggregateProperties(t)}},e.aggregateProperties=function(e){var t=[],n=e.data.baseData.measurements||{};for(var r in n)if(n.hasOwnProperty(r)){var i={key:r,value:n[r]};t.push(i)}var o=e.data.baseData.properties||{};for(var r in o)o.hasOwnProperty(r)&&(i={key:r,value:o[r]},t.push(i));return t},e.keys=new o.ContextTagKeys,e}();t.exports=u})),Kr=_(((e,t)=>{"use strict";t.exports={getTransmissionTime:function(){return 1e4*(Date.now()+621355968e5)}}})),Xr=_(((e,t)=>{"use strict";var r=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=e&&e.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=n(5687),a=Gr(),s=P(),c=Kr(),l=ln(),u="x-ms-qps-service-polling-interval-hint",p="x-ms-qps-service-endpoint-redirect",d=function(){function e(e){this._config=e,this._consecutiveErrors=0}return e.prototype.ping=function(e,t,n){var r=[{name:"x-ms-qps-stream-id",value:e.StreamId},{name:"x-ms-qps-machine-name",value:e.MachineName},{name:"x-ms-qps-role-name",value:e.RoleName},{name:"x-ms-qps-instance-name",value:e.Instance},{name:"x-ms-qps-invariant-version",value:e.InvariantVersion.toString()}];this._submitData(e,t,n,"ping",r)},e.prototype.post=function(e,t,n){return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return[4,this._submitData([e],t,n,"post")];case 1:return r.sent(),[2]}}))}))},e.prototype._submitData=function(e,t,n,s,d){return r(this,void 0,void 0,(function(){var r,f,h,m,v,g=this;return i(this,(function(i){return r=JSON.stringify(e),(m={})[a.disableCollectionRequestOption]=!0,m.host=t&&t.length>0?t:this._config.quickPulseHost,m.method="POST",m.path="/QuickPulseService.svc/"+s+"?ikey="+this._config.instrumentationKey,m.headers=((v={Expect:"100-continue"})["x-ms-qps-transmission-time"]=c.getTransmissionTime(),v["Content-Type"]="application/json",v["Content-Length"]=Buffer.byteLength(r),v),f=m,d&&d.length>0&&d.forEach((function(e){return f.headers[e.name]=e.value})),this._config.httpsAgent?f.agent=this._config.httpsAgent:f.agent=l.tlsRestrictedAgent,(h=o.request(f,(function(e){if(200==e.statusCode){var t="true"===e.headers["x-ms-qps-subscribed"],r=e.headers[p]?e.headers[p].toString():null,i=e.headers[u]?parseInt(e.headers[u].toString()):null;g._consecutiveErrors=0,n(t,e,r,i)}else g._onError("StatusCode:"+e.statusCode+" StatusMessage:"+e.statusMessage),n()}))).on("error",(function(e){g._onError(e),n()})),h.write(r),h.end(),[2]}))}))},e.prototype._onError=function(t){this._consecutiveErrors++;var n="Transient error connecting to the Live Metrics endpoint. This packet will not appear in your Live Metrics Stream. Error:";this._consecutiveErrors%e.MAX_QPS_FAILURES_BEFORE_WARN==0?(n="Live Metrics endpoint could not be reached "+this._consecutiveErrors+" consecutive times. Most recent error:",s.warn(e.TAG,n,t)):s.info(e.TAG,n,t)},e.TAG="QuickPulseSender",e.MAX_QPS_FAILURES_BEFORE_WARN=25,e}();t.exports=d})),Yr=_(((e,t)=>{"use strict";var n=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},r=e&&e.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},i=P(),o=Qr(),a=Xr(),s=Rr(),c=Mr(),l=function(){function e(e,t){this._isCollectingData=!1,this._lastSuccessTime=Date.now(),this._lastSendSucceeded=!0,this._metrics={},this._documents=[],this._collectors=[],this._redirectedHost=null,this._pollingIntervalHint=-1,this.config=e,this.context=t||new c,this._sender=new a(this.config),this._isEnabled=!1}return e.prototype.addCollector=function(e){this._collectors.push(e)},e.prototype.trackMetric=function(e){this._addMetric(e)},e.prototype.addDocument=function(e){var t=o.telemetryEnvelopeToQuickPulseDocument(e);t&&this._documents.push(t)},e.prototype.enable=function(e){e&&!this._isEnabled?(this._isEnabled=!0,this._goQuickPulse()):!e&&this._isEnabled&&(this._isEnabled=!1,clearTimeout(this._handle),this._handle=void 0)},e.prototype.enableCollectors=function(e){this._collectors.forEach((function(t){t.enable(e)}))},e.prototype._addMetric=function(e){var t=e.value,n=e.count||1,r=s.PerformanceToQuickPulseCounter[e.name];r&&(this._metrics[r]?(this._metrics[r].Value=(this._metrics[r].Value*this._metrics[r].Weight+t*n)/(this._metrics[r].Weight+n),this._metrics[r].Weight+=n):(this._metrics[r]=o.createQuickPulseMetric(e),this._metrics[r].Name=r,this._metrics[r].Weight=1))},e.prototype._resetQuickPulseBuffer=function(){delete this._metrics,this._metrics={},this._documents.length=0},e.prototype._goQuickPulse=function(){return n(this,void 0,void 0,(function(){var t,n,i,a,s=this;return r(this,(function(r){switch(r.label){case 0:return t=Object.keys(this._metrics).map((function(e){return s._metrics[e]})),n=o.createQuickPulseEnvelope(t,this._documents.slice(),this.config,this.context),this._resetQuickPulseBuffer(),this._isCollectingData?[4,this._post(n)]:[3,2];case 1:return r.sent(),[3,3];case 2:this._ping(n),r.label=3;case 3:return i=this._pollingIntervalHint>0?this._pollingIntervalHint:e.PING_INTERVAL,a=this._isCollectingData?e.POST_INTERVAL:i,this._isCollectingData&&Date.now()-this._lastSuccessTime>=e.MAX_POST_WAIT_TIME&&!this._lastSendSucceeded?(this._isCollectingData=!1,a=e.FALLBACK_INTERVAL):!this._isCollectingData&&Date.now()-this._lastSuccessTime>=e.MAX_PING_WAIT_TIME&&!this._lastSendSucceeded&&(a=e.FALLBACK_INTERVAL),this._lastSendSucceeded=null,this._handle=setTimeout(this._goQuickPulse.bind(this),a),this._handle.unref(),[2]}}))}))},e.prototype._ping=function(e){this._sender.ping(e,this._redirectedHost,this._quickPulseDone.bind(this))},e.prototype._post=function(e){return n(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,this._sender.post(e,this._redirectedHost,this._quickPulseDone.bind(this))];case 1:return t.sent(),[2]}}))}))},e.prototype._quickPulseDone=function(e,t,n,r){null!=e?(this._isCollectingData!==e&&(i.info("Live Metrics sending data",e),this.enableCollectors(e)),this._isCollectingData=e,n&&n.length>0&&(this._redirectedHost=n,i.info("Redirecting endpoint to: ",n)),r&&r>0&&(this._pollingIntervalHint=r),t&&t.statusCode<300&&t.statusCode>=200?(this._lastSuccessTime=Date.now(),this._lastSendSucceeded=!0):this._lastSendSucceeded=!1):this._lastSendSucceeded=!1},e.MAX_POST_WAIT_TIME=2e4,e.MAX_PING_WAIT_TIME=6e4,e.FALLBACK_INTERVAL=6e4,e.PING_INTERVAL=5e3,e.POST_INTERVAL=1e3,e}();t.exports=l})),Jr=_(((e,t)=>{"use strict";var n=Rr(),r=function(){function e(){}return e.parse=function(t){if(!t)return{};var r=t.split(e._FIELDS_SEPARATOR).reduce((function(t,n){var r=n.split(e._FIELD_KEY_VALUE_SEPARATOR);if(2===r.length){var i=r[0].toLowerCase(),o=r[1];t[i]=o}return t}),{});if(Object.keys(r).length>0){if(r.endpointsuffix){var i=r.location?r.location+".":"";r.ingestionendpoint=r.ingestionendpoint||"https://"+i+"dc."+r.endpointsuffix,r.liveendpoint=r.liveendpoint||"https://"+i+"live."+r.endpointsuffix}r.ingestionendpoint=r.ingestionendpoint||n.DEFAULT_BREEZE_ENDPOINT,r.liveendpoint=r.liveendpoint||n.DEFAULT_LIVEMETRICS_ENDPOINT}return r},e._FIELDS_SEPARATOR=";",e._FIELD_KEY_VALUE_SEPARATOR="=",e}();t.exports=r})),Zr=_(((e,t)=>{"use strict";var r=un(),i=Jr(),o=(P(),Rr()),a=n(7310),s=function(){function e(t){var n=this;this.endpointBase=o.DEFAULT_BREEZE_ENDPOINT;var r=process.env[e.ENV_connectionString],s=i.parse(t),c=i.parse(r),l=!s.instrumentationkey&&Object.keys(s).length>0?null:t;this.instrumentationKey=s.instrumentationkey||l||c.instrumentationkey||e._getInstrumentationKey(),e._validateInstrumentationKey(this.instrumentationKey),this.endpointUrl=(s.ingestionendpoint||c.ingestionendpoint||this.endpointBase)+"/v2.1/track",this.maxBatchSize=250,this.maxBatchIntervalMs=15e3,this.disableAppInsights=!1,this.samplingPercentage=100,this.correlationIdRetryIntervalMs=3e4,this.correlationHeaderExcludedDomains=["*.core.windows.net","*.core.chinacloudapi.cn","*.core.cloudapi.de","*.core.usgovcloudapi.net","*.core.microsoft.scloud","*.core.eaglex.ic.gov"],this.setCorrelationId=function(e){return n.correlationId=e},this.proxyHttpUrl=process.env[e.ENV_http_proxy]||void 0,this.proxyHttpsUrl=process.env[e.ENV_https_proxy]||void 0,this.httpAgent=void 0,this.httpsAgent=void 0,this.profileQueryEndpoint=s.ingestionendpoint||c.ingestionendpoint||process.env[e.ENV_profileQueryEndpoint]||this.endpointBase,this._quickPulseHost=s.liveendpoint||c.liveendpoint||process.env[e.ENV_quickPulseHost]||o.DEFAULT_LIVEMETRICS_HOST,this._quickPulseHost.match(/^https?:\/\//)&&(this._quickPulseHost=a.parse(this._quickPulseHost).host)}return Object.defineProperty(e.prototype,"profileQueryEndpoint",{get:function(){return this._profileQueryEndpoint},set:function(e){r.cancelCorrelationIdQuery(this,this.setCorrelationId),this._profileQueryEndpoint=e,this.correlationId=r.correlationIdPrefix,r.queryCorrelationId(this,this.setCorrelationId)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quickPulseHost",{get:function(){return this._quickPulseHost},set:function(e){this._quickPulseHost=e},enumerable:!1,configurable:!0}),e._getInstrumentationKey=function(){var t=process.env[e.ENV_iKey]||process.env[e.ENV_azurePrefix+e.ENV_iKey]||process.env[e.legacy_ENV_iKey]||process.env[e.ENV_azurePrefix+e.legacy_ENV_iKey];if(!t||""==t)throw new Error("Instrumentation key not found, pass the key in the config to this method or set the key in the environment variable APPINSIGHTS_INSTRUMENTATIONKEY before starting the server");return t},e._validateInstrumentationKey=function(e){return new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$").test(e)},e.ENV_azurePrefix="APPSETTING_",e.ENV_iKey="APPINSIGHTS_INSTRUMENTATIONKEY",e.legacy_ENV_iKey="APPINSIGHTS_INSTRUMENTATION_KEY",e.ENV_profileQueryEndpoint="APPINSIGHTS_PROFILE_QUERY_ENDPOINT",e.ENV_quickPulseHost="APPINSIGHTS_QUICKPULSE_HOST",e.ENV_connectionString="APPLICATIONINSIGHTS_CONNECTION_STRING",e.ENV_nativeMetricsDisablers="APPLICATION_INSIGHTS_DISABLE_EXTENDED_METRIC",e.ENV_nativeMetricsDisableAll="APPLICATION_INSIGHTS_DISABLE_ALL_EXTENDED_METRICS",e.ENV_http_proxy="http_proxy",e.ENV_https_proxy="https_proxy",e}();t.exports=s})),ei=_((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.AutoCollectNativePerformance=void 0;var r=Zr(),i=Mr(),o=P(),a=function(){function e(t){this._disabledMetrics={},e.INSTANCE&&e.INSTANCE.dispose(),e.INSTANCE=this,this._client=t}return e.isNodeVersionCompatible=function(){var e=process.versions.node.split(".");return parseInt(e[0])>=6},e.prototype.enable=function(t,r,i){var a=this;if(void 0===r&&(r={}),void 0===i&&(i=6e4),e.isNodeVersionCompatible()){if(null==e._metricsAvailable&&t&&!this._isInitialized)try{var s=n(9166);e._emitter=new s,e._metricsAvailable=!0,o.info("Native metrics module successfully loaded!")}catch{return void(e._metricsAvailable=!1)}this._isEnabled=t,this._disabledMetrics=r,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),this._isEnabled&&e._emitter?(e._emitter.enable(!0,i),this._handle||(this._handle=setInterval((function(){return a._trackNativeMetrics()}),i),this._handle.unref())):e._emitter&&(e._emitter.enable(!1),this._handle&&(clearInterval(this._handle),this._handle=void 0))}},e.prototype.dispose=function(){this.enable(!1)},e.parseEnabled=function(e){var n=process.env[r.ENV_nativeMetricsDisableAll],i=process.env[r.ENV_nativeMetricsDisablers];if(n)return{isEnabled:!1,disabledMetrics:{}};if(i){var o=i.split(","),a={};if(o.length>0)for(var s=0,c=o;s<c.length;s++)a[c[s]]=!0;return"object"==typeof e?{isEnabled:!0,disabledMetrics:t(t({},e),a)}:{isEnabled:e,disabledMetrics:a}}return"boolean"==typeof e?{isEnabled:e,disabledMetrics:{}}:{isEnabled:!0,disabledMetrics:e}},e.prototype._trackNativeMetrics=function(){var e=!0;"object"!=typeof this._isEnabled&&(e=this._isEnabled),e&&(this._trackGarbageCollection(),this._trackEventLoop(),this._trackHeapUsage())},e.prototype._trackGarbageCollection=function(){var t;if(!this._disabledMetrics.gc){var n=e._emitter.getGCData();for(var r in n){var o=n[r].metrics,a=r+" Garbage Collection Duration",s=Math.sqrt(o.sumSquares/o.count-Math.pow(o.total/o.count,2))||0;this._client.trackMetric({name:a,value:o.total,count:o.count,max:o.max,min:o.min,stdDev:s,tagOverrides:(t={},t[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+i.sdkVersion,t)})}}},e.prototype._trackEventLoop=function(){var t;if(!this._disabledMetrics.loop){var n=e._emitter.getLoopData().loopUsage;if(0!=n.count){var r=Math.sqrt(n.sumSquares/n.count-Math.pow(n.total/n.count,2))||0;this._client.trackMetric({name:"Event Loop CPU Time",value:n.total,count:n.count,min:n.min,max:n.max,stdDev:r,tagOverrides:(t={},t[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+i.sdkVersion,t)})}}},e.prototype._trackHeapUsage=function(){var e,t,n;if(!this._disabledMetrics.heap){var r=process.memoryUsage(),o=r.heapUsed,a=r.heapTotal,s=r.rss;this._client.trackMetric({name:"Memory Usage (Heap)",value:o,count:1,tagOverrides:(e={},e[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+i.sdkVersion,e)}),this._client.trackMetric({name:"Memory Total (Heap)",value:a,count:1,tagOverrides:(t={},t[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+i.sdkVersion,t)}),this._client.trackMetric({name:"Memory Usage (Non-Heap)",value:s-a,count:1,tagOverrides:(n={},n[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+i.sdkVersion,n)})}},e}();e.AutoCollectNativePerformance=a})),ti=_(((e,t)=>{"use strict";var n=P(),r=function(){function e(e,t,n,r){this._buffer=[],this._lastSend=0,this._isDisabled=e,this._getBatchSize=t,this._getBatchIntervalMs=n,this._sender=r}return e.prototype.setUseDiskRetryCaching=function(e,t,n){this._sender.setDiskRetryMode(e,t,n)},e.prototype.send=function(e){var t=this;if(!this._isDisabled()){if(!e)return void n.warn("Cannot send null/undefined telemetry");if(this._buffer.push(e),this._buffer.length>=this._getBatchSize())return void this.triggerSend(!1);!this._timeoutHandle&&this._buffer.length>0&&(this._timeoutHandle=setTimeout((function(){t._timeoutHandle=null,t.triggerSend(!1)}),this._getBatchIntervalMs()))}},e.prototype.triggerSend=function(e,t){var n=this._buffer.length<1;n||(e?(this._sender.saveOnCrash(this._buffer),"function"==typeof t&&t("data saved on crash")):this._sender.send(this._buffer,t)),this._lastSend=+new Date,this._buffer=[],clearTimeout(this._timeoutHandle),this._timeoutHandle=null,n&&"function"==typeof t&&t("no data to send")},e}();t.exports=r})),ni=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.azureRoleEnvironmentTelemetryProcessor=void 0,e.azureRoleEnvironmentTelemetryProcessor=function(e,t){process.env.WEBSITE_SITE_NAME&&(e.tags[t.keys.cloudRole]=process.env.WEBSITE_SITE_NAME)}})),ri=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSamplingHashCode=e.samplingTelemetryProcessor=void 0;var t=nr();function n(e){var t=2147483647,n=5381;if(!e)return 0;for(;e.length<8;)e+=e;for(var r=0;r<e.length;r++)n=((n<<5)+n|0)+e.charCodeAt(r)|0;return(n=n<=-2147483648?t:Math.abs(n))/t*100}e.samplingTelemetryProcessor=function(e,r){var i=e.sampleRate;return!!(null==i||i>=100||e.data&&t.TelemetryType.Metric===t.baseTypeToTelemetryType(e.data.baseType))||(r.correlationContext&&r.correlationContext.operation?n(r.correlationContext.operation.id)<i:100*Math.random()<i)},e.getSamplingHashCode=n})),ii=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.performanceMetricsTelemetryProcessor=void 0;var t=Dr(),n=nr();e.performanceMetricsTelemetryProcessor=function(e,r){switch(r&&r.addDocument(e),e.data.baseType){case n.TelemetryTypeString.Exception:t.countException();break;case n.TelemetryTypeString.Request:var i=e.data.baseData;t.countRequest(i.duration,i.success);break;case n.TelemetryTypeString.Dependency:var o=e.data.baseData;t.countDependency(o.duration,o.success)}return!0}})),oi=_((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.preAggregatedMetricsTelemetryProcessor=void 0;var n=nr(),r=jr(),i=nr();e.preAggregatedMetricsTelemetryProcessor=function(e,o){if(r.isEnabled())switch(e.data.baseType){case i.TelemetryTypeString.Exception:var a=e.data.baseData;a.properties=t(t({},a.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Exceptions', Ver:'1.1')"});var s={cloudRoleInstance:e.tags[o.keys.cloudRoleInstance],cloudRoleName:e.tags[o.keys.cloudRole]};r.countException(s);break;case i.TelemetryTypeString.Trace:var c=e.data.baseData;c.properties=t(t({},c.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Traces', Ver:'1.1')"});var l={cloudRoleInstance:e.tags[o.keys.cloudRoleInstance],cloudRoleName:e.tags[o.keys.cloudRole],traceSeverityLevel:n.SeverityLevel[c.severity]};r.countTrace(l);break;case i.TelemetryTypeString.Request:var u=e.data.baseData;u.properties=t(t({},u.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Requests', Ver:'1.1')"});var p={cloudRoleInstance:e.tags[o.keys.cloudRoleInstance],cloudRoleName:e.tags[o.keys.cloudRole],operationSynthetic:e.tags[o.keys.operationSyntheticSource],requestSuccess:u.success,requestResultCode:u.responseCode};r.countRequest(u.duration,p);break;case i.TelemetryTypeString.Dependency:var d=e.data.baseData;d.properties=t(t({},d.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Dependencies', Ver:'1.1')"});var f={cloudRoleInstance:e.tags[o.keys.cloudRoleInstance],cloudRoleName:e.tags[o.keys.cloudRole],operationSynthetic:e.tags[o.keys.operationSyntheticSource],dependencySuccess:d.success,dependencyType:d.type,dependencyTarget:d.target,dependencyResultCode:d.resultCode};r.countDependency(d.duration,f)}return!0}})),ai=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(ni(),e),n(ri(),e),n(ii(),e),n(oi(),e)})),si=_(((e,t)=>{"use strict";var r=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=e&&e.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=n(7147),a=n(2037),s=n(1017),c=n(9796),l=n(2081),u=P(),p=Gr(),d=ln(),f=function(){function e(t,n,r){if(this._redirectedHost=null,this._config=t,this._onSuccess=n,this._onError=r,this._enableDiskRetryMode=!1,this._resendInterval=e.WAIT_BETWEEN_RESEND,this._maxBytesOnDisk=e.MAX_BYTES_ON_DISK,this._numConsecutiveFailures=0,this._numConsecutiveRedirects=0,this._resendTimer=null,this._fileCleanupTimer=null,this._tempDir=s.join(a.tmpdir(),e.TEMPDIR_PREFIX+this._config.instrumentationKey),!e.OS_PROVIDES_FILE_PROTECTION)if(e.USE_ICACLS){try{e.OS_PROVIDES_FILE_PROTECTION=o.existsSync(e.ICACLS_PATH)}catch{}e.OS_PROVIDES_FILE_PROTECTION||u.warn(e.TAG,"Could not find ICACLS in expected location! This is necessary to use disk retry mode on Windows.")}else e.OS_PROVIDES_FILE_PROTECTION=!0}return e.prototype.setDiskRetryMode=function(t,n,r){var i=this;this._enableDiskRetryMode=e.OS_PROVIDES_FILE_PROTECTION&&t,"number"==typeof n&&n>=0&&(this._resendInterval=Math.floor(n)),"number"==typeof r&&r>=0&&(this._maxBytesOnDisk=Math.floor(r)),t&&!e.OS_PROVIDES_FILE_PROTECTION&&(this._enableDiskRetryMode=!1,u.warn(e.TAG,"Ignoring request to enable disk retry mode. Sufficient file protection capabilities were not detected.")),this._enableDiskRetryMode?this._fileCleanupTimer||(this._fileCleanupTimer=setTimeout((function(){i._fileCleanupTask()}),e.CLEANUP_TIMEOUT),this._fileCleanupTimer.unref()):this._fileCleanupTimer&&clearTimeout(this._fileCleanupTimer)},e.prototype.send=function(t,n){return r(this,void 0,void 0,(function(){var r,o,a,s,l=this;return i(this,(function(i){return t&&(r=this._redirectedHost||this._config.endpointUrl,o={method:"POST",withCredentials:!1,headers:{"Content-Type":"application/x-json-stream"}},a="",t.forEach((function(e){var t=l._stringify(e);"string"==typeof t&&(a+=t+"\n")})),a.length>0&&(a=a.substring(0,a.length-1)),s=Buffer.from?Buffer.from(a):new Buffer(a),c.gzip(s,(function(i,a){var c=a;i?(u.warn(i),c=s,o.headers["Content-Length"]=s.length.toString()):(o.headers["Content-Encoding"]="gzip",o.headers["Content-Length"]=a.length.toString()),u.info(e.TAG,o),o[p.disableCollectionRequestOption]=!0;var f=d.makeRequest(l._config,r,o,(function(r){r.setEncoding("utf-8");var i="";r.on("data",(function(e){i+=e})),r.on("end",(function(){if(l._numConsecutiveFailures=0,l._enableDiskRetryMode)if(200===r.statusCode)l._resendTimer||(l._resendTimer=setTimeout((function(){l._resendTimer=null,l._sendFirstFileOnDisk()}),l._resendInterval),l._resendTimer.unref());else if(l._isRetriable(r.statusCode))try{var o=JSON.parse(i),a=[];o.errors.forEach((function(e){l._isRetriable(e.statusCode)&&a.push(t[e.index])})),a.length>0&&l._storeToDisk(a)}catch{l._storeToDisk(t)}if(307===r.statusCode||308===r.statusCode)if(l._numConsecutiveRedirects++,l._numConsecutiveRedirects<10){var s=r.headers.location?r.headers.location.toString():null;s&&(l._redirectedHost=s,l.send(t,n))}else"function"==typeof n&&n("Error sending telemetry because of circular redirects.");else l._numConsecutiveRedirects=0,"function"==typeof n&&n(i),u.info(e.TAG,i),"function"==typeof l._onSuccess&&l._onSuccess(i)}))}));f.on("error",(function(r){if(l._numConsecutiveFailures++,!l._enableDiskRetryMode||l._numConsecutiveFailures>0&&l._numConsecutiveFailures%e.MAX_CONNECTION_FAILURES_BEFORE_WARN==0){var i="Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:";l._enableDiskRetryMode&&(i="Ingestion endpoint could not be reached "+l._numConsecutiveFailures+" consecutive times. There may be resulting telemetry loss. Most recent error:"),u.warn(e.TAG,i,d.dumpObj(r))}else i="Transient failure to reach ingestion endpoint. This batch of telemetry items will be retried. Error:",u.info(e.TAG,i,d.dumpObj(r));l._onErrorHelper(r),"function"==typeof n&&(r&&n(d.dumpObj(r)),n("Error sending telemetry")),l._enableDiskRetryMode&&l._storeToDisk(t)})),f.write(c),f.end()}))),[2]}))}))},e.prototype.saveOnCrash=function(e){this._enableDiskRetryMode&&this._storeToDiskSync(this._stringify(e))},e.prototype._isRetriable=function(e){return 206===e||408===e||429===e||439===e||500===e||503===e},e.prototype._runICACLS=function(t,n){var r=l.spawn(e.ICACLS_PATH,t,{windowsHide:!0});r.on("error",(function(e){return n(e)})),r.on("close",(function(e,t){return n(0===e?null:new Error("Setting ACL restrictions did not succeed (ICACLS returned code "+e+")"))}))},e.prototype._runICACLSSync=function(t){if(!l.spawnSync)throw new Error("Could not synchronously call ICACLS under current version of Node.js");var n=l.spawnSync(e.ICACLS_PATH,t,{windowsHide:!0});if(n.error)throw n.error;if(0!==n.status)throw new Error("Setting ACL restrictions did not succeed (ICACLS returned code "+n.status+")")},e.prototype._getACLIdentity=function(t){if(e.ACL_IDENTITY)return t(null,e.ACL_IDENTITY);var n=l.spawn(e.POWERSHELL_PATH,["-Command","[System.Security.Principal.WindowsIdentity]::GetCurrent().Name"],{windowsHide:!0,stdio:["ignore","pipe","pipe"]}),r="";n.stdout.on("data",(function(e){return r+=e})),n.on("error",(function(e){return t(e,null)})),n.on("close",(function(n,i){return e.ACL_IDENTITY=r&&r.trim(),t(0===n?null:new Error("Getting ACL identity did not succeed (PS returned code "+n+")"),e.ACL_IDENTITY)}))},e.prototype._getACLIdentitySync=function(){if(e.ACL_IDENTITY)return e.ACL_IDENTITY;if(l.spawnSync){var t=l.spawnSync(e.POWERSHELL_PATH,["-Command","[System.Security.Principal.WindowsIdentity]::GetCurrent().Name"],{windowsHide:!0,stdio:["ignore","pipe","pipe"]});if(t.error)throw t.error;if(0!==t.status)throw new Error("Getting ACL identity did not succeed (PS returned code "+t.status+")");return e.ACL_IDENTITY=t.stdout&&t.stdout.toString().trim(),e.ACL_IDENTITY}throw new Error("Could not synchronously get ACL identity under current version of Node.js")},e.prototype._getACLArguments=function(e,t){return[e,"/grant","*S-1-5-32-544:(OI)(CI)F","/grant",t+":(OI)(CI)F","/inheritance:r"]},e.prototype._applyACLRules=function(t,n){var r=this;return e.USE_ICACLS?void 0!==e.ACLED_DIRECTORIES[t]?n(e.ACLED_DIRECTORIES[t]?null:new Error("Setting ACL restrictions did not succeed (cached result)")):(e.ACLED_DIRECTORIES[t]=!1,void this._getACLIdentity((function(i,o){if(i)return e.ACLED_DIRECTORIES[t]=!1,n(i);r._runICACLS(r._getACLArguments(t,o),(function(r){return e.ACLED_DIRECTORIES[t]=!r,n(r)}))}))):n(null)},e.prototype._applyACLRulesSync=function(t){if(e.USE_ICACLS){if(void 0===e.ACLED_DIRECTORIES[t])return this._runICACLSSync(this._getACLArguments(t,this._getACLIdentitySync())),void(e.ACLED_DIRECTORIES[t]=!0);if(!e.ACLED_DIRECTORIES[t])throw new Error("Setting ACL restrictions did not succeed (cached result)")}},e.prototype._confirmDirExists=function(e,t){var n=this;o.lstat(e,(function(r,i){r&&"ENOENT"===r.code?o.mkdir(e,(function(r){r&&"EEXIST"!==r.code?t(r):n._applyACLRules(e,t)})):!r&&i.isDirectory()?n._applyACLRules(e,t):t(r||new Error("Path existed but was not a directory"))}))},e.prototype._getShallowDirectorySize=function(e,t){o.readdir(e,(function(n,r){if(n)return t(n,-1);var i=null,a=0,c=0;if(0!==r.length)for(var l=0;l<r.length;l++)o.stat(s.join(e,r[l]),(function(e,n){c++,e?i=e:n.isFile()&&(a+=n.size),c===r.length&&t(i,i?-1:a)}));else t(null,0)}))},e.prototype._getShallowDirectorySizeSync=function(e){for(var t=o.readdirSync(e),n=0,r=0;r<t.length;r++)n+=o.statSync(s.join(e,t[r])).size;return n},e.prototype._storeToDisk=function(t){var n=this;u.info(e.TAG,"Checking existence of data storage directory: "+this._tempDir),this._confirmDirExists(this._tempDir,(function(r){if(r)return u.warn(e.TAG,"Error while checking/creating directory: "+(r&&r.message)),void n._onErrorHelper(r);n._getShallowDirectorySize(n._tempDir,(function(r,i){if(r||i<0)return u.warn(e.TAG,"Error while checking directory size: "+(r&&r.message)),void n._onErrorHelper(r);if(i>n._maxBytesOnDisk)u.warn(e.TAG,"Not saving data due to max size limit being met. Directory size in bytes is: "+i);else{var a=(new Date).getTime()+".ai.json",c=s.join(n._tempDir,a);u.info(e.TAG,"saving data to disk at: "+c),o.writeFile(c,n._stringify(t),{mode:384},(function(e){return n._onErrorHelper(e)}))}}))}))},e.prototype._storeToDiskSync=function(t){try{u.info(e.TAG,"Checking existence of data storage directory: "+this._tempDir),o.existsSync(this._tempDir)||o.mkdirSync(this._tempDir),this._applyACLRulesSync(this._tempDir);var n=this._getShallowDirectorySizeSync(this._tempDir);if(n>this._maxBytesOnDisk)return void u.info(e.TAG,"Not saving data due to max size limit being met. Directory size in bytes is: "+n);var r=(new Date).getTime()+".ai.json",i=s.join(this._tempDir,r);u.info(e.TAG,"saving data before crash to disk at: "+i),o.writeFileSync(i,t,{mode:384})}catch(t){u.warn(e.TAG,"Error while saving data to disk: "+(t&&t.message)),this._onErrorHelper(t)}},e.prototype._sendFirstFileOnDisk=function(){var e=this;o.exists(this._tempDir,(function(t){t&&o.readdir(e._tempDir,(function(t,n){if(t)e._onErrorHelper(t);else if((n=n.filter((function(e){return s.basename(e).indexOf(".ai.json")>-1}))).length>0){var r=n[0],i=s.join(e._tempDir,r);o.readFile(i,(function(t,n){t?e._onErrorHelper(t):o.unlink(i,(function(t){if(t)e._onErrorHelper(t);else try{var r=JSON.parse(n.toString());e.send(r)}catch(e){u.warn("Failed to read persisted file",e)}}))}))}}))}))},e.prototype._onErrorHelper=function(e){"function"==typeof this._onError&&this._onError(e)},e.prototype._stringify=function(e){try{return JSON.stringify(e)}catch(t){u.warn("Failed to serialize payload",t,e)}},e.prototype._fileCleanupTask=function(){var t=this;o.exists(this._tempDir,(function(n){n&&o.readdir(t._tempDir,(function(n,r){n?t._onErrorHelper(n):(r=r.filter((function(e){return s.basename(e).indexOf(".ai.json")>-1}))).length>0&&r.forEach((function(n){var r=new Date(parseInt(n.split(".ai.json")[0]));if(new Date(+new Date-e.FILE_RETEMPTION_PERIOD)>r){var i=s.join(t._tempDir,n);o.unlink(i,(function(e){e&&t._onErrorHelper(e)}))}}))}))}))},e.TAG="Sender",e.ICACLS_PATH=process.env.systemdrive+"/windows/system32/icacls.exe",e.POWERSHELL_PATH=process.env.systemdrive+"/windows/system32/windowspowershell/v1.0/powershell.exe",e.ACLED_DIRECTORIES={},e.ACL_IDENTITY=null,e.WAIT_BETWEEN_RESEND=6e4,e.MAX_BYTES_ON_DISK=52428800,e.MAX_CONNECTION_FAILURES_BEFORE_WARN=5,e.CLEANUP_TIMEOUT=36e5,e.FILE_RETEMPTION_PERIOD=6048e5,e.TEMPDIR_PREFIX="appInsights-node",e.OS_PROVIDES_FILE_PROTECTION=!1,e.USE_ICACLS="Windows_NT"===a.type(),e}();t.exports=f})),ci=_(((e,t)=>{"use strict";var n=nr(),r=ln(),i=Tr(),o=function(){function e(){}return e.createEnvelope=function(t,i,o,a,s){var c=null;switch(i){case n.TelemetryType.Trace:c=e.createTraceData(t);break;case n.TelemetryType.Dependency:c=e.createDependencyData(t);break;case n.TelemetryType.Event:c=e.createEventData(t);break;case n.TelemetryType.Exception:c=e.createExceptionData(t);break;case n.TelemetryType.Request:c=e.createRequestData(t);break;case n.TelemetryType.Metric:c=e.createMetricData(t);break;case n.TelemetryType.Availability:c=e.createAvailabilityData(t);break;case n.TelemetryType.PageView:c=e.createPageViewData(t)}if(o&&n.domainSupportsProperties(c.baseData)){if(c&&c.baseData)if(c.baseData.properties)for(var l in o)c.baseData.properties[l]||(c.baseData.properties[l]=o[l]);else c.baseData.properties=o;c.baseData.properties=r.validateStringMap(c.baseData.properties)}var u=s&&s.instrumentationKey||"",p=new n.Envelope;return p.data=c,p.iKey=u,p.name="Microsoft.ApplicationInsights."+u.replace(/-/g,"")+"."+c.baseType.substr(0,c.baseType.length-4),p.tags=this.getTags(a,t.tagOverrides),p.time=(new Date).toISOString(),p.ver=1,p.sampleRate=s?s.samplingPercentage:100,i===n.TelemetryType.Metric&&(p.sampleRate=100),p},e.createTraceData=function(e){var t=new n.MessageData;t.message=e.message,t.properties=e.properties,isNaN(e.severity)?t.severityLevel=n.SeverityLevel.Information:t.severityLevel=e.severity;var r=new n.Data;return r.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Trace),r.baseData=t,r},e.createDependencyData=function(e){var t=new n.RemoteDependencyData;"string"==typeof e.name&&(t.name=e.name.length>1024?e.name.slice(0,1021)+"...":e.name),t.data=e.data,t.target=e.target,t.duration=r.msToTimeSpan(e.duration),t.success=e.success,t.type=e.dependencyTypeName,t.properties=e.properties,t.resultCode=e.resultCode?e.resultCode+"":"",e.id?t.id=e.id:t.id=r.w3cTraceId();var i=new n.Data;return i.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Dependency),i.baseData=t,i},e.createEventData=function(e){var t=new n.EventData;t.name=e.name,t.properties=e.properties,t.measurements=e.measurements;var r=new n.Data;return r.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Event),r.baseData=t,r},e.createExceptionData=function(e){var t=new n.ExceptionData;t.properties=e.properties,isNaN(e.severity)?t.severityLevel=n.SeverityLevel.Error:t.severityLevel=e.severity,t.measurements=e.measurements,t.exceptions=[];var i=e.exception.stack,o=new n.ExceptionDetails;o.message=e.exception.message,o.typeName=e.exception.name,o.parsedStack=this.parseStack(i),o.hasFullStack=r.isArray(o.parsedStack)&&o.parsedStack.length>0,t.exceptions.push(o);var a=new n.Data;return a.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Exception),a.baseData=t,a},e.createRequestData=function(e){var t=new n.RequestData;e.id?t.id=e.id:t.id=r.w3cTraceId(),t.name=e.name,t.url=e.url,t.source=e.source,t.duration=r.msToTimeSpan(e.duration),t.responseCode=e.resultCode?e.resultCode+"":"",t.success=e.success,t.properties=e.properties;var i=new n.Data;return i.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Request),i.baseData=t,i},e.createMetricData=function(e){var t=new n.MetricData;t.metrics=[];var r=new n.DataPoint;r.count=isNaN(e.count)?1:e.count,r.kind=n.DataPointType.Aggregation,r.max=isNaN(e.max)?e.value:e.max,r.min=isNaN(e.min)?e.value:e.min,r.name=e.name,r.stdDev=isNaN(e.stdDev)?0:e.stdDev,r.value=e.value,t.metrics.push(r),t.properties=e.properties;var i=new n.Data;return i.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Metric),i.baseData=t,i},e.createAvailabilityData=function(e){var t=new n.AvailabilityData;e.id?t.id=e.id:t.id=r.w3cTraceId(),t.name=e.name,t.duration=r.msToTimeSpan(e.duration),t.success=e.success,t.runLocation=e.runLocation,t.message=e.message,t.measurements=e.measurements,t.properties=e.properties;var i=new n.Data;return i.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Availability),i.baseData=t,i},e.createPageViewData=function(e){var t=new n.PageViewData;t.name=e.name,t.duration=r.msToTimeSpan(e.duration),t.url=e.url,t.measurements=e.measurements,t.properties=e.properties;var i=new n.Data;return i.baseType=n.telemetryTypeToBaseType(n.TelemetryType.PageView),i.baseData=t,i},e.getTags=function(e,t){var n=i.CorrelationContextManager.getCurrentContext(),r={};if(e&&e.tags)for(var o in e.tags)r[o]=e.tags[o];if(t)for(var o in t)r[o]=t[o];return n&&(r[e.keys.operationId]=r[e.keys.operationId]||n.operation.id,r[e.keys.operationName]=r[e.keys.operationName]||n.operation.name,r[e.keys.operationParentId]=r[e.keys.operationParentId]||n.operation.parentId),r},e.parseStack=function(e){var t=void 0;if("string"==typeof e){var n=e.split("\n");t=[];for(var r=0,i=0,o=0;o<=n.length;o++){var s=n[o];if(a.regex.test(s)){var c=new a(n[o],r++);i+=c.sizeInBytes,t.push(c)}}if(i>32768)for(var l=0,u=t.length-1,p=0,d=l,f=u;l<u;){if((p+=t[l].sizeInBytes+t[u].sizeInBytes)>32768){var h=f-d+1;t.splice(d,h);break}d=l,f=u,l++,u--}}return t},e}(),a=function(){function e(t,n){this.sizeInBytes=0,this.level=n,this.method="<no_method>",this.assembly=r.trim(t);var i=t.match(e.regex);i&&i.length>=5&&(this.method=r.trim(i[2])||this.method,this.fileName=r.trim(i[4])||"<no_filename>",this.line=parseInt(i[5])||0),this.sizeInBytes+=this.method.length,this.sizeInBytes+=this.fileName.length,this.sizeInBytes+=this.assembly.length,this.sizeInBytes+=e.baseSize,this.sizeInBytes+=this.level.toString().length,this.sizeInBytes+=this.line.toString().length}return e.regex=/^(\s+at)?(.*?)(\@|\s\(|\s)([^\(\n]+):(\d+):(\d+)(\)?)$/,e.baseSize=58,e}();t.exports=o})),li=_(((e,t)=>{"use strict";var r=n(7310),i=Zr(),o=Mr(),a=nr(),s=ti(),c=ai(),l=Tr(),u=si(),p=ln(),d=P(),f=ci(),h=function(){function e(e){this._telemetryProcessors=[],this._enableAzureProperties=!1;var t=new i(e);this.config=t,this.context=new o,this.commonProperties={};var n=new u(this.config);this.channel=new s((function(){return t.disableAppInsights}),(function(){return t.maxBatchSize}),(function(){return t.maxBatchIntervalMs}),n)}return e.prototype.trackAvailability=function(e){this.track(e,a.TelemetryType.Availability)},e.prototype.trackPageView=function(e){this.track(e,a.TelemetryType.PageView)},e.prototype.trackTrace=function(e){this.track(e,a.TelemetryType.Trace)},e.prototype.trackMetric=function(e){this.track(e,a.TelemetryType.Metric)},e.prototype.trackException=function(e){e&&e.exception&&!p.isError(e.exception)&&(e.exception=new Error(e.exception.toString())),this.track(e,a.TelemetryType.Exception)},e.prototype.trackEvent=function(e){this.track(e,a.TelemetryType.Event)},e.prototype.trackRequest=function(e){this.track(e,a.TelemetryType.Request)},e.prototype.trackDependency=function(e){e&&!e.target&&e.data&&(e.target=r.parse(e.data).host),this.track(e,a.TelemetryType.Dependency)},e.prototype.flush=function(e){this.channel.triggerSend(!!e&&!!e.isAppCrashing,e?e.callback:void 0)},e.prototype.track=function(e,t){if(e&&a.telemetryTypeToBaseType(t)){var n=f.createEnvelope(e,t,this.commonProperties,this.context,this.config);e.time&&(n.time=e.time.toISOString()),this._enableAzureProperties&&c.azureRoleEnvironmentTelemetryProcessor(n,this.context);var r=this.runTelemetryProcessors(n,e.contextObjects);r=r&&c.samplingTelemetryProcessor(n,{correlationContext:l.CorrelationContextManager.getCurrentContext()}),c.preAggregatedMetricsTelemetryProcessor(n,this.context),r&&(c.performanceMetricsTelemetryProcessor(n,this.quickPulseClient),this.channel.send(n))}else d.warn("track() requires telemetry object and telemetryType to be specified.")},e.prototype.setAutoPopulateAzureProperties=function(e){this._enableAzureProperties=e},e.prototype.addTelemetryProcessor=function(e){this._telemetryProcessors.push(e)},e.prototype.clearTelemetryProcessors=function(){this._telemetryProcessors=[]},e.prototype.runTelemetryProcessors=function(e,t){var n=!0,r=this._telemetryProcessors.length;if(0===r)return n;(t=t||{}).correlationContext=l.CorrelationContextManager.getCurrentContext();for(var i=0;i<r;++i)try{var o=this._telemetryProcessors[i];if(o&&!1===o.apply(null,[e,t])){n=!1;break}}catch(t){n=!0,d.warn("One of telemetry processors failed, telemetry item will be sent.",t,e)}return n&&(e&&e.tags&&(e.tags=p.validateStringMap(e.tags)),e&&e.data&&e.data.baseData&&e.data.baseData.properties&&(e.data.baseData.properties=p.validateStringMap(e.data.baseData.properties))),n},e}();t.exports=h})),ui=_(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=li(),o=Wr(),a=Gr(),s=P(),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.trackNodeHttpRequestSync=function(e){e&&e.request&&e.response&&e.duration?o.trackRequestSync(this,e):s.warn("trackNodeHttpRequestSync requires NodeHttpRequestTelemetry object with request, response and duration specified.")},t.prototype.trackNodeHttpRequest=function(e){(e.duration||e.error)&&s.warn("trackNodeHttpRequest will ignore supplied duration and error parameters. These values are collected from the request and response objects."),e&&e.request&&e.response?o.trackRequest(this,e):s.warn("trackNodeHttpRequest requires NodeHttpRequestTelemetry object with request and response specified.")},t.prototype.trackNodeHttpDependency=function(e){e&&e.request?a.trackRequest(this,e):s.warn("trackNodeHttpDependency requires NodeHttpDependencyTelemetry object with request specified.")},t}(i);t.exports=c})),pi=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),di=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dispose=e.Configuration=e.wrapWithCorrelationContext=e.startOperation=e.getCorrelationContext=e.start=e.setup=e.liveMetricsClient=e.defaultClient=e.DistributedTracingModes=void 0;var t,n,r=Tr(),i=Or(),o=Nr(),a=Dr(),s=jr(),c=$r(),l=Gr(),u=Wr(),p=un(),d=P(),f=Yr(),h=ei();e.TelemetryClient=ui(),e.Contracts=nr(),e.azureFunctionsTypes=pi(),(n=t=e.DistributedTracingModes||(e.DistributedTracingModes={}))[n.AI=0]="AI",n[n.AI_AND_W3C=1]="AI_AND_W3C";var m,v,g,b,y,_,x,w,E,A,S,T=!0,C=!1,I=!0,O=!0,N=!0,R=!1,D=!0,k=!0,L=!0,j=!0,M=!1,z=!0,V=void 0,B=void 0,F=!1;function U(){return e.defaultClient?(F=!0,g.enable(T,C),b.enable(I),y.enable(O),_.enable(N),x.enable(R,e.defaultClient.config),w.enable(z,v),E.useAutoCorrelation(j,m),E.enable(D),A.enable(k),e.liveMetricsClient&&M&&e.liveMetricsClient.enable(M)):d.warn("Start cannot be called before setup"),q}e.setup=function(t){return e.defaultClient?d.info("The default client is already setup"):(e.defaultClient=new e.TelemetryClient(t),g=new i(e.defaultClient),b=new o(e.defaultClient),y=new a(e.defaultClient),_=new s(e.defaultClient),x=new c(e.defaultClient),E=new u(e.defaultClient),A=new l(e.defaultClient),w||(w=new h.AutoCollectNativePerformance(e.defaultClient))),e.defaultClient&&e.defaultClient.channel&&e.defaultClient.channel.setUseDiskRetryCaching(L,V,B),q},e.start=U,e.getCorrelationContext=function(){return j?r.CorrelationContextManager.getCurrentContext():null},e.startOperation=function(e,t){return r.CorrelationContextManager.startOperation(e,t)},e.wrapWithCorrelationContext=function(e,t){return r.CorrelationContextManager.wrapCallback(e,t)};var q=function(){function n(){}return n.setDistributedTracingMode=function(e){return p.w3cEnabled=e===t.AI_AND_W3C,n},n.setAutoCollectConsole=function(e,t){return void 0===t&&(t=!1),T=e,C=t,F&&g.enable(e,t),n},n.setAutoCollectExceptions=function(e){return I=e,F&&b.enable(e),n},n.setAutoCollectPerformance=function(e,t){void 0===t&&(t=!0),O=e;var r=h.AutoCollectNativePerformance.parseEnabled(t);return z=r.isEnabled,v=r.disabledMetrics,F&&(y.enable(e),w.enable(r.isEnabled,r.disabledMetrics)),n},n.setAutoCollectPreAggregatedMetrics=function(e){return N=e,F&&_.enable(e),n},n.setAutoCollectHeartbeat=function(t){return R=t,F&&x.enable(t,e.defaultClient.config),n},n.setAutoCollectRequests=function(e){return D=e,F&&E.enable(e),n},n.setAutoCollectDependencies=function(e){return k=e,F&&A.enable(e),n},n.setAutoDependencyCorrelation=function(e,t){return j=e,m=t,F&&E.useAutoCorrelation(e,t),n},n.setUseDiskRetryCaching=function(t,r,i){return L=t,V=r,B=i,e.defaultClient&&e.defaultClient.channel&&e.defaultClient.channel.setUseDiskRetryCaching(t,r,i),n},n.setInternalLogging=function(e,t){return void 0===e&&(e=!1),void 0===t&&(t=!0),d.enableDebug=e,d.disableWarnings=!t,n},n.setSendLiveMetrics=function(t){return void 0===t&&(t=!1),e.defaultClient?(!e.liveMetricsClient&&t?(e.liveMetricsClient=new f(e.defaultClient.config,null),S=new a(e.liveMetricsClient,1e3,!0),e.liveMetricsClient.addCollector(S),e.defaultClient.quickPulseClient=e.liveMetricsClient):e.liveMetricsClient&&e.liveMetricsClient.enable(t),M=t,n):(d.warn("Live metrics client cannot be setup without the default client"),n)},n.start=U,n}();e.Configuration=q,e.dispose=function(){p.w3cEnabled=!0,e.defaultClient=null,F=!1,g&&g.dispose(),b&&b.dispose(),y&&y.dispose(),_&&_.dispose(),x&&x.dispose(),w&&w.dispose(),E&&E.dispose(),A&&A.dispose(),e.liveMetricsClient&&(e.liveMetricsClient.enable(!1),M=!1,e.liveMetricsClient=void 0)}})),fi={};((e,t)=>{for(var n in t)c(e,n,{get:t[n],enumerable:!0})})(fi,{default:()=>yi}),e.exports=(a=fi,x(c({},"__esModule",{value:!0}),a));var hi=w(n(2037)),mi=w(n(9496)),vi=w(n(5687)),gi=class{constructor(e){this.vscodeAPI=e}getTelemetryLevel(){try{let e=this.vscodeAPI.env.telemetryConfiguration;return e.isUsageEnabled&&e.isErrorsEnabled&&e.isCrashEnabled?"on":e.isErrorsEnabled&&e.isCrashEnabled?"error":"off"}catch{return void 0!==this.vscodeAPI.env.isTelemetryEnabled?this.vscodeAPI.env.isTelemetryEnabled?"on":"off":this.vscodeAPI.workspace.getConfiguration("telemetry").get("enableTelemetry")?"on":"off"}}static applyReplacements(e,t){for(let n of Object.keys(e))for(let r of t)r.lookup.test(n)&&(void 0!==r.replacementString?e[n]=r.replacementString:delete e[n])}static shouldUseOneDataSystemSDK(e){return 74===e.length&&"-"===e[32]&&"-"===e[41]&&"-"===e[46]&&"-"===e[51]&&"-"===e[56]&&"-"===e[69]}static getInstance(e){return gi._instance||(gi._instance=new gi(e)),gi._instance}},bi=class{constructor(e,t,n,r,i,o){this.extensionId=e,this.extensionVersion=t,this.telemetryAppender=n,this.osShim=r,this.vscodeAPI=i,this.firstParty=!1,this.userOptIn=!1,this.errorOptIn=!1,this.disposables=[],this.firstParty=!!o,this.updateUserOptStatus(),void 0!==i.env.onDidChangeTelemetryEnabled?(this.disposables.push(i.env.onDidChangeTelemetryEnabled((()=>this.updateUserOptStatus()))),this.disposables.push(i.workspace.onDidChangeConfiguration((()=>this.updateUserOptStatus())))):this.disposables.push(i.workspace.onDidChangeConfiguration((()=>this.updateUserOptStatus())))}updateUserOptStatus(){let e=gi.getInstance(this.vscodeAPI).getTelemetryLevel();this.userOptIn="on"===e,this.errorOptIn="error"===e||this.userOptIn,(this.userOptIn||this.errorOptIn)&&this.telemetryAppender.instantiateAppender()}cleanRemoteName(e){if(!e)return"none";let t="other";return["ssh-remote","dev-container","attached-container","wsl","codespaces"].forEach((n=>{0===e.indexOf(`${n}`)&&(t=n)})),t}get extension(){return void 0===this._extension&&(this._extension=this.vscodeAPI.extensions.getExtension(this.extensionId)),this._extension}cloneAndChange(e,t){if(null===e||"object"!=typeof e||"function"!=typeof t)return e;let n={};for(let r in e)n[r]=t(r,e[r]);return n}shouldSendErrorTelemetry(){return!(!1===this.errorOptIn||this.firstParty&&this.vscodeAPI.env.remoteName&&"other"===this.cleanRemoteName(this.vscodeAPI.env.remoteName))}getCommonProperties(){let e={};if(e["common.os"]=this.osShim.platform,e["common.nodeArch"]=this.osShim.architecture,e["common.platformversion"]=(this.osShim.release||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),e["common.extname"]=this.extensionId,e["common.extversion"]=this.extensionVersion,this.vscodeAPI&&this.vscodeAPI.env){switch(e["common.vscodemachineid"]=this.vscodeAPI.env.machineId,e["common.vscodesessionid"]=this.vscodeAPI.env.sessionId,e["common.vscodeversion"]=this.vscodeAPI.version,e["common.isnewappinstall"]=this.vscodeAPI.env.isNewAppInstall?this.vscodeAPI.env.isNewAppInstall.toString():"false",e["common.product"]=this.vscodeAPI.env.appHost,this.vscodeAPI.env.uiKind){case this.vscodeAPI.UIKind.Web:e["common.uikind"]="web";break;case this.vscodeAPI.UIKind.Desktop:e["common.uikind"]="desktop";break;default:e["common.uikind"]="unknown"}e["common.remotename"]=this.cleanRemoteName(this.vscodeAPI.env.remoteName)}return e}anonymizeFilePaths(e,t){let n;if(null==e)return"";let r=[];""!==this.vscodeAPI.env.appRoot&&r.push(new RegExp(this.vscodeAPI.env.appRoot.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi")),this.extension&&r.push(new RegExp(this.extension.extensionPath.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi"));let i=e;if(t){let t=[];for(let i of r)for(;(n=i.exec(e))&&n;)t.push([n.index,i.lastIndex]);let o=/^[\\/]?(node_modules|node_modules\.asar)[\\/]/,a=/(file:\/\/)?([a-zA-Z]:(\\\\|\\|\/)|(\\\\|\\|\/))?([\w-._]+(\\\\|\\|\/))+[\w-._]*/g,s=0;for(i="";(n=a.exec(e))&&n;)n[0]&&!o.test(n[0])&&t.every((([e,t])=>n.index<e||n.index>=t))&&(i+=e.substring(s,n.index)+"<REDACTED: user-file-path>",s=a.lastIndex);s<e.length&&(i+=e.substr(s))}for(let e of r)i=i.replace(e,"");return i}removePropertiesWithPossibleUserInfo(e){if("object"!=typeof e)return;let t={};for(let n of Object.keys(e)){let r=e[n];if(!r)continue;let i=/@[a-zA-Z0-9-.]+/,o=/xox[pbaors]-[a-zA-Z0-9]+-[a-zA-Z0-9-]+?/;/(key|token|sig|signature|password|passwd|pwd|android:value)[^a-zA-Z0-9]/.test(r.toLowerCase())?t[n]="<REDACTED: secret>":i.test(r)?t[n]="<REDACTED: email>":o.test(r)?t[n]="<REDACTED: token>":t[n]=r}return t}get telemetryLevel(){switch(gi.getInstance(this.vscodeAPI).getTelemetryLevel()){case"on":return"all";case"error":return"error";case"off":return"off"}}internalSendTelemetryEvent(e,t,n,r,i){if((this.userOptIn||i)&&""!==e){if(t=b(b({},t),this.getCommonProperties()),r){let e=this.cloneAndChange(t,((e,t)=>this.anonymizeFilePaths(t,this.firstParty)));t=this.removePropertiesWithPossibleUserInfo(e)}t=t??{},n=n??{},e=`${this.extensionId}/${e}`,this.telemetryAppender.logEvent(e,{properties:t,measurements:n})}}sendTelemetryEvent(e,t,n){this.internalSendTelemetryEvent(e,t,n,!0,!1)}sendRawTelemetryEvent(e,t,n){this.internalSendTelemetryEvent(e,t,n,!1,!1)}sendDangerousTelemetryEvent(e,t,n,r=!0){this.telemetryAppender.instantiateAppender(),this.internalSendTelemetryEvent(e,t,n,r,!0)}internalSendTelemetryErrorEvent(e,t,n,r,i){if((this.shouldSendErrorTelemetry()||i)&&""!==e){if(t=b(b({},t),this.getCommonProperties()),r){let e=this.cloneAndChange(t,((e,t)=>this.anonymizeFilePaths(t,this.firstParty)));t=this.removePropertiesWithPossibleUserInfo(e)}t=t??{},n=n??{},e=`${this.extensionId}/${e}`,this.telemetryAppender.logEvent(e,{properties:t,measurements:n})}}sendTelemetryErrorEvent(e,t,n){this.internalSendTelemetryErrorEvent(e,t,n,!0,!1)}sendDangerousTelemetryErrorEvent(e,t,n,r=!0){this.telemetryAppender.instantiateAppender(),this.internalSendTelemetryErrorEvent(e,t,n,r,!0)}internalSendTelemetryException(e,t,n,r,i){if((this.shouldSendErrorTelemetry()||i)&&e){if(t=b(b({},t),this.getCommonProperties()),r){let n=this.cloneAndChange(t,((e,t)=>this.anonymizeFilePaths(t,this.firstParty)));e.stack&&(e.stack=this.anonymizeFilePaths(e.stack,this.firstParty)),t=this.removePropertiesWithPossibleUserInfo(n)}t=t??{},n=n??{},this.telemetryAppender.logException(e,{properties:t,measurements:n})}}sendTelemetryException(e,t,n){this.internalSendTelemetryException(e,t,n,!0,!1)}sendDangerousTelemetryException(e,t,n,r=!0){this.telemetryAppender.instantiateAppender(),this.internalSendTelemetryException(e,t,n,r,!0)}dispose(){return this.telemetryAppender.flush(),Promise.all(this.disposables.map((e=>e.dispose())))}},yi=class extends bi{constructor(e,t,n,r,i){let o=e=>(async(e,t)=>{let n;try{process.env.APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL="1";let t=await Promise.resolve().then((()=>w(di())));t.defaultClient?(n=new t.TelemetryClient(e),n.channel.setUseDiskRetryCaching(!0)):(t.setup(e).setAutoCollectRequests(!1).setAutoCollectPerformance(!1).setAutoCollectExceptions(!1).setAutoCollectDependencies(!1).setAutoDependencyCorrelation(!1).setAutoCollectConsole(!1).setAutoCollectHeartbeat(!1).setUseDiskRetryCaching(!0).start(),n=t.defaultClient),mi&&mi.env&&(n.context.tags[n.context.keys.userId]=mi.env.machineId,n.context.tags[n.context.keys.sessionId]=mi.env.sessionId,n.context.tags[n.context.keys.cloudRole]=mi.env.appName,n.context.tags[n.context.keys.cloudRoleInstance]=mi.env.appName),e&&0===e.indexOf("AIF-")&&(n.config.endpointUrl="https://mobile.events.data.microsoft.com/collect/v1")}catch(e){return Promise.reject("Failed to initialize app insights!\n"+e.message)}return null!=t&&t.length&&function(e,t){e.addTelemetryProcessor((e=>(Array.isArray(e.tags)?e.tags.forEach((e=>gi.applyReplacements(e,t))):e.tags&&gi.applyReplacements(e.tags,t),e.data.baseData&&gi.applyReplacements(e.data.baseData,t),!0)))}(n,t),{logEvent:(e,t)=>{try{null==n||n.trackEvent({name:e,properties:null==t?void 0:t.properties,measurements:null==t?void 0:t.measurements})}catch(e){throw new Error("Failed to log event to app insights!\n"+e.message)}},logException:(e,t)=>{try{null==n||n.trackException({exception:e,properties:null==t?void 0:t.properties,measurements:null==t?void 0:t.measurements})}catch(e){throw new Error("Failed to log exception to app insights!\n"+e.message)}},flush:async()=>{try{null==n||n.flush()}catch(e){throw new Error("Failed to flush app insights!\n"+e.message)}}}})(e,i);gi.shouldUseOneDataSystemSDK(n)&&(o=e=>(async(e,t,n)=>{let r=await(async(e,t,n)=>{let r=await Promise.resolve().then((()=>w(T()))),i=await Promise.resolve().then((()=>w(I()))),o=new r.AppInsightsCore,a=new i.PostChannel,s={instrumentationKey:e,endpointUrl:"https://mobile.events.data.microsoft.com/OneCollector/1.0",loggingLevelTelemetry:0,loggingLevelConsole:0,disableCookiesUsage:!0,disableDbgExt:!0,disableInstrumentationKeyValidation:!0,channels:[[a]]};if(n){s.extensionConfig={};let e={alwaysUseXhrOverride:!0,httpXHROverride:n};s.extensionConfig[a.identifier]=e}let c=t.workspace.getConfiguration("telemetry").get("internalTesting");return o.initialize(s,[]),o.addTelemetryInitializer((e=>{!c||(e.ext=e.ext??{},e.ext.utc=e.ext.utc??{},e.ext.utc.flags=8462029)})),o})(e,t,n);return{logEvent:(e,t)=>{try{null==r||r.track({name:e,baseData:{name:e,properties:null==t?void 0:t.properties,measurements:null==t?void 0:t.measurements}})}catch(e){throw new Error("Failed to log event to app insights!\n"+e.message)}},logException:(e,t)=>{throw new Error("1DS SDK does not support logging exceptions, please use logEvent for exception tracking")},flush:async()=>{try{null==r||r.unload()}catch(e){throw new Error("Failed to flush app insights!\n"+e.message)}}}})(e,mi,{sendPOST:(e,t)=>{let n={method:"POST",headers:y(b({},e.headers),{"Content-Type":"application/json","Content-Length":Buffer.byteLength(e.data)})};try{let r=vi.request(e.urlString,n,(e=>{e.on("data",(function(n){t(e.statusCode??200,e.headers,n.toString())})),e.on("error",(function(){t(0,{})}))}));r.write(e.data),r.end()}catch{t(0,{})}}}));let a=new class{constructor(e,t){this._instantiationStatus=0,this._eventQueue=[],this._exceptionQueue=[],this._clientFactory=t,this._key=e}logEvent(e,t){this._telemetryClient?this._telemetryClient.logEvent(e,t):2!==this._instantiationStatus&&this._eventQueue.push({eventName:e,data:t})}logException(e,t){this._telemetryClient?this._telemetryClient.logException(e,t):2!==this._instantiationStatus&&this._exceptionQueue.push({exception:e,data:t})}async flush(){this._telemetryClient&&(await this._telemetryClient.flush(),this._telemetryClient=void 0)}_flushQueues(){this._eventQueue.forEach((({eventName:e,data:t})=>this.logEvent(e,t))),this._eventQueue=[],this._exceptionQueue.forEach((({exception:e,data:t})=>this.logException(e,t))),this._exceptionQueue=[]}instantiateAppender(){0===this._instantiationStatus&&(this._instantiationStatus=1,this._clientFactory(this._key).then((e=>{this._telemetryClient=e,this._instantiationStatus=2,this._flushQueues()})).catch((e=>{console.error(e),this._instantiationStatus=2})))}}(n,o);n&&(0===n.indexOf("AIF-")||gi.shouldUseOneDataSystemSDK(n))&&(r=!0),super(e,t,a,{release:hi.release(),platform:hi.platform(),architecture:hi.arch()},mi,r)}}},5029:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=5029,e.exports=t},3437:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=3437,e.exports=t},9118:(e,t,n)=>{e.exports={parallel:n(9162),serial:n(1357),serialOrdered:n(9087)}},7651:e=>{function t(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}e.exports=function(e){Object.keys(e.jobs).forEach(t.bind(e)),e.jobs={}}},5912:(e,t,n)=>{var r=n(9265);e.exports=function(e){var t=!1;return r((function(){t=!0})),function(n,i){t?e(n,i):r((function(){e(n,i)}))}}},9265:e=>{e.exports=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)}},7594:(e,t,n)=>{var r=n(5912),i=n(7651);e.exports=function(e,t,n,o){var a=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[a]=function(e,t,n,i){return 2==e.length?e(n,r(i)):e(n,t,r(i))}(t,a,e[a],(function(e,t){a in n.jobs&&(delete n.jobs[a],e?i(n):n.results[a]=t,o(e,n.results))}))}},4528:e=>{e.exports=function(e,t){var n=!Array.isArray(e),r={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};return t&&r.keyedList.sort(n?t:function(n,r){return t(e[n],e[r])}),r}},5353:(e,t,n)=>{var r=n(7651),i=n(5912);e.exports=function(e){Object.keys(this.jobs).length&&(this.index=this.size,r(this),i(e)(null,this.results))}},9162:(e,t,n)=>{var r=n(7594),i=n(4528),o=n(5353);e.exports=function(e,t,n){for(var a=i(e);a.index<(a.keyedList||e).length;)r(e,t,a,(function(e,t){e?n(e,t):0!==Object.keys(a.jobs).length||n(null,a.results)})),a.index++;return o.bind(a,n)}},1357:(e,t,n)=>{var r=n(9087);e.exports=function(e,t,n){return r(e,t,null,n)}},9087:(e,t,n)=>{var r=n(7594),i=n(4528),o=n(5353);function a(e,t){return e<t?-1:e>t?1:0}e.exports=function(e,t,n,a){var s=i(e,n);return r(e,t,s,(function n(i,o){i?a(i,o):(s.index++,s.index<(s.keyedList||e).length?r(e,t,s,n):a(null,s.results))})),o.bind(s,a)},e.exports.ascending=a,e.exports.descending=function(e,t){return-1*a(e,t)}},9669:(e,t,n)=>{e.exports=n(1609)},7970:(e,t,n)=>{"use strict";var r=n(4867),i=n(6026),o=n(4097),a=n(5327),s=n(3685),c=n(5687),l=n(938).http,u=n(938).https,p=n(7310),d=n(9796),f=n(7288).version,h=n(7874),m=n(2648),v=n(644),g=/https:?/,b=["http:","https:","file:"];function y(e,t,n){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=n,t.auth){var r=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+r}e.beforeRedirect=function(e){e.headers.host=e.host,y(e,t,e.href)}}e.exports=function(e){return new Promise((function(t,n){var _;function x(){e.cancelToken&&e.cancelToken.unsubscribe(_),e.signal&&e.signal.removeEventListener("abort",_)}var w=function(e){x(),t(e)},E=!1,A=function(e){x(),E=!0,n(e)},S=e.data,T=e.headers,C={};if(Object.keys(T).forEach((function(e){C[e.toLowerCase()]=e})),"user-agent"in C?T[C["user-agent"]]||delete T[C["user-agent"]]:T["User-Agent"]="axios/"+f,r.isFormData(S)&&r.isFunction(S.getHeaders))Object.assign(T,S.getHeaders());else if(S&&!r.isStream(S)){if(Buffer.isBuffer(S));else if(r.isArrayBuffer(S))S=Buffer.from(new Uint8Array(S));else{if(!r.isString(S))return A(new m("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",m.ERR_BAD_REQUEST,e));S=Buffer.from(S,"utf-8")}if(e.maxBodyLength>-1&&S.length>e.maxBodyLength)return A(new m("Request body larger than maxBodyLength limit",m.ERR_BAD_REQUEST,e));C["content-length"]||(T["Content-Length"]=S.length)}var I=void 0;e.auth&&(I=(e.auth.username||"")+":"+(e.auth.password||""));var P=o(e.baseURL,e.url),O=p.parse(P),N=O.protocol||b[0];if(-1===b.indexOf(N))return A(new m("Unsupported protocol "+N,m.ERR_BAD_REQUEST,e));if(!I&&O.auth){var R=O.auth.split(":");I=(R[0]||"")+":"+(R[1]||"")}I&&C.authorization&&delete T[C.authorization];var D=g.test(N),k=D?e.httpsAgent:e.httpAgent;try{a(O.path,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){var L=new Error(t.message);L.config=e,L.url=e.url,L.exists=!0,A(L)}var j={path:a(O.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:T,agent:k,agents:{http:e.httpAgent,https:e.httpsAgent},auth:I};e.socketPath?j.socketPath=e.socketPath:(j.hostname=O.hostname,j.port=O.port);var M,z=e.proxy;if(!z&&!1!==z){var V=N.slice(0,-1)+"_proxy",B=process.env[V]||process.env[V.toUpperCase()];if(B){var F=p.parse(B),U=process.env.no_proxy||process.env.NO_PROXY,q=!0;if(U&&(q=!U.split(",").map((function(e){return e.trim()})).some((function(e){return!!e&&("*"===e||"."===e[0]&&O.hostname.substr(O.hostname.length-e.length)===e||O.hostname===e)}))),q&&(z={host:F.hostname,port:F.port,protocol:F.protocol},F.auth)){var H=F.auth.split(":");z.auth={username:H[0],password:H[1]}}}}z&&(j.headers.host=O.hostname+(O.port?":"+O.port:""),y(j,z,N+"//"+O.hostname+(O.port?":"+O.port:"")+j.path));var G=D&&(!z||g.test(z.protocol));e.transport?M=e.transport:0===e.maxRedirects?M=G?c:s:(e.maxRedirects&&(j.maxRedirects=e.maxRedirects),e.beforeRedirect&&(j.beforeRedirect=e.beforeRedirect),M=G?u:l),e.maxBodyLength>-1&&(j.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(j.insecureHTTPParser=e.insecureHTTPParser);var $=M.request(j,(function(t){if(!$.aborted){var n=t,o=t.req||$;if(204!==t.statusCode&&"HEAD"!==o.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":n=n.pipe(d.createUnzip()),delete t.headers["content-encoding"]}var a={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:o};if("stream"===e.responseType)a.data=n,i(w,A,a);else{var s=[],c=0;n.on("data",(function(t){s.push(t),c+=t.length,e.maxContentLength>-1&&c>e.maxContentLength&&(E=!0,n.destroy(),A(new m("maxContentLength size of "+e.maxContentLength+" exceeded",m.ERR_BAD_RESPONSE,e,o)))})),n.on("aborted",(function(){E||(n.destroy(),A(new m("maxContentLength size of "+e.maxContentLength+" exceeded",m.ERR_BAD_RESPONSE,e,o)))})),n.on("error",(function(t){$.aborted||A(m.from(t,null,e,o))})),n.on("end",(function(){try{var t=1===s.length?s[0]:Buffer.concat(s);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=r.stripBOM(t))),a.data=t}catch(t){A(m.from(t,null,e,a.request,a))}i(w,A,a)}))}}}));if($.on("error",(function(t){A(m.from(t,null,e,$))})),$.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){var W=parseInt(e.timeout,10);if(isNaN(W))return void A(new m("error trying to parse `config.timeout` to int",m.ERR_BAD_OPTION_VALUE,e,$));$.setTimeout(W,(function(){$.abort();var t=e.transitional||h;A(new m("timeout of "+W+"ms exceeded",t.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,$))}))}(e.cancelToken||e.signal)&&(_=function(e){$.aborted||($.abort(),A(!e||e&&e.type?new v:e))},e.cancelToken&&e.cancelToken.subscribe(_),e.signal&&(e.signal.aborted?_():e.signal.addEventListener("abort",_))),r.isStream(S)?S.on("error",(function(t){A(m.from(t,e,null,$))})).pipe($):$.end(S)}))}},5448:(e,t,n)=>{"use strict";var r=n(4867),i=n(6026),o=n(4372),a=n(5327),s=n(4097),c=n(4109),l=n(7985),u=n(7874),p=n(2648),d=n(644),f=n(205);e.exports=function(e){return new Promise((function(t,n){var h,m=e.data,v=e.headers,g=e.responseType;function b(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete v["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(_+":"+x)}var w=s(e.baseURL,e.url);function E(){if(y){var r="getAllResponseHeaders"in y?c(y.getAllResponseHeaders()):null,o={data:g&&"text"!==g&&"json"!==g?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:e,request:y};i((function(e){t(e),b()}),(function(e){n(e),b()}),o),y=null}}if(y.open(e.method.toUpperCase(),a(w,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=E:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(E)},y.onabort=function(){y&&(n(new p("Request aborted",p.ECONNABORTED,e,y)),y=null)},y.onerror=function(){n(new p("Network Error",p.ERR_NETWORK,e,y,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new p(t,r.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,e,y)),y=null},r.isStandardBrowserEnv()){var A=(e.withCredentials||l(w))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;A&&(v[e.xsrfHeaderName]=A)}"setRequestHeader"in y&&r.forEach(v,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:y.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),g&&"json"!==g&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){y&&(n(!e||e&&e.type?new d:e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),m||(m=null);var S=f(w);S&&-1===["http","https","file"].indexOf(S)?n(new p("Unsupported protocol "+S+":",p.ERR_BAD_REQUEST,e)):y.send(m)}))}},1609:(e,t,n)=>{"use strict";var r=n(4867),i=n(1849),o=n(321),a=n(7185),s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(5546));s.Axios=o,s.CanceledError=n(644),s.CancelToken=n(4972),s.isCancel=n(6502),s.VERSION=n(7288).version,s.toFormData=n(7675),s.AxiosError=n(2648),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(8713),s.isAxiosError=n(6268),e.exports=s,e.exports.default=s},4972:(e,t,n)=>{"use strict";var r=n(644);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},644:(e,t,n)=>{"use strict";var r=n(2648);function i(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(4867).inherits(i,r,{__CANCEL__:!0}),e.exports=i},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(4867),i=n(5327),o=n(782),a=n(3572),s=n(7185),c=n(4097),l=n(4875),u=l.validators;function p(e){this.defaults=e,this.interceptors={request:new o,response:new o}}p.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&l.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,c=[];if(this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)})),!i){var p=[a,void 0];for(Array.prototype.unshift.apply(p,r),p=p.concat(c),o=Promise.resolve(t);p.length;)o=o.then(p.shift(),p.shift());return o}for(var d=t;r.length;){var f=r.shift(),h=r.shift();try{d=f(d)}catch(e){h(e);break}}try{o=a(d)}catch(e){return Promise.reject(e)}for(;c.length;)o=o.then(c.shift(),c.shift());return o},p.prototype.getUri=function(e){e=s(this.defaults,e);var t=c(e.baseURL,e.url);return i(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){p.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(s(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}p.prototype[e]=t(),p.prototype[e+"Form"]=t(!0)})),e.exports=p},2648:(e,t,n)=>{"use strict";var r=n(4867);function i(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=i.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(i,a),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=function(e,t,n,a,s,c){var l=Object.create(o);return r.toFlatObject(e,l,(function(e){return e!==Error.prototype})),i.call(l,e.message,t,n,a,s),l.name=e.name,c&&Object.assign(l,c),l},e.exports=i},782:(e,t,n)=>{"use strict";var r=n(4867);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},4097:(e,t,n)=>{"use strict";var r=n(1793),i=n(7303);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},3572:(e,t,n)=>{"use strict";var r=n(4867),i=n(8527),o=n(6502),a=n(5546),s=n(644);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return c(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(c(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},7185:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function c(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||o,i=t(e);r.isUndefined(i)&&t!==c||(n[e]=i)})),n}},6026:(e,t,n)=>{"use strict";var r=n(2648);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},8527:(e,t,n)=>{"use strict";var r=n(4867),i=n(5546);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},3784:(e,t,n)=>{e.exports=n(6882)},5546:(e,t,n)=>{"use strict";var r=n(4867),i=n(6016),o=n(2648),a=n(7874),s=n(7675),c={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,p={transitional:a,adapter:("undefined"!=typeof XMLHttpRequest?u=n(5448):"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(u=n(7970)),u),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,o=r.isObject(e),a=t&&t["Content-Type"];if((n=r.isFileList(e))||o&&"multipart/form-data"===a){var c=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,c&&new c)}return o||"application/json"===a?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||p.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(3784)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){p.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){p.headers[e]=r.merge(c)})),e.exports=p},7874:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:e=>{e.exports={version:"0.27.2"}},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},5327:(e,t,n)=>{"use strict";var r=n(4867);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6016:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4109:(e,t,n)=>{"use strict";var r=n(4867),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},205:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7675:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,a){if(r.isPlainObject(o)||r.isArray(o)){if(-1!==n.indexOf(o))throw Error("Circular reference detected in "+a);n.push(o),r.forEach(o,(function(n,o){if(!r.isUndefined(n)){var s,c=a?a+"."+o:o;if(n&&!a&&"object"==typeof n)if(r.endsWith(o,"{}"))n=JSON.stringify(n);else if(r.endsWith(o,"[]")&&(s=r.toArray(n)))return void s.forEach((function(e){!r.isUndefined(e)&&t.append(c,i(e))}));e(n,c)}})),n.pop()}else t.append(a,i(o))}(e),t}},4875:(e,t,n)=>{"use strict";var r=n(7288).version,i=n(2648),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var c=e[a],l=void 0===c||s(c,a,e);if(!0!==l)throw new i("option "+a+" must be "+l,i.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},4867:(e,t,n)=>{"use strict";var r,i=n(1849),o=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=o.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function c(e){return Array.isArray(e)}function l(e){return void 0===e}var u=s("ArrayBuffer");function p(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var f=s("Date"),h=s("File"),m=s("Blob"),v=s("FileList");function g(e){return"[object Function]"===o.call(e)}var b=s("URLSearchParams");function y(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var _,x=(_="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return _&&e instanceof _});e.exports={isArray:c,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||o.call(e)===t||g(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:p,isPlainObject:d,isUndefined:l,isDate:f,isFile:h,isBlob:m,isFunction:g,isStream:function(e){return p(e)&&g(e.pipe)},isURLSearchParams:b,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:y,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):c(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)y(arguments[r],n);return t},extend:function(e,t,n){return y(t,(function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,i,o,a={};t=t||{};do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a[o=r[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(l(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:x,isFileList:v}},9779:(e,t,n)=>{var r=n(3837),i=n(2781).Stream,o=n(3463);function a(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}e.exports=a,r.inherits(a,i),a.create=function(e){var t=new this;for(var n in e=e||{})t[n]=e[n];return t},a.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},a.prototype.append=function(e){if(a.isStreamLike(e)){if(!(e instanceof o)){var t=o.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},a.prototype.pipe=function(e,t){return i.prototype.pipe.call(this,e,t),this.resume(),e},a.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},a.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){a.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},a.prototype._pipeNext=function(e){if(this._currentStream=e,a.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var t=e;this.write(t),this._getNext()},a.prototype._handleErrors=function(e){var t=this;e.on("error",(function(e){t._emitError(e)}))},a.prototype.write=function(e){this.emit("data",e)},a.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},a.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},a.prototype.end=function(){this._reset(),this.emit("end")},a.prototype.destroy=function(){this._reset(),this.emit("close")},a.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},a.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},a.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach((function(t){t.dataSize&&(e.dataSize+=t.dataSize)})),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},a.prototype._emitError=function(e){this._reset(),this.emit("error",e)}},9435:e=>{var t=1e3,n=60*t,r=60*n,i=24*r;function o(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,a){a=a||{};var s,c,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(o){var a=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===l&&isFinite(e))return a.long?(s=e,(c=Math.abs(s))>=i?o(s,c,i,"day"):c>=r?o(s,c,r,"hour"):c>=n?o(s,c,n,"minute"):c>=t?o(s,c,t,"second"):s+" ms"):function(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=r?Math.round(e/r)+"h":o>=n?Math.round(e/n)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},1227:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(2447)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,o,a=null;function s(...e){if(!s.enabled)return;const r=s,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];n=o.call(r,t),e.splice(a,1),a--}return n})),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(9435),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},5158:(e,t,n)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=n(1227):e.exports=n(39)},39:(e,t,n)=>{const r=n(6224),i=n(3837);t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(...e){return process.stderr.write(i.format(...e)+"\n")},t.formatArgs=function(n){const{namespace:r,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),o=`  ${i};1m${r} `;n[0]=o+n[0].split("\n").join("\n"+o),n.push(i+"m+"+e.exports.humanize(this.diff)+"")}else n[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+r+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)},t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=n(2130);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e}),{}),e.exports=n(2447)(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},3463:(e,t,n)=>{var r=n(2781).Stream,i=n(3837);function o(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}e.exports=o,i.inherits(o,r),o.create=function(e,t){var n=new this;for(var r in t=t||{})n[r]=t[r];n.source=e;var i=e.emit;return e.emit=function(){return n._handleEmit(arguments),i.apply(e,arguments)},e.on("error",(function(){})),n.pauseStream&&e.pause(),n},Object.defineProperty(o.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),o.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},o.prototype.resume=function(){this._released||this.release(),this.source.resume()},o.prototype.pause=function(){this.source.pause()},o.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},o.prototype.pipe=function(){var e=r.prototype.pipe.apply(this,arguments);return this.resume(),e},o.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},o.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}},2261:(e,t,n)=>{var r;e.exports=function(){if(!r){try{r=n(5158)("follow-redirects")}catch(e){}"function"!=typeof r&&(r=function(){})}r.apply(null,arguments)}},938:(e,t,n)=>{var r=n(7310),i=r.URL,o=n(3685),a=n(5687),s=n(2781).Writable,c=n(9491),l=n(2261),u=!1;try{c(new i)}catch(e){u="ERR_INVALID_URL"===e.code}var p=["auth","host","hostname","href","path","pathname","port","protocol","query","search"],d=["abort","aborted","connect","error","socket","timeout"],f=Object.create(null);d.forEach((function(e){f[e]=function(t,n,r){this._redirectable.emit(e,t,n,r)}}));var h=C("ERR_INVALID_URL","Invalid URL",TypeError),m=C("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),v=C("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",m),g=C("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),b=C("ERR_STREAM_WRITE_AFTER_END","write after end"),y=s.prototype.destroy||w;function _(e,t){s.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof m?e:new m({cause:e}))}},this._performRequest()}function x(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(r){var o=r+":",a=n[o]=e[r],s=t[r]=Object.create(a);Object.defineProperties(s,{request:{value:function(e,r,a){return i&&e instanceof i?e=S(e):P(e)?e=S(E(e)):(a=r,r=A(e),e={protocol:o}),O(r)&&(a=r,r=null),(r=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,r)).nativeProtocols=n,P(r.host)||P(r.hostname)||(r.hostname="::1"),c.equal(r.protocol,o,"protocol mismatch"),l("options",r),new _(r,a)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var r=s.request(e,t,n);return r.end(),r},configurable:!0,enumerable:!0,writable:!0}})})),t}function w(){}function E(e){var t;if(u)t=new i(e);else if(!P((t=A(r.parse(e))).protocol))throw new h({input:e});return t}function A(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new h({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new h({input:e.href||e});return e}function S(e,t){var n=t||{};for(var r of p)n[r]=e[r];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function T(e,t){var n;for(var r in t)e.test(r)&&(n=t[r],delete t[r]);return null==n?void 0:String(n).trim()}function C(e,t,n){function r(n){Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return r.prototype=new(n||Error),Object.defineProperties(r.prototype,{constructor:{value:r,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),r}function I(e,t){for(var n of d)e.removeListener(n,f[n]);e.on("error",w),e.destroy(t)}function P(e){return"string"==typeof e||e instanceof String}function O(e){return"function"==typeof e}_.prototype=Object.create(s.prototype),_.prototype.abort=function(){I(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},_.prototype.destroy=function(e){return I(this._currentRequest,e),y.call(this,e),this},_.prototype.write=function(e,t,n){if(this._ending)throw new b;if(!(P(e)||"object"==typeof(r=e)&&"length"in r))throw new TypeError("data should be a string, Buffer or Uint8Array");var r;O(t)&&(n=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new g),this.abort()):n&&n()},_.prototype.end=function(e,t,n){if(O(e)?(n=e,e=t=null):O(t)&&(n=t,t=null),e){var r=this,i=this._currentRequest;this.write(e,t,(function(){r._ended=!0,i.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},_.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},_.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},_.prototype.setTimeout=function(e,t){var n=this;function r(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function i(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout((function(){n.emit("timeout"),o()}),e),r(t)}function o(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",o),n.removeListener("error",o),n.removeListener("response",o),n.removeListener("close",o),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",r),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){_.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(_.prototype,e,{get:function(){return this._currentRequest[e]}})})),_.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},_.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var o of(i._redirectable=this,d))i.on(o,f[o]);if(this._currentUrl=/^\//.test(this._options.path)?r.format(this._options):this._options.path,this._isRedirect){var a=0,s=this,c=this._requestBodyBuffers;!function e(t){if(i===s._currentRequest)if(t)s.emit("error",t);else if(a<c.length){var n=c[a++];i.finished||i.write(n.data,n.encoding,e)}else s._ended&&i.end()}()}},_.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,o=e.headers.location;if(!o||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(I(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new v;var a=this._options.beforeRedirect;a&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],T(/^content-/i,this._options.headers));var p,d,f=T(/^host$/i,this._options.headers),h=E(this._currentUrl),m=f||h.host,g=/^\w+:/.test(o)?this._currentUrl:r.format(Object.assign(h,{host:m})),b=(p=o,d=g,u?new i(p,d):E(r.resolve(d,p)));if(l("redirecting to",b.href),this._isRedirect=!0,S(b,this._options),(b.protocol!==h.protocol&&"https:"!==b.protocol||b.host!==m&&!function(e,t){c(P(e)&&P(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(b.host,m))&&T(/^(?:authorization|cookie)$/i,this._options.headers),O(a)){var y={headers:e.headers,statusCode:t},_={url:g,method:s,headers:n};a(this._options,y,_),this._sanitizeOptions(this._options)}this._performRequest()},e.exports=x({http:o,https:a}),e.exports.wrap=x},6882:(e,t,n)=>{var r=n(9779),i=n(3837),o=n(1017),a=n(3685),s=n(5687),c=n(7310).parse,l=n(7147),u=n(2781).Stream,p=n(983),d=n(9118),f=n(2275);function h(e){if(!(this instanceof h))return new h(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],r.call(this),e=e||{})this[t]=e[t]}e.exports=h,i.inherits(h,r),h.LINE_BREAK="\r\n",h.DEFAULT_CONTENT_TYPE="application/octet-stream",h.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var o=r.prototype.append.bind(this);if("number"==typeof t&&(t=""+t),i.isArray(t))this._error(new Error("Arrays are not supported."));else{var a=this._multiPartHeader(e,t,n),s=this._multiPartFooter();o(a),o(t),o(s),this._trackLength(a,t,n)}},h.prototype._trackLength=function(e,t,n){var r=0;null!=n.knownLength?r+=+n.knownLength:Buffer.isBuffer(t)?r=t.length:"string"==typeof t&&(r=Buffer.byteLength(t)),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(e)+h.LINE_BREAK.length,t&&(t.path||t.readable&&t.hasOwnProperty("httpVersion")||t instanceof u)&&(n.knownLength||this._valuesToMeasure.push(t))},h.prototype._lengthRetriever=function(e,t){e.hasOwnProperty("fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):l.stat(e.path,(function(n,r){var i;n?t(n):(i=r.size-(e.start?e.start:0),t(null,i))})):e.hasOwnProperty("httpVersion")?t(null,+e.headers["content-length"]):e.hasOwnProperty("httpModule")?(e.on("response",(function(n){e.pause(),t(null,+n.headers["content-length"])})),e.resume()):t("Unknown stream")},h.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var r,i=this._getContentDisposition(t,n),o=this._getContentType(t,n),a="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(i||[]),"Content-Type":[].concat(o||[])};for(var c in"object"==typeof n.header&&f(s,n.header),s)s.hasOwnProperty(c)&&null!=(r=s[c])&&(Array.isArray(r)||(r=[r]),r.length&&(a+=c+": "+r.join("; ")+h.LINE_BREAK));return"--"+this.getBoundary()+h.LINE_BREAK+a+h.LINE_BREAK},h.prototype._getContentDisposition=function(e,t){var n,r;return"string"==typeof t.filepath?n=o.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e.name||e.path?n=o.basename(t.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(n=o.basename(e.client._httpMessage.path||"")),n&&(r='filename="'+n+'"'),r},h.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e.name&&(n=p.lookup(e.name)),!n&&e.path&&(n=p.lookup(e.path)),!n&&e.readable&&e.hasOwnProperty("httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=p.lookup(t.filepath||t.filename)),n||"object"!=typeof e||(n=h.DEFAULT_CONTENT_TYPE),n},h.prototype._multiPartFooter=function(){return function(e){var t=h.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},h.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+h.LINE_BREAK},h.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)e.hasOwnProperty(t)&&(n[t.toLowerCase()]=e[t]);return n},h.prototype.setBoundary=function(e){this._boundary=e},h.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},h.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,r=this._streams.length;n<r;n++)"function"!=typeof this._streams[n]&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),"string"==typeof this._streams[n]&&this._streams[n].substring(2,t.length+2)===t||(e=Buffer.concat([e,Buffer.from(h.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},h.prototype._generateBoundary=function(){for(var e="--------------------------",t=0;t<24;t++)e+=Math.floor(10*Math.random()).toString(16);this._boundary=e},h.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},h.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},h.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?d.parallel(this._valuesToMeasure,this._lengthRetriever,(function(n,r){n?e(n):(r.forEach((function(e){t+=e})),e(null,t))})):process.nextTick(e.bind(this,null,t))},h.prototype.submit=function(e,t){var n,r,i={method:"post"};return"string"==typeof e?(e=c(e),r=f({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(r=f(e,i)).port||(r.port="https:"==r.protocol?443:80),r.headers=this.getHeaders(e.headers),n="https:"==r.protocol?s.request(r):a.request(r),this.getLength(function(e,r){if(e&&"Unknown stream"!==e)this._error(e);else if(r&&n.setHeader("Content-Length",r),this.pipe(n),t){var i,o=function(e,r){return n.removeListener("error",o),n.removeListener("response",i),t.call(this,e,r)};i=o.bind(this,null),n.on("error",o),n.on("response",i)}}.bind(this)),n},h.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},h.prototype.toString=function(){return"[object FormData]"}},2275:e=>{e.exports=function(e,t){return Object.keys(t).forEach((function(n){e[n]=e[n]||t[n]})),e}},1636:(e,t,n)=>{const r=n(7147),i=n(2037),{promisify:o}=n(3837),a=o(r.readFile);function s(e,t){return t.split("\n").forEach((t=>{const n=t.split("=");2===n.length&&(n[1]=n[1].replace(/["'\r]/gi,""),Object.defineProperty(e,n[0].toLowerCase(),{value:n[1],writable:!0,enumerable:!0,configurable:!0}))})),e}function c(){return{type:i.type(),platform:i.platform(),hostname:i.hostname(),arch:i.arch(),release:i.release()}}e.exports=function(e={mode:"async",custom_file:null,debug:!1}){if("Linux"!==i.type())return"sync"===e.mode?c():Promise.resolve(c());const t=null!==(n=e.custom_file)&&"string"==typeof n?Array(n):["/etc/os-release","/usr/lib/os-release"];var n;return"sync"===e.mode?function(e,t){let n=null;for(os_release_file of e)try{t.debug&&console.log(`Trying to read '${os_release_file}'...`),n=r.readFileSync(os_release_file,"binary"),t.debug&&console.log("Read data:\n"+n);break}catch(e){t.debug&&console.error(e)}if(null===n)throw new Error("Cannot read os-release file!");return s(c(),n)}(t,e):Promise.resolve(async function(e,t){let n=null;for(os_release_file of e)try{t.debug&&console.log(`Trying to read '${os_release_file}'...`),n=await a(os_release_file,"binary"),t.debug&&console.log("Read data:\n"+n);break}catch(e){t.debug&&console.error(e)}if(null===n)throw new Error("Cannot read os-release file!");return s(c(),n)}(t,e))}},9593:(e,t,n)=>{"use strict";const r=n(4411),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),c=Symbol("maxAge"),l=Symbol("dispose"),u=Symbol("noDisposeOnSet"),p=Symbol("lruList"),d=Symbol("cache"),f=Symbol("updateAgeOnGet"),h=()=>1,m=(e,t,n)=>{const r=e[d].get(t);if(r){const t=r.value;if(v(e,t)){if(b(e,r),!e[s])return}else n&&(e[f]&&(r.value.now=Date.now()),e[p].unshiftNode(r));return t.value}},v=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[c]&&n>e[c]},g=e=>{if(e[o]>e[i])for(let t=e[p].tail;e[o]>e[i]&&null!==t;){const n=t.prev;b(e,t),t=n}},b=(e,t)=>{if(t){const n=t.value;e[l]&&e[l](n.key,n.value),e[o]-=n.length,e[d].delete(n.key),e[p].removeNode(t)}};class y{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const _=(e,t,n,r)=>{let i=n.value;v(e,i)&&(b(e,n),e[s]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||h;if(this[a]="function"!=typeof t?h:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[l]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[f]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,g(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,g(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[a]&&(this[a]=e,this[o]=0,this[p].forEach((e=>{e.length=this[a](e.value,e.key),this[o]+=e.length}))),g(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[p].length}rforEach(e,t){t=t||this;for(let n=this[p].tail;null!==n;){const r=n.prev;_(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[p].head;null!==n;){const r=n.next;_(this,e,n,t),n=r}}keys(){return this[p].toArray().map((e=>e.key))}values(){return this[p].toArray().map((e=>e.value))}reset(){this[l]&&this[p]&&this[p].length&&this[p].forEach((e=>this[l](e.key,e.value))),this[d]=new Map,this[p]=new r,this[o]=0}dump(){return this[p].map((e=>!v(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[p]}set(e,t,n){if((n=n||this[c])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,s=this[a](t,e);if(this[d].has(e)){if(s>this[i])return b(this,this[d].get(e)),!1;const a=this[d].get(e).value;return this[l]&&(this[u]||this[l](e,a.value)),a.now=r,a.maxAge=n,a.value=t,this[o]+=s-a.length,a.length=s,this.get(e),g(this),!0}const f=new y(e,t,s,r,n);return f.length>this[i]?(this[l]&&this[l](e,t),!1):(this[o]+=f.length,this[p].unshift(f),this[d].set(e,this[p].head),g(this),!0)}has(e){if(!this[d].has(e))return!1;const t=this[d].get(e).value;return!v(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[p].tail;return e?(b(this,e),e.value):null}del(e){b(this,this[d].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[d].forEach(((e,t)=>m(this,t,!1)))}}},5234:(e,t,n)=>{e.exports=n(3765)},983:(e,t,n)=>{"use strict";var r,i,o,a=n(5234),s=n(1017).extname,c=/^\s*([^;\s]*)(?:;|\s|$)/,l=/^text\//i;function u(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),n=t&&a[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!l.test(t[1]))&&"UTF-8"}t.charset=u,t.charsets={lookup:u},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var n=-1===e.indexOf("/")?t.lookup(e):e;if(!n)return!1;if(-1===n.indexOf("charset")){var r=t.charset(n);r&&(n+="; charset="+r.toLowerCase())}return n},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var n=c.exec(e),r=n&&t.extensions[n[1].toLowerCase()];return!(!r||!r.length)&&r[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var n=s("x."+e).toLowerCase().substr(1);return n&&t.types[n]||!1},t.types=Object.create(null),r=t.extensions,i=t.types,o=["nginx","apache",void 0,"iana"],Object.keys(a).forEach((function(e){var t=a[e],n=t.extensions;if(n&&n.length){r[e]=n;for(var s=0;s<n.length;s++){var c=n[s];if(i[c]){var l=o.indexOf(a[i[c]].source),u=o.indexOf(t.source);if("application/octet-stream"!==i[c]&&(l>u||l===u&&"application/"===i[c].substr(0,12)))continue}i[c]=e}}}))},5495:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promisifyChildProcess=a,t.spawn=function(e,t,n){return a(i.default.spawn(e,t,n),Array.isArray(t)?n:t)},t.fork=function(e,t,n){return a(i.default.fork(e,t,n),Array.isArray(t)?n:t)},t.execFile=t.exec=void 0;var r,i=(r=n(2081))&&r.__esModule?r:{default:r};function o(e,t){if(e[0]instanceof Buffer){const n=Buffer.concat(e);return t?n.toString(t):n}return e.join("")}function a(e,t={}){const n=new Promise(((n,r)=>{const{encoding:i,killSignal:a}=t,s=null!=i||null!=t.maxBuffer,c=t.maxBuffer||204800;let l,u=0;const p=[],d=[],f=t=>n=>{const r=c-u;n.length>r&&(l=new Error("maxBuffer size exceeded"),e.kill(a||"SIGTERM"),n=n.slice(0,r)),u+=n.length,t.push(n)};function h(e,t){function a(e){s?(e.stdout=o(p,i),e.stderr=o(d,i)):Object.defineProperties(e,{stdout:{configurable:!0,enumerable:!0,get:()=>(console.error(new Error("To get stdout from a spawned or forked process, set the `encoding` or `maxBuffer` option").stack.replace(/^Error/,"Warning")),null)},stderr:{configurable:!0,enumerable:!0,get:()=>(console.error(new Error("To get stderr from a spawned or forked process, set the `encoding` or `maxBuffer` option").stack.replace(/^Error/,"Warning")),null)}})}l||(null!=e&&0!==e?l=new Error(`Process exited with code ${e}`):null!=t&&(l=new Error(`Process was killed with ${t}`)));const c={};a(c);const u=l;u?(u.code=e,u.signal=t,a(u),r(u)):n(c)}s&&(e.stdout&&e.stdout.on("data",f(p)),e.stderr&&e.stderr.on("data",f(d))),e.on("error",r),e.on("close",h),e.on("exit",h)}));return Object.create(e,{then:{value:n.then.bind(n)},catch:{value:n.catch.bind(n)}})}function s(e){return(...t)=>{let n;const r=new Promise(((r,i)=>{n=e(...t,((e,t,n)=>{e?(e.stdout=t,e.stderr=n,i(e)):r({stdout:t,stderr:n})}))}));if(!n)throw new Error("unexpected error: child has not been initialized");return Object.create(n,{then:{value:r.then.bind(r)},catch:{value:r.catch.bind(r)}})}}const c=s(i.default.exec);t.exec=c;const l=s(i.default.execFile);t.execFile=l},2257:(e,t,n)=>{const r=Symbol("SemVer ANY");class i{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){const t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=i;const o=n(2893),{safeRe:a,t:s}=n(5765),c=n(7539),l=n(4225),u=n(6376),p=n(6902)},6902:(e,t,n)=>{class r{constructor(e,t){if(t=o(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!v(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&g(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&h)|(this.options.loose&&m))+":"+e,n=i.get(t);if(n)return n;const r=this.options.loose,o=r?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE];e=e.replace(o,P(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],p),s("comparator trim",e);let c=(e=(e=e.replace(l[u.TILDETRIM],d)).replace(l[u.CARETTRIM],f)).split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>I(e,this.options)));r&&(c=c.filter((e=>(s("loose invalid filter",e,this.options),!!e.match(l[u.COMPARATORLOOSE]))))),s("range list",c);const g=new Map,b=c.map((e=>new a(e,this.options)));for(const e of b){if(v(e))return[e];g.set(e.value,e)}g.size>1&&g.has("")&&g.delete("");const _=[...g.values()];return i.set(t,_),_}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((n=>b(n,t)&&e.set.some((e=>b(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const i=new(n(9593))({max:1e3}),o=n(2893),a=n(2257),s=n(4225),c=n(6376),{safeRe:l,t:u,comparatorTrimReplace:p,tildeTrimReplace:d,caretTrimReplace:f}=n(5765),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:m}=n(3295),v=e=>"<0.0.0-0"===e.value,g=e=>""===e.value,b=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},y=(e,t)=>(s("comp",e,t),e=E(e,t),s("caret",e),e=x(e,t),s("tildes",e),e=S(e,t),s("xrange",e),e=C(e,t),s("stars",e),e),_=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{const n=t.loose?l[u.TILDELOOSE]:l[u.TILDE];return e.replace(n,((t,n,r,i,o)=>{let a;return s("tilde",e,t,n,r,i,o),_(n)?a="":_(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:_(i)?a=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):a=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,s("tilde return",a),a}))},E=(e,t)=>e.trim().split(/\s+/).map((e=>A(e,t))).join(" "),A=(e,t)=>{s("caret",e,t);const n=t.loose?l[u.CARETLOOSE]:l[u.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,o,a)=>{let c;return s("caret",e,t,n,i,o,a),_(n)?c="":_(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:_(o)?c="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:a?(s("replaceCaret pr",a),c="0"===n?"0"===i?`>=${n}.${i}.${o}-${a} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${a} <${+n+1}.0.0-0`):(s("no pr"),c="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),s("caret return",c),c}))},S=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>T(e,t))).join(" ")),T=(e,t)=>{e=e.trim();const n=t.loose?l[u.XRANGELOOSE]:l[u.XRANGE];return e.replace(n,((n,r,i,o,a,c)=>{s("xRange",e,n,r,i,o,a,c);const l=_(i),u=l||_(o),p=u||_(a),d=p;return"="===r&&d&&(r=""),c=t.includePrerelease?"-0":"",l?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(u&&(o=0),a=0,">"===r?(r=">=",u?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),"<"===r&&(c="-0"),n=`${r+i}.${o}.${a}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:p&&(n=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),s("xRange return",n),n}))},C=(e,t)=>(s("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),I=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),P=e=>(t,n,r,i,o,a,s,c,l,u,p,d,f)=>`${n=_(r)?"":_(i)?`>=${r}.0.0${e?"-0":""}`:_(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${c=_(l)?"":_(u)?`<${+l+1}.0.0-0`:_(p)?`<${l}.${+u+1}.0-0`:d?`<=${l}.${u}.${p}-${d}`:e?`<${l}.${u}.${+p+1}-0`:`<=${c}`}`.trim(),O=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(s(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},6376:(e,t,n)=>{const r=n(4225),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=n(3295),{safeRe:a,t:s}=n(5765),c=n(2893),{compareIdentifiers:l}=n(6742);class u{constructor(e,t){if(t=c(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),l(this.major,e.major)||l(this.minor,e.minor)||l(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return l(n,i)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return l(n,i)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=u},3507:(e,t,n)=>{const r=n(3959);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},7539:(e,t,n)=>{const r=n(8718),i=n(1194),o=n(1312),a=n(5903),s=n(1544),c=n(2056);e.exports=(e,t,n,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,l);case"!=":return i(e,n,l);case">":return o(e,n,l);case">=":return a(e,n,l);case"<":return s(e,n,l);case"<=":return c(e,n,l);default:throw new TypeError(`Invalid operator: ${t}`)}}},9038:(e,t,n)=>{const r=n(6376),i=n(3959),{safeRe:o,t:a}=n(5765);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=o[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),o[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[a.COERCERTL].lastIndex=-1}else n=e.match(o[a.COERCE]);return null===n?null:i(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}},8880:(e,t,n)=>{const r=n(6376);e.exports=(e,t,n)=>{const i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o)}},7880:(e,t,n)=>{const r=n(6269);e.exports=(e,t)=>r(e,t,!0)},6269:(e,t,n)=>{const r=n(6376);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},2378:(e,t,n)=>{const r=n(3959);e.exports=(e,t)=>{const n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;const a=o>0,s=a?n:i,c=a?i:n,l=!!s.prerelease.length;if(c.prerelease.length&&!l)return c.patch||c.minor?s.patch?"patch":s.minor?"minor":"major":"major";const u=l?"pre":"";return n.major!==i.major?u+"major":n.minor!==i.minor?u+"minor":n.patch!==i.patch?u+"patch":"prerelease"}},8718:(e,t,n)=>{const r=n(6269);e.exports=(e,t,n)=>0===r(e,t,n)},1312:(e,t,n)=>{const r=n(6269);e.exports=(e,t,n)=>r(e,t,n)>0},5903:(e,t,n)=>{const r=n(6269);e.exports=(e,t,n)=>r(e,t,n)>=0},253:(e,t,n)=>{const r=n(6376);e.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version}catch(e){return null}}},1544:(e,t,n)=>{const r=n(6269);e.exports=(e,t,n)=>r(e,t,n)<0},2056:(e,t,n)=>{const r=n(6269);e.exports=(e,t,n)=>r(e,t,n)<=0},8679:(e,t,n)=>{const r=n(6376);e.exports=(e,t)=>new r(e,t).major},7789:(e,t,n)=>{const r=n(6376);e.exports=(e,t)=>new r(e,t).minor},1194:(e,t,n)=>{const r=n(6269);e.exports=(e,t,n)=>0!==r(e,t,n)},3959:(e,t,n)=>{const r=n(6376);e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},2358:(e,t,n)=>{const r=n(6376);e.exports=(e,t)=>new r(e,t).patch},7559:(e,t,n)=>{const r=n(3959);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},9795:(e,t,n)=>{const r=n(6269);e.exports=(e,t,n)=>r(t,e,n)},3657:(e,t,n)=>{const r=n(8880);e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))},5712:(e,t,n)=>{const r=n(6902);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},1100:(e,t,n)=>{const r=n(8880);e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))},6397:(e,t,n)=>{const r=n(3959);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},1249:(e,t,n)=>{const r=n(5765),i=n(3295),o=n(6376),a=n(6742),s=n(3959),c=n(6397),l=n(3507),u=n(253),p=n(2378),d=n(8679),f=n(7789),h=n(2358),m=n(7559),v=n(6269),g=n(9795),b=n(7880),y=n(8880),_=n(1100),x=n(3657),w=n(1312),E=n(1544),A=n(8718),S=n(1194),T=n(5903),C=n(2056),I=n(7539),P=n(9038),O=n(2257),N=n(6902),R=n(5712),D=n(1042),k=n(5775),L=n(1657),j=n(5316),M=n(9042),z=n(6826),V=n(7606),B=n(32),F=n(2937),U=n(7908),q=n(799);e.exports={parse:s,valid:c,clean:l,inc:u,diff:p,major:d,minor:f,patch:h,prerelease:m,compare:v,rcompare:g,compareLoose:b,compareBuild:y,sort:_,rsort:x,gt:w,lt:E,eq:A,neq:S,gte:T,lte:C,cmp:I,coerce:P,Comparator:O,Range:N,satisfies:R,toComparators:D,maxSatisfying:k,minSatisfying:L,minVersion:j,validRange:M,outside:z,gtr:V,ltr:B,intersects:F,simplifyRange:U,subset:q,SemVer:o,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},3295:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},4225:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},6742:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),i=t.test(n);return r&&i&&(e=+e,n=+n),e===n?0:r&&!i?-1:i&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},2893:e=>{const t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},5765:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:r}=n(3295),i=n(4225),o=(t=e.exports={}).re=[],a=t.safeRe=[],s=t.src=[],c=t.t={};let l=0;const u=(e,t,n)=>{const r=t.split("\\s*").join("\\s{0,1}").split("\\s+").join("\\s"),u=l++;i(e,u,t),c[e]=u,s[u]=t,o[u]=new RegExp(t,n?"g":void 0),a[u]=new RegExp(r,n?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION",`(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${s[c.NUMERICIDENTIFIER]}|${s[c.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${s[c.NUMERICIDENTIFIERLOOSE]}|${s[c.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${s[c.PRERELEASEIDENTIFIER]}(?:\\.${s[c.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${s[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[c.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${s[c.BUILDIDENTIFIER]}(?:\\.${s[c.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${s[c.MAINVERSION]}${s[c.PRERELEASE]}?${s[c.BUILD]}?`),u("FULL",`^${s[c.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${s[c.MAINVERSIONLOOSE]}${s[c.PRERELEASELOOSE]}?${s[c.BUILD]}?`),u("LOOSE",`^${s[c.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${s[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${s[c.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:${s[c.PRERELEASE]})?${s[c.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:${s[c.PRERELEASELOOSE]})?${s[c.BUILD]}?)?)?`),u("XRANGE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),u("COERCERTL",s[c.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${s[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",u("TILDE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${s[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",u("CARET",`^${s[c.LONECARET]}${s[c.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${s[c.LONECARET]}${s[c.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${s[c.GTLT]}\\s*(${s[c.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]}|${s[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${s[c.XRANGEPLAIN]})\\s+-\\s+(${s[c.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${s[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[c.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},7606:(e,t,n)=>{const r=n(6826);e.exports=(e,t,n)=>r(e,t,">",n)},2937:(e,t,n)=>{const r=n(6902);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n))},32:(e,t,n)=>{const r=n(6826);e.exports=(e,t,n)=>r(e,t,"<",n)},5775:(e,t,n)=>{const r=n(6376),i=n(6902);e.exports=(e,t,n)=>{let o=null,a=null,s=null;try{s=new i(t,n)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(o&&-1!==a.compare(e)||(o=e,a=new r(o,n)))})),o}},1657:(e,t,n)=>{const r=n(6376),i=n(6902);e.exports=(e,t,n)=>{let o=null,a=null,s=null;try{s=new i(t,n)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(o&&1!==a.compare(e)||(o=e,a=new r(o,n)))})),o}},5316:(e,t,n)=>{const r=n(6376),i=n(6902),o=n(1312);e.exports=(e,t)=>{e=new i(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const i=e.set[t];let a=null;i.forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":a&&!o(t,a)||(a=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!a||n&&!o(n,a)||(n=a)}return n&&e.test(n)?n:null}},6826:(e,t,n)=>{const r=n(6376),i=n(2257),{ANY:o}=i,a=n(6902),s=n(5712),c=n(1312),l=n(1544),u=n(2056),p=n(5903);e.exports=(e,t,n,d)=>{let f,h,m,v,g;switch(e=new r(e,d),t=new a(t,d),n){case">":f=c,h=u,m=l,v=">",g=">=";break;case"<":f=l,h=p,m=c,v="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,d))return!1;for(let n=0;n<t.set.length;++n){const r=t.set[n];let a=null,s=null;if(r.forEach((e=>{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,f(e.semver,a.semver,d)?a=e:m(e.semver,s.semver,d)&&(s=e)})),a.operator===v||a.operator===g)return!1;if((!s.operator||s.operator===v)&&h(e,s.semver))return!1;if(s.operator===g&&m(e,s.semver))return!1}return!0}},7908:(e,t,n)=>{const r=n(5712),i=n(6269);e.exports=(e,t,n)=>{const o=[];let a=null,s=null;const c=e.sort(((e,t)=>i(e,t,n)));for(const e of c)r(e,t,n)?(s=e,a||(a=e)):(s&&o.push([a,s]),s=null,a=null);a&&o.push([a,null]);const l=[];for(const[e,t]of o)e===t?l.push(e):t||e!==c[0]?t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");const u=l.join(" || "),p="string"==typeof t.raw?t.raw:String(t);return u.length<p.length?u:t}},799:(e,t,n)=>{const r=n(6902),i=n(2257),{ANY:o}=i,a=n(5712),s=n(6269),c=[new i(">=0.0.0-0")],l=[new i(">=0.0.0")],u=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=n.includePrerelease?c:l}if(1===t.length&&t[0].semver===o){if(n.includePrerelease)return!0;t=l}const r=new Set;let i,u,f,h,m,v,g;for(const t of e)">"===t.operator||">="===t.operator?i=p(i,t,n):"<"===t.operator||"<="===t.operator?u=d(u,t,n):r.add(t.semver);if(r.size>1)return null;if(i&&u){if(f=s(i.semver,u.semver,n),f>0)return null;if(0===f&&(">="!==i.operator||"<="!==u.operator))return null}for(const e of r){if(i&&!a(e,String(i),n))return null;if(u&&!a(e,String(u),n))return null;for(const r of t)if(!a(e,String(r),n))return!1;return!0}let b=!(!u||n.includePrerelease||!u.semver.prerelease.length)&&u.semver,y=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver;b&&1===b.prerelease.length&&"<"===u.operator&&0===b.prerelease[0]&&(b=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,v=v||"<"===e.operator||"<="===e.operator,i)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if(h=p(i,e,n),h===e&&h!==i)return!1}else if(">="===i.operator&&!a(i.semver,String(e),n))return!1;if(u)if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),"<"===e.operator||"<="===e.operator){if(m=d(u,e,n),m===e&&m!==u)return!1}else if("<="===u.operator&&!a(u.semver,String(e),n))return!1;if(!e.operator&&(u||i)&&0!==f)return!1}return!(i&&v&&!u&&0!==f||u&&g&&!i&&0!==f||y||b)},p=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},d=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(const r of e.set){for(const e of t.set){const t=u(r,e,n);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}},1042:(e,t,n)=>{const r=n(6902);e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},9042:(e,t,n)=>{const r=n(6902);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},7012:(e,t,n)=>{var r={child:n(2081),crypto:n(6113),fs:n(7147),os:n(2037),path:n(1017),process,util:n(3837)};function i(e,t){var n=r.process.platform;return"darwin"===n?function(e,t){var n=r.os.tmpdir();return n?r.process.env.USER?void s(e,(function(i,s){if(i)return t(i);function c(n,i,o){a(r.path.dirname(e.path),(function(e){return n?t(n):e?t(e):void t(void 0,i,o)}))}e.uuid=s,e.path=r.path.join(n,e.uuid,e.options.name+".app"),function(e,t){var n=r.path.dirname(e.path);r.fs.mkdir(n,(function(i){if(i)return t(i);var a=r.path.join(n,"sudo-prompt-applet.zip");r.fs.writeFile(a,u,"base64",(function(n){if(n)return t(n);var i=[];i.push("/usr/bin/unzip"),i.push("-o"),i.push('"'+o(a)+'"'),i.push('-d "'+o(e.path)+'"'),i=i.join(" "),r.child.exec(i,{encoding:"utf-8"},t)}))}))}(e,(function(t,n,i){if(t)return c(t,n,i);!function(e,t){if(!e.options.icns)return t();r.fs.readFile(e.options.icns,(function(n,i){if(n)return t(n);var o=r.path.join(e.path,"Contents","Resources","applet.icns");r.fs.writeFile(o,i,t)}))}(e,(function(t){if(t)return c(t);!function(e,t){var n=o(r.path.join(e.path,"Contents","Info.plist")),i=o("CFBundleName"),a=e.options.name+" Password Prompt";if(/'/.test(a))return t(new Error("Value should not contain single quotes."));var s=[];s.push("/usr/bin/defaults"),s.push("write"),s.push('"'+n+'"'),s.push('"'+i+'"'),s.push("'"+a+"'"),s=s.join(" "),r.child.exec(s,{encoding:"utf-8"},t)}(e,(function(t,n,i){if(t)return c(t,n,i);!function(e,t){var n=r.path.join(e.path,"Contents","MacOS","sudo-prompt-command"),i=[];for(var a in i.push('cd "'+o(r.process.cwd())+'"'),e.options.env){var s=e.options.env[a];i.push("export "+a+'="'+o(s)+'"')}i.push(e.command),i=i.join("\n"),r.fs.writeFile(n,i,"utf-8",t)}(e,(function(t){if(t)return c(t);!function(e,t){var n=r.path.join(e.path,"Contents","MacOS","applet"),i={cwd:r.path.dirname(n),encoding:"utf-8"};r.child.exec("./"+r.path.basename(n),i,t)}(e,(function(t,n,i){if(t)return c(t,n,i);!function(e,t){var n=r.path.join(e.path,"Contents","MacOS");r.fs.readFile(r.path.join(n,"code"),"utf-8",(function(i,o){if(i){if("ENOENT"===i.code)return t(new Error(p));t(i)}else r.fs.readFile(r.path.join(n,"stdout"),"utf-8",(function(i,a){if(i)return t(i);r.fs.readFile(r.path.join(n,"stderr"),"utf-8",(function(n,r){if(n)return t(n);0===(o=parseInt(o.trim(),10))?t(void 0,a,r):((n=new Error("Command failed: "+e.command+"\n"+r)).code=o,t(n,a,r))}))}))}))}(e,c)}))}))}))}))}))})):t(new Error("env['USER'] not defined.")):t(new Error("os.tmpdir() not defined."))}(e,t):"linux"===n?function(e,t){!function(e,t){var n=0,i=["/usr/bin/kdesudo","/usr/bin/pkexec"];!function e(){if(n===i.length)return t(new Error("Unable to find pkexec or kdesudo."));var o=i[n++];r.fs.stat(o,(function(n){if(n){if("ENOTDIR"===n.code)return e();if("ENOENT"===n.code)return e();t(n)}else t(void 0,o)}))}()}(0,(function(n,i){if(n)return t(n);var a=[];for(var s in a.push('cd "'+o(r.process.cwd())+'";'),e.options.env){var c=e.options.env[s];a.push("export "+s+'="'+o(c)+'";')}a.push('"'+o(i)+'"'),/kdesudo/i.test(i)?(a.push("--comment",'"'+e.options.name+' wants to make changes. Enter your password to allow this."'),a.push("-d"),a.push("--")):/pkexec/i.test(i)&&a.push("--disable-internal-agent");var l="SUDOPROMPT\n";a.push('/bin/bash -c "echo '+o(l.trim())+"; "+o(e.command)+'"'),a=a.join(" "),r.child.exec(a,{encoding:"utf-8",maxBuffer:f},(function(e,n,r){var i=n&&n.slice(0,11)===l;i&&(n=n.slice(11)),e&&!i&&(/No authentication agent found/.test(r)?e.message=d:e.message=p),t(e,n,r)}))}))}(e,t):"win32"===n?function(e,t){var n=r.os.tmpdir();if(!n)return t(new Error("os.tmpdir() not defined."));s(e,(function(i,o){return i?t(i):(e.uuid=o,e.path=r.path.join(n,e.uuid),/"/.test(e.path)?t(new Error("instance.path cannot contain double-quotes.")):(e.pathElevate=r.path.join(e.path,"elevate.vbs"),e.pathExecute=r.path.join(e.path,"execute.bat"),e.pathCommand=r.path.join(e.path,"command.bat"),e.pathStdout=r.path.join(e.path,"stdout"),e.pathStderr=r.path.join(e.path,"stderr"),e.pathStatus=r.path.join(e.path,"status"),void r.fs.mkdir(e.path,(function(n){if(n)return t(n);function i(n,r,i){a(e.path,(function(e){return n?t(n):e?t(e):void t(void 0,r,i)}))}!function(e,t){var n=[];n.push("@echo off"),n.push('call "'+e.pathCommand+'" > "'+e.pathStdout+'" 2> "'+e.pathStderr+'"'),n.push('(echo %ERRORLEVEL%) > "'+e.pathStatus+'"'),n=n.join("\r\n"),r.fs.writeFile(e.pathExecute,n,"utf-8",t)}(e,(function(t){if(t)return i(t);!function(e,t){var n=r.process.cwd();if(/"/.test(n))return t(new Error("process.cwd() cannot contain double-quotes."));var i=[];for(var o in i.push("@echo off"),i.push("chcp 65001>nul"),i.push('cd /d "'+n+'"'),e.options.env){var a=e.options.env[o];i.push("set "+o+"="+a.replace(/([<>\\|&^])/g,"^$1"))}i.push(e.command),i=i.join("\r\n"),r.fs.writeFile(e.pathCommand,i,"utf-8",t)}(e,(function(t){if(t)return i(t);!function(e,t){var n=[];n.push("powershell.exe"),n.push("Start-Process"),n.push("-FilePath"),n.push("\"'"+e.pathExecute.replace(/'/g,"`'")+"'\""),n.push("-WindowStyle hidden"),n.push("-Verb runAs"),n=n.join(" ");var i=r.child.exec(n,{encoding:"utf-8"},(function(e,n,r){if(e)return t(new Error(p),n,r);t()}));i.stdin.end()}(e,(function(t,n,o){if(t)return i(t,n,o);l(e,(function(t){if(t)return i(t);!function(e,t){r.fs.readFile(e.pathStatus,"utf-8",(function(n,i){if(n)return t(n);r.fs.readFile(e.pathStdout,"utf-8",(function(n,o){if(n)return t(n);r.fs.readFile(e.pathStderr,"utf-8",(function(n,r){if(n)return t(n);0===(i=parseInt(i.trim(),10))?t(void 0,o,r):((n=new Error("Command failed: "+e.command+"\r\n"+r)).code=i,t(n,o,r))}))}))}))}(e,i)}))}))}))}))}))))}))}(e,t):void t(new Error("Platform not yet supported."))}function o(e){if("string"!=typeof e)throw new Error("Expected a string.");return e.replace(/"/g,'\\"')}function a(e,t){if("string"!=typeof e||!e.trim())return t(new Error("Argument path not defined."));var n=[];if("win32"===r.process.platform){if(/"/.test(e))return t(new Error("Argument path cannot contain double-quotes."));n.push('rmdir /s /q "'+e+'"')}else n.push("/bin/rm"),n.push("-rf"),n.push('"'+o(r.path.normalize(e))+'"');n=n.join(" "),r.child.exec(n,{encoding:"utf-8"},t)}function s(e,t){r.crypto.randomBytes(256,(function(n,i){n&&(i=Date.now()+""+Math.random());var o=r.crypto.createHash("SHA256");o.update("sudo-prompt-3"),o.update(e.options.name),o.update(e.command),o.update(i);var a=o.digest("hex").slice(-32);if(!a||"string"!=typeof a||32!==a.length)return t(new Error("Expected a valid UUID."));t(void 0,a)}))}function c(e){return!(!/^[a-z0-9 ]+$/i.test(e)||0===e.trim().length||e.length>70)}function l(e,t){r.fs.stat(e.pathStatus,(function(n,i){n&&"ENOENT"===n.code||i.size<2?setTimeout((function(){r.fs.stat(e.pathStdout,(function(n){if(n)return t(new Error(p));l(e,t)}))}),1e3):n?t(n):t()}))}e.exports.exec=function(){if(arguments.length<1||arguments.length>3)throw new Error("Wrong number of arguments.");var e=arguments[0],t={},n=function(){};if("string"!=typeof e)throw new Error("Command should be a string.");if(2===arguments.length)if(r.util.isObject(arguments[1]))t=arguments[1];else{if(!r.util.isFunction(arguments[1]))throw new Error("Expected options or callback.");n=arguments[1]}else if(3===arguments.length){if(!r.util.isObject(arguments[1]))throw new Error("Expected options to be an object.");if(t=arguments[1],!r.util.isFunction(arguments[2]))throw new Error("Expected callback to be a function.");n=arguments[2]}if(/^sudo/i.test(e))return n(new Error('Command should not be prefixed with "sudo".'));if(void 0===t.name){var o=r.process.title;if(!c(o))return n(new Error("process.title cannot be used as a valid name."));t.name=o}else if(!c(t.name))return n(new Error("options.name must be alphanumeric only (spaces are allowed) and <= 70 characters."));if(void 0!==t.icns){if("string"!=typeof t.icns)return n(new Error("options.icns must be a string if provided."));if(0===t.icns.trim().length)return n(new Error("options.icns must not be empty if provided."))}if(void 0!==t.env){if("object"!=typeof t.env)return n(new Error("options.env must be an object if provided."));if(0===Object.keys(t.env).length)return n(new Error("options.env must not be empty if provided."));for(var a in t.env){var s=t.env[a];if("string"!=typeof a||"string"!=typeof s)return n(new Error("options.env environment variables must be strings."));if(!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(a))return n(new Error("options.env has an invalid environment variable name: "+JSON.stringify(a)));if(/[\r\n]/.test(s))return n(new Error("options.env has an invalid environment variable value: "+JSON.stringify(s)))}}var l=r.process.platform;if("darwin"!==l&&"linux"!==l&&"win32"!==l)return n(new Error("Platform not yet supported."));i({command:e,options:t,uuid:void 0,path:void 0},n)};var u="UEsDBAoAAAAAAO1YcEcAAAAAAAAAAAAAAAAJABwAQ29udGVudHMvVVQJAAPNnElWLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACACgeXBHlHaGqKEBAAC+AwAAEwAcAENvbnRlbnRzL0luZm8ucGxpc3RVVAkAA1zWSVYtkRBXdXgLAAEE9QEAAAQUAAAAfZNRb5swFIWfl1/BeA9OpSmqJkqVBCJFop1VyKQ9Ta59S6wa27NNCfv1M0naJWTsEXO+c8+9vo7v97UI3sBYruRdeBPNwgAkVYzL6i7cluvpbXifTOLP6bdV+QNngRbcugBvl/lmFYRThBZaC0AoLdMA55uiDLwHQtljGIQ75/RXhNq2jUiviqiqe6FF2CgNxnW5N5t6IGKOhb7M0f0ijj9lnLpk8il+hS5ZrZeNZAIWQqj2ge+B5YoSwX8T5xEbo17ktc40gIZQCm8glK5BuieovP5Dbp3xHSeZrHyCXYxO3wM+2wNtHHkWMAQP/bkxbkOVXPMxKuK0Dz6CMh+Wv3AwQ9gPM7INU1NtVK3Ha8sXlfoB+m6J6b4fRzv0mkezMf6R1Fe5MbG2VYYF+L+lMaGvpIKy01cOC4zzMazYKeNOQYuDYkjfjMcteCWJa8w/Zi2ugubFA5e8buqisw7qU81ltzB0xx3QC5/TFh7J/e385/zL+7+/wWbR/LwIOl/dvHiCXw03YFfEPJ9dwsWu5sV2kwnod3QoeLeL0eGdJJM/UEsDBAoAAAAAAHSBjkgAAAAAAAAAAAAAAAAPABwAQ29udGVudHMvTWFjT1MvVVQJAAMbpQ9XLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACABVHBdH7Dk4KTIIAADIYQAAFQAcAENvbnRlbnRzL01hY09TL2FwcGxldFVUCQADMiPZVVOlD1d1eAsAAQT1AQAABBQAAADtnG9sHEcVwGfti7M1/rONLNVtXHqpzsipis+pHOSWFOzEm25at3XrJI2ozbK+W/suuds79vaSuCKSpaOIxRy1+NSPRPAhlWj7AVRaQCWpTRz+CEo+RSKCCho4K67kVhUyAeV4b3fWt17fXZqKFgHvp8zO3/dmdmfPmtl5L7+8/uPXGWMNELZCaGRMgmjHIlxaBCibdcoGsewCljGCIAiCIAiCIAiCIP7r+M21d67zjb/zEaAdwr1bGHuWMQH2/2wAgqqODj0kf0F+8nGfoFRbJ8p9U0C5g/KRgwEZqZLGfrfwwJx+LP2kVWkelD9zJ2NfBr1nWt2xrhNisxWZ3Ex6MpNSc1Z+soqOO+5i7JMYt7vj9BC5jiZXBwirCT2V1c0qOgZAxwMYt9cbRyxnmUljusa9mKBjGON2tgG/PlXNGyeSRlxNGlOZKjpeBR0KxsFx+MB7VJy5GB46OOSrCLPKfEjrH3/gFry+4zOpuH8sm+VF5srW6ltVjZQ3HVnL3KRDDLsflMSADpyDyjuR0urp6AAdHRgHdOD9iOs6Ypl0OmPUupeecOW19OsQAmn3tzBy4LFH5OED3jz0MbYouM8D460BOdTXCaEF6tsgLkF8GeJPQBj16Rb4PTf5xl2NH4J8a5Vy1N3F3OcZzefMaCo5GeVTuJ2P4cUf/aH5qbbP73/utpfeevdbLzwfYfy+Q80woGan/1E+ljo/703g77IaOJY479t5rqFLDag9OjaTs/R0dCQ5aWrmTHS/qaX1ExnzWC66L2PqY7p5PBnTc71TXnn0sG7mkhkjFx3a0IL30e/rQxB+EXL68J4BBLe73r298DySk5tlGPtJY1BmOhZTc727PBH2Ke+ZhF35nTyP80oQBEEQBPFRcJTZVwpvrxZWpLmJkN0VKT4q2iORUGFBOPfnBuFX9nhELOG67f1D9pWxpw4XVrrmTklz+ZY5Wfwurm/t3ffi9cE+uM41vYbbj2fP5kNXt9sXiopwVRj6xhPlr160mttfuVi4Fs2vXv2rfc5u7UeZfxQ+y4pPh/JrpyUUBjmrofzmadGXKf0eui7KK/ZwJLQUiuRAe+mLUFQ+tFKUV3npd7AU9ytz8iqIiXYoUnoBsqdxDbXk3CXcRov9lYhoW5EQjBxb4NoSY9iQsvn5+QSuusrduAybL3eHIIIbLqyIS9CHlY3loB8rldVKuLfyOsE1+a6zhUVxYsFp3Amqz8tr7Lz8dza1JF8TmC3/syivYVtcfxcWOycWQDvuLcrdnc61y7mGnWsErgmsXDbK5TKkscnypJvGhsuH3TQ2X37YTaPQ8ucw7W6t1LR2TFfjekqb0SGTiedTOmz0klZSSyWf0U01pqVSufXGmThsjs20OpU3Yrjuxbnu4u+GP8b1LO6PcX2L4Q6+v8Q07u9aQFLy71Ckt54TIfjfNdzfDkMYhTAOIXHXh39vCYIgCIIgCIIgCIL4z3Nm+84/Ci1Nn8b0ryHsgbBX1rbgOXD7LZJzNtrC0/gFqYOn8csQ/GONguQchPXzcvy+9CBzvk84HxkO+tJH3bRz5Fb0pb/nS3/fl/6BL/2aL43faLzz3Wbmju8W5p6pttaoR9THjgyZ0zEeH2eqqmbNzLShpXVIpxOqflKP5S1dTehaXDeZqhvHk2bGYOo+LZXal0lnM4ZuWMPJXFazYgmmPp7VjWF9SsunrPVa1HpMn0lPm2r8hGZO3aea+nQyZ+mmmtNjFp5i4oG0lTChE+eDj2pm8lbSgDFoln4yCRp00zQyEDmZtBZLbGxnanHzgWh092d29e/uv+/f+DIQBEEQBEEQBEEQ/7P81rX/FxoZm/Xs/5UmtP8PO/W3M9fGvKoPAEfYXLQJ1HOpmk+AJx80OOb5m/URGG9z9c378rVs9F15tPXP1dS3wvVtC+Q9/H4DFX21fQcY9zvo9eXrj6++D0Af1zfqy9eyx3f16QnVMayufr+zXN+sL99YRx/O69er+RdIgXkNxJv9DfBTDIxLPa6Zudr6enz5euO6ke9Bj7TRzr0noK+JbczfyA9hgOvr9OX98t57XNFX3ydhlOsL+2T8+oK/ucrvNOCfEHbbXhAqeebLB/0V7oYp7+Pt8PsZWnl1+urRpAn7SUCcYBX/hkth95kd2cFYllX3bxB4+xCrzcCO6v4PbXzo1fwbEM/H4ds/f/nCgZH+8k+j0vNPv7Jlz7qPQ1PFx+FVPoZ76ozj42K87YP9/cT7xuf9UfpSeP0MsJvzp0A8/4g3w+78ef4R+F4QBEEQBPH/w1Gm2FeUwturytwpUSnmJfta4Q3h3J8aFeE9xf7d1ZBSOCcqhftZ/m+YKuG6wV4qaQzdGED0Z2jJ/zpa9ZcegjIF7fkVaIBrt11nJxYOOepXpPPyKjsvvytOLcnvCWxJfh87V+xTa0rx1Kpj0a8UFqWJhXL3fgHt9xXn+rCz7Bop3rkTEkNj5e7bIZ7HNRZb/ku5XE6g58HyZUzdj6mLjh1/Pbt7XMt5dvfvtLl1Fbv7BtbhrtyEPW6V038H1yE88yQTTkqC1LJVnIeaCNe7dr3sEPEe6lCb9LWGfa3efvNG8pe5fF8NeW8g3n7jCI+/xOOEVH19KvF9oudHH2n/YOtYgiAIgiAIgiAIgiA+fm69mx3aO8bYtkHn/xlwDq8nkwaavz9h9swzc+DWwRrm71A5CJVVjeChTtk26Fqwu0fxQjUL+9vqHVV/KC53OUd+bJxVfBkw7/gzCO5pr3dOK/g+WUQDeZlV/A2QRwJ5THjn1/xcd9BfhlT1KbgpVwLn+W2amGr2//8CUEsDBBQAAAAIAAVHj0ga7FYjfQEAAKoCAAAhABwAQ29udGVudHMvTWFjT1Mvc3Vkby1wcm9tcHQtc2NyaXB0VVQJAAOJkBBXipAQV3V4CwABBPUBAAAEFAAAAI1SO08cMRDu91cMHIKGxUB5xSGEUqTlFKWMvPYca+EXnjGXy6/PeNcg0qVay+PvObs5U5OLatI0DxvYIwNVm4BdQGIdMhxSkauJ8K1i7FOjvSdwB2A+/WJnXpEJdEGwjvTk0W6HhTW8WldgzKDedVF2Ug2tLn7svz3DDpTFdxWr93C/u7wbVKWyoDhVM/8XZAOPOXvcm+IyXxGcizeaUca0XJ1D0CfQnlEysE2VwbuII0br4gvdCMF37m9IoC39+oxTO2EpS8oZJdtRS0aIKY5/sCQoyLVEMMki6Ghl0BGN9SeuICkPIctXDHDDSB9oGEQi1yZWUAda8EZnIcR/eIOOVao+9TrbkpYFjLmkkHk0KYSGvdt12/e71cP6Hs2c4OJBemtsYusplVX+GLHQ7DKkQ098/ZF38dLEpRCeNUMlMW90BIseeQkWtuu2qKmIyDHCuqFuo1N11Ud/1Cf6CHb7Sfxld2ATklQoUGEDActfZ5326WU74G/HcDv8BVBLAwQKAAAAAADtWHBHqiAGewgAAAAIAAAAEAAcAENvbnRlbnRzL1BrZ0luZm9VVAkAA82cSVYqkRBXdXgLAAEE9QEAAAQUAAAAQVBQTGFwbHRQSwMECgAAAAAAm3lwRwAAAAAAAAAAAAAAABMAHABDb250ZW50cy9SZXNvdXJjZXMvVVQJAANW1klWLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACACAeXBHfrnysfYGAAAf3AAAHgAcAENvbnRlbnRzL1Jlc291cmNlcy9hcHBsZXQuaWNuc1VUCQADH9ZJVnGlD1d1eAsAAQT1AQAABBQAAADt3Xk81Hkcx/Hvb5yVo5bGsVlKbcpRRqFlGZGS5JikRBIdI0OZttMZloqiYwrVjD1UqJaUokTRubG72bZVjqR1VZNjp2XEGo9H+9gt+9h/9tHx8H7N4/fw5MHjYeaPz+P7+P7x/bL9griEPNBm+001J0S+ZbvL/NmKwzWHE0IUHebYuRFCEckjL9v/xSvk2EpCpBXZtrYuDra2Oi4hwSvZgSsIMU9MdPdePcZd1aqQu0p3fDkrcFrs+mPWihMU9y6clp5XEFFdbRrEczCtGtfkL3pWfvBGublJ4ct051kuocYtaaqll/IjdfR+V75vlTdl//AJVZU6elZ5f0S7NO3MaE2xMElhF+TUrHgW2nFYeGTrs/OrhDJN5zMX8ZJVKXrqSUM1Rj03bnf85/pJMXECNdl0D1ctfe/j82imziM2nllSa3t5q8+vP1f38k/k22uN1lmnvfz0b8dGxO+mnh91v7WB2tKdrG3d4vmJaHlTvjGzdMqWcw/9frnCtQpPZK9sMKi/Ey/jzgqIPzBy9/dlf9griI2/u+sjcApozWx6/NXytC+qBTlrhb69fE7J6tgOzpWjFSl8qxihr5dYf/qExoeupY6Ze/j2PfL1azhhZ8fU3eelJY+ylk16UJN6KmOU0M4r+75cZhH/mxNndowNb4wx7TCoN4yvMGu8ySq5l5W5t+xQyYbS/Ome7e0W0sXbC5aktl0LEXNYR9obH7dMT721dbNdT/eFzXNEYSH8GU+bQ5s6YniGcj3fHtgXPbo0Oj4i3d5G1Fjfm/Ng7kgpjQDNxw4RRnu+Vloy5ZE3J6OpwlFBzaxS25He2h3lJuizO70zJPLUYtks14RE5yrD8y2tXa5l5Wqh/NBY06yoiCLF08Nk9A5Ojbs43GmR1Ch/PaZsLf3e6uPRSrIM1ROqGjt80leqfdxYbNn+WV7K7ZKiy/t6r1/3ie46V5432T/Oahs9V7NnVzb9zoq2rFgvPxXrcAMzmvWnGjof/RpdsZThIEpex6DGbd5h6STaOyZXxV/YfW9u4KyllmZ3X15IMHHLSJtVPSOvULCsz2TyPC/WL9kGSme/1L01SSzjfbHnqk+OV7OBmevZeo3DBR7lXT5drT0MkX5PwDd1EQ0ebfkh1zy/L8ydd+VJ4CLuRndNjuwj+vMfU8q2l2l1rGtr8FC2D+fdSGk81eltuTjYSMk++4BMd0DXQo35iXbZndGdcXkGFyeG6b28evF22M2w22HlYSXetGSLW4cfFT00WqvN9bkqCujQ9KzdSt+snr+qmbcme+5Y3cDRn9BDLps+dPVltE9UkPeb6XovineiVUznTznyuZaSn/ZvR8VeRUYLqe3iHFqnU6+7+4LmtfsmaS0MdjIvslFJGG/rn7DPdMGLcx4d6eP2Oz92Y49kWbBUjudU2ijHnc7YIODQxD1aPx8PynVr+cmvJoy2+M5nQa2Kt0dvdPxp73LNU6aTeaktTfHH1L+8Pm/XalZcFcfzYxlhTefuzjRGobLKEqPZh8QKxUXWbU/ERvW78ghvTGTUNd0g9YqbcjUy5h0xVbn3S7SS54SOqKt88UR0qZuxKfxlZfODUm52o2HkGTOLw5dqhevvWjH7ssiqxAhKwA91d1nWG9w/GJIc7GwWbKKe/mAsGRqXBb87P10jH8/0LY6kpGQV1KcuAwAAeCt4LiVFWRJKs4DJ6p9GxGHWfLuTM5dt61/pzCCE7vLmSodGJM/ASqdzU2U3VjpY6WClg5XOICudUaI3VjocuWCsdAAAAAAAAAAAAAAAAD5o1Gmr054TSoqWxPvnfrLxVEIc29/cT5YmkmdgPzlCSz8a+8nYT8Z+MvaTB9lPZpJX+8lRktFyRdDF0m6IdcF2MgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC8ddD8G5oJkUuQnAXwnvxLAAAAADDkEFURRckVE6rIv+Tb1078MiZEetubJ34RHckzcOIXd8uWTpz4hRO/cOIXTvwa5MQvoidZ5S8a9h8nfl1QVhipQ6jyyWeuvTaBGP3D5fwgE4gpeQYmUCZ7XQ0mECYQJhAm0GATyOfVmYOU4sAdNi+cOUpm/9cdNv2Di8kkFN3mYOtrg8sE14xicGFwYXDhmlEAAD5w/Os1o8bTcM0oVjpY6WClg2tGAQAAAAAAAAAAAAAAgL/wb9eMBpow+r817yN/fwnJf33P5g78nWofEZNXD3u95GdSkh3o135/aL2i3vl/gHf/7t59oDlnDSHS8gQhNGQL8uWs6P+iwPYLDuIOzARqyM+E9QOfA3PIfw4IIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhND70J9QSwMEFAAAAAgA7VhwR/dYplZAAAAAagEAAB4AHABDb250ZW50cy9SZXNvdXJjZXMvYXBwbGV0LnJzcmNVVAkAA82cSVZTpQ9XdXgLAAEE9QEAAAQUAAAAY2BgZGBgYFQBEiDsxjDygJQDPlkmEIEaRpJAQg8kLAMML8bi5OIqIFuouKA4A0jLMTD8/w+S5AdrB7PlBIAEAFBLAwQKAAAAAADtWHBHAAAAAAAAAAAAAAAAJAAcAENvbnRlbnRzL1Jlc291cmNlcy9kZXNjcmlwdGlvbi5ydGZkL1VUCQADzZxJVi2REFd1eAsAAQT1AQAABBQAAABQSwMEFAAAAAgA7VhwRzPLNU9TAAAAZgAAACsAHABDb250ZW50cy9SZXNvdXJjZXMvZGVzY3JpcHRpb24ucnRmZC9UWFQucnRmVVQJAAPNnElWU6UPV3V4CwABBPUBAAAEFAAAACWJOw6AIBAFe08DCBVX2QbWhZgQ1vCpCHcXtHkzkzegtCDB5Xp/g0+UyihARnb70kL/UbvffYpjQODcmk9zKXListxCoUsZA7EQ5S0+dVq085gvUEsDBAoAAAAAAIeBjkgAAAAAAAAAAAAAAAAbABwAQ29udGVudHMvUmVzb3VyY2VzL1NjcmlwdHMvVVQJAAM9pQ9XLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACAAJgI5ICl5liTUBAADMAQAAJAAcAENvbnRlbnRzL1Jlc291cmNlcy9TY3JpcHRzL21haW4uc2NwdFVUCQADcaIPV1OlD1d1eAsAAQT1AQAABBQAAAB9UMtOAkEQrNldd9dhH3Dz6NGYiPIJHjTxLCZeF9iDcXEJC0RvfoI/4sEfIvoHPEQEhbIHvOok01U16emu7vOkaF2dXu7XqrUTcyMATkxCwYKthCAUbmciAQ8O11yFcGBfbF/4jR24WmCvWjwUeXqfNutn13XyEeYYHkqKam+kghdJGfUCvwIfB6jiGAX6aCHHETroCrYFe6IKNEXfGOXChc0v7HKpBRzdSFrtELvbumKVC80F/FIjzwe9bj91uZRuXJuwAiLjNi7DlsxPaJSUAMrCFOeac3GfpINennQ6d/0sA4z7JxzKiVCCV+YHAs74LuuIONUi//4RIoC63czrIbYQS3PFicWJcTMTv1JHmocmROLJ45gjzfHvXJqjf7ZZ4RT+61uaBbDipGh2ZanBcjh8/gFQSwECHgMKAAAAAADtWHBHAAAAAAAAAAAAAAAACQAYAAAAAAAAABAA7UEAAAAAQ29udGVudHMvVVQFAAPNnElWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAoHlwR5R2hqihAQAAvgMAABMAGAAAAAAAAQAAAKSBQwAAAENvbnRlbnRzL0luZm8ucGxpc3RVVAUAA1zWSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAAB0gY5IAAAAAAAAAAAAAAAADwAYAAAAAAAAABAA7UExAgAAQ29udGVudHMvTWFjT1MvVVQFAAMbpQ9XdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAVRwXR+w5OCkyCAAAyGEAABUAGAAAAAAAAAAAAO2BegIAAENvbnRlbnRzL01hY09TL2FwcGxldFVUBQADMiPZVXV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAAVHj0ga7FYjfQEAAKoCAAAhABgAAAAAAAEAAADtgfsKAABDb250ZW50cy9NYWNPUy9zdWRvLXByb21wdC1zY3JpcHRVVAUAA4mQEFd1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAADtWHBHqiAGewgAAAAIAAAAEAAYAAAAAAABAAAApIHTDAAAQ29udGVudHMvUGtnSW5mb1VUBQADzZxJVnV4CwABBPUBAAAEFAAAAFBLAQIeAwoAAAAAAJt5cEcAAAAAAAAAAAAAAAATABgAAAAAAAAAEADtQSUNAABDb250ZW50cy9SZXNvdXJjZXMvVVQFAANW1klWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAgHlwR3658rH2BgAAH9wAAB4AGAAAAAAAAAAAAKSBcg0AAENvbnRlbnRzL1Jlc291cmNlcy9hcHBsZXQuaWNuc1VUBQADH9ZJVnV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAO1YcEf3WKZWQAAAAGoBAAAeABgAAAAAAAAAAACkgcAUAABDb250ZW50cy9SZXNvdXJjZXMvYXBwbGV0LnJzcmNVVAUAA82cSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAADtWHBHAAAAAAAAAAAAAAAAJAAYAAAAAAAAABAA7UFYFQAAQ29udGVudHMvUmVzb3VyY2VzL2Rlc2NyaXB0aW9uLnJ0ZmQvVVQFAAPNnElWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgA7VhwRzPLNU9TAAAAZgAAACsAGAAAAAAAAQAAAKSBthUAAENvbnRlbnRzL1Jlc291cmNlcy9kZXNjcmlwdGlvbi5ydGZkL1RYVC5ydGZVVAUAA82cSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAACHgY5IAAAAAAAAAAAAAAAAGwAYAAAAAAAAABAA7UFuFgAAQ29udGVudHMvUmVzb3VyY2VzL1NjcmlwdHMvVVQFAAM9pQ9XdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgACYCOSApeZYk1AQAAzAEAACQAGAAAAAAAAAAAAKSBwxYAAENvbnRlbnRzL1Jlc291cmNlcy9TY3JpcHRzL21haW4uc2NwdFVUBQADcaIPV3V4CwABBPUBAAAEFAAAAFBLBQYAAAAADQANANwEAABWGAAAAAA=",p="User did not grant permission.",d="No polkit authentication agent found.",f=134217728},2130:(e,t,n)=>{"use strict";const r=n(2037),i=n(6224),o=n(2146),{env:a}=process;let s;function c(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l(e,t){if(0===s)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(e&&!t&&void 0===s)return 0;const n=s||0;if("dumb"===a.TERM)return n;if("win32"===process.platform){const e=r.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in a))||"codeship"===a.CI_NAME?1:n;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("GITHUB_ACTIONS"in a)return 1;if("truecolor"===a.COLORTERM)return 3;if("TERM_PROGRAM"in a){const e=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:n}o("no-color")||o("no-colors")||o("color=false")||o("color=never")?s=0:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(s=1),"FORCE_COLOR"in a&&(s="true"===a.FORCE_COLOR?1:"false"===a.FORCE_COLOR?0:0===a.FORCE_COLOR.length?1:Math.min(parseInt(a.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return c(l(e,e&&e.isTTY))},stdout:c(l(!0,i.isatty(1))),stderr:c(l(!0,i.isatty(2)))}},2146:e=>{"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r<i)}},3403:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,a,s,c,l=n(1017),u=n(7147),p=Object.prototype.toString;function d(e){return void 0!==e}function f(e){return"[object String]"===p.call(e)}function h(e){return JSON.parse(u.readFileSync(e,"utf8"))}function m(e,t){return c&&(e="["+e.replace(/[aouei]/g,"$&$&")+"]"),0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,n){var r=n[0],i=t[r],o=e;return"string"==typeof i?o=i:"number"!=typeof i&&"boolean"!=typeof i&&null!=i||(o=String(i)),o}))}function v(e){return function(t,n){for(var r,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];return r=t,"[object Number]"===p.call(r)?t>=e.length?void console.error("Broken localize call found. Index out of bounds. Stacktrace is\n: "+new Error("").stack):m(e[t],i):f(n)?(console.warn("Message "+n+" didn't get externalized correctly."),m(n,i)):void console.error("Broken localize call found. Stacktrace is\n: "+new Error("").stack)}}function g(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return m(t,n)}function b(e,t){return a[e]=t,t}function y(e){try{return function(e){var t=h(l.join(e,"nls.metadata.json")),n=Object.create(null);for(var r in t){var i=t[r];n[r]=i.messages}return n}(e)}catch(e){return void console.log("Generating default bundle from meta data failed.",e)}}function _(e,t){var n;if(!0===s.languagePackSupport&&void 0!==s.cacheRoot&&void 0!==s.languagePackId&&void 0!==s.translationsConfigFile&&void 0!==s.translationsConfig)try{n=function(e,t){var n,r,i,o=l.join(s.cacheRoot,e.id+"-"+e.hash+".json"),a=!1,c=!1;try{return n=JSON.parse(u.readFileSync(o,{encoding:"utf8",flag:"r"})),r=o,i=new Date,u.utimes(r,i,i,(function(){})),n}catch(e){if("ENOENT"===e.code)c=!0;else{if(!(e instanceof SyntaxError))throw e;console.log("Syntax error parsing message bundle: "+e.message+"."),u.unlink(o,(function(e){e&&console.error("Deleting corrupted bundle "+o+" failed.")})),a=!0}}if(n=function(e,t){var n=s.translationsConfig[e.id];if(n){var r=h(n).contents,i=h(l.join(t,"nls.metadata.json")),o=Object.create(null);for(var a in i){var c=i[a],u=r[e.outDir+"/"+a];if(u){for(var p=[],d=0;d<c.keys.length;d++){var m=c.keys[d],v=u[f(m)?m:m.key];void 0===v&&(v=c.messages[d]),p.push(v)}o[a]=p}else o[a]=c.messages}return o}}(e,t),!n||a)return n;if(c)try{u.writeFileSync(o,JSON.stringify(n),{encoding:"utf8",flag:"wx"})}catch(e){if("EEXIST"===e.code)return n;throw e}return n}(e,t)}catch(e){console.log("Load or create bundle failed ",e)}if(!n){if(s.languagePackSupport)return y(t);var r=function(e){for(var t=s.language;t;){var n=l.join(e,"nls.bundle."+t+".json");if(u.existsSync(n))return n;var r=t.lastIndexOf("-");t=r>0?t.substring(0,r):void 0}if(void 0===t&&(n=l.join(e,"nls.bundle.json"),u.existsSync(n)))return n}(t);if(r)try{return h(r)}catch(e){console.log("Loading in the box message bundle failed.",e)}n=y(t)}return n}function x(e){if(!e)return g;var t=l.extname(e);if(t&&(e=e.substr(0,e.length-t.length)),s.messageFormat===r.both||s.messageFormat===r.bundle){var n=function(e){for(var t,n=l.dirname(e);t=l.join(n,"nls.metadata.header.json"),!u.existsSync(t);){var r=l.dirname(n);if(r===n){t=void 0;break}n=r}return t}(e);if(n){var i=l.dirname(n),o=a[i];if(void 0===o)try{var p=JSON.parse(u.readFileSync(n,"utf8"));try{var f=_(p,i);o=b(i,f?{header:p,nlsBundle:f}:null)}catch(e){console.error("Failed to load nls bundle",e),o=b(i,null)}}catch(e){console.error("Failed to read header file",e),o=b(i,null)}if(o){var m=e.substr(i.length+1).replace(/\\/g,"/"),y=o.nlsBundle[m];return void 0===y?(console.error("Messages for file "+e+" not found. See console for details."),function(){return"Messages not found."}):v(y)}}}if(s.messageFormat===r.both||s.messageFormat===r.file)try{var x=h(function(e){var t;if(s.cacheLanguageResolution&&t);else{if(c||!s.language)t=".nls.json";else for(var n=s.language;n;){var r=".nls."+n+".json";if(u.existsSync(e+r)){t=r;break}var i=n.lastIndexOf("-");i>0?n=n.substring(0,i):(t=".nls.json",n=null)}s.cacheLanguageResolution}return e+t}(e));return Array.isArray(x)?v(x):d(x.messages)&&d(x.keys)?v(x.messages):(console.error("String bundle '"+e+"' uses an unsupported format."),function(){return"File bundle has unsupported format. See console for details"})}catch(e){"ENOENT"!==e.code&&console.error("Failed to load single file bundle",e)}return console.error("Failed to load message bundle for file "+e),function(){return"Failed to load message bundle. See console for details."}}!function(e){e.file="file",e.bundle="bundle",e.both="both"}(r=t.MessageFormat||(t.MessageFormat={})),function(e){e.standalone="standalone",e.languagePack="languagePack"}(i=t.BundleFormat||(t.BundleFormat={})),function(e){e.is=function(e){var t=e;return t&&d(t.key)&&d(t.comment)}}(o||(o={})),function(){if(s={locale:void 0,language:void 0,languagePackSupport:!1,cacheLanguageResolution:!0,messageFormat:r.bundle},f(process.env.VSCODE_NLS_CONFIG))try{var e=JSON.parse(process.env.VSCODE_NLS_CONFIG),t=void 0;if(e.availableLanguages){var n=e.availableLanguages["*"];f(n)&&(t=n)}if(f(e.locale)&&(s.locale=e.locale.toLowerCase()),void 0===t?s.language=s.locale:"en"!==t&&(s.language=t),function(e){return!0===e||!1===e}(e._languagePackSupport)&&(s.languagePackSupport=e._languagePackSupport),f(e._cacheRoot)&&(s.cacheRoot=e._cacheRoot),f(e._languagePackId)&&(s.languagePackId=e._languagePackId),f(e._translationsConfigFile)){s.translationsConfigFile=e._translationsConfigFile;try{s.translationsConfig=h(s.translationsConfigFile)}catch(t){e._corruptedFile&&u.writeFile(e._corruptedFile,"corrupted","utf8",(function(e){console.error(e)}))}}}catch(e){}c="pseudo"===s.locale,a=Object.create(null)}(),t.loadMessageBundle=x,t.config=function(e){return e&&(f(e.locale)&&(s.locale=e.locale.toLowerCase(),s.language=s.locale,a=Object.create(null)),void 0!==e.messageFormat&&(s.messageFormat=e.messageFormat),e.bundleFormat===i.standalone&&!0===s.languagePackSupport&&(s.languagePackSupport=!1)),c="pseudo"===s.locale,x}},9602:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},4411:(e,t,n)=>{"use strict";function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)t.push(arguments[n]);return t}function i(e,t,n){var r=t===e.head?new s(n,null,t,e):new s(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function o(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function a(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,n,r){if(!(this instanceof s))return new s(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=r,r.Node=s,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},r.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},r.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},r.prototype.map=function(e,t){t=t||this;for(var n=new r,i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r,i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n},r.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&i<t;i++,o=o.next)n.push(o.value);return n},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n},r.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,o=this.head;null!==o&&r<e;r++)o=o.next;var a=[];for(r=0;o&&r<t;r++)a.push(o.value),o=this.removeNode(o);for(null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev),r=0;r<n.length;r++)o=i(this,o,n[r]);return a},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{n(9602)(r)}catch(e){}},9056:(e,t,n)=>{var r,i,o;o=n(4971),i=n(6545),r=function(){function e(){}return e.indentation=4,e.prototype.dump=function(e,t,n,r,a){var s,c,l,u,p,d,f;if(null==t&&(t=0),null==n&&(n=0),null==r&&(r=!1),null==a&&(a=null),u="",p=n?o.strRepeat(" ",n):"",t<=0||"object"!=typeof e||e instanceof Date||o.isEmpty(e))u+=p+i.dump(e,r,a);else if(e instanceof Array)for(s=0,l=e.length;s<l;s++)d=e[s],u+=p+"-"+((f=t-1<=0||"object"!=typeof d||o.isEmpty(d))?" ":"\n")+this.dump(d,t-1,f?0:n+this.indentation,r,a)+(f?"\n":"");else for(c in e)d=e[c],f=t-1<=0||"object"!=typeof d||o.isEmpty(d),u+=p+i.dump(c,r,a)+":"+(f?" ":"\n")+this.dump(d,t-1,f?0:n+this.indentation,r,a)+(f?"\n":"");return u},e}(),e.exports=r},9237:(e,t,n)=>{var r,i;i=n(1665),r=function(){var e;function t(){}return t.LIST_ESCAPEES=["\\","\\\\",'\\"','"',"\0","","","","","","","","\b","\t","\n","\v","\f","\r","","","","","","","","","","","","","","","","","","",(e=String.fromCharCode)(133),e(160),e(8232),e(8233)],t.LIST_ESCAPED=["\\\\",'\\"','\\"','\\"',"\\0","\\x01","\\x02","\\x03","\\x04","\\x05","\\x06","\\a","\\b","\\t","\\n","\\v","\\f","\\r","\\x0e","\\x0f","\\x10","\\x11","\\x12","\\x13","\\x14","\\x15","\\x16","\\x17","\\x18","\\x19","\\x1a","\\e","\\x1c","\\x1d","\\x1e","\\x1f","\\N","\\_","\\L","\\P"],t.MAPPING_ESCAPEES_TO_ESCAPED=function(){var e,n,r,i;for(r={},e=n=0,i=t.LIST_ESCAPEES.length;0<=i?n<i:n>i;e=0<=i?++n:--n)r[t.LIST_ESCAPEES[e]]=t.LIST_ESCAPED[e];return r}(),t.PATTERN_CHARACTERS_TO_ESCAPE=new i("[\\x00-\\x1f]|…| |
|
"),t.PATTERN_MAPPING_ESCAPEES=new i(t.LIST_ESCAPEES.join("|").split("\\").join("\\\\")),t.PATTERN_SINGLE_QUOTING=new i("[\\s'\":{}[\\],&*#?]|^[-?|<>=!%@`]"),t.requiresDoubleQuoting=function(e){return this.PATTERN_CHARACTERS_TO_ESCAPE.test(e)},t.escapeWithDoubleQuotes=function(e){var t;return'"'+this.PATTERN_MAPPING_ESCAPEES.replace(e,(t=this,function(e){return t.MAPPING_ESCAPEES_TO_ESCAPED[e]}))+'"'},t.requiresSingleQuoting=function(e){return this.PATTERN_SINGLE_QUOTING.test(e)},t.escapeWithSingleQuotes=function(e){return"'"+e.replace(/'/g,"''")+"'"},t}(),e.exports=r},6315:e=>{var t,n={}.hasOwnProperty;t=function(e){function t(e,t,n){this.message=e,this.parsedLine=t,this.snippet=n}return function(e,t){for(var r in t)n.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(t,Error),t.prototype.toString=function(){return null!=this.parsedLine&&null!=this.snippet?"<DumpException> "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":"<DumpException> "+this.message},t}(),e.exports=t},1336:e=>{var t,n={}.hasOwnProperty;t=function(e){function t(e,t,n){this.message=e,this.parsedLine=t,this.snippet=n}return function(e,t){for(var r in t)n.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(t,Error),t.prototype.toString=function(){return null!=this.parsedLine&&null!=this.snippet?"<ParseException> "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":"<ParseException> "+this.message},t}(),e.exports=t},7435:e=>{var t,n={}.hasOwnProperty;t=function(e){function t(e,t,n){this.message=e,this.parsedLine=t,this.snippet=n}return function(e,t){for(var r in t)n.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(t,Error),t.prototype.toString=function(){return null!=this.parsedLine&&null!=this.snippet?"<ParseMore> "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":"<ParseMore> "+this.message},t}(),e.exports=t},6545:(e,t,n)=>{var r,i,o,a,s,c,l,u=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};s=n(1665),c=n(6762),r=n(9237),l=n(4971),o=n(1336),a=n(7435),n(6315),i=function(){function e(){}return e.REGEX_QUOTED_STRING="(?:\"(?:[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*)\"|'(?:[^']*(?:''[^']*)*)')",e.PATTERN_TRAILING_COMMENTS=new s("^\\s*#.*$"),e.PATTERN_QUOTED_SCALAR=new s("^"+e.REGEX_QUOTED_STRING),e.PATTERN_THOUSAND_NUMERIC_SCALAR=new s("^(-|\\+)?[0-9,]+(\\.[0-9]+)?$"),e.PATTERN_SCALAR_BY_DELIMITERS={},e.settings={},e.configure=function(e,t){null==e&&(e=null),null==t&&(t=null),this.settings.exceptionOnInvalidType=e,this.settings.objectDecoder=t},e.parse=function(e,t,n){var r,i;if(null==t&&(t=!1),null==n&&(n=null),this.settings.exceptionOnInvalidType=t,this.settings.objectDecoder=n,null==e)return"";if(0===(e=l.trim(e)).length)return"";switch(r={exceptionOnInvalidType:t,objectDecoder:n,i:0},e.charAt(0)){case"[":i=this.parseSequence(e,r),++r.i;break;case"{":i=this.parseMapping(e,r),++r.i;break;default:i=this.parseScalar(e,null,['"',"'"],r)}if(""!==this.PATTERN_TRAILING_COMMENTS.replace(e.slice(r.i),""))throw new o('Unexpected characters near "'+e.slice(r.i)+'".');return i},e.dump=function(e,t,n){var i,o,a;return null==t&&(t=!1),null==n&&(n=null),null==e?"null":"object"==(a=typeof e)?e instanceof Date?e.toISOString():null==n||"string"!=typeof(o=n(e))&&null==o?this.dumpObject(e):o:"boolean"===a?e?"true":"false":l.isDigits(e)?"string"===a?"'"+e+"'":String(parseInt(e)):l.isNumeric(e)?"string"===a?"'"+e+"'":String(parseFloat(e)):"number"===a?Infinity===e?".Inf":-Infinity===e?"-.Inf":isNaN(e)?".NaN":e:r.requiresDoubleQuoting(e)?r.escapeWithDoubleQuotes(e):r.requiresSingleQuoting(e)?r.escapeWithSingleQuotes(e):""===e?'""':l.PATTERN_DATE.test(e)||"null"===(i=e.toLowerCase())||"~"===i||"true"===i||"false"===i?"'"+e+"'":e},e.dumpObject=function(e,t,n){var r,i,o,a,s;if(null==n&&(n=null),e instanceof Array){for(a=[],r=0,o=e.length;r<o;r++)s=e[r],a.push(this.dump(s));return"["+a.join(", ")+"]"}for(i in a=[],e)s=e[i],a.push(this.dump(i)+": "+this.dump(s));return"{"+a.join(", ")+"}"},e.parseScalar=function(e,t,n,r,i){var a,c,p,d,f,h,m,v;if(null==t&&(t=null),null==n&&(n=['"',"'"]),null==r&&(r=null),null==i&&(i=!0),null==r&&(r={exceptionOnInvalidType:this.settings.exceptionOnInvalidType,objectDecoder:this.settings.objectDecoder,i:0}),a=r.i,h=e.charAt(a),u.call(n,h)>=0){if(d=this.parseQuotedScalar(e,r),a=r.i,null!=t&&(m=l.ltrim(e.slice(a)," ").charAt(0),!(u.call(t,m)>=0)))throw new o("Unexpected characters ("+e.slice(a)+").")}else{if(t){if(c=t.join("|"),null==(f=this.PATTERN_SCALAR_BY_DELIMITERS[c])&&(f=new s("^(.+?)("+c+")"),this.PATTERN_SCALAR_BY_DELIMITERS[c]=f),!(p=f.exec(e.slice(a))))throw new o("Malformed inline YAML string ("+e+").");a+=(d=p[1]).length}else a+=(d=e.slice(a)).length,-1!==(v=d.indexOf(" #"))&&(d=l.rtrim(d.slice(0,v)));i&&(d=this.evaluateScalar(d,r))}return r.i=a,d},e.parseQuotedScalar=function(e,t){var n,r,i;if(n=t.i,!(r=this.PATTERN_QUOTED_SCALAR.exec(e.slice(n))))throw new a("Malformed inline YAML string ("+e.slice(n)+").");return i=r[0].substr(1,r[0].length-2),i='"'===e.charAt(n)?c.unescapeDoubleQuotedString(i):c.unescapeSingleQuotedString(i),n+=r[0].length,t.i=n,i},e.parseSequence=function(e,t){var n,r,i,o,s,c;for(o=[],i=e.length,n=t.i,n+=1;n<i;){switch(t.i=n,e.charAt(n)){case"[":o.push(this.parseSequence(e,t)),n=t.i;break;case"{":o.push(this.parseMapping(e,t)),n=t.i;break;case"]":return o;case",":case" ":case"\n":break;default:if(r='"'===(s=e.charAt(n))||"'"===s,c=this.parseScalar(e,[",","]"],['"',"'"],t),n=t.i,!r&&"string"==typeof c&&(-1!==c.indexOf(": ")||-1!==c.indexOf(":\n")))try{c=this.parseMapping("{"+c+"}")}catch(e){}o.push(c),--n}++n}throw new a("Malformed inline YAML string "+e)},e.parseMapping=function(e,t){var n,r,i,o,s,c,l;for(s={},o=e.length,r=t.i,r+=1,c=!1;r<o;){switch(t.i=r,e.charAt(r)){case" ":case",":case"\n":++r,t.i=r,c=!0;break;case"}":return s}if(c)c=!1;else for(i=this.parseScalar(e,[":"," ","\n"],['"',"'"],t,!1),r=t.i,n=!1;r<o;){switch(t.i=r,e.charAt(r)){case"[":l=this.parseSequence(e,t),r=t.i,void 0===s[i]&&(s[i]=l),n=!0;break;case"{":l=this.parseMapping(e,t),r=t.i,void 0===s[i]&&(s[i]=l),n=!0;break;case":":case" ":case"\n":break;default:l=this.parseScalar(e,[",","}"],['"',"'"],t),r=t.i,void 0===s[i]&&(s[i]=l),n=!0,--r}if(++r,n)break}}throw new a("Malformed inline YAML string "+e)},e.evaluateScalar=function(e,t){var n,r,i,a,s,c,u,p,d;switch(u=(e=l.trim(e)).toLowerCase()){case"null":case"":case"~":return null;case"true":return!0;case"false":return!1;case".inf":case"-.inf":return Infinity;case".nan":return NaN;default:switch(u.charAt(0)){case"!":switch(-1===(a=e.indexOf(" "))?u:u.slice(0,a)){case"!":return-1!==a?parseInt(this.parseScalar(e.slice(2))):null;case"!str":return l.ltrim(e.slice(4));case"!!str":return l.ltrim(e.slice(5));case"!!int":return parseInt(this.parseScalar(e.slice(5)));case"!!bool":return l.parseBoolean(this.parseScalar(e.slice(6)),!1);case"!!float":return parseFloat(this.parseScalar(e.slice(7)));case"!!timestamp":return l.stringToDate(l.ltrim(e.slice(11)));default:if(null==t&&(t={exceptionOnInvalidType:this.settings.exceptionOnInvalidType,objectDecoder:this.settings.objectDecoder,i:0}),s=t.objectDecoder,i=t.exceptionOnInvalidType,s)return-1===(a=(d=l.rtrim(e)).indexOf(" "))?s(d,null):((p=l.ltrim(d.slice(a+1))).length>0||(p=null),s(d.slice(0,a),p));if(i)throw new o("Custom object support when parsing a YAML file has been disabled.");return null}break;case"0":return"0x"===e.slice(0,2)?l.hexDec(e):l.isDigits(e)?l.octDec(e):l.isNumeric(e)?parseFloat(e):e;case"+":return l.isDigits(e)?(c=e,n=parseInt(c),c===String(n)?n:c):l.isNumeric(e)?parseFloat(e):this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(e)?parseFloat(e.replace(",","")):e;case"-":return l.isDigits(e.slice(1))?"0"===e.charAt(1)?-l.octDec(e.slice(1)):(c=e.slice(1),n=parseInt(c),c===String(n)?-n:-c):l.isNumeric(e)?parseFloat(e):this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(e)?parseFloat(e.replace(",","")):e;default:return(r=l.stringToDate(e))?r:l.isNumeric(e)?parseFloat(e):this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(e)?parseFloat(e.replace(",","")):e}}},e}(),e.exports=i},2750:(e,t,n)=>{var r,i,o,a,s,c;r=n(6545),s=n(1665),c=n(4971),i=n(1336),o=n(7435),a=function(){function e(e){this.offset=null!=e?e:0,this.lines=[],this.currentLineNb=-1,this.currentLine="",this.refs={}}return e.prototype.PATTERN_FOLDED_SCALAR_ALL=new s("^(?:(?<type>![^\\|>]*)\\s+)?(?<separator>\\||>)(?<modifiers>\\+|\\-|\\d+|\\+\\d+|\\-\\d+|\\d+\\+|\\d+\\-)?(?<comments> +#.*)?$"),e.prototype.PATTERN_FOLDED_SCALAR_END=new s("(?<separator>\\||>)(?<modifiers>\\+|\\-|\\d+|\\+\\d+|\\-\\d+|\\d+\\+|\\d+\\-)?(?<comments> +#.*)?$"),e.prototype.PATTERN_SEQUENCE_ITEM=new s("^\\-((?<leadspaces>\\s+)(?<value>.+?))?\\s*$"),e.prototype.PATTERN_ANCHOR_VALUE=new s("^&(?<ref>[^ ]+) *(?<value>.*)"),e.prototype.PATTERN_COMPACT_NOTATION=new s("^(?<key>"+r.REGEX_QUOTED_STRING+"|[^ '\"\\{\\[].*?) *\\:(\\s+(?<value>.+?))?\\s*$"),e.prototype.PATTERN_MAPPING_ITEM=new s("^(?<key>"+r.REGEX_QUOTED_STRING+"|[^ '\"\\[\\{].*?) *\\:(\\s+(?<value>.+?))?\\s*$"),e.prototype.PATTERN_DECIMAL=new s("\\d+"),e.prototype.PATTERN_INDENT_SPACES=new s("^ +"),e.prototype.PATTERN_TRAILING_LINES=new s("(\n*)$"),e.prototype.PATTERN_YAML_HEADER=new s("^\\%YAML[: ][\\d\\.]+.*\n","m"),e.prototype.PATTERN_LEADING_COMMENTS=new s("^(\\#.*?\n)+","m"),e.prototype.PATTERN_DOCUMENT_MARKER_START=new s("^\\-\\-\\-.*?\n","m"),e.prototype.PATTERN_DOCUMENT_MARKER_END=new s("^\\.\\.\\.\\s*$","m"),e.prototype.PATTERN_FOLDED_SCALAR_BY_INDENTATION={},e.prototype.CONTEXT_NONE=0,e.prototype.CONTEXT_SEQUENCE=1,e.prototype.CONTEXT_MAPPING=2,e.prototype.parse=function(t,n,o){var a,s,l,u,p,d,f,h,m,v,g,b,y,_,x,w,E,A,S,T,C,I,P,O,N,R,D,k,L,j,M,z,V,B,F;for(null==n&&(n=!1),null==o&&(o=null),this.currentLineNb=-1,this.currentLine="",this.lines=this.cleanup(t).split("\n"),p=null,u=this.CONTEXT_NONE,s=!1;this.moveToNextLine();)if(!this.isCurrentLineEmpty()){if("\t"===this.currentLine[0])throw new i("A YAML file cannot contain tabs as indentation.",this.getRealCurrentLineNb()+1,this.currentLine);if(v=P=!1,F=this.PATTERN_SEQUENCE_ITEM.exec(this.currentLine)){if(this.CONTEXT_MAPPING===u)throw new i("You cannot define a sequence item when in a mapping");u=this.CONTEXT_SEQUENCE,null==p&&(p=[]),null!=F.value&&(I=this.PATTERN_ANCHOR_VALUE.exec(F.value))&&(v=I.ref,F.value=I.value),null==F.value||""===c.trim(F.value," ")||0===c.ltrim(F.value," ").indexOf("#")?this.currentLineNb<this.lines.length-1&&!this.isNextLineUnIndentedCollection()?((k=new e(this.getRealCurrentLineNb()+1)).refs=this.refs,p.push(k.parse(this.getNextEmbedBlock(null,!0),n,o))):p.push(null):(null!=(L=F.leadspaces)?L.length:void 0)&&(I=this.PATTERN_COMPACT_NOTATION.exec(F.value))?((k=new e(this.getRealCurrentLineNb())).refs=this.refs,l=F.value,m=this.getCurrentLineIndentation(),this.isNextLineIndented(!1)&&(l+="\n"+this.getNextEmbedBlock(m+F.leadspaces.length+1,!0)),p.push(k.parse(l,n,o))):p.push(this.parseValue(F.value,n,o))}else{if(!(F=this.PATTERN_MAPPING_ITEM.exec(this.currentLine))||-1!==F.key.indexOf(" #")){if(1===(T=this.lines.length)||2===T&&c.isEmpty(this.lines[1])){try{t=r.parse(this.lines[0],n,o)}catch(e){throw(d=e).parsedLine=this.getRealCurrentLineNb()+1,d.snippet=this.currentLine,d}if("object"==typeof t){if(t instanceof Array)f=t[0];else for(y in t){f=t[y];break}if("string"==typeof f&&0===f.indexOf("*")){for(p=[],O=0,S=t.length;O<S;O++)a=t[O],p.push(this.refs[a.slice(1)]);t=p}}return t}if("["===(M=c.ltrim(t).charAt(0))||"{"===M)try{return r.parse(t,n,o)}catch(e){throw(d=e).parsedLine=this.getRealCurrentLineNb()+1,d.snippet=this.currentLine,d}throw new i("Unable to parse.",this.getRealCurrentLineNb()+1,this.currentLine)}if(this.CONTEXT_SEQUENCE===u)throw new i("You cannot define a mapping item when in a sequence");u=this.CONTEXT_MAPPING,null==p&&(p={}),r.configure(n,o);try{y=r.parseScalar(F.key)}catch(e){throw(d=e).parsedLine=this.getRealCurrentLineNb()+1,d.snippet=this.currentLine,d}if("<<"===y)if(P=!0,s=!0,0===(null!=(j=F.value)?j.indexOf("*"):void 0)){if(z=F.value.slice(1),null==this.refs[z])throw new i('Reference "'+z+'" does not exist.',this.getRealCurrentLineNb()+1,this.currentLine);if("object"!=typeof(V=this.refs[z]))throw new i("YAML merge keys used with a scalar value instead of an object.",this.getRealCurrentLineNb()+1,this.currentLine);if(V instanceof Array)for(h=g=0,w=V.length;g<w;h=++g)t=V[h],null==p[N=String(h)]&&(p[N]=t);else for(y in V)t=V[y],null==p[y]&&(p[y]=t)}else{if(t=null!=F.value&&""!==F.value?F.value:this.getNextEmbedBlock(),(k=new e(this.getRealCurrentLineNb()+1)).refs=this.refs,"object"!=typeof(R=k.parse(t,n)))throw new i("YAML merge keys used with a scalar value instead of an object.",this.getRealCurrentLineNb()+1,this.currentLine);if(R instanceof Array)for(_=0,E=R.length;_<E;_++){if("object"!=typeof(D=R[_]))throw new i("Merge items must be objects.",this.getRealCurrentLineNb()+1,D);if(D instanceof Array)for(h=C=0,A=D.length;C<A;h=++C)t=D[h],b=String(h),p.hasOwnProperty(b)||(p[b]=t);else for(y in D)t=D[y],p.hasOwnProperty(y)||(p[y]=t)}else for(y in R)t=R[y],p.hasOwnProperty(y)||(p[y]=t)}else null!=F.value&&(I=this.PATTERN_ANCHOR_VALUE.exec(F.value))&&(v=I.ref,F.value=I.value);P||(null==F.value||""===c.trim(F.value," ")||0===c.ltrim(F.value," ").indexOf("#")?this.isNextLineIndented()||this.isNextLineUnIndentedCollection()?((k=new e(this.getRealCurrentLineNb()+1)).refs=this.refs,B=k.parse(this.getNextEmbedBlock(),n,o),(s||void 0===p[y])&&(p[y]=B)):(s||void 0===p[y])&&(p[y]=null):(B=this.parseValue(F.value,n,o),(s||void 0===p[y])&&(p[y]=B)))}if(v)if(p instanceof Array)this.refs[v]=p[p.length-1];else{for(y in x=null,p)x=y;this.refs[v]=p[x]}}return c.isEmpty(p)?null:p},e.prototype.getRealCurrentLineNb=function(){return this.currentLineNb+this.offset},e.prototype.getCurrentLineIndentation=function(){return this.currentLine.length-c.ltrim(this.currentLine," ").length},e.prototype.getNextEmbedBlock=function(e,t){var n,r,o,a,s,l,u;if(null==e&&(e=null),null==t&&(t=!1),this.moveToNextLine(),null==e){if(a=this.getCurrentLineIndentation(),u=this.isStringUnIndentedCollectionItem(this.currentLine),!this.isCurrentLineEmpty()&&0===a&&!u)throw new i("Indentation problem.",this.getRealCurrentLineNb()+1,this.currentLine)}else a=e;for(n=[this.currentLine.slice(a)],t||(o=this.isStringUnIndentedCollectionItem(this.currentLine)),s=!(l=this.PATTERN_FOLDED_SCALAR_END).test(this.currentLine);this.moveToNextLine();)if((r=this.getCurrentLineIndentation())===a&&(s=!l.test(this.currentLine)),!s||!this.isCurrentLineComment())if(this.isCurrentLineBlank())n.push(this.currentLine.slice(a));else{if(o&&!this.isStringUnIndentedCollectionItem(this.currentLine)&&r===a){this.moveToPreviousLine();break}if(r>=a)n.push(this.currentLine.slice(a));else if("#"!==c.ltrim(this.currentLine).charAt(0)){if(0===r){this.moveToPreviousLine();break}throw new i("Indentation problem.",this.getRealCurrentLineNb()+1,this.currentLine)}}return n.join("\n")},e.prototype.moveToNextLine=function(){return!(this.currentLineNb>=this.lines.length-1||(this.currentLine=this.lines[++this.currentLineNb],0))},e.prototype.moveToPreviousLine=function(){this.currentLine=this.lines[--this.currentLineNb]},e.prototype.parseValue=function(e,t,n){var a,s,l,u,p,d,f,h;if(0===e.indexOf("*")){if(p=e.indexOf("#"),e=-1!==p?e.substr(1,p-2):e.slice(1),void 0===this.refs[e])throw new i('Reference "'+e+'" does not exist.',this.currentLine);return this.refs[e]}if(l=this.PATTERN_FOLDED_SCALAR_ALL.exec(e))return u=null!=(d=l.modifiers)?d:"",s=Math.abs(parseInt(u)),isNaN(s)&&(s=0),h=this.parseFoldedScalar(l.separator,this.PATTERN_DECIMAL.replace(u,""),s),null!=l.type?(r.configure(t,n),r.parseScalar(l.type+" "+h)):h;if("["!==(f=e.charAt(0))&&"{"!==f&&'"'!==f&&"'"!==f)return this.isNextLineIndented()&&(e+="\n"+this.getNextEmbedBlock()),r.parse(e,t,n);for(;;)try{return r.parse(e,t,n)}catch(t){if(!((a=t)instanceof o&&this.moveToNextLine()))throw a.parsedLine=this.getRealCurrentLineNb()+1,a.snippet=this.currentLine,a;e+="\n"+c.trim(this.currentLine," ")}},e.prototype.parseFoldedScalar=function(t,n,r){var i,o,a,l,u,p,d,f,h,m;if(null==n&&(n=""),null==r&&(r=0),!(d=this.moveToNextLine()))return"";for(i=this.isCurrentLineBlank(),m="";d&&i;)(d=this.moveToNextLine())&&(m+="\n",i=this.isCurrentLineBlank());if(0===r&&(u=this.PATTERN_INDENT_SPACES.exec(this.currentLine))&&(r=u[0].length),r>0)for(null==(f=this.PATTERN_FOLDED_SCALAR_BY_INDENTATION[r])&&(f=new s("^ {"+r+"}(.*)$"),e.prototype.PATTERN_FOLDED_SCALAR_BY_INDENTATION[r]=f);d&&(i||(u=f.exec(this.currentLine)));)m+=i?this.currentLine.slice(r):u[1],(d=this.moveToNextLine())&&(m+="\n",i=this.isCurrentLineBlank());else d&&(m+="\n");if(d&&this.moveToPreviousLine(),">"===t){for(p="",o=0,a=(h=m.split("\n")).length;o<a;o++)0===(l=h[o]).length||" "===l.charAt(0)?p=c.rtrim(p," ")+l+"\n":p+=l+" ";m=p}return"+"!==n&&(m=c.rtrim(m)),""===n?m=this.PATTERN_TRAILING_LINES.replace(m,"\n"):"-"===n&&(m=this.PATTERN_TRAILING_LINES.replace(m,"")),m},e.prototype.isNextLineIndented=function(e){var t,n,r;if(null==e&&(e=!0),n=this.getCurrentLineIndentation(),t=!this.moveToNextLine(),e)for(;!t&&this.isCurrentLineEmpty();)t=!this.moveToNextLine();else for(;!t&&this.isCurrentLineBlank();)t=!this.moveToNextLine();return!t&&(r=!1,this.getCurrentLineIndentation()>n&&(r=!0),this.moveToPreviousLine(),r)},e.prototype.isCurrentLineEmpty=function(){var e;return 0===(e=c.trim(this.currentLine," ")).length||"#"===e.charAt(0)},e.prototype.isCurrentLineBlank=function(){return""===c.trim(this.currentLine," ")},e.prototype.isCurrentLineComment=function(){return"#"===c.ltrim(this.currentLine," ").charAt(0)},e.prototype.cleanup=function(e){var t,n,r,i,o,a,s,l,u,p,d,f,h,m;for(-1!==e.indexOf("\r")&&(e=e.split("\r\n").join("\n").split("\r").join("\n")),t=0,e=(p=this.PATTERN_YAML_HEADER.replaceAll(e,""))[0],t=p[1],this.offset+=t,m=(d=this.PATTERN_LEADING_COMMENTS.replaceAll(e,"",1))[0],1===(t=d[1])&&(this.offset+=c.subStrCount(e,"\n")-c.subStrCount(m,"\n"),e=m),m=(f=this.PATTERN_DOCUMENT_MARKER_START.replaceAll(e,"",1))[0],1===(t=f[1])&&(this.offset+=c.subStrCount(e,"\n")-c.subStrCount(m,"\n"),e=m,e=this.PATTERN_DOCUMENT_MARKER_END.replace(e,"")),h=-1,i=0,a=(u=e.split("\n")).length;i<a;i++)l=u[i],0!==c.trim(l," ").length&&(r=l.length-c.ltrim(l).length,(-1===h||r<h)&&(h=r));if(h>0){for(n=o=0,s=u.length;o<s;n=++o)l=u[n],u[n]=l.slice(h);e=u.join("\n")}return e},e.prototype.isNextLineUnIndentedCollection=function(e){var t,n;for(null==e&&(e=null),null==e&&(e=this.getCurrentLineIndentation()),t=this.moveToNextLine();t&&this.isCurrentLineEmpty();)t=this.moveToNextLine();return!1!==t&&(n=!1,this.getCurrentLineIndentation()===e&&this.isStringUnIndentedCollectionItem(this.currentLine)&&(n=!0),this.moveToPreviousLine(),n)},e.prototype.isStringUnIndentedCollectionItem=function(){return"-"===this.currentLine||"- "===this.currentLine.slice(0,2)},e}(),e.exports=a},1665:e=>{var t;t=function(){function e(e,t){var n,r,i,o,a,s,c,l,u;for(null==t&&(t=""),i="",a=e.length,s=null,r=0,o=0;o<a;){if("\\"===(n=e.charAt(o)))i+=e.slice(o,+(o+1)+1||9e9),o++;else if("("===n)if(o<a-2)if("(?:"===(l=e.slice(o,+(o+2)+1||9e9)))o+=2,i+=l;else if("(?<"===l)for(r++,o+=2,c="";o+1<a;){if(">"===(u=e.charAt(o+1))){i+="(",o++,c.length>0&&(null==s&&(s={}),s[c]=r);break}c+=u,o++}else i+=n,r++;else i+=n;else i+=n;o++}this.rawRegex=e,this.cleanedRegex=i,this.regex=new RegExp(this.cleanedRegex,"g"+t.replace("g","")),this.mapping=s}return e.prototype.regex=null,e.prototype.rawRegex=null,e.prototype.cleanedRegex=null,e.prototype.mapping=null,e.prototype.exec=function(e){var t,n,r,i;if(this.regex.lastIndex=0,null==(n=this.regex.exec(e)))return null;if(null!=this.mapping)for(r in i=this.mapping)t=i[r],n[r]=n[t];return n},e.prototype.test=function(e){return this.regex.lastIndex=0,this.regex.test(e)},e.prototype.replace=function(e,t){return this.regex.lastIndex=0,e.replace(this.regex,t)},e.prototype.replaceAll=function(e,t,n){var r;for(null==n&&(n=0),this.regex.lastIndex=0,r=0;this.regex.test(e)&&(0===n||r<n);)this.regex.lastIndex=0,e=e.replace(this.regex,t),r++;return[e,r]},e}(),e.exports=t},6762:(e,t,n)=>{var r,i,o;o=n(4971),r=n(1665),i=function(){function e(){}return e.PATTERN_ESCAPED_CHARACTER=new r('\\\\([0abt\tnvfre "\\/\\\\N_LP]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})'),e.unescapeSingleQuotedString=function(e){return e.replace(/\'\'/g,"'")},e.unescapeDoubleQuotedString=function(e){var t;return null==this._unescapeCallback&&(this._unescapeCallback=(t=this,function(e){return t.unescapeCharacter(e)})),this.PATTERN_ESCAPED_CHARACTER.replace(e,this._unescapeCallback)},e.unescapeCharacter=function(e){var t;switch(t=String.fromCharCode,e.charAt(1)){case"0":return t(0);case"a":return t(7);case"b":return t(8);case"t":case"\t":return"\t";case"n":return"\n";case"v":return t(11);case"f":return t(12);case"r":return t(13);case"e":return t(27);case" ":return" ";case'"':return'"';case"/":return"/";case"\\":return"\\";case"N":return t(133);case"_":return t(160);case"L":return t(8232);case"P":return t(8233);case"x":return o.utf8chr(o.hexDec(e.substr(2,2)));case"u":return o.utf8chr(o.hexDec(e.substr(2,4)));case"U":return o.utf8chr(o.hexDec(e.substr(2,8)));default:return""}},e}(),e.exports=i},4971:(e,t,n)=>{var r,i,o={}.hasOwnProperty;r=n(1665),i=function(){function e(){}return e.REGEX_LEFT_TRIM_BY_CHAR={},e.REGEX_RIGHT_TRIM_BY_CHAR={},e.REGEX_SPACES=/\s+/g,e.REGEX_DIGITS=/^\d+$/,e.REGEX_OCTAL=/[^0-7]/gi,e.REGEX_HEXADECIMAL=/[^a-f0-9]/gi,e.PATTERN_DATE=new r("^(?<year>[0-9][0-9][0-9][0-9])-(?<month>[0-9][0-9]?)-(?<day>[0-9][0-9]?)(?:(?:[Tt]|[ \t]+)(?<hour>[0-9][0-9]?):(?<minute>[0-9][0-9]):(?<second>[0-9][0-9])(?:.(?<fraction>[0-9]*))?(?:[ \t]*(?<tz>Z|(?<tz_sign>[-+])(?<tz_hour>[0-9][0-9]?)(?::(?<tz_minute>[0-9][0-9]))?))?)?$","i"),e.LOCAL_TIMEZONE_OFFSET=60*(new Date).getTimezoneOffset()*1e3,e.trim=function(e,t){var n,r;return null==t&&(t="\\s"),null==(n=this.REGEX_LEFT_TRIM_BY_CHAR[t])&&(this.REGEX_LEFT_TRIM_BY_CHAR[t]=n=new RegExp("^"+t+t+"*")),n.lastIndex=0,null==(r=this.REGEX_RIGHT_TRIM_BY_CHAR[t])&&(this.REGEX_RIGHT_TRIM_BY_CHAR[t]=r=new RegExp(t+""+t+"*$")),r.lastIndex=0,e.replace(n,"").replace(r,"")},e.ltrim=function(e,t){var n;return null==t&&(t="\\s"),null==(n=this.REGEX_LEFT_TRIM_BY_CHAR[t])&&(this.REGEX_LEFT_TRIM_BY_CHAR[t]=n=new RegExp("^"+t+t+"*")),n.lastIndex=0,e.replace(n,"")},e.rtrim=function(e,t){var n;return null==t&&(t="\\s"),null==(n=this.REGEX_RIGHT_TRIM_BY_CHAR[t])&&(this.REGEX_RIGHT_TRIM_BY_CHAR[t]=n=new RegExp(t+""+t+"*$")),n.lastIndex=0,e.replace(n,"")},e.isEmpty=function(e){return!e||""===e||"0"===e||e instanceof Array&&0===e.length||this.isEmptyObject(e)},e.isEmptyObject=function(e){var t;return e instanceof Object&&0===function(){var n;for(t in n=[],e)o.call(e,t)&&n.push(t);return n}().length},e.subStrCount=function(e,t,n,r){var i,o,a,s,c,l;for(i=0,e=""+e,t=""+t,null!=n&&(e=e.slice(n)),null!=r&&(e=e.slice(0,r)),s=e.length,l=t.length,o=a=0,c=s;0<=c?a<c:a>c;o=0<=c?++a:--a)t===e.slice(o,l)&&(i++,o+=l-1);return i},e.isDigits=function(e){return this.REGEX_DIGITS.lastIndex=0,this.REGEX_DIGITS.test(e)},e.octDec=function(e){return this.REGEX_OCTAL.lastIndex=0,parseInt((e+"").replace(this.REGEX_OCTAL,""),8)},e.hexDec=function(e){return this.REGEX_HEXADECIMAL.lastIndex=0,"0x"===((e=this.trim(e))+"").slice(0,2)&&(e=(e+"").slice(2)),parseInt((e+"").replace(this.REGEX_HEXADECIMAL,""),16)},e.utf8chr=function(e){var t;return t=String.fromCharCode,128>(e%=2097152)?t(e):2048>e?t(192|e>>6)+t(128|63&e):65536>e?t(224|e>>12)+t(128|e>>6&63)+t(128|63&e):t(240|e>>18)+t(128|e>>12&63)+t(128|e>>6&63)+t(128|63&e)},e.parseBoolean=function(e,t){var n;return null==t&&(t=!0),"string"==typeof e?(n=e.toLowerCase(),!(!t&&"no"===n)&&"0"!==n&&"false"!==n&&""!==n):!!e},e.isNumeric=function(e){return this.REGEX_SPACES.lastIndex=0,"number"==typeof e||"string"==typeof e&&!isNaN(e)&&""!==e.replace(this.REGEX_SPACES,"")},e.stringToDate=function(e){var t,n,r,i,o,a,s,c,l,u;if(!(null!=e?e.length:void 0))return null;if(!(o=this.PATTERN_DATE.exec(e)))return null;if(u=parseInt(o.year,10),s=parseInt(o.month,10)-1,n=parseInt(o.day,10),null==o.hour)return new Date(Date.UTC(u,s,n));if(i=parseInt(o.hour,10),a=parseInt(o.minute,10),c=parseInt(o.second,10),null!=o.fraction){for(r=o.fraction.slice(0,3);r.length<3;)r+="0";r=parseInt(r,10)}else r=0;return null!=o.tz&&(l=6e4*(60*parseInt(o.tz_hour,10)+(null!=o.tz_minute?parseInt(o.tz_minute,10):0)),"-"===o.tz_sign&&(l*=-1)),t=new Date(Date.UTC(u,s,n,i,a,c,r)),l&&t.setTime(t.getTime()-l),t},e.strRepeat=function(e,t){var n,r;for(r="",n=0;n<t;)r+=e,n++;return r},e.getStringFromFile=function(e,t){var r,i,o,a,s,c,l;if(null==t&&(t=null),l=null,"undefined"!=typeof window&&null!==window)if(window.XMLHttpRequest)l=new XMLHttpRequest;else if(window.ActiveXObject)for(o=0,a=(c=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP"]).length;o<a;o++){s=c[o];try{l=new ActiveXObject(s)}catch(e){}}return null!=l?null!=t?(l.onreadystatechange=function(){if(4===l.readyState)return 200===l.status||0===l.status?t(l.responseText):t(null)},l.open("GET",e,!0),l.send(null)):(l.open("GET",e,!1),l.send(null),200===l.status||0===l.status?l.responseText:null):(i=n(7147),null!=t?i.readFile(e,(function(e,n){return t(e?null:String(n))})):null!=(r=i.readFileSync(e))?String(r):null)},e}(),e.exports=i},5831:function(e,t,n){var r,i,o,a;i=n(2750),r=n(9056),o=n(4971),a=function(){function e(){}return e.parse=function(e,t,n){return null==t&&(t=!1),null==n&&(n=null),(new i).parse(e,t,n)},e.parseFile=function(e,t,n,r){var i,a;return null==t&&(t=null),null==n&&(n=!1),null==r&&(r=null),null!=t?o.getStringFromFile(e,(a=this,function(e){var i;i=null,null!=e&&(i=a.parse(e,n,r)),t(i)})):null!=(i=o.getStringFromFile(e))?this.parse(i,n,r):null},e.dump=function(e,t,n,i,o){var a;return null==t&&(t=2),null==n&&(n=4),null==i&&(i=!1),null==o&&(o=null),(a=new r).indentation=n,a.dump(e,t,0,i,o)},e.stringify=function(e,t,n,r,i){return this.dump(e,t,n,r,i)},e.load=function(e,t,n,r){return this.parseFile(e,t,n,r)},e}(),"undefined"!=typeof window&&null!==window&&(window.YAML=a),"undefined"!=typeof window&&null!==window||(this.YAML=a),e.exports=a},9644:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppInsightsCore:()=>se,BaseCore:()=>ue,BaseTelemetryPlugin:()=>Ee.i,CoreUtils:()=>re,DiagnosticLogger:()=>m.AQ,ESPromise:()=>he,ESPromiseScheduler:()=>_e,EventHelper:()=>A.zB,EventLatency:()=>l,EventPersistence:()=>p,EventPropertyType:()=>u,EventsDiscardedReason:()=>Te.h,FullVersionString:()=>O,InternalAppInsightsCore:()=>b.F,InternalBaseCore:()=>ce.A,LoggingSeverity:()=>s.X,MinChannelPriorty:()=>Se.p,NotificationManager:()=>we.f,PerfEvent:()=>v.zn,PerfManager:()=>v.Jk,ProcessTelemetryContext:()=>Ae.Vi,TraceLevel:()=>d,Undefined:()=>S.jA,Utils:()=>ne,ValueKind:()=>c,ValueSanitizer:()=>xe,Version:()=>P,_ExtendedInternalMessageId:()=>f,_InternalLogMessage:()=>m.lQ,_InternalMessageId:()=>s.v,__getRegisteredEvents:()=>T.um,_logInternalMessage:()=>m.L4,_throwInternal:()=>m.kP,_warnToConsole:()=>m.jV,addEventHandler:()=>T.Ib,addEventListeners:()=>T.yw,addPageHideEventListener:()=>T.TJ,addPageShowEventListener:()=>T.nD,addPageUnloadEventListener:()=>T.c9,areCookiesSupported:()=>E.p7,arrForEach:()=>a.tO,arrIndexOf:()=>a.UA,arrMap:()=>a.Mr,arrReduce:()=>a.Xz,attachEvent:()=>T.pZ,cookieAvailable:()=>E.p7,createCookieMgr:()=>E.Nz,createEnumStyle:()=>o.By,createGuid:()=>K,createProcessTelemetryContext:()=>Ae.CD,createTraceParent:()=>Pe.SU,createUniqueNamespace:()=>Ce.J,createUnloadHandlerContainer:()=>Ie.Y,dateNow:()=>a.m6,deleteCookie:()=>$,detachEvent:()=>T.pD,disableCookies:()=>H,disallowsSameSiteNone:()=>E.UY,doPerf:()=>v.Lm,dumpObj:()=>g.eU,eventOff:()=>T.QY,eventOn:()=>T.XO,extend:()=>X,findW3cTraceParent:()=>Pe.lq,formatTraceParent:()=>Pe.aR,generateW3CId:()=>A.DO,getCommonSchemaMetaData:()=>q,getConsole:()=>g.dr,getCookie:()=>W,getCookieValue:()=>Q,getCrypto:()=>g.MX,getDocument:()=>g.Me,getExceptionName:()=>a.jj,getFieldValueType:()=>te,getGlobal:()=>I.Rd,getGlobalInst:()=>g.a8,getHistory:()=>g.s1,getIEVersion:()=>g.sA,getISOString:()=>a.Y6,getJSON:()=>g.xA,getLocation:()=>g.k$,getMsCrypto:()=>g.gz,getNavigator:()=>g.jW,getPerformance:()=>g.r,getSetValue:()=>a.qK,getTenantId:()=>V,getTime:()=>Y,getWindow:()=>g.Jj,hasDocument:()=>g.Nv,hasHistory:()=>g.fE,hasJSON:()=>g.nS,hasNavigator:()=>g.d6,hasOwnProperty:()=>a.nr,hasWindow:()=>g.Ym,isArray:()=>a.kJ,isArrayValid:()=>Z,isBeaconsSupported:()=>g.MF,isBoolean:()=>a.jn,isChromium:()=>ie,isDate:()=>a.J_,isDocumentObjectAvailable:()=>j,isError:()=>a.VZ,isFetchSupported:()=>g.JO,isFunction:()=>a.mf,isIE:()=>g.w1,isLatency:()=>F,isNotTruthy:()=>a.F,isNullOrUndefined:()=>a.le,isNumber:()=>a.hj,isObject:()=>a.Kn,isReactNative:()=>g.b$,isSampledFlag:()=>Pe.Pn,isString:()=>a.HD,isTruthy:()=>a.fQ,isTypeof:()=>a.Ym,isUint8ArrayAvailable:()=>B,isUndefined:()=>a.o8,isValidSpanId:()=>Pe.Lc,isValidTraceId:()=>Pe.jN,isValidTraceParent:()=>Pe.J6,isValueAssigned:()=>z,isValueKind:()=>J,isWindowObjectAvailable:()=>M,isXhrSupported:()=>g.Z3,mergeEvtNamespace:()=>T.jU,newGuid:()=>A.GW,newId:()=>C.pZ,normalizeJsName:()=>a.Gf,objCreate:()=>I.pu,objDefineAccessors:()=>a.l_,objForEachKey:()=>a.rW,objFreeze:()=>a.FL,objKeys:()=>a.FY,objSeal:()=>a.Xi,openXhr:()=>oe,optimizeObject:()=>a.Ax,parseTraceParent:()=>Pe.j_,perfNow:()=>A.Jj,proxyAssign:()=>a.cf,proxyFunctionAs:()=>a.Oi,proxyFunctions:()=>a.Vb,random32:()=>C._l,randomValue:()=>C.az,removeEventHandler:()=>T.C1,removeEventListeners:()=>T.nJ,removePageHideEventListener:()=>T.C9,removePageShowEventListener:()=>T.Yl,removePageUnloadEventListener:()=>T.JA,safeGetCookieMgr:()=>E.JP,safeGetLogger:()=>m.vH,sanitizeProperty:()=>U,setCookie:()=>G,setEnableEnvMocks:()=>g.dI,setProcessTelemetryTimings:()=>ee,setValue:()=>a.sO,strContains:()=>a._Q,strEndsWith:()=>a.Id,strFunction:()=>S.cb,strObject:()=>S.fK,strPrototype:()=>S.hB,strStartsWith:()=>a.xe,strTrim:()=>a.nd,strUndefined:()=>S.jA,throwError:()=>a._y,toISOString:()=>a.Y6,useXDomainRequest:()=>g.cp});var r,i=n(3298),o=n(1785),a=n(3161),s=n(8712),c=(0,o.By)({NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32}),l=(0,o.By)({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),u=(0,o.By)({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),p=(0,o.By)({Normal:1,Critical:2}),d=(0,o.By)({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),f=(0,a.FL)((0,i.uc)((0,i.uc)({},s.v),(0,o.By)({AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}))),h=n(2314),m=n(4300),v=n(2753),g=n(1167),b=n(8176),y="",_="https://browser.events.data.microsoft.com/OneCollector/1.0/",x="version",w="properties",E=n(8589),A=n(821),S=n(2589),T=n(1318),C=n(395),I=n(8785),P="3.2.13",O="1DS-Web-JS-"+P,N="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",R="withCredentials",D="timeout",k=((r={})[0]=0,r[2]=6,r[1]=1,r[3]=7,r[4098]=6,r[4097]=1,r[4099]=7,r),L=null,j=Boolean((0,g.Me)()),M=Boolean((0,g.Jj)());function z(e){return!(e===y||(0,a.le)(e))}function V(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return y}function B(){return null===L&&(L=!(0,a.o8)(Uint8Array)&&!function(){var e=(0,g.jW)();if(!(0,a.o8)(e)&&e.userAgent){var t=e.userAgent.toLowerCase();if((t.indexOf("safari")>=0||t.indexOf("firefox")>=0)&&t.indexOf("chrome")<0)return!0}return!1}()&&!(0,g.b$)()),L}function F(e){return!!(e&&(0,a.hj)(e)&&e>=1&&e<=4)}function U(e,t,n){if(!t&&!z(t)||"string"!=typeof e)return null;var r=typeof t;if("string"===r||"number"===r||"boolean"===r||(0,a.kJ)(t))t={value:t};else if("object"!==r||S.CY.call(t,"value")){if((0,a.le)(t.value)||t.value===y||!(0,a.HD)(t.value)&&!(0,a.hj)(t.value)&&!(0,a.jn)(t.value)&&!(0,a.kJ)(t.value))return null}else t={value:n?JSON.stringify(t):t};if((0,a.kJ)(t.value)&&!Z(t.value))return null;if(!(0,a.le)(t.kind)){if((0,a.kJ)(t.value)||!J(t.kind))return null;t.value=t.value.toString()}return t}function q(e,t,n){var r=-1;if(!(0,a.o8)(e))if(t>0&&(32===t?r=8192:t<=13&&(r=t<<5)),function(e){return e>=0&&e<=9}(n))-1===r&&(r=0),r|=n;else{var i=k[te(e)]||-1;-1!==r&&-1!==i?r|=i:6===i&&(r=i)}return r}function H(){(0,E.JP)(null).setEnabled(!1)}function G(e,t,n){(0,E.p7)(null)&&(0,E.JP)(null).set(e,t,86400*n,null,"/")}function $(e){(0,E.p7)(null)&&(0,E.JP)(null).del(e)}function W(e){return(0,E.p7)(null)?Q((0,E.JP)(null),e):y}function Q(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||y}function K(e){void 0===e&&(e="D");var t=(0,A.GW)();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,y)),t}function X(e,t,n,r,i){var o={},s=!1,c=0,l=arguments.length,u=arguments;for("[object Boolean]"===Object[S.hB].toString.call(u[0])&&(s=u[0],c++);c<l;c++)e=u[c],(0,a.rW)(e,(function(e,t){s&&t&&(0,a.Kn)(t)?(0,a.kJ)(t)?(o[e]=o[e]||[],(0,a.tO)(t,(function(t,n){t&&(0,a.Kn)(t)?o[e][n]=X(!0,o[e][n],t):o[e][n]=t}))):o[e]=X(!0,o[e],t):o[e]=t}));return o}var Y=A.Jj;function J(e){return 0===e||e>0&&e<=13||32===e}function Z(e){return e.length>0}function ee(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=Y()}function te(e){var t=0;if(null!=e){var n=typeof e;"string"===n?t=1:"number"===n?t=2:"boolean"===n?t=3:n===S.fK&&(t=4,(0,a.kJ)(e)?(t=4096,e.length>0&&(t|=te(e[0]))):S.CY.call(e,"value")&&(t=8192|te(e.value)))}return t}var ne={Version:P,FullVersionString:O,strUndefined:S.jA,strObject:S.fK,Undefined:S.jA,arrForEach:a.tO,arrIndexOf:a.UA,arrMap:a.Mr,arrReduce:a.Xz,objKeys:a.FY,toISOString:a.Y6,isReactNative:g.b$,isString:a.HD,isNumber:a.hj,isBoolean:a.jn,isFunction:a.mf,isArray:a.kJ,isObject:a.Kn,strTrim:a.nd,isDocumentObjectAvailable:j,isWindowObjectAvailable:M,isValueAssigned:z,getTenantId:V,isBeaconsSupported:g.MF,isUint8ArrayAvailable:B,isLatency:F,sanitizeProperty:U,getISOString:a.Y6,useXDomainRequest:g.cp,getCommonSchemaMetaData:q,cookieAvailable:E.p7,disallowsSameSiteNone:E.UY,setCookie:G,deleteCookie:$,getCookie:W,createGuid:K,extend:X,getTime:Y,isValueKind:J,isArrayValid:Z,objDefineAccessors:a.l_,addPageUnloadEventListener:T.c9,setProcessTelemetryTimings:ee,addEventHandler:T.Ib,getFieldValueType:te,strEndsWith:a.Id,objForEachKey:a.rW},re={_canUseCookies:void 0,isTypeof:a.Ym,isUndefined:a.o8,isNullOrUndefined:a.le,hasOwnProperty:a.nr,isFunction:a.mf,isObject:a.Kn,isDate:a.J_,isArray:a.kJ,isError:a.VZ,isString:a.HD,isNumber:a.hj,isBoolean:a.jn,toISOString:a.Y6,arrForEach:a.tO,arrIndexOf:a.UA,arrMap:a.Mr,arrReduce:a.Xz,strTrim:a.nd,objCreate:I.pu,objKeys:a.FY,objDefineAccessors:a.l_,addEventHandler:T.Ib,dateNow:a.m6,isIE:g.w1,disableCookies:H,newGuid:A.GW,perfNow:A.Jj,newId:C.pZ,randomValue:C.az,random32:C._l,mwcRandomSeed:C.CN,mwcRandom32:C.F6,generateW3CId:A.DO};function ie(){return!!(0,g.a8)("chrome")}function oe(e,t,n,r,i,o){function a(e,t,n){try{e[t]=n}catch(e){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var s=new XMLHttpRequest;return r&&a(s,N,r),n&&a(s,R,n),s.open(e,t,!i),n&&a(s,R,n),!i&&o&&a(s,D,o),s}var ae=function(e){function t(){var n=e.call(this)||this;return n.pluginVersionStringArr=[],(0,h.default)(t,n,(function(e,t){e.logger&&e.logger.queue||(e.logger=new m.AQ({loggingLevelConsole:1})),e.initialize=function(n,r,i,o){(0,v.Lm)(e,(function(){return"AppInsightsCore.initialize"}),(function(){var s=e.pluginVersionStringArr;if(n){n.endpointUrl||(n.endpointUrl=_);var c=n.propertyStorageOverride;!c||c.getProperty&&c.setProperty||(0,a._y)("Invalid property storage override passed."),n.channels&&(0,a.tO)(n.channels,(function(e){e&&(0,a.tO)(e,(function(e){if(e.identifier&&e.version){var t=e.identifier+"="+e.version;s.push(t)}}))}))}e.getWParam=function(){return"undefined"!=typeof document||n.enableWParam?0:-1},r&&(0,a.tO)(r,(function(e){if(e&&e.identifier&&e.version){var t=e.identifier+"="+e.version;s.push(t)}})),e.pluginVersionString=s.join(";"),e.pluginVersionStringArr=s;try{t.initialize(n,r,i,o),e.pollInternalLogs("InternalLog")}catch(t){var l=e.logger,u=(0,g.eU)(t);-1!==u.indexOf("channels")&&(u+="\n - Channels must be provided through config.channels only!"),(0,m.kP)(l,1,514,"SDK Initialization Failed - no telemetry will be sent: "+u)}}),(function(){return{config:n,extensions:r,logger:i,notificationManager:o}}))},e.track=function(n){(0,v.Lm)(e,(function(){return"AppInsightsCore.track"}),(function(){var r=n;if(r){r.timings=r.timings||{},r.timings.trackStart=Y(),F(r.latency)||(r.latency=1);var i=r.ext=r.ext||{};i.sdk=i.sdk||{},i.sdk.ver=O;var o=r.baseData=r.baseData||{};o[w]=o[w]||{};var a=o[w];a[x]=a[x]||e.pluginVersionString||y}t.track(r)}),(function(){return{item:n}}),!n.sync)}})),n}return(0,i.ne)(t,e),t.__ieDyn=1,t}(b.F);const se=ae;var ce=n(4770),le=function(e){function t(){var n=e.call(this)||this;return(0,h.default)(t,n,(function(e,t){e.initialize=function(n,r,i,o){n&&!n.endpointUrl&&(n.endpointUrl=_),e.getWParam=function(){return j||n.enableWParam?0:-1};try{t.initialize(n,r,i,o)}catch(t){(0,m.kP)(e.logger,1,514,"Initialization Failed: "+(0,g.eU)(t)+"\n - Note: Channels must be provided through config.channels only")}},e.track=function(e){var n=e;if(n){var r=n.ext=n.ext||{};r.sdk=r.sdk||{},r.sdk.ver=O}t.track(n)}})),n}return(0,i.ne)(t,e),t.__ieDyn=1,t}(ce.A);const ue=le;var pe=a.mf;function de(e,t,n){return function(r){e[t]=r,n()}}var fe=function(){function e(t){var n=0,r=null,i=[];function o(){if(i.length>0){var e=i.slice();i=[],setTimeout((function(){for(var t=0,n=e.length;t<n;++t)try{e[t]()}catch(e){}}),0)}}function a(e){0===n&&(r=e,n=1,o())}function s(e){0===n&&(r=e,n=2,o())}(0,h.default)(e,this,(function(t){t.then=function(t,a){return new e((function(s,c){!function(t,a,s,c){i.push((function(){var i;try{(i=1===n?pe(t)?t(r):r:pe(a)?a(r):r)instanceof e?i.then(s,c):2!==n||pe(a)?s(i):c(i)}catch(e){return void c(e)}})),0!==n&&o()}(t,a,s,c)}))},t.catch=function(e){return t.then(null,e)}})),function(){if(!pe(t))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{t(a,s)}catch(e){s(e)}}()}return e.resolve=function(t){return t instanceof e?t:t&&pe(t.then)?new e((function(e,n){try{t.then(e,n)}catch(e){n(e)}})):new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){if(t&&t.length)return new e((function(e,n){try{for(var r=[],i=0,o=0;o<t.length;o++){var a=t[o];a&&pe(a.then)?(i++,a.then(de(r,o,(function(){0==--i&&e(r)})),n)):r[o]=a}0===i&&setTimeout((function(){e(r)}),0)}catch(e){n(e)}}))},e.race=function(t){return new e((function(e,n){if(t&&t.length)try{for(var r=function(r){var i=t[r];i&&pe(i.then)?i.then(e,n):setTimeout((function(){e(i)}),0)},i=0;i<t.length;i++)r(i)}catch(e){n(e)}}))},e}();const he=fe;var me=0,ve=[],ge=[],be=[];function ye(){return(new Date).getTime()}const _e=function(){function e(t,n){var r=0,i=(t||"<unnamed>")+"."+me;function o(e){var t=(0,I.Rd)();t&&t.QUnit&&console&&console.log("ESPromiseScheduler["+i+"] "+e)}function a(e){(0,m.jV)(n,"ESPromiseScheduler["+i+"] "+e)}me++,(0,h.default)(e,this,(function(e){var t=null,n=0;function s(e,t){for(var n=0;n<e.length;n++)if(e[n].id===t)return e.splice(n,1)[0];return null}e.scheduleEvent=function(e,c,l){var u=i+"."+n;n++,c&&(u+="-("+c+")");var p=u+"{"+r+"}";r++;var d,f,h,m={evt:null,tm:ye(),id:p,isRunning:!1,isAborted:!1};return m.evt=t?(d=m,f=t,h=new he((function(e,t){var n=ye()-f.tm,r=f.id;o("["+u+"] is waiting for ["+r+":"+n+" ms] to complete before starting -- ["+ge.length+"] waiting and ["+ve.length+"] running"),d.abort=function(e){d.abort=null,s(ge,u),d.isAborted=!0,t(new Error(e))},f.evt.then((function(n){s(ge,u),x(d).then(e,t)}),(function(n){s(ge,u),x(d).then(e,t)}))})),ge.push(d),h):x(m),(t=m).evt._schId=p,m.evt;function v(e){for(var t=ye(),n=t-6e5,r=e.length,i=0;i<r;){var o=e[i];if(o&&o.tm<n){var s=null;o.abort?(s="Aborting ["+o.id+"] due to Excessive runtime ("+(t-o.tm)+" ms)",o.abort(s)):s="Removing ["+o.id+"] due to Excessive runtime ("+(t-o.tm)+" ms)",a(s),e.splice(i,1),r--}else i++}}function g(e,n){var r=!1,i=s(ve,e);if(i||(i=s(be,e),r=!0),i){i.to&&(clearTimeout(i.to),i.to=null);var c=ye()-i.tm;n?r?a("Timed out event ["+e+"] finally complete -- "+c+" ms"):o("Promise ["+e+"] Complete -- "+c+" ms"):(be.push(i),a("Event ["+e+"] Timed out and removed -- "+c+" ms"))}else o("Failed to remove ["+e+"] from running queue");t&&t.id===e&&(t=null),v(ve),v(ge),v(be)}function b(e,t){return function(n){return g(e,!0),t&&t(n),n}}function y(e,t,n,r){t.then((function(t){return t instanceof he?(o("Event ["+e+"] returned a promise -- waiting"),y(e,t,n,r),t):b(e,n)(t)}),b(e,r))}function _(e,t){var n=e.id;return new he((function(r,i){o("Event ["+n+"] Starting -- waited for "+(e.wTm||"--")+" ms"),e.isRunning=!0,e.abort=function(t){e.abort=null,e.isAborted=!0,g(n,!1),i(new Error(t))};var a=t(n);a instanceof he?(l&&(e.to=setTimeout((function(){g(n,!1),i(new Error("Timed out after ["+l+"] ms"))}),l)),y(n,a,(function(t){o("Event ["+n+"] Resolving after "+(ye()-e.tm)+" ms"),r(t)}),i)):(o("Promise ["+n+"] Auto completed as the start action did not return a promise"),r())}))}function x(t){var n=ye();return t.wTm=n-t.tm,t.tm=n,t.isAborted?he.reject(new Error("["+u+"] was aborted")):(ve.push(t),_(t,e))}}}))}return e.incomplete=function(){return ve},e.waitingToStart=function(){return ge},e}();var xe=function(){function e(e){var t=this,n={},r=[],i=[];function o(e,t){var o,s=n[e];if(s&&(o=s[t]),!o&&null!==o){if((0,a.HD)(e)&&(0,a.HD)(t))if(i.length>0){for(var c=0;c<i.length;c++)if(i[c].handleField(e,t)){o={canHandle:!0,fieldHandler:i[c]};break}}else 0===r.length&&(o={canHandle:!0});if(!o&&null!==o)for(o=null,c=0;c<r.length;c++)if(r[c].handleField(e,t)){o={canHandle:!0,handler:r[c],fieldHandler:null};break}s||(s=n[e]={}),s[t]=o}return o}function s(e,t,n,r,i,o){if(e.handler)return e.handler.property(t,n,i,o);if(!(0,a.le)(i.kind)){if(4096==(4096&r)||!J(i.kind))return null;i.value=i.value.toString()}return l(e.fieldHandler,t,n,r,i)}function c(e,t,n){return z(n)?{value:n}:null}function l(e,n,r,i,o){if(o&&e){var s=e.getSanitizer(n,r,i,o.kind,o.propertyType);if(s)if(4===i){var u={},p=o.value;(0,a.rW)(p,(function(t,i){var o=n+"."+r;if(z(i)){var a=c(0,0,i);(a=l(e,o,t,te(i),a))&&(u[t]=a.value)}})),o.value=u}else{var d={path:n,name:r,type:i,prop:o,sanitizer:t};o=s.call(t,d)}}return o}e&&i.push(e),t.addSanitizer=function(e){e&&(r.push(e),n={})},t.addFieldSanitizer=function(e){e&&(i.push(e),n={})},t.handleField=function(e,t){var n=o(e,t);return!!n&&n.canHandle},t.value=function(e,t,n,r){var i=o(e,t);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,t,n,r);if(!(0,a.HD)(t)||(0,a.le)(n)||n===y)return null;var l=null,u=te(n);if(8192==(8192&u)){var p=-8193&u;if(!z((l=n).value)||1!==p&&2!==p&&3!==p&&4096!=(4096&p))return null}else 1===u||2===u||3===u||4096==(4096&u)?l=c(0,0,n):4===u&&(l=c(0,0,r?JSON.stringify(n):n));if(l)return s(i,e,t,u,l,r)}return null},t.property=function(e,t,n,r){var i=o(e,t);if(!i||!i.canHandle)return null;if(!(0,a.HD)(t)||(0,a.le)(n)||!z(n.value))return null;var c=te(n.value);return 0===c?null:s(i,e,t,c,n,r)}}return e.getFieldType=te,e}(),we=n(6329),Ee=n(1549),Ae=n(877),Se=n(978),Te=n(4641),Ce=n(8530),Ie=n(6930),Pe=n(1579)},1785:(e,t,n)=>{"use strict";n.d(t,{By:()=>i,cc:()=>a,uj:()=>o});var r=n(3161);function i(e){var t={};return(0,r.rW)(e,(function(e,n){t[e]=n,t[n]=e})),(0,r._A)(t)}function o(e){var t={};return(0,r.rW)(e,(function(e,n){t[e]=e,t[n]=e})),(0,r._A)(t)}function a(e){var t={};return(0,r.rW)(e,(function(e,n){t[e]=n[1],t[n[0]]=n[1]})),(0,r._A)(t)}},4641:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});var r=(0,n(1785).By)({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5})},8712:(e,t,n)=>{"use strict";n.d(t,{X:()=>_,v:()=>x});var r,i=n(1785),o="Failed",a=o+"MonitorAjax",s="Track",c="Start",l="Stop",u="Event",p="AuthContext",d="Exception",f="Local",h="Session",m="Storage",v="Browser",g="Cannot",b="Buffer",y="InstrumentationKey",_=(0,i.By)({CRITICAL:1,WARNING:2}),x=(0,i.By)(((r={})[v+"DoesNotSupport"+f+m]=0,r[v+g+"Read"+f+m]=1,r[v+g+"Read"+h+m]=2,r[v+g+"Write"+f+m]=3,r[v+g+"Write"+h+m]=4,r[v+o+"RemovalFrom"+f+m]=5,r[v+o+"RemovalFrom"+h+m]=6,r[g+"SendEmptyTelemetry"]=7,r.ClientPerformanceMathError=8,r["ErrorParsingAI"+h+"Cookie"]=9,r.ErrorPVCalc=10,r[d+"WhileLoggingError"]=11,r[o+"AddingTelemetryTo"+b]=12,r[a+"Abort"]=13,r[a+"Dur"]=14,r[a+"Open"]=15,r[a+"RSC"]=16,r[a+"Send"]=17,r[a+"GetCorrelationHeader"]=18,r[o+"ToAddHandlerForOnBeforeUnload"]=19,r[o+"ToSendQueuedTelemetry"]=20,r[o+"ToReportDataLoss"]=21,r["Flush"+o]=22,r.MessageLimitPerPVExceeded=23,r.MissingRequiredFieldSpecification=24,r.NavigationTimingNotSupported=25,r.OnError=26,r[h+"RenewalDateIsZero"]=27,r.SenderNotInitialized=28,r[c+s+u+o]=29,r[l+s+u+o]=30,r[c+s+o]=31,r[l+s+o]=32,r.TelemetrySampledAndNotSent=33,r[s+u+o]=34,r[s+d+o]=35,r[s+"Metric"+o]=36,r[s+"PV"+o]=37,r[s+"PV"+o+"Calc"]=38,r[s+"Trace"+o]=39,r["Transmission"+o]=40,r[o+"ToSet"+m+b]=41,r[o+"ToRestore"+m+b]=42,r.InvalidBackendResponse=43,r[o+"ToFixDepricatedValues"]=44,r.InvalidDurationValue=45,r.TelemetryEnvelopeInvalid=46,r.CreateEnvelopeError=47,r[g+"SerializeObject"]=48,r[g+"SerializeObjectNonSerializable"]=49,r.CircularReferenceDetected=50,r["Clear"+p+o]=51,r[d+"Truncated"]=52,r.IllegalCharsInName=53,r.ItemNotInArray=54,r.MaxAjaxPerPVExceeded=55,r.MessageTruncated=56,r.NameTooLong=57,r.SampleRateOutOfRange=58,r["Set"+p+o]=59,r["Set"+p+o+"AccountName"]=60,r.StringValueTooLong=61,r.StartCalledMoreThanOnce=62,r.StopCalledWithoutStart=63,r["TelemetryInitializer"+o]=64,r.TrackArgumentsNotSpecified=65,r.UrlTooLong=66,r[h+m+b+"Full"]=67,r[g+"AccessCookie"]=68,r.IdTooLong=69,r.InvalidEvent=70,r[a+"SetRequestHeader"]=71,r["Send"+v+"InfoOnUserInit"]=72,r["Plugin"+d]=73,r["Notification"+d]=74,r.SnippetScriptLoadFailure=99,r["Invalid"+y]=100,r[g+"ParseAiBlobValue"]=101,r.InvalidContentBlob=102,r[s+"PageAction"+u+o]=103,r[o+"AddingCustomDefinedRequestContext"]=104,r["InMemory"+m+b+"Full"]=105,r[y+"Deprecation"]=106,r))},978:(e,t,n)=>{"use strict";n.d(t,{p:()=>r});var r=100},8176:(e,t,n)=>{"use strict";n.d(t,{F:()=>d});var r=n(3298),i=n(9798),o=n(6474),a=n(4770),s=n(4300),c=n(3161),l=n(9556),u=n(6329),p=n(2753),d=function(e){function t(){var n=e.call(this)||this;return(0,i.Z)(t,n,(function(e,t){function n(t){var n=e[o.tb]();n&&n[l.$F]([t],2)}e[o.VL]=function(e,n,r,i){t[o.VL](e,n,r||new s.AQ(e),i||new u.f(e))},e.track=function(r){(0,p.Lm)(e[l.kl](),(function(){return"AppInsightsCore:track"}),(function(){null===r&&(n(r),(0,c._y)("Invalid telemetry item")),function(e){(0,c.le)(e[o.I])&&(n(e),(0,c._y)("telemetry name required"))}(r),t.track(r)}),(function(){return{item:r}}),!r.sync)}})),n}return(0,r.ne)(t,e),t.__ieDyn=1,t}(a.A)},4770:(e,t,n)=>{"use strict";n.d(t,{A:()=>I});var r=n(3298),i=n(9798),o=n(8785),a=n(6474),s=n(3161),c=n(9556),l=n(877),u=n(3656),p=500;function d(e,t,n){t&&(0,s.kJ)(t)&&t[a.R5]>0&&(t=t.sort((function(e,t){return e[c.yi]-t[c.yi]})),(0,s.tO)(t,(function(e){e[c.yi]<p&&(0,s._y)("Channel has invalid priority - "+e[a.pZ])})),e[a.MW]({queue:(0,s.FL)(t),chain:(0,l.jV)(t,n[a.TC],n)}))}var f=n(8589),h=n(8530),m=n(7485),v=n(4300),g=n(2753),b=n(1549),y=n(1167),_=function(e){function t(){var n,r,o=e.call(this)||this;function l(){n=0,r=[]}return o.identifier="TelemetryInitializerPlugin",o.priority=199,l(),(0,i.Z)(t,o,(function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return r[a.MW](t),{remove:function(){(0,s.tO)(r,(function(e,n){if(e.id===t.id)return r[a.cb](n,1),-1}))}}},e[c.hL]=function(t,n){for(var i=!1,o=r[a.R5],c=0;c<o;++c){var l=r[c];if(l)try{if(!1===l.fn[a.ZV](null,[t])){i=!0;break}}catch(e){(0,v.kP)(n[a.mc](),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+(0,s.jj)(e),{exception:(0,y.eU)(e)},!0)}}i||e[a.uL](t,n)},e[a.F3]=function(){l()}})),o}return(0,r.ne)(t,e),t.__ieDyn=1,t}(b.i),x=n(6930),w="Plugins must provide initialize method",E="_notificationManager",A="SDK is still unloading...",S={loggingLevelConsole:1};function T(e,t){return new g.Jk(t)}function C(e,t){var n=!1;return(0,s.tO)(t,(function(t){if(t===e)return n=!0,-1})),n}var I=function(){function e(){var t,n,b,y,I,P,O,N,R,D,k,L,j,M,z,V,B,F,U,q,H=0,G=!1;(0,i.Z)(e,this,(function(e){function i(n){if(!H&&!G&&(n||e[a.eZ]&&e[a.eZ].queue[a.R5]>0)){var r=(0,s.v4)(t.diagnosticLogInterval);r&&r>0||(r=1e4),H=setInterval((function(){clearInterval(H),H=0,J()}),r)}return H}function $(){n=!1,t=(0,s.mm)(!0,{},S),e[a.TC]=t,e[a.eZ]=new v.AQ(t),e[a.iC]=[],z=new _,b=[],y=null,I=null,P=null,O=null,N=null,D=null,R=[],k=null,L=null,j=null,M=!1,V=null,B=(0,h.J)("AIBaseCore",!0),F=(0,x.Y)(),q=null}function W(){var n=(0,l.CD)(X(),t,e);return n[a.Fc](i),n}function Q(n){var r=function(e,t,n){var r,i=[],o={};return(0,s.tO)(n,(function(t){((0,s.le)(t)||(0,s.le)(t[a.VL]))&&(0,s._y)(w);var n=t[c.yi],r=t[a.pZ];t&&n&&((0,s.le)(o[n])?o[n]=r:(0,v.jV)(e,"Two extensions have same priority #"+n+" - "+o[n]+", "+r)),(!n||n<500)&&i[a.MW](t)})),(r={all:n})[c.oV]=i,r}(e[a.eZ],0,R);D=r[c.oV],N=null;var o=r.all;if(j=(0,s.FL)(function(e,t,n){var r=[];if(e&&(0,s.tO)(e,(function(e){return d(r,e,n)})),t){var i=[];(0,s.tO)(t,(function(e){e[c.yi]>p&&i[a.MW](e)})),d(r,i,n)}return r}(L,o,e)),k){var f=(0,s.UA)(o,k);-1!==f&&o[a.cb](f,1),-1!==(f=(0,s.UA)(D,k))&&D[a.cb](f,1),k._setQueue(j)}else k=function(e,t){function n(){return(0,l.CD)(null,t[a.TC],t,null)}function r(e,t,n,r){var i=e?e[a.R5]+1:1;function o(){0==--i&&(r&&r(),r=null)}i>0&&(0,s.tO)(e,(function(e){if(e&&e.queue[a.R5]>0){var r=e.chain,s=t[a.zV](r);s[a.Fc](o),n(s)}else i--})),o()}var i=!1,o={identifier:"ChannelControllerPlugin",priority:p,initialize:function(t,n,r,o){i=!0,(0,s.tO)(e,(function(e){e&&e.queue[a.R5]>0&&(0,u.bP)((0,l.CD)(e.chain,t,n),r)}))},isInitialized:function(){return i},processTelemetry:function(t,i){r(e,i||n(),(function(e){e[a.uL](t)}),(function(){i[a.uL](t)}))},update:function(t,n){var i=n||{reason:0};return r(e,t,(function(e){e[a.uL](i)}),(function(){t[a.uL](i)})),!0},pause:function(){r(e,n(),(function(e){e.iterate((function(e){e.pause&&e.pause()}))}),null)},resume:function(){r(e,n(),(function(e){e.iterate((function(e){e.resume&&e.resume()}))}),null)},teardown:function(t,n){var o=n||{reason:0,isAsync:!1};return r(e,t,(function(e){e[a.uL](o)}),(function(){t[a.uL](o),i=!1})),!0},getChannel:function(t){var n=null;return e&&e[a.R5]>0&&(0,s.tO)(e,(function(e){if(e&&e.queue[a.R5]>0&&((0,s.tO)(e.queue,(function(e){if(e[a.pZ]===t)return n=e,-1})),n))return-1})),n},flush:function(t,i,o,s){var c=1,l=!1,u=null;function p(){c--,l&&0===c&&(u&&(clearTimeout(u),u=null),i&&i(l),i=null)}return s=s||5e3,r(e,n(),(function(e){e.iterate((function(e){if(e[a.kL]){c++;var n=!1;e[a.kL](t,(function(){n=!0,p()}),o)||n||(t&&null==u?u=setTimeout((function(){u=null,p()}),s):p())}}))}),(function(){l=!0,p()})),!0},_setQueue:function(t){e=t}};return o}(j,e);o[a.MW](k),D[a.MW](k),e[a.iC]=(0,u.AA)(o),k[a.VL](t,e,o);var h=W();(0,u.bP)(h,o),e[a.iC]=(0,s.FL)((0,u.AA)(D||[])).slice(),n&&function(t){var n=(0,l.xy)(X(),e);n[a.Fc](i),e._updateHook&&!0===e._updateHook(n,t)||n[a.uL](t)}(n)}function K(t){var n,r=null,i=null;return(0,s.tO)(e[a.iC],(function(e){if(e[a.pZ]===t&&e!==k&&e!==z)return i=e,-1})),!i&&k&&(i=k.getChannel(t)),i&&((n={plugin:i})[a.$h]=function(e){(0,u.OY)(i)[c.mE]=!e},n.isEnabled=function(){var e=(0,u.OY)(i);return!e[a.fi]&&!e[c.mE]},n.remove=function(e,t){var n;void 0===e&&(e=!0);var r=[i],o=((n={reason:1})[a.d]=e,n);Y(r,o,(function(e){e&&Q({reason:32,removed:r}),t&&t(e)}))},r=n),r}function X(){if(!N){var n=(D||[]).slice();-1===(0,s.UA)(n,z)&&n[a.MW](z),N=(0,l.jV)((0,u.AA)(n),t,e)}return N}function Y(n,r,o){if(n&&n[a.R5]>0){var c=(0,l.jV)(n,t,e),u=(0,l.Bt)(c,e);u[a.Fc]((function(){var e=!1,t=[];(0,s.tO)(R,(function(r,i){C(r,n)?e=!0:t[a.MW](r)})),R=t;var r=[];L&&((0,s.tO)(L,(function(t,i){var o=[];(0,s.tO)(t,(function(t){C(t,n)?e=!0:o[a.MW](t)})),r[a.MW](o)})),L=r),o&&o(e),i()})),u[a.uL](r)}else o(!1)}function J(){if(e[a.eZ]&&e[a.eZ].queue){var n=e[a.eZ].queue.slice(0);e[a.eZ].queue[a.R5]=0,(0,s.tO)(n,(function(n){var r,i=((r={})[a.I]=V||"InternalMessageId: "+n[a.Gc],r.iKey=(0,s.v4)(t[a.p$]),r.time=(0,s.Y6)(new Date),r.baseType=v.lQ.dataType,r.baseData={message:n[a.gU]},r);e.track(i)}))}}function Z(e,t,n,r){return k?k[a.kL](e,t,n||6,r):(t&&t(!1),!0)}function ee(t){var n=e[a.eZ];n?((0,v.kP)(n,2,73,t),i()):(0,s._y)(t)}$(),e[a.yl]=function(){return n},e[a.VL]=function(i,o,l,u){var p,d;M&&(0,s._y)(A),e[a.yl]()&&(0,s._y)("Core should not be initialized more than once"),t=i||{},e[a.TC]=t,(0,s.le)(i[a.p$])&&(0,s._y)("Please provide instrumentation key"),y=u,e[E]=u,!0===(d=(0,s.v4)(t.disableDbgExt))&&U&&(y[a.n7](U),U=null),y&&!U&&!0!==d&&(U=(0,m.p)(t),y[a.g](U)),!(p=(0,s.v4)(t.enablePerfMgr))&&P&&(P=null),p&&(0,s.qK)(t,c.DN,T),(0,s.qK)(t,c.Zh,{}).NotificationManager=y,l&&(e[a.eZ]=l);var f=(0,s.qK)(t,c.js,[]);(R=[])[a.MW].apply(R,(0,r.$h)((0,r.$h)([],o,!1),f,!1)),L=(0,s.qK)(t,c.Z,[]),Q(null),j&&0!==j[a.R5]||(0,s._y)("No "+c.Z+" available"),n=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return j&&(0,s.tO)(j,(function(t){e[a.MW](t.queue)})),(0,s.FL)(e)},e.track=function(n){n.iKey=n.iKey||t[a.p$],n[a.Z_]=n[a.Z_]||(0,s.Y6)(new Date),n.ver=n.ver||"4.0",!M&&e[a.yl]()?W()[a.uL](n):b[a.MW](n)},e[a.SD]=W,e[a.tb]=function(){var t;return y||(y=(0,o.pu)(((t={})[a.g]=function(e){},t[a.n7]=function(e){},t[c.uC]=function(e){},t[c.$F]=function(e,t){},t[c.f_]=function(e,t){},t)),e[E]=y),y},e[a.g]=function(e){y&&y[a.g](e)},e[a.n7]=function(e){y&&y[a.n7](e)},e.getCookieMgr=function(){return O||(O=(0,f.Nz)(t,e[a.eZ])),O},e.setCookieMgr=function(e){O=e},e[c.kl]=function(){if(!I&&!P&&(0,s.v4)(t.enablePerfMgr)){var n=(0,s.v4)(t[c.DN]);(0,s.mf)(n)&&(P=n(e,e[a.tb]()))}return I||P||(0,g.j5)()},e.setPerfMgr=function(e){I=e},e.eventCnt=function(){return b[a.R5]},e.releaseQueue=function(){if(n&&b[a.R5]>0){var e=b;b=[],(0,s.tO)(e,(function(e){W()[a.uL](e)}))}},e.pollInternalLogs=function(e){return V=e||null,G=!1,H&&(clearInterval(H),H=null),i(!0)},e[a.LS]=function(){G=!0,H&&(clearInterval(H),H=0,J())},(0,s.Vb)(e,(function(){return z}),["addTelemetryInitializer"]),e.unload=function(t,r,i){var o;void 0===t&&(t=!0),n||(0,s._y)("SDK is not initialized"),M&&(0,s._y)(A);var c=((o={reason:50})[a.d]=t,o.flushComplete=!1,o),u=(0,l.Bt)(X(),e);function p(t){c.flushComplete=t,M=!0,F.run(u,c),e[a.LS](),u[a.uL](c)}u[a.Fc]((function(){$(),r&&r(c)}),e),J(),Z(t,p,6,i)||p(!1)},e[a.TO]=K,e.addPlugin=function(e,t,n,r){if(!e)return r&&r(!1),void ee(w);var i=K(e[a.pZ]);if(i&&!t)return r&&r(!1),void ee("Plugin ["+e[a.pZ]+"] is already loaded!");var o={reason:16};function s(t){R[a.MW](e),o.added=[e],Q(o),r&&r(!0)}if(i){var c=[i.plugin];Y(c,{reason:2,isAsync:!!n},(function(e){e?(o.removed=c,o.reason|=32,s()):r&&r(!1)}))}else s()},e.evtNamespace=function(){return B},e[a.kL]=Z,e.getTraceCtx=function(e){return q||(q=(0,u.Yn)()),q},e.setTraceCtx=function(e){q=e||null},(0,s.Oi)(e,"addUnloadCb",(function(){return F}),"add")}))}return e.__ieDyn=1,e}()},1549:(e,t,n)=>{"use strict";n.d(t,{i:()=>u});var r=n(9798),i=n(6474),o=n(3161),a=n(9556),s=n(877),c=n(6930),l="getPlugin",u=function(){function e(){var t,n,u,p,d,f=this;function h(e){void 0===e&&(e=null);var t=e;if(!t){var r=n||(0,s.CD)(null,{},f[a.oV]);t=u&&u[l]?r[i.zV](null,u[l]):r[i.zV](null,u)}return t}function m(e,t,r){e&&(0,o.sO)(e,a.Zh,[],null,o.le),!r&&t&&(r=t[i.SD]()[i.W2]());var c=u;u&&u[l]&&(c=u[l]()),f[a.oV]=t,n=(0,s.CD)(r,e,t,c)}function v(){t=!1,f[a.oV]=null,n=null,u=null,d=[],p=(0,c.Y)()}v(),(0,r.Z)(e,f,(function(e){e[i.VL]=function(e,n,r,i){m(e,n,i),t=!0},e[i.fi]=function(t,n){var r,c=e[a.oV];if(c&&(!t||c===t[a.oV]())){var f,h=!1,m=t||(0,s.Bt)(null,c,u&&u[l]?u[l]():u),g=n||((r={reason:0})[i.d]=!1,r);return e[i.F3]&&!0===e[i.F3](m,g,b)?f=!0:b(),f}function b(){if(!h){h=!0,p.run(m,n);var e=d;d=[],(0,o.tO)(e,(function(e){e.rm()})),!0===f&&m[i.uL](g),v()}}},e[i.Tu]=function(t,n){var r=e[a.oV];if(r&&(!t||r===t[a.oV]())){var o,c=!1,p=t||(0,s.xy)(null,r,u&&u[l]?u[l]():u),d=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(p,d,f)?o=!0:f(),o}function f(){c||(c=!0,m(p.getCfg(),p.core(),p[i.W2]()))}},e._addHook=function(e){e&&((0,o.kJ)(e)?d=d.concat(e):d[i.MW](e))},(0,o.Oi)(e,"_addUnloadCb",(function(){return p}),"add")})),f[i.mc]=function(e){return h(e)[i.mc]()},f[i.yl]=function(){return t},f.setInitialized=function(e){t=e},f[i.Jd]=function(e){u=e},f[i.uL]=function(e,t){t?t[i.uL](e):u&&(0,o.mf)(u[a.hL])&&u[a.hL](e,null)},f._getTelCtx=h}return e.__ieDyn=1,e}()},8589:(e,t,n)=>{"use strict";n.d(t,{JP:()=>S,Nz:()=>T,UY:()=>D,kj:()=>w,p7:()=>C});var r=n(6474),i=n(4300),o=n(1167),a=n(3161),s=n(9556),c="toGMTString",l="toUTCString",u="cookie",p="expires",d="enabled",f="isCookieUseDisabled",h="disableCookiesUsage",m="_ckMgr",v=null,g=null,b=null,y=(0,o.Me)(),_={},x={};function w(e,t){var n=T[m]||x[m];return n||(n=T[m]=T(e,t),x[m]=n),n}function E(e){return!e||e.isEnabled()}function A(e,t){return!!(t&&e&&(0,a.kJ)(e.ignoreCookies))&&-1!==e.ignoreCookies[r.ou](t)}function S(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var i=t[r.Lk];n=i[m]?i[m]:T(t)}return n||(n=w(t,(e||{})[r.eZ])),n}function T(e,t){var n,i=function(e){var t=e[r.Lk]=e[r.Lk]||{};if((0,a.sO)(t,"domain",e.cookieDomain,a.BX,a.le),(0,a.sO)(t,"path",e.cookiePath||"/",null,a.le),(0,a.le)(t[d])){var n=void 0;(0,a.o8)(e[f])||(n=!e[f]),(0,a.o8)(e[h])||(n=!e[h]),t[d]=n}return t}(e||x),u=i.path||"/",v=i.domain,b=!1!==i[d],y=((n={isEnabled:function(){var e=b&&C(t),n=x[m];return e&&n&&y!==n&&(e=E(n)),e}})[r.$h]=function(e){b=!1!==e},n.set=function(e,t,n,d,f){var h=!1;if(E(y)&&!function(e,t){return!!(t&&e&&(0,a.kJ)(e.blockedCookies)&&-1!==e.blockedCookies[r.ou](t))||A(e,t)}(i,e)){var m={},b=(0,a.nd)(t||s.qS),_=b[r.ou](";");if(-1!==_&&(b=(0,a.nd)(t[r.zc](0,_)),m=I(t[r.zc](_+1))),(0,a.sO)(m,"domain",d||v,a.fQ,a.o8),!(0,a.le)(n)){var x=(0,o.w1)();if((0,a.o8)(m[p])){var w=(0,a.m6)()+1e3*n;if(w>0){var S=new Date;S.setTime(w),(0,a.sO)(m,p,P(S,x?c:l)||P(S,x?c:l)||s.qS,a.fQ)}}x||(0,a.sO)(m,"max-age",s.qS+n,null,a.o8)}var T=(0,o.k$)();T&&"https:"===T.protocol&&((0,a.sO)(m,"secure",null,null,a.o8),null===g&&(g=!D(((0,o.jW)()||{})[r.qV])),g&&(0,a.sO)(m,"SameSite","None",null,a.o8)),(0,a.sO)(m,"path",f||u,null,a.o8),(i.setCookie||R)(e,O(b,m)),h=!0}return h},n.get=function(e){var t=s.qS;return E(y)&&!A(i,e)&&(t=(i.getCookie||N)(e)),t},n.del=function(e,t){var n=!1;return E(y)&&(n=y.purge(e,t)),n},n.purge=function(e,n){var r,a=!1;if(C(t)){var c=((r={}).path=n||"/",r[p]="Thu, 01 Jan 1970 00:00:01 GMT",r);(0,o.w1)()||(c["max-age"]="0"),(i.delCookie||R)(e,O(s.qS,c)),a=!0}return a},n);return y[m]=y,y}function C(e){if(null===v){v=!1;try{v=void 0!==(y||{})[u]}catch(t){(0,i.kP)(e,2,68,"Cannot access document.cookie - "+(0,a.jj)(t),{exception:(0,o.eU)(t)})}}return v}function I(e){var t={};if(e&&e[r.R5]){var n=(0,a.nd)(e)[r.w6](";");(0,a.tO)(n,(function(e){if(e=(0,a.nd)(e||s.qS)){var n=e[r.ou]("=");-1===n?t[e]=null:t[(0,a.nd)(e[r.zc](0,n))]=(0,a.nd)(e[r.zc](n+1))}}))}return t}function P(e,t){return(0,a.mf)(e[t])?e[t]():null}function O(e,t){var n=e||s.qS;return(0,a.rW)(t,(function(e,t){n+="; "+e+((0,a.le)(t)?s.qS:"="+t)})),n}function N(e){var t=s.qS;if(y){var n=y[u]||s.qS;b!==n&&(_=I(n),b=n),t=(0,a.nd)(_[e]||s.qS)}return t}function R(e,t){y&&(y[u]=e+"="+t)}function D(e){return!(!(0,a.HD)(e)||!(0,a._Q)(e,"CPU iPhone OS 12")&&!(0,a._Q)(e,"iPad; CPU OS 12")&&!((0,a._Q)(e,"Macintosh; Intel Mac OS X 10_14")&&(0,a._Q)(e,"Version/")&&(0,a._Q)(e,"Safari"))&&(!(0,a._Q)(e,"Macintosh; Intel Mac OS X 10_14")||!(0,a.Id)(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!(0,a._Q)(e,"Chrome/5")&&!(0,a._Q)(e,"Chrome/6")&&(!(0,a._Q)(e,"UnrealEngine")||(0,a._Q)(e,"Chrome"))&&!(0,a._Q)(e,"UCBrowser/12")&&!(0,a._Q)(e,"UCBrowser/11"))}},821:(e,t,n)=>{"use strict";n.d(t,{DO:()=>g,GW:()=>m,Jj:()=>v,Px:()=>h,Tr:()=>b,d8:()=>A,ej:()=>E,kT:()=>S,oF:()=>x,pP:()=>_,vn:()=>w,zB:()=>y});var r,i=n(2589),o=n(8785),a=n(6474),s=n(8589),c=n(1167),l=n(1318),u=n(3161),p=n(9556),d=n(395),f=null,h=i.jA;function m(){var e=g();return e[a.zc](0,8)+"-"+e[a.zc](8,12)+"-"+e[a.zc](12,16)+"-"+e[a.zc](16,20)+"-"+e[a.zc](20)}function v(){var e=(0,c.r)();return e&&e.now?e.now():(0,u.m6)()}function g(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=p.qS,r=0;r<4;r++)n+=t[15&(e=(0,d._l)())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&(0,d._l)())|0];return n[a.Jn](0,8)+n[a.Jn](9,4)+"4"+n[a.Jn](13,3)+i+n[a.Jn](16,3)+n[a.Jn](19,12)}var b={_canUseCookies:void 0,isTypeof:u.Ym,isUndefined:u.o8,isNullOrUndefined:u.le,hasOwnProperty:u.nr,isFunction:u.mf,isObject:u.Kn,isDate:u.J_,isArray:u.kJ,isError:u.VZ,isString:u.HD,isNumber:u.hj,isBoolean:u.jn,toISOString:u.Y6,arrForEach:u.tO,arrIndexOf:u.UA,arrMap:u.Mr,arrReduce:u.Xz,strTrim:u.nd,objCreate:o.pu,objKeys:u.FY,objDefineAccessors:u.l_,addEventHandler:l.Ib,dateNow:u.m6,isIE:c.w1,disableCookies:x,newGuid:m,perfNow:v,newId:d.pZ,randomValue:d.az,random32:d._l,mwcRandomSeed:d.CN,mwcRandom32:d.F6,generateW3CId:g},y={Attach:l.pZ,AttachEvent:l.pZ,Detach:l.pD,DetachEvent:l.pD};function _(e,t){var n=(0,s.kj)(e,t),i=b._canUseCookies;return null===f&&(f=[],r=i,(0,u.l_)(b,"_canUseCookies",(function(){return r}),(function(e){r=e,(0,u.tO)(f,(function(t){t[a.$h](e)}))}))),-1===(0,u.UA)(f,n)&&f[a.MW](n),(0,u.jn)(i)&&n[a.$h](i),(0,u.jn)(r)&&n[a.$h](r),n}function x(){_()[a.$h](!1)}function w(e){return _(null,e).isEnabled()}function E(e,t){return _(null,e).get(t)}function A(e,t,n,r){_(null,e).set(t,n,null,r)}function S(e,t){return _(null,e).del(t)}},8530:(e,t,n)=>{"use strict";n.d(t,{J:()=>f,K:()=>h});var r=n(2589),i=n(6474),o=n(3161),a=n(9556),s=n(395),c=r.RJ,l="2.8.15",u="."+(0,s.pZ)(6),p=0;function d(e){return 1===e[i.xv]||9===e[i.xv]||!+e[i.xv]}function f(e,t){return void 0===t&&(t=!1),(0,o.Gf)(e+p+++(t?"."+l:a.qS)+u)}function h(e){var t={id:f("_aiData-"+(e||a.qS)+"."+l),accept:function(e){return d(e)},get:function(e,n,r,i){var a=e[t.id];return a?a[(0,o.Gf)(n)]:(i&&((a=function(e,t){var n=t[e.id];if(!n){n={};try{d(t)&&(function(e,t,n){if(c)try{return c(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch(e){}return!1}(t,e.id,n)||(t[e.id]=n))}catch(e){}}return n}(t,e))[(0,o.Gf)(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}},7485:(e,t,n)=>{"use strict";n.d(t,{j:()=>l,p:()=>u});var r,i=n(6474),o=n(1167),a=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],s=null;function c(e,t){return function(){var n=arguments,r=l(t);if(r){var o=r.listener;o&&o[e]&&o[e][i.ZV](o,n)}}}function l(e){var t,n=s;return n||!0===e.disableDbgExt||(n=s||((t=(0,o.a8)("Microsoft"))&&(s=t.ApplicationInsights),s)),n?n.ChromeDbgExt:null}function u(e){if(!r){r={};for(var t=0;t<a[i.R5];t++)r[a[t]]=c(a[t],e)}return r}},4300:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>f,L4:()=>g,jV:()=>v,kP:()=>m,lQ:()=>p,vH:()=>d});var r=n(9798),i=n(6474),o=n(7485),a=n(1167),s=n(3161),c=n(9556);function l(e){return e?'"'+e[i.i7](/\"/g,c.qS)+'"':c.qS}function u(e,t){var n=(0,a.dr)();if(n){var r="log";n[e]&&(r=e),(0,s.mf)(n[r])&&n[r](t)}}var p=function(){function e(e,t,n,r){void 0===n&&(n=!1);var o=this;o[i.Gc]=e,o[i.gU]=(n?"AI: ":"AI (Internal): ")+e;var s=c.qS;(0,a.nS)()&&(s=(0,a.xA)().stringify(r));var u=(t?" message:"+l(t):c.qS)+(r?" props:"+l(s):c.qS);o[i.gU]+=u}return e.dataType="MessageData",e}();function d(e,t){return(e||{})[i.eZ]||new f(t)}var f=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,l,d,f,h=0,m={};(0,r.Z)(e,this,(function(e){function r(t,n){if(!(h>=d)){var r=!0,o="AITR_"+n[i.Gc];if(m[o]?r=!1:m[o]=!0,r&&(t<=l&&(e.queue[i.MW](n),h++,v(1===t?"error":"warn",n)),h===d)){var a="Internal events throttle limit per PageView reached for this app.",s=new p(23,a,!1);e.queue[i.MW](s),1===t?e[c.ys](a):e[c.cL](a)}}}function v(e,n){var r=(0,o.j)(t||{});r&&r[i.mc]&&r[i.mc](e,n)}!function(e){n=(0,s.v4)(e.loggingLevelConsole,0),l=(0,s.v4)(e.loggingLevelTelemetry,1),d=(0,s.v4)(e.maxMessageLimit,25),f=(0,s.v4)(e.enableDebug,(0,s.v4)(e[i.Fr],!1))}(t||{}),e.consoleLoggingLevel=function(){return n},e.telemetryLoggingLevel=function(){return l},e.maxInternalMessageLimit=function(){return d},e[i.Fr]=function(){return f},e.throwInternal=function(t,o,l,u,d){void 0===d&&(d=!1);var h=new p(o,l,d,u);if(f)throw(0,a.eU)(h);var g=1===t?c.ys:c.cL;if((0,s.o8)(h[i.gU]))v("throw"+(1===t?"Critical":"Warning"),h);else{if(d){var b=+h[i.Gc];!m[b]&&n>=t&&(e[g](h[i.gU]),m[b]=!0)}else n>=t&&e[g](h[i.gU]);r(t,h)}},e[c.cL]=function(e){u("warn",e),v("warning",e)},e[c.ys]=function(e){u("error",e),v("error",e)},e.resetInternalMessageCount=function(){h=0,m={}},e[i.jk]=r}))}return e.__ieDyn=1,e}();function h(e){return e||new f}function m(e,t,n,r,i,o){void 0===o&&(o=!1),h(e).throwInternal(t,n,r,i,o)}function v(e,t){h(e)[c.cL](t)}function g(e,t,n){h(e)[i.jk](t,n)}},1167:(e,t,n)=>{"use strict";n.d(t,{G6:()=>X,JO:()=>J,Jj:()=>R,Kf:()=>ae,MF:()=>Y,MX:()=>H,Me:()=>k,Nd:()=>oe,Nu:()=>ie,Nv:()=>D,Ym:()=>N,Z3:()=>ee,a8:()=>O,b$:()=>$,cp:()=>Z,d6:()=>L,dI:()=>P,dr:()=>B,eU:()=>K,ed:()=>ne,fE:()=>M,gz:()=>G,jW:()=>j,k$:()=>V,nS:()=>U,pI:()=>re,r:()=>F,s1:()=>z,sA:()=>Q,w1:()=>W,xA:()=>q});var r=n(2589),i=n(8785),o=n(6474),a=n(3161),s=n(9556),c="window",l="document",u="documentMode",p="navigator",d="history",f="location",h="console",m="performance",v="JSON",g="crypto",b="msCrypto",y="ReactNative",_="msie",x="trident/",w="XMLHttpRequest",E=null,A=null,S=!1,T=null,C=null;function I(e,t){var n=!1;if(e){try{if(!(n=t in e)){var i=e[r.hB];i&&(n=t in i)}}catch(e){}if(!n)try{var o=new e;n=!(0,a.o8)(o[t])}catch(e){}}return n}function P(e){S=e}function O(e){var t=(0,i.Rd)();return t&&t[e]?t[e]:e===c&&N()?window:null}function N(){return Boolean(typeof window===r.fK&&window)}function R(){return N()?window:O(c)}function D(){return Boolean(typeof document===r.fK&&document)}function k(){return D()?document:O(l)}function L(){return Boolean(typeof navigator===r.fK&&navigator)}function j(){return L()?navigator:O(p)}function M(){return Boolean(typeof history===r.fK&&history)}function z(){return M()?history:O(d)}function V(e){if(e&&S){var t=O("__mockLocation");if(t)return t}return typeof location===r.fK&&location?location:O(f)}function B(){return typeof console!==r.jA?console:O(h)}function F(){return O(m)}function U(){return Boolean(typeof JSON===r.fK&&JSON||null!==O(v))}function q(){return U()?JSON||O(v):null}function H(){return O(g)}function G(){return O(b)}function $(){var e=j();return!(!e||!e.product)&&e.product===y}function W(){var e=j();if(e&&(e[o.qV]!==A||null===E)){var t=((A=e[o.qV])||s.qS)[o.T1]();E=(0,a._Q)(t,_)||(0,a._Q)(t,x)}return E}function Q(e){if(void 0===e&&(e=null),!e){var t=j()||{};e=t?(t[o.qV]||s.qS)[o.T1]():s.qS}var n=(e||s.qS)[o.T1]();if((0,a._Q)(n,_)){var r=k()||{};return Math.max(parseInt(n[o.w6](_)[1]),r[u]||0)}if((0,a._Q)(n,x)){var i=parseInt(n[o.w6](x)[1]);if(i)return i+4}return null}function K(e){var t=Object[r.hB].toString[o._S](e),n=s.qS;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e[o.I]+"'":U()&&(n=q().stringify(e)),t+n}function X(e){if(!e||!(0,a.HD)(e)){var t=j()||{};e=t?(t[o.qV]||s.qS)[o.T1]():s.qS}return(e||s.qS)[o.T1]()[o.ou]("safari")>=0}function Y(){return null===C&&(C=L()&&Boolean(j().sendBeacon)),C}function J(e){var t=!1;try{t=!!O("fetch");var n=O("Request");t&&e&&n&&(t=I(n,"keepalive"))}catch(e){}return t}function Z(){return null===T&&(T=typeof XDomainRequest!==r.jA)&&ee()&&(T=T&&!I(O(w),"withCredentials")),T}function ee(){var e=!1;try{e=!!O(w)}catch(e){}return e}function te(e,t){if(e)for(var n=0;n<e[o.R5];n++){var r=e[n];if(r[o.I]&&r[o.I]===t)return r}return{}}function ne(e){var t=k();return t&&e?te(t.querySelectorAll("meta"),e).content:null}function re(e){var t,n=F();if(n){var r=n.getEntriesByType("navigation")||[];t=te((r[o.R5]>0?r[0]:{}).serverTiming,e).description}return t}function ie(e,t){return!!(e&&e.dispatchEvent&&t)&&(e.dispatchEvent(t),!0)}function oe(e,t){var n=null,r={detail:t||null};if((0,a.mf)(CustomEvent))n=new CustomEvent(e,r);else{var i=k();i&&i.createEvent&&(n=i.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,r)}return n}function ae(e,t,n){var r=(0,i.Rd)();if(r&&r.CustomEvent)try{return ie(r,oe(e,{cfg:t||null,customDetails:n||null}))}catch(e){}return!1}},1318:(e,t,n)=>{"use strict";n.d(t,{C1:()=>z,C9:()=>G,Ib:()=>M,JA:()=>q,QY:()=>k,TJ:()=>H,XO:()=>D,Yl:()=>W,c9:()=>U,jU:()=>R,nD:()=>$,nJ:()=>F,pD:()=>j,pZ:()=>L,um:()=>I,yw:()=>B});var r=n(6474),i=n(8530),o=n(1167),a=n(3161),s=n(9556),c="on",l="attachEvent",u="addEventListener",p="detachEvent",d="removeEventListener",f="events",h="visibilitychange",m="pagehide",v="pageshow",g="unload",b="beforeunload",y=(0,i.J)("aiEvtPageHide"),_=(0,i.J)("aiEvtPageShow"),x=/\.[\.]+/g,w=/[\.]+$/,E=1,A=(0,i.K)("events"),S=/^([^.]*)(?:\.(.+)|)/;function T(e){return e&&e[r.i7]?e[r.i7](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,s.qS):e}function C(e,t){var n;if(t){var i=s.qS;(0,a.kJ)(t)?(i=s.qS,(0,a.tO)(t,(function(e){(e=T(e))&&("."!==e[0]&&(e="."+e),i+=e)}))):i=T(t),i&&("."!==i[0]&&(i="."+i),e=(e||s.qS)+i)}var o=S.exec(e||s.qS)||[];return(n={})[r.P6]=o[1],n.ns=(o[2]||s.qS).replace(x,".").replace(w,s.qS)[r.w6](".").sort().join("."),n}function I(e,t,n){var i=[],o=A.get(e,f,{},!1),c=C(t,n);return(0,a.rW)(o,(function(e,t){(0,a.tO)(t,(function(e){var t;c[r.P6]&&c[r.P6]!==e.evtName[r.P6]||c.ns&&c.ns!=c.ns||i[r.MW](((t={})[r.I]=e.evtName[r.P6]+(e.evtName.ns?"."+e.evtName.ns:s.qS),t.handler=e[r.Kn],t))}))})),i}function P(e,t,n){void 0===n&&(n=!0);var r=A.get(e,f,{},n),i=r[t];return i||(i=r[t]=[]),i}function O(e,t,n,i){e&&t&&t[r.P6]&&(e[d]?e[d](t[r.P6],n,i):e[p]&&e[p](c+t[r.P6],n))}function N(e,t,n,i){for(var o=t[r.R5];o--;){var a=t[o];a&&(n.ns&&n.ns!==a.evtName.ns||i&&!i(a)||(O(e,a.evtName,a[r.Kn],a.capture),t[r.cb](o,1)))}}function R(e,t){return t?C("xx",(0,a.kJ)(t)?[e].concat(t):[e,t]).ns[r.w6]("."):e}function D(e,t,n,i,o){var a;void 0===o&&(o=!1);var s=!1;if(e)try{var p=C(t,i);if(s=function(e,t,n,i){var o=!1;return e&&t&&t[r.P6]&&n&&(e[u]?(e[u](t[r.P6],n,i),o=!0):e[l]&&(e[l](c+t[r.P6],n),o=!0)),o}(e,p,n,o),s&&A.accept(e)){var d=((a={guid:E++,evtName:p})[r.Kn]=n,a.capture=o,a);P(e,p.type)[r.MW](d)}}catch(e){}return s}function k(e,t,n,i,o){if(void 0===o&&(o=!1),e)try{var s=C(t,i),c=!1;!function(e,t,n){if(t[r.P6])N(e,P(e,t[r.P6]),t,n);else{var i=A.get(e,f,{});(0,a.rW)(i,(function(r,i){N(e,i,t,n)})),0===(0,a.FY)(i)[r.R5]&&A.kill(e,f)}}(e,s,(function(e){return!((!s.ns||n)&&e[r.Kn]!==n||(c=!0,0))})),c||O(e,s,n,o)}catch(e){}}function L(e,t,n,r){return void 0===r&&(r=!1),D(e,t,n,null,r)}function j(e,t,n,r){void 0===r&&(r=!1),k(e,t,n,null,r)}function M(e,t,n){var r=!1,i=(0,o.Jj)();i&&(r=D(i,e,t,n),r=D(i.body,e,t,n)||r);var a=(0,o.Me)();return a&&(r=D(a,e,t,n)||r),r}function z(e,t,n){var r=(0,o.Jj)();r&&(k(r,e,t,n),k(r.body,e,t,n));var i=(0,o.Me)();i&&k(i,e,t,n)}function V(e,t,n,i){var o=!1;return t&&e&&e[r.R5]>0&&(0,a.tO)(e,(function(e){e&&(n&&-1!==(0,a.UA)(n,e)||(o=M(e,t,i)||o))})),o}function B(e,t,n,i){var o=!1;return t&&e&&(0,a.kJ)(e)&&!(o=V(e,t,n,i))&&n&&n[r.R5]>0&&(o=V(e,t,null,i)),o}function F(e,t,n){e&&(0,a.kJ)(e)&&(0,a.tO)(e,(function(e){e&&z(e,t,n)}))}function U(e,t,n){return B([b,g,m],e,t,n)}function q(e,t){F([b,g,m],e,t)}function H(e,t,n){var r=R(y,n),i=V([m],e,t,r);return t&&-1!==(0,a.UA)(t,h)||(i=V([h],(function(t){var n=(0,o.Me)();e&&n&&"hidden"===n.visibilityState&&e(t)}),t,r)||i),!i&&t&&(i=H(e,null,n)),i}function G(e,t){var n=R(y,t);F([m],e,n),F([h],null,n)}function $(e,t,n){var r=R(_,n),i=V([v],e,t,r);return!(i=V([h],(function(t){var n=(0,o.Me)();e&&n&&"visible"===n.visibilityState&&e(t)}),t,r)||i)&&t&&(i=$(e,null,n)),i}function W(e,t){var n=R(_,t);F([v],e,n),F([h],null,n)}},3161:(e,t,n)=>{"use strict";n.d(t,{Ax:()=>Oe,BX:()=>B,F:()=>we,FL:()=>me,FY:()=>pe,Gf:()=>H,HD:()=>J,Hb:()=>k,Id:()=>$,J_:()=>K,Kn:()=>U,Mr:()=>ae,Mu:()=>L,Oi:()=>Ce,PO:()=>ne,UA:()=>oe,VZ:()=>Y,Vb:()=>Ie,Xi:()=>ve,Xz:()=>se,Y6:()=>re,Ym:()=>j,_A:()=>he,_Q:()=>Q,_y:()=>Ae,cf:()=>Te,fQ:()=>Ee,hj:()=>Z,hl:()=>Pe,jj:()=>be,jn:()=>ee,kJ:()=>X,l_:()=>de,le:()=>V,m6:()=>ge,mf:()=>q,mm:()=>Ne,nd:()=>ce,nr:()=>F,o8:()=>M,pT:()=>z,qK:()=>_e,rW:()=>G,sO:()=>ye,tO:()=>ie,v4:()=>xe,xe:()=>W,yk:()=>te});var r=n(2589),i=n(8785),o=n(6474),a=n(9556),s="toISOString",c="endsWith",l="startsWith",u="indexOf",p="map",d="reduce",f="trim",h="toString",m="__proto__",v="constructor",g=r.RJ,b=r.Pw.freeze,y=r.Pw.seal,_=r.Pw.keys,x=String[r.hB],w=x[f],E=x[c],A=x[l],S=Date[r.hB][s],T=Array.isArray,C=r.V4[h],I=r.CY[h],P=I[o._S](r.Pw),O=/-([a-z])/g,N=/([^\w\d_$])/g,R=/^(\d+[\w\d_$])/,D=Object.getPrototypeOf;function k(e){if(e){if(D)return D(e);var t=e[m]||e[r.hB]||e[v];if(t)return t}return null}function L(e){return C[o._S](e)}function j(e,t){return typeof e===t}function M(e){return void 0===e||typeof e===r.jA}function z(e){return!M(e)}function V(e){return null===e||M(e)}function B(e){return!V(e)}function F(e,t){return!(!e||!r.CY[o._S](e,t))}function U(e){return!(!e||typeof e!==r.fK)}function q(e){return!(!e||typeof e!==r.cb)}function H(e){var t=e;return t&&J(t)&&(t=(t=(t=t[o.i7](O,(function(e,t){return t.toUpperCase()})))[o.i7](N,"_"))[o.i7](R,(function(e,t){return"_"+t}))),t}function G(e,t){if(e)for(var n in e)r.CY[o._S](e,n)&&t[o._S](e,n,e[n])}function $(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=E?e[c](t):function(e,t){var n=!1,r=t?t[o.R5]:0,i=e?e[o.R5]:0;if(r&&i&&i>=r&&!(n=e===t)){for(var a=i-1,s=r-1;s>=0;s--){if(e[a]!=t[s])return!1;a--}n=!0}return n}(e,t)),n}function W(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=A?e[l](t):function(e,t){var n=!1,r=t?t[o.R5]:0;if(e&&r&&e[o.R5]>=r&&!(n=e===t)){for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;n=!0}return n}(e,t)),n}function Q(e,t){return!(!e||!t)&&-1!==e[o.ou](t)}function K(e){return!(!e||"[object Date]"!==C[o._S](e))}var X=T||function(e){return!(!e||"[object Array]"!==C[o._S](e))};function Y(e){return!(!e||"[object Error]"!==C[o._S](e))}function J(e){return"string"==typeof e}function Z(e){return"number"==typeof e}function ee(e){return"boolean"==typeof e}function te(e){return"symbol"==typeof e}function ne(e){var t=!1;if(e&&"object"==typeof e){var n=D?D(e):k(e);n?(n[v]&&r.CY[o._S](n,v)&&(n=n[v]),t=typeof n===r.cb&&I[o._S](n)===P):t=!0}return t}function re(e){if(e)return S?e[s]():function(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t[o.R5]&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(e)}function ie(e,t,n){var r=e[o.R5];try{for(var i=0;i<r&&(!(i in e)||-1!==t[o._S](n||e,e[i],i,e));i++);}catch(e){}}function oe(e,t,n){if(e){if(e[u])return e[u](t,n);var r=e[o.R5],i=n||0;try{for(var a=Math.max(i>=0?i:r-Math.abs(i),0);a<r;a++)if(a in e&&e[a]===t)return a}catch(e){}}return-1}function ae(e,t,n){var r;if(e){if(e[p])return e[p](t,n);var i=e[o.R5],a=n||e;r=new Array(i);try{for(var s=0;s<i;s++)s in e&&(r[s]=t[o._S](a,e[s],e))}catch(e){}}return r}function se(e,t,n){var r;if(e){if(e[d])return e[d](t,n);var i=e[o.R5],a=0;if(arguments[o.R5]>=3)r=arguments[2];else{for(;a<i&&!(a in e);)a++;r=e[a++]}for(;a<i;)a in e&&(r=t(r,e[a],a,e)),a++}return r}function ce(e){return e&&(e=w&&e[f]?e[f]():e[o.i7]?e[o.i7](/^\s+|(?=\s)\s+$/g,a.qS):e),e}var le=!{toString:null}.propertyIsEnumerable("toString"),ue=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function pe(e){var t=typeof e;if(t===r.cb||t===r.fK&&null!==e||(0,i.ZU)("objKeys called on non-object"),!le&&_)return _(e);var n=[];for(var a in e)e&&r.CY[o._S](e,a)&&n[o.MW](a);if(le)for(var s=ue[o.R5],c=0;c<s;c++)e&&r.CY[o._S](e,ue[c])&&n[o.MW](ue[c]);return n}function de(e,t,n,r){if(g)try{var i={enumerable:!0,configurable:!0};return n&&(i.get=n),r&&(i.set=r),g(e,t,i),!0}catch(e){}return!1}function fe(e){return e}function he(e){return b&&G(e,(function(e,t){(X(t)||U(t))&&b(t)})),me(e)}var me=b||fe,ve=y||fe;function ge(){var e=Date;return e.now?e.now():(new e).getTime()}function be(e){return Y(e)?e[o.I]:a.qS}function ye(e,t,n,r,i){var o=n;return e&&((o=e[t])===n||i&&!i(o)||r&&!r(n)||(o=n,e[t]=o)),o}function _e(e,t,n){var r;return e?!(r=e[t])&&V(r)&&(r=M(n)?{}:n,e[t]=r):r=M(n)?{}:n,r}function xe(e,t){return V(e)?t:e}function we(e){return!e}function Ee(e){return!!e}function Ae(e){throw new Error(e)}function Se(e,t){var n=null,r=null;return q(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t][o.ZV](r,e)}}function Te(e,t,n){if(e&&t&&U(e)&&U(t)){var r=function(r){if(J(r)){var i=t[r];q(i)?n&&!n(r,!0,t,e)||(e[r]=Se(t,r)):n&&!n(r,!1,t,e)||(F(e,r)&&delete e[r],de(e,r,(function(){return t[r]}),(function(e){t[r]=e}))||(e[r]=i))}};for(var i in t)r(i)}return e}function Ce(e,t,n,r,i){e&&t&&n&&(!1!==i||M(e[t]))&&(e[t]=Se(n,r))}function Ie(e,t,n,r){return e&&t&&U(e)&&X(n)&&ie(n,(function(n){J(n)&&Ce(e,n,t,n,r)})),e}function Pe(e){return function(){var t=this;e&&G(e,(function(e,n){t[e]=n}))}}function Oe(e){return e&&r.rl&&(e=(0,r.Pw)((0,r.rl)({},e))),e}function Ne(e,t,n,i,a,s){var c=arguments,l=c[0]||{},u=c[o.R5],p=!1,d=1;for(u>0&&ee(l)&&(p=l,l=c[d]||{},d++),U(l)||(l={});d<u;d++){var f=c[d],h=X(f),m=U(f);for(var v in f)if(h&&v in f||m&&r.CY[o._S](f,v)){var g=f[v],b=void 0;if(p&&g&&((b=X(g))||ne(g))){var y=l[v];b?X(y)||(y=[]):ne(y)||(y={}),g=Ne(p,y,g)}void 0!==g&&(l[v]=g)}}return l}},9556:(e,t,n)=>{"use strict";n.d(t,{$F:()=>f,C$:()=>m,DN:()=>a,Z:()=>i,Zh:()=>c,cL:()=>g,f_:()=>h,hL:()=>u,js:()=>l,kl:()=>b,mE:()=>s,oV:()=>o,qS:()=>r,uC:()=>d,yi:()=>p,ys:()=>v});var r="",i="channels",o="core",a="createPerfMgr",s="disabled",c="extensionConfig",l="extensions",u="processTelemetry",p="priority",d="eventsSent",f="eventsDiscarded",h="eventsSendRequest",m="perfEvent",v="errorToConsole",g="warnToConsole",b="getPerfMgr"},6329:(e,t,n)=>{"use strict";n.d(t,{f:()=>c});var r=n(9798),i=n(6474),o=n(3161),a=n(9556);function s(e,t,n,r){(0,o.tO)(e,(function(e){if(e&&e[t])if(n)setTimeout((function(){return r(e)}),0);else try{r(e)}catch(e){}}))}var c=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;(0,r.Z)(e,this,(function(e){e[i.g]=function(t){e.listeners[i.MW](t)},e[i.n7]=function(t){for(var n=(0,o.UA)(e[i.dE],t);n>-1;)e.listeners[i.cb](n,1),n=(0,o.UA)(e[i.dE],t)},e[a.uC]=function(t){s(e[i.dE],a.uC,!0,(function(e){e[a.uC](t)}))},e[a.$F]=function(t,n){s(e[i.dE],a.$F,!0,(function(e){e[a.$F](t,n)}))},e[a.f_]=function(t,n){s(e[i.dE],a.f_,n,(function(e){e[a.f_](t,n)}))},e[a.C$]=function(t){t&&(!n&&t[i.PL]()||s(e[i.dE],a.C$,!1,(function(e){t[i.d]?setTimeout((function(){return e[a.C$](t)}),0):e[a.C$](t)})))}}))}return e.__ieDyn=1,e}()},2753:(e,t,n)=>{"use strict";n.d(t,{Jk:()=>d,Lm:()=>h,j5:()=>v,tQ:()=>m,zn:()=>p});var r=n(9798),i=n(6474),o=n(3161),a=n(9556),s="ctx",c="ParentContextKey",l="ChildrenContextKey",u=null,p=function(){function e(t,n,r){var a,u=this,p=!1;u.start=(0,o.m6)(),u[i.I]=t,u[i.d]=r,u[i.PL]=function(){return!1},(0,o.mf)(n)&&(p=(0,o.l_)(u,"payload",(function(){return!a&&(0,o.mf)(n)&&(a=n(),n=null),a}))),u[i.T]=function(t){return t?t===e[c]||t===e[l]?u[t]:(u[s]||{})[t]:null},u[i.wu]=function(t,n){t&&(t===e[c]?(u[t]||(u[i.PL]=function(){return!0}),u[t]=n):t===e[l]?u[t]=n:(u[s]=u[s]||{})[t]=n)},u[i.Km]=function(){var t=0,r=u[i.T](e[l]);if((0,o.kJ)(r))for(var a=0;a<r[i.R5];a++){var s=r[a];s&&(t+=s[i.Z_])}u[i.Z_]=(0,o.m6)()-u.start,u.exTime=u[i.Z_]-t,u[i.Km]=function(){},!p&&(0,o.mf)(n)&&(u.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),d=function(){function e(t){this.ctx={},(0,r.Z)(e,this,(function(e){e.create=function(e,t,n){return new p(e,t,n)},e.fire=function(e){e&&(e[i.Km](),t&&(0,o.mf)(t[a.C$])&&t[a.C$](e))},e[i.wu]=function(t,n){t&&((e[s]=e[s]||{})[t]=n)},e[i.T]=function(t){return(e[s]||{})[t]}}))}return e.__ieDyn=1,e}(),f="CoreUtils.doPerf";function h(e,t,n,r,o){if(e){var s=e;if(s[a.kl]&&(s=s[a.kl]()),s){var u=void 0,d=s[i.T](f);try{if(u=s.create(t(),r,o)){if(d&&u[i.wu]&&(u[i.wu](p[c],d),d[i.T]&&d[i.wu])){var h=d[i.T](p[l]);h||(h=[],d[i.wu](p[l],h)),h[i.MW](u)}return s[i.wu](f,u),n(u)}}catch(e){u&&u[i.wu]&&u[i.wu]("exception",e)}finally{u&&s.fire(u),s[i.wu](f,d)}}}return n()}function m(e){u=e}function v(){return u}},877:(e,t,n)=>{"use strict";n.d(t,{Bt:()=>v,CD:()=>m,Vi:()=>y,jV:()=>b,xy:()=>g});var r=n(6474),i=n(4300),o=n(1167),a=n(3161),s=n(9556),c=n(2753),l=n(3656),u="TelemetryPluginChain",p="_hasRun",d="_getTelCtx",f=0;function h(e,t,n,c){var l=null,u=[];null!==c&&(l=c?function(e,t,n){for(;e;){if(e[r.TO]()===n)return e;e=e[r.W2]()}return b([n],t[r.TC]||{},t)}(e,n,c):e);var p={_next:function(){var e=l;if(l=e?e[r.W2]():null,!e){var t=u;t&&t[r.R5]>0&&((0,a.tO)(t,(function(e){try{e.func[r._S](e.self,e.args)}catch(e){(0,i.kP)(n[r.eZ],2,73,"Unexpected Exception during onComplete - "+(0,o.eU)(e))}})),u=[])}return e},ctx:{core:function(){return n},diagLog:function(){return(0,i.vH)(n,t)},getCfg:function(){return t},getExtCfg:d,getConfig:function(e,n,r){void 0===r&&(r=!1);var i,o=d(e,null);return o&&!(0,a.le)(o[n])?i=o[n]:t&&!(0,a.le)(t[n])&&(i=t[n]),(0,a.le)(i)?r:i},hasNext:function(){return!!l},getNext:function(){return l},setNext:function(e){l=e},iterate:function(e){for(var t;t=p._next();){var n=t[r.TO]();n&&e(n)}},onComplete:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];e&&u[r.MW]({func:e,self:(0,a.o8)(t)?p.ctx:t,args:n})}}};function d(e,n,r){var i;if(void 0===n&&(n={}),void 0===r&&(r=0),t){var o=t[s.Zh];o&&e&&(i=o[e])}if(i){if((0,a.Kn)(n)&&0!==r){var c=(0,a.mm)(!0,n,i);t&&2===r&&(0,a.rW)(n,(function(e){if((0,a.le)(c[e])){var n=t[e];(0,a.le)(n)||(c[e]=n)}})),i=c}}else i=n;return i}return p}function m(e,t,n,i){var o=h(e,t,n,i),c=o.ctx;return c[r.uL]=function(e){var t=o._next();return t&&t[s.hL](e,c),!t},c[r.zV]=function(e,i){return void 0===e&&(e=null),(0,a.kJ)(e)&&(e=b(e,t,n,i)),m(e||c[r.W2](),t,n,i)},c}function v(e,t,n){var i=t[r.TC]||{},o=h(e,i,t,n),s=o.ctx;return s[r.uL]=function(e){var t=o._next();return t&&t.unload(s,e),!t},s[r.zV]=function(e,n){return void 0===e&&(e=null),(0,a.kJ)(e)&&(e=b(e,i,t,n)),v(e||s[r.W2](),t,n)},s}function g(e,t,n){var i=t[r.TC]||{},o=h(e,i,t,n).ctx;return o[r.uL]=function(e){return o.iterate((function(t){(0,a.mf)(t[r.Tu])&&t[r.Tu](o,e)}))},o[r.zV]=function(e,n){return void 0===e&&(e=null),(0,a.kJ)(e)&&(e=b(e,i,t,n)),g(e||o[r.W2](),t,n)},o}function b(e,t,n,h){var v=null,g=!h;if((0,a.kJ)(e)&&e[r.R5]>0){var y=null;(0,a.tO)(e,(function(e){if(g||h!==e||(g=!0),g&&e&&(0,a.mf)(e[s.hL])){var b=function(e,t,n){var h,v=null,g=(0,a.mf)(e[s.hL]),b=(0,a.mf)(e[r.Jd]),y={getPlugin:function(){return e},getNext:function(){return v},processTelemetry:function(i,o){_(o=o||function(){var r;return e&&(0,a.mf)(e[d])&&(r=e[d]()),r||(r=m(y,t,n)),r}(),(function(t){if(!e||!g)return!1;var n=(0,l.OY)(e);return!n[r.fi]&&!n[s.mE]&&(b&&e[r.Jd](v),e[s.hL](i,t),!0)}),"processTelemetry",(function(){return{item:i}}),!i.sync)||o[r.uL](i)},unload:function(t,n){_(t,(function(){var i=!1;if(e){var o=(0,l.OY)(e),a=e[s.oV]||o[s.oV];!e||a&&a!==t.core()||o[r.fi]||(o[s.oV]=null,o[r.fi]=!0,o[r.yl]=!1,e[r.fi]&&!0===e[r.fi](t,n)&&(i=!0))}return i}),"unload",(function(){}),n[r.d])||t[r.uL](n)},update:function(t,n){_(t,(function(){var i=!1;if(e){var o=(0,l.OY)(e),a=e[s.oV]||o[s.oV];!e||a&&a!==t.core()||o[r.fi]||e[r.Tu]&&!0===e[r.Tu](t,n)&&(i=!0)}return i}),"update",(function(){}),!1)||t[r.uL](n)},_id:h=e?e[r.pZ]+"-"+e[s.yi]+"-"+f++:"Unknown-0-"+f++,_setNext:function(e){v=e}};function _(t,n,a,l,d){var f=!1,m=e?e[r.pZ]:u,g=t[p];return g||(g=t[p]={}),t.setNext(v),e&&(0,c.Lm)(t[s.oV](),(function(){return m+":"+a}),(function(){g[h]=!0;try{var e=v?v._id:s.qS;e&&(g[e]=!1),f=n(t)}catch(e){var c=!v||g[v._id];c&&(f=!0),v&&c||(0,i.kP)(t[r.mc](),1,73,"Plugin ["+m+"] failed during "+a+" - "+(0,o.eU)(e)+", run flags: "+(0,o.eU)(g))}}),l,d),f}return(0,a.FL)(y)}(e,t,n);v||(v=b),y&&y._setNext(b),y=b}}))}return h&&!v?b([h],t,n):v}var y=function(e,t,n,r){var i=m(e,t,n,r);(0,a.Vb)(this,i,(0,a.FY)(i))}},395:(e,t,n)=>{"use strict";n.d(t,{CN:()=>v,F6:()=>g,_l:()=>m,az:()=>h,pZ:()=>b});var r=n(6474),i=n(1167),o=n(3161),a=n(9556),s=4294967296,c=4294967295,l=!1,u=123456789,p=987654321;function d(e){e<0&&(e>>>=0),u=123456789+e&c,p=987654321-e&c,l=!0}function f(){try{var e=2147483647&(0,o.m6)();d((Math.random()*s^e)+e)}catch(e){}}function h(e){return e>0?Math.floor(m()/c*(e+1))>>>0:0}function m(e){var t=0,n=(0,i.MX)()||(0,i.gz)();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&c),0===t&&(0,i.w1)()&&(l||f(),t=g()&c),0===t&&(t=Math.floor(s*Math.random()|0)),e||(t>>>=0),t}function v(e){e?d(e):f()}function g(e){var t=((p=36969*(65535&p)+(p>>16)&c)<<16)+(65535&(u=18e3*(65535&u)+(u>>16)&c))>>>0&c|0;return e||(t>>>=0),t}function b(e){void 0===e&&(e=22);for(var t=m()>>>0,n=0,i=a.qS;i[r.R5]<e;)n++,i+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(m()<<2&4294967295|3&t)>>>0,n=0);return i}},3656:(e,t,n)=>{"use strict";n.d(t,{AA:()=>p,HD:()=>d,OY:()=>l,Yn:()=>f,bP:()=>u});var r=n(6474),i=n(8530),o=n(3161),a=n(9556),s=n(1579),c=(0,i.K)("plugin");function l(e){return c.get(e,"state",{},!0)}function u(e,t){for(var n,i=[],s=null,c=e[r.W2]();c;){var u=c[r.TO]();u&&(s&&(0,o.mf)(s[r.Jd])&&(0,o.mf)(u[a.hL])&&s[r.Jd](u),((0,o.mf)(u[r.yl])?u[r.yl]():(n=l(u))[r.yl])||i[r.MW](u),s=u,c=c[r.W2]())}(0,o.tO)(i,(function(i){var o=e[a.oV]();i[r.VL](e.getCfg(),o,t,e[r.W2]()),n=l(i),i[a.oV]||n[a.oV]||(n[a.oV]=o),n[r.yl]=!0,delete n[r.fi]}))}function p(e){return e.sort((function(e,t){var n=0;if(t){var r=(0,o.mf)(t[a.hL]);(0,o.mf)(e[a.hL])?n=r?e[a.yi]-t[a.yi]:1:r&&(n=-1)}else n=e?1:-1;return n}))}function d(e,t,n,i){var a=0;return function i(){for(;a<e[r.R5];){var s=e[a++];if(s){var c=s._doUnload||s[r.F3];if((0,o.mf)(c)&&!0===c[r._S](s,t,n,i))return!0}}}()}function f(e){var t={};return{getName:function(){return t[r.I]},setName:function(n){e&&e.setName(n),t[r.I]=n},getTraceId:function(){return t[r.nY]},setTraceId:function(n){e&&e.setTraceId(n),(0,s.jN)(n)&&(t[r.nY]=n)},getSpanId:function(){return t[r._d]},setSpanId:function(n){e&&e.setSpanId(n),(0,s.Lc)(n)&&(t[r._d]=n)},getTraceFlags:function(){return t[r.T0]},setTraceFlags:function(n){e&&e.setTraceFlags(n),t[r.T0]=n}}}},6930:(e,t,n)=>{"use strict";n.d(t,{Y:()=>s});var r=n(6474),i=n(4300),o=n(1167),a=n(3161);function s(){var e=[];return{add:function(t){t&&e[r.MW](t)},run:function(t,n){(0,a.tO)(e,(function(e){try{e(t,n)}catch(e){(0,i.kP)(t[r.mc](),2,73,"Unexpected error calling unload handler - "+(0,o.eU)(e))}})),e=[]}}}},1579:(e,t,n)=>{"use strict";n.d(t,{J6:()=>_,Lc:()=>y,Pn:()=>x,SU:()=>v,aR:()=>w,jN:()=>b,j_:()=>g,lq:()=>E});var r=n(6474),i=n(821),o=n(1167),a=n(3161),s=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]*)?$/,c="00",l="ff",u="00000000000000000000000000000000",p="0000000000000000",d=1;function f(e,t,n){return!(!e||e[r.R5]!==t||e===n||!e.match(/^[\da-f]*$/))}function h(e,t,n){return f(e,t)?e:n}function m(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[r.R5]<2;)t="0"+t;return t}function v(e,t,n,o){var a;return(a={})[r.PA]=f(o,2,l)?o:c,a[r.nY]=b(e)?e:(0,i.DO)(),a.spanId=y(t)?t:(0,i.DO)()[r.Jn](0,16),a.traceFlags=n>=0&&n<=255?n:1,a}function g(e){var t;if(!e)return null;if((0,a.kJ)(e)&&(e=e[0]||""),!e||!(0,a.HD)(e)||e[r.R5]>8192)return null;var n=s.exec((0,a.nd)(e));return n&&n[1]!==l&&n[2]!==u&&n[3]!==p?((t={})[r.PA]=n[1],t[r.nY]=n[2],t[r._d]=n[3],t[r.T0]=parseInt(n[4],16),t):null}function b(e){return f(e,32,u)}function y(e){return f(e,16,p)}function _(e){return!!(e&&f(e[r.PA],2,l)&&f(e[r.nY],32,u)&&f(e[r._d],16,p)&&f(m(e[r.T0]),2))}function x(e){return!!_(e)&&(e[r.T0]&d)===d}function w(e){if(e){var t=m(e[r.T0]);f(t,2)||(t="01");var n=e[r.PA]||c;return"00"!==n&&"ff"!==n&&(n=c),"".concat(n,"-").concat(h(e.traceId,32,u),"-").concat(h(e.spanId,16,p),"-").concat(t)}return""}function E(){var e="traceparent",t=g((0,o.ed)(e));return t||(t=g((0,o.pI)(e))),t}},6474:(e,t,n)=>{"use strict";n.d(t,{$h:()=>V,F3:()=>I,Fc:()=>y,Fr:()=>H,Gc:()=>S,I:()=>i,Jd:()=>R,Jn:()=>B,Km:()=>ee,Kn:()=>K,LS:()=>b,Lk:()=>k,MW:()=>s,P6:()=>Q,PA:()=>ie,PL:()=>Y,R5:()=>d,SD:()=>m,T:()=>J,T0:()=>re,T1:()=>$,TC:()=>l,TO:()=>_,Tu:()=>P,VL:()=>r,W2:()=>O,ZV:()=>U,Z_:()=>f,_S:()=>W,_d:()=>ne,cb:()=>E,d:()=>C,dE:()=>X,eZ:()=>p,fi:()=>A,g:()=>v,gU:()=>T,i7:()=>q,iC:()=>w,jk:()=>G,kL:()=>x,mc:()=>N,n7:()=>g,nY:()=>te,ou:()=>L,p$:()=>u,pZ:()=>a,qV:()=>M,tb:()=>o,uL:()=>h,w6:()=>z,wu:()=>Z,xv:()=>F,yl:()=>c,zV:()=>D,zc:()=>j});var r="initialize",i="name",o="getNotifyMgr",a="identifier",s="push",c="isInitialized",l="config",u="instrumentationKey",p="logger",d="length",f="time",h="processNext",m="getProcessTelContext",v="addNotificationListener",g="removeNotificationListener",b="stopPollingInternalLogs",y="onComplete",_="getPlugin",x="flush",w="_extensions",E="splice",A="teardown",S="messageId",T="message",C="isAsync",I="_doTeardown",P="update",O="getNext",N="diagLog",R="setNextPlugin",D="createNew",k="cookieCfg",L="indexOf",j="substring",M="userAgent",z="split",V="setEnabled",B="substr",F="nodeType",U="apply",q="replace",H="enableDebugExceptions",G="logInternalMessage",$="toLowerCase",W="call",Q="type",K="handler",X="listeners",Y="isChildEvt",J="getCtx",Z="setCtx",ee="complete",te="traceId",ne="spanId",re="traceFlags",ie="version"},4719:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppInsightsCore:()=>o.F,BaseCore:()=>a.A,BaseTelemetryPlugin:()=>s.i,CoreUtils:()=>l.Tr,DiagnosticLogger:()=>b.AQ,EventHelper:()=>l.zB,EventsDiscardedReason:()=>i.h,InstrumentEvent:()=>D,InstrumentFunc:()=>N,InstrumentFuncs:()=>R,InstrumentProto:()=>I,InstrumentProtos:()=>P,LoggingSeverity:()=>x.X,MinChannelPriorty:()=>r.p,NotificationManager:()=>v.f,PerfEvent:()=>g.zn,PerfManager:()=>g.Jk,ProcessTelemetryContext:()=>y.Vi,Undefined:()=>l.Px,_InternalLogMessage:()=>b.lQ,_InternalMessageId:()=>x.v,__getRegisteredEvents:()=>d.um,_legacyCookieMgr:()=>l.pP,_logInternalMessage:()=>b.L4,_throwInternal:()=>b.kP,_warnToConsole:()=>b.jV,addEventHandler:()=>d.Ib,addEventListeners:()=>d.yw,addPageHideEventListener:()=>d.TJ,addPageShowEventListener:()=>d.nD,addPageUnloadEventListener:()=>d.c9,areCookiesSupported:()=>k.p7,arrForEach:()=>u.tO,arrIndexOf:()=>u.UA,arrMap:()=>u.Mr,arrReduce:()=>u.Xz,attachEvent:()=>d.pZ,canUseCookies:()=>l.vn,createClassFromInterface:()=>u.hl,createCookieMgr:()=>k.Nz,createCustomDomEvent:()=>f.Nd,createEnumMap:()=>p.uj,createEnumStyle:()=>p.By,createProcessTelemetryContext:()=>y.CD,createTraceParent:()=>z.SU,createUniqueNamespace:()=>j.J,createUnloadHandlerContainer:()=>M.Y,createValueMap:()=>p.cc,dateNow:()=>u.m6,deepFreeze:()=>u._A,deleteCookie:()=>l.kT,detachEvent:()=>d.pD,disableCookies:()=>l.oF,dispatchEvent:()=>f.Nu,doPerf:()=>g.Lm,dumpObj:()=>f.eU,eventOff:()=>d.QY,eventOn:()=>d.XO,findMetaTag:()=>f.ed,findNamedServerTiming:()=>f.pI,findW3cTraceParent:()=>z.lq,formatTraceParent:()=>z.aR,generateW3CId:()=>l.DO,getConsole:()=>f.dr,getCookie:()=>l.ej,getCrypto:()=>f.MX,getDebugExt:()=>L.j,getDebugListener:()=>L.p,getDocument:()=>f.Me,getExceptionName:()=>u.jj,getGblPerfMgr:()=>g.j5,getGlobal:()=>h.Rd,getGlobalInst:()=>f.a8,getHistory:()=>f.s1,getIEVersion:()=>f.sA,getJSON:()=>f.xA,getLocation:()=>f.k$,getMsCrypto:()=>f.gz,getNavigator:()=>f.jW,getPerformance:()=>f.r,getSetValue:()=>u.qK,getWindow:()=>f.Jj,hasDocument:()=>f.Nv,hasHistory:()=>f.fE,hasJSON:()=>f.nS,hasNavigator:()=>f.d6,hasOwnProperty:()=>u.nr,hasWindow:()=>f.Ym,initializePlugins:()=>_.bP,isArray:()=>u.kJ,isBeaconsSupported:()=>f.MF,isBoolean:()=>u.jn,isDate:()=>u.J_,isError:()=>u.VZ,isFetchSupported:()=>f.JO,isFunction:()=>u.mf,isIE:()=>f.w1,isNotNullOrUndefined:()=>u.BX,isNotTruthy:()=>u.F,isNotUndefined:()=>u.pT,isNullOrUndefined:()=>u.le,isNumber:()=>u.hj,isObject:()=>u.Kn,isPlainObject:()=>u.PO,isReactNative:()=>f.b$,isSafari:()=>f.G6,isSampledFlag:()=>z.Pn,isString:()=>u.HD,isSymbol:()=>u.yk,isTruthy:()=>u.fQ,isTypeof:()=>u.Ym,isUndefined:()=>u.o8,isValidSpanId:()=>z.Lc,isValidTraceId:()=>z.jN,isValidTraceParent:()=>z.J6,isXhrSupported:()=>f.Z3,mergeEvtNamespace:()=>d.jU,mwcRandom32:()=>c.F6,mwcRandomSeed:()=>c.CN,newGuid:()=>l.GW,newId:()=>c.pZ,normalizeJsName:()=>u.Gf,objCreate:()=>h.pu,objDefineAccessors:()=>u.l_,objExtend:()=>u.mm,objForEachKey:()=>u.rW,objFreeze:()=>u.FL,objKeys:()=>u.FY,objSeal:()=>u.Xi,objToString:()=>u.Mu,optimizeObject:()=>u.Ax,parseTraceParent:()=>z.j_,perfNow:()=>l.Jj,proxyAssign:()=>u.cf,proxyFunctionAs:()=>u.Oi,proxyFunctions:()=>u.Vb,random32:()=>c._l,randomValue:()=>c.az,removeEventHandler:()=>d.C1,removeEventListeners:()=>d.nJ,removePageHideEventListener:()=>d.C9,removePageShowEventListener:()=>d.Yl,removePageUnloadEventListener:()=>d.JA,safeGetCookieMgr:()=>k.JP,safeGetLogger:()=>b.vH,sendCustomEvent:()=>f.Kf,setCookie:()=>l.d8,setEnableEnvMocks:()=>f.dI,setGblPerfMgr:()=>g.tQ,setValue:()=>u.sO,sortPlugins:()=>_.AA,strContains:()=>u._Q,strEndsWith:()=>u.Id,strFunction:()=>m.cb,strObject:()=>m.fK,strPrototype:()=>m.hB,strStartsWith:()=>u.xe,strTrim:()=>u.nd,strUndefined:()=>m.jA,throwError:()=>u._y,toISOString:()=>u.Y6,uaDisallowsSameSiteNone:()=>k.UY,unloadComponents:()=>_.HD,useXDomainRequest:()=>f.cp});var r=n(978),i=n(4641),o=n(8176),a=n(4770),s=n(1549),c=n(395),l=n(821),u=n(3161),p=n(1785),d=n(1318),f=n(1167),h=n(8785),m=n(2589),v=n(6329),g=n(2753),b=n(4300),y=n(877),_=n(3656),x=n(8712),w=n(6474),E="_aiHooks",A=["req","rsp","hkErr","fnErr"];function S(e,t){if(e)for(var n=0;n<e[w.R5]&&!t(e[n],n);n++);}function T(e,t,n,r,i){i>=0&&i<=2&&S(e,(function(e,o){var a=e.cbks,s=a[A[i]];if(s){t.ctx=function(){return r[o]=r[o]||{}};try{s[w.ZV](t.inst,n)}catch(e){var c=t.err;try{var l=a[A[2]];l&&(t.err=e,l[w.ZV](t.inst,n))}catch(e){}finally{t.err=c}}}}))}function C(e,t,n,r){var i=null;return e&&((0,u.nr)(e,t)?i=e:n&&(i=C((0,u.Hb)(e),t,r,!1))),i}function I(e,t,n){return e?N(e[m.hB],t,n,!1):null}function P(e,t,n){return e?R(e[m.hB],t,n,!1):null}function O(e,t,n,r){var i=n&&n[E];if(!i){var o=function(e){return function(){var t,n=arguments,r=e.h,i=((t={})[w.I]=e.n,t.inst=this,t.ctx=null,t.set=function(e,t){(n=s([],n))[e]=t,a=s([i],n)},t),o=[],a=s([i],n);function s(e,t){return S(t,(function(t){e[w.MW](t)})),e}i.evt=(0,f.a8)("event"),T(r,i,a,o,0);var c=e.f;if(c)try{i.rslt=c[w.ZV](this,n)}catch(e){throw i.err=e,T(r,i,a,o,3),e}return T(r,i,a,o,1),i.rslt}}(i={i:0,n:t,f:n,h:[]});o[E]=i,e[t]=o}var a={id:i.i,cbks:r,rm:function(){var e=this.id;S(i.h,(function(t,n){if(t.id===e)return i.h[w.cb](n,1),1}))}};return i.i++,i.h[w.MW](a),a}function N(e,t,n,r,i){if(void 0===r&&(r=!0),e&&t&&n){var o=C(e,t,r,i);if(o){var a=o[t];if(typeof a===m.cb)return O(o,t,a,n)}}return null}function R(e,t,n,r,i){void 0===r&&(r=!0);var o=null;return S(t,(function(t){var a=N(e,t,n,r,i);a&&(o||(o=[]),o[w.MW](a))})),o}function D(e,t,n,r,i){if(e&&t&&n){var o=C(e,t,r,i)||e;if(o)return O(o,t,o[t],n)}return null}var k=n(8589),L=n(7485),j=n(8530),M=n(6930),z=n(1579)},9798:(e,t,n)=>{"use strict";var r;n.d(t,{Z:()=>z});var i,o="undefined",a="constructor",s="prototype",c="function",l="_dynInstFuncs",u="_isDynProxy",p="_dynClass",d="_dynCls$",f="_dynInstChk",h=f,m="_dfOpts",v="_unknown_",g="__proto__",b="_dyn"+g,y="__dynProto$Gbl",_="_dynInstProto",x="useBaseInst",w="setInstFuncs",E=Object,A=E.getPrototypeOf,S=E.getOwnPropertyNames,T=(typeof globalThis!==o&&(i=globalThis),i||typeof self===o||(i=self),i||typeof window===o||(i=window),i||typeof global===o||(i=global),i||{}),C=T[y]||(T[y]={o:(r={},r[w]=!0,r[x]=!0,r),n:1e3});function I(e,t){return e&&E[s].hasOwnProperty.call(e,t)}function P(e){return e&&(e===E[s]||e===Array[s])}function O(e){return P(e)||e===Function[s]}function N(e){var t;if(e){if(A)return A(e);var n=e[g]||e[s]||(e[a]?e[a][s]:null);t=e[b]||n,I(e,b)||(delete e[_],t=e[b]=e[_]||e[b],e[_]=n)}return t}function R(e,t){var n=[];if(S)n=S(e);else for(var r in e)"string"==typeof r&&I(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function D(e,t,n){return t!==a&&typeof e[t]===c&&(n||I(e,t))}function k(e){throw new TypeError("DynamicProto: "+e)}function L(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function j(e,t,n,r,i){if(!P(e)){var o=n[l]=n[l]||{},a=o[t]=o[t]||{};!1!==o[h]&&(o[h]=!!i),R(n,(function(t){D(n,t,!1)&&n[t]!==r[t]&&(a[t]=n[t],delete n[t],(!I(e,t)||e[t]&&!e[t][u])&&(e[t]=function(e,t){var n=function(){var r=function(e,t,n,r){var i=null;if(e&&I(n,p)){var o=e[l]||{};if((i=(o[n[p]]||{})[t])||k("Missing ["+t+"] "+c),!i[f]&&!1!==o[h]){for(var a=!I(e,t),s=N(e),u=[];a&&s&&!O(s)&&!L(u,s);){var d=s[t];if(d){a=d===r;break}u.push(s),s=N(s)}try{a&&(e[t]=i),i[f]=1}catch(e){o[h]=!1}}}return i}(this,t,e,n)||function(e,t,n){var r=t[e];return r===n&&(r=N(t)[e]),typeof r!==c&&k("["+e+"] is not a "+c),r}(t,e,n);return r.apply(this,arguments)};return n[u]=1,n}(e,t)))}))}}function M(e,t){return I(e,s)?e.name||t||v:((e||{})[a]||{}).name||t||v}function z(e,t,n,r){I(e,s)||k("theClass is an invalid class definition.");var i=e[s];(function(e,t){if(A){for(var n=[],r=N(t);r&&!O(r)&&!L(n,r);){if(r===e)return!0;n.push(r),r=N(r)}return!1}return!0})(i,t)||k("["+M(e)+"] not in hierarchy of ["+M(t)+"]");var o=null;I(i,p)?o=i[p]:(o=d+M(e,"_")+"$"+C.n,C.n++,i[p]=o);var a=z[m],c=!!a[x];c&&r&&void 0!==r[x]&&(c=!!r[x]);var f=function(e){var t={};return R(e,(function(n){!t[n]&&D(e,n,!1)&&(t[n]=e[n])})),t}(t),v=function(e,t,n,r){function i(e,t,n){var i=t[n];if(i[u]&&r){var o=e[l]||{};!1!==o[h]&&(i=(o[t[p]]||{})[n]||i)}return function(){return i.apply(e,arguments)}}var o={};R(n,(function(e){o[e]=i(t,n,e)}));for(var a=N(e),s=[];a&&!O(a)&&!L(s,a);)R(a,(function(e){!o[e]&&D(a,e,!A)&&(o[e]=i(t,a,e))})),s.push(a),a=N(a);return o}(i,t,f,c);n(t,v);var g=!!A&&!!a[w];g&&r&&(g=!!r[w]),j(i,o,t,f,!1!==g)}z[m]=C.o},2589:(e,t,n)=>{"use strict";n.d(t,{CY:()=>h,Pw:()=>l,RJ:()=>f,V4:()=>u,ak:()=>c,bO:()=>s,cb:()=>r,fK:()=>i,hB:()=>a,jA:()=>o,rl:()=>p,yu:()=>d});var r="function",i="object",o="undefined",a="prototype",s="hasOwnProperty",c="default",l=Object,u=l[a],p=l.assign,d=l.create,f=l.defineProperty,h=u[s]},8785:(e,t,n)=>{"use strict";n.d(t,{Rd:()=>o,ZU:()=>a,pu:()=>s});var r=n(2589),i=null;function o(e){void 0===e&&(e=!0);var t=!1===e?null:i;return t||(typeof globalThis!==r.jA&&(t=globalThis),t||typeof self===r.jA||(t=self),t||typeof window===r.jA||(t=window),t||typeof global===r.jA||(t=global),i=t),t}function a(e){throw new TypeError(e)}function s(e){var t=r.yu;if(t)return t(e);if(null==e)return{};var n=typeof e;function i(){}return n!==r.fK&&n!==r.cb&&a("Object prototype may only be an Object:"+e),i[r.hB]=e,new i}},3298:(e,t,n)=>{"use strict";n.d(t,{$h:()=>A,Cj:()=>x,DJ:()=>y,EU:()=>b,KG:()=>T,Lv:()=>m,V0:()=>g,an:()=>_,hw:()=>S,i9:()=>w,l9:()=>v,m:()=>C,ne:()=>h,uc:()=>d,zg:()=>E});var r=n(2589),i=n(8785),o=((0,i.Rd)()||{}).Symbol,a=((0,i.Rd)()||{}).Reflect,s=!!a,c="decorate",l="metadata",u="getOwnPropertySymbols",p="iterator",d=r.rl||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])r.V4[r.bO].call(t,o)&&(e[o]=t[o]);return e},f=function(e,t){return f=r.Pw.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[r.bO](n)&&(e[n]=t[n])},f(e,t)};function h(e,t){function n(){this.constructor=e}typeof t!==r.cb&&null!==t&&(0,i.ZU)("Class extends value "+String(t)+" is not a constructor or null"),f(e,t),e[r.hB]=null===t?(0,i.pu)(t):(n[r.hB]=t[r.hB],new n)}function m(e,t){var n={};for(var i in e)r.CY.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&typeof r.Pw[u]===r.cb)for(var o=0,a=r.Pw[u](e);o<a.length;o++)t.indexOf(a[o])<0&&r.V4.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n}function v(e,t,n,i){var o,l=arguments.length,u=l<3?t:null===i?i=r.Pw.getOwnPropertyDescriptor(t,n):i;if(s&&typeof a[c]===r.cb)u=a[c](e,t,n,i);else for(var p=e.length-1;p>=0;p--)(o=e[p])&&(u=(l<3?o(u):l>3?o(t,n,u):o(t,n))||u);return l>3&&u&&(0,r.RJ)(t,n,u),u}function g(e,t){return function(n,r){t(n,r,e)}}function b(e,t){if(s&&a[l]===r.cb)return a[l](e,t)}function y(e,t){for(var n in e)n===r.ak||r.CY.call(t,n)||_(t,e,n)}function _(e,t,n,i){void 0===i&&(i=n),r.yu?(0,r.RJ)(e,i,{enumerable:!0,get:function(){return t[n]}}):e[i]=t[n]}function x(e){var t=typeof o===r.cb&&o[p],n=t&&e[t],a=0;return n?n.call(e):e&&"number"==typeof e.length?{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}}:void(0,i.ZU)(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(e,t){var n=typeof o===r.cb&&e[o[p]];if(!n)return e;var i,a,s=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)c.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return c}function E(){for(var e=arguments,t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;var i=Array(t),o=0;for(n=0;n<r;n++)for(var a=e[n],s=0,c=a.length;s<c;s++,o++)i[o]=a[s];return i}function A(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function S(e,t){return r.RJ?(0,r.RJ)(e,"raw",{value:t}):e.raw=t,e}function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)n!==r.ak&&Object.prototype.hasOwnProperty.call(e,n)&&_(t,e,n);return r.yu?(0,r.RJ)(t,r.ak,{enumerable:!0,value:e}):t[r.ak]=e,t}function C(e){return e&&e.__esModule?e:{strDefault:e}}},623:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ObjAssign:()=>r.rl,ObjClass:()=>r.Pw,ObjCreate:()=>r.yu,ObjDefineProperty:()=>r.RJ,ObjHasOwnProperty:()=>r.CY,ObjProto:()=>r.V4,__assignFn:()=>o.uc,__createBindingFn:()=>o.an,__decorateFn:()=>o.l9,__exportStarFn:()=>o.DJ,__exposeGlobalTsLib:()=>a,__extendsFn:()=>o.ne,__importDefaultFn:()=>o.m,__importStarFn:()=>o.KG,__makeTemplateObjectFn:()=>o.hw,__metadataFn:()=>o.EU,__paramFn:()=>o.V0,__readFn:()=>o.i9,__restFn:()=>o.Lv,__spreadArrayFn:()=>o.$h,__spreadArraysFn:()=>o.zg,__valuesFn:()=>o.Cj,getGlobal:()=>i.Rd,objCreateFn:()=>i.pu,strDefault:()=>r.ak,strShimFunction:()=>r.cb,strShimHasOwnProperty:()=>r.bO,strShimObject:()=>r.fK,strShimPrototype:()=>r.hB,strShimUndefined:()=>r.jA,throwTypeError:()=>i.ZU});var r=n(2589),i=n(8785),o=n(3298);function a(){var e,t,n,a,s=(0,i.Rd)()||{};e=s,t=o.uc,n=o.ne,a=o.an,e.__assign||(e.__assign=r.rl||t),e.__extends||(e.__extends=n),e.__createBinding||(e.__createBinding=a),__assign||(__assign=s.__assign),__extends||(__extends=s.__extends),__createBinding||(__createBinding=s.__createBinding)}},2314:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{default:()=>z});var i,o="undefined",a="constructor",s="prototype",c="function",l="_dynInstFuncs",u="_isDynProxy",p="_dynClass",d="_dynCls$",f="_dynInstChk",h=f,m="_dfOpts",v="_unknown_",g="__proto__",b="_dyn"+g,y="__dynProto$Gbl",_="_dynInstProto",x="useBaseInst",w="setInstFuncs",E=Object,A=E.getPrototypeOf,S=E.getOwnPropertyNames,T=(typeof globalThis!==o&&(i=globalThis),i||typeof self===o||(i=self),i||typeof window===o||(i=window),i||typeof global===o||(i=global),i||{}),C=T[y]||(T[y]={o:(r={},r[w]=!0,r[x]=!0,r),n:1e3});function I(e,t){return e&&E[s].hasOwnProperty.call(e,t)}function P(e){return e&&(e===E[s]||e===Array[s])}function O(e){return P(e)||e===Function[s]}function N(e){var t;if(e){if(A)return A(e);var n=e[g]||e[s]||(e[a]?e[a][s]:null);t=e[b]||n,I(e,b)||(delete e[_],t=e[b]=e[_]||e[b],e[_]=n)}return t}function R(e,t){var n=[];if(S)n=S(e);else for(var r in e)"string"==typeof r&&I(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function D(e,t,n){return t!==a&&typeof e[t]===c&&(n||I(e,t))}function k(e){throw new TypeError("DynamicProto: "+e)}function L(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function j(e,t,n,r,i){if(!P(e)){var o=n[l]=n[l]||{},a=o[t]=o[t]||{};!1!==o[h]&&(o[h]=!!i),R(n,(function(t){D(n,t,!1)&&n[t]!==r[t]&&(a[t]=n[t],delete n[t],(!I(e,t)||e[t]&&!e[t][u])&&(e[t]=function(e,t){var n=function(){var r=function(e,t,n,r){var i=null;if(e&&I(n,p)){var o=e[l]||{};if((i=(o[n[p]]||{})[t])||k("Missing ["+t+"] "+c),!i[f]&&!1!==o[h]){for(var a=!I(e,t),s=N(e),u=[];a&&s&&!O(s)&&!L(u,s);){var d=s[t];if(d){a=d===r;break}u.push(s),s=N(s)}try{a&&(e[t]=i),i[f]=1}catch(e){o[h]=!1}}}return i}(this,t,e,n)||function(e,t,n){var r=t[e];return r===n&&(r=N(t)[e]),typeof r!==c&&k("["+e+"] is not a "+c),r}(t,e,n);return r.apply(this,arguments)};return n[u]=1,n}(e,t)))}))}}function M(e,t){return I(e,s)?e.name||t||v:((e||{})[a]||{}).name||t||v}function z(e,t,n,r){I(e,s)||k("theClass is an invalid class definition.");var i=e[s];(function(e,t){if(A){for(var n=[],r=N(t);r&&!O(r)&&!L(n,r);){if(r===e)return!0;n.push(r),r=N(r)}return!1}return!0})(i,t)||k("["+M(e)+"] not in hierarchy of ["+M(t)+"]");var o=null;I(i,p)?o=i[p]:(o=d+M(e,"_")+"$"+C.n,C.n++,i[p]=o);var a=z[m],c=!!a[x];c&&r&&void 0!==r[x]&&(c=!!r[x]);var f=function(e){var t={};return R(e,(function(n){!t[n]&&D(e,n,!1)&&(t[n]=e[n])})),t}(t),v=function(e,t,n,r){function i(e,t,n){var i=t[n];if(i[u]&&r){var o=e[l]||{};!1!==o[h]&&(i=(o[t[p]]||{})[n]||i)}return function(){return i.apply(e,arguments)}}var o={};R(n,(function(e){o[e]=i(t,n,e)}));for(var a=N(e),s=[];a&&!O(a)&&!L(s,a);)R(a,(function(e){!o[e]&&D(a,e,!A)&&(o[e]=i(t,a,e))})),s.push(a),a=N(a);return o}(i,t,f,c);n(t,v);var g=!!A&&!!a[w];g&&r&&(g=!!r[w]),j(i,o,t,f,!1!==g)}z[m]=C.o},8630:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getExtensionApi=void 0;const r=n(6123),i=n(105);t.getExtensionApi=function(){return{registerOptionsSourceProvider:e=>i.optionsSourcesService.registerOptionsSourceProvider(e),registerValueProvider:e=>r.valueProviderService.registerValueProvider(e)}}},8271:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deepClone=t.tryExecuteAction=t.throwUnless=t.isUndefinedOrEmpty=t.setEnvironmentVariablesForInstallPaths=t.getRuntimeBinaryPathEnvironmentVariableName=t.getDateTimeString=t.isUserCancelledError=t.getErrorMessage=void 0;const r=n(1017),i=n(8129),o=n(1009);function a(e){return`${o.NoteBookEnvironmentVariablePrefix}${e.toUpperCase().replace(/ |-/g,"_")}`}t.getErrorMessage=function(e){return e instanceof Error?"string"==typeof e.message?e.message:"":"string"==typeof e?e:`${JSON.stringify(e,void 0,"\t")}`},t.isUserCancelledError=function(e){return e instanceof Error&&"type"in e&&0===e.type},t.getDateTimeString=function(){return(new Date).toISOString().slice(0,19).replace(/[^0-9]/g,"")},t.getRuntimeBinaryPathEnvironmentVariableName=a,t.setEnvironmentVariablesForInstallPaths=function(e,t=process.env){let n=new Set;if(e.forEach((e=>{if(e.installationPathOrAdditionalInformation){const i=a(e.name);t[i]=e.installationPathOrAdditionalInformation,n.add(r.dirname(e.installationPathOrAdditionalInformation))}})),n.size>0){const e=[...n.values()].join(r.delimiter);t[i.ToolsInstallPath]=e}},t.isUndefinedOrEmpty=function(e){return void 0===e||"string"==typeof e&&0===e.length},t.throwUnless=function(e,t){if(!e)throw new Error(t)},t.tryExecuteAction=async function(e){let t,n;try{n=await e()}catch(e){t=e}return{result:n,error:t}},t.deepClone=function e(t){if(!t||"object"!=typeof t)return t;if(t instanceof RegExp)return t;const n=Array.isArray(t)?[]:{};return Object.keys(t).forEach((r=>{t[r]&&"object"==typeof t[r]?n[r]=e(t[r]):n[r]=t[r]})),n}},8129:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolsInstallPath=t.AzdataInstallLocationKey=t.DeploymentConfigurationKey=void 0,t.DeploymentConfigurationKey="deployment",t.AzdataInstallLocationKey="azdataInstallLocation",t.ToolsInstallPath="AZDATA_NB_VAR_TOOLS_INSTALLATION_PATH"},1009:(e,t)=>{"use strict";var n,r,i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),t.ToolType=t.OsDistribution=t.OptionsType=t.FieldType=t.FontWeight=t.instanceOfDynamicOptionsInfo=t.instanceOfDynamicEnablementInfo=t.instanceOfCommandBasedDialogInfo=t.instanceOfNotebookBasedDialogInfo=t.instanceOfAzureSQLDBDeploymentProvider=t.instanceOfAzureSQLVMDeploymentProvider=t.instanceOfCommandDeploymentProvider=t.instanceOfDownloadDeploymentProvider=t.instanceOfWebPageDeploymentProvider=t.instanceOfNotebookDeploymentProvider=t.instanceOfNotebookWizardDeploymentProvider=t.instanceOfDialogDeploymentProvider=t.NoteBookEnvironmentVariablePrefix=void 0,t.NoteBookEnvironmentVariablePrefix="AZDATA_NB_VAR_",t.instanceOfDialogDeploymentProvider=function(e){return e&&"dialog"in e},t.instanceOfNotebookWizardDeploymentProvider=function(e){return e&&"notebookWizard"in e},t.instanceOfNotebookDeploymentProvider=function(e){return e&&"notebook"in e},t.instanceOfWebPageDeploymentProvider=function(e){return e&&"webPageUrl"in e},t.instanceOfDownloadDeploymentProvider=function(e){return e&&"downloadUrl"in e},t.instanceOfCommandDeploymentProvider=function(e){return e&&"command"in e},t.instanceOfAzureSQLVMDeploymentProvider=function(e){return e&&"azureSQLVMWizard"in e},t.instanceOfAzureSQLDBDeploymentProvider=function(e){return e&&"azureSQLDBWizard"in e},t.instanceOfNotebookBasedDialogInfo=function(e){return e&&"notebook"in e},t.instanceOfCommandBasedDialogInfo=function(e){return e&&"command"in e},t.instanceOfDynamicEnablementInfo=function(e){return void 0!==e?.target&&void 0!==e?.value},t.instanceOfDynamicOptionsInfo=function(e){return void 0!==e?.target&&void 0!==e?.alternates},function(e){e.Normal="normal",e.Bold="bold"}(n||(t.FontWeight=n={})),function(e){e.Text="text",e.Number="number",e.DateTimeText="datetime_text",e.SQLPassword="sql_password",e.Password="password",e.Options="options",e.ReadonlyText="readonly_text",e.Checkbox="checkbox",e.AzureAccount="azure_account",e.AzureLocations="azure_locations",e.FilePicker="file_picker",e.KubeClusterContextPicker="kube_cluster_context_picker",e.KubeStorageClass="kube_storage_class"}(r||(t.FieldType=r={})),function(e){e.Dropdown="dropdown",e.Radio="radio"}(i||(t.OptionsType=i={})),function(e){e.win32="win32",e.darwin="darwin",e.debian="debian",e.others="others"}(o||(t.OsDistribution=o={})),function(e){e[e.AzCli=0]="AzCli",e[e.KubeCtl=1]="KubeCtl",e[e.Docker=2]="Docker"}(a||(t.ToolType=a={}))},5760:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requiredVersionText=t.versionText=t.statusText=t.toolText=t.descriptionText=t.getResourceTypeCategoryLocalizedString=t.taskFailedWithNoOutputNotebook=t.backgroundExecutionFailed=t.failedToOpenNotebook=t.viewErrorDetail=t.deployNotebook=t.scriptToNotebook=t.multipleValidationErrors=t.resourceTypeCategoryListViewTitle=t.resourceTypeSearchBoxDescription=t.resourceTypePickerDialogTitle=t.unknownExtension=t.installingExtension=t.install=t.extensionRequiredPrompt=t.acceptEulaAndSelect=t.azdataEulaDeclined=t.azdataEulaNotAccepted=t.optionsTypeRadioOrDropdown=t.optionsTypeNotFound=t.optionsNotObjectOrArray=t.optionsNotDefined=t.isPasswordFetchForUnsupportedVariable=t.variableValueFetchForUnsupportedVariable=t.noValueProviderDefined=t.noOptionsSourceDefined=t.valueProviderAlreadyDefined=t.optionsSourceAlreadyDefined=t.unknownFieldTypeError=t.realm=t.NewResourceGroupAriaLabel=t.createNewResourceGroup=t.no=t.yes=t.refresh=t.signIn=t.clusterContextNotFound=t.kubeConfigFilePath=t.select=t.browse=t.location=t.resourceGroup=t.subscriptionDescription=t.subscription=t.account=void 0,t.getToolInstallingMessage=t.optionsText=t.installToolsText=t.requiredToolsText=t.discoverPathOrAdditionalInformationText=void 0;const r=n(2037),i=n(3403),o=n(8271),a=n(1009),s=i.loadMessageBundle(n(1017).join(__dirname,"localizedConstants.ts"));t.account=s(0,null),t.subscription=s(1,null),t.subscriptionDescription=s(2,null),t.resourceGroup=s(3,null),t.location=s(4,null),t.browse=s(5,null),t.select=s(6,null),t.kubeConfigFilePath=s(7,null),t.clusterContextNotFound=s(8,null),t.signIn=s(9,null),t.refresh=s(10,null),t.yes=s(11,null),t.no=s(12,null),t.createNewResourceGroup=s(13,null),t.NewResourceGroupAriaLabel=s(14,null),t.realm=s(15,null),t.unknownFieldTypeError=e=>s(16,null,e),t.optionsSourceAlreadyDefined=e=>s(17,null,e),t.valueProviderAlreadyDefined=e=>s(18,null,e),t.noOptionsSourceDefined=e=>s(19,null,e),t.noValueProviderDefined=e=>s(20,null,e),t.variableValueFetchForUnsupportedVariable=e=>s(21,null,e),t.isPasswordFetchForUnsupportedVariable=e=>s(22,null,e),t.optionsNotDefined=e=>s(23,null,e),t.optionsNotObjectOrArray=s(24,null),t.optionsTypeNotFound=s(25,null),t.optionsTypeRadioOrDropdown=s(26,null,a.OptionsType.Radio,a.OptionsType.Dropdown),t.azdataEulaNotAccepted=s(27,null),t.azdataEulaDeclined=s(28,null),t.acceptEulaAndSelect=s(29,null),t.extensionRequiredPrompt=e=>s(30,null,e),t.install=s(31,null),t.installingExtension=e=>s(32,null,e),t.unknownExtension=e=>s(33,null,e),t.resourceTypePickerDialogTitle=s(34,null),t.resourceTypeSearchBoxDescription=s(35,null),t.resourceTypeCategoryListViewTitle=s(36,null),t.multipleValidationErrors=s(37,null),t.scriptToNotebook=s(38,null),t.deployNotebook=s(39,null),t.viewErrorDetail=s(40,null),t.failedToOpenNotebook=e=>s(41,null,r.EOL,(0,o.getErrorMessage)(e)),t.backgroundExecutionFailed=e=>s(42,null,e),t.taskFailedWithNoOutputNotebook=e=>s(43,null,e),t.getResourceTypeCategoryLocalizedString=function(e){switch(e){case"All":return s(44,null);case"On-premises":return s(45,null);case"SQL Server":return s(46,null);case"Hybrid":return s(47,null);case"PostgreSQL":return s(48,null);case"Cloud":return s(49,null);default:return e}},t.descriptionText=s(50,null),t.toolText=s(51,null),t.statusText=s(52,null),t.versionText=s(53,null),t.requiredVersionText=s(54,null),t.discoverPathOrAdditionalInformationText=s(55,null),t.requiredToolsText=s(56,null),t.installToolsText=s(57,null),t.optionsText=s(58,null),t.getToolInstallingMessage=function(e){return s(59,null,e.displayName,e.homePage)}},2288:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apiService=void 0;const r=n(9496);t.apiService=new class{constructor(){}get azurecoreApi(){return r.extensions.getExtension("Microsoft.azurecore")?.exports}get azApi(){return r.extensions.getExtension("Microsoft.azcli")?.exports}get arcApi(){return r.extensions.getExtension("Microsoft.arc")?.exports}}},5362:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultKubeConfigPath=t.getKubeConfigClusterContexts=t.KubeService=void 0;const r=n(1017),i=n(2037),o=n(5831),a=n(7147);async function s(e){try{await a.promises.access(e)}catch(e){if(e&&"ENOENT"===e.code)return[];throw e}const t=o.load(e),n=t.contexts,r=t["current-context"],i=[];return r&&n&&n.length>0&&n.forEach((e=>{const t=e.name;t&&i.push({name:t,isCurrentContext:t===r})})),i}function c(){return r.join(i.homedir(),".kube","config")}t.KubeService=class{getDefaultConfigPath(){return c()}getClusterContexts(e){return s(e)}},t.getKubeConfigClusterContexts=s,t.getDefaultKubeConfigPath=c},9455:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotebookService=void 0;const r=n(9072),i=n(1017),o=n(9496),a=n(3403),s=n(8271),c=n(5760),l=a.loadMessageBundle(n(1017).join(__dirname,"services/notebookService.ts"));t.NotebookService=class{constructor(e,t){this.platformService=e,this.extensionPath=t}async openNotebook(e){const t=await this.getNotebookFullPath(e);return await this.showNotebookAsUntitled(t)}async openNotebookWithEdits(e,t,n=0){const r=await this.openNotebook(e);return await r.edit((e=>{e.insertCell({cell_type:"code",source:t},n)})),r}async openNotebookWithContent(e,t){const n=o.Uri.parse(`untitled:${this.findNextUntitledEditorName(e)}`);return await r.nb.showNotebookDocument(n,{connectionProfile:void 0,preview:!1,initialContent:t,initialDirtyState:!1})}async getNotebook(e){const t=await this.getNotebookFullPath(e);return JSON.parse(await this.platformService.readTextFile(t))}async executeNotebook(e,t){const n=JSON.stringify(e,void 0,4),r=`nb-${(0,s.getDateTimeString)()}.ipynb`,o=this.platformService.storagePath(),a=i.join(o,r),c=i.join(o,`output-${r}`),l=t||{};l.ACCEPT_EULA="yes";try{return await this.platformService.saveTextFile(n,a),await this.platformService.runCommand(`azdata notebook run --path "${a}" --output-path "${o}" --timeout -1`,{additionalEnvironmentVariables:l,workingDirectory:o}),{succeeded:!0}}catch(e){return{succeeded:!1,outputNotebook:await this.platformService.fileExists(c)?await this.platformService.readTextFile(c):void 0,errorMessage:(0,s.getErrorMessage)(e)}}finally{this.platformService.deleteFile(a),this.platformService.deleteFile(c)}}backgroundExecuteNotebook(e="Executing notebook",t,n,i,a){r.tasks.startBackgroundOperation({displayName:e,description:e,isCancelable:!1,operation:async l=>{l.updateStatus(r.TaskStatus.InProgress);const u="object"==typeof t&&"cells"in t?t:await this.getNotebook(t),p=await this.executeNotebook(u,a);if(p.succeeded)l.updateStatus(r.TaskStatus.Succeeded);else if(l.updateStatus(r.TaskStatus.Failed,p.errorMessage),p.outputNotebook){const t=c.backgroundExecutionFailed(e),r=await o.window.showErrorMessage(t,c.viewErrorDetail);if(i.logToOutputChannel(t),r===c.viewErrorDetail)try{await this.openNotebookWithContent(`${n}-${(0,s.getDateTimeString)()}`,p.outputNotebook)}catch(e){const t=c.failedToOpenNotebook(e);i.logToOutputChannel(t),o.window.showErrorMessage(t)}}else{const t=c.taskFailedWithNoOutputNotebook(e);i.logToOutputChannel(t),o.window.showErrorMessage(t)}}})}async getNotebookFullPath(e){const t=this.getNotebookPath(e);let n=await this.platformService.fileExists(t);if(n)return t;const r=i.join(this.extensionPath,t);if(n=await this.platformService.fileExists(r),n)return r;throw new Error(l(0,null,t))}getNotebookPath(e){let t;if(e&&"string"!=typeof e){const n=this.platformService.platform();t="win32"===n?e.win32:"darwin"===n?e.darwin:e.linux}else t=e;return t}findNextUntitledEditorName(e){const t=i.extname(e),n=i.basename(e,t);let r=0,o=`${n}`;do{o=`${n}${0===r?"":`-${r}`}`,r++}while(this.platformService.isNotebookNameUsed(o));return o}async showNotebookAsUntitled(e){let t=this.findNextUntitledEditorName(e);const n=o.Uri.parse(`untitled:${t}`);let i=(await o.workspace.openTextDocument(e)).getText();return await r.nb.showNotebookDocument(n,{connectionProfile:void 0,preview:!1,initialContent:i,initialDirtyState:!1})}}},105:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optionsSourcesService=void 0;const r=n(9496),i=n(5760);t.optionsSourcesService=new class{constructor(){this._optionsSourceStore=new Map}registerOptionsSourceProvider(e){if(this._optionsSourceStore.has(e.id))throw new Error(i.optionsSourceAlreadyDefined(e.id));return this._optionsSourceStore.set(e.id,e),{dispose:()=>this.unregisterOptionsSourceProvider(e.id)}}unregisterOptionsSourceProvider(e){this._optionsSourceStore.delete(e)}async getOptionsSource(e){let t=this._optionsSourceStore.get(e);if(void 0===t){const n=r.extensions.all.find((t=>!!t.packageJSON.contributes?.resourceDeploymentOptionsSources?.find((t=>t.id===e))));if(n&&await n.activate(),t=this._optionsSourceStore.get(e),void 0===t)throw new Error(i.noOptionsSourceDefined(e))}return t}}},3725:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlatformService=t.extensionOutputChannel=void 0;const r=n(9072),i=n(7147),o=n(1636),a=n(5495),s=n(7012),c=n(9496),l=n(3403),u=n(1009),p=n(8271),d=l.loadMessageBundle(n(1017).join(__dirname,"services/platformService.ts"));t.extensionOutputChannel=d(0,null),t.PlatformService=class{constructor(e){this._storagePath=e,this._outputChannel=c.window.createOutputChannel(t.extensionOutputChannel),this._osDistribution=this.getOsDistribution(),this._initializationEnsurer=this.ensureDirectoryExists(e)}async initialize(){await this._initializationEnsurer}storagePath(){return this._storagePath}platform(){return process.platform}outputChannelName(){return this._outputChannel.name}showOutputChannel(e){this._outputChannel.show(e)}osDistribution(){return this._osDistribution}getOsDistribution(){const e=o({mode:"sync"}),t=e.id_like||e.id||e.platform;return Object.values(u.OsDistribution).includes(t)?t:u.OsDistribution.others}async copyFile(e,t){return await i.promises.copyFile(e,t)}async fileExists(e){try{return await i.promises.access(e),!0}catch(e){if(e&&"ENOENT"===e.code)return!1;throw e}}openFile(e){c.commands.executeCommand("vscode.open",c.Uri.file(e))}showErrorMessage(e){c.window.showErrorMessage((0,p.getErrorMessage)(e))}isNotebookNameUsed(e){return r.nb.notebookDocuments.findIndex((t=>t.isUntitled&&t.fileName===e))>-1&&c.workspace.textDocuments.findIndex((t=>t.isUntitled&&t.fileName===e))>-1}async makeDirectory(e){await i.promises.mkdir(e)}async ensureDirectoryExists(e){await this.fileExists(e)||await this.makeDirectory(e)}async readTextFile(e){return await i.promises.readFile(e,"utf8")}logToOutputChannel(e,t){e.toString().split(/\r?\n/).forEach((e=>{this._outputChannel.appendLine(t?t+e:e)}))}outputDataChunk(e,t,n){e.toString().split(/\r?\n/).forEach((e=>{t.appendLine(n+e)}))}async runCommand(e,t){t&&void 0!==t.commandTitle&&null!==t.commandTitle&&this._outputChannel.appendLine(`\t[ ${t.commandTitle} ]`);try{return t&&t.sudo?await this.runSudoCommand(e,this._outputChannel,t):await this.runStreamedCommand(e,this._outputChannel,t)}catch(n){if(this._outputChannel.append(d(1,null,e,(0,p.getErrorMessage)(n))),t&&t.ignoreError)return this._outputChannel.append(d(2,null)),"";throw n}}sudoExec(e,t){return new Promise(((n,r)=>{s.exec(e,t,((e,t,i)=>{e?r(e):n({stdout:t,stderr:i})}))}))}async runSudoCommand(e,t,n){t.appendLine(`    sudo> ${e}`),n&&n.workingDirectory&&process.chdir(n.workingDirectory);const r=Object.assign({},process.env,n&&n.additionalEnvironmentVariables),i={};Object.keys(r).filter((e=>/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e))).forEach((e=>{i[e]=r[e]}));const o={name:"AzureDataStudio",env:i};try{const{stdout:n,stderr:r}=await this.sudoExec(e,o);return this.outputDataChunk(n,t,d(3,null)),this.outputDataChunk(r,t,d(4,null)),n}catch(e){throw this.outputDataChunk(e,t,d(5,null)),e}}async runStreamedCommand(e,t,n){const r=[];t.appendLine(`    > ${e}`);const i={cwd:n&&n.workingDirectory,env:Object.assign({},process.env,n&&n.additionalEnvironmentVariables),encoding:"utf8",maxBuffer:10485760,shell:!0,detached:!1,windowsHide:!0},o=a.spawn(e,[],i);return o.on("exit",((n,r)=>{null!==n?t.appendLine(d(6,null,e,n)):t.appendLine(d(7,null,e,r))})),o.stdout.on("data",(e=>{r.push(e.toString()),this.outputDataChunk(e,t,d(8,null))})),o.stderr.on("data",(e=>{this.outputDataChunk(e,t,d(9,null))})),await o,r.join("")}saveTextFile(e,t){return i.promises.writeFile(t,e,"utf8")}async deleteFile(e,t=!0){try{await this.fileExists(e)&&i.promises.unlink(e)}catch(e){if(!t)throw e;console.error("Error occurred deleting file: ",(0,p.getErrorMessage)(e))}}}},6877:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.processWhenClause=t.ResourceTypeService=void 0;const r=n(7147),i=n(5687),o=n(2037),a=n(1017),s=n(9496),c=n(3403),l=n(1009),u=n(5362),p=n(5760),d=n(6518),f=n(8271),h=c.loadMessageBundle(n(1017).join(__dirname,"services/resourceTypeService.ts"));async function m(e){try{return await r.promises.access(e),!0}catch(e){return!1}}function v(e,t){if(void 0===e||"true"===e.toString().toLowerCase())return!0;{const n=e.replace(/\s/g,"").split("&&").sort(),r=t.map((e=>`${e.option}=${e.value}`));for(let e of n)if(-1===r.indexOf(e))return!1;return!0}}t.ResourceTypeService=class{constructor(e,t,n){this.platformService=e,this.toolsService=t,this.notebookService=n,this._resourceTypes=[]}getResourceTypes(e=!0){let t=this._resourceTypes;return e&&(t=t.filter((e=>"string"==typeof e.platforms&&"*"===e.platforms||e.platforms.includes(this.platformService.platform())))),t}loadResourceTypes(){const e=[];s.extensions.all.forEach((t=>{const n=t.packageJSON.contributes?.resourceDeploymentTypes;n?.forEach(((n,r)=>{const i=(0,f.deepClone)(n);this.updatePathProperties(i,t.extensionPath),i.getProvider=e=>this.getProvider(i,e),i.getOkButtonText=e=>this.getOkButtonText(i,e),i.getAgreementInfo=e=>this.getAgreementInfo(i,e),i.getHelpText=e=>this.getHelpText(i,e),this.getResourceSubTypes(i);const o=this.validateResourceType(i,`resource type index: ${r}`);o.length>0?console.log(`Found errors validating resource type at index ${r} in extension ${t.id}\n${o.join("\n")}`):e.push(i)}))})),this._resourceTypes=e}updatePathProperties(e,t){"string"==typeof e.icon?e.icon=a.join(t,e.icon):(e.icon.dark=a.join(t,e.icon.dark),e.icon.light=a.join(t,e.icon.light)),e.providers.forEach((e=>{this.updateProviderPathProperties(e,t)}))}updateProviderPathProperties(e,t){(0,l.instanceOfNotebookDeploymentProvider)(e)?this.updateNotebookPath(e,t):(0,l.instanceOfDialogDeploymentProvider)(e)&&(0,l.instanceOfNotebookBasedDialogInfo)(e.dialog)?this.updateNotebookPath(e.dialog,t):"notebookWizard"in e?this.updateNotebookPath(e.notebookWizard,t):"azureSQLVMWizard"in e?this.updateNotebookPath(e.azureSQLVMWizard,t):"azureSQLDBWizard"in e&&this.updateNotebookPath(e.azureSQLDBWizard,t)}updateNotebookPath(e,t){e&&e.notebook&&("string"==typeof e.notebook?e.notebook=a.join(t,e.notebook):Array.isArray(e.notebook)?e.notebook.forEach((e=>{e.path=a.join(t,e.path)})):(e.notebook.darwin&&(e.notebook.darwin=a.join(t,e.notebook.darwin)),e.notebook.win32&&(e.notebook.darwin=a.join(t,e.notebook.win32)),e.notebook.linux&&(e.notebook=a.join(t,e.notebook.linux))))}getResourceSubTypes(e){s.extensions.all.forEach((t=>{const n=t.packageJSON.contributes?.resourceDeploymentSubTypes;n?.forEach((n=>{const r=(0,f.deepClone)(n);if(r.resourceName===e.name){this.updateProviderPathProperties(r.provider,t.extensionPath);const n=new Set(e.tags);r.tags?.forEach((e=>n.add(e))),e.tags=Array.from(n),e.providers.push(r.provider),r.okButtonText&&e.okButtonText?.push(r.okButtonText),r.options&&e.options.forEach((e=>{r.options.forEach((t=>{e.name===t.name&&(e.values=e.values.concat(t.values))}))})),r.agreement&&e.agreements?.push(r.agreement),r.helpText&&e.helpTexts.push(r.helpText)}}))}))}validateResourceType(e,t){const n=[];if(this.validateNameDisplayName(e,"resource type",t,n),e.icon&&("object"!=typeof e.icon||e.icon.dark&&e.icon.light)||n.push(`Icon for resource type is not specified properly. ${t} `),e.options&&e.options.length>0){let r=1;e.options.forEach((e=>{const i=`${t}, option index: ${r} `;this.validateResourceTypeOption(e,i,n),r++}))}return this.validateProviders(e,t,n),n}validateResourceTypeOption(e,t,n){if(this.validateNameDisplayName(e,"option",t,n),e.values&&0!==e.values.length){let r=1;e.values.forEach((e=>{const i=`${t}, option value index: ${r} `;this.validateNameDisplayName(e,"option value",i,n),r++}));for(let r=0;r<e.values.length;r++)if(e.values[r].name&&e.values[r].displayName){let i=[];for(let t=r+1;t<e.values.length;t++)e.values[r].name!==e.values[t].name&&e.values[r].displayName!==e.values[t].displayName||i.push(t+1);0!==i.length&&(n.push(`Option values with same name or display name are found at the following positions: ${r+1}, ${i.join(",")}.${t} `),n.push(JSON.stringify(e)))}}else n.push(`Option contains no values.${t} `)}validateProviders(e,t,n){if(e.providers&&0!==e.providers.length){let r=1;e.providers.forEach((e=>{const i=`${t}, provider index: ${r} `;(0,l.instanceOfNotebookWizardDeploymentProvider)(e)||(0,l.instanceOfDialogDeploymentProvider)(e)||(0,l.instanceOfNotebookDeploymentProvider)(e)||(0,l.instanceOfDownloadDeploymentProvider)(e)||(0,l.instanceOfWebPageDeploymentProvider)(e)||(0,l.instanceOfCommandDeploymentProvider)(e)||(0,l.instanceOfAzureSQLVMDeploymentProvider)(e)||(0,l.instanceOfAzureSQLDBDeploymentProvider)(e)||n.push(`No deployment method defined for the provider, ${i}`),e.requiredTools&&e.requiredTools.length>0&&e.requiredTools.forEach((e=>{this.toolsService.getToolByName(e.name)||n.push(`The tool is not supported: ${e.name}, ${i} `)})),r++}))}else n.push(`No providers defined for resource type, ${t}`)}validateNameDisplayName(e,t,n,r){e.name||r.push(`Name of the ${t} is empty.${n} `),e.displayName||r.push(`Display name of the ${t} is empty.${n} `)}getProvider(e,t){for(let n=0;n<e.providers.length;n++){const r=e.providers[n];if(v(r.when,t))return r}}getOkButtonText(e,t){if(e.okButtonText)for(const n of e.okButtonText)if(v(n.when,t))return n.value;return p.select}getAgreementInfo(e,t){if(e.agreements)for(const n of e.agreements)if(v(n.when,t))return n}getHelpText(e,t){if(e.helpTexts)for(const n of e.helpTexts)if(v(n.when,t))return n}startDeployment(e,t,n){new d.ResourceTypeWizard(e,new u.KubeService,this.notebookService,this.toolsService,this.platformService,this,t,n).open()}download(e){const t=this;return new Promise(((n,s)=>{i.get(e,(async function(i){if(console.log("Download installer from: "+e),301===i.statusCode||302===i.statusCode)return console.log("Redirecting the download to: "+i.headers.location),void t.download(i.headers.location).then((e=>{n(e)}),(e=>{s(e)}));if(200!==i.statusCode)return void s(h(0,null,i.statusCode,i.statusMessage));const c=a.extname(e),l=a.basename(e,c);let u=l,p=a.join(o.homedir(),"Downloads");await m(p)||(p=o.homedir());let d=1;for(;await m(a.join(p,u+c));)u=`${l}-${d}`,d++;u=a.join(p,u+c);const f=(0,r.createWriteStream)(u);i.pipe(f),f.on("finish",(()=>{f.close(),n(u)})),f.on("error",(async e=>{await r.promises.unlink(u),s(e.message)}))}))}))}},t.processWhenClause=v},1979:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryAction=t.TelemetryView=t.TelemetryReporter=void 0;const r=n(9496),i=n(7437),o=r.extensions.getExtension("Microsoft.resource-deployment").packageJSON;var a,s;t.TelemetryReporter=new i.default(o.name,o.version,o.aiKey),function(e){e.ResourceTypeWizard="ResourceTypeWizard"}(a||(t.TelemetryView=a={})),function(e){e.SelectedDeploymentType="SelectedDeploymentType"}(s||(t.TelemetryAction=s={}))},9482:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzCliTool=t.AzCliToolName=void 0;const r=n(2037),i=n(1249),o=n(3403),a=n(1009),s=n(6061),c=o.loadMessageBundle(n(1017).join(__dirname,"services/tools/azCliTool.ts")),l=`${process.env["ProgramFiles(x86)"]}\\Microsoft SDKs\\Azure\\CLI2\\wbin`;t.AzCliToolName="azure-cli";class u extends s.ToolBase{constructor(e){super(e),this.allInstallationCommands=new Map([[a.OsDistribution.debian,f],[a.OsDistribution.win32,p],[a.OsDistribution.darwin,d],[a.OsDistribution.others,h]]),this.dependenciesByOsType=new Map([[a.OsDistribution.debian,[]],[a.OsDistribution.win32,[]],[a.OsDistribution.darwin,["Brew"]],[a.OsDistribution.others,["Curl"]]])}get name(){return t.AzCliToolName}get description(){return c(0,null)}get type(){return a.ToolType.AzCli}get displayName(){return c(1,null)}get homePage(){return"https://docs.microsoft.com/cli/azure/install-azure-cli"}async getSearchPaths(){return this.osDistribution===a.OsDistribution.win32?[l]:["/usr/local/bin"]}getVersionFromOutput(e){return e&&e.includes("azure-cli")?new i.SemVer(e.split(r.EOL)[0].replace(/azure-cli/g,"").replace(/ /g,"").replace(/\*/g,"")):void 0}get versionCommand(){return{command:"az --version"}}get discoveryCommand(){return{command:this.discoveryCommandString("az")}}}t.AzCliTool=u;const p=[{comment:c(2,null),command:"IF EXIST .\\AzureCLI.msi DEL /F .\\AzureCLI.msi"},{sudo:!0,comment:c(3,null),command:"powershell -Command \"& {(New-Object System.Net.WebClient).DownloadFile('https://aka.ms/installazurecliwindows', 'AzureCLI.msi'); Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /passive /quiet /lvx ADS_AzureCliInstall.log'}\""},{comment:c(4,null),command:'type ADS_AzureCliInstall.log | findstr /i /v "^MSI"',ignoreError:!0}],d=[{comment:c(5,null),command:"brew update"},{comment:c(6,null),command:"brew install azure-cli"}],f=[{sudo:!0,comment:c(7,null),command:"apt-get update"},{sudo:!0,comment:c(8,null),command:"apt-get install ca-certificates curl apt-transport-https lsb-release gnupg -y"},{sudo:!0,comment:c(9,null),command:"curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/microsoft.asc.gpg > /dev/null"},{sudo:!0,comment:c(10,null),command:'echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ `lsb_release -cs` main" | tee /etc/apt/sources.list.d/azure-cli.list'},{sudo:!0,comment:c(11,null),command:"apt-get update"},{sudo:!0,comment:c(12,null),command:"apt-get install azure-cli"}],h=[{sudo:!0,comment:c(13,null),command:"curl -sL https://aka.ms/InstallAzureCLIDeb | bash"}]},9620:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DockerTool=void 0;const r=n(1249),i=n(3403),o=n(1009),a=n(6061),s=i.loadMessageBundle(n(1017).join(__dirname,"services/tools/dockerTool.ts"));class c extends a.ToolBase{constructor(e){super(e),this.discoveryCommand={command:""},this.allInstallationCommands=new Map}get name(){return"docker"}get description(){return s(0,null)}get type(){return o.ToolType.Docker}get displayName(){return s(1,null)}get homePage(){return"https://docs.docker.com/install"}getVersionFromOutput(e){let t;return e&&(t=new r.SemVer(JSON.parse(e).Client.Version,!0)),t}get versionCommand(){return{command:'docker version --format "{{json .}}"'}}}t.DockerTool=c},3448:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KubeCtlTool=t.KubeCtlToolName=void 0;const r=n(1009),i=n(3403),o=n(1249),a=n(6061),s=i.loadMessageBundle(n(1017).join(__dirname,"services/tools/kubeCtlTool.ts"));t.KubeCtlToolName="kubectl";class c extends a.ToolBase{constructor(e){super(e),this.allInstallationCommands=new Map([[r.OsDistribution.debian,u],[r.OsDistribution.win32,p],[r.OsDistribution.darwin,l],[r.OsDistribution.others,d]]),this.dependenciesByOsType=new Map([[r.OsDistribution.debian,[]],[r.OsDistribution.win32,[]],[r.OsDistribution.darwin,["Brew"]],[r.OsDistribution.others,["Curl"]]])}get name(){return t.KubeCtlToolName}get description(){return s(0,null)}get type(){return r.ToolType.KubeCtl}get displayName(){return s(1,null)}get homePage(){return"https://kubernetes.io/docs/tasks/tools/install-kubectl"}async getStorageClasses(){const e=JSON.parse(await this.platformService.runCommand("kubectl get sc -o json")).items.filter((e=>e.metadata));return{storageClasses:e.map((e=>e.metadata.name)),defaultStorageClass:e.find((e=>"true"===e.metadata.annotations?.["storageclass.kubernetes.io/is-default-class"]))?.metadata.name??""}}getVersionFromOutput(e){let t;if(e){const n=JSON.parse(e);if(!(n&&n.clientVersion&&n.clientVersion.gitVersion))throw new Error(s(2,null,e));t=new o.SemVer(n.clientVersion.gitVersion)}return t}get versionCommand(){return{command:"kubectl version -o json --client"}}get discoveryCommand(){return{command:this.discoveryCommandString("kubectl")}}async getSearchPaths(){return this.osDistribution===r.OsDistribution.win32?[this.storagePath]:["/usr/local/bin"]}}t.KubeCtlTool=c;const l=[{comment:s(3,null),command:"brew update"},{comment:s(4,null),command:"brew install kubectl"}],u=[{sudo:!0,comment:s(5,null),command:"apt-get update"},{sudo:!0,comment:s(6,null),command:"apt-get install -y apt-transport-https"},{sudo:!0,comment:s(7,null),command:"curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -"},{sudo:!0,comment:s(8,null),command:'echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list'},{sudo:!0,comment:s(9,null),command:"apt-get update"},{sudo:!0,comment:s(10,null),command:"apt-get install -y kubectl"}],p=[{comment:s(11,null),command:"IF EXIST .\\kubectl.exe DEL /F .\\kubectl.exe"},{comment:s(12,null),command:'powershell -Command "& {$WebClient = New-Object System.Net.WebClient; $Version=$WebClient.DownloadString(\'https://storage.googleapis.com/kubernetes-release/release/stable.txt\').Trim();Write-Output \\"KubeCtl Version=$Version\\";$Url=\\"https://storage.googleapis.com/kubernetes-release/release/$Version/bin/windows/amd64/kubectl.exe\\"; Write-Output \\"Downloading file: $Url\\"; $WebClient.DownloadFile($Url, \'kubectl.exe\')}"'}],d=[{comment:s(13,null),command:"[ -e ./kubectl ] && rm -f ./kubectl"},{comment:s(14,null),command:"curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl"},{comment:s(15,null),command:"chmod +x ./kubectl"},{sudo:!0,comment:s(16,null),command:"[ -e /usr/local/bin/kubectl] && [ -e /usr/local/bin/kubectl_movedByADS ] && rm -f /usr/local/bin/kubectl_movedByADS"},{sudo:!0,comment:s(17,null),command:"[ -e /usr/local/bin/kubectl ] && mv /usr/local/bin/kubectl /usr/local/bin/kubectl_movedByADS"},{comment:s(18,null),sudo:!0,command:"mv ./kubectl /usr/local/bin/kubectl"}]},6061:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolBase=t.messageByDependencyType=void 0;const r=n(2037),i=n(1017),o=n(1249),a=n(9496),s=n(3403),c=n(8271),l=n(1009),u=s.loadMessageBundle(n(1017).join(__dirname,"services/tools/toolBase.ts")),p=u(0,null),d=u(1,null),f=u(2,null),h=u(3,null),m=u(4,null),v=new Map([["Error",h],["Installed",d],["Installing",f],["NotInstalled",p],["Failed",m]]),g=u(5,null),b=u(6,null);t.messageByDependencyType=new Map([["Brew",g],["Curl",b]]),t.ToolBase=class{constructor(e){this.platformService=e,this.dependenciesByOsType=new Map,this._onDidUpdateData=new a.EventEmitter,this._status="NotInstalled",this.startVersionAndStatusUpdate()}isEulaAccepted(){return Promise.resolve(!0)}promptForEula(){return Promise.resolve(!0)}get dependencyMessages(){return(this.dependenciesByOsType.get(this.osDistribution)||[]).map((e=>t.messageByDependencyType.get(e)))}async getInstallationPath(){}async getSearchPaths(){return[]}get downloadPath(){return this.storagePath}logToOutputChannel(e,t){this.platformService.logToOutputChannel(e,t)}get onDidUpdateData(){return this._onDidUpdateData.event}get status(){return this._status}setStatus(e){this._status=e,this._onDidUpdateData.fire(this)}get displayStatus(){return v.get(this._status)}get autoInstallNeeded(){return"NotInstalled"===this.status&&this.autoInstallSupported}get storagePath(){return this.platformService.storagePath()}get osDistribution(){return this.platformService.osDistribution()}get version(){return this._version}set version(e){this._version=e,this._onDidUpdateData.fire(this)}get fullVersion(){return this._version&&this._version.version}get statusDescription(){return this._statusDescription}setStatusDescription(e){this._statusDescription=e}get installationPathOrAdditionalInformation(){return this._installationPathOrAdditionalInformation}setInstallationPathOrAdditionalInformation(e){this._installationPathOrAdditionalInformation=e}get installationCommands(){return this.allInstallationCommands.get(this.osDistribution)}async getPip3InstallLocation(e){const t=`pip3 show ${e}`,n=await this.platformService.runCommand(t,{sudo:!1,ignoreError:!0}),r=/^Location\: (.*)$/gim.exec(n);let i=r&&r[1];return null==i?(this.logToOutputChannel(`   >${t}`),this.logToOutputChannel(u(7,null)),this.logToOutputChannel(n,u(8,null)),""):i}get outputChannelName(){return this.platformService.outputChannelName()}showOutputChannel(e){this.platformService.showOutputChannel(e)}get autoInstallSupported(){return!!this.installationCommands&&!!this.installationCommands.length}async install(){this._statusDescription="";try{this.setStatus("Installing"),await this.installCore(),this.startVersionAndStatusUpdate(),await this._pendingVersionAndStatusUpdate}catch(e){const t=(0,c.getErrorMessage)(e);throw this._statusDescription=u(9,null,this.displayName,this.homePage,r.EOL,t,this.outputChannelName),this.setStatus("Error"),this._installationPathOrAdditionalInformation=u(10,null,this.outputChannelName),e}if("NotInstalled"===this.status)throw this._statusDescription=u(11,null,this.displayName,this._statusDescription,r.EOL),this._installationPathOrAdditionalInformation=u(12,null,this.outputChannelName),this.uninstallCommand&&(this._statusDescription+=u(13,null,r.EOL,this.uninstallCommand)),this._statusDescription+=u(14,null,r.EOL,this.outputChannelName),this.setStatus("Failed"),new Error(this._statusDescription)}async installCore(){const e=this.installationCommands;if(!e||0===e.length)throw new Error(u(15,null,this.displayName,this.description));for(let t=0;t<e.length;t++)await this.platformService.runCommand(e[t].command,{workingDirectory:e[t].workingDirectory||this.downloadPath,additionalEnvironmentVariables:e[t].additionalEnvironmentVariables,sudo:e[t].sudo,commandTitle:e[t].comment,ignoreError:e[t].ignoreError})}async addInstallationSearchPathsToSystemPath(){const e=[...new Set([...await this.getSearchPaths(),this.storagePath].filter((e=>!!e))).values()];this.logToOutputChannel(u(16,null,this.displayName,JSON.stringify(e,void 0,"\t"))),e.forEach((e=>{process.env.PATH?`${i.delimiter}${process.env.PATH}${i.delimiter}`.includes(`${i.delimiter}${e}${i.delimiter}`)||(process.env.PATH+=`${i.delimiter}${e}`):process.env.PATH=e}))}async finishInitialization(){try{await this._pendingVersionAndStatusUpdate}catch(e){throw this.setStatus("Error"),this._statusDescription=(0,c.getErrorMessage)(e),this._installationPathOrAdditionalInformation=this._statusDescription,e}}startVersionAndStatusUpdate(){this._statusDescription="",this._pendingVersionAndStatusUpdate=this.updateVersionAndStatus()}async updateVersionAndStatus(){this._statusDescription="",await this.addInstallationSearchPathsToSystemPath();const e=await this.platformService.runCommand(this.versionCommand.command,{workingDirectory:this.versionCommand.workingDirectory,additionalEnvironmentVariables:this.versionCommand.additionalEnvironmentVariables,sudo:!1,ignoreError:!0});this.version=await this.getVersionFromOutput(e),this.version?(this.autoInstallSupported&&await this.setInstallationPath(),this.setStatus("Installed")):(this._installationPathOrAdditionalInformation=u(17,null,this.outputChannelName),this._statusDescription=u(18,null,r.EOL,e),this.setStatus("NotInstalled"))}discoveryCommandString(e){switch(this.osDistribution){case l.OsDistribution.win32:return`where.exe  ${e}`;case l.OsDistribution.darwin:return`command -v ${e}`;default:return`which ${e}`}}async setInstallationPath(){const e=await this.platformService.runCommand(this.discoveryCommand.command,{workingDirectory:this.discoveryCommand.workingDirectory,additionalEnvironmentVariables:this.discoveryCommand.additionalEnvironmentVariables,sudo:!1,ignoreError:!1});if(!e)throw new Error(`Install location of tool:'${this.displayName}' could not be discovered`);this._installationPathOrAdditionalInformation=i.resolve(e.split(r.EOL)[0])}isSameOrNewerThan(e){return!e||!!this._version&&(0,o.compare)(this._version.raw,e)>=0}}},5861:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolsService=void 0;const r=n(9620),i=n(9482),o=n(3448);t.ToolsService=class{constructor(e){this._platformService=e,this.currentTools=[],this.supportedTools=new Map([new r.DockerTool(this._platformService),new i.AzCliTool(this._platformService),new o.KubeCtlTool(this._platformService)].map((e=>[e.name,e])))}getToolByName(e){return this.supportedTools.get(e)}get toolsForCurrentProvider(){return this.currentTools}set toolsForCurrentProvider(e){this.currentTools=e}}},9027:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UriHandlerService=void 0;const r=n(9496),i=n(5760);t.UriHandlerService=class{constructor(e){this._resourceTypeService=e}async handleUri(e){if("/deploy"===e.path){const t=e.query.split("&").map((e=>e.split("="))),n=t.find((e=>"type"===e[0]))?.[1],o=t.find((e=>"extension"===e[0]))?.[1];if(o){const e=r.extensions.getExtension(o);if(e)await e.activate();else{const e=await r.commands.executeCommand("workbench.extensions.getExtensionFromGallery",o);if(!e)return void r.window.showErrorMessage(i.unknownExtension(o));if(await r.window.showInformationMessage(i.extensionRequiredPrompt(e.displayName),i.install)!==i.install)return void console.log(`User cancelled out of prompt to install required extension '${o}' for Resource Deployment URI`);await r.window.withProgress({location:r.ProgressLocation.Notification,title:i.installingExtension(e.displayName),cancellable:!1},(async(e,t)=>{await r.commands.executeCommand("workbench.extensions.installExtension",o)}))}}const a=JSON.parse(t.find((e=>"params"===e[0]))?.[1]??"{}"),s=this._resourceTypeService.getResourceTypes().find((e=>e.name===n));if(n&&!s&&console.warn(`Unknown resource type ${n}`),!s)return r.commands.executeCommand("azdata.resource.deploy");this._resourceTypeService.startDeployment(s,void 0,a)}}}},6123:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valueProviderService=void 0;const r=n(9496),i=n(5760);t.valueProviderService=new class{constructor(){this._valueProviderStore=new Map}registerValueProvider(e){if(this._valueProviderStore.has(e.id))throw new Error(i.valueProviderAlreadyDefined(e.id));return this._valueProviderStore.set(e.id,e),{dispose:()=>this.unregisterValueProvider(e.id)}}unregisterValueProvider(e){this._valueProviderStore.delete(e)}async getValueProvider(e){let t=this._valueProviderStore.get(e);if(void 0===t){const n=r.extensions.all.find((t=>!!t.packageJSON.contributes?.resourceDeploymentValueProviders?.find((t=>t.id===e))));if(n&&await n.activate(),t=this._valueProviderStore.get(e),void 0===t)throw new Error(i.noValueProviderDefined(e))}return t}}},9584:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FirewallToggleLabel=t.FirewallRuleDescription=t.EndIpAddressShortLabel=t.StartIpAddressShortLabel=t.EndIpAddressLabel=t.StartIpAddressLabel=t.IpAddressInfoLabel=t.CollationNameSummaryLabel=t.CollationNameLabel=t.DatabaseNameLabel=t.FirewallRuleNameLabel=t.DatabaseSettingsPageTitle=t.AzureAccountResourceGroupDropdownLabel=t.AzureAccountDatabaseServersDropdownLabel=t.AzureAccountSubscriptionDropdownLabel=t.AzureAccountDropdownLabel=t.AzureSettingsSummaryPageTitle=t.AzureSettingsPageTitle=t.MissingRequiredInformationErrorMessage=t.WizardDoneButtonLabel=t.WizardTitle=t.standardWidth=void 0;const r=n(3403).loadMessageBundle(n(1017).join(__dirname,"ui/deployAzureSQLDBWizard/constants.ts"));t.standardWidth="480px",t.WizardTitle=r(0,null),t.WizardDoneButtonLabel=r(1,null),t.MissingRequiredInformationErrorMessage=r(2,null),t.AzureSettingsPageTitle=r(3,null),t.AzureSettingsSummaryPageTitle=r(4,null),t.AzureAccountDropdownLabel=r(5,null),t.AzureAccountSubscriptionDropdownLabel=r(6,null),t.AzureAccountDatabaseServersDropdownLabel=r(7,null),t.AzureAccountResourceGroupDropdownLabel=r(8,null),t.DatabaseSettingsPageTitle=r(9,null),t.FirewallRuleNameLabel=r(10,null),t.DatabaseNameLabel=r(11,null),t.CollationNameLabel=r(12,null),t.CollationNameSummaryLabel=r(13,null),t.IpAddressInfoLabel=r(14,null),t.StartIpAddressLabel=r(15,null),t.EndIpAddressLabel=r(16,null),t.StartIpAddressShortLabel=r(17,null),t.EndIpAddressShortLabel=r(18,null),t.FirewallRuleDescription=r(19,null),t.FirewallToggleLabel=r(20,null)},335:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeployAzureSQLDBWizardModel=void 0;const r=n(2037),i=n(9496),o=n(9584),a=n(9669),s=n(754),c=n(6111),l=n(6618),u=n(5256);class p extends s.ResourceTypeModel{get notebookService(){return this.wizard.notebookService}get toolService(){return this.wizard.toolsService}constructor(e,t){super(e,t),this.sqldbProvider=e,this.cache=new Map,this.wizard.wizardObject.title=o.WizardTitle}initialize(){this.wizard.setPages(this.getPages()),this.wizard.wizardObject.generateScriptButton.hidden=!0,this.wizard.wizardObject.doneButton.label=o.WizardDoneButtonLabel}async onOk(){await this.scriptToNotebook()}getPages(){const e=[];return e.push(new u.AzureSettingsPage(this)),e.push(new c.DatabaseSettingsPage(this)),e.push(new l.AzureSQLDBSummaryPage(this)),e}async getRequest(e,t=!1){if(t&&this.cache.has(e))return this.cache.get(e);const n={headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.securityToken.token}`},validateStatus:()=>!0},o=await a.default.get(e,n);if(200!==o.status){let e=[];e.push(o.status.toString()),e.push(o.statusText),o.data&&o.data.error&&e.push(`${o.data.error.code} : ${o.data.error.message}`),i.window.showErrorMessage(e.join(r.EOL))}return t&&this.cache.set(e,o),o}createFormRowComponent(e,t,n,r,i){r.updateProperties({required:i,width:"480px"});const o=e.modelBuilder.text().withProps({value:t,width:"250px",description:n,requiredIndicator:i}).component();return o.updateCssStyles({"font-weight":"400","font-size":"13px"}),e.modelBuilder.flexContainer().withLayout({flexFlow:"row",alignItems:"center"}).withItems([o,r],{CSSStyles:{"margin-right":"5px"}}).component()}changeComponentDisplay(e,t){e.updateProperties({required:"block"===t}),e.updateCssStyles({display:t})}changeRowDisplay(e,t){e.items.map((e=>{e.updateProperties({required:"block"===t}),e.updateCssStyles({display:t})}))}addDropdownValues(e,t,n){e.updateProperties({values:t,width:"480px"})}async scriptToNotebook(){const e=this.getCodeCellContentForNotebook();try{await this.notebookService.openNotebookWithEdits(this.sqldbProvider.azureSQLDBWizard.notebook,e,2)}catch(e){i.window.showErrorMessage(e)}}getCodeCellContentForNotebook(){const e=[];return e.push(`azure_sqldb_subscription = '${this.azureSubscription}'`),e.push(`azure_sqldb_resource_group_name = '${this.azureResouceGroup}'`),e.push(`azure_sqldb_server_name = '${this.azureServerName}'`),e.push(`azure_sqldb_database_name = '${this.databaseName}'`),e.push(`azure_sqldb_collation = '${this.databaseCollation}'`),e.push("azure_sqldb_enable_firewall_rule = "+(this.newFirewallRule?"True":"False")),this.newFirewallRule&&(e.push(`azure_sqldb_ip_start = '${this.startIpAddress}'`),e.push(`azure_sqldb_ip_end = '${this.endIpAddress}'`),e.push(`azure_sqldb_firewall_name = '${this.firewallRuleName}'`)),e.map((e=>e.concat(r.EOL)))}}t.DeployAzureSQLDBWizardModel=p},5256:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureSettingsPage=void 0;const r=n(9072),i=n(2037),o=n(9584),a=n(2288),s=n(9496),c=n(7994),l=n(3403),u=n(5760),p=l.loadMessageBundle(n(1017).join(__dirname,"ui/deployAzureSQLDBWizard/pages/azureSettingsPage.ts"));class d extends c.BasePage{constructor(e){super(o.AzureSettingsPageTitle,"",e.wizard),this._model=e,this._accountsMap=new Map,this._subscriptionsMap=new Map}async initialize(){this.pageObject.registerContent((async e=>(await Promise.all([this.createAzureAccountsDropdown(e),this.createAzureSubscriptionsDropdown(e),this.createServerDropdown(e)]),this.populateAzureAccountsDropdown(),this._form=e.modelBuilder.formContainer().withFormItems([{component:this._model.createFormRowComponent(e,o.AzureAccountDropdownLabel,"",this._azureAccountsDropdown,!0)},{component:this.buttonFlexContainer},{component:this._model.createFormRowComponent(e,o.AzureAccountSubscriptionDropdownLabel,"",this._azureSubscriptionsDropdown,!0)},{component:this._model.createFormRowComponent(e,o.AzureAccountDatabaseServersDropdownLabel,"",this._serverGroupDropdown,!0)}],{horizontal:!1,componentWidth:"100%"}).withLayout({width:"100%"}).component(),e.initializeModel(this._form))))}async onEnter(){this.wizard.wizardObject.registerNavigationValidator((async e=>e.newPage<e.lastPage||""===await this.validate()))}async onLeave(){this.wizard.wizardObject.registerNavigationValidator((e=>!0))}async createAzureAccountsDropdown(e){this._azureAccountsDropdown=e.modelBuilder.dropDown().withProps({}).component(),this._azureAccountsDropdown.onValueChanged((async e=>{this._model.azureAccount=this._accountsMap.get(e.selected),this.populateAzureSubscriptionsDropdown()})),this.signInButton=e.modelBuilder.button().withProps({label:u.signIn,width:"100px",secondary:!0}).component(),this.refreshButton=e.modelBuilder.button().withProps({label:u.refresh,width:"100px",secondary:!0}).component(),this.signInButton.onDidClick((async e=>{await s.commands.executeCommand("workbench.actions.modal.linkedAccount"),await this.populateAzureAccountsDropdown()})),this.refreshButton.onDidClick((async e=>{await this.populateAzureAccountsDropdown()})),this.buttonFlexContainer=e.modelBuilder.flexContainer().withLayout({flexFlow:"row"}).withItems([this.signInButton,this.refreshButton],{CSSStyles:{"margin-right":"5px"}}).component()}async populateAzureAccountsDropdown(){this._azureAccountsDropdown.loading=!0;let e=await r.accounts.getAllAccounts();0!==e.length?(this._model.wizard.showErrorMessage(""),this._model.addDropdownValues(this._azureAccountsDropdown,e.map((e=>{let t={displayName:e.displayInfo.displayName,name:e.displayInfo.displayName};return this._accountsMap.set(t.displayName,e),t}))),this._model.azureAccount=e[0],this._azureAccountsDropdown.loading=!1,await this.populateAzureSubscriptionsDropdown()):this._model.wizard.showErrorMessage(p(0,null))}async createAzureSubscriptionsDropdown(e){this._azureSubscriptionsDropdown=e.modelBuilder.dropDown().component(),this._azureSubscriptionsDropdown.onValueChanged((async e=>{let t=this._azureSubscriptionsDropdown.value;this._model.azureSubscription=t.name,this._model.azureSubscriptionDisplayName=t.displayName,this._model.securityToken=await r.accounts.getAccountSecurityToken(this._model.azureAccount,this._subscriptionsMap.get(t.name)?.tenant,r.AzureResource.ResourceManagement),await this.populateServerGroupDropdown()}))}async populateAzureSubscriptionsDropdown(){this._azureSubscriptionsDropdown.loading=!0;let e=a.apiService.azurecoreApi,t=this._azureAccountsDropdown.value;if(void 0===t)return this._azureSubscriptionsDropdown.loading=!1,void await this.populateServerGroupDropdown();let n=this._accountsMap.get(t.name),i=(await e.getSubscriptions(n,!0)).subscriptions;if(void 0===i||0===i.length)return this._azureSubscriptionsDropdown.updateProperties({values:[]}),this._azureSubscriptionsDropdown.loading=!1,void await this.populateServerGroupDropdown();i.sort(((e,t)=>e.name.toLocaleLowerCase().localeCompare(t.name.toLocaleLowerCase()))),this._model.addDropdownValues(this._azureSubscriptionsDropdown,i.map((e=>{let t={displayName:e.name+" - "+e.id,name:e.id};return this._subscriptionsMap.set(t.name,e),t}))),this._model.azureSubscription=this._azureSubscriptionsDropdown.value.name,this._model.azureSubscriptionDisplayName=this._azureSubscriptionsDropdown.value.displayName,this._model.securityToken=await r.accounts.getAccountSecurityToken(this._model.azureAccount,this._subscriptionsMap.get(this._azureSubscriptionsDropdown.value.name)?.tenant,r.AzureResource.ResourceManagement),this._azureSubscriptionsDropdown.loading=!1,await this.populateServerGroupDropdown()}async createServerDropdown(e){this._serverGroupDropdown=e.modelBuilder.dropDown().withProps({required:!0}).component(),this._serverGroupDropdown.onValueChanged((async e=>{e.selected===this._serverGroupDropdown.value.displayName&&(this._model.azureServerName=e.selected,this._model.azureResouceGroup=this._serverGroupDropdown.value.name.replace(RegExp("^(.*?)/resourceGroups/"),"").replace(RegExp("/providers/.*"),""),this._model.azureRegion=this._serverGroupDropdown.value.name.replace(RegExp("^(.*?)/location/"),""))}))}async populateServerGroupDropdown(){this._serverGroupDropdown.loading=!0;let e=this._azureSubscriptionsDropdown.value;if(void 0===e||""===e.displayName)return this._serverGroupDropdown.updateProperties({values:[]}),void(this._serverGroupDropdown.loading=!1);let t=`https://management.azure.com/subscriptions/${this._model.azureSubscription}/providers/Microsoft.Sql/servers?api-version=2019-06-01-preview`,n=await this._model.getRequest(t);if(0===n.data.value.length)return this._serverGroupDropdown.updateProperties({values:[{displayName:p(1,null),name:""}]}),void(this._serverGroupDropdown.loading=!1);n.data.value.sort(((e,t)=>e.name>t.name?1:-1)),this._model.addDropdownValues(this._serverGroupDropdown,n.data.value.map((e=>({displayName:e.name,name:e.id+"/location/"+e.location})))),this._serverGroupDropdown.value&&(this._model.azureServerName=this._serverGroupDropdown.value.displayName,this._model.azureResouceGroup=this._serverGroupDropdown.value.name.replace(RegExp("^(.*?)/resourceGroups/"),"").replace(RegExp("/providers/.*"),""),this._model.azureRegion=this._serverGroupDropdown.value.name.replace(RegExp("^(.*?)/location/"),"")),this._serverGroupDropdown.loading=!1}async validate(){let e=[];return""===this._serverGroupDropdown.value.name&&e.push(p(2,null)),this._model.wizard.showErrorMessage(e.join(i.EOL)),e.join(i.EOL)}}t.AzureSettingsPage=d},7994:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasePage=void 0;const r=n(482);class i extends r.ResourceTypePage{}t.BasePage=i},6111:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DatabaseSettingsPage=void 0;const r=n(2037),i=n(9584),o=n(7994),a=n(3403),s=n(5694),c=a.loadMessageBundle(n(1017).join(__dirname,"ui/deployAzureSQLDBWizard/pages/databaseSettingsPage.ts"));class l extends o.BasePage{constructor(e){super(i.DatabaseSettingsPageTitle,"",e.wizard),this._model=e}async initialize(){this.pageObject.registerContent((async e=>(await Promise.all([this.createIpAddressText(e),this.createFirewallToggle(e),this.createFirewallNameText(e),this.createDatabaseNameText(e),this.createCollationText(e)]),this._form=e.modelBuilder.formContainer().withFormItems([{component:this._databaseNameTextRow},{component:this._collationTextRow},{component:(0,s.createFlexContainer)(e,[this._firewallToggleLabel,this._firewallToggleDropdown])},{component:this._firewallRuleNameTextRow},{component:this._startIpAddressTextRow},{component:this._endIpAddressTextRow},{component:this._IpInfoText}],{horizontal:!1,componentWidth:"100%"}).withLayout({width:"100%"}).component(),e.initializeModel(this._form))))}async onEnter(){this.wizard.wizardObject.registerNavigationValidator((async e=>e.newPage<e.lastPage||""===await this.validate()))}async onLeave(){this.wizard.wizardObject.registerNavigationValidator((e=>!0))}createIpAddressText(e){this._IpInfoText=e.modelBuilder.text().withProps({value:i.IpAddressInfoLabel}).component(),this._startIpAddressTextbox=e.modelBuilder.inputBox().withProps({inputType:"text"}).component(),this._startIpAddressTextbox.onTextChanged((e=>{this._model.startIpAddress=e})),this._startIpAddressTextRow=this._model.createFormRowComponent(e,i.StartIpAddressLabel,"",this._startIpAddressTextbox,!0),this._endIpAddressTextbox=e.modelBuilder.inputBox().withProps({inputType:"text"}).component(),this._endIpAddressTextbox.onTextChanged((e=>{this._model.endIpAddress=e})),this._endIpAddressTextRow=this._model.createFormRowComponent(e,i.EndIpAddressLabel,"",this._endIpAddressTextbox,!0)}createFirewallToggle(e){this._firewallToggleDropdown=(0,s.createCheckbox)(e,{initialValue:!0,label:"",required:!1}),this._firewallToggleLabel=(0,s.createLabel)(e,{text:i.FirewallToggleLabel,description:i.FirewallRuleDescription,required:!1,width:"250px",cssStyles:{"font-weight":"400","font-size":"13px"}}),this._model.newFirewallRule=!0,this._firewallToggleDropdown.onChanged((e=>{let t=e?"block":"none";this._model.changeRowDisplay(this._firewallRuleNameTextRow,t),this._model.changeRowDisplay(this._endIpAddressTextRow,t),this._model.changeRowDisplay(this._startIpAddressTextRow,t),this._model.changeComponentDisplay(this._IpInfoText,t),this._model.newFirewallRule=e}))}createFirewallNameText(e){this._firewallRuleNameTextbox=e.modelBuilder.inputBox().component(),this._firewallRuleNameTextRow=this._model.createFormRowComponent(e,i.FirewallRuleNameLabel,"",this._firewallRuleNameTextbox,!0),this._firewallRuleNameTextbox.onTextChanged((e=>{this._model.firewallRuleName=e}))}createDatabaseNameText(e){this._databaseNameTextbox=e.modelBuilder.inputBox().component(),this._databaseNameTextRow=this._model.createFormRowComponent(e,i.DatabaseNameLabel,"",this._databaseNameTextbox,!0),this._databaseNameTextbox.onTextChanged((e=>{this._model.databaseName=e}))}createCollationText(e){this._collationTextbox=e.modelBuilder.inputBox().withProps({inputType:"text",value:"SQL_Latin1_General_CP1_CI_AS"}).component(),this._collationTextbox.onTextChanged((e=>{this._model.databaseCollation=e})),this._collationTextRow=this._model.createFormRowComponent(e,i.CollationNameLabel,"",this._collationTextbox,!0)}async validate(){let e=[],t=/(^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$)/,n=this._startIpAddressTextbox.value,i=this._endIpAddressTextbox.value,o=this._firewallRuleNameTextbox.value,a=this._databaseNameTextbox.value,s=this._collationTextbox.value;return this._model.newFirewallRule&&(t.test(n)||e.push(c(0,null)),t.test(i)||e.push(c(1,null)),/^\d+$/.test(o)&&e.push(c(2,null)),(o.length<1||o.length>100)&&e.push(c(3,null)),/[\\\/"\'\[\]:\|<>\+=;,\?\*@\&,]/g.test(o)&&e.push(c(4,null)),/[A-Z]/g.test(o)&&e.push(c(5,null))),/^\d+$/.test(a)&&e.push(c(6,null)),(a.length<1||a.length>100)&&e.push(c(7,null)),/[\\\/"\'\[\]:\|<>\+=;,\?\*@\&,]/g.test(a)&&e.push(c(8,null)),await this.databaseNameExists(a)&&e.push(c(9,null)),/^\d+$/.test(s)&&e.push(c(10,null)),(s.length<1||s.length>100)&&e.push(c(11,null)),/[\\\/"\'\[\]:\|<>\+=;,\?\*@\&,]/g.test(s)&&e.push(c(12,null)),this._model.wizard.showErrorMessage(e.join(r.EOL)),e.join(r.EOL)}async databaseNameExists(e){const t=`https://management.azure.com/subscriptions/${this._model.azureSubscription}/resourceGroups/${this._model.azureResouceGroup}/providers/Microsoft.Sql/servers/${this._model.azureServerName}/databases?api-version=2017-10-01-preview`;return(await this._model.getRequest(t,!0)).data.value.map((e=>e.name)).includes(e)}}t.DatabaseSettingsPage=l},6618:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureSQLDBSummaryPage=void 0;const r=n(9584),i=n(5760),o=n(1009),a=n(5694),s=n(6070);class c extends s.BasePage{constructor(e){super("Summary","",e.wizard),this._model=e,this.formItems=[]}async initialize(){this.pageObject.registerContent((async e=>(this._view=e,this._form=e.modelBuilder.formContainer(),e.initializeModel(this._form.withLayout({width:"100%"}).component()))))}async onEnter(){this.formItems.forEach((e=>{this._form.removeFormItem(e)})),this.formItems=[];let e=this._model;const t="150px",n="400px",s="20px",c={labelPosition:"left",labelWidth:t,inputWidth:n,fieldHeight:s,spaceBetweenFields:"0",title:r.AzureSettingsSummaryPageTitle,fields:[{type:o.FieldType.ReadonlyText,label:r.AzureAccountDropdownLabel,defaultValue:e.azureAccount.displayInfo.displayName,labelCSSStyles:{fontWeight:o.FontWeight.Bold}},{type:o.FieldType.ReadonlyText,label:r.AzureAccountSubscriptionDropdownLabel,defaultValue:e.azureSubscriptionDisplayName,labelCSSStyles:{fontWeight:o.FontWeight.Bold}},{type:o.FieldType.ReadonlyText,label:r.AzureAccountResourceGroupDropdownLabel,defaultValue:e.azureResouceGroup,labelCSSStyles:{fontWeight:o.FontWeight.Bold}},{type:o.FieldType.ReadonlyText,label:r.AzureAccountDatabaseServersDropdownLabel,defaultValue:e.azureServerName,labelCSSStyles:{fontWeight:o.FontWeight.Bold}}]},l={labelPosition:"left",labelWidth:t,inputWidth:n,fieldHeight:s,title:r.DatabaseSettingsPageTitle,fields:[{type:o.FieldType.ReadonlyText,label:r.DatabaseNameLabel,defaultValue:e.databaseName,labelCSSStyles:{fontWeight:o.FontWeight.Bold}},{type:o.FieldType.ReadonlyText,label:r.CollationNameSummaryLabel,defaultValue:e.databaseCollation,labelCSSStyles:{fontWeight:o.FontWeight.Bold}},{type:o.FieldType.ReadonlyText,label:r.FirewallToggleLabel,defaultValue:e.newFirewallRule?i.yes:i.no,labelCSSStyles:{fontWeight:o.FontWeight.Bold}}]};e.newFirewallRule&&l.fields?.push({type:o.FieldType.ReadonlyText,label:r.FirewallRuleNameLabel,defaultValue:e.firewallRuleName,labelCSSStyles:{fontWeight:o.FontWeight.Bold}},{type:o.FieldType.ReadonlyText,label:r.StartIpAddressShortLabel,defaultValue:e.startIpAddress,labelCSSStyles:{fontWeight:o.FontWeight.Bold}},{type:o.FieldType.ReadonlyText,label:r.EndIpAddressShortLabel,defaultValue:e.endIpAddress,labelCSSStyles:{fontWeight:o.FontWeight.Bold}});const u=async e=>({title:"",component:await(0,a.createSection)({container:this.wizard.wizardObject,inputComponents:{},sectionInfo:e,view:this._view,onNewDisposableCreated:()=>{},onNewInputComponentCreated:()=>{},onNewValidatorCreated:()=>{},toolsService:this.wizard.toolsService})}),p=await u(c),d=await u(l);this.formItems.push(p,d),this._form.addFormItems(this.formItems),this.wizard.wizardObject.registerNavigationValidator((e=>!0))}async onLeave(){this.wizard.wizardObject.registerNavigationValidator((e=>!0))}createSummaryRow(e,t,n){const r=e.modelBuilder.text().withProps({value:t,width:"250px"}).component();return r.updateCssStyles({"font-weight":"400","font-size":"13px"}),e.modelBuilder.flexContainer().withLayout({flexFlow:"row",alignItems:"center"}).withItems([r,n],{CSSStyles:{"margin-right":"5px"}}).component()}}t.AzureSQLDBSummaryPage=c},3597:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SqlAuthenticationConfirmPasswordLabel=t.SqlAuthenticationPasswordLabel=t.SqlAuthenticationUsernameLabel=t.SqlEnableSQLAuthenticationLabel=t.SqlPortLabel=t.SqlConnectivityTypeDropdownLabel=t.SqlServerSettingsPageTitle=t.RDPAllowCheckboxLabel=t.NetworkSettingsNewPublicIp=t.PublicIPDropdownLabel=t.SubnetDropdownLabel=t.NetworkSettingsNewSubnet=t.VirtualNetworkDropdownLabel=t.NetworkSettingsNewVirtualNetwork=t.NetworkSettingsPageDescription=t.NetworkSettingsPageTitle=t.VmSizeLearnMoreLabel=t.VmSizeDropdownLabel=t.VmVersionDropdownLabel=t.VmSkuDropdownLabel=t.VmImageDropdownLabel=t.VmAdminConfirmPasswordTextBoxLabel=t.VmAdminPasswordTextBoxLabel=t.VmAdminUsernameTextBoxLabel=t.VmNameTextBoxLabel=t.VmSettingsPageTitle=t.AzureAccountRegionDropdownLabel=t.AzureAccountResourceGroupDropdownLabel=t.AzureAccountSubscriptionDropdownLabel=t.AzureAccountDropdownLabel=t.AzureSettingsPageTitle=t.MissingRequiredInformationErrorMessage=t.WizardDoneButtonLabel=t.WizardTitle=t.standardWidth=void 0;const r=n(3403).loadMessageBundle(n(1017).join(__dirname,"ui/deployAzureSQLVMWizard/constants.ts"));t.standardWidth="480px",t.WizardTitle=r(0,null),t.WizardDoneButtonLabel=r(1,null),t.MissingRequiredInformationErrorMessage=r(2,null),t.AzureSettingsPageTitle=r(3,null),t.AzureAccountDropdownLabel=r(4,null),t.AzureAccountSubscriptionDropdownLabel=r(5,null),t.AzureAccountResourceGroupDropdownLabel=r(6,null),t.AzureAccountRegionDropdownLabel=r(7,null),t.VmSettingsPageTitle=r(8,null),t.VmNameTextBoxLabel=r(9,null),t.VmAdminUsernameTextBoxLabel=r(10,null),t.VmAdminPasswordTextBoxLabel=r(11,null),t.VmAdminConfirmPasswordTextBoxLabel=r(12,null),t.VmImageDropdownLabel=r(13,null),t.VmSkuDropdownLabel=r(14,null),t.VmVersionDropdownLabel=r(15,null),t.VmSizeDropdownLabel=r(16,null),t.VmSizeLearnMoreLabel=r(17,null),t.NetworkSettingsPageTitle=r(18,null),t.NetworkSettingsPageDescription=r(19,null),t.NetworkSettingsNewVirtualNetwork=r(20,null),t.VirtualNetworkDropdownLabel=r(21,null),t.NetworkSettingsNewSubnet=r(22,null),t.SubnetDropdownLabel=r(23,null),t.PublicIPDropdownLabel=r(24,null),t.NetworkSettingsNewPublicIp=r(25,null),t.RDPAllowCheckboxLabel=r(26,null),t.SqlServerSettingsPageTitle=r(27,null),t.SqlConnectivityTypeDropdownLabel=r(28,null),t.SqlPortLabel=r(29,null),t.SqlEnableSQLAuthenticationLabel=r(30,null),t.SqlAuthenticationUsernameLabel=r(31,null),t.SqlAuthenticationPasswordLabel=r(32,null),t.SqlAuthenticationConfirmPasswordLabel=r(33,null)},1303:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeployAzureSQLVMWizardModel=void 0;const r=n(2037),i=n(3597),o=n(9669),a=n(9496),s=n(3403),c=n(4654),l=n(8531),u=n(7861),p=n(7123),d=n(1237),f=n(754),h=s.loadMessageBundle(n(1017).join(__dirname,"ui/deployAzureSQLVMWizard/deployAzureSQLVMWizardModel.ts"));class m extends f.ResourceTypeModel{get notebookService(){return this.wizard.notebookService}get toolService(){return this.wizard.toolsService}constructor(e,t){super(e,t),this.sqlvmProvider=e,this.cache=new Map,this.wizard.wizardObject.title=i.WizardTitle}initialize(){this.wizard.setPages(this.getPages()),this.wizard.wizardObject.generateScriptButton.hidden=!0,this.wizard.wizardObject.doneButton.label=i.WizardDoneButtonLabel}async onOk(){await this.scriptToNotebook()}getPages(){const e=[];return e.push(new c.AzureSettingsPage(this)),e.push(new l.VmSettingsPage(this)),e.push(new u.NetworkSettingsPage(this)),e.push(new p.SqlServerSettingsPage(this)),e.push(new d.AzureSQLVMSummaryPage(this)),e}async scriptToNotebook(){this.setNotebookEnvironmentVariables(process.env);const e=this.getCodeCellContentForNotebook();try{await this.notebookService.openNotebookWithEdits(this.sqlvmProvider.azureSQLVMWizard.notebook,e,2)}catch(e){a.window.showErrorMessage(e)}}setNotebookEnvironmentVariables(e){e.AZDATA_NB_VAR_AZURE_SQLVM_PASSWORD=this.vmPassword,e.AZDATA_NB_VAR_AZURE_SQLVM_SQL_PASSWORD=this.sqlAuthenticationPassword}async getRequest(e,t=!1){if(t&&this.cache.has(e))return this.cache.get(e);const n={headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.securityToken.token}`},validateStatus:()=>!0},i=await o.default.get(e,n);if(200!==i.status){let e=[];e.push(i.status.toString()),e.push(i.statusText),i.data&&i.data.error&&e.push(`${i.data.error.code} : ${i.data.error.message}`),a.window.showErrorMessage(e.join(r.EOL))}return t&&this.cache.set(e,i),i}createFormRowComponent(e,t,n,r,i){r.updateProperties({required:i,width:"480px"});const o=e.modelBuilder.text().withProps({value:t,width:"250px",description:n,requiredIndicator:i}).component();return o.updateCssStyles({"font-weight":"400","font-size":"13px"}),e.modelBuilder.flexContainer().withLayout({flexFlow:"row",alignItems:"center"}).withItems([o,r],{CSSStyles:{"margin-right":"5px"}}).component()}changeComponentDisplay(e,t){e.updateProperties({required:"block"===t}),e.updateCssStyles({display:t})}changeRowDisplay(e,t){e.items.map((e=>{e.updateProperties({required:"block"===t}),e.updateCssStyles({display:t})}))}addDropdownValues(e,t,n){e.updateProperties({values:t,width:"480px"})}validatePassword(e){let t=[];(e.length<12||e.length>123)&&t.push(h(0,null));let n=0;return new RegExp(".*[a-z].*").test(e)&&n++,new RegExp(".*[A-Z].*").test(e)&&n++,new RegExp(".*[0-9].*").test(e)&&n++,/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]+/.test(e)&&n++,n<3&&t.push(h(1,null)),t}getCodeCellContentForNotebook(){const e=[];return e.push("import os"),e.push(`azure_sqlvm_nb_var_subscription = '${this.azureSubscription}'`),e.push(`azure_sqlvm_nb_var_resource_group_name = '${this.azureResouceGroup}'`),e.push(`azure_sqlvm_location = '${this.azureRegion}'`),e.push(`azure_sqlvm_vmname = '${this.vmName}'`),e.push(`azure_sqlvm_username = '${this.vmUsername}'`),e.push(`azure_sqlvm_image = '${this.vmImage}'`),e.push(`azure_sqlvm_image_sku = '${this.vmImageSKU}'`),e.push(`azure_sqlvm_image_version = '${this.vmImageVersion}'`),e.push(`azure_sqlvm_vmsize = '${this.vmSize}'`),e.push(`azure_sqlvm_newVirtualNetwork = ${this.newVirtualNetwork}`),e.push(`azure_sqlvm_virtnet = '${this.virtualNetworkName}'`),e.push(`azure_sqlvm_newSubnet = ${this.newSubnet}`),e.push(`azure_sqlvm_subnet = '${this.subnetName}'`),e.push(`azure_sqlvm_newPublicIp = ${this.newPublicIp}`),e.push(`azure_sqlvm_publicip = '${this.publicIpName}'`),e.push(`azure_sqlvm_allow_rdp = ${this.allowRDP}`),e.push(`azure_sqlvm_sqlConnectivityType = '${this.sqlConnectivityType}'`),e.push(`azure_sqlvm_port = '${this.port}'`),e.push(`azure_sqlvm_enableSqlAuthentication = ${this.enableSqlAuthentication}`),e.push(`azure_sqlvm_sqlAuthenticationUsername = '${this.sqlAuthenticationUsername}'`),e.map((e=>e+r.EOL))}}t.DeployAzureSQLVMWizardModel=m},4654:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureSettingsPage=void 0;const r=n(9072),i=n(3597),o=n(2288),a=n(9496),s=n(5760),c=n(6070),l=["eastus","eastus2","westus","centralus","northcentralus","southcentralus","northeurope","westeurope","eastasia","southeastasia","japaneast","japanwest","australiaeast","australiasoutheast","australiacentral","brazilsouth","southindia","centralindia","westindia","canadacentral","canadaeast","westus2","westcentralus","uksouth","ukwest","koreacentral","koreasouth","francecentral","southafricanorth","uaenorth","switzerlandnorth","germanywestcentral","norwayeast"];class u extends c.BasePage{constructor(e){super(i.AzureSettingsPageTitle,"",e.wizard),this._model=e,this._accountsMap=new Map,this._subscriptionsMap=new Map}async initialize(){this.pageObject.registerContent((async e=>(await Promise.all([this.createAzureAccountsDropdown(e),this.createAzureSubscriptionsDropdown(e),this.createResourceDropdown(e),this.createAzureRegionsDropdown(e)]),this.populateAzureAccountsDropdown(),this._form=e.modelBuilder.formContainer().withFormItems([{component:this._model.createFormRowComponent(e,i.AzureAccountDropdownLabel,"",this._azureAccountsDropdown,!0)},{component:this.buttonFlexContainer},{component:this._model.createFormRowComponent(e,i.AzureAccountSubscriptionDropdownLabel,"",this._azureSubscriptionsDropdown,!0)},{component:this._model.createFormRowComponent(e,i.AzureAccountResourceGroupDropdownLabel,"",this._resourceGroupDropdown,!0)},{component:this._model.createFormRowComponent(e,i.AzureAccountRegionDropdownLabel,"",this._azureRegionsDropdown,!0)}],{horizontal:!1,componentWidth:"100%"}).withLayout({width:"100%"}).component(),e.initializeModel(this._form))))}async onEnter(){this._model.wizard.wizardObject.registerNavigationValidator((e=>!0))}async onLeave(){this._model.wizard.wizardObject.registerNavigationValidator((e=>!0))}async createAzureAccountsDropdown(e){this._azureAccountsDropdown=e.modelBuilder.dropDown().withProps({}).component(),this._azureAccountsDropdown.onValueChanged((async e=>{this._azureAccountsDropdown.value&&(this._model.azureAccount=this._accountsMap.get(e.selected),this.populateAzureSubscriptionsDropdown())})),this.signInButton=e.modelBuilder.button().withProps({label:s.signIn,width:"100px",secondary:!0}).component(),this.refreshButton=e.modelBuilder.button().withProps({label:s.refresh,width:"100px",secondary:!0}).component(),this.signInButton.onDidClick((async e=>{await a.commands.executeCommand("workbench.actions.modal.linkedAccount"),await this.populateAzureAccountsDropdown()})),this.refreshButton.onDidClick((async e=>{await this.populateAzureAccountsDropdown()})),this.buttonFlexContainer=e.modelBuilder.flexContainer().withLayout({flexFlow:"row"}).withItems([this.signInButton,this.refreshButton],{CSSStyles:{"margin-right":"5px"}}).component()}async populateAzureAccountsDropdown(){this._azureAccountsDropdown.loading=!0;let e=await r.accounts.getAllAccounts();0!==e.length?(this._model.wizard.showErrorMessage(""),this._model.addDropdownValues(this._azureAccountsDropdown,e.map((e=>{let t={displayName:e.displayInfo.displayName,name:e.displayInfo.displayName};return this._accountsMap.set(t.displayName,e),t}))),this._model.azureAccount=e[0],this._azureAccountsDropdown.loading=!1,await this.populateAzureSubscriptionsDropdown()):this._model.wizard.showErrorMessage("Sign in to an Azure account first")}async createAzureSubscriptionsDropdown(e){this._azureSubscriptionsDropdown=e.modelBuilder.dropDown().withProps({}).component(),this._azureSubscriptionsDropdown.onValueChanged((async e=>{if(!this._azureSubscriptionsDropdown.value)return;let t=this._azureSubscriptionsDropdown.value;this._model.azureSubscription=t.name,this._model.azureSubscriptionDisplayName=t.displayName,this._model.securityToken=await r.accounts.getAccountSecurityToken(this._model.azureAccount,this._subscriptionsMap.get(t.name)?.tenant,r.AzureResource.ResourceManagement),this.populateResourceGroupDropdown(),this.populateAzureRegionsDropdown()}))}async populateAzureSubscriptionsDropdown(){this._azureSubscriptionsDropdown.loading=!0;let e=o.apiService.azurecoreApi,t=this._azureAccountsDropdown.value;if(void 0===t)return this._azureSubscriptionsDropdown.loading=!1,await this.populateResourceGroupDropdown(),void await this.populateAzureRegionsDropdown();let n=this._accountsMap.get(t.name),i=(await e.getSubscriptions(n,!0)).subscriptions;if(void 0===i||0===i.length)return this._azureSubscriptionsDropdown.updateProperties({values:[]}),this._azureSubscriptionsDropdown.loading=!1,await this.populateResourceGroupDropdown(),void await this.populateAzureRegionsDropdown();i.sort(((e,t)=>e.name.toLocaleLowerCase().localeCompare(t.name.toLocaleLowerCase()))),this._model.addDropdownValues(this._azureSubscriptionsDropdown,i.map((e=>{let t={displayName:e.name+" - "+e.id,name:e.id};return this._subscriptionsMap.set(t.name,e),t}))),this._model.azureSubscription=this._azureSubscriptionsDropdown.value.name,this._model.azureSubscriptionDisplayName=this._azureSubscriptionsDropdown.value.displayName,this._model.securityToken=await r.accounts.getAccountSecurityToken(this._model.azureAccount,this._subscriptionsMap.get(this._azureSubscriptionsDropdown.value.name)?.tenant,r.AzureResource.ResourceManagement),this._azureSubscriptionsDropdown.loading=!1,await this.populateResourceGroupDropdown(),await this.populateAzureRegionsDropdown()}async createResourceDropdown(e){this._resourceGroupDropdown=e.modelBuilder.dropDown().withProps({required:!0}).component(),this._resourceGroupDropdown.onValueChanged((async e=>{this._model.azureResouceGroup=e.selected}))}async populateResourceGroupDropdown(){this._resourceGroupDropdown.loading=!0;let e=o.apiService.azurecoreApi,t=this._azureSubscriptionsDropdown.value;if(void 0===t||""===t.displayName)return this._resourceGroupDropdown.updateProperties({values:[]}),void(this._resourceGroupDropdown.loading=!1);let n=this._subscriptionsMap.get(t.name),r=(await e.getResourceGroups(this._model.azureAccount,n,!0)).resourceGroups;if(void 0===r||0===r.length)return this._resourceGroupDropdown.loading=!1,void this._resourceGroupDropdown.updateProperties({values:[]});r.sort(((e,t)=>e.name.toLocaleLowerCase().localeCompare(t.name.toLocaleLowerCase()))),this._resourceGroupDropdown.updateProperties({values:r.map((e=>({displayName:e.name,name:e.name})))}),this._model.azureResouceGroup=this._resourceGroupDropdown.value.name,this._resourceGroupDropdown.loading=!1}async createAzureRegionsDropdown(e){this._azureRegionsDropdown=e.modelBuilder.dropDown().withProps({required:!0}).component(),this._azureRegionsDropdown.onValueChanged((e=>{this._azureRegionsDropdown.value&&(this._model.azureRegion=this._azureRegionsDropdown.value.name)}))}async populateAzureRegionsDropdown(){this._azureRegionsDropdown.loading=!0;let e=`https://management.azure.com/subscriptions/${this._model.azureSubscription}/locations?api-version=2020-01-01`;const t=await this._model.getRequest(e,!1);t.data.value=t.data.value.sort(((e,t)=>e.displayName>t.displayName?1:-1)),this._model.addDropdownValues(this._azureRegionsDropdown,t.data.value.filter((e=>l.includes(e.name))).map((e=>({displayName:e.displayName,name:e.name})))),this._model.azureRegion=this._azureRegionsDropdown.value.name,this._azureRegionsDropdown.loading=!1}}t.AzureSettingsPage=u},6070:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasePage=void 0;const r=n(482);class i extends r.ResourceTypePage{initialize(){throw new Error("Method not implemented.")}async validatePage(){return""}activateRealTimeFormValidation(){this.liveValidation&&this.validatePage()}}t.BasePage=i},7861:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkSettingsPage=void 0;const r=n(3597),i=n(6070),o=n(3403).loadMessageBundle(n(1017).join(__dirname,"ui/deployAzureSQLVMWizard/pages/networkSettingsPage.ts"));class a extends i.BasePage{constructor(e){super(r.NetworkSettingsPageTitle,r.NetworkSettingsPageDescription,e.wizard),this._model=e}async initialize(){this.pageObject.registerContent((async e=>(await Promise.all([this.createVirtualNetworkDropdown(e),this.createSubnetDropdown(e),this.createPublicIPDropdown(e),this.createVmRDPAllowCheckbox(e)]),this._form=e.modelBuilder.formContainer().withFormItems([{component:this._model.createFormRowComponent(e,r.VirtualNetworkDropdownLabel,"",this._virtualNetworkFlexContainer,!0)},{component:this._model.createFormRowComponent(e,r.SubnetDropdownLabel,"",this._subnetFlexContainer,!0)},{component:this._model.createFormRowComponent(e,r.PublicIPDropdownLabel,"",this._publicIpFlexContainer,!0)},{component:this._vmRDPAllowCheckbox}],{horizontal:!1,componentWidth:"100%"}).withLayout({width:"100%"}).component(),e.initializeModel(this._form))))}async onEnter(){this.populateVirtualNetworkDropdown(),this.populatePublicIpkDropdown(),this.liveValidation=!1,this._model.wizard.wizardObject.registerNavigationValidator((async e=>e.newPage<e.lastPage||(this.liveValidation=!0,""===await this.validatePage())))}async onLeave(){this._model.wizard.wizardObject.registerNavigationValidator((e=>!0))}async createVirtualNetworkDropdown(e){this._newVirtualNetworkCheckbox=e.modelBuilder.checkBox().withProps({label:r.NetworkSettingsNewVirtualNetwork,checked:!1}).component(),this._newVirtualNetworkCheckbox.onChanged((e=>{this.toggleNewVirtualNetwork()})),this._virtualNetworkDropdown=e.modelBuilder.dropDown().withProps({width:r.standardWidth,required:!0}).component(),this._virtualNetworkDropdown.onValueChanged((e=>{this._virtualNetworkDropdown.value&&(this._model.virtualNetworkName=this._virtualNetworkDropdown.value.name,this.populateSubnetDropdown())})),this._newVirtualNetworkText=e.modelBuilder.inputBox().withProps({width:r.standardWidth,required:!0,placeHolder:o(0,null)}).component(),this._newVirtualNetworkText.onTextChanged((e=>{this._model.virtualNetworkName=e,this.activateRealTimeFormValidation()})),this._virtualNetworkFlexContainer=e.modelBuilder.flexContainer().withLayout({flexFlow:"column"}).withItems([this._virtualNetworkDropdown,this._newVirtualNetworkText,this._newVirtualNetworkCheckbox]).component()}async populateVirtualNetworkDropdown(){this._virtualNetworkDropdown.loading=!0;let e=await this.getVirtualNetworks();e&&0!==e.length?(this._virtualNetworkDropdown.updateProperties({values:e}),this._newVirtualNetworkCheckbox.enabled=!0,this.toggleNewVirtualNetwork()):(e=[{displayName:"None",name:"None"}],this._virtualNetworkDropdown.updateProperties({values:e}),this._newVirtualNetworkCheckbox.checked=!0,this._newVirtualNetworkCheckbox.enabled=!1,this.toggleNewVirtualNetwork()),this._virtualNetworkDropdown.loading=!1,await this.populateSubnetDropdown()}toggleNewVirtualNetwork(){let e=this._newVirtualNetworkCheckbox.checked;this._model.newVirtualNetwork=e?"True":"False",e?(this._model.changeComponentDisplay(this._virtualNetworkDropdown,"none"),this._model.changeComponentDisplay(this._newVirtualNetworkText,"block"),this._newSubnetCheckbox.enabled=!1,this._model.changeComponentDisplay(this._subnetDropdown,"none"),this._model.changeComponentDisplay(this._newsubnetText,"block"),this._model.virtualNetworkName=this._newVirtualNetworkText.value,this._model.newSubnet="True",this._model.subnetName=this._newsubnetText.value):(this._model.changeComponentDisplay(this._virtualNetworkDropdown,"block"),this._model.changeComponentDisplay(this._newVirtualNetworkText,"none"),this._newSubnetCheckbox.enabled=!0,this._model.changeComponentDisplay(this._subnetDropdown,"block"),this._model.changeComponentDisplay(this._newsubnetText,"none"),this._model.virtualNetworkName=this._virtualNetworkDropdown.value.name,this._model.newSubnet=this._newSubnetCheckbox.checked?"True":"False")}async createSubnetDropdown(e){this._newSubnetCheckbox=e.modelBuilder.checkBox().withProps({label:r.NetworkSettingsNewSubnet,checked:!1}).component(),this._newSubnetCheckbox.onChanged((e=>{this.toggleNewSubnet()})),this._subnetDropdown=e.modelBuilder.dropDown().withProps({width:r.standardWidth,required:!0}).component(),this._subnetDropdown.onValueChanged((e=>{this._subnetDropdown.value&&(this._model.subnetName=this._subnetDropdown.value.name)})),this._newsubnetText=e.modelBuilder.inputBox().withProps({width:r.standardWidth,required:!0,placeHolder:o(1,null)}).component(),this._newsubnetText.onTextChanged((e=>{this._model.subnetName=e,this.activateRealTimeFormValidation()})),this._subnetFlexContainer=e.modelBuilder.flexContainer().withLayout({flexFlow:"column"}).withItems([this._subnetDropdown,this._newsubnetText,this._newSubnetCheckbox]).component()}async populateSubnetDropdown(){this._subnetDropdown.loading=!0;let e=await this.getSubnets();e&&0!==e.length?(this._subnetDropdown.updateProperties({values:e}),this._newSubnetCheckbox.enabled=!0,this.toggleNewSubnet()):(e=[{displayName:"None",name:"None"}],this._subnetDropdown.updateProperties({values:e}),this._newSubnetCheckbox.checked=!0,this._newSubnetCheckbox.enabled=!1,this.toggleNewSubnet()),this._subnetDropdown.loading=!1}toggleNewSubnet(){let e=this._newSubnetCheckbox.checked;this._model.newSubnet=e?"True":"False",e?(this._model.changeComponentDisplay(this._subnetDropdown,"none"),this._model.changeComponentDisplay(this._newsubnetText,"block"),this._model.subnetName=this._newsubnetText.value):(this._model.changeComponentDisplay(this._subnetDropdown,"block"),this._model.changeComponentDisplay(this._newsubnetText,"none"),this._model.subnetName=this._subnetDropdown.value.name)}async createPublicIPDropdown(e){this._newPublicIpCheckbox=e.modelBuilder.checkBox().withProps({label:r.NetworkSettingsNewPublicIp,checked:!1}).component(),this._newPublicIpCheckbox.onChanged((e=>{this.toggleNewPublicIp()})),this._publicIpDropdown=e.modelBuilder.dropDown().withProps({required:!0,width:r.standardWidth}).component(),this._publicIpDropdown.onValueChanged((e=>{this._publicIpDropdown.value&&(this._model.publicIpName=this._publicIpDropdown.value.name)})),this._publicIpNetworkText=e.modelBuilder.inputBox().withProps({placeHolder:o(2,null),width:r.standardWidth}).component(),this._publicIpNetworkText.onTextChanged((e=>{this._model.publicIpName=e,this.activateRealTimeFormValidation()})),this._model.changeComponentDisplay(this._publicIpNetworkText,"none"),this._publicIpFlexContainer=e.modelBuilder.flexContainer().withLayout({flexFlow:"column"}).withItems([this._publicIpDropdown,this._publicIpNetworkText,this._newPublicIpCheckbox]).component()}async populatePublicIpkDropdown(){this._publicIpDropdown.loading=!0;let e=await this.getPips();e&&0!==e.length?(this._publicIpDropdown.updateProperties({values:e}),this._newPublicIpCheckbox.enabled=!0,this.toggleNewPublicIp()):(e=[{displayName:"None",name:"None"}],this._publicIpDropdown.updateProperties({values:e}),this._newPublicIpCheckbox.checked=!0,this._newPublicIpCheckbox.enabled=!1,this.toggleNewPublicIp()),this._publicIpDropdown.loading=!1}toggleNewPublicIp(){let e=this._newPublicIpCheckbox.checked;this._model.newPublicIp=e?"True":"False",e?(this._model.changeComponentDisplay(this._publicIpDropdown,"none"),this._model.changeComponentDisplay(this._publicIpNetworkText,"block"),this._model.publicIpName=this._publicIpNetworkText.value):(this._model.changeComponentDisplay(this._publicIpDropdown,"block"),this._model.changeComponentDisplay(this._publicIpNetworkText,"none"),this._model.publicIpName=this._publicIpDropdown.value.name)}async createVmRDPAllowCheckbox(e){this._vmRDPAllowCheckbox=e.modelBuilder.checkBox().withProps({label:r.RDPAllowCheckboxLabel}).component(),this._vmRDPAllowCheckbox.onChanged((e=>{this._model.allowRDP=e?"True":"False"})),this._model.allowRDP="False"}async getVirtualNetworks(){let e=`https://management.azure.com/subscriptions/${this._model.azureSubscription}/providers/Microsoft.Network/virtualNetworks?api-version=2020-05-01`;return(await this._model.getRequest(e)).data.value.filter((e=>e.location===this._model.azureRegion)).map((e=>{let t=e.id.replace(RegExp("^(.*?)/resourceGroups/"),"").replace(RegExp("/providers/.*"),"");return{name:e.id,displayName:`${e.name} \t\t resource group: (${t})`}}))}async getSubnets(){if(!this._model.virtualNetworkName)return;let e=`https://management.azure.com${this._model.virtualNetworkName}/subnets?api-version=2020-05-01`;return(await this._model.getRequest(e)).data.value.map((e=>({name:e.id,displayName:`${e.name}`})))}async getPips(){let e=`https://management.azure.com/subscriptions/${this._model.azureSubscription}/providers/Microsoft.Network/publicIPAddresses?api-version=2020-05-01`;return(await this._model.getRequest(e)).data.value.filter((e=>e.location===this._model.azureRegion)).map((e=>{let t=e.id.replace(RegExp("^(.*?)/resourceGroups/"),"").replace(RegExp("/providers/.*"),"");return{name:e.id,displayName:`${e.name} \t\t resource group: (${t})`}}))}async validatePage(){const e=[];return"True"===this._model.newVirtualNetwork?(this._model.virtualNetworkName.length<2||this._model.virtualNetworkName.length>64)&&e.push(o(3,null)):"None"===this._model.virtualNetworkName&&e.push(o(4,null)),"True"===this._model.newSubnet?(this._model.subnetName.length<1||this._model.subnetName.length>80)&&e.push(o(5,null)):"None"===this._model.subnetName&&e.push(o(6,null)),"True"===this._model.newPublicIp?(this._model.publicIpName.length<1||this._model.publicIpName.length>80)&&e.push(o(7,null)):"None"===this._model.publicIpName&&e.push(o(8,null)),this._model.wizard.showErrorMessage(e.join("\n")),e.join("\n")}}t.NetworkSettingsPage=a},7123:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SqlServerSettingsPage=void 0;const r=n(2037),i=n(3597),o=n(6070),a=n(3403),s=n(5760),c=a.loadMessageBundle(n(1017).join(__dirname,"ui/deployAzureSQLVMWizard/pages/sqlServerSettingsPage.ts"));class l extends o.BasePage{constructor(e){super(i.SqlServerSettingsPageTitle,"",e.wizard),this._model=e}async initialize(){this.pageObject.registerContent((async e=>(await Promise.all([this.createSqlConnectivityDropdown(e),this.createPortText(e),this.createSqlAuthentication(e)]),this._form=e.modelBuilder.formContainer().withFormItems([{component:this._model.createFormRowComponent(e,i.SqlConnectivityTypeDropdownLabel,"",this._sqlConnectivityDropdown,!0)},{component:this._portTextRow},{component:this._model.createFormRowComponent(e,i.SqlEnableSQLAuthenticationLabel,"",this._sqlAuthenticationDropdown,!0)},{component:this._sqlAuthenticationTextRow},{component:this._sqlAuthenticationPasswordTextRow},{component:this._sqlAuthenticationPasswordConfirmationTextRow}],{horizontal:!1,componentWidth:"100%"}).withLayout({width:"100%"}).component(),e.initializeModel(this._form))))}async onEnter(){this.liveValidation=!1,this._model.wizard.wizardObject.registerNavigationValidator((async e=>e.newPage<e.lastPage||(this.liveValidation=!0,""===await this.validatePage())))}async onLeave(){this._model.wizard.wizardObject.registerNavigationValidator((e=>!0))}createSqlConnectivityDropdown(e){const t=c(0,null);this._sqlConnectivityDropdown=e.modelBuilder.dropDown().withProps({values:[{name:"local",displayName:c(1,null)},{name:"private",displayName:t},{name:"public",displayName:c(2,null)}],value:{name:"private",displayName:t}}).component(),this._model.sqlConnectivityType=this._sqlConnectivityDropdown.value.name,this._sqlConnectivityDropdown.onValueChanged((e=>{let t=this._sqlConnectivityDropdown.value.name;this._model.sqlConnectivityType=t,"local"===t?this._model.changeRowDisplay(this._portTextRow,"none"):this._model.changeRowDisplay(this._portTextRow,"block")}))}createPortText(e){this._portTextBox=e.modelBuilder.inputBox().withProps({inputType:"number",max:65535,min:1024,value:"1433"}).component(),this._portTextBox.onTextChanged((e=>{this._model.port=e,this.activateRealTimeFormValidation()})),this._portTextRow=this._model.createFormRowComponent(e,i.SqlPortLabel,"",this._portTextBox,!0)}createSqlAuthentication(e){this._sqlAuthenticationDropdown=e.modelBuilder.dropDown().withProps({values:[{displayName:s.yes,name:"True"},{displayName:s.no,name:"False"}]}).component(),this._sqlAuthenticationDropdown.onValueChanged((e=>{let t=this._sqlAuthenticationDropdown.value.name,n="True"===t?"block":"none";this._model.changeRowDisplay(this._sqlAuthenticationTextRow,n),this._model.changeRowDisplay(this._sqlAuthenticationPasswordTextRow,n),this._model.changeRowDisplay(this._sqlAuthenticationPasswordConfirmationTextRow,n),this._model.enableSqlAuthentication=t})),this._model.enableSqlAuthentication=this._sqlAuthenticationDropdown.value.name,this._sqlAuthenticationTextbox=e.modelBuilder.inputBox().component(),this._sqlAuthenticationTextRow=this._model.createFormRowComponent(e,i.SqlAuthenticationUsernameLabel,"",this._sqlAuthenticationTextbox,!0),this._sqlAuthenticationPasswordTextbox=e.modelBuilder.inputBox().withProps({inputType:"password"}).component(),this._sqlAuthenticationPasswordTextRow=this._model.createFormRowComponent(e,i.SqlAuthenticationPasswordLabel,"",this._sqlAuthenticationPasswordTextbox,!0),this._sqlAuthenticationPasswordConfirmationTextbox=e.modelBuilder.inputBox().withProps({inputType:"password"}).component(),this._sqlAuthenticationPasswordConfirmationTextRow=this._model.createFormRowComponent(e,i.SqlAuthenticationConfirmPasswordLabel,"",this._sqlAuthenticationPasswordConfirmationTextbox,!0),this._sqlAuthenticationTextbox.onTextChanged((e=>{this._model.sqlAuthenticationUsername=e,this.activateRealTimeFormValidation()})),this._sqlAuthenticationPasswordTextbox.onTextChanged((e=>{this._model.sqlAuthenticationPassword=e,this.activateRealTimeFormValidation()}))}async validatePage(){const e=[];if("True"===this._sqlAuthenticationDropdown.value.name){let t=this._sqlAuthenticationTextbox.value;(t.length<2||t.length>128)&&e.push(c(3,null)),/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]+/.test(t)&&e.push(c(4,null)),e.push(this._model.validatePassword(this._sqlAuthenticationPasswordTextbox.value)),this._sqlAuthenticationPasswordTextbox.value!==this._sqlAuthenticationPasswordConfirmationTextbox.value&&e.push(c(5,null))}return this._model.wizard.showErrorMessage(e.join(r.EOL)),e.join(r.EOL)}}t.SqlServerSettingsPage=l},1237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureSQLVMSummaryPage=void 0;const r=n(3597),i=n(1009),o=n(5694),a=n(6070);class s extends a.BasePage{constructor(e){super("Summary","",e.wizard),this._model=e,this.formItems=[]}async initialize(){this.pageObject.registerContent((async e=>(this._view=e,this._form=e.modelBuilder.formContainer(),e.initializeModel(this._form.withLayout({width:"100%"}).component()))))}async onEnter(){this.formItems.forEach((e=>{this._form.removeFormItem(e)})),this.formItems=[];const e="150px",t="400px",n="20px",a={labelPosition:"left",labelWidth:e,inputWidth:t,fieldHeight:n,spaceBetweenFields:"0",title:r.AzureSettingsPageTitle,rows:[{items:[{type:i.FieldType.ReadonlyText,label:r.AzureAccountDropdownLabel,defaultValue:this._model.azureAccount.displayInfo.displayName,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]},{items:[{type:i.FieldType.ReadonlyText,label:r.AzureAccountSubscriptionDropdownLabel,defaultValue:this._model.azureSubscriptionDisplayName,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]},{items:[{type:i.FieldType.ReadonlyText,label:r.AzureAccountResourceGroupDropdownLabel,defaultValue:this._model.azureResouceGroup,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]},{items:[{type:i.FieldType.ReadonlyText,label:r.AzureAccountRegionDropdownLabel,defaultValue:this._model.azureRegion,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]}]},s={labelPosition:"left",labelWidth:e,inputWidth:t,fieldHeight:n,title:r.VmSettingsPageTitle,rows:[{items:[{type:i.FieldType.ReadonlyText,label:r.VmNameTextBoxLabel,defaultValue:this._model.vmName,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]},{items:[{type:i.FieldType.ReadonlyText,label:r.SqlAuthenticationUsernameLabel,defaultValue:this._model.vmUsername,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]},{items:[{type:i.FieldType.ReadonlyText,label:r.VmImageDropdownLabel,defaultValue:this._model.vmImage,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]},{items:[{type:i.FieldType.ReadonlyText,label:r.VmSkuDropdownLabel,defaultValue:this._model.vmImageSKU,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]},{items:[{type:i.FieldType.ReadonlyText,label:r.VmVersionDropdownLabel,defaultValue:this._model.vmImageVersion,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]},{items:[{type:i.FieldType.ReadonlyText,label:r.VmSizeDropdownLabel,defaultValue:this._model.vmSize,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]}]},c={labelPosition:"left",labelWidth:e,inputWidth:t,fieldHeight:n,title:r.NetworkSettingsPageTitle,rows:[{items:[{type:i.FieldType.ReadonlyText,label:r.VirtualNetworkDropdownLabel,defaultValue:("True"===this._model.newVirtualNetwork?"(new) ":"")+this.processVnetName(),labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]},{items:[{type:i.FieldType.ReadonlyText,label:r.SubnetDropdownLabel,defaultValue:("True"===this._model.newSubnet?"(new) ":"")+this.processSubnetName(),labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]},{items:[{type:i.FieldType.ReadonlyText,label:r.PublicIPDropdownLabel,defaultValue:("True"===this._model.newPublicIp?"(new) ":"")+this.processPublicIp(),labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]}]},l={labelPosition:"left",labelWidth:e,inputWidth:t,fieldHeight:n,title:r.SqlServerSettingsPageTitle,rows:[]};l.rows?.push({items:[{type:i.FieldType.ReadonlyText,label:r.SqlConnectivityTypeDropdownLabel,defaultValue:this._model.sqlConnectivityType,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]}),"local"!==this._model.sqlConnectivityType&&l.rows?.push({items:[{type:i.FieldType.ReadonlyText,label:r.SqlPortLabel,defaultValue:r.SqlPortLabel,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]}),l.rows?.push({items:[{type:i.FieldType.ReadonlyText,label:r.SqlEnableSQLAuthenticationLabel,defaultValue:"True"===this._model.enableSqlAuthentication?"Yes ":"No ",labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]}),"True"===this._model.enableSqlAuthentication&&l.rows?.push({items:[{type:i.FieldType.ReadonlyText,label:r.SqlAuthenticationUsernameLabel,defaultValue:this._model.sqlAuthenticationUsername,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]});const u=async e=>({title:"",component:await(0,o.createSection)({container:this.wizard.wizardObject,inputComponents:{},sectionInfo:e,view:this._view,onNewDisposableCreated:()=>{},onNewInputComponentCreated:()=>{},onNewValidatorCreated:()=>{},toolsService:this.wizard.toolsService})}),p=await u(a),d=await u(s),f=await u(c),h=await u(l);this.formItems.push(p,d,f,h),this._form.addFormItems(this.formItems),this.wizard.wizardObject.registerNavigationValidator((e=>!0))}async onLeave(){this.wizard.wizardObject.registerNavigationValidator((e=>!0))}createSummaryRow(e,t,n){const r=e.modelBuilder.text().withProps({value:t,width:"250px"}).component();return r.updateCssStyles({"font-weight":"400","font-size":"13px"}),e.modelBuilder.flexContainer().withLayout({flexFlow:"row",alignItems:"center"}).withItems([r,n],{CSSStyles:{"margin-right":"5px"}}).component()}processVnetName(){return"True"===this._model.newVirtualNetwork?this._model.virtualNetworkName:`(${this._model.virtualNetworkName.replace(RegExp("^(.*?)/resourceGroups/"),"").replace(RegExp("/providers/.*"),"")}) ${this._model.virtualNetworkName.replace(RegExp("^(.*?)/virtualNetworks/"),"")}`}processSubnetName(){return"True"===this._model.newSubnet?this._model.subnetName:`${this._model.subnetName.replace(RegExp("^(.*?)/subnets/"),"")}`}processPublicIp(){return"True"===this._model.newPublicIp?this._model.publicIpName:`(${this._model.publicIpName.replace(RegExp("^(.*?)/resourceGroups/"),"").replace(RegExp("/providers/.*"),"")}) ${this._model.publicIpName.replace(RegExp("^(.*?)/publicIPAddresses/"),"")}`}}t.AzureSQLVMSummaryPage=s},8531:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VmSettingsPage=void 0;const r=n(2037),i=n(3597),o=n(3403),a=n(6070),s=o.loadMessageBundle(n(1017).join(__dirname,"ui/deployAzureSQLVMWizard/pages/vmSettingsPage.ts"));class c extends a.BasePage{constructor(e){super(i.VmSettingsPageTitle,"",e.wizard),this._model=e,this._vmSize=[]}async initialize(){this.pageObject.registerContent((async e=>(await Promise.all([this.createVmNameTextBox(e),this.createAdminUsernameTextBox(e),this.createAdminPasswordTextBox(e),this.createAdminPasswordConfirmTextBox(e),this.createVmImageDropdown(e),this.createVMImageSkuDropdown(e),this.createVMImageVersionDropdown(e),this.createVmSizeDropdown(e)]),this.liveValidation=!1,this._form=e.modelBuilder.formContainer().withFormItems([{component:this._model.createFormRowComponent(e,i.VmNameTextBoxLabel,"",this._vmNameTextBox,!0)},{component:this._model.createFormRowComponent(e,i.VmAdminUsernameTextBoxLabel,"",this._adminUsernameTextBox,!0)},{component:this._model.createFormRowComponent(e,i.VmAdminPasswordTextBoxLabel,"",this._adminPasswordTextBox,!0)},{component:this._model.createFormRowComponent(e,i.VmAdminConfirmPasswordTextBoxLabel,"",this._adminComfirmPasswordTextBox,!0)},{component:this._model.createFormRowComponent(e,i.VmImageDropdownLabel,"",this._vmImageDropdown,!0)},{component:this._model.createFormRowComponent(e,i.VmSkuDropdownLabel,"",this._vmImageSkuDropdown,!0)},{component:this._model.createFormRowComponent(e,i.VmVersionDropdownLabel,"",this._vmImageVersionDropdown,!0)},{component:this._model.createFormRowComponent(e,i.VmSizeDropdownLabel,"",this._vmSizeDropdown,!0)},{component:this._vmSizeLearnMoreLink}],{horizontal:!1,componentWidth:"100%"}).withLayout({width:"100%"}).component(),e.initializeModel(this._form))))}async onEnter(){this.populateVmImageDropdown(),this.populateVmSizeDropdown(),this.liveValidation=!1,this.wizard.wizardObject.registerNavigationValidator((async e=>(this.liveValidation=!0,e.newPage<e.lastPage||""===await this.validatePage())))}async onLeave(){this.wizard.wizardObject.registerNavigationValidator((e=>!0))}async createVmNameTextBox(e){this._vmNameTextBox=e.modelBuilder.inputBox().withProps({}).component(),this._vmNameTextBox.onTextChanged((e=>{this._model.vmName=e,this.activateRealTimeFormValidation()}))}async createAdminUsernameTextBox(e){this._adminUsernameTextBox=e.modelBuilder.inputBox().withProps({}).component(),this._adminUsernameTextBox.onTextChanged((e=>{this._model.vmUsername=e,this.activateRealTimeFormValidation()}))}async createAdminPasswordTextBox(e){this._adminPasswordTextBox=e.modelBuilder.inputBox().withProps({inputType:"password"}).component(),this._adminPasswordTextBox.onTextChanged((e=>{this._model.vmPassword=e,this.activateRealTimeFormValidation()}))}async createAdminPasswordConfirmTextBox(e){this._adminComfirmPasswordTextBox=e.modelBuilder.inputBox().withProps({inputType:"password"}).component(),this._adminComfirmPasswordTextBox.onTextChanged((e=>{this.activateRealTimeFormValidation()}))}async createVmImageDropdown(e){this._vmImageDropdown=e.modelBuilder.dropDown().withProps({}).component(),this._vmImageDropdown.onValueChanged((e=>{this._vmImageDropdown.value&&(this._model.vmImage=this._vmImageDropdown.value.name,this._vmImageSkuDropdown.loading=!0,this._vmImageVersionDropdown.loading=!0,this.populateVmImageSkuDropdown())}))}async populateVmImageDropdown(){this._vmImageDropdown.loading=!0,this._vmImageSkuDropdown.loading=!0,this._vmImageVersionDropdown.loading=!0;let e=`https://management.azure.com/subscriptions/${this._model.azureSubscription}/providers/Microsoft.Compute/locations/${this._model.azureRegion}/publishers/MicrosoftSQLServer/artifacttypes/vmimage/offers?api-version=2019-12-01`,t=await this._model.getRequest(e,!0);t.data=t.data.reverse(),this._model.addDropdownValues(this._vmImageDropdown,t.data.filter((e=>!new RegExp("-byol").test(e.name.toLowerCase()))).map((e=>{let t=e.name.toLowerCase().match(new RegExp("sql(.*?)-"))[1],n=e.name.toLowerCase().replace(new RegExp("sql(.*?)-"),"");return n=n.replace(new RegExp("ws"),"Windows Server "),n=n.replace(new RegExp("ubuntu"),"Ubuntu Server "),n=n.replace(new RegExp("sles"),"SUSE Linux Enterprise Server (SLES) "),n=n.replace(new RegExp("rhel"),"Red Hat Enterprise Linux "),{displayName:`SQL Server ${t.toUpperCase()} on ${n}`,name:e.name}}))),this._model.vmImage=this._vmImageDropdown.value.name,this._vmImageDropdown.loading=!1,this.populateVmImageSkuDropdown()}async createVMImageSkuDropdown(e){this._vmImageSkuDropdown=e.modelBuilder.dropDown().withProps({}).component(),this._vmImageSkuDropdown.onValueChanged((e=>{this._vmImageSkuDropdown.value&&(this._model.vmImageSKU=this._vmImageSkuDropdown.value.name,this.populateVmImageVersionDropdown())}))}async populateVmImageSkuDropdown(){this._vmImageSkuDropdown.loading=!0;let e=`https://management.azure.com/subscriptions/${this._model.azureSubscription}/providers/Microsoft.Compute/locations/${this._model.azureRegion}/publishers/MicrosoftSQLServer/artifacttypes/vmimage/offers/${this._model.vmImage}/skus?api-version=2019-12-01`,t=await this._model.getRequest(e,!0);this._model.addDropdownValues(this._vmImageSkuDropdown,t.data.map((e=>({name:e.name,displayName:e.name})))),this._model.vmImageSKU=this._vmImageSkuDropdown.value.name,this._vmImageSkuDropdown.loading=!1,this.populateVmImageVersionDropdown()}async createVMImageVersionDropdown(e){this._vmImageVersionDropdown=e.modelBuilder.dropDown().withProps({}).component(),this._vmImageVersionDropdown.onValueChanged((e=>{this._vmImageVersionDropdown.value&&(this._model.vmImageVersion=this._vmImageVersionDropdown.value.name)}))}async populateVmImageVersionDropdown(){this._vmImageVersionDropdown.loading=!0;let e=`https://management.azure.com/subscriptions/${this._model.azureSubscription}/providers/Microsoft.Compute/locations/${this._model.azureRegion}/publishers/MicrosoftSQLServer/artifacttypes/vmimage/offers/${this._model.vmImage}/skus/${this._model.vmImageSKU}/versions?api-version=2019-12-01`,t=await this._model.getRequest(e,!0);this._model.addDropdownValues(this._vmImageVersionDropdown,t.data.map((e=>({name:e.name,displayName:e.name})))),this._model.vmImageVersion=this._vmImageVersionDropdown.value.name,this._vmImageVersionDropdown.loading=!1}async createVmSizeDropdown(e){this._vmSizeDropdown=e.modelBuilder.dropDown().withProps({editable:!0}).component(),this._vmSizeDropdown.onValueChanged((e=>{this._model.vmSize=this._vmSizeDropdown.value.name})),this._vmSizeLearnMoreLink=e.modelBuilder.hyperlink().withProps({label:i.VmSizeLearnMoreLabel,url:"https://go.microsoft.com/fwlink/?linkid=2143101"}).component()}async populateVmSizeDropdown(){this._vmSizeDropdown.loading=!0;let e=`https://management.azure.com/subscriptions/${this._model.azureSubscription}/providers/Microsoft.Compute/skus?api-version=2019-04-01&$filter=location eq '${this._model.azureRegion}'`,t=await this._model.getRequest(e,!0),n=[];t.data.value.map((e=>{"virtualMachines"===e.resourceType&&n.push(e)}));let r=n.filter((e=>{if(Number(e.capabilities.filter((e=>"MaxResourceVolumeMB"===e.name))[0].value)/1024>=40)return e})).map((e=>{if(e.capabilities){let t;t=0!==e.capabilities.filter((e=>"vCPUsAvailable"===e.name)).length?e.capabilities.filter((e=>"vCPUsAvailable"===e.name))[0].value:e.capabilities.filter((e=>"vCPUs"===e.name))[0].value;const n=e.capabilities.filter((e=>"MemoryGB"===e.name))[0].value,r=Number(e.capabilities.filter((e=>"MaxResourceVolumeMB"===e.name))[0].value)/1024,i=e.capabilities.filter((e=>"MaxDataDiskCount"===e.name))[0].value,o=`${e.name}\tCores: ${t}\tMemory: ${n}GB\tdiscCount: ${i}\tdiscSize: ${r}GB`;return this._vmSize.push(o),{name:e.name,displayName:o}}}));r.sort(((e,t)=>e.displayName>t.displayName?1:-1)),this._vmSize=[],this._vmSizeDropdown.updateProperties({values:r,value:r[0],width:"480px"}),this._model.vmSize=this._vmSizeDropdown.value.name,this._vmSizeDropdown.loading=!1}async validatePage(){const e=[];let t=this._model.vmName;t.length<1&&t.length>15&&e.push(s(0,null)),/^\d+$/.test(t)&&e.push(s(1,null)),"_"!==t.charAt(0)&&"."!==t.slice(-1)&&"-"!==t.slice(-1)||e.push(s(2,null)),/[\\\/"\'\[\]:\|<>\+=;,\?\*@\&,]/g.test(t)&&e.push(s(3,null)),await this.vmNameExists(t)&&e.push(s(4,null));let n=this._model.vmUsername;return(n.length<1||n.length>20)&&e.push(s(5,null)),"."===n.slice(-1)&&e.push(s(6,null)),/[\\\/"\'\[\]:\|<>\+=;,\?\*@\&]/g.test(n)&&e.push(s(7,null)),["administrator","admin","user","user1","test","user2","test1","user3","admin1","1","123","a","actuser","adm","admin2","aspnet","backup","console","david","guest","john","owner","root","server","sql","support","support_388945a0","sys","test2","test3","user4","user5"].includes(n)&&e.push(s(8,null)),e.push(this._model.validatePassword(this._model.vmPassword)),this._model.vmPassword!==this._adminComfirmPasswordTextBox.value&&e.push(s(9,null)),this._vmSize.includes(this._vmSizeDropdown.value.name)&&e.push(s(10,null)),this._model.wizard.showErrorMessage(e.join(r.EOL)),e.join(r.EOL)}async vmNameExists(e){const t=`https://management.azure.com/subscriptions/${this._model.azureSubscription}/resourceGroups/${this._model.azureResouceGroup}/providers/Microsoft.Compute/virtualMachines?api-version=2019-12-01`;return(await this._model.getRequest(t,!0)).data.value.map((e=>e.name)).includes(e)}}t.VmSettingsPage=c},6847:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeploymentInputDialog=void 0;const r=n(9072),i=n(2037),o=n(9496),a=n(3403),s=n(1009),c=n(886),l=n(8175),u=n(5694),p=a.loadMessageBundle(n(1017).join(__dirname,"ui/deploymentInputDialog.ts")),d="SYS_NotebookType";class f extends c.DialogBase{constructor(e,t,n,r){let i;super(r.title,r.name,!1),this.notebookService=e,this.platformService=t,this.toolsService=n,this.dialogInfo=r,this.inputComponents={},i=r.actionText?r.actionText:(0,s.instanceOfNotebookBasedDialogInfo)(r)&&!r.runNotebook?p(0,null):p(1,null),this._dialogObject.okButton.label=i}initialize(){const e=this,t=[];this.dialogInfo.tabs.length>0&&(0,s.instanceOfNotebookBasedDialogInfo)(this.dialogInfo)&&Array.isArray(this.dialogInfo.notebook)&&this.dialogInfo.tabs[0].sections.push({fields:[{type:s.FieldType.Options,label:p(2,null),options:this.dialogInfo.notebook.map((e=>e.type)),variableName:d}]}),(0,u.initializeDialog)({dialogInfo:this.dialogInfo,container:this._dialogObject,inputComponents:this.inputComponents,onNewDisposableCreated:e=>{this._toDispose.push(e)},onNewInputComponentCreated:(e,t)=>{this.inputComponents[e]=t},onNewValidatorCreated:e=>{t.push(e)},toolsService:this.toolsService}),this._dialogObject.registerCloseValidator((()=>{const n=[];return t.forEach((e=>{const t=e();t.valid||n.push(t.message)})),n.length>0?e._dialogObject.message={level:r.window.MessageLevel.Error,text:n.join(i.EOL)}:e._dialogObject.message={text:""},0===n.length}))}async onComplete(){const e=new l.Model;if(await(0,u.setModelValues)(this.inputComponents,e),(0,s.instanceOfNotebookBasedDialogInfo)(this.dialogInfo))if(e.setEnvironmentVariables(),this.dialogInfo.runNotebook)this.executeNotebook(this.dialogInfo);else{const t=Array.isArray(this.dialogInfo.notebook)?this.dialogInfo.notebook.find((t=>t.type===e.getStringValue(d)))?.path:this.dialogInfo.notebook;this.notebookService.openNotebook(t).catch((e=>{o.window.showErrorMessage(e)}))}else await o.commands.executeCommand(this.dialogInfo.command,e)}executeNotebook(e){this.notebookService.backgroundExecuteNotebook(e.taskName,e.notebook,"deploy",this.platformService)}}t.DeploymentInputDialog=f},886:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DialogBase=void 0;const r=n(9072);t.DialogBase=class{constructor(e,t,n=!1){this._toDispose=[],this._dialogObject=r.window.createModelViewDialog(e,t,n),this._toDispose.push(this._dialogObject.cancelButton.onClick((()=>this.onCancelButtonClicked()))),this._toDispose.push(this._dialogObject.okButton.onClick((()=>this.onOkButtonClicked())))}open(){this.initialize(),r.window.openDialog(this._dialogObject)}onCancelButtonClicked(){this.dispose()}async onOkButtonClicked(){await this.onComplete(),this.dispose()}async onComplete(){}dispose(){this._toDispose.forEach((e=>e.dispose()))}}},8175:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Model=void 0;const r=n(2037),i=n(1009),o=n(8271),a=n(8129),s=n(1017),c=new RegExp(`^${i.NoteBookEnvironmentVariablePrefix}`);t.Model=class{constructor(){this.propValueObject={}}setPropertyValue(e,t){this.propValueObject[e]="boolean"==typeof t?t?"true":"false":"number"==typeof t?t.toString():t}getIntegerValue(e,t=0){const n=this.propValueObject[e];return void 0===n?t:Number.parseInt(n)}getStringValue(e,t){const n=this.propValueObject[e];return void 0===n?t:n}getBooleanValue(e,t=!1){const n=this.propValueObject[e];return void 0===n?t:"true"===n}getCodeCellContentForNotebook(e=[],t=(()=>!0)){const n=Object.keys(this.propValueObject).filter((e=>e.startsWith(i.NoteBookEnvironmentVariablePrefix)&&t(e))).map((e=>{const t=this.escapeForNotebookCodeCell(this.getStringValue(e,""));return`${e.replace(c,"").toLocaleLowerCase()} = '${t}'${r.EOL}`}));n.push(`print('Variables have been set successfully.')${r.EOL}`);const l={};return(0,o.setEnvironmentVariablesForInstallPaths)(e,l),e.forEach((e=>{const t=(0,o.getRuntimeBinaryPathEnvironmentVariableName)(e.name);n.push(`os.environ["${t}"] = "${this.escapeForNotebookCodeCell(l[t])}"${r.EOL}`)})),l[a.ToolsInstallPath]&&n.push(`os.environ["PATH"] = os.environ["PATH"] + "${s.delimiter}" + "${this.escapeForNotebookCodeCell(l[a.ToolsInstallPath])}"${r.EOL}`),n.push(`print('Environment Variables for tools have been set successfully.')${r.EOL}`),n}escapeForNotebookCodeCell(e){return e&&e.replace(/\\/g,"\\\\")}setEnvironmentVariables(e=process.env,t=(()=>!0)){Object.keys(this.propValueObject).filter((e=>e.startsWith(i.NoteBookEnvironmentVariablePrefix)&&t(e))).forEach((t=>{const n=this.getStringValue(t);e[t]=void 0===n?"":n}))}}},5694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInputBoxEmpty=t.setModelValues=t.getPasswordMismatchMessage=t.getInvalidSQLPasswordMessage=t.removeValidationMessage=t.isValidSQLPassword=t.createGroupContainer=t.createFlexContainer=t.createSection=t.initializeWizardPage=t.initializeDialog=t.createDropdownInputInfo=t.createCheckbox=t.createCheckboxInputInfo=t.createNumberInputBoxInputInfo=t.createLabel=t.createInputBoxInputInfo=t.DefaultFieldHeight=t.DefaultFieldWidth=t.DefaultFieldAlignItems=t.DefaultLabelWidth=t.DefaultInputWidth=t.getTextComponent=t.getCheckboxComponent=t.getDropdownComponent=t.getInputBoxComponent=void 0;const r=n(9072),i=n(7147),o=n(2037),a=n(1017),s=n(9496),c=n(3403),l=n(8271),u=n(1009),p=n(5760),d=n(2288),f=n(6123),h=n(5362),m=n(105),v=n(3448),g=n(4909),b=n(7104),y=c.loadMessageBundle(n(1017).join(__dirname,"ui/modelViewUtils.ts"));function _({context:e,inputBoxType:t="text"}){const n=w(e.view,{text:e.fieldInfo.label,description:e.fieldInfo.description,required:e.fieldInfo.required,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),r=e.initialVariableValues?.[e.fieldInfo.variableName||""]?.toString()||e.fieldInfo.defaultValue,i=x(e.view,{type:t,defaultValue:r,ariaLabel:e.fieldInfo.label,required:e.fieldInfo.required,min:e.fieldInfo.min,max:e.fieldInfo.max,placeHolder:e.fieldInfo.placeHolder,width:e.fieldInfo.inputWidth,enabled:!(0,u.instanceOfDynamicEnablementInfo)(e.fieldInfo.enabled)&&e.fieldInfo.enabled,validations:e.fieldValidations});return i.labelComponent=n,N(e.view,e.components,n,i.component,e.fieldInfo),i}function x(e,t){const n=e.modelBuilder.inputBox().withProps({value:t.defaultValue,ariaLabel:t.ariaLabel,inputType:t.type||"text",required:t.required,min:t.min,max:t.max,placeHolder:t.placeHolder,width:t.width,enabled:t.enabled}).withValidation((async e=>await(0,b.validateInputBoxComponent)(e,t.validations))).component();return{component:n,getValue:async()=>n.value,setValue:e=>n.value=e?.toString(),onValueChanged:n.onTextChanged}}function w(e,t){let n={};void 0!==t.cssStyles&&(n=Object.assign(n,t.cssStyles,{"font-style":t.cssStyles.fontStyle||"normal","font-weight":t.cssStyles.fontWeight||"normal"}),void 0!==t.cssStyles.color&&(n.color=t.cssStyles.color));const r=e.modelBuilder.text().withProps({value:t.text,description:t.description,requiredIndicator:t.required,CSSStyles:n,links:t.links}).component();return r.width=t.width,r}function E(e,t){const n=A(e,t);return{component:n,getValue:async()=>n.checked?"true":"false",setValue:e=>n.checked="true"===e?.toString().toLowerCase(),onValueChanged:n.onChanged}}function A(e,t){return e.modelBuilder.checkBox().withProps({checked:t.initialValue,required:t.required,label:t.label}).component()}function S(e,t){const n=e.modelBuilder.dropDown().withProps({values:t.values,value:t.defaultValue,width:t.width,editable:t.editable,fireOnTextChange:!0,required:t.required,ariaLabel:t.label}).component();return{component:n,getValue:async()=>"string"==typeof n.value?n.value:n.value?.name,setValue:e=>X(n,e?.toString()),getDisplayValue:async()=>("string"==typeof n.value?n.value:n.value?.displayName)||"",onValueChanged:n.onValueChanged}}async function T(e){const n=[];if(e.sectionInfo.inputWidth=e.sectionInfo.inputWidth||t.DefaultInputWidth,e.sectionInfo.labelWidth=e.sectionInfo.labelWidth||t.DefaultLabelWidth,e.sectionInfo.fieldAlignItems=e.sectionInfo.fieldAlignItems||t.DefaultFieldAlignItems,e.sectionInfo.fieldWidth=e.sectionInfo.fieldWidth||t.DefaultFieldWidth,e.sectionInfo.fieldHeight=e.sectionInfo.fieldHeight||t.DefaultFieldHeight,e.sectionInfo.fields)await I(e.sectionInfo.fields,n,e);else if(e.sectionInfo.rows)for(const t of e.sectionInfo.rows)n.push(await C(t,e));return O(e.view,n,{header:e.sectionInfo.title,collapsible:void 0===e.sectionInfo.collapsible||e.sectionInfo.collapsible,collapsed:void 0!==e.sectionInfo.collapsed&&e.sectionInfo.collapsed})}async function C(e,t){const n=[];if("items"in e.items[0]){const r=e.items;n.push(...await Promise.all(r.map((e=>C(e,t)))))}else{const r=e.items;await I(r,n,t,void 0===t.sectionInfo.spaceBetweenFields?"50px":t.sectionInfo.spaceBetweenFields)}return P(t.view,n,!0,t.sectionInfo.fieldWidth,t.sectionInfo.fieldHeight,t.sectionInfo.fieldAlignItems,e.cssStyles)}async function I(e,t,n,r){for(let i=0;i<e.length;i++){const o=e[i];o.labelWidth=o.labelWidth||n.sectionInfo.labelWidth,o.inputWidth=o.inputWidth||n.sectionInfo.inputWidth,o.fieldAlignItems=o.fieldAlignItems||n.sectionInfo.fieldAlignItems,o.fieldWidth=o.fieldWidth||n.sectionInfo.fieldWidth,o.fieldHeight=o.fieldHeight||n.sectionInfo.fieldHeight,o.labelPosition=void 0===o.labelPosition?n.sectionInfo.labelPosition:o.labelPosition,await R({view:n.view,onNewDisposableCreated:n.onNewDisposableCreated,onNewInputComponentCreated:n.onNewInputComponentCreated,onNewValidatorCreated:n.onNewValidatorCreated,fieldInfo:o,container:n.container,inputComponents:n.inputComponents,initialVariableValues:n.initialVariableValues,components:t,toolsService:n.toolsService}),r&&i<e.length-1&&t.push(n.view.modelBuilder.divContainer().withLayout({width:r}).component())}}function P(e,t,n=!0,r,i,o,a){o=o||(n?"center":void 0);const s=n?{CSSStyles:{"margin-right":"5px"}}:{},c={flexFlow:n?"row":"column"};return i&&(c.height=i),r&&(c.width=r),o&&(c.alignItems=o),e.modelBuilder.flexContainer().withItems(t,s).withLayout(c).withProps({CSSStyles:a||{}}).component()}function O(e,t,n){return e.modelBuilder.groupContainer().withItems(t).withLayout(n).component()}function N(e,t,n,r,i,o){const a=[n];if(void 0!==r&&a.push(r),o&&o.length>0&&a.push(...o),"left"===i.labelPosition){const n=P(e,a,!0,i.fieldWidth,i.fieldHeight,i.fieldAlignItems);t.push(n)}else t.push(...a)}async function R(e){switch(e.fieldValidations=e.fieldInfo.validations?.map((t=>(0,b.createValidation)(t,(()=>e.inputComponents[e.fieldInfo.variableName||e.fieldInfo.label].getValue()),(t=>e.inputComponents[t].getValue()),(t=>e.inputComponents[t].component.onValidityChanged),(t=>e.onNewDisposableCreated(t))))),e.fieldInfo.type){case u.FieldType.Options:await async function(e){if((0,l.throwUnless)(void 0!==e.fieldInfo.options,p.optionsNotDefined(e.fieldInfo.type)),Array.isArray(e.fieldInfo.options)&&(e.fieldInfo.options={values:e.fieldInfo.options,defaultValue:e.fieldInfo.defaultValue,optionsType:u.OptionsType.Dropdown}),(0,l.throwUnless)("object"==typeof e.fieldInfo.options,p.optionsNotObjectOrArray),(0,l.throwUnless)("optionsType"in e.fieldInfo.options,p.optionsTypeNotFound),e.fieldInfo.options.source?.providerId){try{e.fieldInfo.options.source.provider=await m.optionsSourcesService.getOptionsSource(e.fieldInfo.options.source.providerId)}catch(t){throw D(e.container),e.container.message={text:(0,l.getErrorMessage)(t),description:"",level:r.window.MessageLevel.Error},t}e.fieldInfo.subFields=e.fieldInfo.subFields||[]}let t;const n=e.fieldInfo.options,i=n.source;if(e.fieldInfo.options.optionsType===u.OptionsType.Radio){let o;i?.provider&&(o=async()=>{try{return{defaultValue:n.defaultValue,values:await i.provider.getOptions()}}catch(t){return e.container.message={text:(0,l.getErrorMessage)(t),description:"",level:r.window.MessageLevel.Error},{defaultValue:"",values:[]}}}),t=await async function(e,t){return await z(e,t)}(e,o)}else{if((0,l.throwUnless)(e.fieldInfo.options.optionsType===u.OptionsType.Dropdown,p.optionsTypeRadioOrDropdown),i?.provider)try{e.fieldInfo.options.values=await i.provider.getOptions()}catch(t){e.container.message={text:(0,l.getErrorMessage)(t),description:"",level:r.window.MessageLevel.Error}}t=function(e){const t=w(e.view,{text:e.fieldInfo.label,description:e.fieldInfo.description,required:e.fieldInfo.required,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),n=e.fieldInfo.options,r=e.fieldInfo.variableName&&e.initialVariableValues?.[e.fieldInfo.variableName]?.toString(),i=n.values,o=i&&i.length>0&&"object"==typeof i[0]?i.find((e=>e.name===n.defaultValue)):n.defaultValue,a=r||o,s=S(e.view,{values:n.values,defaultValue:a,width:e.fieldInfo.inputWidth,editable:e.fieldInfo.editable,required:e.fieldInfo.required,label:e.fieldInfo.label});return s.labelComponent=t,s.component.fireOnTextChange=!0,e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,s),N(e.view,e.components,t,s.component,e.fieldInfo),s.component}(e)}if(i?.provider){const n=i.provider;await Promise.all(Object.keys(i?.variableNames??{}).map((async o=>{await async function(e,t,n,i,o){e.fieldInfo.subFields.push({label:e.fieldInfo.label,variableName:t.variableNames[n]}),e.onNewInputComponentCreated(t.variableNames[n],{component:i,isPassword:await o.getIsPassword(n),getValue:async()=>{const t=("string"==typeof i.value?i.value:i.value?.name)||"";try{return await o.getVariableValue(n,t)}catch(t){throw(0,l.isUserCancelledError)(t)||(D(e.container),e.container.message={text:(0,l.getErrorMessage)(t),description:"",level:r.window.MessageLevel.Error}),t}},setValue:e=>{throw new Error("Setting value of radio group isn't currently supported")},onValueChanged:i.onValueChanged})}(e,i,o,t,n)})))}}(e);break;case u.FieldType.DateTimeText:!function(e){e.fieldInfo.defaultValue=e.fieldInfo.defaultValue+(0,l.getDateTimeString)();const t=_({context:e});e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,t)}(e);break;case u.FieldType.Number:!function(e){const t=_({context:e,inputBoxType:"number"});e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,{component:t.component,getValue:async()=>{const e=await t.getValue();return"string"==typeof e&&e.length>0?parseFloat(e):e},setValue:e=>t.component.value=e?.toString(),onValueChanged:t.onValueChanged})}(e);break;case u.FieldType.SQLPassword:case u.FieldType.Password:!function(e){const t=k(e);if(e.fieldInfo.type===u.FieldType.SQLPassword){const n=Q(e.fieldInfo.label);e.onNewDisposableCreated(t.component.onTextChanged((()=>{e.fieldInfo.type===u.FieldType.SQLPassword&&$(t.component.value,e.fieldInfo.userName)&&W(e.container,n)}))),e.onNewValidatorCreated((()=>({valid:$(t.component.value,e.fieldInfo.userName),message:n})))}if(e.fieldInfo.confirmationRequired){const n=K(e.fieldInfo.label),r=w(e.view,{text:e.fieldInfo.confirmationLabel,required:!0,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),i=e.view.modelBuilder.inputBox().withProps({ariaLabel:e.fieldInfo.confirmationLabel,inputType:"password",required:!0,width:e.fieldInfo.inputWidth}).component();N(e.view,e.components,r,i,e.fieldInfo),e.onNewValidatorCreated((()=>({valid:t.component.value===i.value,message:n})));const o=()=>{t.component.value===i.value&&W(e.container,n)};e.onNewDisposableCreated(t.component.onTextChanged((()=>{o()}))),e.onNewDisposableCreated(i.onTextChanged((()=>{o()})))}}(e);break;case u.FieldType.Text:k(e);break;case u.FieldType.ReadonlyText:L(e);break;case u.FieldType.Checkbox:!function(e){const t=w(e.view,{text:e.fieldInfo.label,description:e.fieldInfo.description,required:e.fieldInfo.required,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),n=E(e.view,{initialValue:"true"===e.fieldInfo.defaultValue,label:"",required:e.fieldInfo.required});n.labelComponent=t,e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,n),N(e.view,e.components,t,n.component,e.fieldInfo)}(e);break;case u.FieldType.AzureAccount:!async function(e){e.fieldInfo.subFields=[];const t=new Map,n=new Map;let i,o;const a=!!e.initialVariableValues?.[e.fieldInfo.subscriptionVariableName||""]?.toString();a||(i=function(e){const t=w(e.view,{text:p.account,description:e.fieldInfo.description,required:e.fieldInfo.required,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),n=S(e.view,{width:e.fieldInfo.inputWidth,editable:!1,required:e.fieldInfo.required,label:p.account});n.component.fireOnTextChange=!0,n.labelComponent=t,e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,n);const r=e.view.modelBuilder.button().withProps({label:p.signIn,width:"100px",secondary:!0}).component(),i=e.view.modelBuilder.button().withProps({label:p.refresh,width:"100px",secondary:!0}).component();N(e.view,e.components,t,n.component,e.fieldInfo);const o=P(e.view,[r,i],!0,void 0,void 0,void 0,{"margin-right":"10px"});return e.components.push(o),{accountDropdown:n.component,signInButton:r,refreshAccountsButton:i}}(e),o=i.accountDropdown);const c=function(e,t){const n=w(e.view,{text:p.subscription,description:p.subscriptionDescription,required:e.fieldInfo.required,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),r=e.initialVariableValues?.[e.fieldInfo.subscriptionVariableName||""]?.toString()??(e.fieldInfo.required?void 0:"");let i,o;return r?(i=x(e.view,{type:"text",defaultValue:r,ariaLabel:p.subscription,required:e.fieldInfo.required,width:e.fieldInfo.inputWidth,enabled:!1}),o=e=>{}):(i=S(e.view,{defaultValue:r,width:e.fieldInfo.inputWidth,editable:!1,required:e.fieldInfo.required,label:p.subscription}),o=e=>X(i.component,e?.toString()),i.component.fireOnTextChange=!0),i.labelComponent=n,e.fieldInfo.subFields.push({label:n.value,variableName:e.fieldInfo.subscriptionVariableName}),e.onNewInputComponentCreated(e.fieldInfo.subscriptionVariableName||e.fieldInfo.label,{component:i.component,getValue:async()=>{const e=(await i.getValue())?.toString()||"";return t.get(e)?.id||e},setValue:e=>o,getDisplayValue:i.getDisplayValue,onValueChanged:i.onValueChanged}),N(e.view,e.components,n,i.component,e.fieldInfo),i.component}(e,n),u=function(e,t,n,r,i){const o=w(e.view,{text:p.resourceGroup,required:e.fieldInfo.required,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),a=e.initialVariableValues?.[e.fieldInfo.resourceGroupVariableName||""]?.toString()??(e.fieldInfo.required?void 0:"");let c;a?c=x(e.view,{type:"text",defaultValue:a,ariaLabel:p.resourceGroup,required:e.fieldInfo.required,width:e.fieldInfo.inputWidth,enabled:!1}):(c=S(e.view,{defaultValue:e.fieldInfo.required?void 0:"",width:e.fieldInfo.inputWidth,editable:!1,required:e.fieldInfo.required,label:p.resourceGroup}),c.component.fireOnTextChange=!0),c.labelComponent=o,e.fieldInfo.subFields.push({label:o.value,variableName:e.fieldInfo.resourceGroupVariableName});const l=new s.EventEmitter;return c.onValueChanged((()=>l.fire())),e.onNewInputComponentCreated(e.fieldInfo.resourceGroupVariableName||e.fieldInfo.label,c),N(e.view,e.components,o,c.component,e.fieldInfo),"onValueChanged"in r&&r.onValueChanged((async r=>{const o=t&&t.value?n.get(t.value.toString()):void 0,a=i.get(r.selected);await H(e,o,a,c.component),l.fire()})),c.component}(e,o,t,c,n);if(e.fieldInfo.allowNewResourceGroup){const t=E(e.view,{initialValue:!1,label:p.createNewResourceGroup});e.onNewInputComponentCreated(e.fieldInfo.newResourceGroupFlagVariableName,t);const n=x(e.view,{ariaLabel:p.NewResourceGroupAriaLabel});e.onNewInputComponentCreated(e.fieldInfo.newResourceGroupNameVariableName,n),e.components.push(t.component),e.components.push(n.component);const r=e=>{u.required=!e,u.enabled=!e,n.component.required=e,n.component.enabled=e,e||(n.component.value="")};e.onNewDisposableCreated(t.onValueChanged((()=>{r(t.component.checked)}))),r(!1)}const d=e.fieldInfo.locations&&await G(e);if(!a){o.onValueChanged((async r=>{const i=t.get(r.selected);await F(e,i,c,n,u,d)}));const a=async()=>{t.clear();try{const i=await r.accounts.getAllAccounts(),a=e.fieldInfo.required?[]:[""];o.values=a.concat(i.map((e=>{const n=B(e);return t.set(n,e),n})));const s=o.value?t.get(o.value.toString()):void 0;await F(e,s,c,n,u,d)}catch(e){s.window.showErrorMessage(y(3,null,(0,l.getErrorMessage)(e)))}};e.onNewDisposableCreated(i.refreshAccountsButton.onDidClick((async()=>{await a()}))),e.onNewDisposableCreated(i.signInButton.onDidClick((async()=>{await s.commands.executeCommand("workbench.actions.modal.linkedAccount"),await a()}))),setTimeout((async()=>{await a()}),0)}}(e);break;case u.FieldType.AzureLocations:await G(e);break;case u.FieldType.FilePicker:j(e);break;case u.FieldType.KubeClusterContextPicker:!async function(e){const t=e.fieldInfo.configFileVariableName||"AZDATA_NB_VAR_KUBECONFIG_PATH",n={container:e.container,inputComponents:e.inputComponents,components:e.components,view:e.view,onNewValidatorCreated:e.onNewValidatorCreated,onNewDisposableCreated:e.onNewDisposableCreated,onNewInputComponentCreated:e.onNewInputComponentCreated,fieldInfo:{label:p.kubeConfigFilePath,type:u.FieldType.FilePicker,defaultValue:(0,h.getDefaultKubeConfigPath)(),inputWidth:e.fieldInfo.inputWidth,labelWidth:e.fieldInfo.labelWidth,variableName:t,labelPosition:"left",required:!0},toolsService:e.toolsService},r=j(n);e.fieldInfo.subFields=e.fieldInfo.subFields||[],e.fieldInfo.subFields.push({label:n.fieldInfo.label,variableName:t});const i=await z(e,M(r.input.value));e.onNewDisposableCreated(r.input.onTextChanged((async()=>await i.loadOptions(M(r.input.value)))))}(e);break;case u.FieldType.KubeStorageClass:await async function(e){const t=w(e.view,{text:e.fieldInfo.label,description:e.fieldInfo.description,required:e.fieldInfo.required,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles});let n=[],r="";try{const t=e.toolsService.getToolByName(v.KubeCtlToolName),i=await t.getStorageClasses();n=i.storageClasses,r=i.defaultStorageClass}catch(e){s.window.showErrorMessage(y(4,null,e.message??e))}const i=S(e.view,{width:e.fieldInfo.inputWidth,editable:!0,required:e.fieldInfo.required,label:e.fieldInfo.label,values:n,defaultValue:r});i.labelComponent=t,i.component.fireOnTextChange=!0,e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,i),N(e.view,e.components,t,i.component,e.fieldInfo)}(e);break;default:throw new Error(p.unknownFieldTypeError(e.fieldInfo.type))}}function D(e){"okButton"in e?e.okButton.enabled=!1:(e.generateScriptButton.enabled=!1,e.doneButton.enabled=!1,e.nextButton.enabled=!1,e.backButton.enabled=!1,e.customButtons.forEach((e=>e.enabled=!1)))}function k(e){const t=e.fieldInfo.type===u.FieldType.Password||e.fieldInfo.type===u.FieldType.SQLPassword,n=_({context:e,inputBoxType:t?"password":"text"});return n.isPassword=t,e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,n),n}function L(e,t=!0){if((e.fieldInfo.links?.length??0)>0)return function(e){const t=w(e.view,{text:e.fieldInfo.label,description:e.fieldInfo.description,required:!1,width:e.fieldInfo.labelWidth,links:e.fieldInfo.links,cssStyles:e.fieldInfo.labelCSSStyles});return e.components.push(t),{label:t}}(e);if(e.fieldInfo.isEvaluated&&t)return function(e){const t=L(e,!1),n=new s.EventEmitter;return e.onNewDisposableCreated(n),e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,{component:t.text,getValue:async()=>(t.text.value=await async function(e,t){return await Promise.all(Object.keys(e).filter((e=>e.startsWith(u.NoteBookEnvironmentVariablePrefix))).map((async n=>{const r=await(e[n].getDisplayValue?e[n].getDisplayValue():e[n].getValue())??"<undefined>",i=new RegExp(`\\$\\(${n}\\)`,"gi");t=t?.replace(i,r.toString())}))),t}(e.inputComponents,e.fieldInfo.defaultValue),t.text.value),setValue:e=>t.text.value=e?.toString(),onValueChanged:n.event}),t}(e);const n=w(e.view,{text:e.fieldInfo.label,description:e.fieldInfo.description,required:!1,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),r=void 0!==e.fieldInfo.defaultValue?w(e.view,{text:e.fieldInfo.defaultValue,description:"",required:!1,width:e.fieldInfo.inputWidth}):void 0;if(r){const t=new s.EventEmitter;e.onNewDisposableCreated(t),e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,{component:r,getValue:async()=>"string"==typeof r.value?r.value:r.value?.join(o.EOL),setValue:e=>r.value=e?.toString(),onValueChanged:t.event})}return N(e.view,e.components,n,r,e.fieldInfo),{label:n,text:r}}function j(e){const t=parseInt(e.fieldInfo.inputWidth.replace(/px/g,"").trim()),n=w(e.view,{text:e.fieldInfo.label,description:e.fieldInfo.description,required:e.fieldInfo.required,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),r=x(e.view,{defaultValue:e.fieldInfo.defaultValue||"",ariaLabel:e.fieldInfo.label,required:e.fieldInfo.required,placeHolder:e.fieldInfo.placeHolder,width:t-100+"px",enabled:"boolean"==typeof e.fieldInfo.enabled&&e.fieldInfo.enabled,validations:e.fieldValidations});r.labelComponent=n,e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,r),r.component.enabled=!1;const i=e.view.modelBuilder.button().withProps({label:p.browse,width:100,secondary:!0}).component(),o=e.fieldInfo;let c;if(o.filter){const e=o.filter.displayName;c={},c[e]=o.filter.fileTypes}e.onNewDisposableCreated(i.onDidClick((async()=>{let e=await s.window.showOpenDialog({canSelectFiles:!0,canSelectFolders:!1,canSelectMany:!1,defaultUri:r.component.value?s.Uri.file(a.dirname(r.component.value)):void 0,openLabel:p.select,filters:c});if(!e||0===e.length)return;let t=e[0];r.component.value=t.fsPath})));const l=P(e.view,[r.component,i],!0,e.fieldInfo.inputWidth);return N(e.view,e.components,n,l,e.fieldInfo),{input:r.component,browseButton:i}}function M(e){return async()=>{await async function(e){try{if(!(await i.promises.stat(e)).isFile())throw Error(y(1,null,e))}catch(t){throw"ENOENT"===t.code?Error(y(2,null,e)):t}}(e);try{let t="";const n=(await(0,h.getKubeConfigClusterContexts)(e)).map((e=>(e.isCurrentContext&&(t=e.name),e.name)));if(0===n.length)throw Error(p.clusterContextNotFound);return{values:n,defaultValue:t}}catch(t){throw Error(y(0,null,e,(0,l.getErrorMessage)(t)))}}}async function z(e,t){void 0===e.fieldInfo.fieldAlignItems&&(e.fieldInfo.fieldAlignItems="flex-start");const n=w(e.view,{text:e.fieldInfo.label,description:e.fieldInfo.description,required:e.fieldInfo.required,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),r=new g.RadioGroupLoadingComponentBuilder(e.view,e.onNewDisposableCreated,e.fieldInfo);e.fieldInfo.labelPosition="left",e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,{component:r,labelComponent:n,getValue:async()=>r.value,setValue:e=>{throw new Error("Setting value of radio group isn't currently supported")},setOptions:e=>{r.loadOptions(e)},getDisplayValue:async()=>r.displayValue,onValueChanged:r.onValueChanged});const i=e.fieldInfo.options;let o=i?.source?.loadingText,a=i?.source?.loadingCompletedText;return(o||a)&&r.withProps({showText:!0,loadingText:o,loadingCompletedText:a}),N(e.view,e.components,n,r.component(),e.fieldInfo),r.loadOptions(t||i).catch((e=>console.log("Error loading options for radio group ",e))),r}async function V(e){const t=(await r.accounts.getAllAccounts()).find((t=>t.key.accountId===e.key.accountId));return void 0===t?0:t.isStale?1:2}function B(e){return`${e.displayInfo.displayName} (${e.displayInfo.userId})`}async function F(e,t,n,i,a,c){if("values"in n){if(i.clear(),n.values=[],await H(e,t,void 0,a),!t)return n.values=[""],void(c&&"values"in c&&(c.values=[""]));c&&"values"in c&&c.values&&0===c.values.length&&(c.values=e.fieldInfo.locations);try{const s=await d.apiService.azurecoreApi.getSubscriptions(t,!0,!1);if(!s)return;if(s.errors.length>0){const n=await V(t);if(1===n||0===n){const i=await q({selectedAccount:t,accountStatus:n});e.container.message={text:i,description:"",level:r.window.MessageLevel.Error}}else{const t=s.errors.join(o.EOL);0===s.subscriptions.length?e.container.message={text:t,description:"",level:r.window.MessageLevel.Error}:console.log(t)}}n.values=s.subscriptions.map((e=>{const t=U(e);return i.set(t,e),t})).sort(((e,t)=>e.toLocaleLowerCase().localeCompare(t.toLocaleLowerCase())));const c=n.values.length>0?i.get(n.values[0]):void 0;await H(e,t,c,a)}catch(e){await s.window.showErrorMessage(await q({selectedAccount:t,defaultErrorMessage:y(5,null,B(t),(0,l.getErrorMessage)(e)),error:e}))}}}function U(e){return`${e.name} (${e.id})`}async function q({selectedAccount:e,defaultErrorMessage:t="",error:n,accountStatus:r}){switch(void 0===r&&(r=await V(e)),r){case 0:return y(6,null,B(e))+(void 0!==n?y(7,null,(0,l.getErrorMessage)(n)):"");case 1:return y(8,null,B(e))+(void 0!==n?y(9,null,(0,l.getErrorMessage)(n)):"");case 2:return t}}async function H(e,t,n,i){if("values"in i&&(i.values=[""],t&&n))try{const a=await d.apiService.azurecoreApi.getResourceGroups(t,n,!0);if(!a)return;if(a.errors.length>0){const n=await V(t);if(1===n||0===n){const i=await q({selectedAccount:t,accountStatus:n});e.container.message={text:i,description:"",level:r.window.MessageLevel.Error}}else{const t=a.errors.join(o.EOL);0===a.resourceGroups.length?e.container.message={text:t,description:"",level:r.window.MessageLevel.Error}:console.log(t)}}i.values=0!==a.resourceGroups.length?a.resourceGroups.map((e=>e.name)).sort(((e,t)=>e.toLocaleLowerCase().localeCompare(t.toLocaleLowerCase()))):[""]}catch(e){await s.window.showErrorMessage(await q({selectedAccount:t,defaultErrorMessage:y(10,null,U(n),(0,l.getErrorMessage)(e)),error:e}))}}async function G(e){const t=w(e.view,{text:e.fieldInfo.label||p.location,required:e.fieldInfo.required,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),n=e.initialVariableValues?.[e.fieldInfo.locationVariableName||""]?.toString()??(e.fieldInfo.required?void 0:"");let r;if(n)r=x(e.view,{type:"text",defaultValue:n,ariaLabel:p.location,required:e.fieldInfo.required,width:e.fieldInfo.inputWidth,enabled:!1});else{const t=e.fieldInfo.locations?.map((e=>({name:e,displayName:d.apiService.azurecoreApi.getRegionDisplayName(e)})));r=S(e.view,{defaultValue:t?.find((t=>t.name===e.fieldInfo.defaultValue)),width:e.fieldInfo.inputWidth,editable:!1,required:e.fieldInfo.required,label:p.location,values:t}),r.component.fireOnTextChange=!0}return r.labelComponent=t,e.fieldInfo.subFields=e.fieldInfo.subFields||[],e.fieldInfo.locationVariableName&&(e.fieldInfo.subFields.push({label:t.value,variableName:e.fieldInfo.locationVariableName}),e.onNewInputComponentCreated(e.fieldInfo.locationVariableName,r)),N(e.view,e.components,t,r.component,e.fieldInfo),r.component}function $(e,t="sa"){const n=e&&void 0!==t&&e.toUpperCase().includes(t.toUpperCase()),r=/[A-Z]/.test(e)?1:0,i=/[a-z]/.test(e)?1:0,o=/\d/.test(e)?1:0,a=/\W/.test(e)?1:0;return!n&&e.length>=8&&e.length<=128&&r+i+o+a>=3}function W(e,t){if(e.message&&e.message.text.includes(t)){const n=t+"\n",r=e.message.text.includes(n)?n:t;e.message={text:e.message.text.replace(r,"")}}}function Q(e){return y(11,null,e)}function K(e){return y(12,null,e)}function X(e,t=""){const n=e.values??[];"object"==typeof n[0]?e.value=n.find((e=>e.name===t)):e.value=t}t.getInputBoxComponent=function(e,t){return t[e].component},t.getDropdownComponent=function(e,t){return t[e].component},t.getCheckboxComponent=function(e,t){return t[e].component},t.getTextComponent=function(e,t){return t[e].component},t.DefaultInputWidth="400px",t.DefaultLabelWidth="200px",t.DefaultFieldAlignItems=void 0,t.DefaultFieldWidth=void 0,t.DefaultFieldHeight=void 0,t.createInputBoxInputInfo=x,t.createLabel=w,t.createNumberInputBoxInputInfo=function(e,t){return t.type="number",x(e,t)},t.createCheckboxInputInfo=E,t.createCheckbox=A,t.createDropdownInputInfo=S,t.initializeDialog=function(e){const n=[];e.dialogInfo.tabs.forEach((i=>{const o=r.window.createTab(i.title);o.registerContent((async n=>{const r=await Promise.all(i.sections.map((r=>(r.inputWidth=r.inputWidth||i.inputWidth||t.DefaultInputWidth,r.labelWidth=r.labelWidth||i.labelWidth||t.DefaultLabelWidth,r.fieldAlignItems=r.fieldAlignItems||i.fieldAlignItems||t.DefaultFieldAlignItems,r.fieldWidth=r.fieldWidth||i.fieldWidth||t.DefaultFieldWidth,r.fieldHeight=r.fieldHeight||i.fieldHeight||t.DefaultFieldHeight,r.labelPosition=r.labelPosition||i.labelPosition,T({sectionInfo:r,view:n,onNewDisposableCreated:e.onNewDisposableCreated,onNewInputComponentCreated:e.onNewInputComponentCreated,onNewValidatorCreated:e.onNewValidatorCreated,container:e.container,inputComponents:e.inputComponents,toolsService:e.toolsService}))))),o=n.modelBuilder.formContainer().withFormItems(r.map((e=>({title:"",component:e}))),{horizontal:!1,componentWidth:"100%"}).withLayout({width:"100%"}).component();return n.initializeModel(o)})),n.push(o)})),e.container.content=n},t.initializeWizardPage=function(e){e.page.registerContent((async n=>{const r=await Promise.all(e.pageInfo.sections.map((r=>(r.inputWidth=r.inputWidth||e.pageInfo.inputWidth||e.wizardInfo.inputWidth||t.DefaultInputWidth,r.labelWidth=r.labelWidth||e.pageInfo.labelWidth||e.wizardInfo.labelWidth||t.DefaultLabelWidth,r.fieldAlignItems=r.fieldAlignItems||e.pageInfo.fieldAlignItems||t.DefaultFieldAlignItems,r.fieldWidth=r.fieldWidth||e.pageInfo.fieldWidth||e.wizardInfo.fieldWidth||t.DefaultFieldWidth,r.fieldHeight=r.fieldHeight||e.pageInfo.fieldHeight||e.wizardInfo.fieldHeight||t.DefaultFieldHeight,r.labelPosition=r.labelPosition||e.pageInfo.labelPosition||e.wizardInfo.labelPosition,T({view:n,container:e.container,toolsService:e.toolsService,inputComponents:e.inputComponents,initialVariableValues:e.initialVariableValues,onNewDisposableCreated:e.onNewDisposableCreated,onNewInputComponentCreated:e.onNewInputComponentCreated,onNewValidatorCreated:e.onNewValidatorCreated,sectionInfo:r})))));await async function(e){await Promise.all(e.pageInfo.sections.map((async t=>{t.fields&&await Promise.all(t.fields.map((async t=>{if((0,u.instanceOfDynamicEnablementInfo)(t.enabled)){const n=t.variableName||t.label,r=e.inputComponents[n],i=e.inputComponents[t.enabled.target],o=t.enabled.value;if(!i)return void console.error(`Could not find target component ${t.enabled.target} when hooking up dynamic enablement for ${t.label}`);const a=async()=>{const e=await i.getValue()===o;r.component.enabled=e;const n=!1!==r.component.enabled&&t.required;r.labelComponent&&(r.labelComponent.requiredIndicator=n),"required"in r.component&&(r.component.required=n),"placeHolder"in r.component&&(r.component.placeHolder=e?t.placeHolder:"")};i.onValueChanged((()=>{a()})),await a()}})))})))}(e),await async function(e){await Promise.all(e.pageInfo.sections.map((async t=>{t.fields&&await Promise.all(t.fields.map((async t=>{if((0,u.instanceOfDynamicOptionsInfo)(t.dynamicOptions)){const n=t.variableName||t.label,r=e.inputComponents[n],i=e.inputComponents[t.dynamicOptions.target];if(!i)return void console.error(`Could not find target component ${t.dynamicOptions.target} when hooking up dynamic options for ${t.label}`);const o=async()=>{const e=await i.getValue();if(t.dynamicOptions&&t.options&&r&&r.setOptions){let n=t.dynamicOptions.alternates.find((t=>t.selection===e));n?r.setOptions({values:n.alternateValues,defaultValue:n.defaultValue}):r.setOptions({values:t.options.values,defaultValue:t.options.defaultValue})}};i.onValueChanged((()=>{o()})),await o()}})))})))}(e),await async function(e){await Promise.all(e.pageInfo.sections.map((async t=>{t.fields&&await Promise.all(t.fields.map((async t=>{if(t.valueProvider){const n=t.variableName||t.label,r=e.inputComponents[n],i=await f.valueProviderService.getValueProvider(t.valueProvider.providerId);let o={};t.valueProvider.triggerFields.forEach((n=>{const r=e.inputComponents[n];r?o[n]=r:console.error(`Could not find target component '${n}' when hooking up value providers for '${t.label}'`)}));const a=async()=>{let e={};for(let t in o)e[t]=await o[t].getValue();let t=await i.getValue(e);r.setValue(t)};for(let t in o)e.onNewDisposableCreated(o[t].onValueChanged((()=>{a()})));await a()}})))})))}(e);const i=n.modelBuilder.formContainer().withFormItems(r.map((e=>({title:"",component:e}))),{horizontal:!1,componentWidth:"100%"}).withLayout({width:"100%"}).component();return n.initializeModel(i)}))},t.createSection=T,t.createFlexContainer=P,t.createGroupContainer=O,t.isValidSQLPassword=$,t.removeValidationMessage=W,t.getInvalidSQLPasswordMessage=Q,t.getPasswordMismatchMessage=K,t.setModelValues=async function(e,t){await Promise.all(Object.keys(e).map((async n=>{const r=await e[n].getValue();"object"==typeof r?t.setPropertyValue(n,r.name):t.setPropertyValue(n,r)})))},t.isInputBoxEmpty=function(e){return void 0===e.value||""===e.value}},1677:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotebookWizardAutoSummaryPage=void 0;const r=n(3403),i=n(1009),o=n(5694),a=n(6127),s=r.loadMessageBundle(n(1017).join(__dirname,"ui/notebookWizard/notebookWizardAutoSummaryPage.ts"));class c extends a.NotebookWizardPage{constructor(e,t){super(e,t,e.wizardInfo.pages[t].title||s(0,null),e.wizardInfo.pages[t].description||""),this.formItems=[]}initialize(){this.pageObject.registerContent((e=>(this.view=e,this.form=e.modelBuilder.formContainer(),e.initializeModel(this.form.withLayout({width:"100%"}).component()))))}async onLeave(){this.wizard.wizardObject.message={text:""}}async onEnter(){this.formItems.forEach((e=>{this.form.removeFormItem(e)})),this.formItems=[];const e=this.pageInfo.fieldWidth||this._model.wizardInfo.fieldWidth||o.DefaultFieldWidth,t=this.pageInfo.fieldHeight||this._model.wizardInfo.fieldHeight||o.DefaultFieldHeight,n=this.pageInfo.fieldAlignItems||this._model.wizardInfo.fieldAlignItems||o.DefaultFieldAlignItems,r=this.pageInfo.labelWidth||this._model.wizardInfo.labelWidth||o.DefaultLabelWidth,i=this.pageInfo.labelPosition||this._model.wizardInfo.labelPosition||"left",a=this.pageInfo.inputWidth||this._model.wizardInfo.inputWidth||o.DefaultInputWidth,s=this._model.wizardInfo.pages.filter(((e,t)=>t<this._pageIndex));for(const c of s){const s={labelPosition:i,labelWidth:r,inputWidth:a,fieldWidth:e,fieldHeight:t,fieldAlignItems:n,title:"",rows:[]};if(c.sections.forEach((e=>{e.fields.forEach((e=>{e.variableName&&this.addSummaryForVariable(s,e),e.subFields&&e.subFields.forEach((e=>{this.addSummaryForVariable(s,e)}))}))})),s.rows.length>0){const e={title:c.title,component:await(0,o.createSection)({container:this.wizard.wizardObject,toolsService:this.wizard.toolsService,inputComponents:this._model.inputComponents,sectionInfo:s,view:this.view,onNewDisposableCreated:()=>{},onNewInputComponentCreated:()=>{},onNewValidatorCreated:()=>{}})};this.formItems.push(e)}}this.form.addFormItems(this.formItems)}addSummaryForVariable(e,t){e.rows.push({items:[{type:i.FieldType.ReadonlyText,label:t.label,defaultValue:this.wizard.model.getStringValue(t.variableName),labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]})}}t.NotebookWizardAutoSummaryPage=c},5897:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotebookWizardModel=void 0;const r=n(5760),i=n(5694),o=n(754),a=n(1677),s=n(6127),c=n(8271);class l extends o.ResourceTypeModel{get notebookService(){return this.wizard.notebookService}get platformService(){return this.wizard.platformService}get toolsService(){return this.wizard.toolsService}get wizardInfo(){return this.notebookProvider.notebookWizard}get inputComponents(){return this._inputComponents}constructor(e,t){super(e,t),this.notebookProvider=e,this._inputComponents={},void 0===this.notebookProvider.notebookWizard.codeCellInsertionPosition&&(this.notebookProvider.notebookWizard.codeCellInsertionPosition=0),this.wizard.wizardObject.title=this.notebookProvider.notebookWizard.title,this.wizard.wizardObject.doneButton.label=this.notebookProvider.notebookWizard.doneAction?.label||r.deployNotebook,this.wizard.wizardObject.generateScriptButton.label=this.notebookProvider.notebookWizard.scriptAction?.label||r.scriptToNotebook}initialize(){this.wizard.setPages(this.getPages())}async onGenerateScript(){if(this.wizard.lastPage.validatePage()){let e;try{e=await this.prepareNotebookAndEnvironment()}catch(e){if((0,c.isUserCancelledError)(e))return!1;throw e}return e&&await this.openNotebook(e),!0}return!1}async onOk(){const e=await this.prepareNotebookAndEnvironment();(await this.openNotebook(e)).runAllCells()}async openNotebook(e){const t=this.notebookService.getNotebookPath(this.wizardInfo.notebook);return await this.notebookService.openNotebookWithContent(t,JSON.stringify(e,void 0,4))}async prepareNotebookAndEnvironment(){await(0,i.setModelValues)(this.inputComponents,this);const e=process.env;this.setEnvironmentVariables(e,(e=>!!this.inputComponents[e]?.isPassword));const t=await this.notebookService.getNotebook(this.wizardInfo.notebook),n=this.getCodeCellContentForNotebook(this.toolsService.toolsForCurrentProvider,(e=>!this.inputComponents[e]?.isPassword));return t.cells.splice(this.wizardInfo.codeCellInsertionPosition??0,0,{cell_type:"code",source:n,metadata:{},outputs:[],execution_count:0}),t}getPages(){const e=[];for(let t=0;t<this.wizardInfo.pages.length;t++)this.wizardInfo.pages[t].isSummaryPage&&this.wizardInfo.isSummaryPageAutoGenerated?e.push(new a.NotebookWizardAutoSummaryPage(this,t)):e.push(new s.NotebookWizardPage(this,t));return e}}t.NotebookWizardModel=l},6127:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotebookWizardPage=void 0;const r=n(9072),i=n(2037),o=n(5694),a=n(482),s=n(5760);class c extends a.ResourceTypePage{get pageInfo(){return this._model.wizardInfo.pages[this._pageIndex]}constructor(e,t,n,r){super(e.wizardInfo.pages[t].title||n||"",e.wizardInfo.pages[t].description||r||"",e.wizard),this._model=e,this._pageIndex=t}get isDoneButtonVisible(){return!!this._model.wizardInfo.doneAction}get isGenerateScriptButtonVisible(){return!!this._model.wizardInfo.scriptAction}initialize(e){(0,o.initializeWizardPage)({container:this.wizard.wizardObject,inputComponents:this._model.inputComponents,wizardInfo:this._model.wizardInfo,pageInfo:this.pageInfo,page:this.pageObject,initialVariableValues:e,onNewDisposableCreated:e=>{this.wizard.registerDisposable(e)},onNewInputComponentCreated:(e,t)=>{e&&(this._model.inputComponents[e]=t)},onNewValidatorCreated:e=>{this.validators.push(e)},toolsService:this.wizard.toolsService})}async onLeave(){this.wizard.wizardObject.registerNavigationValidator((e=>!0))}async onEnter(e){e.isLastPage?(this.wizard.wizardObject.doneButton.hidden=!this.isDoneButtonVisible,this._model.wizardInfo.doneAction?.label&&(this.wizard.wizardObject.doneButton.label=this._model.wizardInfo.doneAction.label),this.wizard.wizardObject.generateScriptButton.hidden=!this.isGenerateScriptButtonVisible,this._model.wizardInfo.scriptAction?.label&&(this.wizard.wizardObject.generateScriptButton.label=this._model.wizardInfo.scriptAction.label)):(this.wizard.wizardObject.doneButton.hidden=!0,this.wizard.wizardObject.generateScriptButton.hidden=!0),this.pageInfo.isSummaryPage&&await(0,o.setModelValues)(this._model.inputComponents,this.wizard.model),this.wizard.wizardObject.generateScriptButton.enabled=this.pageObject.valid,this.wizard.wizardObject.registerNavigationValidator((e=>(this.wizard.wizardObject.message={text:""},!(void 0===e.newPage||e.newPage>e.lastPage)||this.validatePage())))}validatePage(){const e=[];return this.validators.forEach((t=>{const n=t();n.valid||e.push(n.message)})),e.length>0&&(this.wizard.wizardObject.message={text:1===e.length?e[0]:s.multipleValidationErrors,description:1===e.length?void 0:e.join(i.EOL),level:r.window.MessageLevel.Error}),0===e.length}}t.NotebookWizardPage=c},7510:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageLessDeploymentModel=void 0;const r=n(1009),i=n(6847),o=n(754),a=n(9072),s=n(9496),c=n(3403).loadMessageBundle(n(1017).join(__dirname,"ui/pageLessDeploymentModel.ts"));class l extends o.ResourceTypeModel{initialize(){this.wizard.setPages([])}async onOk(){let e=this.wizard.provider;if((0,r.instanceOfDialogDeploymentProvider)(e))new i.DeploymentInputDialog(this.wizard.notebookService,this.wizard.platformService,this.wizard.toolsService,e.dialog).open();else if((0,r.instanceOfNotebookDeploymentProvider)(e))this.wizard.notebookService.openNotebook(e.notebook);else if((0,r.instanceOfDownloadDeploymentProvider)(e)){const t=e.downloadUrl,n=c(0,null,t);a.tasks.startBackgroundOperation({displayName:n,description:n,isCancelable:!1,operation:e=>{e.updateStatus(a.TaskStatus.InProgress,c(1,null,t)),this.wizard.resourceTypeService.download(t).then((async t=>{e.updateStatus(a.TaskStatus.InProgress,c(2,null,t)),e.updateStatus(a.TaskStatus.InProgress,c(3,null,t)),await this.wizard.platformService.runCommand(t,{sudo:!0}),e.updateStatus(a.TaskStatus.Succeeded,c(4,null,t))}),(t=>{e.updateStatus(a.TaskStatus.Failed,t)}))}})}else(0,r.instanceOfWebPageDeploymentProvider)(e)?s.commands.executeCommand("vscode.open",s.Uri.parse(e.webPageUrl)):(0,r.instanceOfCommandDeploymentProvider)(e)&&s.commands.executeCommand(e.command)}}t.PageLessDeploymentModel=l},4909:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RadioGroupLoadingComponentBuilder=void 0;const r=n(9072),i=n(9496),o=n(1009),a=n(8271);t.RadioGroupLoadingComponentBuilder=class{constructor(e,t,n){this._view=e,this._onNewDisposableCreated=t,this._fieldInfo=n,this._onValueChangedEmitter=new i.EventEmitter,this._optionsDivContainer=this._view.modelBuilder.divContainer().withProps({clickable:!1}).component(),this._optionsLoadingBuilder=this._view.modelBuilder.loadingComponent().withItem(this._optionsDivContainer),this._enabled=!(0,o.instanceOfDynamicEnablementInfo)(this._fieldInfo.enabled)&&this._fieldInfo.enabled}component(){return this._optionsLoadingBuilder.component()}withProperties(e){return this._optionsLoadingBuilder.withProps(e)}withProps(e){return this._optionsLoadingBuilder.withProps(e)}withValidation(e){return this._optionsLoadingBuilder.withValidation(e)}async loadOptions(e){this.component().loading=!0,this._optionsDivContainer.clearItems();try{"object"!=typeof e&&(e=await e());let t=e.values,n=e.defaultValue;t.forEach((e=>{const t="string"==typeof e?{name:e,displayName:e}:e,r=this._view.modelBuilder.radioButton().withProps({label:t.displayName,value:t.name,checked:t.displayName===n,enabled:this._enabled}).component();r.checked&&(this._currentRadioOption=r,this._onValueChangedEmitter.fire()),this._onNewDisposableCreated(r.onDidClick((()=>{this._optionsDivContainer.items.filter((e=>e!==r)).forEach((e=>e.checked=!1)),this._currentRadioOption=r,this._onValueChangedEmitter.fire()}))),this._optionsDivContainer.addItem(r)}))}catch(e){const t=this._view.modelBuilder.text().withProps({value:(0,a.getErrorMessage)(e),textType:r.TextType.Error}).component();this._optionsDivContainer.addItem(t)}this.component().loading=!1}get value(){return this._currentRadioOption?.value||this._currentRadioOption?.label}get displayValue(){return this._currentRadioOption.label||""}get checked(){return this._currentRadioOption}set enabled(e){this._optionsDivContainer.items.forEach((t=>{t.enabled=e})),this._enabled=e}get onValueChanged(){return this._onValueChangedEmitter.event}}},754:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceTypeModel=void 0;const r=n(8175);class i extends r.Model{constructor(e,t){super(),this.provider=e,this.wizard=t}onCancel(){}async onGenerateScript(){return!0}}t.ResourceTypeModel=i},482:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceTypePage=void 0;const r=n(5819);class i extends r.WizardPageBase{}t.ResourceTypePage=i},2952:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceTypePickerDialog=void 0;const r=n(9072),i=n(3403),o=n(5760),a=n(886),s=i.loadMessageBundle(n(1017).join(__dirname,"ui/resourceTypePickerDialog.ts"));class c extends a.DialogBase{constructor(e,t,n,r,i){super(o.resourceTypePickerDialogTitle,"ResourceTypePickerDialog",!0),this.resourceTypeService=e,this._resourceTypeNameFilters=n,this._optionValuesFilter=r,this._initialVariableValues=i,this._currentResourceTypeDisposables=[],this._cardsCache=new Map,this._selectedResourceType=t,this._dialogObject.okButton.label=o.select}initialize(){let e=r.window.createTab("");this._dialogObject.registerCloseValidator((async()=>!0)),e.registerContent((e=>{this._view=e,this._resourceTypes=this.resourceTypeService.getResourceTypes().filter((e=>!this._resourceTypeNameFilters||this._resourceTypeNameFilters.find((t=>e.name===t)))).sort(((e,t)=>(e.displayIndex||Number.MAX_VALUE)-(t.displayIndex||Number.MAX_VALUE))),this._cardGroup=e.modelBuilder.radioCardGroup().withProps({cards:this._resourceTypes.map((e=>this.createOrGetCard(e))),iconHeight:"35px",iconWidth:"35px",cardWidth:"300px",cardHeight:"150px",ariaLabel:s(0,null),width:"1000px",height:"550px",iconPosition:"left"}).component(),this._toDispose.push(this._cardGroup.onSelectionChanged((({cardId:e})=>{this._dialogObject.message={text:""},this._dialogObject.okButton.label=o.select;const t=this._resourceTypes.find((t=>t.name===e));t&&this.selectResourceType(t)})));const t=[];0!==this.getAllResourceTags().length&&(this._resourceTagsListView=this.createTagsListView(),t.push(this._resourceTagsListView)),this._resourceSearchBox=e.modelBuilder.inputBox().withProps({placeHolder:o.resourceTypeSearchBoxDescription,ariaLabel:o.resourceTypeSearchBoxDescription}).component(),this._toDispose.push(this._resourceSearchBox.onTextChanged((e=>{this.filterResources(),this._resourceSearchBox.focus()})));const n=e.modelBuilder.divContainer().withItems([this._resourceSearchBox]).withProps({CSSStyles:{"margin-left":"15px",width:"300px"}}).component(),r=this._view.modelBuilder.flexContainer().withLayout({flexFlow:"column"}).withItems([n,this._cardGroup]).component();t.push(r);const i=e.modelBuilder.formContainer().withFormItems([{component:this._view.modelBuilder.flexContainer().withLayout({flexFlow:"row"}).withItems(t).component(),title:""}],{horizontal:!1}).withLayout({width:"100%"}).component();return e.initializeModel(i).then((()=>{this.selectResourceType(this._resourceTypes[0]),this._selectedResourceType&&(this._cardGroup.selectedCardId=this._selectedResourceType.name),this._resourceTagsListView.focus()}))})),this._dialogObject.content=[e]}createTagsListView(){const e=this.getAllResourceTags();e.includes("All")||e.splice(0,0,"All");const t=[];e.forEach(((e,n)=>{t.push({label:o.getResourceTypeCategoryLocalizedString(e),id:e})}));const n=this._view.modelBuilder.listView().withProps({title:{text:o.resourceTypeCategoryListViewTitle},CSSStyles:{"margin-top":"35px",width:"140px"},options:t,selectedOptionId:t[0].id,ariaLabel:o.resourceTypeCategoryListViewTitle}).component();return this._toDispose.push(n.onDidClick((e=>{this._resourceSearchBox.value="",this.filterResources(),n.focus()}))),n}filterResources(){const e=this._resourceTagsListView.selectedOptionId,t=this._resourceSearchBox.value?.toLowerCase()??"";let n="All"!==e?this._resourceTypes.filter((t=>t.tags?.includes(e)??!1)):this._resourceTypes;const r=n.filter((e=>e.displayName.toLowerCase().includes(t)));r.push(...n.filter((e=>!e.displayName.toLowerCase().includes(t)&&e.description.toLowerCase().includes(t))));const i=r.map((e=>this.createOrGetCard(e)));r.length>0?(this._cardGroup.updateProperties({selectedCardId:i[0].id,cards:i}),this.selectResourceType(r[0])):(this._cardGroup.updateProperties({selectedCardId:"",cards:[]}),this._dialogObject.okButton.enabled=!1)}selectResourceType(e){this._currentResourceTypeDisposables.forEach((e=>e.dispose())),this._selectedResourceType=e}async onComplete(){this.resourceTypeService.startDeployment(this._selectedResourceType,this._optionValuesFilter,this._initialVariableValues)}getAllResourceTags(){return["All","On-premises","Hybrid","Cloud","SQL Server","PostgreSQL"].filter((e=>"All"===e||void 0!==this._resourceTypes.find((t=>t.tags?.includes(e)))))}createOrGetCard(e){if(this._cardsCache.has(e.name))return this._cardsCache.get(e.name);const t={id:e.name,label:e.displayName,icon:e.icon,descriptions:[{textValue:e.displayName,textStyles:{"font-size":"14px","font-weight":"bold"}},{textValue:e.description}]};return this._cardsCache.set(e.name,t),t}}t.ResourceTypePickerDialog=c},6518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceTypeWizard=void 0;const r=n(9072),i=n(1009),o=n(1303),a=n(6533),s=n(5897),c=n(335),l=n(7955),u=n(7510),p=n(8271);t.ResourceTypeWizard=class{get useGenerateScriptButton(){return this._useGenerateScriptButton}set useGenerateScriptButton(e){this._useGenerateScriptButton=e}get model(){return this._model}get lastPage(){return this.pages.length>0?this.pages[this.pages.length-1]:void 0}constructor(e,t,n,r,i,o,a,s){this.resourceType=e,this._kubeService=t,this.notebookService=n,this.toolsService=r,this.platformService=i,this.resourceTypeService=o,this._optionValuesFilter=a,this._initialVariableValues=s,this.customButtons=[],this.pages=[],this.toDispose=[];let c=(0,p.deepClone)(e.options);const l=this._optionValuesFilter?.[this.resourceType.name];l&&c.forEach((e=>{const t=l[e.name];t&&(e.values=e.values.filter((e=>t.includes(e.name))))})),e.options?this.provider=this.resourceType.getProvider(c.map((e=>({option:e.name,value:e.values[0].name})))):this.provider=this.resourceType.providers[0]}createNewWizard(){this.wizardObject&&this.close(),this.wizardObject=r.window.createWizard(this.resourceType.displayName,this.resourceType.name,"wide"),this.wizardObject.generateScriptButton.hidden=!0,this.wizardObject.customButtons=this.customButtons,this.toDispose.push(this.wizardObject.onPageChanged((async e=>{let t=this.pages[e.lastPage],n=this.pages[e.newPage];await(t?.onLeave(new a.WizardPageInfo(e.lastPage,this.pages.length))),this.useGenerateScriptButton&&(this.wizardObject.generateScriptButton.hidden=n!==this.pages.slice(-1)[0]),await n.onEnter(new a.WizardPageInfo(e.newPage,this.pages.length))}))),this.toDispose.push(this.wizardObject.doneButton.onClick((async()=>{await this._model.onOk(),this.dispose()}))),this.toDispose.push(this.wizardObject.generateScriptButton.onClick((async()=>{await this._model.onGenerateScript()&&(this.dispose(),this.wizardObject.close())}))),this.toDispose.push(this.wizardObject.cancelButton.onClick((()=>{this._model.onCancel(),this.dispose()})))}getResourceProviderModel(){return(0,i.instanceOfAzureSQLVMDeploymentProvider)(this.provider)?new o.DeployAzureSQLVMWizardModel(this.provider,this):(0,i.instanceOfNotebookWizardDeploymentProvider)(this.provider)?new s.NotebookWizardModel(this.provider,this):(0,i.instanceOfAzureSQLDBDeploymentProvider)(this.provider)?new c.DeployAzureSQLDBWizardModel(this.provider,this):new u.PageLessDeploymentModel(this.provider,this)}async open(){this.createNewWizard(),this.updateModelFromProvider(),await this.wizardObject.open()}updateModelFromProvider(){this._model=this.getResourceProviderModel(),this._model.initialize()}addButton(e){this.customButtons.push(e)}setPages(e){e.unshift(new l.ToolsAndEulaPage(this,this._optionValuesFilter)),this.wizardObject.pages=e.map((e=>e.pageObject)),this.pages=e,this.pages.forEach((e=>{e.pageObject.onValidityChanged((e=>{this.wizardObject.generateScriptButton.enabled=e})),e.initialize(this._initialVariableValues)}))}dispose(){this.toDispose.forEach((e=>{e.dispose()})),this.toDispose=[]}registerDisposable(e){this.toDispose.push(e)}showErrorMessage(e){this.wizardObject.message={text:e,level:r.window.MessageLevel.Error}}async close(){this.dispose(),this.wizardObject.close()}}},7955:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolsAndEulaPage=void 0;const r=n(9072),i=n(2037),o=n(3403),a=n(5694),s=n(5760),c=n(8271),l=n(482),u=n(1979),p=o.loadMessageBundle(n(1017).join(__dirname,"ui/toolsAndEulaSettingsPage.ts"));class d extends l.ResourceTypePage{get toolsService(){return this.wizard.toolsService}constructor(e,t){super(p(0,null),"",e),this.optionValuesFilter=t,this.toolRefreshTimestamp=0,this._optionDropDownMap=new Map,this._installationInProgress=!1,this._tools=[],this._eulaValidationSucceeded=!1,this._isInitialized=!1,this._resourceType=e.resourceType}async onEnter(){this.wizard.wizardObject.generateScriptButton.hidden=!0,this.wizard.wizardObject.registerNavigationValidator((async e=>{for(let e=0;e<this._tools.length;e++)switch(this._tools[e].status){case"Installing":return this.wizard.wizardObject.message={text:s.getToolInstallingMessage(this._tools[e]),level:r.window.MessageLevel.Information},!1;case"Installed":continue;default:return this.wizard.wizardObject.message={text:p(1,null),level:r.window.MessageLevel.Error},!1}return this._eulaValidationSucceeded||await this.acquireEulaAndProceed()?(this.wizard.wizardObject.message={text:""},u.TelemetryReporter.createActionEvent(u.TelemetryView.ResourceTypeWizard,u.TelemetryAction.SelectedDeploymentType).withAdditionalProperties({resourceType:this._resourceType.name,provider:this.getCurrentProvider().name}).send(),!0):(this.wizard.wizardObject.message={text:p(2,null),level:r.window.MessageLevel.Error},!1)}))}initialize(){this._isInitialized||(this.pageObject.registerContent((e=>{this.view=e,this._optionsContainer=e.modelBuilder.flexContainer().withLayout({flexFlow:"column"}).component(),this._agreementContainer=e.modelBuilder.divContainer().component(),this._helpTextContainer=e.modelBuilder.divContainer().component();const t={value:s.toolText,width:105},n={value:s.descriptionText,width:270},r={value:s.statusText,width:70},i={value:s.versionText,width:75},o={value:s.requiredVersionText,width:105},a={value:s.discoverPathOrAdditionalInformationText,width:435};this._toolsTable=e.modelBuilder.table().withProps({data:[],columns:[t,n,r,i,o,a],width:1060,ariaLabel:s.requiredToolsText}).component();const l=e.modelBuilder.divContainer().withLayout({width:1060}).component();return l.addItem(this._toolsTable,{CSSStyles:{"border-left":"1px solid silver","border-top":"1px solid silver"}}),this._toolsLoadingComponent=e.modelBuilder.loadingComponent().withItem(l).withProps({loadingCompletedText:p(3,null),loadingText:p(4,null),showText:!0}).component(),this._installToolButton=e.modelBuilder.button().withProps({label:s.installToolsText,CSSStyles:{display:"none"},width:"100px",secondary:!0}).component(),this.wizard.registerDisposable(this._installToolButton.onDidClick((()=>{this.installTools().catch((e=>console.log(e)))}))),this.form=e.modelBuilder.formContainer().withFormItems([{component:this._helpTextContainer},{component:this._optionsContainer},{component:this._agreementContainer},{component:this._toolsLoadingComponent,title:s.requiredToolsText},{component:this._installToolButton}],{horizontal:!1}),e.initializeModel(this.form.withLayout({width:"100%"}).component()).then((()=>{if(this._agreementContainer.clearItems(),this._optionsContainer.clearItems(),this._optionDropDownMap.clear(),this._resourceType.options){let e=[];const t=this.view.modelBuilder.text().withProps({value:s.optionsText,CSSStyles:{"font-size":"14px",padding:"0"}}).component();this._optionsContainer.addItem(t),this._resourceType.options.forEach(((t,n)=>{let r=(0,c.deepClone)(t.values);const i=this.optionValuesFilter?.[this._resourceType.name]?.[t.name];i&&(r=r.filter((e=>i.includes(e.name))));const o=this.view.modelBuilder.text().withProps({value:t.displayName}).component();o.width="150px";const a=this.wizard.toolsEulaPagePresets?this.wizard.toolsEulaPagePresets[n]:r[0],s=this.view.modelBuilder.dropDown().withProps({values:r,value:a,width:"300px",ariaLabel:t.displayName}).component();e.push(a),this.wizard.registerDisposable(s.onValueChanged((async()=>{e[n].name!==s.value.name&&(e[n]=s.value,this.wizard.provider=this.getCurrentProvider(),await this.wizard.open())}))),this._optionDropDownMap.set(t.name,s),this.wizard.provider=this.getCurrentProvider();const l=this.view.modelBuilder.flexContainer().withItems([o,s],{flex:"0 0 auto",CSSStyles:{"margin-right":"20px"}}).withLayout({flexFlow:"row",alignItems:"center"}).component();this._optionsContainer.addItem(l)})),this.wizard.toolsEulaPagePresets=e}else this.form.removeFormItem({component:this._optionsContainer});const e=this._resourceType.getAgreementInfo(this.getSelectedOptions());if(e){if(this._resourceType.agreements){const e=this.view.modelBuilder.text().withProps({value:p(5,null),CSSStyles:{"font-size":"14px",padding:"0"}}).component();this._agreementContainer.addItem(e)}else this.form.removeFormItem({component:this._agreementContainer});this._agreementContainer.addItem(this.createAgreementCheckbox(e))}const t=this._resourceType.getHelpText(this.getSelectedOptions());t&&this._helpTextContainer.addItem(this.createHelpText(t)),this.updateOkButtonText(),this.updateToolsDisplayTable()}))})),this._isInitialized=!0)}createAgreementCheckbox(e){this._agreementCheckBox=this.view.modelBuilder.checkBox().withProps({ariaLabel:this.getAgreementDisplayText(e),required:!0}).component();const t=this.view.modelBuilder.text().withProps({value:e.template,links:e.links,requiredIndicator:!0}).component();return(0,a.createFlexContainer)(this.view,[this._agreementCheckBox,t])}createHelpText(e){const t=this.view.modelBuilder.text().withProps({value:e.template,links:e.links}).component();return(0,a.createFlexContainer)(this.view,[t])}getAgreementDisplayText(e){let t=e.template;for(let n=0;n<e.links.length;n++)t=t.replace(`{${n}}`,e.links[n].text);return t}async acquireEulaAndProceed(){this.wizard.wizardObject.message={text:""};let e=!0;for(const t of this._tools)if(e=await t.isEulaAccepted()||await t.promptForEula(),!e){this.wizard.wizardObject.message={level:r.window.MessageLevel.Error,text:[t.statusDescription,this.wizard.wizardObject.message.text].join(i.EOL)};break}return e}getCurrentProvider(){const e=this.getSelectedOptions();return this._resourceType.getProvider(e)}getCurrentOkText(){return this._resourceType.getOkButtonText(this.getSelectedOptions())}getSelectedOptions(){const e=[];return this._optionDropDownMap.forEach(((t,n)=>{let r=t.value;e.push({option:n,value:r.name})})),e}updateOkButtonText(){let e=this.getCurrentOkText();this.wizard.wizardObject.doneButton.label=e||s.select}async installTools(){let e;this._installToolButton.enabled=!1,this._installationInProgress=!0;try{this.setDoneAndNextButtonEnabledState(!1);const t=this.toolRequirements;let n=[];for(let i=0;i<t.length;i++){const o=t[i];if(e=this.toolsService.getToolByName(o.name),e.autoInstallNeeded){if(this.wizard.wizardObject.message={level:r.window.MessageLevel.Information,text:s.getToolInstallingMessage(e)},await this._tools[i].install(),"Installed"===e.status&&o.version&&!e.isSameOrNewerThan(o.version))throw new Error(p(6,null,e.displayName,e.homePage))}else"Installed"!==this._tools[i].status&&n.push(e)}0===n.length?(this.wizard.wizardObject.message={level:r.window.MessageLevel.Information,text:p(7,null)},this.setDoneAndNextButtonEnabledState(!0)):this.wizard.wizardObject.message={level:r.window.MessageLevel.Information,text:p(8,null,n.map((e=>e.displayName)).join(","))}}catch(t){const n=e.statusDescription||(0,c.getErrorMessage)(t);n&&(this.wizard.wizardObject.message={level:r.window.MessageLevel.Error,text:n}),e.showOutputChannel(!1)}finally{this._installationInProgress=!1}}updateToolsDisplayTableData(e){this._toolsTable.data=this._toolsTable.data.map((t=>t[0]===e.displayName?[e.displayName,e.description,e.displayStatus,e.fullVersion||"",t[4],e.installationPathOrAdditionalInformation||""]:t)),this.setUiControlsEnabled("Installing"!==e.status)}setUiControlsEnabled(e){this._agreementContainer.enabled=e,this._optionsContainer.enabled=e,this.wizard.wizardObject.cancelButton.enabled=e}async onLeave(){this.toolsService.toolsForCurrentProvider=this._tools}async areToolsEulaAccepted(){return this._eulaValidationSucceeded=(await Promise.all(this._tools.map((async e=>{const t=await e.isEulaAccepted();return t||(this.wizard.wizardObject.message={level:r.window.MessageLevel.Error,text:[e.statusDescription,this.wizard.wizardObject.message.text].join(i.EOL)}),t})))).every((e=>e)),this._eulaValidationSucceeded}get toolRequirements(){return this.wizard.provider.requiredTools}executeToolsTableWorkflow(e,t){if(this.toolRefreshTimestamp!==e)return;let n=!1;const o=[];let a=t,c=!1;if(this._toolsTable.data=this.toolRequirements.map((e=>{const t=this.toolsService.getToolByName(e.name);return this.wizard.registerDisposable(t.onDidUpdateData((e=>{this.updateToolsDisplayTableData(e)}))),c=c||"Error"===t.status||"Failed"===t.status,"NotInstalled"===t.status?t.autoInstallSupported?o.push(t):a.push(p(9,null,t.displayName,t.homePage)):"Installed"===t.status&&e.version&&!t.isSameOrNewerThan(e.version)&&(n=!0,a.push(p(10,null,t.displayName,t.homePage))),[t.displayName,t.description,t.displayStatus,t.fullVersion||"",e.version||"",t.installationPathOrAdditionalInformation||""]})),this._installToolButton.updateProperties({CSSStyles:{display:c||n||0===o.length?"none":"inline"}}),this.setDoneAndNextButtonEnabledState(!c&&0===a.length&&!n&&0===o.length),0!==a.length)a.length>1&&(a=a.map((e=>`•\t${e}`))),a.push(p(11,null)),this.wizard.wizardObject.message={level:r.window.MessageLevel.Error,text:a.join(i.EOL)};else if(0===o.length||this._installationInProgress)this.areToolsEulaAccepted()||this.areToolsEulaAccepted().then((e=>{e||(this.wizard.wizardObject.doneButton.label=s.acceptEulaAndSelect,this.wizard.wizardObject.nextButton.label=s.acceptEulaAndSelect)}));else{let e=[1===o.length?p(12,null,o[0].displayName,this._installToolButton.label):p(13,null,o.map((e=>e.displayName)).join(", "),this._installToolButton.label)];const t=this._tools.reduce(((e,t)=>(t.autoInstallNeeded&&e.push(...t.dependencyMessages),e)),[]),n=new Set(t);n.size>0&&e.push(...n.values()),this.wizard.wizardObject.message={level:r.window.MessageLevel.Warning,text:e.join(i.EOL)}}this._toolsLoadingComponent.loading=!1}updateToolsDisplayTable(){this.toolRefreshTimestamp=(new Date).getTime();const e=this.toolRefreshTimestamp;if(this._toolsTable.height=25*Math.max(this.toolRequirements.length,1)+28,this._installationInProgress||(this.wizard.wizardObject.message={text:""}),this._installToolButton.updateProperties({CSSStyles:{display:"none"}}),0===this.toolRequirements.length)this._toolsLoadingComponent.loading=!1,this.setDoneAndNextButtonEnabledState(!0),this._toolsTable.data=[[p(14,null),""]],this._tools=[];else{this._tools=this.toolRequirements.map((e=>this.toolsService.getToolByName(e.name))),this._toolsLoadingComponent.loading=!0,this.setDoneAndNextButtonEnabledState(!1);let t=[];Promise.all(this._tools.map((e=>e.finishInitialization().catch((()=>t.push(`${e.displayName}:${e.statusDescription}`)))))).then((()=>this.executeToolsTableWorkflow(e,t))).catch((e=>console.log(e)))}}setDoneAndNextButtonEnabledState(e){this.wizard.wizardObject.doneButton.enabled=e,this.wizard.wizardObject.nextButton.enabled=e}}t.ToolsAndEulaPage=d},7104:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateInputBoxComponent=t.createValidation=t.NotEqualValidation=t.GreaterThanOrEqualsValidation=t.LessThanOrEqualsValidation=t.Comparison=t.RegexValidation=t.IntegerValidation=t.Validation=void 0;const r=n(8271);class i{get target(){return this._target}get description(){return this._description}getValue(){return this._valueGetter()}getTargetValue(e){return this._targetValueGetter(e)}constructor(e,t,n,r,i){this._valueGetter=t,this._targetValueGetter=n,this._onTargetValidityChangedGetter=r,this._onNewDisposableCreated=i,this._description=e.description}}t.Validation=i;class o extends i{constructor(e,t){super(e,t)}async isIntegerOrEmptyOrUndefined(){const e=await this.getValue();return!!(0,r.isUndefinedOrEmpty)(e)||("string"==typeof e?Number.isInteger(parseFloat(e)):Number.isInteger(e))}async validate(){const e=await this.isIntegerOrEmptyOrUndefined();return{valid:e,message:e?void 0:this.description}}}t.IntegerValidation=o;class a extends i{get regex(){return this._regex}constructor(e,t){super(e,t),(0,r.throwUnless)(void 0!==e.regex),this._regex="string"==typeof e.regex?new RegExp(e.regex):e.regex}async validate(){const e=(await this.getValue())?.toString(),t=!!(0,r.isUndefinedOrEmpty)(e)||this.regex.test(e);return{valid:t,message:t?void 0:this.description}}}t.RegexValidation=a;class s extends i{get target(){return this._target}onTargetValidityChanged(e){const t=this._onTargetValidityChangedGetter(this.target);this._onNewDisposableCreated(t((t=>e(t))))}constructor(e,t,n,i,o){super(e,t,n,i,o),this._ensureOnTargetValidityChangeListenerAdded=!1,(0,r.throwUnless)(void 0!==e.target),this._target=e.target}validateOnTargetValidityChange(){this._ensureOnTargetValidityChangeListenerAdded||(this._ensureOnTargetValidityChangeListenerAdded=!0,this.onTargetValidityChanged((async e=>{e&&await this.validate()})))}async validate(){this.validateOnTargetValidityChange();const e=await this.isComparisonSuccessful();return{valid:e,message:e?void 0:this.description}}}t.Comparison=s;class c extends s{async isComparisonSuccessful(){const e=await this.getValue(),t=await this.getTargetValue(this.target);return!(!(0,r.isUndefinedOrEmpty)(e)&&!(0,r.isUndefinedOrEmpty)(t))||e<=t}}t.LessThanOrEqualsValidation=c;class l extends s{async isComparisonSuccessful(){const e=await this.getValue(),t=await this.getTargetValue(this.target);return!(!(0,r.isUndefinedOrEmpty)(e)&&!(0,r.isUndefinedOrEmpty)(t))||e>=t}}t.GreaterThanOrEqualsValidation=l;class u extends s{async isComparisonSuccessful(){const e=await this.getValue(),t=this.target;return!(!(0,r.isUndefinedOrEmpty)(e)&&!(0,r.isUndefinedOrEmpty)(t))||e.toString()!==t}}t.NotEqualValidation=u,t.createValidation=function(e,t,n,r,i){switch(e.type){case"regex_match":return new a(e,t);case"is_integer":return new o(e,t);case"<=":return new c(e,t,n,r,i);case">=":return new l(e,t,n,r,i);case"!=":return new u(e,t,n,r,i);default:throw new Error(`unknown validation type:${e.type}`)}},t.validateInputBoxComponent=async function(e,t=[]){let n=!0,r="";for(const e of t)if(!(await e.validate()).valid){n=!1,r=e.description;break}return(e.validationErrorMessage??"")!==r&&(e.validationErrorMessage=r),n}},5819:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WizardPageBase=void 0;const r=n(9072);t.WizardPageBase=class{constructor(e,t,n){this._wizard=n,this._validators=[],this._page=r.window.createWizardPage(e),this._page.description=t}get pageObject(){return this._page}get wizard(){return this._wizard}async onEnter(e){}async onLeave(e){}get validators(){return this._validators}}},6533:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WizardPageInfo=void 0,t.WizardPageInfo=class{get pageCount(){return this._pageCount}get currentPageId(){return this._currentPageId}get isFirstPage(){return 0===this._currentPageId}get isLastPage(){return this._currentPageId===this._pageCount-1}constructor(e,t){this._currentPageId=e,this._pageCount=t}}},9166:e=>{"use strict";e.exports=require("applicationinsights-native-metrics")},9072:e=>{"use strict";e.exports=require("azdata")},9496:e=>{"use strict";e.exports=require("vscode")},9491:e=>{"use strict";e.exports=require("assert")},852:e=>{"use strict";e.exports=require("async_hooks")},2081:e=>{"use strict";e.exports=require("child_process")},6206:e=>{"use strict";e.exports=require("console")},2057:e=>{"use strict";e.exports=require("constants")},6113:e=>{"use strict";e.exports=require("crypto")},9523:e=>{"use strict";e.exports=require("dns")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},8188:e=>{"use strict";e.exports=require("module")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},4074:e=>{"use strict";e.exports=require("perf_hooks")},2781:e=>{"use strict";e.exports=require("stream")},9512:e=>{"use strict";e.exports=require("timers")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},9796:e=>{"use strict";e.exports=require("zlib")},3765:e=>{"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.deactivate=e.activate=void 0;const t=n(9496),i=n(3403),o=n(9455),a=n(3725),s=n(6877),c=n(5861),l=n(6847),u=n(2952),p=n(8630),d=n(9027),f=n(1979),h=i.loadMessageBundle(n(1017).join(__dirname,"main.ts"));e.activate=async function(e){const n=new a.PlatformService(e.globalStoragePath);await n.initialize();const r=new c.ToolsService(n),i=new o.NotebookService(n,e.extensionPath),m=new s.ResourceTypeService(n,r,i);m.loadResourceTypes(),e.subscriptions.push(t.extensions.onDidChange((()=>{m.loadResourceTypes()})));const v=new d.UriHandlerService(m);t.window.registerUriHandler(v);const g=(e,n,r,i)=>{const o=m.getResourceTypes().find((t=>t.name===e));o?new u.ResourceTypePickerDialog(m,o,n,r,i).open():t.window.showErrorMessage(h(0,null,e))};return e.subscriptions.push(t.commands.registerCommand("azdata.resource.sql-image.deploy",(()=>{g("sql-image")}))),e.subscriptions.push(t.commands.registerCommand("azdata.resource.deploy",((e,t,r,i)=>{if(t&&!Array.isArray(t)||t&&t.length>0&&"string"!=typeof t[0])throw new Error("resourceTypeNameFilters must either be undefined or an array of strings");if("string"==typeof e)g(e,t,r,i);else{let e;e="win32"===n.platform()?"sql-windows-setup":"sql-image",g(e,t,r,i)}}))),e.subscriptions.push(t.commands.registerCommand("azdata.openNotebookInputDialog",(e=>{new l.DeploymentInputDialog(i,n,r,e).open()}))),e.subscriptions.push(f.TelemetryReporter),(0,p.getExtensionApi)()},e.deactivate=function(){}})();var i=exports;for(var o in r)i[o]=r[o];r.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
//# sourceMappingURL=https://sqlopsbuilds.blob.core.windows.net/sourcemaps/b6f7beb01f92adaa4b79b6b6f3ac704e95cafe6e/extensions/resource-deployment/dist/main.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit