{"id":13674,"date":"2026-07-02T10:26:24","date_gmt":"2026-07-02T10:26:24","guid":{"rendered":"https:\/\/perion.com\/investors\/"},"modified":"2026-11-20T14:49:45","modified_gmt":"2026-11-20T14:49:45","slug":"investors","status":"publish","type":"page","link":"https:\/\/perion.com\/es\/investors\/","title":{"rendered":"Inversores"},"content":{"rendered":"<section class=\"afb-subnav afb-subnav--style-default\" data-af-view=\"blocks-subnav\">\n    <div class=\"afb-subnav__container container\">\n\t\t<div class=\"afb-subnav__title-wrapper\">\n\t\t\t<svg width=\"14\" height=\"16\" viewBox=\"0 0 14 16\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t\t<path d=\"M6.5293 15.3076H6.52637C6.5265 15.2947 6.52826 15.2815 6.52832 15.2686C6.52838 15.2815 6.52917 15.2947 6.5293 15.3076ZM6.52832 0.12207C6.54738 3.94998 9.37432 7.11282 13.0557 7.65625C9.37479 8.19959 6.54815 11.3622 6.52832 15.1895C6.50849 11.362 3.68119 8.19931 0 7.65625C3.68163 7.11306 6.50926 3.95018 6.52832 0.12207ZM6.52832 0.0429688C6.52825 0.0286309 6.52652 0.0143191 6.52637 0H6.5293C6.52914 0.0143159 6.52839 0.0286341 6.52832 0.0429688Z\" fill=\"#FF0083\"\/>\n\t\t\t<\/svg>\n\n\t\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"afc-title afc-title--advanced afu-title-style--default afb-subnav__title afu-color--text-default\" data-af-view=\"elements-partials-title\">Investors<\/h3>\n\t\t\t\t\t<svg role=\"button\" class=\"afb-subnav__title-icon\" width=\"12\" height=\"7\" viewBox=\"0 0 12 7\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n\t\t\t\t\t\t<path d=\"M5.53125 5.53027L10.5312 0.530273L5.53125 5.53027ZM5.53125 5.53027L0.53125 0.530273L5.53125 5.53027Z\" fill=\"white\"\/>\n\t\t\t\t\t\t<path d=\"M10.5312 0.530274L5.53125 5.53027L0.53125 0.530274\" stroke=\"#00101A\" stroke-width=\"1.5\" stroke-linejoin=\"round\"\/>\n\t\t\t\t\t\t<\/svg>\n\t\t\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<div class=\"afb-subnav__menu\">\n\t\t\t\t<ul id=\"menu-subnav-investors-spanish\" class=\"afb-subnav__nav\"><li id=\"menu-item-15435\" class=\"menu-item menu-item-type-post_type menu-item-object-af_nav_mega_menu menu-item-15435 menu-item--mega-menu menu-item-has-children\"><a>News &#038; Events<\/a><div class=\"sub-menu sub-menu--mega-menu\"><section class=\"afb-mega-menu-dropdown\" data-af-view=\"blocks-mega-menu-dropdown\">\n    \t\t<div class=\"afb-mega-menu-dropdown__rows\">\n\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"\/investors\/press\/\" class=\"afb-mega-menu-dropdown__row\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"afb-mega-menu-dropdown__icon-wrapper\">\n\t\t\t\t\t\t\t\t\t<picture\n\tclass=\"afc-picture afb-mega-menu-dropdown__icon\" data-af-view=\"elements-components-picture\"\t>\n\t\t\t\t<img width=\"24\" height=\"24\" src=\"https:\/\/perion.com\/wp-content\/uploads\/2026\/06\/desktop_windows.svg\" class=\"afc-image afc-picture__image\" alt=\"\" loading=\"lazy\" decoding=\"async\" srcset=\"https:\/\/perion.com\/wp-content\/uploads\/2026\/06\/desktop_windows.svg 150w, https:\/\/perion.com\/wp-content\/uploads\/2026\/06\/desktop_windows.svg 300w, https:\/\/perion.com\/wp-content\/uploads\/2026\/06\/desktop_windows.svg 1024w, https:\/\/perion.com\/wp-content\/uploads\/2026\/06\/desktop_windows.svg 1536w, https:\/\/perion.com\/wp-content\/uploads\/2026\/06\/desktop_windows.svg 2048w, https:\/\/perion.com\/wp-content\/uploads\/2026\/06\/desktop_windows.svg 24w\" sizes=\"auto, (max-width: 24px) 100vw, 24px\" \/>\t<\/picture>\n\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<span class=\"afb-mega-menu-dropdown__title\">Press Releases<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"\/investors\/ir-events\/\" class=\"afb-mega-menu-dropdown__row\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"afb-mega-menu-dropdown__icon-wrapper\">\n\t\t\t\t\t\t\t\t\t<picture\n\tclass=\"afc-picture afb-mega-menu-dropdown__icon\" data-af-view=\"elements-components-picture\"\t>\n\t\t\t\t<img width=\"24\" height=\"24\" src=\"https:\/\/perion.com\/wp-content\/uploads\/2026\/06\/ad.svg\" class=\"afc-image afc-picture__image\" alt=\"\" loading=\"lazy\" decoding=\"async\" srcset=\"https:\/\/perion.com\/wp-content\/uploads\/2026\/06\/ad.svg 150w, https:\/\/perion.com\/wp-content\/uploads\/2026\/06\/ad.svg 300w, https:\/\/perion.com\/wp-content\/uploads\/2026\/06\/ad.svg 1024w, https:\/\/perion.com\/wp-content\/uploads\/2026\/06\/ad.svg 1536w, https:\/\/perion.com\/wp-content\/uploads\/2026\/06\/ad.svg 2048w, https:\/\/perion.com\/wp-content\/uploads\/2026\/06\/ad.svg 24w\" sizes=\"auto, (max-width: 24px) 100vw, 24px\" \/>\t<\/picture>\n\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<span class=\"afb-mega-menu-dropdown__title\">IR Events<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t<\/div>\n    <\/section>\n<\/div><\/li>\n<li id=\"menu-item-15436\" class=\"menu-item menu-item-type-post_type menu-item-object-af_nav_mega_menu menu-item-15436 menu-item--mega-menu menu-item-has-children\"><a>Financial Information<\/a><div class=\"sub-menu sub-menu--mega-menu\"><section class=\"afb-mega-menu-dropdown\" data-af-view=\"blocks-mega-menu-dropdown\">\n    \t\t<div class=\"afb-mega-menu-dropdown__rows\">\n\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"\/es\/investors\/financial-results\/\" class=\"afb-mega-menu-dropdown__row\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t<span class=\"afb-mega-menu-dropdown__title\">Financial Results<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"\/es\/investors\/interactive-data-tool\/\" class=\"afb-mega-menu-dropdown__row\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t<span class=\"afb-mega-menu-dropdown__title\">Interactive Data Tool<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t<\/div>\n    <\/section>\n<\/div><\/li>\n<li id=\"menu-item-15439\" class=\"menu-item menu-item-type-post_type menu-item-object-af_nav_mega_menu menu-item-15439 menu-item--mega-menu menu-item-has-children\"><a>Stock Info<\/a><div class=\"sub-menu sub-menu--mega-menu\"><section class=\"afb-mega-menu-dropdown\" data-af-view=\"blocks-mega-menu-dropdown\">\n    \t\t<div class=\"afb-mega-menu-dropdown__rows\">\n\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"\/es\/investors\/stock-performance\/\" class=\"afb-mega-menu-dropdown__row\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t<span class=\"afb-mega-menu-dropdown__title\">Stock Performance<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"\/es\/investors\/analyst-coverage\/\" class=\"afb-mega-menu-dropdown__row\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t<span class=\"afb-mega-menu-dropdown__title\">Analyst Coverage<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t<\/div>\n    <\/section>\n<\/div><\/li>\n<li id=\"menu-item-15440\" class=\"menu-item menu-item-type-post_type menu-item-object-af_nav_mega_menu menu-item-15440 menu-item--mega-menu menu-item-has-children\"><a>Resources<\/a><div class=\"sub-menu sub-menu--mega-menu\"><section class=\"afb-mega-menu-dropdown\" data-af-view=\"blocks-mega-menu-dropdown\">\n    \t\t<div class=\"afb-mega-menu-dropdown__rows\">\n\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"\/es\/investors\/contact-ir\/\" class=\"afb-mega-menu-dropdown__row\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t<span class=\"afb-mega-menu-dropdown__title\">Contact IR<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"\/es\/investors\/faq\/\" class=\"afb-mega-menu-dropdown__row\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t<span class=\"afb-mega-menu-dropdown__title\">FAQ<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t<\/div>\n    <\/section>\n<\/div><\/li>\n<li id=\"menu-item-15443\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-15443\"><a href=\"\/es\/investors\/governance-documents\/\">Governance<\/a><\/li>\n<li id=\"menu-item-15444\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-15444\"><a href=\"\/es\/investors\/esg\/\">ESG<\/a><\/li>\n<\/ul>\t\t\t<\/div>\n\t\t    <\/div>\n<\/section>\n<script id=\"airfleet-lightyear-blocks-subnav-frontend-entry-scripts\" type=\"text\/javascript\" data-for-view=\"blocks-subnav\" data-cookieconsent=\"ignore\" >!function(){class e{classNames={block:\"afb-subnav\",itemActive:\"is-active\",nav:\"afb-subnav__nav\",open:\"afb-subnav--open\",parentItem:\"menu-item-has-children\",titleWrapper:\"afb-subnav__title-wrapper\"};mobileMediaQuery=window.matchMedia(\"(max-width: 1023px)\");initialize(){let{domReady:e}=window._airfleet.elements.core;e(()=>{this.initBlocks()})}initBlocks(){for(let e of[...document.querySelectorAll(`.${this.classNames.block}`)])this.initBlock(e)}initBlock(e){let t=e.querySelector(`.${this.classNames.titleWrapper}`);t&&t.addEventListener(\"click\",()=>{!this.isMobile()||e.classList.toggle(this.classNames.open)||this.closeSubmenus(e)}),this.initSubmenus(e),this.markCurrentItem(e),this.mobileMediaQuery.addEventListener(\"change\",t=>{t.matches||(e.classList.remove(this.classNames.open),this.closeSubmenus(e))})}initSubmenus(e){for(let t of[...e.querySelectorAll(`.${this.classNames.nav} .${this.classNames.parentItem}`)]){let e=t.querySelector(\":scope > a\");e&&e.addEventListener(\"click\",e=>{this.isMobile()&&(e.preventDefault(),t.classList.toggle(this.classNames.itemActive))})}}markCurrentItem(e){let t=[...e.querySelectorAll(`.${this.classNames.nav} a[href]`)],s=this.normalizePath(window.location.pathname),i=s.split(\"\/\").pop();for(let e of t){let t=e.getAttribute(\"href\"),a=!1;try{a=this.normalizePath(new URL(t,window.location.origin).pathname)===s||!t.startsWith(\"\/\")&&!t.includes(\":\/\/\")&&this.normalizePath(t)===i}catch{continue}if(!a)continue;let l=e.closest(\"li\");l&&l.classList.add(\"current-menu-item\");let n=l?.parentElement?.closest(`.${this.classNames.parentItem}`);n&&n.classList.add(\"current-menu-ancestor\")}}closeSubmenus(e){for(let t of e.querySelectorAll(`.${this.classNames.nav} .${this.classNames.parentItem}.${this.classNames.itemActive}`))t.classList.remove(this.classNames.itemActive)}normalizePath(e){return e.replace(\/\\\/+$\/,\"\").replace(\/^\\\/+\/,\"\").toLowerCase()}isMobile(){return this.mobileMediaQuery.matches}}new e().initialize()}();<\/script>\n<style id=\"airfleet-lightyear-blocks-subnav-default-entry-styles\" type=\"text\/css\">@keyframes lobby-loader-spin{to{transform:rotate(360deg)}}@keyframes lobby-placeholder-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.afb-subnav{--afs-container-padding-x:80px;--afs-container-max-width:100%;top:var(--afs-sticky-top);z-index:99;background-color:var(--afu-color-secondary-1);border:1px solid var(--afu-color-stroke);transition-duration:var(--afs-trs-sm);transition-property:top;transition-timing-function:var(--afs-trs-timing-function);position:sticky}@media (width<1024px){.afb-subnav{--afs-container-padding-x:40px}}@media (width>=1024px){.afb-subnav__container{gap:clamp(10px,3.125vw,60px);display:flex}}.afb-subnav__title-wrapper{align-items:center;gap:6px;display:flex}@media (width<1024px){.afb-subnav__title-wrapper{height:45px}}@media (width>=1024px){.afb-subnav__title-wrapper{min-width:135px}}.afb-subnav__title-wrapper svg{flex-shrink:0}.afb-subnav__title.afc-title--style-default,.afb-subnav__title.afu-title-style--default{font-family:var(--afs-font-family-primary);letter-spacing:.05em;text-transform:uppercase;font-size:14px;font-weight:500;line-height:1}.afb-subnav__title.afu-color--text-default{color:var(--afu-color-text-b-heading)}.afb-subnav__title-icon{transition-duration:var(--afs-trs-sm);transition-property:transform;transition-timing-function:var(--afs-trs-timing-function);flex-shrink:0;justify-content:center;align-items:center;margin-inline-start:auto;display:flex}@media (width>=1024px){.afb-subnav__title-icon{display:none}}@media (width<1024px){.afb-subnav--open .afb-subnav__title-icon{transform:rotate(180deg)}.afb-subnav__menu{transition-duration:var(--afs-trs-sm);transition-property:opacity,visibility;transition-timing-function:var(--afs-trs-timing-function);max-height:calc(100vh - var(--afs-sticky-top) - 45px);overscroll-behavior-y:contain;background-color:var(--afu-color-secondary-1);opacity:0;visibility:hidden;pointer-events:none;top:100%;width:100%;position:absolute;inset-inline-start:0;overflow-y:auto}}@media (width>=1024px){.afb-subnav__menu{flex:2 auto}}@media (width<1024px){.afb-subnav--open .afb-subnav__menu{opacity:1;visibility:visible;pointer-events:auto}.afb-subnav__nav{min-height:0;overflow:hidden}}.afb-subnav__nav{display:flex}@media (width>=1024px){.afb-subnav__nav{gap:clamp(10px,2vw,40px)}}@media (width<1024px){.afb-subnav__nav{flex-direction:column}}.afb-subnav__nav,.afb-subnav__nav ul{margin:0;padding:0;list-style:none}@media (width<1024px){.afb-subnav__nav>li,.afb-subnav__nav ul>li{transition-duration:var(--afs-trs-sm);transition-property:opacity;transition-timing-function:var(--afs-trs-timing-function)}.afb-subnav__nav:has(>li.is-active)>li:not(.is-active),.afb-subnav__nav ul:has(>li.is-active)>li:not(.is-active){opacity:.3}.afb-subnav__nav a{font-family:var(--afs-font-family-primary);letter-spacing:.09em;color:var(--afu-color-text-b-heading);border:1px solid var(--afu-color-stroke);text-transform:uppercase;align-items:center;width:100%;padding:12px 20px;font-size:14px;font-weight:300;line-height:1.5;text-decoration:none;display:flex}.afb-subnav__nav .menu-item-has-children{transition-duration:var(--afs-trs-sm);transition-property:grid-template-rows,opacity;transition-timing-function:var(--afs-trs-timing-function);grid-template-rows:auto 0fr;align-items:flex-start;display:grid;overflow:hidden}.afb-subnav__nav .menu-item-has-children>.sub-menu{min-height:0;overflow:hidden}.afb-subnav__nav .menu-item-has-children.is-active{grid-template-rows:auto 1fr}.afb-subnav__nav .menu-item-has-children>a:after{transition-duration:var(--afs-trs-sm);transition-property:transform;transition-timing-function:var(--afs-trs-timing-function);content:\"\";background:url(\"data:image\/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http:\/\/www.w3.org\/2000\/svg'%3E%3Cpath d='M5.53125 5.53027L10.5312 0.530273L5.53125 5.53027ZM5.53125 5.53027L0.53125 0.530273L5.53125 5.53027Z' fill='white'\/%3E%3Cpath d='M10.5312 0.530274L5.53125 5.53027L0.53125 0.530274' stroke='%2300101A' stroke-width='1.5' stroke-linejoin='round'\/%3E%3C\/svg%3E\") 50%\/contain no-repeat;flex:none;width:12px;height:7px;margin-inline-start:auto}.afb-subnav__nav .menu-item-has-children.is-active>a:after{transform:rotate(180deg)}}@media (width>=1024px){.afb-subnav__nav .sub-menu{background-color:var(--afu-color-secondary-1);top:100%;border:1px solid #0000001a;border-radius:10px;padding:30px;display:none;position:absolute;inset-inline-start:0;box-shadow:0 7px 35.1px #00000014}.afb-subnav__nav>li:hover>.sub-menu{display:block}.afb-subnav--style-default .afb-subnav__nav>li{align-content:center;height:55px;position:relative}.afb-subnav--style-default .afb-subnav__nav>li>a{transition-duration:var(--afs-trs-sm);transition-property:background-color,color;transition-timing-function:var(--afs-trs-timing-function);font-family:var(--afs-font-family-primary);min-height:31px;color:var(--afu-color-text-b-paragraph);letter-spacing:-.01em;border-radius:5px;justify-content:center;align-items:center;padding:5px 10px;font-size:14px;font-weight:500;line-height:1;text-decoration:none;display:flex}.afb-subnav--style-default .afb-subnav__nav>li:hover>a,.afb-subnav--style-default .afb-subnav__nav>li.current-menu-item>a,.afb-subnav--style-default .afb-subnav__nav>li.current-menu-ancestor>a{color:var(--afu-color-text-w-heading);background-color:var(--afu-color-primary-3)}}.afb-subnav--style-dark{background-color:#131212;border-inline:0}.afb-subnav--style-dark .afb-subnav__title-wrapper svg{display:none}.afb-subnav--style-dark .afb-subnav__title.afu-color--text-default{color:var(--afu-color-text-w-heading)}@media (width>=1024px){.afb-subnav--style-dark .afb-subnav__nav{gap:clamp(10px,2vw,40px)}.afb-subnav--style-dark .afb-subnav__nav>li{align-content:center;height:48px;position:relative}.afb-subnav--style-dark .afb-subnav__nav>li>a{transition-duration:var(--afs-trs-sm);transition-property:opacity;transition-timing-function:var(--afs-trs-timing-function);font-family:var(--afs-font-family-primary);letter-spacing:-.02em;color:var(--afu-color-text-w-heading);opacity:.6;justify-content:center;align-items:center;font-size:13px;font-weight:500;line-height:1.5;text-decoration:none;display:flex}.afb-subnav--style-dark .afb-subnav__nav>li:hover>a,.afb-subnav--style-dark .afb-subnav__nav>li.current-menu-item>a,.afb-subnav--style-dark .afb-subnav__nav>li.current-menu-ancestor>a{opacity:1}}<\/style>\n<style id=\"airfleet-lightyear-blocks-mega-menu-dropdown-default-entry-styles\" type=\"text\/css\">@keyframes lobby-loader-spin{to{transform:rotate(360deg)}}@keyframes lobby-placeholder-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (width>=1024px){.afb-mega-menu-dropdown{min-width:270px}.afb-mega-menu-dropdown__rows{flex-direction:column;gap:15px;display:flex}.afb-mega-menu-dropdown__row{font-family:var(--afs-font-family-primary);letter-spacing:0;color:var(--afu-color-text-b-heading);align-items:center;gap:10px;font-size:14px;font-weight:500;line-height:2;text-decoration:none;display:flex}}.afb-mega-menu-dropdown__icon-wrapper{border:1px solid var(--afu-color-stroke);border-radius:5px;flex-shrink:0;justify-content:center;align-items:center;width:35px;height:35px;padding:5px;display:flex}@media (width<1024px){.afb-mega-menu-dropdown__icon-wrapper{display:none}}<\/style>\n<style id=\"airfleet-elements-images-elements-components-picture-default-entry-styles\" type=\"text\/css\">.afc-picture{display:inline-block}<\/style>\n<style id=\"airfleet-elements-images-elements-components-image-default-entry-styles\" type=\"text\/css\">.afc-image{max-width:100%;height:auto}<\/style>\n\n\n<section class=\"afb-breadcrumbs-and-title\" data-af-view=\"blocks-breadcrumbs-and-title\">\n    <div class=\"afc-background\" data-af-view=\"elements-partials-background\">\n\t\t\t<div class=\"afc-background-image afc-flexible__item-0 afc-background__item afu-hide--only-mobile\" data-af-view=\"elements-components-background-image\" data-loading=\"lazy\" data-load-margin=\"0px 0px 300px 0px\" data-background-image=\"https:\/\/perion.com\/wp-content\/uploads\/2026\/07\/Frame-2147226607-scaled.png\">\n\t<\/div>\n<script id=\"airfleet-elements-background-elements-components-background-image-default-entry-scripts\" type=\"text\/javascript\" data-for-view=\"elements-components-background-image\" data-cookieconsent=\"ignore\" >!function(){class e{constructor(e,t){this.section=e,this.images=[],this.observer=null,this.observerConfig={},this.imageItemsSelector=t.imageItemsSelector,this.imageItemClass=t.imageItemClass}onIntersection(e,t){}setup(){this.images=this.queryImageItems(),this.shouldObserve()&&(this.observer=this.createObserver(),this.observe())}queryImageItems(){return this.imageItemsSelector||this.imageItemClass?[...this.imageItemsSelector?this.section.querySelectorAll(this.imageItemsSelector):[],this.section.classList.contains(this.imageItemClass)&&this.section].filter(Boolean):(console.error(\"Missing image items selector and item class.\"),[])}shouldObserve(){return this.images?.length>0}createObserver(){return new IntersectionObserver((e,t)=>this.onIntersection(e,t),this.observerConfig)}observe(){for(let e of this.images)this.observer.observe(e)}}class t extends e{constructor(e,t){super(e,t),this.observerConfig={rootMargin:this.section.dataset.loadMargin||0}}shouldObserve(){return\"lazy\"===this.section.dataset.loading}onIntersection(e,t){for(let s of e)s.isIntersecting&&(this.loadBackgroundImage(s.target),t.unobserve(s.target))}loadBackgroundImage(e){let{dispatchEvent:t}=window._airfleet.elements.core;t(e,\"airfleet-background-image-load-request\")}}new class{initialize(){let{domReady:e}=window._airfleet.elements.core;e(()=>{let e=this.querySections(),s={imageItemClass:\"afc-background__item\",imageItemsSelector:\".afc-background__item\"};for(let i of e)new t(i,s).setup(),i.addEventListener(\"airfleet-background-image-load-request\",e=>{let{target:t}=e,{loading:s,backgroundImage:i}=t.dataset;\"lazy\"===s&&(t.style.backgroundImage=`url(${i})`)})})}querySections(){return document.querySelectorAll(\".afc-background-image\")}}().initialize()}();<\/script>\n<div class=\"afc-background-image afc-flexible__item-1 afc-background__item afu-hide--only-tablet afu-hide--only-tablet-large afu-hide--only-laptop afu-hide--only-laptop-large afu-hide--only-desktop afu-hide--only-widescreen\" data-af-view=\"elements-components-background-image\" data-loading=\"lazy\" data-load-margin=\"0px 0px 300px 0px\" data-background-image=\"https:\/\/perion.com\/wp-content\/uploads\/2026\/07\/Light-hero-mobile-1.png\">\n\t<\/div>\n\t\t<div class=\"afc-background__content\">\n\t\t<div class=\"container afb-breadcrumbs-and-title__container\">\n\t\t\t\t\t\t\t<div class=\"afb-breadcrumbs-and-title__breadcrumbs\">\n\t\t\t\t\t<div class=\"c-breadcrumbs\" id=\"breadcrumbs\"><span><span><a href=\"https:\/\/perion.com\/es\/\">Home<\/a><\/span><\/span><\/div>\n\t\t\t\t<\/div>\n\t\t\t\n                          <h1 class=\"afc-title afc-title--advanced afu-title-style--default afc-flexible__item-0 afb-breadcrumbs-and-title__title afu-color--text-default\" data-af-view=\"elements-partials-title\">Inversores<\/h1>                    <\/div>\t<\/div>\n<\/div>\n<\/section>\n<style id=\"airfleet-lightyear-blocks-breadcrumbs-and-title-default-entry-styles\" type=\"text\/css\">@keyframes lobby-loader-spin{to{transform:rotate(360deg)}}@keyframes lobby-placeholder-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.afb-breadcrumbs-and-title{text-align:center}.afb-breadcrumbs-and-title>.afc-background{padding-block:48px 80px}@media (width<1024px){.afb-breadcrumbs-and-title>.afc-background{padding-block:20px 40px}}.afb-breadcrumbs-and-title a{text-decoration:none}.afb-breadcrumbs-and-title .c-breadcrumbs{font-family:var(--afs-font-family-primary);letter-spacing:-.02em;color:var(--afu-color-text-b-heading);margin-bottom:38px;font-size:14px;font-weight:400;line-height:1.6}@media (width<1024px){.afb-breadcrumbs-and-title .c-breadcrumbs{margin-bottom:30px;font-size:13px}}.afb-breadcrumbs-and-title .c-breadcrumbs span{justify-content:center;align-items:center;gap:12px;display:flex}.afb-breadcrumbs-and-title .c-breadcrumbs a{opacity:.5;transition-duration:var(--afs-trs-sm);transition-property:opacity;transition-timing-function:var(--afs-trs-timing-function)}.afb-breadcrumbs-and-title .c-breadcrumbs a:hover{opacity:1}.afb-breadcrumbs-and-title__title.afc-title--style-default,.afb-breadcrumbs-and-title__title.afu-title-style--default{font-family:var(--afs-font-family-primary);letter-spacing:-.02em;font-size:55px;font-weight:500;line-height:1.32}@media (width<1024px){.afb-breadcrumbs-and-title__title.afc-title--style-default,.afb-breadcrumbs-and-title__title.afu-title-style--default{font-size:32px;line-height:1.25}}.afb-breadcrumbs-and-title__title.afu-color--text-default{color:var(--afu-color-text-b-heading)}<\/style>\n<style id=\"airfleet-elements-background-elements-partials-background-default-entry-styles\" type=\"text\/css\">.afc-background{height:100%;position:relative}.afc-background__item{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0}.afc-background__content,.afc-background .container{position:relative}<\/style>\n<style id=\"airfleet-elements-background-elements-components-background-image-default-entry-styles\" type=\"text\/css\">.afc-background-image{background-position:50%;background-repeat:no-repeat;background-size:cover}<\/style>\n\n\n<section class=\"afb-content-blocks afb-content-blocks--style-default\" data-af-view=\"blocks-content-blocks\">\n    <div class=\"afc-background\" data-af-view=\"elements-partials-background\">\n\t\t\t<div class=\"afc-background__item afc-background__item--default\"><\/div>\n\t\t<div class=\"afc-background__content\">\n\t\t<div class=\"container afb-content-blocks__container\">\n\t\t\t<div class=\"afb-content-blocks__content\">\n<div id=\"QuoteDiv28\" class=\"B2iQuoteContainer \"><\/div>\n<script src=\"https:\/\/www.b2i.us\/b2i\/QuoteApi.asp?v=1.0.8.3\" type=\"text\/javascript\"><\/script>\n<script type=\"text\/javascript\">\noQuote.BizID=\"2202\";\noQuote.sKey=\"S2U4c6M6o4\";\noQuote.sDiv=\"QuoteDiv28\";\noQuote.Symbol=\"PERI\";\noQuote.sHttp=\"https\";\noQuote.Format=\"28\";\noQuote.Dollar=\"1\";\noQuote.DecLen=\"2\";\noQuote.DateFormat=\"6\";\ngetQuoteData();\n<\/script>\n\n\n\n\n<p class=\"wp-block-paragraph\">Perion es una empresa de infraestructura de ejecuci\u00f3n nativa de IA para la publicidad moderna, que opera donde se asigna, escala y optimiza la inversi\u00f3n publicitaria real en todos los canales.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><strong>La compa\u00f1\u00eda impulsa un ecosistema de soluciones que conecta a marcas y retailers con los consumidores. Su tecnolog\u00eda propia y sus adquisiciones estrat\u00e9gicas garantizan que nuestro crecimiento no dependa de un \u00fanico segmento de la industria de la publicidad digital: Perion est\u00e1 dise\u00f1ada para prosperar en un entorno cambiante.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n<section\n\tclass=\"afb-side-by-side afb-side-by-side--desktop-media-position-right afb-side-by-side--tablet-and-mobile-media-position-bottom afb-side-by-side--style-boxed afu-padding--top-sm\" data-af-view=\"elements-partials-side-by-side\">\n\t<div class=\"afc-background\" data-af-view=\"elements-partials-background\">\n\t\t\t<div class=\"afc-background__item afc-background__item--default\"><\/div>\n\t\t<div class=\"afc-background__content\">\n\t\t<div class=\"container afb-side-by-side__container\">\n\t\t<div class=\"afb-side-by-side__inner\">\n\t\t\t<div class=\"afb-side-by-side__main\">\n\t\t\t\t\t\t\t\t<div class=\"afb-side-by-side__headings\">\n\t\t\t\t\t<h3 class=\"afc-title afc-title--advanced afu-title-style--default afc-flexible__item-0 afu-color--text-default\" data-af-view=\"elements-partials-title\">Presentaci\u00f3n para inversores<\/h3>\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"afb-side-by-side__texts\">\n\t\t\t\t\t\t<div class=\"afc-text afc-text--advanced afu-text-style--default afc-flexible__item-0 afu-color--text-default\" data-af-view=\"elements-partials-text\"><p>Descubre nuestra estrategia, el rendimiento del negocio y nuestra visi\u00f3n de crecimiento a largo plazo.<\/p>\n<\/div>\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<div class=\"afb-side-by-side__buttons\">\n\t\t\t\t\t\t<a href=\"https:\/\/perion.com\/wp-content\/uploads\/Perion-Investor-Presentation-August-2026.pdf\" target=\"_blank\" class=\"afc-button afc-button--link afc-button--style-primary afc-flexible__item-0\" data-af-view=\"elements-partials-button\">\t<span class=\"afc-button__content\">\n\t\tDescargar\t<\/span>\n\t<\/a><script id=\"airfleet-lightyear-elements-partials-button-frontend-entry-scripts\" type=\"text\/javascript\" data-for-view=\"elements-partials-button\" data-cookieconsent=\"ignore\" >new class{classNames={variation:\"afc-button--variation-go-back\"};initialize(){_af.ready(()=>{this.initButtons()})}initButtons(){for(let i of document.querySelectorAll(`.${this.classNames.variation}`))i.addEventListener(\"click\",t=>{this.handleClick(t,i)})}handleClick(i,t){if(i.preventDefault(),window.history.length>1)return void window.history.back();let a=t.dataset.afGoBackHome||\"\/\";window.location.assign(a)}}().initialize();<\/script>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t<div class=\"afb-side-by-side__aside\">\n\t\t\t\t\t<picture\n\tclass=\"afc-picture afc-flexible__item-0\" data-af-view=\"elements-components-picture\"\t>\n\t\t\t\t\t\t\t\t\t<source srcset=\"https:\/\/perion.com\/wp-content\/uploads\/Investors_Pres_632X352.png.webp 1264w,https:\/\/perion.com\/wp-content\/uploads\/Investors_Pres_632X352-300x167.png.webp 300w,https:\/\/perion.com\/wp-content\/uploads\/Investors_Pres_632X352-1024x570.png.webp 1024w,https:\/\/perion.com\/wp-content\/uploads\/Investors_Pres_632X352-768x428.png.webp 768w\" type=\"image\/webp\" \/>\n\t\t\t\t\t\t\t<img width=\"1264\" height=\"704\" src=\"https:\/\/perion.com\/wp-content\/uploads\/Investors_Pres_632X352.png\" class=\"afc-image afc-picture__image\" alt=\"\" loading=\"lazy\" decoding=\"async\" srcset=\"https:\/\/perion.com\/wp-content\/uploads\/Investors_Pres_632X352.png 1264w, https:\/\/perion.com\/wp-content\/uploads\/Investors_Pres_632X352-300x167.png 300w, https:\/\/perion.com\/wp-content\/uploads\/Investors_Pres_632X352-1024x570.png 1024w, https:\/\/perion.com\/wp-content\/uploads\/Investors_Pres_632X352-768x428.png 768w\" sizes=\"auto, (max-width: 1264px) 100vw, 1264px\" \/>\t<\/picture>\n\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\t<\/div>\n<\/div>\n<\/section>\n<style id=\"airfleet-lightyear-elements-blocks-side-by-side-v2-default-entry-styles\" type=\"text\/css\">@keyframes lobby-loader-spin{to{transform:rotate(360deg)}}@keyframes lobby-placeholder-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.afb-side-by-side{--afs-side-by-side-texts-vertical-gap:0;--afs-side-by-side-buttons-margin-top-mobile:0;--afs-side-by-side-texts-margin-bottom-mobile:0;--afs-side-by-side-buttons-margin-top-desktop:0;--afs-section-padding-top-mobile:50px;--afs-side-by-side-tagline-margin-bottom-not-last:16px}.afb-side-by-side__tagline{--afs-side-by-side-tagline-flex-direction:row;--afs-side-by-side-tagline-align-items:center;--afs-side-by-side-tagline-gap:8px}@media (width>=1024px){.afb-side-by-side__tagline .afc-title{font-family:var(--afs-text-p3-m-desktop-font-family);font-size:var(--afs-text-p3-m-desktop-font-size);font-style:var(--afs-text-p3-m-desktop-font-style);font-weight:var(--afs-text-p3-m-desktop-font-weight);letter-spacing:var(--afs-text-p3-m-desktop-letter-spacing);line-height:var(--afs-text-p3-m-desktop-line-height)}}@media (width<1024px){.afb-side-by-side__tagline .afc-title{font-family:var(--afs-text-p3-m-mobile-font-family);font-size:var(--afs-text-p3-m-mobile-font-size);font-style:var(--afs-text-p3-m-mobile-font-style);font-weight:var(--afs-text-p3-m-mobile-font-weight);letter-spacing:var(--afs-text-p3-m-mobile-letter-spacing);line-height:var(--afs-text-p3-m-mobile-line-height)}}.afb-side-by-side__tagline .afc-title{font-size:calc(var(--afs-text-p3-m-mobile-font-size-int)*1px)}@media (width>=1024px){.afb-side-by-side__tagline .afc-title{font-size:clamp(var(--afs-text-p3-m-mobile-font-size-int)*1px,calc(calc(var(--afs-text-p3-m-mobile-font-size-int)*1px) + (100vw - 1024px)\/(1920 - 1024)*(var(--afs-text-p3-m-desktop-font-size-int) - var(--afs-text-p3-m-mobile-font-size-int))),var(--afs-text-p3-m-desktop-font-size-int)*1px)}}@media (width>=1920px){.afb-side-by-side__tagline .afc-title{font-size:calc(var(--afs-text-p3-m-desktop-font-size-int)*1px)}}@media (width<1024px){.afb-side-by-side__tagline .afc-title{max-width:100%}}.afb-side-by-side__tagline .afc-title{line-height:var(--afs-text-p3-m-mobile-line-height)}@media (width>=1024px){.afb-side-by-side__tagline .afc-title{line-height:clamp(var(--afs-text-p3-m-mobile-line-height),calc(var(--afs-text-p3-m-mobile-line-height) + (100vw - 1024px)\/(1920 - 1024)*(var(--afs-text-p3-m-desktop-line-height) - var(--afs-text-p3-m-mobile-line-height))),var(--afs-text-p3-m-desktop-line-height))}}@media (width>=1920px){.afb-side-by-side__tagline .afc-title{line-height:var(--afs-text-p3-m-desktop-line-height)}}@media (width<1024px){.afb-side-by-side__tagline .afc-title{max-width:100%}}.afb-side-by-side__tagline .afc-title{--afs-side-by-side-tagline-margin-bottom-not-last:calc(12*1px)}@media (width>=1024px){.afb-side-by-side__tagline .afc-title{--afs-side-by-side-tagline-margin-bottom-not-last:clamp(12*1px,calc(calc(12*1px) + (100vw - 1024px)\/(1920 - 1024)*(16 - 12)),16*1px)}}@media (width>=1920px){.afb-side-by-side__tagline .afc-title{--afs-side-by-side-tagline-margin-bottom-not-last:calc(16*1px)}}@media (width<1024px){.afb-side-by-side__tagline .afc-title{max-width:100%}}.afb-side-by-side__tagline .afc-title{--afs-tagline-side-by-side-border-width:0;--afs-tagline-side-by-side-padding-inline:0}.afb-side-by-side__tagline:before{content:\"\";background:url(\"data:image\/svg+xml,%3Csvg width='16' height='18' viewBox='0 0 16 18' fill='none' xmlns='http:\/\/www.w3.org\/2000\/svg'%3E%3Cpath d='M7.67871 18H7.67578C7.67596 17.9818 7.67766 17.9636 7.67773 17.9453C7.67781 17.9636 7.67853 17.9818 7.67871 18ZM7.67773 0.136719C7.69674 4.64087 11.0225 8.36279 15.3535 9.00195C11.0226 9.64098 7.69702 13.3642 7.67773 17.8682C7.65844 13.3638 4.33148 9.64048 0 9.00195C4.33162 8.36332 7.65878 4.64136 7.67773 0.136719ZM7.67676 0.0585938C7.67667 0.0390816 7.67501 0.0194827 7.6748 0H7.67773C7.67753 0.0194819 7.67684 0.0390824 7.67676 0.0585938Z' fill='%23FF0083'\/%3E%3C\/svg%3E\") 50% no-repeat;width:15px;height:18px;display:block}@media (width>=1024px){.afb-side-by-side__headings .afc-title{font-family:var(--afs-title-h2-desktop-font-family);font-size:var(--afs-title-h2-desktop-font-size);font-style:var(--afs-title-h2-desktop-font-style);font-weight:var(--afs-title-h2-desktop-font-weight);letter-spacing:var(--afs-title-h2-desktop-letter-spacing);line-height:var(--afs-title-h2-desktop-line-height)}}@media (width<1024px){.afb-side-by-side__headings .afc-title{font-family:var(--afs-title-h2-mobile-font-family);font-size:var(--afs-title-h2-mobile-font-size);font-style:var(--afs-title-h2-mobile-font-style);font-weight:var(--afs-title-h2-mobile-font-weight);letter-spacing:var(--afs-title-h2-mobile-letter-spacing);line-height:var(--afs-title-h2-mobile-line-height)}}.afb-side-by-side__headings .afc-title{font-size:calc(var(--afs-title-h2-mobile-font-size-int)*1px)}@media (width>=1024px){.afb-side-by-side__headings .afc-title{font-size:clamp(var(--afs-title-h2-mobile-font-size-int)*1px,calc(calc(var(--afs-title-h2-mobile-font-size-int)*1px) + (100vw - 1024px)\/(1920 - 1024)*(var(--afs-title-h2-desktop-font-size-int) - var(--afs-title-h2-mobile-font-size-int))),var(--afs-title-h2-desktop-font-size-int)*1px)}}@media (width>=1920px){.afb-side-by-side__headings .afc-title{font-size:calc(var(--afs-title-h2-desktop-font-size-int)*1px)}}@media (width<1024px){.afb-side-by-side__headings .afc-title{max-width:100%}}.afb-side-by-side__headings .afc-title{line-height:var(--afs-title-h2-mobile-line-height)}@media (width>=1024px){.afb-side-by-side__headings .afc-title{line-height:clamp(var(--afs-title-h2-mobile-line-height),calc(var(--afs-title-h2-mobile-line-height) + (100vw - 1024px)\/(1920 - 1024)*(var(--afs-title-h2-desktop-line-height) - var(--afs-title-h2-mobile-line-height))),var(--afs-title-h2-desktop-line-height))}}@media (width>=1920px){.afb-side-by-side__headings .afc-title{line-height:var(--afs-title-h2-desktop-line-height)}}@media (width<1024px){.afb-side-by-side__headings .afc-title{max-width:100%}}.afb-side-by-side__headings .afc-title{margin-bottom:12px}@media (width>=1024px){.afb-side-by-side__headings .afc-title{margin-bottom:clamp(12px,.446429vw + 7.42857px,16px)}}@media (width>=1920px){.afb-side-by-side__headings .afc-title{margin-bottom:16px}}@media (width<1024px){.afb-side-by-side__headings .afc-title{max-width:100%}}.afb-side-by-side__headings .afc-title{--afs-side-by-side-headings-font-weight:400}.afb-side-by-side__headings .afc-title strong{color:var(--afu-color-primary-3);font-weight:400}.afb-side-by-side__texts{--afs-side-by-side-texts-margin-bottom-desktop:0}@media (width>=1024px){.afb-side-by-side__texts .afc-text{font-family:var(--afs-text-p3-r-desktop-font-family);font-size:var(--afs-text-p3-r-desktop-font-size);font-style:var(--afs-text-p3-r-desktop-font-style);font-weight:var(--afs-text-p3-r-desktop-font-weight);letter-spacing:var(--afs-text-p3-r-desktop-letter-spacing);line-height:var(--afs-text-p3-r-desktop-line-height)}}@media (width<1024px){.afb-side-by-side__texts .afc-text{font-family:var(--afs-text-p3-r-mobile-font-family);font-size:var(--afs-text-p3-r-mobile-font-size);font-style:var(--afs-text-p3-r-mobile-font-style);font-weight:var(--afs-text-p3-r-mobile-font-weight);letter-spacing:var(--afs-text-p3-r-mobile-letter-spacing);line-height:var(--afs-text-p3-r-mobile-line-height)}}.afb-side-by-side__texts .afc-text{font-size:calc(var(--afs-text-p3-r-mobile-font-size-int)*1px)}@media (width>=1024px){.afb-side-by-side__texts .afc-text{font-size:clamp(var(--afs-text-p3-r-mobile-font-size-int)*1px,calc(calc(var(--afs-text-p3-r-mobile-font-size-int)*1px) + (100vw - 1024px)\/(1920 - 1024)*(var(--afs-text-p3-r-desktop-font-size-int) - var(--afs-text-p3-r-mobile-font-size-int))),var(--afs-text-p3-r-desktop-font-size-int)*1px)}}@media (width>=1920px){.afb-side-by-side__texts .afc-text{font-size:calc(var(--afs-text-p3-r-desktop-font-size-int)*1px)}}@media (width<1024px){.afb-side-by-side__texts .afc-text{max-width:100%}}.afb-side-by-side__texts .afc-text{line-height:var(--afs-text-p3-r-mobile-line-height)}@media (width>=1024px){.afb-side-by-side__texts .afc-text{line-height:clamp(var(--afs-text-p3-r-mobile-line-height),calc(var(--afs-text-p3-r-mobile-line-height) + (100vw - 1024px)\/(1920 - 1024)*(var(--afs-text-p3-r-desktop-line-height) - var(--afs-text-p3-r-mobile-line-height))),var(--afs-text-p3-r-desktop-line-height))}}@media (width>=1920px){.afb-side-by-side__texts .afc-text{line-height:var(--afs-text-p3-r-desktop-line-height)}}@media (width<1024px){.afb-side-by-side__texts .afc-text{max-width:100%}}.afb-side-by-side__texts .afc-text{margin-bottom:30px}@media (width>=1024px){.afb-side-by-side__texts .afc-text{margin-bottom:clamp(30px,3.34821vw - 4.28572px,60px)}}@media (width>=1920px){.afb-side-by-side__texts .afc-text{margin-bottom:60px}}@media (width<1024px){.afb-side-by-side__texts .afc-text{max-width:100%}}.afb-side-by-side--style-vertical-buttons .afb-side-by-side__buttons{--afs-side-by-side-buttons-gap:14px;flex-direction:column;align-items:flex-start}.afb-side-by-side.afb-side-by-side--style-media-kit{--afs-side-by-side-inner-align-items-desktop:stretch;--afs-side-by-side-buttons-margin-top-desktop:30px;--afs-side-by-side-headings-margin-bottom-desktop:20px;--afs-side-by-side-tagline-margin-bottom-not-last-mobile:12px;--afs-side-by-side-headings-margin-bottom-mobile:16px;--afs-side-by-side-buttons-margin-top-mobile:26px;--afs-side-by-side-columns-gap-y-mobile:30px}@media (width>=1024px){.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__inner{gap:40px;justify-items:space-between;grid-template-columns:minmax(0,450px) minmax(0,585px)}.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__aside{margin-top:calc(-1*var(--afs-section-padding-top));margin-inline-end:calc(-1*var(--afs-section-padding-top));margin-bottom:calc(-1*var(--afs-section-padding-top))}}@media (width<1024px){.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__aside{margin-inline:-20px}}.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__aside picture,.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__aside img{object-fit:cover;width:100%;height:100%}.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__tagline .afc-title{padding:0}.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__tagline .afc-title:not(:last-child){margin-bottom:2px}@media (width>=1024px){.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__tagline .afc-title:not(:last-child){margin-bottom:clamp(2px,1.5625vw - 14px,16px)}}@media (width>=1920px){.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__tagline .afc-title:not(:last-child){margin-bottom:16px}}@media (width<1024px){.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__tagline .afc-title:not(:last-child){max-width:100%}}.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__tagline .afc-title.afc-title--style-default,.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__tagline .afc-title.afu-title-style--default{font-family:var(--afs-font-family-primary);letter-spacing:.09em;text-transform:uppercase;font-size:14px;font-weight:300;line-height:1.5}.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__tagline .afc-title.afu-color--text-default{color:var(--afu-color-primary-1)}.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__headings .afc-title{margin-bottom:0}@media (width>=1024px){.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__headings .afc-title.afc-title--style-default,.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__headings .afc-title.afu-title-style--default{font-family:var(--afs-title-h1-r-desktop-font-family);font-size:var(--afs-title-h1-r-desktop-font-size);font-style:var(--afs-title-h1-r-desktop-font-style);font-weight:var(--afs-title-h1-r-desktop-font-weight);letter-spacing:var(--afs-title-h1-r-desktop-letter-spacing);line-height:var(--afs-title-h1-r-desktop-line-height)}}@media (width<1024px){.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__headings .afc-title.afc-title--style-default,.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__headings .afc-title.afu-title-style--default{font-family:var(--afs-title-h1-r-mobile-font-family);font-size:var(--afs-title-h1-r-mobile-font-size);font-style:var(--afs-title-h1-r-mobile-font-style);font-weight:var(--afs-title-h1-r-mobile-font-weight);letter-spacing:var(--afs-title-h1-r-mobile-letter-spacing);line-height:var(--afs-title-h1-r-mobile-line-height)}}.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__texts .afc-text{margin-bottom:0}@media (width>=1024px){.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__texts .afc-text.afc-text--style-default,.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__texts .afc-text.afu-text-style--default{font-family:var(--afs-text-p4-r-desktop-font-family);font-size:var(--afs-text-p4-r-desktop-font-size);font-style:var(--afs-text-p4-r-desktop-font-style);font-weight:var(--afs-text-p4-r-desktop-font-weight);letter-spacing:var(--afs-text-p4-r-desktop-letter-spacing);line-height:var(--afs-text-p4-r-desktop-line-height)}}@media (width<1024px){.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__texts .afc-text.afc-text--style-default,.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__texts .afc-text.afu-text-style--default{font-family:var(--afs-text-p4-r-mobile-font-family);font-size:var(--afs-text-p4-r-mobile-font-size);font-style:var(--afs-text-p4-r-mobile-font-style);font-weight:var(--afs-text-p4-r-mobile-font-weight);letter-spacing:var(--afs-text-p4-r-mobile-letter-spacing);line-height:var(--afs-text-p4-r-mobile-line-height)}}.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__texts .afc-text.afc-text--style-default,.afb-side-by-side.afb-side-by-side--style-media-kit .afb-side-by-side__texts .afc-text.afu-text-style--default{color:var(--afu-color-text-b-paragraph)}@media (width<1024px){.afb-side-by-side.afb-side-by-side--style-media-kit.afb-side-by-side--tablet-and-mobile-media-position-bottom{--afs-section-padding-bottom-mobile:0!important}}.afb-side-by-side.afb-side-by-side--style-investors{--afs-section-padding-top:66px;--afs-section-padding-top-mobile:26px;--afs-section-padding-bottom:145px;--afs-section-padding-bottom-mobile:40px;--afs-side-by-side-column-left-width-desktop:minmax(0,545px);--afs-side-by-side-column-right-width-desktop:minmax(0,625px);--afs-side-by-side-columns-gap-x-desktop:30px;--afs-side-by-side-columns-gap-y-mobile:26px;--afs-side-by-side-headings-margin-bottom-desktop:20px;--afs-side-by-side-headings-margin-bottom-mobile:16px;--afs-side-by-side-buttons-margin-top-desktop:30px;--afs-side-by-side-buttons-margin-top-mobile:26px}.afb-side-by-side.afb-side-by-side--style-investors .afb-side-by-side__headings .afc-title{margin-bottom:0}@media (width>=1024px){.afb-side-by-side.afb-side-by-side--style-investors .afb-side-by-side__headings .afc-title.afc-title--style-default,.afb-side-by-side.afb-side-by-side--style-investors .afb-side-by-side__headings .afc-title.afu-title-style--default{font-family:var(--afs-title-h2-desktop-font-family);font-size:var(--afs-title-h2-desktop-font-size);font-style:var(--afs-title-h2-desktop-font-style);font-weight:var(--afs-title-h2-desktop-font-weight);letter-spacing:var(--afs-title-h2-desktop-letter-spacing);line-height:var(--afs-title-h2-desktop-line-height)}}@media (width<1024px){.afb-side-by-side.afb-side-by-side--style-investors .afb-side-by-side__headings .afc-title.afc-title--style-default,.afb-side-by-side.afb-side-by-side--style-investors .afb-side-by-side__headings .afc-title.afu-title-style--default{font-family:var(--afs-title-h2-mobile-font-family);font-size:var(--afs-title-h2-mobile-font-size);font-style:var(--afs-title-h2-mobile-font-style);font-weight:var(--afs-title-h2-mobile-font-weight);letter-spacing:var(--afs-title-h2-mobile-letter-spacing);line-height:var(--afs-title-h2-mobile-line-height)}}.afb-side-by-side.afb-side-by-side--style-investors .afb-side-by-side__texts .afc-text{margin-bottom:0}@media (width>=1024px){.afb-side-by-side.afb-side-by-side--style-investors .afb-side-by-side__texts .afc-text.afc-text--style-default,.afb-side-by-side.afb-side-by-side--style-investors .afb-side-by-side__texts .afc-text.afu-text-style--default{font-family:var(--afs-text-p3-r-desktop-font-family);font-size:var(--afs-text-p3-r-desktop-font-size);font-style:var(--afs-text-p3-r-desktop-font-style);font-weight:var(--afs-text-p3-r-desktop-font-weight);letter-spacing:var(--afs-text-p3-r-desktop-letter-spacing);line-height:var(--afs-text-p3-r-desktop-line-height)}}@media (width<1024px){.afb-side-by-side.afb-side-by-side--style-investors .afb-side-by-side__texts .afc-text.afc-text--style-default,.afb-side-by-side.afb-side-by-side--style-investors .afb-side-by-side__texts .afc-text.afu-text-style--default{font-family:var(--afs-text-p3-r-mobile-font-family);font-size:var(--afs-text-p3-r-mobile-font-size);font-style:var(--afs-text-p3-r-mobile-font-style);font-weight:var(--afs-text-p3-r-mobile-font-weight);letter-spacing:var(--afs-text-p3-r-mobile-letter-spacing);line-height:var(--afs-text-p3-r-mobile-line-height)}}.afb-side-by-side.afb-side-by-side--style-investors .afb-side-by-side__texts .afc-text.afc-text--style-default,.afb-side-by-side.afb-side-by-side--style-investors .afb-side-by-side__texts .afc-text.afu-text-style--default{--afs-text-p3-r-desktop-line-height:1.6}.afb-side-by-side.afb-side-by-side--style-investors .afb-side-by-side__texts .afc-text.afu-color--text-default{color:var(--afu-color-text-b-paragraph)}.afb-side-by-side.afb-side-by-side--style-esg{--afs-side-by-side-headings-margin-bottom-desktop:20px;--afs-side-by-side-headings-margin-bottom-mobile:16px;--afs-section-padding-top:80px;--afs-section-padding-top-mobile:40px;--afs-section-padding-bottom:40px;--afs-section-padding-bottom-mobile:40px;--afs-side-by-side-column-left-width-desktop:minmax(0,575px);--afs-side-by-side-column-right-width-desktop:minmax(0,626px);--afs-side-by-side-columns-gap-x-desktop:80px;--afs-side-by-side-columns-gap-y-mobile:30px}.afb-side-by-side.afb-side-by-side--style-esg .afb-side-by-side__headings .afc-title{margin-bottom:0}@media (width>=1024px){.afb-side-by-side.afb-side-by-side--style-esg .afb-side-by-side__headings .afc-title.afc-title--style-default,.afb-side-by-side.afb-side-by-side--style-esg .afb-side-by-side__headings .afc-title.afu-title-style--default{font-family:var(--afs-title-h2-desktop-font-family);font-size:var(--afs-title-h2-desktop-font-size);font-style:var(--afs-title-h2-desktop-font-style);font-weight:var(--afs-title-h2-desktop-font-weight);letter-spacing:var(--afs-title-h2-desktop-letter-spacing);line-height:var(--afs-title-h2-desktop-line-height)}}@media (width<1024px){.afb-side-by-side.afb-side-by-side--style-esg .afb-side-by-side__headings .afc-title.afc-title--style-default,.afb-side-by-side.afb-side-by-side--style-esg .afb-side-by-side__headings .afc-title.afu-title-style--default{font-family:var(--afs-title-h2-mobile-font-family);font-size:var(--afs-title-h2-mobile-font-size);font-style:var(--afs-title-h2-mobile-font-style);font-weight:var(--afs-title-h2-mobile-font-weight);letter-spacing:var(--afs-title-h2-mobile-letter-spacing);line-height:var(--afs-title-h2-mobile-line-height)}}.afb-side-by-side.afb-side-by-side--style-esg .afb-side-by-side__texts .afc-text{margin-bottom:0}@media (width>=1024px){.afb-side-by-side.afb-side-by-side--style-esg .afb-side-by-side__texts .afc-text.afc-text--style-default,.afb-side-by-side.afb-side-by-side--style-esg .afb-side-by-side__texts .afc-text.afu-text-style--default{font-family:var(--afs-text-p3-r-desktop-font-family);font-size:var(--afs-text-p3-r-desktop-font-size);font-style:var(--afs-text-p3-r-desktop-font-style);font-weight:var(--afs-text-p3-r-desktop-font-weight);letter-spacing:var(--afs-text-p3-r-desktop-letter-spacing);line-height:var(--afs-text-p3-r-desktop-line-height)}}@media (width<1024px){.afb-side-by-side.afb-side-by-side--style-esg .afb-side-by-side__texts .afc-text.afc-text--style-default,.afb-side-by-side.afb-side-by-side--style-esg .afb-side-by-side__texts .afc-text.afu-text-style--default{font-family:var(--afs-text-p3-r-mobile-font-family);font-size:var(--afs-text-p3-r-mobile-font-size);font-style:var(--afs-text-p3-r-mobile-font-style);font-weight:var(--afs-text-p3-r-mobile-font-weight);letter-spacing:var(--afs-text-p3-r-mobile-letter-spacing);line-height:var(--afs-text-p3-r-mobile-line-height)}}.afb-side-by-side.afb-side-by-side--style-esg .afb-side-by-side__texts .afc-text.afc-text--style-default,.afb-side-by-side.afb-side-by-side--style-esg .afb-side-by-side__texts .afc-text.afu-text-style--default{--afs-text-p3-r-desktop-line-height:1.6}.afb-side-by-side.afb-side-by-side--style-esg .afb-side-by-side__texts .afc-text.afu-color--text-default{color:var(--afu-color-text-b-paragraph)}.afb-side-by-side.afb-side-by-side--style-boxed{--afs-section-padding-top:100px;--afs-section-padding-top-mobile:50px;--afs-section-padding-bottom:0;--afs-section-padding-bottom-mobile:40px;--afs-side-by-side-headings-margin-bottom-desktop:8px;--afs-side-by-side-buttons-margin-top-desktop:16px;--afs-side-by-side-buttons-margin-top-mobile:29px}.afb-side-by-side.afb-side-by-side--style-boxed .afb-side-by-side__headings .afc-title{margin-bottom:0}.afb-side-by-side.afb-side-by-side--style-boxed .afb-side-by-side__headings .afc-title.afc-title--style-default,.afb-side-by-side.afb-side-by-side--style-boxed .afb-side-by-side__headings .afc-title.afu-title-style--default{letter-spacing:-.02em;font-size:36px;line-height:1.4}@media (width<1024px){.afb-side-by-side.afb-side-by-side--style-boxed .afb-side-by-side__headings .afc-title.afc-title--style-default,.afb-side-by-side.afb-side-by-side--style-boxed .afb-side-by-side__headings .afc-title.afu-title-style--default{font-size:24px;line-height:1.3}}.afb-side-by-side.afb-side-by-side--style-boxed .afb-side-by-side__headings .afc-title.afu-color--text-default{color:var(--afu-color-text-b-heading)}.afb-side-by-side.afb-side-by-side--style-boxed .afb-side-by-side__texts .afc-text{margin-bottom:0}@media (width>=1024px){.afb-side-by-side.afb-side-by-side--style-boxed .afb-side-by-side__texts .afc-text.afc-text--style-default,.afb-side-by-side.afb-side-by-side--style-boxed .afb-side-by-side__texts .afc-text.afu-text-style--default{font-family:var(--afs-text-p4-r-desktop-font-family);font-size:var(--afs-text-p4-r-desktop-font-size);font-style:var(--afs-text-p4-r-desktop-font-style);font-weight:var(--afs-text-p4-r-desktop-font-weight);letter-spacing:var(--afs-text-p4-r-desktop-letter-spacing);line-height:var(--afs-text-p4-r-desktop-line-height)}}@media (width<1024px){.afb-side-by-side.afb-side-by-side--style-boxed .afb-side-by-side__texts .afc-text.afc-text--style-default,.afb-side-by-side.afb-side-by-side--style-boxed .afb-side-by-side__texts .afc-text.afu-text-style--default{font-family:var(--afs-text-p4-r-mobile-font-family);font-size:var(--afs-text-p4-r-mobile-font-size);font-style:var(--afs-text-p4-r-mobile-font-style);font-weight:var(--afs-text-p4-r-mobile-font-weight);letter-spacing:var(--afs-text-p4-r-mobile-letter-spacing);line-height:var(--afs-text-p4-r-mobile-line-height)}}.afb-side-by-side.afb-side-by-side--style-boxed .afb-side-by-side__texts .afc-text.afu-color--text-default{color:var(--afu-color-text-b-heading)}.afb-side-by-side.afb-side-by-side--style-boxed .afb-side-by-side__inner{background-color:var(--afu-color-white);border-radius:20px;overflow:hidden}@media (width<1024px){.afb-side-by-side.afb-side-by-side--style-boxed .afb-side-by-side__inner{border-radius:16px;gap:0}}@media (width>=1024px){.afb-side-by-side.afb-side-by-side--style-boxed .afb-side-by-side__inner{grid-template-columns:minmax(0,657px) minmax(0,623px);gap:20px;display:grid}}.afb-side-by-side.afb-side-by-side--style-boxed .afb-side-by-side__main{padding:60px}@media (width<1024px){.afb-side-by-side.afb-side-by-side--style-boxed .afb-side-by-side__main{padding:30px 20px 20px}}.afb-side-by-side.afb-side-by-side--style-boxed .afb-side-by-side__buttons .afc-button--style-primary{--afs-button-font-size:.8125rem}@media (width<1024px){.afb-side-by-side.afb-side-by-side--style-boxed .afb-side-by-side__buttons .afc-button--style-primary{width:100%}}.afb-side-by-side.afb-side-by-side--style-boxed-dark{--afs-section-padding-top:0;--afs-section-padding-bottom:120px;--afs-section-padding-top-mobile:0;--afs-section-padding-bottom-mobile:50px;--afs-side-by-side-column-left-width-desktop:minmax(0,416px);--afs-side-by-side-column-right-width-desktop:minmax(0,704px);--afs-side-by-side-columns-gap-x-desktop:80px;--afs-side-by-side-columns-gap-y-mobile:24px;--afs-side-by-side-inner-align-items-desktop:center}.afb-side-by-side.afb-side-by-side--style-boxed-dark .afb-side-by-side__inner{background:var(--afu-color-primary-1);border-radius:20px;padding:20px 20px 20px 60px}@container side-by-side-block (width<1024px){.afb-side-by-side.afb-side-by-side--style-boxed-dark .afb-side-by-side__inner{padding:20px 20px 24px}}.afb-side-by-side.afb-side-by-side--style-boxed-dark .afb-side-by-side__headings{margin-bottom:12px}@container side-by-side-block (width<1024px){.afb-side-by-side.afb-side-by-side--style-boxed-dark .afb-side-by-side__headings{margin-bottom:8px}}.afb-side-by-side.afb-side-by-side--style-boxed-dark .afb-side-by-side__headings .afc-title{margin-bottom:0}.afb-side-by-side.afb-side-by-side--style-boxed-dark .afb-side-by-side__headings .afc-title.afc-title--style-default,.afb-side-by-side.afb-side-by-side--style-boxed-dark .afb-side-by-side__headings .afc-title.afu-title-style--default{color:var(--afu-color-text-w-heading)}.afb-side-by-side.afb-side-by-side--style-boxed-dark .afb-side-by-side__texts{margin-bottom:30px}@container side-by-side-block (width<1024px){.afb-side-by-side.afb-side-by-side--style-boxed-dark .afb-side-by-side__texts{margin-bottom:24px}}.afb-side-by-side.afb-side-by-side--style-boxed-dark .afb-side-by-side__texts .afc-text{margin-bottom:0}.afb-side-by-side.afb-side-by-side--style-boxed-dark .afb-side-by-side__texts .afc-text.afu-color--text-default{color:var(--afu-color-text-w-paragraph)}.afb-side-by-side.afb-side-by-side--style-boxed-dark .afb-side-by-side__aside{border-radius:20px;overflow:hidden}@container side-by-side-block (width<1024px){.afb-side-by-side.afb-side-by-side--style-boxed-dark .afb-side-by-side__aside{border-radius:10px}}.afb-side-by-side.afb-side-by-side--style-boxed-dark .afb-side-by-side__buttons .afc-button--style-default{--afs-button-border-width:0px;--afs-button-border-style:solid;--afs-button-border-color:transparent;--afs-button-border-radius:8px;--afs-button-padding-y:10px;--afs-button-padding-x:25px;--afs-button-shadow-x:0;--afs-button-shadow-y:1px;--afs-button-shadow-blur:2px;--afs-button-shadow-spread:0;--afs-button-shadow-color:#1018280d}@media (width<1024px){.afb-side-by-side.afb-side-by-side--style-boxed-dark .afb-side-by-side__buttons .afc-button--style-default{--afs-button-font-size:13px}}.afb-side-by-side.afb-side-by-side--style-boxed-dark .afb-side-by-side__buttons .afc-button--style-default{--afs-button-border-width:1px;--afs-button-border-color:var(--afu-color-stroke);--afs-button-border-color-hover:#d0d5dd;--afs-button-background:var(--afu-color-primary-2);--afs-button-background-hover:var(--afu-color-primary-2);--afs-button-text-color:var(--afu-color-primary-1);--afs-button-text-color-hover:var(--afu-color-primary-1)}@container side-by-side-block (width<1024px){.afb-side-by-side.afb-side-by-side--style-boxed-dark .afb-side-by-side__buttons .afc-button{width:100%}}.afb-side-by-side.afb-side-by-side--style-investors-tool{--afs-section-padding-top:65px;--afs-section-padding-top-mobile:25px;--afs-section-padding-bottom:145px;--afs-section-padding-bottom-mobile:40px;--afs-side-by-side-column-left-width-desktop:minmax(0,545px);--afs-side-by-side-column-right-width-desktop:minmax(0,625px);--afs-side-by-side-columns-gap-x-desktop:110px;--afs-side-by-side-columns-gap-y-mobile:25px;--afs-side-by-side-headings-margin-bottom-desktop:20px;--afs-side-by-side-headings-margin-bottom-mobile:16px;--afs-side-by-side-buttons-margin-top-desktop:30px;--afs-side-by-side-buttons-margin-top-mobile:25px}.afb-side-by-side.afb-side-by-side--style-investors-tool:has(>.afc-background>.afc-background__item--default)>.afc-background>.afc-background__item--default{background:var(--afu-color-secondary-1)}.afb-side-by-side.afb-side-by-side--style-investors-tool .afb-side-by-side__headings .afc-title{margin-bottom:0}@media (width>=1024px){.afb-side-by-side.afb-side-by-side--style-investors-tool .afb-side-by-side__headings .afc-title.afc-title--style-default,.afb-side-by-side.afb-side-by-side--style-investors-tool .afb-side-by-side__headings .afc-title.afu-title-style--default{font-family:var(--afs-title-h2-desktop-font-family);font-size:var(--afs-title-h2-desktop-font-size);font-style:var(--afs-title-h2-desktop-font-style);font-weight:var(--afs-title-h2-desktop-font-weight);letter-spacing:var(--afs-title-h2-desktop-letter-spacing);line-height:var(--afs-title-h2-desktop-line-height)}}@media (width<1024px){.afb-side-by-side.afb-side-by-side--style-investors-tool .afb-side-by-side__headings .afc-title.afc-title--style-default,.afb-side-by-side.afb-side-by-side--style-investors-tool .afb-side-by-side__headings .afc-title.afu-title-style--default{font-family:var(--afs-title-h2-mobile-font-family);font-size:var(--afs-title-h2-mobile-font-size);font-style:var(--afs-title-h2-mobile-font-style);font-weight:var(--afs-title-h2-mobile-font-weight);letter-spacing:var(--afs-title-h2-mobile-letter-spacing);line-height:var(--afs-title-h2-mobile-line-height)}}.afb-side-by-side.afb-side-by-side--style-investors-tool .afb-side-by-side__texts .afc-text{margin-bottom:0}@media (width>=1024px){.afb-side-by-side.afb-side-by-side--style-investors-tool .afb-side-by-side__texts .afc-text.afc-text--style-default,.afb-side-by-side.afb-side-by-side--style-investors-tool .afb-side-by-side__texts .afc-text.afu-text-style--default{font-family:var(--afs-text-p3-r-desktop-font-family);font-size:var(--afs-text-p3-r-desktop-font-size);font-style:var(--afs-text-p3-r-desktop-font-style);font-weight:var(--afs-text-p3-r-desktop-font-weight);letter-spacing:var(--afs-text-p3-r-desktop-letter-spacing);line-height:var(--afs-text-p3-r-desktop-line-height)}}@media (width<1024px){.afb-side-by-side.afb-side-by-side--style-investors-tool .afb-side-by-side__texts .afc-text.afc-text--style-default,.afb-side-by-side.afb-side-by-side--style-investors-tool .afb-side-by-side__texts .afc-text.afu-text-style--default{font-family:var(--afs-text-p3-r-mobile-font-family);font-size:var(--afs-text-p3-r-mobile-font-size);font-style:var(--afs-text-p3-r-mobile-font-style);font-weight:var(--afs-text-p3-r-mobile-font-weight);letter-spacing:var(--afs-text-p3-r-mobile-letter-spacing);line-height:var(--afs-text-p3-r-mobile-line-height)}}.afb-side-by-side.afb-side-by-side--style-investors-tool .afb-side-by-side__texts .afc-text.afc-text--style-default,.afb-side-by-side.afb-side-by-side--style-investors-tool .afb-side-by-side__texts .afc-text.afu-text-style--default{--afs-text-p3-r-desktop-line-height:1.6}.afb-side-by-side.afb-side-by-side--style-investors-tool .afb-side-by-side__texts .afc-text.afu-color--text-default{color:var(--afu-color-text-b-paragraph)}.afb-side-by-side.afb-side-by-side--style-investors-tool .afb-side-by-side__aside picture,.afb-side-by-side.afb-side-by-side--style-investors-tool .afb-side-by-side__aside img{border-radius:20px}@media (width<1024px){.afb-side-by-side.afb-side-by-side--style-investors-tool .afb-side-by-side__buttons .afc-button{width:100%}}<\/style>\n<style id=\"airfleet-elements-text-and-media-elements-partials-side-by-side-default-entry-styles\" type=\"text\/css\">.afb-side-by-side{--afs-side-by-side-column-left-width-desktop:minmax(0,500px);--afs-side-by-side-column-right-width-desktop:minmax(0,570px);--afs-side-by-side-columns-gap-x-desktop:100px;--afs-side-by-side-columns-gap-y-desktop:100px;--afs-side-by-side-columns-gap-x-mobile:40px;--afs-side-by-side-columns-gap-y-mobile:40px;container:side-by-side-block\/inline-size}.afb-side-by-side>.afc-background{padding-block:var(--afs-section-padding-top,100px)var(--afs-section-padding-bottom,100px)}@container side-by-side-block (width<1024px){.afb-side-by-side>.afc-background{padding-block:var(--afs-section-padding-top-mobile,40px)var(--afs-section-padding-bottom-mobile,40px)}}.afb-side-by-side__container{container:side-by-side-container\/inline-size}.afb-side-by-side__inner{display:var(--afs-side-by-side-inner-display,grid);align-items:var(--afs-side-by-side-inner-align-items-desktop,center);gap:var(--afs-side-by-side-columns-gap-y-desktop)var(--afs-side-by-side-columns-gap-x-desktop)}@container side-by-side-block (width<1024px){.afb-side-by-side__inner{align-items:var(--afs-side-by-side-inner-align-items-mobile,var(--afs-side-by-side-inner-align-items-desktop,center));gap:var(--afs-side-by-side-columns-gap-y-mobile)var(--afs-side-by-side-columns-gap-x-mobile)}}@container side-by-side-block (width>=1024px){.afb-side-by-side__inner{justify-content:var(--afs-side-by-side-inner-justify-content-desktop,space-between);grid-template-columns:var(--afs-side-by-side-column-left-width-desktop)var(--afs-side-by-side-column-right-width-desktop)}}.afb-side-by-side__tagline,.afb-side-by-side__headings,.afb-side-by-side__texts,.afb-side-by-side__buttons{display:var(--afs-side-by-side-elements-display-desktop,flex)}.afb-side-by-side__tagline,.afb-side-by-side__headings,.afb-side-by-side__texts{flex-direction:var(--afs-side-by-side-elements-flex-direction-desktop,column);align-items:var(--afs-side-by-side-elements-align-items-desktop,flex-start)}.afb-side-by-side__headings{gap:var(--afs-side-by-side-headings-vertical-gap,10px)}.afb-side-by-side__headings:not(:last-of-type){margin-bottom:var(--afs-side-by-side-headings-margin-bottom-desktop,20px)}@container side-by-side-block (width<1024px){.afb-side-by-side__headings:not(:last-of-type){margin-bottom:var(--afs-side-by-side-headings-margin-bottom-mobile,var(--afs-side-by-side-headings-margin-bottom-desktop,10px))}}.afb-side-by-side__headings .afu-title-style--default{--afs-title-color:var(--afs-side-by-side-headings-color,#181d27);--afs-title-font-size:var(--afs-side-by-side-headings-font-size,2.625rem);--afs-title-line-height:var(--afs-side-by-side-headings-line-height,1.33);--afs-title-font-weight:var(--afs-side-by-side-headings-font-weight,500);--afs-title-letter-spacing:var(--afs-side-by-side-headings-letter-spacing,-.02em)}@container side-by-side-block (width<1024px){.afb-side-by-side__headings .afu-title-style--default{--afs-title-color:var(--afs-side-by-side-headings-color-mobile,var(--afs-side-by-side-headings-color,#181d27));--afs-title-font-size:var(--afs-side-by-side-headings-font-size-mobile,var(--afs-side-by-side-headings-font-size,2.625rem));--afs-title-line-height:var(--afs-side-by-side-headings-line-height-mobile,var(--afs-side-by-side-headings-line-height,1.33));--afs-title-font-weight:var(--afs-side-by-side-headings-font-weight-mobile,var(--afs-side-by-side-headings-font-weight,500));--afs-title-letter-spacing:var(--afs-side-by-side-headings-letter-spacing-mobile,var(--afs-side-by-side-headings-letter-spacing,-.02em))}}.afb-side-by-side__tagline{display:var(--afs-side-by-side-tagline-display,flex);flex-direction:var(--afs-side-by-side-tagline-flex-direction,column);gap:var(--afs-side-by-side-tagline-gap,10px);align-items:var(--afs-side-by-side-tagline-align-items,flex-start);justify-content:var(--afs-side-by-side-tagline-justify-content,flex-start);padding-inline:var(--afs-side-by-side-tagline-padding-inline);padding-block:var(--afs-side-by-side-tagline-padding-block);margin-block:var(--afs-side-by-side-tagline-margin-block);margin-inline:var(--afs-side-by-side-tagline-margin-inline)}@media (width<1024px){.afb-side-by-side__tagline{gap:var(--afs-side-by-side-tagline-gap-mobile,var(--afs-side-by-side-tagline-gap,10px));flex-direction:var(--afs-side-by-side-tagline-flex-direction-mobile,var(--afs-side-by-side-tagline-flex-direction,column))}}.afb-side-by-side__tagline:not(:last-of-type){margin-bottom:var(--afs-side-by-side-tagline-margin-bottom-not-last,20px)}@media (width<1024px){.afb-side-by-side__tagline:not(:last-of-type){margin-bottom:var(--afs-side-by-side-tagline-margin-bottom-not-last-mobile,var(--afs-side-by-side-tagline-margin-bottom-not-last,10px))}}.afb-side-by-side__tagline:not(:first-of-type){margin-top:var(--afs-side-by-side-tagline-margin-top-not-first)}@media (width<1024px){.afb-side-by-side__tagline:not(:first-of-type){margin-top:var(--afs-side-by-side-tagline-margin-top-not-first-mobile,var(--afs-side-by-side-tagline-margin-top-not-first))}}.afb-side-by-side__tagline .afu-title-style--default{--afs-title-font-family:var(--afs-tagline-side-by-side-font-family,inherit);--afs-title-font-size:var(--afs-tagline-side-by-side-font-size,.875rem);--afs-title-font-weight:var(--afs-tagline-side-by-side-font-weight,500);--afs-title-line-height:var(--afs-tagline-side-by-side-line-height,1.428);--afs-title-letter-spacing:var(--afs-tagline-side-by-side-letter-spacing,normal);--afs-title-color:var(--afs-tagline-side-by-side-color);--afs-title-text-transform:var(--afs-tagline-side-by-side-text-transform,none);--afs-title-text-align:var(--afs-tagline-side-by-side-text-align,start);--afs-title-text-decoration:var(--afs-tagline-side-by-side-text-decoration);--afs-title-text-shadow:var(--afs-tagline-side-by-side-text-shadow);--afs-title-text-overflow:var(--afs-tagline-side-by-side-text-overflow);display:var(--afs-tagline-side-by-side-display,inline-block);border-radius:var(--afs-tagline-side-by-side-border-radius,100px);border-style:var(--afs-tagline-side-by-side-border-style,solid);border-color:var(--afs-tagline-side-by-side-border-color,#f0f0f0);border-width:var(--afs-tagline-side-by-side-border-width,4px);padding-inline:var(--afs-tagline-side-by-side-padding-inline,14px);padding-block:var(--afs-tagline-side-by-side-padding-block,6px);margin-inline:var(--afs-tagline-side-by-side-margin-inline);margin-block:var(--afs-tagline-side-by-side-margin-block)}.afb-side-by-side__texts{gap:var(--afs-side-by-side-texts-vertical-gap,10px)}.afb-side-by-side__texts:not(:last-of-type){margin-bottom:var(--afs-side-by-side-texts-margin-bottom-desktop,40px)}@container side-by-side-block (width<1024px){.afb-side-by-side__texts:not(:last-of-type){margin-bottom:var(--afs-side-by-side-texts-margin-bottom-mobile,var(--afs-side-by-side-texts-margin-bottom-desktop,30px))}}.afb-side-by-side__texts .afu-text-style--default{--afs-text-color:var(--afs-side-by-side-texts-color,#535862);--afs-text-font-size:var(--afs-side-by-side-texts-font-size,1.125rem);--afs-text-line-height:var(--afs-side-by-side-texts-line-height,1.55);--afs-text-font-weight:var(--afs-side-by-side-texts-font-weight,400);--afs-text-letter-spacing:var(--afs-side-by-side-texts-letter-spacing,-.01em)}@container side-by-side-block (width<1024px){.afb-side-by-side__texts .afu-text-style--default{--afs-text-color:var(--afs-side-by-side-texts-color-mobile,var(--afs-side-by-side-texts-color,#535862));--afs-text-font-size:var(--afs-side-by-side-texts-font-size-mobile,var(--afs-side-by-side-texts-font-size,1rem));--afs-text-line-height:var(--afs-side-by-side-texts-line-height-mobile,var(--afs-side-by-side-texts-line-height,1.75));--afs-text-font-weight:var(--afs-side-by-side-texts-font-weight-mobile,var(--afs-side-by-side-texts-font-weight,400));--afs-text-letter-spacing:var(--afs-side-by-side-texts-letter-spacing-mobile,var(--afs-side-by-side-texts-letter-spacing,-.01em))}}.afb-side-by-side__buttons{gap:var(--afs-side-by-side-buttons-gap,20px);flex-wrap:var(--afs-side-by-side-buttons-flex-wrap-desktop,wrap);align-items:var(--afs-side-by-side-buttons-align-items-desktop,center);width:var(--afs-side-by-side-buttons-width-desktop,100%)}.afb-side-by-side__buttons:not(:first-of-type){margin-top:var(--afs-side-by-side-buttons-margin-top-desktop,40px)}@container side-by-side-block (width<1024px){.afb-side-by-side__buttons:not(:first-of-type){margin-top:var(--afs-side-by-side-buttons-margin-top-mobile,var(--afs-side-by-side-buttons-margin-top-desktop,30px))}}.afb-side-by-side__aside .afc-picture,.afb-side-by-side__aside .afc-image{display:var(--afs-side-by-side-aside-picture-image-display-desktop,block);width:var(--afs-side-by-side-aside-picture-image-width-desktop,100%)}@container side-by-side-block (width<1024px){.afb-side-by-side--tablet-and-mobile-media-position-top .afb-side-by-side__aside{order:var(--afs-side-by-side-aside-order-mobile,-1)}}.afb-side-by-side--desktop-media-position-left{--afs-side-by-side-column-left-width-desktop:minmax(0,570px);--afs-side-by-side-column-right-width-desktop:minmax(0,500px)}@container side-by-side-block (width>=1024px){.afb-side-by-side--desktop-media-position-left .afb-side-by-side__aside{order:var(--afs-side-by-side-aside-order-desktop,-1)}}<\/style>\n<style id=\"airfleet-elements-text-elements-partials-text-default-entry-styles\" type=\"text\/css\">:where(.afc-text)>:not(:last-child,hr){margin-bottom:var(--afs-text-vertical-space,16px)}.afc-text blockquote{font-family:var(--afs-text-blockquote-font-family,inherit);margin:var(--afs-text-blockquote-margin-y,10px)var(--afs-text-blockquote-margin-x,0);padding:var(--afs-text-blockquote-padding-y,1em)var(--afs-text-blockquote-padding-x,1em);background:var(--afs-text-blockquote-background,transparent);border-radius:var(--afs-text-blockquote-border-radius,0);font-size:var(--afs-text-blockquote-font-size,2.4em);font-weight:var(--afs-text-blockquote-font-weight,600);letter-spacing:var(--afs-text-blockquote-letter-spacing,normal);border-inline-start:var(--afs-text-blockquote-border-width,8px)solid var(--afs-text-blockquote-border-color,transparent);font-style:var(--afs-text-blockquote-font-style,italic);gap:var(--afs-text-blockquote-vertical-gap,10px);flex-direction:column;display:inline-flex}.afc-text :where(a:not([class])){transition-property:var(--afs-text-link-transition-property,color);transition-duration:var(--afs-text-link-transition-duration,.25s);transition-timing-function:var(--afs-text-link-transition-timing-function,ease-in-out);color:var(--afs-text-link-color,currentcolor);text-decoration:var(--afs-text-link-decoration,underline)}.afc-text :where(a:not([class])):hover{color:var(--afs-text-link-color-hover,currentColor);text-decoration:var(--afs-text-link-decoration-hover,none)}<\/style>\n<style id=\"airfleet-elements-buttons-elements-partials-button-default-entry-styles\" type=\"text\/css\">.afc-button{all:unset;text-align:center;box-sizing:border-box;justify-content:center;align-items:center;display:inline-flex}.afc-button:not(:disabled,.disabled){cursor:pointer}.afc-button{--afs-button-padding-y-absolute:calc(var(--afs-button-padding-y) - var(--afs-button-border-width));--afs-button-padding-x-absolute:calc(var(--afs-button-padding-x) - var(--afs-button-border-width));font-family:var(--afs-button-font-family);font-size:var(--afs-button-font-size);font-weight:var(--afs-button-font-weight);font-style:var(--afs-button-font-style,normal);line-height:var(--afs-button-line-height);letter-spacing:var(--afs-button-letter-spacing);border:var(--afs-button-border-width)var(--afs-button-border-style,solid)var(--afs-button-border-color);border-radius:var(--afs-button-border-radius);background:var(--afs-button-background);color:var(--afs-button-text-color);padding:var(--afs-button-padding-y-absolute)var(--afs-button-padding-x-absolute);box-shadow:var(--afs-button-shadow-x)var(--afs-button-shadow-y)var(--afs-button-shadow-blur)var(--afs-button-shadow-spread)var(--afs-button-shadow-color);text-transform:var(--afs-button-text-transform);text-decoration:var(--afs-button-text-decoration);text-align:var(--afs-button-text-align,center);justify-content:var(--afs-button-justify-content,center);align-items:var(--afs-button-align-items,center);gap:var(--afs-button-gap-y,0)var(--afs-button-gap-x,0);flex-flow:var(--afs-button-flex-direction,row)var(--afs-button-flex-wrap,nowrap)}.afc-button:focus,.afc-button:hover,.afc-button:active{background:var(--afs-button-background-hover);color:var(--afs-button-text-color-hover);box-shadow:var(--afs-button-shadow-x-hover,var(--afs-button-shadow-x))var(--afs-button-shadow-y-hover,var(--afs-button-shadow-y))var(--afs-button-shadow-blur-hover,var(--afs-button-shadow-blur))var(--afs-button-shadow-spread-hover,var(--afs-button-shadow-spread))var(--afs-button-shadow-color-hover,var(--afs-button-shadow-color));border:var(--afs-button-border-width-hover,var(--afs-button-border-width))var(--afs-button-border-style-hover,var(--afs-button-border-style))var(--afs-button-border-color-hover,var(--afs-button-border-color))}.afc-button .afc-button__icon{flex:var(--afs-button-icon-flex-grow,0)var(--afs-button-icon-flex-shrink,0)var(--afs-button-icon-flex-basis,auto);width:var(--afs-button-icon-width,var(--afs-button-icon-flex-basis,auto));height:var(--afs-button-icon-height,auto);color:var(--afs-button-icon-color)}.afc-button--style-primary{--afs-button-font-family:var(--afs-button-primary-font-family);--afs-button-font-size:var(--afs-button-primary-font-size);--afs-button-font-weight:var(--afs-button-primary-font-weight);--afs-button-font-style:var(--afs-button-primary-font-style);--afs-button-line-height:var(--afs-button-primary-line-height);--afs-button-letter-spacing:var(--afs-button-primary-letter-spacing);--afs-button-border-width:var(--afs-button-primary-border-width);--afs-button-border-style:var(--afs-button-primary-border-style,solid);--afs-button-border-color:var(--afs-button-primary-border-color);--afs-button-border-radius:var(--afs-button-primary-border-radius);--afs-button-background:var(--afs-button-primary-background);--afs-button-text-color:var(--afs-button-primary-text-color);--afs-button-padding-y:var(--afs-button-primary-padding-y);--afs-button-padding-x:var(--afs-button-primary-padding-x);--afs-button-shadow-x:var(--afs-button-primary-shadow-x);--afs-button-shadow-y:var(--afs-button-primary-shadow-y);--afs-button-shadow-blur:var(--afs-button-primary-shadow-blur);--afs-button-shadow-spread:var(--afs-button-primary-shadow-spread);--afs-button-shadow-color:var(--afs-button-primary-shadow-color);--afs-button-background-hover:var(--afs-button-primary-background-hover);--afs-button-text-color-hover:var(--afs-button-primary-text-color-hover);--afs-button-shadow-x-hover:var(--afs-button-primary-shadow-x-hover,var(--afs-button-primary-shadow-x));--afs-button-shadow-y-hover:var(--afs-button-primary-shadow-y-hover,var(--afs-button-primary-shadow-y));--afs-button-shadow-blur-hover:var(--afs-button-primary-shadow-blur-hover,var(--afs-button-primary-shadow-blur));--afs-button-shadow-spread-hover:var(--afs-button-primary-shadow-spread-hover,var(--afs-button-primary-shadow-spread));--afs-button-shadow-color-hover:var(--afs-button-primary-shadow-color-hover,var(--afs-button-primary-shadow-color));--afs-button-border-hover:var(--afs-button-primary-border-hover);--afs-button-border-width-hover:var(--afs-button-primary-border-width-hover,var(--afs-button-primary-border-width));--afs-button-border-style-hover:var(--afs-button-primary-border-style-hover,var(--afs-button-primary-border-style));--afs-button-border-color-hover:var(--afs-button-primary-border-color-hover,var(--afs-button-primary-border-color))}.afc-button--style-primary-dark{--afs-button-font-family:var(--afs-button-primary-dark-font-family);--afs-button-font-size:var(--afs-button-primary-dark-font-size);--afs-button-font-weight:var(--afs-button-primary-dark-font-weight);--afs-button-font-style:var(--afs-button-primary-dark-font-style);--afs-button-line-height:var(--afs-button-primary-dark-line-height);--afs-button-letter-spacing:var(--afs-button-primary-dark-letter-spacing);--afs-button-border-width:var(--afs-button-primary-dark-border-width);--afs-button-border-style:var(--afs-button-primary-dark-border-style,solid);--afs-button-border-color:var(--afs-button-primary-dark-border-color);--afs-button-border-radius:var(--afs-button-primary-dark-border-radius);--afs-button-background:var(--afs-button-primary-dark-background);--afs-button-text-color:var(--afs-button-primary-dark-text-color);--afs-button-padding-y:var(--afs-button-primary-dark-padding-y);--afs-button-padding-x:var(--afs-button-primary-dark-padding-x);--afs-button-shadow-x:var(--afs-button-primary-dark-shadow-x);--afs-button-shadow-y:var(--afs-button-primary-dark-shadow-y);--afs-button-shadow-blur:var(--afs-button-primary-dark-shadow-blur);--afs-button-shadow-spread:var(--afs-button-primary-dark-shadow-spread);--afs-button-shadow-color:var(--afs-button-primary-dark-shadow-color);--afs-button-background-hover:var(--afs-button-primary-dark-background-hover);--afs-button-text-color-hover:var(--afs-button-primary-dark-text-color-hover);--afs-button-shadow-x-hover:var(--afs-button-primary-dark-shadow-x-hover,var(--afs-button-primary-dark-shadow-x));--afs-button-shadow-y-hover:var(--afs-button-primary-dark-shadow-y-hover,var(--afs-button-primary-dark-shadow-y));--afs-button-shadow-blur-hover:var(--afs-button-primary-dark-shadow-blur-hover,var(--afs-button-primary-dark-shadow-blur));--afs-button-shadow-spread-hover:var(--afs-button-primary-dark-shadow-spread-hover,var(--afs-button-primary-dark-shadow-spread));--afs-button-shadow-color-hover:var(--afs-button-primary-dark-shadow-color-hover,var(--afs-button-primary-dark-shadow-color));--afs-button-border-hover:var(--afs-button-primary-dark-border-hover);--afs-button-border-width-hover:var(--afs-button-primary-dark-border-width-hover,var(--afs-button-primary-dark-border-width));--afs-button-border-style-hover:var(--afs-button-primary-dark-border-style-hover,var(--afs-button-primary-dark-border-style));--afs-button-border-color-hover:var(--afs-button-primary-dark-border-color-hover,var(--afs-button-primary-dark-border-color))}.afc-button--style-primary-light{--afs-button-font-family:var(--afs-button-primary-light-font-family);--afs-button-font-size:var(--afs-button-primary-light-font-size);--afs-button-font-weight:var(--afs-button-primary-light-font-weight);--afs-button-font-style:var(--afs-button-primary-light-font-style);--afs-button-line-height:var(--afs-button-primary-light-line-height);--afs-button-letter-spacing:var(--afs-button-primary-light-letter-spacing);--afs-button-border-width:var(--afs-button-primary-light-border-width);--afs-button-border-style:var(--afs-button-primary-light-border-style,solid);--afs-button-border-color:var(--afs-button-primary-light-border-color);--afs-button-border-radius:var(--afs-button-primary-light-border-radius);--afs-button-background:var(--afs-button-primary-light-background);--afs-button-text-color:var(--afs-button-primary-light-text-color);--afs-button-padding-y:var(--afs-button-primary-light-padding-y);--afs-button-padding-x:var(--afs-button-primary-light-padding-x);--afs-button-shadow-x:var(--afs-button-primary-light-shadow-x);--afs-button-shadow-y:var(--afs-button-primary-light-shadow-y);--afs-button-shadow-blur:var(--afs-button-primary-light-shadow-blur);--afs-button-shadow-spread:var(--afs-button-primary-light-shadow-spread);--afs-button-shadow-color:var(--afs-button-primary-light-shadow-color);--afs-button-background-hover:var(--afs-button-primary-light-background-hover);--afs-button-text-color-hover:var(--afs-button-primary-light-text-color-hover);--afs-button-shadow-x-hover:var(--afs-button-primary-light-shadow-x-hover,var(--afs-button-primary-light-shadow-x));--afs-button-shadow-y-hover:var(--afs-button-primary-light-shadow-y-hover,var(--afs-button-primary-light-shadow-y));--afs-button-shadow-blur-hover:var(--afs-button-primary-light-shadow-blur-hover,var(--afs-button-primary-light-shadow-blur));--afs-button-shadow-spread-hover:var(--afs-button-primary-light-shadow-spread-hover,var(--afs-button-primary-light-shadow-spread));--afs-button-shadow-color-hover:var(--afs-button-primary-light-shadow-color-hover,var(--afs-button-primary-light-shadow-color));--afs-button-border-hover:var(--afs-button-primary-light-border-hover);--afs-button-border-width-hover:var(--afs-button-primary-light-border-width-hover,var(--afs-button-primary-light-border-width));--afs-button-border-style-hover:var(--afs-button-primary-light-border-style-hover,var(--afs-button-primary-light-border-style));--afs-button-border-color-hover:var(--afs-button-primary-light-border-color-hover,var(--afs-button-primary-light-border-color))}.afc-button--style-secondary{--afs-button-font-family:var(--afs-button-secondary-font-family);--afs-button-font-size:var(--afs-button-secondary-font-size);--afs-button-font-weight:var(--afs-button-secondary-font-weight);--afs-button-font-style:var(--afs-button-secondary-font-style);--afs-button-line-height:var(--afs-button-secondary-line-height);--afs-button-letter-spacing:var(--afs-button-secondary-letter-spacing);--afs-button-border-width:var(--afs-button-secondary-border-width);--afs-button-border-style:var(--afs-button-secondary-border-style,solid);--afs-button-border-color:var(--afs-button-secondary-border-color);--afs-button-border-radius:var(--afs-button-secondary-border-radius);--afs-button-background:var(--afs-button-secondary-background);--afs-button-text-color:var(--afs-button-secondary-text-color);--afs-button-padding-y:var(--afs-button-secondary-padding-y);--afs-button-padding-x:var(--afs-button-secondary-padding-x);--afs-button-shadow-x:var(--afs-button-secondary-shadow-x);--afs-button-shadow-y:var(--afs-button-secondary-shadow-y);--afs-button-shadow-blur:var(--afs-button-secondary-shadow-blur);--afs-button-shadow-spread:var(--afs-button-secondary-shadow-spread);--afs-button-shadow-color:var(--afs-button-secondary-shadow-color);--afs-button-background-hover:var(--afs-button-secondary-background-hover);--afs-button-text-color-hover:var(--afs-button-secondary-text-color-hover);--afs-button-shadow-x-hover:var(--afs-button-secondary-shadow-x-hover,var(--afs-button-secondary-shadow-x));--afs-button-shadow-y-hover:var(--afs-button-secondary-shadow-y-hover,var(--afs-button-secondary-shadow-y));--afs-button-shadow-blur-hover:var(--afs-button-secondary-shadow-blur-hover,var(--afs-button-secondary-shadow-blur));--afs-button-shadow-spread-hover:var(--afs-button-secondary-shadow-spread-hover,var(--afs-button-secondary-shadow-spread));--afs-button-shadow-color-hover:var(--afs-button-secondary-shadow-color-hover,var(--afs-button-secondary-shadow-color));--afs-button-border-hover:var(--afs-button-secondary-border-hover);--afs-button-border-width-hover:var(--afs-button-secondary-border-width-hover,var(--afs-button-secondary-border-width));--afs-button-border-style-hover:var(--afs-button-secondary-border-style-hover,var(--afs-button-secondary-border-style));--afs-button-border-color-hover:var(--afs-button-secondary-border-color-hover,var(--afs-button-secondary-border-color))}.afc-button--style-secondary-dark{--afs-button-font-family:var(--afs-button-secondary-dark-font-family);--afs-button-font-size:var(--afs-button-secondary-dark-font-size);--afs-button-font-weight:var(--afs-button-secondary-dark-font-weight);--afs-button-font-style:var(--afs-button-secondary-dark-font-style);--afs-button-line-height:var(--afs-button-secondary-dark-line-height);--afs-button-letter-spacing:var(--afs-button-secondary-dark-letter-spacing);--afs-button-border-width:var(--afs-button-secondary-dark-border-width);--afs-button-border-style:var(--afs-button-secondary-dark-border-style,solid);--afs-button-border-color:var(--afs-button-secondary-dark-border-color);--afs-button-border-radius:var(--afs-button-secondary-dark-border-radius);--afs-button-background:var(--afs-button-secondary-dark-background);--afs-button-text-color:var(--afs-button-secondary-dark-text-color);--afs-button-padding-y:var(--afs-button-secondary-dark-padding-y);--afs-button-padding-x:var(--afs-button-secondary-dark-padding-x);--afs-button-shadow-x:var(--afs-button-secondary-dark-shadow-x);--afs-button-shadow-y:var(--afs-button-secondary-dark-shadow-y);--afs-button-shadow-blur:var(--afs-button-secondary-dark-shadow-blur);--afs-button-shadow-spread:var(--afs-button-secondary-dark-shadow-spread);--afs-button-shadow-color:var(--afs-button-secondary-dark-shadow-color);--afs-button-background-hover:var(--afs-button-secondary-dark-background-hover);--afs-button-text-color-hover:var(--afs-button-secondary-dark-text-color-hover);--afs-button-shadow-x-hover:var(--afs-button-secondary-dark-shadow-x-hover,var(--afs-button-secondary-dark-shadow-x));--afs-button-shadow-y-hover:var(--afs-button-secondary-dark-shadow-y-hover,var(--afs-button-secondary-dark-shadow-y));--afs-button-shadow-blur-hover:var(--afs-button-secondary-dark-shadow-blur-hover,var(--afs-button-secondary-dark-shadow-blur));--afs-button-shadow-spread-hover:var(--afs-button-secondary-dark-shadow-spread-hover,var(--afs-button-secondary-dark-shadow-spread));--afs-button-shadow-color-hover:var(--afs-button-secondary-dark-shadow-color-hover,var(--afs-button-secondary-dark-shadow-color));--afs-button-border-hover:var(--afs-button-secondary-dark-border-hover);--afs-button-border-width-hover:var(--afs-button-secondary-dark-border-width-hover,var(--afs-button-secondary-dark-border-width));--afs-button-border-style-hover:var(--afs-button-secondary-dark-border-style-hover,var(--afs-button-secondary-dark-border-style));--afs-button-border-color-hover:var(--afs-button-secondary-dark-border-color-hover,var(--afs-button-secondary-dark-border-color))}.afc-button--style-secondary-light{--afs-button-font-family:var(--afs-button-secondary-light-font-family);--afs-button-font-size:var(--afs-button-secondary-light-font-size);--afs-button-font-weight:var(--afs-button-secondary-light-font-weight);--afs-button-font-style:var(--afs-button-secondary-light-font-style);--afs-button-line-height:var(--afs-button-secondary-light-line-height);--afs-button-letter-spacing:var(--afs-button-secondary-light-letter-spacing);--afs-button-border-width:var(--afs-button-secondary-light-border-width);--afs-button-border-style:var(--afs-button-secondary-light-border-style,solid);--afs-button-border-color:var(--afs-button-secondary-light-border-color);--afs-button-border-radius:var(--afs-button-secondary-light-border-radius);--afs-button-background:var(--afs-button-secondary-light-background);--afs-button-text-color:var(--afs-button-secondary-light-text-color);--afs-button-padding-y:var(--afs-button-secondary-light-padding-y);--afs-button-padding-x:var(--afs-button-secondary-light-padding-x);--afs-button-shadow-x:var(--afs-button-secondary-light-shadow-x);--afs-button-shadow-y:var(--afs-button-secondary-light-shadow-y);--afs-button-shadow-blur:var(--afs-button-secondary-light-shadow-blur);--afs-button-shadow-spread:var(--afs-button-secondary-light-shadow-spread);--afs-button-shadow-color:var(--afs-button-secondary-light-shadow-color);--afs-button-background-hover:var(--afs-button-secondary-light-background-hover);--afs-button-text-color-hover:var(--afs-button-secondary-light-text-color-hover);--afs-button-shadow-x-hover:var(--afs-button-secondary-light-shadow-x-hover,var(--afs-button-secondary-light-shadow-x));--afs-button-shadow-y-hover:var(--afs-button-secondary-light-shadow-y-hover,var(--afs-button-secondary-light-shadow-y));--afs-button-shadow-blur-hover:var(--afs-button-secondary-light-shadow-blur-hover,var(--afs-button-secondary-light-shadow-blur));--afs-button-shadow-spread-hover:var(--afs-button-secondary-light-shadow-spread-hover,var(--afs-button-secondary-light-shadow-spread));--afs-button-shadow-color-hover:var(--afs-button-secondary-light-shadow-color-hover,var(--afs-button-secondary-light-shadow-color));--afs-button-border-hover:var(--afs-button-secondary-light-border-hover);--afs-button-border-width-hover:var(--afs-button-secondary-light-border-width-hover,var(--afs-button-secondary-light-border-width));--afs-button-border-style-hover:var(--afs-button-secondary-light-border-style-hover,var(--afs-button-secondary-light-border-style));--afs-button-border-color-hover:var(--afs-button-secondary-light-border-color-hover,var(--afs-button-secondary-light-border-color))}.afc-button--style-link{--afs-button-font-family:var(--afs-button-link-font-family);--afs-button-font-size:var(--afs-button-link-font-size);--afs-button-font-weight:var(--afs-button-link-font-weight);--afs-button-font-style:var(--afs-button-link-font-style);--afs-button-line-height:var(--afs-button-link-line-height);--afs-button-letter-spacing:var(--afs-button-link-letter-spacing);--afs-button-border-width:var(--afs-button-link-border-width);--afs-button-border-style:var(--afs-button-link-border-style,solid);--afs-button-border-color:var(--afs-button-link-border-color);--afs-button-border-radius:var(--afs-button-link-border-radius);--afs-button-background:var(--afs-button-link-background);--afs-button-text-color:var(--afs-button-link-text-color);--afs-button-padding-y:var(--afs-button-link-padding-y);--afs-button-padding-x:var(--afs-button-link-padding-x);--afs-button-shadow-x:var(--afs-button-link-shadow-x);--afs-button-shadow-y:var(--afs-button-link-shadow-y);--afs-button-shadow-blur:var(--afs-button-link-shadow-blur);--afs-button-shadow-spread:var(--afs-button-link-shadow-spread);--afs-button-shadow-color:var(--afs-button-link-shadow-color);--afs-button-background-hover:var(--afs-button-link-background-hover);--afs-button-text-color-hover:var(--afs-button-link-text-color-hover);--afs-button-shadow-x-hover:var(--afs-button-link-shadow-x-hover,var(--afs-button-link-shadow-x));--afs-button-shadow-y-hover:var(--afs-button-link-shadow-y-hover,var(--afs-button-link-shadow-y));--afs-button-shadow-blur-hover:var(--afs-button-link-shadow-blur-hover,var(--afs-button-link-shadow-blur));--afs-button-shadow-spread-hover:var(--afs-button-link-shadow-spread-hover,var(--afs-button-link-shadow-spread));--afs-button-shadow-color-hover:var(--afs-button-link-shadow-color-hover,var(--afs-button-link-shadow-color));--afs-button-border-hover:var(--afs-button-link-border-hover);--afs-button-border-width-hover:var(--afs-button-link-border-width-hover,var(--afs-button-link-border-width));--afs-button-border-style-hover:var(--afs-button-link-border-style-hover,var(--afs-button-link-border-style));--afs-button-border-color-hover:var(--afs-button-link-border-color-hover,var(--afs-button-link-border-color))}.afc-button--style-link-dark{--afs-button-font-family:var(--afs-button-link-dark-font-family);--afs-button-font-size:var(--afs-button-link-dark-font-size);--afs-button-font-weight:var(--afs-button-link-dark-font-weight);--afs-button-font-style:var(--afs-button-link-dark-font-style);--afs-button-line-height:var(--afs-button-link-dark-line-height);--afs-button-letter-spacing:var(--afs-button-link-dark-letter-spacing);--afs-button-border-width:var(--afs-button-link-dark-border-width);--afs-button-border-style:var(--afs-button-link-dark-border-style,solid);--afs-button-border-color:var(--afs-button-link-dark-border-color);--afs-button-border-radius:var(--afs-button-link-dark-border-radius);--afs-button-background:var(--afs-button-link-dark-background);--afs-button-text-color:var(--afs-button-link-dark-text-color);--afs-button-padding-y:var(--afs-button-link-dark-padding-y);--afs-button-padding-x:var(--afs-button-link-dark-padding-x);--afs-button-shadow-x:var(--afs-button-link-dark-shadow-x);--afs-button-shadow-y:var(--afs-button-link-dark-shadow-y);--afs-button-shadow-blur:var(--afs-button-link-dark-shadow-blur);--afs-button-shadow-spread:var(--afs-button-link-dark-shadow-spread);--afs-button-shadow-color:var(--afs-button-link-dark-shadow-color);--afs-button-background-hover:var(--afs-button-link-dark-background-hover);--afs-button-text-color-hover:var(--afs-button-link-dark-text-color-hover);--afs-button-shadow-x-hover:var(--afs-button-link-dark-shadow-x-hover,var(--afs-button-link-dark-shadow-x));--afs-button-shadow-y-hover:var(--afs-button-link-dark-shadow-y-hover,var(--afs-button-link-dark-shadow-y));--afs-button-shadow-blur-hover:var(--afs-button-link-dark-shadow-blur-hover,var(--afs-button-link-dark-shadow-blur));--afs-button-shadow-spread-hover:var(--afs-button-link-dark-shadow-spread-hover,var(--afs-button-link-dark-shadow-spread));--afs-button-shadow-color-hover:var(--afs-button-link-dark-shadow-color-hover,var(--afs-button-link-dark-shadow-color));--afs-button-border-hover:var(--afs-button-link-dark-border-hover);--afs-button-border-width-hover:var(--afs-button-link-dark-border-width-hover,var(--afs-button-link-dark-border-width));--afs-button-border-style-hover:var(--afs-button-link-dark-border-style-hover,var(--afs-button-link-dark-border-style));--afs-button-border-color-hover:var(--afs-button-link-dark-border-color-hover,var(--afs-button-link-dark-border-color))}.afc-button--style-link-light{--afs-button-font-family:var(--afs-button-link-light-font-family);--afs-button-font-size:var(--afs-button-link-light-font-size);--afs-button-font-weight:var(--afs-button-link-light-font-weight);--afs-button-font-style:var(--afs-button-link-light-font-style);--afs-button-line-height:var(--afs-button-link-light-line-height);--afs-button-letter-spacing:var(--afs-button-link-light-letter-spacing);--afs-button-border-width:var(--afs-button-link-light-border-width);--afs-button-border-style:var(--afs-button-link-light-border-style,solid);--afs-button-border-color:var(--afs-button-link-light-border-color);--afs-button-border-radius:var(--afs-button-link-light-border-radius);--afs-button-background:var(--afs-button-link-light-background);--afs-button-text-color:var(--afs-button-link-light-text-color);--afs-button-padding-y:var(--afs-button-link-light-padding-y);--afs-button-padding-x:var(--afs-button-link-light-padding-x);--afs-button-shadow-x:var(--afs-button-link-light-shadow-x);--afs-button-shadow-y:var(--afs-button-link-light-shadow-y);--afs-button-shadow-blur:var(--afs-button-link-light-shadow-blur);--afs-button-shadow-spread:var(--afs-button-link-light-shadow-spread);--afs-button-shadow-color:var(--afs-button-link-light-shadow-color);--afs-button-background-hover:var(--afs-button-link-light-background-hover);--afs-button-text-color-hover:var(--afs-button-link-light-text-color-hover);--afs-button-shadow-x-hover:var(--afs-button-link-light-shadow-x-hover,var(--afs-button-link-light-shadow-x));--afs-button-shadow-y-hover:var(--afs-button-link-light-shadow-y-hover,var(--afs-button-link-light-shadow-y));--afs-button-shadow-blur-hover:var(--afs-button-link-light-shadow-blur-hover,var(--afs-button-link-light-shadow-blur));--afs-button-shadow-spread-hover:var(--afs-button-link-light-shadow-spread-hover,var(--afs-button-link-light-shadow-spread));--afs-button-shadow-color-hover:var(--afs-button-link-light-shadow-color-hover,var(--afs-button-link-light-shadow-color));--afs-button-border-hover:var(--afs-button-link-light-border-hover);--afs-button-border-width-hover:var(--afs-button-link-light-border-width-hover,var(--afs-button-link-light-border-width));--afs-button-border-style-hover:var(--afs-button-link-light-border-style-hover,var(--afs-button-link-light-border-style));--afs-button-border-color-hover:var(--afs-button-link-light-border-color-hover,var(--afs-button-link-light-border-color))}.afc-button--style-primary-dark{--afs-button-primary-dark-border-radius:10px;--afs-button-primary-dark-border-width:1px;--afs-button-primary-dark-border-style:solid;--afs-button-primary-dark-border-color:transparent;--afs-button-primary-dark-padding-y:15px;--afs-button-primary-dark-padding-x:25px;--afs-button-primary-dark-font-size:1.25rem;--afs-button-primary-dark-font-weight:500;--afs-button-primary-dark-background:#fff;--afs-button-primary-dark-background-hover:#cd45fc;--afs-button-primary-dark-text-color:#101010;--afs-button-primary-dark-text-color-hover:#fff}.afc-button--style-primary-light{--afs-button-primary-light-border-radius:10px;--afs-button-primary-light-border-width:1px;--afs-button-primary-light-border-style:solid;--afs-button-primary-light-border-color:transparent;--afs-button-primary-light-padding-y:15px;--afs-button-primary-light-padding-x:25px;--afs-button-primary-light-font-size:1.25rem;--afs-button-primary-light-font-weight:500;--afs-button-primary-light-background:#000;--afs-button-primary-light-background-hover:#544cc9;--afs-button-primary-light-text-color:#fff;--afs-button-primary-light-text-color-hover:#fff}.afc-button--style-secondary-dark{--afs-button-secondary-dark-border-radius:10px;--afs-button-secondary-dark-border-width:1px;--afs-button-secondary-dark-border-style:solid;--afs-button-secondary-dark-border-color:#fff;--afs-button-secondary-dark-padding-y:15px;--afs-button-secondary-dark-padding-x:25px;--afs-button-secondary-dark-font-size:1.25rem;--afs-button-secondary-dark-font-weight:500;--afs-button-secondary-dark-border-color-hover:#fff;--afs-button-secondary-dark-background:transparent;--afs-button-secondary-dark-background-hover:#fff;--afs-button-secondary-dark-text-color:#fff;--afs-button-secondary-dark-text-color-hover:#000}.afc-button--style-secondary-light{--afs-button-secondary-light-border-radius:10px;--afs-button-secondary-light-border-width:1px;--afs-button-secondary-light-border-style:solid;--afs-button-secondary-light-border-color:#000;--afs-button-secondary-light-padding-y:15px;--afs-button-secondary-light-padding-x:25px;--afs-button-secondary-light-font-size:1.25rem;--afs-button-secondary-light-font-weight:500;--afs-button-secondary-light-border-color-hover:#000;--afs-button-secondary-light-background:transparent;--afs-button-secondary-light-background-hover:#000;--afs-button-secondary-light-text-color:#000;--afs-button-secondary-light-text-color-hover:#fff}.afc-button--style-link-dark{--afs-button-link-dark-border-radius:0;--afs-button-link-dark-border-width:0;--afs-button-link-dark-border-style:none;--afs-button-link-dark-border-color:transparent;--afs-button-link-dark-padding-y:0;--afs-button-link-dark-padding-x:0;--afs-button-link-dark-font-size:1.25rem;--afs-button-link-dark-font-weight:600;--afs-button-link-dark-letter-spacing:-.01em;--afs-button-link-dark-text-decoration:none;--afs-button-link-dark-line-height:1.3;--afs-button-link-dark-text-color:#ffffffb3;--afs-button-link-dark-text-color-hover:#fff}@media (width<768px){.afc-button--style-link-dark{--afs-button-link-dark-text-color:var(--afs-button-link-dark-text-color-mobile,#fff);--afs-button-link-dark-text-color-hover:var(--afs-button-link-dark-text-color-hover-mobile,#fff)}}.afc-button--style-link-light{--afs-button-link-light-border-radius:0;--afs-button-link-light-border-width:0;--afs-button-link-light-border-style:none;--afs-button-link-light-border-color:transparent;--afs-button-link-light-padding-y:0;--afs-button-link-light-padding-x:0;--afs-button-link-light-font-size:1.25rem;--afs-button-link-light-font-weight:600;--afs-button-link-light-letter-spacing:-.01em;--afs-button-link-light-text-decoration:none;--afs-button-link-light-line-height:1.3;--afs-button-link-light-text-color:#000000b3;--afs-button-link-light-text-color-hover:#544cc9}@media (width<768px){.afc-button--style-link-light{--afs-button-link-light-text-color:var(--afs-button-link-light-text-color-mobile,#000);--afs-button-link-light-text-color-hover:var(--afs-button-link-light-text-color-hover-mobile,#000)}}.afc-button--variation-icon-chevron{--afs-button-align-items:center;--afs-button-gap-x:10px}.afc-button--variation-icon-position-left{--afs-button-flex-direction:row-reverse}.afc-button--variation-icon-rotate-180 .afc-button__icon svg{transform:rotate(180deg)}<\/style>\n<style id=\"airfleet-lightyear-elements-partials-button-default-entry-styles\" type=\"text\/css\">@keyframes lobby-loader-spin{to{transform:rotate(360deg)}}@keyframes lobby-placeholder-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.afc-button{--afs-button-font-family:var(--afs-font-family-primary);--afs-button-font-size:16px;--afs-button-font-weight:500;--afs-button-line-height:28px;--afs-button-letter-spacing:0;transition-duration:var(--afs-trs-sm);transition-property:background,color,border-color,box-shadow;transition-timing-function:var(--afs-trs-timing-function)}.afc-button .afc-button__icon{transition-duration:var(--afs-trs-sm);transition-property:color;transition-timing-function:var(--afs-trs-timing-function)}.afc-button--style-primary{--afs-button-border-width:0px;--afs-button-border-style:solid;--afs-button-border-color:transparent;--afs-button-border-radius:8px;--afs-button-padding-y:10px;--afs-button-padding-x:25px;--afs-button-shadow-x:0;--afs-button-shadow-y:1px;--afs-button-shadow-blur:2px;--afs-button-shadow-spread:0;--afs-button-shadow-color:#1018280d}@media (width<1024px){.afc-button--style-primary{--afs-button-font-size:13px}}.afc-button--style-primary{--afs-button-background:var(--afu-color-primary-1);--afs-button-background-hover:color-mix(in srgb,var(--afu-color-primary-1)80%,transparent);--afs-button-text-color:var(--afu-color-primary-2);--afs-button-text-color-hover:var(--afu-color-primary-2)}.afc-button--style-secondary{--afs-button-border-width:0px;--afs-button-border-style:solid;--afs-button-border-color:transparent;--afs-button-border-radius:8px;--afs-button-padding-y:10px;--afs-button-padding-x:25px;--afs-button-shadow-x:0;--afs-button-shadow-y:1px;--afs-button-shadow-blur:2px;--afs-button-shadow-spread:0;--afs-button-shadow-color:#1018280d}@media (width<1024px){.afc-button--style-secondary{--afs-button-font-size:13px}}.afc-button--style-secondary{--afs-button-border-width:1px;--afs-button-border-color:var(--afu-color-stroke);--afs-button-border-color-hover:#d0d5dd;--afs-button-background:var(--afu-color-primary-2);--afs-button-background-hover:var(--afu-color-primary-2);--afs-button-text-color:var(--afu-color-primary-1);--afs-button-text-color-hover:var(--afu-color-primary-1)}.afc-button--style-pink{--afs-button-border-width:0px;--afs-button-border-style:solid;--afs-button-border-color:transparent;--afs-button-border-radius:8px;--afs-button-padding-y:10px;--afs-button-padding-x:25px;--afs-button-shadow-x:0;--afs-button-shadow-y:1px;--afs-button-shadow-blur:2px;--afs-button-shadow-spread:0;--afs-button-shadow-color:#1018280d}@media (width<1024px){.afc-button--style-pink{--afs-button-font-size:13px}}.afc-button--style-pink{--afs-button-background:var(--afu-color-primary-3);--afs-button-background-hover:color-mix(in srgb,var(--afu-color-primary-3)80%,transparent);--afs-button-text-color:var(--afu-color-primary-2);--afs-button-text-color-hover:var(--afu-color-primary-2)}.afc-button--style-link-1{--afs-button-font-size:15px;--afs-button-border-width:0px;--afs-button-border-color:transparent;--afs-button-border-radius:0px;--afs-button-padding-y:0px;--afs-button-padding-x:0px;--afs-button-background:transparent;--afs-button-background-hover:transparent;--afs-button-shadow-x:0;--afs-button-shadow-y:0;--afs-button-shadow-blur:0;--afs-button-shadow-spread:0;--afs-button-shadow-color:transparent}@media (width<1024px){.afc-button--style-link-1{--afs-button-font-size:14px}}.afc-button--style-link-1{--afs-button-text-color:var(--afu-color-text-b-heading);--afs-button-text-color-hover:var(--afu-color-primary-1)}.afc-button--style-link-1.afc-button--variation-icon-arrow .afc-button__icon{display:none}.afc-button--style-link-1.afc-button--variation-icon-arrow:focus .afc-button__icon,.afc-button--style-link-1.afc-button--variation-icon-arrow:hover .afc-button__icon,.afc-button--style-link-1.afc-button--variation-icon-arrow:active .afc-button__icon{display:inline-flex}@media (width<1024px){.afc-button--style-link-1.afc-button--variation-icon-arrow .afc-button__icon{display:inline-flex}}.afc-button--style-link-2{--afs-button-font-size:15px;--afs-button-border-width:0px;--afs-button-border-color:transparent;--afs-button-border-radius:0px;--afs-button-padding-y:0px;--afs-button-padding-x:0px;--afs-button-background:transparent;--afs-button-background-hover:transparent;--afs-button-shadow-x:0;--afs-button-shadow-y:0;--afs-button-shadow-blur:0;--afs-button-shadow-spread:0;--afs-button-shadow-color:transparent}@media (width<1024px){.afc-button--style-link-2{--afs-button-font-size:14px}}.afc-button--style-link-2{--afs-button-text-color:var(--afu-color-primary-1);--afs-button-text-color-hover:var(--afu-color-primary-1)}.afc-button--style-link-2:focus .afc-button__icon,.afc-button--style-link-2:hover .afc-button__icon,.afc-button--style-link-2:active .afc-button__icon{color:var(--afu-color-primary-3)}.afc-button--variation-icon-arrow{--afs-button-gap-x:8px;--afs-button-icon-flex-basis:8px}.afc-button--variation-icon-position-left{flex-direction:row-reverse}.afc-button--variation-icon-rotate-180 .afc-button__icon svg{transform:rotate(180deg)}@media (width<768px){.afc-button--variation-mobile-full-width{width:100%}}@media (width>=1024px){.afc-button--variation-desktop-full-width{width:100%}}<\/style>\n\n<\/div>\n\t\t<\/div>\t<\/div>\n<\/div>\n<\/section>\n<style id=\"airfleet-lightyear-blocks-content-blocks-default-entry-styles\" type=\"text\/css\">@keyframes lobby-loader-spin{to{transform:rotate(360deg)}}@keyframes lobby-placeholder-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.afb-content-blocks--style-default:has(>.afc-background>.afc-background__item--default)>.afc-background>.afc-background__item--default{background:#f3f3f3}.afb-content-blocks--style-default>.afc-background{padding-top:40px}.afb-content-blocks--style-default .B2iQuoteContainer{font-family:var(--afs-font-family-primary);margin-bottom:40px}.afb-content-blocks--style-default .afb-content-blocks__content{--afs-container-padding-x:0}@media (width>=1024px){.afb-content-blocks--style-default .afb-content-blocks__content>h1,.afb-content-blocks--style-default .afb-content-blocks__content>h2{font-family:var(--afs-title-h2-desktop-font-family);font-size:var(--afs-title-h2-desktop-font-size);font-style:var(--afs-title-h2-desktop-font-style);font-weight:var(--afs-title-h2-desktop-font-weight);letter-spacing:var(--afs-title-h2-desktop-letter-spacing);line-height:var(--afs-title-h2-desktop-line-height)}}@media (width<1024px){.afb-content-blocks--style-default .afb-content-blocks__content>h1,.afb-content-blocks--style-default .afb-content-blocks__content>h2{font-family:var(--afs-title-h2-mobile-font-family);font-size:var(--afs-title-h2-mobile-font-size);font-style:var(--afs-title-h2-mobile-font-style);font-weight:var(--afs-title-h2-mobile-font-weight);letter-spacing:var(--afs-title-h2-mobile-letter-spacing);line-height:var(--afs-title-h2-mobile-line-height)}}.afb-content-blocks--style-default .afb-content-blocks__content>h1:not(:last-child),.afb-content-blocks--style-default .afb-content-blocks__content>h2:not(:last-child){margin-bottom:20px}.afb-content-blocks--style-default .afb-content-blocks__content>ul,.afb-content-blocks--style-default .afb-content-blocks__content>ol,.afb-content-blocks--style-default .afb-content-blocks__content>p{font-family:var(--afs-font-family-primary);letter-spacing:-.02em;font-size:1.375rem;font-weight:400;line-height:1.4}@media (width<1024px){.afb-content-blocks--style-default .afb-content-blocks__content>ul,.afb-content-blocks--style-default .afb-content-blocks__content>ol,.afb-content-blocks--style-default .afb-content-blocks__content>p{font-size:1rem}}.afb-content-blocks--style-default .afb-content-blocks__content>ul strong,.afb-content-blocks--style-default .afb-content-blocks__content>ol strong,.afb-content-blocks--style-default .afb-content-blocks__content>p strong{font-weight:600}.afb-content-blocks--style-default .afb-content-blocks__content>ul:not(:last-child),.afb-content-blocks--style-default .afb-content-blocks__content>ol:not(:last-child),.afb-content-blocks--style-default .afb-content-blocks__content>p:not(:last-child){margin-bottom:30px}.afb-content-blocks--style-default .amChartsButton{background:#334048}.afb-content-blocks .B2iStockTableFeed{background:0 0!important;padding:0!important}.afb-content-blocks .B2iQuoteContainer .B2iStockTableItem{border-color:var(--afu-color-primary-3)}@media (width<1024px){.afb-content-blocks .B2iQuoteContainer .b2iQuoteCellRight{width:auto!important;min-width:0!important}}.afb-content-blocks--style-sec-fillings:has(>.afc-background>.afc-background__item--default)>.afc-background>.afc-background__item--default{background:#f3f3f3}.afb-content-blocks--style-sec-fillings>.afc-background{padding-block:60px 56px}@media (width<1024px){.afb-content-blocks--style-sec-fillings>.afc-background{padding-block:100px}}@media (width>=1024px){.afb-content-blocks--style-sec-fillings .wp-block-heading{font-family:var(--afs-title-h1-r-desktop-font-family);font-size:var(--afs-title-h1-r-desktop-font-size);font-style:var(--afs-title-h1-r-desktop-font-style);font-weight:var(--afs-title-h1-r-desktop-font-weight);letter-spacing:var(--afs-title-h1-r-desktop-letter-spacing);line-height:var(--afs-title-h1-r-desktop-line-height)}}@media (width<1024px){.afb-content-blocks--style-sec-fillings .wp-block-heading{font-family:var(--afs-title-h1-r-mobile-font-family);font-size:var(--afs-title-h1-r-mobile-font-size);font-style:var(--afs-title-h1-r-mobile-font-style);font-weight:var(--afs-title-h1-r-mobile-font-weight);letter-spacing:var(--afs-title-h1-r-mobile-letter-spacing);line-height:var(--afs-title-h1-r-mobile-line-height)}}.afb-content-blocks--style-sec-fillings .wp-block-heading{--afs-title-h1-r-desktop-font-weight:500;--afs-title-h1-r-mobile-font-weight:500;text-align:center;margin-bottom:60px}.afb-content-blocks--style-sec-fillings #demoSecAll{--afs-field-height:44px;font-family:var(--afs-font-family-primary);color:var(--afu-color-text-b-heading)}.afb-content-blocks--style-sec-fillings #demoSecAll #b2iSecForm{margin-bottom:100px}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECtopSelect{border:0;width:100%}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECtopSelect td{text-align:center;border:0;padding:0}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECtopSelectCell2{flex-wrap:wrap;justify-content:center;align-items:center;gap:12px 20px;display:flex}.afb-content-blocks--style-sec-fillings #demoSecAll #FilingsLabelContainer,.afb-content-blocks--style-sec-fillings #demoSecAll #YearLabelContainer{align-items:center;gap:8px;display:inline-flex}@media (width>=1024px){.afb-content-blocks--style-sec-fillings #demoSecAll .FilterLabel{font-family:var(--afs-text-p3-r-desktop-font-family);font-size:var(--afs-text-p3-r-desktop-font-size);font-style:var(--afs-text-p3-r-desktop-font-style);font-weight:var(--afs-text-p3-r-desktop-font-weight);letter-spacing:var(--afs-text-p3-r-desktop-letter-spacing);line-height:var(--afs-text-p3-r-desktop-line-height)}}@media (width<1024px){.afb-content-blocks--style-sec-fillings #demoSecAll .FilterLabel{font-family:var(--afs-text-p3-r-mobile-font-family);font-size:var(--afs-text-p3-r-mobile-font-size);font-style:var(--afs-text-p3-r-mobile-font-style);font-weight:var(--afs-text-p3-r-mobile-font-weight);letter-spacing:var(--afs-text-p3-r-mobile-letter-spacing);line-height:var(--afs-text-p3-r-mobile-line-height)}}.afb-content-blocks--style-sec-fillings #demoSecAll .FilterLabel{color:var(--afu-color-text-b-heading);white-space:nowrap;padding:0}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSelect{border:1px solid var(--afu-color-text-b-heading);background-color:var(--afu-color-white);min-width:180px;max-width:none;font:400 1rem\/1.5 var(--afs-font-family-primary),sans-serif;letter-spacing:-.02em;color:var(--afu-color-text-b-heading);cursor:pointer;border-radius:2px;margin:0;padding:8px 12px}@media (width<1024px){.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSelect{width:100%;min-width:0;font-size:.875rem}}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iPrimaryButton.b2iSecSearch{--afs-button-font-family:var(--afs-font-family-primary);--afs-button-font-size:16px;--afs-button-font-weight:500;--afs-button-line-height:28px;--afs-button-letter-spacing:0;transition-duration:var(--afs-trs-sm);transition-property:background,color,border-color,box-shadow;transition-timing-function:var(--afs-trs-timing-function)}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iPrimaryButton.b2iSecSearch .afc-button__icon{transition-duration:var(--afs-trs-sm);transition-property:color;transition-timing-function:var(--afs-trs-timing-function)}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iPrimaryButton.b2iSecSearch{all:unset;text-align:center;box-sizing:border-box;color:currentColor;justify-content:center;align-items:center;display:inline-flex}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iPrimaryButton.b2iSecSearch:not(:disabled,.disabled){cursor:pointer}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iPrimaryButton.b2iSecSearch{--afs-button-padding-y-absolute:calc(var(--afs-button-padding-y) - var(--afs-button-border-width));--afs-button-padding-x-absolute:calc(var(--afs-button-padding-x) - var(--afs-button-border-width));font-family:var(--afs-button-font-family);font-size:var(--afs-button-font-size);font-weight:var(--afs-button-font-weight,500);font-style:var(--afs-button-font-style,normal);line-height:var(--afs-button-line-height);letter-spacing:var(--afs-button-letter-spacing);border:var(--afs-button-border-width)var(--afs-button-border-style,solid)var(--afs-button-border-color);border-radius:var(--afs-button-border-radius);background:var(--afs-button-background);color:var(--afs-button-text-color);padding:var(--afs-button-padding-y-absolute)var(--afs-button-padding-x-absolute);box-shadow:var(--afs-button-shadow-x)var(--afs-button-shadow-y)var(--afs-button-shadow-blur)var(--afs-button-shadow-spread)var(--afs-button-shadow-color);text-transform:var(--afs-button-text-transform,none);gap:var(--afs-button-gap-y,0)var(--afs-button-gap-x,0)}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iPrimaryButton.b2iSecSearch:focus,.afb-content-blocks--style-sec-fillings #demoSecAll .b2iPrimaryButton.b2iSecSearch:hover,.afb-content-blocks--style-sec-fillings #demoSecAll .b2iPrimaryButton.b2iSecSearch:active{background:var(--afs-button-background-hover);color:var(--afs-button-text-color-hover);box-shadow:var(--afs-button-shadow-x-hover,var(--afs-button-shadow-x))var(--afs-button-shadow-y-hover,var(--afs-button-shadow-y))var(--afs-button-shadow-blur-hover,var(--afs-button-shadow-blur))var(--afs-button-shadow-spread-hover,var(--afs-button-shadow-spread))var(--afs-button-shadow-color-hover,var(--afs-button-shadow-color));border:var(--afs-button-border-width-hover,var(--afs-button-border-width))var(--afs-button-border-style-hover,var(--afs-button-border-style))var(--afs-button-border-color-hover,var(--afs-button-border-color))}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iPrimaryButton.b2iSecSearch svg{width:100%;height:auto}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iPrimaryButton.b2iSecSearch{--afs-button-border-width:2px;--afs-button-border-style:solid;--afs-button-border-color:var(--afu-color-primary-3);--afs-button-border-color-hover:var(--afu-color-primary-3);--afs-button-background:transparent;--afs-button-background-hover:transparent;--afs-button-text-color:var(--afu-color-primary-3);--afs-button-text-color-hover:var(--afu-color-primary-3);--afs-button-border-radius:3px;--afs-button-padding-y:8px;--afs-button-padding-x:18px;--afs-button-font-weight:400;--afs-button-shadow-color:transparent;width:165px;min-height:var(--afs-field-height);opacity:1}@media screen and (width<=680px){.afb-content-blocks--style-sec-fillings #demoSecAll .b2iPrimaryButton.b2iSecSearch{width:100%}}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iPrimaryButton.b2iSecSearch:hover{opacity:.8}.afb-content-blocks--style-sec-fillings #demoSecAll #b2iSecTop{border-collapse:collapse;table-layout:auto;border:0;width:100%;margin-top:150px}@media (width<1024px){.afb-content-blocks--style-sec-fillings #demoSecAll #b2iSecTop{margin-top:60px}}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECTitleRow th{border:0;border-bottom:1px solid var(--afu-color-stroke);text-align:left;vertical-align:bottom;padding:0 8px 16px}@media (width>=1024px){.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECTitleRow .b2iSecTitleFont,.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECTitleRow .b2iSecFormFont,.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECTitleRow .b2iSecDescFont,.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECTitleRow .b2iSecIconsFont{font-family:var(--afs-text-p3-r-desktop-font-family);font-size:var(--afs-text-p3-r-desktop-font-size);font-style:var(--afs-text-p3-r-desktop-font-style);font-weight:var(--afs-text-p3-r-desktop-font-weight);letter-spacing:var(--afs-text-p3-r-desktop-letter-spacing);line-height:var(--afs-text-p3-r-desktop-line-height)}}@media (width<1024px){.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECTitleRow .b2iSecTitleFont,.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECTitleRow .b2iSecFormFont,.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECTitleRow .b2iSecDescFont,.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECTitleRow .b2iSecIconsFont{font-family:var(--afs-text-p3-r-mobile-font-family);font-size:var(--afs-text-p3-r-mobile-font-size);font-style:var(--afs-text-p3-r-mobile-font-style);font-weight:var(--afs-text-p3-r-mobile-font-weight);letter-spacing:var(--afs-text-p3-r-mobile-letter-spacing);line-height:var(--afs-text-p3-r-mobile-line-height)}}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECTitleRow .b2iSecTitleFont,.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECTitleRow .b2iSecFormFont,.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECTitleRow .b2iSecDescFont,.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECTitleRow .b2iSecIconsFont{color:var(--afu-color-text-b-paragraph)}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECTitleRow .b2iSECIconsHead .b2iSecIconsFont{text-align:start;display:block}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECDataRow td{border:0;border-bottom:1px solid var(--afu-color-stroke);text-align:left;vertical-align:baseline;padding:16px 8px 14px!important;line-height:26px!important}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECDataRow:hover{background-color:#f6f6f6;transition:background-color .3s ease-in-out}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECDataRow:last-child td{border-bottom:0}@media (width>=1024px){.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECDateCell{font-family:var(--afs-text-p3-r-desktop-font-family);font-size:var(--afs-text-p3-r-desktop-font-size);font-style:var(--afs-text-p3-r-desktop-font-style);font-weight:var(--afs-text-p3-r-desktop-font-weight);letter-spacing:var(--afs-text-p3-r-desktop-letter-spacing);line-height:var(--afs-text-p3-r-desktop-line-height)}}@media (width<1024px){.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECDateCell{font-family:var(--afs-text-p3-r-mobile-font-family);font-size:var(--afs-text-p3-r-mobile-font-size);font-style:var(--afs-text-p3-r-mobile-font-style);font-weight:var(--afs-text-p3-r-mobile-font-weight);letter-spacing:var(--afs-text-p3-r-mobile-letter-spacing);line-height:var(--afs-text-p3-r-mobile-line-height)}}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECDateCell{width:14%;color:var(--afu-color-text-b-heading);white-space:nowrap}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECTypeCell{width:10%}@media (width>=1024px){.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECTypeCell a{font-family:var(--afs-text-p3-r-desktop-font-family);font-size:var(--afs-text-p3-r-desktop-font-size);font-style:var(--afs-text-p3-r-desktop-font-style);font-weight:var(--afs-text-p3-r-desktop-font-weight);letter-spacing:var(--afs-text-p3-r-desktop-letter-spacing);line-height:var(--afs-text-p3-r-desktop-line-height)}}@media (width<1024px){.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECTypeCell a{font-family:var(--afs-text-p3-r-mobile-font-family);font-size:var(--afs-text-p3-r-mobile-font-size);font-style:var(--afs-text-p3-r-mobile-font-style);font-weight:var(--afs-text-p3-r-mobile-font-weight);letter-spacing:var(--afs-text-p3-r-mobile-letter-spacing);line-height:var(--afs-text-p3-r-mobile-line-height)}}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECTypeCell a{color:var(--afu-color-primary-3);text-decoration:none}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECFormCell{width:auto}@media (width>=1024px){.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECFormCell a.SecLink{font-family:var(--afs-text-p3-r-desktop-font-family);font-size:var(--afs-text-p3-r-desktop-font-size);font-style:var(--afs-text-p3-r-desktop-font-style);font-weight:var(--afs-text-p3-r-desktop-font-weight);letter-spacing:var(--afs-text-p3-r-desktop-letter-spacing);line-height:var(--afs-text-p3-r-desktop-line-height)}}@media (width<1024px){.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECFormCell a.SecLink{font-family:var(--afs-text-p3-r-mobile-font-family);font-size:var(--afs-text-p3-r-mobile-font-size);font-style:var(--afs-text-p3-r-mobile-font-style);font-weight:var(--afs-text-p3-r-mobile-font-weight);letter-spacing:var(--afs-text-p3-r-mobile-letter-spacing);line-height:var(--afs-text-p3-r-mobile-line-height)}}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECFormCell a.SecLink{color:var(--afu-color-text-b-heading);text-decoration:none}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECFormCell a.SecLink:hover{text-decoration:underline}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECFormCell .FilerAddon{color:var(--afu-color-text-b-paragraph);margin-top:4px;font-size:.875rem;line-height:1.4;display:block}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECFormCell .FilerAddon a{color:var(--afu-color-text-b-paragraph);text-decoration:none}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECFormCell .FilerAddon a:hover{color:var(--afu-color-primary-3);text-decoration:underline}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECFormCell .b2iExtimage{vertical-align:middle;width:14px;height:14px;margin-left:6px;display:inline-block}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECIconsCell{text-align:right;white-space:nowrap;width:18%}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECIconsCell a{color:var(--afu-color-text-b-paragraph);opacity:1;justify-content:center;align-items:center;margin-inline:5px;text-decoration:none;transition:opacity .3s ease-in-out;display:inline-flex}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECIconsCell a:hover{opacity:.7}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECIconsCell .B2iFontIcon{font-size:22px;line-height:1}.afb-content-blocks--style-sec-fillings #demoSecAll #b2iSecFilingNav{font:400 1rem\/1.5 var(--afs-font-family-primary),sans-serif;letter-spacing:-.02em;color:var(--afu-color-text-b-heading);flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 16px;margin-top:40px;display:flex}@media (width<1024px){.afb-content-blocks--style-sec-fillings #demoSecAll #b2iSecFilingNav{margin-top:30px;font-size:.875rem}}.afb-content-blocks--style-sec-fillings #demoSecAll #b2iSecFilingNav .b2iNavLink{color:var(--afu-color-primary-1);text-decoration:none}.afb-content-blocks--style-sec-fillings #demoSecAll #b2iSecFilingNav .b2iNavLink:hover{color:var(--afu-color-primary-3);text-decoration:none}.afb-content-blocks--style-sec-fillings #demoSecAll #SecStoryContainer{display:none!important}@media screen and (width<=680px){.afb-content-blocks--style-sec-fillings #demoSecAll #b2iSecForm{margin-bottom:60px}.afb-content-blocks--style-sec-fillings #demoSecAll tr,.afb-content-blocks--style-sec-fillings #demoSecAll tbody,.afb-content-blocks--style-sec-fillings #demoSecAll thead{display:block}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECtopSelectCell2{flex-flow:column;align-items:stretch;gap:25px;height:auto}.afb-content-blocks--style-sec-fillings #demoSecAll #FilingsLabelContainer,.afb-content-blocks--style-sec-fillings #demoSecAll #YearLabelContainer{flex-direction:column;align-items:stretch;gap:6px;display:flex}.afb-content-blocks--style-sec-fillings #demoSecAll #b2iSecTop{border:2px solid #ddd;display:block}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECTitleRow{display:none}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECDataRow{display:block}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECDataRow td{border:0;border-bottom:1px solid var(--afu-color-stroke);text-align:left;white-space:normal;display:block;width:100%!important;padding:8px!important}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECDataRow .b2iSECDateCell{color:#fff;background-color:#bbb}.afb-content-blocks--style-sec-fillings #demoSecAll .b2iSECDataRow .b2iSECIconsCell{text-align:left}}.afb-content-blocks--style-outmax:has(>.afc-background>.afc-background__item--default)>.afc-background>.afc-background__item--default{background:var(--afu-color-secondary-1)}.afb-content-blocks--style-outmax>.afc-background{padding-block:120px}@media (width<1024px){.afb-content-blocks--style-outmax>.afc-background{padding-block:50px}}.afb-content-blocks--style-outmax .afb-content-blocks__content{--afs-container-padding-x:0;--afs-container-max-width:1280px}@media (width>=1024px){.afb-content-blocks--style-outmax .afb-content-blocks__content>h1,.afb-content-blocks--style-outmax .afb-content-blocks__content>h2{font-family:var(--afs-title-h1-r-desktop-font-family);font-size:var(--afs-title-h1-r-desktop-font-size);font-style:var(--afs-title-h1-r-desktop-font-style);font-weight:var(--afs-title-h1-r-desktop-font-weight);letter-spacing:var(--afs-title-h1-r-desktop-letter-spacing);line-height:var(--afs-title-h1-r-desktop-line-height)}}@media (width<1024px){.afb-content-blocks--style-outmax .afb-content-blocks__content>h1,.afb-content-blocks--style-outmax .afb-content-blocks__content>h2{font-family:var(--afs-title-h1-r-mobile-font-family);font-size:var(--afs-title-h1-r-mobile-font-size);font-style:var(--afs-title-h1-r-mobile-font-style);font-weight:var(--afs-title-h1-r-mobile-font-weight);letter-spacing:var(--afs-title-h1-r-mobile-letter-spacing);line-height:var(--afs-title-h1-r-mobile-line-height)}}.afb-content-blocks--style-outmax .afb-content-blocks__content>h1,.afb-content-blocks--style-outmax .afb-content-blocks__content>h2{max-width:652px}.afb-content-blocks--style-outmax .afb-content-blocks__content>h1:not(:last-child),.afb-content-blocks--style-outmax .afb-content-blocks__content>h2:not(:last-child){margin-bottom:60px}@media (width<1024px){.afb-content-blocks--style-outmax .afb-content-blocks__content>h1:not(:last-child),.afb-content-blocks--style-outmax .afb-content-blocks__content>h2:not(:last-child){margin-bottom:30px}}.afb-content-blocks--style-outmax .afb-content-blocks__content>h3{font-family:var(--afs-font-family-primary);letter-spacing:-.02em;color:var(--afu-color-text-b-heading);font-size:28px;font-weight:400;line-height:1.5}@media (width<1024px){.afb-content-blocks--style-outmax .afb-content-blocks__content>h3{letter-spacing:-.02em;font-size:20px;line-height:1.3}}.afb-content-blocks--style-outmax .afb-content-blocks__content>.has-text-align-center{text-align:center;max-width:720px;margin-inline:auto}.afb-content-blocks--style-outmax .afb-side-by-side{--afs-section-padding-top:0;--afs-section-padding-top-mobile:0;--afs-section-padding-bottom:80px;--afs-section-padding-bottom-mobile:40px;--afs-side-by-side-columns-gap-x-desktop:80px;--afs-side-by-side-columns-gap-y-mobile:30px;--afs-side-by-side-column-left-width-desktop:minmax(0,737px);--afs-side-by-side-column-right-width-desktop:minmax(0,463px);--afs-side-by-side-inner-align-items-desktop:flex-start}.afb-content-blocks--style-outmax .afb-side-by-side .afc-video{border-radius:20px;overflow:hidden}@media (width<1024px){.afb-content-blocks--style-outmax .afb-side-by-side .afc-video{border-radius:10px}}.afb-content-blocks--style-outmax .afb-side-by-side .afc-video-play-button--label-off{--afs-video-button-aspect-ratio:108\/70;--afs-video-button-border-radius:7px;--afs-video-button-size:108px;background-color:var(--afu-color-white)}@media (width<1024px){.afb-content-blocks--style-outmax .afb-side-by-side .afc-video-play-button--label-off{--afs-video-button-size:50px;--afs-video-button-border-radius:3px}}.afb-content-blocks--style-outmax .afb-side-by-side .afc-video-play-button--label-off svg{width:100%;height:100%}.afb-content-blocks--style-outmax .afb-side-by-side .afc-video-play-button--label-off svg circle{display:none}.afb-content-blocks--style-outmax .afb-side-by-side__texts .afc-text{margin-bottom:0}@media (width>=1024px){.afb-content-blocks--style-outmax .afb-side-by-side__texts .afc-text.afc-text--style-default,.afb-content-blocks--style-outmax .afb-side-by-side__texts .afc-text.afu-text-style--default{font-family:var(--afs-text-p3-r-desktop-font-family);font-size:var(--afs-text-p3-r-desktop-font-size);font-style:var(--afs-text-p3-r-desktop-font-style);font-weight:var(--afs-text-p3-r-desktop-font-weight);letter-spacing:var(--afs-text-p3-r-desktop-letter-spacing);line-height:var(--afs-text-p3-r-desktop-line-height)}}@media (width<1024px){.afb-content-blocks--style-outmax .afb-side-by-side__texts .afc-text.afc-text--style-default,.afb-content-blocks--style-outmax .afb-side-by-side__texts .afc-text.afu-text-style--default{font-family:var(--afs-text-p3-r-mobile-font-family);font-size:var(--afs-text-p3-r-mobile-font-size);font-style:var(--afs-text-p3-r-mobile-font-style);font-weight:var(--afs-text-p3-r-mobile-font-weight);letter-spacing:var(--afs-text-p3-r-mobile-letter-spacing);line-height:var(--afs-text-p3-r-mobile-line-height)}}.afb-content-blocks--style-outmax .afb-side-by-side__texts .afc-text.afc-text--style-default,.afb-content-blocks--style-outmax .afb-side-by-side__texts .afc-text.afu-text-style--default{line-height:1.6}.afb-content-blocks--style-outmax .afb-side-by-side__texts .afc-text.afu-color--text-default{color:var(--afu-color-text-b-paragraph)}<\/style>\n\n\n\n\n<p><html><head><\/head><body><\/p>\n\n<section class=\"afb-title-file-and-links\" data-af-view=\"blocks-title-file-and-links\">\n    <div class=\"afc-background\" data-af-view=\"elements-partials-background\">\n\t\t\t<div class=\"afc-background__item afc-background__item--default\"><\/div>\n\t\t<div class=\"afc-background__content\">\n\t\t<div class=\"container afb-title-file-and-links__container\">\n            <header class=\"afb-title-file-and-links__header\">\n\t\t\t\t\t\t\t\t<div class=\"afb-title-file-and-links__tagline-wrapper\">\n\t\t\t\t\t<svg width=\"16\" height=\"18\" viewBox=\"0 0 16 18\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t\t\t\t<path d=\"M7.67871 18H7.67578C7.67596 17.9818 7.67766 17.9636 7.67773 17.9453C7.67781 17.9636 7.67853 17.9818 7.67871 18ZM7.67773 0.136719C7.69674 4.64087 11.0225 8.36279 15.3535 9.00195C11.0226 9.64098 7.69702 13.3642 7.67773 17.8682C7.65844 13.3638 4.33148 9.64048 0 9.00195C4.33162 8.36332 7.65878 4.64136 7.67773 0.136719ZM7.67676 0.0585938C7.67667 0.0390816 7.67501 0.0194827 7.6748 0H7.67773C7.67753 0.0194819 7.67684 0.0390824 7.67676 0.0585938Z\" fill=\"#FF0083\"\/>\n\t\t\t\t\t<\/svg>\n\n\t\t\t\t\t<h3 class=\"afc-title afc-title--advanced afu-title-style--default afb-title-file-and-links__tagline afu-color--text-default\" data-af-view=\"elements-partials-title\">Q3 2026<\/h3>\t\t\t\t<\/div>\n            \n\t\t\t\t\t\t\t<h3 class=\"afc-title afc-title--advanced afu-title-style--default afc-flexible__item-0 afb-title-file-and-links__title afu-color--text-default\" data-af-view=\"elements-partials-title\">Resultados financieros<\/h3>\t\t\t\t\t\t<\/header>\n\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t<div class=\"afb-title-file-and-links__links\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/perion.com\/wp-content\/uploads\/PERI-PR-Q326-Earnings-Release-ENG-VF-1.pdf\" class=\"afb-title-file-and-links__link\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<picture\n\tclass=\"afc-picture afb-title-file-and-links__icon\" data-af-view=\"elements-components-picture\"\t>\n\t\t\t\t<img width=\"24\" height=\"24\" src=\"https:\/\/perion.com\/wp-content\/uploads\/2026\/07\/tabler-icon-notebook.svg\" class=\"afc-image afc-picture__image\" alt=\"\" loading=\"lazy\" decoding=\"async\" srcset=\"https:\/\/perion.com\/wp-content\/uploads\/2026\/07\/tabler-icon-notebook.svg 150w, https:\/\/perion.com\/wp-content\/uploads\/2026\/07\/tabler-icon-notebook.svg 300w, https:\/\/perion.com\/wp-content\/uploads\/2026\/07\/tabler-icon-notebook.svg 1024w, https:\/\/perion.com\/wp-content\/uploads\/2026\/07\/tabler-icon-notebook.svg 1536w, https:\/\/perion.com\/wp-content\/uploads\/2026\/07\/tabler-icon-notebook.svg 2048w, https:\/\/perion.com\/wp-content\/uploads\/2026\/07\/tabler-icon-notebook.svg 24w\" sizes=\"auto, (max-width: 24px) 100vw, 24px\" \/>\t<\/picture>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<span>Comunicado de prensa<\/span>\n\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\n            \t\t\t<div class=\"afb-title-file-and-links__buttons\">\n              <a href=\"\/es\/investors\/financial-results\/\" target=\"_self\" class=\"afc-button afc-button--link afc-button--style-primary afc-flexible__item-0 afb-title-file-and-links__button\" data-af-view=\"elements-partials-button\">\t<span class=\"afc-button__content\">\n\t\tVer m\u00e1s resultados\t<\/span>\n\t<\/a>\t\t\t<\/div>\n                    <\/div>\t<\/div>\n<\/div>\n<\/section>\n<script id=\"airfleet-lightyear-blocks-title-file-and-links-frontend-entry-scripts\" type=\"text\/javascript\" data-for-view=\"blocks-title-file-and-links\" data-cookieconsent=\"ignore\" >!function(){var t,e,i,s,r,n,a={},o=a={};function l(){throw Error(\"setTimeout has not been defined\")}function h(){throw Error(\"clearTimeout has not been defined\")}try{t=\"function\"==typeof setTimeout?setTimeout:l}catch(e){t=l}try{e=\"function\"==typeof clearTimeout?clearTimeout:h}catch(t){e=h}function d(e){if(t===setTimeout)return setTimeout(e,0);if((t===l||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(i){try{return t.call(null,e,0)}catch(i){return t.call(this,e,0)}}}var c=[],u=!1,p=-1;function f(){u&&i&&(u=!1,i.length?c=i.concat(c):p=-1,c.length&&g())}function g(){if(!u){var t=d(f);u=!0;for(var s=c.length;s;){for(i=c,c=[];++p<s;)i&&i[p].run();p=-1,s=c.length}i=null,u=!1,function(t){if(e===clearTimeout)return clearTimeout(t);if((e===h||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(t);try{e(t)}catch(i){try{return e.call(null,t)}catch(i){return e.call(this,t)}}}(t)}}function m(t,e){this.fun=t,this.array=e}function b(){}\"use strict\";\"use strict\";o.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];c.push(new m(t,e)),1!==c.length||u||d(g)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=b,o.addListener=b,o.once=b,o.off=b,o.removeListener=b,o.removeAllListeners=b,o.emit=b,o.prependListener=b,o.prependOnceListener=b,o.listeners=function(t){return[]},o.binding=function(t){throw Error(\"process.binding is not supported\")},o.cwd=function(){return\"\/\"},o.chdir=function(t){throw Error(\"process.chdir is not supported\")},o.umask=function(){return 0},s=function(t){for(var e,i=t.length,s=i%3,r=[],n=0,a=i-s;n<a;n+=16383)r.push(function(t,e,i){for(var s,r=[],n=e;n<i;n+=3)s=(t[n]<<16&0xff0000)+(t[n+1]<<8&65280)+(255&t[n+2]),r.push(y[s>>18&63]+y[s>>12&63]+y[s>>6&63]+y[63&s]);return r.join(\"\")}(t,n,n+16383>a?a:n+16383));return 1===s?r.push(y[(e=t[i-1])>>2]+y[e<<4&63]+\"==\"):2===s&&r.push(y[(e=(t[i-2]<<8)+t[i-1])>>10]+y[e>>4&63]+y[e<<2&63]+\"=\"),r.join(\"\")};for(var y=[],A=[],v=\"u\">typeof Uint8Array?Uint8Array:Array,w=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/\",_=0,x=w.length;_<x;++_)y[_]=w[_],A[w.charCodeAt(_)]=_;function E(t){var e=t.length;if(e%4>0)throw Error(\"Invalid string. Length must be a multiple of 4\");var i=t.indexOf(\"=\");-1===i&&(i=e);var s=i===e?0:4-i%4;return[i,s]}A[45]=62,A[95]=63,r=function(t,e,i,s,r){var n,a,o=8*r-s-1,l=(1<<o)-1,h=l>>1,d=-7,c=i?r-1:0,u=i?-1:1,p=t[e+c];for(c+=u,n=p&(1<<-d)-1,p>>=-d,d+=o;d>0;n=256*n+t[e+c],c+=u,d-=8);for(a=n&(1<<-d)-1,n>>=-d,d+=s;d>0;a=256*a+t[e+c],c+=u,d-=8);if(0===n)n=1-h;else{if(n===l)return a?NaN:1\/0*(p?-1:1);a+=Math.pow(2,s),n-=h}return(p?-1:1)*a*Math.pow(2,n-s)},n=function(t,e,i,s,r,n){var a,o,l,h=8*n-r-1,d=(1<<h)-1,c=d>>1,u=5960464477539062e-23*(23===r),p=s?0:n-1,f=s?1:-1,g=+(e<0||0===e&&1\/e<0);for(isNaN(e=Math.abs(e))||e===1\/0?(o=+!!isNaN(e),a=d):(a=Math.floor(Math.log(e)\/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+c>=1?e+=u\/l:e+=u*Math.pow(2,1-c),e*l>=2&&(a++,l\/=2),a+c>=d?(o=0,a=d):a+c>=1?(o=(e*l-1)*Math.pow(2,r),a+=c):(o=e*Math.pow(2,c-1)*Math.pow(2,r),a=0));r>=8;t[i+p]=255&o,p+=f,o\/=256,r-=8);for(a=a<<r|o,h+=r;h>0;t[i+p]=255&a,p+=f,a\/=256,h-=8);t[i+p-f]|=128*g};let S=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;function C(t){if(t>0x7fffffff)throw RangeError('The value \"'+t+'\" is invalid for option \"size\"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,M.prototype),e}function M(t,e,i){if(\"number\"==typeof t){if(\"string\"==typeof e)throw TypeError('The \"string\" argument must be of type string. Received type number');return P(t)}return k(t,e,i)}function k(t,e,i){if(\"string\"==typeof t){var s=t,r=e;if((\"string\"!=typeof r||\"\"===r)&&(r=\"utf8\"),!M.isEncoding(r))throw TypeError(\"Unknown encoding: \"+r);let i=0|D(s,r),n=C(i),a=n.write(s,r);return a!==i&&(n=n.slice(0,a)),n}if(ArrayBuffer.isView(t)){var n=t;if(ts(n,Uint8Array)){let t=new Uint8Array(n);return I(t.buffer,t.byteOffset,t.byteLength)}return R(n)}if(null==t)throw TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof t);if(ts(t,ArrayBuffer)||t&&ts(t.buffer,ArrayBuffer)||\"u\">typeof SharedArrayBuffer&&(ts(t,SharedArrayBuffer)||t&&ts(t.buffer,SharedArrayBuffer)))return I(t,e,i);if(\"number\"==typeof t)throw TypeError('The \"value\" argument must not be of type number. Received type number');let a=t.valueOf&&t.valueOf();if(null!=a&&a!==t)return M.from(a,e,i);let o=function(t){if(M.isBuffer(t)){let e=0|L(t.length),i=C(e);return 0===i.length||t.copy(i,0,0,e),i}return void 0!==t.length?\"number\"!=typeof t.length||function(t){return t!=t}(t.length)?C(0):R(t):\"Buffer\"===t.type&&Array.isArray(t.data)?R(t.data):void 0}(t);if(o)return o;if(\"u\">typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof t[Symbol.toPrimitive])return M.from(t[Symbol.toPrimitive](\"string\"),e,i);throw TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof t)}function T(t){if(\"number\"!=typeof t)throw TypeError('\"size\" argument must be of type number');if(t<0)throw RangeError('The value \"'+t+'\" is invalid for option \"size\"')}function P(t){return T(t),C(t<0?0:0|L(t))}function R(t){let e=t.length<0?0:0|L(t.length),i=C(e);for(let s=0;s<e;s+=1)i[s]=255&t[s];return i}function I(t,e,i){let s;if(e<0||t.byteLength<e)throw RangeError('\"offset\" is outside of buffer bounds');if(t.byteLength<e+(i||0))throw RangeError('\"length\" is outside of buffer bounds');return Object.setPrototypeOf(s=void 0===e&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,e):new Uint8Array(t,e,i),M.prototype),s}function L(t){if(t>=0x7fffffff)throw RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes\");return 0|t}M.TYPED_ARRAY_SUPPORT=function(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),!M.TYPED_ARRAY_SUPPORT&&\"u\">typeof console&&\"function\"==typeof console.error&&console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(M.prototype,\"parent\",{enumerable:!0,get:function(){if(M.isBuffer(this))return this.buffer}}),Object.defineProperty(M.prototype,\"offset\",{enumerable:!0,get:function(){if(M.isBuffer(this))return this.byteOffset}}),M.poolSize=8192,M.from=function(t,e,i){return k(t,e,i)},Object.setPrototypeOf(M.prototype,Uint8Array.prototype),Object.setPrototypeOf(M,Uint8Array),M.alloc=function(t,e,i){return(T(t),t<=0)?C(t):void 0!==e?\"string\"==typeof i?C(t).fill(e,i):C(t).fill(e):C(t)},M.allocUnsafe=function(t){return P(t)},M.allocUnsafeSlow=function(t){return P(t)};function D(t,e){if(M.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||ts(t,ArrayBuffer))return t.byteLength;if(\"string\"!=typeof t)throw TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let i=t.length,s=arguments.length>2&&!0===arguments[2];if(!s&&0===i)return 0;let r=!1;for(;;)switch(e){case\"ascii\":case\"latin1\":case\"binary\":return i;case\"utf8\":case\"utf-8\":return tt(t).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*i;case\"hex\":return i>>>1;case\"base64\":return te(t).length;default:if(r)return s?-1:tt(t).length;e=(\"\"+e).toLowerCase(),r=!0}}function F(t,e,i){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===i||i>this.length)&&(i=this.length),i<=0||(i>>>=0)<=(e>>>=0)))return\"\";for(t||(t=\"utf8\");;)switch(t){case\"hex\":return function(t,e,i){let s=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>s)&&(i=s);let r=\"\";for(let s=e;s<i;++s)r+=tr[t[s]];return r}(this,e,i);case\"utf8\":case\"utf-8\":return $(this,e,i);case\"ascii\":return function(t,e,i){let s=\"\";i=Math.min(t.length,i);for(let r=e;r<i;++r)s+=String.fromCharCode(127&t[r]);return s}(this,e,i);case\"latin1\":case\"binary\":return function(t,e,i){let s=\"\";i=Math.min(t.length,i);for(let r=e;r<i;++r)s+=String.fromCharCode(t[r]);return s}(this,e,i);case\"base64\":var n,a,o;return n=this,a=e,o=i,0===a&&o===n.length?s(n):s(n.slice(a,o));case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return function(t,e,i){let s=t.slice(e,i),r=\"\";for(let t=0;t<s.length-1;t+=2)r+=String.fromCharCode(s[t]+256*s[t+1]);return r}(this,e,i);default:if(r)throw TypeError(\"Unknown encoding: \"+t);t=(t+\"\").toLowerCase(),r=!0}}function N(t,e,i){let s=t[e];t[e]=t[i],t[i]=s}function O(t,e,i,s,r){var n;if(0===t.length)return -1;if(\"string\"==typeof i?(s=i,i=0):i>0x7fffffff?i=0x7fffffff:i<-0x80000000&&(i=-0x80000000),(n=i*=1)!=n&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length)if(r)return -1;else i=t.length-1;else if(i<0)if(!r)return -1;else i=0;if(\"string\"==typeof e&&(e=M.from(e,s)),M.isBuffer(e))return 0===e.length?-1:B(t,e,i,s,r);if(\"number\"==typeof e){if(e&=255,\"function\"==typeof Uint8Array.prototype.indexOf)if(r)return Uint8Array.prototype.indexOf.call(t,e,i);else return Uint8Array.prototype.lastIndexOf.call(t,e,i);return B(t,[e],i,s,r)}throw TypeError(\"val must be string, number or Buffer\")}function B(t,e,i,s,r){let n,a=1,o=t.length,l=e.length;if(void 0!==s&&(\"ucs2\"===(s=String(s).toLowerCase())||\"ucs-2\"===s||\"utf16le\"===s||\"utf-16le\"===s)){if(t.length<2||e.length<2)return -1;a=2,o\/=2,l\/=2,i\/=2}function h(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){let s=-1;for(n=i;n<o;n++)if(h(t,n)===h(e,-1===s?0:n-s)){if(-1===s&&(s=n),n-s+1===l)return s*a}else -1!==s&&(n-=n-s),s=-1}else for(i+l>o&&(i=o-l),n=i;n>=0;n--){let i=!0;for(let s=0;s<l;s++)if(h(t,n+s)!==h(e,s)){i=!1;break}if(i)return n}return -1}function $(t,e,i){i=Math.min(t.length,i);let s=[],r=e;for(;r<i;){let e=t[r],n=null,a=e>239?4:e>223?3:e>191?2:1;if(r+a<=i){let i,s,o,l;switch(a){case 1:e<128&&(n=e);break;case 2:(192&(i=t[r+1]))==128&&(l=(31&e)<<6|63&i)>127&&(n=l);break;case 3:i=t[r+1],s=t[r+2],(192&i)==128&&(192&s)==128&&(l=(15&e)<<12|(63&i)<<6|63&s)>2047&&(l<55296||l>57343)&&(n=l);break;case 4:i=t[r+1],s=t[r+2],o=t[r+3],(192&i)==128&&(192&s)==128&&(192&o)==128&&(l=(15&e)<<18|(63&i)<<12|(63&s)<<6|63&o)>65535&&l<1114112&&(n=l)}}null===n?(n=65533,a=1):n>65535&&(n-=65536,s.push(n>>>10&1023|55296),n=56320|1023&n),s.push(n),r+=a}var n=s;let a=n.length;if(a<=4096)return String.fromCharCode.apply(String,n);let o=\"\",l=0;for(;l<a;)o+=String.fromCharCode.apply(String,n.slice(l,l+=4096));return o}function H(t,e,i){if(t%1!=0||t<0)throw RangeError(\"offset is not uint\");if(t+e>i)throw RangeError(\"Trying to access beyond buffer length\")}function U(t,e,i,s,r,n){if(!M.isBuffer(t))throw TypeError('\"buffer\" argument must be a Buffer instance');if(e>r||e<n)throw RangeError('\"value\" argument is out of bounds');if(i+s>t.length)throw RangeError(\"Index out of range\")}function j(t,e,i,s,r){Y(e,s,r,t,i,7);let n=Number(e&BigInt(0xffffffff));t[i++]=n,n>>=8,t[i++]=n,n>>=8,t[i++]=n,n>>=8,t[i++]=n;let a=Number(e>>BigInt(32)&BigInt(0xffffffff));return t[i++]=a,a>>=8,t[i++]=a,a>>=8,t[i++]=a,a>>=8,t[i++]=a,i}function z(t,e,i,s,r){Y(e,s,r,t,i,7);let n=Number(e&BigInt(0xffffffff));t[i+7]=n,n>>=8,t[i+6]=n,n>>=8,t[i+5]=n,n>>=8,t[i+4]=n;let a=Number(e>>BigInt(32)&BigInt(0xffffffff));return t[i+3]=a,a>>=8,t[i+2]=a,a>>=8,t[i+1]=a,a>>=8,t[i]=a,i+8}function G(t,e,i,s,r,n){if(i+s>t.length||i<0)throw RangeError(\"Index out of range\")}function V(t,e,i,s,r){return e*=1,i>>>=0,r||G(t,e,i,4,34028234663852886e22,-34028234663852886e22),n(t,e,i,s,23,4),i+4}function W(t,e,i,s,r){return e*=1,i>>>=0,r||G(t,e,i,8,17976931348623157e292,-17976931348623157e292),n(t,e,i,s,52,8),i+8}M.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==M.prototype},M.compare=function(t,e){if(ts(t,Uint8Array)&&(t=M.from(t,t.offset,t.byteLength)),ts(e,Uint8Array)&&(e=M.from(e,e.offset,e.byteLength)),!M.isBuffer(t)||!M.isBuffer(e))throw TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let i=t.length,s=e.length;for(let r=0,n=Math.min(i,s);r<n;++r)if(t[r]!==e[r]){i=t[r],s=e[r];break}return i<s?-1:+(s<i)},M.isEncoding=function(t){switch(String(t).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},M.concat=function(t,e){let i;if(!Array.isArray(t))throw TypeError('\"list\" argument must be an Array of Buffers');if(0===t.length)return M.alloc(0);if(void 0===e)for(i=0,e=0;i<t.length;++i)e+=t[i].length;let s=M.allocUnsafe(e),r=0;for(i=0;i<t.length;++i){let e=t[i];if(ts(e,Uint8Array))r+e.length>s.length?(M.isBuffer(e)||(e=M.from(e)),e.copy(s,r)):Uint8Array.prototype.set.call(s,e,r);else if(M.isBuffer(e))e.copy(s,r);else throw TypeError('\"list\" argument must be an Array of Buffers');r+=e.length}return s},M.byteLength=D,M.prototype._isBuffer=!0,M.prototype.swap16=function(){let t=this.length;if(t%2!=0)throw RangeError(\"Buffer size must be a multiple of 16-bits\");for(let e=0;e<t;e+=2)N(this,e,e+1);return this},M.prototype.swap32=function(){let t=this.length;if(t%4!=0)throw RangeError(\"Buffer size must be a multiple of 32-bits\");for(let e=0;e<t;e+=4)N(this,e,e+3),N(this,e+1,e+2);return this},M.prototype.swap64=function(){let t=this.length;if(t%8!=0)throw RangeError(\"Buffer size must be a multiple of 64-bits\");for(let e=0;e<t;e+=8)N(this,e,e+7),N(this,e+1,e+6),N(this,e+2,e+5),N(this,e+3,e+4);return this},M.prototype.toString=function(){let t=this.length;return 0===t?\"\":0==arguments.length?$(this,0,t):F.apply(this,arguments)},M.prototype.toLocaleString=M.prototype.toString,M.prototype.equals=function(t){if(!M.isBuffer(t))throw TypeError(\"Argument must be a Buffer\");return this===t||0===M.compare(this,t)},M.prototype.inspect=function(){let t=\"\";return t=this.toString(\"hex\",0,50).replace(\/(.{2})\/g,\"$1 \").trim(),this.length>50&&(t+=\" ... \"),\"<Buffer \"+t+\">\"},S&&(M.prototype[S]=M.prototype.inspect),M.prototype.compare=function(t,e,i,s,r){if(ts(t,Uint8Array)&&(t=M.from(t,t.offset,t.byteLength)),!M.isBuffer(t))throw TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===s&&(s=0),void 0===r&&(r=this.length),e<0||i>t.length||s<0||r>this.length)throw RangeError(\"out of range index\");if(s>=r&&e>=i)return 0;if(s>=r)return -1;if(e>=i)return 1;if(e>>>=0,i>>>=0,s>>>=0,r>>>=0,this===t)return 0;let n=r-s,a=i-e,o=Math.min(n,a),l=this.slice(s,r),h=t.slice(e,i);for(let t=0;t<o;++t)if(l[t]!==h[t]){n=l[t],a=h[t];break}return n<a?-1:+(a<n)},M.prototype.includes=function(t,e,i){return -1!==this.indexOf(t,e,i)},M.prototype.indexOf=function(t,e,i){return O(this,t,e,i,!0)},M.prototype.lastIndexOf=function(t,e,i){return O(this,t,e,i,!1)},M.prototype.write=function(t,e,i,s){var r,n,a,o,l,h,d,c;if(void 0===e)s=\"utf8\",i=this.length,e=0;else if(void 0===i&&\"string\"==typeof e)s=e,i=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(i)?(i>>>=0,void 0===s&&(s=\"utf8\")):(s=i,i=void 0);else throw Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");let u=this.length-e;if((void 0===i||i>u)&&(i=u),t.length>0&&(i<0||e<0)||e>this.length)throw RangeError(\"Attempt to write outside buffer bounds\");s||(s=\"utf8\");let p=!1;for(;;)switch(s){case\"hex\":return function(t,e,i,s){let r;i=Number(i)||0;let n=t.length-i;s?(s=Number(s))>n&&(s=n):s=n;let a=e.length;for(s>a\/2&&(s=a\/2),r=0;r<s;++r){var o;let s=parseInt(e.substr(2*r,2),16);if((o=s)!=o)break;t[i+r]=s}return r}(this,t,e,i);case\"utf8\":case\"utf-8\":return r=e,n=i,ti(tt(t,this.length-r),this,r,n);case\"ascii\":case\"latin1\":case\"binary\":return a=e,o=i,ti(function(t){let e=[];for(let i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(t),this,a,o);case\"base64\":return l=e,h=i,ti(te(t),this,l,h);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return d=e,c=i,ti(function(t,e){let i,s,r=[];for(let n=0;n<t.length&&!((e-=2)<0);++n)s=(i=t.charCodeAt(n))>>8,r.push(i%256),r.push(s);return r}(t,this.length-d),this,d,c);default:if(p)throw TypeError(\"Unknown encoding: \"+s);s=(\"\"+s).toLowerCase(),p=!0}},M.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}},M.prototype.slice=function(t,e){let i=this.length;t=~~t,e=void 0===e?i:~~e,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),e<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t);let s=this.subarray(t,e);return Object.setPrototypeOf(s,M.prototype),s},M.prototype.readUintLE=M.prototype.readUIntLE=function(t,e,i){t>>>=0,e>>>=0,i||H(t,e,this.length);let s=this[t],r=1,n=0;for(;++n<e&&(r*=256);)s+=this[t+n]*r;return s},M.prototype.readUintBE=M.prototype.readUIntBE=function(t,e,i){t>>>=0,e>>>=0,i||H(t,e,this.length);let s=this[t+--e],r=1;for(;e>0&&(r*=256);)s+=this[t+--e]*r;return s},M.prototype.readUint8=M.prototype.readUInt8=function(t,e){return t>>>=0,e||H(t,1,this.length),this[t]},M.prototype.readUint16LE=M.prototype.readUInt16LE=function(t,e){return t>>>=0,e||H(t,2,this.length),this[t]|this[t+1]<<8},M.prototype.readUint16BE=M.prototype.readUInt16BE=function(t,e){return t>>>=0,e||H(t,2,this.length),this[t]<<8|this[t+1]},M.prototype.readUint32LE=M.prototype.readUInt32LE=function(t,e){return t>>>=0,e||H(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},M.prototype.readUint32BE=M.prototype.readUInt32BE=function(t,e){return t>>>=0,e||H(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},M.prototype.readBigUInt64LE=tn(function(t){Q(t>>>=0,\"offset\");let e=this[t],i=this[t+7];(void 0===e||void 0===i)&&J(t,this.length-8);let s=e+256*this[++t]+65536*this[++t]+0x1000000*this[++t],r=this[++t]+256*this[++t]+65536*this[++t]+0x1000000*i;return BigInt(s)+(BigInt(r)<<BigInt(32))}),M.prototype.readBigUInt64BE=tn(function(t){Q(t>>>=0,\"offset\");let e=this[t],i=this[t+7];(void 0===e||void 0===i)&&J(t,this.length-8);let s=0x1000000*e+65536*this[++t]+256*this[++t]+this[++t],r=0x1000000*this[++t]+65536*this[++t]+256*this[++t]+i;return(BigInt(s)<<BigInt(32))+BigInt(r)}),M.prototype.readIntLE=function(t,e,i){t>>>=0,e>>>=0,i||H(t,e,this.length);let s=this[t],r=1,n=0;for(;++n<e&&(r*=256);)s+=this[t+n]*r;return s>=(r*=128)&&(s-=Math.pow(2,8*e)),s},M.prototype.readIntBE=function(t,e,i){t>>>=0,e>>>=0,i||H(t,e,this.length);let s=e,r=1,n=this[t+--s];for(;s>0&&(r*=256);)n+=this[t+--s]*r;return n>=(r*=128)&&(n-=Math.pow(2,8*e)),n},M.prototype.readInt8=function(t,e){return(t>>>=0,e||H(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},M.prototype.readInt16LE=function(t,e){t>>>=0,e||H(t,2,this.length);let i=this[t]|this[t+1]<<8;return 32768&i?0xffff0000|i:i},M.prototype.readInt16BE=function(t,e){t>>>=0,e||H(t,2,this.length);let i=this[t+1]|this[t]<<8;return 32768&i?0xffff0000|i:i},M.prototype.readInt32LE=function(t,e){return t>>>=0,e||H(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},M.prototype.readInt32BE=function(t,e){return t>>>=0,e||H(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},M.prototype.readBigInt64LE=tn(function(t){Q(t>>>=0,\"offset\");let e=this[t],i=this[t+7];return(void 0===e||void 0===i)&&J(t,this.length-8),(BigInt(this[t+4]+256*this[t+5]+65536*this[t+6]+(i<<24))<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+0x1000000*this[++t])}),M.prototype.readBigInt64BE=tn(function(t){Q(t>>>=0,\"offset\");let e=this[t],i=this[t+7];return(void 0===e||void 0===i)&&J(t,this.length-8),(BigInt((e<<24)+65536*this[++t]+256*this[++t]+this[++t])<<BigInt(32))+BigInt(0x1000000*this[++t]+65536*this[++t]+256*this[++t]+i)}),M.prototype.readFloatLE=function(t,e){return t>>>=0,e||H(t,4,this.length),r(this,t,!0,23,4)},M.prototype.readFloatBE=function(t,e){return t>>>=0,e||H(t,4,this.length),r(this,t,!1,23,4)},M.prototype.readDoubleLE=function(t,e){return t>>>=0,e||H(t,8,this.length),r(this,t,!0,52,8)},M.prototype.readDoubleBE=function(t,e){return t>>>=0,e||H(t,8,this.length),r(this,t,!1,52,8)},M.prototype.writeUintLE=M.prototype.writeUIntLE=function(t,e,i,s){if(t*=1,e>>>=0,i>>>=0,!s){let s=Math.pow(2,8*i)-1;U(this,t,e,i,s,0)}let r=1,n=0;for(this[e]=255&t;++n<i&&(r*=256);)this[e+n]=t\/r&255;return e+i},M.prototype.writeUintBE=M.prototype.writeUIntBE=function(t,e,i,s){if(t*=1,e>>>=0,i>>>=0,!s){let s=Math.pow(2,8*i)-1;U(this,t,e,i,s,0)}let r=i-1,n=1;for(this[e+r]=255&t;--r>=0&&(n*=256);)this[e+r]=t\/n&255;return e+i},M.prototype.writeUint8=M.prototype.writeUInt8=function(t,e,i){return t*=1,e>>>=0,i||U(this,t,e,1,255,0),this[e]=255&t,e+1},M.prototype.writeUint16LE=M.prototype.writeUInt16LE=function(t,e,i){return t*=1,e>>>=0,i||U(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},M.prototype.writeUint16BE=M.prototype.writeUInt16BE=function(t,e,i){return t*=1,e>>>=0,i||U(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},M.prototype.writeUint32LE=M.prototype.writeUInt32LE=function(t,e,i){return t*=1,e>>>=0,i||U(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},M.prototype.writeUint32BE=M.prototype.writeUInt32BE=function(t,e,i){return t*=1,e>>>=0,i||U(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},M.prototype.writeBigUInt64LE=tn(function(t,e=0){return j(this,t,e,BigInt(0),BigInt(\"0xffffffffffffffff\"))}),M.prototype.writeBigUInt64BE=tn(function(t,e=0){return z(this,t,e,BigInt(0),BigInt(\"0xffffffffffffffff\"))}),M.prototype.writeIntLE=function(t,e,i,s){if(t*=1,e>>>=0,!s){let s=Math.pow(2,8*i-1);U(this,t,e,i,s-1,-s)}let r=0,n=1,a=0;for(this[e]=255&t;++r<i&&(n*=256);)t<0&&0===a&&0!==this[e+r-1]&&(a=1),this[e+r]=(t\/n|0)-a&255;return e+i},M.prototype.writeIntBE=function(t,e,i,s){if(t*=1,e>>>=0,!s){let s=Math.pow(2,8*i-1);U(this,t,e,i,s-1,-s)}let r=i-1,n=1,a=0;for(this[e+r]=255&t;--r>=0&&(n*=256);)t<0&&0===a&&0!==this[e+r+1]&&(a=1),this[e+r]=(t\/n|0)-a&255;return e+i},M.prototype.writeInt8=function(t,e,i){return t*=1,e>>>=0,i||U(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},M.prototype.writeInt16LE=function(t,e,i){return t*=1,e>>>=0,i||U(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},M.prototype.writeInt16BE=function(t,e,i){return t*=1,e>>>=0,i||U(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},M.prototype.writeInt32LE=function(t,e,i){return t*=1,e>>>=0,i||U(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},M.prototype.writeInt32BE=function(t,e,i){return t*=1,e>>>=0,i||U(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},M.prototype.writeBigInt64LE=tn(function(t,e=0){return j(this,t,e,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))}),M.prototype.writeBigInt64BE=tn(function(t,e=0){return z(this,t,e,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))}),M.prototype.writeFloatLE=function(t,e,i){return V(this,t,e,!0,i)},M.prototype.writeFloatBE=function(t,e,i){return V(this,t,e,!1,i)},M.prototype.writeDoubleLE=function(t,e,i){return W(this,t,e,!0,i)},M.prototype.writeDoubleBE=function(t,e,i){return W(this,t,e,!1,i)},M.prototype.copy=function(t,e,i,s){if(!M.isBuffer(t))throw TypeError(\"argument should be a Buffer\");if(i||(i=0),s||0===s||(s=this.length),e>=t.length&&(e=t.length),e||(e=0),s>0&&s<i&&(s=i),s===i||0===t.length||0===this.length)return 0;if(e<0)throw RangeError(\"targetStart out of bounds\");if(i<0||i>=this.length)throw RangeError(\"Index out of range\");if(s<0)throw RangeError(\"sourceEnd out of bounds\");s>this.length&&(s=this.length),t.length-e<s-i&&(s=t.length-e+i);let r=s-i;return this===t&&\"function\"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,i,s):Uint8Array.prototype.set.call(t,this.subarray(i,s),e),r},M.prototype.fill=function(t,e,i,s){let r;if(\"string\"==typeof t){if(\"string\"==typeof e?(s=e,e=0,i=this.length):\"string\"==typeof i&&(s=i,i=this.length),void 0!==s&&\"string\"!=typeof s)throw TypeError(\"encoding must be a string\");if(\"string\"==typeof s&&!M.isEncoding(s))throw TypeError(\"Unknown encoding: \"+s);if(1===t.length){let e=t.charCodeAt(0);(\"utf8\"===s&&e<128||\"latin1\"===s)&&(t=e)}}else\"number\"==typeof t?t&=255:\"boolean\"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<i)throw RangeError(\"Out of range index\");if(i<=e)return this;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),\"number\"==typeof t)for(r=e;r<i;++r)this[r]=t;else{let n=M.isBuffer(t)?t:M.from(t,s),a=n.length;if(0===a)throw TypeError('The value \"'+t+'\" is invalid for argument \"value\"');for(r=0;r<i-e;++r)this[r+e]=n[r%a]}return this};let q={};function X(t,e,i){q[t]=class extends i{constructor(){super(),Object.defineProperty(this,\"message\",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,\"code\",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function K(t){let e=\"\",i=t.length,s=+(\"-\"===t[0]);for(;i>=s+4;i-=3)e=`_${t.slice(i-3,i)}${e}`;return`${t.slice(0,i)}${e}`}function Y(t,e,i,s,r,n){if(t>i||t<e){let s,r=\"bigint\"==typeof e?\"n\":\"\";throw s=n>3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${(n+1)*8}${r}`:`>= -(2${r} ** ${(n+1)*8-1}${r}) and < 2 ** ${(n+1)*8-1}${r}`:`>= ${e}${r} and <= ${i}${r}`,new q.ERR_OUT_OF_RANGE(\"value\",s,t)}Q(r,\"offset\"),(void 0===s[r]||void 0===s[r+n])&&J(r,s.length-(n+1))}function Q(t,e){if(\"number\"!=typeof t)throw new q.ERR_INVALID_ARG_TYPE(e,\"number\",t)}function J(t,e,i){if(Math.floor(t)!==t)throw Q(t,i),new q.ERR_OUT_OF_RANGE(i||\"offset\",\"an integer\",t);if(e<0)throw new q.ERR_BUFFER_OUT_OF_BOUNDS;throw new q.ERR_OUT_OF_RANGE(i||\"offset\",`>= ${+!!i} and <= ${e}`,t)}X(\"ERR_BUFFER_OUT_OF_BOUNDS\",function(t){return t?`${t} is outside of buffer bounds`:\"Attempt to access memory outside buffer bounds\"},RangeError),X(\"ERR_INVALID_ARG_TYPE\",function(t,e){return`The \"${t}\" argument must be of type number. Received type ${typeof e}`},TypeError),X(\"ERR_OUT_OF_RANGE\",function(t,e,i){let s=`The value of \"${t}\" is out of range.`,r=i;return Number.isInteger(i)&&Math.abs(i)>0x100000000?r=K(String(i)):\"bigint\"==typeof i&&(r=String(i),(i>BigInt(2)**BigInt(32)||i<-(BigInt(2)**BigInt(32)))&&(r=K(r)),r+=\"n\"),s+=` It must be ${e}. Received ${r}`},RangeError);let Z=\/[^+\/0-9A-Za-z-_]\/g;function tt(t,e){let i;e=e||1\/0;let s=t.length,r=null,n=[];for(let a=0;a<s;++a){if((i=t.charCodeAt(a))>55295&&i<57344){if(!r){if(i>56319||a+1===s){(e-=3)>-1&&n.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&n.push(239,191,189),r=i;continue}i=(r-55296<<10|i-56320)+65536}else r&&(e-=3)>-1&&n.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;n.push(i)}else if(i<2048){if((e-=2)<0)break;n.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;n.push(i>>12|224,i>>6&63|128,63&i|128)}else if(i<1114112){if((e-=4)<0)break;n.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else throw Error(\"Invalid code point\")}return n}function te(t){return function(t){var e,i,s=E(t),r=s[0],n=s[1],a=new v((r+n)*3\/4-n),o=0,l=n>0?r-4:r;for(i=0;i<l;i+=4)e=A[t.charCodeAt(i)]<<18|A[t.charCodeAt(i+1)]<<12|A[t.charCodeAt(i+2)]<<6|A[t.charCodeAt(i+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=255&e;return 2===n&&(e=A[t.charCodeAt(i)]<<2|A[t.charCodeAt(i+1)]>>4,a[o++]=255&e),1===n&&(e=A[t.charCodeAt(i)]<<10|A[t.charCodeAt(i+1)]<<4|A[t.charCodeAt(i+2)]>>2,a[o++]=e>>8&255,a[o++]=255&e),a}(function(t){if((t=(t=t.split(\"=\")[0]).trim().replace(Z,\"\")).length<2)return\"\";for(;t.length%4!=0;)t+=\"=\";return t}(t))}function ti(t,e,i,s){let r;for(r=0;r<s&&!(r+i>=e.length)&&!(r>=t.length);++r)e[r+i]=t[r];return r}function ts(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}let tr=function(){let t=\"0123456789abcdef\",e=Array(256);for(let i=0;i<16;++i){let s=16*i;for(let r=0;r<16;++r)e[s+r]=t[i]+t[r]}return e}();function tn(t){return\"u\"<typeof BigInt?ta:t}function ta(){throw Error(\"BigInt not supported\")}var to={d:(t,e)=>{for(var i in e)to.o(e,i)&&!to.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},tl=globalThis.pdfjsLib={};to.d(tl,{AbortException:()=>tL,AnnotationEditorLayer:()=>sw,AnnotationEditorParamsType:()=>tp,AnnotationEditorType:()=>tu,AnnotationEditorUIManager:()=>el,AnnotationLayer:()=>si,AnnotationMode:()=>tc,ColorPicker:()=>su,DOMSVGFactory:()=>iF,DrawLayer:()=>s_,FeatureTest:()=>tO,GlobalWorkerOptions:()=>eQ,ImageKind:()=>tg,InvalidPDFException:()=>tT,MissingPDFException:()=>tP,OPS:()=>tb,OutputScale:()=>t9,PDFDataRangeTransport:()=>iA,PDFDateString:()=>t3,PDFWorker:()=>ix,PasswordResponses:()=>ty,PermissionFlag:()=>tf,PixelsPerInch:()=>tV,RenderingCancelledException:()=>tX,TextLayer:()=>ic,TouchManager:()=>ed,UnexpectedResponseException:()=>tR,Util:()=>t$,VerbosityLevel:()=>tm,XfaLayer:()=>iN,build:()=>iP,createValidAbsoluteUrl:()=>tE,fetchData:()=>tW,getDocument:()=>im,getFilenameFromUrl:()=>tQ,getPdfFilenameFromUrl:()=>tJ,getXfaPageViewport:()=>t5,isDataScheme:()=>tK,isPdfFile:()=>tY,noContextMenu:()=>t1,normalizeUnicode:()=>tj,setLayerDimensions:()=>t7,shadow:()=>tS,stopEvent:()=>t2,version:()=>iT});let th=[1,0,0,1,0,0],td=[.001,0,0,.001,0,0],tc={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},tu={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15},tp={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_DEFAULT_COLOR:32,HIGHLIGHT_THICKNESS:33,HIGHLIGHT_FREE:34,HIGHLIGHT_SHOW_ALL:35,DRAW_STEP:41},tf={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},tg={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},tm={ERRORS:0,WARNINGS:1,INFOS:5},tb={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,setStrokeTransparent:92,setFillTransparent:93},ty={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},tA=tm.WARNINGS;function tv(t){tA>=tm.INFOS&&console.log(`Info: ${t}`)}function tw(t){tA>=tm.WARNINGS&&console.log(`Warning: ${t}`)}function t_(t){throw Error(t)}function tx(t,e){t||t_(e)}function tE(t,e=null,i=null){if(!t)return null;try{if(i&&\"string\"==typeof t){if(i.addDefaultProtocol&&t.startsWith(\"www.\")){let e=t.match(\/\\.\/g);e?.length>=2&&(t=`http:\/\/${t}`)}if(i.tryConvertEncoding)try{var s;s=t,t=decodeURIComponent(escape(s))}catch{}}let r=e?new URL(t,e):new URL(t);if(function(t){switch(t?.protocol){case\"http:\":case\"https:\":case\"ftp:\":case\"mailto:\":case\"tel:\":return!0;default:return!1}}(r))return r}catch{}return null}function tS(t,e,i,s=!1){return Object.defineProperty(t,e,{value:i,enumerable:!s,configurable:!0,writable:!1}),i}let tC=function(){function t(t,e){this.message=t,this.name=e}return t.prototype=Error(),t.constructor=t,t}();class tM extends tC{constructor(t,e){super(t,\"PasswordException\"),this.code=e}}class tk extends tC{constructor(t,e){super(t,\"UnknownErrorException\"),this.details=e}}class tT extends tC{constructor(t){super(t,\"InvalidPDFException\")}}class tP extends tC{constructor(t){super(t,\"MissingPDFException\")}}class tR extends tC{constructor(t,e){super(t,\"UnexpectedResponseException\"),this.status=e}}class tI extends tC{constructor(t){super(t,\"FormatError\")}}class tL extends tC{constructor(t){super(t,\"AbortException\")}}function tD(t){\"object\"==typeof t&&void 0!==t?.length||t_(\"Invalid argument for bytesToString\");let e=t.length;if(e<8192)return String.fromCharCode.apply(null,t);let i=[];for(let s=0;s<e;s+=8192){let r=Math.min(s+8192,e),n=t.subarray(s,r);i.push(String.fromCharCode.apply(null,n))}return i.join(\"\")}function tF(t){\"string\"!=typeof t&&t_(\"Invalid argument for stringToBytes\");let e=t.length,i=new Uint8Array(e);for(let s=0;s<e;++s)i[s]=255&t.charCodeAt(s);return i}function tN(t){let e=Object.create(null);for(let[i,s]of t)e[i]=s;return e}class tO{static get isLittleEndian(){let t;return tS(this,\"isLittleEndian\",((t=new Uint8Array(4))[0]=1,1===new Uint32Array(t.buffer,0,1)[0]))}static get isEvalSupported(){return tS(this,\"isEvalSupported\",function(){try{return Function(\"\"),!0}catch{return!1}}())}static get isOffscreenCanvasSupported(){return tS(this,\"isOffscreenCanvasSupported\",\"u\">typeof OffscreenCanvas)}static get isImageDecoderSupported(){return tS(this,\"isImageDecoderSupported\",\"u\">typeof ImageDecoder)}static get platform(){return\"u\">typeof navigator&&\"string\"==typeof navigator?.platform?tS(this,\"platform\",{isMac:navigator.platform.includes(\"Mac\"),isWindows:navigator.platform.includes(\"Win\"),isFirefox:\"string\"==typeof navigator?.userAgent&&navigator.userAgent.includes(\"Firefox\")}):tS(this,\"platform\",{isMac:!1,isWindows:!1,isFirefox:!1})}static get isCSSRoundSupported(){return tS(this,\"isCSSRoundSupported\",globalThis.CSS?.supports?.(\"width: round(1.5px, 1px)\"))}}let tB=Array.from(Array(256).keys(),t=>t.toString(16).padStart(2,\"0\"));class t${static makeHexColor(t,e,i){return`#${tB[t]}${tB[e]}${tB[i]}`}static scaleMinMax(t,e){let i;t[0]?(t[0]<0&&(i=e[0],e[0]=e[2],e[2]=i),e[0]*=t[0],e[2]*=t[0],t[3]<0&&(i=e[1],e[1]=e[3],e[3]=i),e[1]*=t[3],e[3]*=t[3]):(i=e[0],e[0]=e[1],e[1]=i,i=e[2],e[2]=e[3],e[3]=i,t[1]<0&&(i=e[1],e[1]=e[3],e[3]=i),e[1]*=t[1],e[3]*=t[1],t[2]<0&&(i=e[0],e[0]=e[2],e[2]=i),e[0]*=t[2],e[2]*=t[2]),e[0]+=t[4],e[1]+=t[5],e[2]+=t[4],e[3]+=t[5]}static transform(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}static applyTransform(t,e){return[t[0]*e[0]+t[1]*e[2]+e[4],t[0]*e[1]+t[1]*e[3]+e[5]]}static applyInverseTransform(t,e){let i=e[0]*e[3]-e[1]*e[2];return[(t[0]*e[3]-t[1]*e[2]+e[2]*e[5]-e[4]*e[3])\/i,(-t[0]*e[1]+t[1]*e[0]+e[4]*e[1]-e[5]*e[0])\/i]}static getAxialAlignedBoundingBox(t,e){let i=this.applyTransform(t,e),s=this.applyTransform(t.slice(2,4),e),r=this.applyTransform([t[0],t[3]],e),n=this.applyTransform([t[2],t[1]],e);return[Math.min(i[0],s[0],r[0],n[0]),Math.min(i[1],s[1],r[1],n[1]),Math.max(i[0],s[0],r[0],n[0]),Math.max(i[1],s[1],r[1],n[1])]}static inverseTransform(t){let e=t[0]*t[3]-t[1]*t[2];return[t[3]\/e,-t[1]\/e,-t[2]\/e,t[0]\/e,(t[2]*t[5]-t[4]*t[3])\/e,(t[4]*t[1]-t[5]*t[0])\/e]}static singularValueDecompose2dScale(t){let e=[t[0],t[2],t[1],t[3]],i=t[0]*e[0]+t[1]*e[2],s=t[0]*e[1]+t[1]*e[3],r=t[2]*e[0]+t[3]*e[2],n=t[2]*e[1]+t[3]*e[3],a=(i+n)\/2,o=Math.sqrt((i+n)**2-4*(i*n-r*s))\/2;return[Math.sqrt(a+o||1),Math.sqrt(a-o||1)]}static normalizeRect(t){let e=t.slice(0);return t[0]>t[2]&&(e[0]=t[2],e[2]=t[0]),t[1]>t[3]&&(e[1]=t[3],e[3]=t[1]),e}static intersect(t,e){let i=Math.max(Math.min(t[0],t[2]),Math.min(e[0],e[2])),s=Math.min(Math.max(t[0],t[2]),Math.max(e[0],e[2]));if(i>s)return null;let r=Math.max(Math.min(t[1],t[3]),Math.min(e[1],e[3])),n=Math.min(Math.max(t[1],t[3]),Math.max(e[1],e[3]));return r>n?null:[i,r,s,n]}static #t(t,e,i,s,r,n,a,o,l,h){if(l<=0||l>=1)return;let d=1-l,c=l*l,u=c*l,p=d*(d*(d*t+3*l*e)+3*c*i)+u*s,f=d*(d*(d*r+3*l*n)+3*c*a)+u*o;h[0]=Math.min(h[0],p),h[1]=Math.min(h[1],f),h[2]=Math.max(h[2],p),h[3]=Math.max(h[3],f)}static #e(t,e,i,s,r,n,a,o,l,h,d,c){if(1e-12>Math.abs(l)){Math.abs(h)>=1e-12&&this.#t(t,e,i,s,r,n,a,o,-d\/h,c);return}let u=h**2-4*d*l;if(u<0)return;let p=Math.sqrt(u),f=2*l;this.#t(t,e,i,s,r,n,a,o,(-h+p)\/f,c),this.#t(t,e,i,s,r,n,a,o,(-h-p)\/f,c)}static bezierBoundingBox(t,e,i,s,r,n,a,o,l){return l?(l[0]=Math.min(l[0],t,a),l[1]=Math.min(l[1],e,o),l[2]=Math.max(l[2],t,a),l[3]=Math.max(l[3],e,o)):l=[Math.min(t,a),Math.min(e,o),Math.max(t,a),Math.max(e,o)],this.#e(t,i,r,a,e,s,n,o,3*(3*(i-r)-t+a),6*(t-2*i+r),3*(i-t),l),this.#e(t,i,r,a,e,s,n,o,3*(3*(s-n)-e+o),6*(e-2*s+n),3*(s-e),l),l}}let tH=null,tU=null;function tj(t){return tH||(tH=\/([\\u00a0\\u00b5\\u037e\\u0eb3\\u2000-\\u200a\\u202f\\u2126\\ufb00-\\ufb04\\ufb06\\ufb20-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40-\\ufb41\\ufb43-\\ufb44\\ufb46-\\ufba1\\ufba4-\\ufba9\\ufbae-\\ufbb1\\ufbd3-\\ufbdc\\ufbde-\\ufbe7\\ufbea-\\ufbf8\\ufbfc-\\ufbfd\\ufc00-\\ufc5d\\ufc64-\\ufcf1\\ufcf5-\\ufd3d\\ufd88\\ufdf4\\ufdfa-\\ufdfb\\ufe71\\ufe77\\ufe79\\ufe7b\\ufe7d]+)|(\\ufb05+)\/gu,tU=new Map([[\"\ufb05\",\"\u017ft\"]])),t.replaceAll(tH,(t,e,i)=>e?e.normalize(\"NFKC\"):tU.get(i))}let tz=\"pdfjs_internal_id_\";\"function\"!=typeof Promise.try&&(Promise.try=function(t,...e){return new Promise(i=>{i(t(...e))})});let tG=\"http:\/\/www.w3.org\/2000\/svg\";class tV{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS\/this.PDF}async function tW(t,e=\"text\"){if(t0(t,document.baseURI)){let i=await fetch(t);if(!i.ok)throw Error(i.statusText);switch(e){case\"arraybuffer\":return i.arrayBuffer();case\"blob\":return i.blob();case\"json\":return i.json()}return i.text()}return new Promise((i,s)=>{let r=new XMLHttpRequest;r.open(\"GET\",t,!0),r.responseType=e,r.onreadystatechange=()=>{if(r.readyState===XMLHttpRequest.DONE)if(200!==r.status&&0!==r.status)s(Error(r.statusText));else{switch(e){case\"arraybuffer\":case\"blob\":case\"json\":i(r.response);return}i(r.responseText)}},r.send(null)})}class tq{constructor({viewBox:t,userUnit:e,scale:i,rotation:s,offsetX:r=0,offsetY:n=0,dontFlip:a=!1}){let o,l,h,d,c,u,p,f;this.viewBox=t,this.userUnit=e,this.scale=i,this.rotation=s,this.offsetX=r,this.offsetY=n,i*=e;const g=(t[2]+t[0])\/2,m=(t[3]+t[1])\/2;switch((s%=360)<0&&(s+=360),s){case 180:o=-1,l=0,h=0,d=1;break;case 90:o=0,l=1,h=1,d=0;break;case 270:o=0,l=-1,h=-1,d=0;break;case 0:o=1,l=0,h=0,d=-1;break;default:throw Error(\"PageViewport: Invalid rotation, must be a multiple of 90 degrees.\")}a&&(h=-h,d=-d),0===o?(c=Math.abs(m-t[1])*i+r,u=Math.abs(g-t[0])*i+n,p=(t[3]-t[1])*i,f=(t[2]-t[0])*i):(c=Math.abs(g-t[0])*i+r,u=Math.abs(m-t[1])*i+n,p=(t[2]-t[0])*i,f=(t[3]-t[1])*i),this.transform=[o*i,l*i,h*i,d*i,c-o*i*g-h*i*m,u-l*i*g-d*i*m],this.width=p,this.height=f}get rawDims(){let{userUnit:t,viewBox:e}=this,i=e.map(e=>e*t);return tS(this,\"rawDims\",{pageWidth:i[2]-i[0],pageHeight:i[3]-i[1],pageX:i[0],pageY:i[1]})}clone({scale:t=this.scale,rotation:e=this.rotation,offsetX:i=this.offsetX,offsetY:s=this.offsetY,dontFlip:r=!1}={}){return new tq({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:t,rotation:e,offsetX:i,offsetY:s,dontFlip:r})}convertToViewportPoint(t,e){return t$.applyTransform([t,e],this.transform)}convertToViewportRectangle(t){let e=t$.applyTransform([t[0],t[1]],this.transform),i=t$.applyTransform([t[2],t[3]],this.transform);return[e[0],e[1],i[0],i[1]]}convertToPdfPoint(t,e){return t$.applyInverseTransform([t,e],this.transform)}}class tX extends tC{constructor(t,e=0){super(t,\"RenderingCancelledException\"),this.extraDelay=e}}function tK(t){let e=t.length,i=0;for(;i<e&&\"\"===t[i].trim();)i++;return\"data:\"===t.substring(i,i+5).toLowerCase()}function tY(t){return\"string\"==typeof t&&\/\\.pdf$\/i.test(t)}function tQ(t){return[t]=t.split(\/[#?]\/,1),t.substring(t.lastIndexOf(\"\/\")+1)}function tJ(t,e=\"document.pdf\"){if(\"string\"!=typeof t)return e;if(tK(t))return tw('getPdfFilenameFromUrl: ignore \"data:\"-URL for performance reasons.'),e;let i=\/[^\/?#=]+\\.pdf\\b(?!.*\\.pdf\\b)\/i,s=\/^(?:(?:[^:]+:)?\\\/\\\/[^\/]+)?([^?#]*)(\\?[^#]*)?(#.*)?$\/.exec(t),r=i.exec(s[1])||i.exec(s[2])||i.exec(s[3]);if(r&&(r=r[0]).includes(\"%\"))try{r=i.exec(decodeURIComponent(r))[0]}catch{}return r||e}class tZ{started=Object.create(null);times=[];time(t){t in this.started&&tw(`Timer is already running for ${t}`),this.started[t]=Date.now()}timeEnd(t){t in this.started||tw(`Timer has not been started for ${t}`),this.times.push({name:t,start:this.started[t],end:Date.now()}),delete this.started[t]}toString(){let t=[],e=0;for(let{name:t}of this.times)e=Math.max(t.length,e);for(let{name:i,start:s,end:r}of this.times)t.push(`${i.padEnd(e)} ${r-s}ms\n`);return t.join(\"\")}}function t0(t,e){try{let{protocol:i}=e?new URL(t,e):new URL(t);return\"http:\"===i||\"https:\"===i}catch{return!1}}function t1(t){t.preventDefault()}function t2(t){t.preventDefault(),t.stopPropagation()}class t3{static #i;static toDateObject(t){if(!t||\"string\"!=typeof t)return null;this.#i||=RegExp(\"^D:(\\\\d{4})(\\\\d{2})?(\\\\d{2})?(\\\\d{2})?(\\\\d{2})?(\\\\d{2})?([Z|+|-])?(\\\\d{2})?'?(\\\\d{2})?'?\");let e=this.#i.exec(t);if(!e)return null;let i=parseInt(e[1],10),s=parseInt(e[2],10);s=s>=1&&s<=12?s-1:0;let r=parseInt(e[3],10);r=r>=1&&r<=31?r:1;let n=parseInt(e[4],10);n=n>=0&&n<=23?n:0;let a=parseInt(e[5],10);a=a>=0&&a<=59?a:0;let o=parseInt(e[6],10);o=o>=0&&o<=59?o:0;let l=e[7]||\"Z\",h=parseInt(e[8],10);h=h>=0&&h<=23?h:0;let d=parseInt(e[9],10)||0;return d=d>=0&&d<=59?d:0,\"-\"===l?(n+=h,a+=d):\"+\"===l&&(n-=h,a-=d),new Date(Date.UTC(i,s,r,n,a,o))}}function t5(t,{scale:e=1,rotation:i=0}){let{width:s,height:r}=t.attributes.style;return new tq({viewBox:[0,0,parseInt(s),parseInt(r)],userUnit:1,scale:e,rotation:i})}function t6(t){if(t.startsWith(\"#\")){let e=parseInt(t.slice(1),16);return[(0xff0000&e)>>16,(65280&e)>>8,255&e]}return t.startsWith(\"rgb(\")?t.slice(4,-1).split(\",\").map(t=>parseInt(t)):t.startsWith(\"rgba(\")?t.slice(5,-1).split(\",\").map(t=>parseInt(t)).slice(0,3):(tw(`Not a valid color format: \"${t}\"`),[0,0,0])}function t8(t){let{a:e,b:i,c:s,d:r,e:n,f:a}=t.getTransform();return[e,i,s,r,n,a]}function t4(t){let{a:e,b:i,c:s,d:r,e:n,f:a}=t.getTransform().invertSelf();return[e,i,s,r,n,a]}function t7(t,e,i=!1,s=!0){if(e instanceof tq){let{pageWidth:s,pageHeight:r}=e.rawDims,{style:n}=t,a=tO.isCSSRoundSupported,o=`var(--scale-factor) * ${s}px`,l=`var(--scale-factor) * ${r}px`,h=a?`round(down, ${o}, var(--scale-round-x, 1px))`:`calc(${o})`,d=a?`round(down, ${l}, var(--scale-round-y, 1px))`:`calc(${l})`;i&&e.rotation%180!=0?(n.width=d,n.height=h):(n.width=h,n.height=d)}s&&t.setAttribute(\"data-main-rotation\",e.rotation)}class t9{constructor(){const t=window.devicePixelRatio||1;this.sx=t,this.sy=t}get scaled(){return 1!==this.sx||1!==this.sy}get symmetric(){return this.sx===this.sy}}class et{#s=null;#r=null;#n;#a=null;#o=null;static #l=null;constructor(t){this.#n=t,et.#l||=Object.freeze({freetext:\"pdfjs-editor-remove-freetext-button\",highlight:\"pdfjs-editor-remove-highlight-button\",ink:\"pdfjs-editor-remove-ink-button\",stamp:\"pdfjs-editor-remove-stamp-button\"})}render(){let t=this.#s=document.createElement(\"div\");t.classList.add(\"editToolbar\",\"hidden\"),t.setAttribute(\"role\",\"toolbar\");let e=this.#n._uiManager._signal;t.addEventListener(\"contextmenu\",t1,{signal:e}),t.addEventListener(\"pointerdown\",et.#h,{signal:e});let i=this.#a=document.createElement(\"div\");i.className=\"buttons\",t.append(i);let s=this.#n.toolbarPosition;if(s){let{style:e}=t;e.insetInlineEnd=100*(\"ltr\"===this.#n._uiManager.direction?1-s[0]:s[0])+\"%\",e.top=`calc(${100*s[1]}% + var(--editor-toolbar-vert-offset))`}return this.#d(),t}get div(){return this.#s}static #h(t){t.stopPropagation()}#c(t){this.#n._focusEventsAllowed=!1,t2(t)}#u(t){this.#n._focusEventsAllowed=!0,t2(t)}#p(t){let e=this.#n._uiManager._signal;t.addEventListener(\"focusin\",this.#c.bind(this),{capture:!0,signal:e}),t.addEventListener(\"focusout\",this.#u.bind(this),{capture:!0,signal:e}),t.addEventListener(\"contextmenu\",t1,{signal:e})}hide(){this.#s.classList.add(\"hidden\"),this.#r?.hideDropdown()}show(){this.#s.classList.remove(\"hidden\"),this.#o?.shown()}#d(){let{editorType:t,_uiManager:e}=this.#n,i=document.createElement(\"button\");i.className=\"delete\",i.tabIndex=0,i.setAttribute(\"data-l10n-id\",et.#l[t]),this.#p(i),i.addEventListener(\"click\",t=>{e.delete()},{signal:e._signal}),this.#a.append(i)}get #f(){let t=document.createElement(\"div\");return t.className=\"divider\",t}async addAltText(t){let e=await t.render();this.#p(e),this.#a.prepend(e,this.#f),this.#o=t}addColorPicker(t){this.#r=t;let e=t.renderButton();this.#p(e),this.#a.prepend(e,this.#f)}remove(){this.#s.remove(),this.#r?.destroy(),this.#r=null}}class ee{#a=null;#s=null;#g;constructor(t){this.#g=t}#m(){let t=this.#s=document.createElement(\"div\");t.className=\"editToolbar\",t.setAttribute(\"role\",\"toolbar\"),t.addEventListener(\"contextmenu\",t1,{signal:this.#g._signal});let e=this.#a=document.createElement(\"div\");return e.className=\"buttons\",t.append(e),this.#b(),t}#y(t,e){let i=0,s=0;for(let r of t){let t=r.y+r.height;if(t<i)continue;let n=r.x+(e?r.width:0);t>i?(s=n,i=t):e?n>s&&(s=n):n<s&&(s=n)}return[e?1-s:s,i]}show(t,e,i){let[s,r]=this.#y(e,i),{style:n}=this.#s||=this.#m();t.append(this.#s),n.insetInlineEnd=100*s+\"%\",n.top=`calc(${100*r}% + var(--editor-toolbar-vert-offset))`}hide(){this.#s.remove()}#b(){let t=document.createElement(\"button\");t.className=\"highlightButton\",t.tabIndex=0,t.setAttribute(\"data-l10n-id\",\"pdfjs-highlight-floating-button1\");let e=document.createElement(\"span\");t.append(e),e.className=\"visuallyHidden\",e.setAttribute(\"data-l10n-id\",\"pdfjs-highlight-floating-button-label\");let i=this.#g._signal;t.addEventListener(\"contextmenu\",t1,{signal:i}),t.addEventListener(\"click\",()=>{this.#g.highlightSelection(\"floating_button\")},{signal:i}),this.#a.append(t)}}function ei(t,e,i){for(let s of i)e.addEventListener(s,t[s].bind(t))}class es{#A=0;get id(){return\"pdfjs_internal_editor_\"+this.#A++}}class er{#v=(function(){if(\"function\"==typeof crypto.randomUUID)return crypto.randomUUID();let t=new Uint8Array(32);return crypto.getRandomValues(t),tD(t)})();#A=0;#w=null;static get _isSVGFittingCanvas(){let t=new OffscreenCanvas(1,3).getContext(\"2d\",{willReadFrequently:!0}),e=new Image;return e.src='data:image\/svg+xml;charset=UTF-8,<svg viewBox=\"0 0 1 1\" width=\"1\" height=\"1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><rect width=\"1\" height=\"1\" style=\"fill:red;\"\/><\/svg>',tS(this,\"_isSVGFittingCanvas\",e.decode().then(()=>(t.drawImage(e,0,0,1,1,0,0,1,3),0===new Uint32Array(t.getImageData(0,0,1,1).data.buffer)[0])))}async #_(t,e){this.#w||=new Map;let i=this.#w.get(t);if(null===i)return null;if(i?.bitmap)return i.refCounter+=1,i;try{let t;if(i||={bitmap:null,id:`image_${this.#v}_${this.#A++}`,refCounter:0,isSvg:!1},\"string\"==typeof e?(i.url=e,t=await tW(e,\"blob\")):e instanceof File?t=i.file=e:e instanceof Blob&&(t=e),\"image\/svg+xml\"===t.type){let e=er._isSVGFittingCanvas,s=new FileReader,r=new Image,n=new Promise((t,n)=>{r.onload=()=>{i.bitmap=r,i.isSvg=!0,t()},s.onload=async()=>{let t=i.svgUrl=s.result;r.src=await e?`${t}#svgView(preserveAspectRatio(none))`:t},r.onerror=s.onerror=n});s.readAsDataURL(t),await n}else i.bitmap=await createImageBitmap(t);i.refCounter=1}catch(t){tw(t),i=null}return this.#w.set(t,i),i&&this.#w.set(i.id,i),i}async getFromFile(t){let{lastModified:e,name:i,size:s,type:r}=t;return this.#_(`${e}_${i}_${s}_${r}`,t)}async getFromUrl(t){return this.#_(t,t)}async getFromBlob(t,e){let i=await e;return this.#_(t,i)}async getFromId(t){this.#w||=new Map;let e=this.#w.get(t);if(!e)return null;if(e.bitmap)return e.refCounter+=1,e;if(e.file)return this.getFromFile(e.file);if(e.blobPromise){let{blobPromise:t}=e;return delete e.blobPromise,this.getFromBlob(e.id,t)}return this.getFromUrl(e.url)}getFromCanvas(t,e){this.#w||=new Map;let i=this.#w.get(t);if(i?.bitmap)return i.refCounter+=1,i;let s=new OffscreenCanvas(e.width,e.height);return s.getContext(\"2d\").drawImage(e,0,0),i={bitmap:s.transferToImageBitmap(),id:`image_${this.#v}_${this.#A++}`,refCounter:1,isSvg:!1},this.#w.set(t,i),this.#w.set(i.id,i),i}getSvgUrl(t){let e=this.#w.get(t);return e?.isSvg?e.svgUrl:null}deleteId(t){this.#w||=new Map;let e=this.#w.get(t);if(!e||(e.refCounter-=1,0!==e.refCounter))return;let{bitmap:i}=e;if(!e.url&&!e.file){let t=new OffscreenCanvas(i.width,i.height);t.getContext(\"bitmaprenderer\").transferFromImageBitmap(i),e.blobPromise=t.convertToBlob()}i.close?.(),e.bitmap=null}isValidId(t){return t.startsWith(`image_${this.#v}_`)}}class en{#x=[];#E=!1;#S;#C=-1;constructor(t=128){this.#S=t}add({cmd:t,undo:e,post:i,mustExec:s,type:r=NaN,overwriteIfSameType:n=!1,keepUndo:a=!1}){if(s&&t(),this.#E)return;let o={cmd:t,undo:e,post:i,type:r};if(-1===this.#C){this.#x.length>0&&(this.#x.length=0),this.#C=0,this.#x.push(o);return}if(n&&this.#x[this.#C].type===r){a&&(o.undo=this.#x[this.#C].undo),this.#x[this.#C]=o;return}let l=this.#C+1;l===this.#S?this.#x.splice(0,1):(this.#C=l,l<this.#x.length&&this.#x.splice(l)),this.#x.push(o)}undo(){if(-1===this.#C)return;this.#E=!0;let{undo:t,post:e}=this.#x[this.#C];t(),e?.(),this.#E=!1,this.#C-=1}redo(){if(this.#C<this.#x.length-1){this.#C+=1,this.#E=!0;let{cmd:t,post:e}=this.#x[this.#C];t(),e?.(),this.#E=!1}}hasSomethingToUndo(){return -1!==this.#C}hasSomethingToRedo(){return this.#C<this.#x.length-1}cleanType(t){if(-1!==this.#C){for(let e=this.#C;e>=0;e--)if(this.#x[e].type!==t){this.#x.splice(e+1,this.#C-e),this.#C=e;return}this.#x.length=0,this.#C=-1}}destroy(){this.#x=null}}class ea{constructor(t){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:e}=tO.platform;for(const[i,s,r={}]of t)for(const t of i){const i=t.startsWith(\"mac+\");e&&i?(this.callbacks.set(t.slice(4),{callback:s,options:r}),this.allKeys.add(t.split(\"+\").at(-1))):e||i||(this.callbacks.set(t,{callback:s,options:r}),this.allKeys.add(t.split(\"+\").at(-1)))}}#M(t){t.altKey&&this.buffer.push(\"alt\"),t.ctrlKey&&this.buffer.push(\"ctrl\"),t.metaKey&&this.buffer.push(\"meta\"),t.shiftKey&&this.buffer.push(\"shift\"),this.buffer.push(t.key);let e=this.buffer.join(\"+\");return this.buffer.length=0,e}exec(t,e){if(!this.allKeys.has(e.key))return;let i=this.callbacks.get(this.#M(e));if(!i)return;let{callback:s,options:{bubbles:r=!1,args:n=[],checker:a=null}}=i;(!a||a(t,e))&&(s.bind(t,...n,e)(),r||t2(e))}}class eo{static _colorsMapping=new Map([[\"CanvasText\",[0,0,0]],[\"Canvas\",[255,255,255]]]);get _colors(){let t=new Map([[\"CanvasText\",null],[\"Canvas\",null]]),e=document.createElement(\"span\");for(let i of(e.style.visibility=\"hidden\",document.body.append(e),t.keys())){e.style.color=i;let s=window.getComputedStyle(e).color;t.set(i,t6(s))}return e.remove(),tS(this,\"_colors\",t)}convert(t){let e=t6(t);if(!window.matchMedia(\"(forced-colors: active)\").matches)return e;for(let[t,i]of this._colors)if(i.every((t,i)=>t===e[i]))return eo._colorsMapping.get(t);return e}getHexCode(t){let e=this._colors.get(t);return e?t$.makeHexColor(...e):t}}class el{#k=new AbortController;#T=null;#P=new Map;#R=new Map;#I=null;#L=null;#D=null;#F=new en;#N=null;#O=null;#B=0;#$=new Set;#H=null;#U=null;#j=new Set;_editorUndoBar=null;#z=!1;#G=!1;#V=!1;#W=null;#q=null;#X=null;#K=null;#Y=!1;#Q=null;#J=new es;#Z=!1;#tt=!1;#te=null;#ti=null;#ts=null;#tr=null;#tn=tu.NONE;#ta=new Set;#to=null;#tl=null;#th=null;#td={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1};#tc=[0,0];#tu=null;#tp=null;#tf=null;#tg=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){let t=el.prototype,e=t=>t.#tp.contains(document.activeElement)&&\"BUTTON\"!==document.activeElement.tagName&&t.hasSomethingToControl(),i=(t,{target:e})=>{if(e instanceof HTMLInputElement){let{type:t}=e;return\"text\"!==t&&\"number\"!==t}return!0},s=this.TRANSLATE_SMALL,r=this.TRANSLATE_BIG;return tS(this,\"_keyboardManager\",new ea([[[\"ctrl+a\",\"mac+meta+a\"],t.selectAll,{checker:i}],[[\"ctrl+z\",\"mac+meta+z\"],t.undo,{checker:i}],[[\"ctrl+y\",\"ctrl+shift+z\",\"mac+meta+shift+z\",\"ctrl+shift+Z\",\"mac+meta+shift+Z\"],t.redo,{checker:i}],[[\"Backspace\",\"alt+Backspace\",\"ctrl+Backspace\",\"shift+Backspace\",\"mac+Backspace\",\"mac+alt+Backspace\",\"mac+ctrl+Backspace\",\"Delete\",\"ctrl+Delete\",\"shift+Delete\",\"mac+Delete\"],t.delete,{checker:i}],[[\"Enter\",\"mac+Enter\"],t.addNewEditorFromKeyboard,{checker:(t,{target:e})=>!(e instanceof HTMLButtonElement)&&t.#tp.contains(e)&&!t.isEnterHandled}],[[\" \",\"mac+ \"],t.addNewEditorFromKeyboard,{checker:(t,{target:e})=>!(e instanceof HTMLButtonElement)&&t.#tp.contains(document.activeElement)}],[[\"Escape\",\"mac+Escape\"],t.unselectAll],[[\"ArrowLeft\",\"mac+ArrowLeft\"],t.translateSelectedEditors,{args:[-s,0],checker:e}],[[\"ctrl+ArrowLeft\",\"mac+shift+ArrowLeft\"],t.translateSelectedEditors,{args:[-r,0],checker:e}],[[\"ArrowRight\",\"mac+ArrowRight\"],t.translateSelectedEditors,{args:[s,0],checker:e}],[[\"ctrl+ArrowRight\",\"mac+shift+ArrowRight\"],t.translateSelectedEditors,{args:[r,0],checker:e}],[[\"ArrowUp\",\"mac+ArrowUp\"],t.translateSelectedEditors,{args:[0,-s],checker:e}],[[\"ctrl+ArrowUp\",\"mac+shift+ArrowUp\"],t.translateSelectedEditors,{args:[0,-r],checker:e}],[[\"ArrowDown\",\"mac+ArrowDown\"],t.translateSelectedEditors,{args:[0,s],checker:e}],[[\"ctrl+ArrowDown\",\"mac+shift+ArrowDown\"],t.translateSelectedEditors,{args:[0,r],checker:e}]]))}constructor(t,e,i,s,r,n,a,o,l,h,d,c,u){const p=this._signal=this.#k.signal;this.#tp=t,this.#tf=e,this.#I=i,this._eventBus=s,s._on(\"editingaction\",this.onEditingAction.bind(this),{signal:p}),s._on(\"pagechanging\",this.onPageChanging.bind(this),{signal:p}),s._on(\"scalechanging\",this.onScaleChanging.bind(this),{signal:p}),s._on(\"rotationchanging\",this.onRotationChanging.bind(this),{signal:p}),s._on(\"setpreference\",this.onSetPreference.bind(this),{signal:p}),s._on(\"switchannotationeditorparams\",t=>this.updateParams(t.type,t.value),{signal:p}),this.#tm(),this.#tb(),this.#ty(),this.#L=r.annotationStorage,this.#W=r.filterFactory,this.#tl=n,this.#K=a||null,this.#z=o,this.#G=l,this.#V=h,this.#tr=d||null,this.viewParameters={realScale:tV.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1,this._editorUndoBar=c||null,this._supportsPinchToZoom=!1!==u}destroy(){for(let t of(this.#tg?.resolve(),this.#tg=null,this.#k?.abort(),this.#k=null,this._signal=null,this.#R.values()))t.destroy();this.#R.clear(),this.#P.clear(),this.#j.clear(),this.#T=null,this.#ta.clear(),this.#F.destroy(),this.#I?.destroy(),this.#Q?.hide(),this.#Q=null,this.#q&&(clearTimeout(this.#q),this.#q=null),this.#tu&&(clearTimeout(this.#tu),this.#tu=null),this._editorUndoBar?.destroy()}combinedSignal(t){return AbortSignal.any([this._signal,t.signal])}get mlManager(){return this.#tr}get useNewAltTextFlow(){return this.#G}get useNewAltTextWhenAddingImage(){return this.#V}get hcmFilter(){return tS(this,\"hcmFilter\",this.#tl?this.#W.addHCMFilter(this.#tl.foreground,this.#tl.background):\"none\")}get direction(){return tS(this,\"direction\",getComputedStyle(this.#tp).direction)}get highlightColors(){return tS(this,\"highlightColors\",this.#K?new Map(this.#K.split(\",\").map(t=>t.split(\"=\").map(t=>t.trim()))):null)}get highlightColorNames(){return tS(this,\"highlightColorNames\",this.highlightColors?new Map(Array.from(this.highlightColors,t=>t.reverse())):null)}setCurrentDrawingSession(t){t?(this.unselectAll(),this.disableUserSelect(!0)):this.disableUserSelect(!1),this.#O=t}setMainHighlightColorPicker(t){this.#ts=t}editAltText(t,e=!1){this.#I?.editAltText(this,t,e)}switchToMode(t,e){this._eventBus.on(\"annotationeditormodechanged\",e,{once:!0,signal:this._signal}),this._eventBus.dispatch(\"showannotationeditorui\",{source:this,mode:t})}setPreference(t,e){this._eventBus.dispatch(\"setpreference\",{source:this,name:t,value:e})}onSetPreference({name:t,value:e}){\"enableNewAltTextWhenAddingImage\"===t&&(this.#V=e)}onPageChanging({pageNumber:t}){this.#B=t-1}focusMainContainer(){this.#tp.focus()}findParent(t,e){for(let i of this.#R.values()){let{x:s,y:r,width:n,height:a}=i.div.getBoundingClientRect();if(t>=s&&t<=s+n&&e>=r&&e<=r+a)return i}return null}disableUserSelect(t=!1){this.#tf.classList.toggle(\"noUserSelect\",t)}addShouldRescale(t){this.#j.add(t)}removeShouldRescale(t){this.#j.delete(t)}onScaleChanging({scale:t}){for(let e of(this.commitOrRemove(),this.viewParameters.realScale=t*tV.PDF_TO_CSS_UNITS,this.#j))e.onScaleChanging();this.#O?.onScaleChanging()}onRotationChanging({pagesRotation:t}){this.commitOrRemove(),this.viewParameters.rotation=t}#tA({anchorNode:t}){return t.nodeType===Node.TEXT_NODE?t.parentElement:t}#tv(t){let{currentLayer:e}=this;if(e.hasTextLayer(t))return e;for(let e of this.#R.values())if(e.hasTextLayer(t))return e;return null}highlightSelection(t=\"\"){let e=document.getSelection();if(!e||e.isCollapsed)return;let{anchorNode:i,anchorOffset:s,focusNode:r,focusOffset:n}=e,a=e.toString(),o=this.#tA(e).closest(\".textLayer\"),l=this.getSelectionBoxes(o);if(!l)return;e.empty();let h=this.#tv(o),d=this.#tn===tu.NONE,c=()=>{h?.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:t,boxes:l,anchorNode:i,anchorOffset:s,focusNode:r,focusOffset:n,text:a}),d&&this.showAllEditors(\"highlight\",!0,!0)};d?this.switchToMode(tu.HIGHLIGHT,c):c()}#tw(){let t=document.getSelection();if(!t||t.isCollapsed)return;let e=this.#tA(t).closest(\".textLayer\"),i=this.getSelectionBoxes(e);i&&(this.#Q||=new ee(this),this.#Q.show(e,i,\"ltr\"===this.direction))}addToAnnotationStorage(t){t.isEmpty()||!this.#L||this.#L.has(t.id)||this.#L.setValue(t.id,t)}#t_(){let t=document.getSelection();if(!t||t.isCollapsed){this.#to&&(this.#Q?.hide(),this.#to=null,this.#tx({hasSelectedText:!1}));return}let{anchorNode:e}=t;if(e===this.#to)return;let i=this.#tA(t).closest(\".textLayer\");if(i){if(this.#Q?.hide(),this.#to=e,this.#tx({hasSelectedText:!0}),(this.#tn===tu.HIGHLIGHT||this.#tn===tu.NONE)&&(this.#tn===tu.HIGHLIGHT&&this.showAllEditors(\"highlight\",!0,!0),this.#Y=this.isShiftKeyDown,!this.isShiftKeyDown)){let t=this.#tn===tu.HIGHLIGHT?this.#tv(i):null;t?.toggleDrawing();let e=new AbortController,s=this.combinedSignal(e),r=i=>{(\"pointerup\"!==i.type||0===i.button)&&(e.abort(),t?.toggleDrawing(!0),\"pointerup\"===i.type&&this.#tE(\"main_toolbar\"))};window.addEventListener(\"pointerup\",r,{signal:s}),window.addEventListener(\"blur\",r,{signal:s})}}else this.#to&&(this.#Q?.hide(),this.#to=null,this.#tx({hasSelectedText:!1}))}#tE(t=\"\"){this.#tn===tu.HIGHLIGHT?this.highlightSelection(t):this.#z&&this.#tw()}#tm(){document.addEventListener(\"selectionchange\",this.#t_.bind(this),{signal:this._signal})}#tS(){if(this.#X)return;this.#X=new AbortController;let t=this.combinedSignal(this.#X);window.addEventListener(\"focus\",this.focus.bind(this),{signal:t}),window.addEventListener(\"blur\",this.blur.bind(this),{signal:t})}#tC(){this.#X?.abort(),this.#X=null}blur(){if(this.isShiftKeyDown=!1,this.#Y&&(this.#Y=!1,this.#tE(\"main_toolbar\")),!this.hasSelection)return;let{activeElement:t}=document;for(let e of this.#ta)if(e.div.contains(t)){this.#ti=[e,t],e._focusEventsAllowed=!1;break}}focus(){if(!this.#ti)return;let[t,e]=this.#ti;this.#ti=null,e.addEventListener(\"focusin\",()=>{t._focusEventsAllowed=!0},{once:!0,signal:this._signal}),e.focus()}#ty(){if(this.#te)return;this.#te=new AbortController;let t=this.combinedSignal(this.#te);window.addEventListener(\"keydown\",this.keydown.bind(this),{signal:t}),window.addEventListener(\"keyup\",this.keyup.bind(this),{signal:t})}#tM(){this.#te?.abort(),this.#te=null}#tk(){if(this.#N)return;this.#N=new AbortController;let t=this.combinedSignal(this.#N);document.addEventListener(\"copy\",this.copy.bind(this),{signal:t}),document.addEventListener(\"cut\",this.cut.bind(this),{signal:t}),document.addEventListener(\"paste\",this.paste.bind(this),{signal:t})}#tT(){this.#N?.abort(),this.#N=null}#tb(){let t=this._signal;document.addEventListener(\"dragover\",this.dragOver.bind(this),{signal:t}),document.addEventListener(\"drop\",this.drop.bind(this),{signal:t})}addEditListeners(){this.#ty(),this.#tk()}removeEditListeners(){this.#tM(),this.#tT()}dragOver(t){for(let{type:e}of t.dataTransfer.items)for(let i of this.#U)if(i.isHandlingMimeForPasting(e)){t.dataTransfer.dropEffect=\"copy\",t.preventDefault();return}}drop(t){for(let e of t.dataTransfer.items)for(let i of this.#U)if(i.isHandlingMimeForPasting(e.type)){i.paste(e,this.currentLayer),t.preventDefault();return}}copy(t){if(t.preventDefault(),this.#T?.commitOrRemove(),!this.hasSelection)return;let e=[];for(let t of this.#ta){let i=t.serialize(!0);i&&e.push(i)}0!==e.length&&t.clipboardData.setData(\"application\/pdfjs\",JSON.stringify(e))}cut(t){this.copy(t),this.delete()}async paste(t){t.preventDefault();let{clipboardData:e}=t;for(let t of e.items)for(let e of this.#U)if(e.isHandlingMimeForPasting(t.type))return void e.paste(t,this.currentLayer);let i=e.getData(\"application\/pdfjs\");if(!i)return;try{i=JSON.parse(i)}catch(t){tw(`paste: \"${t.message}\".`);return}if(!Array.isArray(i))return;this.unselectAll();let s=this.currentLayer;try{let t=[];for(let e of i){let i=await s.deserialize(e);if(!i)return;t.push(i)}let e=()=>{for(let e of t)this.#tP(e);this.#tR(t)};this.addCommands({cmd:e,undo:()=>{for(let e of t)e.remove()},mustExec:!0})}catch(t){tw(`paste: \"${t.message}\".`)}}keydown(t){this.isShiftKeyDown||\"Shift\"!==t.key||(this.isShiftKeyDown=!0),this.#tn===tu.NONE||this.isEditorHandlingKeyboard||el._keyboardManager.exec(this,t)}keyup(t){this.isShiftKeyDown&&\"Shift\"===t.key&&(this.isShiftKeyDown=!1,this.#Y&&(this.#Y=!1,this.#tE(\"main_toolbar\")))}onEditingAction({name:t}){switch(t){case\"undo\":case\"redo\":case\"delete\":case\"selectAll\":this[t]();break;case\"highlightSelection\":this.highlightSelection(\"context_menu\")}}#tx(t){Object.entries(t).some(([t,e])=>this.#td[t]!==e)&&(this._eventBus.dispatch(\"annotationeditorstateschanged\",{source:this,details:Object.assign(this.#td,t)}),this.#tn===tu.HIGHLIGHT&&!1===t.hasSelectedEditor&&this.#tI([[tp.HIGHLIGHT_FREE,!0]]))}#tI(t){this._eventBus.dispatch(\"annotationeditorparamschanged\",{source:this,details:t})}setEditingState(t){t?(this.#tS(),this.#tk(),this.#tx({isEditing:this.#tn!==tu.NONE,isEmpty:this.#tL(),hasSomethingToUndo:this.#F.hasSomethingToUndo(),hasSomethingToRedo:this.#F.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#tC(),this.#tT(),this.#tx({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(t){if(!this.#U)for(let e of(this.#U=t,this.#U))this.#tI(e.defaultPropertiesToUpdate)}getId(){return this.#J.id}get currentLayer(){return this.#R.get(this.#B)}getLayer(t){return this.#R.get(t)}get currentPageIndex(){return this.#B}addLayer(t){this.#R.set(t.pageIndex,t),this.#Z?t.enable():t.disable()}removeLayer(t){this.#R.delete(t.pageIndex)}async updateMode(t,e=null,i=!1){if(this.#tn!==t&&(!this.#tg||(await this.#tg.promise,this.#tg)))if(this.#tg=Promise.withResolvers(),this.#tn=t,t!==tu.NONE){for(let e of(this.setEditingState(!0),await this.#tD(),this.unselectAll(),this.#R.values()))e.updateMode(t);if(e){for(let t of this.#P.values())t.annotationElementId===e?(this.setSelected(t),t.enterInEditMode()):t.unselect();this.#tg.resolve()}else i&&this.addNewEditorFromKeyboard(),this.#tg.resolve()}else this.setEditingState(!1),this.#tF(),this._editorUndoBar?.hide(),this.#tg.resolve()}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(t){t!==this.#tn&&this._eventBus.dispatch(\"switchannotationeditormode\",{source:this,mode:t})}updateParams(t,e){if(this.#U){switch(t){case tp.CREATE:this.currentLayer.addNewEditor();return;case tp.HIGHLIGHT_DEFAULT_COLOR:this.#ts?.updateColor(e);break;case tp.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch(\"reporttelemetry\",{source:this,details:{type:\"editing\",data:{type:\"highlight\",action:\"toggle_visibility\"}}}),(this.#th||=new Map).set(t,e),this.showAllEditors(\"highlight\",e)}for(let i of this.#ta)i.updateParams(t,e);for(let i of this.#U)i.updateDefaultParams(t,e)}}showAllEditors(t,e,i=!1){for(let i of this.#P.values())i.editorType===t&&i.show(e);(this.#th?.get(tp.HIGHLIGHT_SHOW_ALL)??!0)!==e&&this.#tI([[tp.HIGHLIGHT_SHOW_ALL,e]])}enableWaiting(t=!1){if(this.#tt!==t)for(let e of(this.#tt=t,this.#R.values()))t?e.disableClick():e.enableClick(),e.div.classList.toggle(\"waiting\",t)}async #tD(){if(!this.#Z){this.#Z=!0;let t=[];for(let e of this.#R.values())t.push(e.enable());for(let e of(await Promise.all(t),this.#P.values()))e.enable()}}#tF(){if(this.unselectAll(),this.#Z){for(let t of(this.#Z=!1,this.#R.values()))t.disable();for(let t of this.#P.values())t.disable()}}getEditors(t){let e=[];for(let i of this.#P.values())i.pageIndex===t&&e.push(i);return e}getEditor(t){return this.#P.get(t)}addEditor(t){this.#P.set(t.id,t)}removeEditor(t){t.div.contains(document.activeElement)&&(this.#q&&clearTimeout(this.#q),this.#q=setTimeout(()=>{this.focusMainContainer(),this.#q=null},0)),this.#P.delete(t.id),this.unselect(t),t.annotationElementId&&this.#$.has(t.annotationElementId)||this.#L?.remove(t.id)}addDeletedAnnotationElement(t){this.#$.add(t.annotationElementId),this.addChangedExistingAnnotation(t),t.deleted=!0}isDeletedAnnotationElement(t){return this.#$.has(t)}removeDeletedAnnotationElement(t){this.#$.delete(t.annotationElementId),this.removeChangedExistingAnnotation(t),t.deleted=!1}#tP(t){let e=this.#R.get(t.pageIndex);e?e.addOrRebuild(t):(this.addEditor(t),this.addToAnnotationStorage(t))}setActiveEditor(t){this.#T!==t&&(this.#T=t,t&&this.#tI(t.propertiesToUpdate))}get #tN(){let t=null;for(t of this.#ta);return t}updateUI(t){this.#tN===t&&this.#tI(t.propertiesToUpdate)}updateUIForDefaultProperties(t){this.#tI(t.defaultPropertiesToUpdate)}toggleSelected(t){this.#ta.has(t)?(this.#ta.delete(t),t.unselect(),this.#tx({hasSelectedEditor:this.hasSelection})):(this.#ta.add(t),t.select(),this.#tI(t.propertiesToUpdate),this.#tx({hasSelectedEditor:!0}))}setSelected(t){for(let e of(this.#O?.commitOrRemove(),this.#ta))e!==t&&e.unselect();this.#ta.clear(),this.#ta.add(t),t.select(),this.#tI(t.propertiesToUpdate),this.#tx({hasSelectedEditor:!0})}isSelected(t){return this.#ta.has(t)}get firstSelectedEditor(){return this.#ta.values().next().value}unselect(t){t.unselect(),this.#ta.delete(t),this.#tx({hasSelectedEditor:this.hasSelection})}get hasSelection(){return 0!==this.#ta.size}get isEnterHandled(){return 1===this.#ta.size&&this.firstSelectedEditor.isEnterHandled}undo(){this.#F.undo(),this.#tx({hasSomethingToUndo:this.#F.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#tL()}),this._editorUndoBar?.hide()}redo(){this.#F.redo(),this.#tx({hasSomethingToUndo:!0,hasSomethingToRedo:this.#F.hasSomethingToRedo(),isEmpty:this.#tL()})}addCommands(t){this.#F.add(t),this.#tx({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#tL()})}cleanUndoStack(t){this.#F.cleanType(t)}#tL(){if(0===this.#P.size)return!0;if(1===this.#P.size)for(let t of this.#P.values())return t.isEmpty();return!1}delete(){this.commitOrRemove();let t=this.currentLayer?.endDrawingSession(!0);if(!this.hasSelection&&!t)return;let e=t?[t]:[...this.#ta],i=()=>{for(let t of e)this.#tP(t)};this.addCommands({cmd:()=>{for(let t of(this._editorUndoBar?.show(i,1===e.length?e[0].editorType:e.length),e))t.remove()},undo:i,mustExec:!0})}commitOrRemove(){this.#T?.commitOrRemove()}hasSomethingToControl(){return this.#T||this.hasSelection}#tR(t){for(let t of this.#ta)t.unselect();for(let e of(this.#ta.clear(),t))e.isEmpty()||(this.#ta.add(e),e.select());this.#tx({hasSelectedEditor:this.hasSelection})}selectAll(){for(let t of this.#ta)t.commit();this.#tR(this.#P.values())}unselectAll(){if((!this.#T||(this.#T.commitOrRemove(),this.#tn===tu.NONE))&&!this.#O?.commitOrRemove()&&this.hasSelection){for(let t of this.#ta)t.unselect();this.#ta.clear(),this.#tx({hasSelectedEditor:!1})}}translateSelectedEditors(t,e,i=!1){if(i||this.commitOrRemove(),!this.hasSelection)return;this.#tc[0]+=t,this.#tc[1]+=e;let[s,r]=this.#tc,n=[...this.#ta];for(let i of(this.#tu&&clearTimeout(this.#tu),this.#tu=setTimeout(()=>{this.#tu=null,this.#tc[0]=this.#tc[1]=0,this.addCommands({cmd:()=>{for(let t of n)this.#P.has(t.id)&&t.translateInPage(s,r)},undo:()=>{for(let t of n)this.#P.has(t.id)&&t.translateInPage(-s,-r)},mustExec:!1})},1e3),n))i.translateInPage(t,e)}setUpDragSession(){if(this.hasSelection)for(let t of(this.disableUserSelect(!0),this.#H=new Map,this.#ta))this.#H.set(t,{savedX:t.x,savedY:t.y,savedPageIndex:t.pageIndex,newX:0,newY:0,newPageIndex:-1})}endDragSession(){if(!this.#H)return!1;this.disableUserSelect(!1);let t=this.#H;this.#H=null;let e=!1;for(let[{x:i,y:s,pageIndex:r},n]of t)n.newX=i,n.newY=s,n.newPageIndex=r,e||=i!==n.savedX||s!==n.savedY||r!==n.savedPageIndex;if(!e)return!1;let i=(t,e,i,s)=>{if(this.#P.has(t.id)){let r=this.#R.get(s);r?t._setParentAndPosition(r,e,i):(t.pageIndex=s,t.x=e,t.y=i)}};return this.addCommands({cmd:()=>{for(let[e,{newX:s,newY:r,newPageIndex:n}]of t)i(e,s,r,n)},undo:()=>{for(let[e,{savedX:s,savedY:r,savedPageIndex:n}]of t)i(e,s,r,n)},mustExec:!0}),!0}dragSelectedEditors(t,e){if(this.#H)for(let i of this.#H.keys())i.drag(t,e)}rebuild(t){if(null===t.parent){let e=this.getLayer(t.pageIndex);e?(e.changeParent(t),e.addOrRebuild(t)):(this.addEditor(t),this.addToAnnotationStorage(t),t.rebuild())}else t.parent.addOrRebuild(t)}get isEditorHandlingKeyboard(){return this.getActive()?.shouldGetKeyboardEvents()||1===this.#ta.size&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(t){return this.#T===t}getActive(){return this.#T}getMode(){return this.#tn}get imageManager(){return tS(this,\"imageManager\",new er)}getSelectionBoxes(t){let e;if(!t)return null;let i=document.getSelection();for(let e=0,s=i.rangeCount;e<s;e++)if(!t.contains(i.getRangeAt(e).commonAncestorContainer))return null;let{x:s,y:r,width:n,height:a}=t.getBoundingClientRect();switch(t.getAttribute(\"data-main-rotation\")){case\"90\":e=(t,e,i,o)=>({x:(e-r)\/a,y:1-(t+i-s)\/n,width:o\/a,height:i\/n});break;case\"180\":e=(t,e,i,o)=>({x:1-(t+i-s)\/n,y:1-(e+o-r)\/a,width:i\/n,height:o\/a});break;case\"270\":e=(t,e,i,o)=>({x:1-(e+o-r)\/a,y:(t-s)\/n,width:o\/a,height:i\/n});break;default:e=(t,e,i,o)=>({x:(t-s)\/n,y:(e-r)\/a,width:i\/n,height:o\/a})}let o=[];for(let t=0,s=i.rangeCount;t<s;t++){let s=i.getRangeAt(t);if(!s.collapsed)for(let{x:t,y:i,width:r,height:n}of s.getClientRects())0!==r&&0!==n&&o.push(e(t,i,r,n))}return 0===o.length?null:o}addChangedExistingAnnotation({annotationElementId:t,id:e}){(this.#D||=new Map).set(t,e)}removeChangedExistingAnnotation({annotationElementId:t}){this.#D?.delete(t)}renderAnnotationElement(t){let e=this.#D?.get(t.data.id);if(!e)return;let i=this.#L.getRawValue(e);i&&(this.#tn!==tu.NONE||i.hasBeenModified)&&i.renderAnnotationElement(t)}}class eh{#o=null;#tO=!1;#tB=null;#t$=null;#tH=null;#tU=null;#tj=!1;#tz=null;#n=null;#tG=null;#tV=null;#tW=!1;static #tq=null;static _l10n=null;constructor(t){this.#n=t,this.#tW=t._uiManager.useNewAltTextFlow,eh.#tq||=Object.freeze({added:\"pdfjs-editor-new-alt-text-added-button\",\"added-label\":\"pdfjs-editor-new-alt-text-added-button-label\",missing:\"pdfjs-editor-new-alt-text-missing-button\",\"missing-label\":\"pdfjs-editor-new-alt-text-missing-button-label\",review:\"pdfjs-editor-new-alt-text-to-review-button\",\"review-label\":\"pdfjs-editor-new-alt-text-to-review-button-label\"})}static initialize(t){eh._l10n??=t}async render(){let t=this.#tB=document.createElement(\"button\");t.className=\"altText\",t.tabIndex=\"0\";let e=this.#t$=document.createElement(\"span\");t.append(e),this.#tW?(t.classList.add(\"new\"),t.setAttribute(\"data-l10n-id\",eh.#tq.missing),e.setAttribute(\"data-l10n-id\",eh.#tq[\"missing-label\"])):(t.setAttribute(\"data-l10n-id\",\"pdfjs-editor-alt-text-button\"),e.setAttribute(\"data-l10n-id\",\"pdfjs-editor-alt-text-button-label\"));let i=this.#n._uiManager._signal;t.addEventListener(\"contextmenu\",t1,{signal:i}),t.addEventListener(\"pointerdown\",t=>t.stopPropagation(),{signal:i});let s=t=>{t.preventDefault(),this.#n._uiManager.editAltText(this.#n),this.#tW&&this.#n._reportTelemetry({action:\"pdfjs.image.alt_text.image_status_label_clicked\",data:{label:this.#tX}})};return t.addEventListener(\"click\",s,{capture:!0,signal:i}),t.addEventListener(\"keydown\",e=>{e.target===t&&\"Enter\"===e.key&&(this.#tj=!0,s(e))},{signal:i}),await this.#tK(),t}get #tX(){return(this.#o?\"added\":null===this.#o&&this.guessedText&&\"review\")||\"missing\"}finish(){this.#tB&&(this.#tB.focus({focusVisible:this.#tj}),this.#tj=!1)}isEmpty(){return this.#tW?null===this.#o:!this.#o&&!this.#tO}hasData(){return this.#tW?null!==this.#o||!!this.#tG:this.isEmpty()}get guessedText(){return this.#tG}async setGuessedText(t){null===this.#o&&(this.#tG=t,this.#tV=await eh._l10n.get(\"pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer\",{generatedAltText:t}),this.#tK())}toggleAltTextBadge(t=!1){if(this.#tW&&!this.#o){if(!this.#tz){let t=this.#tz=document.createElement(\"div\");t.className=\"noAltTextBadge\",this.#n.div.append(t)}this.#tz.classList.toggle(\"hidden\",!t)}else this.#tz?.remove(),this.#tz=null}serialize(t){let e=this.#o;return t||this.#tG!==e||(e=this.#tV),{altText:e,decorative:this.#tO,guessedText:this.#tG,textWithDisclaimer:this.#tV}}get data(){return{altText:this.#o,decorative:this.#tO}}set data({altText:t,decorative:e,guessedText:i,textWithDisclaimer:s,cancel:r=!1}){i&&(this.#tG=i,this.#tV=s),(this.#o!==t||this.#tO!==e)&&(r||(this.#o=t,this.#tO=e),this.#tK())}toggle(t=!1){this.#tB&&(!t&&this.#tU&&(clearTimeout(this.#tU),this.#tU=null),this.#tB.disabled=!t)}shown(){this.#n._reportTelemetry({action:\"pdfjs.image.alt_text.image_status_label_displayed\",data:{label:this.#tX}})}destroy(){this.#tB?.remove(),this.#tB=null,this.#t$=null,this.#tH=null,this.#tz?.remove(),this.#tz=null}async #tK(){let t=this.#tB;if(!t)return;if(this.#tW){if(t.classList.toggle(\"done\",!!this.#o),t.setAttribute(\"data-l10n-id\",eh.#tq[this.#tX]),this.#t$?.setAttribute(\"data-l10n-id\",eh.#tq[`${this.#tX}-label`]),!this.#o)return void this.#tH?.remove()}else{if(!this.#o&&!this.#tO){t.classList.remove(\"done\"),this.#tH?.remove();return}t.classList.add(\"done\"),t.setAttribute(\"data-l10n-id\",\"pdfjs-editor-alt-text-edit-button\")}let e=this.#tH;if(!e){this.#tH=e=document.createElement(\"span\"),e.className=\"tooltip\",e.setAttribute(\"role\",\"tooltip\"),e.id=`alt-text-tooltip-${this.#n.id}`;let i=this.#n._uiManager._signal;i.addEventListener(\"abort\",()=>{clearTimeout(this.#tU),this.#tU=null},{once:!0}),t.addEventListener(\"mouseenter\",()=>{this.#tU=setTimeout(()=>{this.#tU=null,this.#tH.classList.add(\"show\"),this.#n._reportTelemetry({action:\"alt_text_tooltip\"})},100)},{signal:i}),t.addEventListener(\"mouseleave\",()=>{this.#tU&&(clearTimeout(this.#tU),this.#tU=null),this.#tH?.classList.remove(\"show\")},{signal:i})}this.#tO?e.setAttribute(\"data-l10n-id\",\"pdfjs-editor-alt-text-decorative-tooltip\"):(e.removeAttribute(\"data-l10n-id\"),e.textContent=this.#o),e.parentNode||t.append(e);let i=this.#n.getImageForAltText();i?.setAttribute(\"aria-describedby\",e.id)}}class ed{#tp;#tY=!1;#tQ=null;#tJ;#tZ;#t0;#t1;#t2;#t3=null;#t5;#t6=null;constructor({container:t,isPinchingDisabled:e=null,isPinchingStopped:i=null,onPinchStart:s=null,onPinching:r=null,onPinchEnd:n=null,signal:a}){this.#tp=t,this.#tQ=i,this.#tJ=e,this.#tZ=s,this.#t0=r,this.#t1=n,this.#t5=new AbortController,this.#t2=AbortSignal.any([a,this.#t5.signal]),t.addEventListener(\"touchstart\",this.#t8.bind(this),{passive:!1,signal:this.#t2})}get MIN_TOUCH_DISTANCE_TO_PINCH(){return tS(this,\"MIN_TOUCH_DISTANCE_TO_PINCH\",35\/(window.devicePixelRatio||1))}#t8(t){if(this.#tJ?.()||t.touches.length<2)return;if(!this.#t6){this.#t6=new AbortController;let t=AbortSignal.any([this.#t2,this.#t6.signal]),e=this.#tp,i={signal:t,passive:!1};e.addEventListener(\"touchmove\",this.#t4.bind(this),i),e.addEventListener(\"touchend\",this.#t7.bind(this),i),e.addEventListener(\"touchcancel\",this.#t7.bind(this),i),this.#tZ?.()}if(t2(t),2!==t.touches.length||this.#tQ?.()){this.#t3=null;return}let[e,i]=t.touches;e.identifier>i.identifier&&([e,i]=[i,e]),this.#t3={touch0X:e.screenX,touch0Y:e.screenY,touch1X:i.screenX,touch1Y:i.screenY}}#t4(t){if(!this.#t3||2!==t.touches.length)return;let[e,i]=t.touches;e.identifier>i.identifier&&([e,i]=[i,e]);let{screenX:s,screenY:r}=e,{screenX:n,screenY:a}=i,o=this.#t3,{touch0X:l,touch0Y:h,touch1X:d,touch1Y:c}=o,u=Math.hypot(n-s,a-r)||1,p=Math.hypot(d-l,c-h)||1;if(!this.#tY&&Math.abs(p-u)<=ed.MIN_TOUCH_DISTANCE_TO_PINCH)return;if(o.touch0X=s,o.touch0Y=r,o.touch1X=n,o.touch1Y=a,t.preventDefault(),!this.#tY){this.#tY=!0;return}let f=[(s+n)\/2,(r+a)\/2];this.#t0?.(f,p,u)}#t7(t){this.#t6.abort(),this.#t6=null,this.#t1?.(),this.#t3&&(t.preventDefault(),this.#t3=null,this.#tY=!1)}destroy(){this.#t5?.abort(),this.#t5=null}}class ec{#t9=null;#et=null;#o=null;#ee=!1;#ei=null;#es=\"\";#er=!1;#en=null;#ea=null;#eo=null;#el=null;#eh=\"\";#ed=!1;#ec=null;#eu=!1;#ep=!1;#ef=!1;#eg=null;#em=0;#eb=0;#ey=null;#eA=null;_editToolbar=null;_initialOptions=Object.create(null);_initialData=null;_isVisible=!0;_uiManager=null;_focusEventsAllowed=!0;static _l10n=null;static _l10nResizer=null;#ev=!1;#ew=ec._zIndex++;static _borderLineWidth=-1;static _colorManager=new eo;static _zIndex=1;static _telemetryTimeout=1e3;static get _resizerKeyboardManager(){let t=ec.prototype._resizeWithKeyboard,e=el.TRANSLATE_SMALL,i=el.TRANSLATE_BIG;return tS(this,\"_resizerKeyboardManager\",new ea([[[\"ArrowLeft\",\"mac+ArrowLeft\"],t,{args:[-e,0]}],[[\"ctrl+ArrowLeft\",\"mac+shift+ArrowLeft\"],t,{args:[-i,0]}],[[\"ArrowRight\",\"mac+ArrowRight\"],t,{args:[e,0]}],[[\"ctrl+ArrowRight\",\"mac+shift+ArrowRight\"],t,{args:[i,0]}],[[\"ArrowUp\",\"mac+ArrowUp\"],t,{args:[0,-e]}],[[\"ctrl+ArrowUp\",\"mac+shift+ArrowUp\"],t,{args:[0,-i]}],[[\"ArrowDown\",\"mac+ArrowDown\"],t,{args:[0,e]}],[[\"ctrl+ArrowDown\",\"mac+shift+ArrowDown\"],t,{args:[0,i]}],[[\"Escape\",\"mac+Escape\"],ec.prototype._stopResizingWithKeyboard]]))}constructor(t){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,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=t.isCentered,this._structTreeParentId=null;const{rotation:e,rawDims:{pageWidth:i,pageHeight:s,pageX:r,pageY:n}}=this.parent.viewport;this.rotation=e,this.pageRotation=(360+e-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[i,s],this.pageTranslation=[r,n];const[a,o]=this.parentDimensions;this.x=t.x\/a,this.y=t.y\/o,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get isDrawer(){return!1}static get _defaultLineColor(){return tS(this,\"_defaultLineColor\",this._colorManager.getHexCode(\"CanvasText\"))}static deleteAnnotationElement(t){let e=new eu({id:t.parent.getNextId(),parent:t.parent,uiManager:t._uiManager});e.annotationElementId=t.annotationElementId,e.deleted=!0,e._uiManager.addToAnnotationStorage(e)}static initialize(t,e){if(ec._l10n??=t,ec._l10nResizer||=Object.freeze({topLeft:\"pdfjs-editor-resizer-top-left\",topMiddle:\"pdfjs-editor-resizer-top-middle\",topRight:\"pdfjs-editor-resizer-top-right\",middleRight:\"pdfjs-editor-resizer-middle-right\",bottomRight:\"pdfjs-editor-resizer-bottom-right\",bottomMiddle:\"pdfjs-editor-resizer-bottom-middle\",bottomLeft:\"pdfjs-editor-resizer-bottom-left\",middleLeft:\"pdfjs-editor-resizer-middle-left\"}),-1!==ec._borderLineWidth)return;let i=getComputedStyle(document.documentElement);ec._borderLineWidth=parseFloat(i.getPropertyValue(\"--outline-width\"))||0}static updateDefaultParams(t,e){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(t){return!1}static paste(t,e){t_(\"Not implemented\")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#ev}set _isDraggable(t){this.#ev=t,this.div?.classList.toggle(\"draggable\",t)}get isEnterHandled(){return!0}center(){let[t,e]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*e\/(2*t),this.y+=this.width*t\/(2*e);break;case 180:this.x+=this.width\/2,this.y+=this.height\/2;break;case 270:this.x+=this.height*e\/(2*t),this.y-=this.width*t\/(2*e);break;default:this.x-=this.width\/2,this.y-=this.height\/2}this.fixAndSetPosition()}addCommands(t){this._uiManager.addCommands(t)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#ew}setParent(t){null!==t?(this.pageIndex=t.pageIndex,this.pageDimensions=t.pageDimensions):this.#e_(),this.parent=t}focusin(t){this._focusEventsAllowed&&(this.#ed?this.#ed=!1:this.parent.setSelected(this))}focusout(t){if(!this._focusEventsAllowed||!this.isAttachedToDOM)return;let e=t.relatedTarget;!e?.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)}setAt(t,e,i,s){let[r,n]=this.parentDimensions;[i,s]=this.screenToPageTranslation(i,s),this.x=(t+i)\/r,this.y=(e+s)\/n,this.fixAndSetPosition()}#ex([t,e],i,s){[i,s]=this.screenToPageTranslation(i,s),this.x+=i\/t,this.y+=s\/e,this._onTranslating(this.x,this.y),this.fixAndSetPosition()}translate(t,e){this.#ex(this.parentDimensions,t,e)}translateInPage(t,e){this.#ec||=[this.x,this.y,this.width,this.height],this.#ex(this.pageDimensions,t,e),this.div.scrollIntoView({block:\"nearest\"})}drag(t,e){this.#ec||=[this.x,this.y,this.width,this.height];let{div:i,parentDimensions:[s,r]}=this;if(this.x+=t\/s,this.y+=e\/r,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){let{x:t,y:e}=this.div.getBoundingClientRect();this.parent.findNewParent(this,t,e)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:n,y:a}=this,[o,l]=this.getBaseTranslation();n+=o,a+=l;let{style:h}=i;h.left=`${(100*n).toFixed(2)}%`,h.top=`${(100*a).toFixed(2)}%`,this._onTranslating(n,a),i.scrollIntoView({block:\"nearest\"})}_onTranslating(t,e){}_onTranslated(t,e){}get _hasBeenMoved(){return!!this.#ec&&(this.#ec[0]!==this.x||this.#ec[1]!==this.y)}get _hasBeenResized(){return!!this.#ec&&(this.#ec[2]!==this.width||this.#ec[3]!==this.height)}getBaseTranslation(){let[t,e]=this.parentDimensions,{_borderLineWidth:i}=ec,s=i\/t,r=i\/e;switch(this.rotation){case 90:return[-s,r];case 180:return[s,r];case 270:return[s,-r];default:return[-s,-r]}}get _mustFixPosition(){return!0}fixAndSetPosition(t=this.rotation){let{div:{style:e},pageDimensions:[i,s]}=this,{x:r,y:n,width:a,height:o}=this;if(a*=i,o*=s,r*=i,n*=s,this._mustFixPosition)switch(t){case 0:r=Math.max(0,Math.min(i-a,r)),n=Math.max(0,Math.min(s-o,n));break;case 90:r=Math.max(0,Math.min(i-o,r)),n=Math.min(s,Math.max(a,n));break;case 180:r=Math.min(i,Math.max(a,r)),n=Math.min(s,Math.max(o,n));break;case 270:r=Math.min(i,Math.max(o,r)),n=Math.max(0,Math.min(s-a,n))}this.x=r\/=i,this.y=n\/=s;let[l,h]=this.getBaseTranslation();r+=l,n+=h,e.left=`${(100*r).toFixed(2)}%`,e.top=`${(100*n).toFixed(2)}%`,this.moveInDOM()}static #eE(t,e,i){switch(i){case 90:return[e,-t];case 180:return[-t,-e];case 270:return[-e,t];default:return[t,e]}}screenToPageTranslation(t,e){return ec.#eE(t,e,this.parentRotation)}pageTranslationToScreen(t,e){return ec.#eE(t,e,360-this.parentRotation)}#eS(t){switch(t){case 90:{let[t,e]=this.pageDimensions;return[0,-t\/e,e\/t,0]}case 180:return[-1,0,0,-1];case 270:{let[t,e]=this.pageDimensions;return[0,t\/e,-e\/t,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){let{parentScale:t,pageDimensions:[e,i]}=this;return[e*t,i*t]}setDims(t,e){let[i,s]=this.parentDimensions,{style:r}=this.div;r.width=`${(100*t\/i).toFixed(2)}%`,this.#er||(r.height=`${(100*e\/s).toFixed(2)}%`)}fixDims(){let{style:t}=this.div,{height:e,width:i}=t,s=i.endsWith(\"%\"),r=!this.#er&&e.endsWith(\"%\");if(s&&r)return;let[n,a]=this.parentDimensions;s||(t.width=`${(100*parseFloat(i)\/n).toFixed(2)}%`),this.#er||r||(t.height=`${(100*parseFloat(e)\/a).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}#eC(){if(this.#en)return;this.#en=document.createElement(\"div\"),this.#en.classList.add(\"resizers\");let t=this._willKeepAspectRatio?[\"topLeft\",\"topRight\",\"bottomRight\",\"bottomLeft\"]:[\"topLeft\",\"topMiddle\",\"topRight\",\"middleRight\",\"bottomRight\",\"bottomMiddle\",\"bottomLeft\",\"middleLeft\"],e=this._uiManager._signal;for(let i of t){let t=document.createElement(\"div\");this.#en.append(t),t.classList.add(\"resizer\",i),t.setAttribute(\"data-resizer-name\",i),t.addEventListener(\"pointerdown\",this.#eM.bind(this,i),{signal:e}),t.addEventListener(\"contextmenu\",t1,{signal:e}),t.tabIndex=-1}this.div.prepend(this.#en)}#eM(t,e){e.preventDefault();let{isMac:i}=tO.platform;if(0!==e.button||e.ctrlKey&&i)return;this.#o?.toggle(!1);let s=this._isDraggable;this._isDraggable=!1,this.#ea=[e.screenX,e.screenY];let r=new AbortController,n=this._uiManager.combinedSignal(r);this.parent.togglePointerEvents(!1),window.addEventListener(\"pointermove\",this.#ek.bind(this,t),{passive:!0,capture:!0,signal:n}),window.addEventListener(\"touchmove\",t2,{passive:!1,signal:n}),window.addEventListener(\"contextmenu\",t1,{signal:n}),this.#eo={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};let a=this.parent.div.style.cursor,o=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(e.target).cursor;let l=()=>{r.abort(),this.parent.togglePointerEvents(!0),this.#o?.toggle(!0),this._isDraggable=s,this.parent.div.style.cursor=a,this.div.style.cursor=o,this.#eT()};window.addEventListener(\"pointerup\",l,{signal:n}),window.addEventListener(\"blur\",l,{signal:n})}#eP(t,e,i,s){this.width=i,this.height=s,this.x=t,this.y=e;let[r,n]=this.parentDimensions;this.setDims(r*i,n*s),this.fixAndSetPosition(),this._onResized()}_onResized(){}#eT(){if(!this.#eo)return;let{savedX:t,savedY:e,savedWidth:i,savedHeight:s}=this.#eo;this.#eo=null;let r=this.x,n=this.y,a=this.width,o=this.height;r===t&&n===e&&a===i&&o===s||this.addCommands({cmd:this.#eP.bind(this,r,n,a,o),undo:this.#eP.bind(this,t,e,i,s),mustExec:!0})}static _round(t){return Math.round(1e4*t)\/1e4}#ek(t,e){var i,s;let[r,n]=this.parentDimensions,a=this.x,o=this.y,l=this.width,h=this.height,d=ec.MIN_SIZE\/r,c=ec.MIN_SIZE\/n,u=this.#eS(this.rotation),p=(t,e)=>[u[0]*t+u[2]*e,u[1]*t+u[3]*e],f=this.#eS(360-this.rotation),g,m,b=!1,y=!1;switch(t){case\"topLeft\":b=!0,g=(t,e)=>[0,0],m=(t,e)=>[t,e];break;case\"topMiddle\":g=(t,e)=>[t\/2,0],m=(t,e)=>[t\/2,e];break;case\"topRight\":b=!0,g=(t,e)=>[t,0],m=(t,e)=>[0,e];break;case\"middleRight\":y=!0,g=(t,e)=>[t,e\/2],m=(t,e)=>[0,e\/2];break;case\"bottomRight\":b=!0,g=(t,e)=>[t,e],m=(t,e)=>[0,0];break;case\"bottomMiddle\":g=(t,e)=>[t\/2,e],m=(t,e)=>[t\/2,0];break;case\"bottomLeft\":b=!0,g=(t,e)=>[0,e],m=(t,e)=>[t,0];break;case\"middleLeft\":y=!0,g=(t,e)=>[0,e\/2],m=(t,e)=>[t,e\/2]}let A=g(l,h),v=m(l,h),w=p(...v),_=ec._round(a+w[0]),x=ec._round(o+w[1]),E,S,C=1,M=1;if(e.fromKeyboard)({deltaX:E,deltaY:S}=e);else{let{screenX:t,screenY:i}=e,[s,r]=this.#ea;[E,S]=this.screenToPageTranslation(t-s,i-r),this.#ea[0]=t,this.#ea[1]=i}if([E,S]=(i=E\/r,s=S\/n,[f[0]*i+f[2]*s,f[1]*i+f[3]*s]),b){let t=Math.hypot(l,h);C=M=Math.max(Math.min(Math.hypot(v[0]-A[0]-E,v[1]-A[1]-S)\/t,1\/l,1\/h),d\/l,c\/h)}else y?C=Math.max(d,Math.min(1,Math.abs(v[0]-A[0]-E)))\/l:M=Math.max(c,Math.min(1,Math.abs(v[1]-A[1]-S)))\/h;let k=ec._round(l*C),T=ec._round(h*M),P=_-(w=p(...m(k,T)))[0],R=x-w[1];this.#ec||=[this.x,this.y,this.width,this.height],this.width=k,this.height=T,this.x=P,this.y=R,this.setDims(r*k,n*T),this.fixAndSetPosition(),this._onResizing()}_onResizing(){}altTextFinish(){this.#o?.finish()}async addEditToolbar(){return this._editToolbar||this.#ep||(this._editToolbar=new et(this),this.div.append(this._editToolbar.render()),this.#o&&await this._editToolbar.addAltText(this.#o)),this._editToolbar}removeEditToolbar(){this._editToolbar&&(this._editToolbar.remove(),this._editToolbar=null,this.#o?.destroy())}addContainer(t){let e=this._editToolbar?.div;e?e.before(t):this.div.append(t)}getClientDimensions(){return this.div.getBoundingClientRect()}async addAltTextButton(){this.#o||(eh.initialize(ec._l10n),this.#o=new eh(this),this.#t9&&(this.#o.data=this.#t9,this.#t9=null),await this.addEditToolbar())}get altTextData(){return this.#o?.data}set altTextData(t){this.#o&&(this.#o.data=t)}get guessedAltText(){return this.#o?.guessedText}async setGuessedAltText(t){await this.#o?.setGuessedText(t)}serializeAltText(t){return this.#o?.serialize(t)}hasAltText(){return!!this.#o&&!this.#o.isEmpty()}hasAltTextData(){return this.#o?.hasData()??!1}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.tabIndex=this.#ee?-1:0,this._isVisible||this.div.classList.add(\"hidden\"),this.setInForeground(),this.#eR();let[t,e]=this.parentDimensions;this.parentRotation%180!=0&&(this.div.style.maxWidth=`${(100*e\/t).toFixed(2)}%`,this.div.style.maxHeight=`${(100*t\/e).toFixed(2)}%`);let[i,s]=this.getInitialTranslation();return this.translate(i,s),ei(this,this.div,[\"pointerdown\"]),this.isResizable&&this._uiManager._supportsPinchToZoom&&(this.#eA||=new ed({container:this.div,isPinchingDisabled:()=>!this.isSelected,onPinchStart:this.#eI.bind(this),onPinching:this.#eL.bind(this),onPinchEnd:this.#eD.bind(this),signal:this._uiManager._signal})),this._uiManager._editorUndoBar?.hide(),this.div}#eI(){this.#eo={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height},this.#o?.toggle(!1),this.parent.togglePointerEvents(!1)}#eL(t,e,i){let s=i\/e*.7+1-.7;if(1===s)return;let r=this.#eS(this.rotation),n=(t,e)=>[r[0]*t+r[2]*e,r[1]*t+r[3]*e],[a,o]=this.parentDimensions,l=this.x,h=this.y,d=this.width,c=this.height;s=Math.max(Math.min(s,1\/d,1\/c),ec.MIN_SIZE\/a\/d,ec.MIN_SIZE\/o\/c);let u=ec._round(d*s),p=ec._round(c*s);if(u===d&&p===c)return;this.#ec||=[l,h,d,c];let f=n(d\/2,c\/2),g=ec._round(l+f[0]),m=ec._round(h+f[1]),b=n(u\/2,p\/2);this.x=g-b[0],this.y=m-b[1],this.width=u,this.height=p,this.setDims(a*u,o*p),this.fixAndSetPosition(),this._onResizing()}#eD(){this.#o?.toggle(!0),this.parent.togglePointerEvents(!0),this.#eT()}pointerdown(t){let{isMac:e}=tO.platform;0!==t.button||t.ctrlKey&&e?t.preventDefault():(this.#ed=!0,this._isDraggable?this.#eF(t):this.#eN(t))}get isSelected(){return this._uiManager.isSelected(this)}#eN(t){let{isMac:e}=tO.platform;t.ctrlKey&&!e||t.shiftKey||t.metaKey&&e?this.parent.toggleSelected(this):this.parent.setSelected(this)}#eF(t){let{isSelected:e}=this;this._uiManager.setUpDragSession();let i=!1,s=new AbortController,r=this._uiManager.combinedSignal(s),n={capture:!0,passive:!1,signal:r},a=t=>{s.abort(),this.#ei=null,this.#ed=!1,this._uiManager.endDragSession()||this.#eN(t),i&&this._onStopDragging()};e&&(this.#em=t.clientX,this.#eb=t.clientY,this.#ei=t.pointerId,this.#es=t.pointerType,window.addEventListener(\"pointermove\",t=>{i||(i=!0,this._onStartDragging());let{clientX:e,clientY:s,pointerId:r}=t;if(r!==this.#ei)return void t2(t);let[n,a]=this.screenToPageTranslation(e-this.#em,s-this.#eb);this.#em=e,this.#eb=s,this._uiManager.dragSelectedEditors(n,a)},n),window.addEventListener(\"touchmove\",t2,n),window.addEventListener(\"pointerdown\",t=>{t.pointerType===this.#es&&(this.#eA||t.isPrimary)&&a(t),t2(t)},n));let o=t=>{this.#ei&&this.#ei!==t.pointerId?t2(t):a(t)};window.addEventListener(\"pointerup\",o,{signal:r}),window.addEventListener(\"blur\",o,{signal:r})}_onStartDragging(){}_onStopDragging(){}moveInDOM(){this.#eg&&clearTimeout(this.#eg),this.#eg=setTimeout(()=>{this.#eg=null,this.parent?.moveEditorInDOM(this)},0)}_setParentAndPosition(t,e,i){t.changeParent(this),this.x=e,this.y=i,this.fixAndSetPosition(),this._onTranslated()}getRect(t,e,i=this.rotation){let s=this.parentScale,[r,n]=this.pageDimensions,[a,o]=this.pageTranslation,l=t\/s,h=e\/s,d=this.x*r,c=this.y*n,u=this.width*r,p=this.height*n;switch(i){case 0:return[d+l+a,n-c-h-p+o,d+l+u+a,n-c-h+o];case 90:return[d+h+a,n-c+l+o,d+h+p+a,n-c+l+u+o];case 180:return[d-l-u+a,n-c+h+o,d-l+a,n-c+h+p+o];case 270:return[d-h-p+a,n-c-l-u+o,d-h+a,n-c-l+o];default:throw Error(\"Invalid rotation\")}}getRectInCurrentCoords(t,e){let[i,s,r,n]=t,a=r-i,o=n-s;switch(this.rotation){case 0:return[i,e-n,a,o];case 90:return[i,e-s,o,a];case 180:return[r,e-s,a,o];case 270:return[r,e-n,o,a];default:throw Error(\"Invalid rotation\")}}onceAdded(t){}isEmpty(){return!1}enableEditMode(){this.#ep=!0}disableEditMode(){this.#ep=!1}isInEditMode(){return this.#ep}shouldGetKeyboardEvents(){return this.#ef}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}get isOnScreen(){let{top:t,left:e,bottom:i,right:s}=this.getClientDimensions(),{innerHeight:r,innerWidth:n}=window;return e<n&&s>0&&t<r&&i>0}#eR(){if(this.#el||!this.div)return;this.#el=new AbortController;let t=this._uiManager.combinedSignal(this.#el);this.div.addEventListener(\"focusin\",this.focusin.bind(this),{signal:t}),this.div.addEventListener(\"focusout\",this.focusout.bind(this),{signal:t})}rebuild(){this.#eR()}rotate(t){}resize(){}serializeDeleted(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:this._initialData?.popupRef||\"\"}}serialize(t=!1,e=null){t_(\"An editor must be serializable\")}static async deserialize(t,e,i){let s=new this.prototype.constructor({parent:e,id:e.getNextId(),uiManager:i});s.rotation=t.rotation,s.#t9=t.accessibilityData;let[r,n]=s.pageDimensions,[a,o,l,h]=s.getRectInCurrentCoords(t.rect,n);return s.x=a\/r,s.y=o\/n,s.width=l\/r,s.height=h\/n,s}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||null!==this.serialize())}remove(){if(this.#el?.abort(),this.#el=null,this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#eg&&(clearTimeout(this.#eg),this.#eg=null),this.#e_(),this.removeEditToolbar(),this.#ey){for(let t of this.#ey.values())clearTimeout(t);this.#ey=null}this.parent=null,this.#eA?.destroy(),this.#eA=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#eC(),this.#en.classList.remove(\"hidden\"),ei(this,this.div,[\"keydown\"]))}get toolbarPosition(){return null}keydown(t){if(!this.isResizable||t.target!==this.div||\"Enter\"!==t.key)return;this._uiManager.setSelected(this),this.#eo={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};let e=this.#en.children;if(!this.#et){this.#et=Array.from(e);let t=this.#eO.bind(this),i=this.#eB.bind(this),s=this._uiManager._signal;for(let e of this.#et){let r=e.getAttribute(\"data-resizer-name\");e.setAttribute(\"role\",\"spinbutton\"),e.addEventListener(\"keydown\",t,{signal:s}),e.addEventListener(\"blur\",i,{signal:s}),e.addEventListener(\"focus\",this.#e$.bind(this,r),{signal:s}),e.setAttribute(\"data-l10n-id\",ec._l10nResizer[r])}}let i=this.#et[0],s=0;for(let t of e){if(t===i)break;s++}let r=(360-this.rotation+this.parentRotation)%360\/90*(this.#et.length\/4);if(r!==s){if(r<s)for(let t=0;t<s-r;t++)this.#en.append(this.#en.firstChild);else if(r>s)for(let t=0;t<r-s;t++)this.#en.firstChild.before(this.#en.lastChild);let t=0;for(let i of e){let e=this.#et[t++].getAttribute(\"data-resizer-name\");i.setAttribute(\"data-l10n-id\",ec._l10nResizer[e])}}this.#eH(0),this.#ef=!0,this.#en.firstChild.focus({focusVisible:!0}),t.preventDefault(),t.stopImmediatePropagation()}#eO(t){ec._resizerKeyboardManager.exec(this,t)}#eB(t){this.#ef&&t.relatedTarget?.parentNode!==this.#en&&this.#e_()}#e$(t){this.#eh=this.#ef?t:\"\"}#eH(t){if(this.#et)for(let e of this.#et)e.tabIndex=t}_resizeWithKeyboard(t,e){this.#ef&&this.#ek(this.#eh,{deltaX:t,deltaY:e,fromKeyboard:!0})}#e_(){this.#ef=!1,this.#eH(-1),this.#eT()}_stopResizingWithKeyboard(){this.#e_(),this.div.focus()}select(){this.makeResizable(),this.div?.classList.add(\"selectedEditor\"),this._editToolbar?(this._editToolbar?.show(),this.#o?.toggleAltTextBadge(!1)):this.addEditToolbar().then(()=>{this.div?.classList.contains(\"selectedEditor\")&&this._editToolbar?.show()})}unselect(){this.#en?.classList.add(\"hidden\"),this.div?.classList.remove(\"selectedEditor\"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),this._editToolbar?.hide(),this.#o?.toggleAltTextBadge(!0)}updateParams(t,e){}disableEditing(){}enableEditing(){}enterInEditMode(){}getImageForAltText(){return null}get contentDiv(){return this.div}get isEditing(){return this.#eu}set isEditing(t){this.#eu=t,this.parent&&(t?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(t,e){this.#er=!0;let{style:i}=this.div;i.aspectRatio=t\/e,i.height=\"auto\"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:\"added\"}}get telemetryFinalData(){return null}_reportTelemetry(t,e=!1){if(e){this.#ey||=new Map;let{action:e}=t,i=this.#ey.get(e);i&&clearTimeout(i),i=setTimeout(()=>{this._reportTelemetry(t),this.#ey.delete(e),0===this.#ey.size&&(this.#ey=null)},ec._telemetryTimeout),this.#ey.set(e,i)}else t.type||=this.editorType,this._uiManager._eventBus.dispatch(\"reporttelemetry\",{source:this,details:{type:\"editing\",data:t}})}show(t=this._isVisible){this.div.classList.toggle(\"hidden\",!t),this._isVisible=t}enable(){this.div&&(this.div.tabIndex=0),this.#ee=!1}disable(){this.div&&(this.div.tabIndex=-1),this.#ee=!0}renderAnnotationElement(t){let e=t.container.querySelector(\".annotationContent\");if(e){if(\"CANVAS\"===e.nodeName){let t=e;(e=document.createElement(\"div\")).classList.add(\"annotationContent\",this.editorType),t.before(e)}}else(e=document.createElement(\"div\")).classList.add(\"annotationContent\",this.editorType),t.container.prepend(e);return e}resetAnnotationElement(t){let{firstChild:e}=t.container;\"DIV\"===e?.nodeName&&e.classList.contains(\"annotationContent\")&&e.remove()}}class eu extends ec{constructor(t){super(t),this.annotationElementId=t.annotationElementId,this.deleted=!0}serialize(){return this.serializeDeleted()}}class ep{constructor(t){this.h1=t?0|t:0xc3d2e1f0,this.h2=t?0|t:0xc3d2e1f0}update(t){let e,i;if(\"string\"==typeof t){e=new Uint8Array(2*t.length),i=0;for(let s=0,r=t.length;s<r;s++){let r=t.charCodeAt(s);r<=255?e[i++]=r:(e[i++]=r>>>8,e[i++]=255&r)}}else{if(!ArrayBuffer.isView(t))throw Error(\"Invalid data format, must be a string or TypedArray.\");i=(e=t.slice()).byteLength}let s=i>>2,r=i-4*s,n=new Uint32Array(e.buffer,0,s),a=0,o=0,l=this.h1,h=this.h2;for(let t=0;t<s;t++)1&t?(l^=a=0x1b873593*(a=(a=0xcc9e2d51*(a=n[t])&0xffff0000|11601*a&65535)<<15|a>>>17)&0xffff0000|13715*a&65535,l=5*(l=l<<13|l>>>19)+0xe6546b64):(h^=o=0x1b873593*(o=(o=0xcc9e2d51*(o=n[t])&0xffff0000|11601*o&65535)<<15|o>>>17)&0xffff0000|13715*o&65535,h=5*(h=h<<13|h>>>19)+0xe6546b64);switch(a=0,r){case 3:a^=e[4*s+2]<<16;case 2:a^=e[4*s+1]<<8;case 1:a^=e[4*s],a=0x1b873593*(a=(a=0xcc9e2d51*a&0xffff0000|11601*a&65535)<<15|a>>>17)&0xffff0000|13715*a&65535,1&s?l^=a:h^=a}this.h1=l,this.h2=h}hexdigest(){let t=this.h1,e=this.h2;return t^=e>>>1,e=0xff51afd7*e&0xffff0000|(0xafd7ed55*(e<<16|(t=0xed558ccd*t&0xffff0000|36045*t&65535)>>>16)&0xffff0000)>>>16,t^=e>>>1,e=0xc4ceb9fe*e&0xffff0000|(0xb9fe1a85*(e<<16|(t=0x1a85ec53*t&0xffff0000|60499*t&65535)>>>16)&0xffff0000)>>>16,((t^=e>>>1)>>>0).toString(16).padStart(8,\"0\")+(e>>>0).toString(16).padStart(8,\"0\")}}let ef=Object.freeze({map:null,hash:\"\",transfer:void 0});class eg{#eU=!1;#ej=null;#ez=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(t,e){let i=this.#ez.get(t);return void 0===i?e:Object.assign(e,i)}getRawValue(t){return this.#ez.get(t)}remove(t){if(this.#ez.delete(t),0===this.#ez.size&&this.resetModified(),\"function\"==typeof this.onAnnotationEditor){for(let t of this.#ez.values())if(t instanceof ec)return;this.onAnnotationEditor(null)}}setValue(t,e){let i=this.#ez.get(t),s=!1;if(void 0!==i)for(let[t,r]of Object.entries(e))i[t]!==r&&(s=!0,i[t]=r);else s=!0,this.#ez.set(t,e);s&&this.#eG(),e instanceof ec&&\"function\"==typeof this.onAnnotationEditor&&this.onAnnotationEditor(e.constructor._type)}has(t){return this.#ez.has(t)}getAll(){return this.#ez.size>0?tN(this.#ez):null}setAll(t){for(let[e,i]of Object.entries(t))this.setValue(e,i)}get size(){return this.#ez.size}#eG(){this.#eU||(this.#eU=!0,\"function\"==typeof this.onSetModified&&this.onSetModified())}resetModified(){this.#eU&&(this.#eU=!1,\"function\"==typeof this.onResetModified&&this.onResetModified())}get print(){return new em(this)}get serializable(){if(0===this.#ez.size)return ef;let t=new Map,e=new ep,i=[],s=Object.create(null),r=!1;for(let[i,n]of this.#ez){let a=n instanceof ec?n.serialize(!1,s):n;a&&(t.set(i,a),e.update(`${i}:${JSON.stringify(a)}`),r||=!!a.bitmap)}if(r)for(let e of t.values())e.bitmap&&i.push(e.bitmap);return t.size>0?{map:t,hash:e.hexdigest(),transfer:i}:ef}get editorStats(){let t=null,e=new Map;for(let i of this.#ez.values()){if(!(i instanceof ec))continue;let s=i.telemetryFinalData;if(!s)continue;let{type:r}=s;e.has(r)||e.set(r,Object.getPrototypeOf(i).constructor),t||=Object.create(null);let n=t[r]||=new Map;for(let[t,e]of Object.entries(s)){if(\"type\"===t)continue;let i=n.get(t);i||(i=new Map,n.set(t,i));let s=i.get(e)??0;i.set(e,s+1)}}for(let[i,s]of e)t[i]=s.computeTelemetryFinalData(t[i]);return t}resetModifiedIds(){this.#ej=null}get modifiedIds(){if(this.#ej)return this.#ej;let t=[];for(let e of this.#ez.values())e instanceof ec&&e.annotationElementId&&e.serialize()&&t.push(e.annotationElementId);return this.#ej={ids:new Set(t),hash:t.join(\",\")}}}class em extends eg{#eV;constructor(t){super();const{map:e,hash:i,transfer:s}=t.serializable,r=structuredClone(e,s?{transfer:s}:null);this.#eV={map:r,hash:i,transfer:s}}get print(){t_(\"Should not call PrintAnnotationStorage.print\")}get serializable(){return this.#eV}get modifiedIds(){return tS(this,\"modifiedIds\",{ids:new Set,hash:\"\"})}}class eb{#eW=new Set;constructor({ownerDocument:t=globalThis.document,styleElement:e=null}){this._document=t,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(t){this.nativeFontFaces.add(t),this._document.fonts.add(t)}removeNativeFontFace(t){this.nativeFontFaces.delete(t),this._document.fonts.delete(t)}insertRule(t){this.styleElement||(this.styleElement=this._document.createElement(\"style\"),this._document.documentElement.getElementsByTagName(\"head\")[0].append(this.styleElement));let e=this.styleElement.sheet;e.insertRule(t,e.cssRules.length)}clear(){for(let t of this.nativeFontFaces)this._document.fonts.delete(t);this.nativeFontFaces.clear(),this.#eW.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:t,_inspectFont:e}){if(t&&!this.#eW.has(t.loadedName))if(tx(!this.disableFontFace,\"loadSystemFont shouldn't be called when `disableFontFace` is set.\"),this.isFontLoadingAPISupported){let{loadedName:i,src:s,style:r}=t,n=new FontFace(i,s,r);this.addNativeFontFace(n);try{await n.load(),this.#eW.add(i),e?.(t)}catch{tw(`Cannot load system font: ${t.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(n)}}else t_(\"Not implemented: loadSystemFont without the Font Loading API.\")}async bind(t){if(t.attached||t.missingFile&&!t.systemFontInfo)return;if(t.attached=!0,t.systemFontInfo)return void await this.loadSystemFont(t);if(this.isFontLoadingAPISupported){let e=t.createNativeFontFace();if(e){this.addNativeFontFace(e);try{await e.loaded}catch(i){throw tw(`Failed to load font '${e.family}': '${i}'.`),t.disableFontFace=!0,i}}return}let e=t.createFontFaceRule();if(e){if(this.insertRule(e),this.isSyncFontLoadingSupported)return;await new Promise(e=>{let i=this._queueLoadingCallback(e);this._prepareFontLoadEvent(t,i)})}}get isFontLoadingAPISupported(){return tS(this,\"isFontLoadingAPISupported\",!!this._document?.fonts)}get isSyncFontLoadingSupported(){let t=!1;return\"u\">typeof navigator&&\"string\"==typeof navigator?.userAgent&&\/Mozilla\\\/5.0.*?rv:\\d+.*? Gecko\/.test(navigator.userAgent)&&(t=!0),tS(this,\"isSyncFontLoadingSupported\",t)}_queueLoadingCallback(t){let{loadingRequests:e}=this,i={done:!1,complete:function(){for(tx(!i.done,\"completeRequest() cannot be called twice.\"),i.done=!0;e.length>0&&e[0].done;)setTimeout(e.shift().callback,0)},callback:t};return e.push(i),i}get _loadTestFont(){return tS(this,\"_loadTestFont\",atob(\"T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk\/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T\/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7\/\/wAAAC7\/\/\/\/TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD\/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA\/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE\/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==\"))}_prepareFontLoadEvent(t,e){var i;let s,r;function n(t,e){return t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|255&t.charCodeAt(e+3)}function a(t,e,i,s){return t.substring(0,e)+s+t.substring(e+i)}let o=this._document.createElement(\"canvas\");o.width=1,o.height=1;let l=o.getContext(\"2d\"),h=0,d=`lt${Date.now()}${this.loadTestFontId++}`,c=this._loadTestFont,u=n(c=a(c,976,d.length,d),16);for(s=0,r=d.length-3;s<r;s+=4)u=u-0x58585858+n(d,s)|0;s<d.length&&(u=u-0x58585858+n(d+\"XXX\",s)|0),c=a(c,16,4,String.fromCharCode((i=u)>>24&255,i>>16&255,i>>8&255,255&i));let p=`@font-face {font-family:\"${d}\";src:url(data:font\/opentype;base64,${btoa(c)});}`;this.insertRule(p);let f=this._document.createElement(\"div\");for(let e of(f.style.visibility=\"hidden\",f.style.width=f.style.height=\"10px\",f.style.position=\"absolute\",f.style.top=f.style.left=\"0px\",[t.loadedName,d])){let t=this._document.createElement(\"span\");t.textContent=\"Hi\",t.style.fontFamily=e,f.append(t)}this._document.body.append(f),function t(e,i){if(++h>30){tw(\"Load test font never loaded.\"),i();return}l.font=\"30px \"+e,l.fillText(\".\",0,20),l.getImageData(0,0,1,1).data[3]>0?i():setTimeout(t.bind(null,e,i))}(d,()=>{f.remove(),e.complete()})}}class ey{constructor(t,{disableFontFace:e=!1,fontExtraProperties:i=!1,inspectFont:s=null}){for(const e in this.compiledGlyphs=Object.create(null),t)this[e]=t[e];this.disableFontFace=!0===e,this.fontExtraProperties=!0===i,this._inspectFont=s}createNativeFontFace(){let t;if(!this.data||this.disableFontFace)return null;if(this.cssFontInfo){let e={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(e.style=`oblique ${this.cssFontInfo.italicAngle}deg`),t=new FontFace(this.cssFontInfo.fontFamily,this.data,e)}else t=new FontFace(this.loadedName,this.data,{});return this._inspectFont?.(this),t}createFontFaceRule(){var t;let e;if(!this.data||this.disableFontFace)return null;let i=`url(data:${this.mimetype};base64,${(t=this.data,Uint8Array.prototype.toBase64?t.toBase64():btoa(tD(t)))});`;if(this.cssFontInfo){let t=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(t+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),e=`@font-face {font-family:\"${this.cssFontInfo.fontFamily}\";${t}src:${i}}`}else e=`@font-face {font-family:\"${this.loadedName}\";src:${i}}`;return this._inspectFont?.(this,i),e}getPathGenerator(t,e){let i;if(void 0!==this.compiledGlyphs[e])return this.compiledGlyphs[e];let s=this.loadedName+\"_path_\"+e;try{i=t.get(s)}catch(t){tw(`getPathGenerator - ignoring character: \"${t}\".`)}let r=new Path2D(i||\"\");return this.fontExtraProperties||t.delete(s),this.compiledGlyphs[e]=r}}function eA(){}function ev(t){if(t instanceof tL||t instanceof tT||t instanceof tP||t instanceof tM||t instanceof tR||t instanceof tk)return t;switch(t instanceof Error||\"object\"==typeof t&&null!==t||t_('wrapReason: Expected \"reason\" to be a (possibly cloned) Error.'),t.name){case\"AbortException\":return new tL(t.message);case\"InvalidPDFException\":return new tT(t.message);case\"MissingPDFException\":return new tP(t.message);case\"PasswordException\":return new tM(t.message,t.code);case\"UnexpectedResponseException\":return new tR(t.message,t.status);case\"UnknownErrorException\":return new tk(t.message,t.details)}return new tk(t.message,t.toString())}class ew{#eq=new AbortController;constructor(t,e,i){this.sourceName=t,this.targetName=e,this.comObj=i,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),i.addEventListener(\"message\",this.#eX.bind(this),{signal:this.#eq.signal})}#eX({data:t}){if(t.targetName!==this.sourceName)return;if(t.stream)return void this.#eK(t);if(t.callback){let e=t.callbackId,i=this.callbackCapabilities[e];if(!i)throw Error(`Cannot resolve callback ${e}`);if(delete this.callbackCapabilities[e],1===t.callback)i.resolve(t.data);else{if(2!==t.callback)throw Error(\"Unexpected callback case\");i.reject(ev(t.reason))}return}let e=this.actionHandler[t.action];if(!e)throw Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){let i=this.sourceName,s=t.sourceName,r=this.comObj;Promise.try(e,t.data).then(function(e){r.postMessage({sourceName:i,targetName:s,callback:1,callbackId:t.callbackId,data:e})},function(e){r.postMessage({sourceName:i,targetName:s,callback:2,callbackId:t.callbackId,reason:ev(e)})})}else t.streamId?this.#eY(t):e(t.data)}on(t,e){let i=this.actionHandler;if(i[t])throw Error(`There is already an actionName called \"${t}\"`);i[t]=e}send(t,e,i){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:e},i)}sendWithPromise(t,e,i){let s=this.callbackId++,r=Promise.withResolvers();this.callbackCapabilities[s]=r;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:s,data:e},i)}catch(t){r.reject(t)}return r.promise}sendWithStream(t,e,i,s){let r=this.streamId++,n=this.sourceName,a=this.targetName,o=this.comObj;return new ReadableStream({start:i=>{let l=Promise.withResolvers();return this.streamControllers[r]={controller:i,startCall:l,pullCall:null,cancelCall:null,isClosed:!1},o.postMessage({sourceName:n,targetName:a,action:t,streamId:r,data:e,desiredSize:i.desiredSize},s),l.promise},pull:t=>{let e=Promise.withResolvers();return this.streamControllers[r].pullCall=e,o.postMessage({sourceName:n,targetName:a,stream:6,streamId:r,desiredSize:t.desiredSize}),e.promise},cancel:t=>{tx(t instanceof Error,\"cancel must have a valid reason\");let e=Promise.withResolvers();return this.streamControllers[r].cancelCall=e,this.streamControllers[r].isClosed=!0,o.postMessage({sourceName:n,targetName:a,stream:1,streamId:r,reason:ev(t)}),e.promise}},i)}#eY(t){let e=t.streamId,i=this.sourceName,s=t.sourceName,r=this.comObj,n=this,a=this.actionHandler[t.action],o={enqueue(t,n=1,a){if(this.isCancelled)return;let o=this.desiredSize;this.desiredSize-=n,o>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),r.postMessage({sourceName:i,targetName:s,stream:4,streamId:e,chunk:t},a)},close(){this.isCancelled||(this.isCancelled=!0,r.postMessage({sourceName:i,targetName:s,stream:3,streamId:e}),delete n.streamSinks[e])},error(t){tx(t instanceof Error,\"error must have a valid reason\"),this.isCancelled||(this.isCancelled=!0,r.postMessage({sourceName:i,targetName:s,stream:5,streamId:e,reason:ev(t)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};o.sinkCapability.resolve(),o.ready=o.sinkCapability.promise,this.streamSinks[e]=o,Promise.try(a,t.data,o).then(function(){r.postMessage({sourceName:i,targetName:s,stream:8,streamId:e,success:!0})},function(t){r.postMessage({sourceName:i,targetName:s,stream:8,streamId:e,reason:ev(t)})})}#eK(t){let e=t.streamId,i=this.sourceName,s=t.sourceName,r=this.comObj,n=this.streamControllers[e],a=this.streamSinks[e];switch(t.stream){case 8:t.success?n.startCall.resolve():n.startCall.reject(ev(t.reason));break;case 7:t.success?n.pullCall.resolve():n.pullCall.reject(ev(t.reason));break;case 6:if(!a){r.postMessage({sourceName:i,targetName:s,stream:7,streamId:e,success:!0});break}a.desiredSize<=0&&t.desiredSize>0&&a.sinkCapability.resolve(),a.desiredSize=t.desiredSize,Promise.try(a.onPull||eA).then(function(){r.postMessage({sourceName:i,targetName:s,stream:7,streamId:e,success:!0})},function(t){r.postMessage({sourceName:i,targetName:s,stream:7,streamId:e,reason:ev(t)})});break;case 4:if(tx(n,\"enqueue should have stream controller\"),n.isClosed)break;n.controller.enqueue(t.chunk);break;case 3:if(tx(n,\"close should have stream controller\"),n.isClosed)break;n.isClosed=!0,n.controller.close(),this.#eQ(n,e);break;case 5:tx(n,\"error should have stream controller\"),n.controller.error(ev(t.reason)),this.#eQ(n,e);break;case 2:t.success?n.cancelCall.resolve():n.cancelCall.reject(ev(t.reason)),this.#eQ(n,e);break;case 1:if(!a)break;let o=ev(t.reason);Promise.try(a.onCancel||eA,o).then(function(){r.postMessage({sourceName:i,targetName:s,stream:2,streamId:e,success:!0})},function(t){r.postMessage({sourceName:i,targetName:s,stream:2,streamId:e,reason:ev(t)})}),a.sinkCapability.reject(o),a.isCancelled=!0,delete this.streamSinks[e];break;default:throw Error(\"Unexpected stream case\")}}async #eQ(t,e){await Promise.allSettled([t.startCall?.promise,t.pullCall?.promise,t.cancelCall?.promise]),delete this.streamControllers[e]}destroy(){this.#eq?.abort(),this.#eq=null}}class e_{#eJ=!1;constructor({enableHWA:t=!1}){this.#eJ=t}create(t,e){if(t<=0||e<=0)throw Error(\"Invalid canvas size\");let i=this._createCanvas(t,e);return{canvas:i,context:i.getContext(\"2d\",{willReadFrequently:!this.#eJ})}}reset(t,e,i){if(!t.canvas)throw Error(\"Canvas is not specified\");if(e<=0||i<=0)throw Error(\"Invalid canvas size\");t.canvas.width=e,t.canvas.height=i}destroy(t){if(!t.canvas)throw Error(\"Canvas is not specified\");t.canvas.width=0,t.canvas.height=0,t.canvas=null,t.context=null}_createCanvas(t,e){t_(\"Abstract method `_createCanvas` called.\")}}class ex{constructor({baseUrl:t=null,isCompressed:e=!0}){this.baseUrl=t,this.isCompressed=e}async fetch({name:t}){if(!this.baseUrl)throw Error(\"Ensure that the `cMapUrl` and `cMapPacked` API parameters are provided.\");if(!t)throw Error(\"CMap name must be specified.\");let e=this.baseUrl+t+(this.isCompressed?\".bcmap\":\"\");return this._fetch(e).then(t=>({cMapData:t,isCompressed:this.isCompressed})).catch(t=>{throw Error(`Unable to load ${this.isCompressed?\"binary \":\"\"}CMap at: ${e}`)})}async _fetch(t){t_(\"Abstract method `_fetch` called.\")}}class eE extends ex{async _fetch(t){let e=await tW(t,this.isCompressed?\"arraybuffer\":\"text\");return e instanceof ArrayBuffer?new Uint8Array(e):tF(e)}}class eS{addFilter(t){return\"none\"}addHCMFilter(t,e){return\"none\"}addAlphaFilter(t){return\"none\"}addLuminosityFilter(t){return\"none\"}addHighlightHCMFilter(t,e,i,s,r){return\"none\"}destroy(t=!1){}}class eC{constructor({baseUrl:t=null}){this.baseUrl=t}async fetch({filename:t}){if(!this.baseUrl)throw Error(\"Ensure that the `standardFontDataUrl` API parameter is provided.\");if(!t)throw Error(\"Font filename must be specified.\");let e=`${this.baseUrl}${t}`;return this._fetch(e).catch(t=>{throw Error(`Unable to load font data at: ${e}`)})}async _fetch(t){t_(\"Abstract method `_fetch` called.\")}}class eM extends eC{async _fetch(t){return new Uint8Array(await tW(t,\"arraybuffer\"))}}let ek=\"Fill\",eT=\"Stroke\",eP=\"Shading\";function eR(t,e){if(!e)return;let i=e[2]-e[0],s=e[3]-e[1],r=new Path2D;r.rect(e[0],e[1],i,s),t.clip(r)}class eI{getPattern(){t_(\"Abstract method `getPattern` called.\")}}class eL extends eI{constructor(t){super(),this._type=t[1],this._bbox=t[2],this._colorStops=t[3],this._p0=t[4],this._p1=t[5],this._r0=t[6],this._r1=t[7],this.matrix=null}_createGradient(t){let e;for(let i of(\"axial\"===this._type?e=t.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):\"radial\"===this._type&&(e=t.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1)),this._colorStops))e.addColorStop(i[0],i[1]);return e}getPattern(t,e,i,s){let r;if(s===eT||s===ek){let n=e.current.getClippedPathBoundingBox(s,t8(t))||[0,0,0,0],a=Math.ceil(n[2]-n[0])||1,o=Math.ceil(n[3]-n[1])||1,l=e.cachedCanvases.getCanvas(\"pattern\",a,o),h=l.context;h.clearRect(0,0,h.canvas.width,h.canvas.height),h.beginPath(),h.rect(0,0,h.canvas.width,h.canvas.height),h.translate(-n[0],-n[1]),i=t$.transform(i,[1,0,0,1,n[0],n[1]]),h.transform(...e.baseTransform),this.matrix&&h.transform(...this.matrix),eR(h,this._bbox),h.fillStyle=this._createGradient(h),h.fill(),r=t.createPattern(l.canvas,\"no-repeat\");let d=new DOMMatrix(i);r.setTransform(d)}else eR(t,this._bbox),r=this._createGradient(t);return r}}function eD(t,e,i,s,r,n,a,o){let l,h,d,c,u,p,f,g,m,b=e.coords,y=e.colors,A=t.data,v=4*t.width;b[i+1]>b[s+1]&&(l=i,i=s,s=l,l=n,n=a,a=l),b[s+1]>b[r+1]&&(l=s,s=r,r=l,l=a,a=o,o=l),b[i+1]>b[s+1]&&(l=i,i=s,s=l,l=n,n=a,a=l);let w=(b[i]+e.offsetX)*e.scaleX,_=(b[i+1]+e.offsetY)*e.scaleY,x=(b[s]+e.offsetX)*e.scaleX,E=(b[s+1]+e.offsetY)*e.scaleY,S=(b[r]+e.offsetX)*e.scaleX,C=(b[r+1]+e.offsetY)*e.scaleY;if(_>=C)return;let M=y[n],k=y[n+1],T=y[n+2],P=y[a],R=y[a+1],I=y[a+2],L=y[o],D=y[o+1],F=y[o+2],N=Math.round(_),O=Math.round(C);for(let t=N;t<=O;t++){let e;if(t<E){let e=t<_?0:(_-t)\/(_-E);h=w-(w-x)*e,d=M-(M-P)*e,c=k-(k-R)*e,u=T-(T-I)*e}else{let e;h=x-(x-S)*(e=t>C?1:E===C?0:(E-t)\/(E-C)),d=P-(P-L)*e,c=R-(R-D)*e,u=I-(I-F)*e}p=w-(w-S)*(e=t<_?0:t>C?1:(_-t)\/(_-C)),f=M-(M-L)*e,g=k-(k-D)*e,m=T-(T-F)*e;let i=Math.round(Math.min(h,p)),s=Math.round(Math.max(h,p)),r=v*t+4*i;for(let t=i;t<=s;t++)(e=(h-t)\/(h-p))<0?e=0:e>1&&(e=1),A[r++]=d-(d-f)*e|0,A[r++]=c-(c-g)*e|0,A[r++]=u-(u-m)*e|0,A[r++]=255}}class eF extends eI{constructor(t){super(),this._coords=t[2],this._colors=t[3],this._figures=t[4],this._bounds=t[5],this._bbox=t[7],this._background=t[8],this.matrix=null}_createMeshCanvas(t,e,i){let s=Math.floor(this._bounds[0]),r=Math.floor(this._bounds[1]),n=Math.ceil(this._bounds[2])-s,a=Math.ceil(this._bounds[3])-r,o=Math.min(Math.ceil(Math.abs(n*t[0]*1.1)),3e3),l=Math.min(Math.ceil(Math.abs(a*t[1]*1.1)),3e3),h=n\/o,d=a\/l,c={coords:this._coords,colors:this._colors,offsetX:-s,offsetY:-r,scaleX:1\/h,scaleY:1\/d},u=o+4,p=l+4,f=i.getCanvas(\"mesh\",u,p),g=f.context,m=g.createImageData(o,l);if(e){let t=m.data;for(let i=0,s=t.length;i<s;i+=4)t[i]=e[0],t[i+1]=e[1],t[i+2]=e[2],t[i+3]=255}for(let t of this._figures)!function(t,e,i){let s,r,n=e.coords,a=e.colors;switch(e.type){case\"lattice\":let o=e.verticesPerRow,l=Math.floor(n.length\/o)-1,h=o-1;for(s=0;s<l;s++){let e=s*o;for(let s=0;s<h;s++,e++)eD(t,i,n[e],n[e+1],n[e+o],a[e],a[e+1],a[e+o]),eD(t,i,n[e+o+1],n[e+1],n[e+o],a[e+o+1],a[e+1],a[e+o])}break;case\"triangles\":for(s=0,r=n.length;s<r;s+=3)eD(t,i,n[s],n[s+1],n[s+2],a[s],a[s+1],a[s+2]);break;default:throw Error(\"illegal figure\")}}(m,t,c);return g.putImageData(m,2,2),{canvas:f.canvas,offsetX:s-2*h,offsetY:r-2*d,scaleX:h,scaleY:d}}getPattern(t,e,i,s){let r;if(eR(t,this._bbox),s===eP)r=t$.singularValueDecompose2dScale(t8(t));else if(r=t$.singularValueDecompose2dScale(e.baseTransform),this.matrix){let t=t$.singularValueDecompose2dScale(this.matrix);r=[r[0]*t[0],r[1]*t[1]]}let n=this._createMeshCanvas(r,s===eP?null:this._background,e.cachedCanvases);return s!==eP&&(t.setTransform(...e.baseTransform),this.matrix&&t.transform(...this.matrix)),t.translate(n.offsetX,n.offsetY),t.scale(n.scaleX,n.scaleY),t.createPattern(n.canvas,\"no-repeat\")}}class eN extends eI{getPattern(){return\"hotpink\"}}class eO{static MAX_PATTERN_SIZE=3e3;constructor(t,e,i,s,r){this.operatorList=t[2],this.matrix=t[3],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.color=e,this.ctx=i,this.canvasGraphicsFactory=s,this.baseTransform=r}createPatternCanvas(t){let{bbox:e,operatorList:i,paintType:s,tilingType:r,color:n,canvasGraphicsFactory:a}=this,{xstep:o,ystep:l}=this;o=Math.abs(o),l=Math.abs(l),tv(\"TilingType: \"+r);let h=e[0],d=e[1],c=e[2],u=e[3],p=c-h,f=u-d,g=t$.singularValueDecompose2dScale(this.matrix),m=t$.singularValueDecompose2dScale(this.baseTransform),b=g[0]*m[0],y=g[1]*m[1],A=p,v=f,w=!1,_=!1,x=Math.ceil(l*y);Math.ceil(o*b)>=Math.ceil(p*b)?A=o:w=!0,x>=Math.ceil(f*y)?v=l:_=!0;let E=this.getSizeAndScale(A,this.ctx.canvas.width,b),S=this.getSizeAndScale(v,this.ctx.canvas.height,y),C=t.cachedCanvases.getCanvas(\"pattern\",E.size,S.size),M=C.context,k=a.createCanvasGraphics(M);if(k.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(k,s,n),M.translate(-E.scale*h,-S.scale*d),k.transform(E.scale,0,0,S.scale,0,0),M.save(),this.clipBbox(k,h,d,c,u),k.baseTransform=t8(k.ctx),k.executeOperatorList(i),k.endDrawing(),M.restore(),w||_){let e=C.canvas;w&&(A=o),_&&(v=l);let i=this.getSizeAndScale(A,this.ctx.canvas.width,b),s=this.getSizeAndScale(v,this.ctx.canvas.height,y),r=i.size,n=s.size,a=t.cachedCanvases.getCanvas(\"pattern-workaround\",r,n),c=a.context,u=w?Math.floor(p\/o):0,g=_?Math.floor(f\/l):0;for(let t=0;t<=u;t++)for(let i=0;i<=g;i++)c.drawImage(e,r*t,n*i,r,n,0,0,r,n);return{canvas:a.canvas,scaleX:i.scale,scaleY:s.scale,offsetX:h,offsetY:d}}return{canvas:C.canvas,scaleX:E.scale,scaleY:S.scale,offsetX:h,offsetY:d}}getSizeAndScale(t,e,i){let s=Math.max(eO.MAX_PATTERN_SIZE,e),r=Math.ceil(t*i);return r>=s?r=s:i=r\/t,{scale:i,size:r}}clipBbox(t,e,i,s,r){let n=s-e,a=r-i;t.ctx.rect(e,i,n,a),t.current.updateRectMinMax(t8(t.ctx),[e,i,s,r]),t.clip(),t.endPath()}setFillAndStrokeStyleToContext(t,e,i){let s=t.ctx,r=t.current;switch(e){case 1:let n=this.ctx;s.fillStyle=n.fillStyle,s.strokeStyle=n.strokeStyle,r.fillColor=n.fillStyle,r.strokeColor=n.strokeStyle;break;case 2:let a=t$.makeHexColor(i[0],i[1],i[2]);s.fillStyle=a,s.strokeStyle=a,r.fillColor=a,r.strokeColor=a;break;default:throw new tI(`Unsupported paint type: ${e}`)}}getPattern(t,e,i,s){let r=i;s!==eP&&(r=t$.transform(r,e.baseTransform),this.matrix&&(r=t$.transform(r,this.matrix)));let n=this.createPatternCanvas(e),a=new DOMMatrix(r);a=(a=a.translate(n.offsetX,n.offsetY)).scale(1\/n.scaleX,1\/n.scaleY);let o=t.createPattern(n.canvas,\"repeat\");return o.setTransform(a),o}}class eB{constructor(t){this.canvasFactory=t,this.cache=Object.create(null)}getCanvas(t,e,i){let s;return void 0!==this.cache[t]?(s=this.cache[t],this.canvasFactory.reset(s,e,i)):(s=this.canvasFactory.create(e,i),this.cache[t]=s),s}delete(t){delete this.cache[t]}clear(){for(let t in this.cache){let e=this.cache[t];this.canvasFactory.destroy(e),delete this.cache[t]}}}function e$(t,e,i,s,r,n,a,o,l,h){let[d,c,u,p,f,g]=t8(t);if(0===c&&0===u){let m=Math.round(a*d+f),b=Math.round(o*p+g),y=Math.abs(Math.round((a+l)*d+f)-m)||1,A=Math.abs(Math.round((o+h)*p+g)-b)||1;return t.setTransform(Math.sign(d),0,0,Math.sign(p),m,b),t.drawImage(e,i,s,r,n,0,0,y,A),t.setTransform(d,c,u,p,f,g),[y,A]}if(0===d&&0===p){let m=Math.round(o*u+f),b=Math.round(a*c+g),y=Math.abs(Math.round((o+h)*u+f)-m)||1,A=Math.abs(Math.round((a+l)*c+g)-b)||1;return t.setTransform(0,Math.sign(c),Math.sign(u),0,m,b),t.drawImage(e,i,s,r,n,0,0,A,y),t.setTransform(d,c,u,p,f,g),[A,y]}return t.drawImage(e,i,s,r,n,a,o,l,h),[Math.hypot(d,c)*l,Math.hypot(u,p)*h]}class eH{constructor(t,e){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=th,this.textMatrixScale=1,this.fontMatrix=td,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=0,this.textRise=0,this.fillColor=\"#000000\",this.strokeColor=\"#000000\",this.patternFill=!1,this.patternStroke=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps=\"none\",this.startNewPathAndClipBox([0,0,t,e])}clone(){let t=Object.create(this);return t.clipBox=this.clipBox.slice(),t}setCurrentPoint(t,e){this.x=t,this.y=e}updatePathMinMax(t,e,i){[e,i]=t$.applyTransform([e,i],t),this.minX=Math.min(this.minX,e),this.minY=Math.min(this.minY,i),this.maxX=Math.max(this.maxX,e),this.maxY=Math.max(this.maxY,i)}updateRectMinMax(t,e){let i=t$.applyTransform(e,t),s=t$.applyTransform(e.slice(2),t),r=t$.applyTransform([e[0],e[3]],t),n=t$.applyTransform([e[2],e[1]],t);this.minX=Math.min(this.minX,i[0],s[0],r[0],n[0]),this.minY=Math.min(this.minY,i[1],s[1],r[1],n[1]),this.maxX=Math.max(this.maxX,i[0],s[0],r[0],n[0]),this.maxY=Math.max(this.maxY,i[1],s[1],r[1],n[1])}updateScalingPathMinMax(t,e){t$.scaleMinMax(t,e),this.minX=Math.min(this.minX,e[0]),this.minY=Math.min(this.minY,e[1]),this.maxX=Math.max(this.maxX,e[2]),this.maxY=Math.max(this.maxY,e[3])}updateCurvePathMinMax(t,e,i,s,r,n,a,o,l,h){let d=t$.bezierBoundingBox(e,i,s,r,n,a,o,l,h);h||this.updateRectMinMax(t,d)}getPathBoundingBox(t=ek,e=null){let i=[this.minX,this.minY,this.maxX,this.maxY];if(t===eT){e||t_(\"Stroke bounding box must include transform.\");let t=t$.singularValueDecompose2dScale(e),s=t[0]*this.lineWidth\/2,r=t[1]*this.lineWidth\/2;i[0]-=s,i[1]-=r,i[2]+=s,i[3]+=r}return i}updateClipFromPath(){let t=t$.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(t||[0,0,0,0])}isEmptyClip(){return this.minX===1\/0}startNewPathAndClipBox(t){this.clipBox=t,this.minX=1\/0,this.minY=1\/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(t=ek,e=null){return t$.intersect(this.clipBox,this.getPathBoundingBox(t,e))}}function eU(t,e){let i,s,r,n;if(e instanceof ImageData)return void t.putImageData(e,0,0);let a=e.height,o=e.width,l=a%16,h=(a-l)\/16,d=0===l?h:h+1,c=t.createImageData(o,16),u,p=0,f=e.data,g=c.data;if(e.kind===tg.GRAYSCALE_1BPP){let e=f.byteLength,n=new Uint32Array(g.buffer,0,g.byteLength>>2),a=n.length,m=o+7>>3,b=tO.isLittleEndian?0xff000000:255;for(i=0;i<d;i++){for(s=0,r=i<h?16:l,u=0;s<r;s++){let t=e-p,i=0,s=t>m?o:8*t-7,r=-8&s,a=0,l=0;for(;i<r;i+=8)l=f[p++],n[u++]=128&l?0xffffffff:b,n[u++]=64&l?0xffffffff:b,n[u++]=32&l?0xffffffff:b,n[u++]=16&l?0xffffffff:b,n[u++]=8&l?0xffffffff:b,n[u++]=4&l?0xffffffff:b,n[u++]=2&l?0xffffffff:b,n[u++]=1&l?0xffffffff:b;for(;i<s;i++)0===a&&(l=f[p++],a=128),n[u++]=l&a?0xffffffff:b,a>>=1}for(;u<a;)n[u++]=0;t.putImageData(c,0,16*i)}}else if(e.kind===tg.RGBA_32BPP){for(i=0,s=0,n=16*o*4;i<h;i++)g.set(f.subarray(p,p+n)),p+=n,t.putImageData(c,0,s),s+=16;i<d&&(n=o*l*4,g.set(f.subarray(p,p+n)),t.putImageData(c,0,s))}else{if(e.kind!==tg.RGB_24BPP)throw Error(`bad image kind: ${e.kind}`);for(i=0,n=o*(r=16);i<d;i++){for(i>=h&&(n=o*(r=l)),u=0,s=n;s--;)g[u++]=f[p++],g[u++]=f[p++],g[u++]=f[p++],g[u++]=255;t.putImageData(c,0,16*i)}}}function ej(t,e){if(e.bitmap)return void t.drawImage(e.bitmap,0,0);let i=e.height,s=e.width,r=i%16,n=(i-r)\/16,a=0===r?n:n+1,o=t.createImageData(s,16),l=0,h=e.data,d=o.data;for(let e=0;e<a;e++){let i=e<n?16:r;({srcPos:l}=function({src:t,srcPos:e=0,dest:i,width:s,height:r,nonBlackColor:n=0xffffffff,inverseDecode:a=!1}){let o=tO.isLittleEndian?0xff000000:255,[l,h]=a?[n,o]:[o,n],d=s>>3,c=7&s,u=t.length;i=new Uint32Array(i.buffer);let p=0;for(let s=0;s<r;s++){for(let s=e+d;e<s;e++){let s=e<u?t[e]:255;i[p++]=128&s?h:l,i[p++]=64&s?h:l,i[p++]=32&s?h:l,i[p++]=16&s?h:l,i[p++]=8&s?h:l,i[p++]=4&s?h:l,i[p++]=2&s?h:l,i[p++]=1&s?h:l}if(0===c)continue;let s=e<u?t[e++]:255;for(let t=0;t<c;t++)i[p++]=s&1<<7-t?h:l}return{srcPos:e,destPos:p}}({src:h,srcPos:l,dest:d,width:s,height:i,nonBlackColor:0})),t.putImageData(o,0,16*e)}}function ez(t,e){for(let i of[\"strokeStyle\",\"fillStyle\",\"fillRule\",\"globalAlpha\",\"lineWidth\",\"lineCap\",\"lineJoin\",\"miterLimit\",\"globalCompositeOperation\",\"font\",\"filter\"])void 0!==t[i]&&(e[i]=t[i]);void 0!==t.setLineDash&&(e.setLineDash(t.getLineDash()),e.lineDashOffset=t.lineDashOffset)}function eG(t){t.strokeStyle=t.fillStyle=\"#000000\",t.fillRule=\"nonzero\",t.globalAlpha=1,t.lineWidth=1,t.lineCap=\"butt\",t.lineJoin=\"miter\",t.miterLimit=10,t.globalCompositeOperation=\"source-over\",t.font=\"10px sans-serif\",void 0!==t.setLineDash&&(t.setLineDash([]),t.lineDashOffset=0);{let{filter:e}=t;\"none\"!==e&&\"\"!==e&&(t.filter=\"none\")}}function eV(t,e){if(e)return!0;let i=t$.singularValueDecompose2dScale(t);i[0]=Math.fround(i[0]),i[1]=Math.fround(i[1]);let s=Math.fround((globalThis.devicePixelRatio||1)*tV.PDF_TO_CSS_UNITS);return i[0]<=s&&i[1]<=s}let eW=[\"butt\",\"round\",\"square\"],eq=[\"miter\",\"round\",\"bevel\"],eX={},eK={};class eY{constructor(t,e,i,s,r,{optionalContentConfig:n,markedContentStack:a=null},o,l){this.ctx=t,this.current=new eH(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=e,this.objs=i,this.canvasFactory=s,this.filterFactory=r,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=a||[],this.optionalContentConfig=n,this.cachedCanvases=new eB(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=o,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=l,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(t,e=null){return\"string\"==typeof t?t.startsWith(\"g_\")?this.commonObjs.get(t):this.objs.get(t):e}beginDrawing({transform:t,viewport:e,transparency:i=!1,background:s=null}){let r=this.ctx.canvas.width,n=this.ctx.canvas.height,a=this.ctx.fillStyle;if(this.ctx.fillStyle=s||\"#ffffff\",this.ctx.fillRect(0,0,r,n),this.ctx.fillStyle=a,i){let t=this.cachedCanvases.getCanvas(\"transparent\",r,n);this.compositeCtx=this.ctx,this.transparentCanvas=t.canvas,this.ctx=t.context,this.ctx.save(),this.ctx.transform(...t8(this.compositeCtx))}this.ctx.save(),eG(this.ctx),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...e.transform),this.viewportScale=e.scale,this.baseTransform=t8(this.ctx)}executeOperatorList(t,e,i,s){let r,n=t.argsArray,a=t.fnArray,o=e||0,l=n.length;if(l===o)return o;let h=l-o>10&&\"function\"==typeof i,d=h?Date.now()+15:0,c=0,u=this.commonObjs,p=this.objs;for(;;){if(void 0!==s&&o===s.nextBreakPoint)return s.breakIt(o,i),o;if((r=a[o])!==tb.dependency)this[r].apply(this,n[o]);else for(let t of n[o]){let e=t.startsWith(\"g_\")?u:p;if(!e.has(t))return e.get(t,i),o}if(++o===l)return o;if(h&&++c>10){if(Date.now()>d)return i(),o;c=0}}}#eZ(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,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(){for(let t of(this.#eZ(),this.cachedCanvases.clear(),this.cachedPatterns.clear(),this._cachedBitmapsMap.values())){for(let e of t.values())\"u\">typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement&&(e.width=e.height=0);t.clear()}this._cachedBitmapsMap.clear(),this.#e0()}#e0(){if(this.pageColors){let t=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(\"none\"!==t){let e=this.ctx.filter;this.ctx.filter=t,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=e}}}_scaleImage(t,e){let i=t.width??t.displayWidth,s=t.height??t.displayHeight,r,n,a=Math.max(Math.hypot(e[0],e[1]),1),o=Math.max(Math.hypot(e[2],e[3]),1),l=i,h=s,d=\"prescale1\";for(;a>2&&l>1||o>2&&h>1;){let e=l,i=h;a>2&&l>1&&(e=l>=16384?Math.floor(l\/2)-1||1:Math.ceil(l\/2),a\/=l\/e),o>2&&h>1&&(i=h>=16384?Math.floor(h\/2)-1||1:Math.ceil(h)\/2,o\/=h\/i),(n=(r=this.cachedCanvases.getCanvas(d,e,i)).context).clearRect(0,0,e,i),n.drawImage(t,0,0,l,h,0,0,e,i),t=r.canvas,l=e,h=i,d=\"prescale1\"===d?\"prescale2\":\"prescale1\"}return{img:t,paintWidth:l,paintHeight:h}}_createMaskCanvas(t){let e,i,s,r,n=this.ctx,{width:a,height:o}=t,l=this.current.fillColor,h=this.current.patternFill,d=t8(n);if((t.bitmap||t.data)&&t.count>1){let r=t.bitmap||t.data.buffer;i=JSON.stringify(h?d:[d.slice(0,4),l]),(e=this._cachedBitmapsMap.get(r))||(e=new Map,this._cachedBitmapsMap.set(r,e));let n=e.get(i);if(n&&!h)return{canvas:n,offsetX:Math.round(Math.min(d[0],d[2])+d[4]),offsetY:Math.round(Math.min(d[1],d[3])+d[5])};s=n}s||ej((r=this.cachedCanvases.getCanvas(\"maskCanvas\",a,o)).context,t);let c=t$.transform(d,[1\/a,0,0,-1\/o,0,0]);c=t$.transform(c,[1,0,0,1,0,-o]);let[u,p,f,g]=t$.getAxialAlignedBoundingBox([0,0,a,o],c),m=Math.round(f-u)||1,b=Math.round(g-p)||1,y=this.cachedCanvases.getCanvas(\"fillCanvas\",m,b),A=y.context;A.translate(-u,-p),A.transform(...c),!s&&(s=(s=this._scaleImage(r.canvas,t4(A))).img,e&&h&&e.set(i,s)),A.imageSmoothingEnabled=eV(t8(A),t.interpolate),e$(A,s,0,0,s.width,s.height,0,0,a,o),A.globalCompositeOperation=\"source-in\";let v=t$.transform(t4(A),[1,0,0,1,-u,-p]);return A.fillStyle=h?l.getPattern(n,this,v,ek):l,A.fillRect(0,0,a,o),e&&!h&&(this.cachedCanvases.delete(\"fillCanvas\"),e.set(i,y.canvas)),{canvas:y.canvas,offsetX:Math.round(u),offsetY:Math.round(p)}}setLineWidth(t){t!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=t,this.ctx.lineWidth=t}setLineCap(t){this.ctx.lineCap=eW[t]}setLineJoin(t){this.ctx.lineJoin=eq[t]}setMiterLimit(t){this.ctx.miterLimit=t}setDash(t,e){let i=this.ctx;void 0!==i.setLineDash&&(i.setLineDash(t),i.lineDashOffset=e)}setRenderingIntent(t){}setFlatness(t){}setGState(t){for(let[e,i]of t)switch(e){case\"LW\":this.setLineWidth(i);break;case\"LC\":this.setLineCap(i);break;case\"LJ\":this.setLineJoin(i);break;case\"ML\":this.setMiterLimit(i);break;case\"D\":this.setDash(i[0],i[1]);break;case\"RI\":this.setRenderingIntent(i);break;case\"FL\":this.setFlatness(i);break;case\"Font\":this.setFont(i[0],i[1]);break;case\"CA\":this.current.strokeAlpha=i;break;case\"ca\":this.current.fillAlpha=i,this.ctx.globalAlpha=i;break;case\"BM\":this.ctx.globalCompositeOperation=i;break;case\"SMask\":this.current.activeSMask=i?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case\"TR\":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(i)}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){let t=this.inSMaskMode;this.current.activeSMask&&!t?this.beginSMaskMode():!this.current.activeSMask&&t&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw Error(\"beginSMaskMode called while already in smask mode\");let t=this.ctx.canvas.width,e=this.ctx.canvas.height,i=\"smaskGroupAt\"+this.groupLevel,s=this.cachedCanvases.getCanvas(i,t,e);this.suspendedCtx=this.ctx,this.ctx=s.context;let r=this.ctx;r.setTransform(...t8(this.suspendedCtx)),ez(this.suspendedCtx,r);var n=this.suspendedCtx;if(r._removeMirroring)throw Error(\"Context is already forwarding operations.\");r.__originalSave=r.save,r.__originalRestore=r.restore,r.__originalRotate=r.rotate,r.__originalScale=r.scale,r.__originalTranslate=r.translate,r.__originalTransform=r.transform,r.__originalSetTransform=r.setTransform,r.__originalResetTransform=r.resetTransform,r.__originalClip=r.clip,r.__originalMoveTo=r.moveTo,r.__originalLineTo=r.lineTo,r.__originalBezierCurveTo=r.bezierCurveTo,r.__originalRect=r.rect,r.__originalClosePath=r.closePath,r.__originalBeginPath=r.beginPath,r._removeMirroring=()=>{r.save=r.__originalSave,r.restore=r.__originalRestore,r.rotate=r.__originalRotate,r.scale=r.__originalScale,r.translate=r.__originalTranslate,r.transform=r.__originalTransform,r.setTransform=r.__originalSetTransform,r.resetTransform=r.__originalResetTransform,r.clip=r.__originalClip,r.moveTo=r.__originalMoveTo,r.lineTo=r.__originalLineTo,r.bezierCurveTo=r.__originalBezierCurveTo,r.rect=r.__originalRect,r.closePath=r.__originalClosePath,r.beginPath=r.__originalBeginPath,delete r._removeMirroring},r.save=function(){n.save(),this.__originalSave()},r.restore=function(){n.restore(),this.__originalRestore()},r.translate=function(t,e){n.translate(t,e),this.__originalTranslate(t,e)},r.scale=function(t,e){n.scale(t,e),this.__originalScale(t,e)},r.transform=function(t,e,i,s,r,a){n.transform(t,e,i,s,r,a),this.__originalTransform(t,e,i,s,r,a)},r.setTransform=function(t,e,i,s,r,a){n.setTransform(t,e,i,s,r,a),this.__originalSetTransform(t,e,i,s,r,a)},r.resetTransform=function(){n.resetTransform(),this.__originalResetTransform()},r.rotate=function(t){n.rotate(t),this.__originalRotate(t)},r.clip=function(t){n.clip(t),this.__originalClip(t)},r.moveTo=function(t,e){n.moveTo(t,e),this.__originalMoveTo(t,e)},r.lineTo=function(t,e){n.lineTo(t,e),this.__originalLineTo(t,e)},r.bezierCurveTo=function(t,e,i,s,r,a){n.bezierCurveTo(t,e,i,s,r,a),this.__originalBezierCurveTo(t,e,i,s,r,a)},r.rect=function(t,e,i,s){n.rect(t,e,i,s),this.__originalRect(t,e,i,s)},r.closePath=function(){n.closePath(),this.__originalClosePath()},r.beginPath=function(){n.beginPath(),this.__originalBeginPath()},this.setGState([[\"BM\",\"source-over\"],[\"ca\",1],[\"CA\",1]])}endSMaskMode(){if(!this.inSMaskMode)throw Error(\"endSMaskMode called while not in smask mode\");this.ctx._removeMirroring(),ez(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(t){if(!this.current.activeSMask)return;t?(t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.ceil(t[2]),t[3]=Math.ceil(t[3])):t=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];let e=this.current.activeSMask,i=this.suspendedCtx;this.composeSMask(i,e,this.ctx,t),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()}composeSMask(t,e,i,s){let r=s[0],n=s[1],a=s[2]-r,o=s[3]-n;0!==a&&0!==o&&(this.genericComposeSMask(e.context,i,a,o,e.subtype,e.backdrop,e.transferMap,r,n,e.offsetX,e.offsetY),t.save(),t.globalAlpha=1,t.globalCompositeOperation=\"source-over\",t.setTransform(1,0,0,1,0,0),t.drawImage(i.canvas,0,0),t.restore())}genericComposeSMask(t,e,i,s,r,n,a,o,l,h,d){let c=t.canvas,u=o-h,p=l-d;if(n){let e=t$.makeHexColor(...n);if(u<0||p<0||u+i>c.width||p+s>c.height){let t=this.cachedCanvases.getCanvas(\"maskExtension\",i,s),r=t.context;r.drawImage(c,-u,-p),r.globalCompositeOperation=\"destination-atop\",r.fillStyle=e,r.fillRect(0,0,i,s),r.globalCompositeOperation=\"source-over\",c=t.canvas,u=p=0}else{t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0);let r=new Path2D;r.rect(u,p,i,s),t.clip(r),t.globalCompositeOperation=\"destination-atop\",t.fillStyle=e,t.fillRect(u,p,i,s),t.restore()}}e.save(),e.globalAlpha=1,e.setTransform(1,0,0,1,0,0),\"Alpha\"===r&&a?e.filter=this.filterFactory.addAlphaFilter(a):\"Luminosity\"===r&&(e.filter=this.filterFactory.addLuminosityFilter(a));let f=new Path2D;f.rect(o,l,i,s),e.clip(f),e.globalCompositeOperation=\"destination-in\",e.drawImage(c,u,p,i,s,o,l,i,s),e.restore()}save(){this.inSMaskMode?(ez(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();let t=this.current;this.stateStack.push(t),this.current=t.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),ez(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(t,e,i,s,r,n){this.ctx.transform(t,e,i,s,r,n),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(t,e,i){let s=this.ctx,r=this.current,n,a,o=r.x,l=r.y,h=t8(s),d=0===h[0]&&0===h[3]||0===h[1]&&0===h[2],c=d?i.slice(0):null;for(let i=0,u=0,p=t.length;i<p;i++)switch(0|t[i]){case tb.rectangle:o=e[u++],l=e[u++];let p=e[u++],f=e[u++],g=o+p,m=l+f;s.moveTo(o,l),0===p||0===f?s.lineTo(g,m):(s.lineTo(g,l),s.lineTo(g,m),s.lineTo(o,m)),d||r.updateRectMinMax(h,[o,l,g,m]),s.closePath();break;case tb.moveTo:o=e[u++],l=e[u++],s.moveTo(o,l),d||r.updatePathMinMax(h,o,l);break;case tb.lineTo:o=e[u++],l=e[u++],s.lineTo(o,l),d||r.updatePathMinMax(h,o,l);break;case tb.curveTo:n=o,a=l,o=e[u+4],l=e[u+5],s.bezierCurveTo(e[u],e[u+1],e[u+2],e[u+3],o,l),r.updateCurvePathMinMax(h,n,a,e[u],e[u+1],e[u+2],e[u+3],o,l,c),u+=6;break;case tb.curveTo2:n=o,a=l,s.bezierCurveTo(o,l,e[u],e[u+1],e[u+2],e[u+3]),r.updateCurvePathMinMax(h,n,a,o,l,e[u],e[u+1],e[u+2],e[u+3],c),o=e[u+2],l=e[u+3],u+=4;break;case tb.curveTo3:n=o,a=l,o=e[u+2],l=e[u+3],s.bezierCurveTo(e[u],e[u+1],o,l,o,l),r.updateCurvePathMinMax(h,n,a,e[u],e[u+1],o,l,o,l,c),u+=4;break;case tb.closePath:s.closePath()}d&&r.updateScalingPathMinMax(h,c),r.setCurrentPoint(o,l)}closePath(){this.ctx.closePath()}stroke(t=!0){let e=this.ctx,i=this.current.strokeColor;e.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(\"object\"==typeof i&&i?.getPattern?(e.save(),e.strokeStyle=i.getPattern(e,this,t4(e),eT),this.rescaleAndStroke(!1),e.restore()):this.rescaleAndStroke(!0)),t&&this.consumePath(this.current.getClippedPathBoundingBox()),e.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(t=!0){let e=this.ctx,i=this.current.fillColor,s=!1;this.current.patternFill&&(e.save(),e.fillStyle=i.getPattern(e,this,t4(e),ek),s=!0);let r=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==r&&(this.pendingEOFill?(e.fill(\"evenodd\"),this.pendingEOFill=!1):e.fill()),s&&e.restore(),t&&this.consumePath(r)}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=eX}eoClip(){this.pendingClip=eK}beginText(){this.current.textMatrix=th,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){let t=this.pendingTextPaths,e=this.ctx;if(void 0===t)return void e.beginPath();let i=new Path2D,s=e.getTransform().invertSelf();for(let{transform:e,x:r,y:n,fontSize:a,path:o}of t)i.addPath(o,new DOMMatrix(e).preMultiplySelf(s).translate(r,n).scale(a,-a));e.clip(i),e.beginPath(),delete this.pendingTextPaths}setCharSpacing(t){this.current.charSpacing=t}setWordSpacing(t){this.current.wordSpacing=t}setHScale(t){this.current.textHScale=t\/100}setLeading(t){this.current.leading=-t}setFont(t,e){let i=this.commonObjs.get(t),s=this.current;if(!i)throw Error(`Can't find font for ${t}`);if(s.fontMatrix=i.fontMatrix||td,0!==s.fontMatrix[0]&&0!==s.fontMatrix[3]||tw(\"Invalid font matrix for font \"+t),e<0?(e=-e,s.fontDirection=-1):s.fontDirection=1,this.current.font=i,this.current.fontSize=e,i.isType3Font)return;let r=i.loadedName||\"sans-serif\",n=i.systemFontInfo?.css||`\"${r}\", ${i.fallbackName}`,a=\"normal\";i.black?a=\"900\":i.bold&&(a=\"bold\");let o=i.italic?\"italic\":\"normal\",l=e;e<16?l=16:e>100&&(l=100),this.current.fontSizeScale=e\/l,this.ctx.font=`${o} ${a} ${l}px ${n}`}setTextRenderingMode(t){this.current.textRenderingMode=t}setTextRise(t){this.current.textRise=t}moveText(t,e){this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=e}setLeadingMoveText(t,e){this.setLeading(-e),this.moveText(t,e)}setTextMatrix(t,e,i,s,r,n){this.current.textMatrix=[t,e,i,s,r,n],this.current.textMatrixScale=Math.hypot(t,e),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}#e1(t,e,i){let s=new Path2D;return s.addPath(t,new DOMMatrix(i).invertSelf().multiplySelf(e)),s}paintChar(t,e,i,s,r){let n,a=this.ctx,o=this.current,l=o.font,h=o.textRenderingMode,d=o.fontSize\/o.fontSizeScale,c=3&h,u=!!(4&h),p=o.patternFill&&!l.missingFile,f=o.patternStroke&&!l.missingFile;if((l.disableFontFace||u||p||f)&&(n=l.getPathGenerator(this.commonObjs,t)),l.disableFontFace||p||f){if(a.save(),a.translate(e,i),a.scale(d,-d),0===c||2===c)if(s){let t=a.getTransform();a.setTransform(...s),a.fill(this.#e1(n,t,s))}else a.fill(n);if(1===c||2===c)if(r){let t=a.getTransform();a.setTransform(...r),a.stroke(this.#e1(n,t,r))}else a.lineWidth\/=d,a.stroke(n);a.restore()}else 0!==c&&2!==c||a.fillText(t,e,i),1!==c&&2!==c||a.strokeText(t,e,i);u&&(this.pendingTextPaths||=[]).push({transform:t8(a),x:e,y:i,fontSize:d,path:n})}get isFontSubpixelAAEnabled(){let{context:t}=this.cachedCanvases.getCanvas(\"isFontSubpixelAAEnabled\",10,10);t.scale(1.5,1),t.fillText(\"I\",0,10);let e=t.getImageData(0,0,10,10).data,i=!1;for(let t=3;t<e.length;t+=4)if(e[t]>0&&e[t]<255){i=!0;break}return tS(this,\"isFontSubpixelAAEnabled\",i)}showText(t){let e,i,s=this.current,r=s.font;if(r.isType3Font)return this.showType3Text(t);let n=s.fontSize;if(0===n)return;let a=this.ctx,o=s.fontSizeScale,l=s.charSpacing,h=s.wordSpacing,d=s.fontDirection,c=s.textHScale*d,u=t.length,p=r.vertical,f=p?1:-1,g=r.defaultVMetrics,m=n*s.fontMatrix[0],b=0===s.textRenderingMode&&!r.disableFontFace&&!s.patternFill;if(a.save(),a.transform(...s.textMatrix),a.translate(s.x,s.y+s.textRise),d>0?a.scale(c,-1):a.scale(c,1),s.patternFill){a.save();let t=s.fillColor.getPattern(a,this,t4(a),ek);e=t8(a),a.restore(),a.fillStyle=t}if(s.patternStroke){a.save();let t=s.strokeColor.getPattern(a,this,t4(a),eT);i=t8(a),a.restore(),a.strokeStyle=t}let y=s.lineWidth,A=s.textMatrixScale;if(0===A||0===y){let t=3&s.textRenderingMode;1!==t&&2!==t||(y=this.getSinglePixelWidth())}else y\/=A;if(1!==o&&(a.scale(o,o),y\/=o),a.lineWidth=y,r.isInvalidPDFjsFont){let e=[],i=0;for(let s of t)e.push(s.unicode),i+=s.width;a.fillText(e.join(\"\"),0,0),s.x+=i*m*c,a.restore(),this.compose();return}let v,w=0;for(v=0;v<u;++v){let s=t[v];if(\"number\"==typeof s){w+=f*s*n\/1e3;continue}let c=!1,u=(s.isSpace?h:0)+l,y=s.fontChar,A=s.accent,_,x,E=s.width;if(p){let t=s.vmetric||g,e=-(s.vmetric?t[1]:.5*E)*m,i=t[2]*m;E=t?-t[0]:E,_=e\/o,x=(w+i)\/o}else _=w\/o,x=0;if(r.remeasure&&E>0){let t=1e3*a.measureText(y).width\/n*o;if(E<t&&this.isFontSubpixelAAEnabled){let e=E\/t;c=!0,a.save(),a.scale(e,1),_\/=e}else E!==t&&(_+=(E-t)\/2e3*n\/o)}if(this.contentVisible&&(s.isInFont||r.missingFile)){if(b&&!A)a.fillText(y,_,x);else if(this.paintChar(y,_,x,e,i),A){let t=_+n*A.offset.x\/o,s=x-n*A.offset.y\/o;this.paintChar(A.fontChar,t,s,e,i)}}w+=p?E*m-u*d:E*m+u*d,c&&a.restore()}p?s.y-=w:s.x+=w*c,a.restore(),this.compose()}showType3Text(t){let e,i,s,r,n=this.ctx,a=this.current,o=a.font,l=a.fontSize,h=a.fontDirection,d=o.vertical?1:-1,c=a.charSpacing,u=a.wordSpacing,p=a.textHScale*h,f=a.fontMatrix||td,g=t.length;if(3!==a.textRenderingMode&&0!==l){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,n.save(),n.transform(...a.textMatrix),n.translate(a.x,a.y),n.scale(p,h),e=0;e<g;++e){if(\"number\"==typeof(i=t[e])){r=d*i*l\/1e3,this.ctx.translate(r,0),a.x+=r*p;continue}let h=(i.isSpace?u:0)+c,g=o.charProcOperatorList[i.operatorListId];if(!g){tw(`Type3 character \"${i.operatorListId}\" is not available.`);continue}this.contentVisible&&(this.processingType3=i,this.save(),n.scale(l,l),n.transform(...f),this.executeOperatorList(g),this.restore()),s=t$.applyTransform([i.width,0],f)[0]*l+h,n.translate(s,0),a.x+=s*p}n.restore(),this.processingType3=null}}setCharWidth(t,e){}setCharWidthAndBounds(t,e,i,s,r,n){this.ctx.rect(i,s,r-i,n-s),this.ctx.clip(),this.endPath()}getColorN_Pattern(t){let e;if(\"TilingPattern\"===t[0]){let i=t[1],s=this.baseTransform||t8(this.ctx);e=new eO(t,i,this.ctx,{createCanvasGraphics:t=>new eY(t,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})},s)}else e=this._getPattern(t[1],t[2]);return e}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments),this.current.patternStroke=!0}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(t,e,i){this.ctx.strokeStyle=this.current.strokeColor=t$.makeHexColor(t,e,i),this.current.patternStroke=!1}setStrokeTransparent(){this.ctx.strokeStyle=this.current.strokeColor=\"transparent\",this.current.patternStroke=!1}setFillRGBColor(t,e,i){this.ctx.fillStyle=this.current.fillColor=t$.makeHexColor(t,e,i),this.current.patternFill=!1}setFillTransparent(){this.ctx.fillStyle=this.current.fillColor=\"transparent\",this.current.patternFill=!1}_getPattern(t,e=null){let i;return this.cachedPatterns.has(t)?i=this.cachedPatterns.get(t):(i=function(t){switch(t[0]){case\"RadialAxial\":return new eL(t);case\"Mesh\":return new eF(t);case\"Dummy\":return new eN}throw Error(`Unknown IR type: ${t[0]}`)}(this.getObject(t)),this.cachedPatterns.set(t,i)),e&&(i.matrix=e),i}shadingFill(t){if(!this.contentVisible)return;let e=this.ctx;this.save(),e.fillStyle=this._getPattern(t).getPattern(e,this,t4(e),eP);let i=t4(e);if(i){let{width:t,height:s}=e.canvas,[r,n,a,o]=t$.getAxialAlignedBoundingBox([0,0,t,s],i);this.ctx.fillRect(r,n,a-r,o-n)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){t_(\"Should not call beginInlineImage\")}beginImageData(){t_(\"Should not call beginImageData\")}paintFormXObjectBegin(t,e){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),t&&this.transform(...t),this.baseTransform=t8(this.ctx),e)){let t=e[2]-e[0],i=e[3]-e[1];this.ctx.rect(e[0],e[1],t,i),this.current.updateRectMinMax(t8(this.ctx),e),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(t){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);let e=this.ctx;t.isolated||tv(\"TODO: Support non-isolated groups.\"),t.knockout&&tw(\"Knockout groups not supported.\");let i=t8(e);if(t.matrix&&e.transform(...t.matrix),!t.bbox)throw Error(\"Bounding box is required.\");let s=t$.getAxialAlignedBoundingBox(t.bbox,t8(e)),r=[0,0,e.canvas.width,e.canvas.height],n=Math.floor((s=t$.intersect(s,r)||[0,0,0,0])[0]),a=Math.floor(s[1]),o=Math.max(Math.ceil(s[2])-n,1),l=Math.max(Math.ceil(s[3])-a,1);this.current.startNewPathAndClipBox([0,0,o,l]);let h=\"groupAt\"+this.groupLevel;t.smask&&(h+=\"_smask_\"+this.smaskCounter++%2);let d=this.cachedCanvases.getCanvas(h,o,l),c=d.context;c.translate(-n,-a),c.transform(...i),t.smask?this.smaskStack.push({canvas:d.canvas,context:c,offsetX:n,offsetY:a,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(e.setTransform(1,0,0,1,0,0),e.translate(n,a),e.save()),ez(e,c),this.ctx=c,this.setGState([[\"BM\",\"source-over\"],[\"ca\",1],[\"CA\",1]]),this.groupStack.push(e),this.groupLevel++}endGroup(t){if(!this.contentVisible)return;this.groupLevel--;let e=this.ctx,i=this.groupStack.pop();if(this.ctx=i,this.ctx.imageSmoothingEnabled=!1,t.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();let t=t8(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...t);let i=t$.getAxialAlignedBoundingBox([0,0,e.canvas.width,e.canvas.height],t);this.ctx.drawImage(e.canvas,0,0),this.ctx.restore(),this.compose(i)}}beginAnnotation(t,e,i,s,r){if(this.#eZ(),eG(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),e){let s=e[2]-e[0],n=e[3]-e[1];if(r&&this.annotationCanvasMap){(i=i.slice())[4]-=e[0],i[5]-=e[1],(e=e.slice())[0]=e[1]=0,e[2]=s,e[3]=n;let[r,a]=t$.singularValueDecompose2dScale(t8(this.ctx)),{viewportScale:o}=this,l=Math.ceil(s*this.outputScaleX*o),h=Math.ceil(n*this.outputScaleY*o);this.annotationCanvas=this.canvasFactory.create(l,h);let{canvas:d,context:c}=this.annotationCanvas;this.annotationCanvasMap.set(t,d),this.annotationCanvas.savedCtx=this.ctx,this.ctx=c,this.ctx.save(),this.ctx.setTransform(r,0,0,-a,0,n*a),eG(this.ctx)}else eG(this.ctx),this.endPath(),this.ctx.rect(e[0],e[1],s,n),this.ctx.clip(),this.ctx.beginPath()}this.current=new eH(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...i),this.transform(...s)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),this.#e0(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(t){if(!this.contentVisible)return;let e=t.count;(t=this.getObject(t.data,t)).count=e;let i=this.ctx,s=this.processingType3;if(s&&(void 0===s.compiled&&(s.compiled=function(t){let{width:e,height:i}=t;if(e>1e3||i>1e3)return null;let s=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),r=e+1,n,a,o,l=new Uint8Array(r*(i+1)),h=e+7&-8,d=new Uint8Array(h*i),c=0;for(let e of t.data){let t=128;for(;t>0;)d[c++]=e&t?0:255,t>>=1}let u=0;for(0!==d[c=0]&&(l[0]=1,++u),a=1;a<e;a++)d[c]!==d[c+1]&&(l[a]=d[c]?2:1,++u),c++;for(0!==d[c]&&(l[a]=2,++u),n=1;n<i;n++){c=n*h,o=n*r,d[c-h]!==d[c]&&(l[o]=d[c]?1:8,++u);let t=4*!!d[c]+8*!!d[c-h];for(a=1;a<e;a++)s[t=(t>>2)+4*!!d[c+1]+8*!!d[c-h+1]]&&(l[o+a]=s[t],++u),c++;if(d[c-h]!==d[c]&&(l[o+a]=d[c]?2:4,++u),u>1e3)return null}for(c=h*(i-1),o=n*r,0!==d[c]&&(l[o]=8,++u),a=1;a<e;a++)d[c]!==d[c+1]&&(l[o+a]=d[c]?4:8,++u),c++;if(0!==d[c]&&(l[o+a]=4,++u),u>1e3)return null;let p=new Int32Array([0,r,-1,0,-r,0,0,0,1]),f=new Path2D;for(n=0;u&&n<=i;n++){let t=n*r,i=t+e;for(;t<i&&!l[t];)t++;if(t===i)continue;f.moveTo(t%r,n);let s=t,a=l[t];do{let e=p[a];do t+=e;while(!l[t])let i=l[t];5!==i&&10!==i?(a=i,l[t]=0):(a=i&51*a>>4,l[t]&=a>>2|a<<2),f.lineTo(t%r,t\/r|0),l[t]||--u}while(s!==t)--n}return d=null,l=null,function(t){t.save(),t.scale(1\/e,-1\/i),t.translate(0,-i),t.fill(f),t.beginPath(),t.restore()}}(t)),s.compiled))return void s.compiled(i);let r=this._createMaskCanvas(t),n=r.canvas;i.save(),i.setTransform(1,0,0,1,0,0),i.drawImage(n,r.offsetX,r.offsetY),i.restore(),this.compose()}paintImageMaskXObjectRepeat(t,e,i=0,s=0,r,n){if(!this.contentVisible)return;t=this.getObject(t.data,t);let a=this.ctx;a.save();let o=t8(a);a.transform(e,i,s,r,0,0);let l=this._createMaskCanvas(t);a.setTransform(1,0,0,1,l.offsetX-o[4],l.offsetY-o[5]);for(let t=0,h=n.length;t<h;t+=2){let h=t$.transform(o,[e,i,s,r,n[t],n[t+1]]),[d,c]=t$.applyTransform([0,0],h);a.drawImage(l.canvas,d,c)}a.restore(),this.compose()}paintImageMaskXObjectGroup(t){if(!this.contentVisible)return;let e=this.ctx,i=this.current.fillColor,s=this.current.patternFill;for(let r of t){let{data:t,width:n,height:a,transform:o}=r,l=this.cachedCanvases.getCanvas(\"maskCanvas\",n,a),h=l.context;h.save(),ej(h,this.getObject(t,r)),h.globalCompositeOperation=\"source-in\",h.fillStyle=s?i.getPattern(h,this,t4(e),ek):i,h.fillRect(0,0,n,a),h.restore(),e.save(),e.transform(...o),e.scale(1,-1),e$(e,l.canvas,0,0,n,a,0,-1,1,1),e.restore()}this.compose()}paintImageXObject(t){if(!this.contentVisible)return;let e=this.getObject(t);e?this.paintInlineImageXObject(e):tw(\"Dependent image isn't ready yet\")}paintImageXObjectRepeat(t,e,i,s){if(!this.contentVisible)return;let r=this.getObject(t);if(!r)return void tw(\"Dependent image isn't ready yet\");let n=r.width,a=r.height,o=[];for(let t=0,r=s.length;t<r;t+=2)o.push({transform:[e,0,0,i,s[t],s[t+1]],x:0,y:0,w:n,h:a});this.paintInlineImageXObjectGroup(r,o)}applyTransferMapsToCanvas(t){return\"none\"!==this.current.transferMaps&&(t.filter=this.current.transferMaps,t.drawImage(t.canvas,0,0),t.filter=\"none\"),t.canvas}applyTransferMapsToBitmap(t){if(\"none\"===this.current.transferMaps)return t.bitmap;let{bitmap:e,width:i,height:s}=t,r=this.cachedCanvases.getCanvas(\"inlineImage\",i,s),n=r.context;return n.filter=this.current.transferMaps,n.drawImage(e,0,0),n.filter=\"none\",r.canvas}paintInlineImageXObject(t){let e;if(!this.contentVisible)return;let i=t.width,s=t.height,r=this.ctx;this.save();{let{filter:t}=r;\"none\"!==t&&\"\"!==t&&(r.filter=\"none\")}if(r.scale(1\/i,-1\/s),t.bitmap)e=this.applyTransferMapsToBitmap(t);else if(\"function\"==typeof HTMLElement&&t instanceof HTMLElement||!t.data)e=t;else{let r=this.cachedCanvases.getCanvas(\"inlineImage\",i,s).context;eU(r,t),e=this.applyTransferMapsToCanvas(r)}let n=this._scaleImage(e,t4(r));r.imageSmoothingEnabled=eV(t8(r),t.interpolate),e$(r,n.img,0,0,n.paintWidth,n.paintHeight,0,-s,i,s),this.compose(),this.restore()}paintInlineImageXObjectGroup(t,e){let i;if(!this.contentVisible)return;let s=this.ctx;if(t.bitmap)i=t.bitmap;else{let e=t.width,s=t.height,r=this.cachedCanvases.getCanvas(\"inlineImage\",e,s).context;eU(r,t),i=this.applyTransferMapsToCanvas(r)}for(let t of e)s.save(),s.transform(...t.transform),s.scale(1,-1),e$(s,i,t.x,t.y,t.w,t.h,0,-1,1,1),s.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(t){}markPointProps(t,e){}beginMarkedContent(t){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(t,e){\"OC\"===t?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(e)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(t){let e=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(t);let i=this.ctx;this.pendingClip&&(e||(this.pendingClip===eK?i.clip(\"evenodd\"):i.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),i.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){let t=t8(this.ctx);if(0===t[1]&&0===t[2])this._cachedGetSinglePixelWidth=1\/Math.min(Math.abs(t[0]),Math.abs(t[3]));else{let e=Math.abs(t[0]*t[3]-t[2]*t[1]),i=Math.hypot(t[0],t[2]),s=Math.hypot(t[1],t[3]);this._cachedGetSinglePixelWidth=Math.max(i,s)\/e}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(-1===this._cachedScaleForStroking[0]){let t,e,{lineWidth:i}=this.current,{a:s,b:r,c:n,d:a}=this.ctx.getTransform();if(0===r&&0===n){let r=Math.abs(s),n=Math.abs(a);if(r===n)if(0===i)t=e=1\/r;else{let s=r*i;t=e=s<1?1\/s:1}else if(0===i)t=1\/r,e=1\/n;else{let s=r*i,a=n*i;t=s<1?1\/s:1,e=a<1?1\/a:1}}else{let o=Math.abs(s*a-r*n),l=Math.hypot(s,r),h=Math.hypot(n,a);if(0===i)t=h\/o,e=l\/o;else{let s=i*o;t=h>s?h\/s:1,e=l>s?l\/s:1}}this._cachedScaleForStroking[0]=t,this._cachedScaleForStroking[1]=e}return this._cachedScaleForStroking}rescaleAndStroke(t){let{ctx:e}=this,{lineWidth:i}=this.current,[s,r]=this.getScaleForStroking();if(e.lineWidth=i||1,1===s&&1===r)return void e.stroke();let n=e.getLineDash();if(t&&e.save(),e.scale(s,r),n.length>0){let t=Math.max(s,r);e.setLineDash(n.map(e=>e\/t)),e.lineDashOffset\/=t}e.stroke(),t&&e.restore()}isContentVisible(){for(let t=this.markedContentStack.length-1;t>=0;t--)if(!this.markedContentStack[t].visible)return!1;return!0}}for(let t in tb)void 0!==eY.prototype[t]&&(eY.prototype[tb[t]]=eY.prototype[t]);class eQ{static #e2=null;static #e3=\"\";static get workerPort(){return this.#e2}static set workerPort(t){if(!(\"u\">typeof Worker&&t instanceof Worker)&&null!==t)throw Error(\"Invalid `workerPort` type.\");this.#e2=t}static get workerSrc(){return this.#e3}static set workerSrc(t){if(\"string\"!=typeof t)throw Error(\"Invalid `workerSrc` type.\");this.#e3=t}}class eJ{#e5;#e6;constructor({parsedData:t,rawData:e}){this.#e5=t,this.#e6=e}getRaw(){return this.#e6}get(t){return this.#e5.get(t)??null}getAll(){return tN(this.#e5)}has(t){return this.#e5.has(t)}}let eZ=Symbol(\"INTERNAL\");class e0{#e8=!1;#e4=!1;#e7=!1;#e9=!0;constructor(t,{name:e,intent:i,usage:s,rbGroups:r}){this.#e8=!!(2&t),this.#e4=!!(4&t),this.name=e,this.intent=i,this.usage=s,this.rbGroups=r}get visible(){if(this.#e7)return this.#e9;if(!this.#e9)return!1;let{print:t,view:e}=this.usage;return this.#e8?\"OFF\"!==e?.viewState:!this.#e4||\"OFF\"!==t?.printState}_setVisible(t,e,i=!1){t!==eZ&&t_(\"Internal method `_setVisible` called.\"),this.#e7=i,this.#e9=e}}class e1{#it=null;#ie=new Map;#ii=null;#is=null;constructor(t,e=2){if(this.renderingIntent=e,this.name=null,this.creator=null,null!==t){for(const i of(this.name=t.name,this.creator=t.creator,this.#is=t.order,t.groups))this.#ie.set(i.id,new e0(e,i));if(\"OFF\"===t.baseState)for(const t of this.#ie.values())t._setVisible(eZ,!1);for(const e of t.on)this.#ie.get(e)._setVisible(eZ,!0);for(const e of t.off)this.#ie.get(e)._setVisible(eZ,!1);this.#ii=this.getHash()}}#ir(t){let e=t.length;if(e<2)return!0;let i=t[0];for(let s=1;s<e;s++){let e,r=t[s];if(Array.isArray(r))e=this.#ir(r);else{if(!this.#ie.has(r))return tw(`Optional content group not found: ${r}`),!0;e=this.#ie.get(r).visible}switch(i){case\"And\":if(!e)return!1;break;case\"Or\":if(e)return!0;break;case\"Not\":return!e;default:return!0}}return\"And\"===i}isVisible(t){if(0===this.#ie.size)return!0;if(!t)return tv(\"Optional content group not defined.\"),!0;if(\"OCG\"===t.type)return this.#ie.has(t.id)?this.#ie.get(t.id).visible:(tw(`Optional content group not found: ${t.id}`),!0);if(\"OCMD\"===t.type){if(t.expression)return this.#ir(t.expression);if(!t.policy||\"AnyOn\"===t.policy){for(let e of t.ids){if(!this.#ie.has(e))return tw(`Optional content group not found: ${e}`),!0;if(this.#ie.get(e).visible)return!0}return!1}if(\"AllOn\"===t.policy){for(let e of t.ids){if(!this.#ie.has(e)){tw(`Optional content group not found: ${e}`);break}if(!this.#ie.get(e).visible)return!1}return!0}if(\"AnyOff\"===t.policy){for(let e of t.ids){if(!this.#ie.has(e))return tw(`Optional content group not found: ${e}`),!0;if(!this.#ie.get(e).visible)return!0}return!1}if(\"AllOff\"===t.policy){for(let e of t.ids){if(!this.#ie.has(e)){tw(`Optional content group not found: ${e}`);break}if(this.#ie.get(e).visible)return!1}return!0}return tw(`Unknown optional content policy ${t.policy}.`),!0}return tw(`Unknown group type ${t.type}.`),!0}setVisibility(t,e=!0,i=!0){let s=this.#ie.get(t);if(s){if(i&&e&&s.rbGroups.length)for(let e of s.rbGroups)for(let i of e)i!==t&&this.#ie.get(i)?._setVisible(eZ,!1,!0);s._setVisible(eZ,!!e,!0),this.#it=null}else tw(`Optional content group not found: ${t}`)}setOCGState({state:t,preserveRB:e}){let i;for(let s of t){switch(s){case\"ON\":case\"OFF\":case\"Toggle\":i=s;continue}let t=this.#ie.get(s);if(t)switch(i){case\"ON\":this.setVisibility(s,!0,e);break;case\"OFF\":this.setVisibility(s,!1,e);break;case\"Toggle\":this.setVisibility(s,!t.visible,e)}}this.#it=null}get hasInitialVisibility(){return null===this.#ii||this.getHash()===this.#ii}getOrder(){return this.#ie.size?this.#is?this.#is.slice():[...this.#ie.keys()]:null}getGroups(){return this.#ie.size>0?tN(this.#ie):null}getGroup(t){return this.#ie.get(t)||null}getHash(){if(null!==this.#it)return this.#it;let t=new ep;for(let[e,i]of this.#ie)t.update(`${e}:${i.visible}`);return this.#it=t.hexdigest()}}class e2{constructor(t,{disableRange:e=!1,disableStream:i=!1}){tx(t,'PDFDataTransportStream - missing required \"pdfDataRangeTransport\" argument.');const{length:s,initialData:r,progressiveDone:n,contentDispositionFilename:a}=t;if(this._queuedChunks=[],this._progressiveDone=n,this._contentDispositionFilename=a,r?.length>0){const t=r instanceof Uint8Array&&r.byteLength===r.buffer.byteLength?r.buffer:new Uint8Array(r).buffer;this._queuedChunks.push(t)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!i,this._isRangeSupported=!e,this._contentLength=s,this._fullRequestReader=null,this._rangeReaders=[],t.addRangeListener((t,e)=>{this._onReceiveData({begin:t,chunk:e})}),t.addProgressListener((t,e)=>{this._onProgress({loaded:t,total:e})}),t.addProgressiveReadListener(t=>{this._onReceiveData({chunk:t})}),t.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),t.transportReady()}_onReceiveData({begin:t,chunk:e}){let i=e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer;void 0===t?this._fullRequestReader?this._fullRequestReader._enqueue(i):this._queuedChunks.push(i):tx(this._rangeReaders.some(function(e){return e._begin===t&&(e._enqueue(i),!0)}),\"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.\")}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(t){void 0===t.total?this._rangeReaders[0]?.onProgress?.({loaded:t.loaded}):this._fullRequestReader?.onProgress?.({loaded:t.loaded,total:t.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(t){let e=this._rangeReaders.indexOf(t);e>=0&&this._rangeReaders.splice(e,1)}getFullReader(){tx(!this._fullRequestReader,\"PDFDataTransportStream.getFullReader can only be called once.\");let t=this._queuedChunks;return this._queuedChunks=null,new e3(this,t,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(t,e){if(e<=this._progressiveDataLength)return null;let i=new e5(this,t,e);return this._pdfDataRangeTransport.requestDataRange(t,e),this._rangeReaders.push(i),i}cancelAllRequests(t){for(let e of(this._fullRequestReader?.cancel(t),this._rangeReaders.slice(0)))e.cancel(t);this._pdfDataRangeTransport.abort()}}class e3{constructor(t,e,i=!1,s=null){for(const r of(this._stream=t,this._done=i||!1,this._filename=tY(s)?s:null,this._queuedChunks=e||[],this._loaded=0,this._queuedChunks))this._loaded+=r.byteLength;this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}_enqueue(t){this._done||(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunks.push(t),this._loaded+=t.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};let t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){for(let t of(this._done=!0,this._requests))t.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class e5{constructor(t,e,i){this._stream=t,this._begin=e,this._end=i,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(t){if(!this._done){if(0===this._requests.length)this._queuedChunk=t;else{for(let e of(this._requests.shift().resolve({value:t,done:!1}),this._requests))e.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){let t=this._queuedChunk;return this._queuedChunk=null,{value:t,done:!1}}if(this._done)return{value:void 0,done:!0};let t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){for(let t of(this._done=!0,this._requests))t.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function e6(t,e){let i=new Headers;if(!t||!e||\"object\"!=typeof e)return i;for(let t in e){let s=e[t];void 0!==s&&i.append(t,s)}return i}function e8(t){try{return new URL(t).origin}catch{}return null}function e4({responseHeaders:t,isHttp:e,rangeChunkSize:i,disableRange:s}){let r={allowRangeRequests:!1,suggestedLength:void 0},n=parseInt(t.get(\"Content-Length\"),10);return Number.isInteger(n)&&(r.suggestedLength=n,n<=2*i||s||!e||\"bytes\"!==t.get(\"Accept-Ranges\")||\"identity\"!==(t.get(\"Content-Encoding\")||\"identity\")||(r.allowRangeRequests=!0)),r}function e7(t){let e=t.get(\"Content-Disposition\");if(e){let t=function(t){let e=!0,i=s(\"filename\\\\*\",\"i\").exec(t);if(i){let t=a(i=i[1]);return n(t=l(t=o(t=unescape(t))))}if(i=function(t){let e,i=[],r=s(\"filename\\\\*((?!0\\\\d)\\\\d+)(\\\\*?)\",\"ig\");for(;null!==(e=r.exec(t));){let[,t,s,r]=e;if((t=parseInt(t,10))in i){if(0===t)break}else i[t]=[s,r]}let n=[];for(let t=0;t<i.length&&t in i;++t){let[e,s]=i[t];s=a(s),e&&(s=unescape(s),0===t&&(s=o(s))),n.push(s)}return n.join(\"\")}(t))return n(l(i));if(i=s(\"filename\",\"i\").exec(t)){let t=a(i=i[1]);return n(t=l(t))}function s(t,e){return RegExp(\"(?:^|;)\\\\s*\"+t+'\\\\s*=\\\\s*([^\";\\\\s][^;\\\\s]*|\"(?:[^\"\\\\\\\\]|\\\\\\\\\"?)+\"?)',e)}function r(t,i){if(t){if(!\/^[\\x00-\\xFF]+$\/.test(i))return i;try{let s=new TextDecoder(t,{fatal:!0}),r=tF(i);i=s.decode(r),e=!1}catch{}}return i}function n(t){return e&&\/[\\x80-\\xff]\/.test(t)&&(t=r(\"utf-8\",t),e&&(t=r(\"iso-8859-1\",t))),t}function a(t){if(t.startsWith('\"')){let e=t.slice(1).split('\\\\\"');for(let t=0;t<e.length;++t){let i=e[t].indexOf('\"');-1!==i&&(e[t]=e[t].slice(0,i),e.length=t+1),e[t]=e[t].replaceAll(\/\\\\(.)\/g,\"$1\")}t=e.join('\"')}return t}function o(t){let e=t.indexOf(\"'\");return -1===e?t:r(t.slice(0,e),t.slice(e+1).replace(\/^[^']*'\/,\"\"))}function l(t){return!t.startsWith(\"=?\")||\/[\\x00-\\x19\\x80-\\xff]\/.test(t)?t:t.replaceAll(\/=\\?([\\w-]*)\\?([QqBb])\\?((?:[^?]|\\?(?!=))*)\\?=\/g,function(t,e,i,s){if(\"q\"===i||\"Q\"===i)return r(e,s=(s=s.replaceAll(\"_\",\" \")).replaceAll(\/=([0-9a-fA-F]{2})\/g,function(t,e){return String.fromCharCode(parseInt(e,16))}));try{s=atob(s)}catch{}return r(e,s)})}return\"\"}(e);if(t.includes(\"%\"))try{t=decodeURIComponent(t)}catch{}if(tY(t))return t}return null}function e9(t,e){return 404===t||0===t&&e.startsWith(\"file:\")?new tP('Missing PDF \"'+e+'\".'):new tR(`Unexpected server response (${t}) while retrieving PDF \"${e}\".`,t)}function it(t){return 200===t||206===t}function ie(t,e,i){return{method:\"GET\",headers:t,signal:i.signal,mode:\"cors\",credentials:e?\"include\":\"same-origin\",redirect:\"follow\"}}function ii(t){return t instanceof Uint8Array?t.buffer:t instanceof ArrayBuffer?t:(tw(`getArrayBuffer - unexpected data format: ${t}`),new Uint8Array(t).buffer)}class is{_responseOrigin=null;constructor(t){this.source=t,this.isHttp=\/^https?:\/i.test(t.url),this.headers=e6(this.isHttp,t.httpHeaders),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return tx(!this._fullRequestReader,\"PDFFetchStream.getFullReader can only be called once.\"),this._fullRequestReader=new ir(this),this._fullRequestReader}getRangeReader(t,e){if(e<=this._progressiveDataLength)return null;let i=new ia(this,t,e);return this._rangeRequestReaders.push(i),i}cancelAllRequests(t){for(let e of(this._fullRequestReader?.cancel(t),this._rangeRequestReaders.slice(0)))e.cancel(t)}}class ir{constructor(t){this._stream=t,this._reader=null,this._loaded=0,this._filename=null;const e=t.source;this._withCredentials=e.withCredentials||!1,this._contentLength=e.length,this._headersCapability=Promise.withResolvers(),this._disableRange=e.disableRange||!1,this._rangeChunkSize=e.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange;const i=new Headers(t.headers),s=e.url;fetch(s,ie(i,this._withCredentials,this._abortController)).then(e=>{if(t._responseOrigin=e8(e.url),!it(e.status))throw e9(e.status,s);this._reader=e.body.getReader(),this._headersCapability.resolve();let i=e.headers,{allowRangeRequests:r,suggestedLength:n}=e4({responseHeaders:i,isHttp:t.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=r,this._contentLength=n||this._contentLength,this._filename=e7(i),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new tL(\"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;let{value:t,done:e}=await this._reader.read();return e?{value:t,done:e}:(this._loaded+=t.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:ii(t),done:!1})}cancel(t){this._reader?.cancel(t),this._abortController.abort()}}class ia{constructor(t,e,i){this._stream=t,this._reader=null,this._loaded=0;const s=t.source;this._withCredentials=s.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!s.disableStream,this._abortController=new AbortController;const r=new Headers(t.headers);r.append(\"Range\",`bytes=${e}-${i-1}`);const n=s.url;fetch(n,ie(r,this._withCredentials,this._abortController)).then(e=>{let i=e8(e.url);if(i!==t._responseOrigin)throw Error(`Expected range response-origin \"${i}\" to match \"${t._responseOrigin}\".`);if(!it(e.status))throw e9(e.status,n);this._readCapability.resolve(),this._reader=e.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;let{value:t,done:e}=await this._reader.read();return e?{value:t,done:e}:(this._loaded+=t.byteLength,this.onProgress?.({loaded:this._loaded}),{value:ii(t),done:!1})}cancel(t){this._reader?.cancel(t),this._abortController.abort()}}class io{_responseOrigin=null;constructor({url:t,httpHeaders:e,withCredentials:i}){this.url=t,this.isHttp=\/^https?:\/i.test(t),this.headers=e6(this.isHttp,e),this.withCredentials=i||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}request(t){let e=new XMLHttpRequest,i=this.currXhrId++,s=this.pendingRequests[i]={xhr:e};for(let[t,i]of(e.open(\"GET\",this.url),e.withCredentials=this.withCredentials,this.headers))e.setRequestHeader(t,i);return this.isHttp&&\"begin\"in t&&\"end\"in t?(e.setRequestHeader(\"Range\",`bytes=${t.begin}-${t.end-1}`),s.expectedStatus=206):s.expectedStatus=200,e.responseType=\"arraybuffer\",tx(t.onError,\"Expected `onError` callback to be provided.\"),e.onerror=()=>{t.onError(e.status)},e.onreadystatechange=this.onStateChange.bind(this,i),e.onprogress=this.onProgress.bind(this,i),s.onHeadersReceived=t.onHeadersReceived,s.onDone=t.onDone,s.onError=t.onError,s.onProgress=t.onProgress,e.send(null),i}onProgress(t,e){let i=this.pendingRequests[t];i&&i.onProgress?.(e)}onStateChange(t,e){let i,s=this.pendingRequests[t];if(!s)return;let r=s.xhr;if(r.readyState>=2&&s.onHeadersReceived&&(s.onHeadersReceived(),delete s.onHeadersReceived),4!==r.readyState||!(t in this.pendingRequests))return;if(delete this.pendingRequests[t],0===r.status&&this.isHttp)return void s.onError(r.status);let n=r.status||200;if((200!==n||206!==s.expectedStatus)&&n!==s.expectedStatus)return void s.onError(r.status);let a=\"string\"!=typeof(i=r.response)?i:tF(i).buffer;if(206===n){let t=r.getResponseHeader(\"Content-Range\"),e=\/bytes (\\d+)-(\\d+)\\\/(\\d+)\/.exec(t);e?s.onDone({begin:parseInt(e[1],10),chunk:a}):(tw('Missing or invalid \"Content-Range\" header.'),s.onError(0))}else a?s.onDone({begin:0,chunk:a}):s.onError(r.status)}getRequestXhr(t){return this.pendingRequests[t].xhr}isPendingRequest(t){return t in this.pendingRequests}abortRequest(t){let e=this.pendingRequests[t].xhr;delete this.pendingRequests[t],e.abort()}}class il{constructor(t){this._source=t,this._manager=new io(t),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(t){let e=this._rangeRequestReaders.indexOf(t);e>=0&&this._rangeRequestReaders.splice(e,1)}getFullReader(){return tx(!this._fullRequestReader,\"PDFNetworkStream.getFullReader can only be called once.\"),this._fullRequestReader=new ih(this._manager,this._source),this._fullRequestReader}getRangeReader(t,e){let i=new id(this._manager,t,e);return i.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(i),i}cancelAllRequests(t){for(let e of(this._fullRequestReader?.cancel(t),this._rangeRequestReaders.slice(0)))e.cancel(t)}}class ih{constructor(t,e){this._manager=t,this._url=e.url,this._fullRequestId=t.request({onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._headersCapability=Promise.withResolvers(),this._disableRange=e.disableRange||!1,this._contentLength=e.length,this._rangeChunkSize=e.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(){let t=this._fullRequestId,e=this._manager.getRequestXhr(t);this._manager._responseOrigin=e8(e.responseURL);let i=e.getAllResponseHeaders(),s=new Headers(i?i.trimStart().replace(\/[^\\S ]+$\/,\"\").split(\/[\\r\\n]+\/).map(t=>{let[e,...i]=t.split(\": \");return[e,i.join(\": \")]}):[]),{allowRangeRequests:r,suggestedLength:n}=e4({responseHeaders:s,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});r&&(this._isRangeSupported=!0),this._contentLength=n||this._contentLength,this._filename=e7(s),this._isRangeSupported&&this._manager.abortRequest(t),this._headersCapability.resolve()}_onDone(t){if(t&&(this._requests.length>0?this._requests.shift().resolve({value:t.chunk,done:!1}):this._cachedChunks.push(t.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(let t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(t){for(let e of(this._storedError=e9(t,this._url),this._headersCapability.reject(this._storedError),this._requests))e.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(t){this.onProgress?.({loaded:t.loaded,total:t.lengthComputable?t.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._headersCapability.promise}async read(){if(await this._headersCapability.promise,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};let t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){for(let e of(this._done=!0,this._headersCapability.reject(t),this._requests))e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class id{constructor(t,e,i){this._manager=t,this._url=t.url,this._requestId=t.request({begin:e,end:i,onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_onHeadersReceived(){let t=e8(this._manager.getRequestXhr(this._requestId)?.responseURL);t!==this._manager._responseOrigin&&(this._storedError=Error(`Expected range response-origin \"${t}\" to match \"${this._manager._responseOrigin}\".`),this._onError(0))}_close(){this.onClosed?.(this)}_onDone(t){let e=t.chunk;for(let t of(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunk=e,this._done=!0,this._requests))t.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(t){for(let e of(this._storedError??=e9(t,this._url),this._requests))e.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(t){this.isStreamingSupported||this.onProgress?.({loaded:t.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(null!==this._queuedChunk){let t=this._queuedChunk;return this._queuedChunk=null,{value:t,done:!1}}if(this._done)return{value:void 0,done:!0};let t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){for(let t of(this._done=!0,this._requests))t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}class ic{#ia=Promise.withResolvers();#tp=null;#io=!1;#il=!!globalThis.FontInspector?.enabled;#ih=null;#id=null;#ic=0;#iu=0;#ip=null;#ig=null;#im=0;#ib=0;#iy=Object.create(null);#iA=[];#iv=null;#iw=[];#i_=new WeakMap;#ix=null;static #iE=new Map;static #iS=new Map;static #iC=new WeakMap;static #iM=null;static #ik=new Set;constructor({textContentSource:t,container:e,viewport:i}){if(t instanceof ReadableStream)this.#iv=t;else{if(\"object\"!=typeof t)throw Error('No \"textContentSource\" parameter specified.');this.#iv=new ReadableStream({start(e){e.enqueue(t),e.close()}})}this.#tp=this.#ig=e,this.#ib=i.scale*(globalThis.devicePixelRatio||1),this.#im=i.rotation,this.#id={div:null,properties:null,ctx:null};const{pageWidth:s,pageHeight:r,pageX:n,pageY:a}=i.rawDims;this.#ix=[1,0,0,-1,-n,a+r],this.#iu=s,this.#ic=r,ic.#iT(),t7(e,i),this.#ia.promise.finally(()=>{ic.#ik.delete(this),this.#id=null,this.#iy=null}).catch(()=>{})}static get fontFamilyMap(){let{isWindows:t,isFirefox:e}=tO.platform;return tS(this,\"fontFamilyMap\",new Map([[\"sans-serif\",(t&&e?\"Calibri, \":\"\")+\"sans-serif\"],[\"monospace\",(t&&e?\"Lucida Console, \":\"\")+\"monospace\"]]))}render(){let t=()=>{this.#ip.read().then(({value:e,done:i})=>{i?this.#ia.resolve():(this.#ih??=e.lang,Object.assign(this.#iy,e.styles),this.#iP(e.items),t())},this.#ia.reject)};return this.#ip=this.#iv.getReader(),ic.#ik.add(this),t(),this.#ia.promise}update({viewport:t,onBefore:e=null}){let i=t.scale*(globalThis.devicePixelRatio||1),s=t.rotation;if(s!==this.#im&&(e?.(),this.#im=s,t7(this.#ig,{rotation:s})),i!==this.#ib){e?.(),this.#ib=i;let t={div:null,properties:null,ctx:ic.#iR(this.#ih)};for(let e of this.#iw)t.properties=this.#i_.get(e),t.div=e,this.#iI(t)}}cancel(){let t=new tL(\"TextLayer task cancelled.\");this.#ip?.cancel(t).catch(()=>{}),this.#ip=null,this.#ia.reject(t)}get textDivs(){return this.#iw}get textContentItemsStr(){return this.#iA}#iP(t){if(this.#io)return;this.#id.ctx??=ic.#iR(this.#ih);let e=this.#iw,i=this.#iA;for(let s of t){if(e.length>1e5){tw(\"Ignoring additional textDivs for performance reasons.\"),this.#io=!0;return}if(void 0!==s.str)i.push(s.str),this.#iL(s);else if(\"beginMarkedContentProps\"===s.type||\"beginMarkedContent\"===s.type){let t=this.#tp;this.#tp=document.createElement(\"span\"),this.#tp.classList.add(\"markedContent\"),null!==s.id&&this.#tp.setAttribute(\"id\",`${s.id}`),t.append(this.#tp)}else\"endMarkedContent\"===s.type&&(this.#tp=this.#tp.parentNode)}}#iL(t){let e,i,s=document.createElement(\"span\"),r={angle:0,canvasWidth:0,hasText:\"\"!==t.str,hasEOL:t.hasEOL,fontSize:0};this.#iw.push(s);let n=t$.transform(this.#ix,t.transform),a=Math.atan2(n[1],n[0]),o=this.#iy[t.fontName];o.vertical&&(a+=Math.PI\/2);let l=this.#il&&o.fontSubstitution||o.fontFamily;l=ic.fontFamilyMap.get(l)||l;let h=Math.hypot(n[2],n[3]),d=h*ic.#iD(l,this.#ih);0===a?(e=n[4],i=n[5]-d):(e=n[4]+d*Math.sin(a),i=n[5]-d*Math.cos(a));let c=\"calc(var(--scale-factor)*\",u=s.style;this.#tp===this.#ig?(u.left=`${(100*e\/this.#iu).toFixed(2)}%`,u.top=`${(100*i\/this.#ic).toFixed(2)}%`):(u.left=`${c}${e.toFixed(2)}px)`,u.top=`${c}${i.toFixed(2)}px)`),u.fontSize=`${c}${(ic.#iM*h).toFixed(2)}px)`,u.fontFamily=l,r.fontSize=h,s.setAttribute(\"role\",\"presentation\"),s.textContent=t.str,s.dir=t.dir,this.#il&&(s.dataset.fontName=o.fontSubstitutionLoadedName||t.fontName),0!==a&&(r.angle=180\/Math.PI*a);let p=!1;if(t.str.length>1)p=!0;else if(\" \"!==t.str&&t.transform[0]!==t.transform[3]){let e=Math.abs(t.transform[0]),i=Math.abs(t.transform[3]);e!==i&&Math.max(e,i)\/Math.min(e,i)>1.5&&(p=!0)}if(p&&(r.canvasWidth=o.vertical?t.height:t.width),this.#i_.set(s,r),this.#id.div=s,this.#id.properties=r,this.#iI(this.#id),r.hasText&&this.#tp.append(s),r.hasEOL){let t=document.createElement(\"br\");t.setAttribute(\"role\",\"presentation\"),this.#tp.append(t)}}#iI(t){let{div:e,properties:i,ctx:s}=t,{style:r}=e,n=\"\";if(ic.#iM>1&&(n=`scale(${1\/ic.#iM})`),0!==i.canvasWidth&&i.hasText){let{fontFamily:t}=r,{canvasWidth:a,fontSize:o}=i;ic.#iF(s,o*this.#ib,t);let{width:l}=s.measureText(e.textContent);l>0&&(n=`scaleX(${a*this.#ib\/l}) ${n}`)}0!==i.angle&&(n=`rotate(${i.angle}deg) ${n}`),n.length>0&&(r.transform=n)}static cleanup(){if(!(this.#ik.size>0)){for(let{canvas:t}of(this.#iE.clear(),this.#iS.values()))t.remove();this.#iS.clear()}}static #iR(t=null){let e=this.#iS.get(t||=\"\");if(!e){let i=document.createElement(\"canvas\");i.className=\"hiddenCanvasElement\",i.lang=t,document.body.append(i),e=i.getContext(\"2d\",{alpha:!1,willReadFrequently:!0}),this.#iS.set(t,e),this.#iC.set(e,{size:0,family:\"\"})}return e}static #iF(t,e,i){let s=this.#iC.get(t);(e!==s.size||i!==s.family)&&(t.font=`${e}px ${i}`,s.size=e,s.family=i)}static #iT(){if(null!==this.#iM)return;let t=document.createElement(\"div\");t.style.opacity=0,t.style.lineHeight=1,t.style.fontSize=\"1px\",t.style.position=\"absolute\",t.textContent=\"X\",document.body.append(t),this.#iM=t.getBoundingClientRect().height,t.remove()}static #iD(t,e){let i=this.#iE.get(t);if(i)return i;let s=this.#iR(e);s.canvas.width=s.canvas.height=30,this.#iF(s,30,t);let r=s.measureText(\"\"),n=r.fontBoundingBoxAscent,a=Math.abs(r.fontBoundingBoxDescent);if(n){let e=n\/(n+a);return this.#iE.set(t,e),s.canvas.width=s.canvas.height=0,e}s.strokeStyle=\"red\",s.clearRect(0,0,30,30),s.strokeText(\"g\",0,0);let o=s.getImageData(0,0,30,30).data;a=0;for(let t=o.length-1-3;t>=0;t-=4)if(o[t]>0){a=Math.ceil(t\/4\/30);break}s.clearRect(0,0,30,30),s.strokeText(\"A\",0,30),o=s.getImageData(0,0,30,30).data,n=0;for(let t=0,e=o.length;t<e;t+=4)if(o[t]>0){n=30-Math.floor(t\/4\/30);break}s.canvas.width=s.canvas.height=0;let l=n?n\/(n+a):.8;return this.#iE.set(t,l),l}}class iu{static textContent(t){let e=[],i={items:e,styles:Object.create(null)};return!function t(i){if(!i)return;let s=null,r=i.name;if(\"#text\"===r)s=i.value;else{if(!iu.shouldBuildText(r))return;i?.attributes?.textContent?s=i.attributes.textContent:i.value&&(s=i.value)}if(null!==s&&e.push({str:s}),i.children)for(let e of i.children)t(e)}(t),i}static shouldBuildText(t){return\"textarea\"!==t&&\"input\"!==t&&\"option\"!==t&&\"select\"!==t}}let ip=class extends e_{constructor({ownerDocument:t=globalThis.document,enableHWA:e=!1}){super({enableHWA:e}),this._document=t}_createCanvas(t,e){let i=this._document.createElement(\"canvas\");return i.width=t,i.height=e,i}},ig=class extends eS{#iN;#iO;#iB;#i$;#iH;#iU;#A=0;constructor({docId:t,ownerDocument:e=globalThis.document}){super(),this.#i$=t,this.#iH=e}get #w(){return this.#iO||=new Map}get #ij(){return this.#iU||=new Map}get #iz(){if(!this.#iB){let t=this.#iH.createElement(\"div\"),{style:e}=t;e.visibility=\"hidden\",e.contain=\"strict\",e.width=e.height=0,e.position=\"absolute\",e.top=e.left=0,e.zIndex=-1;let i=this.#iH.createElementNS(tG,\"svg\");i.setAttribute(\"width\",0),i.setAttribute(\"height\",0),this.#iB=this.#iH.createElementNS(tG,\"defs\"),t.append(i),i.append(this.#iB),this.#iH.body.append(t)}return this.#iB}#iG(t){if(1===t.length){let e=t[0],i=Array(256);for(let t=0;t<256;t++)i[t]=e[t]\/255;let s=i.join(\",\");return[s,s,s]}let[e,i,s]=t,r=Array(256),n=Array(256),a=Array(256);for(let t=0;t<256;t++)r[t]=e[t]\/255,n[t]=i[t]\/255,a[t]=s[t]\/255;return[r.join(\",\"),n.join(\",\"),a.join(\",\")]}#iV(t){if(void 0===this.#iN){this.#iN=\"\";let t=this.#iH.URL;t!==this.#iH.baseURI&&(tK(t)?tw('#createUrl: ignore \"data:\"-URL for performance reasons.'):this.#iN=t.split(\"#\",1)[0])}return`url(${this.#iN}#${t})`}addFilter(t){if(!t)return\"none\";let e=this.#w.get(t);if(e)return e;let[i,s,r]=this.#iG(t),n=1===t.length?i:`${i}${s}${r}`;if(e=this.#w.get(n))return this.#w.set(t,e),e;let a=`g_${this.#i$}_transfer_map_${this.#A++}`,o=this.#iV(a);this.#w.set(t,o),this.#w.set(n,o);let l=this.#iW(a);return this.#iq(i,s,r,l),o}addHCMFilter(t,e){let i=`${t}-${e}`,s=\"base\",r=this.#ij.get(s);if(r?.key===i||(r?(r.filter?.remove(),r.key=i,r.url=\"none\",r.filter=null):(r={key:i,url:\"none\",filter:null},this.#ij.set(s,r)),!t||!e))return r.url;let n=this.#iX(t);t=t$.makeHexColor(...n);let a=this.#iX(e);if(e=t$.makeHexColor(...a),this.#iz.style.color=\"\",\"#000000\"===t&&\"#ffffff\"===e||t===e)return r.url;let o=Array(256);for(let t=0;t<=255;t++){let e=t\/255;o[t]=e<=.03928?e\/12.92:((e+.055)\/1.055)**2.4}let l=o.join(\",\"),h=`g_${this.#i$}_hcm_filter`,d=r.filter=this.#iW(h);this.#iq(l,l,l,d),this.#iK(d);let c=(t,e)=>{let i=n[t]\/255,s=a[t]\/255,r=Array(e+1);for(let t=0;t<=e;t++)r[t]=i+t\/e*(s-i);return r.join(\",\")};return this.#iq(c(0,5),c(1,5),c(2,5),d),r.url=this.#iV(h),r.url}addAlphaFilter(t){let e=this.#w.get(t);if(e)return e;let[i]=this.#iG([t]),s=`alpha_${i}`;if(e=this.#w.get(s))return this.#w.set(t,e),e;let r=`g_${this.#i$}_alpha_map_${this.#A++}`,n=this.#iV(r);this.#w.set(t,n),this.#w.set(s,n);let a=this.#iW(r);return this.#iY(i,a),n}addLuminosityFilter(t){let e,i,s=this.#w.get(t||\"luminosity\");if(s)return s;if(t?([e]=this.#iG([t]),i=`luminosity_${e}`):i=\"luminosity\",s=this.#w.get(i))return this.#w.set(t,s),s;let r=`g_${this.#i$}_luminosity_map_${this.#A++}`,n=this.#iV(r);this.#w.set(t,n),this.#w.set(i,n);let a=this.#iW(r);return this.#iQ(a),t&&this.#iY(e,a),n}addHighlightHCMFilter(t,e,i,s,r){let n=`${e}-${i}-${s}-${r}`,a=this.#ij.get(t);if(a?.key===n||(a?(a.filter?.remove(),a.key=n,a.url=\"none\",a.filter=null):(a={key:n,url:\"none\",filter:null},this.#ij.set(t,a)),!e||!i))return a.url;let[o,l]=[e,i].map(this.#iX.bind(this)),h=Math.round(.2126*o[0]+.7152*o[1]+.0722*o[2]),d=Math.round(.2126*l[0]+.7152*l[1]+.0722*l[2]),[c,u]=[s,r].map(this.#iX.bind(this));d<h&&([h,d,c,u]=[d,h,u,c]),this.#iz.style.color=\"\";let p=(t,e,i)=>{let s=Array(256),r=(d-h)\/i,n=t\/255,a=(e-t)\/(255*i),o=0;for(let t=0;t<=i;t++){let e=Math.round(h+t*r),i=n+t*a;for(let t=o;t<=e;t++)s[t]=i;o=e+1}for(let t=o;t<256;t++)s[t]=s[o-1];return s.join(\",\")},f=`g_${this.#i$}_hcm_${t}_filter`,g=a.filter=this.#iW(f);return this.#iK(g),this.#iq(p(c[0],u[0],5),p(c[1],u[1],5),p(c[2],u[2],5),g),a.url=this.#iV(f),a.url}destroy(t=!1){t&&this.#iU?.size||(this.#iB?.parentNode.parentNode.remove(),this.#iB=null,this.#iO?.clear(),this.#iO=null,this.#iU?.clear(),this.#iU=null,this.#A=0)}#iQ(t){let e=this.#iH.createElementNS(tG,\"feColorMatrix\");e.setAttribute(\"type\",\"matrix\"),e.setAttribute(\"values\",\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0\"),t.append(e)}#iK(t){let e=this.#iH.createElementNS(tG,\"feColorMatrix\");e.setAttribute(\"type\",\"matrix\"),e.setAttribute(\"values\",\"0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0\"),t.append(e)}#iW(t){let e=this.#iH.createElementNS(tG,\"filter\");return e.setAttribute(\"color-interpolation-filters\",\"sRGB\"),e.setAttribute(\"id\",t),this.#iz.append(e),e}#iJ(t,e,i){let s=this.#iH.createElementNS(tG,e);s.setAttribute(\"type\",\"discrete\"),s.setAttribute(\"tableValues\",i),t.append(s)}#iq(t,e,i,s){let r=this.#iH.createElementNS(tG,\"feComponentTransfer\");s.append(r),this.#iJ(r,\"feFuncR\",t),this.#iJ(r,\"feFuncG\",e),this.#iJ(r,\"feFuncB\",i)}#iY(t,e){let i=this.#iH.createElementNS(tG,\"feComponentTransfer\");e.append(i),this.#iJ(i,\"feFuncA\",t)}#iX(t){return this.#iz.style.color=t,t6(getComputedStyle(this.#iz).getPropertyValue(\"color\"))}};function im(t={}){\"string\"==typeof t||t instanceof URL?t={url:t}:(t instanceof ArrayBuffer||ArrayBuffer.isView(t))&&(t={data:t});let e=new iy,{docId:i}=e,s=t.url?function(t){if(t instanceof URL)return t.href;try{return new URL(t,window.location).href}catch{}throw Error(\"Invalid PDF url data: either string or URL-object is expected in the url property.\")}(t.url):null,r=t.data?function(t){if(t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength)return t;if(\"string\"==typeof t)return tF(t);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)||\"object\"==typeof t&&!isNaN(t?.length))return new Uint8Array(t);throw Error(\"Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.\")}(t.data):null,n=t.httpHeaders||null,a=!0===t.withCredentials,o=t.password??null,l=t.range instanceof iA?t.range:null,h=Number.isInteger(t.rangeChunkSize)&&t.rangeChunkSize>0?t.rangeChunkSize:65536,d=t.worker instanceof ix?t.worker:null,c=t.verbosity,u=\"string\"!=typeof t.docBaseUrl||tK(t.docBaseUrl)?null:t.docBaseUrl,p=\"string\"==typeof t.cMapUrl?t.cMapUrl:null,f=!1!==t.cMapPacked,g=t.CMapReaderFactory||eE,m=\"string\"==typeof t.standardFontDataUrl?t.standardFontDataUrl:null,b=t.StandardFontDataFactory||eM,y=!0!==t.stopAtErrors,A=Number.isInteger(t.maxImageSize)&&t.maxImageSize>-1?t.maxImageSize:-1,v=!1!==t.isEvalSupported,w=\"boolean\"!=typeof t.isOffscreenCanvasSupported||t.isOffscreenCanvasSupported,_=\"boolean\"==typeof t.isImageDecoderSupported?t.isImageDecoderSupported:tO.platform.isFirefox||!globalThis.chrome,x=Number.isInteger(t.canvasMaxAreaInBytes)?t.canvasMaxAreaInBytes:-1,E=\"boolean\"==typeof t.disableFontFace&&t.disableFontFace,S=!0===t.fontExtraProperties,C=!0===t.enableXfa,M=t.ownerDocument||globalThis.document,k=!0===t.disableRange,T=!0===t.disableStream,P=!0===t.disableAutoFetch,R=!0===t.pdfBug,I=t.CanvasFactory||ip,L=t.FilterFactory||ig,D=!0===t.enableHWA,F=l?l.length:t.length??NaN,N=\"boolean\"==typeof t.useSystemFonts?t.useSystemFonts:!E,O=\"boolean\"==typeof t.useWorkerFetch?t.useWorkerFetch:g===eE&&b===eM&&p&&m&&t0(p,document.baseURI)&&t0(m,document.baseURI);Number.isInteger(c)&&(tA=c);let B={canvasFactory:new I({ownerDocument:M,enableHWA:D}),filterFactory:new L({docId:i,ownerDocument:M}),cMapReaderFactory:O?null:new g({baseUrl:p,isCompressed:f}),standardFontDataFactory:O?null:new b({baseUrl:m})};if(!d){let t={verbosity:c,port:eQ.workerPort};e._worker=d=t.port?ix.fromPort(t):new ix(t)}let $={docId:i,apiVersion:\"4.10.38\",data:r,password:o,disableAutoFetch:P,rangeChunkSize:h,length:F,docBaseUrl:u,enableXfa:C,evaluatorOptions:{maxImageSize:A,disableFontFace:E,ignoreErrors:y,isEvalSupported:v,isOffscreenCanvasSupported:w,isImageDecoderSupported:_,canvasMaxAreaInBytes:x,fontExtraProperties:S,useSystemFonts:N,cMapUrl:O?p:null,standardFontDataUrl:O?m:null}},H={disableFontFace:E,fontExtraProperties:S,ownerDocument:M,pdfBug:R,styleElement:null,loadingParams:{disableAutoFetch:P,enableXfa:C}};return d.promise.then(function(){let t;if(e.destroyed)throw Error(\"Loading aborted\");if(d.destroyed)throw Error(\"Worker was destroyed\");let o=d.messageHandler.sendWithPromise(\"GetDocRequest\",$,r?[r.buffer]:null);if(l)t=new e2(l,{disableRange:k,disableStream:T});else if(!r){if(!s)throw Error(\"getDocument - no `url` parameter provided.\");t=new(t0(s)?is:il)({url:s,length:F,httpHeaders:n,withCredentials:a,rangeChunkSize:h,disableRange:k,disableStream:T})}return o.then(s=>{if(e.destroyed)throw Error(\"Loading aborted\");if(d.destroyed)throw Error(\"Worker was destroyed\");let r=new ew(i,s,d.port),n=new iE(r,e,t,H,B);e._transport=n,r.send(\"Ready\",null)})}).catch(e._capability.reject),e}function ib(t){return\"object\"==typeof t&&Number.isInteger(t?.num)&&t.num>=0&&Number.isInteger(t?.gen)&&t.gen>=0}class iy{static #i$=0;constructor(){this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId=\"d\"+iy.#i$++,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;try{this._worker?.port&&(this._worker._pendingDestroy=!0),await this._transport?.destroy()}catch(t){throw this._worker?.port&&delete this._worker._pendingDestroy,t}this._transport=null,this._worker?.destroy(),this._worker=null}}class iA{constructor(t,e,i=!1,s=null){this.length=t,this.initialData=e,this.progressiveDone=i,this.contentDispositionFilename=s,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}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,e){for(let i of this._rangeListeners)i(t,e)}onDataProgress(t,e){this._readyCapability.promise.then(()=>{for(let i of this._progressListeners)i(t,e)})}onDataProgressiveRead(t){this._readyCapability.promise.then(()=>{for(let e of this._progressiveReadListeners)e(t)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(let t of this._progressiveDoneListeners)t()})}transportReady(){this._readyCapability.resolve()}requestDataRange(t,e){t_(\"Abstract method PDFDataRangeTransport.requestDataRange\")}abort(){}}class iv{constructor(t,e){this._pdfInfo=t,this._transport=e}get annotationStorage(){return this._transport.annotationStorage}get canvasFactory(){return this._transport.canvasFactory}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return tS(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()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:t=\"display\"}={}){let{renderingIntent:e}=this._transport.getRenderingIntent(t);return this._transport.getOptionalContentConfig(e)}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()}cachedPageNumber(t){return this._transport.cachedPageNumber(t)}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()}}class iw{#iZ=null;#i0=!1;constructor(t,e,i,s=!1){this._pageIndex=t,this._pageInfo=e,this._transport=i,this._stats=s?new tZ:null,this._pdfBug=s,this.commonObjs=i.commonObjs,this.objs=new iC,this._maybeCleanupAfterRender=!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:e=this.rotate,offsetX:i=0,offsetY:s=0,dontFlip:r=!1}={}){return new tq({viewBox:this.view,userUnit:this.userUnit,scale:t,rotation:e,offsetX:i,offsetY:s,dontFlip:r})}getAnnotations({intent:t=\"display\"}={}){let{renderingIntent:e}=this._transport.getRenderingIntent(t);return this._transport.getAnnotations(this._pageIndex,e)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return tS(this,\"isPureXfa\",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:t,viewport:e,intent:i=\"display\",annotationMode:s=tc.ENABLE,transform:r=null,background:n=null,optionalContentConfigPromise:a=null,annotationCanvasMap:o=null,pageColors:l=null,printAnnotationStorage:h=null,isEditing:d=!1}){this._stats?.time(\"Overall\");let c=this._transport.getRenderingIntent(i,s,h,d),{renderingIntent:u,cacheKey:p}=c;this.#i0=!1,this.#i1(),a||=this._transport.getOptionalContentConfig(u);let f=this._intentStates.get(p);f||(f=Object.create(null),this._intentStates.set(p,f)),f.streamReaderCancelTimeout&&(clearTimeout(f.streamReaderCancelTimeout),f.streamReaderCancelTimeout=null);let g=!!(4&u);f.displayReadyCapability||(f.displayReadyCapability=Promise.withResolvers(),f.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time(\"Page Request\"),this._pumpOperatorList(c));let m=t=>{f.renderTasks.delete(b),(this._maybeCleanupAfterRender||g)&&(this.#i0=!0),this.#i2(!g),t?(b.capability.reject(t),this._abortOperatorList({intentState:f,reason:t instanceof Error?t:Error(t)})):b.capability.resolve(),this._stats&&(this._stats.timeEnd(\"Rendering\"),this._stats.timeEnd(\"Overall\"),globalThis.Stats?.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},b=new ik({callback:m,params:{canvasContext:t,viewport:e,transform:r,background:n},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:o,operatorList:f.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!g,pdfBug:this._pdfBug,pageColors:l});(f.renderTasks||=new Set).add(b);let y=b.task;return Promise.all([f.displayReadyCapability.promise,a]).then(([t,e])=>{if(this.destroyed)m();else{if(this._stats?.time(\"Rendering\"),!(e.renderingIntent&u))throw Error(\"Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.\");b.initializeGraphics({transparency:t,optionalContentConfig:e}),b.operatorListChanged()}}).catch(m),y}getOperatorList({intent:t=\"display\",annotationMode:e=tc.ENABLE,printAnnotationStorage:i=null,isEditing:s=!1}={}){let r=this._transport.getRenderingIntent(t,e,i,s,!0),n,a=this._intentStates.get(r.cacheKey);return a||(a=Object.create(null),this._intentStates.set(r.cacheKey,a)),a.opListReadCapability||((n=Object.create(null)).operatorListChanged=function(){a.operatorList.lastChunk&&(a.opListReadCapability.resolve(a.operatorList),a.renderTasks.delete(n))},a.opListReadCapability=Promise.withResolvers(),(a.renderTasks||=new Set).add(n),a.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time(\"Page Request\"),this._pumpOperatorList(r)),a.opListReadCapability.promise}streamTextContent({includeMarkedContent:t=!1,disableNormalization:e=!1}={}){return this._transport.messageHandler.sendWithStream(\"GetTextContent\",{pageIndex:this._pageIndex,includeMarkedContent:!0===t,disableNormalization:!0===e},{highWaterMark:100,size:t=>t.items.length})}getTextContent(t={}){if(this._transport._htmlForXfa)return this.getXfa().then(t=>iu.textContent(t));let e=this.streamTextContent(t);return new Promise(function(t,i){let s=e.getReader(),r={items:[],styles:Object.create(null),lang:null};!function e(){s.read().then(function({value:i,done:s}){s?t(r):(r.lang??=i.lang,Object.assign(r.styles,i.styles),r.items.push(...i.items),e())},i)}()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;let t=[];for(let e of this._intentStates.values())if(this._abortOperatorList({intentState:e,reason:Error(\"Page was destroyed.\"),force:!0}),!e.opListReadCapability)for(let i of e.renderTasks)t.push(i.completed),i.cancel();return this.objs.clear(),this.#i0=!1,this.#i1(),Promise.all(t)}cleanup(t=!1){this.#i0=!0;let e=this.#i2(!1);return t&&e&&(this._stats&&=new tZ),e}#i2(t=!1){if(this.#i1(),!this.#i0||this.destroyed)return!1;if(t)return this.#iZ=setTimeout(()=>{this.#iZ=null,this.#i2(!1)},5e3),!1;for(let{renderTasks:t,operatorList:e}of this._intentStates.values())if(t.size>0||!e.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#i0=!1,!0}#i1(){this.#iZ&&(clearTimeout(this.#iZ),this.#iZ=null)}_startRenderPage(t,e){let i=this._intentStates.get(e);i&&(this._stats?.timeEnd(\"Page Request\"),i.displayReadyCapability?.resolve(t))}_renderPageChunk(t,e){for(let i=0,s=t.length;i<s;i++)e.operatorList.fnArray.push(t.fnArray[i]),e.operatorList.argsArray.push(t.argsArray[i]);for(let i of(e.operatorList.lastChunk=t.lastChunk,e.operatorList.separateAnnots=t.separateAnnots,e.renderTasks))i.operatorListChanged();t.lastChunk&&this.#i2(!0)}_pumpOperatorList({renderingIntent:t,cacheKey:e,annotationStorageSerializable:i,modifiedIds:s}){let{map:r,transfer:n}=i,a=this._transport.messageHandler.sendWithStream(\"GetOperatorList\",{pageIndex:this._pageIndex,intent:t,cacheKey:e,annotationStorage:r,modifiedIds:s},n).getReader(),o=this._intentStates.get(e);o.streamReader=a;let l=()=>{a.read().then(({value:t,done:e})=>{e?o.streamReader=null:this._transport.destroyed||(this._renderPageChunk(t,o),l())},t=>{if(o.streamReader=null,!this._transport.destroyed){if(o.operatorList){for(let t of(o.operatorList.lastChunk=!0,o.renderTasks))t.operatorListChanged();this.#i2(!0)}if(o.displayReadyCapability)o.displayReadyCapability.reject(t);else{if(!o.opListReadCapability)throw t;o.opListReadCapability.reject(t)}}})};l()}_abortOperatorList({intentState:t,reason:e,force:i=!1}){if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!i){if(t.renderTasks.size>0)return;if(e instanceof tX){let i=100;e.extraDelay>0&&e.extraDelay<1e3&&(i+=e.extraDelay),t.streamReaderCancelTimeout=setTimeout(()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:e,force:!0})},i);return}}if(t.streamReader.cancel(new tL(e.message)).catch(()=>{}),t.streamReader=null,!this._transport.destroyed){for(let[e,i]of this._intentStates)if(i===t){this._intentStates.delete(e);break}this.cleanup()}}}get stats(){return this._stats}}class i_{#i3=new Map;#i5=Promise.resolve();postMessage(t,e){let i={data:structuredClone(t,e?{transfer:e}:null)};this.#i5.then(()=>{for(let[t]of this.#i3)t.call(this,i)})}addEventListener(t,e,i=null){let s=null;if(i?.signal instanceof AbortSignal){let{signal:r}=i;if(r.aborted)return void tw(\"LoopbackPort - cannot use an `aborted` signal.\");let n=()=>this.removeEventListener(t,e);s=()=>r.removeEventListener(\"abort\",n),r.addEventListener(\"abort\",n)}this.#i3.set(e,s)}removeEventListener(t,e){let i=this.#i3.get(e);i?.(),this.#i3.delete(e)}terminate(){for(let[,t]of this.#i3)t?.();this.#i3.clear()}}class ix{static #i6=0;static #i8=!1;static #i4;static{this._isSameOrigin=(t,e)=>{let i;try{if(!(i=new URL(t)).origin||\"null\"===i.origin)return!1}catch{return!1}let s=new URL(e,i);return i.origin===s.origin},this._createCDNWrapper=t=>{let e=`await import(\"${t}\");`;return URL.createObjectURL(new Blob([e],{type:\"text\/javascript\"}))}}constructor({name:t=null,port:e=null,verbosity:i=tA}={}){if(this.name=t,this.destroyed=!1,this.verbosity=i,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,e){if(ix.#i4?.has(e))throw Error(\"Cannot use more than one PDFWorker per port.\");(ix.#i4||=new WeakMap).set(e,this),this._initializeFromPort(e)}else this._initialize()}get promise(){return this._readyCapability.promise}#i7(){this._readyCapability.resolve(),this._messageHandler.send(\"configure\",{verbosity:this.verbosity})}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(t){this._port=t,this._messageHandler=new ew(\"main\",\"worker\",t),this._messageHandler.on(\"ready\",function(){}),this.#i7()}_initialize(){if(ix.#i8||ix.#i9)return void this._setupFakeWorker();let{workerSrc:t}=ix;try{ix._isSameOrigin(window.location.href,t)||(t=ix._createCDNWrapper(new URL(t,window.location).href));let e=new Worker(t,{type:\"module\"}),i=new ew(\"main\",\"worker\",e),s=()=>{r.abort(),i.destroy(),e.terminate(),this.destroyed?this._readyCapability.reject(Error(\"Worker was destroyed\")):this._setupFakeWorker()},r=new AbortController;e.addEventListener(\"error\",()=>{this._webWorker||s()},{signal:r.signal}),i.on(\"test\",t=>{r.abort(),!this.destroyed&&t?(this._messageHandler=i,this._port=e,this._webWorker=e,this.#i7()):s()}),i.on(\"ready\",t=>{if(r.abort(),this.destroyed)s();else try{n()}catch{this._setupFakeWorker()}});let n=()=>{let t=new Uint8Array;i.send(\"test\",t,[t.buffer])};n();return}catch{tv(\"The worker has been disabled.\")}this._setupFakeWorker()}_setupFakeWorker(){ix.#i8||(tw(\"Setting up fake worker.\"),ix.#i8=!0),ix._setupFakeWorkerGlobal.then(t=>{if(this.destroyed)return void this._readyCapability.reject(Error(\"Worker was destroyed\"));let e=new i_;this._port=e;let i=\"fake\"+ix.#i6++,s=new ew(i+\"_worker\",i,e);t.setup(s,e),this._messageHandler=new ew(i,i+\"_worker\",e),this.#i7()}).catch(t=>{this._readyCapability.reject(Error(`Setting up fake worker failed: \"${t.message}\".`))})}destroy(){this.destroyed=!0,this._webWorker?.terminate(),this._webWorker=null,ix.#i4?.delete(this._port),this._port=null,this._messageHandler?.destroy(),this._messageHandler=null}static fromPort(t){if(!t?.port)throw Error(\"PDFWorker.fromPort - invalid method signature.\");let e=this.#i4?.get(t.port);if(e){if(e._pendingDestroy)throw Error(\"PDFWorker.fromPort - the worker is being destroyed.\\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.\");return e}return new ix(t)}static get workerSrc(){if(eQ.workerSrc)return eQ.workerSrc;throw Error('No \"GlobalWorkerOptions.workerSrc\" specified.')}static get #i9(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){return tS(this,\"_setupFakeWorkerGlobal\",(async()=>this.#i9?this.#i9:(await import(this.workerSrc)).WorkerMessageHandler)())}}class iE{#st=new Map;#se=new Map;#si=new Map;#ss=new Map;#sr=null;constructor(t,e,i,s,r){this.messageHandler=t,this.loadingTask=e,this.commonObjs=new iC,this.fontLoader=new eb({ownerDocument:s.ownerDocument,styleElement:s.styleElement}),this.loadingParams=s.loadingParams,this._params=s,this.canvasFactory=r.canvasFactory,this.filterFactory=r.filterFactory,this.cMapReaderFactory=r.cMapReaderFactory,this.standardFontDataFactory=r.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=i,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}#sn(t,e=null){let i=this.#st.get(t);if(i)return i;let s=this.messageHandler.sendWithPromise(t,e);return this.#st.set(t,s),s}get annotationStorage(){return tS(this,\"annotationStorage\",new eg)}getRenderingIntent(t,e=tc.ENABLE,i=null,s=!1,r=!1){let n=2,a=ef;switch(t){case\"any\":n=1;break;case\"display\":break;case\"print\":n=4;break;default:tw(`getRenderingIntent - invalid intent: ${t}`)}let o=4&n&&i instanceof em?i:this.annotationStorage;switch(e){case tc.DISABLE:n+=64;break;case tc.ENABLE:break;case tc.ENABLE_FORMS:n+=16;break;case tc.ENABLE_STORAGE:n+=32,a=o.serializable;break;default:tw(`getRenderingIntent - invalid annotationMode: ${e}`)}s&&(n+=128),r&&(n+=256);let{ids:l,hash:h}=o.modifiedIds;return{renderingIntent:n,cacheKey:[n,a.hash,h].join(\"_\"),annotationStorageSerializable:a,modifiedIds:l}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),this.#sr?.reject(Error(\"Worker was destroyed during onPassword callback\"));let t=[];for(let e of this.#se.values())t.push(e._destroy());this.#se.clear(),this.#si.clear(),this.#ss.clear(),this.hasOwnProperty(\"annotationStorage\")&&this.annotationStorage.resetModified();let e=this.messageHandler.sendWithPromise(\"Terminate\",null);return t.push(e),Promise.all(t).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#st.clear(),this.filterFactory.destroy(),ic.cleanup(),this._networkStream?.cancelAllRequests(new tL(\"Worker was terminated.\")),this.messageHandler?.destroy(),this.messageHandler=null,this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){let{messageHandler:t,loadingTask:e}=this;t.on(\"GetReader\",(t,e)=>{tx(this._networkStream,\"GetReader - no `IPDFStream` instance available.\"),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=t=>{this._lastProgress={loaded:t.loaded,total:t.total}},e.onPull=()=>{this._fullReader.read().then(function({value:t,done:i}){i?e.close():(tx(t instanceof ArrayBuffer,\"GetReader - expected an ArrayBuffer.\"),e.enqueue(new Uint8Array(t),1,[t]))}).catch(t=>{e.error(t)})},e.onCancel=t=>{this._fullReader.cancel(t),e.ready.catch(t=>{if(!this.destroyed)throw t})}}),t.on(\"ReaderHeadersReady\",async t=>{await this._fullReader.headersReady;let{isStreamingSupported:i,isRangeSupported:s,contentLength:r}=this._fullReader;return i&&s||(this._lastProgress&&e.onProgress?.(this._lastProgress),this._fullReader.onProgress=t=>{e.onProgress?.({loaded:t.loaded,total:t.total})}),{isStreamingSupported:i,isRangeSupported:s,contentLength:r}}),t.on(\"GetRangeReader\",(t,e)=>{tx(this._networkStream,\"GetRangeReader - no `IPDFStream` instance available.\");let i=this._networkStream.getRangeReader(t.begin,t.end);i?(e.onPull=()=>{i.read().then(function({value:t,done:i}){i?e.close():(tx(t instanceof ArrayBuffer,\"GetRangeReader - expected an ArrayBuffer.\"),e.enqueue(new Uint8Array(t),1,[t]))}).catch(t=>{e.error(t)})},e.onCancel=t=>{i.cancel(t),e.ready.catch(t=>{if(!this.destroyed)throw t})}):e.close()}),t.on(\"GetDoc\",({pdfInfo:t})=>{this._numPages=t.numPages,this._htmlForXfa=t.htmlForXfa,delete t.htmlForXfa,e._capability.resolve(new iv(t,this))}),t.on(\"DocException\",t=>{e._capability.reject(ev(t))}),t.on(\"PasswordRequest\",t=>{this.#sr=Promise.withResolvers();try{if(!e.onPassword)throw ev(t);let i=t=>{t instanceof Error?this.#sr.reject(t):this.#sr.resolve({password:t})};e.onPassword(i,t.code)}catch(t){this.#sr.reject(t)}return this.#sr.promise}),t.on(\"DataLoaded\",t=>{e.onProgress?.({loaded:t.length,total:t.length}),this.downloadInfoCapability.resolve(t)}),t.on(\"StartRenderPage\",t=>{this.destroyed||this.#se.get(t.pageIndex)._startRenderPage(t.transparency,t.cacheKey)}),t.on(\"commonobj\",([e,i,s])=>{if(this.destroyed||this.commonObjs.has(e))return null;switch(i){case\"Font\":let{disableFontFace:r,fontExtraProperties:n,pdfBug:a}=this._params;if(\"error\"in s){let t=s.error;tw(`Error during font loading: ${t}`),this.commonObjs.resolve(e,t);break}let o=new ey(s,{disableFontFace:r,fontExtraProperties:n,inspectFont:a&&globalThis.FontInspector?.enabled?(t,e)=>globalThis.FontInspector.fontAdded(t,e):null});this.fontLoader.bind(o).catch(()=>t.sendWithPromise(\"FontFallback\",{id:e})).finally(()=>{!n&&o.data&&(o.data=null),this.commonObjs.resolve(e,o)});break;case\"CopyLocalImage\":let{imageRef:l}=s;for(let t of(tx(l,\"The imageRef must be defined.\"),this.#se.values()))for(let[,i]of t.objs)if(i?.ref===l){if(!i.dataLen)return null;return this.commonObjs.resolve(e,structuredClone(i)),i.dataLen}break;case\"FontPath\":case\"Image\":case\"Pattern\":this.commonObjs.resolve(e,s);break;default:throw Error(`Got unknown common object type ${i}`)}return null}),t.on(\"obj\",([t,e,i,s])=>{if(this.destroyed)return;let r=this.#se.get(e);if(!r.objs.has(t))if(0!==r._intentStates.size)switch(i){case\"Image\":r.objs.resolve(t,s),s?.dataLen>1e7&&(r._maybeCleanupAfterRender=!0);break;case\"Pattern\":r.objs.resolve(t,s);break;default:throw Error(`Got unknown object type ${i}`)}else s?.bitmap?.close()}),t.on(\"DocProgress\",t=>{this.destroyed||e.onProgress?.({loaded:t.loaded,total:t.total})}),t.on(\"FetchBuiltInCMap\",async t=>{if(this.destroyed)throw Error(\"Worker was destroyed.\");if(!this.cMapReaderFactory)throw Error(\"CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.\");return this.cMapReaderFactory.fetch(t)}),t.on(\"FetchStandardFontData\",async t=>{if(this.destroyed)throw Error(\"Worker was destroyed.\");if(!this.standardFontDataFactory)throw Error(\"StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.\");return this.standardFontDataFactory.fetch(t)})}getData(){return this.messageHandler.sendWithPromise(\"GetData\",null)}saveDocument(){this.annotationStorage.size<=0&&tw(\"saveDocument called while `annotationStorage` is empty, please use the getData-method instead.\");let{map:t,transfer:e}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise(\"SaveDocument\",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:t,filename:this._fullReader?.filename??null},e).finally(()=>{this.annotationStorage.resetModified()})}getPage(t){if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(Error(\"Invalid page request.\"));let e=t-1,i=this.#si.get(e);if(i)return i;let s=this.messageHandler.sendWithPromise(\"GetPage\",{pageIndex:e}).then(i=>{if(this.destroyed)throw Error(\"Transport destroyed\");i.refStr&&this.#ss.set(i.refStr,t);let s=new iw(e,i,this,this._params.pdfBug);return this.#se.set(e,s),s});return this.#si.set(e,s),s}getPageIndex(t){return ib(t)?this.messageHandler.sendWithPromise(\"GetPageIndex\",{num:t.num,gen:t.gen}):Promise.reject(Error(\"Invalid pageIndex request.\"))}getAnnotations(t,e){return this.messageHandler.sendWithPromise(\"GetAnnotations\",{pageIndex:t,intent:e})}getFieldObjects(){return this.#sn(\"GetFieldObjects\")}hasJSActions(){return this.#sn(\"HasJSActions\")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise(\"GetCalculationOrderIds\",null)}getDestinations(){return this.messageHandler.sendWithPromise(\"GetDestinations\",null)}getDestination(t){return\"string\"!=typeof t?Promise.reject(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)}getDocJSActions(){return this.#sn(\"GetDocJSActions\")}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(t){return this.#sn(\"GetOptionalContentConfig\").then(e=>new e1(e,t))}getPermissions(){return this.messageHandler.sendWithPromise(\"GetPermissions\",null)}getMetadata(){let t=\"GetMetadata\",e=this.#st.get(t);if(e)return e;let i=this.messageHandler.sendWithPromise(t,null).then(t=>({info:t[0],metadata:t[1]?new eJ(t[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}));return this.#st.set(t,i),i}getMarkInfo(){return this.messageHandler.sendWithPromise(\"GetMarkInfo\",null)}async startCleanup(t=!1){if(!this.destroyed){for(let t of(await this.messageHandler.sendWithPromise(\"Cleanup\",null),this.#se.values()))if(!t.cleanup())throw Error(`startCleanup: Page ${t.pageNumber} is currently rendering.`);this.commonObjs.clear(),t||this.fontLoader.clear(),this.#st.clear(),this.filterFactory.destroy(!0),ic.cleanup()}}cachedPageNumber(t){if(!ib(t))return null;let e=0===t.gen?`${t.num}R`:`${t.num}R${t.gen}`;return this.#ss.get(e)??null}}let iS=Symbol(\"INITIAL_DATA\");class iC{#sa=Object.create(null);#so(t){return this.#sa[t]||={...Promise.withResolvers(),data:iS}}get(t,e=null){if(e){let i=this.#so(t);return i.promise.then(()=>e(i.data)),null}let i=this.#sa[t];if(!i||i.data===iS)throw Error(`Requesting object that isn't resolved yet ${t}.`);return i.data}has(t){let e=this.#sa[t];return!!e&&e.data!==iS}delete(t){let e=this.#sa[t];return!!e&&e.data!==iS&&(delete this.#sa[t],!0)}resolve(t,e=null){let i=this.#so(t);i.data=e,i.resolve()}clear(){for(let t in this.#sa){let{data:e}=this.#sa[t];e?.bitmap?.close()}this.#sa=Object.create(null)}*[Symbol.iterator](){for(let t in this.#sa){let{data:e}=this.#sa[t];e!==iS&&(yield[t,e])}}}class iM{#sl=null;constructor(t){this.#sl=t,this.onContinue=null}get promise(){return this.#sl.capability.promise}cancel(t=0){this.#sl.cancel(null,t)}get separateAnnots(){let{separateAnnots:t}=this.#sl.operatorList;if(!t)return!1;let{annotationCanvasMap:e}=this.#sl;return t.form||t.canvas&&e?.size>0}}class ik{#sh=null;static #sd=new WeakSet;constructor({callback:t,params:e,objs:i,commonObjs:s,annotationCanvasMap:r,operatorList:n,pageIndex:a,canvasFactory:o,filterFactory:l,useRequestAnimationFrame:h=!1,pdfBug:d=!1,pageColors:c=null}){this.callback=t,this.params=e,this.objs=i,this.commonObjs=s,this.annotationCanvasMap=r,this.operatorListIdx=null,this.operatorList=n,this._pageIndex=a,this.canvasFactory=o,this.filterFactory=l,this._pdfBug=d,this.pageColors=c,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===h&&\"u\">typeof window,this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new iM(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=e.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:t=!1,optionalContentConfig:e}){if(this.cancelled)return;if(this._canvas){if(ik.#sd.has(this._canvas))throw Error(\"Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.\");ik.#sd.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());let{canvasContext:i,viewport:s,transform:r,background:n}=this.params;this.gfx=new eY(i,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:e},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:r,viewport:s,transparency:t,background:n}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(t=null,e=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),this.#sh&&(window.cancelAnimationFrame(this.#sh),this.#sh=null),ik.#sd.delete(this._canvas),this.callback(t||new tX(`Rendering cancelled, page ${this._pageIndex+1}`,e))}operatorListChanged(){this.graphicsReady?(this.stepper?.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||=this._continueBound}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?this.#sh=window.requestAnimationFrame(()=>{this.#sh=null,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(),ik.#sd.delete(this._canvas),this.callback())))}}let iT=\"4.10.38\",iP=\"f9bea397f\";function iR(t){return Math.floor(255*Math.max(0,Math.min(1,t))).toString(16).padStart(2,\"0\")}function iI(t){return Math.max(0,Math.min(255,255*t))}class iL{static CMYK_G([t,e,i,s]){return[\"G\",1-Math.min(1,.3*t+.59*i+.11*e+s)]}static G_CMYK([t]){return[\"CMYK\",0,0,0,1-t]}static G_RGB([t]){return[\"RGB\",t,t,t]}static G_rgb([t]){return[t=iI(t),t,t]}static G_HTML([t]){let e=iR(t);return`#${e}${e}${e}`}static RGB_G([t,e,i]){return[\"G\",.3*t+.59*e+.11*i]}static RGB_rgb(t){return t.map(iI)}static RGB_HTML(t){return`#${t.map(iR).join(\"\")}`}static T_HTML(){return\"#00000000\"}static T_rgb(){return[null]}static CMYK_RGB([t,e,i,s]){return[\"RGB\",1-Math.min(1,t+s),1-Math.min(1,i+s),1-Math.min(1,e+s)]}static CMYK_rgb([t,e,i,s]){return[iI(1-Math.min(1,t+s)),iI(1-Math.min(1,i+s)),iI(1-Math.min(1,e+s))]}static CMYK_HTML(t){let e=this.CMYK_RGB(t).slice(1);return this.RGB_HTML(e)}static RGB_CMYK([t,e,i]){let s=1-t,r=1-e,n=1-i;return[\"CMYK\",s,r,n,Math.min(s,r,n)]}}class iD{create(t,e,i=!1){if(t<=0||e<=0)throw Error(\"Invalid SVG dimensions\");let s=this._createSVG(\"svg:svg\");return s.setAttribute(\"version\",\"1.1\"),i||(s.setAttribute(\"width\",`${t}px`),s.setAttribute(\"height\",`${e}px`)),s.setAttribute(\"preserveAspectRatio\",\"none\"),s.setAttribute(\"viewBox\",`0 0 ${t} ${e}`),s}createElement(t){if(\"string\"!=typeof t)throw Error(\"Invalid SVG element type\");return this._createSVG(t)}_createSVG(t){t_(\"Abstract method `_createSVG` called.\")}}class iF extends iD{_createSVG(t){return document.createElementNS(tG,t)}}class iN{static setupStorage(t,e,i,s,r){let n=s.getValue(e,{value:null});switch(i.name){case\"textarea\":if(null!==n.value&&(t.textContent=n.value),\"print\"===r)break;t.addEventListener(\"input\",t=>{s.setValue(e,{value:t.target.value})});break;case\"input\":if(\"radio\"===i.attributes.type||\"checkbox\"===i.attributes.type){if(n.value===i.attributes.xfaOn?t.setAttribute(\"checked\",!0):n.value===i.attributes.xfaOff&&t.removeAttribute(\"checked\"),\"print\"===r)break;t.addEventListener(\"change\",t=>{s.setValue(e,{value:t.target.checked?t.target.getAttribute(\"xfaOn\"):t.target.getAttribute(\"xfaOff\")})})}else{if(null!==n.value&&t.setAttribute(\"value\",n.value),\"print\"===r)break;t.addEventListener(\"input\",t=>{s.setValue(e,{value:t.target.value})})}break;case\"select\":if(null!==n.value)for(let e of(t.setAttribute(\"value\",n.value),i.children))e.attributes.value===n.value?e.attributes.selected=!0:e.attributes.hasOwnProperty(\"selected\")&&delete e.attributes.selected;t.addEventListener(\"input\",t=>{let i=t.target.options,r=-1===i.selectedIndex?\"\":i[i.selectedIndex].value;s.setValue(e,{value:r})})}}static setAttributes({html:t,element:e,storage:i=null,intent:s,linkService:r}){let{attributes:n}=e,a=t instanceof HTMLAnchorElement;for(let[e,i]of(\"radio\"===n.type&&(n.name=`${n.name}-${s}`),Object.entries(n)))if(null!=i)switch(e){case\"class\":i.length&&t.setAttribute(e,i.join(\" \"));break;case\"dataId\":break;case\"id\":t.setAttribute(\"data-element-id\",i);break;case\"style\":Object.assign(t.style,i);break;case\"textContent\":t.textContent=i;break;default:a&&(\"href\"===e||\"newWindow\"===e)||t.setAttribute(e,i)}a&&r.addLinkAttributes(t,n.href,n.newWindow),i&&n.dataId&&this.setupStorage(t,n.dataId,e,i)}static render(t){let e=t.annotationStorage,i=t.linkService,s=t.xfaHtml,r=t.intent||\"display\",n=document.createElement(s.name);s.attributes&&this.setAttributes({html:n,element:s,intent:r,linkService:i});let a=\"richText\"!==r,o=t.div;if(o.append(n),t.viewport){let e=`matrix(${t.viewport.transform.join(\",\")})`;o.style.transform=e}a&&o.setAttribute(\"class\",\"xfaLayer xfaFont\");let l=[];if(0===s.children.length){if(s.value){let t=document.createTextNode(s.value);n.append(t),a&&iu.shouldBuildText(s.name)&&l.push(t)}return{textDivs:l}}let h=[[s,-1,n]];for(;h.length>0;){let[t,s,n]=h.at(-1);if(s+1===t.children.length){h.pop();continue}let o=t.children[++h.at(-1)[1]];if(null===o)continue;let{name:d}=o;if(\"#text\"===d){let t=document.createTextNode(o.value);l.push(t),n.append(t);continue}let c=o?.attributes?.xmlns?document.createElementNS(o.attributes.xmlns,d):document.createElement(d);if(n.append(c),o.attributes&&this.setAttributes({html:c,element:o,storage:e,intent:r,linkService:i}),o.children?.length>0)h.push([o,-1,c]);else if(o.value){let t=document.createTextNode(o.value);a&&iu.shouldBuildText(d)&&l.push(t),c.append(t)}}for(let t of o.querySelectorAll(\".xfaNonInteractive input, .xfaNonInteractive textarea\"))t.setAttribute(\"readOnly\",!0);return{textDivs:l}}static update(t){let e=`matrix(${t.viewport.transform.join(\",\")})`;t.div.style.transform=e,t.div.hidden=!1}}let iO=new WeakSet;function iB(t){return{width:t[2]-t[0],height:t[3]-t[1]}}class i${static create(t){switch(t.data.annotationType){case 2:return new iU(t);case 1:return new ij(t);case 20:switch(t.data.fieldType){case\"Tx\":return new iG(t);case\"Btn\":return t.data.radioButton?new iq(t):t.data.checkBox?new iW(t):new iX(t);case\"Ch\":return new iK(t);case\"Sig\":return new iV(t)}return new iz(t);case 16:return new iY(t);case 3:return new iJ(t);case 4:return new iZ(t);case 5:return new i0(t);case 6:return new i1(t);case 8:return new i2(t);case 14:return new i5(t);case 15:return new i6(t);case 7:return new i3(t);case 9:return new i8(t);case 10:return new i4(t);case 11:return new i7(t);case 12:return new i9(t);case 13:return new st(t);case 17:return new se(t);default:return new iH(t)}}}class iH{#sc=null;#su=!1;#sp=null;constructor(t,{isRenderable:e=!1,ignoreBorder:i=!1,createQuadrilaterals:s=!1}={}){this.isRenderable=e,this.data=t.data,this.layer=t.layer,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderForms=t.renderForms,this.svgFactory=t.svgFactory,this.annotationStorage=t.annotationStorage,this.enableScripting=t.enableScripting,this.hasJSActions=t.hasJSActions,this._fieldObjects=t.fieldObjects,this.parent=t.parent,e&&(this.container=this._createContainer(i)),s&&this._createQuadrilaterals()}static _hasPopupData({titleObj:t,contentsObj:e,richText:i}){return!!(t?.str||e?.str||i?.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return iH._hasPopupData(this.data)}updateEdited(t){if(!this.container)return;this.#sc||={rect:this.data.rect.slice(0)};let{rect:e}=t;e&&this.#sf(e),this.#sp?.popup.updateEdited(t)}resetEdited(){this.#sc&&(this.#sf(this.#sc.rect),this.#sp?.popup.resetEdited(),this.#sc=null)}#sf(t){let{container:{style:e},data:{rect:i,rotation:s},parent:{viewport:{rawDims:{pageWidth:r,pageHeight:n,pageX:a,pageY:o}}}}=this;i?.splice(0,4,...t);let{width:l,height:h}=iB(t);e.left=100*(t[0]-a)\/r+\"%\",e.top=100*(n-t[3]+o)\/n+\"%\",0===s?(e.width=100*l\/r+\"%\",e.height=100*h\/n+\"%\"):this.setRotation(s)}_createContainer(t){let{data:e,parent:{page:i,viewport:s}}=this,r=document.createElement(\"section\");r.setAttribute(\"data-annotation-id\",e.id),this instanceof iz||(r.tabIndex=1e3);let{style:n}=r;if(n.zIndex=this.parent.zIndex++,e.alternativeText&&(r.title=e.alternativeText),e.noRotate&&r.classList.add(\"norotate\"),!e.rect||this instanceof iY){let{rotation:t}=e;return e.hasOwnCanvas||0===t||this.setRotation(t,r),r}let{width:a,height:o}=iB(e.rect);if(!t&&e.borderStyle.width>0){n.borderWidth=`${e.borderStyle.width}px`;let t=e.borderStyle.horizontalCornerRadius,i=e.borderStyle.verticalCornerRadius;switch(t>0||i>0?n.borderRadius=`calc(${t}px * var(--scale-factor)) \/ calc(${i}px * var(--scale-factor))`:this instanceof iq&&(n.borderRadius=`calc(${a}px * var(--scale-factor)) \/ calc(${o}px * var(--scale-factor))`),e.borderStyle.style){case 1:n.borderStyle=\"solid\";break;case 2:n.borderStyle=\"dashed\";break;case 3:tw(\"Unimplemented border style: beveled\");break;case 4:tw(\"Unimplemented border style: inset\");break;case 5:n.borderBottomStyle=\"solid\"}let s=e.borderColor||null;s?(this.#su=!0,n.borderColor=t$.makeHexColor(0|s[0],0|s[1],0|s[2])):n.borderWidth=0}let l=t$.normalizeRect([e.rect[0],i.view[3]-e.rect[1]+i.view[1],e.rect[2],i.view[3]-e.rect[3]+i.view[1]]),{pageWidth:h,pageHeight:d,pageX:c,pageY:u}=s.rawDims;n.left=100*(l[0]-c)\/h+\"%\",n.top=100*(l[1]-u)\/d+\"%\";let{rotation:p}=e;return e.hasOwnCanvas||0===p?(n.width=100*a\/h+\"%\",n.height=100*o\/d+\"%\"):this.setRotation(p,r),r}setRotation(t,e=this.container){let i,s;if(!this.data.rect)return;let{pageWidth:r,pageHeight:n}=this.parent.viewport.rawDims,{width:a,height:o}=iB(this.data.rect);t%180==0?(i=100*a\/r,s=100*o\/n):(i=100*o\/r,s=100*a\/n),e.style.width=`${i}%`,e.style.height=`${s}%`,e.setAttribute(\"data-main-rotation\",(360-t)%360)}get _commonActions(){let t=(t,e,i)=>{let s=i.detail[t],r=s[0],n=s.slice(1);i.target.style[e]=iL[`${r}_HTML`](n),this.annotationStorage.setValue(this.data.id,{[e]:iL[`${r}_rgb`](n)})};return tS(this,\"_commonActions\",{display:t=>{let{display:e}=t.detail,i=e%2==1;this.container.style.visibility=i?\"hidden\":\"visible\",this.annotationStorage.setValue(this.data.id,{noView:i,noPrint:1===e||2===e})},print:t=>{this.annotationStorage.setValue(this.data.id,{noPrint:!t.detail.print})},hidden:t=>{let{hidden:e}=t.detail;this.container.style.visibility=e?\"hidden\":\"visible\",this.annotationStorage.setValue(this.data.id,{noPrint:e,noView:e})},focus:t=>{setTimeout(()=>t.target.focus({preventScroll:!1}),0)},userName:t=>{t.target.title=t.detail.userName},readonly:t=>{t.target.disabled=t.detail.readonly},required:t=>{this._setRequired(t.target,t.detail.required)},bgColor:e=>{t(\"bgColor\",\"backgroundColor\",e)},fillColor:e=>{t(\"fillColor\",\"backgroundColor\",e)},fgColor:e=>{t(\"fgColor\",\"color\",e)},textColor:e=>{t(\"textColor\",\"color\",e)},borderColor:e=>{t(\"borderColor\",\"borderColor\",e)},strokeColor:e=>{t(\"strokeColor\",\"borderColor\",e)},rotation:t=>{let e=t.detail.rotation;this.setRotation(e),this.annotationStorage.setValue(this.data.id,{rotation:e})}})}_dispatchEventFromSandbox(t,e){let i=this._commonActions;for(let s of Object.keys(e.detail)){let r=t[s]||i[s];r?.(e)}}_setDefaultPropertiesFromJS(t){if(!this.enableScripting)return;let e=this.annotationStorage.getRawValue(this.data.id);if(!e)return;let i=this._commonActions;for(let[s,r]of Object.entries(e)){let n=i[s];n&&(n({detail:{[s]:r},target:t}),delete e[s])}}_createQuadrilaterals(){let t;if(!this.container)return;let{quadPoints:e}=this.data;if(!e)return;let[i,s,r,n]=this.data.rect.map(t=>Math.fround(t));if(8===e.length){let[t,a,o,l]=e.subarray(2,6);if(r===t&&n===a&&i===o&&s===l)return}let{style:a}=this.container;if(this.#su){let{borderColor:e,borderWidth:i}=a;a.borderWidth=0,t=[\"url('data:image\/svg+xml;utf8,\",'<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\"',' preserveAspectRatio=\"none\" viewBox=\"0 0 1 1\">',`<g fill=\"transparent\" stroke=\"${e}\" stroke-width=\"${i}\">`],this.container.classList.add(\"hasBorder\")}let o=r-i,l=n-s,{svgFactory:h}=this,d=h.createElement(\"svg\");d.classList.add(\"quadrilateralsContainer\"),d.setAttribute(\"width\",0),d.setAttribute(\"height\",0);let c=h.createElement(\"defs\");d.append(c);let u=h.createElement(\"clipPath\"),p=`clippath_${this.data.id}`;u.setAttribute(\"id\",p),u.setAttribute(\"clipPathUnits\",\"objectBoundingBox\"),c.append(u);for(let s=2,r=e.length;s<r;s+=8){let r=e[s],a=e[s+1],d=e[s+2],c=e[s+3],p=h.createElement(\"rect\"),f=(d-i)\/o,g=(n-a)\/l,m=(r-d)\/o,b=(a-c)\/l;p.setAttribute(\"x\",f),p.setAttribute(\"y\",g),p.setAttribute(\"width\",m),p.setAttribute(\"height\",b),u.append(p),t?.push(`<rect vector-effect=\"non-scaling-stroke\" x=\"${f}\" y=\"${g}\" width=\"${m}\" height=\"${b}\"\/>`)}this.#su&&(t.push(\"<\/g><\/svg>')\"),a.backgroundImage=t.join(\"\")),this.container.append(d),this.container.style.clipPath=`url(#${p})`}_createPopup(){let{data:t}=this,e=this.#sp=new iY({data:{color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,parentRect:t.rect,borderStyle:0,id:`popup_${t.id}`,rotation:t.rotation},parent:this.parent,elements:[this]});this.parent.div.append(e.render())}render(){t_(\"Abstract method `AnnotationElement.render` called\")}_getElementsByName(t,e=null){let i=[];if(this._fieldObjects){let s=this._fieldObjects[t];if(s)for(let{page:t,id:r,exportValues:n}of s){if(-1===t||r===e)continue;let s=\"string\"==typeof n?n:null,a=document.querySelector(`[data-element-id=\"${r}\"]`);!a||iO.has(a)?i.push({id:r,exportValue:s,domElement:a}):tw(`_getElementsByName - element not allowed: ${r}`)}return i}for(let s of document.getElementsByName(t)){let{exportValue:t}=s,r=s.getAttribute(\"data-element-id\");r!==e&&iO.has(s)&&i.push({id:r,exportValue:t,domElement:s})}return i}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){let t=this.getElementsToTriggerPopup();if(Array.isArray(t))for(let e of t)e.classList.add(\"highlightArea\");else t.classList.add(\"highlightArea\")}_editOnDoubleClick(){if(!this._isEditable)return;let{annotationEditorType:t,data:{id:e}}=this;this.container.addEventListener(\"dblclick\",()=>{this.linkService.eventBus?.dispatch(\"switchannotationeditormode\",{source:this,mode:t,editId:e})})}}class iU extends iH{constructor(t,e=null){super(t,{isRenderable:!0,ignoreBorder:!!e?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=t.data.isTooltipOnly}render(){let{data:t,linkService:e}=this,i=document.createElement(\"a\");i.setAttribute(\"data-element-id\",t.id);let s=!1;return t.url?(e.addLinkAttributes(i,t.url,t.newWindow),s=!0):t.action?(this._bindNamedAction(i,t.action),s=!0):t.attachment?(this.#sg(i,t.attachment,t.attachmentDest),s=!0):t.setOCGState?(this.#sm(i,t.setOCGState),s=!0):t.dest?(this._bindLink(i,t.dest),s=!0):(t.actions&&(t.actions.Action||t.actions[\"Mouse Up\"]||t.actions[\"Mouse Down\"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(i,t),s=!0),t.resetForm?(this._bindResetFormAction(i,t.resetForm),s=!0):this.isTooltipOnly&&!s&&(this._bindLink(i,\"\"),s=!0)),this.container.classList.add(\"linkAnnotation\"),s&&this.container.append(i),this.container}#sb(){this.container.setAttribute(\"data-internal-link\",\"\")}_bindLink(t,e){t.href=this.linkService.getDestinationHash(e),t.onclick=()=>(e&&this.linkService.goToDestination(e),!1),(e||\"\"===e)&&this.#sb()}_bindNamedAction(t,e){t.href=this.linkService.getAnchorUrl(\"\"),t.onclick=()=>(this.linkService.executeNamedAction(e),!1),this.#sb()}#sg(t,e,i=null){t.href=this.linkService.getAnchorUrl(\"\"),e.description&&(t.title=e.description),t.onclick=()=>(this.downloadManager?.openOrDownloadData(e.content,e.filename,i),!1),this.#sb()}#sm(t,e){t.href=this.linkService.getAnchorUrl(\"\"),t.onclick=()=>(this.linkService.executeSetOCGState(e),!1),this.#sb()}_bindJSAction(t,e){t.href=this.linkService.getAnchorUrl(\"\");let i=new Map([[\"Action\",\"onclick\"],[\"Mouse Up\",\"onmouseup\"],[\"Mouse Down\",\"onmousedown\"]]);for(let s of Object.keys(e.actions)){let r=i.get(s);r&&(t[r]=()=>(this.linkService.eventBus?.dispatch(\"dispatcheventinsandbox\",{source:this,detail:{id:e.id,name:s}}),!1))}t.onclick||(t.onclick=()=>!1),this.#sb()}_bindResetFormAction(t,e){let i=t.onclick;i||(t.href=this.linkService.getAnchorUrl(\"\")),this.#sb(),this._fieldObjects?t.onclick=()=>{i?.();let{fields:t,refs:s,include:r}=e,n=[];if(0!==t.length||0!==s.length){let e=new Set(s);for(let i of t)for(let{id:t}of this._fieldObjects[i]||[])e.add(t);for(let t of Object.values(this._fieldObjects))for(let i of t)e.has(i.id)===r&&n.push(i)}else for(let t of Object.values(this._fieldObjects))n.push(...t);let a=this.annotationStorage,o=[];for(let t of n){let{id:e}=t;switch(o.push(e),t.type){case\"text\":{let i=t.defaultValue||\"\";a.setValue(e,{value:i});break}case\"checkbox\":case\"radiobutton\":{let i=t.defaultValue===t.exportValues;a.setValue(e,{value:i});break}case\"combobox\":case\"listbox\":{let i=t.defaultValue||\"\";a.setValue(e,{value:i});break}default:continue}let i=document.querySelector(`[data-element-id=\"${e}\"]`);i&&(iO.has(i)?i.dispatchEvent(new Event(\"resetform\")):tw(`_bindResetFormAction - element not allowed: ${e}`))}return this.enableScripting&&this.linkService.eventBus?.dispatch(\"dispatcheventinsandbox\",{source:this,detail:{id:\"app\",ids:o,name:\"ResetForm\"}}),!1}:(tw('_bindResetFormAction - \"resetForm\" action not supported, ensure that the `fieldObjects` parameter is provided.'),i||(t.onclick=()=>!1))}}class ij extends iH{constructor(t){super(t,{isRenderable:!0})}render(){this.container.classList.add(\"textAnnotation\");let t=document.createElement(\"img\");return t.src=this.imageResourcesPath+\"annotation-\"+this.data.name.toLowerCase()+\".svg\",t.setAttribute(\"data-l10n-id\",\"pdfjs-text-annotation-type\"),t.setAttribute(\"data-l10n-args\",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(t),this.container}}class iz extends iH{render(){return this.container}showElementAndHideCanvas(t){this.data.hasOwnCanvas&&(\"CANVAS\"===t.previousSibling?.nodeName&&(t.previousSibling.hidden=!0),t.hidden=!1)}_getKeyModifier(t){return tO.platform.isMac?t.metaKey:t.ctrlKey}_setEventListener(t,e,i,s,r){i.includes(\"mouse\")?t.addEventListener(i,t=>{this.linkService.eventBus?.dispatch(\"dispatcheventinsandbox\",{source:this,detail:{id:this.data.id,name:s,value:r(t),shift:t.shiftKey,modifier:this._getKeyModifier(t)}})}):t.addEventListener(i,t=>{if(\"blur\"===i){if(!e.focused||!t.relatedTarget)return;e.focused=!1}else if(\"focus\"===i){if(e.focused)return;e.focused=!0}r&&this.linkService.eventBus?.dispatch(\"dispatcheventinsandbox\",{source:this,detail:{id:this.data.id,name:s,value:r(t)}})})}_setEventListeners(t,e,i,s){for(let[r,n]of i)(\"Action\"===n||this.data.actions?.[n])&&(\"Focus\"!==n&&\"Blur\"!==n||(e||={focused:!1}),this._setEventListener(t,e,r,n,s),\"Focus\"!==n||this.data.actions?.Blur?\"Blur\"!==n||this.data.actions?.Focus||this._setEventListener(t,e,\"focus\",\"Focus\",null):this._setEventListener(t,e,\"blur\",\"Blur\",null))}_setBackgroundColor(t){let e=this.data.backgroundColor||null;t.style.backgroundColor=null===e?\"transparent\":t$.makeHexColor(e[0],e[1],e[2])}_setTextStyle(t){let e,{fontColor:i}=this.data.defaultAppearanceData,s=this.data.defaultAppearanceData.fontSize||9,r=t.style,n=t=>Math.round(10*t)\/10;if(this.data.multiLine){let t=Math.abs(this.data.rect[3]-this.data.rect[1]-2),i=t\/(Math.round(t\/(1.35*s))||1);e=Math.min(s,n(i\/1.35))}else e=Math.min(s,n(Math.abs(this.data.rect[3]-this.data.rect[1]-2)\/1.35));r.fontSize=`calc(${e}px * var(--scale-factor))`,r.color=t$.makeHexColor(i[0],i[1],i[2]),null!==this.data.textAlignment&&(r.textAlign=[\"left\",\"center\",\"right\"][this.data.textAlignment])}_setRequired(t,e){e?t.setAttribute(\"required\",!0):t.removeAttribute(\"required\"),t.setAttribute(\"aria-required\",e)}}class iG extends iz{constructor(t){super(t,{isRenderable:t.renderForms||t.data.hasOwnCanvas||!t.data.hasAppearance&&!!t.data.fieldValue})}setPropertyOnSiblings(t,e,i,s){let r=this.annotationStorage;for(let n of this._getElementsByName(t.name,t.id))n.domElement&&(n.domElement[e]=i),r.setValue(n.id,{[s]:i})}render(){let t=this.annotationStorage,e=this.data.id;this.container.classList.add(\"textWidgetAnnotation\");let i=null;if(this.renderForms){let s=t.getValue(e,{value:this.data.fieldValue}),r=s.value||\"\",n=t.getValue(e,{charLimit:this.data.maxLen}).charLimit;n&&r.length>n&&(r=r.slice(0,n));let a=s.formattedValue||this.data.textContent?.join(\"\\n\")||null;a&&this.data.comb&&(a=a.replaceAll(\/\\s+\/g,\"\"));let o={userValue:r,formattedValue:a,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?((i=document.createElement(\"textarea\")).textContent=a??r,this.data.doNotScroll&&(i.style.overflowY=\"hidden\")):((i=document.createElement(\"input\")).type=\"text\",i.setAttribute(\"value\",a??r),this.data.doNotScroll&&(i.style.overflowX=\"hidden\")),this.data.hasOwnCanvas&&(i.hidden=!0),iO.add(i),i.setAttribute(\"data-element-id\",e),i.disabled=this.data.readOnly,i.name=this.data.fieldName,i.tabIndex=1e3,this._setRequired(i,this.data.required),n&&(i.maxLength=n),i.addEventListener(\"input\",s=>{t.setValue(e,{value:s.target.value}),this.setPropertyOnSiblings(i,\"value\",s.target.value,\"value\"),o.formattedValue=null}),i.addEventListener(\"resetform\",t=>{let e=this.data.defaultFieldValue??\"\";i.value=o.userValue=e,o.formattedValue=null});let l=t=>{let{formattedValue:e}=o;null!=e&&(t.target.value=e),t.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){i.addEventListener(\"focus\",t=>{if(o.focused)return;let{target:e}=t;o.userValue&&(e.value=o.userValue),o.lastCommittedValue=e.value,o.commitKey=1,this.data.actions?.Focus||(o.focused=!0)}),i.addEventListener(\"updatefromsandbox\",i=>{this.showElementAndHideCanvas(i.target),this._dispatchEventFromSandbox({value(i){o.userValue=i.detail.value??\"\",t.setValue(e,{value:o.userValue.toString()}),i.target.value=o.userValue},formattedValue(i){let{formattedValue:s}=i.detail;o.formattedValue=s,null!=s&&i.target!==document.activeElement&&(i.target.value=s),t.setValue(e,{formattedValue:s})},selRange(t){t.target.setSelectionRange(...t.detail.selRange)},charLimit:i=>{let{charLimit:s}=i.detail,{target:r}=i;if(0===s)return void r.removeAttribute(\"maxLength\");r.setAttribute(\"maxLength\",s);let n=o.userValue;n&&!(n.length<=s)&&(r.value=o.userValue=n=n.slice(0,s),t.setValue(e,{value:n}),this.linkService.eventBus?.dispatch(\"dispatcheventinsandbox\",{source:this,detail:{id:e,name:\"Keystroke\",value:n,willCommit:!0,commitKey:1,selStart:r.selectionStart,selEnd:r.selectionEnd}}))}},i)}),i.addEventListener(\"keydown\",t=>{o.commitKey=1;let i=-1;if(\"Escape\"===t.key?i=0:\"Enter\"!==t.key||this.data.multiLine?\"Tab\"===t.key&&(o.commitKey=3):i=2,-1===i)return;let{value:s}=t.target;o.lastCommittedValue!==s&&(o.lastCommittedValue=s,o.userValue=s,this.linkService.eventBus?.dispatch(\"dispatcheventinsandbox\",{source:this,detail:{id:e,name:\"Keystroke\",value:s,willCommit:!0,commitKey:i,selStart:t.target.selectionStart,selEnd:t.target.selectionEnd}}))});let s=l;l=null,i.addEventListener(\"blur\",t=>{if(!o.focused||!t.relatedTarget)return;this.data.actions?.Blur||(o.focused=!1);let{value:i}=t.target;o.userValue=i,o.lastCommittedValue!==i&&this.linkService.eventBus?.dispatch(\"dispatcheventinsandbox\",{source:this,detail:{id:e,name:\"Keystroke\",value:i,willCommit:!0,commitKey:o.commitKey,selStart:t.target.selectionStart,selEnd:t.target.selectionEnd}}),s(t)}),this.data.actions?.Keystroke&&i.addEventListener(\"beforeinput\",t=>{o.lastCommittedValue=null;let{data:i,target:s}=t,{value:r,selectionStart:n,selectionEnd:a}=s,l=n,h=a;switch(t.inputType){case\"deleteWordBackward\":{let t=r.substring(0,n).match(\/\\w*[^\\w]*$\/);t&&(l-=t[0].length);break}case\"deleteWordForward\":{let t=r.substring(n).match(\/^[^\\w]*\\w*\/);t&&(h+=t[0].length);break}case\"deleteContentBackward\":n===a&&(l-=1);break;case\"deleteContentForward\":n===a&&(h+=1)}t.preventDefault(),this.linkService.eventBus?.dispatch(\"dispatcheventinsandbox\",{source:this,detail:{id:e,name:\"Keystroke\",value:r,change:i||\"\",willCommit:!1,selStart:l,selEnd:h}})}),this._setEventListeners(i,o,[[\"focus\",\"Focus\"],[\"blur\",\"Blur\"],[\"mousedown\",\"Mouse Down\"],[\"mouseenter\",\"Mouse Enter\"],[\"mouseleave\",\"Mouse Exit\"],[\"mouseup\",\"Mouse Up\"]],t=>t.target.value)}if(l&&i.addEventListener(\"blur\",l),this.data.comb){let t=(this.data.rect[2]-this.data.rect[0])\/n;i.classList.add(\"comb\"),i.style.letterSpacing=`calc(${t}px * var(--scale-factor) - 1ch)`}}else(i=document.createElement(\"div\")).textContent=this.data.fieldValue,i.style.verticalAlign=\"middle\",i.style.display=\"table-cell\",this.data.hasOwnCanvas&&(i.hidden=!0);return this._setTextStyle(i),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class iV extends iz{constructor(t){super(t,{isRenderable:!!t.data.hasOwnCanvas})}}class iW extends iz{constructor(t){super(t,{isRenderable:t.renderForms})}render(){let t=this.annotationStorage,e=this.data,i=e.id,s=t.getValue(i,{value:e.exportValue===e.fieldValue}).value;\"string\"==typeof s&&(s=\"Off\"!==s,t.setValue(i,{value:s})),this.container.classList.add(\"buttonWidgetAnnotation\",\"checkBox\");let r=document.createElement(\"input\");return iO.add(r),r.setAttribute(\"data-element-id\",i),r.disabled=e.readOnly,this._setRequired(r,this.data.required),r.type=\"checkbox\",r.name=e.fieldName,s&&r.setAttribute(\"checked\",!0),r.setAttribute(\"exportValue\",e.exportValue),r.tabIndex=1e3,r.addEventListener(\"change\",s=>{let{name:r,checked:n}=s.target;for(let s of this._getElementsByName(r,i)){let i=n&&s.exportValue===e.exportValue;s.domElement&&(s.domElement.checked=i),t.setValue(s.id,{value:i})}t.setValue(i,{value:n})}),r.addEventListener(\"resetform\",t=>{let i=e.defaultFieldValue||\"Off\";t.target.checked=i===e.exportValue}),this.enableScripting&&this.hasJSActions&&(r.addEventListener(\"updatefromsandbox\",e=>{this._dispatchEventFromSandbox({value(e){e.target.checked=\"Off\"!==e.detail.value,t.setValue(i,{value:e.target.checked})}},e)}),this._setEventListeners(r,null,[[\"change\",\"Validate\"],[\"change\",\"Action\"],[\"focus\",\"Focus\"],[\"blur\",\"Blur\"],[\"mousedown\",\"Mouse Down\"],[\"mouseenter\",\"Mouse Enter\"],[\"mouseleave\",\"Mouse Exit\"],[\"mouseup\",\"Mouse Up\"]],t=>t.target.checked)),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class iq extends iz{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add(\"buttonWidgetAnnotation\",\"radioButton\");let t=this.annotationStorage,e=this.data,i=e.id,s=t.getValue(i,{value:e.fieldValue===e.buttonValue}).value;if(\"string\"==typeof s&&(s=s!==e.buttonValue,t.setValue(i,{value:s})),s)for(let s of this._getElementsByName(e.fieldName,i))t.setValue(s.id,{value:!1});let r=document.createElement(\"input\");if(iO.add(r),r.setAttribute(\"data-element-id\",i),r.disabled=e.readOnly,this._setRequired(r,this.data.required),r.type=\"radio\",r.name=e.fieldName,s&&r.setAttribute(\"checked\",!0),r.tabIndex=1e3,r.addEventListener(\"change\",e=>{let{name:s,checked:r}=e.target;for(let e of this._getElementsByName(s,i))t.setValue(e.id,{value:!1});t.setValue(i,{value:r})}),r.addEventListener(\"resetform\",t=>{let i=e.defaultFieldValue;t.target.checked=null!=i&&i===e.buttonValue}),this.enableScripting&&this.hasJSActions){let s=e.buttonValue;r.addEventListener(\"updatefromsandbox\",e=>{this._dispatchEventFromSandbox({value:e=>{let r=s===e.detail.value;for(let s of this._getElementsByName(e.target.name)){let e=r&&s.id===i;s.domElement&&(s.domElement.checked=e),t.setValue(s.id,{value:e})}}},e)}),this._setEventListeners(r,null,[[\"change\",\"Validate\"],[\"change\",\"Action\"],[\"focus\",\"Focus\"],[\"blur\",\"Blur\"],[\"mousedown\",\"Mouse Down\"],[\"mouseenter\",\"Mouse Enter\"],[\"mouseleave\",\"Mouse Exit\"],[\"mouseup\",\"Mouse Up\"]],t=>t.target.checked)}return this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class iX extends iU{constructor(t){super(t,{ignoreBorder:t.data.hasAppearance})}render(){let t=super.render();t.classList.add(\"buttonWidgetAnnotation\",\"pushButton\");let e=t.lastChild;return this.enableScripting&&this.hasJSActions&&e&&(this._setDefaultPropertiesFromJS(e),e.addEventListener(\"updatefromsandbox\",t=>{this._dispatchEventFromSandbox({},t)})),t}}class iK extends iz{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add(\"choiceWidgetAnnotation\");let t=this.annotationStorage,e=this.data.id,i=t.getValue(e,{value:this.data.fieldValue}),s=document.createElement(\"select\");iO.add(s),s.setAttribute(\"data-element-id\",e),s.disabled=this.data.readOnly,this._setRequired(s,this.data.required),s.name=this.data.fieldName,s.tabIndex=1e3;let r=this.data.combo&&this.data.options.length>0;for(let t of(!this.data.combo&&(s.size=this.data.options.length,this.data.multiSelect&&(s.multiple=!0)),s.addEventListener(\"resetform\",t=>{let e=this.data.defaultFieldValue;for(let t of s.options)t.selected=t.value===e}),this.data.options)){let e=document.createElement(\"option\");e.textContent=t.displayValue,e.value=t.exportValue,i.value.includes(t.exportValue)&&(e.setAttribute(\"selected\",!0),r=!1),s.append(e)}let n=null;if(r){let t=document.createElement(\"option\");t.value=\" \",t.setAttribute(\"hidden\",!0),t.setAttribute(\"selected\",!0),s.prepend(t),n=()=>{t.remove(),s.removeEventListener(\"input\",n),n=null},s.addEventListener(\"input\",n)}let a=t=>{let e=t?\"value\":\"textContent\",{options:i,multiple:r}=s;return r?Array.prototype.filter.call(i,t=>t.selected).map(t=>t[e]):-1===i.selectedIndex?null:i[i.selectedIndex][e]},o=a(!1),l=t=>{let e=t.target.options;return Array.prototype.map.call(e,t=>({displayValue:t.textContent,exportValue:t.value}))};return this.enableScripting&&this.hasJSActions?(s.addEventListener(\"updatefromsandbox\",i=>{this._dispatchEventFromSandbox({value(i){n?.();let r=i.detail.value,l=new Set(Array.isArray(r)?r:[r]);for(let t of s.options)t.selected=l.has(t.value);t.setValue(e,{value:a(!0)}),o=a(!1)},multipleSelection(t){s.multiple=!0},remove(i){let r=s.options,n=i.detail.remove;r[n].selected=!1,s.remove(n),r.length>0&&-1===Array.prototype.findIndex.call(r,t=>t.selected)&&(r[0].selected=!0),t.setValue(e,{value:a(!0),items:l(i)}),o=a(!1)},clear(i){for(;0!==s.length;)s.remove(0);t.setValue(e,{value:null,items:[]}),o=a(!1)},insert(i){let{index:r,displayValue:n,exportValue:h}=i.detail.insert,d=s.children[r],c=document.createElement(\"option\");c.textContent=n,c.value=h,d?d.before(c):s.append(c),t.setValue(e,{value:a(!0),items:l(i)}),o=a(!1)},items(i){let{items:r}=i.detail;for(;0!==s.length;)s.remove(0);for(let t of r){let{displayValue:e,exportValue:i}=t,r=document.createElement(\"option\");r.textContent=e,r.value=i,s.append(r)}s.options.length>0&&(s.options[0].selected=!0),t.setValue(e,{value:a(!0),items:l(i)}),o=a(!1)},indices(i){let s=new Set(i.detail.indices);for(let t of i.target.options)t.selected=s.has(t.index);t.setValue(e,{value:a(!0)}),o=a(!1)},editable(t){t.target.disabled=!t.detail.editable}},i)}),s.addEventListener(\"input\",i=>{let s=a(!0),r=a(!1);t.setValue(e,{value:s}),i.preventDefault(),this.linkService.eventBus?.dispatch(\"dispatcheventinsandbox\",{source:this,detail:{id:e,name:\"Keystroke\",value:o,change:r,changeEx:s,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(s,null,[[\"focus\",\"Focus\"],[\"blur\",\"Blur\"],[\"mousedown\",\"Mouse Down\"],[\"mouseenter\",\"Mouse Enter\"],[\"mouseleave\",\"Mouse Exit\"],[\"mouseup\",\"Mouse Up\"],[\"input\",\"Action\"],[\"input\",\"Validate\"]],t=>t.target.value)):s.addEventListener(\"input\",function(i){t.setValue(e,{value:a(!0)})}),this.data.combo&&this._setTextStyle(s),this._setBackgroundColor(s),this._setDefaultPropertiesFromJS(s),this.container.append(s),this.container}}class iY extends iH{constructor(t){const{data:e,elements:i}=t;super(t,{isRenderable:iH._hasPopupData(e)}),this.elements=i,this.popup=null}render(){this.container.classList.add(\"popupAnnotation\");let t=this.popup=new iQ({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),e=[];for(let i of this.elements)i.popup=t,i.container.ariaHasPopup=\"dialog\",e.push(i.data.id),i.addHighlightArea();return this.container.setAttribute(\"aria-controls\",e.map(t=>`${tz}${t}`).join(\",\")),this.container}}class iQ{#sy=this.#sA.bind(this);#sv=this.#sw.bind(this);#s_=this.#sx.bind(this);#sE=this.#sS.bind(this);#sC=null;#tp=null;#sM=null;#sk=null;#sT=null;#sP=null;#sR=null;#sI=!1;#sL=null;#C=null;#sD=null;#sF=null;#sN=null;#sc=null;#sO=!1;constructor({container:t,color:e,elements:i,titleObj:s,modificationDate:r,contentsObj:n,richText:a,parent:o,rect:l,parentRect:h,open:d}){for(const d of(this.#tp=t,this.#sN=s,this.#sM=n,this.#sF=a,this.#sP=o,this.#sC=e,this.#sD=l,this.#sR=h,this.#sT=i,this.#sk=t3.toDateObject(r),this.trigger=i.flatMap(t=>t.getElementsToTriggerPopup()),this.trigger))d.addEventListener(\"click\",this.#sE),d.addEventListener(\"mouseenter\",this.#s_),d.addEventListener(\"mouseleave\",this.#sv),d.classList.add(\"popupTriggerArea\");for(const t of i)t.container?.addEventListener(\"keydown\",this.#sy);this.#tp.hidden=!0,d&&this.#sS()}render(){if(this.#sL)return;let t=this.#sL=document.createElement(\"div\");if(t.className=\"popup\",this.#sC){let e=t.style.outlineColor=t$.makeHexColor(...this.#sC);CSS.supports(\"background-color\",\"color-mix(in srgb, red 30%, white)\")?t.style.backgroundColor=`color-mix(in srgb, ${e} 30%, white)`:t.style.backgroundColor=t$.makeHexColor(...this.#sC.map(t=>Math.floor(.7*(255-t)+t)))}let e=document.createElement(\"span\");e.className=\"header\";let i=document.createElement(\"h1\");if(e.append(i),{dir:i.dir,str:i.textContent}=this.#sN,t.append(e),this.#sk){let t=document.createElement(\"span\");t.classList.add(\"popupDate\"),t.setAttribute(\"data-l10n-id\",\"pdfjs-annotation-date-time-string\"),t.setAttribute(\"data-l10n-args\",JSON.stringify({dateObj:this.#sk.valueOf()})),e.append(t)}let s=this.#sB;if(s)iN.render({xfaHtml:s,intent:\"richText\",div:t}),t.lastChild.classList.add(\"richText\",\"popupContent\");else{let e=this._formatContents(this.#sM);t.append(e)}this.#tp.append(t)}get #sB(){let t=this.#sF,e=this.#sM;return!t?.str||e?.str&&e.str!==t.str?null:this.#sF.html||null}get #s$(){return this.#sB?.attributes?.style?.fontSize||0}get #sH(){return this.#sB?.attributes?.style?.color||null}#sU(t){let e=[],i={style:{color:this.#sH,fontSize:this.#s$?`calc(${this.#s$}px * var(--scale-factor))`:\"\"}};for(let s of t.split(\"\\n\"))e.push({name:\"span\",value:s,attributes:i});return{str:t,html:{name:\"div\",attributes:{dir:\"auto\"},children:[{name:\"p\",children:e}]}}}_formatContents({str:t,dir:e}){let i=document.createElement(\"p\");i.classList.add(\"popupContent\"),i.dir=e;let s=t.split(\/(?:\\r\\n?|\\n)\/);for(let t=0,e=s.length;t<e;++t){let r=s[t];i.append(document.createTextNode(r)),t<e-1&&i.append(document.createElement(\"br\"))}return i}#sA(t){t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||(\"Enter\"===t.key||\"Escape\"===t.key&&this.#sI)&&this.#sS()}updateEdited({rect:t,popupContent:e}){this.#sc||={contentsObj:this.#sM,richText:this.#sF},t&&(this.#C=null),e&&(this.#sF=this.#sU(e),this.#sM=null),this.#sL?.remove(),this.#sL=null}resetEdited(){this.#sc&&({contentsObj:this.#sM,richText:this.#sF}=this.#sc,this.#sc=null,this.#sL?.remove(),this.#sL=null,this.#C=null)}#sj(){if(null!==this.#C)return;let{page:{view:t},viewport:{rawDims:{pageWidth:e,pageHeight:i,pageX:s,pageY:r}}}=this.#sP,n=!!this.#sR,a=n?this.#sR:this.#sD;for(let t of this.#sT)if(!a||null!==t$.intersect(t.data.rect,a)){a=t.data.rect,n=!0;break}let o=t$.normalizeRect([a[0],t[3]-a[1]+t[1],a[2],t[3]-a[3]+t[1]]),l=n?a[2]-a[0]+5:0,h=o[0]+l,d=o[1];this.#C=[100*(h-s)\/e,100*(d-r)\/i];let{style:c}=this.#tp;c.left=`${this.#C[0]}%`,c.top=`${this.#C[1]}%`}#sS(){this.#sI=!this.#sI,this.#sI?(this.#sx(),this.#tp.addEventListener(\"click\",this.#sE),this.#tp.addEventListener(\"keydown\",this.#sy)):(this.#sw(),this.#tp.removeEventListener(\"click\",this.#sE),this.#tp.removeEventListener(\"keydown\",this.#sy))}#sx(){this.#sL||this.render(),this.isVisible?this.#sI&&this.#tp.classList.add(\"focused\"):(this.#sj(),this.#tp.hidden=!1,this.#tp.style.zIndex=parseInt(this.#tp.style.zIndex)+1e3)}#sw(){this.#tp.classList.remove(\"focused\"),!this.#sI&&this.isVisible&&(this.#tp.hidden=!0,this.#tp.style.zIndex=parseInt(this.#tp.style.zIndex)-1e3)}forceHide(){this.#sO=this.isVisible,this.#sO&&(this.#tp.hidden=!0)}maybeShow(){this.#sO&&(this.#sL||this.#sx(),this.#sO=!1,this.#tp.hidden=!1)}get isVisible(){return!1===this.#tp.hidden}}class iJ extends iH{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.textContent=t.data.textContent,this.textPosition=t.data.textPosition,this.annotationEditorType=tu.FREETEXT}render(){if(this.container.classList.add(\"freeTextAnnotation\"),this.textContent){let t=document.createElement(\"div\");for(let e of(t.classList.add(\"annotationTextContent\"),t.setAttribute(\"role\",\"comment\"),this.textContent)){let i=document.createElement(\"span\");i.textContent=e,t.append(i)}this.container.append(t)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}class iZ extends iH{#sz=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add(\"lineAnnotation\");let t=this.data,{width:e,height:i}=iB(t.rect),s=this.svgFactory.create(e,i,!0),r=this.#sz=this.svgFactory.createElement(\"svg:line\");return r.setAttribute(\"x1\",t.rect[2]-t.lineCoordinates[0]),r.setAttribute(\"y1\",t.rect[3]-t.lineCoordinates[1]),r.setAttribute(\"x2\",t.rect[2]-t.lineCoordinates[2]),r.setAttribute(\"y2\",t.rect[3]-t.lineCoordinates[3]),r.setAttribute(\"stroke-width\",t.borderStyle.width||1),r.setAttribute(\"stroke\",\"transparent\"),r.setAttribute(\"fill\",\"transparent\"),s.append(r),this.container.append(s),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#sz}addHighlightArea(){this.container.classList.add(\"highlightArea\")}}class i0 extends iH{#sG=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add(\"squareAnnotation\");let t=this.data,{width:e,height:i}=iB(t.rect),s=this.svgFactory.create(e,i,!0),r=t.borderStyle.width,n=this.#sG=this.svgFactory.createElement(\"svg:rect\");return n.setAttribute(\"x\",r\/2),n.setAttribute(\"y\",r\/2),n.setAttribute(\"width\",e-r),n.setAttribute(\"height\",i-r),n.setAttribute(\"stroke-width\",r||1),n.setAttribute(\"stroke\",\"transparent\"),n.setAttribute(\"fill\",\"transparent\"),s.append(n),this.container.append(s),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#sG}addHighlightArea(){this.container.classList.add(\"highlightArea\")}}class i1 extends iH{#sV=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add(\"circleAnnotation\");let t=this.data,{width:e,height:i}=iB(t.rect),s=this.svgFactory.create(e,i,!0),r=t.borderStyle.width,n=this.#sV=this.svgFactory.createElement(\"svg:ellipse\");return n.setAttribute(\"cx\",e\/2),n.setAttribute(\"cy\",i\/2),n.setAttribute(\"rx\",e\/2-r\/2),n.setAttribute(\"ry\",i\/2-r\/2),n.setAttribute(\"stroke-width\",r||1),n.setAttribute(\"stroke\",\"transparent\"),n.setAttribute(\"fill\",\"transparent\"),s.append(n),this.container.append(s),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#sV}addHighlightArea(){this.container.classList.add(\"highlightArea\")}}class i2 extends iH{#sW=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName=\"polylineAnnotation\",this.svgElementName=\"svg:polyline\"}render(){this.container.classList.add(this.containerClassName);let{data:{rect:t,vertices:e,borderStyle:i,popupRef:s}}=this;if(!e)return this.container;let{width:r,height:n}=iB(t),a=this.svgFactory.create(r,n,!0),o=[];for(let i=0,s=e.length;i<s;i+=2){let s=e[i]-t[0],r=t[3]-e[i+1];o.push(`${s},${r}`)}o=o.join(\" \");let l=this.#sW=this.svgFactory.createElement(this.svgElementName);return l.setAttribute(\"points\",o),l.setAttribute(\"stroke-width\",i.width||1),l.setAttribute(\"stroke\",\"transparent\"),l.setAttribute(\"fill\",\"transparent\"),a.append(l),this.container.append(a),!s&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#sW}addHighlightArea(){this.container.classList.add(\"highlightArea\")}}class i3 extends i2{constructor(t){super(t),this.containerClassName=\"polygonAnnotation\",this.svgElementName=\"svg:polygon\"}}class i5 extends iH{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add(\"caretAnnotation\"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}class i6 extends iH{#sq=null;#sX=[];constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName=\"inkAnnotation\",this.svgElementName=\"svg:polyline\",this.annotationEditorType=\"InkHighlight\"===this.data.it?tu.HIGHLIGHT:tu.INK}#sK(t,e){switch(t){case 90:return{transform:`rotate(90) translate(${-e[0]},${e[1]}) scale(1,-1)`,width:e[3]-e[1],height:e[2]-e[0]};case 180:return{transform:`rotate(180) translate(${-e[2]},${e[1]}) scale(1,-1)`,width:e[2]-e[0],height:e[3]-e[1]};case 270:return{transform:`rotate(270) translate(${-e[2]},${e[3]}) scale(1,-1)`,width:e[3]-e[1],height:e[2]-e[0]};default:return{transform:`translate(${-e[0]},${e[3]}) scale(1,-1)`,width:e[2]-e[0],height:e[3]-e[1]}}}render(){this.container.classList.add(this.containerClassName);let{data:{rect:t,rotation:e,inkLists:i,borderStyle:s,popupRef:r}}=this,{transform:n,width:a,height:o}=this.#sK(e,t),l=this.svgFactory.create(a,o,!0),h=this.#sq=this.svgFactory.createElement(\"svg:g\");l.append(h),h.setAttribute(\"stroke-width\",s.width||1),h.setAttribute(\"stroke-linecap\",\"round\"),h.setAttribute(\"stroke-linejoin\",\"round\"),h.setAttribute(\"stroke-miterlimit\",10),h.setAttribute(\"stroke\",\"transparent\"),h.setAttribute(\"fill\",\"transparent\"),h.setAttribute(\"transform\",n);for(let t=0,e=i.length;t<e;t++){let e=this.svgFactory.createElement(this.svgElementName);this.#sX.push(e),e.setAttribute(\"points\",i[t].join(\",\")),h.append(e)}return!r&&this.hasPopupData&&this._createPopup(),this.container.append(l),this._editOnDoubleClick(),this.container}updateEdited(t){super.updateEdited(t);let{thickness:e,points:i,rect:s}=t,r=this.#sq;if(e>=0&&r.setAttribute(\"stroke-width\",e||1),i)for(let t=0,e=this.#sX.length;t<e;t++)this.#sX[t].setAttribute(\"points\",i[t].join(\",\"));if(s){let{transform:t,width:e,height:i}=this.#sK(this.data.rotation,s);r.parentElement.setAttribute(\"viewBox\",`0 0 ${e} ${i}`),r.setAttribute(\"transform\",t)}}getElementsToTriggerPopup(){return this.#sX}addHighlightArea(){this.container.classList.add(\"highlightArea\")}}class i8 extends iH{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}),this.annotationEditorType=tu.HIGHLIGHT}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add(\"highlightAnnotation\"),this._editOnDoubleClick(),this.container}}class i4 extends iH{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add(\"underlineAnnotation\"),this.container}}class i7 extends iH{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add(\"squigglyAnnotation\"),this.container}}class i9 extends iH{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add(\"strikeoutAnnotation\"),this.container}}class st extends iH{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.annotationEditorType=tu.STAMP}render(){return this.container.classList.add(\"stampAnnotation\"),this.container.setAttribute(\"role\",\"img\"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}class se extends iH{#sY=null;constructor(t){super(t,{isRenderable:!0});const{file:e}=this.data;this.filename=e.filename,this.content=e.content,this.linkService.eventBus?.dispatch(\"fileattachmentannotation\",{source:this,...e})}render(){let t;this.container.classList.add(\"fileAttachmentAnnotation\");let{container:e,data:i}=this;i.hasAppearance||0===i.fillAlpha?t=document.createElement(\"div\"):((t=document.createElement(\"img\")).src=`${this.imageResourcesPath}annotation-${\/paperclip\/i.test(i.name)?\"paperclip\":\"pushpin\"}.svg`,i.fillAlpha&&i.fillAlpha<1&&(t.style=`filter: opacity(${Math.round(100*i.fillAlpha)}%);`)),t.addEventListener(\"dblclick\",this.#sQ.bind(this)),this.#sY=t;let{isMac:s}=tO.platform;return e.addEventListener(\"keydown\",t=>{\"Enter\"===t.key&&(s?t.metaKey:t.ctrlKey)&&this.#sQ()}),!i.popupRef&&this.hasPopupData?this._createPopup():t.classList.add(\"popupTriggerArea\"),e.append(t),e}getElementsToTriggerPopup(){return this.#sY}addHighlightArea(){this.container.classList.add(\"highlightArea\")}#sQ(){this.downloadManager?.openOrDownloadData(this.content,this.filename)}}class si{#sJ=null;#sZ=null;#s0=new Map;#s1=null;constructor({div:t,accessibilityManager:e,annotationCanvasMap:i,annotationEditorUIManager:s,page:r,viewport:n,structTreeLayer:a}){this.div=t,this.#sJ=e,this.#sZ=i,this.#s1=a||null,this.page=r,this.viewport=n,this.zIndex=0,this._annotationEditorUIManager=s}hasEditableAnnotations(){return this.#s0.size>0}async #s2(t,e){let i=t.firstChild||t,s=i.id=`${tz}${e}`,r=await this.#s1?.getAriaAttributes(s);if(r)for(let[t,e]of r)i.setAttribute(t,e);this.div.append(t),this.#sJ?.moveElementInDOM(this.div,t,i,!1)}async render(t){let{annotations:e}=t,i=this.div;t7(i,this.viewport);let s=new Map,r={data:null,layer:i,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||\"\",renderForms:!1!==t.renderForms,svgFactory:new iF,annotationStorage:t.annotationStorage||new eg,enableScripting:!0===t.enableScripting,hasJSActions:t.hasJSActions,fieldObjects:t.fieldObjects,parent:this,elements:null};for(let t of e){if(t.noHTML)continue;let e=16===t.annotationType;if(e){let e=s.get(t.id);if(!e)continue;r.elements=e}else{let{width:e,height:i}=iB(t.rect);if(e<=0||i<=0)continue}r.data=t;let i=i$.create(r);if(!i.isRenderable)continue;if(!e&&t.popupRef){let e=s.get(t.popupRef);e?e.push(i):s.set(t.popupRef,[i])}let n=i.render();t.hidden&&(n.style.visibility=\"hidden\"),await this.#s2(n,t.id),i._isEditable&&(this.#s0.set(i.data.id,i),this._annotationEditorUIManager?.renderAnnotationElement(i))}this.#s3()}update({viewport:t}){let e=this.div;this.viewport=t,t7(e,{rotation:t.rotation}),this.#s3(),e.hidden=!1}#s3(){if(!this.#sZ)return;let t=this.div;for(let[e,i]of this.#sZ){let s=t.querySelector(`[data-annotation-id=\"${e}\"]`);if(!s)continue;i.className=\"annotationContent\";let{firstChild:r}=s;r?\"CANVAS\"===r.nodeName?r.replaceWith(i):r.classList.contains(\"annotationContent\")?r.after(i):r.before(i):s.append(i)}this.#sZ.clear()}getEditableAnnotations(){return Array.from(this.#s0.values())}getEditableAnnotation(t){return this.#s0.get(t)}}let ss=\/\\r\\n?|\\n\/g;class sr extends ec{#sC;#s5=\"\";#s6=`${this.id}-editor`;#s8=null;#s$;static _freeTextDefaultContent=\"\";static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static get _keyboardManager(){let t=sr.prototype,e=t=>t.isEmpty(),i=el.TRANSLATE_SMALL,s=el.TRANSLATE_BIG;return tS(this,\"_keyboardManager\",new ea([[[\"ctrl+s\",\"mac+meta+s\",\"ctrl+p\",\"mac+meta+p\"],t.commitOrRemove,{bubbles:!0}],[[\"ctrl+Enter\",\"mac+meta+Enter\",\"Escape\",\"mac+Escape\"],t.commitOrRemove],[[\"ArrowLeft\",\"mac+ArrowLeft\"],t._translateEmpty,{args:[-i,0],checker:e}],[[\"ctrl+ArrowLeft\",\"mac+shift+ArrowLeft\"],t._translateEmpty,{args:[-s,0],checker:e}],[[\"ArrowRight\",\"mac+ArrowRight\"],t._translateEmpty,{args:[i,0],checker:e}],[[\"ctrl+ArrowRight\",\"mac+shift+ArrowRight\"],t._translateEmpty,{args:[s,0],checker:e}],[[\"ArrowUp\",\"mac+ArrowUp\"],t._translateEmpty,{args:[0,-i],checker:e}],[[\"ctrl+ArrowUp\",\"mac+shift+ArrowUp\"],t._translateEmpty,{args:[0,-s],checker:e}],[[\"ArrowDown\",\"mac+ArrowDown\"],t._translateEmpty,{args:[0,i],checker:e}],[[\"ctrl+ArrowDown\",\"mac+shift+ArrowDown\"],t._translateEmpty,{args:[0,s],checker:e}]]))}static _type=\"freetext\";static _editorType=tu.FREETEXT;constructor(t){super({...t,name:\"freeTextEditor\"}),this.#sC=t.color||sr._defaultColor||ec._defaultLineColor,this.#s$=t.fontSize||sr._defaultFontSize}static initialize(t,e){ec.initialize(t,e);let i=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(i.getPropertyValue(\"--freetext-padding\"))}static updateDefaultParams(t,e){switch(t){case tp.FREETEXT_SIZE:sr._defaultFontSize=e;break;case tp.FREETEXT_COLOR:sr._defaultColor=e}}updateParams(t,e){switch(t){case tp.FREETEXT_SIZE:this.#s4(e);break;case tp.FREETEXT_COLOR:this.#s7(e)}}static get defaultPropertiesToUpdate(){return[[tp.FREETEXT_SIZE,sr._defaultFontSize],[tp.FREETEXT_COLOR,sr._defaultColor||ec._defaultLineColor]]}get propertiesToUpdate(){return[[tp.FREETEXT_SIZE,this.#s$],[tp.FREETEXT_COLOR,this.#sC]]}#s4(t){let e=t=>{this.editorDiv.style.fontSize=`calc(${t}px * var(--scale-factor))`,this.translate(0,-(t-this.#s$)*this.parentScale),this.#s$=t,this.#s9()},i=this.#s$;this.addCommands({cmd:e.bind(this,t),undo:e.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:tp.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}#s7(t){let e=t=>{this.#sC=this.editorDiv.style.color=t},i=this.#sC;this.addCommands({cmd:e.bind(this,t),undo:e.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:tp.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}_translateEmpty(t,e){this._uiManager.translateSelectedEditors(t,e,!0)}getInitialTranslation(){let t=this.parentScale;return[-sr._internalPadding*t,-(sr._internalPadding+this.#s$)*t]}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(this.isInEditMode())return;this.parent.setEditingState(!1),this.parent.updateToolbar(tu.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove(\"enabled\"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute(\"aria-activedescendant\"),this.#s8=new AbortController;let t=this._uiManager.combinedSignal(this.#s8);this.editorDiv.addEventListener(\"keydown\",this.editorDivKeydown.bind(this),{signal:t}),this.editorDiv.addEventListener(\"focus\",this.editorDivFocus.bind(this),{signal:t}),this.editorDiv.addEventListener(\"blur\",this.editorDivBlur.bind(this),{signal:t}),this.editorDiv.addEventListener(\"input\",this.editorDivInput.bind(this),{signal:t}),this.editorDiv.addEventListener(\"paste\",this.editorDivPaste.bind(this),{signal:t})}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add(\"enabled\"),this.editorDiv.contentEditable=!1,this.div.setAttribute(\"aria-activedescendant\",this.#s6),this._isDraggable=!0,this.#s8?.abort(),this.#s8=null,this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add(\"freetextEditing\"))}focusin(t){this._focusEventsAllowed&&(super.focusin(t),t.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(t){this.width||(this.enableEditMode(),t&&this.editorDiv.focus(),this._initialOptions?.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||\"\"===this.editorDiv.innerText.trim()}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add(\"freetextEditing\")),super.remove()}#rt(){let t=[];this.editorDiv.normalize();let e=null;for(let i of this.editorDiv.childNodes)(e?.nodeType!==Node.TEXT_NODE||\"BR\"!==i.nodeName)&&(t.push(sr.#re(i)),e=i);return t.join(\"\\n\")}#s9(){let t,[e,i]=this.parentDimensions;if(this.isAttachedToDOM)t=this.div.getBoundingClientRect();else{let{currentLayer:e,div:i}=this,s=i.style.display,r=i.classList.contains(\"hidden\");i.classList.remove(\"hidden\"),i.style.display=\"hidden\",e.div.append(this.div),t=i.getBoundingClientRect(),i.remove(),i.style.display=s,i.classList.toggle(\"hidden\",r)}this.rotation%180==this.parentRotation%180?(this.width=t.width\/e,this.height=t.height\/i):(this.width=t.height\/e,this.height=t.width\/i),this.fixAndSetPosition()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();let t=this.#s5,e=this.#s5=this.#rt().trimEnd();if(t===e)return;let i=t=>{this.#s5=t,t?(this.#ri(),this._uiManager.rebuild(this),this.#s9()):this.remove()};this.addCommands({cmd:()=>{i(e)},undo:()=>{i(t)},mustExec:!1}),this.#s9()}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(t){this.enterInEditMode()}keydown(t){t.target===this.div&&\"Enter\"===t.key&&(this.enterInEditMode(),t.preventDefault())}editorDivKeydown(t){sr._keyboardManager.exec(this,t)}editorDivFocus(t){this.isEditing=!0}editorDivBlur(t){this.isEditing=!1}editorDivInput(t){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(){let t,e;if(this.div)return this.div;this.width&&(t=this.x,e=this.y),super.render(),this.editorDiv=document.createElement(\"div\"),this.editorDiv.className=\"internal\",this.editorDiv.setAttribute(\"id\",this.#s6),this.editorDiv.setAttribute(\"data-l10n-id\",\"pdfjs-free-text2\"),this.editorDiv.setAttribute(\"data-l10n-attrs\",\"default-content\"),this.enableEditing(),this.editorDiv.contentEditable=!0;let{style:i}=this.editorDiv;if(i.fontSize=`calc(${this.#s$}px * var(--scale-factor))`,i.color=this.#sC,this.div.append(this.editorDiv),this.overlayDiv=document.createElement(\"div\"),this.overlayDiv.classList.add(\"overlay\",\"enabled\"),this.div.append(this.overlayDiv),ei(this,this.div,[\"dblclick\",\"keydown\"]),this.width){let[i,s]=this.parentDimensions;if(this.annotationElementId){let r,n,{position:a}=this._initialData,[o,l]=this.getInitialTranslation();[o,l]=this.pageTranslationToScreen(o,l);let[h,d]=this.pageDimensions,[c,u]=this.pageTranslation;switch(this.rotation){case 0:r=t+(a[0]-c)\/h,n=e+this.height-(a[1]-u)\/d;break;case 90:r=t+(a[0]-c)\/h,n=e-(a[1]-u)\/d,[o,l]=[l,-o];break;case 180:r=t-this.width+(a[0]-c)\/h,n=e-(a[1]-u)\/d,[o,l]=[-o,-l];break;case 270:r=t+(a[0]-c-this.height*d)\/h,n=e+(a[1]-u-this.width*h)\/d,[o,l]=[-l,o]}this.setAt(r*i,n*s,o,l)}else this.setAt(t*i,e*s,this.width*i,this.height*s);this.#ri(),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}static #re(t){return(t.nodeType===Node.TEXT_NODE?t.nodeValue:t.innerText).replaceAll(ss,\"\")}editorDivPaste(t){let e=t.clipboardData||window.clipboardData,{types:i}=e;if(1===i.length&&\"text\/plain\"===i[0])return;t.preventDefault();let s=sr.#rs(e.getData(\"text\")||\"\").replaceAll(ss,\"\\n\");if(!s)return;let r=window.getSelection();if(!r.rangeCount)return;this.editorDiv.normalize(),r.deleteFromDocument();let n=r.getRangeAt(0);if(!s.includes(\"\\n\")){n.insertNode(document.createTextNode(s)),this.editorDiv.normalize(),r.collapseToStart();return}let{startContainer:a,startOffset:o}=n,l=[],h=[];if(a.nodeType===Node.TEXT_NODE){let t=a.parentElement;if(h.push(a.nodeValue.slice(o).replaceAll(ss,\"\")),t!==this.editorDiv){let e=l;for(let i of this.editorDiv.childNodes)i!==t?e.push(sr.#re(i)):e=h}l.push(a.nodeValue.slice(0,o).replaceAll(ss,\"\"))}else if(a===this.editorDiv){let t=l,e=0;for(let i of this.editorDiv.childNodes)e++===o&&(t=h),t.push(sr.#re(i))}this.#s5=`${l.join(\"\\n\")}${s}${h.join(\"\\n\")}`,this.#ri();let d=new Range,c=l.reduce((t,e)=>t+e.length,0);for(let{firstChild:t}of this.editorDiv.childNodes)if(t.nodeType===Node.TEXT_NODE){let e=t.nodeValue.length;if(c<=e){d.setStart(t,c),d.setEnd(t,c);break}c-=e}r.removeAllRanges(),r.addRange(d)}#ri(){if(this.editorDiv.replaceChildren(),this.#s5)for(let t of this.#s5.split(\"\\n\")){let e=document.createElement(\"div\");e.append(t?document.createTextNode(t):document.createElement(\"br\")),this.editorDiv.append(e)}}#rr(){return this.#s5.replaceAll(\"\u00a0\",\" \")}static #rs(t){return t.replaceAll(\" \",\"\u00a0\")}get contentDiv(){return this.editorDiv}static async deserialize(t,e,i){let s=null;if(t instanceof iJ){let{data:{defaultAppearanceData:{fontSize:e,fontColor:i},rect:r,rotation:n,id:a,popupRef:o},textContent:l,textPosition:h,parent:{page:{pageNumber:d}}}=t;if(!l||0===l.length)return null;s=t={annotationType:tu.FREETEXT,color:Array.from(i),fontSize:e,value:l.join(\"\\n\"),position:h,pageIndex:d-1,rect:r.slice(0),rotation:n,id:a,deleted:!1,popupRef:o}}let r=await super.deserialize(t,e,i);return r.#s$=t.fontSize,r.#sC=t$.makeHexColor(...t.color),r.#s5=sr.#rs(t.value),r.annotationElementId=t.id||null,r._initialData=s,r}serialize(t=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();let e=sr._internalPadding*this.parentScale,i=this.getRect(e,e),s=ec._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.#sC),r={annotationType:tu.FREETEXT,color:s,fontSize:this.#s$,value:this.#rr(),pageIndex:this.pageIndex,rect:i,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return t?r:this.annotationElementId&&!this.#rn(r)?null:(r.id=this.annotationElementId,r)}#rn(t){let{value:e,fontSize:i,color:s,pageIndex:r}=this._initialData;return this._hasBeenMoved||t.value!==e||t.fontSize!==i||t.color.some((t,e)=>t!==s[e])||t.pageIndex!==r}renderAnnotationElement(t){let e=super.renderAnnotationElement(t);if(this.deleted)return e;let{style:i}=e;for(let t of(i.fontSize=`calc(${this.#s$}px * var(--scale-factor))`,i.color=this.#sC,e.replaceChildren(),this.#s5.split(\"\\n\"))){let i=document.createElement(\"div\");i.append(t?document.createTextNode(t):document.createElement(\"br\")),e.append(i)}let s=sr._internalPadding*this.parentScale;return t.updateEdited({rect:this.getRect(s,s),popupContent:this.#s5}),e}resetAnnotationElement(t){super.resetAnnotationElement(t),t.resetEdited()}}class sn{static PRECISION=1e-4;toSVGPath(){t_(\"Abstract method `toSVGPath` must be implemented.\")}get box(){t_(\"Abstract getter `box` must be implemented.\")}serialize(t,e){t_(\"Abstract method `serialize` must be implemented.\")}static _rescale(t,e,i,s,r,n){n||=new Float32Array(t.length);for(let a=0,o=t.length;a<o;a+=2)n[a]=e+t[a]*s,n[a+1]=i+t[a+1]*r;return n}static _rescaleAndSwap(t,e,i,s,r,n){n||=new Float32Array(t.length);for(let a=0,o=t.length;a<o;a+=2)n[a]=e+t[a+1]*s,n[a+1]=i+t[a]*r;return n}static _translate(t,e,i,s){s||=new Float32Array(t.length);for(let r=0,n=t.length;r<n;r+=2)s[r]=e+t[r],s[r+1]=i+t[r+1];return s}static svgRound(t){return Math.round(1e4*t)}static _normalizePoint(t,e,i,s,r){switch(r){case 90:return[1-e\/i,t\/s];case 180:return[1-t\/i,1-e\/s];case 270:return[e\/i,1-t\/s];default:return[t\/i,e\/s]}}static _normalizePagePoint(t,e,i){switch(i){case 90:return[1-e,t];case 180:return[1-t,1-e];case 270:return[e,1-t];default:return[t,e]}}static createBezierPoints(t,e,i,s,r,n){return[(t+5*i)\/6,(e+5*s)\/6,(5*i+r)\/6,(5*s+n)\/6,(i+r)\/2,(s+n)\/2]}}class sa{#ra;#ro=[];#rl;#rh;#rd=[];#rc=new Float32Array(18);#ru;#rp;#rf;#rg;#rm;#rb;#ry=[];static #rA=8;static #rv=2;static #rw=sa.#rA+sa.#rv;constructor({x:t,y:e},i,s,r,n,a=0){this.#ra=i,this.#rb=r*s,this.#rh=n,this.#rc.set([NaN,NaN,NaN,NaN,t,e],6),this.#rl=a,this.#rg=sa.#rA*s,this.#rf=sa.#rw*s,this.#rm=s,this.#ry.push(t,e)}isEmpty(){return isNaN(this.#rc[8])}#r_(){let t=this.#rc.subarray(4,6),e=this.#rc.subarray(16,18),[i,s,r,n]=this.#ra;return[(this.#ru+(t[0]-e[0])\/2-i)\/r,(this.#rp+(t[1]-e[1])\/2-s)\/n,(this.#ru+(e[0]-t[0])\/2-i)\/r,(this.#rp+(e[1]-t[1])\/2-s)\/n]}add({x:t,y:e}){this.#ru=t,this.#rp=e;let[i,s,r,n]=this.#ra,[a,o,l,h]=this.#rc.subarray(8,12),d=t-l,c=e-h,u=Math.hypot(d,c);if(u<this.#rf)return!1;let p=u-this.#rg,f=p\/u,g=f*d,m=f*c,b=a,y=o;a=l,o=h,l+=g,h+=m,this.#ry?.push(t,e);let A=-m\/p*this.#rb,v=g\/p*this.#rb;return(this.#rc.set(this.#rc.subarray(2,8),0),this.#rc.set([l+A,h+v],4),this.#rc.set(this.#rc.subarray(14,18),12),this.#rc.set([l-A,h-v],16),isNaN(this.#rc[6]))?(0===this.#rd.length&&(this.#rc.set([a+A,o+v],2),this.#rd.push(NaN,NaN,NaN,NaN,(a+A-i)\/r,(o+v-s)\/n),this.#rc.set([a-A,o-v],14),this.#ro.push(NaN,NaN,NaN,NaN,(a-A-i)\/r,(o-v-s)\/n)),this.#rc.set([b,y,a,o,l,h],6),!this.isEmpty()):((this.#rc.set([b,y,a,o,l,h],6),Math.abs(Math.atan2(y-o,b-a)-Math.atan2(m,g))<Math.PI\/2)?([a,o,l,h]=this.#rc.subarray(2,6),this.#rd.push(NaN,NaN,NaN,NaN,((a+l)\/2-i)\/r,((o+h)\/2-s)\/n),[a,o,b,y]=this.#rc.subarray(14,18),this.#ro.push(NaN,NaN,NaN,NaN,((b+a)\/2-i)\/r,((y+o)\/2-s)\/n)):([b,y,a,o,l,h]=this.#rc.subarray(0,6),this.#rd.push(((b+5*a)\/6-i)\/r,((y+5*o)\/6-s)\/n,((5*a+l)\/6-i)\/r,((5*o+h)\/6-s)\/n,((a+l)\/2-i)\/r,((o+h)\/2-s)\/n),[l,h,a,o,b,y]=this.#rc.subarray(12,18),this.#ro.push(((b+5*a)\/6-i)\/r,((y+5*o)\/6-s)\/n,((5*a+l)\/6-i)\/r,((5*o+h)\/6-s)\/n,((a+l)\/2-i)\/r,((o+h)\/2-s)\/n)),!0)}toSVGPath(){if(this.isEmpty())return\"\";let t=this.#rd,e=this.#ro;if(isNaN(this.#rc[6])&&!this.isEmpty())return this.#rx();let i=[];i.push(`M${t[4]} ${t[5]}`);for(let e=6;e<t.length;e+=6)isNaN(t[e])?i.push(`L${t[e+4]} ${t[e+5]}`):i.push(`C${t[e]} ${t[e+1]} ${t[e+2]} ${t[e+3]} ${t[e+4]} ${t[e+5]}`);this.#rE(i);for(let t=e.length-6;t>=6;t-=6)isNaN(e[t])?i.push(`L${e[t+4]} ${e[t+5]}`):i.push(`C${e[t]} ${e[t+1]} ${e[t+2]} ${e[t+3]} ${e[t+4]} ${e[t+5]}`);return this.#rS(i),i.join(\" \")}#rx(){let[t,e,i,s]=this.#ra,[r,n,a,o]=this.#r_();return`M${(this.#rc[2]-t)\/i} ${(this.#rc[3]-e)\/s} L${(this.#rc[4]-t)\/i} ${(this.#rc[5]-e)\/s} L${r} ${n} L${a} ${o} L${(this.#rc[16]-t)\/i} ${(this.#rc[17]-e)\/s} L${(this.#rc[14]-t)\/i} ${(this.#rc[15]-e)\/s} Z`}#rS(t){let e=this.#ro;t.push(`L${e[4]} ${e[5]} Z`)}#rE(t){let[e,i,s,r]=this.#ra,n=this.#rc.subarray(4,6),a=this.#rc.subarray(16,18),[o,l,h,d]=this.#r_();t.push(`L${(n[0]-e)\/s} ${(n[1]-i)\/r} L${o} ${l} L${h} ${d} L${(a[0]-e)\/s} ${(a[1]-i)\/r}`)}newFreeDrawOutline(t,e,i,s,r,n){return new so(t,e,i,s,r,n)}getOutlines(){let t=this.#rd,e=this.#ro,i=this.#rc,[s,r,n,a]=this.#ra,o=new Float32Array((this.#ry?.length??0)+2);for(let t=0,e=o.length-2;t<e;t+=2)o[t]=(this.#ry[t]-s)\/n,o[t+1]=(this.#ry[t+1]-r)\/a;if(o[o.length-2]=(this.#ru-s)\/n,o[o.length-1]=(this.#rp-r)\/a,isNaN(i[6])&&!this.isEmpty())return this.#rC(o);let l=new Float32Array(this.#rd.length+24+this.#ro.length),h=t.length;for(let e=0;e<h;e+=2)isNaN(t[e])?l[e]=l[e+1]=NaN:(l[e]=t[e],l[e+1]=t[e+1]);h=this.#rM(l,h);for(let t=e.length-6;t>=6;t-=6)for(let i=0;i<6;i+=2)isNaN(e[t+i])?l[h]=l[h+1]=NaN:(l[h]=e[t+i],l[h+1]=e[t+i+1]),h+=2;return this.#rk(l,h),this.newFreeDrawOutline(l,o,this.#ra,this.#rm,this.#rl,this.#rh)}#rC(t){let e=this.#rc,[i,s,r,n]=this.#ra,[a,o,l,h]=this.#r_(),d=new Float32Array(36);return d.set([NaN,NaN,NaN,NaN,(e[2]-i)\/r,(e[3]-s)\/n,NaN,NaN,NaN,NaN,(e[4]-i)\/r,(e[5]-s)\/n,NaN,NaN,NaN,NaN,a,o,NaN,NaN,NaN,NaN,l,h,NaN,NaN,NaN,NaN,(e[16]-i)\/r,(e[17]-s)\/n,NaN,NaN,NaN,NaN,(e[14]-i)\/r,(e[15]-s)\/n],0),this.newFreeDrawOutline(d,t,this.#ra,this.#rm,this.#rl,this.#rh)}#rk(t,e){let i=this.#ro;return t.set([NaN,NaN,NaN,NaN,i[4],i[5]],e),e+6}#rM(t,e){let i=this.#rc.subarray(4,6),s=this.#rc.subarray(16,18),[r,n,a,o]=this.#ra,[l,h,d,c]=this.#r_();return t.set([NaN,NaN,NaN,NaN,(i[0]-r)\/a,(i[1]-n)\/o,NaN,NaN,NaN,NaN,l,h,NaN,NaN,NaN,NaN,d,c,NaN,NaN,NaN,NaN,(s[0]-r)\/a,(s[1]-n)\/o],e),e+24}}class so extends sn{#ra;#rT=new Float32Array(4);#rl;#rh;#ry;#rm;#rP;constructor(t,e,i,s,r,n){super(),this.#rP=t,this.#ry=e,this.#ra=i,this.#rm=s,this.#rl=r,this.#rh=n,this.lastPoint=[NaN,NaN],this.#rR(n);const[a,o,l,h]=this.#rT;for(let e=0,i=t.length;e<i;e+=2)t[e]=(t[e]-a)\/l,t[e+1]=(t[e+1]-o)\/h;for(let t=0,i=e.length;t<i;t+=2)e[t]=(e[t]-a)\/l,e[t+1]=(e[t+1]-o)\/h}toSVGPath(){let t=[`M${this.#rP[4]} ${this.#rP[5]}`];for(let e=6,i=this.#rP.length;e<i;e+=6)isNaN(this.#rP[e])?t.push(`L${this.#rP[e+4]} ${this.#rP[e+5]}`):t.push(`C${this.#rP[e]} ${this.#rP[e+1]} ${this.#rP[e+2]} ${this.#rP[e+3]} ${this.#rP[e+4]} ${this.#rP[e+5]}`);return t.push(\"Z\"),t.join(\" \")}serialize([t,e,i,s],r){let n,a,o=i-t,l=s-e;switch(r){case 0:n=sn._rescale(this.#rP,t,s,o,-l),a=sn._rescale(this.#ry,t,s,o,-l);break;case 90:n=sn._rescaleAndSwap(this.#rP,t,e,o,l),a=sn._rescaleAndSwap(this.#ry,t,e,o,l);break;case 180:n=sn._rescale(this.#rP,i,e,-o,l),a=sn._rescale(this.#ry,i,e,-o,l);break;case 270:n=sn._rescaleAndSwap(this.#rP,i,s,-o,-l),a=sn._rescaleAndSwap(this.#ry,i,s,-o,-l)}return{outline:Array.from(n),points:[Array.from(a)]}}#rR(t){let e=this.#rP,i=e[4],s=e[5],r=i,n=s,a=i,o=s,l=i,h=s,d=t?Math.max:Math.min;for(let t=6,c=e.length;t<c;t+=6){if(isNaN(e[t]))r=Math.min(r,e[t+4]),n=Math.min(n,e[t+5]),a=Math.max(a,e[t+4]),o=Math.max(o,e[t+5]),h<e[t+5]?(l=e[t+4],h=e[t+5]):h===e[t+5]&&(l=d(l,e[t+4]));else{let c=t$.bezierBoundingBox(i,s,...e.slice(t,t+6));r=Math.min(r,c[0]),n=Math.min(n,c[1]),a=Math.max(a,c[2]),o=Math.max(o,c[3]),h<c[3]?(l=c[2],h=c[3]):h===c[3]&&(l=d(l,c[2]))}i=e[t+4],s=e[t+5]}let c=this.#rT;c[0]=r-this.#rl,c[1]=n-this.#rl,c[2]=a-r+2*this.#rl,c[3]=o-n+2*this.#rl,this.lastPoint=[l,h]}get box(){return this.#rT}newOutliner(t,e,i,s,r,n=0){return new sa(t,e,i,s,r,n)}getNewOutline(t,e){let[i,s,r,n]=this.#rT,[a,o,l,h]=this.#ra,d=r*l,c=n*h,u=i*l+a,p=s*h+o,f=this.newOutliner({x:this.#ry[0]*d+u,y:this.#ry[1]*c+p},this.#ra,this.#rm,t,this.#rh,e??this.#rl);for(let t=2;t<this.#ry.length;t+=2)f.add({x:this.#ry[t]*d+u,y:this.#ry[t+1]*c+p});return f.getOutlines()}}class sl{#ra;#rI;#rL=[];#rD=[];constructor(t,e=0,i=0,s=!0){let r=1\/0,n=-1\/0,a=1\/0,o=-1\/0;for(const{x:i,y:s,width:l,height:h}of t){const t=1e-4*Math.floor((i-e)\/1e-4),d=1e-4*Math.ceil((i+l+e)\/1e-4),c=1e-4*Math.floor((s-e)\/1e-4),u=1e-4*Math.ceil((s+h+e)\/1e-4),p=[t,c,u,!0],f=[d,c,u,!1];this.#rL.push(p,f),r=Math.min(r,t),n=Math.max(n,d),a=Math.min(a,c),o=Math.max(o,u)}const l=n-r+2*i,h=o-a+2*i,d=r-i,c=a-i,u=this.#rL.at(s?-1:-2),p=[u[0],u[2]];for(const t of this.#rL){const[e,i,s]=t;t[0]=(e-d)\/l,t[1]=(i-c)\/h,t[2]=(s-c)\/h}this.#ra=new Float32Array([d,c,l,h]),this.#rI=p}getOutlines(){this.#rL.sort((t,e)=>t[0]-e[0]||t[1]-e[1]||t[2]-e[2]);let t=[];for(let e of this.#rL)e[3]?(t.push(...this.#rF(e)),this.#rN(e)):(this.#rO(e),t.push(...this.#rF(e)));return this.#rB(t)}#rB(t){let e,i=[],s=new Set;for(let e of t){let[t,s,r]=e;i.push([t,s,e],[t,r,e])}i.sort((t,e)=>t[1]-e[1]||t[0]-e[0]);for(let t=0,e=i.length;t<e;t+=2){let e=i[t][2],r=i[t+1][2];e.push(r),r.push(e),s.add(e),s.add(r)}let r=[];for(;s.size>0;){let t=s.values().next().value,[i,n,a,o,l]=t;s.delete(t);let h=i,d=n;for(e=[i,a],r.push(e);;){let t;if(s.has(o))t=o;else{if(!s.has(l))break;t=l}s.delete(t),[i,n,a,o,l]=t,h!==i&&(e.push(h,d,i,d===n?n:a),h=i),d=d===n?a:n}e.push(h,d)}return new sh(r,this.#ra,this.#rI)}#r$(t){let e=this.#rD,i=0,s=e.length-1;for(;i<=s;){let r=i+s>>1,n=e[r][0];if(n===t)return r;n<t?i=r+1:s=r-1}return s+1}#rN([,t,e]){let i=this.#r$(t);this.#rD.splice(i,0,[t,e])}#rO([,t,e]){let i=this.#r$(t);for(let s=i;s<this.#rD.length;s++){let[i,r]=this.#rD[s];if(i!==t)break;if(i===t&&r===e)return void this.#rD.splice(s,1)}for(let s=i-1;s>=0;s--){let[i,r]=this.#rD[s];if(i!==t)break;if(i===t&&r===e)return void this.#rD.splice(s,1)}}#rF(t){let[e,i,s]=t,r=[[e,i,s]],n=this.#r$(s);for(let t=0;t<n;t++){let[i,s]=this.#rD[t];for(let t=0,n=r.length;t<n;t++){let[,a,o]=r[t];if(!(s<=a||o<=i))if(a>=i)if(o>s)r[t][1]=s;else{if(1===n)return[];r.splice(t,1),t--,n--}else r[t][2]=i,o>s&&r.push([e,s,o])}}return r}}class sh extends sn{#ra;#rH;constructor(t,e,i){super(),this.#rH=t,this.#ra=e,this.lastPoint=i}toSVGPath(){let t=[];for(let e of this.#rH){let[i,s]=e;t.push(`M${i} ${s}`);for(let r=2;r<e.length;r+=2){let n=e[r],a=e[r+1];n===i?(t.push(`V${a}`),s=a):a===s&&(t.push(`H${n}`),i=n)}t.push(\"Z\")}return t.join(\" \")}serialize([t,e,i,s],r){let n=[],a=i-t,o=s-e;for(let e of this.#rH){let i=Array(e.length);for(let r=0;r<e.length;r+=2)i[r]=t+e[r]*a,i[r+1]=s-e[r+1]*o;n.push(i)}return n}get box(){return this.#ra}get classNamesForOutlining(){return[\"highlightOutline\"]}}class sd extends sa{newFreeDrawOutline(t,e,i,s,r,n){return new sc(t,e,i,s,r,n)}}class sc extends so{newOutliner(t,e,i,s,r,n=0){return new sd(t,e,i,s,r,n)}}class su{#rU=null;#rj=null;#rz;#rG=null;#rV=!1;#rW=!1;#n=null;#rq;#rX=null;#g=null;#rK;static #rY=null;static get _keyboardManager(){return tS(this,\"_keyboardManager\",new ea([[[\"Escape\",\"mac+Escape\"],su.prototype._hideDropdownFromKeyboard],[[\" \",\"mac+ \"],su.prototype._colorSelectFromKeyboard],[[\"ArrowDown\",\"ArrowRight\",\"mac+ArrowDown\",\"mac+ArrowRight\"],su.prototype._moveToNext],[[\"ArrowUp\",\"ArrowLeft\",\"mac+ArrowUp\",\"mac+ArrowLeft\"],su.prototype._moveToPrevious],[[\"Home\",\"mac+Home\"],su.prototype._moveToBeginning],[[\"End\",\"mac+End\"],su.prototype._moveToEnd]]))}constructor({editor:t=null,uiManager:e=null}){t?(this.#rW=!1,this.#rK=tp.HIGHLIGHT_COLOR,this.#n=t):(this.#rW=!0,this.#rK=tp.HIGHLIGHT_DEFAULT_COLOR),this.#g=t?._uiManager||e,this.#rq=this.#g._eventBus,this.#rz=t?.color||this.#g?.highlightColors.values().next().value||\"#FFFF98\",su.#rY||=Object.freeze({blue:\"pdfjs-editor-colorpicker-blue\",green:\"pdfjs-editor-colorpicker-green\",pink:\"pdfjs-editor-colorpicker-pink\",red:\"pdfjs-editor-colorpicker-red\",yellow:\"pdfjs-editor-colorpicker-yellow\"})}renderButton(){let t=this.#rU=document.createElement(\"button\");t.className=\"colorPicker\",t.tabIndex=\"0\",t.setAttribute(\"data-l10n-id\",\"pdfjs-editor-colorpicker-button\"),t.setAttribute(\"aria-haspopup\",!0);let e=this.#g._signal;t.addEventListener(\"click\",this.#rQ.bind(this),{signal:e}),t.addEventListener(\"keydown\",this.#sA.bind(this),{signal:e});let i=this.#rj=document.createElement(\"span\");return i.className=\"swatch\",i.setAttribute(\"aria-hidden\",!0),i.style.backgroundColor=this.#rz,t.append(i),t}renderMainDropdown(){let t=this.#rG=this.#rJ();return t.setAttribute(\"aria-orientation\",\"horizontal\"),t.setAttribute(\"aria-labelledby\",\"highlightColorPickerLabel\"),t}#rJ(){let t=document.createElement(\"div\"),e=this.#g._signal;for(let[i,s]of(t.addEventListener(\"contextmenu\",t1,{signal:e}),t.className=\"dropdown\",t.role=\"listbox\",t.setAttribute(\"aria-multiselectable\",!1),t.setAttribute(\"aria-orientation\",\"vertical\"),t.setAttribute(\"data-l10n-id\",\"pdfjs-editor-colorpicker-dropdown\"),this.#g.highlightColors)){let r=document.createElement(\"button\");r.tabIndex=\"0\",r.role=\"option\",r.setAttribute(\"data-color\",s),r.title=i,r.setAttribute(\"data-l10n-id\",su.#rY[i]);let n=document.createElement(\"span\");r.append(n),n.className=\"swatch\",n.style.backgroundColor=s,r.setAttribute(\"aria-selected\",s===this.#rz),r.addEventListener(\"click\",this.#rZ.bind(this,s),{signal:e}),t.append(r)}return t.addEventListener(\"keydown\",this.#sA.bind(this),{signal:e}),t}#rZ(t,e){e.stopPropagation(),this.#rq.dispatch(\"switchannotationeditorparams\",{source:this,type:this.#rK,value:t})}_colorSelectFromKeyboard(t){if(t.target===this.#rU)return void this.#rQ(t);let e=t.target.getAttribute(\"data-color\");e&&this.#rZ(e,t)}_moveToNext(t){this.#r0?t.target!==this.#rU?t.target.nextSibling?.focus():this.#rG.firstChild?.focus():this.#rQ(t)}_moveToPrevious(t){t.target!==this.#rG?.firstChild&&t.target!==this.#rU?(this.#r0||this.#rQ(t),t.target.previousSibling?.focus()):this.#r0&&this._hideDropdownFromKeyboard()}_moveToBeginning(t){this.#r0?this.#rG.firstChild?.focus():this.#rQ(t)}_moveToEnd(t){this.#r0?this.#rG.lastChild?.focus():this.#rQ(t)}#sA(t){su._keyboardManager.exec(this,t)}#rQ(t){if(this.#r0)return void this.hideDropdown();if(this.#rV=0===t.detail,this.#rX||(this.#rX=new AbortController,window.addEventListener(\"pointerdown\",this.#h.bind(this),{signal:this.#g.combinedSignal(this.#rX)})),this.#rG)return void this.#rG.classList.remove(\"hidden\");let e=this.#rG=this.#rJ();this.#rU.append(e)}#h(t){this.#rG?.contains(t.target)||this.hideDropdown()}hideDropdown(){this.#rG?.classList.add(\"hidden\"),this.#rX?.abort(),this.#rX=null}get #r0(){return this.#rG&&!this.#rG.classList.contains(\"hidden\")}_hideDropdownFromKeyboard(){this.#rW||(this.#r0?(this.hideDropdown(),this.#rU.focus({preventScroll:!0,focusVisible:this.#rV})):this.#n?.unselect())}updateColor(t){if(this.#rj&&(this.#rj.style.backgroundColor=t),!this.#rG)return;let e=this.#g.highlightColors.values();for(let i of this.#rG.children)i.setAttribute(\"aria-selected\",e.next().value===t)}destroy(){this.#rU?.remove(),this.#rU=null,this.#rj=null,this.#rG?.remove(),this.#rG=null}}class sp extends ec{#r1=null;#r2=0;#r3;#r5=null;#r=null;#r6=null;#r8=null;#r4=0;#r7=null;#r9=null;#A=null;#nt=!1;#rI=null;#ne;#ni=null;#ns=\"\";#rb;#nr=\"\";static _defaultColor=null;static _defaultOpacity=1;static _defaultThickness=12;static _type=\"highlight\";static _editorType=tu.HIGHLIGHT;static _freeHighlightId=-1;static _freeHighlight=null;static _freeHighlightClipId=\"\";static get _keyboardManager(){let t=sp.prototype;return tS(this,\"_keyboardManager\",new ea([[[\"ArrowLeft\",\"mac+ArrowLeft\"],t._moveCaret,{args:[0]}],[[\"ArrowRight\",\"mac+ArrowRight\"],t._moveCaret,{args:[1]}],[[\"ArrowUp\",\"mac+ArrowUp\"],t._moveCaret,{args:[2]}],[[\"ArrowDown\",\"mac+ArrowDown\"],t._moveCaret,{args:[3]}]]))}constructor(t){super({...t,name:\"highlightEditor\"}),this.color=t.color||sp._defaultColor,this.#rb=t.thickness||sp._defaultThickness,this.#ne=t.opacity||sp._defaultOpacity,this.#r3=t.boxes||null,this.#nr=t.methodOfCreation||\"\",this.#ns=t.text||\"\",this._isDraggable=!1,t.highlightId>-1?(this.#nt=!0,this.#nn(t),this.#na()):this.#r3&&(this.#r1=t.anchorNode,this.#r2=t.anchorOffset,this.#r8=t.focusNode,this.#r4=t.focusOffset,this.#no(),this.#na(),this.rotate(this.rotation))}get telemetryInitialData(){return{action:\"added\",type:this.#nt?\"free_highlight\":\"highlight\",color:this._uiManager.highlightColorNames.get(this.color),thickness:this.#rb,methodOfCreation:this.#nr}}get telemetryFinalData(){return{type:\"highlight\",color:this._uiManager.highlightColorNames.get(this.color)}}static computeTelemetryFinalData(t){return{numberOfColors:t.get(\"color\").size}}#no(){let t=new sl(this.#r3,.001);this.#r9=t.getOutlines(),[this.x,this.y,this.width,this.height]=this.#r9.box;let e=new sl(this.#r3,.0025,.001,\"ltr\"===this._uiManager.direction);this.#r6=e.getOutlines();let{lastPoint:i}=this.#r6;this.#rI=[(i[0]-this.x)\/this.width,(i[1]-this.y)\/this.height]}#nn({highlightOutlines:t,highlightId:e,clipPathId:i}){if(this.#r9=t,this.#r6=t.getNewOutline(this.#rb\/2+1.5,.0025),e>=0)this.#A=e,this.#r5=i,this.parent.drawLayer.finalizeDraw(e,{bbox:t.box,path:{d:t.toSVGPath()}}),this.#ni=this.parent.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:!0},bbox:this.#r6.box,path:{d:this.#r6.toSVGPath()}},!0);else if(this.parent){let e=this.parent.viewport.rotation;this.parent.drawLayer.updateProperties(this.#A,{bbox:sp.#nl(this.#r9.box,(e-this.rotation+360)%360),path:{d:t.toSVGPath()}}),this.parent.drawLayer.updateProperties(this.#ni,{bbox:sp.#nl(this.#r6.box,e),path:{d:this.#r6.toSVGPath()}})}let[s,r,n,a]=t.box;switch(this.rotation){case 0:this.x=s,this.y=r,this.width=n,this.height=a;break;case 90:{let[t,e]=this.parentDimensions;this.x=r,this.y=1-s,this.width=n*e\/t,this.height=a*t\/e;break}case 180:this.x=1-s,this.y=1-r,this.width=n,this.height=a;break;case 270:{let[t,e]=this.parentDimensions;this.x=1-r,this.y=s,this.width=n*e\/t,this.height=a*t\/e}}let{lastPoint:o}=this.#r6;this.#rI=[(o[0]-s)\/n,(o[1]-r)\/a]}static initialize(t,e){ec.initialize(t,e),sp._defaultColor||=e.highlightColors?.values().next().value||\"#fff066\"}static updateDefaultParams(t,e){switch(t){case tp.HIGHLIGHT_DEFAULT_COLOR:sp._defaultColor=e;break;case tp.HIGHLIGHT_THICKNESS:sp._defaultThickness=e}}translateInPage(t,e){}get toolbarPosition(){return this.#rI}updateParams(t,e){switch(t){case tp.HIGHLIGHT_COLOR:this.#s7(e);break;case tp.HIGHLIGHT_THICKNESS:this.#nh(e)}}static get defaultPropertiesToUpdate(){return[[tp.HIGHLIGHT_DEFAULT_COLOR,sp._defaultColor],[tp.HIGHLIGHT_THICKNESS,sp._defaultThickness]]}get propertiesToUpdate(){return[[tp.HIGHLIGHT_COLOR,this.color||sp._defaultColor],[tp.HIGHLIGHT_THICKNESS,this.#rb||sp._defaultThickness],[tp.HIGHLIGHT_FREE,this.#nt]]}#s7(t){let e=(t,e)=>{this.color=t,this.#ne=e,this.parent?.drawLayer.updateProperties(this.#A,{root:{fill:t,\"fill-opacity\":e}}),this.#r?.updateColor(t)},i=this.color,s=this.#ne;this.addCommands({cmd:e.bind(this,t,sp._defaultOpacity),undo:e.bind(this,i,s),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:tp.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:\"color_changed\",color:this._uiManager.highlightColorNames.get(t)},!0)}#nh(t){let e=this.#rb,i=t=>{this.#rb=t,this.#nd(t)};this.addCommands({cmd:i.bind(this,t),undo:i.bind(this,e),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:tp.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:\"thickness_changed\",thickness:t},!0)}async addEditToolbar(){let t=await super.addEditToolbar();return t?(this._uiManager.highlightColors&&(this.#r=new su({editor:this}),t.addColorPicker(this.#r)),t):null}disableEditing(){super.disableEditing(),this.div.classList.toggle(\"disabled\",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle(\"disabled\",!1)}fixAndSetPosition(){return super.fixAndSetPosition(this.#nc())}getBaseTranslation(){return[0,0]}getRect(t,e){return super.getRect(t,e,this.#nc())}onceAdded(t){this.annotationElementId||this.parent.addUndoableEditor(this),t&&this.div.focus()}remove(){this.#nu(),this._reportTelemetry({action:\"deleted\"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.#na(),this.isAttachedToDOM||this.parent.add(this)))}setParent(t){let e=!1;this.parent&&!t?this.#nu():t&&(this.#na(t),e=!this.parent&&this.div?.classList.contains(\"selectedEditor\")),super.setParent(t),this.show(this._isVisible),e&&this.select()}#nd(t){if(!this.#nt)return;this.#nn({highlightOutlines:this.#r9.getNewOutline(t\/2)}),this.fixAndSetPosition();let[e,i]=this.parentDimensions;this.setDims(this.width*e,this.height*i)}#nu(){null!==this.#A&&this.parent&&(this.parent.drawLayer.remove(this.#A),this.#A=null,this.parent.drawLayer.remove(this.#ni),this.#ni=null)}#na(t=this.parent){null===this.#A&&({id:this.#A,clipPathId:this.#r5}=t.drawLayer.draw({bbox:this.#r9.box,root:{viewBox:\"0 0 1 1\",fill:this.color,\"fill-opacity\":this.#ne},rootClass:{highlight:!0,free:this.#nt},path:{d:this.#r9.toSVGPath()}},!1,!0),this.#ni=t.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:this.#nt},bbox:this.#r6.box,path:{d:this.#r6.toSVGPath()}},this.#nt),this.#r7&&(this.#r7.style.clipPath=this.#r5))}static #nl([t,e,i,s],r){switch(r){case 90:return[1-e-s,t,s,i];case 180:return[1-t-i,1-e-s,i,s];case 270:return[e,1-t-i,s,i]}return[t,e,i,s]}rotate(t){let e,{drawLayer:i}=this.parent;this.#nt?(t=(t-this.rotation+360)%360,e=sp.#nl(this.#r9.box,t)):e=sp.#nl([this.x,this.y,this.width,this.height],t),i.updateProperties(this.#A,{bbox:e,root:{\"data-main-rotation\":t}}),i.updateProperties(this.#ni,{bbox:sp.#nl(this.#r6.box,t),root:{\"data-main-rotation\":t}})}render(){if(this.div)return this.div;let t=super.render();this.#ns&&(t.setAttribute(\"aria-label\",this.#ns),t.setAttribute(\"role\",\"mark\")),this.#nt?t.classList.add(\"free\"):this.div.addEventListener(\"keydown\",this.#np.bind(this),{signal:this._uiManager._signal});let e=this.#r7=document.createElement(\"div\");t.append(e),e.setAttribute(\"aria-hidden\",\"true\"),e.className=\"internal\",e.style.clipPath=this.#r5;let[i,s]=this.parentDimensions;return this.setDims(this.width*i,this.height*s),ei(this,this.#r7,[\"pointerover\",\"pointerleave\"]),this.enableEditing(),t}pointerover(){this.isSelected||this.parent?.drawLayer.updateProperties(this.#ni,{rootClass:{hovered:!0}})}pointerleave(){this.isSelected||this.parent?.drawLayer.updateProperties(this.#ni,{rootClass:{hovered:!1}})}#np(t){sp._keyboardManager.exec(this,t)}_moveCaret(t){switch(this.parent.unselect(this),t){case 0:case 2:this.#nf(!0);break;case 1:case 3:this.#nf(!1)}}#nf(t){if(!this.#r1)return;let e=window.getSelection();t?e.setPosition(this.#r1,this.#r2):e.setPosition(this.#r8,this.#r4)}select(){super.select(),this.#ni&&this.parent?.drawLayer.updateProperties(this.#ni,{rootClass:{hovered:!1,selected:!0}})}unselect(){super.unselect(),this.#ni&&(this.parent?.drawLayer.updateProperties(this.#ni,{rootClass:{selected:!1}}),this.#nt||this.#nf(!1))}get _mustFixPosition(){return!this.#nt}show(t=this._isVisible){super.show(t),this.parent&&(this.parent.drawLayer.updateProperties(this.#A,{rootClass:{hidden:!t}}),this.parent.drawLayer.updateProperties(this.#ni,{rootClass:{hidden:!t}}))}#nc(){return this.#nt?this.rotation:0}#ng(){if(this.#nt)return null;let[t,e]=this.pageDimensions,[i,s]=this.pageTranslation,r=this.#r3,n=new Float32Array(8*r.length),a=0;for(let{x:o,y:l,width:h,height:d}of r){let r=o*t+i,c=(1-l)*e+s;n[a]=n[a+4]=r,n[a+1]=n[a+3]=c,n[a+2]=n[a+6]=r+h*t,n[a+5]=n[a+7]=c-d*e,a+=8}return n}#nm(t){return this.#r9.serialize(t,this.#nc())}static startHighlighting(t,e,{target:i,x:s,y:r}){let{x:n,y:a,width:o,height:l}=i.getBoundingClientRect(),h=new AbortController,d=t.combinedSignal(h),c=e=>{h.abort(),this.#nb(t,e)};window.addEventListener(\"blur\",c,{signal:d}),window.addEventListener(\"pointerup\",c,{signal:d}),window.addEventListener(\"pointerdown\",t2,{capture:!0,passive:!1,signal:d}),window.addEventListener(\"contextmenu\",t1,{signal:d}),i.addEventListener(\"pointermove\",this.#ny.bind(this,t),{signal:d}),this._freeHighlight=new sd({x:s,y:r},[n,a,o,l],t.scale,this._defaultThickness\/2,e,.001),{id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=t.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:\"0 0 1 1\",fill:this._defaultColor,\"fill-opacity\":this._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:this._freeHighlight.toSVGPath()}},!0,!0)}static #ny(t,e){this._freeHighlight.add(e)&&t.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})}static #nb(t,e){this._freeHighlight.isEmpty()?t.drawLayer.remove(this._freeHighlightId):t.createAndAddNewEditor(e,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:\"main_toolbar\"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=\"\"}static async deserialize(t,e,i){let s=null;if(t instanceof i8){let{data:{quadPoints:e,rect:i,rotation:r,id:n,color:a,opacity:o,popupRef:l},parent:{page:{pageNumber:h}}}=t;s=t={annotationType:tu.HIGHLIGHT,color:Array.from(a),opacity:o,quadPoints:e,boxes:null,pageIndex:h-1,rect:i.slice(0),rotation:r,id:n,deleted:!1,popupRef:l}}else if(t instanceof i6){let{data:{inkLists:e,rect:i,rotation:r,id:n,color:a,borderStyle:{rawWidth:o},popupRef:l},parent:{page:{pageNumber:h}}}=t;s=t={annotationType:tu.HIGHLIGHT,color:Array.from(a),thickness:o,inkLists:e,boxes:null,pageIndex:h-1,rect:i.slice(0),rotation:r,id:n,deleted:!1,popupRef:l}}let{color:r,quadPoints:n,inkLists:a,opacity:o}=t,l=await super.deserialize(t,e,i);l.color=t$.makeHexColor(...r),l.#ne=o||1,a&&(l.#rb=t.thickness),l.annotationElementId=t.id||null,l._initialData=s;let[h,d]=l.pageDimensions,[c,u]=l.pageTranslation;if(n){let t=l.#r3=[];for(let e=0;e<n.length;e+=8)t.push({x:(n[e]-c)\/h,y:1-(n[e+1]-u)\/d,width:(n[e+2]-n[e])\/h,height:(n[e+1]-n[e+5])\/d});l.#no(),l.#na(),l.rotate(l.rotation)}else if(a){l.#nt=!0;let t=a[0],i={x:t[0]-c,y:d-(t[1]-u)},s=new sd(i,[0,0,h,d],1,l.#rb\/2,!0,.001);for(let e=0,r=t.length;e<r;e+=2)i.x=t[e]-c,i.y=d-(t[e+1]-u),s.add(i);let{id:r,clipPathId:n}=e.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:\"0 0 1 1\",fill:l.color,\"fill-opacity\":l._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:s.toSVGPath()}},!0,!0);l.#nn({highlightOutlines:s.getOutlines(),highlightId:r,clipPathId:n}),l.#na()}return l}serialize(t=!1){if(this.isEmpty()||t)return null;if(this.deleted)return this.serializeDeleted();let e=this.getRect(0,0),i=ec._colorManager.convert(this.color),s={annotationType:tu.HIGHLIGHT,color:i,opacity:this.#ne,thickness:this.#rb,quadPoints:this.#ng(),outlines:this.#nm(e),pageIndex:this.pageIndex,rect:e,rotation:this.#nc(),structTreeParentId:this._structTreeParentId};return this.annotationElementId&&!this.#rn(s)?null:(s.id=this.annotationElementId,s)}#rn(t){let{color:e}=this._initialData;return t.color.some((t,i)=>t!==e[i])}renderAnnotationElement(t){return t.updateEdited({rect:this.getRect(0,0)}),null}static canCreateNewEmptyEditor(){return!1}}class sf{#nA=Object.create(null);updateProperty(t,e){this[t]=e,this.updateSVGProperty(t,e)}updateProperties(t){if(t)for(let[e,i]of Object.entries(t))this.updateProperty(e,i)}updateSVGProperty(t,e){this.#nA[t]=e}toSVGProperties(){let t=this.#nA;return this.#nA=Object.create(null),{root:t}}reset(){this.#nA=Object.create(null)}updateAll(t=this){this.updateProperties(t)}clone(){t_(\"Not implemented\")}}class sg extends ec{#nv=null;#nw;_drawId=null;static _currentDrawId=-1;static _currentParent=null;static #n_=null;static #nx=null;static #nE=null;static #nS=NaN;static #nC=null;static #nM=null;static #nk=NaN;static _INNER_MARGIN=3;constructor(t){super(t),this.#nw=t.mustBeCommitted||!1,t.drawOutlines&&(this.#nT(t),this.#na())}#nT({drawOutlines:t,drawId:e,drawingOptions:i}){this.#nv=t,this._drawingOptions||=i,e>=0?(this._drawId=e,this.parent.drawLayer.finalizeDraw(e,t.defaultProperties)):this._drawId=this.#nP(t,this.parent),this.#nR(t.box)}#nP(t,e){let{id:i}=e.drawLayer.draw(sg._mergeSVGProperties(this._drawingOptions.toSVGProperties(),t.defaultSVGProperties),!1,!1);return i}static _mergeSVGProperties(t,e){let i=new Set(Object.keys(t));for(let[s,r]of Object.entries(e))i.has(s)?Object.assign(t[s],r):t[s]=r;return t}static getDefaultDrawingOptions(t){t_(\"Not implemented\")}static get typesMap(){t_(\"Not implemented\")}static get isDrawer(){return!0}static get supportMultipleDrawings(){return!1}static updateDefaultParams(t,e){let i=this.typesMap.get(t);i&&this._defaultDrawingOptions.updateProperty(i,e),this._currentParent&&(sg.#n_.updateProperty(i,e),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(t,e){let i=this.constructor.typesMap.get(t);i&&this._updateProperty(t,i,e)}static get defaultPropertiesToUpdate(){let t=[],e=this._defaultDrawingOptions;for(let[i,s]of this.typesMap)t.push([i,e[s]]);return t}get propertiesToUpdate(){let t=[],{_drawingOptions:e}=this;for(let[i,s]of this.constructor.typesMap)t.push([i,e[s]]);return t}_updateProperty(t,e,i){let s=this._drawingOptions,r=s[e],n=t=>{s.updateProperty(e,t);let i=this.#nv.updateProperty(e,t);i&&this.#nR(i),this.parent?.drawLayer.updateProperties(this._drawId,s.toSVGProperties())};this.addCommands({cmd:n.bind(this,i),undo:n.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:t,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){this.parent?.drawLayer.updateProperties(this._drawId,sg._mergeSVGProperties(this.#nv.getPathResizingSVGProperties(this.#nI()),{bbox:this.#nL()}))}_onResized(){this.parent?.drawLayer.updateProperties(this._drawId,sg._mergeSVGProperties(this.#nv.getPathResizedSVGProperties(this.#nI()),{bbox:this.#nL()}))}_onTranslating(t,e){this.parent?.drawLayer.updateProperties(this._drawId,{bbox:this.#nL(t,e)})}_onTranslated(){this.parent?.drawLayer.updateProperties(this._drawId,sg._mergeSVGProperties(this.#nv.getPathTranslatedSVGProperties(this.#nI(),this.parentDimensions),{bbox:this.#nL()}))}_onStartDragging(){this.parent?.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){this.parent?.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}commit(){super.commit(),this.disableEditMode(),this.disableEditing()}disableEditing(){super.disableEditing(),this.div.classList.toggle(\"disabled\",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle(\"disabled\",!1)}getBaseTranslation(){return[0,0]}get isResizable(){return!0}onceAdded(t){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,this.#nw&&(this.#nw=!1,this.commit(),this.parent.setSelected(this),t&&this.isOnScreen&&this.div.focus())}remove(){this.#nu(),super.remove()}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.#na(),this.#nR(this.#nv.box),this.isAttachedToDOM||this.parent.add(this)))}setParent(t){let e=!1;this.parent&&!t?(this._uiManager.removeShouldRescale(this),this.#nu()):t&&(this._uiManager.addShouldRescale(this),this.#na(t),e=!this.parent&&this.div?.classList.contains(\"selectedEditor\")),super.setParent(t),e&&this.select()}#nu(){null!==this._drawId&&this.parent&&(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())}#na(t=this.parent){(null===this._drawId||this.parent!==t)&&(null===this._drawId?(this._drawingOptions.updateAll(),this._drawId=this.#nP(this.#nv,t)):this.parent.drawLayer.updateParent(this._drawId,t.drawLayer))}#nD([t,e,i,s]){let{parentDimensions:[r,n],rotation:a}=this;switch(a){case 90:return[e,1-t,n\/r*i,r\/n*s];case 180:return[1-t,1-e,i,s];case 270:return[1-e,t,n\/r*i,r\/n*s];default:return[t,e,i,s]}}#nI(){let{x:t,y:e,width:i,height:s,parentDimensions:[r,n],rotation:a}=this;switch(a){case 90:return[1-e,t,r\/n*i,n\/r*s];case 180:return[1-t,1-e,i,s];case 270:return[e,1-t,r\/n*i,n\/r*s];default:return[t,e,i,s]}}#nR(t){if([this.x,this.y,this.width,this.height]=this.#nD(t),this.div){this.fixAndSetPosition();let[t,e]=this.parentDimensions;this.setDims(this.width*t,this.height*e)}this._onResized()}#nL(){let{x:t,y:e,width:i,height:s,rotation:r,parentRotation:n,parentDimensions:[a,o]}=this;switch((4*r+n)\/90){case 1:return[1-e-s,t,s,i];case 2:return[1-t-i,1-e-s,i,s];case 3:return[e,1-t-i,s,i];case 4:return[t,e-a\/o*i,o\/a*s,a\/o*i];case 5:return[1-e,t,a\/o*i,o\/a*s];case 6:return[1-t-o\/a*s,1-e,o\/a*s,a\/o*i];case 7:return[e-a\/o*i,1-t-o\/a*s,a\/o*i,o\/a*s];case 8:return[t-i,e-s,i,s];case 9:return[1-e,t-i,s,i];case 10:return[1-t,1-e,i,s];case 11:return[e-s,1-t,s,i];case 12:return[t-o\/a*s,e,o\/a*s,a\/o*i];case 13:return[1-e-a\/o*i,t-o\/a*s,a\/o*i,o\/a*s];case 14:return[1-t,1-e-a\/o*i,o\/a*s,a\/o*i];case 15:return[e,1-t,a\/o*i,o\/a*s];default:return[t,e,i,s]}}rotate(){this.parent&&this.parent.drawLayer.updateProperties(this._drawId,sg._mergeSVGProperties({bbox:this.#nL()},this.#nv.updateRotation((this.parentRotation-this.rotation+360)%360)))}onScaleChanging(){this.parent&&this.#nR(this.#nv.updateParentDimensions(this.parentDimensions,this.parent.scale))}static onScaleChangingWhenDrawing(){}render(){if(this.div)return this.div;let t=super.render();t.classList.add(\"draw\");let e=document.createElement(\"div\");t.append(e),e.setAttribute(\"aria-hidden\",\"true\"),e.className=\"internal\";let[i,s]=this.parentDimensions;return this.setDims(this.width*i,this.height*s),this._uiManager.addShouldRescale(this),this.disableEditing(),t}static createDrawerInstance(t,e,i,s,r){t_(\"Not implemented\")}static startDrawing(t,e,i,s){let{target:r,offsetX:n,offsetY:a,pointerId:o,pointerType:l}=s;if(sg.#nC&&sg.#nC!==l)return;let{viewport:{rotation:h}}=t,{width:d,height:c}=r.getBoundingClientRect(),u=sg.#nx=new AbortController,p=t.combinedSignal(u);sg.#nS||=o,sg.#nC??=l,window.addEventListener(\"pointerup\",t=>{sg.#nS===t.pointerId?this._endDraw(t):sg.#nM?.delete(t.pointerId)},{signal:p}),window.addEventListener(\"pointercancel\",t=>{sg.#nS===t.pointerId?this._currentParent.endDrawingSession():sg.#nM?.delete(t.pointerId)},{signal:p}),window.addEventListener(\"pointerdown\",t=>{sg.#nC===t.pointerType&&((sg.#nM||=new Set).add(t.pointerId),sg.#n_.isCancellable()&&(sg.#n_.removeLastElement(),sg.#n_.isEmpty()?this._currentParent.endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:p}),window.addEventListener(\"contextmenu\",t1,{signal:p}),r.addEventListener(\"pointermove\",this._drawMove.bind(this),{signal:p}),r.addEventListener(\"touchmove\",t=>{t.timeStamp===sg.#nk&&t2(t)},{signal:p}),t.toggleDrawing(),e._editorUndoBar?.hide(),sg.#n_?t.drawLayer.updateProperties(this._currentDrawId,sg.#n_.startNew(n,a,d,c,h)):(e.updateUIForDefaultProperties(this),sg.#n_=this.createDrawerInstance(n,a,d,c,h),sg.#nE=this.getDefaultDrawingOptions(),this._currentParent=t,{id:this._currentDrawId}=t.drawLayer.draw(this._mergeSVGProperties(sg.#nE.toSVGProperties(),sg.#n_.defaultSVGProperties),!0,!1))}static _drawMove(t){if(sg.#nk=-1,!sg.#n_)return;let{offsetX:e,offsetY:i,pointerId:s}=t;sg.#nS===s&&(sg.#nM?.size>=1?this._endDraw(t):(this._currentParent.drawLayer.updateProperties(this._currentDrawId,sg.#n_.add(e,i)),sg.#nk=t.timeStamp,t2(t)))}static _cleanup(t){t&&(this._currentDrawId=-1,this._currentParent=null,sg.#n_=null,sg.#nE=null,sg.#nC=null,sg.#nk=NaN),sg.#nx&&(sg.#nx.abort(),sg.#nx=null,sg.#nS=NaN,sg.#nM=null)}static _endDraw(t){let e=this._currentParent;if(e)if(e.toggleDrawing(!0),this._cleanup(!1),t&&e.drawLayer.updateProperties(this._currentDrawId,sg.#n_.end(t.offsetX,t.offsetY)),this.supportMultipleDrawings){let t=sg.#n_,i=this._currentDrawId,s=t.getLastElement();e.addCommands({cmd:()=>{e.drawLayer.updateProperties(i,t.setLastElement(s))},undo:()=>{e.drawLayer.updateProperties(i,t.removeLastElement())},mustExec:!1,type:tp.DRAW_STEP})}else this.endDrawing(!1)}static endDrawing(t){let e=this._currentParent;if(!e)return null;if(e.toggleDrawing(!0),e.cleanUndoStack(tp.DRAW_STEP),!sg.#n_.isEmpty()){let{pageDimensions:[i,s],scale:r}=e,n=e.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,drawOutlines:sg.#n_.getOutlines(i*r,s*r,r,this._INNER_MARGIN),drawingOptions:sg.#nE,mustBeCommitted:!t});return this._cleanup(!0),n}return e.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(t){}static deserializeDraw(t,e,i,s,r,n){t_(\"Not implemented\")}static async deserialize(t,e,i){let{rawDims:{pageWidth:s,pageHeight:r,pageX:n,pageY:a}}=e.viewport,o=this.deserializeDraw(n,a,s,r,this._INNER_MARGIN,t),l=await super.deserialize(t,e,i);return l.createDrawingOptions(t),l.#nT({drawOutlines:o}),l.#na(),l.onScaleChanging(),l.rotate(),l}serializeDraw(t){let[e,i]=this.pageTranslation,[s,r]=this.pageDimensions;return this.#nv.serialize([e,i,s,r],t)}renderAnnotationElement(t){return t.updateEdited({rect:this.getRect(0,0)}),null}static canCreateNewEmptyEditor(){return!1}}class sm{#rc=new Float64Array(6);#sz;#nF;#im;#rb;#ry;#nN=\"\";#nO=0;#rH=new sb;#nB;#n$;constructor(t,e,i,s,r,n){this.#nB=i,this.#n$=s,this.#im=r,this.#rb=n,[t,e]=this.#nH(t,e);const a=this.#sz=[NaN,NaN,NaN,NaN,t,e];this.#ry=[t,e],this.#nF=[{line:a,points:this.#ry}],this.#rc.set(a,0)}updateProperty(t,e){\"stroke-width\"===t&&(this.#rb=e)}#nH(t,e){return sn._normalizePoint(t,e,this.#nB,this.#n$,this.#im)}isEmpty(){return!this.#nF||0===this.#nF.length}isCancellable(){return this.#ry.length<=10}add(t,e){[t,e]=this.#nH(t,e);let[i,s,r,n]=this.#rc.subarray(2,6),a=t-r,o=e-n;return 2>=Math.hypot(this.#nB*a,this.#n$*o)?null:((this.#ry.push(t,e),isNaN(i))?(this.#rc.set([r,n,t,e],2),this.#sz.push(NaN,NaN,NaN,NaN,t,e)):(isNaN(this.#rc[0])&&this.#sz.splice(6,6),this.#rc.set([i,s,r,n,t,e],0),this.#sz.push(...sn.createBezierPoints(i,s,r,n,t,e))),{path:{d:this.toSVGPath()}})}end(t,e){return this.add(t,e)||(2===this.#ry.length?{path:{d:this.toSVGPath()}}:null)}startNew(t,e,i,s,r){this.#nB=i,this.#n$=s,this.#im=r,[t,e]=this.#nH(t,e);let n=this.#sz=[NaN,NaN,NaN,NaN,t,e];this.#ry=[t,e];let a=this.#nF.at(-1);return a&&(a.line=new Float32Array(a.line),a.points=new Float32Array(a.points)),this.#nF.push({line:n,points:this.#ry}),this.#rc.set(n,0),this.#nO=0,this.toSVGPath(),null}getLastElement(){return this.#nF.at(-1)}setLastElement(t){return this.#nF?(this.#nF.push(t),this.#sz=t.line,this.#ry=t.points,this.#nO=0,{path:{d:this.toSVGPath()}}):this.#rH.setLastElement(t)}removeLastElement(){if(!this.#nF)return this.#rH.removeLastElement();this.#nF.pop(),this.#nN=\"\";for(let t=0,e=this.#nF.length;t<e;t++){let{line:e,points:i}=this.#nF[t];this.#sz=e,this.#ry=i,this.#nO=0,this.toSVGPath()}return{path:{d:this.#nN}}}toSVGPath(){let t=sn.svgRound(this.#sz[4]),e=sn.svgRound(this.#sz[5]);if(2===this.#ry.length)return this.#nN=`${this.#nN} M ${t} ${e} Z`,this.#nN;if(this.#ry.length<=6){let i=this.#nN.lastIndexOf(\"M\");this.#nN=`${this.#nN.slice(0,i)} M ${t} ${e}`,this.#nO=6}if(4===this.#ry.length){let t=sn.svgRound(this.#sz[10]),e=sn.svgRound(this.#sz[11]);return this.#nN=`${this.#nN} L ${t} ${e}`,this.#nO=12,this.#nN}let i=[];0===this.#nO&&(i.push(`M ${t} ${e}`),this.#nO=6);for(let t=this.#nO,e=this.#sz.length;t<e;t+=6){let[e,s,r,n,a,o]=this.#sz.slice(t,t+6).map(sn.svgRound);i.push(`C${e} ${s} ${r} ${n} ${a} ${o}`)}return this.#nN+=i.join(\" \"),this.#nO=this.#sz.length,this.#nN}getOutlines(t,e,i,s){let r=this.#nF.at(-1);return r.line=new Float32Array(r.line),r.points=new Float32Array(r.points),this.#rH.build(this.#nF,t,e,i,this.#im,this.#rb,s),this.#rc=null,this.#sz=null,this.#nF=null,this.#nN=null,this.#rH}get defaultSVGProperties(){return{root:{viewBox:\"0 0 10000 10000\"},rootClass:{draw:!0},bbox:[0,0,1,1]}}}class sb extends sn{#rT;#nU=0;#rl;#nF;#nB;#n$;#nj;#im;#rb;build(t,e,i,s,r,n,a){this.#nB=e,this.#n$=i,this.#nj=s,this.#im=r,this.#rb=n,this.#rl=a??0,this.#nF=t,this.#nz()}setLastElement(t){return this.#nF.push(t),{path:{d:this.toSVGPath()}}}removeLastElement(){return this.#nF.pop(),{path:{d:this.toSVGPath()}}}toSVGPath(){let t=[];for(let{line:e}of this.#nF)if(t.push(`M${sn.svgRound(e[4])} ${sn.svgRound(e[5])}`),6!==e.length)if(12!==e.length)for(let i=6,s=e.length;i<s;i+=6){let[s,r,n,a,o,l]=e.subarray(i,i+6).map(sn.svgRound);t.push(`C${s} ${r} ${n} ${a} ${o} ${l}`)}else t.push(`L${sn.svgRound(e[10])} ${sn.svgRound(e[11])}`);else t.push(\"Z\");return t.join(\"\")}serialize([t,e,i,s],r){let n,a,o,l,h,d,c,u,p,f=[],g=[],[m,b,y,A]=this.#nG();switch(this.#im){case 0:p=sn._rescale,n=t,a=e+s,o=i,l=-s,h=t+m*i,d=e+(1-b-A)*s,c=t+(m+y)*i,u=e+(1-b)*s;break;case 90:p=sn._rescaleAndSwap,n=t,a=e,o=i,l=s,h=t+b*i,d=e+m*s,c=t+(b+A)*i,u=e+(m+y)*s;break;case 180:p=sn._rescale,n=t+i,a=e,o=-i,l=s,h=t+(1-m-y)*i,d=e+b*s,c=t+(1-m)*i,u=e+(b+A)*s;break;case 270:p=sn._rescaleAndSwap,n=t+i,a=e+s,o=-i,l=-s,h=t+(1-b-A)*i,d=e+(1-m-y)*s,c=t+(1-b)*i,u=e+(1-m)*s}for(let{line:t,points:e}of this.#nF)f.push(p(t,n,a,o,l,r?Array(t.length):null)),g.push(p(e,n,a,o,l,r?Array(e.length):null));return{lines:f,points:g,rect:[h,d,c,u]}}static deserialize(t,e,i,s,r,{paths:{lines:n,points:a},rotation:o,thickness:l}){let h,d,c,u,p,f=[];switch(o){case 0:p=sn._rescale,h=-t\/i,d=e\/s+1,c=1\/i,u=-1\/s;break;case 90:p=sn._rescaleAndSwap,h=-e\/s,d=-t\/i,c=1\/s,u=1\/i;break;case 180:p=sn._rescale,h=t\/i+1,d=-e\/s,c=-1\/i,u=1\/s;break;case 270:p=sn._rescaleAndSwap,h=e\/s+1,d=t\/i+1,c=-1\/s,u=-1\/i}if(!n)for(let t of(n=[],a)){let e=t.length;if(2===e){n.push(new Float32Array([NaN,NaN,NaN,NaN,t[0],t[1]]));continue}if(4===e){n.push(new Float32Array([NaN,NaN,NaN,NaN,t[0],t[1],NaN,NaN,NaN,NaN,t[2],t[3]]));continue}let i=new Float32Array(3*(e-2));n.push(i);let[s,r,a,o]=t.subarray(0,4);i.set([NaN,NaN,NaN,NaN,s,r],0);for(let n=4;n<e;n+=2){let e=t[n],l=t[n+1];i.set(sn.createBezierPoints(s,r,a,o,e,l),3*(n-2)),[s,r,a,o]=[a,o,e,l]}}for(let t=0,e=n.length;t<e;t++)f.push({line:p(n[t].map(t=>t??NaN),h,d,c,u),points:p(a[t].map(t=>t??NaN),h,d,c,u)});let g=new sb;return g.build(f,i,s,1,o,l,r),g}#nV(t=this.#rb){let e=this.#rl+t\/2*this.#nj;return this.#im%180==0?[e\/this.#nB,e\/this.#n$]:[e\/this.#n$,e\/this.#nB]}#nG(){let[t,e,i,s]=this.#rT,[r,n]=this.#nV(0);return[t+r,e+n,i-2*r,s-2*n]}#nz(){let t=this.#rT=new Float32Array([1\/0,1\/0,-1\/0,-1\/0]);for(let{line:e}of this.#nF){if(e.length<=12){for(let i=4,s=e.length;i<s;i+=6){let[s,r]=e.subarray(i,i+2);t[0]=Math.min(t[0],s),t[1]=Math.min(t[1],r),t[2]=Math.max(t[2],s),t[3]=Math.max(t[3],r)}continue}let i=e[4],s=e[5];for(let r=6,n=e.length;r<n;r+=6){let[n,a,o,l,h,d]=e.subarray(r,r+6);t$.bezierBoundingBox(i,s,n,a,o,l,h,d,t),i=h,s=d}}let[e,i]=this.#nV();t[0]=Math.min(1,Math.max(0,t[0]-e)),t[1]=Math.min(1,Math.max(0,t[1]-i)),t[2]=Math.min(1,Math.max(0,t[2]+e)),t[3]=Math.min(1,Math.max(0,t[3]+i)),t[2]-=t[0],t[3]-=t[1]}get box(){return this.#rT}updateProperty(t,e){return\"stroke-width\"===t?this.#nh(e):null}#nh(t){let[e,i]=this.#nV();this.#rb=t;let[s,r]=this.#nV(),[n,a]=[s-e,r-i],o=this.#rT;return o[0]-=n,o[1]-=a,o[2]+=2*n,o[3]+=2*a,o}updateParentDimensions([t,e],i){let[s,r]=this.#nV();this.#nB=t,this.#n$=e,this.#nj=i;let[n,a]=this.#nV(),o=n-s,l=a-r,h=this.#rT;return h[0]-=o,h[1]-=l,h[2]+=2*o,h[3]+=2*l,h}updateRotation(t){return this.#nU=t,{path:{transform:this.rotationTransform}}}get viewBox(){return this.#rT.map(sn.svgRound).join(\" \")}get defaultProperties(){let[t,e]=this.#rT;return{root:{viewBox:this.viewBox},path:{\"transform-origin\":`${sn.svgRound(t)} ${sn.svgRound(e)}`}}}get rotationTransform(){let[,,t,e]=this.#rT,i=0,s=0,r=0,n=0,a=0,o=0;switch(this.#nU){case 90:s=e\/t,r=-t\/e,a=t;break;case 180:i=-1,n=-1,a=t,o=e;break;case 270:s=-e\/t,r=t\/e,o=e;break;default:return\"\"}return`matrix(${i} ${s} ${r} ${n} ${sn.svgRound(a)} ${sn.svgRound(o)})`}getPathResizingSVGProperties([t,e,i,s]){let[r,n]=this.#nV(),[a,o,l,h]=this.#rT;if(Math.abs(l-r)<=sn.PRECISION||Math.abs(h-n)<=sn.PRECISION){let r=t+i\/2-(a+l\/2),n=e+s\/2-(o+h\/2);return{path:{\"transform-origin\":`${sn.svgRound(t)} ${sn.svgRound(e)}`,transform:`${this.rotationTransform} translate(${r} ${n})`}}}let d=(i-2*r)\/(l-2*r),c=(s-2*n)\/(h-2*n);return{path:{\"transform-origin\":`${sn.svgRound(a)} ${sn.svgRound(o)}`,transform:`${this.rotationTransform} scale(${l\/i} ${h\/s}) translate(${sn.svgRound(r)} ${sn.svgRound(n)}) scale(${d} ${c}) translate(${sn.svgRound(-r)} ${sn.svgRound(-n)})`}}}getPathResizedSVGProperties([t,e,i,s]){let[r,n]=this.#nV(),a=this.#rT,[o,l,h,d]=a;if(a[0]=t,a[1]=e,a[2]=i,a[3]=s,Math.abs(h-r)<=sn.PRECISION||Math.abs(d-n)<=sn.PRECISION){let r=t+i\/2-(o+h\/2),n=e+s\/2-(l+d\/2);for(let{line:t,points:e}of this.#nF)sn._translate(t,r,n,t),sn._translate(e,r,n,e);return{root:{viewBox:this.viewBox},path:{\"transform-origin\":`${sn.svgRound(t)} ${sn.svgRound(e)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}let c=(i-2*r)\/(h-2*r),u=(s-2*n)\/(d-2*n),p=-c*(o+r)+t+r,f=-u*(l+n)+e+n;if(1!==c||1!==u||0!==p||0!==f)for(let{line:t,points:e}of this.#nF)sn._rescale(t,p,f,c,u,t),sn._rescale(e,p,f,c,u,e);return{root:{viewBox:this.viewBox},path:{\"transform-origin\":`${sn.svgRound(t)} ${sn.svgRound(e)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}getPathTranslatedSVGProperties([t,e],i){let[s,r]=i,n=this.#rT,a=t-n[0],o=e-n[1];if(this.#nB===s&&this.#n$===r)for(let{line:t,points:e}of this.#nF)sn._translate(t,a,o,t),sn._translate(e,a,o,e);else{let t=this.#nB\/s,e=this.#n$\/r;for(let{line:i,points:n}of(this.#nB=s,this.#n$=r,this.#nF))sn._rescale(i,a,o,t,e,i),sn._rescale(n,a,o,t,e,n);n[2]*=t,n[3]*=e}return n[0]=t,n[1]=e,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),\"transform-origin\":`${sn.svgRound(t)} ${sn.svgRound(e)}`}}}get defaultSVGProperties(){let t=this.#rT;return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),\"transform-origin\":`${sn.svgRound(t[0])} ${sn.svgRound(t[1])}`,transform:this.rotationTransform||null},bbox:t}}}class sy extends sf{#nW;constructor(t){super(),this.#nW=t,super.updateProperties({fill:\"none\",stroke:ec._defaultLineColor,\"stroke-opacity\":1,\"stroke-width\":1,\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\",\"stroke-miterlimit\":10})}updateSVGProperty(t,e){\"stroke-width\"===t&&(e??=this[\"stroke-width\"],e*=this.#nW.realScale),super.updateSVGProperty(t,e)}clone(){let t=new sy(this.#nW);return t.updateAll(this),t}}class sA extends sg{static _type=\"ink\";static _editorType=tu.INK;static _defaultDrawingOptions=null;constructor(t){super({...t,name:\"inkEditor\"}),this._willKeepAspectRatio=!0}static initialize(t,e){ec.initialize(t,e),this._defaultDrawingOptions=new sy(e.viewParameters)}static getDefaultDrawingOptions(t){let e=this._defaultDrawingOptions.clone();return e.updateProperties(t),e}static get supportMultipleDrawings(){return!0}static get typesMap(){return tS(this,\"typesMap\",new Map([[tp.INK_THICKNESS,\"stroke-width\"],[tp.INK_COLOR,\"stroke\"],[tp.INK_OPACITY,\"stroke-opacity\"]]))}static createDrawerInstance(t,e,i,s,r){return new sm(t,e,i,s,r,this._defaultDrawingOptions[\"stroke-width\"])}static deserializeDraw(t,e,i,s,r,n){return sb.deserialize(t,e,i,s,r,n)}static async deserialize(t,e,i){let s=null;if(t instanceof i6){let{data:{inkLists:e,rect:i,rotation:r,id:n,color:a,opacity:o,borderStyle:{rawWidth:l},popupRef:h},parent:{page:{pageNumber:d}}}=t;s=t={annotationType:tu.INK,color:Array.from(a),thickness:l,opacity:o,paths:{points:e},boxes:null,pageIndex:d-1,rect:i.slice(0),rotation:r,id:n,deleted:!1,popupRef:h}}let r=await super.deserialize(t,e,i);return r.annotationElementId=t.id||null,r._initialData=s,r}onScaleChanging(){if(!this.parent)return;super.onScaleChanging();let{_drawId:t,_drawingOptions:e,parent:i}=this;e.updateSVGProperty(\"stroke-width\"),i.drawLayer.updateProperties(t,e.toSVGProperties())}static onScaleChangingWhenDrawing(){let t=this._currentParent;t&&(super.onScaleChangingWhenDrawing(),this._defaultDrawingOptions.updateSVGProperty(\"stroke-width\"),t.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}createDrawingOptions({color:t,thickness:e,opacity:i}){this._drawingOptions=sA.getDefaultDrawingOptions({stroke:t$.makeHexColor(...t),\"stroke-width\":e,\"stroke-opacity\":i})}serialize(t=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();let{lines:e,points:i,rect:s}=this.serializeDraw(t),{_drawingOptions:{stroke:r,\"stroke-opacity\":n,\"stroke-width\":a}}=this,o={annotationType:tu.INK,color:ec._colorManager.convert(r),opacity:n,thickness:a,paths:{lines:e,points:i},pageIndex:this.pageIndex,rect:s,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return t?o:this.annotationElementId&&!this.#rn(o)?null:(o.id=this.annotationElementId,o)}#rn(t){let{color:e,thickness:i,opacity:s,pageIndex:r}=this._initialData;return this._hasBeenMoved||this._hasBeenResized||t.color.some((t,i)=>t!==e[i])||t.thickness!==i||t.opacity!==s||t.pageIndex!==r}renderAnnotationElement(t){let{points:e,rect:i}=this.serializeDraw(!1);return t.updateEdited({rect:i,thickness:this._drawingOptions[\"stroke-width\"],points:e}),null}}class sv extends ec{#nq=null;#nX=null;#nK=null;#nY=null;#nQ=null;#nJ=\"\";#nZ=null;#n0=null;#n1=!1;#n2=!1;static _type=\"stamp\";static _editorType=tu.STAMP;constructor(t){super({...t,name:\"stampEditor\"}),this.#nY=t.bitmapUrl,this.#nQ=t.bitmapFile}static initialize(t,e){ec.initialize(t,e)}static get supportedTypes(){return tS(this,\"supportedTypes\",[\"apng\",\"avif\",\"bmp\",\"gif\",\"jpeg\",\"png\",\"svg+xml\",\"webp\",\"x-icon\"].map(t=>`image\/${t}`))}static get supportedTypesStr(){return tS(this,\"supportedTypesStr\",this.supportedTypes.join(\",\"))}static isHandlingMimeForPasting(t){return this.supportedTypes.includes(t)}static paste(t,e){e.pasteEditor(tu.STAMP,{bitmapFile:t.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){return{type:\"stamp\",hasAltText:!!this.altTextData?.altText}}static computeTelemetryFinalData(t){let e=t.get(\"hasAltText\");return{hasAltText:e.get(!0)??0,hasNoAltText:e.get(!1)??0}}#n3(t,e=!1){t?(this.#nq=t.bitmap,e||(this.#nX=t.id,this.#n1=t.isSvg),t.file&&(this.#nJ=t.file.name),this.#n5()):this.remove()}#n6(){if(this.#nK=null,this._uiManager.enableWaiting(!1),this.#nZ)if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&this.#nq)this._editToolbar.hide(),this._uiManager.editAltText(this,!0);else{if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&this.#nq){this._reportTelemetry({action:\"pdfjs.image.image_added\",data:{alt_text_modal:!1,alt_text_type:\"empty\"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}}async mlGuessAltText(t=null,e=!0){if(this.hasAltTextData())return null;let{mlManager:i}=this._uiManager;if(!i)throw Error(\"No ML.\");if(!await i.isEnabledFor(\"altText\"))throw Error(\"ML isn't enabled for alt text.\");let{data:s,width:r,height:n}=t||this.copyCanvas(null,null,!0).imageData,a=await i.guess({name:\"altText\",request:{data:s,width:r,height:n,channels:s.length\/(r*n)}});if(!a)throw Error(\"No response from the AI service.\");if(a.error)throw Error(\"Error from the AI service.\");if(a.cancel)return null;if(!a.output)throw Error(\"No valid response from the AI service.\");let o=a.output;return await this.setGuessedAltText(o),e&&!this.hasAltTextData()&&(this.altTextData={alt:o,decorative:!1}),o}#n8(){if(this.#nX){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(this.#nX).then(t=>this.#n3(t,!0)).finally(()=>this.#n6());return}if(this.#nY){let t=this.#nY;this.#nY=null,this._uiManager.enableWaiting(!0),this.#nK=this._uiManager.imageManager.getFromUrl(t).then(t=>this.#n3(t)).finally(()=>this.#n6());return}if(this.#nQ){let t=this.#nQ;this.#nQ=null,this._uiManager.enableWaiting(!0),this.#nK=this._uiManager.imageManager.getFromFile(t).then(t=>this.#n3(t)).finally(()=>this.#n6());return}let t=document.createElement(\"input\");t.type=\"file\",t.accept=sv.supportedTypesStr;let e=this._uiManager._signal;this.#nK=new Promise(i=>{t.addEventListener(\"change\",async()=>{if(t.files&&0!==t.files.length){this._uiManager.enableWaiting(!0);let e=await this._uiManager.imageManager.getFromFile(t.files[0]);this._reportTelemetry({action:\"pdfjs.image.image_selected\",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),this.#n3(e)}else this.remove();i()},{signal:e}),t.addEventListener(\"cancel\",()=>{this.remove(),i()},{signal:e})}).finally(()=>this.#n6()),t.click()}remove(){this.#nX&&(this.#nq=null,this._uiManager.imageManager.deleteId(this.#nX),this.#nZ?.remove(),this.#nZ=null,this.#n0&&(clearTimeout(this.#n0),this.#n0=null)),super.remove()}rebuild(){this.parent?(super.rebuild(),null!==this.div&&(this.#nX&&null===this.#nZ&&this.#n8(),this.isAttachedToDOM||this.parent.add(this))):this.#nX&&this.#n8()}onceAdded(t){this._isDraggable=!0,t&&this.div.focus()}isEmpty(){return!(this.#nK||this.#nq||this.#nY||this.#nQ||this.#nX)}get isResizable(){return!0}render(){let t,e;if(this.div)return this.div;if(this.width&&(t=this.x,e=this.y),super.render(),this.div.hidden=!0,this.div.setAttribute(\"role\",\"figure\"),this.addAltTextButton(),this.#nq?this.#n5():this.#n8(),this.width&&!this.annotationElementId){let[i,s]=this.parentDimensions;this.setAt(t*i,e*s,this.width*i,this.height*s)}return this._uiManager.addShouldRescale(this),this.div}_onResized(){this.onScaleChanging()}onScaleChanging(){this.parent&&(null!==this.#n0&&clearTimeout(this.#n0),this.#n0=setTimeout(()=>{this.#n0=null,this.#n4()},200))}#n5(){let{div:t}=this,{width:e,height:i}=this.#nq,[s,r]=this.pageDimensions;if(this.width)e=this.width*s,i=this.height*r;else if(e>.75*s||i>.75*r){let t=Math.min(.75*s\/e,.75*r\/i);e*=t,i*=t}let[n,a]=this.parentDimensions;this.setDims(e*n\/s,i*a\/r),this._uiManager.enableWaiting(!1);let o=this.#nZ=document.createElement(\"canvas\");o.setAttribute(\"role\",\"img\"),this.addContainer(o),this.width=e\/s,this.height=i\/r,this._initialOptions?.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&!this.annotationElementId||(t.hidden=!1),this.#n4(),this.#n2||(this.parent.addUndoableEditor(this),this.#n2=!0),this._reportTelemetry({action:\"inserted_image\"}),this.#nJ&&o.setAttribute(\"aria-label\",this.#nJ)}copyCanvas(t,e,i=!1){t||(t=224);let{width:s,height:r}=this.#nq,n=new t9,a=this.#nq,o=s,l=r,h=null;if(e){if(s>e||r>e){let t=Math.min(e\/s,e\/r);o=Math.floor(s*t),l=Math.floor(r*t)}let t=(h=document.createElement(\"canvas\")).width=Math.ceil(o*n.sx),i=h.height=Math.ceil(l*n.sy);this.#n1||(a=this.#n7(t,i));let d=h.getContext(\"2d\");d.filter=this._uiManager.hcmFilter;let c=\"white\",u=\"#cfcfd8\";\"none\"!==this._uiManager.hcmFilter?u=\"black\":window.matchMedia?.(\"(prefers-color-scheme: dark)\").matches&&(c=\"#8f8f9d\",u=\"#42414d\");let p=15*n.sx,f=15*n.sy,g=new OffscreenCanvas(2*p,2*f),m=g.getContext(\"2d\");m.fillStyle=c,m.fillRect(0,0,2*p,2*f),m.fillStyle=u,m.fillRect(0,0,p,f),m.fillRect(p,f,p,f),d.fillStyle=d.createPattern(g,\"repeat\"),d.fillRect(0,0,t,i),d.drawImage(a,0,0,a.width,a.height,0,0,t,i)}let d=null;if(i){let e,i;if(n.symmetric&&a.width<t&&a.height<t)e=a.width,i=a.height;else if(a=this.#nq,s>t||r>t){let n=Math.min(t\/s,t\/r);e=Math.floor(s*n),i=Math.floor(r*n),this.#n1||(a=this.#n7(e,i))}let o=new OffscreenCanvas(e,i).getContext(\"2d\",{willReadFrequently:!0});o.drawImage(a,0,0,a.width,a.height,0,0,e,i),d={width:e,height:i,data:o.getImageData(0,0,e,i).data}}return{canvas:h,width:o,height:l,imageData:d}}#n7(t,e){let{width:i,height:s}=this.#nq,r=i,n=s,a=this.#nq;for(;r>2*t||n>2*e;){let i=r,s=n;r>2*t&&(r=r>=16384?Math.floor(r\/2)-1:Math.ceil(r\/2)),n>2*e&&(n=n>=16384?Math.floor(n\/2)-1:Math.ceil(n\/2));let o=new OffscreenCanvas(r,n);o.getContext(\"2d\").drawImage(a,0,0,i,s,0,0,r,n),a=o.transferToImageBitmap()}return a}#n4(){let[t,e]=this.parentDimensions,{width:i,height:s}=this,r=new t9,n=Math.ceil(i*t*r.sx),a=Math.ceil(s*e*r.sy),o=this.#nZ;if(!o||o.width===n&&o.height===a)return;o.width=n,o.height=a;let l=this.#n1?this.#nq:this.#n7(n,a),h=o.getContext(\"2d\");h.filter=this._uiManager.hcmFilter,h.drawImage(l,0,0,l.width,l.height,0,0,n,a)}getImageForAltText(){return this.#nZ}#n9(t){if(t){if(this.#n1){let t=this._uiManager.imageManager.getSvgUrl(this.#nX);if(t)return t}let t=document.createElement(\"canvas\");return{width:t.width,height:t.height}=this.#nq,t.getContext(\"2d\").drawImage(this.#nq,0,0),t.toDataURL()}if(this.#n1){let[t,e]=this.pageDimensions,i=Math.round(this.width*t*tV.PDF_TO_CSS_UNITS),s=Math.round(this.height*e*tV.PDF_TO_CSS_UNITS),r=new OffscreenCanvas(i,s);return r.getContext(\"2d\").drawImage(this.#nq,0,0,this.#nq.width,this.#nq.height,0,0,i,s),r.transferToImageBitmap()}return structuredClone(this.#nq)}static async deserialize(t,e,i){let s=null;if(t instanceof st){let{data:{rect:r,rotation:n,id:a,structParent:o,popupRef:l},container:h,parent:{page:{pageNumber:d}}}=t,c=h.querySelector(\"canvas\"),u=i.imageManager.getFromCanvas(h.id,c);c.remove();let p=(await e._structTree.getAriaAttributes(`${tz}${a}`))?.get(\"aria-label\")||\"\";s=t={annotationType:tu.STAMP,bitmapId:u.id,bitmap:u.bitmap,pageIndex:d-1,rect:r.slice(0),rotation:n,id:a,deleted:!1,accessibilityData:{decorative:!1,altText:p},isSvg:!1,structParent:o,popupRef:l}}let r=await super.deserialize(t,e,i),{rect:n,bitmap:a,bitmapUrl:o,bitmapId:l,isSvg:h,accessibilityData:d}=t;l&&i.imageManager.isValidId(l)?(r.#nX=l,a&&(r.#nq=a)):r.#nY=o,r.#n1=h;let[c,u]=r.pageDimensions;return r.width=(n[2]-n[0])\/c,r.height=(n[3]-n[1])\/u,r.annotationElementId=t.id||null,d&&(r.altTextData=d),r._initialData=s,r.#n2=!!s,r}serialize(t=!1,e=null){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();let i={annotationType:tu.STAMP,bitmapId:this.#nX,pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:this.#n1,structTreeParentId:this._structTreeParentId};if(t)return i.bitmapUrl=this.#n9(!0),i.accessibilityData=this.serializeAltText(!0),i;let{decorative:s,altText:r}=this.serializeAltText(!1);if(!s&&r&&(i.accessibilityData={type:\"Figure\",alt:r}),this.annotationElementId){let t=this.#rn(i);if(t.isSame)return null;t.isSameAltText?delete i.accessibilityData:i.accessibilityData.structParent=this._initialData.structParent??-1}if(i.id=this.annotationElementId,null===e)return i;e.stamps||=new Map;let n=this.#n1?(i.rect[2]-i.rect[0])*(i.rect[3]-i.rect[1]):null;if(e.stamps.has(this.#nX)){if(this.#n1){let t=e.stamps.get(this.#nX);n>t.area&&(t.area=n,t.serialized.bitmap.close(),t.serialized.bitmap=this.#n9(!1))}}else e.stamps.set(this.#nX,{area:n,serialized:i}),i.bitmap=this.#n9(!1);return i}#rn(t){let{pageIndex:e,accessibilityData:{altText:i}}=this._initialData,s=t.pageIndex===e,r=(t.accessibilityData?.alt||\"\")===i;return{isSame:!this._hasBeenMoved&&!this._hasBeenResized&&s&&r,isSameAltText:r}}renderAnnotationElement(t){return t.updateEdited({rect:this.getRect(0,0)}),null}}class sw{#sJ;#at=!1;#ae=null;#ai=null;#as=null;#ar=new Map;#an=!1;#aa=!1;#ao=!1;#al=null;#ah=null;#ad=null;#ac=null;#g;static _initialized=!1;static #U=new Map([sr,sA,sv,sp].map(t=>[t._editorType,t]));constructor({uiManager:t,pageIndex:e,div:i,structTreeLayer:s,accessibilityManager:r,annotationLayer:n,drawLayer:a,textLayer:o,viewport:l,l10n:h}){const d=[...sw.#U.values()];if(!sw._initialized)for(const e of(sw._initialized=!0,d))e.initialize(h,t);t.registerEditorTypes(d),this.#g=t,this.pageIndex=e,this.div=i,this.#sJ=r,this.#ae=n,this.viewport=l,this.#ad=o,this.drawLayer=a,this._structTree=s,this.#g.addLayer(this)}get isEmpty(){return 0===this.#ar.size}get isInvisible(){return this.isEmpty&&this.#g.getMode()===tu.NONE}updateToolbar(t){this.#g.updateToolbar(t)}updateMode(t=this.#g.getMode()){switch(this.#au(),t){case tu.NONE:this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case tu.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case tu.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);let{classList:e}=this.div;for(let i of sw.#U.values())e.toggle(`${i._type}Editing`,t===i._editorType);this.div.hidden=!1}hasTextLayer(t){return t===this.#ad?.div}setEditingState(t){this.#g.setEditingState(t)}addCommands(t){this.#g.addCommands(t)}cleanUndoStack(t){this.#g.cleanUndoStack(t)}toggleDrawing(t=!1){this.div.classList.toggle(\"drawing\",!t)}togglePointerEvents(t=!1){this.div.classList.toggle(\"disabled\",!t)}toggleAnnotationLayerPointerEvents(t=!1){this.#ae?.div.classList.toggle(\"disabled\",!t)}async enable(){this.#ao=!0,this.div.tabIndex=0,this.togglePointerEvents(!0);let t=new Set;for(let e of this.#ar.values())e.enableEditing(),e.show(!0),e.annotationElementId&&(this.#g.removeChangedExistingAnnotation(e),t.add(e.annotationElementId));if(!this.#ae){this.#ao=!1;return}for(let e of this.#ae.getEditableAnnotations()){if(e.hide(),this.#g.isDeletedAnnotationElement(e.data.id)||t.has(e.data.id))continue;let i=await this.deserialize(e);i&&(this.addOrRebuild(i),i.enableEditing())}this.#ao=!1}disable(){this.#aa=!0,this.div.tabIndex=-1,this.togglePointerEvents(!1);let t=new Map,e=new Map;for(let i of this.#ar.values())i.disableEditing(),i.annotationElementId&&(null===i.serialize()?(e.set(i.annotationElementId,i),this.getEditableAnnotation(i.annotationElementId)?.show(),i.remove()):t.set(i.annotationElementId,i));if(this.#ae)for(let i of this.#ae.getEditableAnnotations()){let{id:s}=i.data;if(this.#g.isDeletedAnnotationElement(s))continue;let r=e.get(s);r?(r.resetAnnotationElement(i),r.show(!1)):(r=t.get(s))&&(this.#g.addChangedExistingAnnotation(r),r.renderAnnotationElement(i)&&r.show(!1)),i.show()}this.#au(),this.isEmpty&&(this.div.hidden=!0);let{classList:i}=this.div;for(let t of sw.#U.values())i.remove(`${t._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),this.#aa=!1}getEditableAnnotation(t){return this.#ae?.getEditableAnnotation(t)||null}setActiveEditor(t){this.#g.getActive()!==t&&this.#g.setActiveEditor(t)}enableTextSelection(){if(this.div.tabIndex=-1,this.#ad?.div&&!this.#ac){this.#ac=new AbortController;let t=this.#g.combinedSignal(this.#ac);this.#ad.div.addEventListener(\"pointerdown\",this.#ap.bind(this),{signal:t}),this.#ad.div.classList.add(\"highlighting\")}}disableTextSelection(){this.div.tabIndex=0,this.#ad?.div&&this.#ac&&(this.#ac.abort(),this.#ac=null,this.#ad.div.classList.remove(\"highlighting\"))}#ap(t){this.#g.unselectAll();let{target:e}=t;if(e===this.#ad.div||(\"img\"===e.getAttribute(\"role\")||e.classList.contains(\"endOfContent\"))&&this.#ad.div.contains(e)){let{isMac:e}=tO.platform;if(0!==t.button||t.ctrlKey&&e)return;this.#g.showAllEditors(\"highlight\",!0,!0),this.#ad.div.classList.add(\"free\"),this.toggleDrawing(),sp.startHighlighting(this,\"ltr\"===this.#g.direction,{target:this.#ad.div,x:t.x,y:t.y}),this.#ad.div.addEventListener(\"pointerup\",()=>{this.#ad.div.classList.remove(\"free\"),this.toggleDrawing(!0)},{once:!0,signal:this.#g._signal}),t.preventDefault()}}enableClick(){if(this.#ai)return;this.#ai=new AbortController;let t=this.#g.combinedSignal(this.#ai);this.div.addEventListener(\"pointerdown\",this.pointerdown.bind(this),{signal:t});let e=this.pointerup.bind(this);this.div.addEventListener(\"pointerup\",e,{signal:t}),this.div.addEventListener(\"pointercancel\",e,{signal:t})}disableClick(){this.#ai?.abort(),this.#ai=null}attach(t){this.#ar.set(t.id,t);let{annotationElementId:e}=t;e&&this.#g.isDeletedAnnotationElement(e)&&this.#g.removeDeletedAnnotationElement(t)}detach(t){this.#ar.delete(t.id),this.#sJ?.removePointerInTextLayer(t.contentDiv),!this.#aa&&t.annotationElementId&&this.#g.addDeletedAnnotationElement(t)}remove(t){this.detach(t),this.#g.removeEditor(t),t.div.remove(),t.isAttachedToDOM=!1}changeParent(t){t.parent!==this&&(t.parent&&t.annotationElementId&&(this.#g.addDeletedAnnotationElement(t.annotationElementId),ec.deleteAnnotationElement(t),t.annotationElementId=null),this.attach(t),t.parent?.detach(t),t.setParent(this),t.div&&t.isAttachedToDOM&&(t.div.remove(),this.div.append(t.div)))}add(t){if(t.parent!==this||!t.isAttachedToDOM){if(this.changeParent(t),this.#g.addEditor(t),this.attach(t),!t.isAttachedToDOM){let e=t.render();this.div.append(e),t.isAttachedToDOM=!0}t.fixAndSetPosition(),t.onceAdded(!this.#ao),this.#g.addToAnnotationStorage(t),t._reportTelemetry(t.telemetryInitialData)}}moveEditorInDOM(t){if(!t.isAttachedToDOM)return;let{activeElement:e}=document;t.div.contains(e)&&!this.#as&&(t._focusEventsAllowed=!1,this.#as=setTimeout(()=>{this.#as=null,t.div.contains(document.activeElement)?t._focusEventsAllowed=!0:(t.div.addEventListener(\"focusin\",()=>{t._focusEventsAllowed=!0},{once:!0,signal:this.#g._signal}),e.focus())},0)),t._structTreeParentId=this.#sJ?.moveElementInDOM(this.div,t.div,t.contentDiv,!0)}addOrRebuild(t){t.needsToBeRebuilt()?(t.parent||=this,t.rebuild(),t.show()):this.add(t)}addUndoableEditor(t){this.addCommands({cmd:()=>t._uiManager.rebuild(t),undo:()=>{t.remove()},mustExec:!1})}getNextId(){return this.#g.getId()}get #af(){return sw.#U.get(this.#g.getMode())}combinedSignal(t){return this.#g.combinedSignal(t)}#ag(t){let e=this.#af;return e?new e.prototype.constructor(t):null}canCreateNewEmptyEditor(){return this.#af?.canCreateNewEmptyEditor()}pasteEditor(t,e){this.#g.updateToolbar(t),this.#g.updateMode(t);let{offsetX:i,offsetY:s}=this.#am(),r=this.getNextId(),n=this.#ag({parent:this,id:r,x:i,y:s,uiManager:this.#g,isCentered:!0,...e});n&&this.add(n)}async deserialize(t){return await sw.#U.get(t.annotationType??t.annotationEditorType)?.deserialize(t,this,this.#g)||null}createAndAddNewEditor(t,e,i={}){let s=this.getNextId(),r=this.#ag({parent:this,id:s,x:t.offsetX,y:t.offsetY,uiManager:this.#g,isCentered:e,...i});return r&&this.add(r),r}#am(){let{x:t,y:e,width:i,height:s}=this.div.getBoundingClientRect(),r=Math.max(0,e),n=(Math.max(0,t)+Math.min(window.innerWidth,t+i))\/2-t,a=(r+Math.min(window.innerHeight,e+s))\/2-e,[o,l]=this.viewport.rotation%180==0?[n,a]:[a,n];return{offsetX:o,offsetY:l}}addNewEditor(){this.createAndAddNewEditor(this.#am(),!0)}setSelected(t){this.#g.setSelected(t)}toggleSelected(t){this.#g.toggleSelected(t)}unselect(t){this.#g.unselect(t)}pointerup(t){let{isMac:e}=tO.platform;!(0!==t.button||t.ctrlKey&&e)&&t.target===this.div&&this.#an&&(this.#an=!1,this.#af?.isDrawer&&this.#af.supportMultipleDrawings||(this.#at?this.#g.getMode()!==tu.STAMP?this.createAndAddNewEditor(t,!1):this.#g.unselectAll():this.#at=!0))}pointerdown(t){if(this.#g.getMode()===tu.HIGHLIGHT&&this.enableTextSelection(),this.#an){this.#an=!1;return}let{isMac:e}=tO.platform;if(0!==t.button||t.ctrlKey&&e||t.target!==this.div)return;if(this.#an=!0,this.#af?.isDrawer)return void this.startDrawingSession(t);let i=this.#g.getActive();this.#at=!i||i.isEmpty()}startDrawingSession(t){if(this.div.focus(),this.#al)return void this.#af.startDrawing(this,this.#g,!1,t);this.#g.setCurrentDrawingSession(this),this.#al=new AbortController;let e=this.#g.combinedSignal(this.#al);this.div.addEventListener(\"blur\",({relatedTarget:t})=>{t&&!this.div.contains(t)&&(this.#ah=null,this.commitOrRemove())},{signal:e}),this.#af.startDrawing(this,this.#g,!1,t)}pause(t){if(t){let{activeElement:t}=document;this.div.contains(t)&&(this.#ah=t)}else this.#ah&&setTimeout(()=>{this.#ah?.focus(),this.#ah=null},0)}endDrawingSession(t=!1){return this.#al?(this.#g.setCurrentDrawingSession(null),this.#al.abort(),this.#al=null,this.#ah=null,this.#af.endDrawing(t)):null}findNewParent(t,e,i){let s=this.#g.findParent(e,i);return null!==s&&s!==this&&(s.changeParent(t),!0)}commitOrRemove(){return!!this.#al&&(this.endDrawingSession(),!0)}onScaleChanging(){this.#al&&this.#af.onScaleChangingWhenDrawing(this)}destroy(){for(let t of(this.commitOrRemove(),this.#g.getActive()?.parent===this&&(this.#g.commitOrRemove(),this.#g.setActiveEditor(null)),this.#as&&(clearTimeout(this.#as),this.#as=null),this.#ar.values()))this.#sJ?.removePointerInTextLayer(t.contentDiv),t.setParent(null),t.isAttachedToDOM=!1,t.div.remove();this.div=null,this.#ar.clear(),this.#g.removeLayer(this)}#au(){for(let t of this.#ar.values())t.isEmpty()&&t.remove()}render({viewport:t}){for(let e of(this.viewport=t,t7(this.div,t),this.#g.getEditors(this.pageIndex)))this.add(e),e.rebuild();this.updateMode()}update({viewport:t}){this.#g.commitOrRemove(),this.#au();let e=this.viewport.rotation,i=t.rotation;if(this.viewport=t,t7(this.div,{rotation:i}),e!==i)for(let t of this.#ar.values())t.rotate(i)}get pageDimensions(){let{pageWidth:t,pageHeight:e}=this.viewport.rawDims;return[t,e]}get scale(){return this.#g.viewParameters.realScale}}class s_{#sP=null;#A=0;#ab=new Map;#ay=new Map;constructor({pageIndex:t}){this.pageIndex=t}setParent(t){if(this.#sP){if(this.#sP!==t){if(this.#ab.size>0)for(let e of this.#ab.values())e.remove(),t.append(e);this.#sP=t}}else this.#sP=t}static get _svgFactory(){return tS(this,\"_svgFactory\",new iF)}static #aA(t,[e,i,s,r]){let{style:n}=t;n.top=100*i+\"%\",n.left=100*e+\"%\",n.width=100*s+\"%\",n.height=100*r+\"%\"}#av(){let t=s_._svgFactory.create(1,1,!0);return this.#sP.append(t),t.setAttribute(\"aria-hidden\",!0),t}#aw(t,e){let i=s_._svgFactory.createElement(\"clipPath\");t.append(i);let s=`clip_${e}`;i.setAttribute(\"id\",s),i.setAttribute(\"clipPathUnits\",\"objectBoundingBox\");let r=s_._svgFactory.createElement(\"use\");return i.append(r),r.setAttribute(\"href\",`#${e}`),r.classList.add(\"clip\"),s}#a_(t,e){for(let[i,s]of Object.entries(e))null===s?t.removeAttribute(i):t.setAttribute(i,s)}draw(t,e=!1,i=!1){let s=this.#A++,r=this.#av(),n=s_._svgFactory.createElement(\"defs\");r.append(n);let a=s_._svgFactory.createElement(\"path\");n.append(a);let o=`path_p${this.pageIndex}_${s}`;a.setAttribute(\"id\",o),a.setAttribute(\"vector-effect\",\"non-scaling-stroke\"),e&&this.#ay.set(s,a);let l=i?this.#aw(n,o):null,h=s_._svgFactory.createElement(\"use\");return r.append(h),h.setAttribute(\"href\",`#${o}`),this.updateProperties(r,t),this.#ab.set(s,r),{id:s,clipPathId:`url(#${l})`}}drawOutline(t,e){let i,s=this.#A++,r=this.#av(),n=s_._svgFactory.createElement(\"defs\");r.append(n);let a=s_._svgFactory.createElement(\"path\");n.append(a);let o=`path_p${this.pageIndex}_${s}`;if(a.setAttribute(\"id\",o),a.setAttribute(\"vector-effect\",\"non-scaling-stroke\"),e){let t=s_._svgFactory.createElement(\"mask\");n.append(t),i=`mask_p${this.pageIndex}_${s}`,t.setAttribute(\"id\",i),t.setAttribute(\"maskUnits\",\"objectBoundingBox\");let e=s_._svgFactory.createElement(\"rect\");t.append(e),e.setAttribute(\"width\",\"1\"),e.setAttribute(\"height\",\"1\"),e.setAttribute(\"fill\",\"white\");let r=s_._svgFactory.createElement(\"use\");t.append(r),r.setAttribute(\"href\",`#${o}`),r.setAttribute(\"stroke\",\"none\"),r.setAttribute(\"fill\",\"black\"),r.setAttribute(\"fill-rule\",\"nonzero\"),r.classList.add(\"mask\")}let l=s_._svgFactory.createElement(\"use\");r.append(l),l.setAttribute(\"href\",`#${o}`),i&&l.setAttribute(\"mask\",`url(#${i})`);let h=l.cloneNode();return r.append(h),l.classList.add(\"mainOutline\"),h.classList.add(\"secondaryOutline\"),this.updateProperties(r,t),this.#ab.set(s,r),s}finalizeDraw(t,e){this.#ay.delete(t),this.updateProperties(t,e)}updateProperties(t,e){if(!e)return;let{root:i,bbox:s,rootClass:r,path:n}=e,a=\"number\"==typeof t?this.#ab.get(t):t;if(a){if(i&&this.#a_(a,i),s&&s_.#aA(a,s),r){let{classList:t}=a;for(let[e,i]of Object.entries(r))t.toggle(e,i)}if(n){let t=a.firstChild.firstChild;this.#a_(t,n)}}}updateParent(t,e){if(e===this)return;let i=this.#ab.get(t);i&&(e.#sP.append(i),this.#ab.delete(t),e.#ab.set(t,i))}remove(t){this.#ay.delete(t),null!==this.#sP&&(this.#ab.get(t).remove(),this.#ab.delete(t))}destroy(){for(let t of(this.#sP=null,this.#ab.values()))t.remove();this.#ab.clear(),this.#ay.clear()}}globalThis.pdfjsTestingUtils={HighlightOutliner:sl},tl.AbortException,tl.AnnotationEditorLayer,tl.AnnotationEditorParamsType,tl.AnnotationEditorType,tl.AnnotationEditorUIManager,tl.AnnotationLayer,tl.AnnotationMode,tl.ColorPicker,tl.DOMSVGFactory,tl.DrawLayer,tl.FeatureTest;var sx=tl.GlobalWorkerOptions,sE=(tl.ImageKind,tl.InvalidPDFException,tl.MissingPDFException,tl.OPS,tl.OutputScale,tl.PDFDataRangeTransport,tl.PDFDateString,tl.PDFWorker,tl.PasswordResponses,tl.PermissionFlag,tl.PixelsPerInch,tl.RenderingCancelledException,tl.TextLayer,tl.TouchManager,tl.UnexpectedResponseException,tl.Util,tl.VerbosityLevel,tl.XfaLayer,tl.build,tl.createValidAbsoluteUrl,tl.fetchData,tl.getDocument);tl.getFilenameFromUrl,tl.getPdfFilenameFromUrl,tl.getXfaPageViewport,tl.isDataScheme,tl.isPdfFile,tl.noContextMenu,tl.normalizeUnicode,tl.setLayerDimensions,tl.shadow,tl.stopEvent,tl.version,new class{initialize(){_af.ready(()=>{document.querySelectorAll(\".js-pdf-viewer\").forEach(t=>this.setup(t))})}setup(t){let e=t.dataset.file;if(!e)return;t.dataset.workerSrc&&!sx.workerSrc&&(sx.workerSrc=t.dataset.workerSrc);let i=t.querySelector(\".js-pdf-viewer-stage\"),s=t.querySelector(\".js-pdf-viewer-canvas\"),r=t.querySelector(\".js-pdf-viewer-status\"),n=t.querySelector(\".js-pdf-viewer-count\"),a=t.querySelector(\".js-pdf-viewer-prev\"),o=t.querySelector(\".js-pdf-viewer-next\"),l=t.querySelector(\".js-pdf-viewer-zoom-out\"),h=t.querySelector(\".js-pdf-viewer-zoom-in\"),d=t.querySelector(\".js-pdf-viewer-fullscreen\");if(!i||!s||!r)return;let c=s.getContext(\"2d\"),u=[a,o,l,h].filter(Boolean),p={rendering:t.dataset.renderingText||\"Rendering page...\",error:t.dataset.errorText||\"Unable to load PDF.\",pageError:t.dataset.pageErrorText||\"This page could not be displayed.\"},f=null,g=1,m=1,b=!1,y=!1,A=()=>{u.forEach(t=>{t.disabled=!0})},v=()=>{a&&(a.disabled=b||g<=1),o&&(o.disabled=b||!f||g>=f.numPages),l&&(l.disabled=b||m<=.5),h&&(h.disabled=b||m>=3)},w=async()=>{if(f){if(b){y=!0;return}b=!0,r.hidden=!1,r.textContent=p.rendering,v();try{let t=await f.getPage(g),e=t.getViewport({scale:1}),a=Math.max(320,i.clientWidth-24),o=Math.max(320,i.clientHeight-24),l=Math.min(a\/e.width,o\/e.height),h=t.getViewport({scale:Math.max(.1,l*m)});s.width=Math.floor(h.width),s.height=Math.floor(h.height),await t.render({canvasContext:c,viewport:h}).promise,n&&(n.textContent=`${g} \/ ${f.numPages}`),r.hidden=!0}catch{r.hidden=!1,r.textContent=p.pageError}finally{b=!1,v(),y&&(y=!1,await w())}}},_=async t=>{if(!f||b)return;let e=Math.min(Math.max(1,t),f.numPages);e!==g&&(g=e,await w())},x=async t=>{if(b)return;let e=Math.min(3,Math.max(.5,m+t));e!==m&&(m=e,await w())};a?.addEventListener(\"click\",()=>_(g-1)),o?.addEventListener(\"click\",()=>_(g+1)),l?.addEventListener(\"click\",()=>x(-.2)),h?.addEventListener(\"click\",()=>x(.2)),d?.addEventListener(\"click\",()=>{document.fullscreenElement?document.exitFullscreen?.():t.requestFullscreen?.()}),t.addEventListener(\"keydown\",t=>{\"ArrowLeft\"===t.key?(t.preventDefault(),_(g-1)):\"ArrowRight\"===t.key&&(t.preventDefault(),_(g+1))}),window.addEventListener(\"resize\",_af.debounce(()=>w(),180)),A(),sE(e).promise.then(t=>(f=t,n&&(n.textContent=`${g} \/ ${f.numPages}`),w())).catch(()=>{A(),r.hidden=!1,r.textContent=p.error})}}().initialize()}();<\/script>\n<style id=\"airfleet-lightyear-blocks-title-file-and-links-default-entry-styles\" type=\"text\/css\">@keyframes lobby-loader-spin{to{transform:rotate(360deg)}}@keyframes lobby-placeholder-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.afb-title-file-and-links:has(>.afc-background>.afc-background__item--default)>.afc-background>.afc-background__item--default{background:#f3f3f3}.afb-title-file-and-links>.afc-background{padding-block:80px}@media (width<1024px){.afb-title-file-and-links>.afc-background{padding-block:30px 40px}}.afb-title-file-and-links__header{text-align:center;margin-bottom:30px}@media (width<1024px){.afb-title-file-and-links__header{margin-bottom:26px}}.afb-title-file-and-links__tagline-wrapper{justify-content:center;align-items:center;gap:8px;margin-bottom:20px;display:flex}@media (width<1024px){.afb-title-file-and-links__tagline-wrapper{margin-bottom:12px}}@media (width>=1024px){.afb-title-file-and-links__tagline.afc-title--style-default,.afb-title-file-and-links__tagline.afu-title-style--default{font-family:var(--afs-text-p3-m-desktop-font-family);font-size:var(--afs-text-p3-m-desktop-font-size);font-style:var(--afs-text-p3-m-desktop-font-style);font-weight:var(--afs-text-p3-m-desktop-font-weight);letter-spacing:var(--afs-text-p3-m-desktop-letter-spacing);line-height:var(--afs-text-p3-m-desktop-line-height)}}@media (width<1024px){.afb-title-file-and-links__tagline.afc-title--style-default,.afb-title-file-and-links__tagline.afu-title-style--default{font-family:var(--afs-text-p3-m-mobile-font-family);font-size:var(--afs-text-p3-m-mobile-font-size);font-style:var(--afs-text-p3-m-mobile-font-style);font-weight:var(--afs-text-p3-m-mobile-font-weight);letter-spacing:var(--afs-text-p3-m-mobile-letter-spacing);line-height:var(--afs-text-p3-m-mobile-line-height)}}.afb-title-file-and-links__tagline.afu-color--text-default{color:var(--afu-color-primary-1)}@media (width>=1024px){.afb-title-file-and-links__title.afc-title--style-default,.afb-title-file-and-links__title.afu-title-style--default{font-family:var(--afs-title-h2-desktop-font-family);font-size:var(--afs-title-h2-desktop-font-size);font-style:var(--afs-title-h2-desktop-font-style);font-weight:var(--afs-title-h2-desktop-font-weight);letter-spacing:var(--afs-title-h2-desktop-letter-spacing);line-height:var(--afs-title-h2-desktop-line-height)}}@media (width<1024px){.afb-title-file-and-links__title.afc-title--style-default,.afb-title-file-and-links__title.afu-title-style--default{font-family:var(--afs-title-h2-mobile-font-family);font-size:var(--afs-title-h2-mobile-font-size);font-style:var(--afs-title-h2-mobile-font-style);font-weight:var(--afs-title-h2-mobile-font-weight);letter-spacing:var(--afs-title-h2-mobile-letter-spacing);line-height:var(--afs-title-h2-mobile-line-height)}}.afb-title-file-and-links__title.afu-color--text-default{color:var(--afu-color-text-b-heading)}.afb-title-file-and-links__file{color:#f8f8f8;width:100%;height:613px;font-family:var(--afs-font-family-primary);background:#0d0f12;border:0;border-radius:8px;flex-direction:column;margin-top:30px;display:flex;overflow:hidden}.afb-title-file-and-links__file:focus-visible{outline:2px solid var(--afu-color-primary-1);outline-offset:2px}.afb-title-file-and-links__file:fullscreen{border-radius:0;height:100%}@media (width<1024px){.afb-title-file-and-links__file{height:280px}}.afb-title-file-and-links__file-stage{background:#000;flex:1;justify-content:center;align-items:center;padding:12px;display:flex;position:relative;overflow:hidden}.afb-title-file-and-links__file-canvas{margin:auto;display:block}.afb-title-file-and-links__file-status{text-align:center;color:#bfc5cf;background:#0000006b;justify-content:center;align-items:center;padding:20px;display:flex;position:absolute;inset:0}.afb-title-file-and-links__file-status[hidden]{display:none}.afb-title-file-and-links__file-controls{background:#171a1f;border-top:1px solid #ffffff24;justify-content:space-between;align-items:center;gap:16px;min-height:48px;padding:0 16px;display:flex}.afb-title-file-and-links__file-group{align-items:center;gap:6px;display:flex}.afb-title-file-and-links__file-button{color:#f8f8f8;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:4px;min-width:32px;height:32px;font-family:inherit;font-size:16px;line-height:1}.afb-title-file-and-links__file-button:hover{background:#ffffff14;border-color:#ffffff24}.afb-title-file-and-links__file-button:disabled{opacity:.45;cursor:not-allowed}.afb-title-file-and-links__file-count{text-align:center;color:#f8f8f8;min-width:74px;font-size:14px}.afb-title-file-and-links__file-hint{color:#bfc5cf;font-size:12px}@media (width<1024px){.afb-title-file-and-links__file-hint{display:none}}.afb-title-file-and-links__links{flex-wrap:wrap;justify-content:center;align-items:center;gap:16px;margin-top:30px;display:flex}@media (width<768px){.afb-title-file-and-links__links{flex-direction:column;align-items:stretch;gap:8px;margin-top:26px}}.afb-title-file-and-links__link{justify-content:center;align-items:center;display:flex}@media (width>=1024px){.afb-title-file-and-links__link{font-family:var(--afs-text-p4-r-desktop-font-family);font-size:var(--afs-text-p4-r-desktop-font-size);font-style:var(--afs-text-p4-r-desktop-font-style);font-weight:var(--afs-text-p4-r-desktop-font-weight);letter-spacing:var(--afs-text-p4-r-desktop-letter-spacing);line-height:var(--afs-text-p4-r-desktop-line-height)}}@media (width<1024px){.afb-title-file-and-links__link{font-family:var(--afs-text-p4-r-mobile-font-family);font-size:var(--afs-text-p4-r-mobile-font-size);font-style:var(--afs-text-p4-r-mobile-font-style);font-weight:var(--afs-text-p4-r-mobile-font-weight);letter-spacing:var(--afs-text-p4-r-mobile-letter-spacing);line-height:var(--afs-text-p4-r-mobile-line-height)}}.afb-title-file-and-links__link{border:1px solid var(--afu-color-primary-1);color:var(--afu-color-primary-1);border-radius:100px;gap:8px;padding:8px 20px;text-decoration:none}@media (width<768px){.afb-title-file-and-links__link{gap:6px;padding-block:7px}.afb-title-file-and-links__link span{flex-basis:88px}}.afb-title-file-and-links__icon{flex-shrink:0;flex-basis:24px}@media (width<768px){.afb-title-file-and-links__icon{flex-basis:20px}}.afb-title-file-and-links__buttons{justify-content:center;align-items:center;margin-top:80px;display:flex}@media (width<1024px){.afb-title-file-and-links__buttons{margin-top:26px}}<\/style>\n\n\n<section class=\"afb-featured-resources\" data-af-view=\"blocks-featured-resources\">\n\t<div class=\"afc-background\" data-af-view=\"elements-partials-background\">\n\t\t\t<div class=\"afp-color afu-color--background-white afc-color afc-background-color afc-flexible__item-0 afc-background__item\" data-af-view=\"elements-partials-color\"><\/div>\t\t<div class=\"afc-background__content\">\n\t\t<div class=\"container afb-featured-resources__container\">\n\t\t\t<div class=\"afb-featured-resources__header\">\n\t\t\t\t\t\t\t\t\t<h2 class=\"afc-title afc-title--advanced afu-title-style--default afb-featured-resources__title afu-color--text-default\" data-af-view=\"elements-partials-title\">En las noticias<\/h2>\t\t\t\t\n\t\t\t\t\t\t\t\t\t<a href=\"\/es\/newsroom\/\" target=\"_self\" class=\"afc-button afc-button--link afc-button--style-primary afc-flexible__item-0 afb-featured-resources__buttons\" data-af-view=\"elements-partials-button\">\t<span class=\"afc-button__content\">\n\t\tVer todas las noticias\t<\/span>\n\t<\/a>\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t\t\t<div class=\"afb-featured-resources__posts\">\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"afc-single-news\" data-af-view=\"components-single-news\">\n\t<a class=\"afc-single-news__link\" href=\"https:\/\/stoppress.co.nz\/partner-articles\/ask-perion-brings-smarter-faster-planning-to-nzs-dooh\/\" target=\"_blank\" rel=\"noopener noreferrer\" title=\"Ask Perion brings smarter, faster planning to NZ\u2019s DOOH\" aria-label=\"Ask Perion brings smarter, faster planning to NZ\u2019s DOOH\"><\/a>\n\t\t\t<div class=\"afc-single-news__image\">\n\t\t\t<img decoding=\"async\" class=\"afc-image\" src=\"https:\/\/perion.com\/wp-content\/uploads\/2026\/07\/Stoppress.png\" alt=\"\" loading=\"lazy\" data-af-view=\"elements-components-image\" \/>\t\t<\/div>\n\t\n\t<div class=\"afc-single-news__body\">\n\t\t<h5 class=\"afc-single-news__title afu-title-style--default afu-color--text-default\">Ask Perion brings smarter, faster planning to NZ\u2019s DOOH<\/h5>\n\n\t\t\n\t\t<div class=\"afc-single-news__meta\">\n\t\t\t<span class=\"afc-single-news__meta-date\">24 Nov 2026<\/span>\n\t\t<\/div>\n\n\t\t\t\t\t<div class=\"afc-single-news__read-more afc-button\">\n\t\t\t\t<div class=\"afc-button__content\">Leer m\u00e1s<\/div>\n\t\t\t\t<div class=\"afc-button__icon\"><svg width=\"10\" height=\"9\" viewBox=\"0 0 10 9\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M0.5 4.5H8.5M4.5 8.5L8.5 4.5L4.5 0.5\" stroke=\"#00101A\" stroke-linecap=\"round\"\/><\/svg><\/div>\n\t\t\t<\/div>\n\t\t    <\/div>\n<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"afc-single-news\" data-af-view=\"components-single-news\">\n\t<a class=\"afc-single-news__link\" href=\"https:\/\/www.adnews.com.au\/news\/industry-profile-thomas-pe-a-at-perion\" target=\"_blank\" rel=\"noopener noreferrer\" title=\"Industry Profile: Thomas Pe\u00f1a at Perion\" aria-label=\"Industry Profile: Thomas Pe\u00f1a at Perion\"><\/a>\n\t\t\t<div class=\"afc-single-news__image\">\n\t\t\t<img decoding=\"async\" class=\"afc-image\" src=\"https:\/\/perion.com\/wp-content\/uploads\/AdNews-Logo-e1785843215513.webp\" alt=\"\" loading=\"lazy\" data-af-view=\"elements-components-image\" \/>\t\t<\/div>\n\t\n\t<div class=\"afc-single-news__body\">\n\t\t<h5 class=\"afc-single-news__title afu-title-style--default afu-color--text-default\">Industry Profile: Thomas Pe\u00f1a at Perion<\/h5>\n\n\t\t\n\t\t<div class=\"afc-single-news__meta\">\n\t\t\t<span class=\"afc-single-news__meta-date\">24 Nov 2026<\/span>\n\t\t<\/div>\n\n\t\t\t\t\t<div class=\"afc-single-news__read-more afc-button\">\n\t\t\t\t<div class=\"afc-button__content\">Leer m\u00e1s<\/div>\n\t\t\t\t<div class=\"afc-button__icon\"><svg width=\"10\" height=\"9\" viewBox=\"0 0 10 9\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M0.5 4.5H8.5M4.5 8.5L8.5 4.5L4.5 0.5\" stroke=\"#00101A\" stroke-linecap=\"round\"\/><\/svg><\/div>\n\t\t\t<\/div>\n\t\t    <\/div>\n<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"afc-single-news\" data-af-view=\"components-single-news\">\n\t<a class=\"afc-single-news__link\" href=\"https:\/\/www.mediaweek.com.au\/perion-summer-programmatic-dooh\" target=\"_blank\" rel=\"noopener noreferrer\" title=\"What programmatic DOOH gives advertisers this summer\" aria-label=\"What programmatic DOOH gives advertisers this summer\"><\/a>\n\t\t\t<div class=\"afc-single-news__image\">\n\t\t\t<img decoding=\"async\" class=\"afc-image\" src=\"https:\/\/perion.com\/wp-content\/uploads\/Mediaweek-logo-e1793704084783.jpeg\" alt=\"\" loading=\"lazy\" data-af-view=\"elements-components-image\" \/>\t\t<\/div>\n\t\n\t<div class=\"afc-single-news__body\">\n\t\t<h5 class=\"afc-single-news__title afu-title-style--default afu-color--text-default\">What programmatic DOOH gives advertisers this summer<\/h5>\n\n\t\t\n\t\t<div class=\"afc-single-news__meta\">\n\t\t\t<span class=\"afc-single-news__meta-date\">24 Nov 2026<\/span>\n\t\t<\/div>\n\n\t\t\t\t\t<div class=\"afc-single-news__read-more afc-button\">\n\t\t\t\t<div class=\"afc-button__content\">Leer m\u00e1s<\/div>\n\t\t\t\t<div class=\"afc-button__icon\"><svg width=\"10\" height=\"9\" viewBox=\"0 0 10 9\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M0.5 4.5H8.5M4.5 8.5L8.5 4.5L4.5 0.5\" stroke=\"#00101A\" stroke-linecap=\"round\"\/><\/svg><\/div>\n\t\t\t<\/div>\n\t\t    <\/div>\n<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"afc-single-news\" data-af-view=\"components-single-news\">\n\t<a class=\"afc-single-news__link\" href=\"https:\/\/www.thedrum.com\/industry-insight\/in-store-is-the-overlooked-last-step-of-a-retail-media-campaign\" target=\"_blank\" rel=\"noopener noreferrer\" title=\"In-store is the overlooked last step of a retail media campaign\" aria-label=\"In-store is the overlooked last step of a retail media campaign\"><\/a>\n\t\t\t<div class=\"afc-single-news__image\">\n\t\t\t<img decoding=\"async\" class=\"afc-image\" src=\"https:\/\/perion.com\/wp-content\/uploads\/The-Drum-Logo-2-e1785844451741.png\" alt=\"\" loading=\"lazy\" data-af-view=\"elements-components-image\" \/>\t\t<\/div>\n\t\n\t<div class=\"afc-single-news__body\">\n\t\t<h5 class=\"afc-single-news__title afu-title-style--default afu-color--text-default\">In-store is the overlooked last step of a retail media campaign<\/h5>\n\n\t\t\n\t\t<div class=\"afc-single-news__meta\">\n\t\t\t<span class=\"afc-single-news__meta-date\">24 Nov 2026<\/span>\n\t\t<\/div>\n\n\t\t\t\t\t<div class=\"afc-single-news__read-more afc-button\">\n\t\t\t\t<div class=\"afc-button__content\">Leer m\u00e1s<\/div>\n\t\t\t\t<div class=\"afc-button__icon\"><svg width=\"10\" height=\"9\" viewBox=\"0 0 10 9\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M0.5 4.5H8.5M4.5 8.5L8.5 4.5L4.5 0.5\" stroke=\"#00101A\" stroke-linecap=\"round\"\/><\/svg><\/div>\n\t\t\t<\/div>\n\t\t    <\/div>\n<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\t<\/div>\n<\/div>\n<\/section>\n<style id=\"airfleet-lightyear-blocks-featured-resources-default-entry-styles\" type=\"text\/css\">@keyframes lobby-loader-spin{to{transform:rotate(360deg)}}@keyframes lobby-placeholder-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.afb-featured-resources:has(>.afc-background>.afc-background__item--default)>.afc-background>.afc-background__item--default{background:var(--afu-color-secondary-1)}.afb-featured-resources>.afc-background{padding-block:80px 120px}@media (width<1024px){.afb-featured-resources>.afc-background{padding-block:40px 50px}}.afb-featured-resources__header{justify-content:space-between;align-items:center;gap:0 26px;margin-bottom:50px;display:flex}@media (width<1024px){.afb-featured-resources__header{margin-bottom:40px}}@media (width>=1024px){.afb-featured-resources__title.afc-title--style-default,.afb-featured-resources__title.afu-title-style--default{font-family:var(--afs-title-h2-desktop-font-family);font-size:var(--afs-title-h2-desktop-font-size);font-style:var(--afs-title-h2-desktop-font-style);font-weight:var(--afs-title-h2-desktop-font-weight);letter-spacing:var(--afs-title-h2-desktop-letter-spacing);line-height:var(--afs-title-h2-desktop-line-height)}}@media (width<1024px){.afb-featured-resources__title.afc-title--style-default,.afb-featured-resources__title.afu-title-style--default{font-family:var(--afs-title-h2-mobile-font-family);font-size:var(--afs-title-h2-mobile-font-size);font-style:var(--afs-title-h2-mobile-font-style);font-weight:var(--afs-title-h2-mobile-font-weight);letter-spacing:var(--afs-title-h2-mobile-letter-spacing);line-height:var(--afs-title-h2-mobile-line-height)}.afb-featured-resources__title{flex:41%}}.afb-featured-resources__posts{grid-template-columns:repeat(4,minmax(0,1fr));gap:30px;display:grid}@media (width<1024px){.afb-featured-resources__posts{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 16px}.afb-featured-resources__posts .afc-single-post__image,.afb-featured-resources__posts .afc-single-post__image img{aspect-ratio:160\/90}}<\/style>\n<style id=\"airfleet-lightyear-components-single-news-default-entry-styles\" type=\"text\/css\">@keyframes lobby-loader-spin{to{transform:rotate(360deg)}}@keyframes lobby-placeholder-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.afc-single-news{position:relative}.afc-single-news__link{z-index:15;position:absolute;inset:0}.afc-single-news__image{border-radius:10px;margin-bottom:16px;overflow:hidden}.afc-single-news__image,.afc-single-news__image img{display:block}.afc-single-news__image img{transition-duration:var(--afs-trs-sm);transition-property:transform;transition-timing-function:var(--afs-trs-timing-function)}.afc-single-news__meta{font-family:var(--afs-font-family-primary);letter-spacing:-.02em;opacity:.5;font-size:.875rem;font-weight:400;line-height:1.6}.afc-single-news .afc-single-news__read-more{all:unset;text-align:center;box-sizing:border-box;color:currentColor;justify-content:center;align-items:center;display:inline-flex}.afc-single-news .afc-single-news__read-more:not(:disabled,.disabled){cursor:pointer}.afc-single-news .afc-single-news__read-more{--afs-button-padding-y-absolute:calc(var(--afs-button-padding-y) - var(--afs-button-border-width));--afs-button-padding-x-absolute:calc(var(--afs-button-padding-x) - var(--afs-button-border-width));font-family:var(--afs-button-font-family);font-size:var(--afs-button-font-size);font-weight:var(--afs-button-font-weight,500);font-style:var(--afs-button-font-style,normal);line-height:var(--afs-button-line-height);letter-spacing:var(--afs-button-letter-spacing);border:var(--afs-button-border-width)var(--afs-button-border-style,solid)var(--afs-button-border-color);border-radius:var(--afs-button-border-radius);background:var(--afs-button-background);color:var(--afs-button-text-color);padding:var(--afs-button-padding-y-absolute)var(--afs-button-padding-x-absolute);box-shadow:var(--afs-button-shadow-x)var(--afs-button-shadow-y)var(--afs-button-shadow-blur)var(--afs-button-shadow-spread)var(--afs-button-shadow-color);text-transform:var(--afs-button-text-transform,none);gap:var(--afs-button-gap-y,0)var(--afs-button-gap-x,0)}.afc-single-news .afc-single-news__read-more:focus,.afc-single-news .afc-single-news__read-more:hover,.afc-single-news .afc-single-news__read-more:active{background:var(--afs-button-background-hover);color:var(--afs-button-text-color-hover);box-shadow:var(--afs-button-shadow-x-hover,var(--afs-button-shadow-x))var(--afs-button-shadow-y-hover,var(--afs-button-shadow-y))var(--afs-button-shadow-blur-hover,var(--afs-button-shadow-blur))var(--afs-button-shadow-spread-hover,var(--afs-button-shadow-spread))var(--afs-button-shadow-color-hover,var(--afs-button-shadow-color));border:var(--afs-button-border-width-hover,var(--afs-button-border-width))var(--afs-button-border-style-hover,var(--afs-button-border-style))var(--afs-button-border-color-hover,var(--afs-button-border-color))}.afc-single-news .afc-single-news__read-more svg{width:100%;height:auto}.afc-single-news .afc-single-news__read-more{--afs-button-font-size:15px;--afs-button-border-width:0px;--afs-button-border-color:transparent;--afs-button-border-radius:0px;--afs-button-padding-y:0px;--afs-button-padding-x:0px;--afs-button-background:transparent;--afs-button-background-hover:transparent;--afs-button-shadow-x:0;--afs-button-shadow-y:0;--afs-button-shadow-blur:0;--afs-button-shadow-spread:0;--afs-button-shadow-color:transparent}@media (width<1024px){.afc-single-news .afc-single-news__read-more{--afs-button-font-size:14px}}.afc-single-news .afc-single-news__read-more{--afs-button-text-color:var(--afu-color-text-b-heading);--afs-button-text-color-hover:var(--afu-color-primary-1)}.afc-single-news .afc-single-news__read-more.afc-button--variation-icon-arrow .afc-button__icon{display:none}.afc-single-news .afc-single-news__read-more.afc-button--variation-icon-arrow:focus .afc-button__icon,.afc-single-news .afc-single-news__read-more.afc-button--variation-icon-arrow:hover .afc-button__icon,.afc-single-news .afc-single-news__read-more.afc-button--variation-icon-arrow:active .afc-button__icon{display:inline-flex}@media (width<1024px){.afc-single-news .afc-single-news__read-more.afc-button--variation-icon-arrow .afc-button__icon{display:inline-flex}}.afc-single-news .afc-single-news__read-more{--afs-button-gap-x:8px;--afs-button-icon-flex-basis:10px;margin-top:16px}@media (width<1024px){.afc-single-news .afc-single-news__read-more{margin-top:8px}}.afc-single-news .afc-single-news__read-more svg{transition-duration:var(--afs-trs-sm);transition-property:transform;transition-timing-function:var(--afs-trs-timing-function)}.afc-single-news:hover .afc-single-news__image img,.afc-single-news:focus-within .afc-single-news__image img{transform:scale(1.05)}.afc-single-news:hover .afc-single-news__read-more svg,.afc-single-news:focus-within .afc-single-news__read-more svg{transform:translate(2px)}@media (width<1024px){.afb-news-lobby__featured-news{border-block:1px solid var(--afu-color-stroke);margin-bottom:16px;padding-block:20px 30px}}.afb-news-lobby__featured-news .afc-single-news__image{border:1px solid var(--afu-color-stroke);background-color:var(--afu-color-secondary-1);justify-content:center;align-items:center;height:354px;margin-bottom:30px;padding:20px;display:flex}@media (width<1024px){.afb-news-lobby__featured-news .afc-single-news__image{height:190px;margin-bottom:16px}}.afb-news-lobby__featured-news .afc-single-news__image img{object-fit:contain;max-height:100px}@media (width<1024px){.afb-news-lobby__featured-news .afc-single-news__image img{max-height:54px}}.afb-news-lobby__featured-news .afc-single-news__title{margin-bottom:16px}.afb-news-lobby__featured-news .afc-single-news__title.afc-title--style-default,.afb-news-lobby__featured-news .afc-single-news__title.afu-title-style--default{--afs-title-font-family:var(--afs-font-family-primary);--afs-title-font-size:1.5rem;--afs-title-font-weight:400;--afs-title-line-height:1.5;--afs-title-letter-spacing:-.02em}@media (width<1024px){.afb-news-lobby__featured-news .afc-single-news__title.afc-title--style-default,.afb-news-lobby__featured-news .afc-single-news__title.afu-title-style--default{--afs-title-font-size:1rem;--afs-title-line-height:1.45}}.afc-single-news:not(.afb-news-lobby__featured-news) .afc-single-news__image{border:1px solid var(--afu-color-stroke);background-color:var(--afu-color-secondary-1);justify-content:center;align-items:center;height:160px;padding:20px;display:flex}@media (width<1024px){.afc-single-news:not(.afb-news-lobby__featured-news) .afc-single-news__image{height:90px}}.afc-single-news:not(.afb-news-lobby__featured-news) .afc-single-news__image img{object-fit:contain;height:120px}@media (width<1024px){.afc-single-news:not(.afb-news-lobby__featured-news) .afc-single-news__image img{max-height:60px}}.afc-single-news:not(.afb-news-lobby__featured-news) .afc-single-news__title{margin-bottom:16px}@media (width<1024px){.afc-single-news:not(.afb-news-lobby__featured-news) .afc-single-news__title{margin-bottom:12px}}.afc-single-news:not(.afb-news-lobby__featured-news) .afc-single-news__title.afc-title--style-default,.afc-single-news:not(.afb-news-lobby__featured-news) .afc-single-news__title.afu-title-style--default{--afs-title-font-family:var(--afs-font-family-primary);--afs-title-font-size:1rem;--afs-title-font-weight:400;--afs-title-line-height:1.45;--afs-title-letter-spacing:-.02em}@media (width<1024px){.afc-single-news:not(.afb-news-lobby__featured-news) .afc-single-news__title.afc-title--style-default,.afc-single-news:not(.afb-news-lobby__featured-news) .afc-single-news__title.afu-title-style--default{--afs-title-font-size:.8125rem;--afs-title-line-height:1.4}}<\/style>\n\n\n<section class=\"afb-press-and-ir-events\" data-af-view=\"blocks-press-and-ir-events\">\n    <div class=\"afc-background\" data-af-view=\"elements-partials-background\">\n\t\t\t<div class=\"afc-background__item afc-background__item--default\"><\/div>\n\t\t<div class=\"afc-background__content\">\n\t\t<div class=\"container afb-press-and-ir-events__container\">\n\t\t\t<div class=\"afb-press-and-ir-events__cols\">\n\t\t\t\t<div class=\"afc-background\" data-af-view=\"elements-partials-background\">\n\t\t\t<div class=\"afc-background__item afc-background__item--default\"><\/div>\n\t\t<div class=\"afc-background__content\">\n\t\t<div class=\"afb-press-and-ir-events__col\">\n\t\t\t<h3 class=\"afc-title afc-title--advanced afu-title-style--default afb-press-and-ir-events__title afu-color--text-default\" data-af-view=\"elements-partials-title\">Comunicados de prensa<\/h3>\t\n\t\t\t<div class=\"afb-press-and-ir-events__posts\">\n\t\t\t\t\t\t\t<div class=\"afb-press-and-ir-events__post\">\n\t\t\t\t\t<div class=\"afb-press-and-ir-events__post-title\">Perion Reports Third Quarter 2026 Results<\/div>\n\t\t\t\t\t<div class=\"afb-press-and-ir-events__post-date\">\n\t\t\t\t\t\t16 noviembre, 2026\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<a href=\"https:\/\/perion.com\/es\/investors\/press\/perion-reports-third-quarter-2026-results\/\" class=\"afb-press-and-ir-events__post-link\">\n\t\t\t\t\t\tLeer m\u00e1s\n\t\t\t\t\t\t<svg class=\"afb-press-and-ir-events__post-link-icon\" width=\"10\" height=\"9\" viewBox=\"0 0 10 9\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t<path d=\"M0.5 4.5H8.5M4.5 8.5L8.5 4.5L4.5 0.5\" stroke=\"currentColor\" stroke-linecap=\"round\"\/>\n\t\t\t\t\t\t<\/svg>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"afb-press-and-ir-events__post\">\n\t\t\t\t\t<div class=\"afb-press-and-ir-events__post-title\">Perion to Announce Third Quarter Financial Results on Monday, November 16, 2026<\/div>\n\t\t\t\t\t<div class=\"afb-press-and-ir-events__post-date\">\n\t\t\t\t\t\t2 noviembre, 2026\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<a href=\"https:\/\/perion.com\/es\/investors\/press\/perion-to-announce-third-quarter-financial-results-on-monday-november-16-2026\/\" class=\"afb-press-and-ir-events__post-link\">\n\t\t\t\t\t\tLeer m\u00e1s\n\t\t\t\t\t\t<svg class=\"afb-press-and-ir-events__post-link-icon\" width=\"10\" height=\"9\" viewBox=\"0 0 10 9\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t<path d=\"M0.5 4.5H8.5M4.5 8.5L8.5 4.5L4.5 0.5\" stroke=\"currentColor\" stroke-linecap=\"round\"\/>\n\t\t\t\t\t\t<\/svg>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"afb-press-and-ir-events__post\">\n\t\t\t\t\t<div class=\"afb-press-and-ir-events__post-title\">Perion Enters into Definitive Merger Agreement with Affle<\/div>\n\t\t\t\t\t<div class=\"afb-press-and-ir-events__post-date\">\n\t\t\t\t\t\t1 noviembre, 2026\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<a href=\"https:\/\/perion.com\/es\/investors\/press\/perion-enters-into-definitive-merger-agreement-with-affle\/\" class=\"afb-press-and-ir-events__post-link\">\n\t\t\t\t\t\tLeer m\u00e1s\n\t\t\t\t\t\t<svg class=\"afb-press-and-ir-events__post-link-icon\" width=\"10\" height=\"9\" viewBox=\"0 0 10 9\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t<path d=\"M0.5 4.5H8.5M4.5 8.5L8.5 4.5L4.5 0.5\" stroke=\"currentColor\" stroke-linecap=\"round\"\/>\n\t\t\t\t\t\t<\/svg>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\n\t\t\t<div class=\"afb-press-and-ir-events__buttons\">\n\t\t\t<a href=\"\/investors\/press\/\" target=\"_self\" class=\"afc-button afc-button--link afc-button--style-secondary afc-flexible__item-0 afb-press-and-ir-events__button\" data-af-view=\"elements-partials-button\">\t<span class=\"afc-button__content\">\n\t\tVer todos los comunicados de prensa\t<\/span>\n\t<\/a>\t\t<\/div>\n\t<\/div>\t<\/div>\n<\/div>\n\n\t\t\t\t<div class=\"afc-background\" data-af-view=\"elements-partials-background\">\n\t\t\t<div class=\"afc-background__item afc-background__item--default\"><\/div>\n\t\t<div class=\"afc-background__content\">\n\t\t<div class=\"afb-press-and-ir-events__col\">\n\t\t\t<h3 class=\"afc-title afc-title--advanced afu-title-style--default afb-press-and-ir-events__title afu-color--text-default\" data-af-view=\"elements-partials-title\">Eventos de RI<\/h3>\t\n\t\t\t<div class=\"afb-press-and-ir-events__no-posts\">No hay pr\u00f3ximos eventos<\/div>\n\t\n\t\t\t<div class=\"afb-press-and-ir-events__buttons\">\n\t\t\t<a href=\"\/investors\/ir-events\/\" target=\"_self\" class=\"afc-button afc-button--link afc-button--style-link-2 afc-button--variation-icon-arrow afc-flexible__item-0 afb-press-and-ir-events__button\" data-af-view=\"elements-partials-button\">\t<span class=\"afc-button__content\">\n\t\tEventos anteriores\t<\/span>\n\t\t\t<span class=\"afc-button__icon\"><svg width=\"8\" height=\"8\" viewBox=\"0 0 10 10\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" aria-hidden=\"true\" focusable=\"false\">\n\t<path d=\"M0 5.63686V4.39024H7.56098L3.78049 0.867209L4.63415 0L9.4851 4.6206V5.36585L4.63415 10L3.78049 9.13279L7.53388 5.63686H0Z\" fill=\"currentColor\"\/>\n<\/svg>\n<\/span>\n\t<\/a>\t\t<\/div>\n\t<\/div>\t<\/div>\n<\/div>\n\t\t\t<\/div>\n        <\/div>\t<\/div>\n<\/div>\n<\/section>\n<style id=\"airfleet-lightyear-blocks-press-and-ir-events-default-entry-styles\" type=\"text\/css\">@keyframes lobby-loader-spin{to{transform:rotate(360deg)}}@keyframes lobby-placeholder-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.afb-press-and-ir-events>.afc-background{padding-block:40px 80px}@media (width<1024px){.afb-press-and-ir-events>.afc-background{padding-bottom:50px}}.afb-press-and-ir-events__cols{grid-template-columns:repeat(2,minmax(0,1fr));align-items:flex-start;gap:30px;display:grid}.afb-press-and-ir-events__cols:has(>.afc-background>.afc-background__item--default)>.afc-background>.afc-background__item--default{background:var(--afu-color-primary-1)}.afb-press-and-ir-events__cols:has(>.afc-background>.afc-background__item--default){color:var(--afu-color-white)}@media (width<1024px){.afb-press-and-ir-events__cols{grid-template-columns:repeat(1,minmax(0,1fr));gap:16px}}.afb-press-and-ir-events__cols>.afc-background{border-radius:24px;height:auto;padding:40px;overflow:hidden}@media (width<1024px){.afb-press-and-ir-events__cols>.afc-background{border-radius:20px;padding:30px}}@media (width>=1024px){.afb-press-and-ir-events__title.afc-title--style-default,.afb-press-and-ir-events__title.afu-title-style--default{font-family:var(--afs-title-h2-desktop-font-family);font-size:var(--afs-title-h2-desktop-font-size);font-style:var(--afs-title-h2-desktop-font-style);font-weight:var(--afs-title-h2-desktop-font-weight);letter-spacing:var(--afs-title-h2-desktop-letter-spacing);line-height:var(--afs-title-h2-desktop-line-height)}}@media (width<1024px){.afb-press-and-ir-events__title.afc-title--style-default,.afb-press-and-ir-events__title.afu-title-style--default{font-family:var(--afs-title-h2-mobile-font-family);font-size:var(--afs-title-h2-mobile-font-size);font-style:var(--afs-title-h2-mobile-font-style);font-weight:var(--afs-title-h2-mobile-font-weight);letter-spacing:var(--afs-title-h2-mobile-letter-spacing);line-height:var(--afs-title-h2-mobile-line-height)}}.afb-press-and-ir-events__title.afu-color--text-default{color:var(--afu-color-text-w-heading)}.afb-press-and-ir-events__title:not(:last-child){margin-bottom:30px}@media (width<1024px){.afb-press-and-ir-events__title:not(:last-child){margin-bottom:26px}}@media (width>=1024px){.afb-press-and-ir-events__no-posts,.afb-press-and-ir-events__post-title{font-family:var(--afs-text-p3-r-desktop-font-family);font-size:var(--afs-text-p3-r-desktop-font-size);font-style:var(--afs-text-p3-r-desktop-font-style);font-weight:var(--afs-text-p3-r-desktop-font-weight);letter-spacing:var(--afs-text-p3-r-desktop-letter-spacing);line-height:var(--afs-text-p3-r-desktop-line-height)}}@media (width<1024px){.afb-press-and-ir-events__no-posts,.afb-press-and-ir-events__post-title{font-family:var(--afs-text-p3-r-mobile-font-family);font-size:var(--afs-text-p3-r-mobile-font-size);font-style:var(--afs-text-p3-r-mobile-font-style);font-weight:var(--afs-text-p3-r-mobile-font-weight);letter-spacing:var(--afs-text-p3-r-mobile-letter-spacing);line-height:var(--afs-text-p3-r-mobile-line-height)}}.afb-press-and-ir-events__no-posts,.afb-press-and-ir-events__post-title{color:var(--afu-color-text-w-paragraph)}.afb-press-and-ir-events__no-posts{margin-bottom:30px}@media (width<1024px){.afb-press-and-ir-events__no-posts{margin-bottom:16px}.afb-press-and-ir-events__no-posts+.afb-press-and-ir-events__buttons{margin-top:16px}}.afb-press-and-ir-events__buttons{margin-top:30px}@media (width<1024px){.afb-press-and-ir-events__buttons{margin-top:26px}}.afb-press-and-ir-events__buttons .afc-button--style-secondary{--afs-button-font-size:13px}@media (width<1024px){.afb-press-and-ir-events__buttons .afc-button--style-secondary{width:100%}}.afb-press-and-ir-events .afb-press-and-ir-events__post-link,.afb-press-and-ir-events .afb-press-and-ir-events__button.afc-button--style-link-2{font-family:var(--afs-font-family-primary);color:var(--afu-color-text-w-heading);align-items:center;gap:8px;font-size:15px;font-weight:500;line-height:1.55556;text-decoration:none;display:inline-flex}.afb-press-and-ir-events__post-link-icon{transition-duration:var(--afs-trs-sm);transition-property:color;transition-timing-function:var(--afs-trs-timing-function);flex-shrink:0}.afb-press-and-ir-events .afb-press-and-ir-events__post-link:hover .afb-press-and-ir-events__post-link-icon{color:var(--afu-color-primary-3)}.afb-press-and-ir-events__post{flex-direction:column;align-items:flex-start;gap:20px;display:flex}@media (width<1024px){.afb-press-and-ir-events__post{flex-direction:column;gap:16px;display:flex}}.afb-press-and-ir-events__post:not(:last-child):after{opacity:.5;content:\"\";background-color:#fff;width:100%;height:1px;margin-bottom:20px;display:block}@media (width<1024px){.afb-press-and-ir-events__post:not(:last-child):after{margin-bottom:16px}}@media (width>=1024px){.afb-press-and-ir-events__post-date{font-family:var(--afs-text-p3-r-desktop-font-family);font-size:var(--afs-text-p3-r-desktop-font-size);font-style:var(--afs-text-p3-r-desktop-font-style);font-weight:var(--afs-text-p3-r-desktop-font-weight);letter-spacing:var(--afs-text-p3-r-desktop-letter-spacing);line-height:var(--afs-text-p3-r-desktop-line-height)}}@media (width<1024px){.afb-press-and-ir-events__post-date{font-family:var(--afs-text-p3-r-mobile-font-family);font-size:var(--afs-text-p3-r-mobile-font-size);font-style:var(--afs-text-p3-r-mobile-font-style);font-weight:var(--afs-text-p3-r-mobile-font-weight);letter-spacing:var(--afs-text-p3-r-mobile-letter-spacing);line-height:var(--afs-text-p3-r-mobile-line-height)}}.afb-press-and-ir-events__post-date{color:var(--afu-color-text-w-paragraph)}<\/style>\n\n\n<section class=\"afb-cta afb-cta--layout-center afb-cta--style-investors\" data-af-view=\"elements-partials-cta\">\n\t\t<div class=\"afc-background\" data-af-view=\"elements-partials-background\">\n\t\t\t<div class=\"afc-background-image afc-flexible__item-0 afc-background__item afu-hide--only-tablet afu-hide--only-tablet-large afu-hide--only-laptop afu-hide--only-laptop-large afu-hide--only-desktop afu-hide--only-widescreen\" data-af-view=\"elements-components-background-image\" data-loading=\"lazy\" data-load-margin=\"0px 0px 300px 0px\" data-background-image=\"https:\/\/perion.com\/wp-content\/uploads\/2026\/06\/Bckground-mobile.png\">\n\t<\/div>\n<div class=\"afc-background-image afc-flexible__item-1 afc-background__item afu-hide--only-mobile\" data-af-view=\"elements-components-background-image\" data-loading=\"lazy\" data-load-margin=\"0px 0px 300px 0px\" data-background-image=\"https:\/\/perion.com\/wp-content\/uploads\/2026\/07\/CTA-background-image-1.png\">\n\t<\/div>\n<div class=\"afc-background-cursor afc-flexible__item-2 afc-background__item\" data-af-view=\"components-background-cursor\" style=\"\">\n\t<div class=\"afc-background-cursor__body\">\n\t\t\t\t\t<div class=\"afc-background-cursor__masked-area\">\n\t\t\t\t<div class=\"afc-background afc-background-cursor__masked-area-background\" data-af-view=\"elements-partials-background\">\n\t\t\t<div class=\"afc-background__item afc-background__item--default\"><\/div>\n\t\t<div class=\"afc-background__content\">\n\t\t\t<\/div>\n<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"afc-background-cursor__move-area\">\n\t\t\t\t\t\t\t\t\t<div class=\"afc-background-cursor__gradient\"><\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n<\/div>\n<script id=\"airfleet-lightyear-components-background-cursor-frontend-entry-scripts\" type=\"text\/javascript\" data-for-view=\"components-background-cursor\" data-cookieconsent=\"ignore\" >!function(){class t{classNames={block:\"afc-background-cursor\",tooltip:\"afc-background-cursor__tooltip\",tooltipReady:\"afc-background-cursor__tooltip--ready\",gradient:\"afc-background-cursor__gradient\",moveArea:\"afc-background-cursor__move-area\",moveAreaReady:\"afc-background-cursor__move-area--ready\",maskedAreaBackground:\"afc-background-cursor__masked-area-background\"};blockLeft=0;blockTop=0;blockBottom=0;mouseClientX=0;mouseClientY=0;tooltipVisibleClassAdded=!1;tooltipHidden=!1;initialize(t){let e=t.closest(\"section\");if(!e||(this.parentSection=e,e.classList.add(`${this.classNames.block}__cursor`),\"ontouchstart\"in window||navigator.maxTouchPoints))return;this.updateBlockPosition(),window.addEventListener(\"resize\",()=>{this.updateBlockPosition()}),window.addEventListener(\"scroll\",t=>{this.updateBlockPosition(),this.updateTooltipPosition(t)}),t.addEventListener(\"airfleet-background-cursor-show-tooltip\",()=>{this.tooltipHidden=!1,this.updateTooltipPosition()}),t.addEventListener(\"airfleet-background-cursor-hide-tooltip\",()=>{this.tooltipHidden=!0,this.updateTooltipPosition()});let o=()=>{this.updateTooltipPosition(),requestAnimationFrame(o)};requestAnimationFrame(o),window.addEventListener(\"pointermove\",t=>{this.mouseClientX=t.clientX,this.mouseClientY=t.clientY}),this.tooltip=t.parentElement.querySelector(`.${this.classNames.tooltip}`),this.moveArea=t.querySelector(`.${this.classNames.moveArea}`),this.maskedAreaBackground=t.querySelector(`.${this.classNames.maskedAreaBackground}`)}updateTooltipPosition(){let t=this.mouseClientX-this.blockLeft,e=this.mouseClientY-this.blockTop,o=this.mouseClientY<this.blockTop||this.mouseClientY>this.blockBottom,s=this.tooltipHidden||o;this.maskedAreaBackground&&(this.maskedAreaBackground.style.setProperty(\"--afc-background-cursor-masked-area-left\",`${t}px`),this.maskedAreaBackground.style.setProperty(\"--afc-background-cursor-masked-area-left-int\",`${t}`),this.maskedAreaBackground.style.setProperty(\"--afc-background-cursor-masked-area-top\",`${e}px`),this.maskedAreaBackground.style.setProperty(\"--afc-background-cursor-masked-area-top-int\",`${e}`)),this.moveArea&&(o?this.moveArea.classList.remove(this.classNames.moveAreaReady):(this.moveArea.style.transform=`translate3d(calc(${t}px - 50%), calc(${e}px - 50%), 0px)`,this.moveArea.classList.contains(this.classNames.moveAreaReady)||this.moveArea.classList.add(this.classNames.moveAreaReady))),this.tooltip&&(s?(this.tooltip.classList.remove(this.classNames.tooltipReady),this.tooltipVisibleClassAdded=!1):(this.tooltip.style.transform=`translate3d(${t}px, ${e}px, 0px)`,this.tooltipVisibleClassAdded||(this.tooltip.classList.add(this.classNames.tooltipReady),this.tooltipVisibleClassAdded=!0)))}updateBlockPosition(){let t=this.parentSection.getBoundingClientRect();this.blockLeft=t.left,this.blockTop=t.top,this.blockBottom=t.bottom}}new class{classNames={block:\"afc-background-cursor\"};initialize(){let{domReady:t}=window._airfleet.elements.core;t(()=>{this.initBlocks()})}initBlocks(){let e=[...document.querySelectorAll(`.${this.classNames.block}`)];if(e.length)for(let o of e)new t().initialize(o)}}().initialize()}();<\/script>\n\t\t<div class=\"afc-background__content\">\n\t\t<div class=\"container afb-cta__container\">\n\t\t\t<div class=\"afb-cta__inner cta__inner\">\n\t\t\t\t<div class=\"afb-cta__text cta__text\">\n\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"afb-cta__headings\">\n\t\t\t\t\t\t\t<h2 class=\"afc-title afc-title--advanced afu-title-style--default afc-flexible__item-0 afu-color--text-default\" data-af-view=\"elements-partials-title\">Descubre la estrategia, el rendimiento del negocio y la visi\u00f3n de crecimiento a largo plazo de Perion.&nbsp;<\/h2>\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"afb-cta__media cta__media\">\n\t\t\t\t\t\n\t\t\t\t\t<div class=\"afb-cta-last-media\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"afb-cta__buttons cta__buttons\">\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/perion.com\/es\/contact-us\/\" target=\"_self\" class=\"afc-button afc-button--link afc-button--style-default afc-flexible__item-0\" data-af-view=\"elements-partials-button\">\t<span class=\"afc-button__content\">\n\t\tContacta con nosotros\t<\/span>\n\t<\/a>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\t<\/div>\n<\/div>\n\t<\/section>\n<style id=\"airfleet-elements-cta-elements-partials-cta-default-entry-styles\" type=\"text\/css\">.afb-cta__container{padding:var(--afs-cta-container-padding,4rem)}.afb-cta__tagline{display:var(--afs-cta-tagline-display,flex);flex-direction:var(--afs-cta-tagline-flex-direction,column);gap:var(--afs-cta-tagline-gap,10px);align-items:var(--afs-cta-tagline-align-items,flex-start);justify-content:var(--afs-cta-tagline-justify-content,flex-start);padding-inline:var(--afs-cta-tagline-padding-inline);padding-block:var(--afs-cta-tagline-padding-block);margin-block:var(--afs-cta-tagline-margin-block);margin-inline:var(--afs-cta-tagline-margin-inline)}@media (width<1024px){.afb-cta__tagline{gap:var(--afs-cta-tagline-gap-mobile,var(--afs-cta-tagline-gap,10px));flex-direction:var(--afs-cta-tagline-flex-direction-mobile,var(--afs-cta-tagline-flex-direction,column))}}.afb-cta__tagline:not(:last-of-type){margin-bottom:var(--afs-cta-tagline-margin-bottom-not-last,20px)}@media (width<1024px){.afb-cta__tagline:not(:last-of-type){margin-bottom:var(--afs-cta-tagline-margin-bottom-not-last-mobile,var(--afs-cta-tagline-margin-bottom-not-last,10px))}}.afb-cta__tagline:not(:first-of-type){margin-top:var(--afs-cta-tagline-margin-top-not-first)}@media (width<1024px){.afb-cta__tagline:not(:first-of-type){margin-top:var(--afs-cta-tagline-margin-top-not-first-mobile,var(--afs-cta-tagline-margin-top-not-first))}}.afb-cta__tagline .afu-title-style--default{--afs-title-font-family:var(--afs-tagline-cta-font-family,inherit);--afs-title-font-size:var(--afs-tagline-cta-font-size,.875rem);--afs-title-font-weight:var(--afs-tagline-cta-font-weight,500);--afs-title-line-height:var(--afs-tagline-cta-line-height,1.428);--afs-title-letter-spacing:var(--afs-tagline-cta-letter-spacing,normal);--afs-title-color:var(--afs-tagline-cta-color);--afs-title-text-transform:var(--afs-tagline-cta-text-transform,none);--afs-title-text-align:var(--afs-tagline-cta-text-align,start);--afs-title-text-decoration:var(--afs-tagline-cta-text-decoration);--afs-title-text-shadow:var(--afs-tagline-cta-text-shadow);--afs-title-text-overflow:var(--afs-tagline-cta-text-overflow);display:var(--afs-tagline-cta-display,inline-block);border-radius:var(--afs-tagline-cta-border-radius,100px);border-style:var(--afs-tagline-cta-border-style,solid);border-color:var(--afs-tagline-cta-border-color,#f0f0f0);border-width:var(--afs-tagline-cta-border-width,4px);padding-inline:var(--afs-tagline-cta-padding-inline,14px);padding-block:var(--afs-tagline-cta-padding-block,6px);margin-inline:var(--afs-tagline-cta-margin-inline);margin-block:var(--afs-tagline-cta-margin-block)}.afb-cta--layout-media-right .cta__inner{display:var(--afs-cta-inner-display,flex);align-items:var(--afs-cta-inner-align-items,center);justify-content:var(--afs-cta-inner-justify-content,center);width:var(--afs-cta-inner-width,100%);gap:var(--afs-cta-inner-column-gap,32px);flex-direction:var(--afs-cta-inner-flex-direction,row)}@media (width<1024px){.afb-cta--layout-media-right .cta__inner{gap:var(--afs-cta-inner-column-gap-mobile,var(--afs-cta-inner-column-gap,16px));flex-direction:var(--afs-cta-inner-flex-direction-mobile,var(--afs-cta-inner-flex-direction,column))}.afb-cta--layout-media-right .cta__text,.afb-cta--layout-media-right .cta__media{width:var(--afs-cta-inner-text-and-media-width-mobile,100%)}}@media (width>=1024px){.afb-cta--layout-media-right .cta__text,.afb-cta--layout-media-right .cta__media{flex:var(--afs-cta-inner-text-and-media-flex,0 0 calc(50% - var(--afs-cta-inner-column-gap,32px) + var(--afs-cta-inner-column-gap,32px)\/2))}}.afb-cta--layout-media-top,.afb-cta--layout-center{--afs-cta-tagline-justify-content:center;--afs-cta-tagline-align-items:center}.afb-cta--layout-media-top .cta__inner,.afb-cta--layout-center .cta__inner{display:var(--afs-cta-inner-display,block);text-align:var(--afs-cta-inner-text-align,center);width:var(--afs-cta-inner-width,100%);flex-direction:var(--afs-cta-inner-flex-direction,unset);gap:var(--afs-cta-inner-gap-y,0)var(--afs-cta-inner-gap-x,0)}.afb-cta--layout-media-top .cta__buttons,.afb-cta--layout-center .cta__buttons{margin:var(--afs-cta-buttons-margin,10px);justify-content:center}.afb-cta__headings:not(:last-of-type){margin-bottom:var(--afs-cta-headings-margin-bottom,1rem)}@media (width<1024px){.afb-cta__headings:not(:last-of-type){margin-bottom:var(--afs-cta-headings-margin-bottom-mobile,10px)}}.afb-cta__texts:not(:last-of-type){margin-bottom:var(--afs-cta-texts-margin-bottom,1.5rem)}@media (width<1024px){.afb-cta__texts:not(:last-of-type){margin-bottom:var(--afs-cta-texts-margin-bottom-mobile,10px)}}.afb-cta__media img{width:var(--afs-cta-img-width,100%);height:var(--afs-cta-img-max-height,auto)}@media (width>=1024px){.afb-cta--media-position-left .afb-cta__inner{flex-direction:row-reverse}}.afb-cta--layout-media-top{--afs-cta-inner-display:flex;--afs-cta-inner-flex-direction:column;--afs-cta-inner-gap-y:20px;--afs-cta-inner-gap-x:0}.afb-cta--layout-media-top .afb-cta__media{overflow:var(--afs-cta-media-overflow,hidden);margin-inline:var(--afs-cta-media-margin-inline,auto);margin-block:var(--afs-cta-media-margin-block,0);padding-inline:var(--afs-cta-media-padding-inline,0);padding-block:var(--afs-cta-media-padding-block,0);border-radius:var(--afs-cta-media-border-radius,10px);border-style:var(--afs-cta-media-border-style,none);border-color:var(--afs-cta-media-border-color,transparent);border-width:var(--afs-cta-media-border-width,0);order:var(--afs-cta-media-order,-1);width:var(--afs-cta-media-width,100%);height:var(--afs-cta-media-height,auto);max-width:var(--afs-cta-media-max-width,180px);max-height:var(--afs-cta-media-max-height,none)}.afb-cta--layout-media-top .afb-cta__media picture,.afb-cta--layout-media-top .afb-cta__media img{width:var(--afs-cta-img-width,100%);height:var(--afs-cta-img-height,auto);display:var(--afs-cta-img-display,block);aspect-ratio:var(--afs-cta-img-aspect-ratio,revert-layer);object-fit:var(--afs-cta-img-object-fit,revert-layer);object-position:var(--afs-cta-img-object-position,center)}<\/style>\n<style id=\"airfleet-lightyear-elements-partials-cta-default-entry-styles\" type=\"text\/css\">@keyframes lobby-loader-spin{to{transform:rotate(360deg)}}@keyframes lobby-placeholder-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.afb-cta{--afs-cta-container-padding:110px calc(var(--afs-container-padding-x)*.5);--afs-cta-buttons-margin:0;--afs-cta-text-margin-bottom:30px;text-align:center}.afb-cta .afc-background-image{background-size:contain}@media (width<1024px){.afb-cta .afc-background-image{background-size:cover}}@media (width>=1024px){.afb-cta{--afs-cta-container-padding:60px 20px}}@media (width<1024px){.afb-cta{--afs-cta-container-padding:50px calc(var(--afs-container-padding-x)*.5)}}.afb-cta__headings{max-width:706px;margin-inline:auto}@media (width>=1024px){.afb-cta__headings .afc-title.afc-title--style-default,.afb-cta__headings .afc-title.afu-title-style--default{font-family:var(--afs-title-h1-r-desktop-font-family);font-size:var(--afs-title-h1-r-desktop-font-size);font-style:var(--afs-title-h1-r-desktop-font-style);font-weight:var(--afs-title-h1-r-desktop-font-weight);letter-spacing:var(--afs-title-h1-r-desktop-letter-spacing);line-height:var(--afs-title-h1-r-desktop-line-height)}}@media (width<1024px){.afb-cta__headings .afc-title.afc-title--style-default,.afb-cta__headings .afc-title.afu-title-style--default{font-family:var(--afs-title-h1-r-mobile-font-family);font-size:var(--afs-title-h1-r-mobile-font-size);font-style:var(--afs-title-h1-r-mobile-font-style);font-weight:var(--afs-title-h1-r-mobile-font-weight);letter-spacing:var(--afs-title-h1-r-mobile-letter-spacing);line-height:var(--afs-title-h1-r-mobile-line-height)}}.afb-cta__text:not(:last-child){margin-bottom:30px}@media (width<1024px){.afb-cta__text:not(:last-child){margin-bottom:26px}}.afb-cta__buttons .afc-button--style-default{--afs-button-border-width:0px;--afs-button-border-style:solid;--afs-button-border-color:transparent;--afs-button-border-radius:8px;--afs-button-padding-y:10px;--afs-button-padding-x:25px;--afs-button-shadow-x:0;--afs-button-shadow-y:1px;--afs-button-shadow-blur:2px;--afs-button-shadow-spread:0;--afs-button-shadow-color:#1018280d}@media (width<1024px){.afb-cta__buttons .afc-button--style-default{--afs-button-font-size:13px}}.afb-cta__buttons .afc-button--style-default{--afs-button-background:var(--afu-color-primary-1);--afs-button-background-hover:color-mix(in srgb,var(--afu-color-primary-1)80%,transparent);--afs-button-text-color:var(--afu-color-primary-2);--afs-button-text-color-hover:var(--afu-color-primary-2)}@media (width<768px){.afb-cta__buttons .afc-button--style-default{width:100%}}.afb-cta--style-lobby-spaces{--afs-cta-container-padding:80px calc(var(--afs-container-padding-x)*.5)200px}@media (width<1024px){.afb-cta--style-lobby-spaces{--afs-cta-container-padding:50px calc(var(--afs-container-padding-x)*.5)}.afb-cta--style-lobby-spaces .afc-background-image{background-size:cover}}.afb-cta--style-dark{--afs-cta-container-padding:100px calc(var(--afs-container-padding-x)*.5);overflow:hidden}.afb-cta--style-dark .afb-cta__container{align-content:center;min-height:538px}@media (width<1024px){.afb-cta--style-dark .afb-cta__container{min-height:352px}}.afb-cta--style-dark .afc-background-image{background-size:cover}.afb-cta--style-dark .afb-cta__headings{max-width:686px}.afb-cta--style-dark .afb-cta__headings .afc-title.afc-title--style-default,.afb-cta--style-dark .afb-cta__headings .afc-title.afu-title-style--default{letter-spacing:-.02em;font-size:42px;font-weight:400;line-height:1.32}@media (width<1024px){.afb-cta--style-dark .afb-cta__headings .afc-title.afc-title--style-default,.afb-cta--style-dark .afb-cta__headings .afc-title.afu-title-style--default{letter-spacing:-.02em;font-size:28px;font-weight:400;line-height:1.32}}.afb-cta--style-dark .afb-cta__headings .afc-title.afu-color--text-default{color:var(--afu-color-text-w-heading)}.afb-cta--style-dark .afb-cta__headings .afc-title strong{font-weight:500}.afb-cta--style-dark .afb-cta__buttons .afc-button--style-default{--afs-button-border-width:0px;--afs-button-border-style:solid;--afs-button-border-color:transparent;--afs-button-border-radius:8px;--afs-button-padding-y:10px;--afs-button-padding-x:25px;--afs-button-shadow-x:0;--afs-button-shadow-y:1px;--afs-button-shadow-blur:2px;--afs-button-shadow-spread:0;--afs-button-shadow-color:#1018280d}@media (width<1024px){.afb-cta--style-dark .afb-cta__buttons .afc-button--style-default{--afs-button-font-size:13px}}.afb-cta--style-dark .afb-cta__buttons .afc-button--style-default{--afs-button-border-width:1px;--afs-button-border-color:var(--afu-color-stroke);--afs-button-border-color-hover:#d0d5dd;--afs-button-background:var(--afu-color-primary-2);--afs-button-background-hover:var(--afu-color-primary-2);--afs-button-text-color:var(--afu-color-primary-1);--afs-button-text-color-hover:var(--afu-color-primary-1)}.afb-cta--style-investors{--afs-cta-container-padding:120px calc(var(--afs-container-padding-x)*.5)}.afb-cta--style-investors>.afc-background{background-color:var(--afu-color-secondary-1)}@media (width<1024px){.afb-cta--style-investors{--afs-cta-container-padding:50px calc(var(--afs-container-padding-x)*.5)}.afb-cta--style-investors .afc-background-image{background-size:cover}.afb-cta--style-investors .afc-background-cursor{display:none}}.afb-background-wrap .afb-cta.afc-background-cursor__cursor{isolation:isolate}.afb-background-wrap .afb-cta.afc-background-cursor__cursor .afc-background{z-index:-1}<\/style>\n<style id=\"airfleet-lightyear-components-background-cursor-default-entry-styles\" type=\"text\/css\">@keyframes lobby-loader-spin{to{transform:rotate(360deg)}}@keyframes lobby-placeholder-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.afc-background-cursor{--afc-background-cursor-width-int:574;--afc-background-cursor-height-int:566;--afc-background-cursor-width:calc(var(--afc-background-cursor-width-int)*1px);--afc-background-cursor-height:calc(var(--afc-background-cursor-height-int)*1px);z-index:0;overflow-x:clip}.afc-background-cursor__cursor{z-index:-1}.afc-background-cursor__cursor,.afc-background-cursor__cursor *{cursor:url(https:\/\/perion.com\/wp-content\/themes\/airfleet-lightyear\/dist\/cursor.43d49fe9.svg) 0 0,auto!important}.afc-background-cursor__body{z-index:0}.afc-background-cursor__tooltip{font-family:var(--afs-text-p1-r-desktop-font-family);font-size:var(--afs-text-p1-r-desktop-font-size);font-style:var(--afs-text-p1-r-desktop-font-style);font-weight:var(--afs-text-p1-r-desktop-font-weight);letter-spacing:var(--afs-text-p1-r-desktop-letter-spacing);line-height:var(--afs-text-p1-r-desktop-line-height);--afs-text-p1-r-desktop-font-size:16px;--afs-text-p1-r-desktop-font-size-int:16;--afs-text-p1-r-desktop-font-weight:500;--afs-text-p1-r-desktop-letter-spacing:6%;--afs-text-p1-r-desktop-text-transform:uppercase;z-index:1111;opacity:0;will-change:opacity,transform;background:#fff;border:1px solid #0000001a;border-radius:10px;padding:6px 12px;transition:opacity .2s;position:absolute;top:-35px;left:35px;box-shadow:-8px -5px 28.6px #5842ee29,29px 13px 36.8px #ff008326}.afc-background-cursor__tooltip--ready{opacity:1}.afc-background-cursor__tooltip-body{z-index:1111;position:relative;overflow-x:clip}.afc-background-cursor__move-area{width:var(--afc-background-cursor-width);height:var(--afc-background-cursor-height);pointer-events:none;z-index:-1;opacity:0;will-change:opacity,transform;transition:opacity .2s;position:absolute;top:0;left:0;transform:translateZ(0)}.afc-background-cursor__move-area .afc-image,.afc-background-cursor__move-area .afc-image img{object-fit:cover;object-position:center;width:100%;height:100%}.afc-background-cursor__move-area--ready{opacity:1}.afc-background-cursor__masked-area{pointer-events:none;z-index:-1;--afc-background-cursor-masked-area-left:0px;--afc-background-cursor-masked-area-top:0px;--afc-background-cursor-masked-size-width-int:500;--afc-background-cursor-masked-size-height-int:500;--afc-background-cursor-masked-size-width:calc(var(--afc-background-cursor-masked-size-width-int)*1px);--afc-background-cursor-masked-size-height:calc(var(--afc-background-cursor-masked-size-height-int)*1px);--afc-background-cursor-masked-size-width-mobile-int:var(--afc-background-cursor-masked-size-width-int)\/1.5;--afc-background-cursor-masked-size-height-mobile-int:var(--afc-background-cursor-masked-size-height-int)\/1.5;--afc-background-cursor-masked-size-width-current:calc(var(--afc-background-cursor-masked-size-width-mobile-int)*1px);width:100%;height:100%;position:absolute;top:0;left:0}@media (width>=1024px){.afc-background-cursor__masked-area{--afc-background-cursor-masked-size-width-current:clamp(var(--afc-background-cursor-masked-size-width-mobile-int)*1px,calc(calc(var(--afc-background-cursor-masked-size-width-mobile-int)*1px) + (100vw - 1024px)\/(1920 - 1024)*(var(--afc-background-cursor-masked-size-width-int) - var(--afc-background-cursor-masked-size-width-mobile-int))),var(--afc-background-cursor-masked-size-width-int)*1px)}}@media (width>=1920px){.afc-background-cursor__masked-area{--afc-background-cursor-masked-size-width-current:calc(var(--afc-background-cursor-masked-size-width-int)*1px)}}@media (width<1024px){.afc-background-cursor__masked-area{max-width:100%}}.afc-background-cursor__masked-area{--afc-background-cursor-masked-size-height-current:calc(var(--afc-background-cursor-masked-size-height-mobile-int)*1px)}@media (width>=1024px){.afc-background-cursor__masked-area{--afc-background-cursor-masked-size-height-current:clamp(var(--afc-background-cursor-masked-size-height-mobile-int)*1px,calc(calc(var(--afc-background-cursor-masked-size-height-mobile-int)*1px) + (100vw - 1024px)\/(1920 - 1024)*(var(--afc-background-cursor-masked-size-height-int) - var(--afc-background-cursor-masked-size-height-mobile-int))),var(--afc-background-cursor-masked-size-height-int)*1px)}}@media (width>=1920px){.afc-background-cursor__masked-area{--afc-background-cursor-masked-size-height-current:calc(var(--afc-background-cursor-masked-size-height-int)*1px)}}@media (width<1024px){.afc-background-cursor__masked-area{max-width:100%}}.afc-background-cursor__masked-area-background{object-fit:cover;object-position:center;width:100%;height:100%;mask-image:radial-gradient(circle,#000 30%,#0000 60%);mask-size:var(--afc-background-cursor-masked-size-width-current)var(--afc-background-cursor-masked-size-height-current);mask-position:calc(var(--afc-background-cursor-masked-area-left) - var(--afc-background-cursor-masked-size-width-current)\/2)calc(var(--afc-background-cursor-masked-area-top) - var(--afc-background-cursor-masked-size-height-current)\/2);mask-repeat:no-repeat}.afc-background-cursor__gradient{width:100%;height:100%;position:absolute;top:0;left:0;transform:translateZ(0)}.afc-background-cursor__gradient:before{content:\"\";filter:blur(100px);background:#9747ff;width:348px;height:348px;display:block;position:absolute;top:-21px;left:225px}.afc-background-cursor__gradient:after{content:\"\";filter:blur(100px);background:#ff0083b3;width:348px;height:348px;display:block;position:absolute;top:197px;left:0}.afc-background-cursor__gradient{opacity:.2}<\/style>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":6,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":"","_afn_body_classes":""},"class_list":["post-13674","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Inversores - Perion<\/title>\n<meta name=\"description\" content=\"Explore Perion&#039;s investor center for quarterly earnings, SEC filings, stock performance, press releases and governance documents from this ad tech leader today.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/perion.com\/es\/investors\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Inversores - Perion\" \/>\n<meta property=\"og:description\" content=\"Explore Perion&#039;s investor center for quarterly earnings, SEC filings, stock performance, press releases and governance documents from this ad tech leader today.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/perion.com\/es\/investors\/\" \/>\n<meta property=\"og:site_name\" content=\"Perion\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Perion.network\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-20T14:49:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/perion.com\/wp-content\/uploads\/Social-Share-image-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@PerionNetwork\" \/>\n<meta name=\"twitter:label1\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/perion.com\\\/es\\\/investors\\\/\",\"url\":\"https:\\\/\\\/perion.com\\\/es\\\/investors\\\/\",\"name\":\"Inversores - Perion\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/perion.com\\\/es\\\/#website\"},\"datePublished\":\"2026-07-02T10:26:24+00:00\",\"dateModified\":\"2026-11-20T14:49:45+00:00\",\"description\":\"Explore Perion's investor center for quarterly earnings, SEC filings, stock performance, press releases and governance documents from this ad tech leader today.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/perion.com\\\/es\\\/investors\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/perion.com\\\/es\\\/investors\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/perion.com\\\/es\\\/investors\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/perion.com\\\/es\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Inversores\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/perion.com\\\/es\\\/#website\",\"url\":\"https:\\\/\\\/perion.com\\\/es\\\/\",\"name\":\"Perion\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/perion.com\\\/es\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/perion.com\\\/es\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/perion.com\\\/es\\\/#organization\",\"name\":\"Perion Network Ltd\",\"url\":\"https:\\\/\\\/perion.com\\\/es\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/perion.com\\\/es\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/perion.com\\\/wp-content\\\/uploads\\\/250x250.webp\",\"contentUrl\":\"https:\\\/\\\/perion.com\\\/wp-content\\\/uploads\\\/250x250.webp\",\"width\":250,\"height\":250,\"caption\":\"Perion Network Ltd\"},\"image\":{\"@id\":\"https:\\\/\\\/perion.com\\\/es\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Perion.network\",\"https:\\\/\\\/x.com\\\/PerionNetwork\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/perion\\\/\",\"https:\\\/\\\/www.instagram.com\\\/perion.network\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Inversores - Perion","description":"Explore Perion's investor center for quarterly earnings, SEC filings, stock performance, press releases and governance documents from this ad tech leader today.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/perion.com\/es\/investors\/","og_locale":"es_ES","og_type":"article","og_title":"Inversores - Perion","og_description":"Explore Perion's investor center for quarterly earnings, SEC filings, stock performance, press releases and governance documents from this ad tech leader today.","og_url":"https:\/\/perion.com\/es\/investors\/","og_site_name":"Perion","article_publisher":"https:\/\/www.facebook.com\/Perion.network","article_modified_time":"2026-11-20T14:49:45+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/perion.com\/wp-content\/uploads\/Social-Share-image-1.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@PerionNetwork","twitter_misc":{"Tiempo de lectura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/perion.com\/es\/investors\/","url":"https:\/\/perion.com\/es\/investors\/","name":"Inversores - Perion","isPartOf":{"@id":"https:\/\/perion.com\/es\/#website"},"datePublished":"2026-07-02T10:26:24+00:00","dateModified":"2026-11-20T14:49:45+00:00","description":"Explore Perion's investor center for quarterly earnings, SEC filings, stock performance, press releases and governance documents from this ad tech leader today.","breadcrumb":{"@id":"https:\/\/perion.com\/es\/investors\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/perion.com\/es\/investors\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/perion.com\/es\/investors\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/perion.com\/es\/"},{"@type":"ListItem","position":2,"name":"Inversores"}]},{"@type":"WebSite","@id":"https:\/\/perion.com\/es\/#website","url":"https:\/\/perion.com\/es\/","name":"Perion","description":"","publisher":{"@id":"https:\/\/perion.com\/es\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/perion.com\/es\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/perion.com\/es\/#organization","name":"Perion Network Ltd","url":"https:\/\/perion.com\/es\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/perion.com\/es\/#\/schema\/logo\/image\/","url":"https:\/\/perion.com\/wp-content\/uploads\/250x250.webp","contentUrl":"https:\/\/perion.com\/wp-content\/uploads\/250x250.webp","width":250,"height":250,"caption":"Perion Network Ltd"},"image":{"@id":"https:\/\/perion.com\/es\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Perion.network","https:\/\/x.com\/PerionNetwork","https:\/\/www.linkedin.com\/company\/perion\/","https:\/\/www.instagram.com\/perion.network"]}]}},"_links":{"self":[{"href":"https:\/\/perion.com\/es\/wp-json\/wp\/v2\/pages\/13674","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/perion.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/perion.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/perion.com\/es\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/perion.com\/es\/wp-json\/wp\/v2\/comments?post=13674"}],"version-history":[{"count":3,"href":"https:\/\/perion.com\/es\/wp-json\/wp\/v2\/pages\/13674\/revisions"}],"predecessor-version":[{"id":15510,"href":"https:\/\/perion.com\/es\/wp-json\/wp\/v2\/pages\/13674\/revisions\/15510"}],"wp:attachment":[{"href":"https:\/\/perion.com\/es\/wp-json\/wp\/v2\/media?parent=13674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}