kundli-generator 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,16 @@
1
- (function(_,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],t):(_=typeof globalThis<"u"?globalThis:_||self,t(_.KundliGenerator={},_.React))})(this,(function(exports,require$$0){"use strict";var __vite_style__=document.createElement("style");__vite_style__.textContent=`@import"https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap";:root{--font-size-sm: 12px;--font-size-base: 14px;--font-size-lg: 16px}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\\!container{width:100%!important}.container{width:100%}@media(min-width:640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media(min-width:768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media(min-width:1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media(min-width:1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media(min-width:1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.right-3{right:.75rem}.top-1\\/2{top:50%}.top-full{top:100%}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.-ml-2{margin-left:-.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-0\\.5{margin-left:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-20{height:5rem}.h-full{height:100%}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-20{width:5rem}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\\[140px\\]{min-width:140px}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-6xl{max-width:72rem}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.rounded-r-\\[12px\\]{border-top-right-radius:12px;border-bottom-right-radius:12px}.rounded-t-\\[0\\.5rem\\]{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.bg-\\[\\#FEF7F4\\]{--tw-bg-opacity: 1;background-color:rgb(254 247 244 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-2{padding:.5rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-\\[10px\\]{padding-top:10px;padding-bottom:10px}.pb-28{padding-bottom:7rem}.pl-0{padding-left:0}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[16px\\]{font-size:16px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-sm\\/7{font-size:.875rem;line-height:1.75rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.capitalize{text-transform:capitalize}.leading-tight{line-height:1.25}.text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-amber-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}@media(min-width:640px){.sm\\:h-24{height:6rem}.sm\\:w-24{width:6rem}.sm\\:flex-row{flex-direction:row}.sm\\:text-2xl{font-size:1.5rem;line-height:2rem}}@media(min-width:768px){.md\\:flex-row{flex-direction:row}}._container_nm3gb_1{min-height:100vh;font-family:Plus Jakarta Sans,system-ui,-apple-system,sans-serif}._main_nm3gb_6{padding-bottom:7rem}._langDropdownWrap_nm3gb_12{position:relative}._langTrigger_nm3gb_16{display:flex;cursor:pointer;align-items:center;gap:.5rem;border-width:0px;background-color:transparent;padding:0;text-align:left;font-size:var(--font-size-sm);color:#1d2125}._langTrigger_nm3gb_16:hover{opacity:.85}._langTrigger_nm3gb_16:focus-visible{border-radius:.25rem;outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1))}._langIcon_nm3gb_28{flex-shrink:0;width:16px;height:16px;display:block}._langLabel_nm3gb_35{font-size:var(--font-size-sm);font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}._langMenu_nm3gb_40{position:absolute;right:0;top:100%;z-index:20;margin-top:.25rem;min-width:140px;list-style-type:none;border-radius:.5rem;padding-top:.25rem;padding-bottom:.25rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);background:#fff;border:1px solid #e5e7eb}._langOption_nm3gb_46{font-size:var(--font-size-sm);cursor:pointer;padding:.5rem .75rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}._langOption_nm3gb_46:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}._langOption_nm3gb_46[aria-selected=true]{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1));font-weight:500}._container_1e1th_1{min-height:100vh;font-family:Plus Jakarta Sans,system-ui,-apple-system,sans-serif;background:#fffefd}._main_1e1th_7{padding-bottom:7rem}._kundliHeaderNoBorder_1e1th_12{border-bottom:0!important}._headerSeparator_1e1th_16{height:1px;background:#f0ebe3}._langDropdownWrap_1e1th_21{position:relative}._langTrigger_1e1th_25{display:flex;cursor:pointer;align-items:center;gap:.5rem;border-width:0px;background-color:transparent;padding:0;text-align:left;font-size:var(--font-size-sm);color:#1d2125}._langTrigger_1e1th_25:hover{opacity:.85}._langTrigger_1e1th_25:focus-visible{border-radius:.25rem;outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1))}._langIcon_1e1th_37{flex-shrink:0;width:16px;height:16px;display:block}._langLabel_1e1th_44{font-size:var(--font-size-sm);font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}._langMenu_1e1th_49{position:absolute;right:0;top:100%;z-index:20;margin-top:.25rem;min-width:140px;list-style-type:none;border-radius:.5rem;padding-top:.25rem;padding-bottom:.25rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);background:#fff;border:1px solid #e5e7eb}._langOption_1e1th_55{font-size:var(--font-size-sm);cursor:pointer;padding:.5rem .75rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}._langOption_1e1th_55:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}._langOption_1e1th_55[aria-selected=true]{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1));font-weight:500}._header_1414z_1{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:1rem 1rem .25rem;background:transparent;border:0}._left_1414z_7{display:flex;align-items:flex-start;gap:.75rem}._backBtn_1414z_11{margin-left:-.5rem;cursor:pointer;border-radius:.25rem;border-width:0px;background-color:transparent;padding:.5rem}._backBtn_1414z_11:focus-visible{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1))}._backBtn_1414z_11:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}._titleWrap_1414z_21{display:flex;flex-direction:column}._title_1414z_21{font-weight:700;font-size:18px;line-height:1.2;color:#ea580c}._subtitle_1414z_32{margin-top:.25rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1));font-size:12px;max-width:22rem}._backIcon_1414z_38{width:20px;height:20px;display:block;color:#111827}._wrap_1wp0p_1{padding:1rem}._card_1wp0p_5{margin-left:auto;margin-right:auto;max-width:36rem;border-radius:1rem;background:#fff;box-shadow:0 10px 30px #11182714;border:1px solid rgba(229,231,235,.9)}._cardInner_1wp0p_12{padding:1.25rem}@media(min-width:640px){._cardInner_1wp0p_12{padding:1.5rem}}._field_1wp0p_16{margin-bottom:1.25rem}._labelRow_1wp0p_20{margin-bottom:.5rem;display:flex;align-items:center;justify-content:space-between;gap:.75rem}._label_1wp0p_20{font-weight:600;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));font-size:14px}._req_1wp0p_29{color:#ef4444}._help_1wp0p_33{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1));font-size:var(--font-size-sm);margin-top:-4px;margin-bottom:10px}._infoBtn_1wp0p_40{width:18px;height:18px;padding:0;border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer}._infoBtn_1wp0p_40:focus-visible{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1));border-radius:4px}._infoImg_1wp0p_57{width:18px;height:18px;display:block}._infoWrap_1wp0p_63{position:relative;display:inline-flex;align-items:center}._tooltip_1wp0p_69{position:absolute;bottom:calc(100% + 8px);top:auto;right:0;z-index:60;width:min(280px,75vw);background:#111827;color:#fff;padding:10px 12px;border-radius:12px;font-size:12px;line-height:1.35;box-shadow:0 12px 28px #11182738}._tooltipArrow_1wp0p_85{position:absolute;bottom:-6px;top:auto;right:10px;width:12px;height:12px;background:#111827;transform:rotate(45deg)}._inputWrap_1wp0p_96{position:relative}._suggestions_1wp0p_100{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;background:#fff;border:1px solid rgba(229,231,235,.95);border-radius:12px;box-shadow:0 10px 24px #1118271f;overflow:hidden}._suggestionItem_1wp0p_113{width:100%;border:0;background:transparent;padding:10px 12px;text-align:left;display:flex;flex-direction:column;gap:2px;cursor:pointer}._suggestionItem_1wp0p_113:hover,._suggestionItem_1wp0p_113:focus-visible{outline:none;background:#f75e220f}._suggestionMain_1wp0p_131{font-size:14px;color:#111827;font-weight:600}._suggestionSecondary_1wp0p_137{font-size:12px;color:#6b7280}._suggestionsHint_1wp0p_142{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;background:#fff;border:1px solid rgba(229,231,235,.95);border-radius:12px;box-shadow:0 10px 24px #1118271f;padding:10px 12px;font-size:12px;color:#6b7280}._timePopover_1wp0p_157{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:35;background:#fff;border:1px solid rgba(229,231,235,.95);border-radius:10px;box-shadow:0 10px 24px #1118271f;padding:8px;display:flex;flex-direction:column;gap:6px}._timePickerRow_1wp0p_173{display:flex;align-items:center;gap:6px}._timePickerSelect_1wp0p_179{height:36px;border-radius:8px;border:1px solid #e5e7eb;padding:0 6px;font-size:13px;font-weight:500;color:#111827;background:#fff;min-width:0}._timePickerSelect_1wp0p_179:focus,._timePickerSelect_1wp0p_179:focus-visible{outline:none;border:1px solid #f75e22}._timePickerColon_1wp0p_195{font-size:14px;font-weight:700;color:#111827;margin:0 -2px;flex-shrink:0}._meridiemToggle_1wp0p_203{margin-left:auto;display:inline-flex;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;flex-shrink:0}._meridiemBtn_1wp0p_212{height:36px;min-width:44px;padding:0 6px;border:0;background:#fff;font-size:12px;font-weight:600;color:#111827;cursor:pointer}._meridiemBtn_1wp0p_212:hover{background:#f9fafb}._meridiemActive_1wp0p_227{background:#f75e221f;color:#f75e22}._timePopoverActions_1wp0p_232{display:flex;justify-content:flex-end;gap:6px}._timePopoverBtn_1wp0p_238{height:32px;padding:0 10px;border-radius:8px;border:1px solid #e5e7eb;background:#fff;font-size:13px;font-weight:600;color:#111827;cursor:pointer}._timePopoverBtn_1wp0p_238:hover{background:#f9fafb}._timePopoverBtn_1wp0p_238:disabled{opacity:.45;cursor:not-allowed}._timePopoverOk_1wp0p_257{border-color:#f75e22;background:#f75e22;color:#fff}._timePopoverOk_1wp0p_257:hover{background:#ea4e1a}._input_1wp0p_96{width:100%;border-radius:.75rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding-left:1rem;padding-right:1rem;font-size:14px;color:#111827;height:48px;padding-top:0;padding-bottom:0;line-height:48px}._input_1wp0p_96[type=date],._input_1wp0p_96[type=time]{-webkit-appearance:none;-moz-appearance:none;appearance:none}._input_1wp0p_96[type=date]::-webkit-calendar-picker-indicator,._input_1wp0p_96[type=time]::-webkit-calendar-picker-indicator{opacity:0;display:block;width:24px;height:24px}._input_1wp0p_96[type=date]::-webkit-inner-spin-button,._input_1wp0p_96[type=time]::-webkit-inner-spin-button{display:none}._input_1wp0p_96:focus,._input_1wp0p_96:focus-visible{outline:none;border:1px solid #f75e22;box-shadow:none}._input_1wp0p_96::-moz-placeholder{color:#9ca3af}._input_1wp0p_96::placeholder{color:#9ca3af}._input_1wp0p_96:disabled{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}._iconBtn_1wp0p_301{position:absolute;right:.75rem;top:50%;display:flex;height:2.5rem;width:2.5rem;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));align-items:center;justify-content:center;border-radius:.5rem;color:#ea580c;pointer-events:none}._iconBtnInteractive_1wp0p_307{pointer-events:auto;cursor:pointer;background:transparent;border:0;padding:0}._iconBtnInteractive_1wp0p_307:hover{background:#ea580c0f}._iconBtnInteractive_1wp0p_307:focus-visible{outline:none;box-shadow:0 0 0 2px #f75e2240}._iconBtnInteractive_1wp0p_307:disabled{opacity:.45;cursor:not-allowed}._iconImg_1wp0p_326{width:22px;height:22px;display:block}._checkboxRow_1wp0p_332{margin-top:.75rem;display:flex;align-items:flex-start;gap:.75rem}._checkbox_1wp0p_332{margin-top:6px;width:18px;height:18px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:2px solid #6b7280;border-radius:4px;background:#fff;display:inline-grid;place-content:center;cursor:pointer}._checkbox_1wp0p_332:checked{background:#6b7280;border-color:#6b7280}._checkbox_1wp0p_332:checked:before{content:"";width:10px;height:6px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg);margin-top:-1px}._checkbox_1wp0p_332:focus-visible{outline:none;box-shadow:0 0 0 2px #f75e2240}._checkboxText_1wp0p_370{color:#6b7280;font-size:12px;line-height:1.35}._footer_15g1k_1{position:fixed;bottom:0;left:0;right:0;z-index:10;padding:.75rem 1rem;background:#fff;box-shadow:0 -2px 10px #0000001a}._inner_15g1k_7{margin-left:auto;margin-right:auto;display:flex;max-width:72rem;flex-direction:column;align-items:center;justify-content:space-between;gap:1rem}@media(min-width:640px){._inner_15g1k_7{flex-direction:row}}._badges_15g1k_11{overflow:hidden;flex:1;min-width:0;max-width:100%}._marqueeTrack_15g1k_18{display:flex;width:-moz-max-content;width:max-content;animation:_marquee_15g1k_18 12s linear infinite}._marqueeContent_15g1k_24{display:flex;align-items:center;gap:.75rem;flex-shrink:0;padding-right:1.5rem;color:#087955;font-weight:600;font-size:.75rem}@keyframes _marquee_15g1k_18{0%{transform:translate(0)}to{transform:translate(-50%)}}._badge_15g1k_11{display:flex;align-items:center;gap:.375rem;white-space:nowrap}._badgeIcon_15g1k_47{flex-shrink:0}._ctaWrap_15g1k_51{width:100%;flex-shrink:0}._ctaStruck_15g1k_55{text-decoration:line-through;opacity:.6;font-weight:400}._ctaButton_15g1k_61{font-size:var(--font-size-lg);width:100%;cursor:pointer;border-radius:.5rem;border-width:0px;padding:.75rem 1.5rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;background:radial-gradient(123.65% 265.91% at 52.2% -165.91%,#0fdf9d,#087955);box-shadow:0 2px 8px #00000026}@media(min-width:640px){._ctaButton_15g1k_61{font-size:var(--font-size-base)}}._ctaButton_15g1k_61:hover{opacity:.95}._ctaButton_15g1k_61:disabled,._ctaButton_15g1k_61[aria-disabled=true]{opacity:.6;cursor:not-allowed;pointer-events:none}._offerRow_15g1k_81{margin-bottom:.75rem;display:flex;align-items:center;justify-content:center;gap:.75rem;font-size:var(--font-size-base);color:#087955;font-weight:600}._pill_15g1k_88{border-radius:9999px;padding:.25rem .75rem;background:#0879551f;color:#087955;font-size:var(--font-size-sm);font-weight:700}._header_dbx4y_1{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding-top:10px;padding-bottom:10px;padding-left:1rem;padding-right:1rem;background:#f9fafb;border-bottom:1px solid #f0ebe3}._brand_dbx4y_7{display:flex;align-items:center;gap:.75rem}._logo_dbx4y_11{flex-shrink:0}._logoImg_dbx4y_15{width:32px;height:32px;-o-object-fit:contain;object-fit:contain}._logoPlaceholder_dbx4y_21{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#fbbf24,#f59e0b);border:2px solid #d97706}._brandText_dbx4y_29{display:flex;flex-direction:column}._brandName_dbx4y_33{font-weight:700;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));font-size:var(--font-size-lg)}._rating_dbx4y_38{font-size:10px;font-weight:600;display:flex;align-items:center;gap:.25rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._stars_dbx4y_44{color:#fbbf24;letter-spacing:.05em}._langSlot_dbx4y_49{display:flex;align-items:center;gap:.5rem}._hero_okj8x_1{margin-left:auto;margin-right:auto;max-width:48rem;padding:1.25rem 1rem;text-align:center}._title_okj8x_5{font-size:1.5rem;line-height:2rem;font-weight:700;line-height:1.25;color:#ea580c}._subtitle_okj8x_10{font-size:var(--font-size-base);margin-top:.75rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1));max-width:36rem;margin-left:auto;margin-right:auto}@media(min-width:640px){._subtitle_okj8x_10{font-size:var(--font-size-lg)}}._topicTags_okj8x_23{margin-top:1.5rem;display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem}._tag_okj8x_27{font-size:var(--font-size-base);padding:.5rem 1rem;font-weight:500;color:#374151;border-radius:30px;background:radial-gradient(50% 50% at 50% 50%,#ffddc5,#fff3eb)}._section_j2cgl_1{background-image:url(https://srm-cdn.a4b.io/yoda/1770363798583.png);background-size:cover;background-position:center;background-repeat:no-repeat;padding:1rem}._inner_j2cgl_9{position:relative;margin-left:auto;margin-right:auto;display:flex;max-width:72rem;flex-direction:row;align-items:center;justify-content:space-between;gap:2rem}@media(min-width:768px){._inner_j2cgl_9{flex-direction:row;gap:3rem}}._content_j2cgl_14{flex:1 1 0%}._headline_j2cgl_18{font-family:Plus Jakarta Sans,system-ui,sans-serif;display:flex;flex-direction:column;gap:.25rem;font-weight:700;line-height:1.25}._headlineLine_j2cgl_23{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}._headlinePill_j2cgl_28{color:#f75e22;font-family:Plus Jakarta Sans,system-ui,sans-serif;font-size:var(--font-size-base);font-style:normal;font-weight:700;line-height:18px;letter-spacing:0;text-transform:capitalize;border-radius:.375rem;padding:.125rem .625rem;background:#fff6f0;white-space:nowrap}._headlinePlain_j2cgl_43{color:#fff6f0;font-family:Plus Jakarta Sans,system-ui,sans-serif;font-size:var(--font-size-base);font-style:normal;font-weight:700;line-height:18px;letter-spacing:0;text-transform:capitalize}._featureList_j2cgl_54{margin-top:1rem;list-style-type:none}._featureList_j2cgl_54>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}._featureList_j2cgl_54{padding-left:0}._featureList_j2cgl_54 li{margin-top:.5rem!important}._featureItem_j2cgl_61{font-size:var(--font-size-base);display:flex;align-items:center;gap:.5rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}._featureIcon_j2cgl_66{flex-shrink:0;width:16px;height:16px;display:block}._reportImage_j2cgl_73{width:120px;height:160px;aspect-ratio:68/103;position:absolute;top:10px;right:1rem;flex-shrink:0}._reportImg_j2cgl_83{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}._reportPlaceholder_j2cgl_89{display:flex;height:100%;width:100%;align-items:center;justify-content:center;border-radius:.5rem;background:linear-gradient(145deg,#fef3c7,#fde68a);border:2px solid rgba(255,255,255,.5);box-shadow:0 10px 40px #0003}._placeholderText_j2cgl_96{padding-left:.5rem;padding-right:.5rem;text-align:center;font-size:.75rem;line-height:1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1));writing-mode:vertical-rl;text-orientation:mixed;transform:rotate(-180deg)}._section_1g93x_1{padding:1rem;text-align:center;background:#fff}._heading_1g93x_6{margin-bottom:1rem;font-size:.875rem;line-height:1.75rem;font-weight:600;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}._logoImg_1g93x_10{width:100%}._section_fw00n_1{margin-left:auto;margin-right:auto;max-width:42rem;padding:1.25rem 1rem;text-align:center;background:#feefe9}._heading_fw00n_6{font-size:var(--font-size-base, 1rem);margin-bottom:.25rem;font-weight:400;color:#eb6324}._subtitle_fw00n_12{margin-bottom:1rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;color:#eb6324}._stepList_fw00n_17{list-style-type:none}._stepList_fw00n_17>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}._stepList_fw00n_17{padding-left:0}._stepItem_fw00n_21{display:flex;flex-direction:column;align-items:center;gap:.75rem;font-weight:600}._stepNumber_fw00n_25{display:flex;height:3.5rem;width:3.5rem;flex-shrink:0;align-items:center;justify-content:center;border-radius:9999px;border-width:2px;font-size:1.5rem;line-height:2rem;font-weight:800;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));border-color:#eb6324;color:#eb6324}._stepText_fw00n_31{font-size:var(--font-size-base, 1rem);--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}._step3Days_fw00n_36{font-size:20px;font-weight:800}._section_uboy6_1{display:flex;justify-content:center;padding:1.25rem .75rem;background:#fff;width:100%}._button_uboy6_7{font-size:var(--font-size-base);width:100%;border-radius:.5rem;border-width:2px;padding:.75rem 2rem;font-weight:700;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;border-color:#087955;color:#087955;background:transparent}._button_uboy6_7:hover{background:#f0fdf4}._backdrop_pekod_1{position:fixed;inset:0;background:#00000080;z-index:1000;display:flex;align-items:flex-end;justify-content:center;padding:2rem 0 0;animation:_fadeIn_pekod_1 .2s ease}@keyframes _fadeIn_pekod_1{0%{opacity:0}to{opacity:1}}._modal_pekod_21{background:#fff;border-radius:.75rem .75rem 0 0;width:100%;max-height:calc(100vh - 2rem);display:flex;flex-direction:column;box-shadow:0 -4px 20px #00000026;animation:_slideUp_pekod_1 .3s ease-out}@keyframes _slideUp_pekod_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}._header_pekod_40{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid #e5e7eb;flex-shrink:0}._title_pekod_49{font-size:var(--font-size-base);font-weight:600;color:#111827;margin:0}._closeBtn_pekod_56{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border:none;background:transparent;color:#6b7280;cursor:pointer;border-radius:.25rem;font-size:1.25rem;line-height:1}._closeBtn_pekod_56:hover{background:#f3f4f6;color:#111827}._content_pekod_76{flex:1;min-height:0;overflow:auto;padding:0;-webkit-overflow-scrolling:touch}._pdfFrame_pekod_84{display:block;width:100%;min-height:60vh;height:65vh;overflow:auto}._pdfPages_pekod_92{padding:.5rem 0}._pdfLoader_pekod_96,._pdfError_pekod_97{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:200px;padding:2rem;color:#6b7280;text-align:center;gap:.5rem}._pdfLoader_pekod_96 a,._pdfError_pekod_97 a{color:#2563eb;text-decoration:none;font-weight:500}._pdfLoader_pekod_96 a:hover,._pdfError_pekod_97 a:hover{text-decoration:underline}._pdfError_pekod_97{color:#dc2626}._openInNewTab_pekod_123{display:block;padding:.75rem 1.25rem;text-align:center;font-size:.875rem;font-weight:500;color:#2563eb;text-decoration:none;border-top:1px solid #e5e7eb;background:#f9fafb}._openInNewTab_pekod_123:hover{background:#f3f4f6;color:#1d4ed8}._section_g1kup_1{margin-left:auto;margin-right:auto;max-width:56rem;padding:1rem}._heading_g1kup_5{margin-bottom:2rem;text-align:center;font-size:1.25rem;line-height:1.75rem;font-weight:700;color:#ea580c}._list_g1kup_10{list-style-type:none}._list_g1kup_10>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}._list_g1kup_10{padding-left:0}._list_g1kup_10 li{margin-top:1rem!important}._item_g1kup_17{display:flex;align-items:flex-start}._imageWrap_g1kup_21{height:5rem;width:5rem;flex-shrink:0}@media(min-width:640px){._imageWrap_g1kup_21{height:6rem;width:6rem}}._image_g1kup_21{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;border-radius:8px 0 0 8px}._imagePlaceholder_g1kup_30{height:100%;width:100%;border-radius:.5rem;background:linear-gradient(135deg,#fef3c7,#fde68a);border:1px solid #fcd34d}._text_g1kup_36{display:flex;height:5rem;min-width:0px;flex:1 1 0%;flex-direction:column;justify-content:center;border-top-right-radius:12px;border-bottom-right-radius:12px;--tw-bg-opacity: 1;background-color:rgb(254 247 244 / var(--tw-bg-opacity, 1));padding:.75rem .5rem}@media(min-width:640px){._text_g1kup_36{height:6rem}}._itemTitle_g1kup_40{font-size:var(--font-size-base);margin-bottom:.25rem;font-weight:700;color:#ea580c}@media(min-width:640px){._itemTitle_g1kup_40{font-size:var(--font-size-lg)}}._itemDesc_g1kup_51{font-size:var(--font-size-sm);--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._section_1poer_1{margin-left:auto;margin-right:auto;max-width:42rem;padding:1.25rem 1rem;background:#fef7f4}._heading_1poer_6{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:700}@media(min-width:640px){._heading_1poer_6{font-size:1.5rem;line-height:2rem}}._heading_1poer_6{color:#ea580c}._subtitle_1poer_11{font-size:var(--font-size-sm);margin-bottom:1.5rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._list_1poer_16{list-style-type:none}._list_1poer_16>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}._list_1poer_16{padding-left:0}._item_1poer_20{font-size:var(--font-size-base);display:flex;align-items:center;gap:.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}._item_1poer_20:before{content:"";flex-shrink:0;width:1rem;height:1rem;background-image:url(https://srm-cdn.a4b.io/yoda/1770372842638.svg);background-size:contain}._section_3cm7k_1{margin-left:auto;margin-right:auto;max-width:48rem;padding:1rem}._heading_3cm7k_5{margin-bottom:.5rem;text-align:center;font-size:1.25rem;line-height:1.75rem;font-weight:700}@media(min-width:640px){._heading_3cm7k_5{font-size:1.5rem;line-height:2rem}}._heading_3cm7k_5{color:#ea580c}._trustLine_3cm7k_10{font-size:var(--font-size-sm);margin-bottom:1.5rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem;text-align:center;font-weight:600;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._star_3cm7k_15{color:#f99724;font-size:var(--font-size-lg)}._ratingNum_3cm7k_20{font-size:16px;font-weight:700;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}._trustText_3cm7k_24{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._cardList_3cm7k_28{list-style-type:none}._cardList_3cm7k_28>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}._cardList_3cm7k_28{padding-left:0}._card_3cm7k_28{border-radius:.75rem;padding:1rem;font-weight:600;background:#fff2cf}._quote_3cm7k_37{font-size:var(--font-size-sm);margin-bottom:.75rem;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}._author_3cm7k_42{display:flex;align-items:center;gap:.75rem}._avatar_3cm7k_46{height:2.5rem;width:2.5rem;flex-shrink:0;border-radius:9999px;-o-object-fit:cover;object-fit:cover}._avatarPlaceholder_3cm7k_50{height:2.5rem;width:2.5rem;flex-shrink:0;border-radius:9999px;background:linear-gradient(135deg,#fcd34d,#f59e0b)}._authorInfo_3cm7k_55{display:flex;flex-direction:column}._authorName_3cm7k_59{font-size:var(--font-size-sm);font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}._stars_3cm7k_64{color:#fbbf24;font-size:var(--font-size-sm)}._readMoreWrap_3cm7k_69{margin-top:1.5rem;text-align:center;font-size:1.125rem;line-height:1.75rem}._toggleBtn_3cm7k_73{font-size:var(--font-size-lg);display:inline-flex;width:100%;cursor:pointer;align-items:center;justify-content:center;gap:.375rem;border-radius:.5rem;padding:.625rem 1.25rem;font-weight:600;background-color:#1d21250f;color:#502d14;border:none;box-shadow:0 1px 2px #0000000f}._toggleBtn_3cm7k_73:hover{background-color:#dfdbd2}._readMore_3cm7k_69{font-size:var(--font-size-sm);display:inline-flex;cursor:pointer;align-items:center;gap:.25rem;border-width:0px;background-color:transparent;padding-top:.5rem;padding-bottom:.5rem;padding-left:0;padding-right:0;font-weight:500;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}._readMore_3cm7k_69:hover{text-decoration:underline}._arrow_3cm7k_93{margin-left:.125rem;margin-bottom:.25rem;display:inline-block;font-size:1.5rem;line-height:2rem}._dot_3cm7k_97{display:inline-block;width:6px;height:6px;border-radius:50%;background-color:currentColor;flex-shrink:0;vertical-align:middle}._section_1scfq_1{margin-left:auto;margin-right:auto;max-width:42rem;padding:1rem;background:#fff}._heading_1scfq_6{margin-bottom:1.5rem;text-align:center;font-size:1.25rem;line-height:1.75rem;font-weight:700}@media(min-width:640px){._heading_1scfq_6{font-size:1.5rem;line-height:2rem}}._heading_1scfq_6{color:#ea580c}._accordion_1scfq_11{display:flex;flex-direction:column;gap:.75rem}._item_1scfq_15{border:1px solid #e5e7eb;border-radius:.5rem;background:#fff;transition:border-color .2s,box-shadow .2s}._item_1scfq_15._itemOpen_1scfq_21{border-color:#ea580c;box-shadow:0 0 0 2px #ea580c33}._item_1scfq_15._itemOpen_1scfq_21 ._question_1scfq_25{background-color:#feefe9}._question_1scfq_25{font-size:var(--font-size-base);display:flex;width:100%;cursor:pointer;align-items:center;justify-content:space-between;gap:1rem;border-top-left-radius:.5rem;border-top-right-radius:.5rem;border-width:0px;background-color:transparent;padding:1rem;text-align:left;font-weight:600;color:#374151}@media(min-width:640px){._question_1scfq_25{font-size:var(--font-size-base)}}._chevron_1scfq_40{flex-shrink:0;font-size:.75rem;color:#6b7280;transition:transform .2s}._chevronOpen_1scfq_47{transform:rotate(180deg)}._answerWrap_1scfq_51{overflow:hidden;transition:all .2s ease}._answerOpen_1scfq_56{display:block}._answer_1scfq_51{padding:1rem;font-size:.875rem;line-height:1.25rem;font-weight:600;color:#6b7280;line-height:1.5}._section_aphm8_1{margin-left:auto;margin-right:auto;max-width:42rem;padding:1rem;font-weight:500;background:#fff}._heading_aphm8_6{margin-bottom:1rem;text-align:center;font-size:1.25rem;line-height:1.75rem;font-weight:700}@media(min-width:640px){._heading_aphm8_6{font-size:1.5rem;line-height:2rem}}._heading_aphm8_6{color:#ea580c}._content_aphm8_11{font-size:var(--font-size-sm)}._content_aphm8_11>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}._content_aphm8_11{text-align:center;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}._line_aphm8_16{margin:0}._brandName_aphm8_20{padding-top:1rem;padding-bottom:1rem}
2
- /*$vite$:1*/`,document.head.appendChild(__vite_style__);function getAugmentedNamespace(_){if(Object.prototype.hasOwnProperty.call(_,"__esModule"))return _;var t=_.default;if(typeof t=="function"){var v=function i(){var u=!1;try{u=this instanceof i}catch{}return u?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};v.prototype=t.prototype}else v={};return Object.defineProperty(v,"__esModule",{value:!0}),Object.keys(_).forEach(function(i){var u=Object.getOwnPropertyDescriptor(_,i);Object.defineProperty(v,i,u.get?u:{enumerable:!0,get:function(){return _[i]}})}),v}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={};var hasRequiredReactJsxRuntime_production_min;function requireReactJsxRuntime_production_min(){if(hasRequiredReactJsxRuntime_production_min)return reactJsxRuntime_production_min;hasRequiredReactJsxRuntime_production_min=1;var _=require$$0,t=Symbol.for("react.element"),v=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,u=_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,P={key:!0,ref:!0,__self:!0,__source:!0};function k(T,y,c){var r,l={},h=null,n=null;c!==void 0&&(h=""+c),y.key!==void 0&&(h=""+y.key),y.ref!==void 0&&(n=y.ref);for(r in y)i.call(y,r)&&!P.hasOwnProperty(r)&&(l[r]=y[r]);if(T&&T.defaultProps)for(r in y=T.defaultProps,y)l[r]===void 0&&(l[r]=y[r]);return{$$typeof:t,type:T,key:h,ref:n,props:l,_owner:u.current}}return reactJsxRuntime_production_min.Fragment=v,reactJsxRuntime_production_min.jsx=k,reactJsxRuntime_production_min.jsxs=k,reactJsxRuntime_production_min}var reactJsxRuntime_development={};var hasRequiredReactJsxRuntime_development;function requireReactJsxRuntime_development(){return hasRequiredReactJsxRuntime_development||(hasRequiredReactJsxRuntime_development=1,process.env.NODE_ENV!=="production"&&(function(){var _=require$$0,t=Symbol.for("react.element"),v=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),T=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),r=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),n=Symbol.for("react.offscreen"),p=Symbol.iterator,m="@@iterator";function f(N){if(N===null||typeof N!="object")return null;var ne=p&&N[p]||N[m];return typeof ne=="function"?ne:null}var b=_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(N){{for(var ne=arguments.length,oe=new Array(ne>1?ne-1:0),he=1;he<ne;he++)oe[he-1]=arguments[he];I("error",N,oe)}}function I(N,ne,oe){{var he=b.ReactDebugCurrentFrame,_e=he.getStackAddendum();_e!==""&&(ne+="%s",oe=oe.concat([_e]));var be=oe.map(function(fe){return String(fe)});be.unshift("Warning: "+ne),Function.prototype.apply.call(console[N],console,be)}}var w=!1,a=!1,g=!1,R=!1,$=!1,D;D=Symbol.for("react.module.reference");function B(N){return!!(typeof N=="string"||typeof N=="function"||N===i||N===P||$||N===u||N===c||N===r||R||N===n||w||a||g||typeof N=="object"&&N!==null&&(N.$$typeof===h||N.$$typeof===l||N.$$typeof===k||N.$$typeof===T||N.$$typeof===y||N.$$typeof===D||N.getModuleId!==void 0))}function q(N,ne,oe){var he=N.displayName;if(he)return he;var _e=ne.displayName||ne.name||"";return _e!==""?oe+"("+_e+")":oe}function J(N){return N.displayName||"Context"}function se(N){if(N==null)return null;if(typeof N.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof N=="function")return N.displayName||N.name||null;if(typeof N=="string")return N;switch(N){case i:return"Fragment";case v:return"Portal";case P:return"Profiler";case u:return"StrictMode";case c:return"Suspense";case r:return"SuspenseList"}if(typeof N=="object")switch(N.$$typeof){case T:var ne=N;return J(ne)+".Consumer";case k:var oe=N;return J(oe._context)+".Provider";case y:return q(N,N.render,"ForwardRef");case l:var he=N.displayName||null;return he!==null?he:se(N.type)||"Memo";case h:{var _e=N,be=_e._payload,fe=_e._init;try{return se(fe(be))}catch{return null}}}return null}var Q=Object.assign,H=0,U,W,S,d,o,A,M;function j(){}j.__reactDisabledLog=!0;function e(){{if(H===0){U=console.log,W=console.info,S=console.warn,d=console.error,o=console.group,A=console.groupCollapsed,M=console.groupEnd;var N={configurable:!0,enumerable:!0,value:j,writable:!0};Object.defineProperties(console,{info:N,log:N,warn:N,error:N,group:N,groupCollapsed:N,groupEnd:N})}H++}}function s(){{if(H--,H===0){var N={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Q({},N,{value:U}),info:Q({},N,{value:W}),warn:Q({},N,{value:S}),error:Q({},N,{value:d}),group:Q({},N,{value:o}),groupCollapsed:Q({},N,{value:A}),groupEnd:Q({},N,{value:M})})}H<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var x=b.ReactCurrentDispatcher,F;function C(N,ne,oe){{if(F===void 0)try{throw Error()}catch(_e){var he=_e.stack.trim().match(/\n( *(at )?)/);F=he&&he[1]||""}return`
3
- `+F+N}}var L=!1,O;{var V=typeof WeakMap=="function"?WeakMap:Map;O=new V}function G(N,ne){if(!N||L)return"";{var oe=O.get(N);if(oe!==void 0)return oe}var he;L=!0;var _e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var be;be=x.current,x.current=null,e();try{if(ne){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(Me){he=Me}Reflect.construct(N,[],fe)}else{try{fe.call()}catch(Me){he=Me}N.call(fe.prototype)}}else{try{throw Error()}catch(Me){he=Me}N()}}catch(Me){if(Me&&he&&typeof Me.stack=="string"){for(var pe=Me.stack.split(`
4
- `),je=he.stack.split(`
5
- `),Ae=pe.length-1,Ee=je.length-1;Ae>=1&&Ee>=0&&pe[Ae]!==je[Ee];)Ee--;for(;Ae>=1&&Ee>=0;Ae--,Ee--)if(pe[Ae]!==je[Ee]){if(Ae!==1||Ee!==1)do if(Ae--,Ee--,Ee<0||pe[Ae]!==je[Ee]){var Oe=`
6
- `+pe[Ae].replace(" at new "," at ");return N.displayName&&Oe.includes("<anonymous>")&&(Oe=Oe.replace("<anonymous>",N.displayName)),typeof N=="function"&&O.set(N,Oe),Oe}while(Ae>=1&&Ee>=0);break}}}finally{L=!1,x.current=be,s(),Error.prepareStackTrace=_e}var Ve=N?N.displayName||N.name:"",ze=Ve?C(Ve):"";return typeof N=="function"&&O.set(N,ze),ze}function X(N,ne,oe){return G(N,!1)}function te(N){var ne=N.prototype;return!!(ne&&ne.isReactComponent)}function Y(N,ne,oe){if(N==null)return"";if(typeof N=="function")return G(N,te(N));if(typeof N=="string")return C(N);switch(N){case c:return C("Suspense");case r:return C("SuspenseList")}if(typeof N=="object")switch(N.$$typeof){case y:return X(N.render);case l:return Y(N.type,ne,oe);case h:{var he=N,_e=he._payload,be=he._init;try{return Y(be(_e),ne,oe)}catch{}}}return""}var ee=Object.prototype.hasOwnProperty,re={},ae=b.ReactDebugCurrentFrame;function ce(N){if(N){var ne=N._owner,oe=Y(N.type,N._source,ne?ne.type:null);ae.setExtraStackFrame(oe)}else ae.setExtraStackFrame(null)}function ie(N,ne,oe,he,_e){{var be=Function.call.bind(ee);for(var fe in N)if(be(N,fe)){var pe=void 0;try{if(typeof N[fe]!="function"){var je=Error((he||"React class")+": "+oe+" type `"+fe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof N[fe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}pe=N[fe](ne,fe,he,oe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ae){pe=Ae}pe&&!(pe instanceof Error)&&(ce(_e),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",he||"React class",oe,fe,typeof pe),ce(null)),pe instanceof Error&&!(pe.message in re)&&(re[pe.message]=!0,ce(_e),E("Failed %s type: %s",oe,pe.message),ce(null))}}}var ge=Array.isArray;function me(N){return ge(N)}function de(N){{var ne=typeof Symbol=="function"&&Symbol.toStringTag,oe=ne&&N[Symbol.toStringTag]||N.constructor.name||"Object";return oe}}function xe(N){try{return Te(N),!1}catch{return!0}}function Te(N){return""+N}function Fe(N){if(xe(N))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",de(N)),Te(N)}var Ce=b.ReactCurrentOwner,$e={key:!0,ref:!0,__self:!0,__source:!0},ve,ye;function Z(N){if(ee.call(N,"ref")){var ne=Object.getOwnPropertyDescriptor(N,"ref").get;if(ne&&ne.isReactWarning)return!1}return N.ref!==void 0}function K(N){if(ee.call(N,"key")){var ne=Object.getOwnPropertyDescriptor(N,"key").get;if(ne&&ne.isReactWarning)return!1}return N.key!==void 0}function z(N,ne){typeof N.ref=="string"&&Ce.current}function le(N,ne){{var oe=function(){ve||(ve=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ne))};oe.isReactWarning=!0,Object.defineProperty(N,"key",{get:oe,configurable:!0})}}function ue(N,ne){{var oe=function(){ye||(ye=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ne))};oe.isReactWarning=!0,Object.defineProperty(N,"ref",{get:oe,configurable:!0})}}var Se=function(N,ne,oe,he,_e,be,fe){var pe={$$typeof:t,type:N,key:ne,ref:oe,props:fe,_owner:be};return pe._store={},Object.defineProperty(pe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(pe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:he}),Object.defineProperty(pe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_e}),Object.freeze&&(Object.freeze(pe.props),Object.freeze(pe)),pe};function ke(N,ne,oe,he,_e){{var be,fe={},pe=null,je=null;oe!==void 0&&(Fe(oe),pe=""+oe),K(ne)&&(Fe(ne.key),pe=""+ne.key),Z(ne)&&(je=ne.ref,z(ne,_e));for(be in ne)ee.call(ne,be)&&!$e.hasOwnProperty(be)&&(fe[be]=ne[be]);if(N&&N.defaultProps){var Ae=N.defaultProps;for(be in Ae)fe[be]===void 0&&(fe[be]=Ae[be])}if(pe||je){var Ee=typeof N=="function"?N.displayName||N.name||"Unknown":N;pe&&le(fe,Ee),je&&ue(fe,Ee)}return Se(N,pe,je,_e,he,Ce.current,fe)}}var Le=b.ReactCurrentOwner,Ue=b.ReactDebugCurrentFrame;function Ie(N){if(N){var ne=N._owner,oe=Y(N.type,N._source,ne?ne.type:null);Ue.setExtraStackFrame(oe)}else Ue.setExtraStackFrame(null)}var Re;Re=!1;function Ne(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function De(){{if(Le.current){var N=se(Le.current.type);if(N)return`
1
+ (function(L,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react"),require("pdfjs-dist")):typeof define=="function"&&define.amd?define(["exports","react","pdfjs-dist"],c):(L=typeof globalThis<"u"?globalThis:L||self,c(L.KundliGenerator={},L.React,L.pdfjsLib))})(this,(function(L,c,At){"use strict";var Qe=document.createElement("style");Qe.textContent=`@import"https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap";:root{--font-size-sm: 12px;--font-size-base: 14px;--font-size-lg: 16px}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\\!container{width:100%!important}.container{width:100%}@media(min-width:640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media(min-width:768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media(min-width:1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media(min-width:1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media(min-width:1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.right-3{right:.75rem}.top-1\\/2{top:50%}.top-full{top:100%}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.-ml-2{margin-left:-.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-0\\.5{margin-left:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-20{height:5rem}.h-full{height:100%}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-20{width:5rem}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\\[140px\\]{min-width:140px}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-6xl{max-width:72rem}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.rounded-r-\\[12px\\]{border-top-right-radius:12px;border-bottom-right-radius:12px}.rounded-t-\\[0\\.5rem\\]{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.bg-\\[\\#FEF7F4\\]{--tw-bg-opacity: 1;background-color:rgb(254 247 244 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-2{padding:.5rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-\\[10px\\]{padding-top:10px;padding-bottom:10px}.pb-28{padding-bottom:7rem}.pl-0{padding-left:0}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[16px\\]{font-size:16px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-sm\\/7{font-size:.875rem;line-height:1.75rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.capitalize{text-transform:capitalize}.leading-tight{line-height:1.25}.text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-amber-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}@media(min-width:640px){.sm\\:h-24{height:6rem}.sm\\:w-24{width:6rem}.sm\\:flex-row{flex-direction:row}.sm\\:text-2xl{font-size:1.5rem;line-height:2rem}}@media(min-width:768px){.md\\:flex-row{flex-direction:row}}._container_nm3gb_1{min-height:100vh;font-family:Plus Jakarta Sans,system-ui,-apple-system,sans-serif}._main_nm3gb_6{padding-bottom:7rem}._langDropdownWrap_nm3gb_12{position:relative}._langTrigger_nm3gb_16{display:flex;cursor:pointer;align-items:center;gap:.5rem;border-width:0px;background-color:transparent;padding:0;text-align:left;font-size:var(--font-size-sm);color:#1d2125}._langTrigger_nm3gb_16:hover{opacity:.85}._langTrigger_nm3gb_16:focus-visible{border-radius:.25rem;outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1))}._langIcon_nm3gb_28{flex-shrink:0;width:16px;height:16px;display:block}._langLabel_nm3gb_35{font-size:var(--font-size-sm);font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}._langMenu_nm3gb_40{position:absolute;right:0;top:100%;z-index:20;margin-top:.25rem;min-width:140px;list-style-type:none;border-radius:.5rem;padding-top:.25rem;padding-bottom:.25rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);background:#fff;border:1px solid #e5e7eb}._langOption_nm3gb_46{font-size:var(--font-size-sm);cursor:pointer;padding:.5rem .75rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}._langOption_nm3gb_46:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}._langOption_nm3gb_46[aria-selected=true]{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1));font-weight:500}._container_1e1th_1{min-height:100vh;font-family:Plus Jakarta Sans,system-ui,-apple-system,sans-serif;background:#fffefd}._main_1e1th_7{padding-bottom:7rem}._kundliHeaderNoBorder_1e1th_12{border-bottom:0!important}._headerSeparator_1e1th_16{height:1px;background:#f0ebe3}._langDropdownWrap_1e1th_21{position:relative}._langTrigger_1e1th_25{display:flex;cursor:pointer;align-items:center;gap:.5rem;border-width:0px;background-color:transparent;padding:0;text-align:left;font-size:var(--font-size-sm);color:#1d2125}._langTrigger_1e1th_25:hover{opacity:.85}._langTrigger_1e1th_25:focus-visible{border-radius:.25rem;outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1))}._langIcon_1e1th_37{flex-shrink:0;width:16px;height:16px;display:block}._langLabel_1e1th_44{font-size:var(--font-size-sm);font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}._langMenu_1e1th_49{position:absolute;right:0;top:100%;z-index:20;margin-top:.25rem;min-width:140px;list-style-type:none;border-radius:.5rem;padding-top:.25rem;padding-bottom:.25rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);background:#fff;border:1px solid #e5e7eb}._langOption_1e1th_55{font-size:var(--font-size-sm);cursor:pointer;padding:.5rem .75rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}._langOption_1e1th_55:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}._langOption_1e1th_55[aria-selected=true]{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1));font-weight:500}._header_1414z_1{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:1rem 1rem .25rem;background:transparent;border:0}._left_1414z_7{display:flex;align-items:flex-start;gap:.75rem}._backBtn_1414z_11{margin-left:-.5rem;cursor:pointer;border-radius:.25rem;border-width:0px;background-color:transparent;padding:.5rem}._backBtn_1414z_11:focus-visible{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1))}._backBtn_1414z_11:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}._titleWrap_1414z_21{display:flex;flex-direction:column}._title_1414z_21{font-weight:700;font-size:18px;line-height:1.2;color:#ea580c}._subtitle_1414z_32{margin-top:.25rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1));font-size:12px;max-width:22rem}._backIcon_1414z_38{width:20px;height:20px;display:block;color:#111827}._wrap_1wp0p_1{padding:1rem}._card_1wp0p_5{margin-left:auto;margin-right:auto;max-width:36rem;border-radius:1rem;background:#fff;box-shadow:0 10px 30px #11182714;border:1px solid rgba(229,231,235,.9)}._cardInner_1wp0p_12{padding:1.25rem}@media(min-width:640px){._cardInner_1wp0p_12{padding:1.5rem}}._field_1wp0p_16{margin-bottom:1.25rem}._labelRow_1wp0p_20{margin-bottom:.5rem;display:flex;align-items:center;justify-content:space-between;gap:.75rem}._label_1wp0p_20{font-weight:600;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));font-size:14px}._req_1wp0p_29{color:#ef4444}._help_1wp0p_33{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1));font-size:var(--font-size-sm);margin-top:-4px;margin-bottom:10px}._infoBtn_1wp0p_40{width:18px;height:18px;padding:0;border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer}._infoBtn_1wp0p_40:focus-visible{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1));border-radius:4px}._infoImg_1wp0p_57{width:18px;height:18px;display:block}._infoWrap_1wp0p_63{position:relative;display:inline-flex;align-items:center}._tooltip_1wp0p_69{position:absolute;bottom:calc(100% + 8px);top:auto;right:0;z-index:60;width:min(280px,75vw);background:#111827;color:#fff;padding:10px 12px;border-radius:12px;font-size:12px;line-height:1.35;box-shadow:0 12px 28px #11182738}._tooltipArrow_1wp0p_85{position:absolute;bottom:-6px;top:auto;right:10px;width:12px;height:12px;background:#111827;transform:rotate(45deg)}._inputWrap_1wp0p_96{position:relative}._suggestions_1wp0p_100{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;background:#fff;border:1px solid rgba(229,231,235,.95);border-radius:12px;box-shadow:0 10px 24px #1118271f;overflow:hidden}._suggestionItem_1wp0p_113{width:100%;border:0;background:transparent;padding:10px 12px;text-align:left;display:flex;flex-direction:column;gap:2px;cursor:pointer}._suggestionItem_1wp0p_113:hover,._suggestionItem_1wp0p_113:focus-visible{outline:none;background:#f75e220f}._suggestionMain_1wp0p_131{font-size:14px;color:#111827;font-weight:600}._suggestionSecondary_1wp0p_137{font-size:12px;color:#6b7280}._suggestionsHint_1wp0p_142{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;background:#fff;border:1px solid rgba(229,231,235,.95);border-radius:12px;box-shadow:0 10px 24px #1118271f;padding:10px 12px;font-size:12px;color:#6b7280}._timePopover_1wp0p_157{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:35;background:#fff;border:1px solid rgba(229,231,235,.95);border-radius:10px;box-shadow:0 10px 24px #1118271f;padding:8px;display:flex;flex-direction:column;gap:6px}._timePickerRow_1wp0p_173{display:flex;align-items:center;gap:6px}._timePickerSelect_1wp0p_179{height:36px;border-radius:8px;border:1px solid #e5e7eb;padding:0 6px;font-size:13px;font-weight:500;color:#111827;background:#fff;min-width:0}._timePickerSelect_1wp0p_179:focus,._timePickerSelect_1wp0p_179:focus-visible{outline:none;border:1px solid #f75e22}._timePickerColon_1wp0p_195{font-size:14px;font-weight:700;color:#111827;margin:0 -2px;flex-shrink:0}._meridiemToggle_1wp0p_203{margin-left:auto;display:inline-flex;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;flex-shrink:0}._meridiemBtn_1wp0p_212{height:36px;min-width:44px;padding:0 6px;border:0;background:#fff;font-size:12px;font-weight:600;color:#111827;cursor:pointer}._meridiemBtn_1wp0p_212:hover{background:#f9fafb}._meridiemActive_1wp0p_227{background:#f75e221f;color:#f75e22}._timePopoverActions_1wp0p_232{display:flex;justify-content:flex-end;gap:6px}._timePopoverBtn_1wp0p_238{height:32px;padding:0 10px;border-radius:8px;border:1px solid #e5e7eb;background:#fff;font-size:13px;font-weight:600;color:#111827;cursor:pointer}._timePopoverBtn_1wp0p_238:hover{background:#f9fafb}._timePopoverBtn_1wp0p_238:disabled{opacity:.45;cursor:not-allowed}._timePopoverOk_1wp0p_257{border-color:#f75e22;background:#f75e22;color:#fff}._timePopoverOk_1wp0p_257:hover{background:#ea4e1a}._input_1wp0p_96{width:100%;border-radius:.75rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding-left:1rem;padding-right:1rem;font-size:14px;color:#111827;height:48px;padding-top:0;padding-bottom:0;line-height:48px}._input_1wp0p_96[type=date],._input_1wp0p_96[type=time]{-webkit-appearance:none;-moz-appearance:none;appearance:none}._input_1wp0p_96[type=date]::-webkit-calendar-picker-indicator,._input_1wp0p_96[type=time]::-webkit-calendar-picker-indicator{opacity:0;display:block;width:24px;height:24px}._input_1wp0p_96[type=date]::-webkit-inner-spin-button,._input_1wp0p_96[type=time]::-webkit-inner-spin-button{display:none}._input_1wp0p_96:focus,._input_1wp0p_96:focus-visible{outline:none;border:1px solid #f75e22;box-shadow:none}._input_1wp0p_96::-moz-placeholder{color:#9ca3af}._input_1wp0p_96::placeholder{color:#9ca3af}._input_1wp0p_96:disabled{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}._iconBtn_1wp0p_301{position:absolute;right:.75rem;top:50%;display:flex;height:2.5rem;width:2.5rem;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));align-items:center;justify-content:center;border-radius:.5rem;color:#ea580c;pointer-events:none}._iconBtnInteractive_1wp0p_307{pointer-events:auto;cursor:pointer;background:transparent;border:0;padding:0}._iconBtnInteractive_1wp0p_307:hover{background:#ea580c0f}._iconBtnInteractive_1wp0p_307:focus-visible{outline:none;box-shadow:0 0 0 2px #f75e2240}._iconBtnInteractive_1wp0p_307:disabled{opacity:.45;cursor:not-allowed}._iconImg_1wp0p_326{width:22px;height:22px;display:block}._checkboxRow_1wp0p_332{margin-top:.75rem;display:flex;align-items:flex-start;gap:.75rem}._checkbox_1wp0p_332{margin-top:6px;width:18px;height:18px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:2px solid #6b7280;border-radius:4px;background:#fff;display:inline-grid;place-content:center;cursor:pointer}._checkbox_1wp0p_332:checked{background:#6b7280;border-color:#6b7280}._checkbox_1wp0p_332:checked:before{content:"";width:10px;height:6px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg);margin-top:-1px}._checkbox_1wp0p_332:focus-visible{outline:none;box-shadow:0 0 0 2px #f75e2240}._checkboxText_1wp0p_370{color:#6b7280;font-size:12px;line-height:1.35}._footer_15g1k_1{position:fixed;bottom:0;left:0;right:0;z-index:10;padding:.75rem 1rem;background:#fff;box-shadow:0 -2px 10px #0000001a}._inner_15g1k_7{margin-left:auto;margin-right:auto;display:flex;max-width:72rem;flex-direction:column;align-items:center;justify-content:space-between;gap:1rem}@media(min-width:640px){._inner_15g1k_7{flex-direction:row}}._badges_15g1k_11{overflow:hidden;flex:1;min-width:0;max-width:100%}._marqueeTrack_15g1k_18{display:flex;width:-moz-max-content;width:max-content;animation:_marquee_15g1k_18 12s linear infinite}._marqueeContent_15g1k_24{display:flex;align-items:center;gap:.75rem;flex-shrink:0;padding-right:1.5rem;color:#087955;font-weight:600;font-size:.75rem}@keyframes _marquee_15g1k_18{0%{transform:translate(0)}to{transform:translate(-50%)}}._badge_15g1k_11{display:flex;align-items:center;gap:.375rem;white-space:nowrap}._badgeIcon_15g1k_47{flex-shrink:0}._ctaWrap_15g1k_51{width:100%;flex-shrink:0}._ctaStruck_15g1k_55{text-decoration:line-through;opacity:.6;font-weight:400}._ctaButton_15g1k_61{font-size:var(--font-size-lg);width:100%;cursor:pointer;border-radius:.5rem;border-width:0px;padding:.75rem 1.5rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;background:radial-gradient(123.65% 265.91% at 52.2% -165.91%,#0fdf9d,#087955);box-shadow:0 2px 8px #00000026}@media(min-width:640px){._ctaButton_15g1k_61{font-size:var(--font-size-base)}}._ctaButton_15g1k_61:hover{opacity:.95}._ctaButton_15g1k_61:disabled,._ctaButton_15g1k_61[aria-disabled=true]{opacity:.6;cursor:not-allowed;pointer-events:none}._offerRow_15g1k_81{margin-bottom:.75rem;display:flex;align-items:center;justify-content:center;gap:.75rem;font-size:var(--font-size-base);color:#087955;font-weight:600}._pill_15g1k_88{border-radius:9999px;padding:.25rem .75rem;background:#0879551f;color:#087955;font-size:var(--font-size-sm);font-weight:700}._header_dbx4y_1{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding-top:10px;padding-bottom:10px;padding-left:1rem;padding-right:1rem;background:#f9fafb;border-bottom:1px solid #f0ebe3}._brand_dbx4y_7{display:flex;align-items:center;gap:.75rem}._logo_dbx4y_11{flex-shrink:0}._logoImg_dbx4y_15{width:32px;height:32px;-o-object-fit:contain;object-fit:contain}._logoPlaceholder_dbx4y_21{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#fbbf24,#f59e0b);border:2px solid #d97706}._brandText_dbx4y_29{display:flex;flex-direction:column}._brandName_dbx4y_33{font-weight:700;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));font-size:var(--font-size-lg)}._rating_dbx4y_38{font-size:10px;font-weight:600;display:flex;align-items:center;gap:.25rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._stars_dbx4y_44{color:#fbbf24;letter-spacing:.05em}._langSlot_dbx4y_49{display:flex;align-items:center;gap:.5rem}._hero_okj8x_1{margin-left:auto;margin-right:auto;max-width:48rem;padding:1.25rem 1rem;text-align:center}._title_okj8x_5{font-size:1.5rem;line-height:2rem;font-weight:700;line-height:1.25;color:#ea580c}._subtitle_okj8x_10{font-size:var(--font-size-base);margin-top:.75rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1));max-width:36rem;margin-left:auto;margin-right:auto}@media(min-width:640px){._subtitle_okj8x_10{font-size:var(--font-size-lg)}}._topicTags_okj8x_23{margin-top:1.5rem;display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem}._tag_okj8x_27{font-size:var(--font-size-base);padding:.5rem 1rem;font-weight:500;color:#374151;border-radius:30px;background:radial-gradient(50% 50% at 50% 50%,#ffddc5,#fff3eb)}._section_j2cgl_1{background-image:url(https://srm-cdn.a4b.io/yoda/1770363798583.png);background-size:cover;background-position:center;background-repeat:no-repeat;padding:1rem}._inner_j2cgl_9{position:relative;margin-left:auto;margin-right:auto;display:flex;max-width:72rem;flex-direction:row;align-items:center;justify-content:space-between;gap:2rem}@media(min-width:768px){._inner_j2cgl_9{flex-direction:row;gap:3rem}}._content_j2cgl_14{flex:1 1 0%}._headline_j2cgl_18{font-family:Plus Jakarta Sans,system-ui,sans-serif;display:flex;flex-direction:column;gap:.25rem;font-weight:700;line-height:1.25}._headlineLine_j2cgl_23{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}._headlinePill_j2cgl_28{color:#f75e22;font-family:Plus Jakarta Sans,system-ui,sans-serif;font-size:var(--font-size-base);font-style:normal;font-weight:700;line-height:18px;letter-spacing:0;text-transform:capitalize;border-radius:.375rem;padding:.125rem .625rem;background:#fff6f0;white-space:nowrap}._headlinePlain_j2cgl_43{color:#fff6f0;font-family:Plus Jakarta Sans,system-ui,sans-serif;font-size:var(--font-size-base);font-style:normal;font-weight:700;line-height:18px;letter-spacing:0;text-transform:capitalize}._featureList_j2cgl_54{margin-top:1rem;list-style-type:none}._featureList_j2cgl_54>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}._featureList_j2cgl_54{padding-left:0}._featureList_j2cgl_54 li{margin-top:.5rem!important}._featureItem_j2cgl_61{font-size:var(--font-size-base);display:flex;align-items:center;gap:.5rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}._featureIcon_j2cgl_66{flex-shrink:0;width:16px;height:16px;display:block}._reportImage_j2cgl_73{width:120px;height:160px;aspect-ratio:68/103;position:absolute;top:10px;right:1rem;flex-shrink:0}._reportImg_j2cgl_83{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}._reportPlaceholder_j2cgl_89{display:flex;height:100%;width:100%;align-items:center;justify-content:center;border-radius:.5rem;background:linear-gradient(145deg,#fef3c7,#fde68a);border:2px solid rgba(255,255,255,.5);box-shadow:0 10px 40px #0003}._placeholderText_j2cgl_96{padding-left:.5rem;padding-right:.5rem;text-align:center;font-size:.75rem;line-height:1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1));writing-mode:vertical-rl;text-orientation:mixed;transform:rotate(-180deg)}._section_1g93x_1{padding:1rem;text-align:center;background:#fff}._heading_1g93x_6{margin-bottom:1rem;font-size:.875rem;line-height:1.75rem;font-weight:600;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}._logoImg_1g93x_10{width:100%}._section_fw00n_1{margin-left:auto;margin-right:auto;max-width:42rem;padding:1.25rem 1rem;text-align:center;background:#feefe9}._heading_fw00n_6{font-size:var(--font-size-base, 1rem);margin-bottom:.25rem;font-weight:400;color:#eb6324}._subtitle_fw00n_12{margin-bottom:1rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;color:#eb6324}._stepList_fw00n_17{list-style-type:none}._stepList_fw00n_17>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}._stepList_fw00n_17{padding-left:0}._stepItem_fw00n_21{display:flex;flex-direction:column;align-items:center;gap:.75rem;font-weight:600}._stepNumber_fw00n_25{display:flex;height:3.5rem;width:3.5rem;flex-shrink:0;align-items:center;justify-content:center;border-radius:9999px;border-width:2px;font-size:1.5rem;line-height:2rem;font-weight:800;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));border-color:#eb6324;color:#eb6324}._stepText_fw00n_31{font-size:var(--font-size-base, 1rem);--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}._step3Days_fw00n_36{font-size:20px;font-weight:800}._section_uboy6_1{display:flex;justify-content:center;padding:1.25rem .75rem;background:#fff;width:100%}._button_uboy6_7{font-size:var(--font-size-base);width:100%;border-radius:.5rem;border-width:2px;padding:.75rem 2rem;font-weight:700;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;border-color:#087955;color:#087955;background:transparent}._button_uboy6_7:hover{background:#f0fdf4}._backdrop_pekod_1{position:fixed;inset:0;background:#00000080;z-index:1000;display:flex;align-items:flex-end;justify-content:center;padding:2rem 0 0;animation:_fadeIn_pekod_1 .2s ease}@keyframes _fadeIn_pekod_1{0%{opacity:0}to{opacity:1}}._modal_pekod_21{background:#fff;border-radius:.75rem .75rem 0 0;width:100%;max-height:calc(100vh - 2rem);display:flex;flex-direction:column;box-shadow:0 -4px 20px #00000026;animation:_slideUp_pekod_1 .3s ease-out}@keyframes _slideUp_pekod_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}._header_pekod_40{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid #e5e7eb;flex-shrink:0}._title_pekod_49{font-size:var(--font-size-base);font-weight:600;color:#111827;margin:0}._closeBtn_pekod_56{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border:none;background:transparent;color:#6b7280;cursor:pointer;border-radius:.25rem;font-size:1.25rem;line-height:1}._closeBtn_pekod_56:hover{background:#f3f4f6;color:#111827}._content_pekod_76{flex:1;min-height:0;overflow:auto;padding:0;-webkit-overflow-scrolling:touch}._pdfFrame_pekod_84{display:block;width:100%;min-height:60vh;height:65vh;overflow:auto}._pdfPages_pekod_92{padding:.5rem 0}._pdfLoader_pekod_96,._pdfError_pekod_97{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:200px;padding:2rem;color:#6b7280;text-align:center;gap:.5rem}._pdfLoader_pekod_96 a,._pdfError_pekod_97 a{color:#2563eb;text-decoration:none;font-weight:500}._pdfLoader_pekod_96 a:hover,._pdfError_pekod_97 a:hover{text-decoration:underline}._pdfError_pekod_97{color:#dc2626}._openInNewTab_pekod_123{display:block;padding:.75rem 1.25rem;text-align:center;font-size:.875rem;font-weight:500;color:#2563eb;text-decoration:none;border-top:1px solid #e5e7eb;background:#f9fafb}._openInNewTab_pekod_123:hover{background:#f3f4f6;color:#1d4ed8}._section_g1kup_1{margin-left:auto;margin-right:auto;max-width:56rem;padding:1rem}._heading_g1kup_5{margin-bottom:2rem;text-align:center;font-size:1.25rem;line-height:1.75rem;font-weight:700;color:#ea580c}._list_g1kup_10{list-style-type:none}._list_g1kup_10>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}._list_g1kup_10{padding-left:0}._list_g1kup_10 li{margin-top:1rem!important}._item_g1kup_17{display:flex;align-items:flex-start}._imageWrap_g1kup_21{height:5rem;width:5rem;flex-shrink:0}@media(min-width:640px){._imageWrap_g1kup_21{height:6rem;width:6rem}}._image_g1kup_21{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;border-radius:8px 0 0 8px}._imagePlaceholder_g1kup_30{height:100%;width:100%;border-radius:.5rem;background:linear-gradient(135deg,#fef3c7,#fde68a);border:1px solid #fcd34d}._text_g1kup_36{display:flex;height:5rem;min-width:0px;flex:1 1 0%;flex-direction:column;justify-content:center;border-top-right-radius:12px;border-bottom-right-radius:12px;--tw-bg-opacity: 1;background-color:rgb(254 247 244 / var(--tw-bg-opacity, 1));padding:.75rem .5rem}@media(min-width:640px){._text_g1kup_36{height:6rem}}._itemTitle_g1kup_40{font-size:var(--font-size-base);margin-bottom:.25rem;font-weight:700;color:#ea580c}@media(min-width:640px){._itemTitle_g1kup_40{font-size:var(--font-size-lg)}}._itemDesc_g1kup_51{font-size:var(--font-size-sm);--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._section_1poer_1{margin-left:auto;margin-right:auto;max-width:42rem;padding:1.25rem 1rem;background:#fef7f4}._heading_1poer_6{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:700}@media(min-width:640px){._heading_1poer_6{font-size:1.5rem;line-height:2rem}}._heading_1poer_6{color:#ea580c}._subtitle_1poer_11{font-size:var(--font-size-sm);margin-bottom:1.5rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._list_1poer_16{list-style-type:none}._list_1poer_16>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}._list_1poer_16{padding-left:0}._item_1poer_20{font-size:var(--font-size-base);display:flex;align-items:center;gap:.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}._item_1poer_20:before{content:"";flex-shrink:0;width:1rem;height:1rem;background-image:url(https://srm-cdn.a4b.io/yoda/1770372842638.svg);background-size:contain}._section_3cm7k_1{margin-left:auto;margin-right:auto;max-width:48rem;padding:1rem}._heading_3cm7k_5{margin-bottom:.5rem;text-align:center;font-size:1.25rem;line-height:1.75rem;font-weight:700}@media(min-width:640px){._heading_3cm7k_5{font-size:1.5rem;line-height:2rem}}._heading_3cm7k_5{color:#ea580c}._trustLine_3cm7k_10{font-size:var(--font-size-sm);margin-bottom:1.5rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem;text-align:center;font-weight:600;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._star_3cm7k_15{color:#f99724;font-size:var(--font-size-lg)}._ratingNum_3cm7k_20{font-size:16px;font-weight:700;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}._trustText_3cm7k_24{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._cardList_3cm7k_28{list-style-type:none}._cardList_3cm7k_28>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}._cardList_3cm7k_28{padding-left:0}._card_3cm7k_28{border-radius:.75rem;padding:1rem;font-weight:600;background:#fff2cf}._quote_3cm7k_37{font-size:var(--font-size-sm);margin-bottom:.75rem;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}._author_3cm7k_42{display:flex;align-items:center;gap:.75rem}._avatar_3cm7k_46{height:2.5rem;width:2.5rem;flex-shrink:0;border-radius:9999px;-o-object-fit:cover;object-fit:cover}._avatarPlaceholder_3cm7k_50{height:2.5rem;width:2.5rem;flex-shrink:0;border-radius:9999px;background:linear-gradient(135deg,#fcd34d,#f59e0b)}._authorInfo_3cm7k_55{display:flex;flex-direction:column}._authorName_3cm7k_59{font-size:var(--font-size-sm);font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}._stars_3cm7k_64{color:#fbbf24;font-size:var(--font-size-sm)}._readMoreWrap_3cm7k_69{margin-top:1.5rem;text-align:center;font-size:1.125rem;line-height:1.75rem}._toggleBtn_3cm7k_73{font-size:var(--font-size-lg);display:inline-flex;width:100%;cursor:pointer;align-items:center;justify-content:center;gap:.375rem;border-radius:.5rem;padding:.625rem 1.25rem;font-weight:600;background-color:#1d21250f;color:#502d14;border:none;box-shadow:0 1px 2px #0000000f}._toggleBtn_3cm7k_73:hover{background-color:#dfdbd2}._readMore_3cm7k_69{font-size:var(--font-size-sm);display:inline-flex;cursor:pointer;align-items:center;gap:.25rem;border-width:0px;background-color:transparent;padding-top:.5rem;padding-bottom:.5rem;padding-left:0;padding-right:0;font-weight:500;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}._readMore_3cm7k_69:hover{text-decoration:underline}._arrow_3cm7k_93{margin-left:.125rem;margin-bottom:.25rem;display:inline-block;font-size:1.5rem;line-height:2rem}._dot_3cm7k_97{display:inline-block;width:6px;height:6px;border-radius:50%;background-color:currentColor;flex-shrink:0;vertical-align:middle}._section_1scfq_1{margin-left:auto;margin-right:auto;max-width:42rem;padding:1rem;background:#fff}._heading_1scfq_6{margin-bottom:1.5rem;text-align:center;font-size:1.25rem;line-height:1.75rem;font-weight:700}@media(min-width:640px){._heading_1scfq_6{font-size:1.5rem;line-height:2rem}}._heading_1scfq_6{color:#ea580c}._accordion_1scfq_11{display:flex;flex-direction:column;gap:.75rem}._item_1scfq_15{border:1px solid #e5e7eb;border-radius:.5rem;background:#fff;transition:border-color .2s,box-shadow .2s}._item_1scfq_15._itemOpen_1scfq_21{border-color:#ea580c;box-shadow:0 0 0 2px #ea580c33}._item_1scfq_15._itemOpen_1scfq_21 ._question_1scfq_25{background-color:#feefe9}._question_1scfq_25{font-size:var(--font-size-base);display:flex;width:100%;cursor:pointer;align-items:center;justify-content:space-between;gap:1rem;border-top-left-radius:.5rem;border-top-right-radius:.5rem;border-width:0px;background-color:transparent;padding:1rem;text-align:left;font-weight:600;color:#374151}@media(min-width:640px){._question_1scfq_25{font-size:var(--font-size-base)}}._chevron_1scfq_40{flex-shrink:0;font-size:.75rem;color:#6b7280;transition:transform .2s}._chevronOpen_1scfq_47{transform:rotate(180deg)}._answerWrap_1scfq_51{overflow:hidden;transition:all .2s ease}._answerOpen_1scfq_56{display:block}._answer_1scfq_51{padding:1rem;font-size:.875rem;line-height:1.25rem;font-weight:600;color:#6b7280;line-height:1.5}._section_aphm8_1{margin-left:auto;margin-right:auto;max-width:42rem;padding:1rem;font-weight:500;background:#fff}._heading_aphm8_6{margin-bottom:1rem;text-align:center;font-size:1.25rem;line-height:1.75rem;font-weight:700}@media(min-width:640px){._heading_aphm8_6{font-size:1.5rem;line-height:2rem}}._heading_aphm8_6{color:#ea580c}._content_aphm8_11{font-size:var(--font-size-sm)}._content_aphm8_11>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}._content_aphm8_11{text-align:center;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}._line_aphm8_16{margin:0}._brandName_aphm8_20{padding-top:1rem;padding-bottom:1rem}
2
+ /*$vite$:1*/`,document.head.appendChild(Qe);function Ct(r){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const l in r)if(l!=="default"){const p=Object.getOwnPropertyDescriptor(r,l);Object.defineProperty(n,l,p.get?p:{enumerable:!0,get:()=>r[l]})}}return n.default=r,Object.freeze(n)}const Fe=Ct(At);var Ce={exports:{}},Ne={};var Xe;function Rt(){if(Xe)return Ne;Xe=1;var r=c,n=Symbol.for("react.element"),l=Symbol.for("react.fragment"),p=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_={key:!0,ref:!0,__self:!0,__source:!0};function h(m,d,w){var f,b={},k=null,S=null;w!==void 0&&(k=""+w),d.key!==void 0&&(k=""+d.key),d.ref!==void 0&&(S=d.ref);for(f in d)p.call(d,f)&&!_.hasOwnProperty(f)&&(b[f]=d[f]);if(m&&m.defaultProps)for(f in d=m.defaultProps,d)b[f]===void 0&&(b[f]=d[f]);return{$$typeof:n,type:m,key:k,ref:S,props:b,_owner:s.current}}return Ne.Fragment=l,Ne.jsx=h,Ne.jsxs=h,Ne}var Te={};var Ze;function Lt(){return Ze||(Ze=1,process.env.NODE_ENV!=="production"&&(function(){var r=c,n=Symbol.for("react.element"),l=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),m=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),P=Symbol.iterator,x="@@iterator";function j(t){if(t===null||typeof t!="object")return null;var o=P&&t[P]||t[x];return typeof o=="function"?o:null}var R=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(t){{for(var o=arguments.length,u=new Array(o>1?o-1:0),v=1;v<o;v++)u[v-1]=arguments[v];E("error",t,u)}}function E(t,o,u){{var v=R.ReactDebugCurrentFrame,I=v.getStackAddendum();I!==""&&(o+="%s",u=u.concat([I]));var C=u.map(function(T){return String(T)});C.unshift("Warning: "+o),Function.prototype.apply.call(console[t],console,C)}}var W=!1,A=!1,V=!1,B=!1,H=!1,M;M=Symbol.for("react.module.reference");function Y(t){return!!(typeof t=="string"||typeof t=="function"||t===p||t===_||H||t===s||t===w||t===f||B||t===S||W||A||V||typeof t=="object"&&t!==null&&(t.$$typeof===k||t.$$typeof===b||t.$$typeof===h||t.$$typeof===m||t.$$typeof===d||t.$$typeof===M||t.getModuleId!==void 0))}function Q(t,o,u){var v=t.displayName;if(v)return v;var I=o.displayName||o.name||"";return I!==""?u+"("+I+")":u}function F(t){return t.displayName||"Context"}function K(t){if(t==null)return null;if(typeof t.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case p:return"Fragment";case l:return"Portal";case _:return"Profiler";case s:return"StrictMode";case w:return"Suspense";case f:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case m:var o=t;return F(o)+".Consumer";case h:var u=t;return F(u._context)+".Provider";case d:return Q(t,t.render,"ForwardRef");case b:var v=t.displayName||null;return v!==null?v:K(t.type)||"Memo";case k:{var I=t,C=I._payload,T=I._init;try{return K(T(C))}catch{return null}}}return null}var G=Object.assign,Z=0,de,ke,ge,he,_e,be,le;function we(){}we.__reactDisabledLog=!0;function a(){{if(Z===0){de=console.log,ke=console.info,ge=console.warn,he=console.error,_e=console.group,be=console.groupCollapsed,le=console.groupEnd;var t={configurable:!0,enumerable:!0,value:we,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}Z++}}function g(){{if(Z--,Z===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:G({},t,{value:de}),info:G({},t,{value:ke}),warn:G({},t,{value:ge}),error:G({},t,{value:he}),group:G({},t,{value:_e}),groupCollapsed:G({},t,{value:be}),groupEnd:G({},t,{value:le})})}Z<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var D=R.ReactCurrentDispatcher,ee;function me(t,o,u){{if(ee===void 0)try{throw Error()}catch(I){var v=I.stack.trim().match(/\n( *(at )?)/);ee=v&&v[1]||""}return`
3
+ `+ee+t}}var Ie=!1,De;{var Cr=typeof WeakMap=="function"?WeakMap:Map;De=new Cr}function ht(t,o){if(!t||Ie)return"";{var u=De.get(t);if(u!==void 0)return u}var v;Ie=!0;var I=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var C;C=D.current,D.current=null,a();try{if(o){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(X){v=X}Reflect.construct(t,[],T)}else{try{T.call()}catch(X){v=X}t.call(T.prototype)}}else{try{throw Error()}catch(X){v=X}t()}}catch(X){if(X&&v&&typeof X.stack=="string"){for(var N=X.stack.split(`
4
+ `),J=v.stack.split(`
5
+ `),U=N.length-1,$=J.length-1;U>=1&&$>=0&&N[U]!==J[$];)$--;for(;U>=1&&$>=0;U--,$--)if(N[U]!==J[$]){if(U!==1||$!==1)do if(U--,$--,$<0||N[U]!==J[$]){var re=`
6
+ `+N[U].replace(" at new "," at ");return t.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",t.displayName)),typeof t=="function"&&De.set(t,re),re}while(U>=1&&$>=0);break}}}finally{Ie=!1,D.current=C,g(),Error.prepareStackTrace=I}var Pe=t?t.displayName||t.name:"",xe=Pe?me(Pe):"";return typeof t=="function"&&De.set(t,xe),xe}function Rr(t,o,u){return ht(t,!1)}function Lr(t){var o=t.prototype;return!!(o&&o.isReactComponent)}function Be(t,o,u){if(t==null)return"";if(typeof t=="function")return ht(t,Lr(t));if(typeof t=="string")return me(t);switch(t){case w:return me("Suspense");case f:return me("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case d:return Rr(t.render);case b:return Be(t.type,o,u);case k:{var v=t,I=v._payload,C=v._init;try{return Be(C(I),o,u)}catch{}}}return""}var Ae=Object.prototype.hasOwnProperty,_t={},bt=R.ReactDebugCurrentFrame;function Me(t){if(t){var o=t._owner,u=Be(t.type,t._source,o?o.type:null);bt.setExtraStackFrame(u)}else bt.setExtraStackFrame(null)}function zr(t,o,u,v,I){{var C=Function.call.bind(Ae);for(var T in t)if(C(t,T)){var N=void 0;try{if(typeof t[T]!="function"){var J=Error((v||"React class")+": "+u+" type `"+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[T]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw J.name="Invariant Violation",J}N=t[T](o,T,v,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(U){N=U}N&&!(N instanceof Error)&&(Me(I),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",v||"React class",u,T,typeof N),Me(null)),N instanceof Error&&!(N.message in _t)&&(_t[N.message]=!0,Me(I),y("Failed %s type: %s",u,N.message),Me(null))}}}var Or=Array.isArray;function He(t){return Or(t)}function Dr(t){{var o=typeof Symbol=="function"&&Symbol.toStringTag,u=o&&t[Symbol.toStringTag]||t.constructor.name||"Object";return u}}function Br(t){try{return wt(t),!1}catch{return!0}}function wt(t){return""+t}function xt(t){if(Br(t))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Dr(t)),wt(t)}var yt=R.ReactCurrentOwner,Mr={key:!0,ref:!0,__self:!0,__source:!0},vt,kt;function Fr(t){if(Ae.call(t,"ref")){var o=Object.getOwnPropertyDescriptor(t,"ref").get;if(o&&o.isReactWarning)return!1}return t.ref!==void 0}function Ur(t){if(Ae.call(t,"key")){var o=Object.getOwnPropertyDescriptor(t,"key").get;if(o&&o.isReactWarning)return!1}return t.key!==void 0}function Wr(t,o){typeof t.ref=="string"&&yt.current}function Kr(t,o){{var u=function(){vt||(vt=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};u.isReactWarning=!0,Object.defineProperty(t,"key",{get:u,configurable:!0})}}function $r(t,o){{var u=function(){kt||(kt=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};u.isReactWarning=!0,Object.defineProperty(t,"ref",{get:u,configurable:!0})}}var Yr=function(t,o,u,v,I,C,T){var N={$$typeof:n,type:t,key:o,ref:u,props:T,_owner:C};return N._store={},Object.defineProperty(N._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(N,"_self",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.defineProperty(N,"_source",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.freeze&&(Object.freeze(N.props),Object.freeze(N)),N};function Hr(t,o,u,v,I){{var C,T={},N=null,J=null;u!==void 0&&(xt(u),N=""+u),Ur(o)&&(xt(o.key),N=""+o.key),Fr(o)&&(J=o.ref,Wr(o,I));for(C in o)Ae.call(o,C)&&!Mr.hasOwnProperty(C)&&(T[C]=o[C]);if(t&&t.defaultProps){var U=t.defaultProps;for(C in U)T[C]===void 0&&(T[C]=U[C])}if(N||J){var $=typeof t=="function"?t.displayName||t.name||"Unknown":t;N&&Kr(T,$),J&&$r(T,$)}return Yr(t,N,J,I,v,yt.current,T)}}var Ge=R.ReactCurrentOwner,jt=R.ReactDebugCurrentFrame;function je(t){if(t){var o=t._owner,u=Be(t.type,t._source,o?o.type:null);jt.setExtraStackFrame(u)}else jt.setExtraStackFrame(null)}var qe;qe=!1;function Ve(t){return typeof t=="object"&&t!==null&&t.$$typeof===n}function Pt(){{if(Ge.current){var t=K(Ge.current.type);if(t)return`
7
7
 
8
- Check the render method of \``+N+"`."}return""}}function He(N){return""}var we={};function Ge(N){{var ne=De();if(!ne){var oe=typeof N=="string"?N:N.displayName||N.name;oe&&(ne=`
8
+ Check the render method of \``+t+"`."}return""}}function Gr(t){return""}var Nt={};function qr(t){{var o=Pt();if(!o){var u=typeof t=="string"?t:t.displayName||t.name;u&&(o=`
9
9
 
10
- Check the top-level render call using <`+oe+">.")}return ne}}function qe(N,ne){{if(!N._store||N._store.validated||N.key!=null)return;N._store.validated=!0;var oe=Ge(ne);if(we[oe])return;we[oe]=!0;var he="";N&&N._owner&&N._owner!==Le.current&&(he=" It was passed a child from "+se(N._owner.type)+"."),Ie(N),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',oe,he),Ie(null)}}function Ke(N,ne){{if(typeof N!="object")return;if(me(N))for(var oe=0;oe<N.length;oe++){var he=N[oe];Ne(he)&&qe(he,ne)}else if(Ne(N))N._store&&(N._store.validated=!0);else if(N){var _e=f(N);if(typeof _e=="function"&&_e!==N.entries)for(var be=_e.call(N),fe;!(fe=be.next()).done;)Ne(fe.value)&&qe(fe.value,ne)}}}function Xe(N){{var ne=N.type;if(ne==null||typeof ne=="string")return;var oe;if(typeof ne=="function")oe=ne.propTypes;else if(typeof ne=="object"&&(ne.$$typeof===y||ne.$$typeof===l))oe=ne.propTypes;else return;if(oe){var he=se(ne);ie(oe,N.props,"prop",he,N)}else if(ne.PropTypes!==void 0&&!Re){Re=!0;var _e=se(ne);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_e||"Unknown")}typeof ne.getDefaultProps=="function"&&!ne.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function We(N){{for(var ne=Object.keys(N.props),oe=0;oe<ne.length;oe++){var he=ne[oe];if(he!=="children"&&he!=="key"){Ie(N),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",he),Ie(null);break}}N.ref!==null&&(Ie(N),E("Invalid attribute `ref` supplied to `React.Fragment`."),Ie(null))}}var Pe={};function Be(N,ne,oe,he,_e,be){{var fe=B(N);if(!fe){var pe="";(N===void 0||typeof N=="object"&&N!==null&&Object.keys(N).length===0)&&(pe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var je=He();je?pe+=je:pe+=De();var Ae;N===null?Ae="null":me(N)?Ae="array":N!==void 0&&N.$$typeof===t?(Ae="<"+(se(N.type)||"Unknown")+" />",pe=" Did you accidentally export a JSX literal instead of a component?"):Ae=typeof N,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ae,pe)}var Ee=ke(N,ne,oe,_e,be);if(Ee==null)return Ee;if(fe){var Oe=ne.children;if(Oe!==void 0)if(he)if(me(Oe)){for(var Ve=0;Ve<Oe.length;Ve++)Ke(Oe[Ve],N);Object.freeze&&Object.freeze(Oe)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ke(Oe,N)}if(ee.call(ne,"key")){var ze=se(N),Me=Object.keys(ne).filter(function(nt){return nt!=="key"}),Je=Me.length>0?"{key: someKey, "+Me.join(": ..., ")+": ...}":"{key: someKey}";if(!Pe[ze+Je]){var tt=Me.length>0?"{"+Me.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
10
+ Check the top-level render call using <`+u+">.")}return o}}function Tt(t,o){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var u=qr(o);if(Nt[u])return;Nt[u]=!0;var v="";t&&t._owner&&t._owner!==Ge.current&&(v=" It was passed a child from "+K(t._owner.type)+"."),je(t),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',u,v),je(null)}}function St(t,o){{if(typeof t!="object")return;if(He(t))for(var u=0;u<t.length;u++){var v=t[u];Ve(v)&&Tt(v,o)}else if(Ve(t))t._store&&(t._store.validated=!0);else if(t){var I=j(t);if(typeof I=="function"&&I!==t.entries)for(var C=I.call(t),T;!(T=C.next()).done;)Ve(T.value)&&Tt(T.value,o)}}}function Vr(t){{var o=t.type;if(o==null||typeof o=="string")return;var u;if(typeof o=="function")u=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===d||o.$$typeof===b))u=o.propTypes;else return;if(u){var v=K(o);zr(u,t.props,"prop",v,t)}else if(o.PropTypes!==void 0&&!qe){qe=!0;var I=K(o);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",I||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Jr(t){{for(var o=Object.keys(t.props),u=0;u<o.length;u++){var v=o[u];if(v!=="children"&&v!=="key"){je(t),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v),je(null);break}}t.ref!==null&&(je(t),y("Invalid attribute `ref` supplied to `React.Fragment`."),je(null))}}var Et={};function It(t,o,u,v,I,C){{var T=Y(t);if(!T){var N="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(N+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var J=Gr();J?N+=J:N+=Pt();var U;t===null?U="null":He(t)?U="array":t!==void 0&&t.$$typeof===n?(U="<"+(K(t.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):U=typeof t,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",U,N)}var $=Hr(t,o,u,I,C);if($==null)return $;if(T){var re=o.children;if(re!==void 0)if(v)if(He(re)){for(var Pe=0;Pe<re.length;Pe++)St(re[Pe],t);Object.freeze&&Object.freeze(re)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else St(re,t)}if(Ae.call(o,"key")){var xe=K(t),X=Object.keys(o).filter(function(ra){return ra!=="key"}),Je=X.length>0?"{key: someKey, "+X.join(": ..., ")+": ...}":"{key: someKey}";if(!Et[xe+Je]){var ta=X.length>0?"{"+X.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX:
11
11
  let props = %s;
12
12
  <%s {...props} />
13
13
  React keys must be passed directly to JSX without using spread:
14
14
  let props = %s;
15
- <%s key={someKey} {...props} />`,Je,ze,tt,ze),Pe[ze+Je]=!0}}return N===i?We(Ee):Xe(Ee),Ee}}function Ye(N,ne,oe){return Be(N,ne,oe,!0)}function Qe(N,ne,oe){return Be(N,ne,oe,!1)}var Ze=Qe,et=Ye;reactJsxRuntime_development.Fragment=i,reactJsxRuntime_development.jsx=Ze,reactJsxRuntime_development.jsxs=et})()),reactJsxRuntime_development}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,process.env.NODE_ENV==="production"?jsxRuntime.exports=requireReactJsxRuntime_production_min():jsxRuntime.exports=requireReactJsxRuntime_development()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime();const container$1="_container_nm3gb_1",main$1="_main_nm3gb_6",langDropdownWrap$1="_langDropdownWrap_nm3gb_12",langTrigger$1="_langTrigger_nm3gb_16",langIcon$1="_langIcon_nm3gb_28",langLabel$1="_langLabel_nm3gb_35",langMenu$1="_langMenu_nm3gb_40",langOption$1="_langOption_nm3gb_46",styles$f={container:container$1,main:main$1,langDropdownWrap:langDropdownWrap$1,langTrigger:langTrigger$1,langIcon:langIcon$1,langLabel:langLabel$1,langMenu:langMenu$1,langOption:langOption$1},SUPPORTED_LOCALES=["en","hi"],LOCALE_LABELS={en:"English",hi:"हिन्दी"},translations={en:{kundli:"Kundli",birthChart:"Birth Chart",details:"Details",name:"Name",birthDate:"Birth Date",guest:"Guest",description:"Your birth chart reveals planetary positions at the time of your birth and their influence on your life.",lagna:"Lagna",rashi:"Rashi",nakshatra:"Nakshatra",language:"Language",sriMandir:"Shubham Goyal (Director - Founder's Office)",ratingText:"4.9/5 on Google PlayStore",heroTitle:"Get Your Premium Personalised Kundli Report",heroSubtitle:"This premium personalised kundli report helps you find answers to major life issues.",topicMarriage:"Marriage",topicRelationship:"Relationship",topicBusiness:"Business",topicHealth:"Health",topicCareer:"Career",topicEducation:"Education",topicMoney:"Money",premiumHeadline:"200+ Pages Premium Personalised Kundli Report",premiumHeadlinePill1:"200+ Pages",premiumHeadlinePlain1:"Premium",premiumHeadlinePlain2:"Personalised",premiumHeadlinePill2:"Kundli Report",premiumFeature1:"Vedic Birth Chart",premiumFeature2:"Destiny Insights",premiumFeature3:"Major Life Issues",premiumFeature4:"Practical Remedies",certifiedBy:"Certified by BHU and VHU Astrologers",yourThreeSteps:"Your 3 steps",threeStepsSubtitle:"Premium Personalised Kundli report",step1:"Enter your information",step2:"Your horoscope will be created by experts",step3Intro:"You'll receive your Kundli on your Whatsapp",step3Days:"2 days",viewSampleReport:"View Sample Kundli Report",sampleReportModalTitle:"Sample Kundli Report",whatYoullFindTitle:"What will you find in your Kundli report?",findDasha:"Analysis of flaws and periods.",findDashaDesc:"Identify major flaws, period durations, and simple remedies.",findYoga:"All yoga reports.",findYogaDesc:"Discover the yogas in your horoscope that affect wealth, career, and relationships.",findGemstone:"Gemstone recommendations.",findGemstoneDesc:"Personalised gemstone guidance based on your horoscope.",findPooja:"Puja recommendations.",findPoojaDesc:"Suggestions for pujas and rituals to balance planetary influences.",findMonthly:"Monthly predictions (1 year).",findMonthlyDesc:"Month-by-month guidance for the coming year.",findStrength:"Strength graph.",findStrengthDesc:"Visual charts showing the strength and influence of the planets.",whyUsTitle:"Why us?",whyUsSubtitle:"Fill out the form to get started and unlock your fortune!",whyUs1:"30,00,000+ kundlis created",whyUs2:"1,000+ partnered Top Astrologers",whyUs3:"500+ temple partnerships you can trust",whyUs4:"Personalised section-wise life analysis",feedbackTitle:"Feedback from our users",feedbackTrust:"Trusted by over 5 million users worldwide",feedbackRating:"4.9",feedbackTestimonial1:"Detailed kundli report mila, life mein clarity mili.",feedbackTestimonial2:"Career aur marriage dono pe clear guidance mila.",feedbackTestimonial3:"Clear direction mila next steps ke liye.",feedbackTestimonial4:"Doubts kaafi had tak clear ho gaye report se.",feedbackTestimonial5:"Future planning ke liye useful insights mile.",feedbackTestimonial6:"Har important area cover kiya gaya properly.",feedbackTestimonial7:"Kaafi deep analysis hai, superficial nahi.",feedbackTestimonial8:"Kundli insights ne future decisions clear kiye.",feedbackTestimonial9:"Overall kundli report very helpful rahi.",feedbackTestimonial10:"Personalised report ne confidence badhaya.",feedbackTestimonial11:"Report accurate aur easy to understand thi.",feedbackTestimonial12:"Report expected se zyada detailed nikli.",feedbackTestimonial13:"Report padhke life patterns samajh aaye.",feedbackTestimonial14:"Simple language mein detailed analysis diya hai.",feedbackTestimonial15:"Timing aur dasha explanation helpful thi.",feedbackAuthor1:"Aarav",feedbackAuthor2:"Vivaan",feedbackAuthor3:"Arjun",feedbackAuthor4:"Kabir",feedbackAuthor5:"Rohan",feedbackAuthor6:"Ishaan",feedbackAuthor7:"Krish",feedbackAuthor8:"Rahul",feedbackAuthor9:"Ananya",feedbackAuthor10:"Aadhya",feedbackAuthor11:"Kavya",feedbackAuthor12:"Diya",feedbackAuthor13:"Meera",feedbackAuthor14:"Pooja",feedbackAuthor15:"Nisha",feedbackAuthor1AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639271096.png",feedbackAuthor2AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639330970.png",feedbackAuthor3AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639345411.png",feedbackAuthor4AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639358174.png",feedbackAuthor5AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639369712.png",feedbackAuthor6AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639381899.png",feedbackAuthor7AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639442858.png",feedbackAuthor8AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639454626.png",feedbackAuthor9AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639254172.png",feedbackAuthor10AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639293055.png",feedbackAuthor11AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639306698.png",feedbackAuthor12AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639319028.png",feedbackAuthor13AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639402894.png",feedbackAuthor14AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639416587.png",feedbackAuthor15AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639427379.png",readMoreReviews:"Read More Reviews",readLess:"Read Less",faqTitle:"Frequently Asked Questions",faqQ1:"How will I receive my kundli?",faqQ2:"Is Premium personalised kundli available in any other language?",faqQ3:"What if I don't know my birth time?",faqA1Global:"You will receive your premium personalised kundli report on your shared email ID within 2 days.",faqA1Domestic:"You will receive your premium personalised kundli report on your shared WhatsApp number within 2 days.",faqA2:"Yes, we provide report in Hindi and English languages",faqA3:"Accurate birth time helps to create more accurate report. However we are still able to prepare 80% accurate report if you don't know your exact time of birth",contactTitle:"Contact Us",contactWhatsApp:"Whatsapp: 9845089752",contactEmail:"Email: shubham.goyal@appsforbharat.com",ctaKundliCreated:"2L+ Kundli Created.",ctaCertified:"BHU Certified Astrologer.",ctaSecurePayment:"Secure Payment.",ctaButton:"Get My Detailed Kundli in $300 $25",ctaButtonStruck:"$100",ctaButtonBefore:"Get My Detailed Kundli in ",ctaButtonAfter:"$25",back:"Back",info:"Info",formTitle:"Enter your information",formSubtitle:"Fill out the form below to get started and unlock your fortune!",formFullName:"Enter your full name",formFullNamePlaceholder:"Full name",formPhone:"Enter your phone number",formPhonePlaceholder:"Phone number",formEmail:"Enter your email address",formEmailHelp:"Your kundli report will be sent to your email",formEmailPlaceholder:"Email address",formDob:"Enter your date of birth",formDobInfo:"This helps us calculate exact planetary position in your birth chart",formBirthTime:"Enter your birth time",formBirthTimeInfo:"This helps us calculate exact planetary position in your birth chart",formBirthTimeUnknownLine1:"Don't know your exact birth time?",formBirthTimeUnknownLine2:"We can analyze with 80% accuracy",formBirthPlace:"Enter your birth place",formBirthPlaceInfo:"This helps us calculate exact planetary position in your birth chart",formBirthPlacePlaceholder:"City, State",formOfferEnding:"The offer is ending soon",formDiscountPill:"75% discount",formProceed:"Proceed to payment ",formOriginalPrice:"$100",formDiscountedPrice:"$25",formPriceAria:"Price"},hi:{kundli:"कुंडली",birthChart:"जन्म कुंडली",details:"विवरण",name:"नाम",birthDate:"जन्म तिथि",guest:"अतिथि",description:"आपकी जन्म कुंडली आपके जन्म के समय ग्रहों की स्थिति और आपके जीवन पर उनके प्रभाव को दर्शाती है।",lagna:"लग्न",rashi:"राशि",nakshatra:"नक्षत्र",language:"भाषा",sriMandir:"शुभम गोयल (डायरेक्टर - फाउंडर's ऑफिस)",ratingText:"4.5 (8 लाख Google Playstore)",heroTitle:"अपनी प्रीमियम व्यक्तिगत कुंडली रिपोर्ट प्राप्त करें",heroSubtitle:"यह प्रीमियम व्यक्तिगत कुंडली रिपोर्ट आपको प्रमुख जीवन मुद्दों के जवाब खोजने में मदद करती है।",topicMarriage:"विवाह",topicRelationship:"रिश्ता",topicBusiness:"व्यवसाय",topicHealth:"स्वास्थ्य",topicCareer:"करियर",topicEducation:"शिक्षा",topicMoney:"पैसा",premiumHeadline:"200+ पृष्ठ प्रीमियम व्यक्तिगत कुंडली रिपोर्ट",premiumHeadlinePill1:"200+ पृष्ठ",premiumHeadlinePlain1:"प्रीमियम",premiumHeadlinePlain2:"व्यक्तिगत",premiumHeadlinePill2:"कुंडली रिपोर्ट",premiumFeature1:"वैदिक जन्म कुंडली",premiumFeature2:"भाग्य जानकारी",premiumFeature3:"प्रमुख जीवन मुद्दे",premiumFeature4:"व्यावहारिक उपाय",certifiedBy:"BHU और VHU ज्योतिषियों द्वारा प्रमाणित",yourThreeSteps:"आपके 3 कदम",threeStepsSubtitle:"प्रीमियम व्यक्तिगत कुंडली रिपोर्ट",step1:"अपनी जानकारी दर्ज करें",step2:"आपकी कुंडली विशेषज्ञों द्वारा बनाई जाएगी",step3Intro:"आपको व्हाट्सएप पर अपनी कुंडली मिलेगी",step3Days:"2 दिनों में",viewSampleReport:"नमूना कुंडली रिपोर्ट देखें",sampleReportModalTitle:"नमूना कुंडली रिपोर्ट",whatYoullFindTitle:"आपकी कुंडली रिपोर्ट में क्या मिलेगा?",findDasha:"दोष और दशा का विश्लेषण",findDashaDesc:"मुख्य दोष, दशा काल और सरल उपायों की पहचान करें",findYoga:"सभी योग रिपोर्ट्स",findYogaDesc:"अपनी कुंडली में उन योगों को जानें जो धन, करियर और संबंधों को प्रभावित करते हैं",findGemstone:"रत्न सिफारिशें",findGemstoneDesc:"आपकी कुंडली के आधार पर पर्सनलाइज्ड रत्न मार्गदर्शन",findPooja:"पूजा सिफारिशें",findPoojaDesc:"ग्रहों के प्रभाव को संतुलित करने के लिए पूजा और अनुष्ठान सुझाव",findMonthly:"मासिक भविष्यवाणियाँ (1 वर्ष)",findMonthlyDesc:"आने वाले वर्ष के लिए महीने-दर-महीने मार्गदर्शन",findStrength:"भावबल ग्राफ",findStrengthDesc:"ग्रहों की ताकत और प्रभाव दिखाने वाले दृश्य चार्ट",whyUsTitle:"क्यों हम?",whyUsSubtitle:"शुरू करने के लिए फॉर्म भरें और अपना भाग्य खोलें!",whyUs1:"30,00,000+ कुंडली बनाई गई",whyUs2:"1,000+ शीर्ष ज्योतिषी भागीदार",whyUs3:"500+ मंदिर भागीदारी",whyUs4:"व्यक्तिगत खंडवार जीवन विश्लेषण",feedbackTitle:"हमारे उपयोगकर्ताओं की प्रतिक्रिया",feedbackTrust:"दुनिया भर में 5 मिलियन से अधिक उपयोगकर्ताओं द्वारा विश्वसनीय",feedbackRating:"4.9",feedbackTestimonial1:"डिटेल्ड कुंडली रिपोर्ट मिली, जीवन में काफी क्लैरिटी आई।",feedbackTestimonial2:"करियर और शादी दोनों पर साफ मार्गदर्शन मिला।",feedbackTestimonial3:"आगे क्या करना है, उसकी साफ दिशा मिली।",feedbackTestimonial4:"रिपोर्ट से ज़्यादातर डाउट्स क्लियर हो गए।",feedbackTestimonial5:"फ्यूचर प्लानिंग के लिए अच्छे सुझाव मिले।",feedbackTestimonial6:"सभी ज़रूरी चीज़ें अच्छे से कवर की गई हैं।",feedbackTestimonial7:"एनालिसिस काफी डीप है, ऊपर-ऊपर का नहीं।",feedbackTestimonial8:"कुंडली के सुझावों से फ्यूचर डिसीजन क्लियर हुए।",feedbackTestimonial9:"कुल मिलाकर कुंडली रिपोर्ट बहुत हेल्पफुल रही।",feedbackTestimonial10:"पर्सनल रिपोर्ट से कॉन्फिडेंस बढ़ा।",feedbackTestimonial11:"रिपोर्ट एकदम सही और समझने में आसान थी।",feedbackTestimonial12:"रिपोर्ट उम्मीद से ज़्यादा डिटेल्ड निकली।",feedbackTestimonial13:"रिपोर्ट पढ़कर लाइफ के पैटर्न समझ आए।",feedbackTestimonial14:"आसान भाषा में पूरा डिटेल्ड एनालिसिस दिया है।",feedbackTestimonial15:"दशा और टाइमिंग की जानकारी बहुत काम की थी।",feedbackAuthor1:"आरव",feedbackAuthor2:"विवान",feedbackAuthor3:"अर्जुन",feedbackAuthor4:"कबीर",feedbackAuthor5:"रोहन",feedbackAuthor6:"ईशान",feedbackAuthor7:"कृष",feedbackAuthor8:"राहुल",feedbackAuthor9:"अनन्या",feedbackAuthor10:"आध्या",feedbackAuthor11:"काव्या",feedbackAuthor12:"दिया",feedbackAuthor13:"मीरा",feedbackAuthor14:"पूजा",feedbackAuthor15:"निशा",feedbackAuthor1AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639271096.png",feedbackAuthor2AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639330970.png",feedbackAuthor3AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639345411.png",feedbackAuthor4AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639358174.png",feedbackAuthor5AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639369712.png",feedbackAuthor6AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639381899.png",feedbackAuthor7AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639442858.png",feedbackAuthor8AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639454626.png",feedbackAuthor9AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639254172.png",feedbackAuthor10AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639293055.png",feedbackAuthor11AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639306698.png",feedbackAuthor12AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639319028.png",feedbackAuthor13AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639402894.png",feedbackAuthor14AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639416587.png",feedbackAuthor15AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639427379.png",readMoreReviews:"और समीक्षाएं पढ़ें",readLess:"कम पढ़ें",faqTitle:"अक्सर पूछे जाने वाले प्रश्न",faqQ1:"मुझे अपनी कुंडली कैसे मिलेगी?",faqQ2:"क्या प्रीमियम पर्सनलाइज्ड कुंडली किसी और भाषा में उपलब्ध है?",faqQ3:"अगर मुझे अपने जन्म का समय नहीं पता हो तो?",faqA1Global:"आपको 2 दिनों के भीतर आपके साझा किए गए ईमेल आईडी पर आपकी प्रीमियम पर्सनलाइज्ड कुंडली रिपोर्ट मिल जाएगी।",faqA1Domestic:"आपको 2 दिनों के भीतर आपके साझा किए गए व्हाट्सऐप नंबर पर आपकी प्रीमियम पर्सनलाइज्ड कुंडली रिपोर्ट मिल जाएगी।",faqA2:"हाँ, हम रिपोर्ट हिंदी और अंग्रेज़ी भाषाओं में प्रदान करते हैं।",faqA3:"सही जन्म समय से रिपोर्ट और अधिक सटीक बनती है। फिर भी, बिना सटीक समय के हम लगभग 80% सटीक रिपोर्ट तैयार कर सकते हैं।",contactTitle:"संपर्क करें",contactWhatsApp:"व्हाट्सएप: 9845089752",contactEmail:"ईमेल: shubham.goyal@appsforbharat.com",ctaKundliCreated:"2L+ कुंडली बनाई।",ctaCertified:"BHU प्रमाणित ज्योतिषी।",ctaSecurePayment:"सुरक्षित भुगतान।",ctaButton:"$300 $25 में मेरी विस्तृत कुंडली प्राप्त करें",ctaButtonStruck:"$100",ctaButtonBefore:"मेरा विस्तृत कुंडली प्राप्त करें ",ctaButtonAfter:"$25 में मेरी विस्तृत कुंडली प्राप्त करें",back:"वापस",info:"जानकारी",formTitle:"अपनी जानकारी दर्ज करें",formSubtitle:"शुरू करने के लिए नीचे दिया गया फॉर्म भरें और अपना भाग्य खोलें!",formFullName:"अपना पूरा नाम दर्ज करें",formFullNamePlaceholder:"पूरा नाम",formPhone:"अपना फोन नंबर दर्ज करें",formPhonePlaceholder:"फोन नंबर",formEmail:"अपना ईमेल पता दर्ज करें",formEmailHelp:"आपकी कुंडली रिपोर्ट आपके ईमेल पर भेजी जाएगी",formEmailPlaceholder:"ईमेल पता",formDob:"अपनी जन्म तिथि दर्ज करें",formDobInfo:"यह आपके जन्म कुंडली में ग्रहों की सटीक स्थिति की गणना करने में हमारी सहायता करता है।",formBirthTime:"अपना जन्म समय दर्ज करें",formBirthTimeInfo:"यह आपके जन्म कुंडली में ग्रहों की सटीक स्थिति की गणना करने में हमारी सहायता करता है।",formBirthTimeUnknownLine1:"क्या आपको अपना सटीक जन्म समय नहीं पता?",formBirthTimeUnknownLine2:"हम 80% सटीकता के साथ विश्लेषण कर सकते हैं",formBirthPlace:"अपना जन्म स्थान दर्ज करें",formBirthPlaceInfo:"यह आपके जन्म कुंडली में ग्रहों की सटीक स्थिति की गणना करने में हमारी सहायता करता है।",formBirthPlacePlaceholder:"शहर, राज्य",formOfferEnding:"ऑफर जल्द खत्म हो रहा है",formDiscountPill:"75% छूट",formProceed:"भुगतान के लिए आगे बढ़ें",formOriginalPrice:"$100",formDiscountedPrice:"$25",formPriceAria:"कीमत"}},I18nContext=require$$0.createContext(null),I18nProvider=({locale:_,children:t})=>{const i={locale:_,t:u=>translations[_]?.[u]??u};return jsxRuntimeExports.jsx(I18nContext.Provider,{value:i,children:t})};function useI18n(){return require$$0.useContext(I18nContext)}const container="_container_1e1th_1",main="_main_1e1th_7",kundliHeaderNoBorder="_kundliHeaderNoBorder_1e1th_12",headerSeparator="_headerSeparator_1e1th_16",langDropdownWrap="_langDropdownWrap_1e1th_21",langTrigger="_langTrigger_1e1th_25",langIcon="_langIcon_1e1th_37",langLabel="_langLabel_1e1th_44",langMenu="_langMenu_1e1th_49",langOption="_langOption_1e1th_55",styles$e={container,main,kundliHeaderNoBorder,headerSeparator,langDropdownWrap,langTrigger,langIcon,langLabel,langMenu,langOption};function getItem(_){if(typeof window>"u"||!window.localStorage)return null;try{return window.localStorage.getItem(_)}catch{return null}}function setItem(_,t){if(!(typeof window>"u"||!window.localStorage))try{window.localStorage.setItem(_,t)}catch{}}function removeItem(_){if(!(typeof window>"u"||!window.localStorage))try{window.localStorage.removeItem(_)}catch{}}function isLocalStorageAvailable(){if(typeof window>"u"||!window.localStorage)return!1;try{const _="__kundli_storage_test__";return window.localStorage.setItem(_,"1"),window.localStorage.removeItem(_),!0}catch{return!1}}const KUNDLI_LANGUAGE_STORAGE_KEY="kundli_language";function getStoredKundliLocale(){const _=getItem(KUNDLI_LANGUAGE_STORAGE_KEY);return _&&SUPPORTED_LOCALES.includes(_)?_:null}function setStoredKundliLocale(_){setItem(KUNDLI_LANGUAGE_STORAGE_KEY,_)}const KundliContext=require$$0.createContext(null),DEFAULT_FORM_VALUES={fullName:"",phone:"",email:"",dateOfBirth:"",birthTime:"",birthTimeUnknown:!1,birthPlace:""},KundliProvider=({locale:_,showLanguageSelector:t=!0,userId:v,isGlobal:i,logoUrl:u,reportImageUrl:P,universityLogoUrls:k,sampleReportHref:T,onViewSampleReport:y,ctaHref:c,onCtaClick:r,onBack:l,readMoreReviewsHref:h,onProceed:n,proceedHref:p,originalPriceLabel:m,discountedPriceLabel:f,discountPillLabel:b,analytics:E,onLocaleChange:I,children:w})=>{const[a,g]=require$$0.useState("landing"),[R,$]=require$$0.useState(_??"en"),[D,B]=require$$0.useState(DEFAULT_FORM_VALUES),q=require$$0.useRef(!0);require$$0.useEffect(()=>{const U=getStoredKundliLocale();U&&$(U)},[]),require$$0.useEffect(()=>{setStoredKundliLocale(R)},[R]),require$$0.useEffect(()=>{if(q.current){q.current=!1;return}I?.(R)},[R,I]);const J=require$$0.useMemo(()=>({locale:_,showLanguageSelector:t,userId:v,isGlobal:i,logoUrl:u,reportImageUrl:P,universityLogoUrls:k,sampleReportHref:T,onViewSampleReport:y,ctaHref:c,onCtaClick:r,onBack:l,readMoreReviewsHref:h,onProceed:n,proceedHref:p,originalPriceLabel:m,discountedPriceLabel:f,discountPillLabel:b,analytics:E,onLocaleChange:I}),[_,t,v,i,u,P,k,T,y,c,r,l,h,n,p,m,f,b,E,I]),se=require$$0.useCallback(()=>{g("form")},[J.analytics]),Q=require$$0.useCallback(()=>{g("landing"),J.onBack?.()},[J.onBack]),H=require$$0.useMemo(()=>({view:a,locale:R,setLocale:$,config:J,formValues:D,setFormValues:B,goToForm:se,goToPage:Q,onProceed:J.onProceed}),[a,R,J,D,se,Q]);return jsxRuntimeExports.jsx(KundliContext.Provider,{value:H,children:w})};function useKundliContext(){return require$$0.useContext(KundliContext)}function useKundliContextOrThrow(){const _=require$$0.useContext(KundliContext);if(!_)throw new Error("useKundliContextOrThrow must be used within KundliProvider");return _}const header$2="_header_1414z_1",left="_left_1414z_7",backBtn="_backBtn_1414z_11",titleWrap="_titleWrap_1414z_21",title$2="_title_1414z_21",subtitle$3="_subtitle_1414z_32",backIcon="_backIcon_1414z_38",styles$d={header:header$2,left,backBtn,titleWrap,title:title$2,subtitle:subtitle$3,backIcon},BackIcon=()=>jsxRuntimeExports.jsx("svg",{className:styles$d.backIcon,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:jsxRuntimeExports.jsx("path",{d:"M15 18l-6-6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),FormHeader=({t:_,onBack:t,className:v=""})=>jsxRuntimeExports.jsx("header",{className:`${styles$d.header} ${v}`,children:jsxRuntimeExports.jsxs("div",{className:styles$d.left,children:[jsxRuntimeExports.jsx("button",{type:"button",className:styles$d.backBtn,onClick:t,"aria-label":_("back"),children:jsxRuntimeExports.jsx(BackIcon,{})}),jsxRuntimeExports.jsxs("div",{className:styles$d.titleWrap,children:[jsxRuntimeExports.jsx("h1",{className:styles$d.title,children:_("formTitle")}),jsxRuntimeExports.jsx("p",{className:styles$d.subtitle,children:_("formSubtitle")})]})]})}),wrap="_wrap_1wp0p_1",card$1="_card_1wp0p_5",cardInner="_cardInner_1wp0p_12",field="_field_1wp0p_16",labelRow="_labelRow_1wp0p_20",label="_label_1wp0p_20",req="_req_1wp0p_29",help="_help_1wp0p_33",infoBtn="_infoBtn_1wp0p_40",infoImg="_infoImg_1wp0p_57",infoWrap="_infoWrap_1wp0p_63",tooltip="_tooltip_1wp0p_69",tooltipArrow="_tooltipArrow_1wp0p_85",inputWrap="_inputWrap_1wp0p_96",suggestions="_suggestions_1wp0p_100",suggestionItem="_suggestionItem_1wp0p_113",suggestionMain="_suggestionMain_1wp0p_131",suggestionSecondary="_suggestionSecondary_1wp0p_137",suggestionsHint="_suggestionsHint_1wp0p_142",timePopover="_timePopover_1wp0p_157",timePickerRow="_timePickerRow_1wp0p_173",timePickerSelect="_timePickerSelect_1wp0p_179",timePickerColon="_timePickerColon_1wp0p_195",meridiemToggle="_meridiemToggle_1wp0p_203",meridiemBtn="_meridiemBtn_1wp0p_212",meridiemActive="_meridiemActive_1wp0p_227",timePopoverActions="_timePopoverActions_1wp0p_232",timePopoverBtn="_timePopoverBtn_1wp0p_238",timePopoverOk="_timePopoverOk_1wp0p_257",input="_input_1wp0p_96",iconBtn="_iconBtn_1wp0p_301",iconBtnInteractive="_iconBtnInteractive_1wp0p_307",iconImg="_iconImg_1wp0p_326",checkboxRow="_checkboxRow_1wp0p_332",checkbox="_checkbox_1wp0p_332",checkboxText="_checkboxText_1wp0p_370",styles$c={wrap,card:card$1,cardInner,field,labelRow,label,req,help,infoBtn,infoImg,infoWrap,tooltip,tooltipArrow,inputWrap,suggestions,suggestionItem,suggestionMain,suggestionSecondary,suggestionsHint,timePopover,timePickerRow,timePickerSelect,timePickerColon,meridiemToggle,meridiemBtn,meridiemActive,timePopoverActions,timePopoverBtn,timePopoverOk,input,iconBtn,iconBtnInteractive,iconImg,checkboxRow,checkbox,checkboxText};let googleMapsPromise=null;const loadGoogleMapsScript=(_,t)=>typeof window>"u"||window.google?.maps?.places?Promise.resolve():googleMapsPromise||(googleMapsPromise=new Promise((v,i)=>{const u=document.querySelector('script[data-google-maps-places="true"]');if(u){u.addEventListener("load",()=>v()),u.addEventListener("error",()=>i(new Error("Failed to load Google Maps API")));return}const P=document.createElement("script"),k=new URL("https://maps.googleapis.com/maps/api/js");k.searchParams.set("key",_),k.searchParams.set("libraries","places"),k.searchParams.set("loading","async"),t&&k.searchParams.set("language",t),P.src=k.toString(),P.async=!0,P.defer=!0,P.setAttribute("data-google-maps-places","true"),P.onload=()=>{const T=Date.now(),y=()=>{if(window.google?.maps?.places){v();return}if(Date.now()-T>2e3){i(new Error("Google Maps loaded but Places library is unavailable. Check API key restrictions / enabled APIs."));return}window.setTimeout(y,50)};y()},P.onerror=()=>i(new Error("Failed to load Google Maps API")),document.head.appendChild(P)}),googleMapsPromise),useGooglePlacesAutocomplete=_=>{const{apiKey:t,language:v="en",restrictCountry:i}=_,[u,P]=require$$0.useState(!1),[k,T]=require$$0.useState([]),[y,c]=require$$0.useState(!1),[r,l]=require$$0.useState(null),h=require$$0.useRef(null),n=require$$0.useRef(null),p=require$$0.useRef(null);require$$0.useEffect(()=>{if(!t){P(!1),l(null);return}loadGoogleMapsScript(t,v).then(()=>{h.current=new google.maps.places.AutocompleteService;const E=document.createElement("div");n.current=new google.maps.places.PlacesService(E),p.current=new google.maps.places.AutocompleteSessionToken,P(!0),l(null)}).catch(E=>{P(!1),l(E?.message||"Failed to load location service")})},[t,v]);const m=require$$0.useCallback(async E=>{if(!E||E.length<2||!h.current){T([]);return}c(!0);try{const I={input:E,types:["(cities)"],sessionToken:p.current??void 0};i&&(I.componentRestrictions={country:i});const w=await new Promise((a,g)=>{h.current.getPlacePredictions(I,(R,$)=>{$===google.maps.places.PlacesServiceStatus.OK&&R?a(R):$===google.maps.places.PlacesServiceStatus.ZERO_RESULTS?a([]):g(new Error(`Places API error: ${$}`))})});T(w.map(a=>({place_id:a.place_id,description:a.description,structured_formatting:{main_text:a.structured_formatting?.main_text||a.description,secondary_text:a.structured_formatting?.secondary_text||""}})))}catch{T([])}finally{c(!1)}},[i]),f=require$$0.useCallback(async E=>{if(!n.current)return null;try{const I=await new Promise((D,B)=>{n.current.getDetails({placeId:E,fields:["geometry","address_components","formatted_address"],sessionToken:p.current??void 0},(q,J)=>{J===google.maps.places.PlacesServiceStatus.OK&&q?D(q):B(new Error(`Place details error: ${J}`))})});p.current=new google.maps.places.AutocompleteSessionToken;const w=I.geometry?.location?.lat()||0,a=I.geometry?.location?.lng()||0;let g="",R="",$="";return I.address_components?.forEach(D=>{D.types.includes("locality")&&(g=D.long_name),D.types.includes("administrative_area_level_1")&&(R=D.long_name),D.types.includes("country")&&($=D.long_name)}),{display_name:I.formatted_address||"",lat:w,lng:a,city:g,state:R,country:$}}catch{return null}},[]),b=require$$0.useCallback(()=>T([]),[]);return{isLoaded:u,predictions:k,isSearching:y,loadError:r,searchPlaces:m,getPlaceDetails:f,clearPredictions:b}},__vite_import_meta_env__={},ICONS={time:"https://srm-cdn.a4b.io/yoda/1770372014782.svg",location:"https://srm-cdn.a4b.io/yoda/1770372031092.svg",date:"https://srm-cdn.a4b.io/yoda/1770372045894.svg",info:"https://srm-cdn.a4b.io/yoda/1770372066357.svg"},UserInfoFormSection=({t:_,values:t,onChange:v,analytics:i,googleMapsApiKey:u,className:P=""})=>{const k=useKundliContext(),T=k?.config?.analytics??i,y=k?.config.isGlobal??!0,c=require$$0.useRef({}),r=e=>v({...t,...e}),l=(e,s)=>{s.trim()&&!c.current[e]&&(c.current[e]=!0,{fullName:()=>T?.trackNameSectionFilled?.(),phone:()=>T?.trackPhoneSectionFilled?.(),email:()=>T?.trackEmailSectionFilled?.(),dateOfBirth:()=>T?.trackDobFilled?.(),birthTime:()=>T?.trackTimeFilled?.(),birthPlace:()=>T?.trackPlaceOfBirthChosen?.()}[e]?.())},h=e=>e.replace(/\D/g,"").slice(0,10),n=require$$0.useRef(null);require$$0.useRef(null);const p=require$$0.useRef(null),m=require$$0.useRef(0),f=require$$0.useRef(null),[b,E]=require$$0.useState(!1),[I,w]=require$$0.useState({hour12:12,minute:"00",meridiem:"AM"}),a=e=>String(e).padStart(2,"0"),g=e=>{const s=/^([01]\d|2[0-3]):([0-5]\d)$/.exec(e);if(!s)return e;const x=Number(s[1]),F=s[2],C=x>=12?"PM":"AM";return`${x%12===0?12:x%12}:${F} ${C}`},R=e=>{const s=/^([01]\d|2[0-3]):([0-5]\d)$/.exec(e);if(!s)return{hour12:12,minute:"00",meridiem:"AM"};const x=Number(s[1]),F=s[2],C=x>=12?"PM":"AM";return{hour12:x%12===0?12:x%12,minute:F,meridiem:C}},$=e=>{const s=Math.min(12,Math.max(1,e.hour12)),x=/^([0-5]\d)$/.test(e.minute)?e.minute:"00";let F=s%12;return e.meridiem==="PM"&&(F+=12),`${a(F)}:${x}`},D=require$$0.useRef(null),[B,q]=require$$0.useState(!1),[J,se]=require$$0.useState(null),Q=u??__vite_import_meta_env__?.VITE_GOOGLE_MAPS_API_KEY,H=(t.birthPlace??"").trim(),U=y?void 0:"in",W="en",{predictions:S,isSearching:d,loadError:o,searchPlaces:A,clearPredictions:M}=useGooglePlacesAutocomplete({apiKey:Q,language:W,restrictCountry:U});require$$0.useEffect(()=>{const e=s=>{D.current&&(D.current.contains(s.target)||q(!1))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),require$$0.useEffect(()=>{if(!B)return;if(H.length<2){M();return}const e=window.setTimeout(async()=>{await A(H)},250);return()=>window.clearTimeout(e)},[M,B,H,A]);const j=e=>{const s=e.current;if(!(!s||s.disabled)){if(document.activeElement===s&&p.current===s&&Date.now()-m.current<6e4){s.blur();return}if(typeof s.showPicker=="function"){s.showPicker(),p.current=s,m.current=Date.now();return}s.focus(),p.current=s,m.current=Date.now()}};return require$$0.useEffect(()=>{const e=s=>{f.current&&(f.current.contains(s.target)||E(!1))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),require$$0.useEffect(()=>{const e=x=>{x.target?.closest?.("[data-info-tooltip]")==null&&se(null)},s=x=>{x.key==="Escape"&&se(null)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",s),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",s)}},[]),jsxRuntimeExports.jsx("section",{className:`${styles$c.wrap} ${P}`,"aria-label":_("formTitle"),children:jsxRuntimeExports.jsx("div",{className:styles$c.card,children:jsxRuntimeExports.jsxs("div",{className:styles$c.cardInner,children:[jsxRuntimeExports.jsxs("div",{className:styles$c.field,children:[jsxRuntimeExports.jsx("div",{className:styles$c.labelRow,children:jsxRuntimeExports.jsxs("label",{className:styles$c.label,htmlFor:"kundli-full-name",children:[_("formFullName"),jsxRuntimeExports.jsx("span",{className:styles$c.req,children:"*"})]})}),jsxRuntimeExports.jsx("div",{className:styles$c.inputWrap,children:jsxRuntimeExports.jsx("input",{id:"kundli-full-name",className:styles$c.input,type:"text",value:t.fullName,onFocus:()=>T?.trackNameSectionClicked?.(),onChange:e=>{const s=e.target.value;r({fullName:s}),l("fullName",s)},placeholder:_("formFullNamePlaceholder"),autoComplete:"name"})})]}),jsxRuntimeExports.jsxs("div",{className:styles$c.field,children:[jsxRuntimeExports.jsx("div",{className:styles$c.labelRow,children:jsxRuntimeExports.jsxs("label",{className:styles$c.label,htmlFor:"kundli-phone",children:[_("formPhone"),!y&&jsxRuntimeExports.jsx("span",{className:styles$c.req,children:"*"})]})}),jsxRuntimeExports.jsx("div",{className:styles$c.inputWrap,children:jsxRuntimeExports.jsx("input",{id:"kundli-phone",className:styles$c.input,type:"tel",value:t.phone??"",onFocus:()=>T?.trackPhoneSectionClicked?.(),onChange:e=>{const s=e.target.value;r({phone:h(s)}),l("phone",h(s))},placeholder:_("formPhonePlaceholder"),autoComplete:"tel",inputMode:"numeric",pattern:"[0-9]{10}",maxLength:10,required:!y,"aria-required":!y})})]}),y&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:styles$c.field,children:[jsxRuntimeExports.jsx("div",{className:styles$c.labelRow,children:jsxRuntimeExports.jsxs("label",{className:styles$c.label,htmlFor:"kundli-email",children:[_("formEmail"),jsxRuntimeExports.jsx("span",{className:styles$c.req,children:"*"})]})}),jsxRuntimeExports.jsx("div",{className:styles$c.help,children:_("formEmailHelp")}),jsxRuntimeExports.jsx("div",{className:styles$c.inputWrap,children:jsxRuntimeExports.jsx("input",{id:"kundli-email",className:styles$c.input,type:"email",value:t.email,onChange:e=>r({email:e.target.value}),placeholder:_("formEmailPlaceholder"),autoComplete:"email",required:!0,"aria-required":!0})})]})}),jsxRuntimeExports.jsxs("div",{className:styles$c.field,children:[jsxRuntimeExports.jsxs("div",{className:styles$c.labelRow,children:[jsxRuntimeExports.jsxs("label",{className:styles$c.label,htmlFor:"kundli-dob",children:[_("formDob"),jsxRuntimeExports.jsx("span",{className:styles$c.req,children:"*"})]}),jsxRuntimeExports.jsxs("div",{className:styles$c.infoWrap,"data-info-tooltip":!0,children:[jsxRuntimeExports.jsx("button",{type:"button",className:styles$c.infoBtn,"aria-label":_("info"),"aria-expanded":J==="dob",onClick:()=>{se(e=>e==="dob"?null:"dob"),T?.trackInfoIconClicked?.({fieldName:"dob"})},children:jsxRuntimeExports.jsx("img",{className:styles$c.infoImg,src:ICONS.info,alt:"","aria-hidden":!0})}),J==="dob"&&jsxRuntimeExports.jsxs("div",{className:styles$c.tooltip,role:"tooltip",children:[_("formDobInfo"),jsxRuntimeExports.jsx("span",{className:styles$c.tooltipArrow,"aria-hidden":!0})]})]})]}),jsxRuntimeExports.jsxs("div",{className:styles$c.inputWrap,children:[jsxRuntimeExports.jsx("input",{id:"kundli-dob",className:styles$c.input,type:"date",ref:n,value:t.dateOfBirth,max:(()=>{const e=new Date;return`${e.getFullYear()}-${a(e.getMonth()+1)}-${a(e.getDate())}`})(),onChange:e=>{const s=e.target.value,x=new Date,F=`${x.getFullYear()}-${a(x.getMonth()+1)}-${a(x.getDate())}`;s&&s>F||(r({dateOfBirth:s}),l("dateOfBirth",s),p.current=null)},onFocus:()=>T?.trackDobClicked?.(),onClick:()=>j(n),onBlur:()=>{p.current===n.current&&(p.current=null)}}),jsxRuntimeExports.jsx("button",{type:"button",className:`${styles$c.iconBtn} ${styles$c.iconBtnInteractive}`,"aria-label":"Open date picker",onMouseDown:e=>e.preventDefault(),onClick:e=>{e.preventDefault(),e.stopPropagation(),j(n)},children:jsxRuntimeExports.jsx("img",{className:styles$c.iconImg,src:ICONS.date,alt:"","aria-hidden":!0})})]})]}),jsxRuntimeExports.jsxs("div",{className:styles$c.field,children:[jsxRuntimeExports.jsxs("div",{className:styles$c.labelRow,children:[jsxRuntimeExports.jsxs("label",{className:styles$c.label,htmlFor:"kundli-birth-time",children:[_("formBirthTime"),jsxRuntimeExports.jsx("span",{className:styles$c.req,children:"*"})]}),jsxRuntimeExports.jsxs("div",{className:styles$c.infoWrap,"data-info-tooltip":!0,children:[jsxRuntimeExports.jsx("button",{type:"button",className:styles$c.infoBtn,"aria-label":_("info"),"aria-expanded":J==="time",onClick:()=>{T?.trackInfoIconClicked?.({fieldName:"time"}),se(e=>e==="time"?null:"time")},children:jsxRuntimeExports.jsx("img",{className:styles$c.infoImg,src:ICONS.info,alt:"","aria-hidden":!0})}),J==="time"&&jsxRuntimeExports.jsxs("div",{className:styles$c.tooltip,role:"tooltip",children:[_("formBirthTimeInfo"),jsxRuntimeExports.jsx("span",{className:styles$c.tooltipArrow,"aria-hidden":!0})]})]})]}),jsxRuntimeExports.jsxs("div",{className:styles$c.inputWrap,ref:f,children:[jsxRuntimeExports.jsx("input",{id:"kundli-birth-time",className:styles$c.input,type:"text",value:t.birthTime?g(t.birthTime):"",readOnly:!0,onFocus:()=>T?.trackTimeClicked?.(),onChange:e=>{const s=e.target.value;r({birthTime:s}),l("birthTime",s)},disabled:t.birthTimeUnknown,placeholder:"HH:MM AM",onClick:()=>{t.birthTimeUnknown||(w(R(t.birthTime||"12:00")),E(e=>!e))}}),jsxRuntimeExports.jsx("button",{type:"button",className:`${styles$c.iconBtn} ${styles$c.iconBtnInteractive}`,"aria-label":"Open time picker",disabled:t.birthTimeUnknown,onMouseDown:e=>e.preventDefault(),onClick:e=>{e.preventDefault(),e.stopPropagation(),!t.birthTimeUnknown&&(w(R(t.birthTime||"12:00")),E(s=>!s))},children:jsxRuntimeExports.jsx("img",{className:styles$c.iconImg,src:ICONS.time,alt:"","aria-hidden":!0})}),b&&!t.birthTimeUnknown&&jsxRuntimeExports.jsxs("div",{className:styles$c.timePopover,role:"dialog","aria-label":"Select time",children:[jsxRuntimeExports.jsxs("div",{className:styles$c.timePickerRow,children:[jsxRuntimeExports.jsx("select",{className:styles$c.timePickerSelect,value:I.hour12,onChange:e=>w(s=>({...s,hour12:Number(e.target.value)})),"aria-label":"Hour",children:Array.from({length:12},(e,s)=>s+1).map(e=>jsxRuntimeExports.jsx("option",{value:e,children:e},e))}),jsxRuntimeExports.jsx("span",{className:styles$c.timePickerColon,children:":"}),jsxRuntimeExports.jsx("select",{className:styles$c.timePickerSelect,value:I.minute,onChange:e=>w(s=>({...s,minute:e.target.value})),"aria-label":"Minute",children:Array.from({length:60},(e,s)=>a(s)).map(e=>jsxRuntimeExports.jsx("option",{value:e,children:e},e))}),jsxRuntimeExports.jsxs("div",{className:styles$c.meridiemToggle,"aria-label":"AM/PM",children:[jsxRuntimeExports.jsx("button",{type:"button",className:`${styles$c.meridiemBtn} ${I.meridiem==="AM"?styles$c.meridiemActive:""}`,onClick:()=>w(e=>({...e,meridiem:"AM"})),children:"AM"}),jsxRuntimeExports.jsx("button",{type:"button",className:`${styles$c.meridiemBtn} ${I.meridiem==="PM"?styles$c.meridiemActive:""}`,onClick:()=>w(e=>({...e,meridiem:"PM"})),children:"PM"})]})]}),jsxRuntimeExports.jsxs("div",{className:styles$c.timePopoverActions,children:[jsxRuntimeExports.jsx("button",{type:"button",className:styles$c.timePopoverBtn,onClick:()=>E(!1),children:"Cancel"}),jsxRuntimeExports.jsx("button",{type:"button",className:`${styles$c.timePopoverBtn} ${styles$c.timePopoverOk}`,onClick:()=>{const e=$(I);r({birthTime:e}),l("birthTime",e),E(!1)},"aria-label":"OK",children:jsxRuntimeExports.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:jsxRuntimeExports.jsx("path",{d:"M20 6L9 17l-5-5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})]}),jsxRuntimeExports.jsxs("div",{className:styles$c.checkboxRow,children:[jsxRuntimeExports.jsx("input",{id:"kundli-time-unknown",className:styles$c.checkbox,type:"checkbox",checked:t.birthTimeUnknown,onChange:e=>{T?.trackTimeCheckboxClicked?.(),r({birthTimeUnknown:e.target.checked,birthTime:e.target.checked?"":t.birthTime})}}),jsxRuntimeExports.jsxs("label",{className:styles$c.checkboxText,htmlFor:"kundli-time-unknown",children:[_("formBirthTimeUnknownLine1"),jsxRuntimeExports.jsx("br",{}),_("formBirthTimeUnknownLine2")]})]})]}),jsxRuntimeExports.jsxs("div",{className:styles$c.field,children:[jsxRuntimeExports.jsxs("div",{className:styles$c.labelRow,children:[jsxRuntimeExports.jsxs("label",{className:styles$c.label,htmlFor:"kundli-birth-place",children:[_("formBirthPlace"),jsxRuntimeExports.jsx("span",{className:styles$c.req,children:"*"})]}),jsxRuntimeExports.jsxs("div",{className:styles$c.infoWrap,"data-info-tooltip":!0,children:[jsxRuntimeExports.jsx("button",{type:"button",className:styles$c.infoBtn,"aria-label":_("info"),"aria-expanded":J==="place",onClick:()=>{T?.trackInfoIconClicked?.({fieldName:"birthPlace"}),se(e=>e==="place"?null:"place")},children:jsxRuntimeExports.jsx("img",{className:styles$c.infoImg,src:ICONS.info,alt:"","aria-hidden":!0})}),J==="place"&&jsxRuntimeExports.jsxs("div",{className:styles$c.tooltip,role:"tooltip",children:[_("formBirthPlaceInfo"),jsxRuntimeExports.jsx("span",{className:styles$c.tooltipArrow,"aria-hidden":!0})]})]})]}),jsxRuntimeExports.jsxs("div",{className:styles$c.inputWrap,ref:D,children:[jsxRuntimeExports.jsx("input",{id:"kundli-birth-place",className:styles$c.input,type:"text",value:t.birthPlace,onChange:e=>{const s=e.target.value;r({birthPlace:s}),l("birthPlace",s),q(!0)},onFocus:()=>{T?.trackPlaceOfBirthClicked?.(),q(!0)},placeholder:_("formBirthPlacePlaceholder"),autoComplete:"address-level2"}),jsxRuntimeExports.jsx("span",{className:styles$c.iconBtn,"aria-hidden":!0,children:jsxRuntimeExports.jsx("img",{className:styles$c.iconImg,src:ICONS.location,alt:"","aria-hidden":!0})}),B&&S.length>0&&jsxRuntimeExports.jsx("div",{className:styles$c.suggestions,role:"listbox",children:S.slice(0,8).map(e=>jsxRuntimeExports.jsxs("button",{type:"button",className:styles$c.suggestionItem,onClick:()=>{r({birthPlace:e.description}),M(),q(!1)},children:[jsxRuntimeExports.jsx("span",{className:styles$c.suggestionMain,children:e.structured_formatting?.main_text??e.description}),e.structured_formatting?.secondary_text&&jsxRuntimeExports.jsx("span",{className:styles$c.suggestionSecondary,children:e.structured_formatting.secondary_text})]},e.place_id))}),B&&Q&&d&&jsxRuntimeExports.jsx("div",{className:styles$c.suggestionsHint,children:"Loading…"}),B&&Q&&!d&&!!o&&jsxRuntimeExports.jsx("div",{className:styles$c.suggestionsHint,children:o})]})]})]})})})},footer="_footer_15g1k_1",inner$1="_inner_15g1k_7",badges="_badges_15g1k_11",marqueeTrack="_marqueeTrack_15g1k_18",marqueeContent="_marqueeContent_15g1k_24",badge="_badge_15g1k_11",badgeIcon="_badgeIcon_15g1k_47",ctaWrap="_ctaWrap_15g1k_51",ctaStruck="_ctaStruck_15g1k_55",ctaButton="_ctaButton_15g1k_61",offerRow="_offerRow_15g1k_81",pill="_pill_15g1k_88",footerShellStyles={footer,inner:inner$1,badges,marqueeTrack,marqueeContent,badge,badgeIcon,ctaWrap,ctaStruck,ctaButton,offerRow,pill},FooterShell=({marquee:_,children:t,className:v=""})=>jsxRuntimeExports.jsx("footer",{className:`${footerShellStyles.footer} ${v}`,role:"contentinfo",children:jsxRuntimeExports.jsxs("div",{className:footerShellStyles.inner,children:[_!=null&&jsxRuntimeExports.jsx("div",{className:footerShellStyles.badges,"aria-hidden":!0,children:_}),jsxRuntimeExports.jsx("div",{className:footerShellStyles.ctaWrap,children:t})]})}),FooterCTAButton=({children:_,href:t,disabled:v=!1,onClick:i,className:u="","aria-label":P})=>{const k=`${footerShellStyles.ctaButton} ${u}`.trim(),T=P!=null?{"aria-label":P}:{};return t!=null?jsxRuntimeExports.jsx("a",{href:t,className:k,target:"_blank",rel:"noopener noreferrer","aria-disabled":v,onClick:y=>v&&y.preventDefault(),...T,children:_}):jsxRuntimeExports.jsx("button",{type:"button",className:k,disabled:v,onClick:i,...T,children:_})},isValidEmail=_=>/.+@.+\..+/.test(_),isValidIndianPhone10=_=>/^\d{10}$/.test(_),ProceedFooter=({t:_,values:t,onProceed:v,href:i,analytics:u,className:P="",originalPriceLabel:k,discountedPriceLabel:T,discountPillLabel:y})=>{const r=useKundliContext()?.config.isGlobal??!0,l=require$$0.useMemo(()=>{if(!t.fullName.trim())return!1;if(r){if(!isValidEmail(t.email.trim()))return!1}else if(!isValidIndianPhone10((t.phone??"").trim()))return!1;return!(!t.dateOfBirth||!t.birthPlace.trim()||!t.birthTimeUnknown&&!t.birthTime)},[r,t]),h=r?k??_("formOriginalPrice"):"₹999",n=r?T??_("formDiscountedPrice"):"₹249",p=y??_("formDiscountPill"),m=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[_("formProceed"),jsxRuntimeExports.jsx("span",{className:footerShellStyles.ctaStruck,children:h})," ",n]}),f=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:footerShellStyles.offerRow,children:[jsxRuntimeExports.jsx("span",{children:_("formOfferEnding")}),jsxRuntimeExports.jsx("span",{className:footerShellStyles.pill,children:p})]}),jsxRuntimeExports.jsx(FooterCTAButton,{href:i,disabled:!l,onClick:()=>{u?.trackPrimaryCtaClickedL1?.({avenue:"form"}),v?.(t)},"aria-label":_("formPriceAria"),children:m})]});return jsxRuntimeExports.jsx(FooterShell,{className:P,children:f})},header$1="_header_dbx4y_1",brand="_brand_dbx4y_7",logo="_logo_dbx4y_11",logoImg$1="_logoImg_dbx4y_15",logoPlaceholder="_logoPlaceholder_dbx4y_21",brandText="_brandText_dbx4y_29",brandName$1="_brandName_dbx4y_33",rating="_rating_dbx4y_38",stars$1="_stars_dbx4y_44",langSlot="_langSlot_dbx4y_49",styles$b={header:header$1,brand,logo,logoImg:logoImg$1,logoPlaceholder,brandText,brandName:brandName$1,rating,stars:stars$1,langSlot},DEFAULT_LOGO_URL$1="https://srm-cdn.a4b.io/yoda/1770362904947.svg",KundliHeader=({t:_,languageSelector:t,logoUrl:v=DEFAULT_LOGO_URL$1,className:i=""})=>{const P=useKundliContext()?.config.isGlobal??!0,k=t&&!P;return jsxRuntimeExports.jsxs("header",{className:`${styles$b.header} ${i}`,children:[jsxRuntimeExports.jsxs("div",{className:styles$b.brand,children:[jsxRuntimeExports.jsx("div",{className:styles$b.logo,children:v?jsxRuntimeExports.jsx("img",{src:v,alt:_("sriMandir"),className:styles$b.logoImg}):jsxRuntimeExports.jsx("div",{className:styles$b.logoPlaceholder,"aria-hidden":!0})}),jsxRuntimeExports.jsxs("div",{className:styles$b.brandText,children:[jsxRuntimeExports.jsx("span",{className:styles$b.brandName,children:_("sriMandir")}),jsxRuntimeExports.jsxs("span",{className:styles$b.rating,children:[jsxRuntimeExports.jsx("span",{className:styles$b.stars,"aria-hidden":!0,children:"★"}),_("ratingText")]})]})]}),k&&jsxRuntimeExports.jsx("div",{className:styles$b.langSlot,children:t})]})},hero="_hero_okj8x_1",title$1="_title_okj8x_5",subtitle$2="_subtitle_okj8x_10",topicTags="_topicTags_okj8x_23",tag="_tag_okj8x_27",styles$a={hero,title:title$1,subtitle:subtitle$2,topicTags,tag},TOPIC_KEYS=["topicMarriage","topicRelationship","topicBusiness","topicHealth","topicCareer","topicEducation","topicMoney"],HeroSection=({t:_,className:t=""})=>jsxRuntimeExports.jsxs("section",{className:`${styles$a.hero} ${t}`,"aria-labelledby":"hero-title",children:[jsxRuntimeExports.jsx("h1",{id:"hero-title",className:styles$a.title,children:_("heroTitle")}),jsxRuntimeExports.jsx("p",{className:styles$a.subtitle,children:_("heroSubtitle")}),jsxRuntimeExports.jsx("div",{className:styles$a.topicTags,role:"list",children:TOPIC_KEYS.map(v=>jsxRuntimeExports.jsx("span",{className:styles$a.tag,role:"listitem",children:_(v)},v))})]}),section$8="_section_j2cgl_1",inner="_inner_j2cgl_9",content$2="_content_j2cgl_14",headline="_headline_j2cgl_18",headlineLine="_headlineLine_j2cgl_23",headlinePill="_headlinePill_j2cgl_28",headlinePlain="_headlinePlain_j2cgl_43",featureList="_featureList_j2cgl_54",featureItem="_featureItem_j2cgl_61",featureIcon="_featureIcon_j2cgl_66",reportImage="_reportImage_j2cgl_73",reportImg="_reportImg_j2cgl_83",styles$9={section:section$8,inner,content:content$2,headline,headlineLine,headlinePill,headlinePlain,featureList,featureItem,featureIcon,reportImage,reportImg},FEATURE_CHECK_ICON_URL="https://srm-cdn.a4b.io/yoda/1770363846052.svg",FEATURES=["premiumFeature1","premiumFeature2","premiumFeature3","premiumFeature4"],DEFAULT_REPORT_IMAGE_URL="https://srm-cdn.a4b.io/yoda/1770710060606.png",PremiumReportOverview=({t:_,reportImageUrl:t=DEFAULT_REPORT_IMAGE_URL,analytics:v,className:i=""})=>{const u=()=>{v?.trackBannerClicked?.()};return jsxRuntimeExports.jsx("section",{className:`${styles$9.section} ${i}`,"aria-labelledby":"premium-headline",role:"button",tabIndex:0,onClick:u,children:jsxRuntimeExports.jsxs("div",{className:styles$9.inner,children:[jsxRuntimeExports.jsxs("div",{className:styles$9.content,children:[jsxRuntimeExports.jsxs("h2",{id:"premium-headline",className:styles$9.headline,children:[jsxRuntimeExports.jsxs("span",{className:styles$9.headlineLine,children:[jsxRuntimeExports.jsx("span",{className:styles$9.headlinePill,children:_("premiumHeadlinePill1")}),jsxRuntimeExports.jsx("span",{className:styles$9.headlinePlain,children:_("premiumHeadlinePlain1")})]}),jsxRuntimeExports.jsxs("span",{className:styles$9.headlineLine,children:[jsxRuntimeExports.jsx("span",{className:styles$9.headlinePlain,children:_("premiumHeadlinePlain2")}),jsxRuntimeExports.jsx("span",{className:styles$9.headlinePill,children:_("premiumHeadlinePill2")})]})]}),jsxRuntimeExports.jsx("ul",{className:styles$9.featureList,children:FEATURES.map(P=>jsxRuntimeExports.jsxs("li",{className:styles$9.featureItem,children:[jsxRuntimeExports.jsx("img",{src:FEATURE_CHECK_ICON_URL,alt:"",className:styles$9.featureIcon,width:16,height:16,"aria-hidden":!0}),_(P)]},P))})]}),jsxRuntimeExports.jsx("div",{className:styles$9.reportImage,children:jsxRuntimeExports.jsx("img",{src:t,alt:"",className:styles$9.reportImg})})]})})},section$7="_section_1g93x_1",heading$6="_heading_1g93x_6",logoImg="_logoImg_1g93x_10",styles$8={section:section$7,heading:heading$6,logoImg},DEFAULT_LOGO_URL="https://srm-cdn.a4b.io/yoda/1770365699409.png",UniversityCertification=({t:_,logoUrl:t=DEFAULT_LOGO_URL,className:v=""})=>jsxRuntimeExports.jsxs("section",{className:`${styles$8.section} ${v}`,"aria-labelledby":"certified-heading",children:[jsxRuntimeExports.jsx("h2",{id:"certified-heading",className:styles$8.heading,children:_("certifiedBy")}),jsxRuntimeExports.jsx("img",{src:t,alt:"University Certification",className:styles$8.logoImg})]}),section$6="_section_fw00n_1",heading$5="_heading_fw00n_6",subtitle$1="_subtitle_fw00n_12",stepList="_stepList_fw00n_17",stepItem="_stepItem_fw00n_21",stepNumber="_stepNumber_fw00n_25",stepText="_stepText_fw00n_31",step3Days="_step3Days_fw00n_36",styles$7={section:section$6,heading:heading$5,subtitle:subtitle$1,stepList,stepItem,stepNumber,stepText,step3Days},STEP_KEYS=["step1","step2"],ThreeStepsProcess=({t:_,locale:t="en",className:v=""})=>jsxRuntimeExports.jsxs("section",{className:`${styles$7.section} ${v}`,"aria-labelledby":"steps-heading",children:[jsxRuntimeExports.jsx("p",{className:styles$7.heading,children:_("yourThreeSteps")}),jsxRuntimeExports.jsx("h2",{id:"steps-heading",className:styles$7.subtitle,children:_("threeStepsSubtitle")}),jsxRuntimeExports.jsxs("ol",{className:styles$7.stepList,children:[STEP_KEYS.map((i,u)=>jsxRuntimeExports.jsxs("li",{className:styles$7.stepItem,children:[jsxRuntimeExports.jsx("span",{className:styles$7.stepNumber,"aria-hidden":!0,children:u+1}),jsxRuntimeExports.jsx("span",{className:styles$7.stepText,children:_(i)})]},i)),jsxRuntimeExports.jsxs("li",{className:styles$7.stepItem,children:[jsxRuntimeExports.jsx("span",{className:styles$7.stepNumber,"aria-hidden":!0,children:"3"}),jsxRuntimeExports.jsxs("span",{className:styles$7.stepText,children:[_("step3Intro"),jsxRuntimeExports.jsx("br",{}),t==="en"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["in ",jsxRuntimeExports.jsx("strong",{className:styles$7.step3Days,children:_("step3Days")})]}):jsxRuntimeExports.jsx("strong",{className:styles$7.step3Days,children:_("step3Days")})]})]})]})]}),section$5="_section_uboy6_1",button="_button_uboy6_7",styles$6={section:section$5,button};function commonjsRequire(_){throw new Error('Could not dynamically require "'+_+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pdf={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(__viteBrowserExternal$1);var hasRequiredPdf;function requirePdf(){return hasRequiredPdf||(hasRequiredPdf=1,(function(module,exports$1){(function(t,v){module.exports=v()})(globalThis,()=>(()=>{var __webpack_modules__=[,((_,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.UNSUPPORTED_FEATURES=t.TextRenderingMode=t.RenderingIntentFlag=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.BASELINE_FACTOR=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMode=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.assert=A,t.bytesToString=X,t.createPromiseCapability=ye,t.createValidAbsoluteUrl=j,t.getModificationDate=ve,t.getVerbosityLevel=W,t.info=S,t.isArrayBuffer=Ce,t.isArrayEqual=$e,t.objectFromMap=re,t.objectSize=ee,t.setVerbosityLevel=U,t.shadow=e,t.string32=Y,t.stringToBytes=te,t.stringToPDFString=xe,t.stringToUTF8String=Te,t.unreachable=o,t.utf8StringToString=Fe,t.warn=d;const v=[1,0,0,1,0,0];t.IDENTITY_MATRIX=v;const i=[.001,0,0,.001,0,0];t.FONT_IDENTITY_MATRIX=i;const u=1.35;t.LINE_FACTOR=u;const P=.35;t.LINE_DESCENT_FACTOR=P;const k=P/u;t.BASELINE_FACTOR=k;const T={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};t.RenderingIntentFlag=T;const y={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};t.AnnotationMode=y;const c="pdfjs_internal_editor_";t.AnnotationEditorPrefix=c;const r={DISABLE:-1,NONE:0,FREETEXT:3,INK:15};t.AnnotationEditorType=r;const l={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13};t.AnnotationEditorParamsType=l;const h={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.PermissionFlag=h;const n={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};t.TextRenderingMode=n;const p={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.ImageKind=p;const m={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};t.AnnotationType=m;const f={MARKED:"Marked",REVIEW:"Review"};t.AnnotationStateModelType=f;const b={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationMarkedState=b;const E={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReviewState=E;const I={GROUP:"Group",REPLY:"R"};t.AnnotationReplyType=I;const w={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFlag=w;const a={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};t.AnnotationFieldFlag=a;const g={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.AnnotationBorderStyleType=g;const R={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};t.AnnotationActionEventType=R;const $={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};t.DocumentActionEventType=$;const D={O:"PageOpen",C:"PageClose"};t.PageActionEventType=D;const B={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=B;const q={NONE:0,BINARY:1};t.CMapCompressionType=q;const J={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};t.OPS=J;const se={forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"};t.UNSUPPORTED_FEATURES=se;const Q={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};t.PasswordResponses=Q;let H=B.WARNINGS;function U(Z){Number.isInteger(Z)&&(H=Z)}function W(){return H}function S(Z){H>=B.INFOS&&console.log(`Info: ${Z}`)}function d(Z){H>=B.WARNINGS&&console.log(`Warning: ${Z}`)}function o(Z){throw new Error(Z)}function A(Z,K){Z||o(K)}function M(Z){if(!Z)return!1;switch(Z.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function j(Z,K=null,z=null){if(!Z)return null;try{if(z&&typeof Z=="string"){if(z.addDefaultProtocol&&Z.startsWith("www.")){const ue=Z.match(/\./g);ue&&ue.length>=2&&(Z=`http://${Z}`)}if(z.tryConvertEncoding)try{Z=Te(Z)}catch{}}const le=K?new URL(Z,K):new URL(Z);if(M(le))return le}catch{}return null}function e(Z,K,z,le=!1){return Object.defineProperty(Z,K,{value:z,enumerable:!le,configurable:!0,writable:!1}),z}const s=(function(){function K(z,le){this.constructor===K&&o("Cannot initialize BaseException."),this.message=z,this.name=le}return K.prototype=new Error,K.constructor=K,K})();t.BaseException=s;class x extends s{constructor(K,z){super(K,"PasswordException"),this.code=z}}t.PasswordException=x;class F extends s{constructor(K,z){super(K,"UnknownErrorException"),this.details=z}}t.UnknownErrorException=F;class C extends s{constructor(K){super(K,"InvalidPDFException")}}t.InvalidPDFException=C;class L extends s{constructor(K){super(K,"MissingPDFException")}}t.MissingPDFException=L;class O extends s{constructor(K,z){super(K,"UnexpectedResponseException"),this.status=z}}t.UnexpectedResponseException=O;class V extends s{constructor(K){super(K,"FormatError")}}t.FormatError=V;class G extends s{constructor(K){super(K,"AbortException")}}t.AbortException=G;function X(Z){(typeof Z!="object"||Z===null||Z.length===void 0)&&o("Invalid argument for bytesToString");const K=Z.length,z=8192;if(K<z)return String.fromCharCode.apply(null,Z);const le=[];for(let ue=0;ue<K;ue+=z){const Se=Math.min(ue+z,K),ke=Z.subarray(ue,Se);le.push(String.fromCharCode.apply(null,ke))}return le.join("")}function te(Z){typeof Z!="string"&&o("Invalid argument for stringToBytes");const K=Z.length,z=new Uint8Array(K);for(let le=0;le<K;++le)z[le]=Z.charCodeAt(le)&255;return z}function Y(Z){return String.fromCharCode(Z>>24&255,Z>>16&255,Z>>8&255,Z&255)}function ee(Z){return Object.keys(Z).length}function re(Z){const K=Object.create(null);for(const[z,le]of Z)K[z]=le;return K}function ae(){const Z=new Uint8Array(4);return Z[0]=1,new Uint32Array(Z.buffer,0,1)[0]===1}function ce(){try{return new Function(""),!0}catch{return!1}}class ie{static get isLittleEndian(){return e(this,"isLittleEndian",ae())}static get isEvalSupported(){return e(this,"isEvalSupported",ce())}static get isOffscreenCanvasSupported(){return e(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator>"u"?e(this,"platform",{isWin:!1,isMac:!1}):e(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}}t.FeatureTest=ie;const ge=[...Array(256).keys()].map(Z=>Z.toString(16).padStart(2,"0"));class me{static makeHexColor(K,z,le){return`#${ge[K]}${ge[z]}${ge[le]}`}static scaleMinMax(K,z){let le;K[0]?(K[0]<0&&(le=z[0],z[0]=z[1],z[1]=le),z[0]*=K[0],z[1]*=K[0],K[3]<0&&(le=z[2],z[2]=z[3],z[3]=le),z[2]*=K[3],z[3]*=K[3]):(le=z[0],z[0]=z[2],z[2]=le,le=z[1],z[1]=z[3],z[3]=le,K[1]<0&&(le=z[2],z[2]=z[3],z[3]=le),z[2]*=K[1],z[3]*=K[1],K[2]<0&&(le=z[0],z[0]=z[1],z[1]=le),z[0]*=K[2],z[1]*=K[2]),z[0]+=K[4],z[1]+=K[4],z[2]+=K[5],z[3]+=K[5]}static transform(K,z){return[K[0]*z[0]+K[2]*z[1],K[1]*z[0]+K[3]*z[1],K[0]*z[2]+K[2]*z[3],K[1]*z[2]+K[3]*z[3],K[0]*z[4]+K[2]*z[5]+K[4],K[1]*z[4]+K[3]*z[5]+K[5]]}static applyTransform(K,z){const le=K[0]*z[0]+K[1]*z[2]+z[4],ue=K[0]*z[1]+K[1]*z[3]+z[5];return[le,ue]}static applyInverseTransform(K,z){const le=z[0]*z[3]-z[1]*z[2],ue=(K[0]*z[3]-K[1]*z[2]+z[2]*z[5]-z[4]*z[3])/le,Se=(-K[0]*z[1]+K[1]*z[0]+z[4]*z[1]-z[5]*z[0])/le;return[ue,Se]}static getAxialAlignedBoundingBox(K,z){const le=me.applyTransform(K,z),ue=me.applyTransform(K.slice(2,4),z),Se=me.applyTransform([K[0],K[3]],z),ke=me.applyTransform([K[2],K[1]],z);return[Math.min(le[0],ue[0],Se[0],ke[0]),Math.min(le[1],ue[1],Se[1],ke[1]),Math.max(le[0],ue[0],Se[0],ke[0]),Math.max(le[1],ue[1],Se[1],ke[1])]}static inverseTransform(K){const z=K[0]*K[3]-K[1]*K[2];return[K[3]/z,-K[1]/z,-K[2]/z,K[0]/z,(K[2]*K[5]-K[4]*K[3])/z,(K[4]*K[1]-K[5]*K[0])/z]}static singularValueDecompose2dScale(K){const z=[K[0],K[2],K[1],K[3]],le=K[0]*z[0]+K[1]*z[2],ue=K[0]*z[1]+K[1]*z[3],Se=K[2]*z[0]+K[3]*z[2],ke=K[2]*z[1]+K[3]*z[3],Le=(le+ke)/2,Ue=Math.sqrt((le+ke)**2-4*(le*ke-Se*ue))/2,Ie=Le+Ue||1,Re=Le-Ue||1;return[Math.sqrt(Ie),Math.sqrt(Re)]}static normalizeRect(K){const z=K.slice(0);return K[0]>K[2]&&(z[0]=K[2],z[2]=K[0]),K[1]>K[3]&&(z[1]=K[3],z[3]=K[1]),z}static intersect(K,z){const le=Math.max(Math.min(K[0],K[2]),Math.min(z[0],z[2])),ue=Math.min(Math.max(K[0],K[2]),Math.max(z[0],z[2]));if(le>ue)return null;const Se=Math.max(Math.min(K[1],K[3]),Math.min(z[1],z[3])),ke=Math.min(Math.max(K[1],K[3]),Math.max(z[1],z[3]));return Se>ke?null:[le,Se,ue,ke]}static bezierBoundingBox(K,z,le,ue,Se,ke,Le,Ue){const Ie=[],Re=[[],[]];let Ne,De,He,we,Ge,qe,Ke,Xe;for(let Ye=0;Ye<2;++Ye){if(Ye===0?(De=6*K-12*le+6*Se,Ne=-3*K+9*le-9*Se+3*Le,He=3*le-3*K):(De=6*z-12*ue+6*ke,Ne=-3*z+9*ue-9*ke+3*Ue,He=3*ue-3*z),Math.abs(Ne)<1e-12){if(Math.abs(De)<1e-12)continue;we=-He/De,0<we&&we<1&&Ie.push(we);continue}Ke=De*De-4*He*Ne,Xe=Math.sqrt(Ke),!(Ke<0)&&(Ge=(-De+Xe)/(2*Ne),0<Ge&&Ge<1&&Ie.push(Ge),qe=(-De-Xe)/(2*Ne),0<qe&&qe<1&&Ie.push(qe))}let We=Ie.length,Pe;const Be=We;for(;We--;)we=Ie[We],Pe=1-we,Re[0][We]=Pe*Pe*Pe*K+3*Pe*Pe*we*le+3*Pe*we*we*Se+we*we*we*Le,Re[1][We]=Pe*Pe*Pe*z+3*Pe*Pe*we*ue+3*Pe*we*we*ke+we*we*we*Ue;return Re[0][Be]=K,Re[1][Be]=z,Re[0][Be+1]=Le,Re[1][Be+1]=Ue,Re[0].length=Re[1].length=Be+2,[Math.min(...Re[0]),Math.min(...Re[1]),Math.max(...Re[0]),Math.max(...Re[1])]}}t.Util=me;const de=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function xe(Z){if(Z[0]>="ï"){let z;if(Z[0]==="þ"&&Z[1]==="ÿ"?z="utf-16be":Z[0]==="ÿ"&&Z[1]==="þ"?z="utf-16le":Z[0]==="ï"&&Z[1]==="»"&&Z[2]==="¿"&&(z="utf-8"),z)try{const le=new TextDecoder(z,{fatal:!0}),ue=te(Z);return le.decode(ue)}catch(le){d(`stringToPDFString: "${le}".`)}}const K=[];for(let z=0,le=Z.length;z<le;z++){const ue=de[Z.charCodeAt(z)];K.push(ue?String.fromCharCode(ue):Z.charAt(z))}return K.join("")}function Te(Z){return decodeURIComponent(escape(Z))}function Fe(Z){return unescape(encodeURIComponent(Z))}function Ce(Z){return typeof Z=="object"&&Z!==null&&Z.byteLength!==void 0}function $e(Z,K){if(Z.length!==K.length)return!1;for(let z=0,le=Z.length;z<le;z++)if(Z[z]!==K[z])return!1;return!0}function ve(Z=new Date){return[Z.getUTCFullYear().toString(),(Z.getUTCMonth()+1).toString().padStart(2,"0"),Z.getUTCDate().toString().padStart(2,"0"),Z.getUTCHours().toString().padStart(2,"0"),Z.getUTCMinutes().toString().padStart(2,"0"),Z.getUTCSeconds().toString().padStart(2,"0")].join("")}function ye(){const Z=Object.create(null);let K=!1;return Object.defineProperty(Z,"settled",{get(){return K}}),Z.promise=new Promise(function(z,le){Z.resolve=function(ue){K=!0,z(ue)},Z.reject=function(ue){K=!0,le(ue)}}),Z}}),((__unused_webpack_module,exports$1,__w_pdfjs_require__)=>{Object.defineProperty(exports$1,"__esModule",{value:!0}),exports$1.build=exports$1.RenderTask=exports$1.PDFWorkerUtil=exports$1.PDFWorker=exports$1.PDFPageProxy=exports$1.PDFDocumentProxy=exports$1.PDFDocumentLoadingTask=exports$1.PDFDataRangeTransport=exports$1.LoopbackPort=exports$1.DefaultStandardFontDataFactory=exports$1.DefaultCanvasFactory=exports$1.DefaultCMapReaderFactory=void 0,exports$1.getDocument=getDocument,exports$1.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_is_node=__w_pdfjs_require__(10),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_xfa_text=__w_pdfjs_require__(19);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100;let DefaultCanvasFactory=_display_utils.DOMCanvasFactory;exports$1.DefaultCanvasFactory=DefaultCanvasFactory;let DefaultCMapReaderFactory=_display_utils.DOMCMapReaderFactory;exports$1.DefaultCMapReaderFactory=DefaultCMapReaderFactory;let DefaultStandardFontDataFactory=_display_utils.DOMStandardFontDataFactory;if(exports$1.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory,_is_node.isNodeJS){const{NodeCanvasFactory:_,NodeCMapReaderFactory:t,NodeStandardFontDataFactory:v}=__w_pdfjs_require__(20);exports$1.DefaultCanvasFactory=DefaultCanvasFactory=_,exports$1.DefaultCMapReaderFactory=DefaultCMapReaderFactory=t,exports$1.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory=v}let createPDFNetworkStream;if(_is_node.isNodeJS){const{PDFNodeStream:_}=__w_pdfjs_require__(21);createPDFNetworkStream=t=>new _(t)}else{const{PDFNetworkStream:_}=__w_pdfjs_require__(24),{PDFFetchStream:t}=__w_pdfjs_require__(25);createPDFNetworkStream=v=>(0,_display_utils.isValidFetchUrl)(v.url)?new t(v):new _(v)}function getDocument(_){if(typeof _=="string"||_ instanceof URL)_={url:_};else if((0,_util.isArrayBuffer)(_))_={data:_};else if(_ instanceof PDFDataRangeTransport)(0,_display_utils.deprecated)("`PDFDataRangeTransport`-instance, please use a parameter object with `range`-property instead."),_={range:_};else if(typeof _!="object")throw new Error("Invalid parameter in getDocument, need either string, URL, TypedArray, or parameter object.");if(!_.url&&!_.data&&!_.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const t=new PDFDocumentLoadingTask,v=_.url?getUrlProp(_.url):null,i=_.data?getDataProp(_.data):null,u=_.httpHeaders||null,P=_.withCredentials===!0,k=_.password??null,T=_.range instanceof PDFDataRangeTransport?_.range:null,y=Number.isInteger(_.rangeChunkSize)&&_.rangeChunkSize>0?_.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE;let c=_.worker instanceof PDFWorker?_.worker:null;const r=_.verbosity,l=typeof _.docBaseUrl=="string"&&!(0,_display_utils.isDataScheme)(_.docBaseUrl)?_.docBaseUrl:null,h=typeof _.cMapUrl=="string"?_.cMapUrl:null,n=_.cMapPacked!==!1,p=_.CMapReaderFactory||DefaultCMapReaderFactory,m=typeof _.standardFontDataUrl=="string"?_.standardFontDataUrl:null,f=_.StandardFontDataFactory||DefaultStandardFontDataFactory,b=_.stopAtErrors!==!0,E=Number.isInteger(_.maxImageSize)&&_.maxImageSize>-1?_.maxImageSize:-1,I=_.isEvalSupported!==!1,w=typeof _.isOffscreenCanvasSupported=="boolean"?_.isOffscreenCanvasSupported:!_is_node.isNodeJS,a=typeof _.disableFontFace=="boolean"?_.disableFontFace:_is_node.isNodeJS,g=_.fontExtraProperties===!0,R=_.enableXfa===!0,$=_.ownerDocument||globalThis.document,D=_.disableRange===!0,B=_.disableStream===!0,q=_.disableAutoFetch===!0,J=_.pdfBug===!0,se=T?T.length:_.length??NaN,Q=typeof _.useSystemFonts=="boolean"?_.useSystemFonts:!_is_node.isNodeJS&&!a,H=typeof _.useWorkerFetch=="boolean"?_.useWorkerFetch:p===_display_utils.DOMCMapReaderFactory&&f===_display_utils.DOMStandardFontDataFactory&&(0,_display_utils.isValidFetchUrl)(h,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(m,document.baseURI),U=null;(0,_util.setVerbosityLevel)(r);const W=H?null:{cMapReaderFactory:new p({baseUrl:h,isCompressed:n}),standardFontDataFactory:new f({baseUrl:m})};if(!c){const A={verbosity:r,port:_worker_options.GlobalWorkerOptions.workerPort};c=A.port?PDFWorker.fromPort(A):new PDFWorker(A),t._worker=c}const S=t.docId,d={docId:S,apiVersion:"3.4.120",data:i,password:k,disableAutoFetch:q,rangeChunkSize:y,length:se,docBaseUrl:l,enableXfa:R,evaluatorOptions:{maxImageSize:E,disableFontFace:a,ignoreErrors:b,isEvalSupported:I,isOffscreenCanvasSupported:w,fontExtraProperties:g,useSystemFonts:Q,cMapUrl:H?h:null,standardFontDataUrl:H?m:null}},o={ignoreErrors:b,isEvalSupported:I,disableFontFace:a,fontExtraProperties:g,enableXfa:R,ownerDocument:$,disableAutoFetch:q,pdfBug:J,styleElement:U};return c.promise.then(function(){if(t.destroyed)throw new Error("Loading aborted");const A=_fetchDocument(c,d),M=new Promise(function(j){let e;T?e=new _transport_stream.PDFDataTransportStream({length:se,initialData:T.initialData,progressiveDone:T.progressiveDone,contentDispositionFilename:T.contentDispositionFilename,disableRange:D,disableStream:B},T):i||(e=createPDFNetworkStream({url:v,length:se,httpHeaders:u,withCredentials:P,rangeChunkSize:y,disableRange:D,disableStream:B})),j(e)});return Promise.all([A,M]).then(function([j,e]){if(t.destroyed)throw new Error("Loading aborted");const s=new _message_handler.MessageHandler(S,j,c.port),x=new WorkerTransport(s,t,e,o,W);t._transport=x,s.send("Ready",null)})}).catch(t._capability.reject),t}async function _fetchDocument(_,t){if(_.destroyed)throw new Error("Worker was destroyed");const v=await _.messageHandler.sendWithPromise("GetDocRequest",t,t.data?[t.data.buffer]:null);if(_.destroyed)throw new Error("Worker was destroyed");return v}function getUrlProp(_){if(_ instanceof URL)return _.href;try{return new URL(_,window.location).href}catch{if(_is_node.isNodeJS&&typeof _=="string")return _}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(_){if(_is_node.isNodeJS&&typeof Buffer<"u"&&_ instanceof Buffer)return(0,_display_utils.deprecated)("Please provide binary data as `Uint8Array`, rather than `Buffer`."),new Uint8Array(_);if(_ instanceof Uint8Array&&_.byteLength===_.buffer.byteLength)return _;if(typeof _=="string")return(0,_util.stringToBytes)(_);if(typeof _=="object"&&!isNaN(_?.length)||(0,_util.isArrayBuffer)(_))return new Uint8Array(_);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}class PDFDocumentLoadingTask{static#e=0;#t=null;constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId=`d${PDFDocumentLoadingTask.#e++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get onUnsupportedFeature(){return this.#t}set onUnsupportedFeature(t){(0,_display_utils.deprecated)("The PDFDocumentLoadingTask onUnsupportedFeature property will be removed in the future."),this.#t=t}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0,await this._transport?.destroy(),this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}exports$1.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(t,v,i=!1,u=null){this.length=t,this.initialData=v,this.progressiveDone=i,this.contentDispositionFilename=u,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(t){this._rangeListeners.push(t)}addProgressListener(t){this._progressListeners.push(t)}addProgressiveReadListener(t){this._progressiveReadListeners.push(t)}addProgressiveDoneListener(t){this._progressiveDoneListeners.push(t)}onDataRange(t,v){for(const i of this._rangeListeners)i(t,v)}onDataProgress(t,v){this._readyCapability.promise.then(()=>{for(const i of this._progressListeners)i(t,v)})}onDataProgressiveRead(t){this._readyCapability.promise.then(()=>{for(const v of this._progressiveReadListeners)v(t)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const t of this._progressiveDoneListeners)t()})}transportReady(){this._readyCapability.resolve()}requestDataRange(t,v){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports$1.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(t,v){this._pdfInfo=t,this._transport=v}get annotationStorage(){return this._transport.annotationStorage}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(t){return this._transport.getPage(t)}getPageIndex(t){return this._transport.getPageIndex(t)}getDestinations(){return this._transport.getDestinations()}getDestination(t){return this._transport.getDestination(t)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(t=!1){return this._transport.startCleanup(t||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports$1.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(t,v,i,u,P=!1){this._pageIndex=t,this._pageInfo=v,this._ownerDocument=u,this._transport=i,this._stats=P?new _display_utils.StatTimer:null,this._pdfBug=P,this.commonObjs=i.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:t,rotation:v=this.rotate,offsetX:i=0,offsetY:u=0,dontFlip:P=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:t,rotation:v,offsetX:i,offsetY:u,dontFlip:P})}getAnnotations({intent:t="display"}={}){const v=this._transport.getRenderingIntent(t);return this._transport.getAnnotations(this._pageIndex,v.renderingIntent)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:t,viewport:v,intent:i="display",annotationMode:u=_util.AnnotationMode.ENABLE,transform:P=null,canvasFactory:k=null,background:T=null,optionalContentConfigPromise:y=null,annotationCanvasMap:c=null,pageColors:r=null,printAnnotationStorage:l=null}){this._stats?.time("Overall");const h=this._transport.getRenderingIntent(i,u,l);this.pendingCleanup=!1,y||(y=this._transport.getOptionalContentConfig());let n=this._intentStates.get(h.cacheKey);n||(n=Object.create(null),this._intentStates.set(h.cacheKey,n)),n.streamReaderCancelTimeout&&(clearTimeout(n.streamReaderCancelTimeout),n.streamReaderCancelTimeout=null);const p=k||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),m=!!(h.renderingIntent&_util.RenderingIntentFlag.PRINT);n.displayReadyCapability||(n.displayReadyCapability=(0,_util.createPromiseCapability)(),n.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(h));const f=I=>{n.renderTasks.delete(b),(this.cleanupAfterRender||m)&&(this.pendingCleanup=!0),this._tryCleanup(),I?(b.capability.reject(I),this._abortOperatorList({intentState:n,reason:I instanceof Error?I:new Error(I)})):b.capability.resolve(),this._stats?.timeEnd("Rendering"),this._stats?.timeEnd("Overall")},b=new InternalRenderTask({callback:f,params:{canvasContext:t,viewport:v,transform:P,background:T},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:c,operatorList:n.operatorList,pageIndex:this._pageIndex,canvasFactory:p,useRequestAnimationFrame:!m,pdfBug:this._pdfBug,pageColors:r});(n.renderTasks||=new Set).add(b);const E=b.task;return Promise.all([n.displayReadyCapability.promise,y]).then(([I,w])=>{if(this.pendingCleanup){f();return}this._stats?.time("Rendering"),b.initializeGraphics({transparency:I,optionalContentConfig:w}),b.operatorListChanged()}).catch(f),E}getOperatorList({intent:t="display",annotationMode:v=_util.AnnotationMode.ENABLE,printAnnotationStorage:i=null}={}){function u(){k.operatorList.lastChunk&&(k.opListReadCapability.resolve(k.operatorList),k.renderTasks.delete(T))}const P=this._transport.getRenderingIntent(t,v,i,!0);let k=this._intentStates.get(P.cacheKey);k||(k=Object.create(null),this._intentStates.set(P.cacheKey,k));let T;return k.opListReadCapability||(T=Object.create(null),T.operatorListChanged=u,k.opListReadCapability=(0,_util.createPromiseCapability)(),(k.renderTasks||=new Set).add(T),k.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(P)),k.opListReadCapability.promise}streamTextContent({disableCombineTextItems:t=!1,includeMarkedContent:v=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,combineTextItems:t!==!0,includeMarkedContent:v===!0},{highWaterMark:100,size(u){return u.items.length}})}getTextContent(t={}){if(this._transport._htmlForXfa)return this.getXfa().then(i=>_xfa_text.XfaText.textContent(i));const v=this.streamTextContent(t);return new Promise(function(i,u){function P(){k.read().then(function({value:y,done:c}){if(c){i(T);return}Object.assign(T.styles,y.styles),T.items.push(...y.items),P()},u)}const k=v.getReader(),T={items:[],styles:Object.create(null)};P()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const t=[];for(const v of this._intentStates.values())if(this._abortOperatorList({intentState:v,reason:new Error("Page was destroyed."),force:!0}),!v.opListReadCapability)for(const i of v.renderTasks)t.push(i.completed),i.cancel();return this.objs.clear(),this.pendingCleanup=!1,Promise.all(t)}cleanup(t=!1){return this.pendingCleanup=!0,this._tryCleanup(t)}_tryCleanup(t=!1){if(!this.pendingCleanup)return!1;for(const{renderTasks:v,operatorList:i}of this._intentStates.values())if(v.size>0||!i.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),t&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0}_startRenderPage(t,v){const i=this._intentStates.get(v);i&&(this._stats?.timeEnd("Page Request"),i.displayReadyCapability?.resolve(t))}_renderPageChunk(t,v){for(let i=0,u=t.length;i<u;i++)v.operatorList.fnArray.push(t.fnArray[i]),v.operatorList.argsArray.push(t.argsArray[i]);v.operatorList.lastChunk=t.lastChunk,v.operatorList.separateAnnots=t.separateAnnots;for(const i of v.renderTasks)i.operatorListChanged();t.lastChunk&&this._tryCleanup()}_pumpOperatorList({renderingIntent:t,cacheKey:v,annotationStorageMap:i}){const P=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:t,cacheKey:v,annotationStorage:i}).getReader(),k=this._intentStates.get(v);k.streamReader=P;const T=()=>{P.read().then(({value:y,done:c})=>{if(c){k.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(y,k),T())},y=>{if(k.streamReader=null,!this._transport.destroyed){if(k.operatorList){k.operatorList.lastChunk=!0;for(const c of k.renderTasks)c.operatorListChanged();this._tryCleanup()}if(k.displayReadyCapability)k.displayReadyCapability.reject(y);else if(k.opListReadCapability)k.opListReadCapability.reject(y);else throw y}})};T()}_abortOperatorList({intentState:t,reason:v,force:i=!1}){if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!i){if(t.renderTasks.size>0)return;if(v instanceof _display_utils.RenderingCancelledException){let u=RENDERING_CANCELLED_TIMEOUT;v.extraDelay>0&&v.extraDelay<1e3&&(u+=v.extraDelay),t.streamReaderCancelTimeout=setTimeout(()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:v,force:!0})},u);return}}if(t.streamReader.cancel(new _util.AbortException(v.message)).catch(()=>{}),t.streamReader=null,!this._transport.destroyed){for(const[u,P]of this._intentStates)if(P===t){this._intentStates.delete(u);break}this.cleanup()}}}get stats(){return this._stats}}exports$1.PDFPageProxy=PDFPageProxy;class LoopbackPort{#e=new Set;#t=Promise.resolve();postMessage(t,v){const i={data:structuredClone(t,v)};this.#t.then(()=>{for(const u of this.#e)u.call(this,i)})}addEventListener(t,v){this.#e.add(v)}removeEventListener(t,v){this.#e.delete(v)}terminate(){this.#e.clear()}}exports$1.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};exports$1.PDFWorkerUtil=PDFWorkerUtil;{if(_is_node.isNodeJS&&typeof commonjsRequire=="function")PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if(typeof document=="object"){const _=document?.currentScript?.src;_&&(PDFWorkerUtil.fallbackWorkerSrc=_.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(_,t){let v;try{if(v=new URL(_),!v.origin||v.origin==="null")return!1}catch{return!1}const i=new URL(t,v);return v.origin===i.origin},PDFWorkerUtil.createCDNWrapper=function(_){const t=`importScripts("${_}");`;return URL.createObjectURL(new Blob([t]))}}class PDFWorker{static#workerPorts=new WeakMap;constructor({name:_=null,port:t=null,verbosity:v=(0,_util.getVerbosityLevel)()}={}){if(t&&PDFWorker.#workerPorts.has(t))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=_,this.destroyed=!1,this.verbosity=v,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,t){PDFWorker.#workerPorts.set(t,this),this._initializeFromPort(t);return}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(_){this._port=_,this._messageHandler=new _message_handler.MessageHandler("main","worker",_),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:_}=PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,_)||(_=PDFWorkerUtil.createCDNWrapper(new URL(_,window.location).href));const t=new Worker(_),v=new _message_handler.MessageHandler("main","worker",t),i=()=>{t.removeEventListener("error",u),v.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},u=()=>{this._webWorker||i()};t.addEventListener("error",u),v.on("test",k=>{if(t.removeEventListener("error",u),this.destroyed){i();return}k?(this._messageHandler=v,this._port=t,this._webWorker=t,this._readyCapability.resolve(),v.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),v.destroy(),t.terminate())}),v.on("ready",k=>{if(t.removeEventListener("error",u),this.destroyed){i();return}try{P()}catch{this._setupFakeWorker()}});const P=()=>{const k=new Uint8Array;v.send("test",k,[k.buffer])};P();return}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then(_=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const t=new LoopbackPort;this._port=t;const v=`fake${PDFWorkerUtil.fakeWorkerId++}`,i=new _message_handler.MessageHandler(v+"_worker",v,t);_.setup(i,t);const u=new _message_handler.MessageHandler(v,v+"_worker",t);this._messageHandler=u,this._readyCapability.resolve(),u.send("configure",{verbosity:this.verbosity})}).catch(_=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${_.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),PDFWorker.#workerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(_){if(!_?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return this.#workerPorts.has(_.port)?this.#workerPorts.get(_.port):new PDFWorker(_)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(PDFWorkerUtil.fallbackWorkerSrc!==null)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS&&typeof commonjsRequire=="function"){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}exports$1.PDFWorker=PDFWorker;class WorkerTransport{#e=new Map;#t=new Map;#s=new Map;constructor(t,v,i,u,P){this.messageHandler=t,this.loadingTask=v,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:u.ownerDocument,styleElement:u.styleElement}),this._params=u,this.cMapReaderFactory=P?.cMapReaderFactory,this.standardFontDataFactory=P?.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=i,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}#i(t,v=null){const i=this.#e.get(t);if(i)return i;const u=this.messageHandler.sendWithPromise(t,v);return this.#e.set(t,u),u}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent(t,v=_util.AnnotationMode.ENABLE,i=null,u=!1){let P=_util.RenderingIntentFlag.DISPLAY,k=null;switch(t){case"any":P=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":P=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${t}`)}switch(v){case _util.AnnotationMode.DISABLE:P+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:P+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:P+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,k=(P&_util.RenderingIntentFlag.PRINT&&i instanceof _annotation_storage.PrintAnnotationStorage?i:this.annotationStorage).serializable;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${v}`)}return u&&(P+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:P,cacheKey:`${P}_${_annotation_storage.AnnotationStorage.getHash(k)}`,annotationStorageMap:k}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const t=[];for(const i of this.#t.values())t.push(i._destroy());this.#t.clear(),this.#s.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const v=this.messageHandler.sendWithPromise("Terminate",null);return t.push(v),Promise.all(t).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#e.clear(),this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:t,loadingTask:v}=this;t.on("GetReader",(i,u)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=P=>{this._lastProgress={loaded:P.loaded,total:P.total}},u.onPull=()=>{this._fullReader.read().then(function({value:P,done:k}){if(k){u.close();return}(0,_util.assert)(P instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),u.enqueue(new Uint8Array(P),1,[P])}).catch(P=>{u.error(P)})},u.onCancel=P=>{this._fullReader.cancel(P),u.ready.catch(k=>{if(!this.destroyed)throw k})}}),t.on("ReaderHeadersReady",i=>{const u=(0,_util.createPromiseCapability)(),P=this._fullReader;return P.headersReady.then(()=>{(!P.isStreamingSupported||!P.isRangeSupported)&&(this._lastProgress&&v.onProgress?.(this._lastProgress),P.onProgress=k=>{v.onProgress?.({loaded:k.loaded,total:k.total})}),u.resolve({isStreamingSupported:P.isStreamingSupported,isRangeSupported:P.isRangeSupported,contentLength:P.contentLength})},u.reject),u.promise}),t.on("GetRangeReader",(i,u)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const P=this._networkStream.getRangeReader(i.begin,i.end);if(!P){u.close();return}u.onPull=()=>{P.read().then(function({value:k,done:T}){if(T){u.close();return}(0,_util.assert)(k instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),u.enqueue(new Uint8Array(k),1,[k])}).catch(k=>{u.error(k)})},u.onCancel=k=>{P.cancel(k),u.ready.catch(T=>{if(!this.destroyed)throw T})}}),t.on("GetDoc",({pdfInfo:i})=>{this._numPages=i.numPages,this._htmlForXfa=i.htmlForXfa,delete i.htmlForXfa,v._capability.resolve(new PDFDocumentProxy(i,this))}),t.on("DocException",function(i){let u;switch(i.name){case"PasswordException":u=new _util.PasswordException(i.message,i.code);break;case"InvalidPDFException":u=new _util.InvalidPDFException(i.message);break;case"MissingPDFException":u=new _util.MissingPDFException(i.message);break;case"UnexpectedResponseException":u=new _util.UnexpectedResponseException(i.message,i.status);break;case"UnknownErrorException":u=new _util.UnknownErrorException(i.message,i.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}v._capability.reject(u)}),t.on("PasswordRequest",i=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),v.onPassword){const u=P=>{P instanceof Error?this._passwordCapability.reject(P):this._passwordCapability.resolve({password:P})};try{v.onPassword(u,i.code)}catch(P){this._passwordCapability.reject(P)}}else this._passwordCapability.reject(new _util.PasswordException(i.message,i.code));return this._passwordCapability.promise}),t.on("DataLoaded",i=>{v.onProgress?.({loaded:i.length,total:i.length}),this.downloadInfoCapability.resolve(i)}),t.on("StartRenderPage",i=>{if(this.destroyed)return;this.#t.get(i.pageIndex)._startRenderPage(i.transparency,i.cacheKey)}),t.on("commonobj",([i,u,P])=>{if(!this.destroyed&&!this.commonObjs.has(i))switch(u){case"Font":const k=this._params;if("error"in P){const c=P.error;(0,_util.warn)(`Error during font loading: ${c}`),this.commonObjs.resolve(i,c);break}let T=null;k.pdfBug&&globalThis.FontInspector?.enabled&&(T={registerFont(c,r){globalThis.FontInspector.fontAdded(c,r)}});const y=new _font_loader.FontFaceObject(P,{isEvalSupported:k.isEvalSupported,disableFontFace:k.disableFontFace,ignoreErrors:k.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:T});this.fontLoader.bind(y).catch(c=>t.sendWithPromise("FontFallback",{id:i})).finally(()=>{!k.fontExtraProperties&&y.data&&(y.data=null),this.commonObjs.resolve(i,y)});break;case"FontPath":case"Image":this.commonObjs.resolve(i,P);break;default:throw new Error(`Got unknown common object type ${u}`)}}),t.on("obj",([i,u,P,k])=>{if(this.destroyed)return;const T=this.#t.get(u);if(!T.objs.has(i))switch(P){case"Image":T.objs.resolve(i,k);const y=8e6;if(k){let c;if(k.bitmap){const{width:r,height:l}=k;c=r*l*4}else c=k.data?.length||0;c>y&&(T.cleanupAfterRender=!0)}break;case"Pattern":T.objs.resolve(i,k);break;default:throw new Error(`Got unknown object type ${P}`)}}),t.on("DocProgress",i=>{this.destroyed||v.onProgress?.({loaded:i.loaded,total:i.total})}),t.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),t.on("FetchBuiltInCMap",i=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(i):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),t.on("FetchStandardFontData",i=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(i):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}_onUnsupportedFeature({featureId:t}){this.destroyed||this.loadingTask.onUnsupportedFeature?.(t)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){return this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:this._fullReader?.filename??null}).finally(()=>{this.annotationStorage.resetModified()})}getPage(t){if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request."));const v=t-1,i=this.#s.get(v);if(i)return i;const u=this.messageHandler.sendWithPromise("GetPage",{pageIndex:v}).then(P=>{if(this.destroyed)throw new Error("Transport destroyed");const k=new PDFPageProxy(v,P,this,this._params.ownerDocument,this._params.pdfBug);return this.#t.set(v,k),k});return this.#s.set(v,u),u}getPageIndex(t){return typeof t!="object"||t===null||!Number.isInteger(t.num)||t.num<0||!Number.isInteger(t.gen)||t.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:t.num,gen:t.gen})}getAnnotations(t,v){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:v})}getFieldObjects(){return this.#i("GetFieldObjects")}hasJSActions(){return this.#i("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(t){return typeof t!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getDocJSActions(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}getPageJSActions(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:t})}getStructTree(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:t})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(t=>new _optional_content_config.OptionalContentConfig(t))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const t="GetMetadata",v=this.#e.get(t);if(v)return v;const i=this.messageHandler.sendWithPromise(t,null).then(u=>({info:u[0],metadata:u[1]?new _metadata.Metadata(u[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}));return this.#e.set(t,i),i}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(t=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const v of this.#t.values())if(!v.cleanup())throw new Error(`startCleanup: Page ${v.pageNumber} is currently rendering.`);this.commonObjs.clear(),t||this.fontLoader.clear(),this.#e.clear()}}get loadingParams(){const{disableAutoFetch:t,enableXfa:v}=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:t,enableXfa:v})}}class PDFObjects{#e=Object.create(null);#t(t){const v=this.#e[t];return v||(this.#e[t]={capability:(0,_util.createPromiseCapability)(),data:null})}get(t,v=null){if(v){const u=this.#t(t);return u.capability.promise.then(()=>v(u.data)),null}const i=this.#e[t];if(!i?.capability.settled)throw new Error(`Requesting object that isn't resolved yet ${t}.`);return i.data}has(t){return this.#e[t]?.capability.settled||!1}resolve(t,v=null){const i=this.#t(t);i.data=v,i.capability.resolve()}clear(){for(const t in this.#e){const{data:v}=this.#e[t];v?.bitmap?.close()}this.#e=Object.create(null)}}class RenderTask{#e=null;constructor(t){this.#e=t,this.onContinue=null}get promise(){return this.#e.capability.promise}cancel(t=0){this.#e.cancel(null,t)}get separateAnnots(){const{separateAnnots:t}=this.#e.operatorList;if(!t)return!1;const{annotationCanvasMap:v}=this.#e;return t.form||t.canvas&&v?.size>0}}exports$1.RenderTask=RenderTask;class InternalRenderTask{static#e=new WeakSet;constructor({callback:t,params:v,objs:i,commonObjs:u,annotationCanvasMap:P,operatorList:k,pageIndex:T,canvasFactory:y,useRequestAnimationFrame:c=!1,pdfBug:r=!1,pageColors:l=null}){this.callback=t,this.params=v,this.objs=i,this.commonObjs=u,this.annotationCanvasMap=P,this.operatorListIdx=null,this.operatorList=k,this._pageIndex=T,this.canvasFactory=y,this._pdfBug=r,this.pageColors=l,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=c===!0&&typeof window<"u",this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=v.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:t=!1,optionalContentConfig:v}){if(this.cancelled)return;if(this._canvas){if(InternalRenderTask.#e.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");InternalRenderTask.#e.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:i,viewport:u,transform:P,background:k}=this.params;this.gfx=new _canvas.CanvasGraphics(i,this.commonObjs,this.objs,this.canvasFactory,{optionalContentConfig:v},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:P,viewport:u,transparency:t,background:k}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(t=null,v=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),this._canvas&&InternalRenderTask.#e.delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas",v))}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}this.stepper?.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&InternalRenderTask.#e.delete(this._canvas),this.callback())))}}const version="3.4.120";exports$1.version=version;const build="af6414988";exports$1.build=build}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PrintAnnotationStorage=t.AnnotationStorage=void 0;var i=v(1),u=v(4),P=v(8);class k{#e=!1;#t=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(c,r){const l=this.#t.get(c);return l===void 0?r:Object.assign(r,l)}getRawValue(c){return this.#t.get(c)}remove(c){if(this.#t.delete(c),this.#t.size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const r of this.#t.values())if(r instanceof u.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(c,r){const l=this.#t.get(c);let h=!1;if(l!==void 0)for(const[n,p]of Object.entries(r))l[n]!==p&&(h=!0,l[n]=p);else h=!0,this.#t.set(c,r);h&&this.#s(),r instanceof u.AnnotationEditor&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(r.constructor._type)}has(c){return this.#t.has(c)}getAll(){return this.#t.size>0?(0,i.objectFromMap)(this.#t):null}setAll(c){for(const[r,l]of Object.entries(c))this.setValue(r,l)}get size(){return this.#t.size}#s(){this.#e||(this.#e=!0,typeof this.onSetModified=="function"&&this.onSetModified())}resetModified(){this.#e&&(this.#e=!1,typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new T(this)}get serializable(){if(this.#t.size===0)return null;const c=new Map;for(const[r,l]of this.#t){const h=l instanceof u.AnnotationEditor?l.serialize():l;h&&c.set(r,h)}return c}static getHash(c){if(!c)return"";const r=new P.MurmurHash3_64;for(const[l,h]of c)r.update(`${l}:${JSON.stringify(h)}`);return r.hexdigest()}}t.AnnotationStorage=k;class T extends k{#e=null;constructor(c){super(),this.#e=structuredClone(c.serializable)}get print(){(0,i.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#e}}t.PrintAnnotationStorage=T}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditor=void 0;var i=v(5),u=v(1);class P{#e=this.focusin.bind(this);#t=this.focusout.bind(this);#s=!1;#i=!1;#r=!1;_uiManager=null;#l=P._zIndex++;static _colorManager=new i.ColorManager;static _zIndex=1;constructor(T){this.constructor===P&&(0,u.unreachable)("Cannot initialize AnnotationEditor."),this.parent=T.parent,this.id=T.id,this.width=this.height=null,this.pageIndex=T.parent.pageIndex,this.name=T.name,this.div=null,this._uiManager=T.uiManager;const{rotation:y,rawDims:{pageWidth:c,pageHeight:r,pageX:l,pageY:h}}=this.parent.viewport;this.rotation=y,this.pageDimensions=[c,r],this.pageTranslation=[l,h];const[n,p]=this.parentDimensions;this.x=T.x/n,this.y=T.y/p,this.isAttachedToDOM=!1}static get _defaultLineColor(){return(0,u.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}addCommands(T){this._uiManager.addCommands(T)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#l}setParent(T){T!==null&&(this.pageIndex=T.pageIndex,this.pageDimensions=T.pageDimensions),this.parent=T}focusin(T){this.#s?this.#s=!1:this.parent.setSelected(this)}focusout(T){!this.isAttachedToDOM||T.relatedTarget?.closest(`#${this.id}`)||(T.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}dragstart(T){const y=this.parent.div.getBoundingClientRect();this.startX=T.clientX-y.x,this.startY=T.clientY-y.y,T.dataTransfer.setData("text/plain",this.id),T.dataTransfer.effectAllowed="move"}setAt(T,y,c,r){const[l,h]=this.parentDimensions;[c,r]=this.screenToPageTranslation(c,r),this.x=(T+c)/l,this.y=(y+r)/h,this.div.style.left=`${100*this.x}%`,this.div.style.top=`${100*this.y}%`}translate(T,y){const[c,r]=this.parentDimensions;[T,y]=this.screenToPageTranslation(T,y),this.x+=T/c,this.y+=y/r,this.div.style.left=`${100*this.x}%`,this.div.style.top=`${100*this.y}%`}screenToPageTranslation(T,y){switch(this.parentRotation){case 90:return[y,-T];case 180:return[-T,-y];case 270:return[-y,T];default:return[T,y]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return this._uiManager.viewParameters.rotation}get parentDimensions(){const{realScale:T}=this._uiManager.viewParameters,[y,c]=this.pageDimensions;return[y*T,c*T]}setDims(T,y){const[c,r]=this.parentDimensions;this.div.style.width=`${100*T/c}%`,this.div.style.height=`${100*y/r}%`}fixDims(){const{style:T}=this.div,{height:y,width:c}=T,r=c.endsWith("%"),l=y.endsWith("%");if(r&&l)return;const[h,n]=this.parentDimensions;r||(T.width=`${100*parseFloat(c)/h}%`),l||(T.height=`${100*parseFloat(y)/n}%`)}getInitialTranslation(){return[0,0]}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",this.#e),this.div.addEventListener("focusout",this.#t);const[T,y]=this.getInitialTranslation();return this.translate(T,y),(0,i.bindEvents)(this,this.div,["dragstart","pointerdown"]),this.div}pointerdown(T){const{isMac:y}=u.FeatureTest.platform;if(T.button!==0||T.ctrlKey&&y){T.preventDefault();return}T.ctrlKey&&!y||T.shiftKey||T.metaKey&&y?this.parent.toggleSelected(this):this.parent.setSelected(this),this.#s=!0}getRect(T,y){const c=this.parentScale,[r,l]=this.pageDimensions,[h,n]=this.pageTranslation,p=T/c,m=y/c,f=this.x*r,b=this.y*l,E=this.width*r,I=this.height*l;switch(this.rotation){case 0:return[f+p+h,l-b-m-I+n,f+p+E+h,l-b-m+n];case 90:return[f+m+h,l-b+p+n,f+m+I+h,l-b+p+E+n];case 180:return[f-p-E+h,l-b+m+n,f-p+h,l-b+m+I+n];case 270:return[f-m-I+h,l-b-p-E+n,f-m+h,l-b-p+n];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(T,y){const[c,r,l,h]=T,n=l-c,p=h-r;switch(this.rotation){case 0:return[c,y-h,n,p];case 90:return[c,y-r,p,n];case 180:return[l,y-r,n,p];case 270:return[l,y-h,p,n];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){this.#r=!0}disableEditMode(){this.#r=!1}isInEditMode(){return this.#r}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){this.div?.addEventListener("focusin",this.#e)}serialize(){(0,u.unreachable)("An editor must be serializable")}static deserialize(T,y,c){const r=new this.prototype.constructor({parent:y,id:y.getNextId(),uiManager:c});r.rotation=T.rotation;const[l,h]=r.pageDimensions,[n,p,m,f]=r.getRectInCurrentCoords(T.rect,h);return r.x=n/l,r.y=p/h,r.width=m/l,r.height=f/h,r}remove(){this.div.removeEventListener("focusin",this.#e),this.div.removeEventListener("focusout",this.#t),this.isEmpty()||this.commit(),this.parent.remove(this)}select(){this.div?.classList.add("selectedEditor")}unselect(){this.div?.classList.remove("selectedEditor")}updateParams(T,y){}disableEditing(){}enableEditing(){}get propertiesToUpdate(){return{}}get contentDiv(){return this.div}get isEditing(){return this.#i}set isEditing(T){this.#i=T,T?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null)}}t.AnnotationEditor=P}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardManager=t.CommandManager=t.ColorManager=t.AnnotationEditorUIManager=void 0,t.bindEvents=P,t.opacityToHex=k;var i=v(1),u=v(6);function P(h,n,p){for(const m of p)n.addEventListener(m,h[m].bind(h))}function k(h){return Math.round(Math.min(255,Math.max(1,255*h))).toString(16).padStart(2,"0")}class T{#e=0;getId(){return`${i.AnnotationEditorPrefix}${this.#e++}`}}class y{#e=[];#t=!1;#s;#i=-1;constructor(n=128){this.#s=n}add({cmd:n,undo:p,mustExec:m,type:f=NaN,overwriteIfSameType:b=!1,keepUndo:E=!1}){if(m&&n(),this.#t)return;const I={cmd:n,undo:p,type:f};if(this.#i===-1){this.#e.length>0&&(this.#e.length=0),this.#i=0,this.#e.push(I);return}if(b&&this.#e[this.#i].type===f){E&&(I.undo=this.#e[this.#i].undo),this.#e[this.#i]=I;return}const w=this.#i+1;w===this.#s?this.#e.splice(0,1):(this.#i=w,w<this.#e.length&&this.#e.splice(w)),this.#e.push(I)}undo(){this.#i!==-1&&(this.#t=!0,this.#e[this.#i].undo(),this.#t=!1,this.#i-=1)}redo(){this.#i<this.#e.length-1&&(this.#i+=1,this.#t=!0,this.#e[this.#i].cmd(),this.#t=!1)}hasSomethingToUndo(){return this.#i!==-1}hasSomethingToRedo(){return this.#i<this.#e.length-1}destroy(){this.#e=null}}t.CommandManager=y;class c{constructor(n){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:p}=i.FeatureTest.platform;for(const[m,f]of n)for(const b of m){const E=b.startsWith("mac+");p&&E?(this.callbacks.set(b.slice(4),f),this.allKeys.add(b.split("+").at(-1))):!p&&!E&&(this.callbacks.set(b,f),this.allKeys.add(b.split("+").at(-1)))}}#e(n){n.altKey&&this.buffer.push("alt"),n.ctrlKey&&this.buffer.push("ctrl"),n.metaKey&&this.buffer.push("meta"),n.shiftKey&&this.buffer.push("shift"),this.buffer.push(n.key);const p=this.buffer.join("+");return this.buffer.length=0,p}exec(n,p){if(!this.allKeys.has(p.key))return;const m=this.callbacks.get(this.#e(p));m&&(m.bind(n)(),p.stopPropagation(),p.preventDefault())}}t.KeyboardManager=c;class r{static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){const n=new Map([["CanvasText",null],["Canvas",null]]);return(0,u.getColorValues)(n),(0,i.shadow)(this,"_colors",n)}convert(n){const p=(0,u.getRGB)(n);if(!window.matchMedia("(forced-colors: active)").matches)return p;for(const[m,f]of this._colors)if(f.every((b,E)=>b===p[E]))return r._colorsMapping.get(m);return p}getHexCode(n){const p=this._colors.get(n);return p?i.Util.makeHexColor(...p):n}}t.ColorManager=r;class l{#e=null;#t=new Map;#s=new Map;#i=null;#r=new y;#l=0;#c=null;#n=new Set;#a=null;#f=new T;#d=!1;#h=i.AnnotationEditorType.NONE;#o=new Set;#m=this.copy.bind(this);#E=this.cut.bind(this);#S=this.paste.bind(this);#k=this.keydown.bind(this);#C=this.onEditingAction.bind(this);#y=this.onPageChanging.bind(this);#R=this.onScaleChanging.bind(this);#T=this.onRotationChanging.bind(this);#P={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1};#u=null;static _keyboardManager=new c([[["ctrl+a","mac+meta+a"],l.prototype.selectAll],[["ctrl+z","mac+meta+z"],l.prototype.undo],[["ctrl+y","ctrl+shift+Z","mac+meta+shift+Z"],l.prototype.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete"],l.prototype.delete],[["Escape","mac+Escape"],l.prototype.unselectAll]]);constructor(n,p,m){this.#u=n,this.#a=p,this.#a._on("editingaction",this.#C),this.#a._on("pagechanging",this.#y),this.#a._on("scalechanging",this.#R),this.#a._on("rotationchanging",this.#T),this.#i=m,this.viewParameters={realScale:u.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}destroy(){this.#b(),this.#a._off("editingaction",this.#C),this.#a._off("pagechanging",this.#y),this.#a._off("scalechanging",this.#R),this.#a._off("rotationchanging",this.#T);for(const n of this.#s.values())n.destroy();this.#s.clear(),this.#t.clear(),this.#n.clear(),this.#e=null,this.#o.clear(),this.#r.destroy()}onPageChanging({pageNumber:n}){this.#l=n-1}focusMainContainer(){this.#u.focus()}addShouldRescale(n){this.#n.add(n)}removeShouldRescale(n){this.#n.delete(n)}onScaleChanging({scale:n}){this.commitOrRemove(),this.viewParameters.realScale=n*u.PixelsPerInch.PDF_TO_CSS_UNITS;for(const p of this.#n)p.onScaleChanging()}onRotationChanging({pagesRotation:n}){this.commitOrRemove(),this.viewParameters.rotation=n}addToAnnotationStorage(n){!n.isEmpty()&&this.#i&&!this.#i.has(n.id)&&this.#i.setValue(n.id,n)}#F(){this.#u.addEventListener("keydown",this.#k)}#b(){this.#u.removeEventListener("keydown",this.#k)}#v(){document.addEventListener("copy",this.#m),document.addEventListener("cut",this.#E),document.addEventListener("paste",this.#S)}#_(){document.removeEventListener("copy",this.#m),document.removeEventListener("cut",this.#E),document.removeEventListener("paste",this.#S)}copy(n){if(n.preventDefault(),this.#e&&this.#e.commitOrRemove(),!this.hasSelection)return;const p=[];for(const m of this.#o)m.isEmpty()||p.push(m.serialize());p.length!==0&&n.clipboardData.setData("application/pdfjs",JSON.stringify(p))}cut(n){this.copy(n),this.delete()}paste(n){n.preventDefault();let p=n.clipboardData.getData("application/pdfjs");if(!p)return;try{p=JSON.parse(p)}catch(f){(0,i.warn)(`paste: "${f.message}".`);return}if(!Array.isArray(p))return;this.unselectAll();const m=this.#s.get(this.#l);try{const f=[];for(const I of p){const w=m.deserialize(I);if(!w)return;f.push(w)}const b=()=>{for(const I of f)this.#I(I);this.#w(f)},E=()=>{for(const I of f)I.remove()};this.addCommands({cmd:b,undo:E,mustExec:!0})}catch(f){(0,i.warn)(`paste: "${f.message}".`)}}keydown(n){this.getActive()?.shouldGetKeyboardEvents()||l._keyboardManager.exec(this,n)}onEditingAction(n){["undo","redo","delete","selectAll"].includes(n.name)&&this[n.name]()}#p(n){Object.entries(n).some(([m,f])=>this.#P[m]!==f)&&this.#a.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#P,n)})}#g(n){this.#a.dispatch("annotationeditorparamschanged",{source:this,details:n})}setEditingState(n){n?(this.#F(),this.#v(),this.#p({isEditing:this.#h!==i.AnnotationEditorType.NONE,isEmpty:this.#x(),hasSomethingToUndo:this.#r.hasSomethingToUndo(),hasSomethingToRedo:this.#r.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#b(),this.#_(),this.#p({isEditing:!1}))}registerEditorTypes(n){if(!this.#c){this.#c=n;for(const p of this.#c)this.#g(p.defaultPropertiesToUpdate)}}getId(){return this.#f.getId()}get currentLayer(){return this.#s.get(this.#l)}get currentPageIndex(){return this.#l}addLayer(n){this.#s.set(n.pageIndex,n),this.#d?n.enable():n.disable()}removeLayer(n){this.#s.delete(n.pageIndex)}updateMode(n){if(this.#h=n,n===i.AnnotationEditorType.NONE)this.setEditingState(!1),this.#M();else{this.setEditingState(!0),this.#j();for(const p of this.#s.values())p.updateMode(n)}}updateToolbar(n){n!==this.#h&&this.#a.dispatch("switchannotationeditormode",{source:this,mode:n})}updateParams(n,p){if(this.#c){for(const m of this.#o)m.updateParams(n,p);for(const m of this.#c)m.updateDefaultParams(n,p)}}#j(){if(!this.#d){this.#d=!0;for(const n of this.#s.values())n.enable()}}#M(){if(this.unselectAll(),this.#d){this.#d=!1;for(const n of this.#s.values())n.disable()}}getEditors(n){const p=[];for(const m of this.#t.values())m.pageIndex===n&&p.push(m);return p}getEditor(n){return this.#t.get(n)}addEditor(n){this.#t.set(n.id,n)}removeEditor(n){this.#t.delete(n.id),this.unselect(n),this.#i?.remove(n.id)}#I(n){const p=this.#s.get(n.pageIndex);p?p.addOrRebuild(n):this.addEditor(n)}setActiveEditor(n){this.#e!==n&&(this.#e=n,n&&this.#g(n.propertiesToUpdate))}toggleSelected(n){if(this.#o.has(n)){this.#o.delete(n),n.unselect(),this.#p({hasSelectedEditor:this.hasSelection});return}this.#o.add(n),n.select(),this.#g(n.propertiesToUpdate),this.#p({hasSelectedEditor:!0})}setSelected(n){for(const p of this.#o)p!==n&&p.unselect();this.#o.clear(),this.#o.add(n),n.select(),this.#g(n.propertiesToUpdate),this.#p({hasSelectedEditor:!0})}isSelected(n){return this.#o.has(n)}unselect(n){n.unselect(),this.#o.delete(n),this.#p({hasSelectedEditor:this.hasSelection})}get hasSelection(){return this.#o.size!==0}undo(){this.#r.undo(),this.#p({hasSomethingToUndo:this.#r.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#x()})}redo(){this.#r.redo(),this.#p({hasSomethingToUndo:!0,hasSomethingToRedo:this.#r.hasSomethingToRedo(),isEmpty:this.#x()})}addCommands(n){this.#r.add(n),this.#p({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#x()})}#x(){if(this.#t.size===0)return!0;if(this.#t.size===1)for(const n of this.#t.values())return n.isEmpty();return!1}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const n=[...this.#o],p=()=>{for(const f of n)f.remove()},m=()=>{for(const f of n)this.#I(f)};this.addCommands({cmd:p,undo:m,mustExec:!0})}commitOrRemove(){this.#e?.commitOrRemove()}#w(n){this.#o.clear();for(const p of n)p.isEmpty()||(this.#o.add(p),p.select());this.#p({hasSelectedEditor:!0})}selectAll(){for(const n of this.#o)n.commit();this.#w(this.#t.values())}unselectAll(){if(this.#e){this.#e.commitOrRemove();return}if(this.#o.size!==0){for(const n of this.#o)n.unselect();this.#o.clear(),this.#p({hasSelectedEditor:!1})}}isActive(n){return this.#e===n}getActive(){return this.#e}getMode(){return this.#h}}t.AnnotationEditorUIManager=l}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=t.AnnotationPrefix=void 0,t.deprecated=g,t.getColorValues=q,t.getCurrentTransform=J,t.getCurrentTransformInverse=se,t.getFilenameFromUrl=b,t.getPdfFilenameFromUrl=E,t.getRGB=B,t.getXfaPageViewport=D,t.isDataScheme=m,t.isPdfFile=f,t.isValidFetchUrl=w,t.loadScript=a,t.setLayerDimensions=Q;var i=v(7),u=v(1);const P="http://www.w3.org/2000/svg",k="pdfjs_internal_id_";t.AnnotationPrefix=k;class T{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF}t.PixelsPerInch=T;class y extends i.BaseCanvasFactory{constructor({ownerDocument:U=globalThis.document}={}){super(),this._document=U}_createCanvas(U,W){const S=this._document.createElement("canvas");return S.width=U,S.height=W,S}}t.DOMCanvasFactory=y;async function c(H,U=!1){if(w(H,document.baseURI)){const W=await fetch(H);if(!W.ok)throw new Error(W.statusText);return U?new Uint8Array(await W.arrayBuffer()):(0,u.stringToBytes)(await W.text())}return new Promise((W,S)=>{const d=new XMLHttpRequest;d.open("GET",H,!0),U&&(d.responseType="arraybuffer"),d.onreadystatechange=()=>{if(d.readyState===XMLHttpRequest.DONE){if(d.status===200||d.status===0){let o;if(U&&d.response?o=new Uint8Array(d.response):!U&&d.responseText&&(o=(0,u.stringToBytes)(d.responseText)),o){W(o);return}}S(new Error(d.statusText))}},d.send(null)})}class r extends i.BaseCMapReaderFactory{_fetchData(U,W){return c(U,this.isCompressed).then(S=>({cMapData:S,compressionType:W}))}}t.DOMCMapReaderFactory=r;class l extends i.BaseStandardFontDataFactory{_fetchData(U){return c(U,!0)}}t.DOMStandardFontDataFactory=l;class h extends i.BaseSVGFactory{_createSVG(U){return document.createElementNS(P,U)}}t.DOMSVGFactory=h;class n{constructor({viewBox:U,scale:W,rotation:S,offsetX:d=0,offsetY:o=0,dontFlip:A=!1}){this.viewBox=U,this.scale=W,this.rotation=S,this.offsetX=d,this.offsetY=o;const M=(U[2]+U[0])/2,j=(U[3]+U[1])/2;let e,s,x,F;switch(S%=360,S<0&&(S+=360),S){case 180:e=-1,s=0,x=0,F=1;break;case 90:e=0,s=1,x=1,F=0;break;case 270:e=0,s=-1,x=-1,F=0;break;case 0:e=1,s=0,x=0,F=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}A&&(x=-x,F=-F);let C,L,O,V;e===0?(C=Math.abs(j-U[1])*W+d,L=Math.abs(M-U[0])*W+o,O=(U[3]-U[1])*W,V=(U[2]-U[0])*W):(C=Math.abs(M-U[0])*W+d,L=Math.abs(j-U[1])*W+o,O=(U[2]-U[0])*W,V=(U[3]-U[1])*W),this.transform=[e*W,s*W,x*W,F*W,C-e*W*M-x*W*j,L-s*W*M-F*W*j],this.width=O,this.height=V}get rawDims(){const{viewBox:U}=this;return(0,u.shadow)(this,"rawDims",{pageWidth:U[2]-U[0],pageHeight:U[3]-U[1],pageX:U[0],pageY:U[1]})}clone({scale:U=this.scale,rotation:W=this.rotation,offsetX:S=this.offsetX,offsetY:d=this.offsetY,dontFlip:o=!1}={}){return new n({viewBox:this.viewBox.slice(),scale:U,rotation:W,offsetX:S,offsetY:d,dontFlip:o})}convertToViewportPoint(U,W){return u.Util.applyTransform([U,W],this.transform)}convertToViewportRectangle(U){const W=u.Util.applyTransform([U[0],U[1]],this.transform),S=u.Util.applyTransform([U[2],U[3]],this.transform);return[W[0],W[1],S[0],S[1]]}convertToPdfPoint(U,W){return u.Util.applyInverseTransform([U,W],this.transform)}}t.PageViewport=n;class p extends u.BaseException{constructor(U,W,S=0){super(U,"RenderingCancelledException"),this.type=W,this.extraDelay=S}}t.RenderingCancelledException=p;function m(H){const U=H.length;let W=0;for(;W<U&&H[W].trim()==="";)W++;return H.substring(W,W+5).toLowerCase()==="data:"}function f(H){return typeof H=="string"&&/\.pdf$/i.test(H)}function b(H,U=!1){return U||([H]=H.split(/[#?]/,1)),H.substring(H.lastIndexOf("/")+1)}function E(H,U="document.pdf"){if(typeof H!="string")return U;if(m(H))return(0,u.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),U;const W=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,S=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,d=W.exec(H);let o=S.exec(d[1])||S.exec(d[2])||S.exec(d[3]);if(o&&(o=o[0],o.includes("%")))try{o=S.exec(decodeURIComponent(o))[0]}catch{}return o||U}class I{started=Object.create(null);times=[];time(U){U in this.started&&(0,u.warn)(`Timer is already running for ${U}`),this.started[U]=Date.now()}timeEnd(U){U in this.started||(0,u.warn)(`Timer has not been started for ${U}`),this.times.push({name:U,start:this.started[U],end:Date.now()}),delete this.started[U]}toString(){const U=[];let W=0;for(const{name:S}of this.times)W=Math.max(S.length,W);for(const{name:S,start:d,end:o}of this.times)U.push(`${S.padEnd(W)} ${o-d}ms
16
- `);return U.join("")}}t.StatTimer=I;function w(H,U){try{const{protocol:W}=U?new URL(H,U):new URL(H);return W==="http:"||W==="https:"}catch{return!1}}function a(H,U=!1){return new Promise((W,S)=>{const d=document.createElement("script");d.src=H,d.onload=function(o){U&&d.remove(),W(o)},d.onerror=function(){S(new Error(`Cannot load script at: ${d.src}`))},(document.head||document.documentElement).append(d)})}function g(H){console.log("Deprecated API usage: "+H)}let R;class ${static toDateObject(U){if(!U||typeof U!="string")return null;R||(R=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const W=R.exec(U);if(!W)return null;const S=parseInt(W[1],10);let d=parseInt(W[2],10);d=d>=1&&d<=12?d-1:0;let o=parseInt(W[3],10);o=o>=1&&o<=31?o:1;let A=parseInt(W[4],10);A=A>=0&&A<=23?A:0;let M=parseInt(W[5],10);M=M>=0&&M<=59?M:0;let j=parseInt(W[6],10);j=j>=0&&j<=59?j:0;const e=W[7]||"Z";let s=parseInt(W[8],10);s=s>=0&&s<=23?s:0;let x=parseInt(W[9],10)||0;return x=x>=0&&x<=59?x:0,e==="-"?(A+=s,M+=x):e==="+"&&(A-=s,M-=x),new Date(Date.UTC(S,d,o,A,M,j))}}t.PDFDateString=$;function D(H,{scale:U=1,rotation:W=0}){const{width:S,height:d}=H.attributes.style,o=[0,0,parseInt(S),parseInt(d)];return new n({viewBox:o,scale:U,rotation:W})}function B(H){if(H.startsWith("#")){const U=parseInt(H.slice(1),16);return[(U&16711680)>>16,(U&65280)>>8,U&255]}return H.startsWith("rgb(")?H.slice(4,-1).split(",").map(U=>parseInt(U)):H.startsWith("rgba(")?H.slice(5,-1).split(",").map(U=>parseInt(U)).slice(0,3):((0,u.warn)(`Not a valid color format: "${H}"`),[0,0,0])}function q(H){const U=document.createElement("span");U.style.visibility="hidden",document.body.append(U);for(const W of H.keys()){U.style.color=W;const S=window.getComputedStyle(U).color;H.set(W,B(S))}U.remove()}function J(H){const{a:U,b:W,c:S,d,e:o,f:A}=H.getTransform();return[U,W,S,d,o,A]}function se(H){const{a:U,b:W,c:S,d,e:o,f:A}=H.getTransform().invertSelf();return[U,W,S,d,o,A]}function Q(H,U,W=!1,S=!0){if(U instanceof n){const{pageWidth:d,pageHeight:o}=U.rawDims,{style:A}=H,M=`calc(var(--scale-factor) * ${d}px)`,j=`calc(var(--scale-factor) * ${o}px)`;!W||U.rotation%180===0?(A.width=M,A.height=j):(A.width=j,A.height=M)}S&&H.setAttribute("data-main-rotation",U.rotation)}}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0;var i=v(1);class u{constructor(){this.constructor===u&&(0,i.unreachable)("Cannot initialize BaseCanvasFactory.")}create(c,r){if(c<=0||r<=0)throw new Error("Invalid canvas size");const l=this._createCanvas(c,r);return{canvas:l,context:l.getContext("2d")}}reset(c,r,l){if(!c.canvas)throw new Error("Canvas is not specified");if(r<=0||l<=0)throw new Error("Invalid canvas size");c.canvas.width=r,c.canvas.height=l}destroy(c){if(!c.canvas)throw new Error("Canvas is not specified");c.canvas.width=0,c.canvas.height=0,c.canvas=null,c.context=null}_createCanvas(c,r){(0,i.unreachable)("Abstract method `_createCanvas` called.")}}t.BaseCanvasFactory=u;class P{constructor({baseUrl:c=null,isCompressed:r=!0}){this.constructor===P&&(0,i.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=c,this.isCompressed=r}async fetch({name:c}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!c)throw new Error("CMap name must be specified.");const r=this.baseUrl+c+(this.isCompressed?".bcmap":""),l=this.isCompressed?i.CMapCompressionType.BINARY:i.CMapCompressionType.NONE;return this._fetchData(r,l).catch(h=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${r}`)})}_fetchData(c,r){(0,i.unreachable)("Abstract method `_fetchData` called.")}}t.BaseCMapReaderFactory=P;class k{constructor({baseUrl:c=null}){this.constructor===k&&(0,i.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=c}async fetch({filename:c}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!c)throw new Error("Font filename must be specified.");const r=`${this.baseUrl}${c}`;return this._fetchData(r).catch(l=>{throw new Error(`Unable to load font data at: ${r}`)})}_fetchData(c){(0,i.unreachable)("Abstract method `_fetchData` called.")}}t.BaseStandardFontDataFactory=k;class T{constructor(){this.constructor===T&&(0,i.unreachable)("Cannot initialize BaseSVGFactory.")}create(c,r,l=!1){if(c<=0||r<=0)throw new Error("Invalid SVG dimensions");const h=this._createSVG("svg:svg");return h.setAttribute("version","1.1"),l||(h.setAttribute("width",`${c}px`),h.setAttribute("height",`${r}px`)),h.setAttribute("preserveAspectRatio","none"),h.setAttribute("viewBox",`0 0 ${c} ${r}`),h}createElement(c){if(typeof c!="string")throw new Error("Invalid SVG element type");return this._createSVG(c)}_createSVG(c){(0,i.unreachable)("Abstract method `_createSVG` called.")}}t.BaseSVGFactory=T}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var i=v(1);const u=3285377520,P=4294901760,k=65535;class T{constructor(c){this.h1=c?c&4294967295:u,this.h2=c?c&4294967295:u}update(c){let r,l;if(typeof c=="string"){r=new Uint8Array(c.length*2),l=0;for(let R=0,$=c.length;R<$;R++){const D=c.charCodeAt(R);D<=255?r[l++]=D:(r[l++]=D>>>8,r[l++]=D&255)}}else if((0,i.isArrayBuffer)(c))r=c.slice(),l=r.byteLength;else throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");const h=l>>2,n=l-h*4,p=new Uint32Array(r.buffer,0,h);let m=0,f=0,b=this.h1,E=this.h2;const I=3432918353,w=461845907,a=I&k,g=w&k;for(let R=0;R<h;R++)R&1?(m=p[R],m=m*I&P|m*a&k,m=m<<15|m>>>17,m=m*w&P|m*g&k,b^=m,b=b<<13|b>>>19,b=b*5+3864292196):(f=p[R],f=f*I&P|f*a&k,f=f<<15|f>>>17,f=f*w&P|f*g&k,E^=f,E=E<<13|E>>>19,E=E*5+3864292196);switch(m=0,n){case 3:m^=r[h*4+2]<<16;case 2:m^=r[h*4+1]<<8;case 1:m^=r[h*4],m=m*I&P|m*a&k,m=m<<15|m>>>17,m=m*w&P|m*g&k,h&1?b^=m:E^=m}this.h1=b,this.h2=E}hexdigest(){let c=this.h1,r=this.h2;return c^=r>>>1,c=c*3981806797&P|c*36045&k,r=r*4283543511&P|((r<<16|c>>>16)*2950163797&P)>>>16,c^=r>>>1,c=c*444984403&P|c*60499&k,r=r*3301882366&P|((r<<16|c>>>16)*3120437893&P)>>>16,c^=r>>>1,(c>>>0).toString(16).padStart(8,"0")+(r>>>0).toString(16).padStart(8,"0")}}t.MurmurHash3_64=T}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var i=v(1),u=v(10);class P{constructor({onUnsupportedFeature:y,ownerDocument:c=globalThis.document,styleElement:r=null}){this._onUnsupportedFeature=y,this._document=c,this.nativeFontFaces=[],this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(y){this.nativeFontFaces.push(y),this._document.fonts.add(y)}insertRule(y){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const c=this.styleElement.sheet;c.insertRule(y,c.cssRules.length)}clear(){for(const y of this.nativeFontFaces)this._document.fonts.delete(y);this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async bind(y){if(y.attached||y.missingFile)return;if(y.attached=!0,this.isFontLoadingAPISupported){const r=y.createNativeFontFace();if(r){this.addNativeFontFace(r);try{await r.loaded}catch(l){throw this._onUnsupportedFeature({featureId:i.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,i.warn)(`Failed to load font '${r.family}': '${l}'.`),y.disableFontFace=!0,l}}return}const c=y.createFontFaceRule();if(c){if(this.insertRule(c),this.isSyncFontLoadingSupported)return;await new Promise(r=>{const l=this._queueLoadingCallback(r);this._prepareFontLoadEvent(y,l)})}}get isFontLoadingAPISupported(){const y=!!this._document?.fonts;return(0,i.shadow)(this,"isFontLoadingAPISupported",y)}get isSyncFontLoadingSupported(){let y=!1;return(u.isNodeJS||typeof navigator<"u"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(y=!0),(0,i.shadow)(this,"isSyncFontLoadingSupported",y)}_queueLoadingCallback(y){function c(){for((0,i.assert)(!l.done,"completeRequest() cannot be called twice."),l.done=!0;r.length>0&&r[0].done;){const h=r.shift();setTimeout(h.callback,0)}}const{loadingRequests:r}=this,l={done:!1,complete:c,callback:y};return r.push(l),l}get _loadTestFont(){const y=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,i.shadow)(this,"_loadTestFont",y)}_prepareFontLoadEvent(y,c){function r(q,J){return q.charCodeAt(J)<<24|q.charCodeAt(J+1)<<16|q.charCodeAt(J+2)<<8|q.charCodeAt(J+3)&255}function l(q,J,se,Q){const H=q.substring(0,J),U=q.substring(J+se);return H+Q+U}let h,n;const p=this._document.createElement("canvas");p.width=1,p.height=1;const m=p.getContext("2d");let f=0;function b(q,J){if(++f>30){(0,i.warn)("Load test font never loaded."),J();return}if(m.font="30px "+q,m.fillText(".",0,20),m.getImageData(0,0,1,1).data[3]>0){J();return}setTimeout(b.bind(null,q,J))}const E=`lt${Date.now()}${this.loadTestFontId++}`;let I=this._loadTestFont;I=l(I,976,E.length,E);const a=16,g=1482184792;let R=r(I,a);for(h=0,n=E.length-3;h<n;h+=4)R=R-g+r(E,h)|0;h<E.length&&(R=R-g+r(E+"XXX",h)|0),I=l(I,a,4,(0,i.string32)(R));const $=`url(data:font/opentype;base64,${btoa(I)});`,D=`@font-face {font-family:"${E}";src:${$}}`;this.insertRule(D);const B=this._document.createElement("div");B.style.visibility="hidden",B.style.width=B.style.height="10px",B.style.position="absolute",B.style.top=B.style.left="0px";for(const q of[y.loadedName,E]){const J=this._document.createElement("span");J.textContent="Hi",J.style.fontFamily=q,B.append(J)}this._document.body.append(B),b(E,()=>{B.remove(),c.complete()})}}t.FontLoader=P;class k{constructor(y,{isEvalSupported:c=!0,disableFontFace:r=!1,ignoreErrors:l=!1,onUnsupportedFeature:h,fontRegistry:n=null}){this.compiledGlyphs=Object.create(null);for(const p in y)this[p]=y[p];this.isEvalSupported=c!==!1,this.disableFontFace=r===!0,this.ignoreErrors=l===!0,this._onUnsupportedFeature=h,this.fontRegistry=n}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let y;if(!this.cssFontInfo)y=new FontFace(this.loadedName,this.data,{});else{const c={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(c.style=`oblique ${this.cssFontInfo.italicAngle}deg`),y=new FontFace(this.cssFontInfo.fontFamily,this.data,c)}return this.fontRegistry?.registerFont(this),y}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const y=(0,i.bytesToString)(this.data),c=`url(data:${this.mimetype};base64,${btoa(y)});`;let r;if(!this.cssFontInfo)r=`@font-face {font-family:"${this.loadedName}";src:${c}}`;else{let l=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(l+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),r=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${l}src:${c}}`}return this.fontRegistry?.registerFont(this,c),r}getPathGenerator(y,c){if(this.compiledGlyphs[c]!==void 0)return this.compiledGlyphs[c];let r;try{r=y.get(this.loadedName+"_path_"+c)}catch(l){if(!this.ignoreErrors)throw l;return this._onUnsupportedFeature({featureId:i.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,i.warn)(`getPathGenerator - ignoring character: "${l}".`),this.compiledGlyphs[c]=function(h,n){}}if(this.isEvalSupported&&i.FeatureTest.isEvalSupported){const l=[];for(const h of r){const n=h.args!==void 0?h.args.join(","):"";l.push("c.",h.cmd,"(",n,`);
17
- `)}return this.compiledGlyphs[c]=new Function("c","size",l.join(""))}return this.compiledGlyphs[c]=function(l,h){for(const n of r)n.cmd==="scale"&&(n.args=[h,-h]),l[n.cmd].apply(l,n.args)}}}t.FontFaceObject=k}),((_,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;const v=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");t.isNodeJS=v}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var i=v(1),u=v(6),P=v(12),k=v(13);const T=16,y=100,c=4096,r=15,l=10,h=1e3,n=16;function p(S,d){if(S._removeMirroring)throw new Error("Context is already forwarding operations.");S.__originalSave=S.save,S.__originalRestore=S.restore,S.__originalRotate=S.rotate,S.__originalScale=S.scale,S.__originalTranslate=S.translate,S.__originalTransform=S.transform,S.__originalSetTransform=S.setTransform,S.__originalResetTransform=S.resetTransform,S.__originalClip=S.clip,S.__originalMoveTo=S.moveTo,S.__originalLineTo=S.lineTo,S.__originalBezierCurveTo=S.bezierCurveTo,S.__originalRect=S.rect,S.__originalClosePath=S.closePath,S.__originalBeginPath=S.beginPath,S._removeMirroring=()=>{S.save=S.__originalSave,S.restore=S.__originalRestore,S.rotate=S.__originalRotate,S.scale=S.__originalScale,S.translate=S.__originalTranslate,S.transform=S.__originalTransform,S.setTransform=S.__originalSetTransform,S.resetTransform=S.__originalResetTransform,S.clip=S.__originalClip,S.moveTo=S.__originalMoveTo,S.lineTo=S.__originalLineTo,S.bezierCurveTo=S.__originalBezierCurveTo,S.rect=S.__originalRect,S.closePath=S.__originalClosePath,S.beginPath=S.__originalBeginPath,delete S._removeMirroring},S.save=function(){d.save(),this.__originalSave()},S.restore=function(){d.restore(),this.__originalRestore()},S.translate=function(A,M){d.translate(A,M),this.__originalTranslate(A,M)},S.scale=function(A,M){d.scale(A,M),this.__originalScale(A,M)},S.transform=function(A,M,j,e,s,x){d.transform(A,M,j,e,s,x),this.__originalTransform(A,M,j,e,s,x)},S.setTransform=function(A,M,j,e,s,x){d.setTransform(A,M,j,e,s,x),this.__originalSetTransform(A,M,j,e,s,x)},S.resetTransform=function(){d.resetTransform(),this.__originalResetTransform()},S.rotate=function(A){d.rotate(A),this.__originalRotate(A)},S.clip=function(A){d.clip(A),this.__originalClip(A)},S.moveTo=function(o,A){d.moveTo(o,A),this.__originalMoveTo(o,A)},S.lineTo=function(o,A){d.lineTo(o,A),this.__originalLineTo(o,A)},S.bezierCurveTo=function(o,A,M,j,e,s){d.bezierCurveTo(o,A,M,j,e,s),this.__originalBezierCurveTo(o,A,M,j,e,s)},S.rect=function(o,A,M,j){d.rect(o,A,M,j),this.__originalRect(o,A,M,j)},S.closePath=function(){d.closePath(),this.__originalClosePath()},S.beginPath=function(){d.beginPath(),this.__originalBeginPath()}}class m{constructor(d){this.canvasFactory=d,this.cache=Object.create(null)}getCanvas(d,o,A){let M;return this.cache[d]!==void 0?(M=this.cache[d],this.canvasFactory.reset(M,o,A)):(M=this.canvasFactory.create(o,A),this.cache[d]=M),M}delete(d){delete this.cache[d]}clear(){for(const d in this.cache){const o=this.cache[d];this.canvasFactory.destroy(o),delete this.cache[d]}}}function f(S,d,o,A,M,j,e,s,x,F){const[C,L,O,V,G,X]=(0,u.getCurrentTransform)(S);if(L===0&&O===0){const ee=e*C+G,re=Math.round(ee),ae=s*V+X,ce=Math.round(ae),ie=(e+x)*C+G,ge=Math.abs(Math.round(ie)-re)||1,me=(s+F)*V+X,de=Math.abs(Math.round(me)-ce)||1;return S.setTransform(Math.sign(C),0,0,Math.sign(V),re,ce),S.drawImage(d,o,A,M,j,0,0,ge,de),S.setTransform(C,L,O,V,G,X),[ge,de]}if(C===0&&V===0){const ee=s*O+G,re=Math.round(ee),ae=e*L+X,ce=Math.round(ae),ie=(s+F)*O+G,ge=Math.abs(Math.round(ie)-re)||1,me=(e+x)*L+X,de=Math.abs(Math.round(me)-ce)||1;return S.setTransform(0,Math.sign(L),Math.sign(O),0,re,ce),S.drawImage(d,o,A,M,j,0,0,de,ge),S.setTransform(C,L,O,V,G,X),[de,ge]}S.drawImage(d,o,A,M,j,e,s,x,F);const te=Math.hypot(C,L),Y=Math.hypot(O,V);return[te*x,Y*F]}function b(S){const{width:d,height:o}=S;if(d>h||o>h)return null;const A=1e3,M=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),j=d+1;let e=new Uint8Array(j*(o+1)),s,x,F;const C=d+7&-8;let L=new Uint8Array(C*o),O=0;for(const Y of S.data){let ee=128;for(;ee>0;)L[O++]=Y&ee?0:255,ee>>=1}let V=0;for(O=0,L[O]!==0&&(e[0]=1,++V),x=1;x<d;x++)L[O]!==L[O+1]&&(e[x]=L[O]?2:1,++V),O++;for(L[O]!==0&&(e[x]=2,++V),s=1;s<o;s++){O=s*C,F=s*j,L[O-C]!==L[O]&&(e[F]=L[O]?1:8,++V);let Y=(L[O]?4:0)+(L[O-C]?8:0);for(x=1;x<d;x++)Y=(Y>>2)+(L[O+1]?4:0)+(L[O-C+1]?8:0),M[Y]&&(e[F+x]=M[Y],++V),O++;if(L[O-C]!==L[O]&&(e[F+x]=L[O]?2:4,++V),V>A)return null}for(O=C*(o-1),F=s*j,L[O]!==0&&(e[F]=8,++V),x=1;x<d;x++)L[O]!==L[O+1]&&(e[F+x]=L[O]?4:8,++V),O++;if(L[O]!==0&&(e[F+x]=4,++V),V>A)return null;const G=new Int32Array([0,j,-1,0,-j,0,0,0,1]),X=new Path2D;for(s=0;V&&s<=o;s++){let Y=s*j;const ee=Y+d;for(;Y<ee&&!e[Y];)Y++;if(Y===ee)continue;X.moveTo(Y%j,s);const re=Y;let ae=e[Y];do{const ce=G[ae];do Y+=ce;while(!e[Y]);const ie=e[Y];ie!==5&&ie!==10?(ae=ie,e[Y]=0):(ae=ie&51*ae>>4,e[Y]&=ae>>2|ae<<2),X.lineTo(Y%j,Y/j|0),e[Y]||--V}while(re!==Y);--s}return L=null,e=null,function(Y){Y.save(),Y.scale(1/d,-1/o),Y.translate(0,-o),Y.fill(X),Y.beginPath(),Y.restore()}}class E{constructor(d,o){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=i.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=i.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=i.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps=null,this.startNewPathAndClipBox([0,0,d,o])}clone(){const d=Object.create(this);return d.clipBox=this.clipBox.slice(),d}setCurrentPoint(d,o){this.x=d,this.y=o}updatePathMinMax(d,o,A){[o,A]=i.Util.applyTransform([o,A],d),this.minX=Math.min(this.minX,o),this.minY=Math.min(this.minY,A),this.maxX=Math.max(this.maxX,o),this.maxY=Math.max(this.maxY,A)}updateRectMinMax(d,o){const A=i.Util.applyTransform(o,d),M=i.Util.applyTransform(o.slice(2),d);this.minX=Math.min(this.minX,A[0],M[0]),this.minY=Math.min(this.minY,A[1],M[1]),this.maxX=Math.max(this.maxX,A[0],M[0]),this.maxY=Math.max(this.maxY,A[1],M[1])}updateScalingPathMinMax(d,o){i.Util.scaleMinMax(d,o),this.minX=Math.min(this.minX,o[0]),this.maxX=Math.max(this.maxX,o[1]),this.minY=Math.min(this.minY,o[2]),this.maxY=Math.max(this.maxY,o[3])}updateCurvePathMinMax(d,o,A,M,j,e,s,x,F,C){const L=i.Util.bezierBoundingBox(o,A,M,j,e,s,x,F);if(C){C[0]=Math.min(C[0],L[0],L[2]),C[1]=Math.max(C[1],L[0],L[2]),C[2]=Math.min(C[2],L[1],L[3]),C[3]=Math.max(C[3],L[1],L[3]);return}this.updateRectMinMax(d,L)}getPathBoundingBox(d=P.PathType.FILL,o=null){const A=[this.minX,this.minY,this.maxX,this.maxY];if(d===P.PathType.STROKE){o||(0,i.unreachable)("Stroke bounding box must include transform.");const M=i.Util.singularValueDecompose2dScale(o),j=M[0]*this.lineWidth/2,e=M[1]*this.lineWidth/2;A[0]-=j,A[1]-=e,A[2]+=j,A[3]+=e}return A}updateClipFromPath(){const d=i.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(d||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(d){this.clipBox=d,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(d=P.PathType.FILL,o=null){return i.Util.intersect(this.clipBox,this.getPathBoundingBox(d,o))}}function I(S,d,o=null){if(typeof ImageData<"u"&&d instanceof ImageData){S.putImageData(d,0,0);return}const A=d.height,M=d.width,j=A%n,e=(A-j)/n,s=j===0?e:e+1,x=S.createImageData(M,n);let F=0,C;const L=d.data,O=x.data;let V,G,X,te,Y,ee,re,ae;if(o)switch(o.length){case 1:Y=o[0],ee=o[0],re=o[0],ae=o[0];break;case 4:Y=o[0],ee=o[1],re=o[2],ae=o[3];break}if(d.kind===i.ImageKind.GRAYSCALE_1BPP){const ce=L.byteLength,ie=new Uint32Array(O.buffer,0,O.byteLength>>2),ge=ie.length,me=M+7>>3;let de=4294967295,xe=i.FeatureTest.isLittleEndian?4278190080:255;for(ae&&ae[0]===255&&ae[255]===0&&([de,xe]=[xe,de]),V=0;V<s;V++){for(X=V<e?n:j,C=0,G=0;G<X;G++){const Te=ce-F;let Fe=0;const Ce=Te>me?M:Te*8-7,$e=Ce&-8;let ve=0,ye=0;for(;Fe<$e;Fe+=8)ye=L[F++],ie[C++]=ye&128?de:xe,ie[C++]=ye&64?de:xe,ie[C++]=ye&32?de:xe,ie[C++]=ye&16?de:xe,ie[C++]=ye&8?de:xe,ie[C++]=ye&4?de:xe,ie[C++]=ye&2?de:xe,ie[C++]=ye&1?de:xe;for(;Fe<Ce;Fe++)ve===0&&(ye=L[F++],ve=128),ie[C++]=ye&ve?de:xe,ve>>=1}for(;C<ge;)ie[C++]=0;S.putImageData(x,0,V*n)}}else if(d.kind===i.ImageKind.RGBA_32BPP){const ce=!!(Y||ee||re);for(G=0,te=M*n*4,V=0;V<e;V++){if(O.set(L.subarray(F,F+te)),F+=te,ce)for(let ie=0;ie<te;ie+=4)Y&&(O[ie+0]=Y[O[ie+0]]),ee&&(O[ie+1]=ee[O[ie+1]]),re&&(O[ie+2]=re[O[ie+2]]);S.putImageData(x,0,G),G+=n}if(V<s){if(te=M*j*4,O.set(L.subarray(F,F+te)),ce)for(let ie=0;ie<te;ie+=4)Y&&(O[ie+0]=Y[O[ie+0]]),ee&&(O[ie+1]=ee[O[ie+1]]),re&&(O[ie+2]=re[O[ie+2]]);S.putImageData(x,0,G)}}else if(d.kind===i.ImageKind.RGB_24BPP){const ce=!!(Y||ee||re);for(X=n,te=M*X,V=0;V<s;V++){for(V>=e&&(X=j,te=M*X),C=0,G=te;G--;)O[C++]=L[F++],O[C++]=L[F++],O[C++]=L[F++],O[C++]=255;if(ce)for(let ie=0;ie<C;ie+=4)Y&&(O[ie+0]=Y[O[ie+0]]),ee&&(O[ie+1]=ee[O[ie+1]]),re&&(O[ie+2]=re[O[ie+2]]);S.putImageData(x,0,V*n)}}else throw new Error(`bad image kind: ${d.kind}`)}function w(S,d){if(d.bitmap){S.drawImage(d.bitmap,0,0);return}const o=d.height,A=d.width,M=o%n,j=(o-M)/n,e=M===0?j:j+1,s=S.createImageData(A,n);let x=0;const F=d.data,C=s.data;for(let L=0;L<e;L++){const O=L<j?n:M;({srcPos:x}=(0,k.applyMaskImageData)({src:F,srcPos:x,dest:C,width:A,height:O})),S.putImageData(s,0,L*n)}}function a(S,d){const o=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"];for(const A of o)S[A]!==void 0&&(d[A]=S[A]);S.setLineDash!==void 0&&(d.setLineDash(S.getLineDash()),d.lineDashOffset=S.lineDashOffset)}function g(S,d){S.strokeStyle=S.fillStyle=d||"#000000",S.fillRule="nonzero",S.globalAlpha=1,S.lineWidth=1,S.lineCap="butt",S.lineJoin="miter",S.miterLimit=10,S.globalCompositeOperation="source-over",S.font="10px sans-serif",S.setLineDash!==void 0&&(S.setLineDash([]),S.lineDashOffset=0)}function R(S,d,o,A){const M=S.length;for(let j=3;j<M;j+=4){const e=S[j];if(e===0)S[j-3]=d,S[j-2]=o,S[j-1]=A;else if(e<255){const s=255-e;S[j-3]=S[j-3]*e+d*s>>8,S[j-2]=S[j-2]*e+o*s>>8,S[j-1]=S[j-1]*e+A*s>>8}}}function $(S,d,o){const A=S.length,M=1/255;for(let j=3;j<A;j+=4){const e=o?o[S[j]]:S[j];d[j]=d[j]*e*M|0}}function D(S,d,o){const A=S.length;for(let M=3;M<A;M+=4){const j=S[M-3]*77+S[M-2]*152+S[M-1]*28;d[M]=o?d[M]*o[j>>8]>>8:d[M]*j>>16}}function B(S,d,o,A,M,j,e,s,x,F,C){const L=!!j,O=L?j[0]:0,V=L?j[1]:0,G=L?j[2]:0;let X;M==="Luminosity"?X=D:X=$;const Y=Math.min(A,Math.ceil(1048576/o));for(let ee=0;ee<A;ee+=Y){const re=Math.min(Y,A-ee),ae=S.getImageData(s-F,ee+(x-C),o,re),ce=d.getImageData(s,ee+x,o,re);L&&R(ae.data,O,V,G),X(ae.data,ce.data,e),d.putImageData(ce,s,ee+x)}}function q(S,d,o,A){const M=A[0],j=A[1],e=A[2]-M,s=A[3]-j;e===0||s===0||(B(d.context,o,e,s,d.subtype,d.backdrop,d.transferMap,M,j,d.offsetX,d.offsetY),S.save(),S.globalAlpha=1,S.globalCompositeOperation="source-over",S.setTransform(1,0,0,1,0,0),S.drawImage(o.canvas,0,0),S.restore())}function J(S,d){const o=i.Util.singularValueDecompose2dScale(S);o[0]=Math.fround(o[0]),o[1]=Math.fround(o[1]);const A=Math.fround((globalThis.devicePixelRatio||1)*u.PixelsPerInch.PDF_TO_CSS_UNITS);return d!==void 0?d:o[0]<=A||o[1]<=A}const se=["butt","round","square"],Q=["miter","round","bevel"],H={},U={};class W{constructor(d,o,A,M,{optionalContentConfig:j,markedContentStack:e=null},s,x){this.ctx=d,this.current=new E(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=o,this.objs=A,this.canvasFactory=M,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=e||[],this.optionalContentConfig=j,this.cachedCanvases=new m(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=s,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.backgroundColor=x?.background||null,this.foregroundColor=x?.foreground||null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(d,o=null){return typeof d=="string"?d.startsWith("g_")?this.commonObjs.get(d):this.objs.get(d):o}beginDrawing({transform:d,viewport:o,transparency:A=!1,background:M=null}){const j=this.ctx.canvas.width,e=this.ctx.canvas.height,s=M||"#ffffff";if(this.ctx.save(),this.foregroundColor&&this.backgroundColor){this.ctx.fillStyle=this.foregroundColor;const x=this.foregroundColor=this.ctx.fillStyle;this.ctx.fillStyle=this.backgroundColor;const F=this.backgroundColor=this.ctx.fillStyle;let C=!0,L=s;if(this.ctx.fillStyle=s,L=this.ctx.fillStyle,C=typeof L=="string"&&/^#[0-9A-Fa-f]{6}$/.test(L),x==="#000000"&&F==="#ffffff"||x===F||!C)this.foregroundColor=this.backgroundColor=null;else{const[O,V,G]=(0,u.getRGB)(L),X=Y=>(Y/=255,Y<=.03928?Y/12.92:((Y+.055)/1.055)**2.4),te=Math.round(.2126*X(O)+.7152*X(V)+.0722*X(G));this.selectColor=(Y,ee,re)=>{const ae=.2126*X(Y)+.7152*X(ee)+.0722*X(re);return Math.round(ae)===te?F:x}}}if(this.ctx.fillStyle=this.backgroundColor||s,this.ctx.fillRect(0,0,j,e),this.ctx.restore(),A){const x=this.cachedCanvases.getCanvas("transparent",j,e);this.compositeCtx=this.ctx,this.transparentCanvas=x.canvas,this.ctx=x.context,this.ctx.save(),this.ctx.transform(...(0,u.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),g(this.ctx,this.foregroundColor),d&&(this.ctx.transform(...d),this.outputScaleX=d[0],this.outputScaleY=d[0]),this.ctx.transform(...o.transform),this.viewportScale=o.scale,this.baseTransform=(0,u.getCurrentTransform)(this.ctx)}executeOperatorList(d,o,A,M){const j=d.argsArray,e=d.fnArray;let s=o||0;const x=j.length;if(x===s)return s;const F=x-s>l&&typeof A=="function",C=F?Date.now()+r:0;let L=0;const O=this.commonObjs,V=this.objs;let G;for(;;){if(M!==void 0&&s===M.nextBreakPoint)return M.breakIt(s,A),s;if(G=e[s],G!==i.OPS.dependency)this[G].apply(this,j[s]);else for(const X of j[s]){const te=X.startsWith("g_")?O:V;if(!te.has(X))return te.get(X,A),s}if(s++,s===x)return s;if(F&&++L>l){if(Date.now()>C)return A(),s;L=0}}}#e(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#e(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const d of this._cachedBitmapsMap.values()){for(const o of d.values())typeof HTMLCanvasElement<"u"&&o instanceof HTMLCanvasElement&&(o.width=o.height=0);d.clear()}this._cachedBitmapsMap.clear()}_scaleImage(d,o){const A=d.width,M=d.height;let j=Math.max(Math.hypot(o[0],o[1]),1),e=Math.max(Math.hypot(o[2],o[3]),1),s=A,x=M,F="prescale1",C,L;for(;j>2&&s>1||e>2&&x>1;){let O=s,V=x;j>2&&s>1&&(O=Math.ceil(s/2),j/=s/O),e>2&&x>1&&(V=Math.ceil(x/2),e/=x/V),C=this.cachedCanvases.getCanvas(F,O,V),L=C.context,L.clearRect(0,0,O,V),L.drawImage(d,0,0,s,x,0,0,O,V),d=C.canvas,s=O,x=V,F=F==="prescale1"?"prescale2":"prescale1"}return{img:d,paintWidth:s,paintHeight:x}}_createMaskCanvas(d){const o=this.ctx,{width:A,height:M}=d,j=this.current.fillColor,e=this.current.patternFill,s=(0,u.getCurrentTransform)(o);let x,F,C,L;if((d.bitmap||d.data)&&d.count>1){const ge=d.bitmap||d.data.buffer;F=JSON.stringify(e?s:[s.slice(0,4),j]),x=this._cachedBitmapsMap.get(ge),x||(x=new Map,this._cachedBitmapsMap.set(ge,x));const me=x.get(F);if(me&&!e){const de=Math.round(Math.min(s[0],s[2])+s[4]),xe=Math.round(Math.min(s[1],s[3])+s[5]);return{canvas:me,offsetX:de,offsetY:xe}}C=me}C||(L=this.cachedCanvases.getCanvas("maskCanvas",A,M),w(L.context,d));let O=i.Util.transform(s,[1/A,0,0,-1/M,0,0]);O=i.Util.transform(O,[1,0,0,1,0,-M]);const V=i.Util.applyTransform([0,0],O),G=i.Util.applyTransform([A,M],O),X=i.Util.normalizeRect([V[0],V[1],G[0],G[1]]),te=Math.round(X[2]-X[0])||1,Y=Math.round(X[3]-X[1])||1,ee=this.cachedCanvases.getCanvas("fillCanvas",te,Y),re=ee.context,ae=Math.min(V[0],G[0]),ce=Math.min(V[1],G[1]);re.translate(-ae,-ce),re.transform(...O),C||(C=this._scaleImage(L.canvas,(0,u.getCurrentTransformInverse)(re)),C=C.img,x&&e&&x.set(F,C)),re.imageSmoothingEnabled=J((0,u.getCurrentTransform)(re),d.interpolate),f(re,C,0,0,C.width,C.height,0,0,A,M),re.globalCompositeOperation="source-in";const ie=i.Util.transform((0,u.getCurrentTransformInverse)(re),[1,0,0,1,-ae,-ce]);return re.fillStyle=e?j.getPattern(o,this,ie,P.PathType.FILL):j,re.fillRect(0,0,A,M),x&&!e&&(this.cachedCanvases.delete("fillCanvas"),x.set(F,ee.canvas)),{canvas:ee.canvas,offsetX:Math.round(ae),offsetY:Math.round(ce)}}setLineWidth(d){d!==this.current.lineWidth&&(this._cachedScaleForStroking=null),this.current.lineWidth=d,this.ctx.lineWidth=d}setLineCap(d){this.ctx.lineCap=se[d]}setLineJoin(d){this.ctx.lineJoin=Q[d]}setMiterLimit(d){this.ctx.miterLimit=d}setDash(d,o){const A=this.ctx;A.setLineDash!==void 0&&(A.setLineDash(d),A.lineDashOffset=o)}setRenderingIntent(d){}setFlatness(d){}setGState(d){for(const[o,A]of d)switch(o){case"LW":this.setLineWidth(A);break;case"LC":this.setLineCap(A);break;case"LJ":this.setLineJoin(A);break;case"ML":this.setMiterLimit(A);break;case"D":this.setDash(A[0],A[1]);break;case"RI":this.setRenderingIntent(A);break;case"FL":this.setFlatness(A);break;case"Font":this.setFont(A[0],A[1]);break;case"CA":this.current.strokeAlpha=A;break;case"ca":this.current.fillAlpha=A,this.ctx.globalAlpha=A;break;case"BM":this.ctx.globalCompositeOperation=A;break;case"SMask":this.current.activeSMask=A?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.current.transferMaps=A}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const d=this.inSMaskMode;this.current.activeSMask&&!d?this.beginSMaskMode():!this.current.activeSMask&&d&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const d=this.ctx.canvas.width,o=this.ctx.canvas.height,A="smaskGroupAt"+this.groupLevel,M=this.cachedCanvases.getCanvas(A,d,o);this.suspendedCtx=this.ctx,this.ctx=M.context;const j=this.ctx;j.setTransform(...(0,u.getCurrentTransform)(this.suspendedCtx)),a(this.suspendedCtx,j),p(j,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),a(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(d){if(!this.current.activeSMask)return;d?(d[0]=Math.floor(d[0]),d[1]=Math.floor(d[1]),d[2]=Math.ceil(d[2]),d[3]=Math.ceil(d[3])):d=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const o=this.current.activeSMask,A=this.suspendedCtx;q(A,o,this.ctx,d),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}save(){this.inSMaskMode?(a(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const d=this.current;this.stateStack.push(d),this.current=d.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),a(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null)}transform(d,o,A,M,j,e){this.ctx.transform(d,o,A,M,j,e),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null}constructPath(d,o,A){const M=this.ctx,j=this.current;let e=j.x,s=j.y,x,F;const C=(0,u.getCurrentTransform)(M),L=C[0]===0&&C[3]===0||C[1]===0&&C[2]===0,O=L?A.slice(0):null;for(let V=0,G=0,X=d.length;V<X;V++)switch(d[V]|0){case i.OPS.rectangle:e=o[G++],s=o[G++];const te=o[G++],Y=o[G++],ee=e+te,re=s+Y;M.moveTo(e,s),te===0||Y===0?M.lineTo(ee,re):(M.lineTo(ee,s),M.lineTo(ee,re),M.lineTo(e,re)),L||j.updateRectMinMax(C,[e,s,ee,re]),M.closePath();break;case i.OPS.moveTo:e=o[G++],s=o[G++],M.moveTo(e,s),L||j.updatePathMinMax(C,e,s);break;case i.OPS.lineTo:e=o[G++],s=o[G++],M.lineTo(e,s),L||j.updatePathMinMax(C,e,s);break;case i.OPS.curveTo:x=e,F=s,e=o[G+4],s=o[G+5],M.bezierCurveTo(o[G],o[G+1],o[G+2],o[G+3],e,s),j.updateCurvePathMinMax(C,x,F,o[G],o[G+1],o[G+2],o[G+3],e,s,O),G+=6;break;case i.OPS.curveTo2:x=e,F=s,M.bezierCurveTo(e,s,o[G],o[G+1],o[G+2],o[G+3]),j.updateCurvePathMinMax(C,x,F,e,s,o[G],o[G+1],o[G+2],o[G+3],O),e=o[G+2],s=o[G+3],G+=4;break;case i.OPS.curveTo3:x=e,F=s,e=o[G+2],s=o[G+3],M.bezierCurveTo(o[G],o[G+1],e,s,e,s),j.updateCurvePathMinMax(C,x,F,o[G],o[G+1],e,s,e,s,O),G+=4;break;case i.OPS.closePath:M.closePath();break}L&&j.updateScalingPathMinMax(C,O),j.setCurrentPoint(e,s)}closePath(){this.ctx.closePath()}stroke(d=!0){const o=this.ctx,A=this.current.strokeColor;o.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof A=="object"&&A?.getPattern?(o.save(),o.strokeStyle=A.getPattern(o,this,(0,u.getCurrentTransformInverse)(o),P.PathType.STROKE),this.rescaleAndStroke(!1),o.restore()):this.rescaleAndStroke(!0)),d&&this.consumePath(this.current.getClippedPathBoundingBox()),o.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(d=!0){const o=this.ctx,A=this.current.fillColor,M=this.current.patternFill;let j=!1;M&&(o.save(),o.fillStyle=A.getPattern(o,this,(0,u.getCurrentTransformInverse)(o),P.PathType.FILL),j=!0);const e=this.current.getClippedPathBoundingBox();this.contentVisible&&e!==null&&(this.pendingEOFill?(o.fill("evenodd"),this.pendingEOFill=!1):o.fill()),j&&o.restore(),d&&this.consumePath(e)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=H}eoClip(){this.pendingClip=U}beginText(){this.current.textMatrix=i.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const d=this.pendingTextPaths,o=this.ctx;if(d===void 0){o.beginPath();return}o.save(),o.beginPath();for(const A of d)o.setTransform(...A.transform),o.translate(A.x,A.y),A.addToPath(o,A.fontSize);o.restore(),o.clip(),o.beginPath(),delete this.pendingTextPaths}setCharSpacing(d){this.current.charSpacing=d}setWordSpacing(d){this.current.wordSpacing=d}setHScale(d){this.current.textHScale=d/100}setLeading(d){this.current.leading=-d}setFont(d,o){const A=this.commonObjs.get(d),M=this.current;if(!A)throw new Error(`Can't find font for ${d}`);if(M.fontMatrix=A.fontMatrix||i.FONT_IDENTITY_MATRIX,(M.fontMatrix[0]===0||M.fontMatrix[3]===0)&&(0,i.warn)("Invalid font matrix for font "+d),o<0?(o=-o,M.fontDirection=-1):M.fontDirection=1,this.current.font=A,this.current.fontSize=o,A.isType3Font)return;const j=A.loadedName||"sans-serif";let e="normal";A.black?e="900":A.bold&&(e="bold");const s=A.italic?"italic":"normal",x=`"${j}", ${A.fallbackName}`;let F=o;o<T?F=T:o>y&&(F=y),this.current.fontSizeScale=o/F,this.ctx.font=`${s} ${e} ${F}px ${x}`}setTextRenderingMode(d){this.current.textRenderingMode=d}setTextRise(d){this.current.textRise=d}moveText(d,o){this.current.x=this.current.lineX+=d,this.current.y=this.current.lineY+=o}setLeadingMoveText(d,o){this.setLeading(-o),this.moveText(d,o)}setTextMatrix(d,o,A,M,j,e){this.current.textMatrix=[d,o,A,M,j,e],this.current.textMatrixScale=Math.hypot(d,o),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(d,o,A,M){const j=this.ctx,e=this.current,s=e.font,x=e.textRenderingMode,F=e.fontSize/e.fontSizeScale,C=x&i.TextRenderingMode.FILL_STROKE_MASK,L=!!(x&i.TextRenderingMode.ADD_TO_PATH_FLAG),O=e.patternFill&&!s.missingFile;let V;(s.disableFontFace||L||O)&&(V=s.getPathGenerator(this.commonObjs,d)),s.disableFontFace||O?(j.save(),j.translate(o,A),j.beginPath(),V(j,F),M&&j.setTransform(...M),(C===i.TextRenderingMode.FILL||C===i.TextRenderingMode.FILL_STROKE)&&j.fill(),(C===i.TextRenderingMode.STROKE||C===i.TextRenderingMode.FILL_STROKE)&&j.stroke(),j.restore()):((C===i.TextRenderingMode.FILL||C===i.TextRenderingMode.FILL_STROKE)&&j.fillText(d,o,A),(C===i.TextRenderingMode.STROKE||C===i.TextRenderingMode.FILL_STROKE)&&j.strokeText(d,o,A)),L&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,u.getCurrentTransform)(j),x:o,y:A,fontSize:F,addToPath:V})}get isFontSubpixelAAEnabled(){const{context:d}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);d.scale(1.5,1),d.fillText("I",0,10);const o=d.getImageData(0,0,10,10).data;let A=!1;for(let M=3;M<o.length;M+=4)if(o[M]>0&&o[M]<255){A=!0;break}return(0,i.shadow)(this,"isFontSubpixelAAEnabled",A)}showText(d){const o=this.current,A=o.font;if(A.isType3Font)return this.showType3Text(d);const M=o.fontSize;if(M===0)return;const j=this.ctx,e=o.fontSizeScale,s=o.charSpacing,x=o.wordSpacing,F=o.fontDirection,C=o.textHScale*F,L=d.length,O=A.vertical,V=O?1:-1,G=A.defaultVMetrics,X=M*o.fontMatrix[0],te=o.textRenderingMode===i.TextRenderingMode.FILL&&!A.disableFontFace&&!o.patternFill;j.save(),j.transform(...o.textMatrix),j.translate(o.x,o.y+o.textRise),F>0?j.scale(C,-1):j.scale(C,1);let Y;if(o.patternFill){j.save();const ie=o.fillColor.getPattern(j,this,(0,u.getCurrentTransformInverse)(j),P.PathType.FILL);Y=(0,u.getCurrentTransform)(j),j.restore(),j.fillStyle=ie}let ee=o.lineWidth;const re=o.textMatrixScale;if(re===0||ee===0){const ie=o.textRenderingMode&i.TextRenderingMode.FILL_STROKE_MASK;(ie===i.TextRenderingMode.STROKE||ie===i.TextRenderingMode.FILL_STROKE)&&(ee=this.getSinglePixelWidth())}else ee/=re;if(e!==1&&(j.scale(e,e),ee/=e),j.lineWidth=ee,A.isInvalidPDFjsFont){const ie=[];let ge=0;for(const me of d)ie.push(me.unicode),ge+=me.width;j.fillText(ie.join(""),0,0),o.x+=ge*X*C,j.restore(),this.compose();return}let ae=0,ce;for(ce=0;ce<L;++ce){const ie=d[ce];if(typeof ie=="number"){ae+=V*ie*M/1e3;continue}let ge=!1;const me=(ie.isSpace?x:0)+s,de=ie.fontChar,xe=ie.accent;let Te,Fe,Ce=ie.width;if(O){const ve=ie.vmetric||G,ye=-(ie.vmetric?ve[1]:Ce*.5)*X,Z=ve[2]*X;Ce=ve?-ve[0]:Ce,Te=ye/e,Fe=(ae+Z)/e}else Te=ae/e,Fe=0;if(A.remeasure&&Ce>0){const ve=j.measureText(de).width*1e3/M*e;if(Ce<ve&&this.isFontSubpixelAAEnabled){const ye=Ce/ve;ge=!0,j.save(),j.scale(ye,1),Te/=ye}else Ce!==ve&&(Te+=(Ce-ve)/2e3*M/e)}if(this.contentVisible&&(ie.isInFont||A.missingFile)){if(te&&!xe)j.fillText(de,Te,Fe);else if(this.paintChar(de,Te,Fe,Y),xe){const ve=Te+M*xe.offset.x/e,ye=Fe-M*xe.offset.y/e;this.paintChar(xe.fontChar,ve,ye,Y)}}let $e;O?$e=Ce*X-me*F:$e=Ce*X+me*F,ae+=$e,ge&&j.restore()}O?o.y-=ae:o.x+=ae*C,j.restore(),this.compose()}showType3Text(d){const o=this.ctx,A=this.current,M=A.font,j=A.fontSize,e=A.fontDirection,s=M.vertical?1:-1,x=A.charSpacing,F=A.wordSpacing,C=A.textHScale*e,L=A.fontMatrix||i.FONT_IDENTITY_MATRIX,O=d.length,V=A.textRenderingMode===i.TextRenderingMode.INVISIBLE;let G,X,te,Y;if(!(V||j===0)){for(this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,o.save(),o.transform(...A.textMatrix),o.translate(A.x,A.y),o.scale(C,e),G=0;G<O;++G){if(X=d[G],typeof X=="number"){Y=s*X*j/1e3,this.ctx.translate(Y,0),A.x+=Y*C;continue}const ee=(X.isSpace?F:0)+x,re=M.charProcOperatorList[X.operatorListId];if(!re){(0,i.warn)(`Type3 character "${X.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=X,this.save(),o.scale(j,j),o.transform(...L),this.executeOperatorList(re),this.restore()),te=i.Util.applyTransform([X.width,0],L)[0]*j+ee,o.translate(te,0),A.x+=te*C}o.restore(),this.processingType3=null}}setCharWidth(d,o){}setCharWidthAndBounds(d,o,A,M,j,e){this.ctx.rect(A,M,j-A,e-M),this.ctx.clip(),this.endPath()}getColorN_Pattern(d){let o;if(d[0]==="TilingPattern"){const A=d[1],M=this.baseTransform||(0,u.getCurrentTransform)(this.ctx),j={createCanvasGraphics:e=>new W(e,this.commonObjs,this.objs,this.canvasFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};o=new P.TilingPattern(d,A,this.ctx,j,M)}else o=this._getPattern(d[1],d[2]);return o}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(d,o,A){const M=this.selectColor?.(d,o,A)||i.Util.makeHexColor(d,o,A);this.ctx.strokeStyle=M,this.current.strokeColor=M}setFillRGBColor(d,o,A){const M=this.selectColor?.(d,o,A)||i.Util.makeHexColor(d,o,A);this.ctx.fillStyle=M,this.current.fillColor=M,this.current.patternFill=!1}_getPattern(d,o=null){let A;return this.cachedPatterns.has(d)?A=this.cachedPatterns.get(d):(A=(0,P.getShadingPattern)(this.objs.get(d)),this.cachedPatterns.set(d,A)),o&&(A.matrix=o),A}shadingFill(d){if(!this.contentVisible)return;const o=this.ctx;this.save();const A=this._getPattern(d);o.fillStyle=A.getPattern(o,this,(0,u.getCurrentTransformInverse)(o),P.PathType.SHADING);const M=(0,u.getCurrentTransformInverse)(o);if(M){const j=o.canvas,e=j.width,s=j.height,x=i.Util.applyTransform([0,0],M),F=i.Util.applyTransform([0,s],M),C=i.Util.applyTransform([e,0],M),L=i.Util.applyTransform([e,s],M),O=Math.min(x[0],F[0],C[0],L[0]),V=Math.min(x[1],F[1],C[1],L[1]),G=Math.max(x[0],F[0],C[0],L[0]),X=Math.max(x[1],F[1],C[1],L[1]);this.ctx.fillRect(O,V,G-O,X-V)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,i.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,i.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(d,o){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(d)&&d.length===6&&this.transform(...d),this.baseTransform=(0,u.getCurrentTransform)(this.ctx),o)){const A=o[2]-o[0],M=o[3]-o[1];this.ctx.rect(o[0],o[1],A,M),this.current.updateRectMinMax((0,u.getCurrentTransform)(this.ctx),o),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(d){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const o=this.ctx;d.isolated||(0,i.info)("TODO: Support non-isolated groups."),d.knockout&&(0,i.warn)("Knockout groups not supported.");const A=(0,u.getCurrentTransform)(o);if(d.matrix&&o.transform(...d.matrix),!d.bbox)throw new Error("Bounding box is required.");let M=i.Util.getAxialAlignedBoundingBox(d.bbox,(0,u.getCurrentTransform)(o));const j=[0,0,o.canvas.width,o.canvas.height];M=i.Util.intersect(M,j)||[0,0,0,0];const e=Math.floor(M[0]),s=Math.floor(M[1]);let x=Math.max(Math.ceil(M[2])-e,1),F=Math.max(Math.ceil(M[3])-s,1),C=1,L=1;x>c&&(C=x/c,x=c),F>c&&(L=F/c,F=c),this.current.startNewPathAndClipBox([0,0,x,F]);let O="groupAt"+this.groupLevel;d.smask&&(O+="_smask_"+this.smaskCounter++%2);const V=this.cachedCanvases.getCanvas(O,x,F),G=V.context;G.scale(1/C,1/L),G.translate(-e,-s),G.transform(...A),d.smask?this.smaskStack.push({canvas:V.canvas,context:G,offsetX:e,offsetY:s,scaleX:C,scaleY:L,subtype:d.smask.subtype,backdrop:d.smask.backdrop,transferMap:d.smask.transferMap||null,startTransformInverse:null}):(o.setTransform(1,0,0,1,0,0),o.translate(e,s),o.scale(C,L),o.save()),a(o,G),this.ctx=G,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(o),this.groupLevel++}endGroup(d){if(!this.contentVisible)return;this.groupLevel--;const o=this.ctx,A=this.groupStack.pop();if(this.ctx=A,this.ctx.imageSmoothingEnabled=!1,d.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const M=(0,u.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...M);const j=i.Util.getAxialAlignedBoundingBox([0,0,o.canvas.width,o.canvas.height],M);this.ctx.drawImage(o.canvas,0,0),this.ctx.restore(),this.compose(j)}}beginAnnotation(d,o,A,M,j){if(this.#e(),g(this.ctx,this.foregroundColor),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(o)&&o.length===4){const e=o[2]-o[0],s=o[3]-o[1];if(j&&this.annotationCanvasMap){A=A.slice(),A[4]-=o[0],A[5]-=o[1],o=o.slice(),o[0]=o[1]=0,o[2]=e,o[3]=s;const[x,F]=i.Util.singularValueDecompose2dScale((0,u.getCurrentTransform)(this.ctx)),{viewportScale:C}=this,L=Math.ceil(e*this.outputScaleX*C),O=Math.ceil(s*this.outputScaleY*C);this.annotationCanvas=this.canvasFactory.create(L,O);const{canvas:V,context:G}=this.annotationCanvas;this.annotationCanvasMap.set(d,V),this.annotationCanvas.savedCtx=this.ctx,this.ctx=G,this.ctx.setTransform(x,0,0,-F,0,s*F),g(this.ctx,this.foregroundColor)}else g(this.ctx,this.foregroundColor),this.ctx.rect(o[0],o[1],e,s),this.ctx.clip(),this.endPath()}this.current=new E(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...A),this.transform(...M)}endAnnotation(){this.annotationCanvas&&(this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(d){if(!this.contentVisible)return;const o=d.count;d=this.getObject(d.data,d),d.count=o;const A=this.ctx,M=this.processingType3;if(M&&(M.compiled===void 0&&(M.compiled=b(d)),M.compiled)){M.compiled(A);return}const j=this._createMaskCanvas(d),e=j.canvas;A.save(),A.setTransform(1,0,0,1,0,0),A.drawImage(e,j.offsetX,j.offsetY),A.restore(),this.compose()}paintImageMaskXObjectRepeat(d,o,A=0,M=0,j,e){if(!this.contentVisible)return;d=this.getObject(d.data,d);const s=this.ctx;s.save();const x=(0,u.getCurrentTransform)(s);s.transform(o,A,M,j,0,0);const F=this._createMaskCanvas(d);s.setTransform(1,0,0,1,F.offsetX-x[4],F.offsetY-x[5]);for(let C=0,L=e.length;C<L;C+=2){const O=i.Util.transform(x,[o,A,M,j,e[C],e[C+1]]),[V,G]=i.Util.applyTransform([0,0],O);s.drawImage(F.canvas,V,G)}s.restore(),this.compose()}paintImageMaskXObjectGroup(d){if(!this.contentVisible)return;const o=this.ctx,A=this.current.fillColor,M=this.current.patternFill;for(const j of d){const{data:e,width:s,height:x,transform:F}=j,C=this.cachedCanvases.getCanvas("maskCanvas",s,x),L=C.context;L.save();const O=this.getObject(e,j);w(L,O),L.globalCompositeOperation="source-in",L.fillStyle=M?A.getPattern(L,this,(0,u.getCurrentTransformInverse)(o),P.PathType.FILL):A,L.fillRect(0,0,s,x),L.restore(),o.save(),o.transform(...F),o.scale(1,-1),f(o,C.canvas,0,0,s,x,0,-1,1,1),o.restore()}this.compose()}paintImageXObject(d){if(!this.contentVisible)return;const o=this.getObject(d);if(!o){(0,i.warn)("Dependent image isn't ready yet");return}this.paintInlineImageXObject(o)}paintImageXObjectRepeat(d,o,A,M){if(!this.contentVisible)return;const j=this.getObject(d);if(!j){(0,i.warn)("Dependent image isn't ready yet");return}const e=j.width,s=j.height,x=[];for(let F=0,C=M.length;F<C;F+=2)x.push({transform:[o,0,0,A,M[F],M[F+1]],x:0,y:0,w:e,h:s});this.paintInlineImageXObjectGroup(j,x)}paintInlineImageXObject(d){if(!this.contentVisible)return;const o=d.width,A=d.height,M=this.ctx;this.save(),M.scale(1/o,-1/A);let j;if(typeof HTMLElement=="function"&&d instanceof HTMLElement||!d.data)j=d;else{const s=this.cachedCanvases.getCanvas("inlineImage",o,A),x=s.context;I(x,d,this.current.transferMaps),j=s.canvas}const e=this._scaleImage(j,(0,u.getCurrentTransformInverse)(M));M.imageSmoothingEnabled=J((0,u.getCurrentTransform)(M),d.interpolate),f(M,e.img,0,0,e.paintWidth,e.paintHeight,0,-A,o,A),this.compose(),this.restore()}paintInlineImageXObjectGroup(d,o){if(!this.contentVisible)return;const A=this.ctx,M=d.width,j=d.height,e=this.cachedCanvases.getCanvas("inlineImage",M,j),s=e.context;I(s,d,this.current.transferMaps);for(const x of o)A.save(),A.transform(...x.transform),A.scale(1,-1),f(A,e.canvas,x.x,x.y,x.w,x.h,0,-1,1,1),A.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(d){}markPointProps(d,o){}beginMarkedContent(d){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(d,o){d==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(o)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(d){const o=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(d);const A=this.ctx;this.pendingClip&&(o||(this.pendingClip===U?A.clip("evenodd"):A.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),A.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const d=(0,u.getCurrentTransform)(this.ctx);if(d[1]===0&&d[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(d[0]),Math.abs(d[3]));else{const o=Math.abs(d[0]*d[3]-d[2]*d[1]),A=Math.hypot(d[0],d[2]),M=Math.hypot(d[1],d[3]);this._cachedGetSinglePixelWidth=Math.max(A,M)/o}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(!this._cachedScaleForStroking){const{lineWidth:d}=this.current,o=(0,u.getCurrentTransform)(this.ctx);let A,M;if(o[1]===0&&o[2]===0){const j=Math.abs(o[0]),e=Math.abs(o[3]);if(d===0)A=1/j,M=1/e;else{const s=j*d,x=e*d;A=s<1?1/s:1,M=x<1?1/x:1}}else{const j=Math.abs(o[0]*o[3]-o[2]*o[1]),e=Math.hypot(o[0],o[1]),s=Math.hypot(o[2],o[3]);if(d===0)A=s/j,M=e/j;else{const x=d*j;A=s>x?s/x:1,M=e>x?e/x:1}}this._cachedScaleForStroking=[A,M]}return this._cachedScaleForStroking}rescaleAndStroke(d){const{ctx:o}=this,{lineWidth:A}=this.current,[M,j]=this.getScaleForStroking();if(o.lineWidth=A||1,M===1&&j===1){o.stroke();return}let e,s,x;d&&(e=(0,u.getCurrentTransform)(o),s=o.getLineDash().slice(),x=o.lineDashOffset),o.scale(M,j);const F=Math.max(M,j);o.setLineDash(o.getLineDash().map(C=>C/F)),o.lineDashOffset/=F,o.stroke(),d&&(o.setTransform(...e),o.setLineDash(s),o.lineDashOffset=x)}isContentVisible(){for(let d=this.markedContentStack.length-1;d>=0;d--)if(!this.markedContentStack[d].visible)return!1;return!0}}t.CanvasGraphics=W;for(const S in i.OPS)W.prototype[S]!==void 0&&(W.prototype[i.OPS[S]]=W.prototype[S])}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.PathType=void 0,t.getShadingPattern=n;var i=v(1),u=v(6);const P={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};t.PathType=P;function k(f,b){if(!b)return;const E=b[2]-b[0],I=b[3]-b[1],w=new Path2D;w.rect(b[0],b[1],E,I),f.clip(w)}class T{constructor(){this.constructor===T&&(0,i.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,i.unreachable)("Abstract method `getPattern` called.")}}class y extends T{constructor(b){super(),this._type=b[1],this._bbox=b[2],this._colorStops=b[3],this._p0=b[4],this._p1=b[5],this._r0=b[6],this._r1=b[7],this.matrix=null}_createGradient(b){let E;this._type==="axial"?E=b.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(E=b.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const I of this._colorStops)E.addColorStop(I[0],I[1]);return E}getPattern(b,E,I,w){let a;if(w===P.STROKE||w===P.FILL){const g=E.current.getClippedPathBoundingBox(w,(0,u.getCurrentTransform)(b))||[0,0,0,0],R=Math.ceil(g[2]-g[0])||1,$=Math.ceil(g[3]-g[1])||1,D=E.cachedCanvases.getCanvas("pattern",R,$,!0),B=D.context;B.clearRect(0,0,B.canvas.width,B.canvas.height),B.beginPath(),B.rect(0,0,B.canvas.width,B.canvas.height),B.translate(-g[0],-g[1]),I=i.Util.transform(I,[1,0,0,1,g[0],g[1]]),B.transform(...E.baseTransform),this.matrix&&B.transform(...this.matrix),k(B,this._bbox),B.fillStyle=this._createGradient(B),B.fill(),a=b.createPattern(D.canvas,"no-repeat");const q=new DOMMatrix(I);a.setTransform(q)}else k(b,this._bbox),a=this._createGradient(b);return a}}function c(f,b,E,I,w,a,g,R){const $=b.coords,D=b.colors,B=f.data,q=f.width*4;let J;$[E+1]>$[I+1]&&(J=E,E=I,I=J,J=a,a=g,g=J),$[I+1]>$[w+1]&&(J=I,I=w,w=J,J=g,g=R,R=J),$[E+1]>$[I+1]&&(J=E,E=I,I=J,J=a,a=g,g=J);const se=($[E]+b.offsetX)*b.scaleX,Q=($[E+1]+b.offsetY)*b.scaleY,H=($[I]+b.offsetX)*b.scaleX,U=($[I+1]+b.offsetY)*b.scaleY,W=($[w]+b.offsetX)*b.scaleX,S=($[w+1]+b.offsetY)*b.scaleY;if(Q>=S)return;const d=D[a],o=D[a+1],A=D[a+2],M=D[g],j=D[g+1],e=D[g+2],s=D[R],x=D[R+1],F=D[R+2],C=Math.round(Q),L=Math.round(S);let O,V,G,X,te,Y,ee,re;for(let ae=C;ae<=L;ae++){if(ae<U){let de;ae<Q?de=0:de=(Q-ae)/(Q-U),O=se-(se-H)*de,V=d-(d-M)*de,G=o-(o-j)*de,X=A-(A-e)*de}else{let de;ae>S?de=1:U===S?de=0:de=(U-ae)/(U-S),O=H-(H-W)*de,V=M-(M-s)*de,G=j-(j-x)*de,X=e-(e-F)*de}let ce;ae<Q?ce=0:ae>S?ce=1:ce=(Q-ae)/(Q-S),te=se-(se-W)*ce,Y=d-(d-s)*ce,ee=o-(o-x)*ce,re=A-(A-F)*ce;const ie=Math.round(Math.min(O,te)),ge=Math.round(Math.max(O,te));let me=q*ae+ie*4;for(let de=ie;de<=ge;de++)ce=(O-de)/(O-te),ce<0?ce=0:ce>1&&(ce=1),B[me++]=V-(V-Y)*ce|0,B[me++]=G-(G-ee)*ce|0,B[me++]=X-(X-re)*ce|0,B[me++]=255}}function r(f,b,E){const I=b.coords,w=b.colors;let a,g;switch(b.type){case"lattice":const R=b.verticesPerRow,$=Math.floor(I.length/R)-1,D=R-1;for(a=0;a<$;a++){let B=a*R;for(let q=0;q<D;q++,B++)c(f,E,I[B],I[B+1],I[B+R],w[B],w[B+1],w[B+R]),c(f,E,I[B+R+1],I[B+1],I[B+R],w[B+R+1],w[B+1],w[B+R])}break;case"triangles":for(a=0,g=I.length;a<g;a+=3)c(f,E,I[a],I[a+1],I[a+2],w[a],w[a+1],w[a+2]);break;default:throw new Error("illegal figure")}}class l extends T{constructor(b){super(),this._coords=b[2],this._colors=b[3],this._figures=b[4],this._bounds=b[5],this._bbox=b[7],this._background=b[8],this.matrix=null}_createMeshCanvas(b,E,I){const R=Math.floor(this._bounds[0]),$=Math.floor(this._bounds[1]),D=Math.ceil(this._bounds[2])-R,B=Math.ceil(this._bounds[3])-$,q=Math.min(Math.ceil(Math.abs(D*b[0]*1.1)),3e3),J=Math.min(Math.ceil(Math.abs(B*b[1]*1.1)),3e3),se=D/q,Q=B/J,H={coords:this._coords,colors:this._colors,offsetX:-R,offsetY:-$,scaleX:1/se,scaleY:1/Q},U=q+4,W=J+4,S=I.getCanvas("mesh",U,W,!1),d=S.context,o=d.createImageData(q,J);if(E){const M=o.data;for(let j=0,e=M.length;j<e;j+=4)M[j]=E[0],M[j+1]=E[1],M[j+2]=E[2],M[j+3]=255}for(const M of this._figures)r(o,M,H);return d.putImageData(o,2,2),{canvas:S.canvas,offsetX:R-2*se,offsetY:$-2*Q,scaleX:se,scaleY:Q}}getPattern(b,E,I,w){k(b,this._bbox);let a;if(w===P.SHADING)a=i.Util.singularValueDecompose2dScale((0,u.getCurrentTransform)(b));else if(a=i.Util.singularValueDecompose2dScale(E.baseTransform),this.matrix){const R=i.Util.singularValueDecompose2dScale(this.matrix);a=[a[0]*R[0],a[1]*R[1]]}const g=this._createMeshCanvas(a,w===P.SHADING?null:this._background,E.cachedCanvases);return w!==P.SHADING&&(b.setTransform(...E.baseTransform),this.matrix&&b.transform(...this.matrix)),b.translate(g.offsetX,g.offsetY),b.scale(g.scaleX,g.scaleY),b.createPattern(g.canvas,"no-repeat")}}class h extends T{getPattern(){return"hotpink"}}function n(f){switch(f[0]){case"RadialAxial":return new y(f);case"Mesh":return new l(f);case"Dummy":return new h}throw new Error(`Unknown IR type: ${f[0]}`)}const p={COLORED:1,UNCOLORED:2};class m{static get MAX_PATTERN_SIZE(){return(0,i.shadow)(this,"MAX_PATTERN_SIZE",3e3)}constructor(b,E,I,w,a){this.operatorList=b[2],this.matrix=b[3]||[1,0,0,1,0,0],this.bbox=b[4],this.xstep=b[5],this.ystep=b[6],this.paintType=b[7],this.tilingType=b[8],this.color=E,this.ctx=I,this.canvasGraphicsFactory=w,this.baseTransform=a}createPatternCanvas(b){const E=this.operatorList,I=this.bbox,w=this.xstep,a=this.ystep,g=this.paintType,R=this.tilingType,$=this.color,D=this.canvasGraphicsFactory;(0,i.info)("TilingType: "+R);const B=I[0],q=I[1],J=I[2],se=I[3],Q=i.Util.singularValueDecompose2dScale(this.matrix),H=i.Util.singularValueDecompose2dScale(this.baseTransform),U=[Q[0]*H[0],Q[1]*H[1]],W=this.getSizeAndScale(w,this.ctx.canvas.width,U[0]),S=this.getSizeAndScale(a,this.ctx.canvas.height,U[1]),d=b.cachedCanvases.getCanvas("pattern",W.size,S.size,!0),o=d.context,A=D.createCanvasGraphics(o);A.groupLevel=b.groupLevel,this.setFillAndStrokeStyleToContext(A,g,$);let M=B,j=q,e=J,s=se;return B<0&&(M=0,e+=Math.abs(B)),q<0&&(j=0,s+=Math.abs(q)),o.translate(-(W.scale*M),-(S.scale*j)),A.transform(W.scale,0,0,S.scale,0,0),o.save(),this.clipBbox(A,M,j,e,s),A.baseTransform=(0,u.getCurrentTransform)(A.ctx),A.executeOperatorList(E),A.endDrawing(),{canvas:d.canvas,scaleX:W.scale,scaleY:S.scale,offsetX:M,offsetY:j}}getSizeAndScale(b,E,I){b=Math.abs(b);const w=Math.max(m.MAX_PATTERN_SIZE,E);let a=Math.ceil(b*I);return a>=w?a=w:I=a/b,{scale:I,size:a}}clipBbox(b,E,I,w,a){const g=w-E,R=a-I;b.ctx.rect(E,I,g,R),b.current.updateRectMinMax((0,u.getCurrentTransform)(b.ctx),[E,I,w,a]),b.clip(),b.endPath()}setFillAndStrokeStyleToContext(b,E,I){const w=b.ctx,a=b.current;switch(E){case p.COLORED:const g=this.ctx;w.fillStyle=g.fillStyle,w.strokeStyle=g.strokeStyle,a.fillColor=g.fillStyle,a.strokeColor=g.strokeStyle;break;case p.UNCOLORED:const R=i.Util.makeHexColor(I[0],I[1],I[2]);w.fillStyle=R,w.strokeStyle=R,a.fillColor=R,a.strokeColor=R;break;default:throw new i.FormatError(`Unsupported paint type: ${E}`)}}getPattern(b,E,I,w){let a=I;w!==P.SHADING&&(a=i.Util.transform(a,E.baseTransform),this.matrix&&(a=i.Util.transform(a,this.matrix)));const g=this.createPatternCanvas(E);let R=new DOMMatrix(a);R=R.translate(g.offsetX,g.offsetY),R=R.scale(1/g.scaleX,1/g.scaleY);const $=b.createPattern(g.canvas,"repeat");return $.setTransform(R),$}}t.TilingPattern=m}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.applyMaskImageData=u;var i=v(1);function u({src:P,srcPos:k=0,dest:T,destPos:y=0,width:c,height:r,inverseDecode:l=!1}){const h=i.FeatureTest.isLittleEndian?4278190080:255,[n,p]=l?[0,h]:[h,0],m=c>>3,f=c&7,b=P.length;T=new Uint32Array(T.buffer);for(let E=0;E<r;E++){for(const w=k+m;k<w;k++){const a=k<b?P[k]:255;T[y++]=a&128?p:n,T[y++]=a&64?p:n,T[y++]=a&32?p:n,T[y++]=a&16?p:n,T[y++]=a&8?p:n,T[y++]=a&4?p:n,T[y++]=a&2?p:n,T[y++]=a&1?p:n}if(f===0)continue;const I=k<b?P[k++]:255;for(let w=0;w<f;w++)T[y++]=I&1<<7-w?p:n}return{srcPos:k,destPos:y}}}),((_,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;const v=Object.create(null);t.GlobalWorkerOptions=v,v.workerPort=null,v.workerSrc=""}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var i=v(1);const u={DATA:1,ERROR:2},P={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function k(y){switch(y instanceof Error||typeof y=="object"&&y!==null||(0,i.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),y.name){case"AbortException":return new i.AbortException(y.message);case"MissingPDFException":return new i.MissingPDFException(y.message);case"PasswordException":return new i.PasswordException(y.message,y.code);case"UnexpectedResponseException":return new i.UnexpectedResponseException(y.message,y.status);case"UnknownErrorException":return new i.UnknownErrorException(y.message,y.details);default:return new i.UnknownErrorException(y.message,y.toString())}}class T{constructor(c,r,l){this.sourceName=c,this.targetName=r,this.comObj=l,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=h=>{const n=h.data;if(n.targetName!==this.sourceName)return;if(n.stream){this._processStreamMessage(n);return}if(n.callback){const m=n.callbackId,f=this.callbackCapabilities[m];if(!f)throw new Error(`Cannot resolve callback ${m}`);if(delete this.callbackCapabilities[m],n.callback===u.DATA)f.resolve(n.data);else if(n.callback===u.ERROR)f.reject(k(n.reason));else throw new Error("Unexpected callback case");return}const p=this.actionHandler[n.action];if(!p)throw new Error(`Unknown action from worker: ${n.action}`);if(n.callbackId){const m=this.sourceName,f=n.sourceName;new Promise(function(b){b(p(n.data))}).then(function(b){l.postMessage({sourceName:m,targetName:f,callback:u.DATA,callbackId:n.callbackId,data:b})},function(b){l.postMessage({sourceName:m,targetName:f,callback:u.ERROR,callbackId:n.callbackId,reason:k(b)})});return}if(n.streamId){this._createStreamSink(n);return}p(n.data)},l.addEventListener("message",this._onComObjOnMessage)}on(c,r){const l=this.actionHandler;if(l[c])throw new Error(`There is already an actionName called "${c}"`);l[c]=r}send(c,r,l){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:c,data:r},l)}sendWithPromise(c,r,l){const h=this.callbackId++,n=(0,i.createPromiseCapability)();this.callbackCapabilities[h]=n;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:c,callbackId:h,data:r},l)}catch(p){n.reject(p)}return n.promise}sendWithStream(c,r,l,h){const n=this.streamId++,p=this.sourceName,m=this.targetName,f=this.comObj;return new ReadableStream({start:b=>{const E=(0,i.createPromiseCapability)();return this.streamControllers[n]={controller:b,startCall:E,pullCall:null,cancelCall:null,isClosed:!1},f.postMessage({sourceName:p,targetName:m,action:c,streamId:n,data:r,desiredSize:b.desiredSize},h),E.promise},pull:b=>{const E=(0,i.createPromiseCapability)();return this.streamControllers[n].pullCall=E,f.postMessage({sourceName:p,targetName:m,stream:P.PULL,streamId:n,desiredSize:b.desiredSize}),E.promise},cancel:b=>{(0,i.assert)(b instanceof Error,"cancel must have a valid reason");const E=(0,i.createPromiseCapability)();return this.streamControllers[n].cancelCall=E,this.streamControllers[n].isClosed=!0,f.postMessage({sourceName:p,targetName:m,stream:P.CANCEL,streamId:n,reason:k(b)}),E.promise}},l)}_createStreamSink(c){const r=c.streamId,l=this.sourceName,h=c.sourceName,n=this.comObj,p=this,m=this.actionHandler[c.action],f={enqueue(b,E=1,I){if(this.isCancelled)return;const w=this.desiredSize;this.desiredSize-=E,w>0&&this.desiredSize<=0&&(this.sinkCapability=(0,i.createPromiseCapability)(),this.ready=this.sinkCapability.promise),n.postMessage({sourceName:l,targetName:h,stream:P.ENQUEUE,streamId:r,chunk:b},I)},close(){this.isCancelled||(this.isCancelled=!0,n.postMessage({sourceName:l,targetName:h,stream:P.CLOSE,streamId:r}),delete p.streamSinks[r])},error(b){(0,i.assert)(b instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,n.postMessage({sourceName:l,targetName:h,stream:P.ERROR,streamId:r,reason:k(b)}))},sinkCapability:(0,i.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:c.desiredSize,ready:null};f.sinkCapability.resolve(),f.ready=f.sinkCapability.promise,this.streamSinks[r]=f,new Promise(function(b){b(m(c.data,f))}).then(function(){n.postMessage({sourceName:l,targetName:h,stream:P.START_COMPLETE,streamId:r,success:!0})},function(b){n.postMessage({sourceName:l,targetName:h,stream:P.START_COMPLETE,streamId:r,reason:k(b)})})}_processStreamMessage(c){const r=c.streamId,l=this.sourceName,h=c.sourceName,n=this.comObj,p=this.streamControllers[r],m=this.streamSinks[r];switch(c.stream){case P.START_COMPLETE:c.success?p.startCall.resolve():p.startCall.reject(k(c.reason));break;case P.PULL_COMPLETE:c.success?p.pullCall.resolve():p.pullCall.reject(k(c.reason));break;case P.PULL:if(!m){n.postMessage({sourceName:l,targetName:h,stream:P.PULL_COMPLETE,streamId:r,success:!0});break}m.desiredSize<=0&&c.desiredSize>0&&m.sinkCapability.resolve(),m.desiredSize=c.desiredSize,new Promise(function(f){f(m.onPull&&m.onPull())}).then(function(){n.postMessage({sourceName:l,targetName:h,stream:P.PULL_COMPLETE,streamId:r,success:!0})},function(f){n.postMessage({sourceName:l,targetName:h,stream:P.PULL_COMPLETE,streamId:r,reason:k(f)})});break;case P.ENQUEUE:if((0,i.assert)(p,"enqueue should have stream controller"),p.isClosed)break;p.controller.enqueue(c.chunk);break;case P.CLOSE:if((0,i.assert)(p,"close should have stream controller"),p.isClosed)break;p.isClosed=!0,p.controller.close(),this._deleteStreamController(p,r);break;case P.ERROR:(0,i.assert)(p,"error should have stream controller"),p.controller.error(k(c.reason)),this._deleteStreamController(p,r);break;case P.CANCEL_COMPLETE:c.success?p.cancelCall.resolve():p.cancelCall.reject(k(c.reason)),this._deleteStreamController(p,r);break;case P.CANCEL:if(!m)break;new Promise(function(f){f(m.onCancel&&m.onCancel(k(c.reason)))}).then(function(){n.postMessage({sourceName:l,targetName:h,stream:P.CANCEL_COMPLETE,streamId:r,success:!0})},function(f){n.postMessage({sourceName:l,targetName:h,stream:P.CANCEL_COMPLETE,streamId:r,reason:k(f)})}),m.sinkCapability.reject(k(c.reason)),m.isCancelled=!0,delete this.streamSinks[r];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(c,r){await Promise.allSettled([c.startCall&&c.startCall.promise,c.pullCall&&c.pullCall.promise,c.cancelCall&&c.cancelCall.promise]),delete this.streamControllers[r]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}t.MessageHandler=T}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var i=v(1);class u{#e;#t;constructor({parsedData:k,rawData:T}){this.#e=k,this.#t=T}getRaw(){return this.#t}get(k){return this.#e.get(k)??null}getAll(){return(0,i.objectFromMap)(this.#e)}has(k){return this.#e.has(k)}}t.Metadata=u}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var i=v(1),u=v(8);const P=Symbol("INTERNAL");class k{#e=!0;constructor(c,r){this.name=c,this.intent=r}get visible(){return this.#e}_setVisible(c,r){c!==P&&(0,i.unreachable)("Internal method `_setVisible` called."),this.#e=r}}class T{#e=null;#t=new Map;#s=null;#i=null;constructor(c){if(this.name=null,this.creator=null,c!==null){this.name=c.name,this.creator=c.creator,this.#i=c.order;for(const r of c.groups)this.#t.set(r.id,new k(r.name,r.intent));if(c.baseState==="OFF")for(const r of this.#t.values())r._setVisible(P,!1);for(const r of c.on)this.#t.get(r)._setVisible(P,!0);for(const r of c.off)this.#t.get(r)._setVisible(P,!1);this.#s=this.getHash()}}#r(c){const r=c.length;if(r<2)return!0;const l=c[0];for(let h=1;h<r;h++){const n=c[h];let p;if(Array.isArray(n))p=this.#r(n);else if(this.#t.has(n))p=this.#t.get(n).visible;else return(0,i.warn)(`Optional content group not found: ${n}`),!0;switch(l){case"And":if(!p)return!1;break;case"Or":if(p)return!0;break;case"Not":return!p;default:return!0}}return l==="And"}isVisible(c){if(this.#t.size===0)return!0;if(!c)return(0,i.warn)("Optional content group not defined."),!0;if(c.type==="OCG")return this.#t.has(c.id)?this.#t.get(c.id).visible:((0,i.warn)(`Optional content group not found: ${c.id}`),!0);if(c.type==="OCMD"){if(c.expression)return this.#r(c.expression);if(!c.policy||c.policy==="AnyOn"){for(const r of c.ids){if(!this.#t.has(r))return(0,i.warn)(`Optional content group not found: ${r}`),!0;if(this.#t.get(r).visible)return!0}return!1}else if(c.policy==="AllOn"){for(const r of c.ids){if(!this.#t.has(r))return(0,i.warn)(`Optional content group not found: ${r}`),!0;if(!this.#t.get(r).visible)return!1}return!0}else if(c.policy==="AnyOff"){for(const r of c.ids){if(!this.#t.has(r))return(0,i.warn)(`Optional content group not found: ${r}`),!0;if(!this.#t.get(r).visible)return!0}return!1}else if(c.policy==="AllOff"){for(const r of c.ids){if(!this.#t.has(r))return(0,i.warn)(`Optional content group not found: ${r}`),!0;if(this.#t.get(r).visible)return!1}return!0}return(0,i.warn)(`Unknown optional content policy ${c.policy}.`),!0}return(0,i.warn)(`Unknown group type ${c.type}.`),!0}setVisibility(c,r=!0){if(!this.#t.has(c)){(0,i.warn)(`Optional content group not found: ${c}`);return}this.#t.get(c)._setVisible(P,!!r),this.#e=null}get hasInitialVisibility(){return this.getHash()===this.#s}getOrder(){return this.#t.size?this.#i?this.#i.slice():[...this.#t.keys()]:null}getGroups(){return this.#t.size>0?(0,i.objectFromMap)(this.#t):null}getGroup(c){return this.#t.get(c)||null}getHash(){if(this.#e!==null)return this.#e;const c=new u.MurmurHash3_64;for(const[r,l]of this.#t)c.update(`${r}:${l.visible}`);return this.#e=c.hexdigest()}}t.OptionalContentConfig=T}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var i=v(1),u=v(6);class P{constructor({length:c,initialData:r,progressiveDone:l=!1,contentDispositionFilename:h=null,disableRange:n=!1,disableStream:p=!1},m){if((0,i.assert)(m,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=l,this._contentDispositionFilename=h,r?.length>0){const f=r instanceof Uint8Array&&r.byteLength===r.buffer.byteLength?r.buffer:new Uint8Array(r).buffer;this._queuedChunks.push(f)}this._pdfDataRangeTransport=m,this._isStreamingSupported=!p,this._isRangeSupported=!n,this._contentLength=c,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((f,b)=>{this._onReceiveData({begin:f,chunk:b})}),this._pdfDataRangeTransport.addProgressListener((f,b)=>{this._onProgress({loaded:f,total:b})}),this._pdfDataRangeTransport.addProgressiveReadListener(f=>{this._onReceiveData({chunk:f})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData({begin:c,chunk:r}){const l=r instanceof Uint8Array&&r.byteLength===r.buffer.byteLength?r.buffer:new Uint8Array(r).buffer;if(c===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(l):this._queuedChunks.push(l);else{const h=this._rangeReaders.some(function(n){return n._begin!==c?!1:(n._enqueue(l),!0)});(0,i.assert)(h,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(c){c.total===void 0?this._rangeReaders[0]?.onProgress?.({loaded:c.loaded}):this._fullRequestReader?.onProgress?.({loaded:c.loaded,total:c.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(c){const r=this._rangeReaders.indexOf(c);r>=0&&this._rangeReaders.splice(r,1)}getFullReader(){(0,i.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const c=this._queuedChunks;return this._queuedChunks=null,new k(this,c,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(c,r){if(r<=this._progressiveDataLength)return null;const l=new T(this,c,r);return this._pdfDataRangeTransport.requestDataRange(c,r),this._rangeReaders.push(l),l}cancelAllRequests(c){this._fullRequestReader?.cancel(c);for(const r of this._rangeReaders.slice(0))r.cancel(c);this._pdfDataRangeTransport.abort()}}t.PDFDataTransportStream=P;class k{constructor(c,r,l=!1,h=null){this._stream=c,this._done=l||!1,this._filename=(0,u.isPdfFile)(h)?h:null,this._queuedChunks=r||[],this._loaded=0;for(const n of this._queuedChunks)this._loaded+=n.byteLength;this._requests=[],this._headersReady=Promise.resolve(),c._fullRequestReader=this,this.onProgress=null}_enqueue(c){this._done||(this._requests.length>0?this._requests.shift().resolve({value:c,done:!1}):this._queuedChunks.push(c),this._loaded+=c.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const c=(0,i.createPromiseCapability)();return this._requests.push(c),c.promise}cancel(c){this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class T{constructor(c,r,l){this._stream=c,this._begin=r,this._end=l,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(c){if(!this._done){if(this._requests.length===0)this._queuedChunk=c;else{this._requests.shift().resolve({value:c,done:!1});for(const l of this._requests)l.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const r=this._queuedChunk;return this._queuedChunk=null,{value:r,done:!1}}if(this._done)return{value:void 0,done:!0};const c=(0,i.createPromiseCapability)();return this._requests.push(c),c.promise}cancel(c){this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}}),((_,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaText=void 0;class v{static textContent(u){const P=[],k={items:P,styles:Object.create(null)};function T(y){if(!y)return;let c=null;const r=y.name;if(r==="#text")c=y.value;else if(v.shouldBuildText(r))y?.attributes?.textContent?c=y.attributes.textContent:y.value&&(c=y.value);else return;if(c!==null&&P.push({str:c}),!!y.children)for(const l of y.children)T(l)}return T(u),k}static shouldBuildText(u){return!(u==="textarea"||u==="input"||u==="option"||u==="select")}}t.XfaText=v}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0;var i=v(7);const u=function(y){return new Promise((c,r)=>{require$$5.readFile(y,(h,n)=>{if(h||!n){r(new Error(h));return}c(new Uint8Array(n))})})};class P extends i.BaseCanvasFactory{_createCanvas(c,r){return require$$5.createCanvas(c,r)}}t.NodeCanvasFactory=P;class k extends i.BaseCMapReaderFactory{_fetchData(c,r){return u(c).then(l=>({cMapData:l,compressionType:r}))}}t.NodeCMapReaderFactory=k;class T extends i.BaseStandardFontDataFactory{_fetchData(c){return u(c)}}t.NodeStandardFontDataFactory=T}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var i=v(1),u=v(22);const P=require$$5,k=require$$5,T=require$$5,y=require$$5,c=/^file:\/\/\/[a-zA-Z]:\//;function r(I){const w=y.parse(I);return w.protocol==="file:"||w.host?w:/^[a-z]:[/\\]/i.test(I)?y.parse(`file:///${I}`):(w.host||(w.protocol="file:"),w)}class l{constructor(w){this.source=w,this.url=r(w.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&w.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,i.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new b(this):new m(this),this._fullRequestReader}getRangeReader(w,a){if(a<=this._progressiveDataLength)return null;const g=this.isFsUrl?new E(this,w,a):new f(this,w,a);return this._rangeRequestReaders.push(g),g}cancelAllRequests(w){this._fullRequestReader?.cancel(w);for(const a of this._rangeRequestReaders.slice(0))a.cancel(w)}}t.PDFNodeStream=l;class h{constructor(w){this._url=w.url,this._done=!1,this._storedError=null,this.onProgress=null;const a=w.source;this._contentLength=a.length,this._loaded=0,this._filename=null,this._disableRange=a.disableRange||!1,this._rangeChunkSize=a.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!a.disableStream,this._isRangeSupported=!a.disableRange,this._readableStream=null,this._readCapability=(0,i.createPromiseCapability)(),this._headersCapability=(0,i.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const w=this._readableStream.read();return w===null?(this._readCapability=(0,i.createPromiseCapability)(),this.read()):(this._loaded+=w.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(w).buffer,done:!1})}cancel(w){if(!this._readableStream){this._error(w);return}this._readableStream.destroy(w)}_error(w){this._storedError=w,this._readCapability.resolve()}_setReadableStream(w){this._readableStream=w,w.on("readable",()=>{this._readCapability.resolve()}),w.on("end",()=>{w.destroy(),this._done=!0,this._readCapability.resolve()}),w.on("error",a=>{this._error(a)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new i.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class n{constructor(w){this._url=w.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,i.createPromiseCapability)();const a=w.source;this._isStreamingSupported=!a.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const w=this._readableStream.read();return w===null?(this._readCapability=(0,i.createPromiseCapability)(),this.read()):(this._loaded+=w.length,this.onProgress?.({loaded:this._loaded}),{value:new Uint8Array(w).buffer,done:!1})}cancel(w){if(!this._readableStream){this._error(w);return}this._readableStream.destroy(w)}_error(w){this._storedError=w,this._readCapability.resolve()}_setReadableStream(w){this._readableStream=w,w.on("readable",()=>{this._readCapability.resolve()}),w.on("end",()=>{w.destroy(),this._done=!0,this._readCapability.resolve()}),w.on("error",a=>{this._error(a)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function p(I,w){return{protocol:I.protocol,auth:I.auth,host:I.hostname,port:I.port,path:I.path,method:"GET",headers:w}}class m extends h{constructor(w){super(w);const a=g=>{if(g.statusCode===404){const B=new i.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=B,this._headersCapability.reject(B);return}this._headersCapability.resolve(),this._setReadableStream(g);const R=B=>this._readableStream.headers[B.toLowerCase()],{allowRangeRequests:$,suggestedLength:D}=(0,u.validateRangeRequestCapabilities)({getResponseHeader:R,isHttp:w.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=$,this._contentLength=D||this._contentLength,this._filename=(0,u.extractFilenameFromHeader)(R)};this._request=null,this._url.protocol==="http:"?this._request=k.request(p(this._url,w.httpHeaders),a):this._request=T.request(p(this._url,w.httpHeaders),a),this._request.on("error",g=>{this._storedError=g,this._headersCapability.reject(g)}),this._request.end()}}class f extends n{constructor(w,a,g){super(w),this._httpHeaders={};for(const $ in w.httpHeaders){const D=w.httpHeaders[$];D!==void 0&&(this._httpHeaders[$]=D)}this._httpHeaders.Range=`bytes=${a}-${g-1}`;const R=$=>{if($.statusCode===404){const D=new i.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=D;return}this._setReadableStream($)};this._request=null,this._url.protocol==="http:"?this._request=k.request(p(this._url,this._httpHeaders),R):this._request=T.request(p(this._url,this._httpHeaders),R),this._request.on("error",$=>{this._storedError=$}),this._request.end()}}class b extends h{constructor(w){super(w);let a=decodeURIComponent(this._url.path);c.test(this._url.href)&&(a=a.replace(/^\//,"")),P.lstat(a,(g,R)=>{if(g){g.code==="ENOENT"&&(g=new i.MissingPDFException(`Missing PDF "${a}".`)),this._storedError=g,this._headersCapability.reject(g);return}this._contentLength=R.size,this._setReadableStream(P.createReadStream(a)),this._headersCapability.resolve()})}}class E extends n{constructor(w,a,g){super(w);let R=decodeURIComponent(this._url.path);c.test(this._url.href)&&(R=R.replace(/^\//,"")),this._setReadableStream(P.createReadStream(R,{start:a,end:g-1}))}}}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=y,t.extractFilenameFromHeader=T,t.validateRangeRequestCapabilities=k,t.validateResponseStatus=c;var i=v(1),u=v(23),P=v(6);function k({getResponseHeader:r,isHttp:l,rangeChunkSize:h,disableRange:n}){const p={allowRangeRequests:!1,suggestedLength:void 0},m=parseInt(r("Content-Length"),10);return!Number.isInteger(m)||(p.suggestedLength=m,m<=2*h)||n||!l||r("Accept-Ranges")!=="bytes"||(r("Content-Encoding")||"identity")!=="identity"||(p.allowRangeRequests=!0),p}function T(r){const l=r("Content-Disposition");if(l){let h=(0,u.getFilenameFromContentDispositionHeader)(l);if(h.includes("%"))try{h=decodeURIComponent(h)}catch{}if((0,P.isPdfFile)(h))return h}return null}function y(r,l){return r===404||r===0&&l.startsWith("file:")?new i.MissingPDFException('Missing PDF "'+l+'".'):new i.UnexpectedResponseException(`Unexpected server response (${r}) while retrieving PDF "${l}".`,r)}function c(r){return r===200||r===206}}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=u;var i=v(1);function u(P){let k=!0,T=y("filename\\*","i").exec(P);if(T){T=T[1];let m=h(T);return m=unescape(m),m=n(m),m=p(m),r(m)}if(T=l(P),T){const m=p(T);return r(m)}if(T=y("filename","i").exec(P),T){T=T[1];let m=h(T);return m=p(m),r(m)}function y(m,f){return new RegExp("(?:^|;)\\s*"+m+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',f)}function c(m,f){if(m){if(!/^[\x00-\xFF]+$/.test(f))return f;try{const b=new TextDecoder(m,{fatal:!0}),E=(0,i.stringToBytes)(f);f=b.decode(E),k=!1}catch{}}return f}function r(m){return k&&/[\x80-\xff]/.test(m)&&(m=c("utf-8",m),k&&(m=c("iso-8859-1",m))),m}function l(m){const f=[];let b;const E=y("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(b=E.exec(m))!==null;){let[,w,a,g]=b;if(w=parseInt(w,10),w in f){if(w===0)break;continue}f[w]=[a,g]}const I=[];for(let w=0;w<f.length&&w in f;++w){let[a,g]=f[w];g=h(g),a&&(g=unescape(g),w===0&&(g=n(g))),I.push(g)}return I.join("")}function h(m){if(m.startsWith('"')){const f=m.slice(1).split('\\"');for(let b=0;b<f.length;++b){const E=f[b].indexOf('"');E!==-1&&(f[b]=f[b].slice(0,E),f.length=b+1),f[b]=f[b].replace(/\\(.)/g,"$1")}m=f.join('"')}return m}function n(m){const f=m.indexOf("'");if(f===-1)return m;const b=m.slice(0,f),I=m.slice(f+1).replace(/^[^']*'/,"");return c(b,I)}function p(m){return!m.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(m)?m:m.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(f,b,E,I){if(E==="q"||E==="Q")return I=I.replace(/_/g," "),I=I.replace(/=([0-9a-fA-F]{2})/g,function(w,a){return String.fromCharCode(parseInt(a,16))}),c(b,I);try{I=atob(I)}catch{}return c(b,I)})}return""}}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var i=v(1),u=v(22);const P=200,k=206;function T(h){const n=h.response;return typeof n!="string"?n:(0,i.stringToBytes)(n).buffer}class y{constructor(n,p={}){this.url=n,this.isHttp=/^https?:/i.test(n),this.httpHeaders=this.isHttp&&p.httpHeaders||Object.create(null),this.withCredentials=p.withCredentials||!1,this.getXhr=p.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(n,p,m){const f={begin:n,end:p};for(const b in m)f[b]=m[b];return this.request(f)}requestFull(n){return this.request(n)}request(n){const p=this.getXhr(),m=this.currXhrId++,f=this.pendingRequests[m]={xhr:p};p.open("GET",this.url),p.withCredentials=this.withCredentials;for(const b in this.httpHeaders){const E=this.httpHeaders[b];E!==void 0&&p.setRequestHeader(b,E)}return this.isHttp&&"begin"in n&&"end"in n?(p.setRequestHeader("Range",`bytes=${n.begin}-${n.end-1}`),f.expectedStatus=k):f.expectedStatus=P,p.responseType="arraybuffer",n.onError&&(p.onerror=function(b){n.onError(p.status)}),p.onreadystatechange=this.onStateChange.bind(this,m),p.onprogress=this.onProgress.bind(this,m),f.onHeadersReceived=n.onHeadersReceived,f.onDone=n.onDone,f.onError=n.onError,f.onProgress=n.onProgress,p.send(null),m}onProgress(n,p){const m=this.pendingRequests[n];m&&m.onProgress?.(p)}onStateChange(n,p){const m=this.pendingRequests[n];if(!m)return;const f=m.xhr;if(f.readyState>=2&&m.onHeadersReceived&&(m.onHeadersReceived(),delete m.onHeadersReceived),f.readyState!==4||!(n in this.pendingRequests))return;if(delete this.pendingRequests[n],f.status===0&&this.isHttp){m.onError?.(f.status);return}const b=f.status||P;if(!(b===P&&m.expectedStatus===k)&&b!==m.expectedStatus){m.onError?.(f.status);return}const I=T(f);if(b===k){const w=f.getResponseHeader("Content-Range"),a=/bytes (\d+)-(\d+)\/(\d+)/.exec(w);m.onDone({begin:parseInt(a[1],10),chunk:I})}else I?m.onDone({begin:0,chunk:I}):m.onError?.(f.status)}getRequestXhr(n){return this.pendingRequests[n].xhr}isPendingRequest(n){return n in this.pendingRequests}abortRequest(n){const p=this.pendingRequests[n].xhr;delete this.pendingRequests[n],p.abort()}}class c{constructor(n){this._source=n,this._manager=new y(n.url,{httpHeaders:n.httpHeaders,withCredentials:n.withCredentials}),this._rangeChunkSize=n.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(n){const p=this._rangeRequestReaders.indexOf(n);p>=0&&this._rangeRequestReaders.splice(p,1)}getFullReader(){return(0,i.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new r(this._manager,this._source),this._fullRequestReader}getRangeReader(n,p){const m=new l(this._manager,n,p);return m.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(m),m}cancelAllRequests(n){this._fullRequestReader?.cancel(n);for(const p of this._rangeRequestReaders.slice(0))p.cancel(n)}}t.PDFNetworkStream=c;class r{constructor(n,p){this._manager=n;const m={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=p.url,this._fullRequestId=n.requestFull(m),this._headersReceivedCapability=(0,i.createPromiseCapability)(),this._disableRange=p.disableRange||!1,this._contentLength=p.length,this._rangeChunkSize=p.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const n=this._fullRequestId,p=this._manager.getRequestXhr(n),m=E=>p.getResponseHeader(E),{allowRangeRequests:f,suggestedLength:b}=(0,u.validateRangeRequestCapabilities)({getResponseHeader:m,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});f&&(this._isRangeSupported=!0),this._contentLength=b||this._contentLength,this._filename=(0,u.extractFilenameFromHeader)(m),this._isRangeSupported&&this._manager.abortRequest(n),this._headersReceivedCapability.resolve()}_onDone(n){if(n&&(this._requests.length>0?this._requests.shift().resolve({value:n.chunk,done:!1}):this._cachedChunks.push(n.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const p of this._requests)p.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(n){this._storedError=(0,u.createResponseStatusError)(n,this._url),this._headersReceivedCapability.reject(this._storedError);for(const p of this._requests)p.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(n){this.onProgress?.({loaded:n.loaded,total:n.lengthComputable?n.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const n=(0,i.createPromiseCapability)();return this._requests.push(n),n.promise}cancel(n){this._done=!0,this._headersReceivedCapability.reject(n);for(const p of this._requests)p.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class l{constructor(n,p,m){this._manager=n;const f={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=n.url,this._requestId=n.requestRange(p,m,f),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){this.onClosed?.(this)}_onDone(n){const p=n.chunk;this._requests.length>0?this._requests.shift().resolve({value:p,done:!1}):this._queuedChunk=p,this._done=!0;for(const m of this._requests)m.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(n){this._storedError=(0,u.createResponseStatusError)(n,this._url);for(const p of this._requests)p.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(n){this.isStreamingSupported||this.onProgress?.({loaded:n.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const p=this._queuedChunk;return this._queuedChunk=null,{value:p,done:!1}}if(this._done)return{value:void 0,done:!0};const n=(0,i.createPromiseCapability)();return this._requests.push(n),n.promise}cancel(n){this._done=!0;for(const p of this._requests)p.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var i=v(1),u=v(22);function P(l,h,n){return{method:"GET",headers:l,signal:n.signal,mode:"cors",credentials:h?"include":"same-origin",redirect:"follow"}}function k(l){const h=new Headers;for(const n in l){const p=l[n];p!==void 0&&h.append(n,p)}return h}function T(l){return l instanceof Uint8Array?l.buffer:l instanceof ArrayBuffer?l:((0,i.warn)(`getArrayBuffer - unexpected data format: ${l}`),new Uint8Array(l).buffer)}class y{constructor(h){this.source=h,this.isHttp=/^https?:/i.test(h.url),this.httpHeaders=this.isHttp&&h.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,i.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new c(this),this._fullRequestReader}getRangeReader(h,n){if(n<=this._progressiveDataLength)return null;const p=new r(this,h,n);return this._rangeRequestReaders.push(p),p}cancelAllRequests(h){this._fullRequestReader?.cancel(h);for(const n of this._rangeRequestReaders.slice(0))n.cancel(h)}}t.PDFFetchStream=y;class c{constructor(h){this._stream=h,this._reader=null,this._loaded=0,this._filename=null;const n=h.source;this._withCredentials=n.withCredentials||!1,this._contentLength=n.length,this._headersCapability=(0,i.createPromiseCapability)(),this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._headers=k(this._stream.httpHeaders);const p=n.url;fetch(p,P(this._headers,this._withCredentials,this._abortController)).then(m=>{if(!(0,u.validateResponseStatus)(m.status))throw(0,u.createResponseStatusError)(m.status,p);this._reader=m.body.getReader(),this._headersCapability.resolve();const f=I=>m.headers.get(I),{allowRangeRequests:b,suggestedLength:E}=(0,u.validateRangeRequestCapabilities)({getResponseHeader:f,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=b,this._contentLength=E||this._contentLength,this._filename=(0,u.extractFilenameFromHeader)(f),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new i.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:h,done:n}=await this._reader.read();return n?{value:h,done:n}:(this._loaded+=h.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:T(h),done:!1})}cancel(h){this._reader?.cancel(h),this._abortController.abort()}}class r{constructor(h,n,p){this._stream=h,this._reader=null,this._loaded=0;const m=h.source;this._withCredentials=m.withCredentials||!1,this._readCapability=(0,i.createPromiseCapability)(),this._isStreamingSupported=!m.disableStream,this._abortController=new AbortController,this._headers=k(this._stream.httpHeaders),this._headers.append("Range",`bytes=${n}-${p-1}`);const f=m.url;fetch(f,P(this._headers,this._withCredentials,this._abortController)).then(b=>{if(!(0,u.validateResponseStatus)(b.status))throw(0,u.createResponseStatusError)(b.status,f);this._readCapability.resolve(),this._reader=b.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:h,done:n}=await this._reader.read();return n?{value:h,done:n}:(this._loaded+=h.byteLength,this.onProgress?.({loaded:this._loaded}),{value:T(h),done:!1})}cancel(h){this._reader?.cancel(h),this._abortController.abort()}}}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerRenderTask=void 0,t.renderTextLayer=m,t.updateTextLayer=f;var i=v(1),u=v(6);const P=1e5,k=30,T=.8,y=new Map;function c(b,E){let I;if(E&&i.FeatureTest.isOffscreenCanvasSupported)I=new OffscreenCanvas(b,b).getContext("2d",{alpha:!1});else{const w=document.createElement("canvas");w.width=w.height=b,I=w.getContext("2d",{alpha:!1})}return I}function r(b,E){const I=y.get(b);if(I)return I;const w=c(k,E);w.font=`${k}px ${b}`;const a=w.measureText("");let g=a.fontBoundingBoxAscent,R=Math.abs(a.fontBoundingBoxDescent);if(g){const D=g/(g+R);return y.set(b,D),w.canvas.width=w.canvas.height=0,D}w.strokeStyle="red",w.clearRect(0,0,k,k),w.strokeText("g",0,0);let $=w.getImageData(0,0,k,k).data;R=0;for(let D=$.length-1-3;D>=0;D-=4)if($[D]>0){R=Math.ceil(D/4/k);break}w.clearRect(0,0,k,k),w.strokeText("A",0,k),$=w.getImageData(0,0,k,k).data,g=0;for(let D=0,B=$.length;D<B;D+=4)if($[D]>0){g=k-Math.floor(D/4/k);break}if(w.canvas.width=w.canvas.height=0,g){const D=g/(g+R);return y.set(b,D),D}return y.set(b,T),T}function l(b,E,I){const w=document.createElement("span"),a={angle:0,canvasWidth:0,hasText:E.str!=="",hasEOL:E.hasEOL,fontSize:0};b._textDivs.push(w);const g=i.Util.transform(b._transform,E.transform);let R=Math.atan2(g[1],g[0]);const $=I[E.fontName];$.vertical&&(R+=Math.PI/2);const D=Math.hypot(g[2],g[3]),B=D*r($.fontFamily,b._isOffscreenCanvasSupported);let q,J;R===0?(q=g[4],J=g[5]-B):(q=g[4]+B*Math.sin(R),J=g[5]-B*Math.cos(R));const se="calc(var(--scale-factor)*",Q=w.style;b._container===b._rootContainer?(Q.left=`${(100*q/b._pageWidth).toFixed(2)}%`,Q.top=`${(100*J/b._pageHeight).toFixed(2)}%`):(Q.left=`${se}${q.toFixed(2)}px)`,Q.top=`${se}${J.toFixed(2)}px)`),Q.fontSize=`${se}${D.toFixed(2)}px)`,Q.fontFamily=$.fontFamily,a.fontSize=D,w.setAttribute("role","presentation"),w.textContent=E.str,w.dir=E.dir,b._fontInspectorEnabled&&(w.dataset.fontName=E.fontName),R!==0&&(a.angle=R*(180/Math.PI));let H=!1;if(E.str.length>1)H=!0;else if(E.str!==" "&&E.transform[0]!==E.transform[3]){const U=Math.abs(E.transform[0]),W=Math.abs(E.transform[3]);U!==W&&Math.max(U,W)/Math.min(U,W)>1.5&&(H=!0)}H&&(a.canvasWidth=$.vertical?E.height:E.width),b._textDivProperties.set(w,a),b._isReadableStream&&b._layoutText(w)}function h(b){const{div:E,scale:I,properties:w,ctx:a,prevFontSize:g,prevFontFamily:R}=b,{style:$}=E;let D="";if(w.canvasWidth!==0&&w.hasText){const{fontFamily:B}=$,{canvasWidth:q,fontSize:J}=w;(g!==J||R!==B)&&(a.font=`${J*I}px ${B}`,b.prevFontSize=J,b.prevFontFamily=B);const{width:se}=a.measureText(E.textContent);se>0&&(D=`scaleX(${q*I/se})`)}w.angle!==0&&(D=`rotate(${w.angle}deg) ${D}`),D.length>0&&($.transform=D)}function n(b){if(b._canceled)return;const E=b._textDivs,I=b._capability;if(E.length>P){I.resolve();return}if(!b._isReadableStream)for(const a of E)b._layoutText(a);I.resolve()}class p{constructor({textContentSource:E,container:I,viewport:w,textDivs:a,textDivProperties:g,textContentItemsStr:R,isOffscreenCanvasSupported:$}){this._textContentSource=E,this._isReadableStream=E instanceof ReadableStream,this._container=this._rootContainer=I,this._textDivs=a||[],this._textContentItemsStr=R||[],this._isOffscreenCanvasSupported=$,this._fontInspectorEnabled=!!globalThis.FontInspector?.enabled,this._reader=null,this._textDivProperties=g||new WeakMap,this._canceled=!1,this._capability=(0,i.createPromiseCapability)(),this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:w.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:c(0,$)};const{pageWidth:D,pageHeight:B,pageX:q,pageY:J}=w.rawDims;this._transform=[1,0,0,-1,-q,J+B],this._pageWidth=D,this._pageHeight=B,(0,u.setLayerDimensions)(I,w),this._capability.promise.finally(()=>{this._layoutTextParams=null}).catch(()=>{})}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new i.AbortException("TextLayer task cancelled.")).catch(()=>{}),this._reader=null),this._capability.reject(new i.AbortException("TextLayer task cancelled."))}_processItems(E,I){for(const w of E){if(w.str===void 0){if(w.type==="beginMarkedContentProps"||w.type==="beginMarkedContent"){const a=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),w.id!==null&&this._container.setAttribute("id",`${w.id}`),a.append(this._container)}else w.type==="endMarkedContent"&&(this._container=this._container.parentNode);continue}this._textContentItemsStr.push(w.str),l(this,w,I)}}_layoutText(E){const I=this._layoutTextParams.properties=this._textDivProperties.get(E);if(this._layoutTextParams.div=E,h(this._layoutTextParams),I.hasText&&this._container.append(E),I.hasEOL){const w=document.createElement("br");w.setAttribute("role","presentation"),this._container.append(w)}}_render(){const E=(0,i.createPromiseCapability)();let I=Object.create(null);if(this._isReadableStream){const w=()=>{this._reader.read().then(({value:a,done:g})=>{if(g){E.resolve();return}Object.assign(I,a.styles),this._processItems(a.items,I),w()},E.reject)};this._reader=this._textContentSource.getReader(),w()}else if(this._textContentSource){const{items:w,styles:a}=this._textContentSource;this._processItems(w,a),E.resolve()}else throw new Error('No "textContentSource" parameter specified.');E.promise.then(()=>{I=null,n(this)},this._capability.reject)}}t.TextLayerRenderTask=p;function m(b){!b.textContentSource&&(b.textContent||b.textContentStream)&&((0,u.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),b.textContentSource=b.textContent||b.textContentStream);const E=new p(b);return E._render(),E}function f({container:b,viewport:E,textDivs:I,textDivProperties:w,isOffscreenCanvasSupported:a,mustRotate:g=!0,mustRescale:R=!0}){if(g&&(0,u.setLayerDimensions)(b,{rotation:E.rotation}),R){const $=c(0,a),B={prevFontSize:null,prevFontFamily:null,div:null,scale:E.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:$};for(const q of I)B.properties=w.get(q),B.div=q,h(B)}}}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayer=void 0;var i=v(1),u=v(5),P=v(28),k=v(29),T=v(6);class y{#e;#t=!1;#s=this.pointerup.bind(this);#i=this.pointerdown.bind(this);#r=new Map;#l=!1;#c=!1;#n;static _initialized=!1;constructor(r){y._initialized||(y._initialized=!0,P.FreeTextEditor.initialize(r.l10n),k.InkEditor.initialize(r.l10n)),r.uiManager.registerEditorTypes([P.FreeTextEditor,k.InkEditor]),this.#n=r.uiManager,this.pageIndex=r.pageIndex,this.div=r.div,this.#e=r.accessibilityManager,this.#n.addLayer(this)}get isEmpty(){return this.#r.size===0}updateToolbar(r){this.#n.updateToolbar(r)}updateMode(r=this.#n.getMode()){this.#h(),r===i.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),this.#n.unselectAll(),r!==i.AnnotationEditorType.NONE&&(this.div.classList.toggle("freeTextEditing",r===i.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",r===i.AnnotationEditorType.INK),this.div.hidden=!1)}addInkEditorIfNeeded(r){if(!r&&this.#n.getMode()!==i.AnnotationEditorType.INK)return;if(!r){for(const h of this.#r.values())if(h.isEmpty()){h.setInBackground();return}}this.#d({offsetX:0,offsetY:0}).setInBackground()}setEditingState(r){this.#n.setEditingState(r)}addCommands(r){this.#n.addCommands(r)}enable(){this.div.style.pointerEvents="auto";for(const r of this.#r.values())r.enableEditing()}disable(){this.div.style.pointerEvents="none";for(const r of this.#r.values())r.disableEditing();this.#h(),this.isEmpty&&(this.div.hidden=!0)}setActiveEditor(r){this.#n.getActive()!==r&&this.#n.setActiveEditor(r)}enableClick(){this.div.addEventListener("pointerdown",this.#i),this.div.addEventListener("pointerup",this.#s)}disableClick(){this.div.removeEventListener("pointerdown",this.#i),this.div.removeEventListener("pointerup",this.#s)}attach(r){this.#r.set(r.id,r)}detach(r){this.#r.delete(r.id),this.#e?.removePointerInTextLayer(r.contentDiv)}remove(r){this.#n.removeEditor(r),this.detach(r),r.div.style.display="none",setTimeout(()=>{r.div.style.display="",r.div.remove(),r.isAttachedToDOM=!1,document.activeElement===document.body&&this.#n.focusMainContainer()},0),this.#c||this.addInkEditorIfNeeded(!1)}#a(r){r.parent!==this&&(this.attach(r),r.parent?.detach(r),r.setParent(this),r.div&&r.isAttachedToDOM&&(r.div.remove(),this.div.append(r.div)))}add(r){if(this.#a(r),this.#n.addEditor(r),this.attach(r),!r.isAttachedToDOM){const l=r.render();this.div.append(l),r.isAttachedToDOM=!0}this.moveEditorInDOM(r),r.onceAdded(),this.#n.addToAnnotationStorage(r)}moveEditorInDOM(r){this.#e?.moveElementInDOM(this.div,r.div,r.contentDiv,!0)}addOrRebuild(r){r.needsToBeRebuilt()?r.rebuild():this.add(r)}addANewEditor(r){const l=()=>{this.addOrRebuild(r)},h=()=>{r.remove()};this.addCommands({cmd:l,undo:h,mustExec:!0})}addUndoableEditor(r){const l=()=>{this.addOrRebuild(r)},h=()=>{r.remove()};this.addCommands({cmd:l,undo:h,mustExec:!1})}getNextId(){return this.#n.getId()}#f(r){switch(this.#n.getMode()){case i.AnnotationEditorType.FREETEXT:return new P.FreeTextEditor(r);case i.AnnotationEditorType.INK:return new k.InkEditor(r)}return null}deserialize(r){switch(r.annotationType){case i.AnnotationEditorType.FREETEXT:return P.FreeTextEditor.deserialize(r,this,this.#n);case i.AnnotationEditorType.INK:return k.InkEditor.deserialize(r,this,this.#n)}return null}#d(r){const l=this.getNextId(),h=this.#f({parent:this,id:l,x:r.offsetX,y:r.offsetY,uiManager:this.#n});return h&&this.add(h),h}setSelected(r){this.#n.setSelected(r)}toggleSelected(r){this.#n.toggleSelected(r)}isSelected(r){return this.#n.isSelected(r)}unselect(r){this.#n.unselect(r)}pointerup(r){const{isMac:l}=i.FeatureTest.platform;if(!(r.button!==0||r.ctrlKey&&l)&&r.target===this.div&&this.#l){if(this.#l=!1,!this.#t){this.#t=!0;return}this.#d(r)}}pointerdown(r){const{isMac:l}=i.FeatureTest.platform;if(r.button!==0||r.ctrlKey&&l||r.target!==this.div)return;this.#l=!0;const h=this.#n.getActive();this.#t=!h||h.isEmpty()}drop(r){const l=r.dataTransfer.getData("text/plain"),h=this.#n.getEditor(l);if(!h)return;r.preventDefault(),r.dataTransfer.dropEffect="move",this.#a(h);const n=this.div.getBoundingClientRect(),p=r.clientX-n.x,m=r.clientY-n.y;h.translate(p-h.startX,m-h.startY),this.moveEditorInDOM(h),h.div.focus()}dragover(r){r.preventDefault()}destroy(){this.#n.getActive()?.parent===this&&this.#n.setActiveEditor(null);for(const r of this.#r.values())this.#e?.removePointerInTextLayer(r.contentDiv),r.setParent(null),r.isAttachedToDOM=!1,r.div.remove();this.div=null,this.#r.clear(),this.#n.removeLayer(this)}#h(){this.#c=!0;for(const r of this.#r.values())r.isEmpty()&&r.remove();this.#c=!1}render({viewport:r}){this.viewport=r,(0,T.setLayerDimensions)(this.div,r),(0,u.bindEvents)(this,this.div,["dragover","drop"]);for(const l of this.#n.getEditors(this.pageIndex))this.add(l);this.updateMode()}update({viewport:r}){this.#n.commitOrRemove(),this.viewport=r,(0,T.setLayerDimensions)(this.div,{rotation:r.rotation}),this.updateMode()}get pageDimensions(){const{pageWidth:r,pageHeight:l}=this.viewport.rawDims;return[r,l]}}t.AnnotationEditorLayer=y}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FreeTextEditor=void 0;var i=v(1),u=v(5),P=v(4);class k extends P.AnnotationEditor{#e=this.editorDivBlur.bind(this);#t=this.editorDivFocus.bind(this);#s=this.editorDivInput.bind(this);#i=this.editorDivKeydown.bind(this);#r;#l="";#c=`${this.id}-editor`;#n=!1;#a;static _freeTextDefaultContent="";static _l10nPromise;static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static _keyboardManager=new u.KeyboardManager([[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],k.prototype.commitOrRemove]]);static _type="freetext";constructor(y){super({...y,name:"freeTextEditor"}),this.#r=y.color||k._defaultColor||P.AnnotationEditor._defaultLineColor,this.#a=y.fontSize||k._defaultFontSize}static initialize(y){this._l10nPromise=new Map(["free_text2_default_content","editor_free_text2_aria_label"].map(r=>[r,y.get(r)]));const c=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(c.getPropertyValue("--freetext-padding"))}static updateDefaultParams(y,c){switch(y){case i.AnnotationEditorParamsType.FREETEXT_SIZE:k._defaultFontSize=c;break;case i.AnnotationEditorParamsType.FREETEXT_COLOR:k._defaultColor=c;break}}updateParams(y,c){switch(y){case i.AnnotationEditorParamsType.FREETEXT_SIZE:this.#f(c);break;case i.AnnotationEditorParamsType.FREETEXT_COLOR:this.#d(c);break}}static get defaultPropertiesToUpdate(){return[[i.AnnotationEditorParamsType.FREETEXT_SIZE,k._defaultFontSize],[i.AnnotationEditorParamsType.FREETEXT_COLOR,k._defaultColor||P.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[i.AnnotationEditorParamsType.FREETEXT_SIZE,this.#a],[i.AnnotationEditorParamsType.FREETEXT_COLOR,this.#r]]}#f(y){const c=l=>{this.editorDiv.style.fontSize=`calc(${l}px * var(--scale-factor))`,this.translate(0,-(l-this.#a)*this.parentScale),this.#a=l,this.#o()},r=this.#a;this.addCommands({cmd:()=>{c(y)},undo:()=>{c(r)},mustExec:!0,type:i.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}#d(y){const c=this.#r;this.addCommands({cmd:()=>{this.#r=this.editorDiv.style.color=y},undo:()=>{this.#r=this.editorDiv.style.color=c},mustExec:!0,type:i.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}getInitialTranslation(){const y=this.parentScale;return[-k._internalPadding*y,-(k._internalPadding+this.#a)*y]}rebuild(){super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(i.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this.div.draggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",this.#i),this.editorDiv.addEventListener("focus",this.#t),this.editorDiv.addEventListener("blur",this.#e),this.editorDiv.addEventListener("input",this.#s))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",this.#c),this.div.draggable=!0,this.editorDiv.removeEventListener("keydown",this.#i),this.editorDiv.removeEventListener("focus",this.#t),this.editorDiv.removeEventListener("blur",this.#e),this.editorDiv.removeEventListener("input",this.#s),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}focusin(y){super.focusin(y),y.target!==this.editorDiv&&this.editorDiv.focus()}onceAdded(){this.width||(this.enableEditMode(),this.editorDiv.focus())}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing"),super.remove()}#h(){const y=this.editorDiv.getElementsByTagName("div");if(y.length===0)return this.editorDiv.innerText;const c=[];for(const r of y)c.push(r.innerText.replace(/\r\n?|\n/,""));return c.join(`
18
- `)}#o(){const[y,c]=this.parentDimensions;let r;if(this.isAttachedToDOM)r=this.div.getBoundingClientRect();else{const{currentLayer:l,div:h}=this,n=h.style.display;h.style.display="hidden",l.div.append(this.div),r=h.getBoundingClientRect(),h.remove(),h.style.display=n}this.width=r.width/y,this.height=r.height/c}commit(){this.isInEditMode()&&(super.commit(),this.#n||(this.#n=!0,this.parent.addUndoableEditor(this)),this.disableEditMode(),this.#l=this.#h().trimEnd(),this.#o())}shouldGetKeyboardEvents(){return this.isInEditMode()}dblclick(y){this.enableEditMode(),this.editorDiv.focus()}keydown(y){y.target===this.div&&y.key==="Enter"&&(this.enableEditMode(),this.editorDiv.focus())}editorDivKeydown(y){k._keyboardManager.exec(this,y)}editorDivFocus(y){this.isEditing=!0}editorDivBlur(y){this.isEditing=!1}editorDivInput(y){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let y,c;this.width&&(y=this.x,c=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",this.#c),this.enableEditing(),k._l10nPromise.get("editor_free_text2_aria_label").then(l=>this.editorDiv?.setAttribute("aria-label",l)),k._l10nPromise.get("free_text2_default_content").then(l=>this.editorDiv?.setAttribute("default-content",l)),this.editorDiv.contentEditable=!0;const{style:r}=this.editorDiv;if(r.fontSize=`calc(${this.#a}px * var(--scale-factor))`,r.color=this.#r,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,u.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[l,h]=this.parentDimensions;this.setAt(y*l,c*h,this.width*l,this.height*h);for(const n of this.#l.split(`
19
- `)){const p=document.createElement("div");p.append(n?document.createTextNode(n):document.createElement("br")),this.editorDiv.append(p)}this.div.draggable=!0,this.editorDiv.contentEditable=!1}else this.div.draggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(y,c,r){const l=super.deserialize(y,c,r);return l.#a=y.fontSize,l.#r=i.Util.makeHexColor(...y.color),l.#l=y.value,l}serialize(){if(this.isEmpty())return null;const y=k._internalPadding*this.parentScale,c=this.getRect(y,y),r=P.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.#r);return{annotationType:i.AnnotationEditorType.FREETEXT,color:r,fontSize:this.#a,value:this.#l,pageIndex:this.pageIndex,rect:c,rotation:this.rotation}}}t.FreeTextEditor=k}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InkEditor=void 0,Object.defineProperty(t,"fitCurve",{enumerable:!0,get:function(){return P.fitCurve}});var i=v(1),u=v(4),P=v(30),k=v(5);const T=16,y=100;class c extends u.AnnotationEditor{#e=0;#t=0;#s=0;#i=this.canvasPointermove.bind(this);#r=this.canvasPointerleave.bind(this);#l=this.canvasPointerup.bind(this);#c=this.canvasPointerdown.bind(this);#n=!1;#a=!1;#f=null;#d=null;#h=0;#o=0;#m=null;static _defaultColor=null;static _defaultOpacity=1;static _defaultThickness=1;static _l10nPromise;static _type="ink";constructor(l){super({...l,name:"inkEditor"}),this.color=l.color||null,this.thickness=l.thickness||null,this.opacity=l.opacity||null,this.paths=[],this.bezierPath2D=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0}static initialize(l){this._l10nPromise=new Map(["editor_ink_canvas_aria_label","editor_ink2_aria_label"].map(h=>[h,l.get(h)]))}static updateDefaultParams(l,h){switch(l){case i.AnnotationEditorParamsType.INK_THICKNESS:c._defaultThickness=h;break;case i.AnnotationEditorParamsType.INK_COLOR:c._defaultColor=h;break;case i.AnnotationEditorParamsType.INK_OPACITY:c._defaultOpacity=h/100;break}}updateParams(l,h){switch(l){case i.AnnotationEditorParamsType.INK_THICKNESS:this.#E(h);break;case i.AnnotationEditorParamsType.INK_COLOR:this.#S(h);break;case i.AnnotationEditorParamsType.INK_OPACITY:this.#k(h);break}}static get defaultPropertiesToUpdate(){return[[i.AnnotationEditorParamsType.INK_THICKNESS,c._defaultThickness],[i.AnnotationEditorParamsType.INK_COLOR,c._defaultColor||u.AnnotationEditor._defaultLineColor],[i.AnnotationEditorParamsType.INK_OPACITY,Math.round(c._defaultOpacity*100)]]}get propertiesToUpdate(){return[[i.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||c._defaultThickness],[i.AnnotationEditorParamsType.INK_COLOR,this.color||c._defaultColor||u.AnnotationEditor._defaultLineColor],[i.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(this.opacity??c._defaultOpacity))]]}#E(l){const h=this.thickness;this.addCommands({cmd:()=>{this.thickness=l,this.#A()},undo:()=>{this.thickness=h,this.#A()},mustExec:!0,type:i.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}#S(l){const h=this.color;this.addCommands({cmd:()=>{this.color=l,this.#u()},undo:()=>{this.color=h,this.#u()},mustExec:!0,type:i.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}#k(l){l/=100;const h=this.opacity;this.addCommands({cmd:()=>{this.opacity=l,this.#u()},undo:()=>{this.opacity=h,this.#u()},mustExec:!0,type:i.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}rebuild(){super.rebuild(),this.div!==null&&(this.canvas||(this.#b(),this.#v()),this.isAttachedToDOM||(this.parent.add(this),this.#_()),this.#A())}remove(){this.canvas!==null&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,this.#d.disconnect(),this.#d=null,super.remove())}setParent(l){!this.parent&&l?this._uiManager.removeShouldRescale(this):this.parent&&l===null&&this._uiManager.addShouldRescale(this),super.setParent(l)}onScaleChanging(){const[l,h]=this.parentDimensions,n=this.width*l,p=this.height*h;this.setDimensions(n,p)}enableEditMode(){this.#n||this.canvas===null||(super.enableEditMode(),this.div.draggable=!1,this.canvas.addEventListener("pointerdown",this.#c),this.canvas.addEventListener("pointerup",this.#l))}disableEditMode(){!this.isInEditMode()||this.canvas===null||(super.disableEditMode(),this.div.draggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",this.#c),this.canvas.removeEventListener("pointerup",this.#l))}onceAdded(){this.div.draggable=!this.isEmpty()}isEmpty(){return this.paths.length===0||this.paths.length===1&&this.paths[0].length===0}#C(){const{parentRotation:l,parentDimensions:[h,n]}=this;switch(l){case 90:return[0,n,n,h];case 180:return[h,n,h,n];case 270:return[h,0,n,h];default:return[0,0,h,n]}}#y(){const{ctx:l,color:h,opacity:n,thickness:p,parentScale:m,scaleFactor:f}=this;l.lineWidth=p*m/f,l.lineCap="round",l.lineJoin="round",l.miterLimit=10,l.strokeStyle=`${h}${(0,k.opacityToHex)(n)}`}#R(l,h){this.isEditing=!0,this.#a||(this.#a=!0,this.#_(),this.thickness||=c._defaultThickness,this.color||=c._defaultColor||u.AnnotationEditor._defaultLineColor,this.opacity??=c._defaultOpacity),this.currentPath.push([l,h]),this.#f=null,this.#y(),this.ctx.beginPath(),this.ctx.moveTo(l,h),this.#m=()=>{this.#m&&(this.#f&&(this.isEmpty()?(this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)):this.#u(),this.ctx.lineTo(...this.#f),this.#f=null,this.ctx.stroke()),window.requestAnimationFrame(this.#m))},window.requestAnimationFrame(this.#m)}#T(l,h){const[n,p]=this.currentPath.at(-1);l===n&&h===p||(this.currentPath.push([l,h]),this.#f=[l,h])}#P(l,h){this.ctx.closePath(),this.#m=null,l=Math.min(Math.max(l,0),this.canvas.width),h=Math.min(Math.max(h,0),this.canvas.height);const[n,p]=this.currentPath.at(-1);(l!==n||h!==p)&&this.currentPath.push([l,h]);let m;if(this.currentPath.length!==1)m=(0,P.fitCurve)(this.currentPath,30,null);else{const I=[l,h];m=[[I,I.slice(),I.slice(),I]]}const f=c.#j(m);this.currentPath.length=0;const b=()=>{this.paths.push(m),this.bezierPath2D.push(f),this.rebuild()},E=()=>{this.paths.pop(),this.bezierPath2D.pop(),this.paths.length===0?this.remove():(this.canvas||(this.#b(),this.#v()),this.#A())};this.addCommands({cmd:b,undo:E,mustExec:!0})}#u(){if(this.isEmpty()){this.#g();return}this.#y();const{canvas:l,ctx:h}=this;h.setTransform(1,0,0,1,0,0),h.clearRect(0,0,l.width,l.height),this.#g();for(const n of this.bezierPath2D)h.stroke(n)}commit(){this.#n||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),this.#n=!0,this.div.classList.add("disabled"),this.#A(!0),this.parent.addInkEditorIfNeeded(!0),this.parent.moveEditorInDOM(this),this.div.focus({preventScroll:!0}))}focusin(l){super.focusin(l),this.enableEditMode()}canvasPointerdown(l){l.button!==0||!this.isInEditMode()||this.#n||(this.setInForeground(),l.type!=="mouse"&&this.div.focus(),l.stopPropagation(),this.canvas.addEventListener("pointerleave",this.#r),this.canvas.addEventListener("pointermove",this.#i),this.#R(l.offsetX,l.offsetY))}canvasPointermove(l){l.stopPropagation(),this.#T(l.offsetX,l.offsetY)}canvasPointerup(l){l.button===0&&this.isInEditMode()&&this.currentPath.length!==0&&(l.stopPropagation(),this.#F(l),this.setInBackground())}canvasPointerleave(l){this.#F(l),this.setInBackground()}#F(l){this.#P(l.offsetX,l.offsetY),this.canvas.removeEventListener("pointerleave",this.#r),this.canvas.removeEventListener("pointermove",this.#i),this.addToAnnotationStorage()}#b(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",c._l10nPromise.get("editor_ink_canvas_aria_label").then(l=>this.canvas?.setAttribute("aria-label",l)),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}#v(){let l=null;this.#d=new ResizeObserver(h=>{const n=h[0].contentRect;n.width&&n.height&&(l!==null&&clearTimeout(l),l=setTimeout(()=>{this.fixDims(),l=null},y),this.setDimensions(n.width,n.height))}),this.#d.observe(this.div)}render(){if(this.div)return this.div;let l,h;this.width&&(l=this.x,h=this.y),super.render(),c._l10nPromise.get("editor_ink2_aria_label").then(b=>this.div?.setAttribute("aria-label",b));const[n,p,m,f]=this.#C();if(this.setAt(n,p,0,0),this.setDims(m,f),this.#b(),this.width){const[b,E]=this.parentDimensions;this.setAt(l*b,h*E,this.width*b,this.height*E),this.#a=!0,this.#_(),this.setDims(this.width*b,this.height*E),this.#u(),this.#D(),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return this.#v(),this.div}#_(){if(!this.#a)return;const[l,h]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*l),this.canvas.height=Math.ceil(this.height*h),this.#g()}setDimensions(l,h){const n=Math.round(l),p=Math.round(h);if(this.#h===n&&this.#o===p)return;this.#h=n,this.#o=p,this.canvas.style.visibility="hidden",this.#e&&Math.abs(this.#e-l/h)>.01&&(h=Math.ceil(l/this.#e),this.setDims(l,h));const[m,f]=this.parentDimensions;this.width=l/m,this.height=h/f,this.#n&&this.#p(l,h),this.#_(),this.#u(),this.canvas.style.visibility="visible"}#p(l,h){const n=this.#O(),p=(l-n)/this.#s,m=(h-n)/this.#t;this.scaleFactor=Math.min(p,m)}#g(){const l=this.#O()/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+l,this.translationY*this.scaleFactor+l)}static#j(l){const h=new Path2D;for(let n=0,p=l.length;n<p;n++){const[m,f,b,E]=l[n];n===0&&h.moveTo(...m),h.bezierCurveTo(f[0],f[1],b[0],b[1],E[0],E[1])}return h}#M(l,h,n,p){const f=[],b=this.thickness/2;let E,I;for(const w of this.paths){E=[],I=[];for(let a=0,g=w.length;a<g;a++){const[R,$,D,B]=w[a],q=l*(R[0]+h)+b,J=p-l*(R[1]+n)-b,se=l*($[0]+h)+b,Q=p-l*($[1]+n)-b,H=l*(D[0]+h)+b,U=p-l*(D[1]+n)-b,W=l*(B[0]+h)+b,S=p-l*(B[1]+n)-b;a===0&&(E.push(q,J),I.push(q,J)),E.push(se,Q,H,U,W,S),this.#I(q,J,se,Q,H,U,W,S,4,I)}f.push({bezier:E,points:I})}return f}#I(l,h,n,p,m,f,b,E,I,w){if(this.#x(l,h,n,p,m,f,b,E)){w.push(b,E);return}for(let a=1;a<I-1;a++){const g=a/I,R=1-g;let $=g*l+R*n,D=g*h+R*p,B=g*n+R*m,q=g*p+R*f;const J=g*m+R*b,se=g*f+R*E;$=g*$+R*B,D=g*D+R*q,B=g*B+R*J,q=g*q+R*se,$=g*$+R*B,D=g*D+R*q,w.push($,D)}w.push(b,E)}#x(l,h,n,p,m,f,b,E){const w=(3*n-2*l-b)**2,a=(3*p-2*h-E)**2,g=(3*m-l-2*b)**2,R=(3*f-h-2*E)**2;return Math.max(w,g)+Math.max(a,R)<=10}#w(){let l=1/0,h=-1/0,n=1/0,p=-1/0;for(const m of this.paths)for(const[f,b,E,I]of m){const w=i.Util.bezierBoundingBox(...f,...b,...E,...I);l=Math.min(l,w[0]),n=Math.min(n,w[1]),h=Math.max(h,w[2]),p=Math.max(p,w[3])}return[l,n,h,p]}#O(){return this.#n?Math.ceil(this.thickness*this.parentScale):0}#A(l=!1){if(this.isEmpty())return;if(!this.#n){this.#u();return}const h=this.#w(),n=this.#O();this.#s=Math.max(T,h[2]-h[0]),this.#t=Math.max(T,h[3]-h[1]);const p=Math.ceil(n+this.#s*this.scaleFactor),m=Math.ceil(n+this.#t*this.scaleFactor),[f,b]=this.parentDimensions;this.width=p/f,this.height=m/b,this.#e=p/m,this.#D();const E=this.translationX,I=this.translationY;this.translationX=-h[0],this.translationY=-h[1],this.#_(),this.#u(),this.#h=p,this.#o=m,this.setDims(p,m);const w=l?n/this.scaleFactor/2:0;this.translate(E-this.translationX-w,I-this.translationY-w)}#D(){const{style:l}=this.div;this.#e>=1?(l.minHeight=`${T}px`,l.minWidth=`${Math.round(this.#e*T)}px`):(l.minWidth=`${T}px`,l.minHeight=`${Math.round(T/this.#e)}px`)}static deserialize(l,h,n){const p=super.deserialize(l,h,n);p.thickness=l.thickness,p.color=i.Util.makeHexColor(...l.color),p.opacity=l.opacity;const[m,f]=p.pageDimensions,b=p.width*m,E=p.height*f,I=p.parentScale,w=l.thickness/2;p.#e=b/E,p.#n=!0,p.#h=Math.round(b),p.#o=Math.round(E);for(const{bezier:g}of l.paths){const R=[];p.paths.push(R);let $=I*(g[0]-w),D=I*(E-g[1]-w);for(let q=2,J=g.length;q<J;q+=6){const se=I*(g[q]-w),Q=I*(E-g[q+1]-w),H=I*(g[q+2]-w),U=I*(E-g[q+3]-w),W=I*(g[q+4]-w),S=I*(E-g[q+5]-w);R.push([[$,D],[se,Q],[H,U],[W,S]]),$=W,D=S}const B=this.#j(R);p.bezierPath2D.push(B)}const a=p.#w();return p.#s=Math.max(T,a[2]-a[0]),p.#t=Math.max(T,a[3]-a[1]),p.#p(b,E),p}serialize(){if(this.isEmpty())return null;const l=this.getRect(0,0),h=this.rotation%180===0?l[3]-l[1]:l[2]-l[0],n=u.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle);return{annotationType:i.AnnotationEditorType.INK,color:n,thickness:this.thickness,opacity:this.opacity,paths:this.#M(this.scaleFactor/this.parentScale,this.translationX,this.translationY,h),pageIndex:this.pageIndex,rect:l,rotation:this.rotation}}}t.InkEditor=c}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fitCurve=void 0;const i=v(31);t.fitCurve=i}),(_=>{function t(p,m,f){if(!Array.isArray(p))throw new TypeError("First argument should be an array");if(p.forEach(w=>{if(!Array.isArray(w)||w.some(a=>typeof a!="number")||w.length!==p[0].length)throw Error("Each point should be an array of numbers. Each point should have the same amount of numbers.")}),p=p.filter((w,a)=>a===0||!w.every((g,R)=>g===p[a-1][R])),p.length<2)return[];const b=p.length,E=l(p[1],p[0]),I=l(p[b-2],p[b-1]);return v(p,E,I,m,f)}function v(p,m,f,b,E){var w,a,g,R,$,D,B,q,J,se,Q,H,U;if(p.length===2)return H=h.vectorLen(h.subtract(p[0],p[1]))/3,w=[p[0],h.addArrays(p[0],h.mulItems(m,H)),h.addArrays(p[1],h.mulItems(f,H)),p[1]],[w];if(a=T(p),[w,R,D]=i(p,a,a,m,f,E),R===0||R<b)return[w];if(R<b*b)for(g=a,$=R,B=D,U=0;U<20;U++){if(g=P(w,p,g),[w,R,D]=i(p,a,g,m,f,E),R<b)return[w];if(D===B){let W=R/$;if(W>.9999&&W<1.0001)break}$=R,B=D}return Q=[],q=h.subtract(p[D-1],p[D+1]),q.every(W=>W===0)&&(q=h.subtract(p[D-1],p[D]),[q[0],q[1]]=[-q[1],q[0]]),J=h.normalize(q),se=h.mulItems(J,-1),Q=Q.concat(v(p.slice(0,D+1),m,J,b,E)),Q=Q.concat(v(p.slice(D),se,f,b,E)),Q}function i(p,m,f,b,E,I){var w,a,g;return w=u(p,f,b,E),[a,g]=y(p,w,m),I&&I({bez:w,points:p,params:m,maxErr:a,maxPoint:g}),[w,a,g]}function u(p,m,f,b){var E,I,w,a,g,R,$,D,B,q,J,se,Q,H,U,W,S,d=p[0],o=p[p.length-1];for(E=[d,null,null,o],I=h.zeros_Xx2x2(m.length),Q=0,H=m.length;Q<H;Q++)W=m[Q],S=1-W,w=I[Q],w[0]=h.mulItems(f,3*W*(S*S)),w[1]=h.mulItems(b,3*S*(W*W));for(a=[[0,0],[0,0]],g=[0,0],Q=0,H=p.length;Q<H;Q++)W=m[Q],w=I[Q],a[0][0]+=h.dot(w[0],w[0]),a[0][1]+=h.dot(w[0],w[1]),a[1][0]+=h.dot(w[0],w[1]),a[1][1]+=h.dot(w[1],w[1]),U=h.subtract(p[Q],n.q([d,d,o,o],W)),g[0]+=h.dot(w[0],U),g[1]+=h.dot(w[1],U);return R=a[0][0]*a[1][1]-a[1][0]*a[0][1],$=a[0][0]*g[1]-a[1][0]*g[0],D=g[0]*a[1][1]-g[1]*a[0][1],B=R===0?0:D/R,q=R===0?0:$/R,se=h.vectorLen(h.subtract(d,o)),J=1e-6*se,B<J||q<J?(E[1]=h.addArrays(d,h.mulItems(f,se/3)),E[2]=h.addArrays(o,h.mulItems(b,se/3))):(E[1]=h.addArrays(d,h.mulItems(f,B)),E[2]=h.addArrays(o,h.mulItems(b,q))),E}function P(p,m,f){return f.map((b,E)=>k(p,m[E],b))}function k(p,m,f){var b=h.subtract(n.q(p,f),m),E=n.qprime(p,f),I=h.mulMatrix(b,E),w=h.sum(h.squareItems(E))+2*h.mulMatrix(b,n.qprimeprime(p,f));return w===0?f:f-I/w}function T(p){var m=[],f,b,E;return p.forEach((I,w)=>{f=w?b+h.vectorLen(h.subtract(I,E)):0,m.push(f),b=f,E=I}),m=m.map(I=>I/b),m}function y(p,m,f){var b,E,I,w,a,g,R,$;E=0,I=Math.floor(p.length/2);const D=c(m,10);for(a=0,g=p.length;a<g;a++)R=p[a],$=r(m,f[a],D,10),w=h.subtract(n.q(m,$),R),b=w[0]*w[0]+w[1]*w[1],b>E&&(E=b,I=a);return[E,I]}var c=function(p,m){for(var f,b=[0],E=p[0],I=0,w=1;w<=m;w++)f=n.q(p,w/m),I+=h.vectorLen(h.subtract(f,E)),b.push(I),E=f;return b=b.map(a=>a/I),b};function r(p,m,f,b){if(m<0)return 0;if(m>1)return 1;for(var E,I,w,a,g,R=1;R<=b;R++)if(m<=f[R]){a=(R-1)/b,w=R/b,I=f[R-1],E=f[R],g=(m-I)/(E-I)*(w-a)+a;break}return g}function l(p,m){return h.normalize(h.subtract(p,m))}class h{static zeros_Xx2x2(m){for(var f=[];m--;)f.push([0,0]);return f}static mulItems(m,f){return m.map(b=>b*f)}static mulMatrix(m,f){return m.reduce((b,E,I)=>b+E*f[I],0)}static subtract(m,f){return m.map((b,E)=>b-f[E])}static addArrays(m,f){return m.map((b,E)=>b+f[E])}static addItems(m,f){return m.map(b=>b+f)}static sum(m){return m.reduce((f,b)=>f+b)}static dot(m,f){return h.mulMatrix(m,f)}static vectorLen(m){return Math.hypot(...m)}static divItems(m,f){return m.map(b=>b/f)}static squareItems(m){return m.map(f=>f*f)}static normalize(m){return this.divItems(m,this.vectorLen(m))}}class n{static q(m,f){var b=1-f,E=h.mulItems(m[0],b*b*b),I=h.mulItems(m[1],3*b*b*f),w=h.mulItems(m[2],3*b*f*f),a=h.mulItems(m[3],f*f*f);return h.addArrays(h.addArrays(E,I),h.addArrays(w,a))}static qprime(m,f){var b=1-f,E=h.mulItems(h.subtract(m[1],m[0]),3*b*b),I=h.mulItems(h.subtract(m[2],m[1]),6*b*f),w=h.mulItems(h.subtract(m[3],m[2]),3*f*f);return h.addArrays(h.addArrays(E,I),w)}static qprimeprime(m,f){return h.addArrays(h.mulItems(h.addArrays(h.subtract(m[2],h.mulItems(m[1],2)),m[0]),6*(1-f)),h.mulItems(h.addArrays(h.subtract(m[3],h.mulItems(m[2],2)),m[1]),6*f))}}_.exports=t,_.exports.fitCubic=v,_.exports.createTangent=l}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var i=v(1),u=v(6),P=v(3),k=v(33),T=v(34);const y=1e3,c=9,r=new WeakSet;function l(j){return{width:j[2]-j[0],height:j[3]-j[1]}}class h{static create(e){switch(e.data.annotationType){case i.AnnotationType.LINK:return new p(e);case i.AnnotationType.TEXT:return new m(e);case i.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new b(e);case"Btn":return e.data.radioButton?new I(e):e.data.checkBox?new E(e):new w(e);case"Ch":return new a(e)}return new f(e);case i.AnnotationType.POPUP:return new g(e);case i.AnnotationType.FREETEXT:return new $(e);case i.AnnotationType.LINE:return new D(e);case i.AnnotationType.SQUARE:return new B(e);case i.AnnotationType.CIRCLE:return new q(e);case i.AnnotationType.POLYLINE:return new J(e);case i.AnnotationType.CARET:return new Q(e);case i.AnnotationType.INK:return new H(e);case i.AnnotationType.POLYGON:return new se(e);case i.AnnotationType.HIGHLIGHT:return new U(e);case i.AnnotationType.UNDERLINE:return new W(e);case i.AnnotationType.SQUIGGLY:return new S(e);case i.AnnotationType.STRIKEOUT:return new d(e);case i.AnnotationType.STAMP:return new o(e);case i.AnnotationType.FILEATTACHMENT:return new A(e);default:return new n(e)}}}class n{constructor(e,{isRenderable:s=!1,ignoreBorder:x=!1,createQuadrilaterals:F=!1}={}){this.isRenderable=s,this.data=e.data,this.layer=e.layer,this.page=e.page,this.viewport=e.viewport,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,s&&(this.container=this._createContainer(x)),F&&(this.quadrilaterals=this._createQuadrilaterals(x))}_createContainer(e=!1){const{data:s,page:x,viewport:F}=this,C=document.createElement("section");C.setAttribute("data-annotation-id",s.id);const{pageWidth:L,pageHeight:O,pageX:V,pageY:G}=F.rawDims,{width:X,height:te}=l(s.rect),Y=i.Util.normalizeRect([s.rect[0],x.view[3]-s.rect[1]+x.view[1],s.rect[2],x.view[3]-s.rect[3]+x.view[1]]);if(!e&&s.borderStyle.width>0){C.style.borderWidth=`${s.borderStyle.width}px`;const re=s.borderStyle.horizontalCornerRadius,ae=s.borderStyle.verticalCornerRadius;if(re>0||ae>0){const ie=`calc(${re}px * var(--scale-factor)) / calc(${ae}px * var(--scale-factor))`;C.style.borderRadius=ie}else if(this instanceof I){const ie=`calc(${X}px * var(--scale-factor)) / calc(${te}px * var(--scale-factor))`;C.style.borderRadius=ie}switch(s.borderStyle.style){case i.AnnotationBorderStyleType.SOLID:C.style.borderStyle="solid";break;case i.AnnotationBorderStyleType.DASHED:C.style.borderStyle="dashed";break;case i.AnnotationBorderStyleType.BEVELED:(0,i.warn)("Unimplemented border style: beveled");break;case i.AnnotationBorderStyleType.INSET:(0,i.warn)("Unimplemented border style: inset");break;case i.AnnotationBorderStyleType.UNDERLINE:C.style.borderBottomStyle="solid";break}const ce=s.borderColor||null;ce?C.style.borderColor=i.Util.makeHexColor(ce[0]|0,ce[1]|0,ce[2]|0):C.style.borderWidth=0}C.style.left=`${100*(Y[0]-V)/L}%`,C.style.top=`${100*(Y[1]-G)/O}%`;const{rotation:ee}=s;return s.hasOwnCanvas||ee===0?(C.style.width=`${100*X/L}%`,C.style.height=`${100*te/O}%`):this.setRotation(ee,C),C}setRotation(e,s=this.container){const{pageWidth:x,pageHeight:F}=this.viewport.rawDims,{width:C,height:L}=l(this.data.rect);let O,V;e%180===0?(O=100*C/x,V=100*L/F):(O=100*L/x,V=100*C/F),s.style.width=`${O}%`,s.style.height=`${V}%`,s.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){const e=(s,x,F)=>{const C=F.detail[s];F.target.style[x]=k.ColorConverters[`${C[0]}_HTML`](C.slice(1))};return(0,i.shadow)(this,"_commonActions",{display:s=>{const x=s.detail.display%2===1;this.container.style.visibility=x?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:x,print:s.detail.display===0||s.detail.display===3})},print:s=>{this.annotationStorage.setValue(this.data.id,{print:s.detail.print})},hidden:s=>{this.container.style.visibility=s.detail.hidden?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:s.detail.hidden})},focus:s=>{setTimeout(()=>s.target.focus({preventScroll:!1}),0)},userName:s=>{s.target.title=s.detail.userName},readonly:s=>{s.detail.readonly?s.target.setAttribute("readonly",""):s.target.removeAttribute("readonly")},required:s=>{this._setRequired(s.target,s.detail.required)},bgColor:s=>{e("bgColor","backgroundColor",s)},fillColor:s=>{e("fillColor","backgroundColor",s)},fgColor:s=>{e("fgColor","color",s)},textColor:s=>{e("textColor","color",s)},borderColor:s=>{e("borderColor","borderColor",s)},strokeColor:s=>{e("strokeColor","borderColor",s)},rotation:s=>{const x=s.detail.rotation;this.setRotation(x),this.annotationStorage.setValue(this.data.id,{rotation:x})}})}_dispatchEventFromSandbox(e,s){const x=this._commonActions;for(const F of Object.keys(s.detail))(e[F]||x[F])?.(s)}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;const s=this.annotationStorage.getRawValue(this.data.id);if(!s)return;const x=this._commonActions;for(const[F,C]of Object.entries(s)){const L=x[F];if(L){const O={detail:{[F]:C},target:e};L(O),delete s[F]}}}_createQuadrilaterals(e=!1){if(!this.data.quadPoints)return null;const s=[],x=this.data.rect;for(const F of this.data.quadPoints)this.data.rect=[F[2].x,F[2].y,F[1].x,F[1].y],s.push(this._createContainer(e));return this.data.rect=x,s}_createPopup(e,s){let x=this.container;this.quadrilaterals&&(e=e||this.quadrilaterals,x=this.quadrilaterals[0]),e||(e=document.createElement("div"),e.className="popupTriggerArea",x.append(e));const C=new R({container:x,trigger:e,color:s.color,titleObj:s.titleObj,modificationDate:s.modificationDate,contentsObj:s.contentsObj,richText:s.richText,hideWrapper:!0}).render();C.style.left="100%",x.append(C)}_renderQuadrilaterals(e){for(const s of this.quadrilaterals)s.className=e;return this.quadrilaterals}render(){(0,i.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(e,s=null){const x=[];if(this._fieldObjects){const F=this._fieldObjects[e];if(F)for(const{page:C,id:L,exportValues:O}of F){if(C===-1||L===s)continue;const V=typeof O=="string"?O:null,G=document.querySelector(`[data-element-id="${L}"]`);if(G&&!r.has(G)){(0,i.warn)(`_getElementsByName - element not allowed: ${L}`);continue}x.push({id:L,exportValue:V,domElement:G})}return x}for(const F of document.getElementsByName(e)){const{exportValue:C}=F,L=F.getAttribute("data-element-id");L!==s&&r.has(F)&&x.push({id:L,exportValue:C,domElement:F})}return x}}class p extends n{constructor(e,s=null){super(e,{isRenderable:!0,ignoreBorder:!!s?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=e.data.isTooltipOnly}render(){const{data:e,linkService:s}=this,x=document.createElement("a");x.setAttribute("data-element-id",e.id);let F=!1;return e.url?(s.addLinkAttributes(x,e.url,e.newWindow),F=!0):e.action?(this._bindNamedAction(x,e.action),F=!0):e.attachment?(this._bindAttachment(x,e.attachment),F=!0):e.setOCGState?(this.#t(x,e.setOCGState),F=!0):e.dest?(this._bindLink(x,e.dest),F=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(x,e),F=!0),e.resetForm?(this._bindResetFormAction(x,e.resetForm),F=!0):this.isTooltipOnly&&!F&&(this._bindLink(x,""),F=!0)),this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map((C,L)=>{const O=L===0?x:x.cloneNode();return C.append(O),C}):(this.container.className="linkAnnotation",F&&this.container.append(x),this.container)}#e(){this.container.setAttribute("data-internal-link","")}_bindLink(e,s){e.href=this.linkService.getDestinationHash(s),e.onclick=()=>(s&&this.linkService.goToDestination(s),!1),(s||s==="")&&this.#e()}_bindNamedAction(e,s){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(s),!1),this.#e()}_bindAttachment(e,s){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.downloadManager?.openOrDownloadData(this.container,s.content,s.filename),!1),this.#e()}#t(e,s){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(s),!1),this.#e()}_bindJSAction(e,s){e.href=this.linkService.getAnchorUrl("");const x=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const F of Object.keys(s.actions)){const C=x.get(F);C&&(e[C]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:s.id,name:F}}),!1))}e.onclick||(e.onclick=()=>!1),this.#e()}_bindResetFormAction(e,s){const x=e.onclick;if(x||(e.href=this.linkService.getAnchorUrl("")),this.#e(),!this._fieldObjects){(0,i.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),x||(e.onclick=()=>!1);return}e.onclick=()=>{x?.();const{fields:F,refs:C,include:L}=s,O=[];if(F.length!==0||C.length!==0){const X=new Set(C);for(const te of F){const Y=this._fieldObjects[te]||[];for(const{id:ee}of Y)X.add(ee)}for(const te of Object.values(this._fieldObjects))for(const Y of te)X.has(Y.id)===L&&O.push(Y)}else for(const X of Object.values(this._fieldObjects))O.push(...X);const V=this.annotationStorage,G=[];for(const X of O){const{id:te}=X;switch(G.push(te),X.type){case"text":{const ee=X.defaultValue||"";V.setValue(te,{value:ee});break}case"checkbox":case"radiobutton":{const ee=X.defaultValue===X.exportValues;V.setValue(te,{value:ee});break}case"combobox":case"listbox":{const ee=X.defaultValue||"";V.setValue(te,{value:ee});break}default:continue}const Y=document.querySelector(`[data-element-id="${te}"]`);if(Y){if(!r.has(Y)){(0,i.warn)(`_bindResetFormAction - element not allowed: ${te}`);continue}}else continue;Y.dispatchEvent(new Event("resetform"))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:G,name:"ResetForm"}}),!1}}}class m extends n{constructor(e){const s=!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str);super(e,{isRenderable:s})}render(){this.container.className="textAnnotation";const e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(e,this.data),this.container.append(e),this.container}}class f extends n{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}_getKeyModifier(e){const{isWin:s,isMac:x}=i.FeatureTest.platform;return s&&e.ctrlKey||x&&e.metaKey}_setEventListener(e,s,x,F){s.includes("mouse")?e.addEventListener(s,C=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:x,value:F(C),shift:C.shiftKey,modifier:this._getKeyModifier(C)}})}):e.addEventListener(s,C=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:x,value:F(C)}})})}_setEventListeners(e,s,x){for(const[F,C]of s)(C==="Action"||this.data.actions?.[C])&&this._setEventListener(e,F,C,x)}_setBackgroundColor(e){const s=this.data.backgroundColor||null;e.style.backgroundColor=s===null?"transparent":i.Util.makeHexColor(s[0],s[1],s[2])}_setTextStyle(e){const s=["left","center","right"],{fontColor:x}=this.data.defaultAppearanceData,F=this.data.defaultAppearanceData.fontSize||c,C=e.style;let L;const O=2,V=G=>Math.round(10*G)/10;if(this.data.multiLine){const G=Math.abs(this.data.rect[3]-this.data.rect[1]-O),X=Math.round(G/(i.LINE_FACTOR*F))||1,te=G/X;L=Math.min(F,V(te/i.LINE_FACTOR))}else{const G=Math.abs(this.data.rect[3]-this.data.rect[1]-O);L=Math.min(F,V(G/i.LINE_FACTOR))}C.fontSize=`calc(${L}px * var(--scale-factor))`,C.color=i.Util.makeHexColor(x[0],x[1],x[2]),this.data.textAlignment!==null&&(C.textAlign=s[this.data.textAlignment])}_setRequired(e,s){s?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",s)}}class b extends f{constructor(e){const s=e.renderForms||!e.data.hasAppearance&&!!e.data.fieldValue;super(e,{isRenderable:s})}setPropertyOnSiblings(e,s,x,F){const C=this.annotationStorage;for(const L of this._getElementsByName(e.name,e.id))L.domElement&&(L.domElement[s]=x),C.setValue(L.id,{[F]:x})}render(){const e=this.annotationStorage,s=this.data.id;this.container.className="textWidgetAnnotation";let x=null;if(this.renderForms){const F=e.getValue(s,{value:this.data.fieldValue});let C=F.formattedValue||F.value||"";const L=e.getValue(s,{charLimit:this.data.maxLen}).charLimit;L&&C.length>L&&(C=C.slice(0,L));const O={userValue:C,formattedValue:null,lastCommittedValue:null,commitKey:1};this.data.multiLine?(x=document.createElement("textarea"),x.textContent=C,this.data.doNotScroll&&(x.style.overflowY="hidden")):(x=document.createElement("input"),x.type="text",x.setAttribute("value",C),this.data.doNotScroll&&(x.style.overflowX="hidden")),r.add(x),x.setAttribute("data-element-id",s),x.disabled=this.data.readOnly,x.name=this.data.fieldName,x.tabIndex=y,this._setRequired(x,this.data.required),L&&(x.maxLength=L),x.addEventListener("input",G=>{e.setValue(s,{value:G.target.value}),this.setPropertyOnSiblings(x,"value",G.target.value,"value")}),x.addEventListener("resetform",G=>{const X=this.data.defaultFieldValue??"";x.value=O.userValue=X,O.formattedValue=null});let V=G=>{const{formattedValue:X}=O;X!=null&&(G.target.value=X),G.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){x.addEventListener("focus",X=>{const{target:te}=X;O.userValue&&(te.value=O.userValue),O.lastCommittedValue=te.value,O.commitKey=1}),x.addEventListener("updatefromsandbox",X=>{const te={value(Y){O.userValue=Y.detail.value??"",e.setValue(s,{value:O.userValue.toString()}),Y.target.value=O.userValue},formattedValue(Y){const{formattedValue:ee}=Y.detail;O.formattedValue=ee,ee!=null&&Y.target!==document.activeElement&&(Y.target.value=ee),e.setValue(s,{formattedValue:ee})},selRange(Y){Y.target.setSelectionRange(...Y.detail.selRange)},charLimit:Y=>{const{charLimit:ee}=Y.detail,{target:re}=Y;if(ee===0){re.removeAttribute("maxLength");return}re.setAttribute("maxLength",ee);let ae=O.userValue;!ae||ae.length<=ee||(ae=ae.slice(0,ee),re.value=O.userValue=ae,e.setValue(s,{value:ae}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:s,name:"Keystroke",value:ae,willCommit:!0,commitKey:1,selStart:re.selectionStart,selEnd:re.selectionEnd}}))}};this._dispatchEventFromSandbox(te,X)}),x.addEventListener("keydown",X=>{O.commitKey=1;let te=-1;if(X.key==="Escape"?te=0:X.key==="Enter"&&!this.data.multiLine?te=2:X.key==="Tab"&&(O.commitKey=3),te===-1)return;const{value:Y}=X.target;O.lastCommittedValue!==Y&&(O.lastCommittedValue=Y,O.userValue=Y,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:s,name:"Keystroke",value:Y,willCommit:!0,commitKey:te,selStart:X.target.selectionStart,selEnd:X.target.selectionEnd}}))});const G=V;V=null,x.addEventListener("blur",X=>{if(!X.relatedTarget)return;const{value:te}=X.target;O.userValue=te,O.lastCommittedValue!==te&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:s,name:"Keystroke",value:te,willCommit:!0,commitKey:O.commitKey,selStart:X.target.selectionStart,selEnd:X.target.selectionEnd}}),G(X)}),this.data.actions?.Keystroke&&x.addEventListener("beforeinput",X=>{O.lastCommittedValue=null;const{data:te,target:Y}=X,{value:ee,selectionStart:re,selectionEnd:ae}=Y;let ce=re,ie=ae;switch(X.inputType){case"deleteWordBackward":{const ge=ee.substring(0,re).match(/\w*[^\w]*$/);ge&&(ce-=ge[0].length);break}case"deleteWordForward":{const ge=ee.substring(re).match(/^[^\w]*\w*/);ge&&(ie+=ge[0].length);break}case"deleteContentBackward":re===ae&&(ce-=1);break;case"deleteContentForward":re===ae&&(ie+=1);break}X.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:s,name:"Keystroke",value:ee,change:te||"",willCommit:!1,selStart:ce,selEnd:ie}})}),this._setEventListeners(x,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],X=>X.target.value)}if(V&&x.addEventListener("blur",V),this.data.comb){const X=(this.data.rect[2]-this.data.rect[0])/L;x.classList.add("comb"),x.style.letterSpacing=`calc(${X}px * var(--scale-factor) - 1ch)`}}else x=document.createElement("div"),x.textContent=this.data.fieldValue,x.style.verticalAlign="middle",x.style.display="table-cell";return this._setTextStyle(x),this._setBackgroundColor(x),this._setDefaultPropertiesFromJS(x),this.container.append(x),this.container}}class E extends f{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const e=this.annotationStorage,s=this.data,x=s.id;let F=e.getValue(x,{value:s.exportValue===s.fieldValue}).value;typeof F=="string"&&(F=F!=="Off",e.setValue(x,{value:F})),this.container.className="buttonWidgetAnnotation checkBox";const C=document.createElement("input");return r.add(C),C.setAttribute("data-element-id",x),C.disabled=s.readOnly,this._setRequired(C,this.data.required),C.type="checkbox",C.name=s.fieldName,F&&C.setAttribute("checked",!0),C.setAttribute("exportValue",s.exportValue),C.tabIndex=y,C.addEventListener("change",L=>{const{name:O,checked:V}=L.target;for(const G of this._getElementsByName(O,x)){const X=V&&G.exportValue===s.exportValue;G.domElement&&(G.domElement.checked=X),e.setValue(G.id,{value:X})}e.setValue(x,{value:V})}),C.addEventListener("resetform",L=>{const O=s.defaultFieldValue||"Off";L.target.checked=O===s.exportValue}),this.enableScripting&&this.hasJSActions&&(C.addEventListener("updatefromsandbox",L=>{const O={value(V){V.target.checked=V.detail.value!=="Off",e.setValue(x,{value:V.target.checked})}};this._dispatchEventFromSandbox(O,L)}),this._setEventListeners(C,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],L=>L.target.checked)),this._setBackgroundColor(C),this._setDefaultPropertiesFromJS(C),this.container.append(C),this.container}}class I extends f{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.className="buttonWidgetAnnotation radioButton";const e=this.annotationStorage,s=this.data,x=s.id;let F=e.getValue(x,{value:s.fieldValue===s.buttonValue}).value;typeof F=="string"&&(F=F!==s.buttonValue,e.setValue(x,{value:F}));const C=document.createElement("input");if(r.add(C),C.setAttribute("data-element-id",x),C.disabled=s.readOnly,this._setRequired(C,this.data.required),C.type="radio",C.name=s.fieldName,F&&C.setAttribute("checked",!0),C.tabIndex=y,C.addEventListener("change",L=>{const{name:O,checked:V}=L.target;for(const G of this._getElementsByName(O,x))e.setValue(G.id,{value:!1});e.setValue(x,{value:V})}),C.addEventListener("resetform",L=>{const O=s.defaultFieldValue;L.target.checked=O!=null&&O===s.buttonValue}),this.enableScripting&&this.hasJSActions){const L=s.buttonValue;C.addEventListener("updatefromsandbox",O=>{const V={value:G=>{const X=L===G.detail.value;for(const te of this._getElementsByName(G.target.name)){const Y=X&&te.id===x;te.domElement&&(te.domElement.checked=Y),e.setValue(te.id,{value:Y})}}};this._dispatchEventFromSandbox(V,O)}),this._setEventListeners(C,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],O=>O.target.checked)}return this._setBackgroundColor(C),this._setDefaultPropertiesFromJS(C),this.container.append(C),this.container}}class w extends p{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){const e=super.render();e.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(e.title=this.data.alternativeText);const s=e.lastChild;return this.enableScripting&&this.hasJSActions&&s&&(this._setDefaultPropertiesFromJS(s),s.addEventListener("updatefromsandbox",x=>{this._dispatchEventFromSandbox({},x)})),e}}class a extends f{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.className="choiceWidgetAnnotation";const e=this.annotationStorage,s=this.data.id,x=e.getValue(s,{value:this.data.fieldValue}),F=document.createElement("select");r.add(F),F.setAttribute("data-element-id",s),F.disabled=this.data.readOnly,this._setRequired(F,this.data.required),F.name=this.data.fieldName,F.tabIndex=y;let C=this.data.combo&&this.data.options.length>0;this.data.combo||(F.size=this.data.options.length,this.data.multiSelect&&(F.multiple=!0)),F.addEventListener("resetform",X=>{const te=this.data.defaultFieldValue;for(const Y of F.options)Y.selected=Y.value===te});for(const X of this.data.options){const te=document.createElement("option");te.textContent=X.displayValue,te.value=X.exportValue,x.value.includes(X.exportValue)&&(te.setAttribute("selected",!0),C=!1),F.append(te)}let L=null;if(C){const X=document.createElement("option");X.value=" ",X.setAttribute("hidden",!0),X.setAttribute("selected",!0),F.prepend(X),L=()=>{X.remove(),F.removeEventListener("input",L),L=null},F.addEventListener("input",L)}const O=X=>{const te=X?"value":"textContent",{options:Y,multiple:ee}=F;return ee?Array.prototype.filter.call(Y,re=>re.selected).map(re=>re[te]):Y.selectedIndex===-1?null:Y[Y.selectedIndex][te]};let V=O(!1);const G=X=>{const te=X.target.options;return Array.prototype.map.call(te,Y=>({displayValue:Y.textContent,exportValue:Y.value}))};return this.enableScripting&&this.hasJSActions?(F.addEventListener("updatefromsandbox",X=>{const te={value(Y){L?.();const ee=Y.detail.value,re=new Set(Array.isArray(ee)?ee:[ee]);for(const ae of F.options)ae.selected=re.has(ae.value);e.setValue(s,{value:O(!0)}),V=O(!1)},multipleSelection(Y){F.multiple=!0},remove(Y){const ee=F.options,re=Y.detail.remove;ee[re].selected=!1,F.remove(re),ee.length>0&&Array.prototype.findIndex.call(ee,ce=>ce.selected)===-1&&(ee[0].selected=!0),e.setValue(s,{value:O(!0),items:G(Y)}),V=O(!1)},clear(Y){for(;F.length!==0;)F.remove(0);e.setValue(s,{value:null,items:[]}),V=O(!1)},insert(Y){const{index:ee,displayValue:re,exportValue:ae}=Y.detail.insert,ce=F.children[ee],ie=document.createElement("option");ie.textContent=re,ie.value=ae,ce?ce.before(ie):F.append(ie),e.setValue(s,{value:O(!0),items:G(Y)}),V=O(!1)},items(Y){const{items:ee}=Y.detail;for(;F.length!==0;)F.remove(0);for(const re of ee){const{displayValue:ae,exportValue:ce}=re,ie=document.createElement("option");ie.textContent=ae,ie.value=ce,F.append(ie)}F.options.length>0&&(F.options[0].selected=!0),e.setValue(s,{value:O(!0),items:G(Y)}),V=O(!1)},indices(Y){const ee=new Set(Y.detail.indices);for(const re of Y.target.options)re.selected=ee.has(re.index);e.setValue(s,{value:O(!0)}),V=O(!1)},editable(Y){Y.target.disabled=!Y.detail.editable}};this._dispatchEventFromSandbox(te,X)}),F.addEventListener("input",X=>{const te=O(!0);e.setValue(s,{value:te}),X.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:s,name:"Keystroke",value:V,changeEx:te,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(F,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],X=>X.target.value)):F.addEventListener("input",function(X){e.setValue(s,{value:O(!0)})}),this.data.combo&&this._setTextStyle(F),this._setBackgroundColor(F),this._setDefaultPropertiesFromJS(F),this.container.append(F),this.container}}class g extends n{static IGNORE_TYPES=new Set(["Line","Square","Circle","PolyLine","Polygon","Ink"]);constructor(e){const{data:s}=e,x=!g.IGNORE_TYPES.has(s.parentType)&&!!(s.titleObj?.str||s.contentsObj?.str||s.richText?.str);super(e,{isRenderable:x})}render(){this.container.className="popupAnnotation";const e=this.layer.querySelectorAll(`[data-annotation-id="${this.data.parentId}"]`);if(e.length===0)return this.container;const s=new R({container:this.container,trigger:Array.from(e),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),x=this.page,F=i.Util.normalizeRect([this.data.parentRect[0],x.view[3]-this.data.parentRect[1]+x.view[1],this.data.parentRect[2],x.view[3]-this.data.parentRect[3]+x.view[1]]),C=F[0]+this.data.parentRect[2]-this.data.parentRect[0],L=F[1],{pageWidth:O,pageHeight:V,pageX:G,pageY:X}=this.viewport.rawDims;return this.container.style.left=`${100*(C-G)/O}%`,this.container.style.top=`${100*(L-X)/V}%`,this.container.append(s.render()),this.container}}class R{constructor(e){this.container=e.container,this.trigger=e.trigger,this.color=e.color,this.titleObj=e.titleObj,this.modificationDate=e.modificationDate,this.contentsObj=e.contentsObj,this.richText=e.richText,this.hideWrapper=e.hideWrapper||!1,this.pinned=!1}render(){const s=document.createElement("div");s.className="popupWrapper",this.hideElement=this.hideWrapper?s:this.container,this.hideElement.hidden=!0;const x=document.createElement("div");x.className="popup";const F=this.color;if(F){const O=.7*(255-F[0])+F[0],V=.7*(255-F[1])+F[1],G=.7*(255-F[2])+F[2];x.style.backgroundColor=i.Util.makeHexColor(O|0,V|0,G|0)}const C=document.createElement("h1");C.dir=this.titleObj.dir,C.textContent=this.titleObj.str,x.append(C);const L=u.PDFDateString.toDateObject(this.modificationDate);if(L){const O=document.createElement("span");O.className="popupDate",O.textContent="{{date}}, {{time}}",O.dataset.l10nId="annotation_date_string",O.dataset.l10nArgs=JSON.stringify({date:L.toLocaleDateString(),time:L.toLocaleTimeString()}),x.append(O)}if(this.richText?.str&&(!this.contentsObj?.str||this.contentsObj.str===this.richText.str))T.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:x}),x.lastChild.className="richText popupContent";else{const O=this._formatContents(this.contentsObj);x.append(O)}Array.isArray(this.trigger)||(this.trigger=[this.trigger]);for(const O of this.trigger)O.addEventListener("click",this._toggle.bind(this)),O.addEventListener("mouseover",this._show.bind(this,!1)),O.addEventListener("mouseout",this._hide.bind(this,!1));return x.addEventListener("click",this._hide.bind(this,!0)),s.append(x),s}_formatContents({str:e,dir:s}){const x=document.createElement("p");x.className="popupContent",x.dir=s;const F=e.split(/(?:\r\n?|\n)/);for(let C=0,L=F.length;C<L;++C){const O=F[C];x.append(document.createTextNode(O)),C<L-1&&x.append(document.createElement("br"))}return x}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(e=!1){e&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex=parseInt(this.container.style.zIndex)+1e3)}_hide(e=!0){e&&(this.pinned=!1),!this.hideElement.hidden&&!this.pinned&&(this.hideElement.hidden=!0,this.container.style.zIndex=parseInt(this.container.style.zIndex)-1e3)}}class $ extends n{constructor(e){const s=!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str);super(e,{isRenderable:s,ignoreBorder:!0}),this.textContent=e.data.textContent}render(){if(this.container.className="freeTextAnnotation",this.textContent){const e=document.createElement("div");e.className="annotationTextContent",e.setAttribute("role","comment");for(const s of this.textContent){const x=document.createElement("span");x.textContent=s,e.append(x)}this.container.append(e)}return this.data.hasPopup||this._createPopup(null,this.data),this.container}}class D extends n{constructor(e){const s=!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str);super(e,{isRenderable:s,ignoreBorder:!0})}render(){this.container.className="lineAnnotation";const e=this.data,{width:s,height:x}=l(e.rect),F=this.svgFactory.create(s,x,!0),C=this.svgFactory.createElement("svg:line");return C.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),C.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),C.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),C.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),C.setAttribute("stroke-width",e.borderStyle.width||1),C.setAttribute("stroke","transparent"),C.setAttribute("fill","transparent"),F.append(C),this.container.append(F),this._createPopup(C,e),this.container}}class B extends n{constructor(e){const s=!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str);super(e,{isRenderable:s,ignoreBorder:!0})}render(){this.container.className="squareAnnotation";const e=this.data,{width:s,height:x}=l(e.rect),F=this.svgFactory.create(s,x,!0),C=e.borderStyle.width,L=this.svgFactory.createElement("svg:rect");return L.setAttribute("x",C/2),L.setAttribute("y",C/2),L.setAttribute("width",s-C),L.setAttribute("height",x-C),L.setAttribute("stroke-width",C||1),L.setAttribute("stroke","transparent"),L.setAttribute("fill","transparent"),F.append(L),this.container.append(F),this._createPopup(L,e),this.container}}class q extends n{constructor(e){const s=!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str);super(e,{isRenderable:s,ignoreBorder:!0})}render(){this.container.className="circleAnnotation";const e=this.data,{width:s,height:x}=l(e.rect),F=this.svgFactory.create(s,x,!0),C=e.borderStyle.width,L=this.svgFactory.createElement("svg:ellipse");return L.setAttribute("cx",s/2),L.setAttribute("cy",x/2),L.setAttribute("rx",s/2-C/2),L.setAttribute("ry",x/2-C/2),L.setAttribute("stroke-width",C||1),L.setAttribute("stroke","transparent"),L.setAttribute("fill","transparent"),F.append(L),this.container.append(F),this._createPopup(L,e),this.container}}class J extends n{constructor(e){const s=!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str);super(e,{isRenderable:s,ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const e=this.data,{width:s,height:x}=l(e.rect),F=this.svgFactory.create(s,x,!0);let C=[];for(const O of e.vertices){const V=O.x-e.rect[0],G=e.rect[3]-O.y;C.push(V+","+G)}C=C.join(" ");const L=this.svgFactory.createElement(this.svgElementName);return L.setAttribute("points",C),L.setAttribute("stroke-width",e.borderStyle.width||1),L.setAttribute("stroke","transparent"),L.setAttribute("fill","transparent"),F.append(L),this.container.append(F),this._createPopup(L,e),this.container}}class se extends J{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class Q extends n{constructor(e){const s=!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str);super(e,{isRenderable:s,ignoreBorder:!0})}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class H extends n{constructor(e){const s=!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str);super(e,{isRenderable:s,ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const e=this.data,{width:s,height:x}=l(e.rect),F=this.svgFactory.create(s,x,!0);for(const C of e.inkLists){let L=[];for(const V of C){const G=V.x-e.rect[0],X=e.rect[3]-V.y;L.push(`${G},${X}`)}L=L.join(" ");const O=this.svgFactory.createElement(this.svgElementName);O.setAttribute("points",L),O.setAttribute("stroke-width",e.borderStyle.width||1),O.setAttribute("stroke","transparent"),O.setAttribute("fill","transparent"),this._createPopup(O,e),F.append(O)}return this.container.append(F),this.container}}class U extends n{constructor(e){const s=!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str);super(e,{isRenderable:s,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}class W extends n{constructor(e){const s=!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str);super(e,{isRenderable:s,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}class S extends n{constructor(e){const s=!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str);super(e,{isRenderable:s,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}class d extends n{constructor(e){const s=!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str);super(e,{isRenderable:s,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}class o extends n{constructor(e){const s=!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str);super(e,{isRenderable:s,ignoreBorder:!0})}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class A extends n{constructor(e){super(e,{isRenderable:!0});const{filename:s,content:x}=this.data.file;this.filename=(0,u.getFilenameFromUrl)(s,!0),this.content=x,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,filename:s,content:x})}render(){this.container.className="fileAttachmentAnnotation";let e;return this.data.hasAppearance?e=document.createElement("div"):(e=document.createElement("img"),e.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(this.data.name)?"paperclip":"pushpin"}.svg`),e.className="popupTriggerArea",e.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&(this.data.titleObj?.str||this.data.contentsObj?.str||this.data.richText)&&this._createPopup(e,this.data),this.container.append(e),this.container}_download(){this.downloadManager?.openOrDownloadData(this.container,this.content,this.filename)}}class M{static#e(e,s,x,F){const C=e.firstChild||e;C.id=`${u.AnnotationPrefix}${s}`,x.append(e),F?.moveElementInDOM(x,e,C,!1)}static render(e){const{annotations:s,div:x,viewport:F,accessibilityManager:C}=e;(0,u.setLayerDimensions)(x,F);const L={data:null,layer:x,page:e.page,viewport:F,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:e.renderForms!==!1,svgFactory:new u.DOMSVGFactory,annotationStorage:e.annotationStorage||new P.AnnotationStorage,enableScripting:e.enableScripting===!0,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects};let O=0;for(const V of s){if(V.annotationType!==i.AnnotationType.POPUP){const{width:te,height:Y}=l(V.rect);if(te<=0||Y<=0)continue}L.data=V;const G=h.create(L);if(!G.isRenderable)continue;const X=G.render();if(V.hidden&&(X.style.visibility="hidden"),Array.isArray(X))for(const te of X)te.style.zIndex=O++,M.#e(te,V.id,x,C);else X.style.zIndex=O++,G instanceof g?x.prepend(X):M.#e(X,V.id,x,C)}this.#t(x,e.annotationCanvasMap)}static update(e){const{annotationCanvasMap:s,div:x,viewport:F}=e;(0,u.setLayerDimensions)(x,{rotation:F.rotation}),this.#t(x,s),x.hidden=!1}static#t(e,s){if(s){for(const[x,F]of s){const C=e.querySelector(`[data-annotation-id="${x}"]`);if(!C)continue;const{firstChild:L}=C;L?L.nodeName==="CANVAS"?L.replaceWith(F):L.before(F):C.append(F)}s.clear()}}}t.AnnotationLayer=M}),((_,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0;function v(u){return Math.floor(Math.max(0,Math.min(1,u))*255).toString(16).padStart(2,"0")}class i{static CMYK_G([P,k,T,y]){return["G",1-Math.min(1,.3*P+.59*T+.11*k+y)]}static G_CMYK([P]){return["CMYK",0,0,0,1-P]}static G_RGB([P]){return["RGB",P,P,P]}static G_HTML([P]){const k=v(P);return`#${k}${k}${k}`}static RGB_G([P,k,T]){return["G",.3*P+.59*k+.11*T]}static RGB_HTML([P,k,T]){const y=v(P),c=v(k),r=v(T);return`#${y}${c}${r}`}static T_HTML(){return"#00000000"}static CMYK_RGB([P,k,T,y]){return["RGB",1-Math.min(1,P+y),1-Math.min(1,T+y),1-Math.min(1,k+y)]}static CMYK_HTML(P){const k=this.CMYK_RGB(P).slice(1);return this.RGB_HTML(k)}static RGB_CMYK([P,k,T]){const y=1-P,c=1-k,r=1-T,l=Math.min(y,c,r);return["CMYK",y,c,r,l]}}t.ColorConverters=i}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0;var i=v(19);class u{static setupStorage(k,T,y,c,r){const l=c.getValue(T,{value:null});switch(y.name){case"textarea":if(l.value!==null&&(k.textContent=l.value),r==="print")break;k.addEventListener("input",h=>{c.setValue(T,{value:h.target.value})});break;case"input":if(y.attributes.type==="radio"||y.attributes.type==="checkbox"){if(l.value===y.attributes.xfaOn?k.setAttribute("checked",!0):l.value===y.attributes.xfaOff&&k.removeAttribute("checked"),r==="print")break;k.addEventListener("change",h=>{c.setValue(T,{value:h.target.checked?h.target.getAttribute("xfaOn"):h.target.getAttribute("xfaOff")})})}else{if(l.value!==null&&k.setAttribute("value",l.value),r==="print")break;k.addEventListener("input",h=>{c.setValue(T,{value:h.target.value})})}break;case"select":if(l.value!==null)for(const h of y.children)h.attributes.value===l.value&&(h.attributes.selected=!0);k.addEventListener("input",h=>{const n=h.target.options,p=n.selectedIndex===-1?"":n[n.selectedIndex].value;c.setValue(T,{value:p})});break}}static setAttributes({html:k,element:T,storage:y=null,intent:c,linkService:r}){const{attributes:l}=T,h=k instanceof HTMLAnchorElement;l.type==="radio"&&(l.name=`${l.name}-${c}`);for(const[n,p]of Object.entries(l))if(p!=null)switch(n){case"class":p.length&&k.setAttribute(n,p.join(" "));break;case"dataId":break;case"id":k.setAttribute("data-element-id",p);break;case"style":Object.assign(k.style,p);break;case"textContent":k.textContent=p;break;default:(!h||n!=="href"&&n!=="newWindow")&&k.setAttribute(n,p)}h&&r.addLinkAttributes(k,l.href,l.newWindow),y&&l.dataId&&this.setupStorage(k,l.dataId,T,y)}static render(k){const T=k.annotationStorage,y=k.linkService,c=k.xfaHtml,r=k.intent||"display",l=document.createElement(c.name);c.attributes&&this.setAttributes({html:l,element:c,intent:r,linkService:y});const h=[[c,-1,l]],n=k.div;if(n.append(l),k.viewport){const m=`matrix(${k.viewport.transform.join(",")})`;n.style.transform=m}r!=="richText"&&n.setAttribute("class","xfaLayer xfaFont");const p=[];for(;h.length>0;){const[m,f,b]=h.at(-1);if(f+1===m.children.length){h.pop();continue}const E=m.children[++h.at(-1)[1]];if(E===null)continue;const{name:I}=E;if(I==="#text"){const a=document.createTextNode(E.value);p.push(a),b.append(a);continue}let w;if(E?.attributes?.xmlns?w=document.createElementNS(E.attributes.xmlns,I):w=document.createElement(I),b.append(w),E.attributes&&this.setAttributes({html:w,element:E,storage:T,intent:r,linkService:y}),E.children&&E.children.length>0)h.push([E,-1,w]);else if(E.value){const a=document.createTextNode(E.value);i.XfaText.shouldBuildText(I)&&p.push(a),w.append(a)}}for(const m of n.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))m.setAttribute("readOnly",!0);return{textDivs:p}}static update(k){const T=`matrix(${k.viewport.transform.join(",")})`;k.div.style.transform=T,k.div.hidden=!1}}t.XfaLayer=u}),((_,t,v)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var i=v(6),u=v(1),P=v(10);let k=class{constructor(){(0,u.unreachable)("Not implemented: SVGGraphics")}};t.SVGGraphics=k;{let m=function(a){let g=[];const R=[];for(const $ of a){if($.fn==="save"){g.push({fnId:92,fn:"group",items:[]}),R.push(g),g=g.at(-1).items;continue}$.fn==="restore"?g=R.pop():g.push($)}return g},f=function(a){if(Number.isInteger(a))return a.toString();const g=a.toFixed(10);let R=g.length-1;if(g[R]!=="0")return g;do R--;while(g[R]==="0");return g.substring(0,g[R]==="."?R:R+1)},b=function(a){if(a[4]===0&&a[5]===0){if(a[1]===0&&a[2]===0)return a[0]===1&&a[3]===1?"":`scale(${f(a[0])} ${f(a[3])})`;if(a[0]===a[3]&&a[1]===-a[2]){const g=Math.acos(a[0])*180/Math.PI;return`rotate(${f(g)})`}}else if(a[0]===1&&a[1]===0&&a[2]===0&&a[3]===1)return`translate(${f(a[4])} ${f(a[5])})`;return`matrix(${f(a[0])} ${f(a[1])} ${f(a[2])} ${f(a[3])} ${f(a[4])} ${f(a[5])})`};const T={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},y="http://www.w3.org/XML/1998/namespace",c="http://www.w3.org/1999/xlink",r=["butt","round","square"],l=["miter","round","bevel"],h=function(a,g="",R=!1){if(URL.createObjectURL&&typeof Blob<"u"&&!R)return URL.createObjectURL(new Blob([a],{type:g}));const $="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let D=`data:${g};base64,`;for(let B=0,q=a.length;B<q;B+=3){const J=a[B]&255,se=a[B+1]&255,Q=a[B+2]&255,H=J>>2,U=(J&3)<<4|se>>4,W=B+1<q?(se&15)<<2|Q>>6:64,S=B+2<q?Q&63:64;D+=$[H]+$[U]+$[W]+$[S]}return D},n=(function(){const a=new Uint8Array([137,80,78,71,13,10,26,10]),g=12,R=new Int32Array(256);for(let Q=0;Q<256;Q++){let H=Q;for(let U=0;U<8;U++)H&1?H=3988292384^H>>1&2147483647:H=H>>1&2147483647;R[Q]=H}function $(Q,H,U){let W=-1;for(let S=H;S<U;S++){const d=(W^Q[S])&255,o=R[d];W=W>>>8^o}return W^-1}function D(Q,H,U,W){let S=W;const d=H.length;U[S]=d>>24&255,U[S+1]=d>>16&255,U[S+2]=d>>8&255,U[S+3]=d&255,S+=4,U[S]=Q.charCodeAt(0)&255,U[S+1]=Q.charCodeAt(1)&255,U[S+2]=Q.charCodeAt(2)&255,U[S+3]=Q.charCodeAt(3)&255,S+=4,U.set(H,S),S+=H.length;const o=$(U,W+4,S);U[S]=o>>24&255,U[S+1]=o>>16&255,U[S+2]=o>>8&255,U[S+3]=o&255}function B(Q,H,U){let W=1,S=0;for(let d=H;d<U;++d)W=(W+(Q[d]&255))%65521,S=(S+W)%65521;return S<<16|W}function q(Q){if(!P.isNodeJS)return J(Q);try{let H;parseInt(process.versions.node)>=8?H=Q:H=Buffer.from(Q);const U=require$$5.deflateSync(H,{level:9});return U instanceof Uint8Array?U:new Uint8Array(U)}catch(H){(0,u.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+H)}return J(Q)}function J(Q){let H=Q.length;const U=65535,W=Math.ceil(H/U),S=new Uint8Array(2+H+W*5+4);let d=0;S[d++]=120,S[d++]=156;let o=0;for(;H>U;)S[d++]=0,S[d++]=255,S[d++]=255,S[d++]=0,S[d++]=0,S.set(Q.subarray(o,o+U),d),d+=U,o+=U,H-=U;S[d++]=1,S[d++]=H&255,S[d++]=H>>8&255,S[d++]=~H&65535&255,S[d++]=(~H&65535)>>8&255,S.set(Q.subarray(o),d),d+=Q.length-o;const A=B(Q,0,Q.length);return S[d++]=A>>24&255,S[d++]=A>>16&255,S[d++]=A>>8&255,S[d++]=A&255,S}function se(Q,H,U,W){const S=Q.width,d=Q.height;let o,A,M;const j=Q.data;switch(H){case u.ImageKind.GRAYSCALE_1BPP:A=0,o=1,M=S+7>>3;break;case u.ImageKind.RGB_24BPP:A=2,o=8,M=S*3;break;case u.ImageKind.RGBA_32BPP:A=6,o=8,M=S*4;break;default:throw new Error("invalid format")}const e=new Uint8Array((1+M)*d);let s=0,x=0;for(let G=0;G<d;++G)e[s++]=0,e.set(j.subarray(x,x+M),s),x+=M,s+=M;if(H===u.ImageKind.GRAYSCALE_1BPP&&W){s=0;for(let G=0;G<d;G++){s++;for(let X=0;X<M;X++)e[s++]^=255}}const F=new Uint8Array([S>>24&255,S>>16&255,S>>8&255,S&255,d>>24&255,d>>16&255,d>>8&255,d&255,o,A,0,0,0]),C=q(e),L=a.length+g*3+F.length+C.length,O=new Uint8Array(L);let V=0;return O.set(a,V),V+=a.length,D("IHDR",F,O,V),V+=g+F.length,D("IDATA",C,O,V),V+=g+C.length,D("IEND",new Uint8Array(0),O,V),h(O,"image/png",U)}return function(H,U,W){const S=H.kind===void 0?u.ImageKind.GRAYSCALE_1BPP:H.kind;return se(H,S,U,W)}})();class p{constructor(){this.fontSizeScale=1,this.fontWeight=T.fontWeight,this.fontSize=0,this.textMatrix=u.IDENTITY_MATRIX,this.fontMatrix=u.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=u.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=T.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(g,R){this.x=g,this.y=R}}let E=0,I=0,w=0;t.SVGGraphics=k=class{constructor(a,g,R=!1){(0,i.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new i.DOMSVGFactory,this.current=new p,this.transformMatrix=u.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=a,this.objs=g,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!R,this._operatorIdMapping=[];for(const $ in u.OPS)this._operatorIdMapping[u.OPS[$]]=$}getObject(a,g=null){return typeof a=="string"?a.startsWith("g_")?this.commonObjs.get(a):this.objs.get(a):g}save(){this.transformStack.push(this.transformMatrix);const a=this.current;this.extraStack.push(a),this.current=a.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(a){this.save(),this.executeOpTree(a),this.restore()}loadDependencies(a){const g=a.fnArray,R=a.argsArray;for(let $=0,D=g.length;$<D;$++)if(g[$]===u.OPS.dependency)for(const B of R[$]){const q=B.startsWith("g_")?this.commonObjs:this.objs,J=new Promise(se=>{q.get(B,se)});this.current.dependencies.push(J)}return Promise.all(this.current.dependencies)}transform(a,g,R,$,D,B){const q=[a,g,R,$,D,B];this.transformMatrix=u.Util.transform(this.transformMatrix,q),this.tgrp=null}getSVG(a,g){this.viewport=g;const R=this._initialize(g);return this.loadDependencies(a).then(()=>(this.transformMatrix=u.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(a)),R))}convertOpList(a){const g=this._operatorIdMapping,R=a.argsArray,$=a.fnArray,D=[];for(let B=0,q=$.length;B<q;B++){const J=$[B];D.push({fnId:J,fn:g[J],args:R[B]})}return m(D)}executeOpTree(a){for(const g of a){const R=g.fn,$=g.fnId,D=g.args;switch($|0){case u.OPS.beginText:this.beginText();break;case u.OPS.dependency:break;case u.OPS.setLeading:this.setLeading(D);break;case u.OPS.setLeadingMoveText:this.setLeadingMoveText(D[0],D[1]);break;case u.OPS.setFont:this.setFont(D);break;case u.OPS.showText:this.showText(D[0]);break;case u.OPS.showSpacedText:this.showText(D[0]);break;case u.OPS.endText:this.endText();break;case u.OPS.moveText:this.moveText(D[0],D[1]);break;case u.OPS.setCharSpacing:this.setCharSpacing(D[0]);break;case u.OPS.setWordSpacing:this.setWordSpacing(D[0]);break;case u.OPS.setHScale:this.setHScale(D[0]);break;case u.OPS.setTextMatrix:this.setTextMatrix(D[0],D[1],D[2],D[3],D[4],D[5]);break;case u.OPS.setTextRise:this.setTextRise(D[0]);break;case u.OPS.setTextRenderingMode:this.setTextRenderingMode(D[0]);break;case u.OPS.setLineWidth:this.setLineWidth(D[0]);break;case u.OPS.setLineJoin:this.setLineJoin(D[0]);break;case u.OPS.setLineCap:this.setLineCap(D[0]);break;case u.OPS.setMiterLimit:this.setMiterLimit(D[0]);break;case u.OPS.setFillRGBColor:this.setFillRGBColor(D[0],D[1],D[2]);break;case u.OPS.setStrokeRGBColor:this.setStrokeRGBColor(D[0],D[1],D[2]);break;case u.OPS.setStrokeColorN:this.setStrokeColorN(D);break;case u.OPS.setFillColorN:this.setFillColorN(D);break;case u.OPS.shadingFill:this.shadingFill(D[0]);break;case u.OPS.setDash:this.setDash(D[0],D[1]);break;case u.OPS.setRenderingIntent:this.setRenderingIntent(D[0]);break;case u.OPS.setFlatness:this.setFlatness(D[0]);break;case u.OPS.setGState:this.setGState(D[0]);break;case u.OPS.fill:this.fill();break;case u.OPS.eoFill:this.eoFill();break;case u.OPS.stroke:this.stroke();break;case u.OPS.fillStroke:this.fillStroke();break;case u.OPS.eoFillStroke:this.eoFillStroke();break;case u.OPS.clip:this.clip("nonzero");break;case u.OPS.eoClip:this.clip("evenodd");break;case u.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case u.OPS.paintImageXObject:this.paintImageXObject(D[0]);break;case u.OPS.paintInlineImageXObject:this.paintInlineImageXObject(D[0]);break;case u.OPS.paintImageMaskXObject:this.paintImageMaskXObject(D[0]);break;case u.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(D[0],D[1]);break;case u.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case u.OPS.closePath:this.closePath();break;case u.OPS.closeStroke:this.closeStroke();break;case u.OPS.closeFillStroke:this.closeFillStroke();break;case u.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case u.OPS.nextLine:this.nextLine();break;case u.OPS.transform:this.transform(D[0],D[1],D[2],D[3],D[4],D[5]);break;case u.OPS.constructPath:this.constructPath(D[0],D[1]);break;case u.OPS.endPath:this.endPath();break;case 92:this.group(g.items);break;default:(0,u.warn)(`Unimplemented operator ${R}`);break}}}setWordSpacing(a){this.current.wordSpacing=a}setCharSpacing(a){this.current.charSpacing=a}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(a,g,R,$,D,B){const q=this.current;q.textMatrix=q.lineMatrix=[a,g,R,$,D,B],q.textMatrixScale=Math.hypot(a,g),q.x=q.lineX=0,q.y=q.lineY=0,q.xcoords=[],q.ycoords=[],q.tspan=this.svgFactory.createElement("svg:tspan"),q.tspan.setAttributeNS(null,"font-family",q.fontFamily),q.tspan.setAttributeNS(null,"font-size",`${f(q.fontSize)}px`),q.tspan.setAttributeNS(null,"y",f(-q.y)),q.txtElement=this.svgFactory.createElement("svg:text"),q.txtElement.append(q.tspan)}beginText(){const a=this.current;a.x=a.lineX=0,a.y=a.lineY=0,a.textMatrix=u.IDENTITY_MATRIX,a.lineMatrix=u.IDENTITY_MATRIX,a.textMatrixScale=1,a.tspan=this.svgFactory.createElement("svg:tspan"),a.txtElement=this.svgFactory.createElement("svg:text"),a.txtgrp=this.svgFactory.createElement("svg:g"),a.xcoords=[],a.ycoords=[]}moveText(a,g){const R=this.current;R.x=R.lineX+=a,R.y=R.lineY+=g,R.xcoords=[],R.ycoords=[],R.tspan=this.svgFactory.createElement("svg:tspan"),R.tspan.setAttributeNS(null,"font-family",R.fontFamily),R.tspan.setAttributeNS(null,"font-size",`${f(R.fontSize)}px`),R.tspan.setAttributeNS(null,"y",f(-R.y))}showText(a){const g=this.current,R=g.font,$=g.fontSize;if($===0)return;const D=g.fontSizeScale,B=g.charSpacing,q=g.wordSpacing,J=g.fontDirection,se=g.textHScale*J,Q=R.vertical,H=Q?1:-1,U=R.defaultVMetrics,W=$*g.fontMatrix[0];let S=0;for(const A of a){if(A===null){S+=J*q;continue}else if(typeof A=="number"){S+=H*A*$/1e3;continue}const M=(A.isSpace?q:0)+B,j=A.fontChar;let e,s,x=A.width;if(Q){let C;const L=A.vmetric||U;C=A.vmetric?L[1]:x*.5,C=-C*W;const O=L[2]*W;x=L?-L[0]:x,e=C/D,s=(S+O)/D}else e=S/D,s=0;(A.isInFont||R.missingFile)&&(g.xcoords.push(g.x+e),Q&&g.ycoords.push(-g.y+s),g.tspan.textContent+=j);let F;Q?F=x*W-M*J:F=x*W+M*J,S+=F}g.tspan.setAttributeNS(null,"x",g.xcoords.map(f).join(" ")),Q?g.tspan.setAttributeNS(null,"y",g.ycoords.map(f).join(" ")):g.tspan.setAttributeNS(null,"y",f(-g.y)),Q?g.y-=S:g.x+=S*se,g.tspan.setAttributeNS(null,"font-family",g.fontFamily),g.tspan.setAttributeNS(null,"font-size",`${f(g.fontSize)}px`),g.fontStyle!==T.fontStyle&&g.tspan.setAttributeNS(null,"font-style",g.fontStyle),g.fontWeight!==T.fontWeight&&g.tspan.setAttributeNS(null,"font-weight",g.fontWeight);const d=g.textRenderingMode&u.TextRenderingMode.FILL_STROKE_MASK;if(d===u.TextRenderingMode.FILL||d===u.TextRenderingMode.FILL_STROKE?(g.fillColor!==T.fillColor&&g.tspan.setAttributeNS(null,"fill",g.fillColor),g.fillAlpha<1&&g.tspan.setAttributeNS(null,"fill-opacity",g.fillAlpha)):g.textRenderingMode===u.TextRenderingMode.ADD_TO_PATH?g.tspan.setAttributeNS(null,"fill","transparent"):g.tspan.setAttributeNS(null,"fill","none"),d===u.TextRenderingMode.STROKE||d===u.TextRenderingMode.FILL_STROKE){const A=1/(g.textMatrixScale||1);this._setStrokeAttributes(g.tspan,A)}let o=g.textMatrix;g.textRise!==0&&(o=o.slice(),o[5]+=g.textRise),g.txtElement.setAttributeNS(null,"transform",`${b(o)} scale(${f(se)}, -1)`),g.txtElement.setAttributeNS(y,"xml:space","preserve"),g.txtElement.append(g.tspan),g.txtgrp.append(g.txtElement),this._ensureTransformGroup().append(g.txtElement)}setLeadingMoveText(a,g){this.setLeading(-g),this.moveText(a,g)}addFontStyle(a){if(!a.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.append(this.cssStyle));const g=h(a.data,a.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${a.loadedName}"; src: url(${g}); }
20
- `}setFont(a){const g=this.current,R=this.commonObjs.get(a[0]);let $=a[1];g.font=R,this.embedFonts&&!R.missingFile&&!this.embeddedFonts[R.loadedName]&&(this.addFontStyle(R),this.embeddedFonts[R.loadedName]=R),g.fontMatrix=R.fontMatrix||u.FONT_IDENTITY_MATRIX;let D="normal";R.black?D="900":R.bold&&(D="bold");const B=R.italic?"italic":"normal";$<0?($=-$,g.fontDirection=-1):g.fontDirection=1,g.fontSize=$,g.fontFamily=R.loadedName,g.fontWeight=D,g.fontStyle=B,g.tspan=this.svgFactory.createElement("svg:tspan"),g.tspan.setAttributeNS(null,"y",f(-g.y)),g.xcoords=[],g.ycoords=[]}endText(){const a=this.current;a.textRenderingMode&u.TextRenderingMode.ADD_TO_PATH_FLAG&&a.txtElement?.hasChildNodes()&&(a.element=a.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(a){a>0&&(this.current.lineWidth=a)}setLineCap(a){this.current.lineCap=r[a]}setLineJoin(a){this.current.lineJoin=l[a]}setMiterLimit(a){this.current.miterLimit=a}setStrokeAlpha(a){this.current.strokeAlpha=a}setStrokeRGBColor(a,g,R){this.current.strokeColor=u.Util.makeHexColor(a,g,R)}setFillAlpha(a){this.current.fillAlpha=a}setFillRGBColor(a,g,R){this.current.fillColor=u.Util.makeHexColor(a,g,R),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(a){this.current.strokeColor=this._makeColorN_Pattern(a)}setFillColorN(a){this.current.fillColor=this._makeColorN_Pattern(a)}shadingFill(a){const g=this.viewport.width,R=this.viewport.height,$=u.Util.inverseTransform(this.transformMatrix),D=u.Util.applyTransform([0,0],$),B=u.Util.applyTransform([0,R],$),q=u.Util.applyTransform([g,0],$),J=u.Util.applyTransform([g,R],$),se=Math.min(D[0],B[0],q[0],J[0]),Q=Math.min(D[1],B[1],q[1],J[1]),H=Math.max(D[0],B[0],q[0],J[0]),U=Math.max(D[1],B[1],q[1],J[1]),W=this.svgFactory.createElement("svg:rect");W.setAttributeNS(null,"x",se),W.setAttributeNS(null,"y",Q),W.setAttributeNS(null,"width",H-se),W.setAttributeNS(null,"height",U-Q),W.setAttributeNS(null,"fill",this._makeShadingPattern(a)),this.current.fillAlpha<1&&W.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(W)}_makeColorN_Pattern(a){return a[0]==="TilingPattern"?this._makeTilingPattern(a):this._makeShadingPattern(a)}_makeTilingPattern(a){const g=a[1],R=a[2],$=a[3]||u.IDENTITY_MATRIX,[D,B,q,J]=a[4],se=a[5],Q=a[6],H=a[7],U=`shading${w++}`,[W,S,d,o]=u.Util.normalizeRect([...u.Util.applyTransform([D,B],$),...u.Util.applyTransform([q,J],$)]),[A,M]=u.Util.singularValueDecompose2dScale($),j=se*A,e=Q*M,s=this.svgFactory.createElement("svg:pattern");s.setAttributeNS(null,"id",U),s.setAttributeNS(null,"patternUnits","userSpaceOnUse"),s.setAttributeNS(null,"width",j),s.setAttributeNS(null,"height",e),s.setAttributeNS(null,"x",`${W}`),s.setAttributeNS(null,"y",`${S}`);const x=this.svg,F=this.transformMatrix,C=this.current.fillColor,L=this.current.strokeColor,O=this.svgFactory.create(d-W,o-S);if(this.svg=O,this.transformMatrix=$,H===2){const V=u.Util.makeHexColor(...g);this.current.fillColor=V,this.current.strokeColor=V}return this.executeOpTree(this.convertOpList(R)),this.svg=x,this.transformMatrix=F,this.current.fillColor=C,this.current.strokeColor=L,s.append(O.childNodes[0]),this.defs.append(s),`url(#${U})`}_makeShadingPattern(a){switch(typeof a=="string"&&(a=this.objs.get(a)),a[0]){case"RadialAxial":const g=`shading${w++}`,R=a[3];let $;switch(a[1]){case"axial":const D=a[4],B=a[5];$=this.svgFactory.createElement("svg:linearGradient"),$.setAttributeNS(null,"id",g),$.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),$.setAttributeNS(null,"x1",D[0]),$.setAttributeNS(null,"y1",D[1]),$.setAttributeNS(null,"x2",B[0]),$.setAttributeNS(null,"y2",B[1]);break;case"radial":const q=a[4],J=a[5],se=a[6],Q=a[7];$=this.svgFactory.createElement("svg:radialGradient"),$.setAttributeNS(null,"id",g),$.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),$.setAttributeNS(null,"cx",J[0]),$.setAttributeNS(null,"cy",J[1]),$.setAttributeNS(null,"r",Q),$.setAttributeNS(null,"fx",q[0]),$.setAttributeNS(null,"fy",q[1]),$.setAttributeNS(null,"fr",se);break;default:throw new Error(`Unknown RadialAxial type: ${a[1]}`)}for(const D of R){const B=this.svgFactory.createElement("svg:stop");B.setAttributeNS(null,"offset",D[0]),B.setAttributeNS(null,"stop-color",D[1]),$.append(B)}return this.defs.append($),`url(#${g})`;case"Mesh":return(0,u.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${a[0]}`)}}setDash(a,g){this.current.dashArray=a,this.current.dashPhase=g}constructPath(a,g){const R=this.current;let $=R.x,D=R.y,B=[],q=0;for(const J of a)switch(J|0){case u.OPS.rectangle:$=g[q++],D=g[q++];const se=g[q++],Q=g[q++],H=$+se,U=D+Q;B.push("M",f($),f(D),"L",f(H),f(D),"L",f(H),f(U),"L",f($),f(U),"Z");break;case u.OPS.moveTo:$=g[q++],D=g[q++],B.push("M",f($),f(D));break;case u.OPS.lineTo:$=g[q++],D=g[q++],B.push("L",f($),f(D));break;case u.OPS.curveTo:$=g[q+4],D=g[q+5],B.push("C",f(g[q]),f(g[q+1]),f(g[q+2]),f(g[q+3]),f($),f(D)),q+=6;break;case u.OPS.curveTo2:B.push("C",f($),f(D),f(g[q]),f(g[q+1]),f(g[q+2]),f(g[q+3])),$=g[q+2],D=g[q+3],q+=4;break;case u.OPS.curveTo3:$=g[q+2],D=g[q+3],B.push("C",f(g[q]),f(g[q+1]),f($),f(D),f($),f(D)),q+=4;break;case u.OPS.closePath:B.push("Z");break}B=B.join(" "),R.path&&a.length>0&&a[0]!==u.OPS.rectangle&&a[0]!==u.OPS.moveTo?B=R.path.getAttributeNS(null,"d")+B:(R.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(R.path)),R.path.setAttributeNS(null,"d",B),R.path.setAttributeNS(null,"fill","none"),R.element=R.path,R.setCurrentPoint($,D)}endPath(){const a=this.current;if(a.path=null,!this.pendingClip)return;if(!a.element){this.pendingClip=null;return}const g=`clippath${E++}`,R=this.svgFactory.createElement("svg:clipPath");R.setAttributeNS(null,"id",g),R.setAttributeNS(null,"transform",b(this.transformMatrix));const $=a.element.cloneNode(!0);if(this.pendingClip==="evenodd"?$.setAttributeNS(null,"clip-rule","evenodd"):$.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,R.append($),this.defs.append(R),a.activeClipUrl){a.clipGroup=null;for(const D of this.extraStack)D.clipGroup=null;R.setAttributeNS(null,"clip-path",a.activeClipUrl)}a.activeClipUrl=`url(#${g})`,this.tgrp=null}clip(a){this.pendingClip=a}closePath(){const a=this.current;if(a.path){const g=`${a.path.getAttributeNS(null,"d")}Z`;a.path.setAttributeNS(null,"d",g)}}setLeading(a){this.current.leading=-a}setTextRise(a){this.current.textRise=a}setTextRenderingMode(a){this.current.textRenderingMode=a}setHScale(a){this.current.textHScale=a/100}setRenderingIntent(a){}setFlatness(a){}setGState(a){for(const[g,R]of a)switch(g){case"LW":this.setLineWidth(R);break;case"LC":this.setLineCap(R);break;case"LJ":this.setLineJoin(R);break;case"ML":this.setMiterLimit(R);break;case"D":this.setDash(R[0],R[1]);break;case"RI":this.setRenderingIntent(R);break;case"FL":this.setFlatness(R);break;case"Font":this.setFont(R);break;case"CA":this.setStrokeAlpha(R);break;case"ca":this.setFillAlpha(R);break;default:(0,u.warn)(`Unimplemented graphic state operator ${g}`);break}}fill(){const a=this.current;a.element&&(a.element.setAttributeNS(null,"fill",a.fillColor),a.element.setAttributeNS(null,"fill-opacity",a.fillAlpha),this.endPath())}stroke(){const a=this.current;a.element&&(this._setStrokeAttributes(a.element),a.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(a,g=1){const R=this.current;let $=R.dashArray;g!==1&&$.length>0&&($=$.map(function(D){return g*D})),a.setAttributeNS(null,"stroke",R.strokeColor),a.setAttributeNS(null,"stroke-opacity",R.strokeAlpha),a.setAttributeNS(null,"stroke-miterlimit",f(R.miterLimit)),a.setAttributeNS(null,"stroke-linecap",R.lineCap),a.setAttributeNS(null,"stroke-linejoin",R.lineJoin),a.setAttributeNS(null,"stroke-width",f(g*R.lineWidth)+"px"),a.setAttributeNS(null,"stroke-dasharray",$.map(f).join(" ")),a.setAttributeNS(null,"stroke-dashoffset",f(g*R.dashPhase)+"px")}eoFill(){this.current.element?.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element?.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width","1px"),a.setAttributeNS(null,"height","1px"),a.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(a)}paintImageXObject(a){const g=this.getObject(a);if(!g){(0,u.warn)(`Dependent image with object ID ${a} is not ready yet`);return}this.paintInlineImageXObject(g)}paintInlineImageXObject(a,g){const R=a.width,$=a.height,D=n(a,this.forceDataSchema,!!g),B=this.svgFactory.createElement("svg:rect");B.setAttributeNS(null,"x","0"),B.setAttributeNS(null,"y","0"),B.setAttributeNS(null,"width",f(R)),B.setAttributeNS(null,"height",f($)),this.current.element=B,this.clip("nonzero");const q=this.svgFactory.createElement("svg:image");q.setAttributeNS(c,"xlink:href",D),q.setAttributeNS(null,"x","0"),q.setAttributeNS(null,"y",f(-$)),q.setAttributeNS(null,"width",f(R)+"px"),q.setAttributeNS(null,"height",f($)+"px"),q.setAttributeNS(null,"transform",`scale(${f(1/R)} ${f(-1/$)})`),g?g.append(q):this._ensureTransformGroup().append(q)}paintImageMaskXObject(a){const g=this.getObject(a.data,a);if(g.bitmap){(0,u.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");return}const R=this.current,$=g.width,D=g.height,B=R.fillColor;R.maskId=`mask${I++}`;const q=this.svgFactory.createElement("svg:mask");q.setAttributeNS(null,"id",R.maskId);const J=this.svgFactory.createElement("svg:rect");J.setAttributeNS(null,"x","0"),J.setAttributeNS(null,"y","0"),J.setAttributeNS(null,"width",f($)),J.setAttributeNS(null,"height",f(D)),J.setAttributeNS(null,"fill",B),J.setAttributeNS(null,"mask",`url(#${R.maskId})`),this.defs.append(q),this._ensureTransformGroup().append(J),this.paintInlineImageXObject(g,q)}paintFormXObjectBegin(a,g){if(Array.isArray(a)&&a.length===6&&this.transform(a[0],a[1],a[2],a[3],a[4],a[5]),g){const R=g[2]-g[0],$=g[3]-g[1],D=this.svgFactory.createElement("svg:rect");D.setAttributeNS(null,"x",g[0]),D.setAttributeNS(null,"y",g[1]),D.setAttributeNS(null,"width",f(R)),D.setAttributeNS(null,"height",f($)),this.current.element=D,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(a){const g=this.svgFactory.create(a.width,a.height),R=this.svgFactory.createElement("svg:defs");g.append(R),this.defs=R;const $=this.svgFactory.createElement("svg:g");return $.setAttributeNS(null,"transform",b(a.transform)),g.append($),this.svg=$,g}_ensureClipGroup(){if(!this.current.clipGroup){const a=this.svgFactory.createElement("svg:g");a.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(a),this.current.clipGroup=a}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",b(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}}})],__webpack_module_cache__={};function __w_pdfjs_require__(_){var t=__webpack_module_cache__[_];if(t!==void 0)return t.exports;var v=__webpack_module_cache__[_]={exports:{}};return __webpack_modules__[_](v,v.exports,__w_pdfjs_require__),v.exports}var __webpack_exports__={};return(()=>{var _=__webpack_exports__;Object.defineProperty(_,"__esModule",{value:!0}),Object.defineProperty(_,"AbortException",{enumerable:!0,get:function(){return t.AbortException}}),Object.defineProperty(_,"AnnotationEditorLayer",{enumerable:!0,get:function(){return P.AnnotationEditorLayer}}),Object.defineProperty(_,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return t.AnnotationEditorParamsType}}),Object.defineProperty(_,"AnnotationEditorType",{enumerable:!0,get:function(){return t.AnnotationEditorType}}),Object.defineProperty(_,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return k.AnnotationEditorUIManager}}),Object.defineProperty(_,"AnnotationLayer",{enumerable:!0,get:function(){return T.AnnotationLayer}}),Object.defineProperty(_,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(_,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(_,"FeatureTest",{enumerable:!0,get:function(){return t.FeatureTest}}),Object.defineProperty(_,"GlobalWorkerOptions",{enumerable:!0,get:function(){return y.GlobalWorkerOptions}}),Object.defineProperty(_,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(_,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(_,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(_,"PDFDataRangeTransport",{enumerable:!0,get:function(){return v.PDFDataRangeTransport}}),Object.defineProperty(_,"PDFDateString",{enumerable:!0,get:function(){return i.PDFDateString}}),Object.defineProperty(_,"PDFWorker",{enumerable:!0,get:function(){return v.PDFWorker}}),Object.defineProperty(_,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(_,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(_,"PixelsPerInch",{enumerable:!0,get:function(){return i.PixelsPerInch}}),Object.defineProperty(_,"RenderingCancelledException",{enumerable:!0,get:function(){return i.RenderingCancelledException}}),Object.defineProperty(_,"SVGGraphics",{enumerable:!0,get:function(){return c.SVGGraphics}}),Object.defineProperty(_,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return t.UNSUPPORTED_FEATURES}}),Object.defineProperty(_,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(_,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(_,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(_,"XfaLayer",{enumerable:!0,get:function(){return r.XfaLayer}}),Object.defineProperty(_,"build",{enumerable:!0,get:function(){return v.build}}),Object.defineProperty(_,"createPromiseCapability",{enumerable:!0,get:function(){return t.createPromiseCapability}}),Object.defineProperty(_,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(_,"getDocument",{enumerable:!0,get:function(){return v.getDocument}}),Object.defineProperty(_,"getFilenameFromUrl",{enumerable:!0,get:function(){return i.getFilenameFromUrl}}),Object.defineProperty(_,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return i.getPdfFilenameFromUrl}}),Object.defineProperty(_,"getXfaPageViewport",{enumerable:!0,get:function(){return i.getXfaPageViewport}}),Object.defineProperty(_,"isDataScheme",{enumerable:!0,get:function(){return i.isDataScheme}}),Object.defineProperty(_,"isPdfFile",{enumerable:!0,get:function(){return i.isPdfFile}}),Object.defineProperty(_,"loadScript",{enumerable:!0,get:function(){return i.loadScript}}),Object.defineProperty(_,"renderTextLayer",{enumerable:!0,get:function(){return u.renderTextLayer}}),Object.defineProperty(_,"setLayerDimensions",{enumerable:!0,get:function(){return i.setLayerDimensions}}),Object.defineProperty(_,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(_,"updateTextLayer",{enumerable:!0,get:function(){return u.updateTextLayer}}),Object.defineProperty(_,"version",{enumerable:!0,get:function(){return v.version}});var t=__w_pdfjs_require__(1),v=__w_pdfjs_require__(2),i=__w_pdfjs_require__(6),u=__w_pdfjs_require__(26),P=__w_pdfjs_require__(27),k=__w_pdfjs_require__(5),T=__w_pdfjs_require__(32),y=__w_pdfjs_require__(14),c=__w_pdfjs_require__(35),r=__w_pdfjs_require__(34)})(),__webpack_exports__})())})(pdf)),pdf.exports}var pdfExports=requirePdf();const backdrop="_backdrop_pekod_1",modal="_modal_pekod_21",header="_header_pekod_40",title="_title_pekod_49",closeBtn="_closeBtn_pekod_56",content$1="_content_pekod_76",pdfFrame="_pdfFrame_pekod_84",pdfPages="_pdfPages_pekod_92",pdfError="_pdfError_pekod_97",openInNewTab="_openInNewTab_pekod_123",styles$5={backdrop,modal,header,title,closeBtn,content:content$1,pdfFrame,pdfPages,pdfError,openInNewTab};pdfExports.GlobalWorkerOptions.workerSrc=`https://unpkg.com/pdfjs-dist@${pdfExports.version}/build/pdf.worker.min.js`;const SampleReportModal=({isOpen:_,onClose:t,title:v,pdfUrl:i})=>{const u=require$$0.useRef(null),[P,k]=require$$0.useState(!0),[T,y]=require$$0.useState(null);return require$$0.useEffect(()=>{if(!_)return;const c=r=>{r.key==="Escape"&&t()};return document.addEventListener("keydown",c),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",c),document.body.style.overflow=""}},[_,t]),require$$0.useEffect(()=>{if(!_||!i||!u.current)return;k(!0),y(null),u.current.innerHTML="",(async()=>{try{const l=await pdfExports.getDocument({url:i}).promise,h=u.current;if(!h)return;const n=h.clientWidth||600,p=Math.min(n/612,2);for(let m=1;m<=l.numPages;m++){const f=await l.getPage(m),b=f.getViewport({scale:p}),E=document.createElement("canvas");E.height=b.height,E.width=b.width,E.style.display="block",E.style.margin="0 auto 1rem",E.style.maxWidth="100%";const I=E.getContext("2d");I&&await f.render({canvasContext:I,viewport:b}).promise,h.appendChild(E)}}catch(r){y(r instanceof Error?r.message:"Failed to load PDF")}finally{k(!1)}})()},[_,i]),_?jsxRuntimeExports.jsx("div",{className:styles$5.backdrop,onClick:t,role:"dialog","aria-modal":"true","aria-labelledby":"sample-report-modal-title",children:jsxRuntimeExports.jsxs("div",{className:styles$5.modal,onClick:c=>c.stopPropagation(),children:[jsxRuntimeExports.jsxs("div",{className:styles$5.header,children:[jsxRuntimeExports.jsx("h2",{id:"sample-report-modal-title",className:styles$5.title,children:v}),jsxRuntimeExports.jsx("button",{type:"button",className:styles$5.closeBtn,onClick:t,"aria-label":"Close",children:"×"})]}),jsxRuntimeExports.jsxs("div",{className:styles$5.content,children:[jsxRuntimeExports.jsxs("div",{className:styles$5.pdfFrame,children:[T&&jsxRuntimeExports.jsxs("div",{className:styles$5.pdfError,children:[jsxRuntimeExports.jsx("span",{children:T}),jsxRuntimeExports.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:"Open in new tab instead"})]}),jsxRuntimeExports.jsx("div",{ref:u,className:styles$5.pdfPages})]}),jsxRuntimeExports.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:styles$5.openInNewTab,children:"Open in new tab"})]})]})}):null},DEFAULT_PDF_URL="https://srm-cdn.a4b.io/yoda/1770651163050.pdf",ViewSampleReportButton=({t:_,pdfUrl:t=DEFAULT_PDF_URL,onClick:v,analytics:i,className:u=""})=>{const[P,k]=require$$0.useState(!1),T=_("viewSampleReport"),y=_("sampleReportModalTitle"),c=()=>{i?.trackViewSampleReportClicked?.(),v?.(),k(!0)},r=()=>{i?.trackViewSampleReportClosed?.(),k(!1)};return jsxRuntimeExports.jsxs("section",{className:`${styles$6.section} ${u}`,children:[jsxRuntimeExports.jsx("button",{type:"button",className:styles$6.button,onClick:c,children:T}),jsxRuntimeExports.jsx(SampleReportModal,{isOpen:P,onClose:r,title:y,pdfUrl:t})]})},section$4="_section_g1kup_1",heading$4="_heading_g1kup_5",list$1="_list_g1kup_10",item$2="_item_g1kup_17",imageWrap="_imageWrap_g1kup_21",image="_image_g1kup_21",imagePlaceholder="_imagePlaceholder_g1kup_30",text="_text_g1kup_36",itemTitle="_itemTitle_g1kup_40",itemDesc="_itemDesc_g1kup_51",styles$4={section:section$4,heading:heading$4,list:list$1,item:item$2,imageWrap,image,imagePlaceholder,text,itemTitle,itemDesc},ITEMS=[{titleKey:"findDasha",descKey:"findDashaDesc"},{titleKey:"findYoga",descKey:"findYogaDesc"},{titleKey:"findGemstone",descKey:"findGemstoneDesc"},{titleKey:"findPooja",descKey:"findPoojaDesc"},{titleKey:"findMonthly",descKey:"findMonthlyDesc"},{titleKey:"findStrength",descKey:"findStrengthDesc"}],DEFAULT_IMAGE_URLS=["https://srm-cdn.a4b.io/yoda/1770639688505.png","https://srm-cdn.a4b.io/yoda/1770639714646.png","https://srm-cdn.a4b.io/yoda/1770639727335.png","https://srm-cdn.a4b.io/yoda/1770639739387.png","https://srm-cdn.a4b.io/yoda/1770639749920.png","https://srm-cdn.a4b.io/yoda/1770639760835.png"],WhatYoullFindSection=({t:_,imageUrls:t=DEFAULT_IMAGE_URLS,className:v=""})=>jsxRuntimeExports.jsxs("section",{className:`${styles$4.section} ${v}`,"aria-labelledby":"find-heading",children:[jsxRuntimeExports.jsx("h2",{id:"find-heading",className:styles$4.heading,children:_("whatYoullFindTitle")}),jsxRuntimeExports.jsx("ul",{className:styles$4.list,children:ITEMS.map((i,u)=>jsxRuntimeExports.jsxs("li",{className:styles$4.item,children:[jsxRuntimeExports.jsx("div",{className:styles$4.imageWrap,children:t[u]?jsxRuntimeExports.jsx("img",{src:t[u],alt:"",className:styles$4.image}):jsxRuntimeExports.jsx("div",{className:styles$4.imagePlaceholder,"aria-hidden":!0})}),jsxRuntimeExports.jsxs("div",{className:styles$4.text,children:[jsxRuntimeExports.jsx("h3",{className:styles$4.itemTitle,children:_(i.titleKey)}),jsxRuntimeExports.jsx("p",{className:styles$4.itemDesc,children:_(i.descKey)})]})]},i.titleKey))})]}),section$3="_section_1poer_1",heading$3="_heading_1poer_6",subtitle="_subtitle_1poer_11",list="_list_1poer_16",item$1="_item_1poer_20",styles$3={section:section$3,heading:heading$3,subtitle,list,item:item$1},BULLETS=["whyUs1","whyUs2","whyUs3","whyUs4"],WhyUsSection=({t:_,className:t=""})=>jsxRuntimeExports.jsxs("section",{className:`${styles$3.section} ${t}`,"aria-labelledby":"why-heading",children:[jsxRuntimeExports.jsx("h2",{id:"why-heading",className:styles$3.heading,children:_("whyUsTitle")}),jsxRuntimeExports.jsx("p",{className:styles$3.subtitle,children:_("whyUsSubtitle")}),jsxRuntimeExports.jsx("ul",{className:styles$3.list,children:BULLETS.map(v=>jsxRuntimeExports.jsx("li",{className:styles$3.item,children:_(v)},v))})]}),section$2="_section_3cm7k_1",heading$2="_heading_3cm7k_5",trustLine="_trustLine_3cm7k_10",star="_star_3cm7k_15",ratingNum="_ratingNum_3cm7k_20",trustText="_trustText_3cm7k_24",cardList="_cardList_3cm7k_28",card="_card_3cm7k_28",quote="_quote_3cm7k_37",author="_author_3cm7k_42",avatar="_avatar_3cm7k_46",avatarPlaceholder="_avatarPlaceholder_3cm7k_50",authorInfo="_authorInfo_3cm7k_55",authorName="_authorName_3cm7k_59",stars="_stars_3cm7k_64",readMoreWrap="_readMoreWrap_3cm7k_69",toggleBtn="_toggleBtn_3cm7k_73",readMore="_readMore_3cm7k_69",arrow="_arrow_3cm7k_93",dot="_dot_3cm7k_97",styles$2={section:section$2,heading:heading$2,trustLine,star,ratingNum,trustText,cardList,card,quote,author,avatar,avatarPlaceholder,authorInfo,authorName,stars,readMoreWrap,toggleBtn,readMore,arrow,dot},INITIAL_VISIBLE=3,buildTestimonialsFromTranslations=_=>{const v=new Map;for(let y=1;y<=15;y+=1){const c=`feedbackTestimonial${y}`,r=_(c);if(!r||r===c)continue;const l=`feedbackAuthor${y}`,h=(()=>{const m=_(l);return m&&m!==l?m:_("guest")})(),n=`feedbackAuthor${y}AvatarUrl`,p=(()=>{const m=_(n);return m&&m!==n?m:void 0})();v.set(y,{quote:r,authorName:h,authorAvatarUrl:p,rating:5})}const i=[],u=[];for(let y=1;y<=15;y+=1)y>=9?u.push(y):i.push(y);const P=[];let k=0,T=0;for(;k<i.length||T<u.length;){if(T<u.length){const y=u[T++],c=v.get(y);c&&P.push(c)}if(k<i.length){const y=i[k++],c=v.get(y);c&&P.push(c)}}return P},FeedbackSection=({t:_,testimonials:t,readMoreHref:v,onReadMore:i,className:u=""})=>{const P=t??require$$0.useMemo(()=>buildTestimonialsFromTranslations(_),[_]),[k,T]=require$$0.useState(!1),y=P.length>INITIAL_VISIBLE,c=y&&!k?P.slice(0,INITIAL_VISIBLE):P;return jsxRuntimeExports.jsxs("section",{className:`${styles$2.section} ${u}`,"aria-labelledby":"feedback-heading",children:[jsxRuntimeExports.jsx("h2",{id:"feedback-heading",className:styles$2.heading,children:_("feedbackTitle")}),jsxRuntimeExports.jsxs("p",{className:styles$2.trustLine,children:[jsxRuntimeExports.jsx("span",{className:styles$2.star,"aria-hidden":!0,children:"★"}),jsxRuntimeExports.jsx("span",{className:styles$2.ratingNum,children:_("feedbackRating")}),jsxRuntimeExports.jsx("span",{className:styles$2.dot,"aria-hidden":!0}),jsxRuntimeExports.jsx("span",{className:styles$2.trustText,children:_("feedbackTrust")})]}),jsxRuntimeExports.jsx("ul",{className:styles$2.cardList,children:c.map((r,l)=>jsxRuntimeExports.jsxs("li",{className:styles$2.card,children:[jsxRuntimeExports.jsx("p",{className:styles$2.quote,children:r.quote}),jsxRuntimeExports.jsxs("div",{className:styles$2.author,children:[r.authorAvatarUrl?jsxRuntimeExports.jsx("img",{src:r.authorAvatarUrl,alt:"",className:styles$2.avatar,width:40,height:40}):jsxRuntimeExports.jsx("div",{className:styles$2.avatarPlaceholder,"aria-hidden":!0}),jsxRuntimeExports.jsxs("div",{className:styles$2.authorInfo,children:[jsxRuntimeExports.jsx("span",{className:styles$2.authorName,children:r.authorName}),jsxRuntimeExports.jsx("span",{className:styles$2.stars,"aria-hidden":!0,children:"★".repeat(r.rating??5)})]})]})]},l))}),y&&jsxRuntimeExports.jsx("div",{className:styles$2.readMoreWrap,children:jsxRuntimeExports.jsxs("button",{type:"button",className:styles$2.toggleBtn,onClick:()=>T(r=>!r),"aria-expanded":k,children:[_(k?"readLess":"readMoreReviews"),jsxRuntimeExports.jsx("span",{className:styles$2.arrow,"aria-hidden":!0,children:"›"})]})}),(v||i)&&!y&&jsxRuntimeExports.jsx("div",{className:styles$2.readMoreWrap,children:v?jsxRuntimeExports.jsxs("a",{href:v,className:styles$2.readMore,target:"_blank",rel:"noopener noreferrer",children:[_("readMoreReviews"),jsxRuntimeExports.jsx("span",{className:styles$2.arrow,"aria-hidden":!0,children:"›"})]}):jsxRuntimeExports.jsxs("button",{type:"button",className:styles$2.readMore,onClick:()=>i?.(),children:[_("readMoreReviews"),jsxRuntimeExports.jsx("span",{className:styles$2.arrow,"aria-hidden":!0,children:"›"})]})})]})},section$1="_section_1scfq_1",heading$1="_heading_1scfq_6",accordion="_accordion_1scfq_11",item="_item_1scfq_15",itemOpen="_itemOpen_1scfq_21",question="_question_1scfq_25",chevron="_chevron_1scfq_40",chevronOpen="_chevronOpen_1scfq_47",answerWrap="_answerWrap_1scfq_51",answerOpen="_answerOpen_1scfq_56",answer="_answer_1scfq_51",styles$1={section:section$1,heading:heading$1,accordion,item,itemOpen,question,chevron,chevronOpen,answerWrap,answerOpen,answer},FAQ_ITEMS=[{qKey:"faqQ1",aKey:"faqA1"},{qKey:"faqQ3",aKey:"faqA3"}],FAQSection=({t:_,className:t=""})=>{const i=useKundliContext()?.config.isGlobal??!0,[u,P]=require$$0.useState(1),k=T=>T==="faqA1"?i?"faqA1Global":"faqA1Domestic":T;return jsxRuntimeExports.jsxs("section",{className:`${styles$1.section} ${t}`,"aria-labelledby":"faq-heading",children:[jsxRuntimeExports.jsx("h2",{id:"faq-heading",className:styles$1.heading,children:_("faqTitle")}),jsxRuntimeExports.jsx("div",{className:styles$1.accordion,role:"list",children:FAQ_ITEMS.map((T,y)=>{const c=u===y;return jsxRuntimeExports.jsxs("div",{className:`${styles$1.item} ${c?styles$1.itemOpen:""}`,role:"listitem",children:[jsxRuntimeExports.jsxs("button",{type:"button",className:styles$1.question,onClick:()=>P(c?-1:y),"aria-expanded":c,"aria-controls":`faq-answer-${y}`,id:`faq-question-${y}`,children:[jsxRuntimeExports.jsx("span",{children:_(T.qKey)}),jsxRuntimeExports.jsx("span",{className:`${styles$1.chevron} ${c?styles$1.chevronOpen:""}`,"aria-hidden":!0,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,focusable:"false",children:jsxRuntimeExports.jsx("path",{d:"M5.8 8.3a1 1 0 0 1 1.4 0L10 11.09l2.8-2.8a1 1 0 1 1 1.4 1.42l-3.5 3.5a1 1 0 0 1-1.4 0l-3.5-3.5A1 1 0 0 1 5.8 8.3z",fill:"currentColor"})})})]}),jsxRuntimeExports.jsx("div",{id:`faq-answer-${y}`,role:"region","aria-labelledby":`faq-question-${y}`,className:`${styles$1.answerWrap} ${c?styles$1.answerOpen:""}`,hidden:!c,children:T.aKey&&jsxRuntimeExports.jsx("p",{className:styles$1.answer,children:_(k(T.aKey))})})]},T.qKey)})})]})},section="_section_aphm8_1",heading="_heading_aphm8_6",content="_content_aphm8_11",line="_line_aphm8_16",brandName="_brandName_aphm8_20",styles={section,heading,content,line,brandName},ContactUsSection=({t:_,whatsAppNumber:t,email:v,brandName:i,className:u=""})=>{const P=t??"8295049751",k=v??"shubham.goyal@supportmandir.com";return jsxRuntimeExports.jsxs("section",{className:`${styles.section} ${u}`,"aria-labelledby":"contact-heading",children:[jsxRuntimeExports.jsx("h2",{id:"contact-heading",className:styles.heading,children:_("contactTitle")}),jsxRuntimeExports.jsxs("div",{className:styles.content,children:[jsxRuntimeExports.jsx("p",{className:styles.brandName,children:i??_("sriMandir")}),jsxRuntimeExports.jsx("p",{className:styles.line,children:_("contactWhatsApp").replace("8295049751",P)}),jsxRuntimeExports.jsx("p",{className:styles.line,children:_("contactEmail").replace("shubham.goyal@supportmandir.com",k)})]})]})},ICON_KUNDLI_CREATED="https://srm-cdn.a4b.io/yoda/1770375694934.svg",ICON_CERTIFIED="https://srm-cdn.a4b.io/yoda/1770375720933.svg",ICON_SECURE_PAYMENT="https://srm-cdn.a4b.io/yoda/1770707793537.svg",BadgeRow=({t:_})=>jsxRuntimeExports.jsxs("div",{className:footerShellStyles.marqueeTrack,children:[jsxRuntimeExports.jsxs("div",{className:footerShellStyles.marqueeContent,children:[jsxRuntimeExports.jsxs("span",{className:footerShellStyles.badge,children:[jsxRuntimeExports.jsx("img",{src:ICON_KUNDLI_CREATED,alt:"",className:footerShellStyles.badgeIcon,width:16,height:16,"aria-hidden":!0}),_("ctaKundliCreated")]}),jsxRuntimeExports.jsxs("span",{className:footerShellStyles.badge,children:[jsxRuntimeExports.jsx("img",{src:ICON_CERTIFIED,alt:"",className:footerShellStyles.badgeIcon,width:16,height:16,"aria-hidden":!0}),_("ctaCertified")]}),jsxRuntimeExports.jsxs("span",{className:footerShellStyles.badge,children:[jsxRuntimeExports.jsx("img",{src:ICON_SECURE_PAYMENT,alt:"",className:footerShellStyles.badgeIcon,width:16,height:16,"aria-hidden":!0}),_("ctaSecurePayment")]})]}),jsxRuntimeExports.jsxs("div",{className:footerShellStyles.marqueeContent,"aria-hidden":!0,children:[jsxRuntimeExports.jsxs("span",{className:footerShellStyles.badge,children:[jsxRuntimeExports.jsx("img",{src:ICON_KUNDLI_CREATED,alt:"",className:footerShellStyles.badgeIcon,width:16,height:16,"aria-hidden":!0}),_("ctaKundliCreated")]}),jsxRuntimeExports.jsxs("span",{className:footerShellStyles.badge,children:[jsxRuntimeExports.jsx("img",{src:ICON_CERTIFIED,alt:"",className:footerShellStyles.badgeIcon,width:16,height:16,"aria-hidden":!0}),_("ctaCertified")]}),jsxRuntimeExports.jsxs("span",{className:footerShellStyles.badge,children:[jsxRuntimeExports.jsx("img",{src:ICON_SECURE_PAYMENT,alt:"",className:footerShellStyles.badgeIcon,width:16,height:16,"aria-hidden":!0}),_("ctaSecurePayment")]})]})]}),CTAFooter=({t:_,onCtaClick:t,ctaHref:v,className:i=""})=>{const u=useKundliContext(),P=u?.config.isGlobal??!0,k=P?u?.config.originalPriceLabel??_("ctaButtonStruck"):"₹999",T=P?u?.config.discountedPriceLabel??_("ctaButtonAfter"):"₹249",y=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[_("ctaButtonBefore"),jsxRuntimeExports.jsx("span",{className:footerShellStyles.ctaStruck,children:k})," ",T]});return jsxRuntimeExports.jsx(FooterShell,{className:i,marquee:jsxRuntimeExports.jsx(BadgeRow,{t:_}),children:jsxRuntimeExports.jsx(FooterCTAButton,{href:v,onClick:t,children:y})})},GLOBE_ICON_URL$1="https://srm-cdn.a4b.io/yoda/1770362713543.svg",DEFAULT_GOOGLE_MAPS_API_KEY="AIzaSyCEsEBy-JYuu9SSITQrpYU3tpaq5HQOhi4",tFromLocale$1=(_,t)=>translations[_]?.[t]??t,DEFAULT_VALUES={fullName:"",phone:"",email:"",dateOfBirth:"",birthTime:"",birthTimeUnknown:!1,birthPlace:""},KundliForm=({className:_="",locale:t,showLanguageSelector:v=!0,onBack:i,initialValues:u,onProceed:P,proceedHref:k,originalPriceLabel:T,discountedPriceLabel:y,discountPillLabel:c,googleMapsApiKey:r=DEFAULT_GOOGLE_MAPS_API_KEY,analytics:l})=>{const h=useKundliContext(),n=useI18n(),p=h!==null,m=p?h.locale:t,f=m??n?.locale??"en",[b,E]=require$$0.useState(f),I=p?h.locale:b,w=p?h.setLocale:E,[a,g]=require$$0.useState(!1),R=require$$0.useRef(null),$=require$$0.useRef(m),D=require$$0.useRef(n?.locale);require$$0.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"auto"})},[]);const B=e=>tFromLocale$1(I,e);require$$0.useEffect(()=>{m&&$.current!==m&&w(m),$.current=m},[m,w]),require$$0.useEffect(()=>{if(m)return;const e=n?.locale;e&&D.current!==e&&w(e),D.current=e},[n?.locale,m,w]);const[q,J]=require$$0.useState({...DEFAULT_VALUES,...u,phone:u?.phone??""}),se=p?h.formValues:q,Q=p?h.setFormValues:J,H=p?h.goToPage:i,U=p?h.onProceed:P,W=p?h.config.proceedHref:k,S=p?h.config.originalPriceLabel:T,d=p?h.config.discountedPriceLabel:y,o=p?h.config.discountPillLabel:c,A=p?h.config.showLanguageSelector??!0:v,M=(p?h?.config?.analytics:l)??l;require$$0.useEffect(()=>{if(!a)return;const e=s=>{R.current&&!R.current.contains(s.target)&&g(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[a]);const j=A?jsxRuntimeExports.jsxs("div",{className:styles$e.langDropdownWrap,ref:R,children:[jsxRuntimeExports.jsxs("button",{type:"button",className:styles$e.langTrigger,onClick:()=>{M?.trackLanguageClickedFe?.({language:I}),g(e=>!e)},"aria-expanded":a,"aria-haspopup":"listbox",id:"kundli-form-lang","aria-label":B("language"),children:[jsxRuntimeExports.jsx("img",{src:GLOBE_ICON_URL$1,alt:"",className:styles$e.langIcon,width:16,height:16,"aria-hidden":!0}),jsxRuntimeExports.jsx("span",{className:styles$e.langLabel,children:LOCALE_LABELS[I]})]}),a&&jsxRuntimeExports.jsx("ul",{className:styles$e.langMenu,role:"listbox","aria-labelledby":"kundli-form-lang","aria-activedescendant":`kundli-form-lang-option-${I}`,children:SUPPORTED_LOCALES.map(e=>jsxRuntimeExports.jsx("li",{id:`kundli-form-lang-option-${e}`,role:"option","aria-selected":e===I,className:styles$e.langOption,onClick:()=>{M?.trackLanguageChangedFe?.({newLanguage:e}),w(e),g(!1)},children:LOCALE_LABELS[e]},e))})]}):null;return jsxRuntimeExports.jsxs("div",{className:`${styles$e.container} ${_}`,children:[jsxRuntimeExports.jsx(KundliHeader,{t:B,logoUrl:p?h.config.logoUrl:void 0,languageSelector:j,className:styles$e.kundliHeaderNoBorder}),jsxRuntimeExports.jsx("div",{className:styles$e.headerSeparator,"aria-hidden":!0}),jsxRuntimeExports.jsxs("main",{className:styles$e.main,children:[jsxRuntimeExports.jsx(FormHeader,{t:B,onBack:H}),jsxRuntimeExports.jsx(UserInfoFormSection,{t:B,values:se,onChange:Q,googleMapsApiKey:r})]}),jsxRuntimeExports.jsx(ProceedFooter,{t:B,values:se,onProceed:U,href:W,originalPriceLabel:S,discountedPriceLabel:d,discountPillLabel:o,analytics:M})]})},GLOBE_ICON_URL="https://srm-cdn.a4b.io/yoda/1770362713543.svg",tFromLocale=(_,t)=>translations[_]?.[t]??t,CTA_FOOTER_HEIGHT_PX=112;function SectionWithImpression({section:_,children:t,onImpression:v}){const i=require$$0.useRef(null),u=require$$0.useRef(!1);return require$$0.useEffect(()=>{const P=i.current;if(!P)return;const k=new IntersectionObserver(([T])=>{!T?.isIntersecting||u.current||(u.current=!0,v(_))},{threshold:.1,rootMargin:`0px 0px -${CTA_FOOTER_HEIGHT_PX}px 0px`});return k.observe(P),()=>k.disconnect()},[_,v]),jsxRuntimeExports.jsx("div",{ref:i,children:t})}function KundliPageRouter({className:_}){const{view:t}=useKundliContextOrThrow();return t==="form"?jsxRuntimeExports.jsx(KundliForm,{}):jsxRuntimeExports.jsx(KundliPageContent,{className:_})}function KundliPageContent({className:_}){const t=useI18n(),{locale:v,setLocale:i,config:u,goToForm:P}=useKundliContextOrThrow(),[k,T]=require$$0.useState(!1),y=require$$0.useRef(null),c=require$$0.useRef(u.locale),r=require$$0.useRef(t?.locale);require$$0.useEffect(()=>{u.locale&&c.current!==u.locale&&i(u.locale),c.current=u.locale},[u.locale,i]),require$$0.useEffect(()=>{if(u.locale)return;const f=t?.locale;f&&r.current!==f&&i(f),r.current=f},[t?.locale,u.locale,i]),require$$0.useEffect(()=>{if(!k)return;const f=b=>{y.current&&!y.current.contains(b.target)&&T(!1)};return document.addEventListener("mousedown",f),()=>document.removeEventListener("mousedown",f)},[k]);const l=f=>tFromLocale(v,f),n=u.showLanguageSelector??!0?jsxRuntimeExports.jsxs("div",{className:styles$f.langDropdownWrap,ref:y,children:[jsxRuntimeExports.jsxs("button",{type:"button",className:styles$f.langTrigger,onClick:()=>{u.analytics?.trackLanguageClickedFe?.({language:v}),T(f=>!f)},"aria-expanded":k,"aria-haspopup":"listbox",id:"kundli-lang","aria-label":l("language"),children:[jsxRuntimeExports.jsx("img",{src:GLOBE_ICON_URL,alt:"",className:styles$f.langIcon,width:16,height:16,"aria-hidden":!0}),jsxRuntimeExports.jsx("span",{className:styles$f.langLabel,children:LOCALE_LABELS[v]})]}),k&&jsxRuntimeExports.jsx("ul",{className:styles$f.langMenu,role:"listbox","aria-labelledby":"kundli-lang","aria-activedescendant":`kundli-lang-option-${v}`,children:SUPPORTED_LOCALES.map(f=>jsxRuntimeExports.jsx("li",{id:`kundli-lang-option-${f}`,role:"option","aria-selected":f===v,className:styles$f.langOption,onClick:()=>{u.analytics?.trackLanguageChangedFe?.({newLanguage:f}),i(f),T(!1)},children:LOCALE_LABELS[f]},f))})]}):null,p=f=>{const b=f.currentTarget.innerText?.trim()??l("ctaButtonAfter");u.analytics?.trackPrimaryCtaClickedFe?.({ctaText:b}),P(),u.onCtaClick?.()},m=require$$0.useCallback(f=>{u.analytics?.trackDetailedKundliReportImpressionFe?.({section:f,timestamp:new Date().toISOString()})},[u.analytics]);return jsxRuntimeExports.jsxs("div",{className:`${styles$f.container} ${_}`,children:[jsxRuntimeExports.jsx(KundliHeader,{t:l,logoUrl:u.logoUrl,languageSelector:n}),jsxRuntimeExports.jsxs("main",{className:styles$f.main,children:[jsxRuntimeExports.jsx(SectionWithImpression,{section:"hero",onImpression:m,children:jsxRuntimeExports.jsx(HeroSection,{t:l})}),jsxRuntimeExports.jsx(SectionWithImpression,{section:"premium_report_overview",onImpression:m,children:jsxRuntimeExports.jsx(PremiumReportOverview,{t:l,reportImageUrl:u.reportImageUrl,analytics:u.analytics})}),jsxRuntimeExports.jsx(SectionWithImpression,{section:"university_certification",onImpression:m,children:jsxRuntimeExports.jsx(UniversityCertification,{t:l,logoUrl:u.universityLogoUrls?.find(f=>!!f)})}),jsxRuntimeExports.jsx(SectionWithImpression,{section:"three_steps_process",onImpression:m,children:jsxRuntimeExports.jsx(ThreeStepsProcess,{t:l,locale:v})}),jsxRuntimeExports.jsx(SectionWithImpression,{section:"view_sample_report",onImpression:m,children:jsxRuntimeExports.jsx(ViewSampleReportButton,{t:l,pdfUrl:u.sampleReportHref,onClick:u.onViewSampleReport,analytics:u.analytics})}),jsxRuntimeExports.jsx(SectionWithImpression,{section:"what_youll_find",onImpression:m,children:jsxRuntimeExports.jsx(WhatYoullFindSection,{t:l})}),jsxRuntimeExports.jsx(SectionWithImpression,{section:"why_us",onImpression:m,children:jsxRuntimeExports.jsx(WhyUsSection,{t:l})}),jsxRuntimeExports.jsx(SectionWithImpression,{section:"feedback",onImpression:m,children:jsxRuntimeExports.jsx(FeedbackSection,{t:l,readMoreHref:u.readMoreReviewsHref})}),jsxRuntimeExports.jsx(SectionWithImpression,{section:"faq",onImpression:m,children:jsxRuntimeExports.jsx(FAQSection,{t:l})}),jsxRuntimeExports.jsx(SectionWithImpression,{section:"contact_us",onImpression:m,children:jsxRuntimeExports.jsx(ContactUsSection,{t:l})})]}),jsxRuntimeExports.jsx(CTAFooter,{t:l,ctaHref:u.ctaHref,onCtaClick:u.ctaHref?void 0:p})]})}const KundliPage=({className:_="",locale:t,showLanguageSelector:v=!0,userId:i,isGlobal:u,logoUrl:P,reportImageUrl:k,universityLogoUrls:T,sampleReportHref:y,onViewSampleReport:c,ctaHref:r,onCtaClick:l,readMoreReviewsHref:h,onProceed:n,proceedHref:p,originalPriceLabel:m,discountedPriceLabel:f,discountPillLabel:b,analytics:E,onLocaleChange:I})=>jsxRuntimeExports.jsx(KundliProvider,{locale:t,showLanguageSelector:v,userId:i,isGlobal:u,logoUrl:P,reportImageUrl:k,universityLogoUrls:T,sampleReportHref:y,onViewSampleReport:c,ctaHref:r,onCtaClick:l,readMoreReviewsHref:h,onProceed:n,proceedHref:p,originalPriceLabel:m,discountedPriceLabel:f,discountPillLabel:b,analytics:E,onLocaleChange:I,children:jsxRuntimeExports.jsx(KundliPageRouter,{className:_})}),KUNDLI_ANALYTICS_EVENT_NAMES={banner_clicked_fe:"banner_clicked_fe",primary_cta_clicked_fe:"primary_cta_clicked_fe",language_changed_fe:"language_changed_fe",language_clicked_fe:"language_clicked_fe",retry_payment:"retry_payment",detailed_kundli_report_impression_fe:"detailed_kundli_report_impression_fe",payment_partner_page_opened:"payment_partner_page_opened",view_sample_report_clicked:"view_sample_report_clicked",view_sample_report_closed:"view_sample_report_closed",info_icon_clicked:"info_icon_clicked",name_section_clicked:"name_section_clicked",name_section_filled:"name_section_filled",phone_section_clicked:"phone_section_clicked",phone_section_filled:"phone_section_filled",email_section_clicked:"email_section_clicked",email_section_filled:"email_section_filled",dob_clicked:"dob_clicked",dob_filled:"dob_filled",time_clicked:"time_clicked",time_filled:"time_filled",time_checkbox_clicked:"time_checkbox_clicked",place_of_birth_clicked:"place_of_birth_clicked",place_of_birth_chosen:"place_of_birth_chosen",language_of_report_clicked:"language_of_report_clicked",primary_cta_clicked_l1:"primary_cta_clicked_l1",kundli_page_view:"kundli_page_view",kundli_form_view:"kundli_form_view"};exports.I18nProvider=I18nProvider,exports.KUNDLI_ANALYTICS_EVENT_NAMES=KUNDLI_ANALYTICS_EVENT_NAMES,exports.KUNDLI_LANGUAGE_STORAGE_KEY=KUNDLI_LANGUAGE_STORAGE_KEY,exports.KundliContext=KundliContext,exports.KundliForm=KundliForm,exports.KundliPage=KundliPage,exports.KundliProvider=KundliProvider,exports.SUPPORTED_LOCALES=SUPPORTED_LOCALES,exports.getItem=getItem,exports.getStoredKundliLocale=getStoredKundliLocale,exports.isLocalStorageAvailable=isLocalStorageAvailable,exports.removeItem=removeItem,exports.setItem=setItem,exports.setStoredKundliLocale=setStoredKundliLocale,exports.useI18n=useI18n,exports.useKundliContext=useKundliContext,exports.useKundliContextOrThrow=useKundliContextOrThrow,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})}));
15
+ <%s key={someKey} {...props} />`,Je,xe,ta,xe),Et[xe+Je]=!0}}return t===p?Jr($):Vr($),$}}function Qr(t,o,u){return It(t,o,u,!0)}function Xr(t,o,u){return It(t,o,u,!1)}var Zr=Xr,ea=Qr;Te.Fragment=p,Te.jsx=Zr,Te.jsxs=ea})()),Te}var et;function zt(){return et||(et=1,process.env.NODE_ENV==="production"?Ce.exports=Rt():Ce.exports=Lt()),Ce.exports}var e=zt();const pe={container:"_container_nm3gb_1",main:"_main_nm3gb_6",langDropdownWrap:"_langDropdownWrap_nm3gb_12",langTrigger:"_langTrigger_nm3gb_16",langIcon:"_langIcon_nm3gb_28",langLabel:"_langLabel_nm3gb_35",langMenu:"_langMenu_nm3gb_40",langOption:"_langOption_nm3gb_46"},Re=["en","hi"],Le={en:"English",hi:"हिन्दी"},Ue={en:{kundli:"Kundli",birthChart:"Birth Chart",details:"Details",name:"Name",birthDate:"Birth Date",guest:"Guest",description:"Your birth chart reveals planetary positions at the time of your birth and their influence on your life.",lagna:"Lagna",rashi:"Rashi",nakshatra:"Nakshatra",language:"Language",sriMandir:"Shubham Goyal (Director - Founder's Office)",ratingText:"4.9/5 on Google PlayStore",heroTitle:"Get Your Premium Personalised Kundli Report",heroSubtitle:"This premium personalised kundli report helps you find answers to major life issues.",topicMarriage:"Marriage",topicRelationship:"Relationship",topicBusiness:"Business",topicHealth:"Health",topicCareer:"Career",topicEducation:"Education",topicMoney:"Money",premiumHeadline:"200+ Pages Premium Personalised Kundli Report",premiumHeadlinePill1:"200+ Pages",premiumHeadlinePlain1:"Premium",premiumHeadlinePlain2:"Personalised",premiumHeadlinePill2:"Kundli Report",premiumFeature1:"Vedic Birth Chart",premiumFeature2:"Destiny Insights",premiumFeature3:"Major Life Issues",premiumFeature4:"Practical Remedies",certifiedBy:"Certified by BHU and VHU Astrologers",yourThreeSteps:"Your 3 steps",threeStepsSubtitle:"Premium Personalised Kundli report",step1:"Enter your information",step2:"Your horoscope will be created by experts",step3Intro:"You'll receive your Kundli on your Whatsapp",step3Days:"2 days",viewSampleReport:"View Sample Kundli Report",sampleReportModalTitle:"Sample Kundli Report",whatYoullFindTitle:"What will you find in your Kundli report?",findDasha:"Analysis of flaws and periods.",findDashaDesc:"Identify major flaws, period durations, and simple remedies.",findYoga:"All yoga reports.",findYogaDesc:"Discover the yogas in your horoscope that affect wealth, career, and relationships.",findGemstone:"Gemstone recommendations.",findGemstoneDesc:"Personalised gemstone guidance based on your horoscope.",findPooja:"Puja recommendations.",findPoojaDesc:"Suggestions for pujas and rituals to balance planetary influences.",findMonthly:"Monthly predictions (1 year).",findMonthlyDesc:"Month-by-month guidance for the coming year.",findStrength:"Strength graph.",findStrengthDesc:"Visual charts showing the strength and influence of the planets.",whyUsTitle:"Why us?",whyUsSubtitle:"Fill out the form to get started and unlock your fortune!",whyUs1:"30,00,000+ kundlis created",whyUs2:"1,000+ partnered Top Astrologers",whyUs3:"500+ temple partnerships you can trust",whyUs4:"Personalised section-wise life analysis",feedbackTitle:"Feedback from our users",feedbackTrust:"Trusted by over 5 million users worldwide",feedbackRating:"4.9",feedbackTestimonial1:"Detailed kundli report mila, life mein clarity mili.",feedbackTestimonial2:"Career aur marriage dono pe clear guidance mila.",feedbackTestimonial3:"Clear direction mila next steps ke liye.",feedbackTestimonial4:"Doubts kaafi had tak clear ho gaye report se.",feedbackTestimonial5:"Future planning ke liye useful insights mile.",feedbackTestimonial6:"Har important area cover kiya gaya properly.",feedbackTestimonial7:"Kaafi deep analysis hai, superficial nahi.",feedbackTestimonial8:"Kundli insights ne future decisions clear kiye.",feedbackTestimonial9:"Overall kundli report very helpful rahi.",feedbackTestimonial10:"Personalised report ne confidence badhaya.",feedbackTestimonial11:"Report accurate aur easy to understand thi.",feedbackTestimonial12:"Report expected se zyada detailed nikli.",feedbackTestimonial13:"Report padhke life patterns samajh aaye.",feedbackTestimonial14:"Simple language mein detailed analysis diya hai.",feedbackTestimonial15:"Timing aur dasha explanation helpful thi.",feedbackAuthor1:"Aarav",feedbackAuthor2:"Vivaan",feedbackAuthor3:"Arjun",feedbackAuthor4:"Kabir",feedbackAuthor5:"Rohan",feedbackAuthor6:"Ishaan",feedbackAuthor7:"Krish",feedbackAuthor8:"Rahul",feedbackAuthor9:"Ananya",feedbackAuthor10:"Aadhya",feedbackAuthor11:"Kavya",feedbackAuthor12:"Diya",feedbackAuthor13:"Meera",feedbackAuthor14:"Pooja",feedbackAuthor15:"Nisha",feedbackAuthor1AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639271096.png",feedbackAuthor2AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639330970.png",feedbackAuthor3AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639345411.png",feedbackAuthor4AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639358174.png",feedbackAuthor5AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639369712.png",feedbackAuthor6AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639381899.png",feedbackAuthor7AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639442858.png",feedbackAuthor8AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639454626.png",feedbackAuthor9AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639254172.png",feedbackAuthor10AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639293055.png",feedbackAuthor11AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639306698.png",feedbackAuthor12AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639319028.png",feedbackAuthor13AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639402894.png",feedbackAuthor14AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639416587.png",feedbackAuthor15AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639427379.png",readMoreReviews:"Read More Reviews",readLess:"Read Less",faqTitle:"Frequently Asked Questions",faqQ1:"How will I receive my kundli?",faqQ2:"Is Premium personalised kundli available in any other language?",faqQ3:"What if I don't know my birth time?",faqA1Global:"You will receive your premium personalised kundli report on your shared email ID within 2 days.",faqA1Domestic:"You will receive your premium personalised kundli report on your shared WhatsApp number within 2 days.",faqA2:"Yes, we provide report in Hindi and English languages",faqA3:"Accurate birth time helps to create more accurate report. However we are still able to prepare 80% accurate report if you don't know your exact time of birth",contactTitle:"Contact Us",contactWhatsApp:"Whatsapp: 9845089752",contactEmail:"Email: shubham.goyal@appsforbharat.com",ctaKundliCreated:"2L+ Kundli Created.",ctaCertified:"BHU Certified Astrologer.",ctaSecurePayment:"Secure Payment.",ctaButton:"Get My Detailed Kundli in $300 $25",ctaButtonStruck:"$100",ctaButtonBefore:"Get My Detailed Kundli in ",ctaButtonAfter:"$25",back:"Back",info:"Info",formTitle:"Enter your information",formSubtitle:"Fill out the form below to get started and unlock your fortune!",formFullName:"Enter your full name",formFullNamePlaceholder:"Full name",formPhone:"Enter your phone number",formPhonePlaceholder:"Phone number",formEmail:"Enter your email address",formEmailHelp:"Your kundli report will be sent to your email",formEmailPlaceholder:"Email address",formDob:"Enter your date of birth",formDobInfo:"This helps us calculate exact planetary position in your birth chart",formBirthTime:"Enter your birth time",formBirthTimeInfo:"This helps us calculate exact planetary position in your birth chart",formBirthTimeUnknownLine1:"Don't know your exact birth time?",formBirthTimeUnknownLine2:"We can analyze with 80% accuracy",formBirthPlace:"Enter your birth place",formBirthPlaceInfo:"This helps us calculate exact planetary position in your birth chart",formBirthPlacePlaceholder:"City, State",formOfferEnding:"The offer is ending soon",formDiscountPill:"75% discount",formProceed:"Proceed to payment ",formOriginalPrice:"$100",formDiscountedPrice:"$25",formPriceAria:"Price"},hi:{kundli:"कुंडली",birthChart:"जन्म कुंडली",details:"विवरण",name:"नाम",birthDate:"जन्म तिथि",guest:"अतिथि",description:"आपकी जन्म कुंडली आपके जन्म के समय ग्रहों की स्थिति और आपके जीवन पर उनके प्रभाव को दर्शाती है।",lagna:"लग्न",rashi:"राशि",nakshatra:"नक्षत्र",language:"भाषा",sriMandir:"शुभम गोयल (डायरेक्टर - फाउंडर's ऑफिस)",ratingText:"4.5 (8 लाख Google Playstore)",heroTitle:"अपनी प्रीमियम व्यक्तिगत कुंडली रिपोर्ट प्राप्त करें",heroSubtitle:"यह प्रीमियम व्यक्तिगत कुंडली रिपोर्ट आपको प्रमुख जीवन मुद्दों के जवाब खोजने में मदद करती है।",topicMarriage:"विवाह",topicRelationship:"रिश्ता",topicBusiness:"व्यवसाय",topicHealth:"स्वास्थ्य",topicCareer:"करियर",topicEducation:"शिक्षा",topicMoney:"पैसा",premiumHeadline:"200+ पृष्ठ प्रीमियम व्यक्तिगत कुंडली रिपोर्ट",premiumHeadlinePill1:"200+ पृष्ठ",premiumHeadlinePlain1:"प्रीमियम",premiumHeadlinePlain2:"व्यक्तिगत",premiumHeadlinePill2:"कुंडली रिपोर्ट",premiumFeature1:"वैदिक जन्म कुंडली",premiumFeature2:"भाग्य जानकारी",premiumFeature3:"प्रमुख जीवन मुद्दे",premiumFeature4:"व्यावहारिक उपाय",certifiedBy:"BHU और VHU ज्योतिषियों द्वारा प्रमाणित",yourThreeSteps:"आपके 3 कदम",threeStepsSubtitle:"प्रीमियम व्यक्तिगत कुंडली रिपोर्ट",step1:"अपनी जानकारी दर्ज करें",step2:"आपकी कुंडली विशेषज्ञों द्वारा बनाई जाएगी",step3Intro:"आपको व्हाट्सएप पर अपनी कुंडली मिलेगी",step3Days:"2 दिनों में",viewSampleReport:"नमूना कुंडली रिपोर्ट देखें",sampleReportModalTitle:"नमूना कुंडली रिपोर्ट",whatYoullFindTitle:"आपकी कुंडली रिपोर्ट में क्या मिलेगा?",findDasha:"दोष और दशा का विश्लेषण",findDashaDesc:"मुख्य दोष, दशा काल और सरल उपायों की पहचान करें",findYoga:"सभी योग रिपोर्ट्स",findYogaDesc:"अपनी कुंडली में उन योगों को जानें जो धन, करियर और संबंधों को प्रभावित करते हैं",findGemstone:"रत्न सिफारिशें",findGemstoneDesc:"आपकी कुंडली के आधार पर पर्सनलाइज्ड रत्न मार्गदर्शन",findPooja:"पूजा सिफारिशें",findPoojaDesc:"ग्रहों के प्रभाव को संतुलित करने के लिए पूजा और अनुष्ठान सुझाव",findMonthly:"मासिक भविष्यवाणियाँ (1 वर्ष)",findMonthlyDesc:"आने वाले वर्ष के लिए महीने-दर-महीने मार्गदर्शन",findStrength:"भावबल ग्राफ",findStrengthDesc:"ग्रहों की ताकत और प्रभाव दिखाने वाले दृश्य चार्ट",whyUsTitle:"क्यों हम?",whyUsSubtitle:"शुरू करने के लिए फॉर्म भरें और अपना भाग्य खोलें!",whyUs1:"30,00,000+ कुंडली बनाई गई",whyUs2:"1,000+ शीर्ष ज्योतिषी भागीदार",whyUs3:"500+ मंदिर भागीदारी",whyUs4:"व्यक्तिगत खंडवार जीवन विश्लेषण",feedbackTitle:"हमारे उपयोगकर्ताओं की प्रतिक्रिया",feedbackTrust:"दुनिया भर में 5 मिलियन से अधिक उपयोगकर्ताओं द्वारा विश्वसनीय",feedbackRating:"4.9",feedbackTestimonial1:"डिटेल्ड कुंडली रिपोर्ट मिली, जीवन में काफी क्लैरिटी आई।",feedbackTestimonial2:"करियर और शादी दोनों पर साफ मार्गदर्शन मिला।",feedbackTestimonial3:"आगे क्या करना है, उसकी साफ दिशा मिली।",feedbackTestimonial4:"रिपोर्ट से ज़्यादातर डाउट्स क्लियर हो गए।",feedbackTestimonial5:"फ्यूचर प्लानिंग के लिए अच्छे सुझाव मिले।",feedbackTestimonial6:"सभी ज़रूरी चीज़ें अच्छे से कवर की गई हैं।",feedbackTestimonial7:"एनालिसिस काफी डीप है, ऊपर-ऊपर का नहीं।",feedbackTestimonial8:"कुंडली के सुझावों से फ्यूचर डिसीजन क्लियर हुए।",feedbackTestimonial9:"कुल मिलाकर कुंडली रिपोर्ट बहुत हेल्पफुल रही।",feedbackTestimonial10:"पर्सनल रिपोर्ट से कॉन्फिडेंस बढ़ा।",feedbackTestimonial11:"रिपोर्ट एकदम सही और समझने में आसान थी।",feedbackTestimonial12:"रिपोर्ट उम्मीद से ज़्यादा डिटेल्ड निकली।",feedbackTestimonial13:"रिपोर्ट पढ़कर लाइफ के पैटर्न समझ आए।",feedbackTestimonial14:"आसान भाषा में पूरा डिटेल्ड एनालिसिस दिया है।",feedbackTestimonial15:"दशा और टाइमिंग की जानकारी बहुत काम की थी।",feedbackAuthor1:"आरव",feedbackAuthor2:"विवान",feedbackAuthor3:"अर्जुन",feedbackAuthor4:"कबीर",feedbackAuthor5:"रोहन",feedbackAuthor6:"ईशान",feedbackAuthor7:"कृष",feedbackAuthor8:"राहुल",feedbackAuthor9:"अनन्या",feedbackAuthor10:"आध्या",feedbackAuthor11:"काव्या",feedbackAuthor12:"दिया",feedbackAuthor13:"मीरा",feedbackAuthor14:"पूजा",feedbackAuthor15:"निशा",feedbackAuthor1AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639271096.png",feedbackAuthor2AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639330970.png",feedbackAuthor3AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639345411.png",feedbackAuthor4AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639358174.png",feedbackAuthor5AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639369712.png",feedbackAuthor6AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639381899.png",feedbackAuthor7AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639442858.png",feedbackAuthor8AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639454626.png",feedbackAuthor9AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639254172.png",feedbackAuthor10AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639293055.png",feedbackAuthor11AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639306698.png",feedbackAuthor12AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639319028.png",feedbackAuthor13AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639402894.png",feedbackAuthor14AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639416587.png",feedbackAuthor15AvatarUrl:"https://srm-cdn.a4b.io/yoda/1770639427379.png",readMoreReviews:"और समीक्षाएं पढ़ें",readLess:"कम पढ़ें",faqTitle:"अक्सर पूछे जाने वाले प्रश्न",faqQ1:"मुझे अपनी कुंडली कैसे मिलेगी?",faqQ2:"क्या प्रीमियम पर्सनलाइज्ड कुंडली किसी और भाषा में उपलब्ध है?",faqQ3:"अगर मुझे अपने जन्म का समय नहीं पता हो तो?",faqA1Global:"आपको 2 दिनों के भीतर आपके साझा किए गए ईमेल आईडी पर आपकी प्रीमियम पर्सनलाइज्ड कुंडली रिपोर्ट मिल जाएगी।",faqA1Domestic:"आपको 2 दिनों के भीतर आपके साझा किए गए व्हाट्सऐप नंबर पर आपकी प्रीमियम पर्सनलाइज्ड कुंडली रिपोर्ट मिल जाएगी।",faqA2:"हाँ, हम रिपोर्ट हिंदी और अंग्रेज़ी भाषाओं में प्रदान करते हैं।",faqA3:"सही जन्म समय से रिपोर्ट और अधिक सटीक बनती है। फिर भी, बिना सटीक समय के हम लगभग 80% सटीक रिपोर्ट तैयार कर सकते हैं।",contactTitle:"संपर्क करें",contactWhatsApp:"व्हाट्सएप: 9845089752",contactEmail:"ईमेल: shubham.goyal@appsforbharat.com",ctaKundliCreated:"2L+ कुंडली बनाई।",ctaCertified:"BHU प्रमाणित ज्योतिषी।",ctaSecurePayment:"सुरक्षित भुगतान।",ctaButton:"$300 $25 में मेरी विस्तृत कुंडली प्राप्त करें",ctaButtonStruck:"$100",ctaButtonBefore:"मेरा विस्तृत कुंडली प्राप्त करें ",ctaButtonAfter:"$25 में मेरी विस्तृत कुंडली प्राप्त करें",back:"वापस",info:"जानकारी",formTitle:"अपनी जानकारी दर्ज करें",formSubtitle:"शुरू करने के लिए नीचे दिया गया फॉर्म भरें और अपना भाग्य खोलें!",formFullName:"अपना पूरा नाम दर्ज करें",formFullNamePlaceholder:"पूरा नाम",formPhone:"अपना फोन नंबर दर्ज करें",formPhonePlaceholder:"फोन नंबर",formEmail:"अपना ईमेल पता दर्ज करें",formEmailHelp:"आपकी कुंडली रिपोर्ट आपके ईमेल पर भेजी जाएगी",formEmailPlaceholder:"ईमेल पता",formDob:"अपनी जन्म तिथि दर्ज करें",formDobInfo:"यह आपके जन्म कुंडली में ग्रहों की सटीक स्थिति की गणना करने में हमारी सहायता करता है।",formBirthTime:"अपना जन्म समय दर्ज करें",formBirthTimeInfo:"यह आपके जन्म कुंडली में ग्रहों की सटीक स्थिति की गणना करने में हमारी सहायता करता है।",formBirthTimeUnknownLine1:"क्या आपको अपना सटीक जन्म समय नहीं पता?",formBirthTimeUnknownLine2:"हम 80% सटीकता के साथ विश्लेषण कर सकते हैं",formBirthPlace:"अपना जन्म स्थान दर्ज करें",formBirthPlaceInfo:"यह आपके जन्म कुंडली में ग्रहों की सटीक स्थिति की गणना करने में हमारी सहायता करता है।",formBirthPlacePlaceholder:"शहर, राज्य",formOfferEnding:"ऑफर जल्द खत्म हो रहा है",formDiscountPill:"75% छूट",formProceed:"भुगतान के लिए आगे बढ़ें",formOriginalPrice:"$100",formDiscountedPrice:"$25",formPriceAria:"कीमत"}},tt=c.createContext(null),Ot=({locale:r,children:n})=>{const p={locale:r,t:s=>Ue[r]?.[s]??s};return e.jsx(tt.Provider,{value:p,children:n})};function We(){return c.useContext(tt)}const ne={container:"_container_1e1th_1",main:"_main_1e1th_7",kundliHeaderNoBorder:"_kundliHeaderNoBorder_1e1th_12",headerSeparator:"_headerSeparator_1e1th_16",langDropdownWrap:"_langDropdownWrap_1e1th_21",langTrigger:"_langTrigger_1e1th_25",langIcon:"_langIcon_1e1th_37",langLabel:"_langLabel_1e1th_44",langMenu:"_langMenu_1e1th_49",langOption:"_langOption_1e1th_55"};function rt(r){if(typeof window>"u"||!window.localStorage)return null;try{return window.localStorage.getItem(r)}catch{return null}}function at(r,n){if(!(typeof window>"u"||!window.localStorage))try{window.localStorage.setItem(r,n)}catch{}}function Dt(r){if(!(typeof window>"u"||!window.localStorage))try{window.localStorage.removeItem(r)}catch{}}function Bt(){if(typeof window>"u"||!window.localStorage)return!1;try{const r="__kundli_storage_test__";return window.localStorage.setItem(r,"1"),window.localStorage.removeItem(r),!0}catch{return!1}}const Ke="kundli_language";function nt(){const r=rt(Ke);return r&&Re.includes(r)?r:null}function ot(r){at(Ke,r)}const ze=c.createContext(null),Mt={fullName:"",phone:"",email:"",dateOfBirth:"",birthTime:"",birthTimeUnknown:!1,birthPlace:""},it=({locale:r,showLanguageSelector:n=!0,userId:l,isGlobal:p,logoUrl:s,reportImageUrl:_,universityLogoUrls:h,sampleReportHref:m,onViewSampleReport:d,ctaHref:w,onCtaClick:f,onBack:b,readMoreReviewsHref:k,onProceed:S,proceedHref:P,originalPriceLabel:x,discountedPriceLabel:j,discountPillLabel:R,analytics:y,onLocaleChange:E,children:W})=>{const[A,V]=c.useState("landing"),[B,H]=c.useState(r??"en"),[M,Y]=c.useState(Mt),Q=c.useRef(!0);c.useEffect(()=>{const de=nt();de&&H(de)},[]),c.useEffect(()=>{ot(B)},[B]),c.useEffect(()=>{if(Q.current){Q.current=!1;return}E?.(B)},[B,E]);const F=c.useMemo(()=>({locale:r,showLanguageSelector:n,userId:l,isGlobal:p,logoUrl:s,reportImageUrl:_,universityLogoUrls:h,sampleReportHref:m,onViewSampleReport:d,ctaHref:w,onCtaClick:f,onBack:b,readMoreReviewsHref:k,onProceed:S,proceedHref:P,originalPriceLabel:x,discountedPriceLabel:j,discountPillLabel:R,analytics:y,onLocaleChange:E}),[r,n,l,p,s,_,h,m,d,w,f,b,k,S,P,x,j,R,y,E]),K=c.useCallback(()=>{V("form")},[F.analytics]),G=c.useCallback(()=>{V("landing"),F.onBack?.()},[F.onBack]),Z=c.useMemo(()=>({view:A,locale:B,setLocale:H,config:F,formValues:M,setFormValues:Y,goToForm:K,goToPage:G,onProceed:F.onProceed}),[A,B,F,M,K,G]);return e.jsx(ze.Provider,{value:Z,children:W})};function ue(){return c.useContext(ze)}function $e(){const r=c.useContext(ze);if(!r)throw new Error("useKundliContextOrThrow must be used within KundliProvider");return r}const fe={header:"_header_1414z_1",left:"_left_1414z_7",backBtn:"_backBtn_1414z_11",titleWrap:"_titleWrap_1414z_21",title:"_title_1414z_21",subtitle:"_subtitle_1414z_32",backIcon:"_backIcon_1414z_38"},Ft=()=>e.jsx("svg",{className:fe.backIcon,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:e.jsx("path",{d:"M15 18l-6-6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Ut=({t:r,onBack:n,className:l=""})=>e.jsx("header",{className:`${fe.header} ${l}`,children:e.jsxs("div",{className:fe.left,children:[e.jsx("button",{type:"button",className:fe.backBtn,onClick:n,"aria-label":r("back"),children:e.jsx(Ft,{})}),e.jsxs("div",{className:fe.titleWrap,children:[e.jsx("h1",{className:fe.title,children:r("formTitle")}),e.jsx("p",{className:fe.subtitle,children:r("formSubtitle")})]})]})}),i={wrap:"_wrap_1wp0p_1",card:"_card_1wp0p_5",cardInner:"_cardInner_1wp0p_12",field:"_field_1wp0p_16",labelRow:"_labelRow_1wp0p_20",label:"_label_1wp0p_20",req:"_req_1wp0p_29",help:"_help_1wp0p_33",infoBtn:"_infoBtn_1wp0p_40",infoImg:"_infoImg_1wp0p_57",infoWrap:"_infoWrap_1wp0p_63",tooltip:"_tooltip_1wp0p_69",tooltipArrow:"_tooltipArrow_1wp0p_85",inputWrap:"_inputWrap_1wp0p_96",suggestions:"_suggestions_1wp0p_100",suggestionItem:"_suggestionItem_1wp0p_113",suggestionMain:"_suggestionMain_1wp0p_131",suggestionSecondary:"_suggestionSecondary_1wp0p_137",suggestionsHint:"_suggestionsHint_1wp0p_142",timePopover:"_timePopover_1wp0p_157",timePickerRow:"_timePickerRow_1wp0p_173",timePickerSelect:"_timePickerSelect_1wp0p_179",timePickerColon:"_timePickerColon_1wp0p_195",meridiemToggle:"_meridiemToggle_1wp0p_203",meridiemBtn:"_meridiemBtn_1wp0p_212",meridiemActive:"_meridiemActive_1wp0p_227",timePopoverActions:"_timePopoverActions_1wp0p_232",timePopoverBtn:"_timePopoverBtn_1wp0p_238",timePopoverOk:"_timePopoverOk_1wp0p_257",input:"_input_1wp0p_96",iconBtn:"_iconBtn_1wp0p_301",iconBtnInteractive:"_iconBtnInteractive_1wp0p_307",iconImg:"_iconImg_1wp0p_326",checkboxRow:"_checkboxRow_1wp0p_332",checkbox:"_checkbox_1wp0p_332",checkboxText:"_checkboxText_1wp0p_370"};let Oe=null;const Wt=(r,n)=>typeof window>"u"||window.google?.maps?.places?Promise.resolve():Oe||(Oe=new Promise((l,p)=>{const s=document.querySelector('script[data-google-maps-places="true"]');if(s){s.addEventListener("load",()=>l()),s.addEventListener("error",()=>p(new Error("Failed to load Google Maps API")));return}const _=document.createElement("script"),h=new URL("https://maps.googleapis.com/maps/api/js");h.searchParams.set("key",r),h.searchParams.set("libraries","places"),h.searchParams.set("loading","async"),n&&h.searchParams.set("language",n),_.src=h.toString(),_.async=!0,_.defer=!0,_.setAttribute("data-google-maps-places","true"),_.onload=()=>{const m=Date.now(),d=()=>{if(window.google?.maps?.places){l();return}if(Date.now()-m>2e3){p(new Error("Google Maps loaded but Places library is unavailable. Check API key restrictions / enabled APIs."));return}window.setTimeout(d,50)};d()},_.onerror=()=>p(new Error("Failed to load Google Maps API")),document.head.appendChild(_)}),Oe),Kt=r=>{const{apiKey:n,language:l="en",restrictCountry:p}=r,[s,_]=c.useState(!1),[h,m]=c.useState([]),[d,w]=c.useState(!1),[f,b]=c.useState(null),k=c.useRef(null),S=c.useRef(null),P=c.useRef(null);c.useEffect(()=>{if(!n){_(!1),b(null);return}Wt(n,l).then(()=>{k.current=new google.maps.places.AutocompleteService;const y=document.createElement("div");S.current=new google.maps.places.PlacesService(y),P.current=new google.maps.places.AutocompleteSessionToken,_(!0),b(null)}).catch(y=>{_(!1),b(y?.message||"Failed to load location service")})},[n,l]);const x=c.useCallback(async y=>{if(!y||y.length<2||!k.current){m([]);return}w(!0);try{const E={input:y,types:["(cities)"],sessionToken:P.current??void 0};p&&(E.componentRestrictions={country:p});const W=await new Promise((A,V)=>{k.current.getPlacePredictions(E,(B,H)=>{H===google.maps.places.PlacesServiceStatus.OK&&B?A(B):H===google.maps.places.PlacesServiceStatus.ZERO_RESULTS?A([]):V(new Error(`Places API error: ${H}`))})});m(W.map(A=>({place_id:A.place_id,description:A.description,structured_formatting:{main_text:A.structured_formatting?.main_text||A.description,secondary_text:A.structured_formatting?.secondary_text||""}})))}catch{m([])}finally{w(!1)}},[p]),j=c.useCallback(async y=>{if(!S.current)return null;try{const E=await new Promise((M,Y)=>{S.current.getDetails({placeId:y,fields:["geometry","address_components","formatted_address"],sessionToken:P.current??void 0},(Q,F)=>{F===google.maps.places.PlacesServiceStatus.OK&&Q?M(Q):Y(new Error(`Place details error: ${F}`))})});P.current=new google.maps.places.AutocompleteSessionToken;const W=E.geometry?.location?.lat()||0,A=E.geometry?.location?.lng()||0;let V="",B="",H="";return E.address_components?.forEach(M=>{M.types.includes("locality")&&(V=M.long_name),M.types.includes("administrative_area_level_1")&&(B=M.long_name),M.types.includes("country")&&(H=M.long_name)}),{display_name:E.formatted_address||"",lat:W,lng:A,city:V,state:B,country:H}}catch{return null}},[]),R=c.useCallback(()=>m([]),[]);return{isLoaded:s,predictions:h,isSearching:d,loadError:f,searchPlaces:x,getPlaceDetails:j,clearPredictions:R}},$t={},ye={time:"https://srm-cdn.a4b.io/yoda/1770372014782.svg",location:"https://srm-cdn.a4b.io/yoda/1770372031092.svg",date:"https://srm-cdn.a4b.io/yoda/1770372045894.svg",info:"https://srm-cdn.a4b.io/yoda/1770372066357.svg"},Yt=({t:r,values:n,onChange:l,analytics:p,googleMapsApiKey:s,className:_=""})=>{const h=ue(),m=h?.config?.analytics??p,d=h?.config.isGlobal??!0,w=c.useRef({}),f=a=>l({...n,...a}),b=(a,g)=>{g.trim()&&!w.current[a]&&(w.current[a]=!0,{fullName:()=>m?.trackNameSectionFilled?.(),phone:()=>m?.trackPhoneSectionFilled?.(),email:()=>m?.trackEmailSectionFilled?.(),dateOfBirth:()=>m?.trackDobFilled?.(),birthTime:()=>m?.trackTimeFilled?.(),birthPlace:()=>m?.trackPlaceOfBirthChosen?.()}[a]?.())},k=a=>a.replace(/\D/g,"").slice(0,10),S=c.useRef(null);c.useRef(null);const P=c.useRef(null),x=c.useRef(0),j=c.useRef(null),[R,y]=c.useState(!1),[E,W]=c.useState({hour12:12,minute:"00",meridiem:"AM"}),A=a=>String(a).padStart(2,"0"),V=a=>{const g=/^([01]\d|2[0-3]):([0-5]\d)$/.exec(a);if(!g)return a;const D=Number(g[1]),ee=g[2],me=D>=12?"PM":"AM";return`${D%12===0?12:D%12}:${ee} ${me}`},B=a=>{const g=/^([01]\d|2[0-3]):([0-5]\d)$/.exec(a);if(!g)return{hour12:12,minute:"00",meridiem:"AM"};const D=Number(g[1]),ee=g[2],me=D>=12?"PM":"AM";return{hour12:D%12===0?12:D%12,minute:ee,meridiem:me}},H=a=>{const g=Math.min(12,Math.max(1,a.hour12)),D=/^([0-5]\d)$/.test(a.minute)?a.minute:"00";let ee=g%12;return a.meridiem==="PM"&&(ee+=12),`${A(ee)}:${D}`},M=c.useRef(null),[Y,Q]=c.useState(!1),[F,K]=c.useState(null),G=s??$t?.VITE_GOOGLE_MAPS_API_KEY,Z=(n.birthPlace??"").trim(),de=d?void 0:"in",ke="en",{predictions:ge,isSearching:he,loadError:_e,searchPlaces:be,clearPredictions:le}=Kt({apiKey:G,language:ke,restrictCountry:de});c.useEffect(()=>{const a=g=>{M.current&&(M.current.contains(g.target)||Q(!1))};return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[]),c.useEffect(()=>{if(!Y)return;if(Z.length<2){le();return}const a=window.setTimeout(async()=>{await be(Z)},250);return()=>window.clearTimeout(a)},[le,Y,Z,be]);const we=a=>{const g=a.current;if(!(!g||g.disabled)){if(document.activeElement===g&&P.current===g&&Date.now()-x.current<6e4){g.blur();return}if(typeof g.showPicker=="function"){g.showPicker(),P.current=g,x.current=Date.now();return}g.focus(),P.current=g,x.current=Date.now()}};return c.useEffect(()=>{const a=g=>{j.current&&(j.current.contains(g.target)||y(!1))};return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[]),c.useEffect(()=>{const a=D=>{D.target?.closest?.("[data-info-tooltip]")==null&&K(null)},g=D=>{D.key==="Escape"&&K(null)};return document.addEventListener("mousedown",a),document.addEventListener("keydown",g),()=>{document.removeEventListener("mousedown",a),document.removeEventListener("keydown",g)}},[]),e.jsx("section",{className:`${i.wrap} ${_}`,"aria-label":r("formTitle"),children:e.jsx("div",{className:i.card,children:e.jsxs("div",{className:i.cardInner,children:[e.jsxs("div",{className:i.field,children:[e.jsx("div",{className:i.labelRow,children:e.jsxs("label",{className:i.label,htmlFor:"kundli-full-name",children:[r("formFullName"),e.jsx("span",{className:i.req,children:"*"})]})}),e.jsx("div",{className:i.inputWrap,children:e.jsx("input",{id:"kundli-full-name",className:i.input,type:"text",value:n.fullName,onFocus:()=>m?.trackNameSectionClicked?.(),onChange:a=>{const g=a.target.value;f({fullName:g}),b("fullName",g)},placeholder:r("formFullNamePlaceholder"),autoComplete:"name"})})]}),e.jsxs("div",{className:i.field,children:[e.jsx("div",{className:i.labelRow,children:e.jsxs("label",{className:i.label,htmlFor:"kundli-phone",children:[r("formPhone"),!d&&e.jsx("span",{className:i.req,children:"*"})]})}),e.jsx("div",{className:i.inputWrap,children:e.jsx("input",{id:"kundli-phone",className:i.input,type:"tel",value:n.phone??"",onFocus:()=>m?.trackPhoneSectionClicked?.(),onChange:a=>{const g=a.target.value;f({phone:k(g)}),b("phone",k(g))},placeholder:r("formPhonePlaceholder"),autoComplete:"tel",inputMode:"numeric",pattern:"[0-9]{10}",maxLength:10,required:!d,"aria-required":!d})})]}),d&&e.jsx(e.Fragment,{children:e.jsxs("div",{className:i.field,children:[e.jsx("div",{className:i.labelRow,children:e.jsxs("label",{className:i.label,htmlFor:"kundli-email",children:[r("formEmail"),e.jsx("span",{className:i.req,children:"*"})]})}),e.jsx("div",{className:i.help,children:r("formEmailHelp")}),e.jsx("div",{className:i.inputWrap,children:e.jsx("input",{id:"kundli-email",className:i.input,type:"email",value:n.email,onChange:a=>f({email:a.target.value}),placeholder:r("formEmailPlaceholder"),autoComplete:"email",required:!0,"aria-required":!0})})]})}),e.jsxs("div",{className:i.field,children:[e.jsxs("div",{className:i.labelRow,children:[e.jsxs("label",{className:i.label,htmlFor:"kundli-dob",children:[r("formDob"),e.jsx("span",{className:i.req,children:"*"})]}),e.jsxs("div",{className:i.infoWrap,"data-info-tooltip":!0,children:[e.jsx("button",{type:"button",className:i.infoBtn,"aria-label":r("info"),"aria-expanded":F==="dob",onClick:()=>{K(a=>a==="dob"?null:"dob"),m?.trackInfoIconClicked?.({fieldName:"dob"})},children:e.jsx("img",{className:i.infoImg,src:ye.info,alt:"","aria-hidden":!0})}),F==="dob"&&e.jsxs("div",{className:i.tooltip,role:"tooltip",children:[r("formDobInfo"),e.jsx("span",{className:i.tooltipArrow,"aria-hidden":!0})]})]})]}),e.jsxs("div",{className:i.inputWrap,children:[e.jsx("input",{id:"kundli-dob",className:i.input,type:"date",ref:S,value:n.dateOfBirth,max:(()=>{const a=new Date;return`${a.getFullYear()}-${A(a.getMonth()+1)}-${A(a.getDate())}`})(),onChange:a=>{const g=a.target.value,D=new Date,ee=`${D.getFullYear()}-${A(D.getMonth()+1)}-${A(D.getDate())}`;g&&g>ee||(f({dateOfBirth:g}),b("dateOfBirth",g),P.current=null)},onFocus:()=>m?.trackDobClicked?.(),onClick:()=>we(S),onBlur:()=>{P.current===S.current&&(P.current=null)}}),e.jsx("button",{type:"button",className:`${i.iconBtn} ${i.iconBtnInteractive}`,"aria-label":"Open date picker",onMouseDown:a=>a.preventDefault(),onClick:a=>{a.preventDefault(),a.stopPropagation(),we(S)},children:e.jsx("img",{className:i.iconImg,src:ye.date,alt:"","aria-hidden":!0})})]})]}),e.jsxs("div",{className:i.field,children:[e.jsxs("div",{className:i.labelRow,children:[e.jsxs("label",{className:i.label,htmlFor:"kundli-birth-time",children:[r("formBirthTime"),e.jsx("span",{className:i.req,children:"*"})]}),e.jsxs("div",{className:i.infoWrap,"data-info-tooltip":!0,children:[e.jsx("button",{type:"button",className:i.infoBtn,"aria-label":r("info"),"aria-expanded":F==="time",onClick:()=>{m?.trackInfoIconClicked?.({fieldName:"time"}),K(a=>a==="time"?null:"time")},children:e.jsx("img",{className:i.infoImg,src:ye.info,alt:"","aria-hidden":!0})}),F==="time"&&e.jsxs("div",{className:i.tooltip,role:"tooltip",children:[r("formBirthTimeInfo"),e.jsx("span",{className:i.tooltipArrow,"aria-hidden":!0})]})]})]}),e.jsxs("div",{className:i.inputWrap,ref:j,children:[e.jsx("input",{id:"kundli-birth-time",className:i.input,type:"text",value:n.birthTime?V(n.birthTime):"",readOnly:!0,onFocus:()=>m?.trackTimeClicked?.(),onChange:a=>{const g=a.target.value;f({birthTime:g}),b("birthTime",g)},disabled:n.birthTimeUnknown,placeholder:"HH:MM AM",onClick:()=>{n.birthTimeUnknown||(W(B(n.birthTime||"12:00")),y(a=>!a))}}),e.jsx("button",{type:"button",className:`${i.iconBtn} ${i.iconBtnInteractive}`,"aria-label":"Open time picker",disabled:n.birthTimeUnknown,onMouseDown:a=>a.preventDefault(),onClick:a=>{a.preventDefault(),a.stopPropagation(),!n.birthTimeUnknown&&(W(B(n.birthTime||"12:00")),y(g=>!g))},children:e.jsx("img",{className:i.iconImg,src:ye.time,alt:"","aria-hidden":!0})}),R&&!n.birthTimeUnknown&&e.jsxs("div",{className:i.timePopover,role:"dialog","aria-label":"Select time",children:[e.jsxs("div",{className:i.timePickerRow,children:[e.jsx("select",{className:i.timePickerSelect,value:E.hour12,onChange:a=>W(g=>({...g,hour12:Number(a.target.value)})),"aria-label":"Hour",children:Array.from({length:12},(a,g)=>g+1).map(a=>e.jsx("option",{value:a,children:a},a))}),e.jsx("span",{className:i.timePickerColon,children:":"}),e.jsx("select",{className:i.timePickerSelect,value:E.minute,onChange:a=>W(g=>({...g,minute:a.target.value})),"aria-label":"Minute",children:Array.from({length:60},(a,g)=>A(g)).map(a=>e.jsx("option",{value:a,children:a},a))}),e.jsxs("div",{className:i.meridiemToggle,"aria-label":"AM/PM",children:[e.jsx("button",{type:"button",className:`${i.meridiemBtn} ${E.meridiem==="AM"?i.meridiemActive:""}`,onClick:()=>W(a=>({...a,meridiem:"AM"})),children:"AM"}),e.jsx("button",{type:"button",className:`${i.meridiemBtn} ${E.meridiem==="PM"?i.meridiemActive:""}`,onClick:()=>W(a=>({...a,meridiem:"PM"})),children:"PM"})]})]}),e.jsxs("div",{className:i.timePopoverActions,children:[e.jsx("button",{type:"button",className:i.timePopoverBtn,onClick:()=>y(!1),children:"Cancel"}),e.jsx("button",{type:"button",className:`${i.timePopoverBtn} ${i.timePopoverOk}`,onClick:()=>{const a=H(E);f({birthTime:a}),b("birthTime",a),y(!1)},"aria-label":"OK",children:e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:e.jsx("path",{d:"M20 6L9 17l-5-5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})]}),e.jsxs("div",{className:i.checkboxRow,children:[e.jsx("input",{id:"kundli-time-unknown",className:i.checkbox,type:"checkbox",checked:n.birthTimeUnknown,onChange:a=>{m?.trackTimeCheckboxClicked?.(),f({birthTimeUnknown:a.target.checked,birthTime:a.target.checked?"":n.birthTime})}}),e.jsxs("label",{className:i.checkboxText,htmlFor:"kundli-time-unknown",children:[r("formBirthTimeUnknownLine1"),e.jsx("br",{}),r("formBirthTimeUnknownLine2")]})]})]}),e.jsxs("div",{className:i.field,children:[e.jsxs("div",{className:i.labelRow,children:[e.jsxs("label",{className:i.label,htmlFor:"kundli-birth-place",children:[r("formBirthPlace"),e.jsx("span",{className:i.req,children:"*"})]}),e.jsxs("div",{className:i.infoWrap,"data-info-tooltip":!0,children:[e.jsx("button",{type:"button",className:i.infoBtn,"aria-label":r("info"),"aria-expanded":F==="place",onClick:()=>{m?.trackInfoIconClicked?.({fieldName:"birthPlace"}),K(a=>a==="place"?null:"place")},children:e.jsx("img",{className:i.infoImg,src:ye.info,alt:"","aria-hidden":!0})}),F==="place"&&e.jsxs("div",{className:i.tooltip,role:"tooltip",children:[r("formBirthPlaceInfo"),e.jsx("span",{className:i.tooltipArrow,"aria-hidden":!0})]})]})]}),e.jsxs("div",{className:i.inputWrap,ref:M,children:[e.jsx("input",{id:"kundli-birth-place",className:i.input,type:"text",value:n.birthPlace,onChange:a=>{const g=a.target.value;f({birthPlace:g}),b("birthPlace",g),Q(!0)},onFocus:()=>{m?.trackPlaceOfBirthClicked?.(),Q(!0)},placeholder:r("formBirthPlacePlaceholder"),autoComplete:"address-level2"}),e.jsx("span",{className:i.iconBtn,"aria-hidden":!0,children:e.jsx("img",{className:i.iconImg,src:ye.location,alt:"","aria-hidden":!0})}),Y&&ge.length>0&&e.jsx("div",{className:i.suggestions,role:"listbox",children:ge.slice(0,8).map(a=>e.jsxs("button",{type:"button",className:i.suggestionItem,onClick:()=>{f({birthPlace:a.description}),le(),Q(!1)},children:[e.jsx("span",{className:i.suggestionMain,children:a.structured_formatting?.main_text??a.description}),a.structured_formatting?.secondary_text&&e.jsx("span",{className:i.suggestionSecondary,children:a.structured_formatting.secondary_text})]},a.place_id))}),Y&&G&&he&&e.jsx("div",{className:i.suggestionsHint,children:"Loading…"}),Y&&G&&!he&&!!_e&&e.jsx("div",{className:i.suggestionsHint,children:_e})]})]})]})})})},z={footer:"_footer_15g1k_1",inner:"_inner_15g1k_7",badges:"_badges_15g1k_11",marqueeTrack:"_marqueeTrack_15g1k_18",marqueeContent:"_marqueeContent_15g1k_24",badge:"_badge_15g1k_11",badgeIcon:"_badgeIcon_15g1k_47",ctaWrap:"_ctaWrap_15g1k_51",ctaStruck:"_ctaStruck_15g1k_55",ctaButton:"_ctaButton_15g1k_61",offerRow:"_offerRow_15g1k_81",pill:"_pill_15g1k_88"},st=({marquee:r,children:n,className:l=""})=>e.jsx("footer",{className:`${z.footer} ${l}`,role:"contentinfo",children:e.jsxs("div",{className:z.inner,children:[r!=null&&e.jsx("div",{className:z.badges,"aria-hidden":!0,children:r}),e.jsx("div",{className:z.ctaWrap,children:n})]})}),ct=({children:r,href:n,disabled:l=!1,onClick:p,className:s="","aria-label":_})=>{const h=`${z.ctaButton} ${s}`.trim(),m=_!=null?{"aria-label":_}:{};return n!=null?e.jsx("a",{href:n,className:h,target:"_blank",rel:"noopener noreferrer","aria-disabled":l,onClick:d=>l&&d.preventDefault(),...m,children:r}):e.jsx("button",{type:"button",className:h,disabled:l,onClick:p,...m,children:r})},Ht=r=>/.+@.+\..+/.test(r),Gt=r=>/^\d{10}$/.test(r),qt=({t:r,values:n,onProceed:l,href:p,analytics:s,className:_="",originalPriceLabel:h,discountedPriceLabel:m,discountPillLabel:d})=>{const f=ue()?.config.isGlobal??!0,b=c.useMemo(()=>{if(!n.fullName.trim())return!1;if(f){if(!Ht(n.email.trim()))return!1}else if(!Gt((n.phone??"").trim()))return!1;return!(!n.dateOfBirth||!n.birthPlace.trim()||!n.birthTimeUnknown&&!n.birthTime)},[f,n]),k=f?h??r("formOriginalPrice"):"₹999",S=f?m??r("formDiscountedPrice"):"₹249",P=d??r("formDiscountPill"),x=e.jsxs(e.Fragment,{children:[r("formProceed"),e.jsx("span",{className:z.ctaStruck,children:k})," ",S]}),j=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:z.offerRow,children:[e.jsx("span",{children:r("formOfferEnding")}),e.jsx("span",{className:z.pill,children:P})]}),e.jsx(ct,{href:p,disabled:!b,onClick:()=>{s?.trackPrimaryCtaClickedL1?.({avenue:"form"}),l?.(n)},"aria-label":r("formPriceAria"),children:x})]});return e.jsx(st,{className:_,children:j})},oe={header:"_header_dbx4y_1",brand:"_brand_dbx4y_7",logo:"_logo_dbx4y_11",logoImg:"_logoImg_dbx4y_15",logoPlaceholder:"_logoPlaceholder_dbx4y_21",brandText:"_brandText_dbx4y_29",brandName:"_brandName_dbx4y_33",rating:"_rating_dbx4y_38",stars:"_stars_dbx4y_44",langSlot:"_langSlot_dbx4y_49"},Vt="https://srm-cdn.a4b.io/yoda/1770362904947.svg",lt=({t:r,languageSelector:n,logoUrl:l=Vt,className:p=""})=>{const _=ue()?.config.isGlobal??!0,h=n&&!_;return e.jsxs("header",{className:`${oe.header} ${p}`,children:[e.jsxs("div",{className:oe.brand,children:[e.jsx("div",{className:oe.logo,children:l?e.jsx("img",{src:l,alt:r("sriMandir"),className:oe.logoImg}):e.jsx("div",{className:oe.logoPlaceholder,"aria-hidden":!0})}),e.jsxs("div",{className:oe.brandText,children:[e.jsx("span",{className:oe.brandName,children:r("sriMandir")}),e.jsxs("span",{className:oe.rating,children:[e.jsx("span",{className:oe.stars,"aria-hidden":!0,children:"★"}),r("ratingText")]})]})]}),h&&e.jsx("div",{className:oe.langSlot,children:n})]})},Se={hero:"_hero_okj8x_1",title:"_title_okj8x_5",subtitle:"_subtitle_okj8x_10",topicTags:"_topicTags_okj8x_23",tag:"_tag_okj8x_27"},Jt=["topicMarriage","topicRelationship","topicBusiness","topicHealth","topicCareer","topicEducation","topicMoney"],Qt=({t:r,className:n=""})=>e.jsxs("section",{className:`${Se.hero} ${n}`,"aria-labelledby":"hero-title",children:[e.jsx("h1",{id:"hero-title",className:Se.title,children:r("heroTitle")}),e.jsx("p",{className:Se.subtitle,children:r("heroSubtitle")}),e.jsx("div",{className:Se.topicTags,role:"list",children:Jt.map(l=>e.jsx("span",{className:Se.tag,role:"listitem",children:r(l)},l))})]}),q={section:"_section_j2cgl_1",inner:"_inner_j2cgl_9",content:"_content_j2cgl_14",headline:"_headline_j2cgl_18",headlineLine:"_headlineLine_j2cgl_23",headlinePill:"_headlinePill_j2cgl_28",headlinePlain:"_headlinePlain_j2cgl_43",featureList:"_featureList_j2cgl_54",featureItem:"_featureItem_j2cgl_61",featureIcon:"_featureIcon_j2cgl_66",reportImage:"_reportImage_j2cgl_73",reportImg:"_reportImg_j2cgl_83"},Xt="https://srm-cdn.a4b.io/yoda/1770363846052.svg",Zt=["premiumFeature1","premiumFeature2","premiumFeature3","premiumFeature4"],er="https://srm-cdn.a4b.io/yoda/1770710060606.png",tr=({t:r,reportImageUrl:n=er,analytics:l,className:p=""})=>{const s=()=>{l?.trackBannerClicked?.()};return e.jsx("section",{className:`${q.section} ${p}`,"aria-labelledby":"premium-headline",role:"button",tabIndex:0,onClick:s,children:e.jsxs("div",{className:q.inner,children:[e.jsxs("div",{className:q.content,children:[e.jsxs("h2",{id:"premium-headline",className:q.headline,children:[e.jsxs("span",{className:q.headlineLine,children:[e.jsx("span",{className:q.headlinePill,children:r("premiumHeadlinePill1")}),e.jsx("span",{className:q.headlinePlain,children:r("premiumHeadlinePlain1")})]}),e.jsxs("span",{className:q.headlineLine,children:[e.jsx("span",{className:q.headlinePlain,children:r("premiumHeadlinePlain2")}),e.jsx("span",{className:q.headlinePill,children:r("premiumHeadlinePill2")})]})]}),e.jsx("ul",{className:q.featureList,children:Zt.map(_=>e.jsxs("li",{className:q.featureItem,children:[e.jsx("img",{src:Xt,alt:"",className:q.featureIcon,width:16,height:16,"aria-hidden":!0}),r(_)]},_))})]}),e.jsx("div",{className:q.reportImage,children:e.jsx("img",{src:n,alt:"",className:q.reportImg})})]})})},Ye={section:"_section_1g93x_1",heading:"_heading_1g93x_6",logoImg:"_logoImg_1g93x_10"},rr="https://srm-cdn.a4b.io/yoda/1770365699409.png",ar=({t:r,logoUrl:n=rr,className:l=""})=>e.jsxs("section",{className:`${Ye.section} ${l}`,"aria-labelledby":"certified-heading",children:[e.jsx("h2",{id:"certified-heading",className:Ye.heading,children:r("certifiedBy")}),e.jsx("img",{src:n,alt:"University Certification",className:Ye.logoImg})]}),te={section:"_section_fw00n_1",heading:"_heading_fw00n_6",subtitle:"_subtitle_fw00n_12",stepList:"_stepList_fw00n_17",stepItem:"_stepItem_fw00n_21",stepNumber:"_stepNumber_fw00n_25",stepText:"_stepText_fw00n_31",step3Days:"_step3Days_fw00n_36"},nr=["step1","step2"],or=({t:r,locale:n="en",className:l=""})=>e.jsxs("section",{className:`${te.section} ${l}`,"aria-labelledby":"steps-heading",children:[e.jsx("p",{className:te.heading,children:r("yourThreeSteps")}),e.jsx("h2",{id:"steps-heading",className:te.subtitle,children:r("threeStepsSubtitle")}),e.jsxs("ol",{className:te.stepList,children:[nr.map((p,s)=>e.jsxs("li",{className:te.stepItem,children:[e.jsx("span",{className:te.stepNumber,"aria-hidden":!0,children:s+1}),e.jsx("span",{className:te.stepText,children:r(p)})]},p)),e.jsxs("li",{className:te.stepItem,children:[e.jsx("span",{className:te.stepNumber,"aria-hidden":!0,children:"3"}),e.jsxs("span",{className:te.stepText,children:[r("step3Intro"),e.jsx("br",{}),n==="en"?e.jsxs(e.Fragment,{children:["in ",e.jsx("strong",{className:te.step3Days,children:r("step3Days")})]}):e.jsx("strong",{className:te.step3Days,children:r("step3Days")})]})]})]})]}),dt={section:"_section_uboy6_1",button:"_button_uboy6_7"},ie={backdrop:"_backdrop_pekod_1",modal:"_modal_pekod_21",header:"_header_pekod_40",title:"_title_pekod_49",closeBtn:"_closeBtn_pekod_56",content:"_content_pekod_76",pdfFrame:"_pdfFrame_pekod_84",pdfPages:"_pdfPages_pekod_92",pdfError:"_pdfError_pekod_97",openInNewTab:"_openInNewTab_pekod_123"};Fe.GlobalWorkerOptions.workerSrc=`https://unpkg.com/pdfjs-dist@${Fe.version}/build/pdf.worker.min.js`;const ir=({isOpen:r,onClose:n,title:l,pdfUrl:p})=>{const s=c.useRef(null),[_,h]=c.useState(!0),[m,d]=c.useState(null);return c.useEffect(()=>{if(!r)return;const w=f=>{f.key==="Escape"&&n()};return document.addEventListener("keydown",w),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",w),document.body.style.overflow=""}},[r,n]),c.useEffect(()=>{if(!r||!p||!s.current)return;h(!0),d(null),s.current.innerHTML="",(async()=>{try{const b=await Fe.getDocument({url:p}).promise,k=s.current;if(!k)return;const S=k.clientWidth||600,P=Math.min(S/612,2);for(let x=1;x<=b.numPages;x++){const j=await b.getPage(x),R=j.getViewport({scale:P}),y=document.createElement("canvas");y.height=R.height,y.width=R.width,y.style.display="block",y.style.margin="0 auto 1rem",y.style.maxWidth="100%";const E=y.getContext("2d");E&&await j.render({canvasContext:E,viewport:R}).promise,k.appendChild(y)}}catch(f){d(f instanceof Error?f.message:"Failed to load PDF")}finally{h(!1)}})()},[r,p]),r?e.jsx("div",{className:ie.backdrop,onClick:n,role:"dialog","aria-modal":"true","aria-labelledby":"sample-report-modal-title",children:e.jsxs("div",{className:ie.modal,onClick:w=>w.stopPropagation(),children:[e.jsxs("div",{className:ie.header,children:[e.jsx("h2",{id:"sample-report-modal-title",className:ie.title,children:l}),e.jsx("button",{type:"button",className:ie.closeBtn,onClick:n,"aria-label":"Close",children:"×"})]}),e.jsxs("div",{className:ie.content,children:[e.jsxs("div",{className:ie.pdfFrame,children:[m&&e.jsxs("div",{className:ie.pdfError,children:[e.jsx("span",{children:m}),e.jsx("a",{href:p,target:"_blank",rel:"noopener noreferrer",children:"Open in new tab instead"})]}),e.jsx("div",{ref:s,className:ie.pdfPages})]}),e.jsx("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:ie.openInNewTab,children:"Open in new tab"})]})]})}):null},sr="https://srm-cdn.a4b.io/yoda/1770651163050.pdf",cr=({t:r,pdfUrl:n=sr,onClick:l,analytics:p,className:s=""})=>{const[_,h]=c.useState(!1),m=r("viewSampleReport"),d=r("sampleReportModalTitle"),w=()=>{p?.trackViewSampleReportClicked?.(),l?.(),h(!0)},f=()=>{p?.trackViewSampleReportClosed?.(),h(!1)};return e.jsxs("section",{className:`${dt.section} ${s}`,children:[e.jsx("button",{type:"button",className:dt.button,onClick:w,children:m}),e.jsx(ir,{isOpen:_,onClose:f,title:d,pdfUrl:n})]})},se={section:"_section_g1kup_1",heading:"_heading_g1kup_5",list:"_list_g1kup_10",item:"_item_g1kup_17",imageWrap:"_imageWrap_g1kup_21",image:"_image_g1kup_21",imagePlaceholder:"_imagePlaceholder_g1kup_30",text:"_text_g1kup_36",itemTitle:"_itemTitle_g1kup_40",itemDesc:"_itemDesc_g1kup_51"},lr=[{titleKey:"findDasha",descKey:"findDashaDesc"},{titleKey:"findYoga",descKey:"findYogaDesc"},{titleKey:"findGemstone",descKey:"findGemstoneDesc"},{titleKey:"findPooja",descKey:"findPoojaDesc"},{titleKey:"findMonthly",descKey:"findMonthlyDesc"},{titleKey:"findStrength",descKey:"findStrengthDesc"}],dr=["https://srm-cdn.a4b.io/yoda/1770639688505.png","https://srm-cdn.a4b.io/yoda/1770639714646.png","https://srm-cdn.a4b.io/yoda/1770639727335.png","https://srm-cdn.a4b.io/yoda/1770639739387.png","https://srm-cdn.a4b.io/yoda/1770639749920.png","https://srm-cdn.a4b.io/yoda/1770639760835.png"],pr=({t:r,imageUrls:n=dr,className:l=""})=>e.jsxs("section",{className:`${se.section} ${l}`,"aria-labelledby":"find-heading",children:[e.jsx("h2",{id:"find-heading",className:se.heading,children:r("whatYoullFindTitle")}),e.jsx("ul",{className:se.list,children:lr.map((p,s)=>e.jsxs("li",{className:se.item,children:[e.jsx("div",{className:se.imageWrap,children:n[s]?e.jsx("img",{src:n[s],alt:"",className:se.image}):e.jsx("div",{className:se.imagePlaceholder,"aria-hidden":!0})}),e.jsxs("div",{className:se.text,children:[e.jsx("h3",{className:se.itemTitle,children:r(p.titleKey)}),e.jsx("p",{className:se.itemDesc,children:r(p.descKey)})]})]},p.titleKey))})]}),Ee={section:"_section_1poer_1",heading:"_heading_1poer_6",subtitle:"_subtitle_1poer_11",list:"_list_1poer_16",item:"_item_1poer_20"},mr=["whyUs1","whyUs2","whyUs3","whyUs4"],ur=({t:r,className:n=""})=>e.jsxs("section",{className:`${Ee.section} ${n}`,"aria-labelledby":"why-heading",children:[e.jsx("h2",{id:"why-heading",className:Ee.heading,children:r("whyUsTitle")}),e.jsx("p",{className:Ee.subtitle,children:r("whyUsSubtitle")}),e.jsx("ul",{className:Ee.list,children:mr.map(l=>e.jsx("li",{className:Ee.item,children:r(l)},l))})]}),O={section:"_section_3cm7k_1",heading:"_heading_3cm7k_5",trustLine:"_trustLine_3cm7k_10",star:"_star_3cm7k_15",ratingNum:"_ratingNum_3cm7k_20",trustText:"_trustText_3cm7k_24",cardList:"_cardList_3cm7k_28",card:"_card_3cm7k_28",quote:"_quote_3cm7k_37",author:"_author_3cm7k_42",avatar:"_avatar_3cm7k_46",avatarPlaceholder:"_avatarPlaceholder_3cm7k_50",authorInfo:"_authorInfo_3cm7k_55",authorName:"_authorName_3cm7k_59",stars:"_stars_3cm7k_64",readMoreWrap:"_readMoreWrap_3cm7k_69",toggleBtn:"_toggleBtn_3cm7k_73",readMore:"_readMore_3cm7k_69",arrow:"_arrow_3cm7k_93",dot:"_dot_3cm7k_97"},pt=3,fr=r=>{const l=new Map;for(let d=1;d<=15;d+=1){const w=`feedbackTestimonial${d}`,f=r(w);if(!f||f===w)continue;const b=`feedbackAuthor${d}`,k=(()=>{const x=r(b);return x&&x!==b?x:r("guest")})(),S=`feedbackAuthor${d}AvatarUrl`,P=(()=>{const x=r(S);return x&&x!==S?x:void 0})();l.set(d,{quote:f,authorName:k,authorAvatarUrl:P,rating:5})}const p=[],s=[];for(let d=1;d<=15;d+=1)d>=9?s.push(d):p.push(d);const _=[];let h=0,m=0;for(;h<p.length||m<s.length;){if(m<s.length){const d=s[m++],w=l.get(d);w&&_.push(w)}if(h<p.length){const d=p[h++],w=l.get(d);w&&_.push(w)}}return _},gr=({t:r,testimonials:n,readMoreHref:l,onReadMore:p,className:s=""})=>{const _=n??c.useMemo(()=>fr(r),[r]),[h,m]=c.useState(!1),d=_.length>pt,w=d&&!h?_.slice(0,pt):_;return e.jsxs("section",{className:`${O.section} ${s}`,"aria-labelledby":"feedback-heading",children:[e.jsx("h2",{id:"feedback-heading",className:O.heading,children:r("feedbackTitle")}),e.jsxs("p",{className:O.trustLine,children:[e.jsx("span",{className:O.star,"aria-hidden":!0,children:"★"}),e.jsx("span",{className:O.ratingNum,children:r("feedbackRating")}),e.jsx("span",{className:O.dot,"aria-hidden":!0}),e.jsx("span",{className:O.trustText,children:r("feedbackTrust")})]}),e.jsx("ul",{className:O.cardList,children:w.map((f,b)=>e.jsxs("li",{className:O.card,children:[e.jsx("p",{className:O.quote,children:f.quote}),e.jsxs("div",{className:O.author,children:[f.authorAvatarUrl?e.jsx("img",{src:f.authorAvatarUrl,alt:"",className:O.avatar,width:40,height:40}):e.jsx("div",{className:O.avatarPlaceholder,"aria-hidden":!0}),e.jsxs("div",{className:O.authorInfo,children:[e.jsx("span",{className:O.authorName,children:f.authorName}),e.jsx("span",{className:O.stars,"aria-hidden":!0,children:"★".repeat(f.rating??5)})]})]})]},b))}),d&&e.jsx("div",{className:O.readMoreWrap,children:e.jsxs("button",{type:"button",className:O.toggleBtn,onClick:()=>m(f=>!f),"aria-expanded":h,children:[r(h?"readLess":"readMoreReviews"),e.jsx("span",{className:O.arrow,"aria-hidden":!0,children:"›"})]})}),(l||p)&&!d&&e.jsx("div",{className:O.readMoreWrap,children:l?e.jsxs("a",{href:l,className:O.readMore,target:"_blank",rel:"noopener noreferrer",children:[r("readMoreReviews"),e.jsx("span",{className:O.arrow,"aria-hidden":!0,children:"›"})]}):e.jsxs("button",{type:"button",className:O.readMore,onClick:()=>p?.(),children:[r("readMoreReviews"),e.jsx("span",{className:O.arrow,"aria-hidden":!0,children:"›"})]})})]})},ae={section:"_section_1scfq_1",heading:"_heading_1scfq_6",accordion:"_accordion_1scfq_11",item:"_item_1scfq_15",itemOpen:"_itemOpen_1scfq_21",question:"_question_1scfq_25",chevron:"_chevron_1scfq_40",chevronOpen:"_chevronOpen_1scfq_47",answerWrap:"_answerWrap_1scfq_51",answerOpen:"_answerOpen_1scfq_56",answer:"_answer_1scfq_51"},hr=[{qKey:"faqQ1",aKey:"faqA1"},{qKey:"faqQ3",aKey:"faqA3"}],_r=({t:r,className:n=""})=>{const p=ue()?.config.isGlobal??!0,[s,_]=c.useState(1),h=m=>m==="faqA1"?p?"faqA1Global":"faqA1Domestic":m;return e.jsxs("section",{className:`${ae.section} ${n}`,"aria-labelledby":"faq-heading",children:[e.jsx("h2",{id:"faq-heading",className:ae.heading,children:r("faqTitle")}),e.jsx("div",{className:ae.accordion,role:"list",children:hr.map((m,d)=>{const w=s===d;return e.jsxs("div",{className:`${ae.item} ${w?ae.itemOpen:""}`,role:"listitem",children:[e.jsxs("button",{type:"button",className:ae.question,onClick:()=>_(w?-1:d),"aria-expanded":w,"aria-controls":`faq-answer-${d}`,id:`faq-question-${d}`,children:[e.jsx("span",{children:r(m.qKey)}),e.jsx("span",{className:`${ae.chevron} ${w?ae.chevronOpen:""}`,"aria-hidden":!0,children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,focusable:"false",children:e.jsx("path",{d:"M5.8 8.3a1 1 0 0 1 1.4 0L10 11.09l2.8-2.8a1 1 0 1 1 1.4 1.42l-3.5 3.5a1 1 0 0 1-1.4 0l-3.5-3.5A1 1 0 0 1 5.8 8.3z",fill:"currentColor"})})})]}),e.jsx("div",{id:`faq-answer-${d}`,role:"region","aria-labelledby":`faq-question-${d}`,className:`${ae.answerWrap} ${w?ae.answerOpen:""}`,hidden:!w,children:m.aKey&&e.jsx("p",{className:ae.answer,children:r(h(m.aKey))})})]},m.qKey)})})]})},ve={section:"_section_aphm8_1",heading:"_heading_aphm8_6",content:"_content_aphm8_11",line:"_line_aphm8_16",brandName:"_brandName_aphm8_20"},br=({t:r,whatsAppNumber:n,email:l,brandName:p,className:s=""})=>{const _=n??"8295049751",h=l??"shubham.goyal@supportmandir.com";return e.jsxs("section",{className:`${ve.section} ${s}`,"aria-labelledby":"contact-heading",children:[e.jsx("h2",{id:"contact-heading",className:ve.heading,children:r("contactTitle")}),e.jsxs("div",{className:ve.content,children:[e.jsx("p",{className:ve.brandName,children:p??r("sriMandir")}),e.jsx("p",{className:ve.line,children:r("contactWhatsApp").replace("8295049751",_)}),e.jsx("p",{className:ve.line,children:r("contactEmail").replace("shubham.goyal@supportmandir.com",h)})]})]})},mt="https://srm-cdn.a4b.io/yoda/1770375694934.svg",ut="https://srm-cdn.a4b.io/yoda/1770375720933.svg",ft="https://srm-cdn.a4b.io/yoda/1770707793537.svg",wr=({t:r})=>e.jsxs("div",{className:z.marqueeTrack,children:[e.jsxs("div",{className:z.marqueeContent,children:[e.jsxs("span",{className:z.badge,children:[e.jsx("img",{src:mt,alt:"",className:z.badgeIcon,width:16,height:16,"aria-hidden":!0}),r("ctaKundliCreated")]}),e.jsxs("span",{className:z.badge,children:[e.jsx("img",{src:ut,alt:"",className:z.badgeIcon,width:16,height:16,"aria-hidden":!0}),r("ctaCertified")]}),e.jsxs("span",{className:z.badge,children:[e.jsx("img",{src:ft,alt:"",className:z.badgeIcon,width:16,height:16,"aria-hidden":!0}),r("ctaSecurePayment")]})]}),e.jsxs("div",{className:z.marqueeContent,"aria-hidden":!0,children:[e.jsxs("span",{className:z.badge,children:[e.jsx("img",{src:mt,alt:"",className:z.badgeIcon,width:16,height:16,"aria-hidden":!0}),r("ctaKundliCreated")]}),e.jsxs("span",{className:z.badge,children:[e.jsx("img",{src:ut,alt:"",className:z.badgeIcon,width:16,height:16,"aria-hidden":!0}),r("ctaCertified")]}),e.jsxs("span",{className:z.badge,children:[e.jsx("img",{src:ft,alt:"",className:z.badgeIcon,width:16,height:16,"aria-hidden":!0}),r("ctaSecurePayment")]})]})]}),xr=({t:r,onCtaClick:n,ctaHref:l,className:p=""})=>{const s=ue(),_=s?.config.isGlobal??!0,h=_?s?.config.originalPriceLabel??r("ctaButtonStruck"):"₹999",m=_?s?.config.discountedPriceLabel??r("ctaButtonAfter"):"₹249",d=e.jsxs(e.Fragment,{children:[r("ctaButtonBefore"),e.jsx("span",{className:z.ctaStruck,children:h})," ",m]});return e.jsx(st,{className:p,marquee:e.jsx(wr,{t:r}),children:e.jsx(ct,{href:l,onClick:n,children:d})})},yr="https://srm-cdn.a4b.io/yoda/1770362713543.svg",vr="AIzaSyCEsEBy-JYuu9SSITQrpYU3tpaq5HQOhi4",kr=(r,n)=>Ue[r]?.[n]??n,jr={fullName:"",phone:"",email:"",dateOfBirth:"",birthTime:"",birthTimeUnknown:!1,birthPlace:""},gt=({className:r="",locale:n,showLanguageSelector:l=!0,onBack:p,initialValues:s,onProceed:_,proceedHref:h,originalPriceLabel:m,discountedPriceLabel:d,discountPillLabel:w,googleMapsApiKey:f=vr,analytics:b})=>{const k=ue(),S=We(),P=k!==null,x=P?k.locale:n,j=x??S?.locale??"en",[R,y]=c.useState(j),E=P?k.locale:R,W=P?k.setLocale:y,[A,V]=c.useState(!1),B=c.useRef(null),H=c.useRef(x),M=c.useRef(S?.locale);c.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"auto"})},[]);const Y=a=>kr(E,a);c.useEffect(()=>{x&&H.current!==x&&W(x),H.current=x},[x,W]),c.useEffect(()=>{if(x)return;const a=S?.locale;a&&M.current!==a&&W(a),M.current=a},[S?.locale,x,W]);const[Q,F]=c.useState({...jr,...s,phone:s?.phone??""}),K=P?k.formValues:Q,G=P?k.setFormValues:F,Z=P?k.goToPage:p,de=P?k.onProceed:_,ke=P?k.config.proceedHref:h,ge=P?k.config.originalPriceLabel:m,he=P?k.config.discountedPriceLabel:d,_e=P?k.config.discountPillLabel:w,be=P?k.config.showLanguageSelector??!0:l,le=(P?k?.config?.analytics:b)??b;c.useEffect(()=>{if(!A)return;const a=g=>{B.current&&!B.current.contains(g.target)&&V(!1)};return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[A]);const we=be?e.jsxs("div",{className:ne.langDropdownWrap,ref:B,children:[e.jsxs("button",{type:"button",className:ne.langTrigger,onClick:()=>{le?.trackLanguageClickedFe?.({language:E}),V(a=>!a)},"aria-expanded":A,"aria-haspopup":"listbox",id:"kundli-form-lang","aria-label":Y("language"),children:[e.jsx("img",{src:yr,alt:"",className:ne.langIcon,width:16,height:16,"aria-hidden":!0}),e.jsx("span",{className:ne.langLabel,children:Le[E]})]}),A&&e.jsx("ul",{className:ne.langMenu,role:"listbox","aria-labelledby":"kundli-form-lang","aria-activedescendant":`kundli-form-lang-option-${E}`,children:Re.map(a=>e.jsx("li",{id:`kundli-form-lang-option-${a}`,role:"option","aria-selected":a===E,className:ne.langOption,onClick:()=>{le?.trackLanguageChangedFe?.({newLanguage:a}),W(a),V(!1)},children:Le[a]},a))})]}):null;return e.jsxs("div",{className:`${ne.container} ${r}`,children:[e.jsx(lt,{t:Y,logoUrl:P?k.config.logoUrl:void 0,languageSelector:we,className:ne.kundliHeaderNoBorder}),e.jsx("div",{className:ne.headerSeparator,"aria-hidden":!0}),e.jsxs("main",{className:ne.main,children:[e.jsx(Ut,{t:Y,onBack:Z}),e.jsx(Yt,{t:Y,values:K,onChange:G,googleMapsApiKey:f})]}),e.jsx(qt,{t:Y,values:K,onProceed:de,href:ke,originalPriceLabel:ge,discountedPriceLabel:he,discountPillLabel:_e,analytics:le})]})},Pr="https://srm-cdn.a4b.io/yoda/1770362713543.svg",Nr=(r,n)=>Ue[r]?.[n]??n,Tr=112;function ce({section:r,children:n,onImpression:l}){const p=c.useRef(null),s=c.useRef(!1);return c.useEffect(()=>{const _=p.current;if(!_)return;const h=new IntersectionObserver(([m])=>{!m?.isIntersecting||s.current||(s.current=!0,l(r))},{threshold:.1,rootMargin:`0px 0px -${Tr}px 0px`});return h.observe(_),()=>h.disconnect()},[r,l]),e.jsx("div",{ref:p,children:n})}function Sr({className:r}){const{view:n}=$e();return n==="form"?e.jsx(gt,{}):e.jsx(Er,{className:r})}function Er({className:r}){const n=We(),{locale:l,setLocale:p,config:s,goToForm:_}=$e(),[h,m]=c.useState(!1),d=c.useRef(null),w=c.useRef(s.locale),f=c.useRef(n?.locale);c.useEffect(()=>{s.locale&&w.current!==s.locale&&p(s.locale),w.current=s.locale},[s.locale,p]),c.useEffect(()=>{if(s.locale)return;const j=n?.locale;j&&f.current!==j&&p(j),f.current=j},[n?.locale,s.locale,p]),c.useEffect(()=>{if(!h)return;const j=R=>{d.current&&!d.current.contains(R.target)&&m(!1)};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[h]);const b=j=>Nr(l,j),S=s.showLanguageSelector??!0?e.jsxs("div",{className:pe.langDropdownWrap,ref:d,children:[e.jsxs("button",{type:"button",className:pe.langTrigger,onClick:()=>{s.analytics?.trackLanguageClickedFe?.({language:l}),m(j=>!j)},"aria-expanded":h,"aria-haspopup":"listbox",id:"kundli-lang","aria-label":b("language"),children:[e.jsx("img",{src:Pr,alt:"",className:pe.langIcon,width:16,height:16,"aria-hidden":!0}),e.jsx("span",{className:pe.langLabel,children:Le[l]})]}),h&&e.jsx("ul",{className:pe.langMenu,role:"listbox","aria-labelledby":"kundli-lang","aria-activedescendant":`kundli-lang-option-${l}`,children:Re.map(j=>e.jsx("li",{id:`kundli-lang-option-${j}`,role:"option","aria-selected":j===l,className:pe.langOption,onClick:()=>{s.analytics?.trackLanguageChangedFe?.({newLanguage:j}),p(j),m(!1)},children:Le[j]},j))})]}):null,P=j=>{const R=j.currentTarget.innerText?.trim()??b("ctaButtonAfter");s.analytics?.trackPrimaryCtaClickedFe?.({ctaText:R}),_(),s.onCtaClick?.()},x=c.useCallback(j=>{s.analytics?.trackDetailedKundliReportImpressionFe?.({section:j,timestamp:new Date().toISOString()})},[s.analytics]);return e.jsxs("div",{className:`${pe.container} ${r}`,children:[e.jsx(lt,{t:b,logoUrl:s.logoUrl,languageSelector:S}),e.jsxs("main",{className:pe.main,children:[e.jsx(ce,{section:"hero",onImpression:x,children:e.jsx(Qt,{t:b})}),e.jsx(ce,{section:"premium_report_overview",onImpression:x,children:e.jsx(tr,{t:b,reportImageUrl:s.reportImageUrl,analytics:s.analytics})}),e.jsx(ce,{section:"university_certification",onImpression:x,children:e.jsx(ar,{t:b,logoUrl:s.universityLogoUrls?.find(j=>!!j)})}),e.jsx(ce,{section:"three_steps_process",onImpression:x,children:e.jsx(or,{t:b,locale:l})}),e.jsx(ce,{section:"view_sample_report",onImpression:x,children:e.jsx(cr,{t:b,pdfUrl:s.sampleReportHref,onClick:s.onViewSampleReport,analytics:s.analytics})}),e.jsx(ce,{section:"what_youll_find",onImpression:x,children:e.jsx(pr,{t:b})}),e.jsx(ce,{section:"why_us",onImpression:x,children:e.jsx(ur,{t:b})}),e.jsx(ce,{section:"feedback",onImpression:x,children:e.jsx(gr,{t:b,readMoreHref:s.readMoreReviewsHref})}),e.jsx(ce,{section:"faq",onImpression:x,children:e.jsx(_r,{t:b})}),e.jsx(ce,{section:"contact_us",onImpression:x,children:e.jsx(br,{t:b})})]}),e.jsx(xr,{t:b,ctaHref:s.ctaHref,onCtaClick:s.ctaHref?void 0:P})]})}const Ir=({className:r="",locale:n,showLanguageSelector:l=!0,userId:p,isGlobal:s,logoUrl:_,reportImageUrl:h,universityLogoUrls:m,sampleReportHref:d,onViewSampleReport:w,ctaHref:f,onCtaClick:b,readMoreReviewsHref:k,onProceed:S,proceedHref:P,originalPriceLabel:x,discountedPriceLabel:j,discountPillLabel:R,analytics:y,onLocaleChange:E})=>e.jsx(it,{locale:n,showLanguageSelector:l,userId:p,isGlobal:s,logoUrl:_,reportImageUrl:h,universityLogoUrls:m,sampleReportHref:d,onViewSampleReport:w,ctaHref:f,onCtaClick:b,readMoreReviewsHref:k,onProceed:S,proceedHref:P,originalPriceLabel:x,discountedPriceLabel:j,discountPillLabel:R,analytics:y,onLocaleChange:E,children:e.jsx(Sr,{className:r})}),Ar={banner_clicked_fe:"banner_clicked_fe",primary_cta_clicked_fe:"primary_cta_clicked_fe",language_changed_fe:"language_changed_fe",language_clicked_fe:"language_clicked_fe",retry_payment:"retry_payment",detailed_kundli_report_impression_fe:"detailed_kundli_report_impression_fe",payment_partner_page_opened:"payment_partner_page_opened",view_sample_report_clicked:"view_sample_report_clicked",view_sample_report_closed:"view_sample_report_closed",info_icon_clicked:"info_icon_clicked",name_section_clicked:"name_section_clicked",name_section_filled:"name_section_filled",phone_section_clicked:"phone_section_clicked",phone_section_filled:"phone_section_filled",email_section_clicked:"email_section_clicked",email_section_filled:"email_section_filled",dob_clicked:"dob_clicked",dob_filled:"dob_filled",time_clicked:"time_clicked",time_filled:"time_filled",time_checkbox_clicked:"time_checkbox_clicked",place_of_birth_clicked:"place_of_birth_clicked",place_of_birth_chosen:"place_of_birth_chosen",language_of_report_clicked:"language_of_report_clicked",primary_cta_clicked_l1:"primary_cta_clicked_l1",kundli_page_view:"kundli_page_view",kundli_form_view:"kundli_form_view"};L.I18nProvider=Ot,L.KUNDLI_ANALYTICS_EVENT_NAMES=Ar,L.KUNDLI_LANGUAGE_STORAGE_KEY=Ke,L.KundliContext=ze,L.KundliForm=gt,L.KundliPage=Ir,L.KundliProvider=it,L.SUPPORTED_LOCALES=Re,L.getItem=rt,L.getStoredKundliLocale=nt,L.isLocalStorageAvailable=Bt,L.removeItem=Dt,L.setItem=at,L.setStoredKundliLocale=ot,L.useI18n=We,L.useKundliContext=ue,L.useKundliContextOrThrow=$e,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})}));
21
16
  //# sourceMappingURL=kundli-generator.umd.cjs.map